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 |
---|---|---|---|---|---|---|
this stores the size of the buffer when we need to fill
|
public BucketOutBuffer(int startAddress, FileOutputStream writer, RandomAccessFile file, int bufferSize){
// PRECONDITION: writer is a FileOutPutStream of file
mOffset = startAddress; // start address is the BYTE address of the start of this buffer's position in file
mFile = file;
mWriter = writer;
BUFFER_SIZE = bufferSize;
mBuffer = new byte[BUFFER_SIZE];
firstFillThreshold = ((BUFFER_SIZE+mOffset)&(0xfffff000))-mOffset; // this calculates the largest threshold
// smaller than the buffer size, such that
// the end of the writtend section is
// aligned (multiple of 0x1000)
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getBufferSize() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic int getBufferSize() {\n\t\treturn 0;\n\t}",
"public int getBufferSize() {\n return count;\n }",
"int getBufferSize();",
"@Override\n public int getBufferSize() {\n return 0;\n }",
"public int size() { return buffer.length; }",
"public int getBufferSize() {\n\t\treturn buffer.length;\n\t}",
"private int fillBuffer() throws IOException {\r\n int n = super.read(buffer, 0, BUF_SIZE);\r\n if (n >= 0) {\r\n file_pos +=n;\r\n buf_end = n;\r\n buf_pos = 0;\r\n }\r\n return n;\r\n }",
"private void fillReceiveBuffer(final int requestedSize) {\n ByteBuffer readBuffer = receiveBuffer;\n if (requestedSize > receiveBuffer.capacity()) {\n readBuffer = socketService.getByteBuffer(requestedSize);\n readBuffer.put(receiveBuffer).flip();\n socketService.releaseByteBuffer(receiveBuffer);\n }\n receiveBuffer = null;\n socketHandle.read(readBuffer).addDeferrable(this, true);\n }",
"protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }",
"@Override\n public void setBufferSize(int arg0) {\n\n }",
"public float getSize() {\n return bufSize;\n }",
"void setBufferSize(int bufferSize);",
"@Override\n\tpublic void setBufferSize(int size) {\n\t}",
"private static void buffer() {\n\t\tSystem.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n\t\tByteBuffer mBuffer=ByteBuffer.allocate(10240000);\n\t\tSystem.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n// mBuffer.clear();\n System.out.println(\"bafor\"+Runtime.getRuntime().freeMemory());\n\t}",
"int getBytesInBufferAvailable() {\n if (this.count == this.pos) return 0;\n else return this.buf.length - this.pos;\n }",
"protected abstract long getCurrentBufferCapacity(long paramLong);",
"@SuppressWarnings( \"unused\" )\n public int capacity() {\n return buffer.capacity() - buffer.limit();\n }",
"@Override\n public long getSize() {\n return allocatedSize;\n }",
"public ByteRingBuffer(int maxSize){\n buffer= new byte[maxSize];\n readIndex = 0;\n writeIndex = -1;\n size=0;\n }",
"public int readBufferSize_() {\n return readBufferSize_;\n }",
"int getLostedSize();",
"private ByteBuffer grow(int length) {\n if (!mBuffers.isEmpty()) {\n ByteBuffer b = mBuffers.peekLast();\n if (b.limit() + length < b.capacity()) {\n b.mark();\n b.position(b.limit());\n b.limit(b.limit() + length);\n remaining += length;\n return b.order(order);\n }\n }\n\n ByteBuffer ret = obtain(length);\n ret.mark();\n ret.limit(length);\n add(ret);\n\n return ret.order(order);\n }",
"void setStreamBuffer(int size) {\r\n\t\tif(size>0)\r\n\t\t\tbuffer = new byte[size];\r\n\t\telse\r\n\t\t\tbuffer = new byte[this.size];\r\n\t}",
"private int fillBuffer(InputStream is) throws IOException {\n int len = buffer.length;\n int pos = 0;\n while (pos < buffer.length) {\n int read = is.read(buffer, pos, len);\n if (read == -1)\n return pos;\n pos += read;\n len -= read;\n }\n return pos;\n }",
"private void fillBuf(int need) throws IOException {\n\n\t\tif (count > pos) {\n\t\t\tSystem.arraycopy(buf, pos, buf, 0, count - pos);\n\t\t\tcount -= pos;\n\t\t\tneed -= count;\n\t\t\tpos = 0;\n\t\t} else {\n\t\t\tcount = 0;\n\t\t\tpos = 0;\n\t\t}\n\n\t\twhile (need > 0) {\n\n\t\t\tint len = in.read(buf, count, buf.length - count);\n\t\t\tif (len <= 0) {\n\t\t\t\tthrow new EOFException();\n\t\t\t}\n\t\t\tcount += len;\n\t\t\tneed -= len;\n\t\t}\n\n\t}",
"protected abstract int getNextBufferSize(E[] paramArrayOfE);",
"private void ensureCapacity() {\n if(size() >= (0.75 * data.length)) // size() == curSize\n resize(2 * size());\n }",
"public void setBufferSize(int i) {\n\n\t}",
"public long length() {\r\n return 1 + 4 + buffer.length;\r\n }",
"protected int fillClearBuffer()\n throws IOException\n {\n ByteBuffer buffEnc = f_buffEncIn;\n ByteBuffer buffClear = f_buffClearIn;\n int ofPos = buffClear.position();\n int ofLim = buffClear.limit();\n int cb = 0;\n int cbStart = buffEnc.remaining();\n\n try\n {\n if (ofPos == ofLim)\n {\n buffClear.clear();\n ofPos = ofLim = 0;\n }\n else\n {\n buffClear.position(buffClear.limit())\n .limit(buffClear.capacity());\n }\n cb = decrypt(f_aBuffClear, 0, 1);\n return cbStart - buffEnc.remaining();\n }\n finally\n {\n buffClear.position(ofPos)\n .limit(ofLim + cb);\n }\n }",
"protected void initBuffer() throws IOException {\n if (buf != null) {\r\n Util.disposeDirectByteBuffer(buf);\r\n }\r\n // this check is overestimation:\r\n int size = bufferNumLength << Main.log2DataLength;\r\n assert (size > 0);\r\n if (Main.debug) { System.out.println(\"Allocating direct buffer of \"+bufferNumLength+\" ints.\"); }\r\n buf = ByteBuffer.allocateDirect(size).order(Main.byteOrder);\r\n buf.clear();\r\n }",
"private final int bufferedOutputSpaceRemaining() {\n return !reading ? buffer.remaining() : 0;\n }",
"public int writeBufferSize_() {\n return writeBufferSize_;\n }",
"public int setUp() throws IOException {\r\n\t\tint kSz = 0;\r\n\t\tkeys = ByteBuffer.allocate(size * FREE.length);\r\n\t\tvalues = ByteBuffer.allocate(size * 8);\r\n\t\tclaims = ByteBuffer.allocate(size);\r\n\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tkeys.put(FREE);\r\n\t\t\tvalues.putLong(-1);\r\n\t\t\tclaims.put((byte) 0);\r\n\t\t\tkSz++;\r\n\t\t}\r\n\t\treturn size;\r\n\t}",
"private void pushRemainingToBody(ByteBuffer buffer, DynamicByteBuffer body, int size) {\n\t\t// If buffer is empty or there is no clength then skip this\n\t\tif (size == 0 || !buffer.hasRemaining()) {\n\t\t\treturn;\n\t\t}\n\n\t\tif (body.position() + buffer.remaining() > size) {\n\t\t\tbody.put(buffer.array(), buffer.position(), size - body.position());\n\t\t} else {\n\t\t\tbody.put(buffer.array(), buffer.position(), buffer.remaining());\n\t\t}\n\t}",
"public void trimToSize() {\n if (size() != this.buffer.length) {\n this.buffer = toArray();\n }\n }",
"public int getBufferSize() {\n return this.response.getBufferSize();\n }",
"@Override\n public int size() {\n return currentSize;\n }",
"protected void ensureBufferSpace(int expectedAdditions) {\n final int bufferLen = (buffer == null ? 0 : buffer.length);\n if (elementsCount + expectedAdditions > bufferLen) {\n final int newSize = resizer.grow(bufferLen, elementsCount, expectedAdditions);\n assert newSize >= elementsCount + expectedAdditions : \"Resizer failed to\" + \" return sensible new size: \"\n + newSize + \" <= \" + (elementsCount + expectedAdditions);\n\n this.buffer = Arrays.copyOf(buffer, newSize);\n }\n }",
"@Override\n\tpublic int remainingCapacity() {\n\t\treturn 0;\n\t}",
"@Override\n\tpublic long size() {\n\t\treturn this.currentLength.get();\n\t}",
"public int getReceiveBufferSize() {\n return soRcvBuf;\n }",
"@Override\n public int size() {\n return curSize;\n }",
"private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }",
"@Override\n public int getUsedSize() {\n return usedSize;\n }",
"public int getCurrentSize() {\n return count;\n }",
"public void write() {\n/* 1062 */ this.cbSize = size();\n/* 1063 */ super.write();\n/* */ }",
"@Override\n public int fillCount(){\n return fillCount;\n }",
"private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }",
"@Override\n public boolean isFull(){\n return (count == size);\n \n }",
"public int size(){\r\n return currentSize;\r\n }",
"private void resetBytesFree()\r\n {\r\n this.bytesFree.set(0);\r\n }",
"@Override\n public int size() {\n return (totalSize - offset);\n }",
"protected long getBytesFree()\r\n {\r\n return this.bytesFree.get();\r\n }",
"public byte[] allocReadIOBuffer(int minSize)\n/* */ {\n/* 154 */ _verifyAlloc(this._readIOBuffer);\n/* 155 */ return this._readIOBuffer = this._bufferRecycler.allocByteBuffer(0, minSize);\n/* */ }",
"public byte[] allocBase64Buffer()\n/* */ {\n/* 175 */ _verifyAlloc(this._base64Buffer);\n/* 176 */ return this._base64Buffer = this._bufferRecycler.allocByteBuffer(3);\n/* */ }",
"protected final boolean growBuffer(int type) {\n if( null !=buffer && !sealed ) {\n if( !fitElementInBuffer(type) ) {\n // save olde values ..\n final Buffer _vertexArray=vertexArray, _colorArray=colorArray, _normalArray=normalArray, _textCoordArray=textCoordArray;\n \n if ( reallocateBuffer(resizeElementCount) ) {\n if(null!=_vertexArray) {\n _vertexArray.flip();\n Buffers.put(vertexArray, _vertexArray);\n }\n if(null!=_colorArray) {\n _colorArray.flip();\n Buffers.put(colorArray, _colorArray);\n }\n if(null!=_normalArray) {\n _normalArray.flip();\n Buffers.put(normalArray, _normalArray);\n }\n if(null!=_textCoordArray) {\n _textCoordArray.flip();\n Buffers.put(textCoordArray, _textCoordArray);\n }\n return true;\n }\n }\n }\n return false;\n }",
"public final long getSize() { return size; }",
"private int ensureBuffer(int offset, int length) throws IOException {\n\t\tfinal int lastPos = offset + length - 1;\n\t\tfinal int desiredSize = ((lastPos / BUFFER_SIZE) + 1) * BUFFER_SIZE;\n\t\tfinal int currentSize = this.buffer.length;\n\n\t\tif (desiredSize > currentSize) {\n\t\t\tfinal byte[] readBuffer = new byte[desiredSize - currentSize];\n\t\t\tfinal int count = this.in.read(readBuffer);\n\n\t\t\tif (count > 0) {\n\t\t\t\tfinal byte[] newBuffer = new byte[currentSize + count];\n\t\t\t\tSystem.arraycopy(this.buffer, 0, newBuffer, 0, currentSize);\n\t\t\t\tSystem.arraycopy(readBuffer, 0, newBuffer, currentSize, count);\n\t\t\t\tthis.buffer = newBuffer;\n\t\t\t}\n\t\t\treturn (lastPos < this.buffer.length) ? length : length - (lastPos - this.buffer.length + 1);\n\t\t}\n\t\treturn length;\n\t}",
"public final int getLength()\n {\n return m_firstFree;\n }",
"private int determineCalculatedBufferSize() {\n\n float percentOfASecond = (float) BUFFER_SIZE_IN_MS / 1000.0f;\n int numSamplesRequired = (int) ((float) RATE * percentOfASecond);\n int minBufferSize = determineMinimumBufferSize();\n\n int bufferSize;\n // each sample takes two bytes, need a bigger buffer\n if (ENCODING == AudioFormat.ENCODING_PCM_16BIT) {\n bufferSize = numSamplesRequired * 2;\n } else {\n bufferSize = numSamplesRequired;\n }\n\n if (bufferSize < minBufferSize) {\n Log.w(LOG_TAG, \"Increasing buffer to hold enough samples \"\n + minBufferSize + \" was: \" + bufferSize);\n bufferSize = minBufferSize;\n }\n\n return bufferSize;\n }",
"protected void checkSize(){\n if (size == data.length){\n resize( 2 * data.length);\n }\n }",
"public void addData(byte[] arrby) {\n if (arrby == null) return;\n {\n try {\n if (arrby.length == 0) {\n return;\n }\n if ((int)this.len.get() + arrby.length > this.buf.length) {\n Log.w(TAG, \"setData: Input size is greater than the maximum allocated ... returning! b.len = \" + arrby.length);\n return;\n }\n this.buf.add(arrby);\n this.len.set(this.len.get() + (long)arrby.length);\n return;\n }\n catch (Exception exception) {\n Log.e(TAG, \"addData exception!\");\n exception.printStackTrace();\n return;\n }\n }\n }",
"@Override public long getInitializedDataLength() {\n return getDataLength();\n }",
"private void resetBuffer() {\n baos.reset();\n }",
"public void allocate(int size_bytes) {\r\n size = size_bytes;\r\n int elems = (size + BYTES_IN_ELEMENT - 1) / BYTES_IN_ELEMENT;\r\n data = new int[elems];\r\n \r\n // Reset head position\r\n offset = 0;\r\n cbyte = 0;\r\n bytenum = 0;\r\n elem = 0;\r\n }",
"public synchronized long size() {\n return IDX_START_OF_CONTENT + (slots * bytesPerSlot);\n }",
"public int getSize(){return _size;}",
"private void growSize() {\n size++;\n\n if (size > maxSize) {\n if (keys.length == Integer.MAX_VALUE) {\n throw new IllegalStateException(\"Max capacity reached at size=\" + size);\n }\n\n // Double the capacity.\n rehash(keys.length << 1);\n }\n }",
"private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }",
"@Override\n public int estimateSize() {\n return 8 + 8 + 1 + 32 + 64;\n }",
"private void grow() {\n int oldCapacity = this.values.length;\n int newCapacity = oldCapacity + (oldCapacity >> 1);\n Object[] newValues = new Object[newCapacity];\n System.arraycopy(this.values, 0, newValues, 0, oldCapacity);\n this.values = newValues;\n }",
"private int zzMaxBufferLen() {\n return Integer.MAX_VALUE;\n }",
"private int zzMaxBufferLen() {\n return Integer.MAX_VALUE;\n }",
"public int size() {\n return 4 + value.length + BufferUtil.paddingLength(value.length, 4);\n }",
"private void ensureCapacity(int count) {\n\t\tint capacity = getCapacity();\n\t\t\n\t\tint newLength = length + count;\n\t\tif (capacity >= newLength)\n\t\t\treturn;\n\n\t\t// Double capacity\n\t\tcapacity <<= 1;\n\t\t\n\t\tif (newLength > capacity)\n\t\t\tcapacity = newLength;\n\n\t\tchar[] newBuffer = new char[capacity];\n\t\tSystem.arraycopy(buffer, 0, newBuffer, 0, length);\n\t\tbuffer = newBuffer;\n\t}",
"protected void setBuffer(int width, int height)\n\t{\n\t\tthis.width=width;\n\t\tthis.height=height;\n\t\tlength=width*height;\n\t}",
"private void resizeBuffer(int size) {\n if (size > m_maxImgBufferSize) {\n if (size > MAX_IMG_SIZE_BYTES) {\n size = MAX_IMG_SIZE_BYTES;\n }\n\n m_maxImgBufferSize = size + 100;\n m_imgBuffer = new byte[m_maxImgBufferSize];\n m_baistream = new ByteArrayInputStream(m_imgBuffer);\n }\n }",
"private void setFinalSize()\n {\n if (! m_isEmpty)\n return;\n m_isEmpty = false;\n setSize(m_finalSize);\n if (m_finalLocation != null)\n setLocation(m_finalLocation);\n }",
"@Override\r\n\tpublic boolean isfull() {\n\t\t\r\n\t\treturn count == size ;\r\n\t}",
"public static void bufferTest(){\n // 获取非直接缓冲区\n ByteBuffer byteBuffer = ByteBuffer.allocate(1024);\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * position = 0\n * limit = 1024\n * capacity = 1024\n * **/\n // 获取直接缓冲区\n// ByteBuffer byteBuffer = ByteBuffer.allocateDirect(1024);\n// byteBuffer.put()\n String s1 = \"helloworld\";\n String s2 = \"你好世界\";\n byte[] b1 = s1.getBytes();\n byte[] b2 = s2.getBytes();\n System.out.println(Arrays.toString(b1));\n System.out.println(Arrays.toString(b2));\n System.out.println(new String());\n byteBuffer.put(b1);\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * position = 10\n * limit = 1024\n * capacity = 1024\n * 输出结果表示put之后只有positoin位置变了,limit和capacity没有变\n * 表明position到limit之间的数据还是可以继续put\n * **/\n byteBuffer.put(b2);\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * position = 22\n * limit = 1024\n * capacity = 1024\n * 输出结果表示继续put之后只有positoin位置变了,limit和capacity还是没有变\n * **/\n byteBuffer.put(100,(byte)100);\n System.out.println(\"put之后直接get=\" + byteBuffer.get(100));\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n System.out.println(byteBuffer.get(100));\n /**\n * position = 22\n * limit = 1024\n * capacity = 1024\n * put指定下标的位置,赋值一个字节,那么position limit capacity都没有变,只是赋值了\n * **/\n byteBuffer.flip();//改变positon和limit位置\n System.out.println(\"position = \" + byteBuffer.position());\n System.out.println(\"limit = \" + byteBuffer.limit());\n System.out.println(\"capacity = \" + byteBuffer.capacity());\n /**\n * flip之后limit的值变为22,之前put的100位置的字节无法进行有效读取\n * **/\n byte[] b3 = new byte[byteBuffer.limit()];\n byteBuffer.get(b3);\n System.out.println(new String(b3));\n // 表示byteBuffer还有多少可用\n int remaining = byteBuffer.remaining();\n // 为当前limit赋值,但是如果之后调用了flip方法limit还是会赋值为position\n byteBuffer.limit(10);\n // array()获取了当前数组中所有有效字节数组,包括刚才put到下标100的那个位置\n byte[] b4 = byteBuffer.array();\n System.out.println(new String(b4));\n // 为当前position位置做标记配合reset使用\n// byteBuffer.mark();\n// // 将positoin值变为直接做过标记的mark值\n// byteBuffer.reset();\n// // 分割缓冲区\n// byteBuffer.slice();\n // clear方法重新初始化了position limit capacity和mark的值,但是没有清除数组中的数据\n byteBuffer.clear();\n b4 = byteBuffer.array();\n System.out.println(\"clear之后=\" + new String(b4));\n }",
"public int size() {\n\t\treturn currentSize;\n\n\t}",
"int memSize() {\n return super.memSize() + 4 * 4; }",
"int getCurrentSize();",
"public int size() {\n return dataSize;\n }",
"public synchronized long size() {\n\t\treturn size;\n\t}",
"@Override\n public DataBuffer reallocate(long length) {\n val oldPointer = ptrDataBuffer.primaryBuffer();\n\n if (isAttached()) {\n val capacity = length * getElementSize();\n val nPtr = getParentWorkspace().alloc(capacity, dataType(), false);\n this.ptrDataBuffer.setPrimaryBuffer(new PagedPointer(nPtr, 0), length);\n\n switch (dataType()) {\n case BOOL:\n pointer = nPtr.asBoolPointer();\n indexer = new DeviceBooleanIndexer((BooleanPointer) pointer);\n break;\n case UTF8:\n case BYTE:\n case UBYTE:\n pointer = nPtr.asBytePointer();\n indexer = new DeviceByteIndexer((BytePointer) pointer);\n break;\n case UINT16:\n case SHORT:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceShortIndexer((ShortPointer) pointer);\n break;\n case UINT32:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceUIntIndexer((IntPointer) pointer);\n break;\n case INT:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceIntIndexer((IntPointer) pointer);\n break;\n case DOUBLE:\n pointer = nPtr.asDoublePointer();\n indexer = new DeviceDoubleIndexer((DoublePointer) pointer);\n break;\n case FLOAT:\n pointer = nPtr.asFloatPointer();\n indexer = new DeviceFloatIndexer((FloatPointer) pointer);\n break;\n case HALF:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceHalfIndexer((ShortPointer) pointer);\n break;\n case BFLOAT16:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceBfloat16Indexer((ShortPointer) pointer);\n break;\n case UINT64:\n case LONG:\n pointer = nPtr.asLongPointer();\n indexer = new DeviceLongIndexer((LongPointer) pointer);\n break;\n }\n\n nativeOps.memcpySync(pointer, oldPointer, this.length() * getElementSize(), 3, null);\n workspaceGenerationId = getParentWorkspace().getGenerationId();\n } else {\n this.ptrDataBuffer.expand(length);\n val nPtr = new PagedPointer(this.ptrDataBuffer.primaryBuffer(), length);\n\n switch (dataType()) {\n case BOOL:\n pointer = nPtr.asBoolPointer();\n indexer = new DeviceBooleanIndexer((BooleanPointer) pointer);\n break;\n case UTF8:\n case BYTE:\n case UBYTE:\n pointer = nPtr.asBytePointer();\n indexer = new DeviceByteIndexer((BytePointer) pointer);\n break;\n case UINT16:\n case SHORT:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceShortIndexer((ShortPointer) pointer);\n break;\n case UINT32:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceUIntIndexer((IntPointer) pointer);\n break;\n case INT:\n pointer = nPtr.asIntPointer();\n indexer = new DeviceIntIndexer((IntPointer) pointer);\n break;\n case DOUBLE:\n pointer = nPtr.asDoublePointer();\n indexer = new DeviceDoubleIndexer((DoublePointer) pointer);\n break;\n case FLOAT:\n pointer = nPtr.asFloatPointer();\n indexer = new DeviceFloatIndexer((FloatPointer) pointer);\n break;\n case HALF:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceHalfIndexer((ShortPointer) pointer);\n break;\n case BFLOAT16:\n pointer = nPtr.asShortPointer();\n indexer = new DeviceBfloat16Indexer((ShortPointer) pointer);\n break;\n case UINT64:\n case LONG:\n pointer = nPtr.asLongPointer();\n indexer = new DeviceLongIndexer((LongPointer) pointer);\n break;\n }\n }\n\n this.underlyingLength = length;\n this.length = length;\n return this;\n }",
"public void setBufferSize(int bufferSize) {\n this.bufferSize = bufferSize;\n }",
"public ArrayRingBuffer(int capacity) {\n Buffer_num = capacity;\n rb =(T[]) new Object[Buffer_num];\n fillCount = 0;\n first = 0;\n last = 0;\n }",
"private int getBufferWidth() {\n\t\treturn this.f2[0].length;\n\t}",
"public int size() { return dequeSize; }",
"protected boolean reserve(final int size) {\n\t\tif (size > this.buffer.length) {\n\t\t\tfinal long oldbuffer[] = this.buffer;\n\t\t\tthis.buffer = new long[size];\n\t\t\tSystem.arraycopy(oldbuffer, 0, this.buffer, 0, oldbuffer.length);\n\t\t\tthis.rlw.array = this.buffer;\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"@java.lang.Override\n public int getSize() {\n return size_;\n }",
"@java.lang.Override\n public int getSize() {\n return size_;\n }",
"@Override\n\tpublic void builder(ByteBuffer buffer) {\n\t\tsetV(buffer);\n\t\tsetO(buffer);\n\t\tsetT(buffer);\n\t\tsetLen(buffer);\n\t\tsetContents(buffer);\n\t\tsetTotalByteLength();\n\t}",
"@Override\n public int size() {\n return _size;\n }",
"@Override\n public int size() {\n return size;\n }",
"public int size()\r\n\t{\r\n\t\treturn currentSize;\r\n\t}",
"public RingBuffer(int capacity){\n structure = new LinkedList<E>();\n this.capacity = capacity;\n }",
"void fill( byte b[] , int len )\n \tthrows IOException {\n\t int remaining = _l - _o;\n\t //\n\t // Did we alread read enough bytes?\n\t if(remaining >= len) {\n\t \tSystem.arraycopy(_random, _o, b, 0, len);\t \t\n\t \t_o += len;\n\t \t\n\t \treturn;\n\t }\n\t //\n\t // Take the complete remaining bytes from buffer\n\t if(remaining > 0) {\n\t \tSystem.arraycopy(_random, _o, b, 0, remaining);\n\t \t//\n\t \t// Reduced needed bytes\n\t \tlen -= remaining;\n\t \t//\n\t \t// leave it up to the next ensure a continuous block\n\t \t_o = _l;\n\t }\n\t //\n\t // Read the rest direct from the InputStream\n\t while ( len > 0 ) {\n\t final int bytesRead = _in.read( b , remaining , len );\n\t \t//\n\t \t// Reduced needed bytes\t \n\t len -= bytesRead;\n\t //\n\t // Increase the number of read bytes because we reading directly from _in\n\t _read += bytesRead;\n\n\t remaining += bytesRead;\n\t }\n\t }"
] |
[
"0.7435478",
"0.72912085",
"0.7199767",
"0.71251106",
"0.71238726",
"0.7070302",
"0.7011204",
"0.6961924",
"0.68707275",
"0.6846339",
"0.6670104",
"0.66494733",
"0.6590218",
"0.65877324",
"0.6529688",
"0.65271026",
"0.6518055",
"0.64818555",
"0.64742386",
"0.6386109",
"0.6324302",
"0.630388",
"0.6286467",
"0.627473",
"0.6263327",
"0.6241516",
"0.61823213",
"0.61404175",
"0.61365145",
"0.6132118",
"0.6125187",
"0.6118577",
"0.61070925",
"0.6105429",
"0.61034435",
"0.60897815",
"0.6081696",
"0.6076089",
"0.60632443",
"0.6058848",
"0.604521",
"0.6011731",
"0.60109544",
"0.6009256",
"0.6000898",
"0.59770864",
"0.5975446",
"0.59434915",
"0.5936466",
"0.5930284",
"0.5920147",
"0.5901802",
"0.58886343",
"0.5887164",
"0.5881029",
"0.58735126",
"0.5868951",
"0.5863595",
"0.5850877",
"0.5849603",
"0.5830304",
"0.58233136",
"0.5820642",
"0.580422",
"0.5797699",
"0.5785026",
"0.5784027",
"0.57820475",
"0.5773355",
"0.57707053",
"0.576902",
"0.5767613",
"0.5754924",
"0.57465047",
"0.57465047",
"0.5742271",
"0.57398415",
"0.5736793",
"0.5724476",
"0.57236063",
"0.57178897",
"0.5715373",
"0.57100755",
"0.5709295",
"0.57068306",
"0.5702946",
"0.5699011",
"0.56936187",
"0.569328",
"0.5691217",
"0.5690961",
"0.56830704",
"0.56828415",
"0.56816113",
"0.56816113",
"0.5680363",
"0.56802684",
"0.5680149",
"0.5678491",
"0.5678276",
"0.56767917"
] |
0.0
|
-1
|
split up i into its bytes and store to the array Data input/output require a big endian format.
|
public void writeInt(int i) throws IOException {
mBuffer[mBufferLength+3] = (byte) i;
mBuffer[mBufferLength+2] = (byte) (i>>>8);
mBuffer[mBufferLength+1] = (byte) (i>>>16);
mBuffer[mBufferLength] = (byte) (i>>>24);
mBufferLength += 4;
// TODO: on the first filling of the buffer, flush when bufferLength+offset is at the end of a segment
if (firstFill && ((mBufferLength >= firstFillThreshold))) {
this.flush();
firstFill = false;
}
if (mBufferLength == BUFFER_SIZE){
this.flush();
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static byte[] toLEBytes(int i) {\n\t\treturn ByteBuffer.allocate(4).order(ByteOrder.LITTLE_ENDIAN).putInt(i).array();\n\t}",
"private byte[] intToBytes(int i) {\n\t\tb.clear();\n\t\treturn b.order(ByteOrder.LITTLE_ENDIAN).putInt(i).array();\n\t}",
"private byte[] intToByteArray(int i) {\n ByteBuffer bbf = ByteBuffer.allocate(4)\n .order(ByteOrder.LITTLE_ENDIAN)\n .putInt(i);\n return bbf.array();\n }",
"private byte[] bit_conversion(int i) {\n // originally integers (ints) cast into bytes\n // byte byte7 = (byte)((i & 0xFF00000000000000L) >>> 56);\n // byte byte6 = (byte)((i & 0x00FF000000000000L) >>> 48);\n // byte byte5 = (byte)((i & 0x0000FF0000000000L) >>> 40);\n // byte byte4 = (byte)((i & 0x000000FF00000000L) >>> 32);\n\n // only using 4 bytes\n byte byte3 = (byte) ((i & 0xFF000000) >>> 24); // 0\n byte byte2 = (byte) ((i & 0x00FF0000) >>> 16); // 0\n byte byte1 = (byte) ((i & 0x0000FF00) >>> 8); // 0\n byte byte0 = (byte) ((i & 0x000000FF));\n // {0,0,0,byte0} is equivalent, since all shifts >=8 will be 0\n return (new byte[] { byte3, byte2, byte1, byte0 });\n }",
"static byte[] toBEBytes(int i) {\n\t\treturn ByteBuffer.allocate(4).order(ByteOrder.BIG_ENDIAN).putInt(i).array();\n\t}",
"public final void mo4385d(int i) {\n try {\n byte[] bArr = this.f20653b;\n int i2 = this.f20656e;\n this.f20656e = i2 + 1;\n bArr[i2] = (byte) i;\n bArr = this.f20653b;\n i2 = this.f20656e;\n this.f20656e = i2 + 1;\n bArr[i2] = (byte) (i >> 8);\n bArr = this.f20653b;\n i2 = this.f20656e;\n this.f20656e = i2 + 1;\n bArr[i2] = (byte) (i >> 16);\n bArr = this.f20653b;\n i2 = this.f20656e;\n this.f20656e = i2 + 1;\n bArr[i2] = i >> 24;\n } catch (int i3) {\n throw new zzc(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Integer.valueOf(this.f20656e), Integer.valueOf(this.f20655d), Integer.valueOf(1)}), i3);\n }\n }",
"public static byte[] intToByte(int i) {\n return new byte[] {(byte)(i>>24), (byte)(i>>16), (byte)(i>>8), (byte)i};\n }",
"byte[] IntToByte(int i)\r\n {\r\n return Integer.toString(i).getBytes();\r\n }",
"private void mo488b(int i) {\n int i2 = 0;\n while ((i & -128) != 0) {\n this.f515a[i2] = (byte) ((i & 127) | 128);\n i >>>= 7;\n i2++;\n }\n byte[] bArr = this.f515a;\n bArr[i2] = (byte) i;\n this.f552g.mo492b(bArr, 0, i2 + 1);\n }",
"private static void m17789a(byte[] bArr, int i, int i2) {\n bArr[i + 0] = (byte) (i2 >> 0);\n bArr[i + 1] = (byte) (i2 >> 8);\n bArr[i + 2] = (byte) (i2 >> 16);\n bArr[i + 3] = (byte) (i2 >> 24);\n }",
"public abstract void mo4380b(byte[] bArr, int i, int i2);",
"public static byte[] intToBytes(int i) {\n\n ByteBuffer byteBuffer = ByteBuffer.allocate(NUM_BYTES_IN_INT);\n byteBuffer.putInt(i);\n return byteBuffer.array();\n\n }",
"public final void setBufferInt(final byte[] buffer, final int data, final int i, final boolean endianess) {\r\n\r\n if (endianess == FileDicomBaseInner.BIG_ENDIAN) {\r\n buffer[i] = (byte) (data >>> 24);\r\n buffer[i + 1] = (byte) (data >>> 16);\r\n buffer[i + 2] = (byte) (data >>> 8);\r\n buffer[i + 3] = (byte) (data & 0xff);\r\n } else {\r\n buffer[i] = (byte) (data & 0xff);\r\n buffer[i + 1] = (byte) (data >>> 8);\r\n buffer[i + 2] = (byte) (data >>> 16);\r\n buffer[i + 3] = (byte) (data >>> 24);\r\n }\r\n }",
"int mo1684a(byte[] bArr, int i, int i2);",
"void mo88a(byte[] bArr, int i, int i2);",
"private byte[] shortToByteArray(short i) {\n ByteBuffer bbf = ByteBuffer.allocate(2)\n .order(ByteOrder.LITTLE_ENDIAN)\n .putShort(i);\n return bbf.array();\n }",
"private static int m17785a(byte[] bArr, int i) {\n return ((bArr[i + 0] | (bArr[i + 1] << 8)) | (bArr[i + 2] << 16)) | (bArr[i + 3] << 24);\n }",
"public void mo4641a(int i, byte[] bArr) {\n this.f2766a.bindBlob(i, bArr);\n }",
"public abstract void mo13593a(byte[] bArr, int i, int i2);",
"public static void m1033a(byte[] bArr, int i) {\n }",
"public final void d(int i) throws IOException {\n byte b2 = (byte) i;\n if (this.c == this.b) {\n StringBuilder sb = new StringBuilder(\"Out of space: position=\");\n sb.append(this.c);\n sb.append(\", limit=\");\n sb.append(this.b);\n throw new IOException(sb.toString());\n }\n byte[] bArr = this.a;\n int i2 = this.c;\n this.c = i2 + 1;\n bArr[i2] = b2;\n }",
"void mo8445a(int i, String str, int i2, byte[] bArr);",
"abstract void mo4384c(byte[] bArr, int i, int i2);",
"void mo30633b(int i, String str, byte[] bArr);",
"public byte[] i2b(int value) {\n byte[] data = new byte[4];\n data[0] = (byte) ((value >> 24) & 0xFF);\n data[1] = (byte) ((value >> 16) & 0xFF);\n data[2] = (byte) ((value >> 8) & 0xFF);\n data[3] = (byte) (value & 0xFF);\n return data;\n }",
"public final void mo4380b(byte[] bArr, int i, int i2) {\n try {\n System.arraycopy(bArr, i, this.f20653b, this.f20656e, i2);\n this.f20656e += i2;\n } catch (byte[] bArr2) {\n throw new zzc(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Integer.valueOf(this.f20656e), Integer.valueOf(this.f20655d), Integer.valueOf(i2)}), bArr2);\n }\n }",
"public int mo35662b(byte[] bArr, int i, int i2, OutputStream outputStream) throws IOException {\n int i3 = i2 + i;\n while (i3 > i && m44512a((char) bArr[i3 - 1])) {\n i3--;\n }\n int i4 = 0;\n while (i < i3) {\n while (i < i3 && m44512a((char) bArr[i])) {\n i++;\n }\n int i5 = i + 1;\n byte b = this.f31120b[bArr[i]];\n while (i5 < i3 && m44512a((char) bArr[i5])) {\n i5++;\n }\n int i6 = i5 + 1;\n byte b2 = this.f31120b[bArr[i5]];\n if ((b | b2) >= 0) {\n outputStream.write((b << 4) | b2);\n i4++;\n i = i6;\n } else {\n throw new IOException(\"invalid characters encountered in Hex data\");\n }\n }\n return i4;\n }",
"public final void mo4376b(int i) {\n byte[] bArr;\n int i2;\n if (!zzut.f17550c || mo4375b() < 10) {\n while ((i & -128) != 0) {\n bArr = this.f20653b;\n i2 = this.f20656e;\n this.f20656e = i2 + 1;\n bArr[i2] = (byte) ((i & 127) | 128);\n i >>>= 7;\n }\n try {\n bArr = this.f20653b;\n i2 = this.f20656e;\n this.f20656e = i2 + 1;\n bArr[i2] = (byte) i;\n return;\n } catch (int i3) {\n throw new zzc(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Integer.valueOf(this.f20656e), Integer.valueOf(this.f20655d), Integer.valueOf(1)}), i3);\n }\n }\n while ((i3 & -128) != 0) {\n bArr = this.f20653b;\n i2 = this.f20656e;\n this.f20656e = i2 + 1;\n dp.m11753a(bArr, (long) i2, (byte) ((i3 & 127) | 128));\n i3 >>>= 7;\n }\n bArr = this.f20653b;\n i2 = this.f20656e;\n this.f20656e = i2 + 1;\n dp.m11753a(bArr, (long) i2, (byte) i3);\n }",
"private String fetch_and_decode(int i) {\n String mem = this.mem.getDataAt(i);\n if(mem == null) {//temp fix\n return \"0F00\";\n }\n return mem;\n }",
"protected static byte[] m5339a(byte[] bArr, int i) {\n if (bArr == null || bArr.length == 0) {\n return null;\n }\n int indexOf = new String(bArr).indexOf(0);\n if (indexOf <= 0) {\n i = 1;\n } else if (indexOf + 1 <= i) {\n i = indexOf + 1;\n }\n byte[] bArr2 = new byte[i];\n System.arraycopy(bArr, 0, bArr2, 0, i);\n bArr2[i - 1] = (byte) 0;\n return bArr2;\n }",
"public final void mo4380b(byte[] bArr, int i, int i2) {\n if (bArr != null && i >= 0 && i2 >= 0 && bArr.length - i2 >= i) {\n long j = (long) i2;\n if (this.f20664f - j >= this.f20666h) {\n dp.m11754a(bArr, (long) i, this.f20666h, j);\n this.f20666h += j;\n return;\n }\n }\n if (bArr == null) {\n throw new NullPointerException(\"value\");\n }\n throw new zzc(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Long.valueOf(this.f20666h), Long.valueOf(this.f20664f), Integer.valueOf(i2)}));\n }",
"public final void setBufferLong(final byte[] buffer, final long data, final int i, final boolean endianess) {\r\n\r\n if (endianess == FileDicomBaseInner.BIG_ENDIAN) {\r\n buffer[i] = (byte) (data >>> 56);\r\n buffer[i + 1] = (byte) (data >>> 48);\r\n buffer[i + 2] = (byte) (data >>> 40);\r\n buffer[i + 3] = (byte) (data >>> 32);\r\n buffer[i + 4] = (byte) (data >>> 24);\r\n buffer[i + 5] = (byte) (data >>> 16);\r\n buffer[i + 6] = (byte) (data >>> 8);\r\n buffer[i + 7] = (byte) (data & 0xff);\r\n } else {\r\n buffer[i] = (byte) (data & 0xff);\r\n buffer[i + 1] = (byte) (data >>> 8);\r\n buffer[i + 2] = (byte) (data >>> 16);\r\n buffer[i + 3] = (byte) (data >>> 24);\r\n buffer[i + 4] = (byte) (data >>> 32);\r\n buffer[i + 5] = (byte) (data >>> 40);\r\n buffer[i + 6] = (byte) (data >>> 48);\r\n buffer[i + 7] = (byte) (data >>> 56);\r\n }\r\n }",
"public void mo23448a(byte[] bArr, int i, int i2) {\n if (this.f19967a) {\n int i3 = i2 - i;\n byte[] bArr2 = this.f19970d;\n int length = bArr2.length;\n int i4 = this.f19968b;\n if (length < i4 + i3) {\n this.f19970d = Arrays.copyOf(bArr2, (i4 + i3) * 2);\n }\n System.arraycopy(bArr, i, this.f19970d, this.f19968b, i3);\n this.f19968b += i3;\n }\n }",
"private static int packToByteArray(byte [] input, byte [] data, int cursor) {\r\n\t\tint length = input.length;\r\n\t\tif(length > 65565){\r\n\t\t\tthrow new RuntimeException(\"Input length exceeds 65565 bytes [\"+length+\"]\");\r\n\t\t}\r\n\t\tif(cursor+length > data.length){\r\n\t\t\tthrow new RuntimeException(\"Internal Error: Required space [\"+cursor+length+\"] exceeds available buffer size [\"+data.length+\"]\");\r\n\t\t}\r\n\t\tdata[cursor] = (byte) ((length & 0xff00) >>> 8);\t// MSB\r\n\t\tdata[cursor+1] = (byte)(length & 0x00ff);\t\t\t// LSB\r\n\t\tcursor += 2;\r\n\t\tfor(int i = 0; i < length; i++){\r\n\t\t\tdata[cursor+i] = input[i];\r\n\t\t}\r\n\t\treturn cursor+length;\r\n\t}",
"public final byte[] mo18193a(int i) {\n return new byte[i];\n }",
"public static byte[] m31086a(byte[] bArr, int i, int i2) {\n byte[] bArr2 = f29310a;\n byte[] bArr3 = new byte[(bArr2.length + i2)];\n System.arraycopy(bArr2, 0, bArr3, 0, bArr2.length);\n System.arraycopy(bArr, i, bArr3, f29310a.length, i2);\n return bArr3;\n }",
"public void mo9826b(byte[] bArr, int i, int i2) {\n int i3 = this.f9107e;\n int i4 = this.f9108f;\n if (i3 - i4 >= i2) {\n System.arraycopy(bArr, i, this.f9106d, i4, i2);\n this.f9108f += i2;\n } else {\n int i5 = i3 - i4;\n System.arraycopy(bArr, i, this.f9106d, i4, i5);\n int i6 = i + i5;\n i2 -= i5;\n this.f9108f = this.f9107e;\n this.f9109g += i5;\n mo9827i();\n if (i2 <= this.f9107e) {\n System.arraycopy(bArr, i6, this.f9106d, 0, i2);\n this.f9108f = i2;\n } else {\n this.f9113h.write(bArr, i6, i2);\n }\n }\n this.f9109g += i2;\n }",
"public void decode(byte[] bArr, int i, int i2, BaseNCodec.Context context) {\n byte b;\n int i3 = i2;\n BaseNCodec.Context context2 = context;\n if (!context2.eof) {\n boolean z = true;\n if (i3 < 0) {\n context2.eof = true;\n }\n int i4 = i;\n int i5 = 0;\n while (true) {\n if (i5 >= i3) {\n break;\n }\n int i6 = i4 + 1;\n byte b2 = bArr[i4];\n if (b2 == this.pad) {\n context2.eof = z;\n break;\n }\n byte[] ensureBufferSize = ensureBufferSize(this.decodeSize, context2);\n if (b2 >= 0) {\n byte[] bArr2 = this.decodeTable;\n if (b2 < bArr2.length && (b = bArr2[b2]) >= 0) {\n context2.modulus = (context2.modulus + (z ? 1 : 0)) % 8;\n context2.lbitWorkArea = (context2.lbitWorkArea << 5) + ((long) b);\n if (context2.modulus == 0) {\n int i7 = context2.pos;\n context2.pos = i7 + 1;\n ensureBufferSize[i7] = (byte) ((int) ((context2.lbitWorkArea >> 32) & 255));\n int i8 = context2.pos;\n context2.pos = i8 + 1;\n ensureBufferSize[i8] = (byte) ((int) ((context2.lbitWorkArea >> 24) & 255));\n int i9 = context2.pos;\n context2.pos = i9 + 1;\n ensureBufferSize[i9] = (byte) ((int) ((context2.lbitWorkArea >> 16) & 255));\n int i10 = context2.pos;\n context2.pos = i10 + 1;\n ensureBufferSize[i10] = (byte) ((int) ((context2.lbitWorkArea >> 8) & 255));\n int i11 = context2.pos;\n context2.pos = i11 + 1;\n ensureBufferSize[i11] = (byte) ((int) (context2.lbitWorkArea & 255));\n }\n }\n }\n i5++;\n i4 = i6;\n z = true;\n }\n if (context2.eof && context2.modulus >= 2) {\n byte[] ensureBufferSize2 = ensureBufferSize(this.decodeSize, context2);\n switch (context2.modulus) {\n case 2:\n int i12 = context2.pos;\n context2.pos = i12 + 1;\n ensureBufferSize2[i12] = (byte) ((int) ((context2.lbitWorkArea >> 2) & 255));\n return;\n case 3:\n int i13 = context2.pos;\n context2.pos = i13 + 1;\n ensureBufferSize2[i13] = (byte) ((int) ((context2.lbitWorkArea >> 7) & 255));\n return;\n case 4:\n context2.lbitWorkArea >>= 4;\n int i14 = context2.pos;\n context2.pos = i14 + 1;\n ensureBufferSize2[i14] = (byte) ((int) ((context2.lbitWorkArea >> 8) & 255));\n int i15 = context2.pos;\n context2.pos = i15 + 1;\n ensureBufferSize2[i15] = (byte) ((int) (context2.lbitWorkArea & 255));\n return;\n case 5:\n context2.lbitWorkArea >>= 1;\n int i16 = context2.pos;\n context2.pos = i16 + 1;\n ensureBufferSize2[i16] = (byte) ((int) ((context2.lbitWorkArea >> 16) & 255));\n int i17 = context2.pos;\n context2.pos = i17 + 1;\n ensureBufferSize2[i17] = (byte) ((int) ((context2.lbitWorkArea >> 8) & 255));\n int i18 = context2.pos;\n context2.pos = i18 + 1;\n ensureBufferSize2[i18] = (byte) ((int) (context2.lbitWorkArea & 255));\n return;\n case 6:\n context2.lbitWorkArea >>= 6;\n int i19 = context2.pos;\n context2.pos = i19 + 1;\n ensureBufferSize2[i19] = (byte) ((int) ((context2.lbitWorkArea >> 16) & 255));\n int i20 = context2.pos;\n context2.pos = i20 + 1;\n ensureBufferSize2[i20] = (byte) ((int) ((context2.lbitWorkArea >> 8) & 255));\n int i21 = context2.pos;\n context2.pos = i21 + 1;\n ensureBufferSize2[i21] = (byte) ((int) (context2.lbitWorkArea & 255));\n return;\n case 7:\n context2.lbitWorkArea >>= 3;\n int i22 = context2.pos;\n context2.pos = i22 + 1;\n ensureBufferSize2[i22] = (byte) ((int) ((context2.lbitWorkArea >> 24) & 255));\n int i23 = context2.pos;\n context2.pos = i23 + 1;\n ensureBufferSize2[i23] = (byte) ((int) ((context2.lbitWorkArea >> 16) & 255));\n int i24 = context2.pos;\n context2.pos = i24 + 1;\n ensureBufferSize2[i24] = (byte) ((int) ((context2.lbitWorkArea >> 8) & 255));\n int i25 = context2.pos;\n context2.pos = i25 + 1;\n ensureBufferSize2[i25] = (byte) ((int) (context2.lbitWorkArea & 255));\n return;\n default:\n throw new IllegalStateException(\"Impossible modulus \" + context2.modulus);\n }\n }\n }\n }",
"public final void mo9823b(byte[] bArr, int i, int i2) {\n try {\n System.arraycopy(bArr, i, this.f9110d, this.f9112f, i2);\n this.f9112f += i2;\n } catch (IndexOutOfBoundsException e) {\n throw new C3674d(String.format(\"Pos: %d, limit: %d, len: %d\", new Object[]{Integer.valueOf(this.f9112f), Integer.valueOf(this.f9111e), Integer.valueOf(i2)}), e);\n }\n }",
"@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }",
"private static byte[] m34877a(byte[] bArr, int i, int i2, byte[] bArr2, int i3) {\n int i4 = 0;\n int i5 = (i2 > 0 ? (bArr[i] << 24) >>> 8 : 0) | (i2 > 1 ? (bArr[i + 1] << 24) >>> 16 : 0);\n if (i2 > 2) {\n i4 = (bArr[i + 2] << 24) >>> 24;\n }\n int i6 = i5 | i4;\n if (i2 == 1) {\n byte[] bArr3 = f27334a;\n bArr2[i3] = bArr3[i6 >>> 18];\n bArr2[i3 + 1] = bArr3[(i6 >>> 12) & 63];\n int i7 = i3 + 3;\n bArr2[i3 + 2] = 61;\n bArr2[i7] = 61;\n return bArr2;\n } else if (i2 == 2) {\n byte[] bArr4 = f27334a;\n bArr2[i3] = bArr4[i6 >>> 18];\n bArr2[i3 + 1] = bArr4[(i6 >>> 12) & 63];\n bArr2[i3 + 2] = bArr4[(i6 >>> 6) & 63];\n bArr2[i3 + 3] = 61;\n return bArr2;\n } else if (i2 != 3) {\n return bArr2;\n } else {\n byte[] bArr5 = f27334a;\n bArr2[i3] = bArr5[i6 >>> 18];\n bArr2[i3 + 1] = bArr5[(i6 >>> 12) & 63];\n bArr2[i3 + 2] = bArr5[(i6 >>> 6) & 63];\n bArr2[i3 + 3] = bArr5[i6 & 63];\n return bArr2;\n }\n }",
"@Override\n public int read(byte[] b) throws IOException {\n int len = ((int) Math.ceil((b.length-24) / 32.0))*4+24;\n byte[] comp = new byte[len];\n in.read(comp);\n in.close();\n\n //copy the first 24 cells to b\n for (int i=0; i<24; i++)\n {\n b[i] = comp[i];\n }\n\n //4 cells represents byte --> int --> binary\n byte[] temp = new byte[4];\n int resInt;\n String resStr;\n int dif = b.length-24;\n int index = 0;\n for (int i=24; i<comp.length; i=i+4)\n {\n //byte --> int\n temp[0] = comp[i];\n temp[1] = comp[i+1];\n temp[2] = comp[i+2];\n temp[3] = comp[i+3];\n ByteBuffer byteBuffer = ByteBuffer.wrap(temp);\n resInt = byteBuffer.getInt();\n //int --> binary (string)\n resStr = Integer.toBinaryString(resInt);\n //checks the length of the string\n if (dif >=32 ) {\n dif = dif - 32;\n if (resStr.length()<32)\n resStr = addZero (resStr, 32-resStr.length());\n }\n else\n {\n if (resStr.length()<dif)\n resStr = addZero (resStr, dif-resStr.length());\n }\n //more converts\n for (int j=0; j<resStr.length(); j++)\n {\n String tempStr = \"\"+resStr.charAt(j); //each char --> string\n int digit = Integer.parseInt(tempStr); //string (with one char) --> int\n b[index+24] = (byte) digit; //int --> byte\n index++;\n }\n }\n return 0;\n }",
"public static final void m64734b(@C6003d byte[] bArr, int i, int i2) {\n C14445h0.m62478f(bArr, \"$receiver\");\n Arrays.sort(bArr, i, i2);\n }",
"private byte[] m10273e(int i) throws cf {\r\n if (i == 0) {\r\n return new byte[0];\r\n }\r\n byte[] bArr = new byte[i];\r\n this.g.m10350d(bArr, 0, i);\r\n return bArr;\r\n }",
"public void writeUnsignedByte(int i) throws IOException {\r\n\t\tthis.writeByte(i);\r\n\t\t// this.writeByte((byte) (i % 128));\r\n\t}",
"public int getOrder(byte[] bArr, int i) {\n int i2;\n byte b = bArr[i] & 255;\n if (b >= 129 && b <= 159) {\n i2 = b - 129;\n } else if (b < 224 || b > 239) {\n return -1;\n } else {\n i2 = (b - 224) + 31;\n }\n int i3 = i2 * 188;\n byte b2 = bArr[i + 1] & 255;\n int i4 = i3 + (b2 - 64);\n return b2 >= 128 ? i4 - 1 : i4;\n }",
"static byte[] Int16ToByteArray(int data) {\n byte[] result = new byte[2];\n result[0] = (byte) ((data & 0x000000FF));\n result[1] = (byte) ((data & 0x0000FF00) >> 8);\n return result;\n }",
"private void m10260a(long j, byte[] bArr, int i) {\r\n bArr[i + 0] = (byte) ((int) (j & 255));\r\n bArr[i + 1] = (byte) ((int) ((j >> 8) & 255));\r\n bArr[i + 2] = (byte) ((int) ((j >> 16) & 255));\r\n bArr[i + 3] = (byte) ((int) ((j >> 24) & 255));\r\n bArr[i + 4] = (byte) ((int) ((j >> 32) & 255));\r\n bArr[i + 5] = (byte) ((int) ((j >> 40) & 255));\r\n bArr[i + 6] = (byte) ((int) ((j >> 48) & 255));\r\n bArr[i + 7] = (byte) ((int) ((j >> 56) & 255));\r\n }",
"public final void mo4376b(int i) {\n while ((i & -128) != 0) {\n this.f20658c.put((byte) ((i & 127) | 128));\n i >>>= 7;\n }\n try {\n this.f20658c.put((byte) i);\n } catch (Throwable e) {\n throw new zzc(e);\n }\n }",
"public int mo35660a(byte[] bArr, int i, int i2, OutputStream outputStream) throws IOException {\n for (int i3 = i; i3 < i + i2; i3++) {\n byte b = bArr[i3] & 255;\n outputStream.write(this.f31119a[b >>> 4]);\n outputStream.write(this.f31119a[b & 15]);\n }\n return i2 * 2;\n }",
"ByteBuffer[] splitByteArray(byte[] b){\n\n int step = b.length / N;\n\n ByteBuffer[] bb = new ByteBuffer[N];\n\n for (int i = 0; i < bb.length; ++i) {\n bb[i] = ByteBuffer.allocate(step);\n bb[i].put(b, i * step, step);\n bb[i].flip(); // needed to prepare ByteBuffer for channel write / get operations\n }\n\n return bb;\n }",
"public static String splitBinaryRep(final String to_split, final int byte_index)\n\t{\n\t\tfinal int byte_size = 8, starting_index = byte_size * byte_index;\n\t\tint ending_index = (byte_index == 0) ? byte_size : (byte_size * byte_index) + byte_size;\n\t\treturn to_split.substring(starting_index, ending_index) ;\n\t}",
"byte[] mo12209b(int i);",
"public void mo1605a(long j, int i, int i2, int i3, byte[] bArr) {\n }",
"public abstract String b(byte[] bArr, int i, int i2);",
"static void encodeInt(DataOutput os, int i) throws IOException {\n if (i >> 28 != 0)\n os.write((i >> 28) & 0x7f);\n if (i >> 21 != 0)\n os.write((i >> 21) & 0x7f);\n if (i >> 14 != 0)\n os.write((i >> 14) & 0x7f);\n if (i >> 7 != 0)\n os.write((i >> 7) & 0x7f);\n os.write((i & 0x7f) | (1 << 7));\n }",
"public static int[] byteArr2IntArr(byte[] b, int length, int bytesPerInt)\r\n\t\t\tthrows DataLenUnproperException {\r\n\t\tif (length % bytesPerInt != 0) {\r\n\t\t\tthrow new DataLenUnproperException();\r\n\t\t}\r\n\r\n\t\tint[] intArr = new int[length / bytesPerInt];\r\n\t\tint value = 0;\r\n\t\tfor (int i = 0, j = 0; i < length; i++) {\r\n\t\t\tvalue <<= 8; // 低地址byte在高位,大端格式\r\n\t\t\tvalue |= (b[i] & 0xff); // 运算时会对b[i]进行自动转型,导致b[i]的符号位扩展\r\n\r\n\t\t\tif (i % bytesPerInt == bytesPerInt - 1) {\r\n\t\t\t\t// System.out.println(\"bin:\" +\r\n\t\t\t\t// Integer.toBinaryString(Integer.MIN_VALUE >>\r\n\t\t\t\t// (4-bytesPerInt)*8));\r\n\t\t\t\t// System.out.println(\"bin:\" +\r\n\t\t\t\t// Integer.toBinaryString(Integer.MIN_VALUE)); //符号位为1,其余为0\r\n\t\t\t\t// System.out.println(\"0x80 & (1<<7): \" + (0x80 & (1<<7)));\r\n\t\t\t\t// //结果为0x80(128),不为1\r\n\t\t\t\tif ((b[i + 1 - bytesPerInt] & (1 << 7)) != 0) { // 是一个负数,当不足32位时进行符号扩展(不能利用等于1判断,只有1不移位时与的结果才为1)\r\n\t\t\t\t\tif ((bytesPerInt * 8) < 32) // 移位的次数为指定次数对32取模,因此若为32时,实际上不移位,不符合需要\r\n\t\t\t\t\t\tvalue |= Integer.MIN_VALUE >> (4 - bytesPerInt) * 8; // 将int剩余位进行符号扩展,\r\n\t\t\t\t}\r\n\t\t\t\tintArr[j++] = value;\r\n\t\t\t\tvalue = 0;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn intArr;\r\n\r\n\t}",
"void writeInts(int[] i, int off, int len) throws IOException;",
"public int read(int[] i, int start, int len) throws IOException {\n\n\t\tint ii = start;\n\t\ttry {\n\t\t\tfor (; ii < start + len; ii += 1) {\n\n\t\t\t\tif (count - pos < 4) {\n\t\t\t\t\tfillBuf(4);\n\t\t\t\t}\n\n\t\t\t\ti[ii] = buf[pos] << 24 | (buf[pos + 1] & 0xFF) << 16\n\t\t\t\t\t\t| (buf[pos + 2] & 0xFF) << 8 | (buf[pos + 3] & 0xFF);\n\t\t\t\tpos += 4;\n\t\t\t}\n\t\t} catch (EOFException e) {\n\t\t\treturn eofCheck(e, ii, start, 4);\n\t\t}\n\t\treturn i.length * 4;\n\t}",
"public void writeInt(int i) throws IOException {\n\t\twriteByte((byte) (i >> 24));\n\t\twriteByte((byte) (i >> 16));\n\t\twriteByte((byte) (i >> 8));\n\t\twriteByte((byte) i);\n\t}",
"public int b2i(byte[] b, int offset) {\n return (b[offset + 3] & 0xFF)\n | ((b[offset + 2] & 0xFF) << 8)\n | ((b[offset + 1] & 0xFF) << 16)\n | ((b[offset] & 0xFF) << 24);\n }",
"@Override\n public void write(byte[] b_array) throws IOException {\n int i;\n int flag = 1;\n int my_decimal1=0;\n for (i = 0; i < 12; i++) {\n out.write(b_array[i]);\n }\n //write to output stream the rest of the bytearray's size - division 8\n int rest = (b_array.length - 12) % 8;\n out.write((byte) rest);\n\n\n while (i < b_array.length) {\n //start to count the number of 0\n if (i < b_array.length - rest) {\n for (int j = 0; j < 8; j++) {\n //check if we not in the rest part of the byte array\n if (i < b_array.length - rest) {\n //my_str = String.valueOf((int)b_array[i]);\n my_decimal1 += (int)b_array[i]*(Math.pow(2, j));\n i++;\n }\n else {\n flag = 0;\n break;\n }\n }\n }\n else{\n flag=0;\n }\n //if the for loop finish without break;\n if (flag == 1) {\n out.write((byte) my_decimal1);\n my_decimal1 = 0;\n }\n else {\n out.write(b_array[i]);\n i++;\n }\n }\n\n //>>\n\n\n }",
"public final void mo4380b(byte[] bArr, int i, int i2) {\n try {\n this.f20658c.put(bArr, i, i2);\n } catch (Throwable e) {\n throw new zzc(e);\n } catch (Throwable e2) {\n throw new zzc(e2);\n }\n }",
"private byte[] m688e(int i) {\n if (i == 0) {\n return new byte[0];\n }\n byte[] bArr = new byte[i];\n this.f552g.mo503d(bArr, 0, i);\n return bArr;\n }",
"private void m675a(long j, byte[] bArr, int i) {\n bArr[i + 0] = (byte) ((int) (j & 255));\n bArr[i + 1] = (byte) ((int) ((j >> 8) & 255));\n bArr[i + 2] = (byte) ((int) ((j >> 16) & 255));\n bArr[i + 3] = (byte) ((int) ((j >> 24) & 255));\n bArr[i + 4] = (byte) ((int) ((j >> 32) & 255));\n bArr[i + 5] = (byte) ((int) ((j >> 40) & 255));\n bArr[i + 6] = (byte) ((int) ((j >> 48) & 255));\n bArr[i + 7] = (byte) ((int) ((j >> 56) & 255));\n }",
"private static void m17788a(OutputStream outputStream, int i) {\n outputStream.write((i >> 0) & 255);\n outputStream.write((i >> 8) & 255);\n outputStream.write((i >> 16) & 255);\n outputStream.write((i >> 24) & 255);\n }",
"void crossOut(int i) {\n if(i % 2 == 0){\n return;\n }\n\n int bitIndex = (i-1) / 2;\n int arrayIndex = bitIndex / 8; //bitArr[arrayIndex] - Where the number is stored\n bitIndex = bitIndex % 8; //which bit in bitArr[arrayIndex] corresponds to the number\n\n bitArr[arrayIndex] = (byte) (bitArr[arrayIndex] & bitMask2[bitIndex]); //Uses the correct mask over the array index to single out our value.\n }",
"private void m686d(int i) {\n m678b((byte) i);\n }",
"public void mo9222a(int i, long j, int i2, int i3, long j2, int i4, byte[] bArr, int i5, long j3, long j4, long j5) {\n }",
"public static /* synthetic */ int m64329a(byte[] bArr, byte b, int i, int i2, int i3, Object obj) {\n if ((i3 & 2) != 0) {\n i = 0;\n }\n if ((i3 & 4) != 0) {\n i2 = bArr.length;\n }\n return m64328a(bArr, b, i, i2);\n }",
"public final void ar(int i, byte b) {\n int i2 = this.db[0];\n int i3 = this.dc[0];\n if (i == 0) {\n i2--;\n i3++;\n }\n if (1 == i) {\n i3++;\n }\n if (i == 2) {\n i2++;\n i3++;\n }\n if (i == 3) {\n i2--;\n }\n if (4 == i) {\n i2++;\n }\n if (i == 5) {\n i2--;\n i3--;\n }\n if (6 == i) {\n i3--;\n }\n if (i == 7) {\n i2++;\n i3--;\n }\n if (-1 != this.cs * -1099198911 && gn.aq(this.cs * -1099198911, 2044910580).aa * 952452997 == 1) {\n this.cs = -1835762113;\n }\n if (this.da * -913482765 < 9) {\n this.da -= 751585989;\n }\n for (int i4 = this.da * -913482765; i4 > 0; i4--) {\n int i5 = i4 - 1;\n this.db[i4] = this.db[i5];\n this.dc[i4] = this.dc[i5];\n this.du[i4] = this.du[i5];\n }\n this.db[0] = i2;\n this.dc[0] = i3;\n this.du[0] = b;\n }",
"private static byte [] unpackFromByteArray(byte[] data, int cursor) {\r\n\t\tif (cursor+1 >= data.length) {\r\n\t\t\tthrow new ModelException(\"Internal Error: requested offset \" + (cursor +1) + \r\n\t\t\t\t\t\" is beyond length of input array \" + data.length);\r\n\t\t}\r\n\t\tint length = (data[cursor] & 0x00ff) << 8;\t// MSB\r\n\t\tlength |= data[cursor+1] & 0x00ff;\t\t\t// LSB\r\n\t\tcursor += 2;\r\n\t\tif(cursor+length > data.length){\r\n\t\t\tthrow new ModelException(\"Internal Error: Required space [\"+cursor+length+\"] exceeds data size [\"+data.length+\"]\");\r\n\t\t}\r\n\t\tbyte [] bytes = new byte[length];\r\n\t\tfor(int i = 0; i <length; i++ ){\r\n\t\t\tbytes[i] = data[cursor+i];\r\n\t\t}\r\n\t\treturn bytes;\r\n\t}",
"public final List<byte[]> mo9767g(int i) {\n ArrayList arrayList = new ArrayList();\n while (i > 0) {\n int min = Math.min(i, 4096);\n byte[] bArr = new byte[min];\n int i2 = 0;\n while (i2 < min) {\n int read = this.f9078e.read(bArr, i2, min - i2);\n if (read != -1) {\n this.f9084k += read;\n i2 += read;\n } else {\n throw C3606c0.m8181h();\n }\n }\n i -= min;\n arrayList.add(bArr);\n }\n return arrayList;\n }",
"private byte[] readBuffer( DataInputStream in ) throws IOException{\n String factory = in.readUTF();\n int count = in.readInt();\n \n ByteArrayOutputStream out = new ByteArrayOutputStream( factory.length()*4 + 4 + count );\n DataOutputStream dout = new DataOutputStream( out );\n \n dout.writeUTF( factory );\n dout.writeInt( count );\n \n for( int i = 0; i < count; i++ ){\n int read = in.read();\n if( read == -1 )\n throw new EOFException( \"unexpectetly reached end of file\" );\n dout.write( read );\n }\n \n dout.close();\n return out.toByteArray();\n }",
"private void m677a(byte[] bArr, int i, int i2) {\n mo488b(i2);\n this.f552g.mo492b(bArr, i, i2);\n }",
"public abstract void zzb(byte[] bArr, int i, int i2, int i3);",
"public void mo78a(InputStream inputStream, int i) throws IOException {\n try {\n inputStream.read(bArr, iArr[0], i);\n int[] iArr = iArr;\n iArr[0] = iArr[0] + i;\n } finally {\n inputStream.close();\n }\n }",
"public static byte[] m19208b(byte[] bArr, int i) {\n return m19209b(bArr, 0, bArr.length, i);\n }",
"public int[] getBigEndianData(RecorderAbstract recorder, int startRegister, int numberOfRegisters) {\n int[] data = new int[numberOfRegisters];\n recorder.getModbusConnection().configureBigEndianInts();\n if (numberOfRegisters > 0) {\n try {\n recorder.getModbusConnection().readInputRegisters(recorder.getUnitID(), startRegister, data);\n } catch (IOException ex) {\n DataDiodeLogger.getInstance().addLogs(log.SEVERE,\n \"Error getting data from recorder at IP Address: \"\n + recorder.getIpAddress().toString() + \".\\n\" + ex.toString());\n }\n }\n return data;\n }",
"public static final void m64732b(@C6003d byte[] bArr, byte b, int i, int i2) {\n C14445h0.m62478f(bArr, \"$receiver\");\n Arrays.fill(bArr, i, i2, b);\n }",
"static /* synthetic */ void m23360a(Parcel parcel, byte[] bArr, int i, int i2) {\n if (VERSION.SDK_INT >= 11) {\n parcel.writeByteArray(bArr, i, i2);\n return;\n }\n byte[] bArr2 = new byte[i2];\n System.arraycopy(bArr, i, bArr2, 0, i2);\n parcel.writeByteArray(bArr2);\n }",
"private static ArrayList<byte[]> SplittedByte(byte[] byteToSplit, int length){\n ArrayList<byte[]> subBytes = new ArrayList<>();\n int index = 0;\n\n while (index < byteToSplit.length) {\n subBytes.add(Arrays.copyOfRange(byteToSplit,index, index + length));\n index +=length;\n }\n return subBytes;\n }",
"public abstract int a(int i, byte[] bArr, int i2, int i3);",
"private static final int decodeBEInt(byte[] paramArrayOfByte, int paramInt)\r\n/* 145: */ {\r\n/* 146:225 */ return (paramArrayOfByte[paramInt] & 0xFF) << 24 | (paramArrayOfByte[(paramInt + 1)] & 0xFF) << 16 | (paramArrayOfByte[(paramInt + 2)] & 0xFF) << 8 | paramArrayOfByte[(paramInt + 3)] & 0xFF;\r\n/* 147: */ }",
"public static int intToBytes(int s, byte bc[], int index) {\n bc[index++] = (byte) ((s >> 24) & 0xff);\n bc[index++] = (byte) ((s >> 16) & 0xff);\n bc[index++] = (byte) ((s >> 8) & 0xff);\n bc[index++] = (byte) (s & 0xff);\n return index;\n }",
"public final void mo4385d(int i) {\n try {\n this.f20658c.putInt(i);\n } catch (Throwable e) {\n throw new zzc(e);\n }\n }",
"public V mo3404i(int i) {\n V[] vArr = this.f2826c;\n int i2 = i << 1;\n V v = vArr[i2 + 1];\n int i3 = this.f2827d;\n int i4 = 0;\n if (i3 <= 1) {\n m2105c(this.f2825b, vArr, i3);\n this.f2825b = C0453f4.f2093a;\n this.f2826c = C0453f4.f2095c;\n } else {\n int i5 = i3 - 1;\n int[] iArr = this.f2825b;\n int i6 = 8;\n if (iArr.length <= 8 || i3 >= iArr.length / 3) {\n if (i < i5) {\n int i7 = i + 1;\n int i8 = i5 - i;\n System.arraycopy(iArr, i7, iArr, i, i8);\n Object[] objArr = this.f2826c;\n System.arraycopy(objArr, i7 << 1, objArr, i2, i8 << 1);\n }\n Object[] objArr2 = this.f2826c;\n int i9 = i5 << 1;\n objArr2[i9] = null;\n objArr2[i9 + 1] = null;\n } else {\n if (i3 > 8) {\n i6 = i3 + (i3 >> 1);\n }\n mo3390a(i6);\n if (i3 == this.f2827d) {\n if (i > 0) {\n System.arraycopy(iArr, 0, this.f2825b, 0, i);\n System.arraycopy(vArr, 0, this.f2826c, 0, i2);\n }\n if (i < i5) {\n int i10 = i + 1;\n int i11 = i5 - i;\n System.arraycopy(iArr, i10, this.f2825b, i, i11);\n System.arraycopy(vArr, i10 << 1, this.f2826c, i2, i11 << 1);\n }\n } else {\n throw new ConcurrentModificationException();\n }\n }\n i4 = i5;\n }\n if (i3 == this.f2827d) {\n this.f2827d = i4;\n return v;\n }\n throw new ConcurrentModificationException();\n }",
"private void splitHuffmanData()\n\t{\n\t\tbyte[] ext = new byte[fileArray[256]];\n\t\tint index = 0;\n\t\tfor(int i = 0; i < canonLengths.length; i++)\n\t\t{\n\t\t\tcanonLengths[i] = (int)(fileArray[i] & 0x0FF);\n\t\t\tindex++;\n\t\t}\n\t\tindex++;\n\t\t\n\t\tfor(int i = 0; i < ext.length; i++)\n\t\t\text[i] = fileArray[index++];\n\t\t\n\t\tfileExtension = new String(ext);\n\t\tbyte[] temp = fileArray;\n\t\tfileArray = new byte[\n\t\t temp.length - canonLengths.length - (ext.length + 1)];\n\t\t\n\t\tSystem.arraycopy(temp, index, fileArray, 0, fileArray.length);\n\t}",
"@Override\n\tpublic void readFields(DataInput in) throws IOException {\n\t\tbytes = in.readInt();\n\t\tbuffer = new byte[bytes];\n\t\tint num = 0;\t\t\n\t\twhile(num < bytes){\n\t\t\tbuffer[num] = in.readByte();\n\t\t\tnum++;\n\t\t}\n\t}",
"public void mo9652a(byte[] bArr, int i, int i2) {\n mo9826b(bArr, i, i2);\n }",
"public int[] convertDataBytes(int[] points, byte[] dataBuffer) {\n\t\t//noop due to previous parsed CSV data\n\t\treturn points;\n\t}",
"public int[] Conversion_Maille_Buffer(int i , int j){\n\t\tint[] tmp = new int[2];\n\t\t\n\t\ttmp[0] = (mailleobservateur_i - i) + centre_relatif ;\n\t\ttmp[1] = (mailleobservateur_j - j) + centre_relatif ;\n\t\treturn tmp;\n\t\t\n\t}",
"public final String zzh(byte[] bArr, int i, int i2) throws zzuv {\n if (((i | i2) | ((bArr.length - i) - i2)) < 0) {\n throw new ArrayIndexOutOfBoundsException(String.format(\"buffer length=%d, index=%d, size=%d\", new Object[]{Integer.valueOf(bArr.length), Integer.valueOf(i), Integer.valueOf(i2)}));\n }\n int i3;\n int i4 = i + i2;\n char[] cArr = new char[i2];\n int i5 = 0;\n while (i < i4) {\n byte zza = zzxj.zza(bArr, (long) i);\n if (!zzxm.zzd(zza)) {\n break;\n }\n i++;\n i3 = i5 + 1;\n zzxm.zza(zza, cArr, i5);\n i5 = i3;\n }\n int i6 = i5;\n while (i < i4) {\n i5 = i + 1;\n byte zza2 = zzxj.zza(bArr, (long) i);\n int i7;\n if (zzxm.zzd(zza2)) {\n i7 = i6 + 1;\n zzxm.zza(zza2, cArr, i6);\n while (i5 < i4) {\n zza2 = zzxj.zza(bArr, (long) i5);\n if (!zzxm.zzd(zza2)) {\n break;\n }\n i5++;\n i3 = i7 + 1;\n zzxm.zza(zza2, cArr, i7);\n i7 = i3;\n }\n i = i5;\n i6 = i7;\n } else if (zzxm.zze(zza2)) {\n if (i5 >= i4) {\n throw zzuv.zzwx();\n }\n i7 = i5 + 1;\n i3 = i6 + 1;\n zzxm.zza(zza2, zzxj.zza(bArr, (long) i5), cArr, i6);\n i = i7;\n i6 = i3;\n } else if (zzxm.zzf(zza2)) {\n if (i5 >= i4 - 1) {\n throw zzuv.zzwx();\n }\n i7 = i5 + 1;\n i3 = i7 + 1;\n int i8 = i6 + 1;\n zzxm.zza(zza2, zzxj.zza(bArr, (long) i5), zzxj.zza(bArr, (long) i7), cArr, i6);\n i = i3;\n i6 = i8;\n } else if (i5 >= i4 - 2) {\n throw zzuv.zzwx();\n } else {\n i7 = i5 + 1;\n byte zza3 = zzxj.zza(bArr, (long) i5);\n i5 = i7 + 1;\n int i9 = i5 + 1;\n int i10 = i6 + 1;\n zzxm.zza(zza2, zza3, zzxj.zza(bArr, (long) i7), zzxj.zza(bArr, (long) i5), cArr, i6);\n i = i9;\n i6 = i10 + 1;\n }\n }\n return new String(cArr, 0, i6);\n }",
"public void read(BufferedDataInputStream i) throws FitsException {\n\n readTrueData(i);\n int pad = getPadding();\n try {\n byte[] buf = new byte[pad];\n while(pad > 0) {\n int len = i.read(buf, 0, pad);\n if (len == 0) {\n throw new FitsException(\"Data Padding EOF\");\n }\n pad -= len;\n }\n // i.skipBytes(getPadding());\n } catch (EOFException e) {\n\t // ignore EOF messages while reading padded data\n } catch (IOException e) {\n throw new FitsException(\"Error skipping padding:\"+e);\n }\n\n }",
"public final void mo9652a(byte[] bArr, int i, int i2) {\n mo9823b(bArr, i, i2);\n }",
"public static byte[] intToBytes(int in) {\n byte[] bytes = new byte[4];\n for (int i = 0; i < 4; i++) {\n bytes[i] = (byte) ((in >>> i * 8) & 0xFF);\n }\n return bytes;\n }",
"@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}",
"public static /* synthetic */ void m64733b(byte[] bArr, byte b, int i, int i2, int i3, Object obj) {\n if ((i3 & 2) != 0) {\n i = 0;\n }\n if ((i3 & 4) != 0) {\n i2 = bArr.length;\n }\n m64732b(bArr, b, i, i2);\n }",
"public static void intToByteArray(int value, byte[] buffer, int offset) {\n buffer[offset] = (byte) (value >> 24 & 0xFF);\n buffer[offset + 1] = (byte) (value >> 16 & 0xFF);\n buffer[offset + 2] = (byte) (value >> 8 & 0xFF);\n buffer[offset + 3] = (byte) (value & 0xFF);\n }",
"public final void mo4384c(byte[] bArr, int i, int i2) {\n mo4376b(i2);\n mo4380b(bArr, 0, i2);\n }"
] |
[
"0.6883771",
"0.6652358",
"0.66378534",
"0.6573522",
"0.64409155",
"0.62003696",
"0.60926163",
"0.6085668",
"0.60832185",
"0.60363907",
"0.60221225",
"0.6012519",
"0.59328675",
"0.5892875",
"0.58795184",
"0.5857177",
"0.58102405",
"0.5807131",
"0.576785",
"0.5763432",
"0.57440484",
"0.5742473",
"0.5716665",
"0.56645447",
"0.5660385",
"0.56498075",
"0.5648667",
"0.5645938",
"0.56348306",
"0.55886763",
"0.55825216",
"0.55770236",
"0.5570796",
"0.555423",
"0.5553205",
"0.5547656",
"0.55455965",
"0.5463499",
"0.5414265",
"0.5399723",
"0.5399323",
"0.5396153",
"0.5392727",
"0.5378175",
"0.53655857",
"0.5340972",
"0.5329761",
"0.5325865",
"0.53185695",
"0.52956736",
"0.5261587",
"0.5253876",
"0.52506673",
"0.5249338",
"0.5249137",
"0.52473366",
"0.52440375",
"0.5243792",
"0.5240943",
"0.52374864",
"0.5216484",
"0.5207904",
"0.5202321",
"0.5200601",
"0.5193308",
"0.5183631",
"0.51715034",
"0.51580733",
"0.5154954",
"0.5143764",
"0.5138898",
"0.5134712",
"0.5125278",
"0.51033545",
"0.5050895",
"0.50507486",
"0.5048883",
"0.50424206",
"0.503067",
"0.5028602",
"0.5024744",
"0.5023919",
"0.50186205",
"0.5017345",
"0.50157905",
"0.5014947",
"0.5000103",
"0.49940017",
"0.49916288",
"0.4987529",
"0.49859607",
"0.4982292",
"0.49763134",
"0.4964329",
"0.49590713",
"0.4949694",
"0.4942613",
"0.49397042",
"0.49395627",
"0.49361753"
] |
0.55117637
|
37
|
writes the buffer's data to the disk update the offset to take into account
|
public void flush() throws IOException {
mFile.seek(mOffset);
mWriter.write(mBuffer, 0, mBufferLength);
mOffset += mBufferLength;
mBufferLength = 0;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private static void flushInternalBuffer() {\n\n //Strongly set the last byte to \"0A\"(new line)\n if (mPos < LOG_BUFFER_SIZE_MAX) {\n buffer[LOG_BUFFER_SIZE_MAX - 1] = 10;\n }\n\n long t1, t2;\n\n //Save buffer to SD card.\n t1 = System.currentTimeMillis();\n writeToSDCard();\n //calculate write file cost\n t2 = System.currentTimeMillis();\n Log.i(LOG_TAG, \"internalLog():Cost of write file to SD card is \" + (t2 - t1) + \" ms!\");\n\n //flush buffer.\n Arrays.fill(buffer, (byte) 0);\n mPos = 0;\n }",
"public void writeFile(ByteBuffer buf, int len, int pos, long offset,\n\t\t\tboolean propigate) throws java.io.IOException, DataArchivedException {\n\n\t\tif (SDFSLogger.isDebug()) {\n\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\"fc writing \" + df.getMetaFile().getPath() + \" at \"\n\t\t\t\t\t\t\t+ offset + \" \" + buf.capacity() + \" bytes len=\"\n\t\t\t\t\t\t\t+ len + \" pos=\" + pos);\n\t\t\tif (df.getMetaFile().getPath().endsWith(\".vmx\")\n\t\t\t\t\t|| df.getMetaFile().getPath().endsWith(\".vmx~\")) {\n\t\t\t\tbyte[] _zb = new byte[len];\n\t\t\t\tbuf.get(_zb);\n\n\t\t\t\tSDFSLogger.getLog().debug(\n\t\t\t\t\t\t\"###### In fc Text of VMX=\"\n\t\t\t\t\t\t\t\t+ df.getMetaFile().getPath() + \"=\"\n\t\t\t\t\t\t\t\t+ new String(_zb, \"UTF-8\"));\n\t\t\t}\n\t\t}\n\t\tLock l = df.getReadLock();\n\t\tl.lock();\n\t\ttry {\n\t\t\tbuf.position(pos);\n\t\t\tthis.writtenTo = true;\n\t\t\tlong _cp = offset;\n\t\t\t// ByteBuffer buf = ByteBuffer.wrap(bbuf, pos, len);\n\t\t\tint bytesLeft = len;\n\t\t\tint write = 0;\n\t\t\twhile (bytesLeft > 0) {\n\t\t\t\t// Check to see if we need a new Write buffer\n\t\t\t\t// WritableCacheBuffer writeBuffer = df.getWriteBuffer(_cp);\n\t\t\t\t// Find out where to write to in the buffer\n\t\t\t\tDedupChunkInterface writeBuffer = null;\n\t\t\t\tlong filePos = df.getChuckPosition(_cp);\n\t\t\t\tint startPos = (int) (_cp - filePos);\n\t\t\t\tif (startPos < 0)\n\t\t\t\t\tSDFSLogger.getLog().fatal(\"Error \" + _cp + \" \" + filePos);\n\t\t\t\t// Find out how many total bytes there are left to write in\n\t\t\t\t// this\n\t\t\t\t// loop\n\n\t\t\t\tint _len = Main.CHUNK_LENGTH - startPos;\n\t\t\t\tif (bytesLeft < _len)\n\t\t\t\t\t_len = bytesLeft;\n\t\t\t\t/*\n\t\t\t\t * if (_len == Main.CHUNK_LENGTH) newBuf = true;\n\t\t\t\t */\n\n\t\t\t\tbyte[] b = new byte[_len];\n\t\t\t\ttry {\n\t\t\t\t\tbuf.get(b);\n\t\t\t\t} catch (java.nio.BufferUnderflowException e) {\n\t\t\t\t\tbuf.get(b, 0, buf.capacity() - buf.position());\n\t\t\t\t\tSDFSLogger.getLog().error(\n\t\t\t\t\t\t\t\"buffer underflow getting \"\n\t\t\t\t\t\t\t\t\t+ (buf.capacity() - buf.position())\n\t\t\t\t\t\t\t\t\t+ \" instead of \" + _len);\n\t\t\t\t}\n\t\t\t\twhile (writeBuffer == null) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\twriteBuffer = df.getWriteBuffer(filePos);\n\t\t\t\t\t\t\twriteBuffer.write(b, startPos);\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (_len != Main.CHUNK_LENGTH && propigate\n\t\t\t\t\t\t\t\t&& df.getMetaFile().getDev() != null) {\n\t\t\t\t\t\t\teventBus.post(new BlockDeviceSmallWriteEvent(df\n\t\t\t\t\t\t\t\t\t.getMetaFile().getDev(),\n\t\t\t\t\t\t\t\t\tByteBuffer.wrap(b), filePos + startPos,\n\t\t\t\t\t\t\t\t\t_len));\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (Main.volume.isClustered())\n\t\t\t\t\t\t\twriteBuffer.flush();\n\t\t\t\t\t} catch (BufferClosedException e) {\n\t\t\t\t\t\tif (SDFSLogger.isDebug())\n\t\t\t\t\t\t\tSDFSLogger.getLog().debug(\"trying to write again\");\n\t\t\t\t\t\twriteBuffer = null;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t_cp = _cp + _len;\n\t\t\t\tbytesLeft = bytesLeft - _len;\n\t\t\t\twrite = write + _len;\n\t\t\t\tthis.currentPosition = _cp;\n\t\t\t\tif (_cp > df.getMetaFile().length()) {\n\t\t\t\t\tdf.getMetaFile().setLength(_cp, false);\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch(DataArchivedException e) {\n\t\t\tif(Main.checkArchiveOnRead) {\n\t\t\t\tSDFSLogger.getLog().warn(\"Archived data found in \"+ df.getMetaFile().getPath()+ \" at \" + pos + \". Recovering data from archive. This may take up to 4 hours\");\n\t\t\t\tthis.recoverArchives();\n\t\t\t\tthis.writeFile(buf, len, pos, offset, propigate);\n\t\t\t}\n\t\t\telse throw e;\n\t\t}catch (FileClosedException e) {\n\t\t\tSDFSLogger.getLog()\n\t\t\t\t\t.warn(df.getMetaFile().getPath()\n\t\t\t\t\t\t\t+ \" is closed but still writing\");\n\t\t\tthis.closeLock.lock();\n\t\t\ttry {\n\t\t\t\tdf.registerChannel(this);\n\t\t\t\tthis.closed = false;\n\t\t\t\tthis.writeFile(buf, len, pos, offset, propigate);\n\t\t\t} finally {\n\t\t\t\tthis.closeLock.unlock();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSDFSLogger.getLog().fatal(\n\t\t\t\t\t\"error while writing to \" + this.df.getMetaFile().getPath()\n\t\t\t\t\t\t\t+ \" \" + e.toString(), e);\n\t\t\tMain.volume.addWriteError();\n\t\t\tthrow new IOException(\"error while writing to \"\n\t\t\t\t\t+ this.df.getMetaFile().getPath() + \" \" + e.toString());\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tdf.getMetaFile().setLastModified(System.currentTimeMillis());\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tl.unlock();\n\t\t}\n\t}",
"private void writeBuffer( byte b[], int offset, int length) throws IOException\r\n\t{\r\n\t\t// Write the chunk length as a hex number.\r\n\t\tfinal String size = Integer.toHexString(length);\r\n\t\tthis.out.write(size.getBytes());\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// Write the data.\r\n\t\tif (length != 0 )\r\n\t\t\tthis.out.write(b, offset, length);\r\n\t\t// Write a CRLF.\r\n\t\tthis.out.write( CR );\r\n\t\tthis.out.write( LF );\r\n\t\t// And flush the real stream.\r\n\t\tthis.out.flush();\r\n\t}",
"void write(byte[] buffer, int bufferOffset, int length) throws IOException;",
"@Override\n\t\tpublic CompletableFuture<Void> write(byte[] buffer, long offset) {\n\t\t\t\n\t\t\tsynchronized(roleSwitcherThread) {\n\t\t\t\tif (!RockyController.role.equals(RockyControllerRoleType.Owner)) {\n\t\t\t\t\tSystem.err.println(\"ASSERT: write can be served only by the Owner\");\n\t\t\t\t\tSystem.err.println(\"currently, my role=\" + RockyController.role);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (debugPrintoutFlag) {\n\t\t\t\tSystem.out.println(\"write entered. buffer size=\" + buffer.length);\n\t\t\t\tSystem.out.println(\"offset=\" + offset);\n\t\t\t}\n\t\t\t\n\t\t\tlong firstBlock = offset / blockSize;\n\t\t\tint length = buffer.length;\n\t\t long lastBlock = 0;\n\t\t if (length % blockSize == 0) {\n\t\t \tlastBlock = (offset + length) / blockSize - 1;\n\t\t } else {\n\t\t \tlastBlock = (offset + length) / blockSize;\n\t\t }\n\t\t //long lastBlock = (offset + length) / blockSize;\n\t\t \n\t\t if (debugPrintoutFlag) {\n\t\t \tSystem.out.println(\"firstBlock=\" + firstBlock + \" lastBlock=\" + lastBlock + \" length=\" + length);\n\t\t }\n\t\t \t\n\t\t if (mutationSnapEvalFlag) {\n\t\t \tnumBlockWrites += (int) (lastBlock - firstBlock + 1);\n\t\t }\n\t\t \n//\t\t // we assume that buffer size to be blockSize when it is used\n//\t\t // as a block device properly. O.W. it can be smaller than that.\n//\t\t // To make it compatible with the original intention, when \n//\t\t // we get buffer smaller than blockSize, we increment the loastBlock\n//\t\t // by one.\n//\t\t if (firstBlock == lastBlock) {\n//\t\t \tlastBlock++; \n//\t\t }\n//\t\t for (int i = (int) firstBlock; i < (int) lastBlock; i++) {\n\t \tfor (int i = (int) firstBlock; i <= (int) lastBlock; i++) {\n\t \t\tif (debugPrintoutFlag) {\n\t \t\t\tSystem.out.println(\"setting dirtyBitmap for blockID=\" + i);\n\t \t\t}\n\t \t\tsynchronized(dirtyBitmap) {\n\t\t \t\tdirtyBitmap.set(i);\n\t\t \t}\n\t\t \tWriteRequest wr = new WriteRequest();\n\t\t \tint copySize = 0;\n\t\t \tif (i == lastBlock) {\n\t\t \t\tif (debugPrintoutFlag) {\n\t\t \t\t\tSystem.out.println(\"copySize first\");\n\t\t \t\t}\n\t\t \t\tint residual = buffer.length % blockSize;\n\t\t \t\tif (residual == 0) {\n\t\t \t\t\tcopySize = blockSize;\n\t\t \t\t} else {\n\t\t \t\t\tcopySize = residual;\n\t\t \t\t}\n\t\t \t} else {\n\t\t \t\tif (debugPrintoutFlag) {\n\t\t \t\t\tSystem.out.println(\"copySize second\");\n\t\t \t\t}\n\t\t \t\tcopySize = blockSize;\n\t\t \t}\n\t\t \tbyte[] copyBuf = new byte[copySize];\n\t\t \tif (debugPrintoutFlag) {\n\t\t \t\tSystem.out.println(\"copySize=\" + copySize);\n\t\t \t}\n\t\t \tint bufferStartOffset = (int) ((i - firstBlock) * blockSize);\n\t\t \tif (debugPrintoutFlag) {\n\t\t \t\tSystem.out.println(\"bufferStartOffset=\" + bufferStartOffset + \" i=\" + i + \" firstBlock=\" + firstBlock + \" blockSize=\" + blockSize);\n\t\t \t}\n\t\t \tSystem.arraycopy(buffer, (int) ((i - firstBlock) * blockSize), copyBuf, 0, copySize);\n\t\t \twr.buf = copyBuf;\n\t\t \t//wr.offset = offset;\n\t\t\t wr.offset = i * blockSize;\n\t\t\t try {\n\t\t\t \t//System.out.println(\"[RockyStorage] enqueuing WriteRequest for blockID=\" \n\t\t\t \t//\t\t+ ((int) wr.offset / blockSize));\n\t\t\t\t\tqueue.put(wr);\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 }\n\t\t \n\t\t\treturn super.write(buffer, offset);\n\t\t}",
"public void write_to_buffer(byte[] buffer) throws IOException {\r\n ByteArrayOutputStream byte_out = new ByteArrayOutputStream(buffer.length);\r\n DataOutputStream out = new DataOutputStream(byte_out);\r\n\r\n write_to_buffer(out);\r\n\r\n byte[] bytes = byte_out.toByteArray();\r\n for (int i = 0; i < buffer.length; ++i) {\r\n buffer[i] = bytes[i];\r\n }\r\n\r\n out.close();\r\n byte_out.close();\r\n }",
"public void write(byte[] data, long offset);",
"public void write(ByteBuffer buffer){\r\n\t\tbuffer.putInt(type.ordinal());\r\n\t\tbuffer.putInt(dataSize);\r\n\t\tbuffer.put(data);\r\n\t}",
"public int internalWrite(ByteBuffer buffer) throws IOException, BadDescriptorException {\n checkOpen();\n \n // TODO: It would be nice to throw a better error for this\n if (!(channel instanceof WritableByteChannel)) {\n throw new BadDescriptorException();\n }\n \n WritableByteChannel writeChannel = (WritableByteChannel)channel;\n \n if (isSeekable() && originalModes.isAppendable()) {\n FileChannel fileChannel = (FileChannel)channel;\n fileChannel.position(fileChannel.size());\n }\n \n return writeChannel.write(buffer);\n }",
"public void write(byte[] buffer);",
"@Override\r\n public void write(byte[] buffer) throws IOException {\r\n inWrite1 = true;\r\n try {\r\n super.write(buffer);\r\n if (!inWrite3) {\r\n /*if (!Helper.NEW_IO_HANDLING \r\n && null != IoNotifier.fileNotifier) {\r\n IoNotifier.fileNotifier.notifyWrite(recId, buffer.length);\r\n } else {*/\r\n if (null != RecorderFrontend.instance) {\r\n RecorderFrontend.instance.writeIo(recId, \r\n null, buffer.length, StreamType.FILE);\r\n }\r\n //}\r\n }\r\n inWrite1 = false;\r\n } catch (IOException e) {\r\n inWrite1 = false;\r\n throw e;\r\n }\r\n }",
"private void flushWrite() throws IOException, BadDescriptorException {\n if (reading || !modes.isWritable() || buffer.position() == 0) return; // Don't bother\n \n int len = buffer.position();\n buffer.flip();\n int n = descriptor.write(buffer);\n \n if(n != len) {\n // TODO: check the return value here\n }\n buffer.clear();\n }",
"@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }",
"void writeCurrentBuffer();",
"@Override\r\n\tpublic void write(IByteBuffer target, long offset) {\n\r\n\t}",
"public abstract void resetBytesWritten();",
"@Override\n public void write(byte[] buf, int offset, int size) throws IOException;",
"private void writeBytes() {\n\t\tint needToWrite = rawBytes.length - bytesWritten;\n\t\tint actualWrit = line.write(rawBytes, bytesWritten, needToWrite);\n\t\t// if the total written is not equal to how much we needed to write\n\t\t// then we need to remember where we were so that we don't read more\n\t\t// until we finished writing our entire rawBytes array.\n\t\tif (actualWrit != needToWrite) {\n\t\t\tCCSoundIO.debug(\"writeBytes: wrote \" + actualWrit + \" of \" + needToWrite);\n\t\t\tshouldRead = false;\n\t\t\tbytesWritten += actualWrit;\n\t\t} else {\n\t\t\t// if it all got written, we should continue reading\n\t\t\t// and we reset our bytesWritten value.\n\t\t\tshouldRead = true;\n\t\t\tbytesWritten = 0;\n\t\t}\n\t}",
"@Override\r\n public synchronized void flush() throws IOException {\r\n\t\tif ( count != 0 ) {\r\n\t\t writeBuffer(buf, 0, count );\r\n\t\t count = 0;\r\n\t\t}\r\n\t}",
"void write(ByteBuffer b, int off, int len) throws IOException;",
"@Override\n\t\tpublic void write(byte[] buffer) throws IOException {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tout.write(buffer);\n\t\t\tamount+=buffer.length;\n\t\t\tthis.listener.AmountTransferred(amount);\n\t\t}",
"void writeBlock(int blockId, byte[] buffer, int offset) throws IOException;",
"public void write(byte[] buffer){\r\n\t\t\r\n\t\ttry{\r\n\t\t\toOutStream.write(buffer);\r\n\t\t}catch(IOException e){\r\n\t\t\tLog.e(TAG, \"exception during write\", e);\r\n\t\t}\r\n\t}",
"public void\twrite_sector_data_from_buffer(int drive, int side,int data_id, char[] buf, int length, int ddam);",
"public abstract void update(byte[] buf, int off, int len);",
"@Override\n public void flushBuffer() throws IOException {\n\n }",
"@Override\n\tpublic void flushBuffer() throws IOException {\n\t}",
"public void flush() {\r\n // Flushing is required only if there are written bytes in\r\n // the current data element.\r\n if (bytenum != 0) {\r\n data[offset] = elem;\r\n }\r\n }",
"public int write(ByteBuffer buffer) throws IOException, BadDescriptorException {\n checkOpen();\n \n return internalWrite(buffer);\n }",
"public abstract int writeData(int address, byte[] buffer, int length);",
"public void write(int location, ByteBuffer data)\n throws DataOrderingException;",
"public void flush() throws IOException {\n // nothing to do with cached bytes\n }",
"public void flush(){\r\n mBufferData.clear();\r\n }",
"public void write_to_buffer(DataOutputStream out) throws IOException {\r\n //for (int i = 0; i < this.dimension; ++i)\r\n for (int i = 0; i < this.dimension * 2; ++i) {\r\n out.writeFloat(this.data[i]);\r\n }\r\n out.writeFloat(this.distanz);\r\n// out.write(this.PlaceId.getBytes());\r\n out.writeInt(this.getPlaceId());\r\n// System.out.println(\"heheheh +::\" + this.PlaceId.length);\r\n out.writeDouble(this.location[0]);\r\n out.writeDouble(this.location[1]);\r\n// System.out.println(\"heheheh +::\" +this.PlaceId.getBytes().length);\r\n }",
"public void flush(){\n\t\ttry{\n\t\t\tse.write(buffer, 0, bufferPos);\n\t\t\tbufferPos = 0;\n\t\t\tse.flush();\n\t\t}catch(IOException ioex){\n\t\t\tfailures = true;\n\t\t}\n\t}",
"@Override\r\n public void write(byte[] buffer, int off, int len) throws IOException {\r\n inWrite3 = true;\r\n try {\r\n super.write(buffer, off, len);\r\n if (!inWrite1) {\r\n /*if (!Helper.NEW_IO_HANDLING \r\n && null != IoNotifier.fileNotifier) {\r\n IoNotifier.fileNotifier.notifyWrite(recId, len);\r\n } else {*/\r\n if (null != RecorderFrontend.instance) {\r\n RecorderFrontend.instance.writeIo(recId, \r\n null, len, StreamType.FILE);\r\n }\r\n //}\r\n }\r\n inWrite3 = false;\r\n } catch (IOException e) {\r\n inWrite3 = false;\r\n throw e;\r\n }\r\n }",
"private void write( byte[] data) throws IOException {\n ByteBuffer buffer = ByteBuffer.wrap(data);\n\n int write = 0;\n // Keep trying to write until buffer is empty\n while(buffer.hasRemaining() && write != -1)\n {\n write = channel.write(buffer);\n }\n\n checkIfClosed(write); // check for error\n\n if(ProjectProperties.DEBUG_FULL){\n System.out.println(\"Data size: \" + data.length);\n }\n\n key.interestOps(SelectionKey.OP_READ);// make key read for reading again\n\n }",
"public void write(ByteBuffer buffer) throws IOException {\n _channel.write(buffer);\n }",
"@Override\n public void flush() throws IOException {\n byteBufferStreamOutput.flush();\n }",
"public void sync()\n\t{\n\t\tbyte[] buffer = new byte[Disk.blockSize];\n\n\t\t// Write the totalBlocks, totalInodes, and freeList.\n\t\tSysLib.int2bytes(totalBlocks, buffer, 0);\n\t\tSysLib.int2bytes(totalInodes, buffer, 4);\n\t\tSysLib.int2bytes(freeList, buffer, 8);\n\t\tSysLib.int2bytes(lastFreeBlock, buffer, 12);\n\n\t\t// Write the block back to disk.\n\t\tSysLib.rawwrite(0, buffer);\n\t}",
"public abstract void put(long position, ByteBuffer src);",
"void flushBefore(long pos) throws IOException;",
"void writeBlock(int blockId, byte[] buffer) throws IOException;",
"private synchronized void writeInternal(final byte[] data, int offset,\n int length) throws IOException {\n while (length > 0) {\n checkStreamState();\n final int availableBufferBytes = MAX_DATA_BYTES_PER_REQUEST\n - this.outBuffer.size();\n final int nextWrite = Math.min(availableBufferBytes, length);\n\n outBuffer.write(data, offset, nextWrite);\n offset += nextWrite;\n length -= nextWrite;\n\n if (outBuffer.size() > MAX_DATA_BYTES_PER_REQUEST) {\n throw new RuntimeException(\"Internal error: maximum write size \" +\n Integer.toString(MAX_DATA_BYTES_PER_REQUEST) + \"exceeded.\");\n }\n\n if (outBuffer.size() == MAX_DATA_BYTES_PER_REQUEST) {\n flushIOBuffers();\n }\n }\n }",
"@Override\r\n public synchronized void write(byte b[], int off, int len ) throws IOException {\r\n \tint avail = buf.length - count;\r\n\r\n \tif ( len <= avail ) {\r\n \t\tSystem.arraycopy( b, off, buf, count, len );\r\n \t\tcount += len;\r\n \t\treturn; // Over step to do flush()\r\n\t } else if ( len > avail ) {\r\n\t \tSystem.arraycopy( b, off, buf, count, avail);\r\n\t \tcount += avail;\r\n\t \tflush();\r\n\t \tSystem.arraycopy( b, avail, b, 0, (len-avail));\r\n\t \twrite(b, 0, (len-avail));\r\n\t } else {\r\n\t \twriteBuffer(b, off, len);\r\n\t }\r\n\t}",
"private static void writeToBuffer(int index, RandomAccessFile fos) {\n\n try {\n\n // x is the current integer value to be written.\n int x;\n // loc is the current location in the buffer to be written.\n int loc = 0;\n\n // iterates through each value in the sorted integer array.\n for (int k = 0; k < index; k++) {\n // gets the current integer.\n x = ints[k];\n\n // checks if the buffer is full.\n if (loc == BUF_SIZE) {\n // if the buffer is full, write its contents out to the file.\n fos.write(buf);\n // the buffer has been emptied, so set its current location back to the start.\n loc = 0;\n }\n\n // convert the current integer value to be written to a byte array.\n buf[loc] = (byte) (x >> 24);\n buf[loc + 1] = (byte) (x >> 16);\n buf[loc + 2] = (byte) (x >> 8);\n buf[loc + 3] = (byte) (x);\n\n // increment the location in the buffer now that a value has been written in.\n loc += BYTES_TO_INTS;\n }\n\n if (loc > 0) {\n // if there are any values left over in the buffer, write them out to the file.\n fos.write(buf, 0, loc);\n\n }\n } catch (IOException e){\n e.printStackTrace();\n }\n }",
"public void writeData(byte b[]) throws IOException {\n\n RandomAccessFile raf;\n int skip_head;\n\n float vox_offset = header.getVox_offset();\n String ds_datname = header.getDs_datname();\n\n skip_head = (int) vox_offset;\n\n\n // can't write random access compressed yet\n if (ds_datname.endsWith(\".gz\")) {\n throw new IOException(\"Sorry, can't write to compressed image data file: \" + ds_datname);\n }\n\n\n // write data blob\n raf = new RandomAccessFile(ds_datname, \"rwd\");\n raf.seek(skip_head);\n raf.write(b, 0, b.length);\n raf.close();\n\n }",
"public void writeData(byte[] b, int pos)\n throws IOException\n {\n Buffer buf;\n for (int i = 0; i < b.length; i++)\n {\n buf = getBufferByPosition(pos + i);\n buf.setByte(b[i], pos + i);\n }\n }",
"private void writeInMemoryData() throws IOException {\n out.write(totalBitsInChunk);\n\n /* write chunk of bytes itself */\n out.write(chunk, 0, chunkIndex < chunk.length ? chunkIndex + 1 : chunkIndex);\n out.flush();\n\n zeroChunk();\n }",
"public synchronized void write(StyxFileClient client, long offset, \n int count, ByteBuffer data, boolean truncate, int tag)\n throws StyxException\n {\n if (this.mustExist && !this.file.exists())\n {\n // The file has been removed\n log.debug(\"The file \" + this.file.getPath() +\n \" has been removed by another process\");\n // Remove the file from the Styx server\n this.remove();\n throw new StyxException(\"The file \" + this.name + \" was removed.\");\n }\n try\n {\n int nWritten = 0;\n // If we're writing zero bytes to the end of the file, this is an\n // EOF signal\n if (data.remaining() == 0 && offset == this.file.length())\n {\n log.debug(\"Got EOF signal\");\n this.eofWritten = true;\n }\n else\n {\n // Open a new FileChannel for writing. Can't use FileOutputStream\n // as this doesn't allow successful writing at a certain file offset:\n // for some reason everything before this offset gets turned into\n // blank spaces.\n FileChannel chan = new RandomAccessFile(this.file, \"rw\").getChannel();\n\n // Remember old limit and position\n int pos = data.position();\n int lim = data.limit();\n // Make sure only the requested number of bytes get written\n data.limit(data.position() + count);\n \n // Write to the file\n nWritten = chan.write(data.buf(), offset);\n\n // Reset former buffer positions\n data.limit(lim).position(pos);\n\n // Truncate the file at the end of the new data if requested\n if (truncate)\n {\n log.debug(\"Truncating file at \" + (offset + nWritten) + \" bytes\");\n chan.truncate(offset + nWritten);\n }\n // We haven't reached EOF yet\n this.eofWritten = false;\n // Close the channel\n chan.close();\n }\n // Reply to the client\n this.replyWrite(client, nWritten, tag);\n }\n catch(IOException ioe)\n {\n throw new StyxException(\"An error of class \" + ioe.getClass() + \n \" occurred when trying to write to \" + this.getFullPath() +\n \": \" + ioe.getMessage());\n }\n }",
"public void put(long position, ByteBuffer src);",
"@Override\n\tpublic int write( byte [] buffer, int offset, int length ) {\n\t\tByteBuffer out = getOutputBuffer();\n\t\tif( out.limit() <= 0 ) {\n\t\t\tout.limit( out.capacity() );\n\t\t}\n\t\tsynchronized( out ) {\n\t\t\tout.put( buffer, offset, length );\n\t\t}\n\t\tdispatcher.requestWrite( this );\n\t\treturn length;\n\t}",
"public void write() {\n/* 1062 */ this.cbSize = size();\n/* 1063 */ super.write();\n/* */ }",
"public abstract void writeBytes(byte[] b, int offset, int length) throws IOException;",
"@Override\n\tpublic int WriteToByteArray(byte[] data, int pos) {\n\t\treturn 0;\n\t}",
"public void write(byte[] buffer) { //이건 보내주는거\n try {\n mmOutStream.write(buffer);\n\n // Disabled: Share the sent message back to the main thread\n mHandler.obtainMessage(MESSAGE_WRITE, -1, -1, buffer).sendToTarget(); //MH주석풀엇음 //what arg1, arg2 obj\n\n } catch (IOException e) {\n Log.e(TAG, \"Exception during write\");\n }\n }",
"@Override\n public void write(byte[] buf) throws IOException;",
"@Override\n public void commit() throws IOException {\n if (!committed && currentFile != null) {\n long pos = currentFile.getLineReadPos();\n currentFile.setPos(pos);\n currentFile.setLastUpdated(updateTime);\n committed = true;\n }\n }",
"public void write(int datum) throws IOException {\n if (!_open)\n return;\n datum &= 0xff;\n long _here = position();\n\n // Are we synced up?\n if (_here == _digestvalidto) {\n\n // Yes, digest the byte and move the valid to pointer.\n _digest.update((byte) datum);\n _digestvalidto++; // JMC: Was missing.\n\n } // Otherwise, advancing of the position will destroy the digest sync.\n\n datum = _head.crypt((byte) datum, _here);\n _backing.write(datum);\n }",
"protected void storeBuffer(Buffer buffer, String targetPath) {\n\t\tFileSystem fileSystem = Mesh.vertx().fileSystem();\n\t\tfileSystem.writeFileBlocking(targetPath, buffer);\n\t\t// log.error(\"Failed to save file to {\" + targetPath + \"}\", error);\n\t\t// throw error(INTERNAL_SERVER_ERROR, \"node_error_upload_failed\", error);\n\t}",
"public void streamWrite(byte[] buffer,int bufferOffset,int nrOfBytes) throws VlException\n {\n if (this instanceof VStreamWritable)\n {\n VStreamWritable wfile = (VStreamWritable) (this);\n OutputStream ostr = wfile.getOutputStream(); // do not append\n\n try\n {\n ostr.write(buffer, bufferOffset, nrOfBytes);\n ostr.flush(); \n ostr.close(); // Close between actions !\n }\n catch (IOException e)\n {\n throw new VlIOException(\"Failed to write to file:\" + this, e);\n }\n }\n else\n {\n throw new nl.uva.vlet.exception.NotImplementedException(\"File type does not support (remote) write access\");\n }\n }",
"public void commitPendingDataToDisk() {\n /*\n r5 = this;\n monitor-enter(r5);\n r1 = r5.mPendingWrite;\t Catch:{ all -> 0x0039 }\n r3 = 0;\n r5.mPendingWrite = r3;\t Catch:{ all -> 0x0039 }\n if (r1 != 0) goto L_0x000a;\n L_0x0008:\n monitor-exit(r5);\t Catch:{ all -> 0x0039 }\n L_0x0009:\n return;\n L_0x000a:\n r3 = r5.mWriteLock;\t Catch:{ all -> 0x0039 }\n r3.lock();\t Catch:{ all -> 0x0039 }\n monitor-exit(r5);\t Catch:{ all -> 0x0039 }\n r2 = new java.io.FileOutputStream;\t Catch:{ IOException -> 0x003c }\n r3 = r5.mFile;\t Catch:{ IOException -> 0x003c }\n r3 = r3.chooseForWrite();\t Catch:{ IOException -> 0x003c }\n r2.<init>(r3);\t Catch:{ IOException -> 0x003c }\n r3 = r1.marshall();\t Catch:{ IOException -> 0x003c }\n r2.write(r3);\t Catch:{ IOException -> 0x003c }\n r2.flush();\t Catch:{ IOException -> 0x003c }\n android.os.FileUtils.sync(r2);\t Catch:{ IOException -> 0x003c }\n r2.close();\t Catch:{ IOException -> 0x003c }\n r3 = r5.mFile;\t Catch:{ IOException -> 0x003c }\n r3.commit();\t Catch:{ IOException -> 0x003c }\n r1.recycle();\n r3 = r5.mWriteLock;\n r3.unlock();\n goto L_0x0009;\n L_0x0039:\n r3 = move-exception;\n monitor-exit(r5);\t Catch:{ all -> 0x0039 }\n throw r3;\n L_0x003c:\n r0 = move-exception;\n r3 = \"BatteryStats\";\n r4 = \"Error writing battery statistics\";\n android.util.Slog.w(r3, r4, r0);\t Catch:{ all -> 0x0052 }\n r3 = r5.mFile;\t Catch:{ all -> 0x0052 }\n r3.rollback();\t Catch:{ all -> 0x0052 }\n r1.recycle();\n r3 = r5.mWriteLock;\n r3.unlock();\n goto L_0x0009;\n L_0x0052:\n r3 = move-exception;\n r1.recycle();\n r4 = r5.mWriteLock;\n r4.unlock();\n throw r3;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.android.internal.os.BatteryStatsImpl.commitPendingDataToDisk():void\");\n }",
"public void append(IoBuffer buffer) {\n data.offerLast(buffer);\n updateBufferList();\n }",
"private int fillBuffer() throws IOException {\r\n int n = super.read(buffer, 0, BUF_SIZE);\r\n if (n >= 0) {\r\n file_pos +=n;\r\n buf_end = n;\r\n buf_pos = 0;\r\n }\r\n return n;\r\n }",
"public int writeBytes(FileChannel in, long position, int length)\r\n/* 910: */ throws IOException\r\n/* 911: */ {\r\n/* 912:916 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 913:917 */ return super.writeBytes(in, position, length);\r\n/* 914: */ }",
"public void write(int fileId, ByteBuffer contents) throws IOException {\n Assert.isPositive(fileId, \"File Id must be positive\");\n Assert.isTrue(fileId <= 0xFFFF, \"File Id is 2 bytes at most\");\n Assert.isTrue(contents.remaining() <= 0xFFFFFF, \"Files must be < 16 megabytes\");\n\n // Store in the index where the file starts, and how big it is\n long currentBlock = (data.size() + TOTAL_BLOCK_LEN - 1) / TOTAL_BLOCK_LEN;\n Assert.isTrue(currentBlock + (contents.remaining() + TOTAL_BLOCK_LEN - 1) / TOTAL_BLOCK_LEN < 0xFFFFFF, \"Cache size would reach 16 million blocks (8.125gb)\");\n\n ByteBuffer entry = ByteBuffer.allocate(INDEX_BLOCK_LEN);\n writeTriByte(entry, contents.remaining());\n writeTriByte(entry, (int) currentBlock);\n\n entry.flip();\n index.write(entry, fileId * INDEX_BLOCK_LEN);\n\n // Begin writing the payload\n short chunkNumber = 0;\n ByteBuffer chunk = ByteBuffer.allocate(TOTAL_BLOCK_LEN);\n\n while(contents.hasRemaining()) {\n long nextBlock = currentBlock + 1;\n\n chunk.putShort((short) fileId);\n chunk.putShort(chunkNumber);\n writeTriByte(chunk, (int) nextBlock);\n chunk.put(indexId);\n\n // We write as much of the contents to the chunk buffer as possible\n int limit = contents.limit();\n contents.limit(Math.min(limit, contents.position() + chunk.remaining()));\n chunk.put(contents);\n contents.limit(limit);\n\n chunk.flip();\n data.write(chunk, currentBlock * TOTAL_BLOCK_LEN);\n\n // Reset the chunk buffer to position 0\n chunk.flip();\n\n chunkNumber++;\n currentBlock = nextBlock;\n }\n\n lastModified = System.currentTimeMillis();\n }",
"@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n // If not at the end yet,\n if (p < df.size()) {\n // Get the current value,\n byte cur_b = df.get();\n // If the value we are inserting is different,\n if (cur_b != ib) {\n // Reposition and put the new value,\n df.position(p);\n df.put(ib);\n// ++change_count;\n }\n }\n // At the end so write the byte,\n else {\n df.put(ib);\n }\n }",
"public ByteBuffer filedata(int pos) throws IOException\n {\n ByteBuffer buf = ByteBuffer.allocate(1024);\n \t buf.order(ByteOrder.LITTLE_ENDIAN);\n \t byte[] bytes = new byte[1024];\n f.seek(1024*pos);\n \t f.read(bytes);\n \t buf.put(bytes);\n \t return buf;\n }",
"public void flush() {\n\r\n int inflatedSize = buffer.position();\r\n deflator.setInput(buffer.getBuffer(), 0, inflatedSize);\r\n deflator.finish();\r\n int deflatedSize = deflator.deflate(compressionBuffer.array());\r\n deflator.reset();\r\n\r\n try {\r\n outputStream.writeInt(deflatedSize);\r\n outputStream.writeInt(inflatedSize);\r\n outputStream.write(compressionBuffer.array(), 0, deflatedSize);\r\n }\r\n catch (IOException e) {\r\n throw new RuntimeException(\"Failed to write compressed data to stream\", e);\r\n }\r\n\r\n buffer.clear();\r\n compressionBuffer.clear();\r\n }",
"public void write(long offset, byte buffer[], int bufferOffset, int nrOfBytes) throws VlException\n {\n\n // writing as a single stream usually is faster:\n if (offset==0) \n {\n this.streamWrite(buffer,bufferOffset,nrOfBytes); \n }\n else if (this instanceof VRandomAccessable)\n {\n ((VRandomAccessable) this).writeBytes(offset, buffer, bufferOffset,\n nrOfBytes);\n }\n else\n {\n throw new NotImplementedException(\n \"This resource is not Random Accessable (interface VRandomAccessable not implemented):\"\n + this);\n }\n }",
"void write(LogBuffer lb) throws IOException\n {\n try {\n if (lb.rewind)\n {\n channel.position(0);\n ++rewindCounter;\n lb.rewind = false;\n }\n\n bytesWritten += channel.write(lb.buffer);\n position = channel.position();\n } catch (IOException e) {\n // BUG 303907 - add message to IOException\n IOException ioe = new IOException(\"LogFile.write(): attempting to write \" + \n file.getName() + \" [\" + e.getMessage() + \"]\");\n ioe.setStackTrace(e.getStackTrace());\n throw ioe;\n }\n }",
"public void seek(long pos) throws IOException {\n checkClosed();\n\n if (pos < flushedPos) {\n throw new IndexOutOfBoundsException();\n }\n\n cache.seek(pos);\n this.streamPos = cache.getFilePointer();\n maxStreamPos = Math.max(maxStreamPos, streamPos);\n this.bitOffset = 0;\n }",
"public void FilesBufferWrite2Append() throws IOException {\n \ttry { \t\n \t\t\n \t \t/* This logic will check whether the file\n \t \t \t * exists or not. If the file is not found\n \t \t \t * at the specified location it would create\n \t \t \t * a new file*/\n \t \t \tif (!file.exists()) {\n \t \t\t file.createNewFile();\n \t \t \t}\n \t\t\n \t \t \t//KP : java.nio.file.Files.write - NIO is buffer oriented & IO is stream oriented!]\n \t\tString str2Write = \"\\n\" + LocalDateTime.now().toString() + \"\\t\" + outPrintLn + \"\\n\";\n \t\tFiles.write(Paths.get(outFilePath), str2Write.getBytes(), StandardOpenOption.APPEND);\n \t\t\n \t}catch (IOException e) {\n\t \t// TODO Auto-generated catch block\n\t \te.printStackTrace();\t\t\n\t\t\tSystem.out.print(outPrintLn);\n\t\t\tSystem.out.println(outPrintLn);\t\n \t}\n }",
"void writeTo(ByteBuffer buffer) {\n/* 526 */ Preconditions.checkNotNull(buffer);\n/* 527 */ Preconditions.checkArgument(\n/* 528 */ (buffer.remaining() >= 40), \"Expected at least Stats.BYTES = %s remaining , got %s\", 40, buffer\n/* */ \n/* */ \n/* 531 */ .remaining());\n/* 532 */ buffer\n/* 533 */ .putLong(this.count)\n/* 534 */ .putDouble(this.mean)\n/* 535 */ .putDouble(this.sumOfSquaresOfDeltas)\n/* 536 */ .putDouble(this.min)\n/* 537 */ .putDouble(this.max);\n/* */ }",
"void flushBuffer();",
"@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}",
"private void flush() {\n try {\n final int flushResult = Mp3EncoderWrap.newInstance().encodeFlush(mp3Buffer);\n Log.d(TAG, \"===zhongjihao====flush mp3Buffer: \"+mp3Buffer+\" flush size: \"+flushResult);\n if (flushResult > 0) {\n mp3File.write(mp3Buffer, 0, flushResult);\n }\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n mp3File.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n Log.d(TAG, \"===zhongjihao====destroy===mp3 encoder====\");\n Mp3EncoderWrap.newInstance().destroyMp3Encoder();\n }\n }",
"public void write(short[] buffer, int offset, int bufLen) throws IOException {\n for(int i = offset; i< offset + bufLen; i++) {\n byte b1 = (byte) (buffer[i] & 0xFF);\n byte b2 = (byte) (buffer[i] >> 8);\n // Log.d(\"PHILIP\", \"writing \" + b1);\n mOutputStream.write(b1);\n // Log.d(\"PHILIP\", \"writing \" + b2);\n mOutputStream.write(b2);\n }\n }",
"public void write(ByteBuffer b) throws IOException {\n raos.write(b);\n }",
"int writeTo(byte[] iStream, int pos, ORecordVersion version);",
"void update(byte[] data, int offset, int length);",
"public abstract int Write(byte[] buf, int siz, int offset)\n\t\tthrows IOException, SMBException;",
"static void readBytes(ByteBufAllocator allocator, ByteBuffer buffer, int position, int length, OutputStream out) throws IOException {\n if (buffer.hasArray()) {\n out.write((byte[])buffer.array(), (int)(position + buffer.arrayOffset()), (int)length);\n return;\n }\n int chunkLen = Math.min((int)length, (int)8192);\n buffer.clear().position((int)position);\n if (length <= 1024 || !allocator.isDirectBufferPooled()) {\n ByteBufUtil.getBytes((ByteBuffer)buffer, (byte[])ByteBufUtil.threadLocalTempArray((int)chunkLen), (int)0, (int)chunkLen, (OutputStream)out, (int)length);\n return;\n }\n ByteBuf tmpBuf = allocator.heapBuffer((int)chunkLen);\n try {\n byte[] tmp = tmpBuf.array();\n int offset = tmpBuf.arrayOffset();\n ByteBufUtil.getBytes((ByteBuffer)buffer, (byte[])tmp, (int)offset, (int)chunkLen, (OutputStream)out, (int)length);\n return;\n }\n finally {\n tmpBuf.release();\n }\n }",
"public void flushBuffers()\n throws IOException\n {\n pool.moveToStart();\n Buffer buffer;\n while (pool.getValue() != null)\n {\n buffer = pool.remove();\n if (buffer.isDirty())\n {\n file.seek(buffer.getBlockNumber() * BLOCK_SIZE);\n file.write(buffer.readBlock());\n diskWrites++;\n }\n }\n }",
"@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}",
"public synchronized void flush() throws IOException {\n\t\tcheckNotClosed();\n\t\ttrimToSize();\n\t\tjournalWriter.flush();\n\t}",
"public void appendBytesTo (int offset, int length, IQueryBuffer dst) {\r\n\r\n\t\tif (isDirect || dst.isDirect())\r\n\t\t\tthrow new UnsupportedOperationException(\"error: cannot append bytes from/to a direct buffer\");\r\n\r\n\t\tdst.put(this.buffer.array(), offset, length);\r\n\t}",
"public void write_to_buffer(DataOutputStream out) throws IOException\r\n {\r\n for (int i = 0; i < 2*dimension; ++i)\r\n out.writeFloat(bounces[i]);\r\n out.writeInt(son);\r\n out.writeInt(num_of_data);\r\n }",
"public void addToBuffer(String filename, SensorData sensorData){\n ObjectOutputStream outstream;\n try {\n File bufferFile = new File(filename);\n //Checks to see if the buffer file already exists. \n if(bufferFile.exists())\n {\n //Create an AppendableObjectOutputStream to add the the end of the buffer file as opposed to over writeing it. \n outstream = new AppendableObjectOutputStream(new FileOutputStream (filename, true));\n } else {\n //Create an ObjectOutputStream to create a new Buffer file. \n outstream = new ObjectOutputStream(new FileOutputStream (filename)); \n }\n //Adds the SensorData to the end of the buffer file.\n outstream.writeObject(sensorData);\n outstream.close();\n } catch(IOException io) {\n System.out.println(io);\n }\n }",
"public byte[] fillMergeInputBuffers(byte[] buffer, int offset)\r\n throws IOException {\r\n file.seek(offset);\r\n file.read(buffer);\r\n return buffer;\r\n }",
"public void seek(long pos) throws IOException {\r\n int n = (int)(file_pos - pos);\r\n if (n >= 0 && n <= buf_end) {\r\n buf_pos = buf_end - n;\r\n } else {\r\n super.seek(pos);\r\n invalidate();\r\n }\r\n }",
"public void seek(long pos) throws IOException {\n/* 155 */ if (pos < 0L) {\n/* 156 */ throw new IOException(PropertyUtil.getString(\"MemoryCacheSeekableStream0\"));\n/* */ }\n/* 158 */ this.pointer = pos;\n/* */ }",
"@Override\n public void write(ByteBuffer b, int off, int len)\n throws IOException {\n byteBufferStreamOutput.write(b, off, len);\n }",
"boolean write(byte[] data, int offset, int length, long time);",
"public void bufferPacket(UtpTimestampedPacketDTO pkt) throws IOException {\r\n\t\tint sequenceNumber = pkt.utpPacket().getSequenceNumber() & 0xFFFF;\r\n\t\tint position = sequenceNumber - expectedSequenceNumber;\r\n\t\tdebug_lastSeqNumber = sequenceNumber;\r\n\t\tif (position < 0) {\r\n\t\t\tposition = mapOverflowPosition(sequenceNumber);\r\n\t\t}\r\n\t\tdebug_lastPosition = position;\r\n\t\telementCount++;\r\n\t\ttry {\r\n\t\t\tbuffer[position] = pkt;\t\t\t\r\n\t\t} catch (ArrayIndexOutOfBoundsException ioobe) {\r\n\t\t\tlog.error(\"seq, exp: \" + sequenceNumber + \" \" + expectedSequenceNumber + \" \");\r\n\t\t\tioobe.printStackTrace();\r\n\r\n\t\t\tdumpBuffer(\"oob: \" + ioobe.getMessage());\r\n\t\t\tthrow new IOException();\r\n\t\t}\r\n\r\n\t}",
"public void write(byte[] buffer) {\n try {\n String bufferstring=\"a5550100a2\";\n // byte [] buffer03=new byte[]{(byte) 0xa5, Byte.parseByte(\"ffaa\"),0x01,0x00, (byte) 0xa2};\n byte buffer01[]=bufferstring.getBytes();\n byte [] buffer02=new byte[]{(byte) 0xa5,0x55,0x01,0x00, (byte) 0xa2};\n\n\n //for(int i=0;i<100000;i++) {\n mmOutStream.write(buffer);\n // Thread.sleep(1000);\n //}\n //\n //Share the sent message back to the UI Activity\n// mHandler.obtainMessage(BluetoothChat.MESSAGE_WRITE, -1, -1, buffer)\n// .sendToTarget();\n } catch (Exception e) {\n Log.e(TAG, \"Exception during write\", e);\n }\n }",
"private void doWrite() throws IOException {\n\t\t\tbb.flip();\n\t\t\tsc.write(bb);\n\t\t\tbb.compact();\n\n\t\t\tupdateInterestOps();\n\t\t}",
"@Override\r\n\tpublic Buffer setBytes(int pos, byte[] b) {\n\t\treturn null;\r\n\t}",
"@Override\n\tpublic void setBytes(final long startpos, final byte[] bytes,\n\t\tfinal int offset, final int length)\n\t{\n\t\tcheckWritePos(startpos, startpos + length);\n\t\tfinal int neededCapacity = size + length;\n\t\tensureCapacity(neededCapacity);\n\n\t\t// copy the data\n\t\tbuffer.position((int) startpos);\n\t\tbuffer.put(bytes, offset, length);\n\n\t\t// update the maxpos\n\t\tupdateSize(startpos + length);\n\t}",
"void seek(long pos) throws IOException;"
] |
[
"0.67935866",
"0.67810774",
"0.6419498",
"0.6396374",
"0.639202",
"0.63849115",
"0.6382286",
"0.637679",
"0.6322945",
"0.6294235",
"0.624924",
"0.6220397",
"0.61856914",
"0.6135839",
"0.6105572",
"0.6077309",
"0.60479206",
"0.6034275",
"0.60123944",
"0.60110354",
"0.60076076",
"0.6003109",
"0.597217",
"0.59628135",
"0.59553367",
"0.5916621",
"0.59024423",
"0.5891233",
"0.586699",
"0.5862763",
"0.5858705",
"0.5840867",
"0.5823818",
"0.5820969",
"0.5795339",
"0.5768547",
"0.5768199",
"0.57610124",
"0.5753483",
"0.5742112",
"0.57402813",
"0.57338226",
"0.57058144",
"0.56839556",
"0.5669476",
"0.5669048",
"0.5667123",
"0.5654429",
"0.5637748",
"0.5592568",
"0.55790627",
"0.5577725",
"0.5577332",
"0.55758214",
"0.5569699",
"0.5567094",
"0.55541605",
"0.5545754",
"0.5542115",
"0.55393493",
"0.5518872",
"0.55039704",
"0.5503867",
"0.5502009",
"0.550192",
"0.5500612",
"0.5498782",
"0.5498144",
"0.5483544",
"0.54820895",
"0.5481911",
"0.5479331",
"0.54772747",
"0.54764324",
"0.5468476",
"0.5462604",
"0.54568344",
"0.5451882",
"0.5451263",
"0.544827",
"0.5447744",
"0.5446018",
"0.54446214",
"0.54240716",
"0.5417981",
"0.54077655",
"0.53958595",
"0.5392118",
"0.53885895",
"0.53872275",
"0.53870904",
"0.5381689",
"0.53747207",
"0.53684664",
"0.536533",
"0.5365187",
"0.536233",
"0.5359199",
"0.5356879",
"0.5352244"
] |
0.63625854
|
8
|
remove record in table GuestPlayer (case: user is anon
|
public void removeGuestPlayerFromDB(String username) throws SQLException {
PreparedStatement stm = T3DB.getConnection().prepareStatement(
"delete from GuestPlayer where displayname=?");
stm.setString(1, username);
stm.executeUpdate();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"CratePrize removeEditingUser(Player player);",
"private void removePlayerFromLobby() {\n\n //Added Firebase functionality assuming var player is the player who wants to leave the game.\n }",
"private void deletePlayer(Player p) \r\n\t{\n\t\tlogger.info(\"Deleting player ; '\" + p.getName() +\"'\");\r\n\t\tplayerDao.remove(p);\r\n\t}",
"private void deleteHocSinh() {\n\t\tString username = (String) table1\n\t\t\t\t.getValueAt(table1.getSelectedRow(), 0);\n\t\thocsinhdao.deleteUser(username);\n\t}",
"private void eliminatePlayer(Player loser){\n players.remove(loser);\n }",
"@Override\n public void removePlayer(String nickname) throws IOException {\n try {\n String sql = \"DELETE FROM sep2database.player WHERE nickname =?;\";\n db.update(sql, nickname);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }",
"public void deleteGuest(User user) throws SQLException {\n PreparedStatement pr = connection.prepareStatement(Queries.deleteGuest);\n pr.setString(1, user.getUserFullName());\n pr.executeUpdate();\n pr.close();\n }",
"public void removePlayerFromTable(Player player){\n\t\tgamePlayers.remove(player);\n\t}",
"@Override\n\tpublic void deletePlayer(Joueur joueur) {\n\t\t\n\t}",
"@Test\n public void testremovePlayer() {\n session.removePlayer(playerRemco);\n // There already was 1 player, so now there should be 0\n assertEquals(0, session.getPlayers().size());\n }",
"boolean removePlayer(String player);",
"@Override\r\n\tpublic void delete(Player t) {\n\r\n\t}",
"@Override\n public void removePlayer(Player player){\n this.steadyPlayers.remove(player);\n }",
"public void eliminatePlayer(Character player){\r\n\t\tplayer.setAsPlayer(false);\r\n\t\tSystem.err.println(player.getName() + \" was eliminated\");\r\n\t}",
"public void remove() {\n session.removeAttribute(\"remoteUser\");\n session.removeAttribute(\"authCode\");\n setRemoteUser(\"\");\n setAuthCode(AuthSource.DENIED);\n }",
"public abstract boolean deleteGame2(String creatorUsername) throws SQLException;",
"void remove(User user) throws SQLException;",
"public void removeGuest(Guest guest) {\n guestList.remove(guest);\n storeData();\n }",
"public void removePlayer(Person user) {\r\n\t\trooms[user.getY()][user.getX()].removeOccupant(user);\r\n\t}",
"@Override\n\tpublic void delete(User entity) {\n\t\tuserlist.remove(String.valueOf(entity.getDni()));\n\t}",
"public void removePlayer(Player player){\n playerList.remove(player);\n }",
"@Override\n public Administrador remove(Object key) {\n Administrador a = this.get(key);\n try {\n conn = Connect.connect();\n \n PreparedStatement stm = conn.prepareStatement(\"UPDATE Administrador SET visivel=FALSE WHERE username=?;\");\n \n stm.setString(1, (String)key); //parse da key para a querie\n stm.executeUpdate();\n \n } catch (SQLException | ClassNotFoundException e) {\n throw new NullPointerException(e.getMessage());\n } finally {\n Connect.close(conn);\n }\n return a;\n }",
"void delete(User user);",
"void delete(User user);",
"@Override\n\tpublic void deleteUser(user theUser) {\n\t\t\n\t}",
"int removeUser(User user);",
"public void removePlayerFromCurrentLobby(LobbyPlayer player) {\n DocumentReference doc = Firebase.docRefFromPath(\"lobbies/\" + player.getLobbyCode());\n doc.update(FieldPath.of(\"players\", player.getUsername()), FieldValue.delete());\n removeListener();\n GameService.removeListener();\n cache = null;\n }",
"public void killPlayer() {\n \tdungeon.removeentity(getX(), getY(), name);\n \t\tdungeon.deleteentity(getX(),getY(),name);\n \t\t//System.out.println(\"YOU LOSE MAMA\");\n \t\t//System.exit(0);\n \t\t\n }",
"@Override\n\tpublic void eliminar() {\n\t\tLOG.info(\"Se elimino el usuario de la bd\");\n\t}",
"public void delPlayer(final Integer user_id) {\n if (Objects.equals(user_id, current_id)) {\n playersOnGame.clear();\n\n }\n else {\n // Search and remove a player from list\n for ( Player p : playersOnGame) {\n if (p.getUserId() == user_id) {\n playersOnGame.remove(p);\n break;\n }\n }\n }\n\n // Check if the current client is deleted\n if (Objects.equals(user_id, current_id)) {\n playerListLay.removeAllViews();\n playerCards.clear();\n Log.v(\"Del\", String.valueOf(user_id));\n }\n else {\n // Search and remove a player from list\n for (LinearLayout lay : playerCards) {\n if (lay.getTag() == user_id) {\n playerListLay.removeView(lay);\n playerCards.remove(lay);\n break;\n }\n }\n }\n\n // Update number of players\n playerNum.setText(String.valueOf(playersOnGame.size()));\n }",
"@Override\n\tpublic void delete(UserServer obj) {\n\t\ttry {\n\t\t\tstat = conn.prepareStatement(\" DELETE FROM client \" + \" WHERE idclient = ? \");\n\t\t\tstat.setInt(1, obj.getId());\n\t\t\tstat.execute();\n\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}",
"void deleteUser( String username );",
"public void erasePlayer(Player player) {\n if(player.equals(occupant)) {\n // System.out.println(\"killedToo\");\n revertBlock(player);\n getAdjacent(GameEngine.UP).erasePlayer(player);\n getAdjacent(GameEngine.DOWN).erasePlayer(player);\n getAdjacent(GameEngine.LEFT).erasePlayer(player);\n getAdjacent(GameEngine.RIGHT).erasePlayer(player);\n }\n }",
"void removeFromGame() {\n\t\t// remove from game\n\t\t//only for multi-player\n\t}",
"public void removeGuest(Invitato in){\n AssegnamentiTavolo.remove(in);\n num_posti++;\n openAssignment();\n }",
"@Override\r\n\tpublic void delete() {\n\t\tString delete=\"DELETE FROM members WHERE id =?\";\r\n\t\t try(Connection connection=db.getConnection();) {\r\n\t\t\t\t\r\n\t\t\t\tpreparedStatement=connection.prepareStatement(delete);\r\n\t\t\t\tpreparedStatement.setString(1, super.getIdString());\r\n\t\t \tpreparedStatement.executeUpdate();\r\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Transaction successful\");\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\tJOptionPane.showMessageDialog(null, \"Something went wrong\");\r\n\t\t\t}\r\n\t}",
"public void delete(String username);",
"public abstract BossBar removePlayer(UUID uuid);",
"public void playerLogout(Player player)\n {\n PlayerAFKModel playerAFKModel = players.get(player.getUniqueId());\n\n // Check if player is AFK\n if( playerAFKModel.isAFK() )\n {\n // Is AFK. Update AFK timer before removal\n playerAFKModel.updateAFKTimer();\n playerAFKModel.markAsNotAFK();\n }\n players.remove(player.getUniqueId());\n }",
"public void eliminar() {\n try {\n userFound = clientefacadelocal.find(this.idcliente);\n if (userFound != null) {\n clientefacadelocal.remove(userFound);\n FacesContext fc = FacesContext.getCurrentInstance();\n fc.getExternalContext().redirect(\"../index.xhtml\");\n System.out.println(\"Usuario Eliminado\");\n } else {\n System.out.println(\"Usuario No Encontrado\");\n }\n } catch (Exception e) {\n System.out.println(\"Error al eliminar el cliente \" + e);\n }\n }",
"public String deleteUserDetails() {\n\r\n EntityManager em = CreateEntityManager.getEntityManager();\r\n EntityTransaction etx = em.getTransaction(); \r\n\r\n try { \r\n etx.begin(); \r\n if (golfUserDetails.getUserId() != null) {\r\n em.remove(em.merge(golfUserDetails));\r\n }\r\n etx.commit();\r\n em.close();\r\n } catch (Exception ex) {\r\n System.out.println(\"deleteCourseDetails - remove : Exception : \" + ex.getMessage());\r\n }\r\n \r\n return displayHomePage();\r\n }",
"public void delete(User obj) {\n\t\t\n\t}",
"public void removeUser(String username);",
"public void deleteUser(String name);",
"@Override\n public void unsuspendPlayer(String username) {\n if (match != null && username != null) {\n match.unsuspendPlayer(username);\n }\n }",
"public void removeUser(String username){\n \t\tString id = username;\n \t\tString query = \"DELETE FROM users WHERE id = '\"+ id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM friends WHERE id1 = id OR id2 = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM achievements WHERE user = id;\";\n \t\tsqlUpdate(query);\n \t\t\n \t\tquery = \"DELETE FROM notes WHERE source = '\" + id + \"' OR dest = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM challenges WHERE source = '\" + id + \"' OR dest = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t\tquery = \"DELETE FROM requests WHERE source = '\" + id + \"' OR dest = '\" + id + \"';\";\n \t\tsqlUpdate(query);\n \t}",
"private static void removeUserFromViewerList(String nick) {\r\n synchronized (CURRENT_VIEWERS) {\r\n if (CURRENT_VIEWERS.contains(nick)) {\r\n CURRENT_VIEWERS.remove(nick);\r\n }\r\n }\r\n }",
"void unloadUser(KingdomUser user);",
"public void deleteUser(String username);",
"public void removeUser(){\n googleId_ = User.getDeletedUserGoogleID();\n this.addToDB(DBUtility.get().getDb_());\n }",
"void deleteUser(int id);",
"void removeUser(Long id);",
"public void removeMember(Player player) {\n\t\tmembers.remove(player.getUniqueId());\n\t\tif (members.isEmpty()) {\n\t\t\tdeleteParty(this); // Uncaches empty parties\n\t\t}\n\t}",
"public static void deletePlayers() throws Exception {\n String id = executeQuery(\"SELECT * FROM players WHERE us_login LIKE '\" + \"PLogin\" + \"%';\", \"us_person_id\");\n while (!id.equals(\"\")) {\n\n executeQuery(\"DELETE FROM transactions WHERE debit_account_id in (select account_id FROM accounts WHERE person_id =\"\n + id + \" )\" + \"OR credit_account_id in (select account_id from accounts where person_id =\" + id + \" );\", \"\");\n\n executeQuery(\"DELETE FROM accounts WHERE person_id = \" + id + \";\", \"\");\n\n executeQuery(\"DELETE FROM persons WHERE person_id = \" + id + \";\", \"\");\n executeQuery(\"DELETE FROM players WHERE us_person_id = \" + id + \";\", \"\");\n\n id = executeQuery(\"SELECT * FROM players WHERE us_login LIKE '\" + \"PLogin\" + \"%';\", \"us_person_id\");\n }\n executeQuery(\"DELETE FROM audit_events WHERE object_name LIKE '\" + \"PLogin\" + \"%';\", \"\");\n }",
"void remove(User user) throws AccessControlException;",
"@Override\r\n\tpublic void remove(int no) {\n\t\tsession.delete(\"enter.delete\", no);\r\n\t}",
"public void removePlayer(String name) {\n\t\tcreateGameLobbyController.removePlayerFromList(name);\n\t}",
"public String removePlayer(int pno){\n\t\tplayerPosition.remove(pno);\n\t\tcollectedGold.remove(pno);\n\t\treturn \"You have left the game!\";\n\t}",
"private void removeUser(int index) {\n ensureUserIsMutable();\n user_.remove(index);\n }",
"int deleteByPrimaryKey(GpPubgPlayer record);",
"public void cmdRemovePlayer(User teller, Player player) {\n boolean removed = tournamentService.removePlayer(player);\n tournamentService.flush();\n if (!removed) {\n command.tell(teller, \"I''m not able to find {0} in the tournament.\", player);\n } else {\n command.tell(teller, \"Done. Player {0} is no longer in the tournament.\", player);\n }\n }",
"public void removePlayer(String name) {\n\t\tUser user = users.get(userTurn);\n\t\tFootballPlayer player = market.findPlayer(name);\n\t\tdouble marketValue = player.getMarketValue();\n\t\t\n\t\tif (tmpTeam.size() > 0) {\n\t\t\tuser.updateBudget(marketValue, \"+\");\n\t\t\ttmpTeam.removePlayer(name);\n\t\t}\n\t\tSystem.out.println(\"budget after sell\" + user.getBudget());\n\t}",
"public void declineInvite(String player) {\r\n connection.declineInvite(player);\r\n }",
"public void removeUser(long id) {\n\troomMembers.remove(id);\n }",
"public void removePlayer(int index) {\n trickPoints.remove(index);\n gamePoints.remove(index);\n lives.remove(index);\n }",
"@Override\n\tpublic User delete(User t) {\n\t\treturn null;\n\t}",
"public static void signOut(String name, Session user) {\n playerList.remove(name);\n user.removeAttribute(\"player\");\n }",
"public void removeMember(Player player) {\n this.members.remove(player.getUniqueId().toString());\n }",
"private void removePlayerFromTheGame(){\n ServerConnection toRemove = currClient;\n\n currClient.send(\"You have been removed from the match!\");\n updateCurrClient();\n server.removePlayerFromMatch(gameID, toRemove);\n\n if ( toRemove == client1 ){\n this.client1 = null;\n }\n else if ( toRemove == client2 ){\n this.client2 = null;\n }\n else {\n client3 = null;\n }\n gameMessage.notify(gameMessage);\n\n if ( (client1 == null && client2 == null) || (client2 == null && client3 == null) || (client1 == null && client3 == null) ){\n gameMessage.notify(gameMessage);\n }\n if ( liteGame.isWinner() ) endOfTheGame = true;\n playerRemoved = true;\n }",
"public void del(String nickname) {\r\n // loop through all users\r\n for (int i = this.UserList.size(); i > 0; i--) {\r\n // check if the user matches\r\n User user = (User) this.UserList.get(i - 1);\r\n if (user.nick().equalsIgnoreCase(nickname)) {\r\n this.UserList.remove(i - 1);\r\n }\r\n }\r\n }",
"@Override\r\n\tpublic boolean deleteUser() {\n\t\treturn false;\r\n\t}",
"@Override\r\n\tpublic boolean delete(String email, String pw) {\n\t\treturn jdbcTemplate.update(\"delete s_member where email=?,pw=?\", email,pw)>0;\r\n\t}",
"private void removeUser(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {\n\t\ttry {\n\t\t\tPrintWriter out = res.getWriter();\n\t\t\tPreferenceDB.removePreferencesUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER)));\n\t\t\tif (UserDB.getnameOfUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER))) == null)\n\t\t\t\tout.print(\"ok\");\n\t\t\tUserDB.removeUser(Long.parseLong(req.getParameter(Constants.USER_IDENTIFIER)));\n\t\t\tout.print(\"ok\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\tres.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n\t\t}\n\t}",
"@Override\n\tpublic void deleteUser() {\n\t\tLog.d(\"HFModuleManager\", \"deleteUser\");\n\t}",
"public void removePlayer(String p) {\n this.playersNames.remove(p);\n }",
"public void exitGuest(int i, int i2) {\n switchToUserId(i2);\n this.mUserManager.removeUser(i);\n }",
"boolean delete(User user);",
"public void removeUserFromRoom(String username)\r\n\t{\r\n\t\ttheGridView.removeCharacterFromRoom(username);\r\n\t}",
"public void unregisterPlayer(final Player p) {\n\t\ttry {\n\t\n\t\n\t\tserver.getLoginConnector().getActionSender().playerLogout(p.getUsernameHash());\n\n\t\t\n\t\tp.setLoggedIn(false);\n\t\tp.resetAll();\n\t\tp.save();\n\t\tMob opponent = p.getOpponent();\n\t\tif (opponent != null) {\n\t\t\tp.resetCombat(CombatState.ERROR);\n\t\t\topponent.resetCombat(CombatState.ERROR);\n\t\t}\n\t\t\n\t\tdelayedEventHandler.removePlayersEvents(p);\n\t\tplayers.remove(p);\n\t\tsetLocation(p, p.getLocation(), null);\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}",
"public void deleteUser() {\n\t\tSystem.out.println(\"com.zzu.yhl.a_jdk deleteUser\");\r\n\t}",
"public void removeUser(Customer user) {}",
"@FXML\n private void deleteUser(ActionEvent event) throws IOException {\n User selectedUser = table.getSelectionModel().getSelectedItem();\n\n boolean userWasRemoved = selectedUser.delete();\n\n if (userWasRemoved) {\n userList.remove(selectedUser);\n UsermanagementUtilities.setFeedback(event,selectedUser.getName().getFirstName()+\" \"+LanguageHandler.getText(\"userDeleted\"),true);\n } else {\n UsermanagementUtilities.setFeedback(event,LanguageHandler.getText(\"userNotDeleted\"),false);\n }\n }",
"boolean unblockUser(User user);",
"public void deleteUser(IndividualUser user) {\n try{\n PreparedStatement s = sql.prepareStatement(\"DELETE FROM Users WHERE userName=? AND id=? AND firstName=? AND lastName=?;\");\n s.setString(1, user.getId());\n s.setInt(2,user.getIdNum());\n s.setString(3, user.getFirstName());\n s.setString(4, user.getLastName());\n s.execute();\n s.close();\n } catch (SQLException e) {\n sqlException(e);\n }\n }",
"public void removePlayer(Player plr){\r\n\t\t\r\n\t\tlobby.removePlayerFromLobby(plr);\r\n\t\tlobby.updateNames();\r\n\t\tsendNameInfoToAll();\r\n\t\tremoveConnection(plr);\r\n\t}",
"public void deleteUser(User userToDelete) throws Exception;",
"public void deleteOrLeaveTeam(MouseEvent mouseEvent) {\n if(getUsernameOfOrganizer().compareTo(teamViewController.getUsernameOfCurrentUser())==0){\n\n try {\n boolean outcome = Update.removeTeam(team.getId());\n if (outcome == true)\n teamViewController.deleteTeamUI(this);\n }catch (DiscoveryException | ServiceUnavailableException s){\n teamViewController.destroy();\n teamViewController.showPopUpOfExplorationMode();\n\n }catch (Exception n) {\n teamViewController.showPopUp(\"There was a problem. Impossible to remove team\");\n }\n\n }else { //if i'm not the organizer just leave team\n\n MemberController me = null;\n for(int i=0; i<membersController.size(); i++) {\n if (membersController.get(i).getUsername().compareTo(getUsernameOfCurrentUser()) == 0) {\n me = membersController.get(i);\n }\n\n }\n //remove from database (blocking UI)\n try {\n boolean outcome = Update.removeMemberFromTeam(getUsernameOfCurrentUser(), getIdTeam());\n\n //since the username is unique we can scroll all the boxMembers until we find a child whose username is the same of this\n if (outcome == true) {\n removeMemberController(me);\n removeMemberFromTeam(getUsernameOfCurrentUser());\n //update UI\n teamViewController.deleteTeamUI(this);\n }\n }catch (DiscoveryException | ServiceUnavailableException s){\n teamViewController.destroy();\n teamViewController.showPopUpOfExplorationMode();\n\n }catch (Exception n) {\n teamViewController.showPopUp(\"There was a problem. Impossible to leave team.\");\n }\n\n }\n }",
"public boolean delete(User user);",
"private void deleteLeftOversFromDB(String uid, String message){\n Toast.makeText(RegistrationActivity.this, message, Toast.LENGTH_LONG).show();\n database.getReference(\"ids\").child(uid).removeValue(); //remove the id from ids if user wasn't created eventually\n mAuth.getCurrentUser().delete(); // remove the user from the authentication db if user not created\n }",
"public void delete(User usuario);",
"@Override\n public boolean deleteUser(User user) {\n return false;\n }",
"private void eliminatePlayers() {\n \n Iterator<Player> iter = players.iterator();\n\n while (iter.hasNext()) {\n Player player = iter.next();\n\n if (player.getList().isEmpty()) {\n iter.remove();\n if (player.getIsHuman()) {\n setGameState(GameState.HUMAN_OUT);\n }\n // need to remember that due to successive draws, the active player could run\n // out of cards\n // select a new random player if player gets eliminated\n if (!players.contains(activePlayer)) {\n selectRandomPlayer();\n }\n }\n }\n }",
"public void RemovePlayer(int game_number, String user)\n\t{\n\t\tgametype[game_number].PlayerLeavesGame(user);\n\t}",
"@Override\r\n\tpublic User deleteRcord(int id) {\n\t\treturn null;\r\n\t}",
"public void removePlayer(Player player){\n for(int x = 0; x < players.size(); x++){\n if(players.get(x) == player){\n players.remove(x);\n }\n }\n }",
"private void deleteFakeTeam(Player player) {\n\t\tPacketContainer packet = new PacketContainer(PacketType.Play.Server.SCOREBOARD_TEAM);\n\t\tpacket.getStrings().write(0, FakeTeamName);\n\t\tpacket.getIntegers().write(1, 1); // Set remove mode\n\t\t\n\t\ttry {\n\t\t\tProtocolLibrary.getProtocolManager().sendServerPacket(player, packet);\n\t\t} catch (InvocationTargetException e) {\n\t\t\t// Should never happen unless packet changes\n\t\t\tthrow new AssertionError(e);\n\t\t}\n\t}",
"@Override\n\tpublic void removeUser(int id) {\n\t\t\n\t}",
"@Override\n public void deletePlayer(Long id) {\n playerRepository.delete(id);\n }",
"public static void dropMysqlUser(Eleve e) {\n Session session = HibernateUtils.getSessionFactory().openSession();\r\n String SQLRequest = \"DROP USER '\" + e.getAbreviation() + \"'@'%' ; \";\r\n System.out.println(SQLRequest);\r\n session.beginTransaction();\r\n session.createSQLQuery(SQLRequest).executeUpdate();\r\n session.getTransaction().commit();\r\n session.close();\r\n\r\n }",
"public User delete(String user);"
] |
[
"0.69699556",
"0.65812516",
"0.64232314",
"0.64022225",
"0.6283146",
"0.62156016",
"0.6204293",
"0.6191484",
"0.6168947",
"0.6135719",
"0.610938",
"0.6079025",
"0.6078444",
"0.6060719",
"0.6060206",
"0.6002658",
"0.5991673",
"0.5952831",
"0.59330034",
"0.58979225",
"0.589777",
"0.5886243",
"0.5872124",
"0.5872124",
"0.5867904",
"0.58629566",
"0.58525527",
"0.58521724",
"0.5844413",
"0.5843675",
"0.5839548",
"0.5836026",
"0.5833435",
"0.5821821",
"0.5814877",
"0.5810839",
"0.5804541",
"0.580222",
"0.5799776",
"0.57892597",
"0.57867277",
"0.57855713",
"0.5778452",
"0.57776934",
"0.57647246",
"0.57465285",
"0.57463074",
"0.5741283",
"0.57403624",
"0.5736528",
"0.57344085",
"0.572714",
"0.5725104",
"0.57134205",
"0.57127285",
"0.57054186",
"0.5702593",
"0.56960994",
"0.5695576",
"0.5690349",
"0.5685955",
"0.56803226",
"0.5680168",
"0.5678531",
"0.5675757",
"0.5674591",
"0.5667897",
"0.56595504",
"0.5657937",
"0.56534386",
"0.56504333",
"0.56469095",
"0.56443834",
"0.5637929",
"0.5636251",
"0.5633713",
"0.56316084",
"0.5630678",
"0.56284696",
"0.562734",
"0.56271124",
"0.56261736",
"0.5620645",
"0.56187373",
"0.56177896",
"0.5612827",
"0.56102663",
"0.56083643",
"0.5607031",
"0.5603608",
"0.5594834",
"0.5594006",
"0.55928797",
"0.55910355",
"0.55906934",
"0.55889404",
"0.55850685",
"0.5584265",
"0.5582015",
"0.55805355"
] |
0.7556455
|
0
|
/ return date with format: dd/mm/yyyy
|
public static String Milisec2DDMMYYYY(long ts) {
if (ts == 0) {
return "";
} else {
java.util.Calendar calendar = java.util.Calendar.getInstance();
calendar.setTime(new java.util.Date(ts));
String strTemp = Integer.toString(calendar
.get(calendar.DAY_OF_MONTH));
if (calendar.get(calendar.DAY_OF_MONTH) < 10) {
strTemp = "0" + strTemp;
}
if (calendar.get(calendar.MONTH) + 1 < 10) {
return strTemp + "/0" + (calendar.get(calendar.MONTH) + 1)
+ "/" + calendar.get(calendar.YEAR);
} else {
return strTemp + "/" + (calendar.get(calendar.MONTH) + 1) + "/"
+ calendar.get(calendar.YEAR);
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String dar_fecha(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n return dateFormat.format(date).toString();\n\n }",
"private String formatDate(Date date) {\n String resultDate;\n SimpleDateFormat dateFormat;\n dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n resultDate = dateFormat.format(date);\n return resultDate;\n }",
"private static String convertToDDMMYYYY(Date date) {\n\t\tString returnStr = \"\";\n\t\ttry {\n\t\tDateFormat format1 = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturnStr = format1.format(date);\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn returnStr;\n\t}",
"public String ConvertDate(){\r\n//\t\tDate date=JavaUtils.getSystemDate();\r\n//\t DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\r\n\t String pattern = \"yyyy-MM-dd\";\r\n\t SimpleDateFormat simpleDateFormat = new SimpleDateFormat(pattern);\r\n\r\n\t String date = simpleDateFormat.format(new Date());\r\n//\t System.out.println(date);\r\n\t \r\n//\t String s = df.format(date);\r\n//\t String result = s;\r\n//\t try {\r\n//\t date=df.parse(result);\r\n//\t } catch (ParseException e) {\r\n//\t // TODO Auto-generated catch block\r\n//\t e.printStackTrace();\r\n//\t }\r\n\t return date;\r\n\t }",
"public String getFormatedDate(Date date) {\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\treturn sdf.format(date);\r\n\t}",
"public static String getDate() {\n\t\tDate date = new Date();\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"ddMMYYYY\");\n\t\tString strDate = formatter.format(date);\n\t\treturn strDate;\n\t}",
"public String getDate(){\n String d=\"\";\n String m=\"\";\n if(day<10){\n d=0+(String.valueOf(day));\n }\n else{\n d=String.valueOf(day);\n }\n\n if(month<10){\n m=0+(String.valueOf(month));\n }\n else{\n m=String.valueOf(month);\n }\n //returning day/month/year\n return (d+\"/\"+m+\"/\"+String.valueOf(year));\n }",
"public String convertDateToString(){\n\t\tString aDate = \"\";\n\t\taDate += Integer.toString(day);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(month);\n\t\taDate += \"/\";\n\t\taDate += Integer.toString(year);\n\t\treturn aDate;\n\t}",
"java.lang.String getToDate();",
"java.lang.String getDate();",
"public String getDateString() {\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH); // month is stored from 0-11 so adjust +1 for final display\n int day_of_month = date.get(Calendar.DAY_OF_MONTH);\n return String.valueOf(month + 1) + '/' + String.valueOf(day_of_month) + '/' + year;\n }",
"public static String dateToString(Date date){\r\n SimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n return df.format(date);\r\n }",
"public static String currentdate() {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\tDate date = new Date();\n\t\treturn dateFormat.format(date);\n\n\t}",
"String getDate();",
"String getDate();",
"public static String getDate()\n {\n Date date = new Date();\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd\");\n return dateFormat.format(date);\n }",
"public String getDate()\n {\n return day + \"/\" + month + \"/\" + year;\n }",
"public String retornaData(){\n\t\tCalendar calendar = new GregorianCalendar();\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tDate date = new Date();\n\t\tcalendar.setTime(date);\n\t\treturn df.format(calendar.getTime());\n\t}",
"private static SimpleDateFormat getDateFormat() {\r\n\t\tif(dateFormat == null)\r\n\t\t\tdateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\treturn dateFormat;\r\n\t}",
"java.lang.String getStartDateYYYYMMDD();",
"private static String getDateStr() {\n\t\tDate date = Calendar.getInstance().getTime();\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"MMddyyy\");\n\t\tString dateStr = dateFormat.format(date);\n\t\treturn dateStr;\n\t}",
"public String getDate() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\treturn sdf.format(txtDate.getDate());\n\t}",
"public static String dateOnly() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yyyy\");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}",
"public String Get_date() \n {\n \n return date;\n }",
"private String toDate(Date appDate) throws ParseException {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTime(appDate);\n\t\tString formatedDate = cal.get(Calendar.DATE) + \"/\" + (cal.get(Calendar.MONTH) + 1) + \"/\" + cal.get(Calendar.YEAR);\n\t\tSystem.out.println(\"formatedDate : \" + formatedDate); \n\t\treturn formatedDate;\n\t}",
"public String getDateString(){\n return Utilities.dateToString(date);\n }",
"public Date printDate(String date){\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/mm/yyyy\");\r\n\t\ttry{\r\n\t\t\treturn sdf.parse(date);\r\n\t\t}\r\n\t\tcatch(ParseException pe){\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}",
"Date getDate();",
"Date getDate();",
"Date getDate();",
"private String leerFecha() {\n\t\ttry {\n\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"YYYY/MM/dd\");\n\t\t\treturn sdf.format(txtFecha.getDate());\n\t\t} catch (Exception e) {\n\t\t\tJOptionPane.showMessageDialog(this, \"Seleccione una fecha válida\", \"Aviso\", 2);\n\t\t\treturn null;\n\t\t}\n\t}",
"public String getUserDateString() {\n\t\tString[] tmpArr = this.getUserDate();\n\t\tString year = tmpArr[0];\n\t\tString month = tmpArr[1];\n\t\tString day = tmpArr[2];\n\t\tString out = year + \"/\" + month + \"/\" + day;\n\t\treturn out;\n\t}",
"private static Date getDate(String sdate)\n\t{\n\t\tDate date = null;\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\ttry {\n\t\t\tdate = formatter.parse(sdate);\n\t\t} catch (ParseException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn date;\n\t}",
"@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yyyy\");\n\t\t\tDate date = formatter.parse(month + \"/\" + day + \"/\" + year);\n\n\t\t\treturn formatter.format(date);\n\t\t} catch (Exception e) {\n\t\t\tthrow new RuntimeException(e);\n\t\t}\n\t}",
"public Date formatDate( String dob )\n throws ParseException {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n dateFormat.setLenient(false);\n return dateFormat.parse(dob);\n }",
"public Date ToDate(String line){\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd\");\n try {\n Date d = sdf.parse(line);\n return d;\n } catch (ParseException ex) {\n\n Log.v(\"Exception\", ex.getLocalizedMessage());\n return null;\n }\n }",
"public static String convertDate(String dbDate) throws ParseException //yyyy-MM-dd\n {\n String convertedDate = \"\";\n\n Date date = new SimpleDateFormat(\"yyyy-MM-dd\").parse(dbDate);\n\n convertedDate = new SimpleDateFormat(\"MM/dd/yyyy\").format(date);\n\n return convertedDate ;\n }",
"public String toStringDateOfBirth() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\treturn dateofbirth.format(format);\n\t}",
"private String getDate(int year, int month, int day) {\n return new StringBuilder().append(month).append(\"/\")\n .append(day).append(\"/\").append(year).toString();\n }",
"public String getCurrentDate() {\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yy\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}",
"public String toDate(Date date) {\n DateFormat df = DateFormat.getDateInstance();\r\n String fecha = df.format(date);\r\n return fecha;\r\n }",
"static String localDate(String date){\n Date d = changeDateFormat(date, \"dd/MM/yyyy\");\n DateFormat dateFormat = DateFormat.getDateInstance(DateFormat.FULL, Locale.getDefault());\n return dateFormat.format(d);\n }",
"private String formatDate(final Date date) {\r\n\t\tfinal Calendar calendar = Calendar.getInstance();\r\n\t\tcalendar.setTime(date);\r\n\r\n\t\tfinal String dayOfMonth = formatDayOfMonth(calendar);\r\n\t\tfinal String month = formatMonth(calendar);\r\n\t\tfinal String year = String.valueOf(calendar.get(Calendar.YEAR));\r\n\r\n\t\treturn String.format(\"%s/%s/%s\", year, month, dayOfMonth);\r\n\t}",
"public static String getDate() {\n return getDate(DateUtils.BASE_DATE_FORMAT);\n }",
"public String getFileFormattedDate() {\n return this.date.format(DateTimeFormatter.ofPattern(\"yyyy-MM-dd\"));\n }",
"public static Date parseDate(String date)\n {\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n Date dt = null;\n try {\n dt = format.parse(date);\n } \n catch (ParseException ex) \n {\n System.out.println(\"Unexpected error during the conversion - \" + ex);\n }\n return dt;\n }",
"public String toString() {\n\treturn String.format(\"%d/%d/%d\", year, month, day);\t\r\n\t}",
"public static String currentDate1() throws Exception {\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n\t\t// get current date time with Date()\n\t\tDate date = new Date();\n\t\t// Now format the date\n\t\tString date1 = dateFormat.format(date);\n\t\t// System.out.println(date1);\n\t\treturn date1;\n\t}",
"java.lang.String getFromDate();",
"public static String formartDate(String mDate) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\t\n\t\t\tSimpleDateFormat inSDF = new SimpleDateFormat(\"mm/dd/yyyy\");\n\t\t\t SimpleDateFormat outSDF = new SimpleDateFormat(\"yyyy-mm-dd\");\n\n\t\t\t \n\t\t\t String outDate = \"\";\n\t\t\t \n\t\t\t if (mDate != null) {\n\t\t\t try {\n\t\t\t Date date = inSDF.parse(mDate);\n\t\t\t outDate = outSDF.format(date);\n\t\t\t \n\t\t\t \n\t\t\t } catch (Exception ex){ \n\t\t\t \tex.printStackTrace();\n\t\t\t }\n\t\t\t }\n\t\t\t return outDate;\n\t\t}",
"private String convertDate(String date){\r\n String arrDate[] = date.split(\"/\");\r\n date = arrDate[2] + \"-\" + arrDate[1] + \"-\" + arrDate[0];\r\n return date;\r\n }",
"public String getDateCreationLibelle() {\n\t\tDateTimeFormatter format = DateTimeFormatter.ofPattern(\"dd/MM/yyyy hh:mm:ss\");\n\t\treturn this.dateCreation.format(format);\n\t}",
"public static String getLegibleDate(Date date) {\n\n\t\tSimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yy\"); // \"d MMM yyyy hh:mm aaa\"\n\t\tString dateInit = simpleDateFormat.format(date);\n\n\t\n\n\t\treturn dateInit;\n\t}",
"public java.sql.Date format(String date) {\n int i = 0;\n int dateAttr[];\n dateAttr = new int[3];\n for(String v : date.split(\"/\")) {\n dateAttr[i] = Integer.parseInt(v);\n i++;\n }\n\n GregorianCalendar gcalendar = new GregorianCalendar();\n gcalendar.set(dateAttr[2], dateAttr[0]-1, dateAttr[1]); // Year,Month,Day Of Month\n java.sql.Date sdate = new java.sql.Date(gcalendar.getTimeInMillis());\n return sdate;\n }",
"static String getReadableDate(LocalDate date){\r\n\t\tString readableDate = null;\r\n\t\t//convert only if non-null\r\n\t\tif(null != date){\r\n\t\t\t//convert date to readable form\r\n\t\t\treadableDate = date.toString(\"MM/dd/yyyy\");\r\n\t\t}\r\n\t\t\r\n\t\treturn readableDate;\r\n\t}",
"java.lang.String getFoundingDate();",
"public String getDate()\n {\n SimpleDateFormat newDateFormat = new SimpleDateFormat(\"EE d MMM yyyy\");\n String MySDate = newDateFormat.format(this.dueDate);\n return MySDate;\n }",
"public static String formatDate(java.util.Date uDate) {\n\t\tif (uDate == null) {\n\t\t\treturn null;\n\t\t} else {\n\t\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn dateFormat.format(uDate);\n\t\t}\n\t}",
"public final String obtenerFechaFormateada() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MMM/yyyy\");\n return fechaDeLaVisita.get().format(formatter);\n }",
"public static String getDisplayDateFormat(Date val) {\n\n\t\tif (val != null) {\n\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\t\treturn \"\" + format.format(val);\n\n\t\t} else {\n\n\t\t\treturn null;\n\n\t\t}\n\n\t}",
"private static void formatDate(Date i) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MM/dd/yy\");\n\t\tformatter.setLenient(false);\n\t\tAnswer = formatter.format(i);\n\t}",
"public static String formatDate(Date d) {\n\t\tint month = d.getMonth() + 1;\n\t\tint dayOfMonth = d.getDate();\n\t\tint year = d.getYear() + 1900;\n\t\tString y = \"\" + year;\n\t\tString m = \"\" + month;\n\t\tString dom = \"\" + dayOfMonth;\n\t\tif (month < 10) {\n\t\t\tm = \"0\" + m;\n\t\t}\n\t\tif (dayOfMonth < 10) {\n\t\t\tdom = \"0\" + dom;\n\t\t}\n\t\treturn m + \"/\" + dom + \"/\" + y.substring(2);\n\t}",
"Date getForDate();",
"public String getEntryDateString() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy MMM dd\");\n return sdf.format(entryDate.getTime());\n }",
"public static String dateTran(String dateOri){\n\t\tDateFormat formatter1 ; \n\t\tDate date ; \n\t\tString newDate=null;\n\t\tformatter1 = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\ttry {\n\t\t\tdate=formatter1.parse(dateOri);\n\t\t\tSimpleDateFormat formatter = new SimpleDateFormat ( \"M/d/yy\" );\n\t\t\tnewDate = formatter.format(date);\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn newDate;\n\t}",
"public static String getCurrentDate() {\n DateTimeFormatter dtf = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\"); \n LocalDateTime now = LocalDateTime.now(); \n return dtf.format(now);\n }",
"private String ObtenerFechaActual() {\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/mm/yyyy\");\n Calendar calendar = GregorianCalendar.getInstance();\n return String.valueOf(simpleDateFormat.format(calendar.getTime()));\n }",
"LocalDate getDate();",
"public String retrieveDate() {\n // Check if there's a valid event date.\n String date = _dateET.getText().toString();\n if (date == null || date.equals(\"\")) {\n Toast.makeText(AddActivity.this, \"Please enter a valid date.\", Toast.LENGTH_LONG).show();\n return \"\";\n }\n Pattern p = Pattern.compile(\"^(0[1-9]|1[012])/(0[1-9]|[12][0-9]|3[01])/(19|20)\\\\d\\\\d$\");\n Matcher m = p.matcher(date);\n if (!m.find()) {\n Toast.makeText(AddActivity.this, \"Please input a valid date in mm/dd/yyyy format.\", Toast.LENGTH_LONG).show();\n return \"\";\n }\n return date;\n }",
"public Date getClosingDate() {\n Date d = null;\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n try {\n d = sdf.parse(closingDate);\n }\n catch (Exception e) {e.printStackTrace();}\n return d;\n }",
"private String dateToString(Date datum)\r\n\t{\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tString dat = df.format(datum);\r\n\t\treturn dat;\r\n\t}",
"private String formatDueDate(Date date) {\n\t\t//TODO locale formatting via ResourceLoader\n\t\t\n\t\tif(date == null) {\n\t\t\treturn getString(\"label.studentsummary.noduedate\");\n\t\t}\n\t\t\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yy\");\n \treturn df.format(date);\n\t}",
"public static String formatDate(String date){\n String formatedDate = date;\n if (!date.matches(\"[0-9]{2}-[0-9]{2}-[0-9]{4}\")){\n if (date.matches(\"[0-9]{1,2}/[0-9]{1,2}/([0-9]{2}|[0-9]{4})\"))\n formatedDate = date.replace('/', '-');\n if (date.matches(\"[0-9]{1,2}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\")){\n if (formatedDate.matches(\"[0-9]{1}.[0-9]{1,2}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = \"0\" + formatedDate;\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{1}.([0-9]{2}|[0-9]{4})\"))\n formatedDate = formatedDate.substring(0, 3) + \"0\" + \n formatedDate.substring(3);\n if (formatedDate.matches(\"[0-9]{2}.[0-9]{2}.[0-9]{2}\")){\n String thisYear = String.valueOf(LocalDate.now().getYear());\n String century = thisYear.substring(0,2);\n /* If the last two digits of the date are larger than the two last digits of \n * the current date, then we can suppose that the year corresponds to the last \n * century.\n */ \n if (Integer.valueOf(formatedDate.substring(6)) > Integer.valueOf(thisYear.substring(2)))\n century = String.valueOf(Integer.valueOf(century) - 1);\n formatedDate = formatedDate.substring(0, 6) + century +\n formatedDate.substring(6); \n }\n }\n }\n return formatedDate;\n }",
"private String getDateTime() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"dd.MM.yyyy\", Locale.GERMANY);\n Date date = new Date();\n return dateFormat.format(date);\n }",
"Date getCreateDate();",
"Date getCreateDate();",
"public static String formatDateForQuery(java.util.Date date){\n return (new SimpleDateFormat(\"yyyy-MM-dd\")).format(date);\n }",
"public static String getDateTime(){\n String pattern = \"MM/dd/yyyy HH:mm:ss\";\n DateFormat df = new SimpleDateFormat(pattern);\n Date today = Calendar.getInstance().getTime();\n String todayAsString = df.format(today);\n return todayAsString;\n }",
"public String dateToString() {\n\t\treturn new String(year + \"/\"\n\t\t\t\t+ month + \"/\"\n\t\t\t\t+ day);\n }",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"public static String getYYYYMMDD()\r\n/* 65: */ {\r\n/* 66: 81 */ String nowTime = \"\";\r\n/* 67: 82 */ Date now = new Date();\r\n/* 68: 83 */ SimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMdd\");\r\n/* 69: 84 */ nowTime = formatter.format(now);\r\n/* 70: 85 */ return nowTime;\r\n/* 71: */ }",
"public static String getDate(Record record)\n\t{\n\t\treturn MarcUtils.getDate(record);\n\t}",
"private String getDateTime() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"[yyyy/MM/dd - HH:mm:ss]\");\n return sdf.format(new Date());\n }",
"private String stringifyDate(Date date){\n\t\tDateFormat dateFormatter = new SimpleDateFormat(\"yyyy-MM-dd\");\t\t\n\t\treturn dateFormatter.format(date);\n\t}",
"public static String convert( Date date )\r\n {\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat( \"yyyy-MM-dd\" );\r\n\r\n return simpleDateFormat.format( date );\r\n }",
"public static String formatterDate(Date date){\n\t\tString retour = null;\n\t\tif(date != null){\n\t\t\tretour = dfr.format(date);\n\t\t}\n\t\treturn retour;\n\t}",
"public String toString() {\n\t\treturn String.format(\"%d/%d/%d\", year, month, day);\n\t}",
"public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}",
"public static String formatDate(Date date) {\n\t\tString newstring = new SimpleDateFormat(\"MM-dd-yyyy\").format(date);\n\t\treturn newstring;\n\t}",
"public String getDateCreatedAsString() {\n return dateCreated.toString(\"MM/dd/yyyy\");\n }",
"private String formataData(long dt){\n\t\tDate d = new Date(dt);\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\treturn df.format(d);\n\t}",
"protected String getRentDateString() { return \"\" + dateFormat.format(this.rentDate); }",
"public String getDateAsString(){\n\t\t//\tGet Date\n Date date = getDate();\n if(date != null)\n \treturn backFormat.format(date);\n\t\treturn null;\n\t}",
"public String getDataNastereString(){\n\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tString sd = df.format(new Date(data_nastere.getTime()));\n\t\treturn sd;\n\t\t\n\t}",
"public static String returnDate(int fromCurrent) {\n\t\tCalendar cal = Calendar.getInstance();\n\t\tDateFormat dateFormat = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tcal.add(Calendar.DATE, fromCurrent);\n\t\treturn dateFormat.format(cal.getTime());\n\t}",
"Date getEDate();",
"public static String formatDate(Date date) {\n final SimpleDateFormat formatter = new SimpleDateFormat(\"MM-dd-yyyy\");\n return formatter.format(date);\n }",
"public String format (Date date , String dateFormat) ;",
"public static String dateToString(Date date){\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"MMddyy\");\n\t\treturn formatter.format(date);\n\t}",
"public String getDateInMDYFormat(DateTime date) {\n DateTimeFormatter MDYFmt = DateTimeFormat.forPattern(\"MM/dd/y\");\n return date.toString(MDYFmt);\n }"
] |
[
"0.7634115",
"0.75286245",
"0.75226927",
"0.73915416",
"0.73202676",
"0.7260178",
"0.72324854",
"0.72027904",
"0.71877724",
"0.7136792",
"0.70974314",
"0.7094107",
"0.7061763",
"0.70283425",
"0.70283425",
"0.69991136",
"0.6972968",
"0.69454217",
"0.6898928",
"0.6854213",
"0.677403",
"0.6764378",
"0.67643124",
"0.6749672",
"0.67239255",
"0.672141",
"0.6718452",
"0.6707501",
"0.6707501",
"0.6707501",
"0.67004967",
"0.6676047",
"0.66514003",
"0.66191226",
"0.66166335",
"0.6610327",
"0.6609217",
"0.66049236",
"0.6596183",
"0.65846723",
"0.6582322",
"0.6582201",
"0.65766734",
"0.6567806",
"0.65513325",
"0.6537524",
"0.65275145",
"0.65035266",
"0.6487568",
"0.6472443",
"0.646616",
"0.6460851",
"0.6454056",
"0.64448726",
"0.6442895",
"0.6429012",
"0.6425187",
"0.641963",
"0.64196205",
"0.6411529",
"0.641048",
"0.6410204",
"0.64060414",
"0.6391891",
"0.6385444",
"0.63850063",
"0.63828653",
"0.63826895",
"0.63640743",
"0.6362125",
"0.6358598",
"0.63548106",
"0.6348031",
"0.63466895",
"0.63466716",
"0.63466716",
"0.6337174",
"0.6335157",
"0.6328889",
"0.63214403",
"0.63214403",
"0.6315936",
"0.63114583",
"0.63051945",
"0.629913",
"0.6288574",
"0.628027",
"0.6274624",
"0.6268643",
"0.62453127",
"0.624301",
"0.6242482",
"0.6241174",
"0.6239121",
"0.6237151",
"0.62296844",
"0.6210515",
"0.62044877",
"0.61976075",
"0.61909693",
"0.61869156"
] |
0.0
|
-1
|
1 2 3 4 5 6 7 8 0> vote
|
public static int max(int a, int b){
return (a>b) ? a:b;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Integer getVotes();",
"public int calculateVotes() {\n return 1;\n }",
"public static void doVote() {\n }",
"public void addVote() {\n this.votes++;\n }",
"public int getVotes() {\n return this.votes;\n }",
"public int getVotes() {\n return votes;\n }",
"public int getVotes() {\n return votes;\n }",
"int getVotes(QuestionId questionId);",
"public void setVotes(int votes) {\n this.votes = votes;\n }",
"@Test\n public void vote() {\n System.out.println(client.makeVotes(client.companyName(0), \"NO\"));\n }",
"public int compare(Candidate a, Candidate b) \n { \n return b.getNoOfVotes() - a.getNoOfVotes(); \n }",
"public Float getVote() {\n return vote;\n }",
"int getVoteValue(UserId userId, QuestionId questionId);",
"public void vote(int index,Person voter,ArrayList<String> choices){\n votingList.get(index).vote(voter,choices);\n\n }",
"public void addVote(String vote){\r\n\t\tif(allVotes.get(vote) == null){\r\n\t\t\tallVotes.put(vote, 1);\r\n\t\t}\r\n\t\telse{\r\n\t\t\tallVotes.put(vote, allVotes.get(vote) + 1);\r\n\t\t}\r\n\t\tsetChanged();\r\n\t\tnotifyObservers(\"vote\");\r\n\t}",
"void votedOnPoll(String pollId);",
"void castVote(Peer candidate) {\n votedFor = candidate;\n }",
"public Ratio getVotes() {\n return votes;\n }",
"void addVote(UserId userId, QuestionId questionId, int vote);",
"private void botVoting(){\n int stockPos;\n int myStockPos = getMostShares(playerList.lastIndexOf(player));\n Collections.sort(playerList);\n if(playerList.get(0) == player){ //if i am the leader\n stockPos = getMostShares(1); //get the second players info\n }else{\n stockPos = getMostShares(0); //else get the first players info\n }\n\n //if my most shares are the same as other players most shares, don't vote.\n if(game.getStockByIndex(stockPos) != game.getStockByIndex(myStockPos)){\n //offensive play against leader\n if(game.isCardPositive(game.getStockByIndex(stockPos))){\n game.getStockByIndex(stockPos).vote(0);\n player.getVotedStocks().append(game.getStockByIndex(stockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted NO for \" + game.getStockByIndex(stockPos).getName() );\n }else{\n game.getStockByIndex(stockPos).vote(1);\n player.getVotedStocks().append(game.getStockByIndex(stockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted YES for \" + game.getStockByIndex(stockPos).getName());\n }\n //defensive play, votes that will benefit me\n if(game.isCardPositive(game.getStockByIndex(myStockPos))){\n game.getStockByIndex(myStockPos).vote(1);\n player.getVotedStocks().append(game.getStockByIndex(myStockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted YES for \" + game.getStockByIndex(myStockPos).getName());\n }else{\n game.getStockByIndex(myStockPos).vote(0);\n player.getVotedStocks().append(game.getStockByIndex(myStockPos).getName().charAt(0));\n player.deductVotesLeft();\n System.out.println(\"bot voted NO for \" + game.getStockByIndex(myStockPos).getName());\n }\n }\n }",
"public static ArrayList<Player> voteCount(ArrayList<String> votes) {\r\n\t\tMap<String, Integer> map = new HashMap<>();\r\n\t\tArrayList<Player> ans = new ArrayList<>();\r\n\t\tfor (int i = 0; i < votes.size(); i++)\r\n\t\t{\r\n\t\t\tif (map.containsKey(votes.get(i)))\r\n\t\t\t{\r\n\t\t\t\tint count = map.get(votes.get(i));\r\n\t\t\t\tcount++;\r\n\t\t\t\tmap.put(votes.get(i), count);\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tmap.put(votes.get(i), 1);\r\n\t\t\t}\r\n\t\t}\t\t\r\n\t\tPlayerComparator pc = new PlayerComparator();\r\n\t\tPriorityQueue<Player> queue = new PriorityQueue<Player>(pc);\r\n\t\tfor (Map.Entry<String,Integer> entry : map.entrySet())\r\n\t\t{\r\n\t\t\tPlayer player = new Player(entry.getKey(), entry.getValue());\r\n\t\t\tqueue.offer(player);\r\n\t\t}\r\n\t\twhile (queue.size() > 0) {\r\n\t\t\tans.add(queue.remove());\r\n\t\t}\r\n\t\t// Replace this line with your return statement\r\n\t\treturn ans;\r\n\t}",
"public void vote(int rating) {\n\t\tnew WebTraceTask(this, String.valueOf(rating)).execute(WebTraceTask.VOTE);\n\t}",
"public Vote(int id, int v) {\n candidate_id = id;\n priority = v;\n }",
"public void setVotes(Set<Vote> arg0) {\n \n }",
"public void addVote(String token);",
"public void addVote(int n)\n\t{\n\t\t//if statements to determine where vote will be placed\n\t\tif(n==1)\n\t\t\tliberal++;\n\t\tif(n==2)\n\t\t\tndp++;\n\t\tif(n==3)\n\t\t\tgreen++;\n\t}",
"public void addKickVote()\n\t{\n\t\tthis.numberOfKickVotes++;\n\t}",
"@GET(\"/{interaction-id}/votes\")\n List<GetGlueInteraction> votes(\n @EncodedPath(\"interaction-id\") String interactionId\n );",
"public static void doVoteAndComment() {\n }",
"int countByExample(CmsVoteTitleExample example);",
"public void printVotingQuestions(){\n int i=0;\n System.out.println(\"Question\");\n for (Voting v:votingList) {\n System.out.println(i+\":\"+v.getQuestion());\n i++ ;\n }\n }",
"private void postVote() {\n if ( unvotedParties() == 0 )\n TransactionManager.getTransactionManager().resolveTransaction(txId);\n }",
"public static void main(String[] args)\r\n{\r\n\tresetVotes();\r\n\tVoteRecorder voter1 = new VoteRecorder();\t\r\n\tvoter1.getAndConfirmVotes();\r\n\tSystem.out.println(\"President: \" + getCurrentVotePresident());\r\n\tSystem.out.println(\"Vice President: \" + getCurrentVoteVicePresident());\r\n\tSystem.out.println(votesCandidatePresident1);\r\n\r\n}",
"public int getNumVotes() {\n return numVotes;\n }",
"public void setNumVotes(int value) {\n this.numVotes = value;\n }",
"public void countVotes() {\n int[] voteResponses = RaftResponses.getVotes(mConfig.getCurrentTerm());\n int numVotes = 0;\n if(voteResponses == null) {\n //System.out.println(mID + \" voteResponses null\");\n //System.out.println(\"cur \" + mConfig.getCurrentTerm() + \" RR: \" + RaftResponses.getTerm());\n }\n else {\n for(int i = 1; i <= mConfig.getNumServers(); i++) {\n //If vote has not been received yet, resend request\n //if(voteResponses[i] == -1)\n //this.remoteRequestVote(i, mConfig.getCurrentTerm(), mID, mLog.getLastIndex(), mLog.getLastTerm());\n if(voteResponses[i] == 0)\n numVotes++;\n }\n }\n //If election is won, change to leader\n if(numVotes >= (mConfig.getNumServers()/2.0)) {\n electionTimer.cancel();\n voteCountTimer.cancel();\n RaftServerImpl.setMode(new LeaderMode());\n }\n else {\n voteCountTimer = scheduleTimer((long) 5, 2);\n }\n }",
"public void printVottingQuestion(){\n for (Voting voting : votingList){\n System.out.println(\"question : \"+voting.getQuestion());\n }\n\n }",
"void handle(VoteMessage vote);",
"public String tally (List<String> votes){\n\n int mostVotes = 0;\n String winner = \"\";\n\n //iterate each voting option\n for (String x : votes){\n //get frequency of each item.\n int freq = Collections.frequency(votes, x);\n // if greater, assign new winner and count\n if (freq > mostVotes) {\n mostVotes = freq;\n winner = x;\n }\n }\n //format output\n String output = winner + \" received the most votes!\";\n return output;\n }",
"@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\n\t\t\t\t\tdoVote(getIntent().getStringExtra(\"aid\"), getIntent().getStringExtra(\"id\"));\n\t\t\t\t\t\n\t\t\t\t}",
"List<AlgorithmResult> count(final String pollId, final List<byte[]> votesArr);",
"private static void outputVotes() {\n Iterator<Map.Entry<Character, ArrayList>> it = candidateVotes.entrySet().iterator();\n\n while (it.hasNext()) {\n\n Map.Entry<Character, ArrayList> next = it.next();\n System.out.println(next.getKey() +\"->\"+\n Integer.parseInt(next.getValue().toString().replace(\"[\",\"\").replace(\"]\",\"\")));\n }\n }",
"int getNextCount(int vids);",
"public Voting getVoting(int index){\n return votingList.get(index);\n }",
"private void vote(Vote whichVoteButton, MenuItem item, PostData p) {\n if (!RedditLoginInformation.isLoggedIn()) {\n Toast.makeText(this, R.string.you_must_be_logged_in_to_vote, Toast.LENGTH_SHORT).show();\n return;\n }\n\n Intent intent = new Intent(Consts.BROADCAST_UPDATE_SCORE);\n intent.putExtra(Consts.EXTRA_PERMALINK, p.getPermalink());\n\n switch (whichVoteButton) {\n case DOWN:\n switch (p.getVote()) {\n case DOWN:\n RedditService.vote(this, p.getName(), Vote.NEUTRAL);\n item.setIcon(R.drawable.ic_action_downvote);\n p.setVote(Vote.NEUTRAL);\n p.setScore(p.getScore() + 1);\n break;\n\n case NEUTRAL:\n case UP:\n RedditService.vote(this, p.getName(), Vote.DOWN);\n item.setIcon(R.drawable.ic_action_downvote_highlighted);\n p.setVote(Vote.DOWN);\n mUpvoteMenuItem.setIcon(R.drawable.ic_action_upvote);\n p.setScore(p.getScore() - 1);\n break;\n }\n break;\n\n case UP:\n switch (p.getVote()) {\n case NEUTRAL:\n case DOWN:\n RedditService.vote(this, p.getName(), Vote.UP);\n item.setIcon(R.drawable.ic_action_upvote_highlighted);\n p.setVote(Vote.UP);\n p.setScore(p.getScore() + 1);\n mDownvoteMenuItem.setIcon(R.drawable.ic_action_downvote);\n break;\n\n case UP:\n RedditService.vote(this, p.getName(), Vote.NEUTRAL);\n item.setIcon(R.drawable.ic_action_upvote);\n p.setVote(Vote.NEUTRAL);\n p.setScore(p.getScore() - 1);\n break;\n }\n\n break;\n\n default:\n break;\n }\n\n // Broadcast the intent to update the score in the ImageDetailFragment\n intent.putExtra(Consts.EXTRA_SCORE, p.getScore());\n LocalBroadcastManager.getInstance(this).sendBroadcast(intent);\n }",
"TrackerVotes getTrackerVotes(final Integer id);",
"public interface VoteRepository {\n List<Vote> searchVotes(VoteSearchCriteria searchCriteria);\n\n Vote getVoteById(int voteId);\n\n List<Vote> getActiveVotes();\n\n void saveVote(Vote vote);\n\n void deleteVote(int voteId);\n\n List<Subject> getSubjectsByVote(int voteId);\n\n void addSubjectToVote(int voteId, List<Subject> subjects);\n\n List<Vote> getVotesBySubject(int subjectId);\n\n void shutDown();\n\n int countVotes();\n}",
"@Override\n public void onThirdVote(String arg0) {\n\n }",
"public static int voting(double f, int res){\n\t\tdouble r = Math.random();\n\t\tif(r <= f && res == 0) res = 1;\n\t\telse if(r <= f && res == 1) res = 0;\n\n\t\treturn res; \n\t}",
"@Test\n public void downVotingQuestionsGetNoPoints() throws Exception {\n\n bob.upVote(question);\n charlie.downVote(question);\n\n assertEquals(5,alice.getReputation());\n }",
"public Response<Poll> votePoll(String id, long[] choices);",
"public void voteIdea(String username, Long ideaId, boolean vote) throws VotingException, DataAccessException {\n try {\n MyUser user = myUserFacade.getUser(username);\n Idea idea = this.find(ideaId);\n Boolean previousVote = user.getVotes().get(idea);\n if (previousVote == null) {\n // If the user never voted for this idea, then create a new Vote:\n user.addVote(idea, vote);\n if (vote) {\n idea.upvote();\n } else {\n idea.downvote();\n }\n } else {\n // The user had previously voted for this idea.\n // Case 1: trying to upvote twice the idea:\n if (previousVote && vote) {\n throw new VotingException((null), \"Cannot upvote twice the same post\");\n } // Case 2: trying to downvote twice the idea:\n else if (!previousVote && !vote) {\n throw new VotingException((null), \"Cannot downvote twice the same post\");\n } // Case 3: one is upvote and the other downvote. Vote is removed\n else {\n user.removeVote(idea);\n if (vote) {\n idea.setUpvotes(idea.getUpvotes() - 1);\n } else {\n idea.setDownvotes(idea.getDownvotes() - 1);\n }\n }\n }\n myUserFacade.edit(user);\n this.edit(idea);\n } catch (PersistenceException | EJBException pe) {\n throw new DataAccessException(pe, \"Error while voting post\");\n }\n }",
"int getVpotNum();",
"public Set<Vote> getVotes() {\n return null;\n }",
"public int MajorityVote(double sample[]) {\n\t\t \n\t\tif(leaf_buff == null) {\n\t\t\tleaf_buff = new ArrayList<KDNode>();\n\t\t\tLeafNodes(leaf_buff);\n\t\t}\n\n\t\tint class_count[] = new int[]{0, 0, 0, 0};\n\t\tfor(int i=0; i<leaf_buff.size(); i++) {\n\t\t\tint label = leaf_buff.get(i).classifier.Output(sample);\n\n\t\t\tswitch(label) {\n\t\t\t\tcase -2: class_count[0]++;break;\n\t\t\t\tcase -1: class_count[1]++;break;\n\t\t\t\tcase 1: class_count[2]++;break;\n\t\t\t\tcase 2: class_count[3]++;break;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint max = 0;\n\t\tint label = 0;\n\t\tfor(int i=0; i<4; i++) {\n\t\t\t\n\t\t\tif(class_count[i] > max) {\n\t\t\t\tmax = class_count[i];\n\t\t\t\tlabel = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn label;\n\t}",
"public int Output(double sample[]) {\n\t\treturn MajorityVote(sample);\n\t}",
"public void voteCommit() {\n boolean b = preVote();\n synchronized ( this ) {\n if ( b == true ) \n commitVotes++; \n else {\n rbVotes++;\n votedCommit = false;\n }\n }\n postVote();\n }",
"public Object calculateElectionWinner(ArrayList<String> votes) {\n\t\tint pf =0;\n\t\tint es=0;\n\t\tfor(int i = 0; i<votes.size();i++) {\n\t\t\t\n\t\t\t\n\tif(votes.get(i).toLowerCase().contains(\"pope francis\")) {\n\tpf++;\n\t\n\t}\n\tif(votes.get(i).toLowerCase().contains(\"edward snowden\")) {\n\t\tes++;\n\t\t\n\t\t}\n\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\tif(pf>es) {\n\t\t\treturn \"pope francis\";\n\t\t}\n\t\t\n\t\telse if (es>pf) {\n\t\treturn \"edward snowden\";\n\t\t\n\t\n\t\t}\n\t\t\n\t\telse {\n\t\t\treturn \"TIE\";\n\t\t}\n\t\t\n\t}",
"public void upVote(Post p) {\n p.upvote();\n }",
"public void printResult(int index){\n votingList.get(index).printVotes();\n }",
"public void printResult(int index){\n votingList.get(index).printVotes();\n }",
"public String vote5(){\n String vote5MovieTitle = \" \";\n for(int i = 0; *i < results.length; i++){\n if(results[i].voteAve()) {\n vote5MovieTitle += results[i].getTitle() + \"\\n\";\n }\n }\n System.out.println(vote5MovieTitle);\n return vote5MovieTitle;\n }",
"public static int villa(int... result) {\n\n int score = nSame(3, 6, result);\n int firstPairVal = score/3;\n\n result = IntStream.of(result).filter(val -> val != firstPairVal).toArray();\n score = nSame(3, 6, result);\n int secondPairVal = score/3;\n\n if (firstPairVal*secondPairVal > 0) {\n score = 3*firstPairVal + 3*secondPairVal;\n } else {\n score = 0;\n }\n\n return score;\n }",
"public void printVoting(int index){\n System.out.println(\"vote question : \"+votingList.get(index).getQuestion());\n for (int i = 0;i<votingList.get(index).getPolls().size();i++){\n System.out.println(\"poll \"+(i+1)+\" : \"+votingList.get(index).getPolls().get(i));\n }\n }",
"int insertSelective(VoteList record);",
"public VoteModel mo66737c(Answer answer) {\n VoteModel voteModel = new VoteModel();\n voteModel.voteCount = answer.voteUpCount;\n boolean z = true;\n if (answer.relationship.voting != 1) {\n z = false;\n }\n voteModel.isVoted = z;\n return voteModel;\n }",
"private int[] collectVotes()\n {\n int[] votes = new int[ 6 ];\n double centerX = (double) xCoord + 0.5;\n double centerY = (double) yCoord + 0.5;\n double centerZ = (double) zCoord + 0.5;\n\n // For each player:\n List players = worldObj.playerEntities;\n for( int i = 0; i < players.size(); ++i )\n {\n // Determine whether they're looking at the block:\n EntityPlayer player = (EntityPlayer) players.get( i );\n if( player != null )\n {\n // Check the player can see:\n if( QCraft.isPlayerWearingGoggles( player ) )\n {\n continue;\n }\n else\n {\n ItemStack headGear = player.inventory.armorItemInSlot( 3 );\n if( headGear != null && headGear.getItem() == Item.getItemFromBlock( Blocks.pumpkin ) )\n {\n continue;\n }\n }\n\n // Get position info:\n double x = player.posX - centerX;\n double y = player.posY + 1.62 - (double) player.yOffset - centerY;\n double z = player.posZ - centerZ;\n\n // Check distance:\n double distance = Math.sqrt( x * x + y * y + z * z );\n if( distance < 96.0 )\n {\n // Get direction info:\n double dx = x / distance;\n double dy = y / distance;\n double dz = z / distance;\n\n // Get facing info:\n float pitch = player.rotationPitch;\n float yaw = player.rotationYaw;\n float f3 = MathHelper.cos( -yaw * 0.017453292f - (float) Math.PI );\n float f4 = MathHelper.sin( -yaw * 0.017453292f - (float) Math.PI );\n float f5 = -MathHelper.cos( -pitch * 0.017453292f );\n float f6 = MathHelper.sin( -pitch * 0.017453292f );\n float f7 = f4 * f5;\n float f8 = f3 * f5;\n double fx = (double) f7;\n double fy = (double) f6;\n double fz = (double) f8;\n\n // Compare facing and direction (must be close to opposite):\n double dot = fx * dx + fy * dy + fz * dz;\n if( dot < -0.4 )\n {\n if( QCraft.enableQBlockOcclusionTesting )\n {\n // Do some occlusion tests\n Vec3 playerPos = Vec3.createVectorHelper( centerX + x, centerY + y, centerZ + z );\n boolean lineOfSightFound = false;\n for( int side = 0; side < 6; ++side )\n {\n // Only check faces that are facing the player\n Vec3 sideNormal = Vec3.createVectorHelper(\n 0.49 * Facing.offsetsXForSide[ side ],\n 0.49 * Facing.offsetsYForSide[ side ],\n 0.49 * Facing.offsetsZForSide[ side ]\n );\n Vec3 blockPos = Vec3.createVectorHelper(\n centerX + sideNormal.xCoord,\n centerY + sideNormal.yCoord,\n centerZ + sideNormal.zCoord\n );\n Vec3 playerPosLocal = playerPos.addVector(\n -blockPos.xCoord,\n -blockPos.yCoord,\n -blockPos.zCoord\n );\n //if( playerPosLocal.dotProduct( sideNormal ) > 0.0 )\n {\n Vec3 playerPos2 = playerPos.addVector( 0.0, 0.0, 0.0 );\n if( checkRayClear( playerPos2, blockPos ) )\n {\n lineOfSightFound = true;\n break;\n }\n }\n }\n if( !lineOfSightFound )\n {\n continue;\n }\n }\n\n // Block is being observed!\n\n // Determine the major axis:\n int majoraxis = -1;\n double majorweight = 0.0f;\n\n if( -dy >= majorweight )\n {\n majoraxis = 0;\n majorweight = -dy;\n }\n if( dy >= majorweight )\n {\n majoraxis = 1;\n majorweight = dy;\n }\n if( -dz >= majorweight )\n {\n majoraxis = 2;\n majorweight = -dz;\n }\n if( dz >= majorweight )\n {\n majoraxis = 3;\n majorweight = dz;\n }\n if( -dx >= majorweight )\n {\n majoraxis = 4;\n majorweight = -dx;\n }\n if( dx >= majorweight )\n {\n majoraxis = 5;\n majorweight = dx;\n }\n\n // Vote for this axis\n if( majoraxis >= 0 )\n {\n if( getSubType() == BlockQBlock.SubType.FiftyFifty )\n {\n boolean flip = s_random.nextBoolean();\n if( flip )\n {\n majoraxis = Facing.oppositeSide[ majoraxis ];\n }\n }\n votes[ majoraxis ]++;\n }\n }\n }\n }\n }\n\n return votes;\n }",
"public static void main(String[] args) {\n\t\tint[] repVoteCounts = {126, 32, 230, 21, 200};\n\t\tint[] demVoteCounts = {152, 85, 121, 215, 93};\n\t\t\n\t\tint[][] voteCounts = {\n\t\t\t\t\t\t\t {126, 32, 230, 21, 200}, // 0 -> Republican Party\n\t\t\t\t\t\t\t {152, 85, 121, 215, 93} // 1 -> Democratic Party\n\t\t\t\t\t\t };\n\t\t\n\t\tint repVoteCount = 0;\n\t\tint demVoteCount = 0;\n\t\t\n\t\tfor(int i=0;i<5;i++) {\n\t\t\trepVoteCount = repVoteCount + repVoteCounts[i];\n\t\t\tdemVoteCount = demVoteCount + demVoteCounts[i];\n\t\t}\n\t\t\n\n\t\tif(repVoteCount > demVoteCount) {\n\t\t\tSystem.out.println(\">> Republican Party Won by \"+(repVoteCount - demVoteCount)+\" Votes\");\n\t\t}else {\n\t\t\tSystem.out.println(\">> Democratic Party Won by \"+(demVoteCount - repVoteCount)+\" Votes\");\n\t\t}\n\t\t\n\t\t\n\t}",
"public void voteRollback() {\n synchronized ( this ) {\n rbVotes++; \n votedCommit = false;\n }\n preVote();\n postVote();\n }",
"public interface VotingService {\n\n public String deploy(List<String> list) throws Exception;\n\n\n public TransactionReceipt voteForCandidate(String candidateName) throws Exception;\n\n public BigInteger totalVotesFor(String candidateName) throws Exception;\n\n}",
"public int unvotedParties() {\n int ucV = (numParties - (rbVotes + commitVotes));\n if ( ucV < 0 )\n ucV = 0;\n return ucV;\n }",
"public void vote(int index,Person personName,ArrayList<String> choices){\n if (votingList.get(index).getType()==0 && choices.size()==1 && choices.get(0).equals(\"random\")){\n\n Random random = new Random();\n int rand = random.nextInt(votingList.get(index).getPolls().size());\n choices.remove(0);\n choices.add(votingList.get(index).getPolls().get(rand));\n }\n\n votingList.get(index).vote(personName,choices);\n\n }",
"private void vote(Connection connection, Matcher matcher) {\n\n final EventBus bus = getEventBus();\n if (!matcher.matches()) {\n bus.publish(new ConnectionMessageCommandEvent(connection, \"Invalid command!\"));\n return;\n }\n\n long pollID = Long.parseLong(matcher.group(1));\n int optionID = Integer.parseInt(matcher.group(2));\n\n try {\n StrawpollAPI.vote(pollID, optionID);\n bus.publish(new ConnectionMessageCommandEvent(connection, System.lineSeparator() + \"You voted successfully\"));\n }\n catch (Exception e) {\n bus.publish(new ConnectionMessageCommandEvent(connection, System.lineSeparator() + \"Whoops, it looks like we did not find a poll with the given id or index\"));\n e.printStackTrace();\n }\n\n }",
"public static int mostVotes(int[] votes){\r\n int max = votes[0];\r\n int ind = 0;\r\n for(int i=1;i<votes.length;i++){\r\n if(max<votes[i]){\r\n max = votes[i];\r\n ind = i;\r\n }\r\n }\r\n return ind;\r\n }",
"public static void main(String[] args) {\n\t\tint age = 70;\r\n\t\t\r\n\t\tif (age>=18 && age<=70)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Result: Eligible to vote!\");\r\n\t\t}\r\n\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Not eligible to vote!\");\r\n\t\t}\r\n\r\n\t}",
"public synchronized void beginVoting() {\n\t\tvotingThread = new Thread(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t// votes should be filled with [each delegate] -> `null`\n\t\t\t\tfor (int i = 0; i < 2 /* rounds */; i++) {\n\t\t\t\t\tfor (Delegate delegate : votes.keySet()) {\n\t\t\t\t\t\tif (votes.get(delegate) != null) {\n\t\t\t\t\t\t\t// Already voted.\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcurrentlyVoting = delegate;\n\t\t\t\t\t\tlblCurrentVoter.setText(delegate.getName());\n\t\t\t\t\t\tlblCurrentVoter.setIcon(delegate.getSmallIcon());\n\n\t\t\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\t\t\tfinal List<Map<Vote, JButton>> maplist = Arrays.asList(\n\t\t\t\t\t\t\t\tbuttons_roundOne, buttons_roundTwo);\n\t\t\t\t\t\tfor (Map<Vote, JButton> map : maplist) {\n\t\t\t\t\t\t\tfor (Vote vote : map.keySet()) {\n\t\t\t\t\t\t\t\tmap.get(vote)\n\t\t\t\t\t\t\t\t\t\t.setText(\n\t\t\t\t\t\t\t\t\t\t\t\tdelegate.getStatus().hasVetoPower ? vote.vetoText\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t: vote.normalText);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tsynchronized (votingThread) {\n\t\t\t\t\t\t\t\tvotingThread.wait();\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfinal Vote cast = votes.get(delegate);\n\t\t\t\t\t\tif (cast == Vote.PASS) {\n\t\t\t\t\t\t\tvotes.put(delegate, null);\n\t\t\t\t\t\t\t// So he goes again.\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\t\t\tbutton.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlayout.show(pnlVoting, pnlSecondRound.getName());\n\t\t\t\t}\n\t\t\t\t// When done, disable again.\n\t\t\t\tfor (JButton button : votingButtons) {\n\t\t\t\t\tbutton.setEnabled(false);\n\t\t\t\t}\n\t\t\t\tcurrentlyVoting = null;\n\t\t\t\tlblCurrentVoter.setText(null);\n\t\t\t\tlblCurrentVoter.setIcon(null);\n\t\t\t\tpnlVoting.setVisible(false);\n\t\t\t}\n\t\t});\n\t\tvotingThread.start();\n\t}",
"@FXML\n public void start_vote(ActionEvent e)\n {\n //calling functions to get ballot count and candidate count\n can_counter();\n ball_counter();\n //checks there are any candidates and ballots\n if((candidate_count!=0)&&(ballot_count!=0))\n {\n //if candidates and voters available, voting will start\n voting_state=1;\n a=new Alert(Alert.AlertType.INFORMATION);\n a.setContentText(\"Voting Has Been Started !\");\n a.show();\n }\n //for 0 candidate count with ballots\n else if ((candidate_count==0)&&(ballot_count!=0))\n {\n a=new Alert(Alert.AlertType.ERROR);\n a.setContentText(\"Cannot Start Voting With 0 Candidates !\");\n a.show();\n }\n //for 0 ballots with candidates\n else if ((ballot_count==0)&&(candidate_count!=0))\n {\n a=new Alert(Alert.AlertType.ERROR);\n a.setContentText(\"Cannot Start Voting With 0 Ballots !\");\n a.show();\n }\n else\n {\n a=new Alert(Alert.AlertType.ERROR);\n a.setContentText(\"Cannot Start Voting With 0 Candidates And 0 Ballots !\");\n a.show();\n }\n }",
"public void removeKickVote()\n\t{\n\t\tnumberOfKickVotes--;\n\t}",
"Vote get(int id, int userId);",
"private static void arrangeVoteStructure() {\n\n System.out.println(\"Please enter the vote preference as a sequence: > \");\n Scanner in = new Scanner(System.in);\n\n // while (true) {\n\n // System.out.println(\"Please enter the vote preference as a sequence: > \");\n\n String voteKey = in.nextLine();\n\n /**\n if(voteKey.contentEquals(\"tally\")){\n System.out.println(\"You have completed voting..\");\n break;\n }\n */\n\n // split the voteKey by letter. eg:- A\n\n String votes[] = voteKey.split(\" \");\n\n\n for (int x = 0; x < numberOfCandidates; x++) {\n for (int y = x; y < votes.length; y++) {\n\n //Add vote to each candidate's HashMap.\n\n candidateVotes.get(votes[y].charAt(0)).add(counter);\n counter++;\n break;\n }\n }\n // }\n }",
"int insertSelective(CmsVoteTitle record);",
"public synchronized void reportVotes() {\n StringBuilder voteReport = new StringBuilder(\"\");\n for (Player player : playerVotes.keySet()) {\n voteReport.append(player.getUserName()).append(\": \").append(\n playerVotes.get(player) ? \"yes\\n\" : \"no\\n\");\n }\n sendPublicMessage(\"The votes were:\\n\" + voteReport.toString());\n }",
"private void voteCommand(){\n out.println(\"\\r\\nEnter stock and vote (e.g. A1 for YES, B0 for NO). Enter 'X' to exit.\");\n String voteInput = in.nextLine();\n\n switch(voteInput.toUpperCase()){\n case \"A1\":castVote(game.apple, 1);\n break;\n case \"A0\":castVote(game.apple, 0);\n break;\n case \"B1\":castVote(game.bp, 1);\n break;\n case \"B0\":castVote(game.bp, 0);\n break;\n case \"C1\":castVote(game.cisco, 1);\n break;\n case \"C0\":castVote(game.cisco, 0);\n break;\n case \"D1\":castVote(game.dell, 1);\n break;\n case \"D0\":castVote(game.dell, 0);\n break;\n case \"E1\":castVote(game.ericsson, 1);\n break;\n case \"E0\":castVote(game.ericsson, 0);\n break;\n case \"X\":command();\n break;\n default:\n out.println(\"Invalid input: Please enter a stock (e.g. A) and a vote (0 or 1)\" + \"\\r\\n\");\n voteCommand();\n break;\n }\n\n }",
"private void receiveVote() {\n\t\t//Se la postazione termina la connessione informiamo lo staff con un messaggio di errore\n\t\tif(!link.hasNextLine()) {\n\t\t\tcontroller.printError(\"Errore di Comunicazione\", \"La postazione \"+ ip.getHostAddress() + \" non ha inviato i pacchetti di voto.\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\t//Vengono recuperati i voti cifrati\n\t\tMessage request;\n\t\tWrittenBallot[] encryptedBallots;\n\t\ttry {\n\t\t\trequest = (Message) Message.fromB64(link.read(), \"postazione \" + ip.getHostAddress());\n\t\t\tString[] required = {\"encryptedBallots\"};\n\t\t\tClass<?>[] types = {WrittenBallot[].class};\n\t\t\t\n\t\t\trequest.verifyMessage(Protocol.sendVoteToStation, required, types, \"postazione \" + ip.getHostAddress());\n\t\t\tencryptedBallots = request.getElement(\"encryptedBallots\");\n\t\t\t\n\t\t\t//I voti vengono memorizzati nel seggio in attesa dell'invio all'urna\n\t\t\tif(((Controller) controller).storeVoteLocally(encryptedBallots, ip))\n\t\t\t\tlink.write(Protocol.votesReceivedAck);\n\t\t\telse\n\t\t\t\tlink.write(Protocol.votesReceivedNack);\n\t\t\t\n\t\t} catch (PEException e) {\n\t\t\tlink.write(Protocol.votesReceivedNack);\n\t\t\tcontroller.printError(e);\n\t\t}\n\t}",
"public String getVoteString() {\n\t\treturn voted ? Arrays.toString(topIdeas) : \"n/a\";\n\t}",
"private void updateVote(Identity identity, boolean active) {\n\t\tlong diff = active ? 1L : -1L;\n\t\tlong result = votes.get(identity).addAndGet(diff);\n\t\tif (result == 0) {\n\t\t\tnodeMap.remove(identity);\n\t\t\tvotes.remove(identity);\n\t\t\tfor (NodeMappingListener listener : listeners)\n\t\t\t\tlistener.mappingRemoved(identity, null);\n\t\t}\n\t}",
"public void setVotingThreshold(double votingThreshold) {\n this.votingThreshold = votingThreshold;\n }",
"public interface VoteService {\n\n\tvoid addVote(Vote contact);\n\n\tList<Vote> listVote();\n\n\tvoid removeVote(String id);\n\n\tvoid closeVote(String id);\n\n\tVote getVote(String id);\n\n\tvoid firstCounterIncrementer(String id);\n\n\tvoid secondCounterIncrementer(String id);\n}",
"public void somaVezes(){\n qtVezes++;\n }",
"public void vote(int triviaId, int optionId, final OnVoteComplete callback){\n // Creamos el servicio\n TriviaService service = createService(TriviaService.class);\n // Generamos la call\n RestBodyCall<Boolean> call = service.vote(Mobileia.getInstance().getAppId(), getAccessToken(), triviaId, optionId);\n // Ejecutamos la call\n call.enqueue(new Callback<RestBody<Boolean>>() {\n @Override\n public void onResponse(Call<RestBody<Boolean>> call, Response<RestBody<Boolean>> response) {\n // Verificar si la respuesta fue incorrecta\n if (!response.isSuccessful() || !response.body().success) {\n callback.onSuccess(false);\n return;\n }\n // Enviamos la respuesta\n callback.onSuccess(response.body().response);\n }\n\n @Override\n public void onFailure(Call<RestBody<Boolean>> call, Throwable t) {\n callback.onSuccess(false);\n }\n });\n }",
"public IFuture<Boolean> updateScores(Voter curVoter);",
"public int numRollbackVotes() {\n return rbVotes;\n }",
"public static void main(String [] args) throws IOException\r\n\t{\n\t\t\r\n\t\tScanner in = new Scanner(System.in);\r\n\t\t\r\n\t\tint compare = in.nextInt();\t\t\r\n\t\t\r\n\t\t//METHOD ONE\r\n\t\t//precompute all vamp numbers >= 1,000,000\r\n\t\t\r\n\t\tArrayList<Integer> vamps = new ArrayList();\r\n\t\tint count = 0;\r\n\t\twhile(count < 1000256)\r\n\t\t{\r\n\t\t\t//System.out.println(count);\r\n\t\t\tif(isVamp(count)) { vamps.add(count); }\r\n\t\t\t\r\n\t\t\tcount++;\r\n\t\t}\r\n\t\t\r\n\t\t//System.out.println(vamps);\r\n\t\t\r\n\t\t\r\n\t\twhile(compare != 0)\r\n\t\t{\r\n\t\t\t/* METHOD TWO \r\n\t\t\twhile(!isVamp(compare))\r\n\t\t\t{\r\n\t\t\t\tcompare++;\r\n\t\t\t\t//System.out.println(compare);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tSystem.out.println(compare);\r\n\t\t\t*/\r\n\t\t\t\r\n\t\t\t//METHOD ONE - CONT\r\n\t\t\t\r\n\t\t\tfor(int i = 0; i < vamps.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tif(vamps.get(i) < compare){}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tSystem.out.println(vamps.get(i));\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tcompare = in.nextInt();\r\n\t\t}\r\n\t}",
"public static void main(String[] args) \r\n\t{\r\n\t\tMap<String, String> voting=new HashMap<String, String>();\r\n\t\tvoting.put(\"101\", \"BJP\");\r\n\t\tvoting.put(\"102\", \"ShivSena\");\r\n\t\tvoting.put(\"103\", \"NCP\");\r\n\t\tvoting.put(\"104\", \"Congress\");\r\n\t\tvoting.put(\"105\", \"Other\");\r\n\t\tvoting.put(\"106\", \"BJP\");\r\n\t\tvoting.put(\"107\", \"ShivSena\");\r\n\t\tvoting.put(\"108\", \"NCP\");\r\n\t\tvoting.put(\"109\", \"Congress\");\r\n\t\tvoting.put(\"110\", \"Other\");\r\n\t\tvoting.put(\"111\", \"BJP\");\r\n\t\tvoting.put(\"112\", \"ShivSena\");\r\n\t\tvoting.put(\"113\", \"NCP\");\r\n\t\tvoting.put(\"114\", \"Congress\");\r\n\t\tvoting.put(\"115\", \"Other\");\r\n\t\tvoting.put(\"116\", \"Other\");\r\n\t\tvoting.put(\"117\", \"Other\");\r\n\t\tvoting.put(\"118\", \"BJP\");\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(voting);\r\n\t\t\r\n\t\tMap<String, Integer> countVoting=new HashMap();\r\n\t\t\r\n\t\tfor(Map.Entry<String, String> mapitr:voting.entrySet())\r\n\t\t{\r\n\t\t\t//System.out.println(mapitr.getValue());\r\n\t\t\t\r\n\t\t\tint count=1;\r\n\t\t\t\r\n\t\t\tif(countVoting.containsKey(mapitr.getValue()))\r\n\t\t\t{\r\n\t\t\t\tcount=countVoting.get(mapitr.getValue());\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\tcountVoting.put(mapitr.getValue(),count);\r\n\t\t\t//System.out.println(countVoting);\r\n\t\t}\r\n\t\tSystem.out.println(countVoting);\r\n\t\t\r\n\t}",
"public DemographicVote()\n\t{\n\t\t//initialize the votes to zero\n\t\tliberal=0;\n\t\tndp=0;\n\t\tgreen=0;\n\t}",
"public int getVictoryPoints() {\n \t\treturn getPublicVictoryPoints() + victory;\n \t}",
"int insert(VoteList record);",
"public boolean didStudentVote() {\n\t\treturn voted;\n\t}",
"static void minimumBribes(int[] q) {\r\n int bribes = 0;\r\n boolean valid = true;\r\n int index = 1;\r\n \r\n // We get the length of the input array\r\n int size = q.length; \r\n \r\n // We cycle through the input array\r\n for (int i = 0; i < size; i++) {\r\n int actual = q[i];\r\n \r\n // We check if the current person has surely swapped position more than two times since it appears before they are supposed to\r\n if (actual > index) {\r\n int difference = actual - index;\r\n if (difference > 2) {\r\n valid = false;\r\n break;\r\n }\r\n }\r\n \r\n // We check the number of bribes by counting how many persons with bigger IDs have already swapped place with the current one\r\n // NOTE: We can safely begin to check from position (actual-2) since higher numbers of swaps would have been caught by the previous if condition\r\n for (int j = actual-2; j < index; j++) {\r\n if (j < 0) {\r\n continue;\r\n }\r\n if (actual < q[j]) {\r\n bribes += 1;\r\n }\r\n }\r\n \r\n index += 1;\r\n }\r\n \r\n // Checks if the result is valid, and if so, it prints it\r\n if (valid == false) {\r\n System.out.println(\"Too chaotic\");\r\n }\r\n else {\r\n System.out.println(bribes);\r\n }\r\n}",
"private void setVoteOrder() {\n\t\tfor (int i = 1; i < temp.size(); i++) {\n\t\t\t// deleting the comma from the name\n\t\t\tString s = temp.elementAt(i).replaceAll(\",\", \"\");\n\t\t\t// creating a vector \"tempVoteOrder\" to store the preferences of\n\t\t\t// each voter\n=======\n\t\t\tCandidats.add(candidat);\n\t\t\ttempCandidats = tempCandidats.replaceFirst(\n\t\t\t\t\ttempCandidats.substring(0, tempCandidats.indexOf(\",\") + 1),\n\t\t\t\t\t\"\");// delete the first candidat in the String\n\t\t}\n\t\tfor (int j = 0; j < Candidats.size(); j++)\n\t\t\tCandidats.elementAt(j).setVowsPerRound(Candidats.size());// fill the\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// vector\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// of\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// size\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// \"candidats\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 0's\n\t}",
"boolean hasVotedInTerm() {\n return null != votedFor;\n }"
] |
[
"0.70147645",
"0.69608283",
"0.681962",
"0.6745959",
"0.6711034",
"0.67054886",
"0.67054886",
"0.65347743",
"0.6338812",
"0.6295265",
"0.629483",
"0.62691647",
"0.6098771",
"0.6089081",
"0.60413504",
"0.6015829",
"0.59963334",
"0.5935402",
"0.5890284",
"0.5879339",
"0.58461976",
"0.5837274",
"0.5802009",
"0.57894874",
"0.57614625",
"0.5759002",
"0.5736266",
"0.5708373",
"0.5688948",
"0.56725633",
"0.56696016",
"0.56665385",
"0.5660755",
"0.56572783",
"0.5644833",
"0.5630943",
"0.56212586",
"0.5605459",
"0.55980253",
"0.55915517",
"0.55836576",
"0.5574792",
"0.55709565",
"0.5558061",
"0.5544376",
"0.55168337",
"0.55150366",
"0.55139744",
"0.55128914",
"0.5510291",
"0.550238",
"0.5496916",
"0.5485317",
"0.54692954",
"0.5450309",
"0.5428201",
"0.5422586",
"0.54198813",
"0.5418643",
"0.5414355",
"0.5414355",
"0.5404521",
"0.53939295",
"0.53869426",
"0.53678393",
"0.53486073",
"0.53454566",
"0.53451616",
"0.532394",
"0.5313603",
"0.5304672",
"0.52992076",
"0.52831507",
"0.52814853",
"0.5280723",
"0.5275015",
"0.52739173",
"0.527376",
"0.5266225",
"0.52536213",
"0.524888",
"0.5243202",
"0.52321035",
"0.5230778",
"0.52303064",
"0.5229721",
"0.5220989",
"0.5210925",
"0.52012396",
"0.5182147",
"0.517113",
"0.5144098",
"0.513762",
"0.5137534",
"0.51316196",
"0.51157993",
"0.5111725",
"0.51062155",
"0.50951225",
"0.5091555",
"0.5085334"
] |
0.0
|
-1
|
In this example, stack traces support is enabled by default. If you want to disable stack traces just use new ProblemModule() instead of new ProblemModule().withStackTraces()
|
@Bean
public ObjectMapper objectMapper() {
return new ObjectMapper()
.registerModules(new ProblemModule(), new ConstraintViolationProblemModule());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\tpublic void trace(Message msg, Throwable t) {\n\n\t}",
"@Before\n public void checkStackTraceIsIncluded() {\n assumeTrue(InternalFlags.getIncludeStackTraceOption() != IncludeStackTraceOption.OFF);\n }",
"void trace( Throwable msg );",
"static public void displayExceptionStack( boolean display ) {\n Debug.displayExceptionStack=display;\n }",
"@Override\n\tpublic void trace(String message, Throwable t) {\n\n\t}",
"@Bean\n public ProblemModule problemModule() {\n return new ProblemModule();\n }",
"@Override\n\tpublic void trace(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(Object message, Throwable t) {\n\n\t}",
"@External\r\n\t@SharedFunc\r\n\tpublic MetaVar Trace(){throw new RuntimeException(\"Should never be executed directly, there is probably an error in the Aspect-coding.\");}",
"@Override\n\tpublic void trace(CharSequence message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, Message msg, Throwable t) {\n\n\t}",
"public static void debugInfo() { throw Extensions.todo(); }",
"@Override\n\tpublic void demoRunTimeException() throws RuntimeException {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, String message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(MessageSupplier msgSupplier) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, CharSequence message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void trace(Marker marker, Object message, Throwable t) {\n\n\t}",
"public static void main(String[] args) {\n\n IllegalArgumentException illegalArgumentException = new IllegalArgumentException(\"illegal status run time\");\n System.out.println(Throwables.getStackTraceAsString(illegalArgumentException));\n }",
"@Override\r\n\tpublic void printStackTrace() {\n\t\tsuper.printStackTrace();\r\n\t}",
"@Override\n\tpublic void displayModule() throws Exception {\n\n\t}",
"private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }",
"public static void stackTrace() {\n Observable<String> myObservable = Observable.fromCallable(() -> {\n Object value = null;\n return value.toString();\n });\n myObservable.subscribe(item -> System.out.println(\"output = \" + item));\n }",
"@Override\n\tpublic void trace(String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"public void testDisabledPassthrough() {\n var converter = ConsoleThrowablePatternConverter.newInstance(null, null, false);\n var e = new StartupException(new RuntimeException(\"a cause\"));\n // the cause of StartupException is not extracted by the parent pattern converter\n assertThat(format(converter, e), allOf(containsString(\"StartupException: \"), containsString(\"RuntimeException: a cause\")));\n }",
"@Override\n\tpublic void printStackTrace() {\n\t\tsuper.printStackTrace();\n\t}",
"@Override\n\tpublic void printStackTrace() {\n\t\tsuper.printStackTrace();\n\t}",
"public void testGetStackTrace() {\n StackTraceElement[] ste = new StackTraceElement[1]; \n ste[0] = new StackTraceElement(\"class\", \"method\", \"file\", -2);\n Throwable th = new Throwable(\"message\");\n th.setStackTrace(ste);\n ste = th.getStackTrace();\n assertEquals(\"incorrect length\", 1, ste.length);\n assertEquals(\"incorrect file name\", \"file\", ste[0].getFileName());\n assertEquals(\"incorrect line number\", -2, ste[0].getLineNumber());\n assertEquals(\"incorrect class name\", \"class\", ste[0].getClassName());\n assertEquals(\"incorrect method name\", \"method\", ste[0].getMethodName());\n assertTrue(\"native method should be reported\", ste[0].isNativeMethod());\n }",
"public void printStackTrace(){\n\t\tprintStackTrace(System.err);\n\t}",
"@Test\n public void lowHealthWarningTest() {\n }",
"public Builder withTraceAnnotations() {\n this.traceAll = false;\n return this;\n }",
"public void trace(Object message, Throwable t)\n/* */ {\n/* 107 */ debug(message, t);\n/* */ }",
"@Override\n\tpublic void trace(Message msg) {\n\n\t}",
"@Override\n\tpublic void trace(Supplier<?> msgSupplier) {\n\n\t}",
"@Override\n\tpublic void prepareModule() throws Exception {\n\n\t}",
"public void printStackTrace() {\n printStackTrace(System.err);\n }",
"@Test\n @SneakyThrows\n public void exampleTest() {\n }",
"public static void main(String []args) {\n\t\tlog.trace(\"111---\");\n\t\tlog.debug(\"2222\");\n\t\tlog.info(\"333\");\n\t\tlog.warn(\"444\");\n\t\tlog.error(\"555\");\n\t}",
"private static <T extends Throwable> T augmentStackTraceNoContext(T e, Randomness... seeds) {\n List<StackTraceElement> stack = new ArrayList<StackTraceElement>(\n Arrays.asList(e.getStackTrace()));\n \n stack.add(0, new StackTraceElement(AUGMENTED_SEED_PACKAGE + \".SeedInfo\", \n \"seed\", SeedUtils.formatSeedChain(seeds), 0));\n \n e.setStackTrace(stack.toArray(new StackTraceElement [stack.size()]));\n \n return e;\n }",
"public static void printStackTrace() {\n if (outputEnabled) {\n synchronized (out) {\n new Exception(\"Diagnostic Stack Trace\").printStackTrace(out); // NORES\n }\n }\n }",
"void k2h_set_debug_level_error();",
"@Override\n\tpublic void trace(Marker marker, Supplier<?> msgSupplier) {\n\n\t}",
"@Override\n\tpublic void debug(Message msg, Throwable t) {\n\n\t}",
"private void configureRoutesAndExceptions() {\n\n }",
"@Override\n\tpublic void trace(Marker marker, String message, Supplier<?>... paramSuppliers) {\n\n\t}",
"public abstract int trace();",
"@Test(timeout = 4000)\n public void test25() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(218);\n String[] stringArray0 = new String[2];\n stringArray0[0] = \"Label offset position has not been resolved yet\";\n stringArray0[1] = \"'0\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"tE\", \"Class not found\", \"&h'pH__a\", stringArray0, false, false);\n Object object0 = new Object();\n methodWriter0.visitFrame(76, (-1840700267), stringArray0, (-3070), stringArray0);\n // Undeclared exception!\n try { \n methodWriter0.visitFrame(8, (-1000), stringArray0, (-1000), stringArray0);\n fail(\"Expecting exception: IllegalStateException\");\n \n } catch(IllegalStateException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.objectweb.asm.jip.MethodWriter\", e);\n }\n }",
"public void test_getExceptionStackTrace() {\n String stackTrace = LogMessage.getExceptionStackTrace(error);\n\n assertTrue(\"'getExceptionStackTrace' should be correct.\", stackTrace.indexOf(\"java.lang.Exception\") != -1);\n }",
"public void xtestTraceJar() {\n ResolvedType trace = world.resolve(UnresolvedType.forName(\"Trace\"), true);\n assertTrue(\"Couldnt find type Trace\", !trace.isMissing());\n fieldsTest(trace, Member.NONE);\n /*Member constr = */\n MemberImpl.methodFromString(\"void Trace.<init>()\");\n //XXX need attribute fix - \n //methodsTest(trace, new Member[] { constr });\n interfacesTest(trace, ResolvedType.NONE);\n superclassTest(trace, UnresolvedType.OBJECT);\n isInterfaceTest(trace, false);\n isClassTest(trace, false);\n isAspectTest(trace, true);\n pointcutsTest(trace, new Member[] { MemberImpl.pointcut(trace, \"traced\", \"(Ljava/lang/Object;)V\") });\n modifiersTest(trace.findPointcut(\"traced\"), Modifier.PUBLIC | Modifier.ABSTRACT);\n mungersTest(trace, new ShadowMunger[] { world.shadowMunger(\"before(foo): traced(foo) -> void Trace.ajc_before_4(java.lang.Object))\", 0), world.shadowMunger(\"afterReturning(foo): traced(foo) -> void Trace.ajc_afterreturning_3(java.lang.Object, java.lang.Object))\", Advice.ExtraArgument), world.shadowMunger(\"around(): execution(* doit(..)) -> java.lang.Object Trace.ajc_around_2(org.aspectj.runtime.internal.AroundClosure))\", Advice.ExtraArgument), world.shadowMunger(\"around(foo): traced(foo) -> java.lang.Object Trace.ajc_around_1(java.lang.Object, org.aspectj.runtime.internal.AroundClosure))\", Advice.ExtraArgument) });\n ResolvedType myTrace = world.resolve(UnresolvedType.forName(\"MyTrace\"), true);\n assertTrue(\"Couldnt find type MyTrace\", !myTrace.isMissing());\n interfacesTest(myTrace, ResolvedType.NONE);\n superclassTest(myTrace, trace);\n isInterfaceTest(myTrace, false);\n isClassTest(myTrace, false);\n isAspectTest(myTrace, true);\n //XXX need attribute fix - \n //fieldsTest(myTrace, Member.NONE);\n pointcutsTest(trace, new Member[] { MemberImpl.pointcut(trace, \"traced\", \"(Ljava/lang/Object;)V\") });\n modifiersTest(myTrace.findPointcut(\"traced\"), Modifier.PUBLIC);\n // this tests for declared mungers\n mungersTest(myTrace, ShadowMunger.NONE);\n }",
"private void printStackTrace(Exception ex, GUILog gl) {\n StringWriter sw = new StringWriter();\n PrintWriter pw = new PrintWriter(sw);\n ex.printStackTrace(pw);\n gl.log(sw.toString()); // stack trace as a string\n ex.printStackTrace();\n }",
"static void assignTrace(Pipe pipe, Throwable ex) {\n\n StackTraceElement[] trace = ex.getStackTrace();\n int traceLength = trace.length;\n\n // Prune the local trace for all calls that occur before (and including) the skeleton.\n String fileName = SkeletonMaker.class.getSimpleName();\n for (int i=trace.length; --i>=0; ) {\n StackTraceElement element = trace[i];\n if (fileName.equals(element.getFileName())) {\n traceLength = i;\n break;\n }\n }\n\n StackTraceElement[] stitch = stitch(pipe);\n\n StackTraceElement[] local = new Throwable().getStackTrace();\n int localStart = 0;\n\n // Prune the local trace for all calls that occur after the stub, or else just prune\n // this \"assignTrace\" method if no stub method is found.\n\n if (local.length != 0) {\n localStart = 1; // prune this method\n }\n\n fileName = StubMaker.class.getSimpleName();\n for (int i=0; i<local.length; i++) {\n StackTraceElement element = local[i];\n if (fileName.equals(element.getFileName())) {\n localStart = i;\n break;\n }\n }\n\n int localLength = local.length - localStart;\n\n var combined = new StackTraceElement[traceLength + stitch.length + localLength];\n System.arraycopy(trace, 0, combined, 0, traceLength);\n System.arraycopy(stitch, 0, combined, traceLength, stitch.length);\n System.arraycopy(local, localStart, combined, traceLength + stitch.length, localLength);\n\n ex.setStackTrace(combined);\n }",
"@Override\n\tpublic void trace(Marker marker, MessageSupplier msgSupplier) {\n\n\t}",
"@Test(description=\"Testing Report if Exception is Occurred (Throwing Exception Intentionally)\")\n\tpublic void test() {\n\t\tReporter.log(\"Running test Method from TC010 class\", true);\n\t\tthrow new IllegalStateException();\n\t}",
"public void trace(Object message)\n/* */ {\n/* 95 */ debug(message);\n/* */ }",
"public void trace(Object message, Throwable t)\n/* */ {\n/* 130 */ this.logger.trace(message, t);\n/* */ }",
"static <T extends Throwable> T augmentStackTrace(T e) {\n RandomizedContext context = RandomizedContext.current();\n return augmentStackTraceNoContext(e, context.getRandomnesses());\n }",
"@Override\n\tpublic void trace(String message, Object... params) {\n\n\t}",
"@Test\n public void whenContextIsLoaded_thenNoExceptions() {\n }",
"@Test(timeout = 4000)\n public void test001() throws Throwable {\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"e}\");\n Frame frame0 = new Frame();\n int[] intArray0 = new int[3];\n frame0.inputStack = intArray0;\n ClassWriter classWriter0 = new ClassWriter(0);\n int[] intArray1 = new int[1];\n intArray1[0] = 2;\n frame0.inputLocals = intArray1;\n classWriter0.newClassItem(\"JSR/RET are not supported with computeFrames option\");\n Item item0 = classWriter0.newLong(0);\n // Undeclared exception!\n try { \n frame0.execute(165, (-4949), classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"public void testSetStackTrace() {\n StackTraceElement[] ste = new StackTraceElement[2]; \n ste[0] = new StackTraceElement(\"class\", \"method\", \"file\", -2);\n ste[1] = new StackTraceElement(\"class\", \"method\", \"file\", 1);\n Throwable th = new Throwable();\n th.setStackTrace(ste);\n ste = th.getStackTrace();\n assertEquals(\"incorrect length\", 2, ste.length);\n assertEquals(\"incorrect file name\", \"file\", ste[0].getFileName());\n assertEquals(\"incorrect line number\", -2, ste[0].getLineNumber());\n assertEquals(\"incorrect class name\", \"class\", ste[0].getClassName());\n assertEquals(\"incorrect method name\", \"method\", ste[0].getMethodName());\n assertTrue(\"native method should be reported\", ste[0].isNativeMethod());\n assertEquals(\"incorrect file name\", \"file\", ste[1].getFileName());\n assertEquals(\"incorrect line number\", 1, ste[1].getLineNumber());\n assertEquals(\"incorrect class name\", \"class\", ste[1].getClassName());\n assertEquals(\"incorrect method name\", \"method\", ste[1].getMethodName());\n assertFalse(\"native method should NOT be reported\", ste[1].isNativeMethod());\n ste[1] = null;\n try {\n th.setStackTrace(ste);\n } catch (NullPointerException ex) {\n }\n ste = null;\n try {\n th.setStackTrace(ste);\n } catch (NullPointerException ex) {\n }\n }",
"public void trace(String message);",
"public void trace(String message);",
"@Test\n void errorSpan() {\n String method = \"GET\";\n URI uri = resolveAddress(\"/error\");\n\n testing.runWithSpan(\n \"parent\",\n () -> {\n try {\n doRequest(method, uri);\n } catch (Throwable ignored) {\n }\n });\n\n testing.waitAndAssertTraces(\n trace -> {\n trace.hasSpansSatisfyingExactly(\n span -> span.hasName(\"parent\").hasKind(SpanKind.INTERNAL).hasNoParent(),\n span -> assertClientSpan(span, uri, method, 500, null).hasParent(trace.getSpan(0)),\n span -> assertServerSpan(span).hasParent(trace.getSpan(1)));\n });\n }",
"@Override\n\tpublic synchronized Throwable fillInStackTrace() {\n\t\treturn super.fillInStackTrace();\n\t}",
"public interface StackTrace {\r\n\r\n\t /**\r\n\t * Gets the class from which the stack is tracking.\r\n\t * \r\n\t * @return\t\t\tThe name of the class\r\n\t */\r\n public String getClazz();\r\n\r\n /**\r\n * Sets the class from which the stack should tracking.\r\n * \r\n * @param clazz\tThe name of the class\r\n */\r\n public void setClazz(String clazz);\r\n\r\n /**\r\n * Gets the current message from the StackTrace.\r\n * \r\n * @return\t\t\tThe message\r\n */\r\n public String getMessage();\r\n\r\n /**\r\n * Sets a message to the StackTrace.\r\n * \r\n * @param message\tThe message\r\n */\r\n public void setMessage(String message);\r\n\r\n /**\r\n * Gets the current stack.\r\n * \r\n * @return\t\t\tThe current stack\r\n */\r\n public String getStack();\r\n\r\n /**\r\n * Sets the current stack.\r\n * \r\n * @param stack\tThe new stack\r\n */\r\n public void setStack(String stack);\r\n}",
"public Trace() {\n\t}",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tthrow new NullPointerException();\n\t\t} catch (Exception e) {\n\t\t\tStringWriter sw = new StringWriter();\n\t\t\tPrintWriter pw = new PrintWriter(sw);\n\t\t\te.printStackTrace(pw);\n\n\t\t\tSystem.out.println(sw.toString());\n\t\t}\n\n\t\t// Convert a StackTrace to String using Apache Commons\n\t\ttry {\n\t\t\tthrow new IndexOutOfBoundsException();\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getStackTrace());\n\t\t}\n\t}",
"public void mo21818a(Throwable th) {\n th.printStackTrace();\n }",
"void printHellow() {\n logger.debug(\"hellow world begin....\");\n logger.info(\"it's a info message\");\n logger.warn(\"it's a warning message\");\n loggerTest.warn(\"from test1 :....\");\n loggerTest.info(\"info from test1 :....\");\n\n // print internal state\n LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n StatusPrinter.print(lc);\n }",
"@Test\n\tpublic void test() {\n\t\tLoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n\t\t// print logback's internal status\n\t\tStatusPrinter.print(lc);\n\t\t\n\t\tLOG.trace(\"this is a trace message\");\n\n\t\tLOG.debug(\"this is a debug message\");\n\n\t\tLOG.info(\"this is an info message\");\n\n\t\tLOG.warn(\"this is a warn message\");\n\n\t\tLOG.error(\"this is an error message\");\n\n\t}",
"@Override\n public StackTraceElement[] getStackTrace() {\n return getCause() == null ? super.getStackTrace() : getCause().getStackTrace();\n }",
"public void testMain() throws Throwable {\n\r\n\t}",
"@Override\n\tpublic void debug(Marker marker, Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void debug(MessageSupplier msgSupplier, Throwable t) {\n\n\t}",
"public List<Trace> getTraces() {\n if (!isLoaded()) {\n throw new IllegalStateException(\"Error: The module is not loaded\");\n }\n\n return new ArrayList<Trace>(m_traces);\n }",
"@Override\n\tpublic void debug(CharSequence message, Throwable t) {\n\n\t}",
"@Override\n\tpublic void setStackTrace(StackTraceElement[] stackTrace) {\n\t\tsuper.setStackTrace(stackTrace);\n\t}",
"@SuppressWarnings(\"unused\")\n protected void trace(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isTraceEnabled()) {\n this.getContainer().getLogger().trace(msg);\n }\n }",
"@Override\n\tpublic void trace(Object message) {\n\n\t}",
"@Override\n\tpublic void info(Message msg, Throwable t) {\n\n\t}",
"@Override\n\tpublic void debug(Object message, Throwable t) {\n\n\t}",
"@Test(timeout = 4000)\n public void test023() throws Throwable {\n Frame frame0 = new Frame();\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n ClassWriter classWriter0 = new ClassWriter(1048575);\n classWriter0.visitSource(\"JSR/RET are not suppPrtej with computeFrames option\", (String) null);\n int int0 = Frame.INTEGER;\n Item item0 = classWriter0.newInteger((-1786));\n int int1 = 187;\n // Undeclared exception!\n try { \n frame0.execute(187, 49, classWriter0, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }",
"private void printStackTraceHerder() {\n PrintStream printStream = System.err;\n synchronized (printStream) {\n System.err.println(super.getMessage() + \"; nested exception is:\");\n this.detail.printStackTrace();\n }\n }",
"public final void printStackTrace()\r\n {\r\n printStackTrace( System.err );\r\n }",
"@Override\n\tpublic StackTraceElement[] getStackTrace() {\n\t\treturn super.getStackTrace();\n\t}",
"public void testTraceFile02() {\n \n \t\tfinal File traceFile = OSGiTestsActivator.getContext().getDataFile(getName() + \".trace\"); //$NON-NLS-1$\n \t\tTestDebugTrace debugTrace = this.createDebugTrace(traceFile);\n \t\tTraceEntry[] traceOutput = null;\n \t\tfinal String exceptionMessage1 = \"An error 1\"; //$NON-NLS-1$\n \t\tfinal String exceptionMessage2 = \"An error 2\"; //$NON-NLS-1$\n \t\tfinal String exceptionMessage3 = \"An error 3\"; //$NON-NLS-1$\n \t\ttry {\n \t\t\tdebugTrace.trace(\"/debug\", \"testing 1\", new Exception(exceptionMessage1)); //$NON-NLS-1$ //$NON-NLS-2$ \n \t\t\tdebugTrace.trace(\"/notset\", \"testing 2\", new Exception(exceptionMessage2)); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\tdebugTrace.trace(\"/debug\", \"testing 3\", new Exception(exceptionMessage3)); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t\ttraceOutput = readTraceFile(traceFile); // Note: this call will also delete the trace file\n \t\t} catch (InvalidTraceEntry invalidEx) {\n \t\t\tfail(\"Failed 'DebugTrace.trace(option, message, Throwable)' test as an invalid trace entry was found. Actual Value: '\" + invalidEx.getActualValue() + \"'.\", invalidEx); //$NON-NLS-1$ //$NON-NLS-2$\n \t\t}\n \n \t\tfinal StringBuffer expectedThrowableText1 = new StringBuffer(\"java.lang.Exception: \"); //$NON-NLS-1$\n \t\texpectedThrowableText1.append(exceptionMessage1);\n \t\texpectedThrowableText1.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\texpectedThrowableText1.append(DebugOptionsTestCase.TAB_CHARACTER);\n \t\texpectedThrowableText1.append(\"at org.eclipse.osgi.tests.debugoptions.DebugOptionsTestCase.testTraceFile02(DebugOptionsTestCase.java:\"); //$NON-NLS-1$\t\t\n \n \t\tassertEquals(\"Wrong number of trace entries\", 2, traceOutput.length); //$NON-NLS-1$\n \t\tassertEquals(\"Thread name is incorrect\", Thread.currentThread().getName(), traceOutput[0].getThreadName()); //$NON-NLS-1$\n \t\tassertEquals(\"Bundle name is incorrect\", getName(), traceOutput[0].getBundleSymbolicName()); //$NON-NLS-1$\n \t\tassertEquals(\"option-path value is incorrect\", \"/debug\", traceOutput[0].getOptionPath()); //$NON-NLS-1$//$NON-NLS-2$\n \t\tassertEquals(\"class name value is incorrect\", DebugOptionsTestCase.class.getName(), traceOutput[0].getClassName()); //$NON-NLS-1$\n \t\tassertEquals(\"method name value is incorrect\", \"testTraceFile02\", traceOutput[0].getMethodName()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertEquals(\"trace message is incorrect\", \"testing 1\", traceOutput[0].getMessage()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertNotNull(\"throwable text should not be null\", traceOutput[0].getThrowableText()); //$NON-NLS-1$\n \t\tif (!traceOutput[0].getThrowableText().startsWith(expectedThrowableText1.toString())) {\n \t\t\tfinal StringBuffer errorMessage = new StringBuffer(\"The expected throwable text does not start with the actual throwable text.\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Expected\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(expectedThrowableText1.toString());\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Actual\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(traceOutput[0].getThrowableText());\n \t\t\tfail(errorMessage.toString());\n \t\t}\n \t\tassertNotNull(\"throwable should not be null\", traceOutput[0].getThrowableText()); //$NON-NLS-1$\n \t\tassertEquals(\"Wrong number of trace entries for trace without an exception\", 2, traceOutput.length); //$NON-NLS-1$\n \n \t\tfinal StringBuffer expectedThrowableText2 = new StringBuffer(\"java.lang.Exception: \"); //$NON-NLS-1$\n \t\texpectedThrowableText2.append(exceptionMessage3);\n \t\texpectedThrowableText2.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\texpectedThrowableText2.append(DebugOptionsTestCase.TAB_CHARACTER);\n \t\texpectedThrowableText2.append(\"at org.eclipse.osgi.tests.debugoptions.DebugOptionsTestCase.testTraceFile02(DebugOptionsTestCase.java:\"); //$NON-NLS-1$\t\t\n \n \t\tassertEquals(\"Thread name is incorrect\", Thread.currentThread().getName(), traceOutput[1].getThreadName()); //$NON-NLS-1$\n \t\tassertEquals(\"Bundle name is incorrect\", getName(), traceOutput[1].getBundleSymbolicName()); //$NON-NLS-1$\n \t\tassertEquals(\"option-path value is incorrect\", \"/debug\", traceOutput[1].getOptionPath()); //$NON-NLS-1$//$NON-NLS-2$\n \t\tassertEquals(\"class name value is incorrect\", DebugOptionsTestCase.class.getName(), traceOutput[1].getClassName()); //$NON-NLS-1$\n \t\tassertEquals(\"method name value is incorrect\", \"testTraceFile02\", traceOutput[1].getMethodName()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertEquals(\"trace message is incorrect\", \"testing 3\", traceOutput[1].getMessage()); //$NON-NLS-1$ //$NON-NLS-2$\n \t\tassertNotNull(\"throwable text should not be null\", traceOutput[1].getThrowableText()); //$NON-NLS-1$\n \t\tif (!traceOutput[1].getThrowableText().startsWith(expectedThrowableText2.toString())) {\n \t\t\tfinal StringBuffer errorMessage = new StringBuffer(\"The expected throwable text does not start with the actual throwable text.\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Expected\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(expectedThrowableText2.toString());\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"Actual\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(\"--------\"); //$NON-NLS-1$\n \t\t\terrorMessage.append(DebugOptionsTestCase.LINE_SEPARATOR);\n \t\t\terrorMessage.append(traceOutput[1].getThrowableText());\n \t\t\tfail(errorMessage.toString());\n \t\t}\n \t\tassertNotNull(\"throwable should not be null\", traceOutput[1].getThrowableText()); //$NON-NLS-1$\n \t\t// delete the trace file\n \t\ttraceFile.delete();\n \t}",
"void k2h_set_debug_level_warning();",
"public StackException(String message){\n super(message);\n }",
"public static void exceptionDescriptive(String errorCause, StackTraceElement l) throws IOException {\n\t\t\t String secondLine = \"Browser Shut-Down\", location = \"\";\n\t\t\t String packageNameOnly, classNameOnly, xml, detected, runtime, subtotal;\n\n\t\t\t packageNameOnly = l.getClassName().substring(0, l.getClassName().lastIndexOf(\".\"));\n\t\t\t classNameOnly = l.getClassName().substring(1 + l.getClassName().lastIndexOf(\".\"), l.getClassName().length());\n\t\t\t location = packageNameOnly + File.separator + classNameOnly + File.separator + l.getMethodName() + \", line # \" + l.getLineNumber();\n\t\t xml = \"<class name=\\\"\" + packageNameOnly + \".\" + classNameOnly + \"\\\"><methods><include name=\\\"\" + l.getMethodName() + \"\\\"/></methods></class>\";\n\t\t detected = getCurrentDateTimeFull();\n\t\t runtime = testRunTime(\"start.time\", System.currentTimeMillis());\n\t\t subtotal = testRunTime(\"ini.time\", System.currentTimeMillis());\n\t\t \t \n\t\t // APPEND A NEW LOG RECORDS:\n\t\t fileWriterPrinter(\"\\nError Cause: ---> \" + errorCause + \"\\nDescription: ---> \" + secondLine + \"\\n Location: ---> \" + location);\t\n\t\t if (fileExist(\"run.log\", false)) {\n\t\t\t fileWriter(\"run.log\", \"Error Cause: ---> \" + errorCause);\n\t\t\t fileWriter(\"run.log\", \"Description: ---> \" + secondLine);\n\t\t\t fileWriter(\"run.log\", \" Location: ---> \" + location);\t \t \n\t\t }\n\t\t \n\t\t // APPEND AN ERROR RECORD:\n\t\t\t fileWriter(\"failed.log\", \" Failure: #\" + fileScanner(\"failed.num\"));\n\t\t\t fileWriter(\"failed.log\", \" Test: #\" + fileScanner(\"test.num\"));\n\t\t\t fileWriter(\"failed.log\", \" Start: \" + convertCalendarMillisecondsAsStringToDateTimeHourMinSec(fileScanner(\"start.time\")));\n fileWriter(\"failed.log\", \" XML Path: \" + xml);\n\t\t\t fileWriter(\"failed.log\", \"Error Cause: ---> \" + errorCause);\n\t\t\t fileWriter(\"failed.log\", \"Description: ---> \" + secondLine);\n\t\t\t fileWriter(\"failed.log\", \" Location: ---> \" + location);\n\t\t\t fileWriter(\"failed.log\", \" Detected: \" + detected);\n\t\t \t fileWriter(\"failed.log\", \" Runtime: \" + runtime);\n\t\t \t fileWriter(\"failed.log\", \" Subtotal: \" + subtotal);\n\t\t \t fileWriter(\"failed.log\", \"\");\n\t\t \t \n\t\t // APPEND DESCRIPTIVE RECORD:\n\t\t\t Assert.assertFalse(true, \"\\n Error Cause: ---> \" + errorCause\n\t\t\t\t\t + \"\\n Description: ---> \" + secondLine\n\t\t\t\t\t + \"\\n Location: ---> \" + location\n\t\t\t\t\t\t\t\t\t + \"\\n Detected: ---> \" + detected\n\t\t\t\t\t\t\t\t\t + \"\\n Runtime: ---> \" + runtime\n\t\t\t\t\t\t\t\t\t + \"\\n Subtotal: ---> \" + subtotal\n\t\t\t\t\t + \"\\n\"\n\t\t\t\t\t\t\t + xml\n\t\t\t\t\t\t\t + \"\\n\"\n\t\t\t\t \t + \"\\nStack Traces:\");\t\t\t \n\t\t }",
"@Override\n\tpublic void trace(CharSequence message) {\n\n\t}",
"public TracerClassInstrumentation() {\n this(\"datadog.trace.api.Trace\", Collections.singleton(\"noop\"));\n }",
"public void testFillInStackTrace_return() {\n \n Throwable th = new Throwable();\n assertSame(th, th.fillInStackTrace());\n }",
"@Override\n public void setStackTrace(StackTraceElement[] stackTrace) {\n super.setStackTrace(stackTrace);\n }",
"@Test\n public void whenContextIsLoaded_thenNoExceptions2() {\n }",
"@Test\n\tpublic void logMessageAndException() {\n\t\tRuntimeException exception = new RuntimeException();\n\n\t\tlogger.log(org.jboss.logging.Logger.Level.DEBUG, \"Boom!\", exception);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(2, null, Level.DEBUG, exception, null, \"Boom!\", (Object[]) null);\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.log(org.jboss.logging.Logger.Level.WARN, \"Boom!\", exception);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(2, null, Level.WARN, exception, null, \"Boom!\", (Object[]) null);\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}",
"public static void main(String args[]) throws Exception {\n\t\tremoveTraces();\n\t}",
"@Override\n\tpublic boolean isFatalEnabled() {\n\t\treturn false;\n\t}",
"private static void outputThrowable(Throwable cause, AppendingStringBuffer sb,\n\t\t\tboolean stopAtWicketServlet)\n\t{\n\t\tsb.append(cause);\n\t\tsb.append(\"\\n\");\n\t\tStackTraceElement[] trace = cause.getStackTrace();\n\t\tfor (int i = 0; i < trace.length; i++)\n\t\t{\n\t\t\tString traceString = trace[i].toString();\n\t\t\tif (!(traceString.startsWith(\"sun.reflect.\") && i > 1))\n\t\t\t{\n\t\t\t\tsb.append(\" at \");\n\t\t\t\tsb.append(traceString);\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\tif (stopAtWicketServlet\n\t\t\t\t\t\t&& traceString.startsWith(\"wicket.protocol.http.WicketServlet\"))\n\t\t\t\t{\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void trace(Marker marker, String message) {\n\n\t}"
] |
[
"0.56859535",
"0.5606087",
"0.56048703",
"0.5596371",
"0.55915374",
"0.555556",
"0.5552459",
"0.5496309",
"0.5432572",
"0.5426279",
"0.5370188",
"0.5355283",
"0.5353112",
"0.5332941",
"0.5329279",
"0.5302469",
"0.52806133",
"0.52769345",
"0.52744824",
"0.5263733",
"0.5220935",
"0.5169745",
"0.5095607",
"0.50955474",
"0.50954837",
"0.50886345",
"0.5078743",
"0.5064048",
"0.5064048",
"0.50473297",
"0.50361305",
"0.5029887",
"0.5029772",
"0.501764",
"0.50169504",
"0.5002232",
"0.4974315",
"0.494506",
"0.49376574",
"0.4934046",
"0.49283862",
"0.4922169",
"0.49019623",
"0.48907608",
"0.4885967",
"0.48702976",
"0.48627827",
"0.4862196",
"0.4849688",
"0.48465383",
"0.48432013",
"0.48411226",
"0.48236293",
"0.48208332",
"0.48161846",
"0.48017514",
"0.47968692",
"0.479386",
"0.47877967",
"0.4781077",
"0.4765717",
"0.4762433",
"0.4761516",
"0.4761516",
"0.4759793",
"0.47562215",
"0.4747664",
"0.47447535",
"0.47423422",
"0.47405085",
"0.4740501",
"0.47302938",
"0.47222468",
"0.47165793",
"0.47109485",
"0.4701008",
"0.4696204",
"0.46934226",
"0.46918267",
"0.46843505",
"0.46837735",
"0.46792305",
"0.4676609",
"0.467456",
"0.46741",
"0.46740898",
"0.46733922",
"0.46708557",
"0.46697965",
"0.466317",
"0.46589795",
"0.46524796",
"0.46458036",
"0.46457493",
"0.464506",
"0.46373525",
"0.46350265",
"0.46348155",
"0.46258044",
"0.46248746",
"0.462284"
] |
0.0
|
-1
|
Random rnd = new Random();
|
private void writeOutput( final PrintWriter writer ) throws InterruptedException, IOException {
double[][] numbers = new double[DATA_ROWS][DATA_COLUMNS];
for(int irow = 0; irow < DATA_ROWS; irow++) {
for(int icol = 0; icol < DATA_COLUMNS; icol++) {
//double number = rnd.nextDouble();
double number = irow + ( (double) icol ) / 10. + ( (double) icol ) / 100. + ( (double) icol ) / 1000. + ( (double) icol ) / 10000. + ( (double) icol ) / 100000.;
Thread.sleep( SLEEP_BETWEEN_COLUMNS ); //simulating a program that's doing some other work like db retrieval
writer.print( number );
writer.print( '\t' );
numbers[irow][icol] = number;
}
writer.println();
System.out.println( "wrote row " + irow );
}
writer.flush();
writer.close();
checkOutput( numbers );
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void random() {\n\n\t}",
"private Random rand()\n\t{\n\t\treturn new Random();\n\t}",
"public static int randomNext() { return 0; }",
"Randomizer getRandomizer();",
"private double getRandom() {\n return 2*Math.random() - 1;\n }",
"private void setRand(){\n rand = generator.nextInt(9) + 1;\n }",
"public final void rand() {\n\t\tpush(randomNumberGenerator.nextDouble());\n\t}",
"private int rand() {\n return (int)(Math.random()*(RAND_MAX + 1));\n }",
"public Rng() {\n\t\tr = new Random();\n\t}",
"public static void randomInit(int r) { }",
"public Random getRandom() {\n\t\treturn (rand);\n\t}",
"protected Random get_rand_value()\n {\n return rand;\n }",
"public static void Random() {\n\t\tRandom ran =new Random();\r\n\t\trandom=ran.nextInt(6)+1;\r\n\t\t//random=1;\r\n\t\twho=A1063307_GUI.who2;\r\n\t\tif((ch[who].status)>0) {\r\n\t\t\tch[who].location=(ch[who].location)+random;\r\n\t\t\tch[who].status=(ch[who].status)-1;\r\n\t\t\t\r\n\t\t}else {\r\n\t\t\t\treturn;\r\n\t\t\t}\t\t\r\n\t}",
"public Random() {\n real = new UniversalGenerator();\n twister = new MersenneTwister();\n }",
"public static double random() {\r\n return uniform();\r\n }",
"SimulatedAnnealing() {\n generator = new Random(System.currentTimeMillis());\n }",
"public Randomizer()\r\n {\r\n }",
"public void setRandom(Random r) {\n this.r = r;\n }",
"public RandomIA() {\n\t\trandom = new Random();\n\t}",
"public abstract void randomize();",
"public double getRandom(){\n\t\treturn random.nextDouble();\n\t}",
"private double randn(){\r\n\t\t//* http://www.mathworks.com/access/helpdesk/help/techdoc/matlab.html\r\n\t\t//RandomNumber rnd = new RandomNumber(System.currentTimeMillis());\r\n\t\t//return rnd.normal();\r\n\t\treturn rnd.nextGaussian();\r\n\t\t//return 0;\r\n\t}",
"public GSRandom() {\r\n\t\t\r\n\t}",
"private void assuerNN_random() {\n //Check, if the variable is null..\n if (this.random == null) {\n //..and now create it.\n this.random = new Random(10);\n }\n }",
"Boolean getRandomize();",
"public static int randomGet() { return 0; }",
"private PRNG() {\n java.util.Random r = new java.util.Random();\n seed = r.nextInt();\n mersenne = new MersenneTwister(seed);\n }",
"void saveRandom();",
"public static double random()\n {\n return _prng2.nextDouble();\n }",
"private double getRandomNumber(){\n double rand = Math.random();//produce a number between 0 and 1\n rand = rand - 0.5;\n return rand;\n }",
"public static double rand() {\n return (new Random()).nextDouble();\n }",
"int randomPoint() { return 1 + (int)Math.round((Math.random()*20) % (size - 2)); }",
"public static int getRandomAmount(){\n return rand.nextInt(1000);\n }",
"public RNGRandomImpl() {\n\t\tsetRand(new Random());\n\t}",
"public static void main(String[] args) {\n\r\n\t\tRandom rr=new Random();\r\n\t\t\r\n\t\tSystem.out.println(Math.random());//[0,1)\r\n\t\t \r\n\t\t// 第一种情况 int(强转之后最终的值一定是0)\r\n\t\t// 第二种情况 int(强转之后将小数点舍去 1-5)\r\n\t\tSystem.out.println((int)Math.random()*5);//0.99*5永远到不了5\r\n\t\tSystem.out.println((int)(Math.random()*5+1));//[1,5.)\r\n\t\t\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\tSystem.out.println(rr.rand107());\r\n\t\t\r\n\t\tfor(int i=0;i<=20;i++){\r\n\t\t\tSystem.out.print(i%7+\"-\");\r\n\t\t\t\r\n\t\t}\r\n\t\t//1-M的随机产生\r\n\t\t//(int)(Math.random()*M+1)\r\n\t\t\r\n\t\t\r\n\t\t//产生0 1的概率不同 Math.random()<p?0:1\r\n\t\tSystem.out.println(\"----\"+rr.rand01p());\r\n\t\tSystem.out.println(\"----\"+rr.rand01());\r\n\t\tfor(int i=0;i<=11;i++){\r\n\t\t\tSystem.out.print(i%6+\"-\");\r\n\t\t \t\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(rr.rand106());\r\n\t}",
"void randomize() {\r\n\t\trandomize(1, this.length());\r\n\t}",
"public Rng(long seed) {\n\t\tr = new Random(seed);\n\t}",
"public Random getRandomNumberGenerator() { return randomNumberGenerator; }",
"public java.lang.String getRnd () {\r\n\t\treturn rnd;\r\n\t}",
"public double getRandom() {\n return 20*Math.random() - 10;\n }",
"public static int getRandom() \n\t{\n\t\treturn rGenerator.nextInt();\n\t}",
"long random(long ws) {\r\n\t\treturn (System.currentTimeMillis() % ws);\r\n\t}",
"private static int get() { \r\n Random r = new Random();\r\n return (r.nextInt(9));\r\n }",
"public boolean isRandom(){\r\n\t\treturn isRandom;\r\n\t}",
"private int randomNum() {\r\n\t return((int)(Math.random() * 100));\r\n\t }",
"public Enigma(){ \r\n randNumber = new Random(); \r\n }",
"public void rollRandom() {\n\t\tthis.strength = randomWithRange();\r\n\t\tthis.wisdom = randomWithRange();\r\n\t\tthis.dexterity = randomWithRange();\r\n\t\tthis.constitution = randomWithRange();\r\n\t\tthis.intelligence = randomWithRange();\r\n\t\tthis.charisma = randomWithRange();\r\n\t}",
"int random(int m)\n {\n return (int) (1 + Math.random()%m);\n }",
"public void setRnd (java.lang.String rnd) {\r\n\t\tthis.rnd = rnd;\r\n\t}",
"public int getSeed(){\n return this.seed; \n }",
"public Random getRandomGenerator() {\n return randomGenerator;\n }",
"private void randomMove() {\n }",
"public void randomize() {\n\t\tx = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t\ty = ThreadLocalRandom.current().nextInt(0, 499 + 1);\n\t}",
"private RandomLocationGen() {}",
"public void SetRandom(boolean random);",
"private int randomHelper() {\n\t\tRandom rand = new Random();\n\t\tint randomNum = rand.nextInt((10000 - 1) + 1) + 1;\n\t\treturn randomNum;\n\t}",
"public abstract boolean isRandom();",
"public void setRandom(boolean random){\n this.random = random;\n }",
"RandomArrayGenerator() {\n this.defaultLaenge = 16;\n }",
"int getRandom(int max);",
"public XorShiftRandom() {\n\t\tthis(System.nanoTime());\n\t}",
"private void randomTest(){\n\n int time = 5 ;\n\n test(time) ;\n }",
"public void setRNG(long seed);",
"public NameGenerator() {\n this.rand = new Random();\n }",
"static int random(int mod)\n {\n Random rand = new Random();\n int l= (rand.nextInt());\n if(l<0)\n l=l*-1;\n l=l%mod;\n return l;\n }",
"protected Agent(){\n\t\trand = SeededRandom.getGenerator();\n\t}",
"RandomnessSource copy();",
"public void setSecureRandom(SecureRandom rnd) {\n this.rnd = rnd;\n }",
"public long getSeed()\n {\n return randomSeed;\n }",
"void reset(int randomseed);",
"public int generateRandom() {\n\t\tint random = (int)(Math.random()*((6-1)+1))+1;\n\t\treturn random;\n\t}",
"PermutationGenerator(Random random) {\n\t\tm_random = random;\n\t}",
"public int drawpseudocard(){\n Random random = new Random();\n return random.nextInt(9)+1;\n }",
"public void makeRandColor(){}",
"void setRandomNo() {\n\t\tno = 10000000 + (int) (Math.random() * 90000000);\n\t}",
"@Override\n public void run() {\n while(true){\n// double a = Math.random()*Math.random();//占用 CPU\n// System.out.println(a);\n }\n }",
"@Override\n\tpublic void randomChanged(boolean random) {\n\t\t\n\t}",
"public void newGame() {\n\t\ttheNumber = (int)(Math.random()* 100 + 1);\r\n\t\t\r\n\t}",
"RandomizedRarestFirstSelector(Random random) {\n this.random = random;\n }",
"public void roll(){\n currentValue = rand.nextInt(6)+1;\n }",
"public GridSimRandom() {\n // empty\n }",
"private Random getRandom()\n\t{\n\t\tif (this.random == null)\n\t\t{\n\t\t\t// Calculate the new random number generator seed\n\t\t\tlong seed = System.currentTimeMillis();\n\t\t\tlong t1 = seed;\n\t\t\tchar entropy[] = getEntropy().toCharArray();\n\t\t\tfor (int i = 0; i < entropy.length; i++)\n\t\t\t{\n\t\t\t\tlong update = ((byte) entropy[i]) << ((i % 8) * 8);\n\t\t\t\tseed ^= update;\n\t\t\t}\n\t\t\tthis.random = new java.util.Random();\n\t\t\tthis.random.setSeed(seed);\n\t\t}\n\n\t\treturn (this.random);\n\n\t}",
"private int randomWeight()\n {\n return dice.nextInt(1000000);\n }",
"public void Random(){\n Random rd=new Random();\n jTextField1.setText(\"\"+rd.nextInt(5000+1));\n }",
"public void randomize()\n {\n for (int i=0; i<list.length; i++)\n list[i] = (int)(Math.random() * 100) + 1;\n }",
"void shuffle();",
"void shuffle();",
"public int randomDP() {\n\t\treturn(getRandomInteger(10,250));\n\t}",
"public int eDmg(){\r\n eDmg = rand.nextInt(13);\r\n return eDmg;\r\n }",
"public void setSeed(int seed){\n this.seed = seed; \n }",
"public static double uniform() {\r\n return random.nextDouble();\r\n }",
"public T removeRandom ();",
"private static int getRandomNumberOfRooms(){\r\n return r.nextInt(50)+1;\r\n }",
"@Override\n public boolean run() {\n return new Random().nextBoolean();\n }",
"static final int fast_rand()\n\t{\n\t\tRz = 36969 * (Rz & 65535) + (Rz >>> 16);// ((Rz >>> 16) & 65535);\n\t\tRw = 18000 * (Rw & 65535) + (Rw >>> 16);// ((Rw >>> 16) & 65535);\n\t\treturn (Rz << 16) + Rw;\n\t}",
"public synchronized Random getRandom() {\n\n if (_random == null) {\n synchronized (this) {\n if (_random == null) {\n // Calculate the new random number generator seed\n long seed = System.currentTimeMillis();\n long t1 = seed;\n char entropy[] = getEntropy().toCharArray();\n for (int i = 0; i < entropy.length; i++) {\n long update = ((byte) entropy[i]) << ((i % 8) * 8);\n seed ^= update;\n }\n try {\n // Construct and seed a new random number generator\n Class clazz = Class.forName(_randomClass);\n _random = (Random) clazz.newInstance();\n _random.setSeed(seed);\n } catch (Exception e) {\n // Can't instantiate random class, fall back to the simple case\n logger.error(\"Can't use random class : \" + _randomClass + \", fall back to the simple case.\", e);\n _random = new java.util.Random();\n _random.setSeed(seed);\n }\n // Log a debug msg if this is taking too long ...\n long t2 = System.currentTimeMillis();\n if ((t2 - t1) > 100)\n logger.debug(\"Delay getting Random with class : \" + _randomClass + \" [getRandom()] \" + (t2 - t1) + \" ms.\");\n }\n }\n }\n\n return (_random);\n\n }",
"public Mazealgo() {\n Random number = new Random();\n long i = number.nextLong();\n this.random = new Random(i);\n this.seed = i;\n }",
"public StrategyRandom() {\n name = \"Random\";\n }",
"public static int getRandomBalance(){\n return rand.nextInt(1000000);\n }",
"public RandomizedCollection() {\n map=new HashMap();\n li=new ArrayList();\n rand=new Random();\n }",
"public Random(long seed) {\n real = new UniversalGenerator(seed);\n twister = new MersenneTwister(seed);\n }"
] |
[
"0.84492654",
"0.83165836",
"0.8029547",
"0.7626942",
"0.75323266",
"0.7521075",
"0.74817765",
"0.7283754",
"0.7280764",
"0.7171405",
"0.7164157",
"0.7128945",
"0.70953465",
"0.7074255",
"0.70488894",
"0.7044285",
"0.70417976",
"0.698822",
"0.69804806",
"0.6968249",
"0.69379175",
"0.69127744",
"0.6906969",
"0.6881801",
"0.68677956",
"0.68611795",
"0.6837334",
"0.6822823",
"0.6813389",
"0.6812216",
"0.68102133",
"0.6784685",
"0.6778248",
"0.6758621",
"0.6730958",
"0.6716085",
"0.66900605",
"0.6680511",
"0.66687423",
"0.6660432",
"0.665099",
"0.66316557",
"0.6610698",
"0.6602218",
"0.66002417",
"0.6588914",
"0.65869176",
"0.65840995",
"0.657355",
"0.656406",
"0.65537786",
"0.6539952",
"0.65396774",
"0.65332276",
"0.65191513",
"0.6518463",
"0.65074044",
"0.6503455",
"0.6502441",
"0.65017444",
"0.64899313",
"0.6471841",
"0.64524996",
"0.6447103",
"0.64345235",
"0.64139724",
"0.63986",
"0.63846314",
"0.6360889",
"0.6360283",
"0.6348731",
"0.634204",
"0.6339255",
"0.6335058",
"0.633396",
"0.6316412",
"0.6311693",
"0.63077855",
"0.62970173",
"0.62901026",
"0.6283103",
"0.6277419",
"0.6275122",
"0.6270502",
"0.62641376",
"0.62637335",
"0.62637335",
"0.62589955",
"0.6258509",
"0.625518",
"0.62522715",
"0.623617",
"0.62340516",
"0.6231726",
"0.6222015",
"0.6212757",
"0.6203666",
"0.6202971",
"0.620151",
"0.6198522",
"0.61967194"
] |
0.0
|
-1
|
Pokazuje menu 1. Dodaj zadanie 2. Wykonaj zadanie 3. Zamknij program
|
private static void showMenu() {
System.out.println("1. Dodaj zadanie");
System.out.println("2. Wykonaj zadanie.");
System.out.println("3. Zamknij program");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void menuInicial() {\n System.out.println(\"Boas vindas à Arena pokemon Treinador!!!\");\n System.out.println(\"Digite 1 para fazer sua inscrição\");\n System.out.println(\"Digite 2 para sair\");\n\n }",
"public static void menu(){\n System.out.println(\"-Ingrese el número correspondiente-\");\n System.out.println(\"------------ Opciones -------------\");\n System.out.println(\"------------ 1. Sumar -------------\");\n System.out.println(\"------------ 2. Restar ------------\");\n System.out.println(\"------------ 3. Multiplicar -------\");\n System.out.println(\"------------ 4. Dividir -----------\");\n }",
"private void menuArmadura(){\n System.out.println(\"Escolha o local em que queira colocar a uma armadura:\");\n System.out.println(\"1 - Cabeça\");\n System.out.println(\"2 - Tronco\");\n System.out.println(\"3 - Pernas\");\n System.out.println(\"4 - Pés\");\n System.out.println(\"0 - Sair\");\n }",
"public static void mainMenu() {\r\n\t\tSystem.out.println(\"============= Text-Werkzeuge =============\");\r\n\t\tSystem.out.println(\"Bitte Aktion auswählen:\");\r\n\t\tSystem.out.println(\"1: Text umkehren\");\r\n\t\tSystem.out.println(\"2: Palindrom-Test\");\r\n\t\tSystem.out.println(\"3: Wörter zählen\");\r\n\t\tSystem.out.println(\"4: Caesar-Chiffre\");\r\n\t\tSystem.out.println(\"5: Längstes Wort ermitteln\");\r\n\t\tSystem.out.println(\"0: Programm beenden\");\r\n\t\tSystem.out.println(\"==========================================\");\r\n\t}",
"static void listerMenu() {\n System.out.println(\n \"-------------------------------------\\n\" +\n \"Saisir une option :\\n\" +\n \"1 : Liste des hôtes\\n\" +\n \"2 : Liste des logements\\n\" +\n \"3 : Liste des voyageurs\\n\" +\n \"4 : Liste des réservations\\n\" +\n \"5 : Fermer le programme\"\n );\n switch (Menu.choix(5)) {\n case 1:\n GestionHotes.listerHotes();\n break;\n case 2:\n GestionLogements.listerLogements();\n break;\n case 3:\n GestionVoyageurs.listerVoyageurs();\n break;\n case 4:\n GestionReservations.listerReservations();\n break;\n case 5:\n System.exit(0);\n break;\n }\n }",
"static void mainMenu ()\r\n \t{\r\n \t\tfinal byte width = 45; //Menu is 45 characters wide.\r\n \t\tString label [] = {\"Welcome to my RedGame 2 compiler\"};\r\n \t\t\r\n \t\tMenu front = new Menu(label, \"Main Menu\", (byte) width);\r\n \t\t\r\n \t\tMenu systemTests = systemTests(); //Gen a test object.\r\n \t\tMenu settings = settings(); //Gen a setting object.\r\n \t\t\r\n \t\tfront.addOption (systemTests);\r\n \t\tfront.addOption (settings);\r\n \t\t\r\n \t\tfront.select();\r\n \t\t//The program should exit after this menu has returned. CLI-specific\r\n \t\t//exit operations should be here:\r\n \t\t\r\n \t\tprint (\"\\nThank you for using my program.\");\r\n \t}",
"private static int menu() {\n\t\tint opcion;\n\t\topcion = Leer.pedirEntero(\"1:Crear 4 Almacenes y 15 muebeles\" + \"\\n2: Mostrar los muebles\"\n\t\t\t\t+ \"\\n3: Mostrar los almacenes\" + \"\\n4: Mostrar muebles y su almacen\" + \"\\n0: Finalizar\");\n\t\treturn opcion;\n\t}",
"public void menu(){\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"<=======|\" + name + \"|=======>\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tSystem.out.println(\"1 -> Jouer\");\n\t\tSystem.out.println(\"2 -> Creer votre personnage\");\n\t\tSystem.out.println(\"3 -> Charger\");\n\t\tSystem.out.println(\"4 -> Best Score\");\n\t\tSystem.out.println(\"5 -> Instruction\");\n\t\tSystem.out.println(\"6 -> Quitter\");\n\t\tSystem.out.println(\"------------------------------------------------\");\n\t\tint choice = in.nextInt();\n\n\t\t\tswitch (choice){\n\t\t\t\tcase 1:\n\t\t\t\t\tstartPlay();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2:\n\t\t\t\t\tcreateChar();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3 :\n\t\t\t\t\tchargeGame();\n\t\t\t\tcase 4:\n\t\t\t\t\tSystem.out.print(\" NOM -\");\n\t\t\t\t\tSystem.out.print(\" GENRE -\");\n\t\t\t\t\tSystem.out.print(\" SANTEE -\");\n\t\t\t\t\tSystem.out.print(\" FORCE -\");\n\t\t\t\t\tSystem.out.print(\" ARMES -\");\n\t\t\t\t\tSystem.out.println(\" ARGENT -\");\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tbdd.dbQuery(\"SELECT * FROM score ORDER BY health DESC\");\n\t\t\t\t\tmenu();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\trules();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 6:\n\t\t\t\t\texit();\n\t\t\t\tdefault:\n\t\t\t\t\tSystem.out.println(\"Choix non valide\");\n\t\t\t\t\tmenu();\n\t\t\t}\n\t}",
"static void mostrarMenu(){\n \t\t\n\t\tout.println();\n\t\tout.println(\"1. Crear lavadora.\");\n\t\tout.println(\"2. Mostrar lavadoras.\");\n\t\tout.println(\"3. Seleccionar lavadora.\");\n\t\tout.println(\"4. Cargar agua.\");\n\t\tout.println(\"5. Cargar ropa.\");\n\t\tout.println(\"6. Cargar detergente.\");\n\t\tout.println(\"7. Especificar tiempo.\");\n\t\tout.println(\"8. Drenar.\");\n\t\tout.println(\"9. Mostrar estado de la lavadora.\");\n\t\tout.println(\"10. Mostrar estado de la ropa.\");\n\t\tout.println(\"11. Pausar o Reanudar lavadora\");\n\t\tout.println(\"12. Probar sistema.\");\n\t\tout.println(\"13. Reiniciar sistema.\");\n\t\tout.println(\"22. Salir\");\n\t\tout.println((SELECTNOW != -1) ? \"!/*!/* Lv seleccionada: \" + SELECTNOW + \" !/*!/*\": \"\");\n\t\tout.println();\n\t}",
"static void montaMenu() {\n System.out.println(\"\");\r\n System.out.println(\"1 - Novo cliente\");\r\n System.out.println(\"2 - Lista clientes\");\r\n System.out.println(\"3 - Apagar cliente\");\r\n System.out.println(\"0 - Finalizar\");\r\n System.out.println(\"Digite a opcao desejada: \");\r\n System.out.println(\"\");\r\n }",
"public void menu(){\n int numero;\n \n //x.setVisible(true);\n //while(opc>=3){\n r = d.readString(\"Que tipo de conversion deseas hacer?\\n\"\n + \"1)Convertir de F a C\\n\"\n + \"2)Convertir de C a F\\n\"\n + \"3)Salir\"); \n opc=Character.getNumericValue(r.charAt(0));\n //}\n }",
"@Override\n\tpublic void showmenu() {\n\t\t\n\t\tint choice;\n \n System.out.println(\"请选择1.查询 2.退出\");\n choice=console.nextInt();\n \n switch (choice){\n \n case 1:\n Menu.searchMenu();\n break;\n default:\n \tSystem.out.println(\"感谢您使用本系统 欢迎下次使用!\");\n System.exit(0);\n }\n \n \n\t}",
"private void mainMenu() {\n System.out.println(\"Canteen Management System\");\n System.out.println(\"-----------------------\");\n System.out.println(\"1. Show Menu\");\n System.out.println(\"2.AcceptReject\");\n System.out.println(\"3.place orders\");\n System.out.println(\"4.show orders\");\n System.out.println(\"5. Exit\");\n mainMenuDetails();\n }",
"public static void f_menu() {\n System.out.println(\"----------------------------------------\");\n System.out.println(\"--------------DIGITALSOFT---------------\");\n System.out.println(\"-----version:1.0------28/04/2020.-------\");\n System.out.println(\"-----Angel Manuel Correa Rivera---------\");\n System.out.println(\"----------------------------------------\");\n }",
"private void afficheMenu() {\n\t\tSystem.out.println(\"------------------------------ Bien venu -----------------------------\");\n\t\tSystem.out.println(\"--------------------------- \"+this.getName()+\" ------------------------\\n\");\n\t\t\n\t\ttry {\n\t\t\tThread.sleep(40);\n\t\t\tSystem.out.println(\"A- Afficher l'état de l'hôtel. \");\n\t\t\tThread.sleep(50);\n\t\t\tSystem.out.println(\"B- Afficher Le nombre de chambres réservées.\");\n\t\t\tThread.sleep(60);\n\t\t\tSystem.out.println(\"C- Afficher Le nombre de chambres libres.\");\n\t\t\tThread.sleep(70);\n\t\t\tSystem.out.println(\"D- Afficher Le numéro de la première chambre vide.\");\n\t\t\tThread.sleep(80);\n\t\t\tSystem.out.println(\"E- Afficher La numéro de la dernière chambre vide.\");\n\t\t\tThread.sleep(90);\n\t\t\tSystem.out.println(\"F- Reserver une chambre.\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"G- Libérer une chambre.\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"O- Voire toutes les options possibles?\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"H- Aide?\");\n\t\t\tThread.sleep(100);\n\t\t\tSystem.out.println(\"-------------------------------------------------------------------------\");\n\t\t}catch(Exception err) {\n\t\t\tSystem.out.println(\"Error d'affichage!\");\n\t\t}\n\t\n\t}",
"public static void menu() {\n\t\tSystem.out.println(\"Menu:\");\n\t\tSystem.out.println(\"1: Create\");\n\t\tSystem.out.println(\"2: Merge\");\n\t\tSystem.out.println(\"3: Collection\");\n\t\tSystem.out.println(\"4: Upgrades\");\n\t\tSystem.out.println(\"5: Sell\");\n\t\tSystem.out.println(\"6: Identify Crystal\");\n\t\tSystem.out.println(\"\");\n\t}",
"private static void mostrarMenu() {\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println(\"-----------OPCIONES-----------\");\n\t\tSystem.out.println(\"------------------------------\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\"\\n\\t1) Mostrar los procesos\");\n\t\tSystem.out.println(\"\\n\\t2) Parar un proceso\");\n\t\tSystem.out.println(\"\\n\\t3) Arrancar un proceso\");\n\t\tSystem.out.println(\"\\n\\t4) A�adir un proceso\");\n\t\tSystem.out.println(\"\\n\\t5) Terminar ejecucion\");\n\t\tSystem.out.println(\"\\n------------------------------\");\n\t}",
"public static void menu(int juego) {\n boolean decisionMenu;\n boolean continuacionJuego = true;\n int continuacionCiclo = 1;\n int seleccionMenu = 0;\n Scanner escaner = new Scanner(System.in);\n seleccionMenu = juego;\n while (continuacionJuego == true) {\n continuacionCiclo = 1;\n\n /* Esta es la parte del menu, se encuentra en un ciclo que comprueba si los valores ingresados\n se encuentran en el rango de las opciones dadas, de lo contrario repetira el ciclo hasta obtener un\n valor satisfactorio, es un ciclo comparativo */\n if (seleccionMenu == 0) {\n\n do {\n\n System.out.println(\"\\nBienvenido al menu de juegos\");\n System.out.println(\"Selecciona el juego que quieres jugar\");\n System.out.println(\"Ingresa '1': Sopa de letras \");\n System.out.println(\"Ingresa '2': Target \");\n System.out.println(\"Ingresa '3': 2048 \");\n System.out.println(\"Ingresa '4': Ver Punteos\");\n System.out.println(\"Ingresa '5': Salir del programa \");\n\n seleccionMenu = Integer.parseInt(escaner.nextLine());\n\n // Condicion para reconocer si los valores ingresados estan en el sistema, y lo decide a traves de una variable booleana\n if ((seleccionMenu >= 1) && (seleccionMenu <= 5)) {\n decisionMenu = true;\n } else {\n decisionMenu = false;\n System.out.println(\"Has ingresado una opcion incorrecta, vuelve a intentar, recuerda que solo son numeros los que hay que ingresar\");\n }\n } while (decisionMenu == false);\n }\n\n while (continuacionCiclo == 1) {\n // Condiciones para llamar el tipo de juego que se requiere\n switch (seleccionMenu) {\n\n case 1:\n sopaLetras(); // la funcion sopaLetras inicia el juego de sopa de letras que regresara un punteo depende si gano o perdio activando la funcion punteo\n continuacionCiclo = repetirJuego(1);\n break;\n\n case 2:\n target();\n continuacionCiclo = repetirJuego(2);\n break;\n\n case 3:\n juego2048();\n continuacionCiclo = repetirJuego(3);\n break;\n\n case 4:\n //Muestra todos los jugadores que han participado en los juegos, y las veces que han ganado es decir su punteo\n System.out.println(\"\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\\n\");\n System.out.println(\" Punteos \");\n System.out.println(\"Nombre Puntos Ganados\");\n for (int sizeNombres = 0; sizeNombres < nombres.length - 1; sizeNombres++) {\n System.out.println(nombres[sizeNombres] + \" \" + punteos[sizeNombres]);\n }\n System.out.println(\"Ingresa cualquier caracter para continuar\");\n escaner.nextLine();\n continuacionCiclo = 2;\n break;\n case 5:\n continuacionCiclo = 3;\n break;\n\n }\n\n }\n\n if (continuacionCiclo == 3) {\n System.out.println(\"Hasta Pronto.......\");\n continuacionJuego = false;\n }\n seleccionMenu = 0;\n }\n\n }",
"public void menu()\r\n\t{\r\n\t\t//TODO\r\n\t\t//Exits for now\r\n\t\tSystem.exit(0);\r\n\t}",
"private void menu() { \r\n\t\tSystem.out.println(\" ---------WHAT WOULD YOU LIKE TO DO?---------\");\r\n\t\tSystem.out.println(\"1) Move\");\r\n\t\tSystem.out.println(\"2) Save\");\r\n\t\tSystem.out.println(\"3) Quit\");\r\n\t\t\r\n\t}",
"public static void f_menu(){\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n System.out.println(\"_/_/_/_/_/_/softvectorwhith/_/_/_/_/_/_/\");\n System.out.println(\"/_/_/_/version 1.0 2020-oct-29_/_/_/_/_/\");\n System.out.println(\"/_/maked by Andres Felipe Torres Lopez_/\");\n System.out.println(\"_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/\");\n }",
"private static void menuAdmin(){\n int opcao = 0;\n Scanner teclado = new Scanner(System.in);\n\n System.out.println(\"Administrador\");\n System.out.println(\"1 - Novo Utilizador\");\n System.out.println(\"2 - Nova Aplicação\");\n System.out.println(\"3 - Visualizar Utilizadores por ordem de registo\");\n System.out.println(\"4 - Visualizar Utilizadores por ordem de valor pago\");\n System.out.println(\"5 - Visualizar Aplicações\");\n System.out.println(\"6 - Valor acumulado pela AppStore\");\n System.out.println(\"7 - Valor acumulado por Programador\");\n System.out.println(\"8 - Gravar dados\");\n System.out.println(\"9 - Voltar atrás\");\n System.out.print(\"Opção: \");\n\n try{\n opcao = teclado.nextInt();\n System.out.println(\"\");\n switch(opcao){\n case 1: utilizadorProgramador();\n menuAdmin();\n break;\n case 2: lerIDProgramador();\n menuAdmin();\n break;\n case 3: escreverDadosUtilizador();\n menuAdmin();\n break;\n case 4: listUserValue();\n menuAdmin();\n break;\n case 5: verApps();\n break;\n case 6: System.out.println(totalAppStore()+\" euros\");\n menuAdmin();\n break;\n case 7: valorAcumuladoProgramador();\n menuAdmin();\n break;\n case 8: gravar();\n menuAdmin();\n break;\n case 9: modoVisualizacao();\n break;\n default: throw new InputMismatchException();\n }\n }catch(InputMismatchException ime){\n System.out.println(\"Opção Inválida, tente novamente!\");\n System.out.println(\"\");\n menuAdmin();\n }catch(FileNotFoundException e){\n e.printStackTrace();\n }catch(UnsupportedEncodingException e){\n e.printStackTrace();\n }\n }",
"public void mainMenu() {\n\n System.out.println(\"\\n HOTEL RESERVATION SYSTEM\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.println(\" COMMANDS:\");\n System.out.println(\" - View Tables\\t\\t(1)\");\n System.out.println(\" - Add Records\\t\\t(2)\");\n System.out.println(\" - Update Records\\t(3)\");\n System.out.println(\" - Delete Records\\t(4)\");\n System.out.println(\" - Search Records\\t(5)\");\n System.out.println(\"+------------------------------------------------------------------------------+\");\n System.out.print(\" > \");\n }",
"private static int menu() {\r\n\t\tSystem.out.println(\"Elige opcion de jugada:\");\r\n\t\tSystem.out.println(\"1-Piedra\");\r\n\t\tSystem.out.println(\"2-Papel\");\r\n\t\tSystem.out.println(\"3-Tijera\");\r\n\t\tSystem.out.println(\"0-Salir\");\r\n\t\tSystem.out.print(\"Opcion: \");\r\n\t\treturn Teclado.leerInt();\r\n\t}",
"void Menu();",
"void askMenu();",
"public void controllerMenu(){\n\t\tint option=1;\n\t\t\n\t\twhile(option!=0){ \n\t\t\tSystem.out.println(\"You are in the air controller menu\");\n\t\t\tSystem.out.println(\"Write the number corresponding to the action you quant to perform:\");\n\t\t\tSystem.out.println(\"1. Add plane (basic info)\");\n\t\t\tSystem.out.println(\"2. Add detailed information of a plane\");\n\t\t\tSystem.out.println(\"3. Show airspace\");\n\t\t\tSystem.out.println(\"4. Encrypt plane\");\n\t\t\tSystem.out.println(\"5. Decrypt plane\");\n\t\t\tSystem.out.println(\"Press 0 to exit\");\n\t\t\t\n\t\t\toption = entry.nextInt();\n\t\t\t\n\t\t\tswitch(option){\t// switch with a method for each operation\n\t\t\t\tcase 1: \n\t\t\t\t\taddPlane();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: \n\t\t\t\t\tafegirInfo();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 3: \n\t\t\t\t\tdisplayInfo();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 4: \n\t\t\t\t\tencrypt();\n\t\t\t\t\tbreak;\n\t\t\t\tcase 5:\n\t\t\t\t\tdesencriptar();\n\t\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private void mainMenu() {\r\n System.out.println(\"Please choose an option: \");\r\n System.out.println(\"1. New Player\");\r\n System.out.println(\"2. New VIP Player\");\r\n System.out.println(\"3. Quit\");\r\n }",
"public void menu()\n {\n System.out.println(\"\\n\\t\\t============================================\");\n System.out.println(\"\\t\\t|| Welcome to the Movie Database ||\");\n System.out.println(\"\\t\\t============================================\");\n System.out.println(\"\\t\\t|| (1) Search Movie ||\");\n System.out.println(\"\\t\\t|| (2) Add Movie ||\");\n System.out.println(\"\\t\\t|| (3) Delete Movie ||\");\n System.out.println(\"\\t\\t|| (4) Display Favourite Movies ||\");\n System.out.println(\"\\t\\t|| (5) Display All Movies ||\");\n System.out.println(\"\\t\\t|| (6) Edit movies' detail ||\");\n System.out.println(\"\\t\\t|| (7) Exit System ||\");\n System.out.println(\"\\t\\t=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\");\n System.out.print( \"\\t\\tPlease insert your option: \");\n }",
"public static void mainMenu() \n\t{\n\t\t// display menu\n\t\tSystem.out.print(\"\\nWhat would you like to do?\" +\n\t\t\t\t\"\\n1. Enter a new pizza order (password required)\" +\n\t\t\t\t\"\\n2. Change information of a specific order (password required)\" +\n\t\t\t\t\"\\n3. Display details for all pizzas of a specific size (s/m/l)\" +\n\t\t\t\t\"\\n4. Statistics of today's pizzas\" +\n\t\t\t\t\"\\n5. Quit\" +\n\t\t\t\t\"\\nPlease enter your choice: \");\t\n\t}",
"private void mainMenu() {\r\n System.out.println(\"Canteen Management System\");\r\n System.out.println(\"-----------------------\");\r\n System.out.println(\"1. Show Menu\");\r\n System.out.println(\"2. Employee Login\");\r\n System.out.println(\"3. Vendor Login\");\r\n System.out.println(\"4. Exit\");\r\n mainMenuDetails();\r\n }",
"public static int menu()\n {\n \n int choix;\n System.out.println(\"MENU PRINCIPAL\");\n System.out.println(\"--------------\");\n System.out.println(\"1. Operation sur les membres\");\n System.out.println(\"2. Operation sur les taches\");\n System.out.println(\"3. Assignation de tache\");\n System.out.println(\"4. Rechercher les taches assigne a un membre\");\n System.out.println(\"5. Rechercher les taches en fonction de leur status\");\n System.out.println(\"6. Afficher la liste des taches assignees\");\n System.out.println(\"7. Sortir\");\n System.out.println(\"--------------\");\n System.out.print(\"votre choix : \");\n choix = Keyboard.getEntier();\n System.out.println();\n return choix;\n }",
"public void menu() {\n m.add(\"Go adventuring!!\", this::goAdventuring );\n m.add(\"Display information about your character\", this::displayCharacter );\n m.add(\"Visit shop\", this::goShopping);\n m.add (\"Exit game...\", this::exitGame);\n }",
"private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }",
"static void afficherMenu() {\n\t\tSystem.out.println(\"\\n\\n\\n\\t\\tMENU PRINCIPAL\\n\");\n\t\tSystem.out.println(\"\\t1. Additionner deux nombres\\n\");\n\t\tSystem.out.println(\"\\t2. Soustraire deux nombres\\n\");\n\t\tSystem.out.println(\"\\t3. Multiplier deux nombres\\n\");\n\t\tSystem.out.println(\"\\t4. Deviser deux nombres\\n\");\n\t\tSystem.out.println(\"\\t0. Quitter\\n\");\n\t\tSystem.out.print(\"\\tFaites votre choix : \");\n\t}",
"private void paintMenu(){ \n\t\t\n\t\t//Idee: Vllt. lieber Menü auf unsichtbar setzen und immer wieder anzeigen, wenn benötigt? Vllt. auch praktisch für Pause...Aber was mit entsprechenden Labels?\n\t\tif(spiel_status == 3){ //Spiel noch gar nicht gestartet\n\t\t\tframe3 = new JFrame(\"Spiel starten?\");\n\t\t\tframe3.setLocation(650,300);\n\t\t\tframe3.setSize(100, 100);\n\t\t\tJButton b1 = new JButton(\"Einzelspieler\");\n\t\t\tb1.setMnemonic(KeyEvent.VK_ENTER);//Shortcut Enter\n\t\t\tJButton b2 = new JButton(\"Beenden\");\n\t\t\tb2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape\n\t\t\tJButton b3 = new JButton(\"Mehrspieler\");\n\t\t\tJButton b4 = new JButton(\"Einstellungen\");\n\t\t\tJButton b5 = new JButton(\"Handbuch\");\n\t\t\t\n\t\t\t//Neues Layout. 4 Zeilen, 1 Spalte. \n\t\t\tframe3.setLayout(new GridLayout(5,1));\n\t\t\tframe3.add(b1);\n\t\t\tframe3.add(b3);\n\t\t\tframe3.add(b4);\n\t\t\tframe3.add(b5);\n\t\t\tframe3.add(b2);\n\n\t\t\tframe3.pack();\n\t\t\tframe3.setVisible(true);\n\t\t\t\n\t\t\t\n\t\t\tb1.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0){\n\t\t\t\t\tsingleplayer = true;\n\t\t\t\t\tdoInitializations(frame3);\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\t\n\t\t\tb2.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\tb3.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){\n\t\t\t\t\tmultiplayer = true;\n\t\t\t\t\tpaintNetworkMenu();\n\t\t\t\t}\n\t\t\t});\t\t\t\n\t\t\t\n\t\t\tb4.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){\n\t\t\t\t\tpaintSettingMenu();\n\t\t\t\t}\n\t\t\t});\n\t\t\t\n\t\t\tb5.addActionListener(new ActionListener(){\n\t\t\t\tpublic void actionPerformed(ActionEvent arg1){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tRuntime.getRuntime().exec(\"rundll32 url.dll,FileProtocolHandler \"+ \"resources\\\\handbuch\\\\Handbuch.pdf\");\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\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\n\t\tif(spiel_status == 1|| spiel_status == 0){ //Wenn Spiel gewonnen oder verloren\n//\t\t\tif (!multiplayer){\n\t\t\t\tframe2 = new JFrame(\"Neues Einzelspielerspiel?\");\n\t\t\t\tframe2.setLocation(500,300);\n\t\t\t\tframe2.setSize(100, 100);\n\t\t\t\tJLabel label;\n\t\t\t\tif(spiel_status == 1){\n\t\t\t\t\tlabel = new JLabel(\"Bravo, du hast gewonnen! Neues Einzelspielerspiel?\");\n\t\t\t\t}else{\n\t\t\t\t\tif(player.getLifes() == 0){\n\t\t\t\t\t\tlabel = new JLabel(\"Schade, du hast verloren! Neues Einzelspielerspiel?\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tlabel = new JLabel(\"Du hast gewonnen! Neues Einzelspielerspiel?\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tframe2.add(BorderLayout.NORTH, label);\n\t\t\t\tJButton b1 = new JButton(\"Neues Einzelspielerspiel\");\n\t\t\t\tb1.setMnemonic(KeyEvent.VK_ENTER);//Shortcut Enter\n\t\t\t\tb1.addActionListener(new ActionListener(){\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0){ //bzgl. Starten\n\t\t\t\t\t\tsoundlib.stopLoopingSound();\n\t\t\t\t\t\tdoInitializations(frame2);\n\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t\tJButton b2 = new JButton(\"Zurück zum Hauptmenü\");\n\t\t\t\tb2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape\n\t\t\t\tb2.addActionListener(new ActionListener(){\n\t\t\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n\t\t\t\t\t\tsoundlib.stopLoopingSound();\n\t\t\t\t\t\tspiel_status=3;\n\t\t\t\t\t\tpaintMenu();\n\t\t\t\t\t\tframe2.setVisible(false);\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t});\n\t\t\t\tframe2.add(BorderLayout.CENTER, b1);\n\t\t\t\tframe2.add(BorderLayout.SOUTH, b2);\n\t\t\t\tframe2.pack();\n\t\t\t\tframe2.setVisible(true);\n\t\t\t\tspiel_status = 0;\n\t\t\t}\n//\t\t}else{\n//\t\t\tframe2 = new JFrame(\"Ende\");\n//\t\t\tframe2.setLocation(500,300);\n//\t\t\tframe2.setSize(100, 100);\n//\t\t\tJLabel label;\n//\t\t\tif(player.getLifes() == 0){\n//\t\t\t\tlabel = new JLabel(\"Du Lusche hast verloren!\");\n//\t\t\t}else{\n//\t\t\t\tlabel = new JLabel(\"Boom-Headshot! Du hast gewonnen!\");\n//\t\t\t}\n//\t\t\t\n//\t\t\tframe2.add(BorderLayout.NORTH, label);\n//\t\t\t\n//\t\t\tJButton b2 = new JButton(\"Zurück zum Hauptmenü\");\n//\t\t\tb2.setMnemonic(KeyEvent.VK_ESCAPE);//Shortcut Escape\n//\t\t\tb2.addActionListener(new ActionListener(){\n//\t\t\t\tpublic void actionPerformed(ActionEvent arg1){ //bzgl. Schließen\n//\t\t\t\t\tif(sound_running){\n//\t\t\t\t\t\tsoundlib.stopLoopingSound();\n//\t\t\t\t\t}\n//\t\t\t\t\tspiel_status=3;\n//\t\t\t\t\tpaintMenu();\n//\t\t\t\t\tframe2.setVisible(false);\n//\t\t\t\t\tframe2.dispose();\n//\t\t\t\t\t\n//\t\t\t\n//\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t});\n//\t\t\tframe2.add(BorderLayout.CENTER, b2);\n//\t\t\tframe2.pack();\n//\t\t\tframe2.setVisible(true);\n//\t\t\tspiel_status = 0;\n//\t\t}\n\t\tspiel_status = 0; // Daraus folgt, dass wenn man das Spiel per ESC-taste verlässt, man verliert.\n\t\t\n\t}",
"public static void menu()\r\n {\n\t\t Scanner scan = new Scanner(System.in);\r\n\t\t System.out.println(\"Please enter your choice : \");\r\n\t\t int choice = scan.nextInt();\r\n\t\t switch(choice)\r\n\t\t {\r\n\t\t case 1:\r\n\t\t\t viewFiles();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t case 2: \r\n\t\t\t createNew();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t case 3: \r\n\t\t\t searchFile();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t case 4: \r\n\t\t deleteFile();\r\n\t\t goback();\r\n\t\t break;\r\n\t\t case 5: \r\n\t\t\t exit();\r\n\t\t\t goback();\r\n\t\t\t break;\r\n\t\t \r\n\t\t default :\r\n\t\t\t System.out.println(\"please enter a only 1,2,3 or 4\");\r\n\t\t\t goback();\r\n\t }\r\n\t }",
"static void Menu(){\n int pilihan;\n input = new Scanner(System.in);\n System.out.println(\"\\t TODO LIST APP \\t\");\n System.out.println(\"1. Lihat Todo List\");\n System.out.println(\"2. Tambah Todo List\");\n System.out.println(\"3. Edit Todo List\");\n System.out.println(\"4. Hapus Todo List\");\n System.out.println(\"0. Keluar kau\");\n\n System.out.print(\"Pilih = \");\n pilihan = input.nextInt();\n\n//IF ELSE Statment\n if (pilihan == 1){\n listTodo.list();\n }else if(pilihan == 2){\n listTodo.add();\n }else if (pilihan == 3){\n listTodo.edit();\n }else if (pilihan == 4){\n listTodo.hapus();\n }else if (pilihan == 0){\n System.exit(0);\n }else{\n kembali(\"Anda Salah Memilih Menu\");\n }\n\n }",
"public void main_menu()\n\t{\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.println(\"Please Select an option\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tSystem.out.print(\"1.Add 2.Update 3.Delete 4.Exit\\n\");\n\t\tSystem.out.println(\"===========================================================\");\n\t\tchoice=me.nextInt();\n\t\tthis.check_choice(choice);\n\t}",
"public static void MenuPilihan() {\r\n\t\tScanner sc = new Scanner(System.in);\r\n\t\tboolean running = true;\r\n\t\tint kode = 6;\r\n\t\t\r\n\t\tMatriks Minput = new Matriks(1,1);\r\n\t\t\r\n\t\twhile (running) {\r\n\t\t\tSystem.out.printf(\"Menu \\n1. Sistem Persamaan Linier \\n2. Determinan \\n3. Matriks balikan \\n4. Interpolasi Polinom \\n5. Regresi linier berganda \\n6. Keluar \\n\");\r\n\t\t\tkode = sc.nextInt();\r\n\r\n\t\t\tswitch(kode){\r\n\t\t\t\tcase 1:\r\n\t\t\t\t\tSystem.out.printf(\"1. Metode eliminasi Gauss \\n2. Metode eliminasi Gauss-Jordan \\n3. Metode Matriks balikan \\n4. Kaidah Cramer \\n\");\r\n\t\t\t\t\tint kode1 = sc.nextInt();\r\n\t\t\t\t\tMinput.BacaIsi(1);\r\n\t\t\t\t\tint flag;\r\n\t\t\t\t\tdouble[] hasil;\r\n\t\t\t\t\tswitch(kode1){\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\thasil = Gauss(Minput);\r\n\t\t\t\t\t\t\tif (hasil.length == 3 + Minput.BrsEff){\r\n\t\t\t\t\t\t\t\tflag = 3;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (hasil.length == 2 + Minput.BrsEff){\r\n\t\t\t\t\t\t\t\tflag = 2;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tflag = 1;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tMatriks.writeSPL(hasil, flag);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\thasil = Jordan(Minput);\r\n\t\t\t\t\t\t\tif (hasil.length == 3 + Minput.BrsEff){\r\n\t\t\t\t\t\t\t\tflag = 3;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if (hasil.length == 2 + Minput.BrsEff){\r\n\t\t\t\t\t\t\t\tflag = 2;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\t\tflag = 1;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tMatriks.writeSPL(hasil, flag);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 3:\r\n\t\t\t\t\t\t\tif(Minput.DetCofactor(Minput)==0){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"SPL tidak dapat diselesaikan dengan cara ini!\");\r\n\t\t\t\t\t\t\t} else{\r\n\t\t\t\t\t\t\t\tMatriks A = new Matriks(1,1);\r\n\t\t\t\t\t\t\t\tMatriks B = new Matriks(1,1);\r\n\r\n\t\t\t\t\t\t\t\tMinput.splitMatriks(A,B);\r\n\r\n\t\t\t\t\t\t\t\thasil = A.SPLInverse(A,B);\r\n\t\t\t\t\t\t\t\tMatriks.writeSPL(hasil, 1);\r\n\t\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 4:\r\n\t\t\t\t\t\t\tif(Minput.DetCofactor(Minput)==0){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"SPL tidak dapat diselesaikan dengan cara ini!\");\r\n\t\t\t\t\t\t\t} else{\r\n\t\t\t\t\t\t\t\thasil = Minput.Cramer();\r\n\t\t\t\t\t\t\t\tMatriks.writeSPL(hasil,1);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 2:\r\n\t\t\t\t\tSystem.out.printf(\"Menu \\n1.Determinan Reduksi Baris \\n2.Determinan Ekspansi Kofaktor \\n\");\r\n\t\t\t\t\tkode1 = sc.nextInt();\r\n\t\t\t\t\tMinput.BacaIsi(4);\r\n\t\t\t\t\tdouble determinan;\r\n\r\n\t\t\t\t\tswitch(kode1){\r\n\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\tdeterminan = Minput.DetReduksi();\r\n\t\t\t\t\t\t\tMatriks.writeDouble(determinan);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\tdeterminan = Minput.DetCofactor(Minput);\r\n\t\t\t\t\t\t\tMatriks.writeDouble(determinan);\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 3:\r\n\t\t\t\t\tSystem.out.printf(\"Matriks Balikan\\n\");\r\n\t\t\t\t\tMinput.BacaIsi(4);\r\n\t\t\t\t\tdouble det = Minput.DetCofactor(Minput);\r\n\t\t\t\t\tif(det!=0){\r\n\t\t\t\t\t\tMatriks Moutput = Minput.Inverse(Minput);\r\n\t\t\t\t\t\tMoutput.writeMatriks(Moutput);\r\n\t\t\t\t\t} else{\r\n\t\t\t\t\t\tSystem.out.println(\"Matriks yang anda masukan tidak memiliki inverse\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 4:\r\n\t\t\t\t\tSystem.out.printf(\"Interpolasi Polinom\");\r\n\t\t\t\t\tMinput.BacaIsi(2);\r\n\t\t\t\t\tSystem.out.println(\"Masukan nilai yang akan di taksir: \");\r\n\t\t\t\t\tdouble x = sc.nextDouble();\r\n\t\t\t\t\tint n = Minput.Elmt.length-1;\r\n\r\n\t\t\t\t\tdouble[] result = Minput.Interpolasi(Minput,n,x);\r\n\t\t\t\t\tMinput.writeInterpolasi(x, result);\r\n\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 5:\r\n\t\t\t\t\tSystem.out.printf(\"Regresi Linier Berganda\\n\");\r\n\t\t\t\t\tMinput.BacaIsi(3);\r\n\r\n\t\t\t\t\tdouble jawaban;\r\n\r\n\t\t\t\t\tdouble[] rslt = Minput.Regresi();\r\n\t\t\t\t\tdouble[] var = new double[rslt.length-1];\r\n\r\n\t\t\t\t\tSystem.out.println(\"Masukkan variabel-variabel X untuk nilai Y yang ingin dicari:\");\r\n\r\n\t\t\t\t\tfor (int i=0; i<var.length; i++) {\r\n\t\t\t\t\t\tvar[i] = sc.nextDouble();\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tjawaban = HasilRegresi(rslt, var);\r\n\t\t\t\t\t\r\n\t\t\t\t\twriteDouble(jawaban);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\tcase 6:\r\n\t\t\t\t\trunning = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tsc.close();\r\n\t}",
"public static void main(String[] args){\n Menu iniciar_menu = new Menu();\r\n }",
"public static void afficherMenu() {\r\n System.out.println(\"\\n## Menu de l'application ##\\n\" +\r\n \" Actions Membres :\\n\"+\r\n \" [ 1] : Inscription d'un Membre\\n\" +\r\n \" [ 2] : Désinscription d'un Membre\\n\" +\r\n \" ( 3) : Afficher liste des Membres\\n\" +\r\n \" [ 4] : Payer Cotisation\\n\" +\r\n \" Actions vote Arbres d'un Membre :\\n\" +\r\n \" ( 5) : Voter pour un Arbre\\n\" +\r\n \" ( 6) : Afficher liste des votes\\n\" +\r\n \" ( 7) : Retirer un vote\\n\" +\r\n \" ( 8) : Supprimer les votes d'un Membre.\\n\" +\r\n \" ( 9) : Remplacer un vote\\n\" +\r\n \" Actions Arbres :\\n\" +\r\n \" (10) : Afficher la liste des Arbres\\n\" +\r\n // ...\r\n \" Actions Administration :\\n\" +\r\n \" (11) : Nommer nouveau Président\\n\" +\r\n // ...\r\n \"\\n ( 0) : Quitter l'application\\n\" +\r\n \" - Veuillez saisir une action. -\");\r\n }",
"public void menu() {\n System.out.println(\n \" Warehouse System\\n\"\n + \" Stage 3\\n\\n\"\n + \" +--------------------------------------+\\n\"\n + \" | \" + ADD_CLIENT + \")\\tAdd Client |\\n\"\n + \" | \" + ADD_PRODUCT + \")\\tAdd Product |\\n\"\n + \" | \" + ADD_SUPPLIER + \")\\tAdd Supplier |\\n\"\n + \" | \" + ACCEPT_SHIPMENT + \")\\tAccept Shipment from Supplier |\\n\"\n + \" | \" + ACCEPT_ORDER + \")\\tAccept Order from Client |\\n\"\n + \" | \" + PROCESS_ORDER + \")\\tProcess Order |\\n\"\n + \" | \" + CREATE_INVOICE + \")\\tInvoice from processed Order |\\n\"\n + \" | \" + PAYMENT + \")\\tMake a payment |\\n\"\n + \" | \" + ASSIGN_PRODUCT + \")\\tAssign Product to Supplier |\\n\"\n + \" | \" + UNASSIGN_PRODUCT + \")\\tUnssign Product to Supplier |\\n\"\n + \" | \" + SHOW_CLIENTS + \")\\tShow Clients |\\n\"\n + \" | \" + SHOW_PRODUCTS + \")\\tShow Products |\\n\"\n + \" | \" + SHOW_SUPPLIERS + \")\\tShow Suppliers |\\n\"\n + \" | \" + SHOW_ORDERS + \")\\tShow Orders |\\n\"\n + \" | \" + GET_TRANS + \")\\tGet Transaction of a Client |\\n\"\n + \" | \" + GET_INVOICE + \")\\tGet Invoices of a Client |\\n\"\n + \" | \" + SAVE + \")\\tSave State |\\n\"\n + \" | \" + MENU + \")\\tDisplay Menu |\\n\"\n + \" | \" + EXIT + \")\\tExit |\\n\"\n + \" +--------------------------------------+\\n\");\n }",
"protected static int mainMenu() {\n System.out.println(\"Main Menu:\");\n System.out.println(\" 1 - Add a room\");\n System.out.println(\" 2 - Remove a room\");\n System.out.println(\" 3 - Schedule a room\");\n System.out.println(\" 4 - List Schedule\");\n System.out.println(\" 5 - List Rooms\");\n System.out.println(\" 6 - save Roomdetails\");\n System.out.println(\" 7 - save schedule\");\n System.out.println(\" 8 - save meeting\");\n System.out.println(\" 9 - import Roomdetails\");\n System.out.println(\" 10 -import schedule\");\n System.out.println(\" 11 -import meeting\");\n System.out.println(\"Enter your selection: \");\n\n return keyboard.nextInt();\n }",
"public static void proManagerUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the Project Manager's Information\");\n System.out.println(\"2 - Would you like to search for a Project Manager's information\");\n System.out.println(\"3 - Adding a new Project Manager's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }",
"void ajouterMenu(){\r\n\t\t\tJMenuBar menubar = new JMenuBar();\r\n\t \r\n\t JMenu file = new JMenu(\"File\");\r\n\t file.setMnemonic(KeyEvent.VK_F);\r\n\t \r\n\t JMenuItem eMenuItemNew = new JMenuItem(\"Nouvelle Partie\");\r\n\t eMenuItemNew.addActionListener(new ActionListener() {\r\n\t @Override\r\n\t public void actionPerformed(ActionEvent event) {\r\n\t \t\r\n\t \t\t\r\n\t \t\t\r\n\t \tnew NouvellePartie();\r\n\t }\r\n\t });\r\n\t file.add(eMenuItemNew);\r\n\t \r\n\t JMenuItem eMenuItemFermer = new JMenuItem(\"Fermer\");\r\n\t eMenuItemFermer.setMnemonic(KeyEvent.VK_E);\r\n\t eMenuItemFermer.setToolTipText(\"Fermer l'application\");\r\n\t \r\n\t eMenuItemFermer.addActionListener(new ActionListener() {\r\n\t @Override\r\n\t public void actionPerformed(ActionEvent event) {\r\n\t System.exit(0);\r\n\t }\r\n\t });\r\n\r\n\t file.add(eMenuItemFermer);\r\n\r\n\t menubar.add(file);\r\n\t \r\n\t JMenu aide = new JMenu(\"?\");\r\n\t JMenuItem eMenuItemRegle = new JMenuItem(\"Règles\");\r\n\t aide.add(eMenuItemRegle);\r\n\t menubar.add(aide);\r\n\r\n\t final String regles=\"<html><p>Le but est de récupérer les 4 objets Graal puis de retourner au château.</p>\"\t\r\n\t +\"<p>Après avoir récupéré un objet, chaque déplacement vous enlève autant de vie que le poids de l'objet</p></html>\";\r\n\t eMenuItemRegle.addActionListener(new ActionListener() {\r\n\t @Override\r\n\t public void actionPerformed(ActionEvent event) {\r\n\t \t//default title and icon\r\n\t \t\t\tJOptionPane.showMessageDialog(gameFrame,\r\n\t \t\t\t regles,\"Règles du jeu\", JOptionPane.INFORMATION_MESSAGE);\r\n\t \t\t\t\r\n\t }\r\n\t });\r\n\t \t\r\n\t\t\t\r\n\t this.setJMenuBar(menubar);\t\r\n\t\t}",
"public void menuForProductManagement(){\r\n\r\n System.out.println(\"## ORGANICS ' E HOSGELDINIZ \"+ currentGuest.getName() + \" ##\");\r\n\r\n System.out.println(\"##############################\");\r\n System.out.println(\"# GIRIS PANELI #\");\r\n System.out.println(\"##############################\");\r\n System.out.println(\"# 1-Urun ekle #\");\r\n System.out.println(\"# 2-Urunleri Goster #\");\r\n System.out.println(\"# 3-Urun sil #\");\r\n System.out.println(\"# 4-Cıkıs #\");\r\n System.out.println(\"##############################\");\r\n\r\n Scanner scanner = new Scanner(System.in);\r\n int choice;\r\n int indexDelete;\r\n choice = scanner.nextInt();\r\n while(choice!=4){\r\n if(choice == 1){\r\n addProduct();\r\n }\r\n else if(choice ==2){\r\n printAllProduct();\r\n }\r\n else if(choice ==3){\r\n printAllProduct();\r\n System.out.print(\"Urunu silmek icin index' i giriniz -->\");\r\n indexDelete = scanner.nextInt();\r\n deleteProduct(indexDelete);\r\n printAllProduct();\r\n\r\n }\r\n System.out.print(\"\\n(1: Urun ekle)\\n\"+ \"(2: Urunleri Goster)\\n\" +\"(3: Urun Sil)\\n\" +\r\n \"(4: Cıkıs) -->\");\r\n System.out.println(\"\\nDevam etmek icin seciminizi giriniz :\\n\");\r\n choice = scanner.nextInt();\r\n }\r\n\r\n\r\n }",
"@Override\r\n\tpublic void menu() {\n\t\tSystem.out.println(\"go to menu\");\r\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tMenu menu = new Menu();\r\n\t\tGame game = new Game();\r\n\t\t//System.out.println(\"test\");\r\n\t\t\r\n\t\t\r\n\t\twhile (game.getBoard().getMancheCourante() < 9) {\r\n\t\t\tswitch (tour) {\r\n\t\t\tcase 1:\r\n\t\t\t\tif(game.getBoard().getMancheCourante()%2 == 0) {\r\n\t\t\t\t\tgame.setCurrentPlayer(game.getJoueur2());\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgame.setCurrentPlayer(game.getJoueur1());\r\n\t\t\t\t}\r\n\t\t\t\tif(game.getCurrentPlayer().getisJack()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Jack commence: veuillez saisir un chiffre pour lancer les jetons d'action.\",\"Jack a l'identite de \"+game.getJoueur2().getIdentiteJack().name());\r\n\t\t\t\t\tint l = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().refreshBoard(l,1);\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Jack choisi l'une des 4 actions, pour cela, saisir le numero de l'action\",\"Jack a l'identite de \"+game.getJoueur2().getIdentiteJack().name());\r\n\t\t\t\t\tint jetonAction = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().refreshBoard(jetonAction,2);\r\n\t\t\t\t\tgame.switchPlayer();\r\n\t\t\t\t\ttour=tour+1;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Sherlock commence: veuillez saisir un chiffre pour lancer les jetons d'action.\",\"\");\r\n\t\t\t\t\tint l = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().refreshBoard(l,1);\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Sherlock choisi l'une des 4 actions, pour cela, saisir le numero de l'action\",\"\");\r\n\t\t\t\t\tint jetonAction = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().refreshBoard(jetonAction,2);\r\n\t\t\t\t\tgame.switchPlayer();\r\n\t\t\t\t\ttour=tour+1;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 2:\r\n\t\t\t\tif(game.getCurrentPlayer().getisJack()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Jack choisi l'une des 3 actions restantes, pour cela, saisir le numero de l'action\",\"Jack a l'identite de \"+game.getJoueur2().getIdentiteJack().name());\r\n\t\t\t\t\tint jetonAction = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().refreshBoard(jetonAction,3);\r\n\t\t\t\t\ttour=tour+1;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Sherlock choisi l'une des 3 actions restantes, pour cela, saisir le numero de l'action\",\"\");\r\n\t\t\t\t\tint jetonAction = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().refreshBoard(jetonAction,3);\r\n\t\t\t\t\ttour=tour+1;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 3:\r\n\t\t\t\tif(game.getCurrentPlayer().getisJack()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Jack rechoisi l'une des 2 actions restantes, pour cela, saisir le numero de l'action\",\"Jack a l'identite de \"+game.getJoueur2().getIdentiteJack().name());\r\n\t\t\t\t\tint jetonAction = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().refreshBoard(jetonAction,3);\r\n\t\t\t\t\tgame.switchPlayer();\r\n\t\t\t\t\ttour=tour+1;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Sherlock rechoisi l'une des 2 actions restantes, pour cela, saisir le numero de l'action\",\"\");\r\n\t\t\t\t\tint jetonAction = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().refreshBoard(jetonAction,3);\r\n\t\t\t\t\tgame.switchPlayer();\r\n\t\t\t\t\ttour=tour+1;\r\n\t\t\t\t}\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 4:\r\n\t\t\t\tif(game.getCurrentPlayer().getisJack()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Jack joue, pour cela, saisir le numero de la derniere action disponnible\",\"Jack a l'identite de \"+game.getJoueur2().getIdentiteJack().name());\r\n\t\t\t\t\tint jetonAction = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().refreshBoard(jetonAction,4);\r\n\t\t\t\t\tgame.switchPlayer();\r\n\t\t\t\t\ttour=tour+1;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Sherlock joue, pour cela, saisir le numero de la derniere action disponnible\",\"\");\r\n\t\t\t\t\tint jetonAction = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().refreshBoard(jetonAction,4);\r\n\t\t\t\t\tgame.switchPlayer();\r\n\t\t\t\t\ttour=tour+1;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tcase 5:\r\n\t\t\t\tif(game.getCurrentPlayer().getisJack()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tgame.getBoard().displayConsole(\"Deuxieme partie: Appel a temoin\",\"Jack a l'identite de \"+game.getJoueur2().getIdentiteJack().name());\r\n\t\t\t\t\tSystem.out.println(\"Jack est il visible: (1 - oui), (2 - non)\");\r\n\t\t\t\t\tint visible = scan.nextInt();\r\n\t\t\t\t\tgame.getBoard().updateTuiles(visible);\r\n\t\t\t\t\tswitch (visible) {\r\n\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\tSystem.out.println(\"Sherlock gagne le sablier de la manche\");\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\tSystem.out.println(\"Jack gagne le sablier de la manche\");\r\n\t\t\t\t\t\tgame.getJoueur2().setSablier(game.getJoueur2().getSablier()+1);\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\tdefault:\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\ttour = 1;\r\n\t\t\t\t\tgame.getBoard().setMancheCourante(game.getBoard().getMancheCourante()+1);\r\n\t\t\t\t\tgame.getBoard().updateDisplayConsole(game.getBoard().getMancheCourante());\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tgame.switchPlayer();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tbreak;\r\n\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t}",
"public void visMedlemskabsMenu ()\r\n {\r\n System.out.println(\"Du har valgt medlemskab.\");\r\n System.out.println(\"Hvad Oensker du at foretage dig?\");\r\n System.out.println(\"1: Oprette et nyt medlem\");\r\n System.out.println(\"2: Opdatere oplysninger paa et eksisterende medlem\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"static void menuPrincipal() {\n System.out.println(\n \"\\nPizzaria o Rato que Ri:\" + '\\n' +\n \"1 - Novo pedido\" + '\\n' +\n \"2 - Mostrar pedidos\" + '\\n' +\n \"3 - Alterar estado do pedido\" + '\\n' +\n \"9 - Sair\"\n );\n }",
"private static void menuno(int menuno2) {\n\t\t\r\n\t}",
"private static void MainMenuRec(){\n System.out.println(\"Choose one of the following:\");\n System.out.println(\"-----------------------------\");\n System.out.println(\"1. Book room\");\n System.out.println(\"2. Check-out\");\n System.out.println(\"3. See room list\");\n System.out.println(\"4. Create a new available room\");\n System.out.println(\"5. Delete a room\");\n System.out.println(\"6. Make a room unavailable\");\n System.out.println(\"7. Make a (unavailable) room available\");\n System.out.println(\"8. Back to main menu\");\n System.out.println(\"-----------------------------\");\n }",
"public int menu(){\n System.out.println(\"Elija una opción:\");\n\t\tSystem.out.println(\"1. Registrar un nuevo carro\");//Le damos todas las opciones disponibles\n\t\tSystem.out.println(\"2. Eliminar un carro del registro\");\n\t\tSystem.out.println(\"3. Mostrar espacios disponibles\");\n System.out.println(\"4. Mostrar el registro completo\");\n System.out.println(\"5. Mostrar las estadisticas del parqueo\");\n System.out.println(\"6. Agregar mas espacios de parqueo\");\n System.out.println(\"7. Salir/n/n\");\n\n boolean paso = false;\n int option = 0;\n while (paso == false){//Aplicamos un metodo para que escriba el \n try {\n String optionString = scan.nextLine();//Recibimos el valor como String para evitar un bug con el metodo nextLine()\n option = Integer.parseInt(optionString);//Lo cambiamos a int\n paso = true;\n } catch (Exception e) {\n System.out.println(\"Ingrese un valor correcto, por favor\");\n }\n }\n return option;//regresamos el valor convertido\n }",
"public static void menu() {\n\t\tRaton ratones[] = new Raton[3];\n\t\tTeclado teclados[] = new Teclado[3];\n\t\tMonitor monitores[] = new Monitor[3];\n\t\tString[] computadoras = {\"Windows\",\"Linux\",\"Mac\"};\n\t\t\n\t\t// Cargamos los arrays mediante metodos\n\t\tratones = cargaRatones();\n\t\tteclados = cargaTeclados();\n\t\tmonitores = cargaMonitores();\n\t\t\n\t\t// Creamos variables para las opciones seleccionadas\n\t\tOrden orden = new Orden();\n\t\tint opRaton = 1;\n\t\tint opTeclado = 1;\n\t\tint opMonitor = 1;\n\t\tint opComputadora = 1;\n\t\tint opcion = 1;\n\t\tboolean repetir = true; // Variable para repetir la seleccion en caso de excepcion\n\t\t\n\t\t// Bucle menu\n\t\tdo {\n\t\t\tSystem.out.println(\"---- Carga de datos de Computadora ----\");\n\t\t\t// SELECCION DE RATON\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Raton: \");\n\t\t\t\tfor(int i=0; i<ratones.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+ratones[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topRaton = input.nextInt();\n\t\t\t\t\tif(opRaton>0 && opRaton<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE TECLADO\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Teclado: \");\n\t\t\t\tfor(int i=0; i<teclados.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+teclados[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topTeclado = input.nextInt();\n\t\t\t\t\tif(opTeclado>0 && opTeclado<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE MONITOR\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione Monitor: \");\n\t\t\t\tfor(int i=0; i<monitores.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+monitores[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topMonitor = input.nextInt();\n\t\t\t\t\tif(opMonitor>0 && opMonitor<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// SELECCION DE COMPUTADORA\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Seleccione una computadora:\");\n\t\t\t\tfor(int i=0 ; i<computadoras.length ; i++) { // Se recorre el array y muestra los datos como opciones\n\t\t\t\t\tSystem.out.println(\"\\t[\"+(i+1)+\". \"+computadoras[i]+\"]\");\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\topComputadora = input.nextInt();\n\t\t\t\t\tif(opComputadora>0 && opComputadora<=ratones.length) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t// Se crea la computadora y se agrega a la orden\n\t\t\tComputadora computadora = new Computadora(computadoras[opComputadora-1], monitores[opMonitor-1], teclados[opTeclado-1], ratones[opRaton-1]);\n\t\t\torden.agregarComputadora(computadora);\n\t\t\tSystem.out.println(\"Computadora agregada a la orden!!\");\n\t\t\t\n\t\t\t// OPCIONES PARA SEGUIR AGREGANDO COMPUTADORAS\n\t\t\trepetir = true; // La variable toma el valor de true antes de cada seleccion de opciones\n\t\t\twhile(repetir) { // While para repetir la pregunta en caso de excepcion o error\n\t\t\t\tSystem.out.println(\"Desea agregar otra computadora?: [1. Si] - [2. No]\");\n\t\t\t\ttry {\n\t\t\t\t\topcion = input.nextInt();\n\t\t\t\t\tif(opcion == 1 || opcion == 2) { // Si el numero ingresado esta fuera del rango se repite\n\t\t\t\t\t\trepetir = false;\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.println(\"Error, fuera de rango...\");\n\t\t\t\t\t}\n\t\t\t\t}catch(InputMismatchException e) { // Tira una excepcion si se ingresa un valor No numerico\n\t\t\t\t\tinput.nextLine();\n\t\t\t\t\tSystem.out.println(\"Error, Debe ingresar un numero...\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\\n\");\n\t\t\t\t\t\n\t\t}while(opcion == 1);\n\t\t\n\t\t// Muestra todas las computadoras de la orden\n\t\tSystem.out.println(\"====== Datos de la orden ======\");\n\t\torden.mostrarOrden();\n\t\t\n\t}",
"@Override\r\n public void actionPerformed(ActionEvent ae) {\r\n String option = ae.getActionCommand();\r\n PracticaProgramacion3Swing.log.append(ae.getActionCommand()+\"\\n\");\r\n switch(option){\r\n \r\n case \"Crear txt\":\r\n \r\n FuncionesMenus.newFile();\r\n FuncionesMenus.listFiles(); \r\n break;\r\n \r\n case \"Crear bin\":\r\n FuncionesMenus.newFileBin();\r\n FuncionesMenus.listFiles(); \r\n break;\r\n \r\n case \"Eliminar txt\":\r\n case \"Eliminar bin\": \r\n FuncionesMenus.delFile();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n case \"Renombrar txt\":\r\n case \"Renombrar bin\":\r\n FuncionesMenus.renameFile();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n case \"Escribir dni\":\r\n FuncionesMenus.writeLine();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Escribir DNI\":\r\n FuncionesMenus.writeLineBin();\r\n FuncionesMenus.listFiles();\r\n \r\n case \"Buscar dni\":\r\n FuncionesMenus.getID();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n case \"Buscar DNI\":\r\n FuncionesMenus.getIDBin();\r\n FuncionesMenus.listFiles();\r\n \r\n case \"Eliminar dni\":\r\n FuncionesMenus.delLine();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Eliminar DNI\":\r\n FuncionesMenus.delLineBin();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Extraer ficheros\": \r\n FuncionesMenus.getFiles();\r\n FuncionesMenus.listFiles();\r\n break;\r\n case \"Almacenar\":\r\n FuncionesMenus.getAll();\r\n FuncionesMenus.listFiles();\r\n break;\r\n \r\n default:\r\n break;\r\n } \r\n }",
"public static void WriteMainMenu(){\r\n System.out.println(\"\\n=================Welcome to McDonalds=================\");\r\n System.out.println(\"1. Take Order \\n2. Edit McDonalds Menu \\n3. Exit application \");\r\n }",
"public static void main(String[] args) {\n int opcion,opcion1, opcion2, opcion3;\n ArrayList menu = new ArrayList();\n\n menu.add(\"Informes...\");//1\n menu.add(\"Altas...\");//2\n menu.add(\"Puntuaciones...\");//2\n\n ArrayList subMenuListados = new ArrayList();\n\n subMenuListados.add(\"Listado completo de Peliculas por << Título >>.\");\n subMenuListados.add(\"Listado completo de Péliculas por << Género >>.\");\n\n subMenuListados.add(\"Listado de Péliculas de un << Director >>.\");//2.3\n subMenuListados.add(\"Listado de Péliculas de un << Género >>.\");//2.3\n \n ArrayList subMenuAltas = new ArrayList();\n subMenuAltas.add(\"Alta Péliculas.\");//3\n subMenuAltas.add(\"Alta Usuarios.\");//3 \n \n ArrayList subMenuPuntuaciones = new ArrayList();\n subMenuPuntuaciones.add(\"Puntuar una Pélicula...\");//8\n subMenuPuntuaciones.add(\"Ver la puntuación media de una Pélicula...\");//9\n\n connMySql = new GestionaBd(\"mysql\",\"localhost\",\"scott\",\"scott\",\"tiger1\");\n \n cargaDatosBdMemoria();\n do {\n opcion = pintaMenu(\"Menú Principal...\",menu);\n\n switch (opcion) {\n case 1://1.MENU INFORMES\n opcion1 = pintaMenu(\"Submenú INFORMES...\",subMenuListados);\n while (opcion1 != subMenuListados.size() + 1) {\n\n switch (opcion1) {\n case 1://1.1 Pelis Titulo...\n System.out.println(\"Pelis Titulo...\");\n System.out.println(peliculasTitulo);\n break;\n case 2://1.1 Pelis Genero...\n System.out.println(\"Pelis Genero...\");\n System.out.println(peliculasGenero);\n break;\n case 3://1.1 Péliculas de un << Director >>\n System.out.println(\"Péliculas de un << Director >>\");\n String director;\n \n System.out.println(pelisDeUnDirector.keySet());\n director= ES.leeDeTeclado(\"Nombre del Director?\");\n \n while(!pelisDeUnDirector.containsKey(director)){\n ES.leeDeTeclado(\"Director Erroneo, prueba de nuevo...\");\n \n System.out.println(pelisDeUnDirector.keySet());\n director= ES.leeDeTeclado(\"Nombre del Director?\");\n }\n \n System.out.println(\"Lista de las peliculas del Director->\"+ director);\n \n System.out.println(pelisDeUnDirector.get(director));\n \n break;\n case 4://1.1 Péliculas de un << Genero >>\n System.out.println(\"Péliculas de un << Genero >>\");\n String generos=seleccionaPGAM(pelisDeUnGenero, \"Genero\");\n \n System.out.println(pelisDeUnGenero.get(generos));\n \n \n break;\n }\n opcion1 = pintaMenu(\"Submenu Listados\",subMenuListados);\n }//while \n\n break;\n\n case 2: //2.MENU ALTAS\n opcion2 = pintaMenu(\"Submenú ALTAS...\",subMenuAltas);\n\n while (opcion2 != subMenuAltas.size() + 1) {\n\n switch (opcion2) {\n case 1://2.1 \"Alta Péliculas.\"\n //Critobal...\n altaPelicula();\n \n break;\n\n case 2: //2.2 \"Alta Usuarios.\"\n Usuarios us=altaUsuario();\n listaDeUsuarios.put(us.getLogin(),us);\n break;\n \n }\n opcion2 = pintaMenu(\"Submenu Listados\",subMenuAltas);\n }//while\n break;\n case 3: //3. PUNTUACINES....\n\n opcion3 = pintaMenu(\" Submenu Puntuaciones \", subMenuPuntuaciones);\n\n while (opcion3 != subMenuPuntuaciones.size() + 1) {\n\n switch (opcion3) {\n\n case 1://3.1 Puntuar Peli\n puntuaciones();\n break;\n case 2://3.2 Ver Puntuacion Peli\n\n break;\n }\n opcion3 = pintaMenu(\"Submenu Notas...\",subMenuPuntuaciones);\n }//while\n\n break;\n \n default:\n if (opcion == menu.size() + 1) {\n System.out.println(\"Adios....\");\n }\n }//Switch..........\n\n } while (opcion != menu.size() + 1);\n }",
"private static void menu() {\n\t\tboolean finished = false;\n\t\tdo {\n\t\t\tSystem.out.println(\n\t\t\t\t\t\"If you would like to view a current the movies on the movie list, please type \\\"all\\\" \\nIf you would like to see a list of the initial possible categories, please type \\\"categories\\\" \\n\\nTo search for films by category, please type the category, now\\nTo exit the program, just type \\\"no\\\"\");\n\t\t\tString menAns = read.nextLine();\n\t\t\tif (menAns.equalsIgnoreCase(\"all\")) {\n\t\t\t\tlistFormat();\n\t\t\t} else if (menAns.equalsIgnoreCase(\"categories\") || menAns.equalsIgnoreCase(\"cats\")) {\n\t\t\t\tcatList();\n\t\t\t} else if (menAns.equalsIgnoreCase(\"no\")) {\n\t\t\t\tfinished = true;\n\t\t\t} else {\n\t\t\t\tseachCats(menAns);\n\t\t\t}\n\t\t} while (!finished);\n\n\t}",
"public static void menu() {\n\n\t\tSystem.out.println(\"\\n*** MENU ***: \");\n\t\tSystem.out.print(\"\\n1. Host current Date and Time\\n\" + \"2. Host uptime\\n\" + \"3. Host memory use\\n\"\n\t\t\t\t+ \"4. Host IPV4 socket connections\\n\" + \"5. Host current users\\n\" + \"6. Host running processes\\n\"\n\t\t\t\t+ \"7. Quit\\n\" + \"\\nSelect option: \");\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\ttry {\n\t\t\tmenuSelect = sc.nextInt();\n\t\t\tif (menuSelect < 1 || menuSelect > 7) {\n\t\t\t\tSystem.out.println(\"\\nUser invalid input, input number between 1 and 7\");\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"\\nUser invalid input, input number between 1 and 7\");\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\tswitch (menuSelect) {\n\t\tcase 1:\n\t\t\tSystem.out.println(\"Date Request from Client\");\n\t\t\tbreak;\n\t\tcase 2:\n\t\t\tSystem.out.println(\"Uptime Request from Client\");\n\t\t\tbreak;\n\t\tcase 3:\n\t\t\tSystem.out.println(\"Memory Use Request from Client\");\n\t\t\tbreak;\n\t\tcase 4:\n\t\t\tSystem.out.println(\"IPV4 Socket Connections Request from Client\");\n\t\t\tbreak;\n\t\tcase 5:\n\t\t\tSystem.out.println(\"Current Users Request from Client\");\n\t\t\tbreak;\n\t\tcase 6:\n\t\t\tSystem.out.println(\"Current OS Version Request from Client\");\n\t\t\tbreak;\n\t\tcase 7:\n\t\t\tSystem.out.println(\"Quit\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\tsc.close(); // close the Scanner object\n\t}",
"public static void main(String[] args) {\n\t\tScanner input = new Scanner(System.in);\n\t\t\n\t\tint menu;\n\t\t\n\t\tSystem.out.println(\"Volume dan Luas\");\n\t\t\n\t\tdo {\n\t\t\tSystem.out.println(\"\\nPerhitungan Ruang\");\n\t\t\tSystem.out.println(\"1. Kubus\");\n\t\t\tSystem.out.println(\"2. Balok\");\n\t\t\tSystem.out.println(\"3. Tabung\");\n\t\t\tSystem.out.println(\"0. Exit\");\n\t\t\tSystem.out.print(\"Pilihan : \"); menu = input.nextInt();\n\t\t\t\n\t\t\tswitch (menu) {\n\t\t\tcase 1:\n\t\t\t\tKubus kubus = new Kubus();\n\t\t\t\t\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tcase 2:\n\t\t\t\tBalok balok = new Balok();\n\t\t\t\t\n\t\t\t\tbreak;\n\n\t\t\tcase 3:\n\t\t\t\tTabung tabung = new Tabung();\n\t\t\t\t\n\t\t\t\tbreak;\t\n\t\t\t\t\n\t\t\tdefault:\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t} while (menu != 0);\n\t}",
"public static void main(String[] args) {\n \r\n MenuPrincipal iniciar=new MenuPrincipal();\r\n iniciar.mostrarMenu();\r\n \r\n \r\n }",
"private void displayMenu()\r\n {\r\n System.out.println();\r\n System.out.println(\"--------- Main Menu -------------\");\r\n System.out.println(\"(1) Search Cars\");\r\n System.out.println(\"(2) Add Car\");\r\n System.out.println(\"(3) Delete Car\");\r\n System.out.println(\"(4) Exit System\");\r\n System.out.println(\"(5) Edit Cars\");\r\n }",
"private static void menu()\r\n\t{\r\n\t\tSystem.out.println(\"0. ** FOR INSTRUCTOR **\");\r\n\t\tSystem.out.println(\" Seed 5 URLs, set 3 keywords, creates 1000 Producers and 10 Consumers\");\r\n\t\tSystem.out.println();\r\n\t\tSystem.out.println(\"1. Add seed url\");\r\n\t\tSystem.out.println(\"2. Add consumer (Parser)\");\r\n\t\tSystem.out.println(\"3. Add producer (Fetcher)\");\r\n\t\tSystem.out.println(\"4. Add keyword search\");\r\n\t\tSystem.out.println(\"5. Print stats\");\r\n\t}",
"static void DisplayMainMenu()\n {\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Menu\");\n \tSystem.out.println(\"******\");\n \tSystem.out.println(\"Enter Selection\");\n \tSystem.out.println(\"1) Send Message\");\n \tSystem.out.println(\"2) Receive Message\");\n \tSystem.out.println(\"3) Run regression test\");\n }",
"public static void f_menu(){\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"-------------Soft_AVERAGE_HEIGHT-----------------\");\n System.out.println(\"-------------version 1.0 23-oct-2020------------\");\n System.out.println(\"-------------make by Esteban Gaona--------------\");\n System.out.println(\"-------------------------------------------------\");\n System.out.println(\"-------------------------------------------------\");\n}",
"private void jMenuItem13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem13ActionPerformed\n // TODO add your handling code here:\n Servicios.main(null); \n ;\n }",
"public static void main(String[] args) throws IOException {\n\n\n Menu.displayMenu();\n }",
"private static void menuOpciones() {\n // Hacemos un do para mostrar las opciones hasta que pulse la opción correcta\n int opcion;\n // Scanner nos sirve para analizar la entrada desde el teclado. Al usar new si estamos creando el objeto (lo veremos)\n Scanner in = new Scanner(System.in);\n\n System.out.println(\"Seleccione la opción\");\n System.out.println(\"1.- Cálculo de estadístcas de clase\");\n System.out.println(\"2.- Cálculo año bisiesto\");\n System.out.println(\"3.- Cálculo de Factorial\");\n System.out.println(\"4.- Primos Gemelos\");\n System.out.println(\"0.- Salir\");\n\n // Creamos un bucle do while y lo tenemos girando aquí hasta que meta estos valores\n // Pero sabemos que scanner va a \"petar\" si no le metemos algo que pueda hacer el casting\n // Ya lo solucionaremos\n do {\n System.out.println(\"Elija opción: \");\n opcion = in.nextInt();\n } while (opcion != 0 && opcion != 1 && opcion != 2 && opcion != 3 && opcion != 4);\n\n switch (opcion) {\n case 1:\n estadisticaClase();\n break;\n case 2:\n añoBisiesto();\n break;\n case 3:\n factorial();\n break;\n case 4:\n primosGemelos();\n break;\n case 0:\n despedida();\n break;\n // No hay default, porque por el do-while no puede llegar aquí con otro valor\n }\n\n // Y si queremos volver al menú cada vez que terminemos una opción?\n\n }",
"public static void actionMenu(int choice) {\n switch(choice) {\r\n case 1: \r\n \tPartie p = new Partie();\r\n \tp.lancerPartie();\r\n\r\n break;\r\n case 2:\r\n quit();\r\n break;\r\n default: //Si autre, alors on affiche un message d'erreur et on redemande un choix a l'utilisateur\r\n System.out.println(\"Valeur incorrecte\");\r\n actionMenu(afficherMenu());\r\n break;\r\n }\r\n }",
"private static void returnMenu() {\n\t\t\r\n\t}",
"private void displayMenu() {\n System.out.println(\"\\nSelect from:\");\n System.out.println(\"\\t1 -> add item to to-do list\");\n System.out.println(\"\\t2 -> remove item from to-do list\");\n System.out.println(\"\\t3 -> view to-do list\");\n System.out.println(\"\\t4 -> save work room to file\");\n System.out.println(\"\\t5 -> load work room from file\");\n System.out.println(\"\\t6 -> quit\");\n }",
"public void menuListados() {\n\t\tSystem.out.println(\"MENU LISTADOS\");\n\t\tSystem.out.println(\"1. Personas con la misma actividad\");\n\t\tSystem.out.println(\"2. Cantidad de personas con la misma actividad\");\n\t\tSystem.out.println(\"0. Salir\");\n\t}",
"static void mainmenu() {\n\t\t\n\t\tSystem.out.println(\"Welcome. This is a rogue-like text-based RPG game.\");\n\t\tEngine.sleep(1);\n\t\tSystem.out.println(\"You control your character by entering your desired action when prompted.\");\n\t\tEngine.sleep(1);\n\t\tSystem.out.println(\"Do you want to start your journey?\");\n\t\tSystem.out.println();\n\t\tSystem.out.println(\" y: yes \t\tn: no\t\t\");\n\t\tresponse = Engine.request();\n\t\tif(response == false) {\n\t\t\tSystem.out.println(\"W-What are you doing here then? If you're not here to play the game then what do you even want to do?\");\n\t\t\tSystem.out.println(\"To start, write \\\"Y\\\" or \\\"y\\\" in the console \");\n\t\t\tSystem.out.println(\"I won't ask again. Do you want to start your journey?\");\n\t\t\tresponse = Engine.request();\n\t\t\tif(response == false) {\n\t\t\t\tSystem.out.println(\"I am not here to judge your decision. Farewell.\");\n\t\t\t\tSystem.exit(1);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Glad you came to your senses.\");\t\t\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Very well.\");\n\t\t}\n\t\tSystem.out.println();\t\t\n\t\tif(Engine.devmode == true) System.out.println(\"\tDebug: StartMenu passed\");\n\t\t\n\t\t\t// Cadet dungeon check\n\t\tif(Progresslog.cadetplaytime < 3) {\n\t\t\tSystem.out.println(\"You seem to be new at the game. Would you like to play through a more tailored experience,\\n\"\n\t\t\t\t\t+ \"which is designed for inexperienced players and introduces you to the game's mechanics?\");\n\t\t\tif(Engine.devmode == true) System.out.println(\"Cadet playtime: \" + Progresslog.cadetplaytime);\n\t\t\tresponse = Engine.request();\n\t\t\tif(response == true) {\n\t\t\t\tSystem.out.println(\"Alright then.\");\n\t\t\t\tDungeoncadet();\n\t\t\t} else DungeonGen();\t\t\t\n\t\t} else DungeonGen();\t\t\n\t}",
"private void printMenu()\n {\n System.out.println(\"\");\n System.out.println(\"*** Salg ***\");\n System.out.println(\"(0) Tilbage\");\n System.out.println(\"(1) Opret\");\n System.out.println(\"(2) Find\");\n System.out.println(\"(3) Slet\");\n System.out.print(\"Valg: \");\n }",
"public void mainMenu() {\n\t\t// main menu\n\t\tdisplayOptions();\n\t\twhile (true) {\n\t\t\tString choice = ValidInputReader.getValidString(\n\t\t\t\t\t\"Main menu, enter your choice:\",\n\t\t\t\t\t\"^[aAcCrRpPeEqQ?]$\").toUpperCase();\n\t\t\tif (choice.equals(\"A\")) {\n\t\t\t\taddPollingPlace();\n\t\t\t} else if (choice.equals(\"C\")) {\n\t\t\t\tcloseElection();\n\t\t\t} else if (choice.equals(\"R\")) {\n\t\t\t\tresults();\n\t\t\t} else if (choice.equals(\"P\")) {\n\t\t\t\tperPollingPlaceResults();\n\t\t\t} else if (choice.equals(\"E\")) {\n\t\t\t\teliminate();\n\t\t\t} else if (choice.equals(\"?\")) {\n\t\t\t\tdisplayOptions();\n\t\t\t} else if (choice.equals(\"Q\")) {\n\t\t\t\tSystem.out.println(\"Goodbye.\");\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public static void menuPrincicipal() {\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| Elige una opcion |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 1-Modificar Orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 2-Eliminar orden |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 3-Ver todas las ordenes |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t\tSystem.out.println(\"| 0-Salir |\");\n\t\tSystem.out.println(\"+---------------------------+\");\n\t}",
"public static void imprimirMenu() {\r\n\tSystem.out.println(\"---------------------------menu---------------------------\");\r\n\tSystem.out.println(\"opciones: (ingrese como RF#)\");\r\n\tSystem.out.println(\"RF1: iniciar sesion \");\r\n System.out.println(\"RF2: registrarse al sistema\");\r\n\tSystem.out.println(\"RF3: Salir\");\r\n\t\r\n }",
"public void menu(){\n System.out.println(\"---------------------------Login------------------------------------\");\n \n System.out.println(\"Usuario:\");\n respuesta = scanner.nextLine();\n System.out.println(\"Contraseña:\");\n respuesta2 = scanner.nextLine();\n Usuario user = new Usuario();\n user.setNombre(respuesta);\n user.setPassword(respuesta2);\n idUser=modelo.validarUsuario(user);\n if(idUser<0){\n System.err.println(\"Usuario invalido\");\n \n }else{\n \n menuInterno();\n \n }\n//\n// menuInterno();\n// \n }",
"public static void main(String[] args){\n\n main_menu();\n\n }",
"public void visKontingenthaandteringMenu ()\r\n {\r\n System.out.println(\"Du har valgt kontingent.\");\r\n System.out.println(\"Hvad oensker du at foretage dig?\");\r\n System.out.println(\"1: Se priser\");\r\n System.out.println(\"2: Se medlemmer i restance\");\r\n System.out.println(\"0: Afslut\");\r\n\r\n }",
"public static void menu() {\n\t\tSystem.out.println(\"\\nPlease select which type of argument to generate by entering the associated number.\\n\");\n\t\tfor(int i = 0; i < type.length; i++) {\n\t\t\tSystem.out.println((i+1)+\". \"+type[i]);\n\t\t}\n\t\tSystem.out.println(\"8. Quit\");\n\t}",
"public void exibeMenu() {\n System.out.println(\"Digite o valor referente a operação desejada\");\r\n System.out.println(\"1. Busca Simples\");\r\n System.out.println(\"2. Busca Combinada\");\r\n System.out.println(\"3. Adicionar Personagem Manualmente\");\r\n System.out.println(\"4. Excluir Personagem\");\r\n System.out.println(\"5. Exibir Personagens\");\r\n int opcao = teclado.nextInt();\r\n if(opcao >= 7){\r\n do\r\n {\r\n System.out.println(\"Digite um numero valido\");\r\n opcao = teclado.nextInt();\r\n }while (opcao>=6);\r\n }\r\n ctrlPrincipal.opcaoMenu(opcao);\r\n }",
"public static void proManMain(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Create a new Project Manager Profile\");\n System.out.println(\"2 - Search for Project Manager Profile\\n\");\n\n System.out.println(\"0 - Continue\");\n }",
"public static void architectUpMenu(){\n\n //Displaying the menu options by using the system out method\n System.out.println(\"1 - Would you like to view all of the architects\");\n System.out.println(\"2 - Would you like to search for a architect's information\");\n System.out.println(\"3 - Adding a new architect's details\\n\");\n\n System.out.println(\"0 - Back to main menu\\n\");\n }",
"private static void menuProdutos() throws Exception {//Inicio menuProdutos\r\n byte opcao;\r\n boolean encerrarPrograma = false;\r\n do {\r\n System.out.println(\r\n \"\\n\\t*** MENU DE PRODUTOS ***\\n\"\r\n + \"0 - Adicionar produto\\n\"\r\n + \"1 - Remover produto\\n\"\r\n + \"2 - Alterar produto\\n\"\r\n + \"3 - Consultar produto\\n\"\r\n + \"4 - Listar produtos cadastrados\\n\"\r\n + \"5 - Sair\"\r\n );\r\n System.out.print(\"Digite a opção: \");\r\n opcao = read.nextByte();\r\n System.out.println();\r\n switch (opcao) {\r\n case 0:\r\n adicionarProduto();\r\n break;\r\n case 1:\r\n removerProduto();\r\n break;\r\n case 2:\r\n alterarProduto();\r\n break;\r\n case 3:\r\n consultaProduto();\r\n break;\r\n case 4:\r\n listaProdutosCadastrados();\r\n break;\r\n case 5:\r\n encerrarPrograma = true;\r\n break;\r\n default:\r\n System.out.println(\"Opcao invalida!\\n\");\r\n Thread.sleep(1000);\r\n break;\r\n }\r\n } while (!encerrarPrograma);\r\n }",
"public static void main_menu(){\n\n String command;\n\n do {\n\n System.out.println(\"Main Menu\");\n System.out.println(\"(A) \\t Add Applicant\");\n System.out.println(\"(R) \\t Remove Applicant\");\n System.out.println(\"(G) \\t Get Applicant\");\n System.out.println(\"(P) \\t Print List\");\n System.out.println(\"(RS) \\t Refine Search\");\n System.out.println(\"(S) \\t Size\");\n System.out.println(\"(D) \\t Backup\");\n System.out.println(\"(CB) \\t Compare Backup\");\n System.out.println(\"(RB) \\t Revert Backup\");\n System.out.println(\"(Q) \\t Quit\");\n\n\n //Scanner input = new Scanner(System.in);\n\n System.out.println(\"Please enter a command: \");\n command = input.nextLine().toUpperCase();\n\n switch (command){\n case \"A\" :\n main_addApplicant();\n break;\n case \"R\":\n main_removeApplicant();\n break;\n case \"G\" :\n main_getApplicant();\n break;\n case \"P\" :\n main_printList();\n break;\n case \"RS\":\n main_refineSearch();\n break;\n case \"S\" :\n main_getSize();\n break;\n case \"D\" :\n main_backup();\n break;\n case \"CB\" :\n main_compareBackup();\n break;\n case \"RB\" :\n main_revertBackup();\n break;\n case \"Q\" :\n System.exit(0);\n break;\n default:\n System.out.println(\"Invalid choice. Try again.\");\n //main_menu();\n\n }\n\n }\n while(!command.equalsIgnoreCase(\"Q\"));\n\n input.close();\n }",
"public static void main(String[] args) {\n System.out.println(\"\\t\\t____________________________________\"); \r\n System.out.println(\"\\t\\t| |\");\r\n System.out.println(\"\\t\\t| Maintain Delivery man module |\");\r\n System.out.println(\"\\t\\t|____________________________________|\\n\\n\");\r\n mainMenu(); //call main menu \r\n }",
"private void displayMenu() {\r\n System.out.println(\"\\nSelect an option from below:\");\r\n System.out.println(\"\\t1. View current listings\");\r\n System.out.println(\"\\t2. List your vehicle\");\r\n System.out.println(\"\\t3. Remove your listing\");\r\n System.out.println(\"\\t4. Check if you won bid\");\r\n System.out.println(\"\\t5. Save listings file\");\r\n System.out.println(\"\\t6. Exit application\");\r\n\r\n }",
"public void componentesimplementacionIsmael() {\n\t\t// En el menu bar Ismael\n\t\tmenuIsmael = new JMenu(\"Ismael\");\n\t\tmenuBar.add(menuIsmael);\n\n\t\t// SUBMENU\n\t\tsubMenuRecientes = new JMenu(\"Recientes\");\n\t\titemSubMenuRecientes = new ArrayList<>();\n\t\trutasRecientes = new ArrayList<>();\n\t\ttry {\n\t\t\trutasRecientes = manejadorFichero.obtenerLineasDelFichero();\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\tif (!rutasRecientes.isEmpty()) {\n\t\t\tfor (int i = 0; i < rutasRecientes.size(); i++) {\n\t\t\t\tJMenuItem textoSubmenu = new JMenuItem(rutasRecientes.get(i));\n\t\t\t\titemSubMenuRecientes.add(textoSubmenu);\n\t\t\t\tsubMenuRecientes.add(textoSubmenu);\n\t\t\t}\n\t\t}\n\t\tmenuIsmael.add(subMenuRecientes);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\t// Fuente\n\t\titemFuente = new JMenuItem(\"Fuente\");\n\t\titemFuente.setEnabled(false);\n\t\titemFuente.setMnemonic(KeyEvent.VK_F);\n\t\titemFuente.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemFuente);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemSeleccionarTodo = new JMenuItem(\"Selec.Todo\");\n\t\titemSeleccionarTodo.setEnabled(false);\n\t\titemSeleccionarTodo.setMnemonic(KeyEvent.VK_N);\n\t\titemSeleccionarTodo.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodo);\n\n\t\titemSeleccionarTodoYCopiar = new JMenuItem(\"Selec All+Copy\");\n\t\titemSeleccionarTodoYCopiar.setEnabled(false);\n\t\titemSeleccionarTodoYCopiar.setMnemonic(KeyEvent.VK_M);\n\t\titemSeleccionarTodoYCopiar.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemSeleccionarTodoYCopiar);\n\n\t\tmenuIsmael.addSeparator();\n\n\t\titemHora = new JMenuItem(\"Hora\");\n\t\titemHora.setEnabled(true);\n\t\titemHora.setMnemonic(KeyEvent.VK_H);\n\t\titemHora.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.CTRL_MASK));\n\t\tmenuIsmael.add(itemHora);\n\n\t}",
"private void mainMenuDetails() {\r\n try {\r\n System.out.println(\"Enter your choice:\");\r\n int menuOption = option.nextInt();\r\n switch (menuOption) {\r\n case 1:\r\n showFullMenu();\r\n break;\r\n case 2:\r\n empLogin();\r\n break;\r\n case 3:\r\n venLogin();\r\n // sub menu should not be this\r\n break;\r\n case 4:\r\n Runtime.getRuntime().halt(0);\r\n default:\r\n System.out.println(\"Choose either 1,2,3\");\r\n }\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"enter a valid value\");\r\n }\r\n option.nextLine();\r\n mainMenu();\r\n }",
"@Override\r\n\tpublic void actionPerformed(ActionEvent e)\r\n\t{\r\n\t\t\r\n\t\t if (e.getActionCommand().equals(\"Retour\")) {\r\n\t\t\t this.choixMenu = 1;\r\n\t\t }\r\n\r\n\t\t else if (e.getActionCommand().equals(\"Deplacement\")) {\r\n\t\t\t this.choixMenu = 4;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Fin du tour\")) {\r\n\t\t\t this.finDuTour = true; \r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Attaque\")) {\r\n\t\t\t this.choixMenu = 2;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Quitter\")) {\r\n\t\t\t System.exit(0);\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Haut\")) {\r\n\t\t this.choixMouvement = 1;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Gauche\")) {\r\n\t\t\t this.choixMouvement = 2;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Bas\")) {\r\n\t\t\t this.choixMouvement = 3;\r\n\t\t }\r\n\t\t \r\n\t\t else if (e.getActionCommand().equals(\"Droite\")) {\r\n\t\t\t this.choixMouvement = 4;\r\n\t\t }\r\n\t\t \r\n\t\t else\r\n\t\t {\r\n\t\t\t int numComp;\r\n\t\t\t int numMonstre;\r\n\t\t\t for(numComp = 0;numComp<this.competences.length;numComp++)\r\n\t\t\t {\r\n\t\t\t\t if(e.getActionCommand().equals(this.competences[numComp].getNom()))\r\n\t\t\t\t {\r\n\t\t\t\t\t this.choixCompetence = numComp;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t \r\n\t\t\t for(numMonstre = 0;numMonstre<this.monstres.length;numMonstre++)\r\n\t\t\t {\r\n\t\t\t\t if(e.getActionCommand().equals(this.monstres[numMonstre].getNom()))\r\n\t\t\t\t {\r\n\t\t\t\t\t this.choixMonstre = numMonstre;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t for(numMonstre = 0;numMonstre<this.monstres.length;numMonstre++)\r\n\t\t\t {\r\n\t\t\t\t if(e.getActionCommand().equals(\"Info \" + this.monstres[numMonstre].getNom()))\r\n\t\t\t\t {\r\n\t\t\t\t\t this.choixMonstreAAfficher = numMonstre;\r\n\t\t\t\t }\r\n\t\t\t }\r\n\t\t }\r\n\t\t \r\n\t\t \r\n\t}",
"private void displayMenu()\r\n {\r\n System.out.println(\"\\nWelcome to Car Park System\");\r\n System.out.println(\"=============================\");\r\n System.out.println(\"(1)Add a Slot \");\r\n System.out.println(\"(2)Delete a Slot\");\r\n System.out.println(\"(3)List all Slots\");\r\n System.out.println(\"(4)Park a Car\");\r\n System.out.println(\"(5)Find a Car \");\r\n System.out.println(\"(6)Remove a Car\");\r\n System.out.println(\"(7)Exit \");\r\n System.out.println(\"\\nSelect an Option: \");\r\n }",
"public void projectManagerMenu() throws IOException, ClassNotFoundException {\n int choice;\n do {\n System.out.println(Constraint.ANSI_BLUE + \"\\n*** Project Manager Menu ***\\n\" + Constraint.ANSI_RESET +\n \"1. Set all Constraints & weightage\\n\" +\n \"2. Display Current Constraint\\n\" +\n \"3. Enter Personality of students\\n\" +\n \"4. Change Sign up status\\n\" +\n \"5. Discard Unpopular projects\\n\" +\n \"6. Display all projects\\n\" +\n \"7. Run Project Team formation\\n\" +\n \"8. Display Teams and their fitness\\n\" +\n \"9. Swap team members\\n\" +\n \"10. Logout\");\n choice = InputTools.intChecker(1, 10);\n\n Constraint constraint = new Constraint();\n\n switch (choice) {\n case 1:\n constraint.setAllConstraints();\n break;\n\n case 2:\n constraint.displayConstraints();\n break;\n\n case 3:\n enterStudentPersonalities();\n break;\n\n case 4:\n setSignUpStatus();\n break;\n\n case 5:\n try {\n Project.discardUnpopularProjects();\n } catch (ProjectMismatchException e) {\n e.getMessage();\n }\n break;\n\n case 6:\n displayAllProjects();\n break;\n\n case 7:\n if (projectsDiscarded == true) {\n if (Constraint.allSoftConstraints.isEmpty() == false) {\n createTeams();\n } else {\n System.out.println(\"\\n\\n You need to set weightage of constraints first.\");\n }\n }\n else\n System.out.println(\"\\n\\n You need to discard unpopular projects before creating teams.\");\n break;\n\n case 8:\n displayTeams();\n break;\n\n case 9:\n swapTeamMembers();\n break;\n\n case 10:\n mainMenu();\n break;\n }\n } while (choice != 10);\n }",
"public static void MenuPrincipal() {\n System.out.println(\"Ingrese Opcion deseada :.\\n\"\r\n + \"1. Ingresar un perro a la guardería.\\n\"\r\n + \"2. Contar cuántos Perros de la raza y el Genero deceado hay o pasaron por la guardería durante el verano.\\n\"\r\n + \"3. Listar todos los perros (con su respectiva información) que ingresaron en una determinada fecha.\\n\"\r\n + \"4. Listar todos los Perrros de la Raza que decea con estadía mayor a 20 días.\\n\"\r\n + \"5. Dado el código de un perro, informar los datos de su dueño.\\n\"\r\n + \"6. Terminar.\\n\"\r\n +\"______________________________________________________________________________________________________________\"\r\n \r\n );\r\n\r\n }",
"private void mainMenuDetails() {\n try {\n System.out.println(\"Enter your choice:\");\n final int menuOption = option.nextInt();\n switch (menuOption) {\n case 1:\n showFullMenu();\n break;\n case 2:\n acceptRejectResponse();\n break;\n case 3:\n placeOrder();\n break;\n case 4:\n showFullOrder();\n break;\n case 5:\n Runtime.getRuntime().halt(0);\n default:\n System.out.println(\"Choose either 1 or 2\");\n }\n } catch (final Exception e) {\n e.printStackTrace();\n System.out.println(\"enter a valid value\");\n }\n option.nextLine();\n mainMenu();\n }",
"public static void startMenu() {\n\t\tSystem.out.println(\"|**********************************|\");\n\t\tSystem.out.println(\"| |\");\n\t\tSystem.out.println(\"| Welcome to the Anny BankingApp! |\");\n\t\tSystem.out.println(\"| |\");\n\t\tSystem.out.println(\"************************************\");\n\n\t\tSystem.out.println(\"Please select your option:\");\n\t\tSystem.out.println(\"\\t[c]reate a new Account\");\n\t\tSystem.out.println(\"\\t[l]ogin to Your Account!\");\n\t\tSystem.out.println(\"\\t[a]dmin Menu\");\n\t\tSystem.out.println(\"\\t[e]mployee Menu\");\n\t\tSystem.out.println(\"\\t[o]Log Out\");\n\n\t\t//create variable to grab the input\n\t\tString option =scan.nextLine();\n\n\n\t\t//this switch case will based on chioce the users made////can be lowercase or uppercase letter\n\n\t\tswitch(option.toLowerCase()) {\n\t\tcase \"c\":\n\t\t\tcreateNewAccount();\n\t\t\tbreak;\n\t\tcase \"l\":\n\t\t\tloginToAccount();\n\t\t\t\n\t\t\tbreak;\n\t\tcase \"a\":\n\t\t\tadminMenu();\n\t\t\tbreak;\n\t\tcase \"e\":\n\t\t\temployeeMenu();\n\t\t\tbreak;\n\t\tcase \"o\":\n\t\t\tSystem.out.println(\"You Successfully logged out, back to main menu!!!\");\n\t\t\tstartMenu();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tSystem.out.println(\"Try again\");\n\t\t\tstartMenu();//Return to startmenu if choice not match\n\t\t\tbreak;\n\t\t}\n\n\t}",
"public static void readMenu(){\n\t\tSystem.out.println(\"Menu....\");\n\t\tSystem.out.println(\"=====================\");\n\t\tSystem.out.println(\"1. Book A Ticket\\t2. See Settings\\n3. Withdraw\\t4. Deposit\");\n\n\t}",
"public void mainMenuOption() {\n\t\tScanner keyboard = new Scanner( System.in );\n\t\t\n\t\tfirstMenu();\n\t\t\n\t\tString input = keyboard.nextLine();\n\t\twhile(input != \"0\"){\n\t\t\t\n\t\t\t switch(input){\n\t case \"0\" : System.out.println(\"You close the App\"); \n\t \t\t\tSystem.exit(0);\n\t break;\n\t \n\t case \"1\" : IdentityMenu();\n\t break;\n\t \n\t case \"2\" : AddressMenu();\n\t \tbreak;\n\t \n\t default :\tSystem.out.println(\"Invalid selection\"); \n\t \t\t\tmainMenuOption();\n\t break;\t\n\t \n\t\t\t }\n\t\t break;\n\t\t}\n\t}",
"protected static void launchingMainMenu(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.print(\"\\n\\nSelect an option from the Menu.\\n\" +\n \"\\tC : To CONTINUE the Program (Run MongoDB MANUALLY beforeHand) \\n\" +\n \"\\tQ : To Quit the program\\n\" +\n \"\\n\\nEnter option letter to proceed : \");\n String text = formattingWhitespace(sc.nextLine());\n if (text.equalsIgnoreCase(\"c\")) {\n // Reading the Database from Train Booking to get the Waiting room.\n TrainStation.setWaitingRoom();\n // Running the program.\n GUI.main(args);\n } else if (text.equalsIgnoreCase(\"Q\")){\n System.out.println(\"Exiting program.\");\n } else {\n System.out.println(\"Error - Invalid Input.\\n\");\n launchingMainMenu(args);\n }\n }"
] |
[
"0.7756866",
"0.76241624",
"0.76035786",
"0.75910467",
"0.7562533",
"0.75537765",
"0.75395775",
"0.75358343",
"0.75315243",
"0.74085647",
"0.73516375",
"0.73405576",
"0.73343986",
"0.7327791",
"0.7311163",
"0.7308608",
"0.7308456",
"0.7300034",
"0.7294772",
"0.7293135",
"0.727324",
"0.72357136",
"0.72238",
"0.72237766",
"0.72166634",
"0.7208413",
"0.71972406",
"0.7175438",
"0.7166023",
"0.715958",
"0.71518093",
"0.71508396",
"0.71408725",
"0.7117877",
"0.7100853",
"0.7060789",
"0.7047016",
"0.7044091",
"0.7025773",
"0.70252675",
"0.7014761",
"0.70143455",
"0.70079076",
"0.700415",
"0.69915235",
"0.6979369",
"0.6975338",
"0.6931425",
"0.69144344",
"0.6912508",
"0.6912117",
"0.6905657",
"0.6904237",
"0.69028866",
"0.68945026",
"0.6893895",
"0.688651",
"0.6884217",
"0.68824744",
"0.6871496",
"0.6869802",
"0.68662256",
"0.686228",
"0.68551576",
"0.6854955",
"0.68537986",
"0.6850757",
"0.68448615",
"0.68444216",
"0.684065",
"0.6833869",
"0.68337685",
"0.68335783",
"0.683304",
"0.68272287",
"0.6827096",
"0.6826733",
"0.68201023",
"0.6819999",
"0.681256",
"0.6808502",
"0.6804427",
"0.6803451",
"0.6800208",
"0.6783653",
"0.67798156",
"0.6775275",
"0.6763843",
"0.6758467",
"0.6757479",
"0.6749229",
"0.6746589",
"0.6743707",
"0.67300075",
"0.6726042",
"0.6720138",
"0.67185014",
"0.67176145",
"0.67155266",
"0.6714603"
] |
0.80362034
|
0
|
Pyta uzytkownika o dane do zadania i dodaje je do kolejki
|
private static void addTask() {
Task task = new Task();
System.out.println("Podaj tytuł zadania");
task.setTitle(scanner.nextLine());
System.out.println("Podaj datę wykonania zadania (yyyy-mm-dd)");
while (true) {
try {
LocalDate parse = LocalDate.parse(scanner.nextLine(), DateTimeFormatter.ISO_LOCAL_DATE);
task.setExecuteDate(parse);
break;
} catch (DateTimeParseException e) {
System.out.println("Nieprawidłowy format daty. Spróbuj YYYY-MM-DD");
}
}
task.setCreationDate(LocalDate.now());
queue.offer(task);
System.out.println("tutuaj");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void zapisUrok() {\r\n\r\n\t\taktualnyZostatok = getZostatok() * urokovaSadzba / 100;\r\n\t\tsetVklad(aktualnyZostatok);\r\n\r\n\t}",
"public void ustawPojazdNaPoczatek()\n\t{\n\t\tSciezka pierwszaSc = droga.get(0);\n\t\tfinal double y = 10;\n\t\tpojazd.zmienPozycje(pierwszaSc.getCenterDownX(), y);\n\t}",
"private String vylozZvieraZVozidla() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz index zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Zivocich ziv = zoo.vylozZivocicha(pozicia-1);\r\n if (ziv == null) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n }\r\n zoo.pridajZivocicha(ziv);\r\n return \"Zviera \" + ziv\r\n + \"\\n\\tbolo vylozene z prepravneho vozidla\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nie je na vozidle\\n\\t\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }",
"private Zivocich vytvorZivocicha() {\r\n final String[] zFarba = {\"cervena\", \"zelena\", \"modra\", \"zlta\", \"zlto-zelena\"};\r\n Zivocich zviera = null;\r\n double kolkoVazi = 0.0;\r\n\r\n //-- Vygenerujeme zviera\r\n int vygenerovane = 1 + generator.nextInt(4); //cislo <1,4>\r\n\r\n switch (vygenerovane) {\r\n case 1: //blcha \r\n double kolkoDoskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n double kolkoVyskoci=3 * generator.nextDouble() ; //cislo <0;2.99>\r\n zviera=new Blcha(6,kolkoDoskoci,kolkoVyskoci);\r\n break;\r\n case 2: //simpanz\r\n kolkoVazi=3 + (97 * generator.nextDouble()); //cislo <3;99.9>\r\n boolean cviceny;\r\n cviceny=generator.nextBoolean(); \r\n zviera=new Simpanz(kolkoVazi,cviceny);\r\n break;\r\n case 3: //papagaj\r\n kolkoVazi = 0.1 + (5*generator.nextDouble()); // cislo <0.1; 6>\r\n String farba = zFarba[generator.nextInt(5)]; // farba zo zoznamu\r\n zviera = new Papagaj(\"Ara\", 2, kolkoVazi, farba); \r\n break;\r\n case 4: //slon\r\n kolkoVazi=20 + (480*generator.nextDouble()); //cislo <20;500> \r\n int pocet=generator.nextInt(50); //pocet zubov bude <0,49>\r\n zviera=new Slon(kolkoVazi,pocet);\r\n break;\r\n } //------------------------------------------------------------- switch --\r\n return zviera;\r\n }",
"public void Zabojstwa() {\n\t\tSystem.out.println(\"Zabojstwa\");\n\t\tfor(int i=0;i<Plansza.getNiebezpieczenstwoNaPlanszy().size();i++) {\n\t\t\tfor(GenerujNiebezpieczenstwo niebez : Plansza.getNiebezpieczenstwoNaPlanszy()) {\n\n\t\t\t\tif(niebez.getZabojca() instanceof DzikieZwierzeta) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getNiewolnikNaPLanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getNiewolnikNaPLanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getUbrania() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getNiewolnikNaPLanszy().getJedzenie() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(Plansza.getNiewolnikNaPLanszy().getUbrania() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(Plansza.getNiewolnikNaPLanszy().getJedzenie() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikNiebezpieczenstw(Plansza.getNiewolnikNaPLanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\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\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Bandyci) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getRzemieslnikNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getRzemieslnikNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getMaterialy() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getRzemieslnicySzansa()) {\n\t\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(Plansza.getRzemieslnikNaPlanszy().getMaterialy() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getRzemieslnikNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\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\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(niebez.getZabojca() instanceof Zlodzieje) {\n\t\t\t\t\tif(niebez.getXniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getXpolozenie() && niebez.getXniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getXpolozenie()) {\n\t\t\t\t\t\tif(niebez.getYniebezpieczenstwo()-1 <= Plansza.getArystokrataNaPlanszy().getYpolozenie() && niebez.getYniebezpieczenstwo()+1 >= Plansza.getArystokrataNaPlanszy().getYpolozenie()) {\n\t\t\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= niebez.getZabojca().ZmniejszIloscPopulacja() && Plansza.getArystokrataNaPlanszy().getZloto() >= niebez.getZabojca().ZmniejszIloscPopulacja()) {\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setTowary(Plansza.getArystokrataNaPlanszy().getTowary() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setZloto(Plansza.getArystokrataNaPlanszy().getZloto() - niebez.getZabojca().ZmniejszIloscPopulacja());\n\t\t\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikNiebezpieczenstw(Plansza.getArystokrataNaPlanszy().getLicznikNiebezpieczenstw()+1);\n\t\t\t\t\t\t\t\tPlansza.getNiebezpieczenstwoNaPlanszy().remove(niebez);\n\t\t\t\t\t\t\t\ti--;\n\t\t\t\t\t\t\t\tbreak;\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\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"private String nalozZvieraNaVozidlo() {\r\n if (zoo.getPracovneVozidlo() == null) {\r\n return \"Pracovne vozidlo nie je pristavene\";\r\n }\r\n\r\n Integer pozicia = MojeMetody.vlozInt(\"Vloz cislo zvierata\");\r\n if (pozicia == null) return \"\";\r\n\r\n try {\r\n Prepravitelny z = (Prepravitelny) zoo.getZvierataZOO(pozicia - 1);\r\n zoo.nalozZivocicha(z);\r\n zoo.odstranZivocicha(pozicia - 1);\r\n return \"Zviera \" + z + \"\\n\\tbolo nalozene na prepravne vozidlo\";\r\n } catch (ClassCastException exCC) {\r\n return \"Zviera c. \" + pozicia + \" nemozno prepravit\\n\\t\";\r\n } catch (NullPointerException exNP) {\r\n return \"Zviera c. \" + pozicia + \" nie je v ZOO\";\r\n } catch (Exception ex) {\r\n return \"Neznama chyba:\\n\\t\" + ex;\r\n }\r\n }",
"private void poczatkowe_zmienne()\n {\n konfiguracja.loadProperties();\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(\"predkosc_wroga\"));\n czas_watku=Integer.parseInt(konfiguracja.properties.getProperty(\"czas_watku\"));\n punkty_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(\"punkty_poziomu\"));\n zmienne_poziomu(poziom);\n }",
"public void zpracujObjednavky()\n\t{\n\t\tint idtmp = 0;\n\t\tfloat delkaCesty = 0;\n\t\t\n\t\tif (this.objednavky.isEmpty())\n\t\t{\n\t\t\treturn ;\n\t\t}\n\t\t\n\t\tNakladak nakl = (Nakladak) getVolneAuto();\n\t\t\n\t\tnakl.poloha[0] = this.poloha[0];\n\t\tnakl.poloha[1] = this.poloha[1];\n\t\tObjednavka ob = this.objednavky.remove();\n\n\t\t/*System.out.println();\n\t\tSystem.out.println(\"Objednavka hospody:\" + ob.id + \" se zpracuje pres trasu: \");\n\t\t */\n\t\tdelkaCesty += vyberCestu(this.id, ob.id, nakl);\n\t\t\n\t\twhile(nakl.pridejObjednavku(ob))\n\t\t{\n\t\t\tidtmp = ob.id;\n\t\t\t\n\t\t\tob = vyberObjednavku(ob.id);\n\t\t\tif (ob == null)\n\t\t\t{\n\t\t\t\tob=nakl.objednavky.getLast();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tobjednavky.remove(ob);\n\t\t\t\n\t\t\tdelkaCesty += vyberCestu(idtmp, ob.id, nakl);\n\t\t\t\n\t\t\tif((nakl.objem > 24)||(13-Simulator.getCas().hodina)*(nakl.RYCHLOST) + 100 < delkaCesty){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t/*\n\t\t\tif((Simulator.getCas().hodina > 12) && (delkaCesty > 80) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}\n\t\t\t\n\t\t\tif((Simulator.getCas().hodina > 9) && (delkaCesty > 130) ){\n\t\t\t\t//System.out.println(\"Nakladak ma \"+nakl.objem);\n\t\t\t\tnakl.kDispozici = false;\n\t\t\t\t//System.out.println(\"Auto jede \" + delkaCesty + \"km\");\n\t\t\t\tbreak;\t\t\n\t\t\t}*/\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t//cesta zpatky\n\t\tvyberCestu(ob.id, this.id, nakl);\n\t\tif (nakl.objem >= 1)\n\t\t{\n\t\t\tnakl.kDispozici = false;\n\t\t\tnakl.jede = true;\n\t\t\t//vytvoreni nove polozky seznamu pro statistiku\n\t\t\tnakl.novaStatCesta();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnakl.resetCesta();\n\t\t}\n\t}",
"void zmniejszBieg();",
"public void dodajZmijuPocetak() {\n\t\tthis.zmija.add(new Cvor(1,4));\n\t\tthis.zmija.add(new Cvor(1,3));\n\t\tthis.zmija.add(new Cvor(1,2));\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}",
"private void ucitajTestPodatke() {\n\t\tList<Integer> l1 = new ArrayList<Integer>();\n\n\t\tRestoran r1 = new Restoran(\"Palazzo Bianco\", \"Bulevar Cara Dušana 21\", KategorijeRestorana.PICERIJA, l1, l1);\n\t\tRestoran r2 = new Restoran(\"Ananda\", \"Petra Drapšina 51\", KategorijeRestorana.DOMACA, l1, l1);\n\t\tRestoran r3 = new Restoran(\"Dizni\", \"Bulevar cara Lazara 92\", KategorijeRestorana.POSLASTICARNICA, l1, l1);\n\n\t\tdodajRestoran(r1);\n\t\tdodajRestoran(r2);\n\t\tdodajRestoran(r3);\n\t}",
"public void pobierzukladprzegladRZiSBO() {\r\n if (uklad.getUklad() == null) {\r\n uklad = ukladBRDAO.findukladBRPodatnikRokPodstawowy(wpisView.getPodatnikObiekt(), wpisView.getRokWpisuSt());\r\n }\r\n List<PozycjaRZiSBilans> pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, \"\", \"r\");\r\n UkladBRBean.czyscPozycje(pozycje);\r\n rootProjektRZiS.getChildren().clear();\r\n List<StronaWiersza> zapisy = StronaWierszaBean.pobraniezapisowwynikoweBO(stronaWierszaDAO, wpisView);\r\n try {\r\n PozycjaRZiSFKBean.ustawRoota(rootProjektRZiS, pozycje, zapisy);\r\n level = PozycjaRZiSFKBean.ustawLevel(rootProjektRZiS, pozycje);\r\n Msg.msg(\"i\", \"Pobrano układ \");\r\n } catch (Exception e) {\r\n E.e(e);\r\n rootProjektRZiS.getChildren().clear();\r\n Msg.msg(\"e\", e.getLocalizedMessage());\r\n }\r\n }",
"public void obliczSzanseWykolejenia(Tramwaj tramwaj, Pogoda pogoda, Motorniczy motorniczy, Przystanek przystanek){\r\n RegulyWykolejen regulyWykolejen= new RegulyWykolejen();\r\n this.szansaWykolejenia = pogoda.getRyzyko() + przystanek.getStanTechnicznyPrzystanku() + tramwaj.getStanTechTramwaju() + regulyWykolejen.regulaWiek(motorniczy.getWiek()) + regulyWykolejen.regulaDoswiadczenie(motorniczy.getDoswiadczenie());\r\n }",
"public abstract String dohvatiKontakt();",
"public ECPunkt oblKluczaPublicznego()\n\t{\n\t\tkluczPubliczny = new ECPunkt( G.wielokrotnoscPunktu(G, new BigInteger(kluczPrywatny.toString()) ) );\n\t\treturn kluczPubliczny;\n\t}",
"private void zmienne_poziomu(int poziom)\n {\n liczba_zyc =Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc\"));\n liczba_naboi=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_naboi\"));\n liczba_zyc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_zyc_wroga\"));\n liczba_pilek=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_liczba_pilek\"));\n predkosc_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_predkosc_wroga\"));\n bonusy_poziomu=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_bonusy_poziomu\"));\n rozmiar_pilki=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_rozmiar_pilki\"));\n zmiana_ruchu_wroga=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_zmiana_ruchu_wroga\"));\n czas_gry=Integer.parseInt(konfiguracja.properties.getProperty(poziom+\"_czas_gry\"));\n }",
"public static void trazenjeVozila(Iznajmljivac o) {\n\t\tLocalDate pocetniDatum = UtillMethod.unosDatum(\"pocetni\");\n\t\tLocalDate krajnjiDatum = UtillMethod.unosDatum(\"krajnji\");\n\t\tSystem.out.println(\"------------------------------------\");\n\t\tSystem.out.println(\"Provera dostupnosti vozila u toku...\\n\");\n\t\tArrayList<Vozilo> dostupnaVoz = new ArrayList<Vozilo>();\n\t\tint i = 0;\n\t\tfor (Vozilo v : Main.getVozilaAll()) {\n\t\t\tif (!postojiLiRezervacija(v, pocetniDatum, krajnjiDatum) && !v.isVozObrisano()) {\n\t\t\t\tSystem.out.println(i + \"-\" + v.getVrstaVozila() + \"-\" + \"Registarski broj\" + \"-\" + v.getRegBR()\n\t\t\t\t\t\t+ \"-Potrosnja na 100km-\" + v.getPotrosnja100() + \"litara\");\n\t\t\t\ti++;\n\t\t\t\tdostupnaVoz.add(v);\n\t\t\t}\n\t\t}\n\t\tif (i > 0) {\n\t\t\tSystem.out.println(\"------------------------------------------------\");\n\t\t\tSystem.out.println(\"Ukucajte kilometrazu koju planirate da predjete:\");\n\t\t\tdouble km = UtillMethod.unesiteBroj();\n\t\t\tint km1 = (int) km;\n\t\t\tporedjenjeVozila d1 = new poredjenjeVozila(km1);\n\t\t\tCollections.sort(dostupnaVoz,d1);\n\t\t\tint e = 0;\n\t\t\tfor(Vozilo v : dostupnaVoz) {\n\t\t\t\tdouble temp = cenaTroskaVoz(v, km, v.getGorivaVozila().get(0));\n\t\t\t\tSystem.out.println(e + \" - \" + v.getVrstaVozila()+ \"-Registarski broj: \"+ v.getRegBR()+\" | \"+ \"Cena na dan:\"+v.getCenaDan() +\" | Broj sedista:\"+ v.getBrSedist()+ \" | Broj vrata:\"+ v.getBrVrata() + \"| Cena troskova puta:\" + temp + \" Dinara\");\n\t\t\t\te++;\n\t\t\t}\n\t\t\tSystem.out.println(\"---------------------------------------\");\n\t\t\tSystem.out.println(\"Unesite redni broj vozila kojeg zelite:\");\n\t\t\tint redniBroj = UtillMethod.unesiteInt();\n\t\t\tif (redniBroj < dostupnaVoz.size()) {\n\t\t\t\tDateTimeFormatter formatters = DateTimeFormatter.ofPattern(\"dd/MM/yyyy\");\n\t\t\t\tString pocetni = pocetniDatum.format(formatters);\n\t\t\t\tString krajnji = krajnjiDatum.format(formatters);\n\t\t\t\tdouble cena = UtillMethod.cenaIznaj(pocetniDatum, krajnjiDatum, dostupnaVoz.get(redniBroj));\n\t\t\t\tRezervacija novaRez = new Rezervacija(dostupnaVoz.get(redniBroj), o, cena, false, pocetni, krajnji);\n\t\t\t\tMain.getRezervacijeAll().add(novaRez);\n\t\t\t\tSystem.out.println(\"Uspesno ste napravili rezervaciju!\");\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t\tSystem.out.println(novaRez);\n\t\t\t\tSystem.out.println(\"---------------------------------\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"Uneli ste pogresan redni broj!\");\n\t\t\t}\n\t\t} else {\n\t\t\tSystem.out.println(\"Nema dostupnih vozila za rezervaaciju.\");\n\t\t}\n\t}",
"public int getPunktyZaZejscie() {\n return punktyZaZejscie;\n }",
"public static void main(String [] agrs){\n\r\n\r\n Kaczka gumowa = new GumowaKaczka();\r\n gumowa.ustawKwakanieInterfejs(2);\r\n gumowa.ustawLatanieInterfejs(new SzybkieLatanie());\r\n gumowa.wyswietl();\r\n System.out.println(gumowa.kwacz());\r\n System.out.println(gumowa.lec());\r\n Kaczka dzika = new DzikaKaczka();\r\n // dzika.ustawLatanieInterfejs(1);\r\n dzika.wyswietl();\r\n System.out.println(dzika.lec());\r\n System.out.println(dzika.kwacz());\r\n\r\n\r\n// Polecenie[] polecenieWlacz;\r\n// Polecenie[] polecanieWylacz;\r\n// Polecenie polecenieWycofaj;\r\n//\r\n// polecanieWylacz = new Polecenie[7];\r\n// polecenieWlacz = new Polecenie[7];\r\n//\r\n// Swiatlo swiatlo = new Swiatlo();\r\n// polecanieWylacz[0] = new PolecenieWylaczSwiatlo(swiatlo);\r\n// polecenieWlacz[0] = new PolecenieWlaczSwiatlo(swiatlo);\r\n//\r\n//\r\n//\r\n//\r\n// polecenieWlacz[0].wykonaj();\r\n// polecanieWylacz[0].wykonaj();\r\n// polecenieWlacz[0].wykonaj();\r\n// polecenieWycofaj = polecanieWylacz[0];\r\n//// polecenieWycofaj = polecenieWlacz[0];\r\n// polecenieWycofaj.wykonaj();\r\n// polecenieWycofaj.wykonaj();\r\n//// polecenieWycofaj.wycofaj();\r\n//\r\n// WiezaStereo wiezaStereo = new WiezaStereo();\r\n//\r\n// polecenieWlacz[1] = new PolecenieWiezaStereoWlaczCD(wiezaStereo);\r\n//\r\n// polecenieWlacz[1].wykonaj();\r\n\r\n\r\n\r\n }",
"public void realizacjap34() {\n System.out.println(\"REALIZACJA PUNKTU 3\\n\");\n\n System.out.println(\"\\nWyszukiwanie osob po imieniu (Piotr) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoImieniu(Listy.osoby, \"Piotr\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po nazwisku (Oleszczuk) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzOsobyPoNazwisku(Listy.osoby, \"Oleszczuk\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy mniejszym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyMniejszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy większym niz 10============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyWiekszymNiz(Listy.osoby, 10).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stazu pracy równym 5============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStazuPracyRownym(Listy.osoby, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin mniejszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachMniejszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin wiekszej niz 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachWiekszychNiz(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po liczbie nadgodzin równej 6 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoNadgodzinachRownych(Listy.osoby, 6).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji wiekszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiWiekszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji mniejszej niz 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiMniejszejNiz(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po pensji rownej 15000 ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoPensjiRownej(Listy.osoby, 15000).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie osob po stanowisku (Adiunkt) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzPracownikowPoStanowisku(Listy.osoby, \"Adiunkt\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studenta po numerze indeksu (123456) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzStudentaPoIndeksie(Listy.osoby, \"123456\"));\n\n System.out.println(\"\\nWyszukiwanie studentów po roku studiów (1) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoRokuStudiow(Listy.osoby, 1).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie studentów po kierunku (Informatyka Stosowana) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzStudentowPoKierunku(Listy.osoby, \"Informatyka Stosowana\").forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursu po nazwie (Analiza Matematyczna 1) ============================================================================\\n\");\n System.out.println(NarzedziaWyszukiwania.znajdzKursPoNazwie(Listy.kursy, \"Analiza Matematyczna 1\"));\n\n System.out.println(\"\\nWyszukiwanie kursów po liczbie ects (5) ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoECTS(Listy.kursy, 5).forEach(System.out::println);\n\n System.out.println(\"\\nWyszukiwanie kursów po prowadzacym+\"+Listy.osoby.get(0).getImie()+\" \"+Listy.osoby.get(0).getNazwisko()+\" ============================================================================\\n\");\n NarzedziaWyszukiwania.znajdzKursyPoProwadzacym(Listy.kursy, Listy.osoby.get(0)).forEach(System.out::println);\n\n\n //REALIZACJA PUNKTU 4\n System.out.println(\"=====================================================================================================================\");\n System.out.println(\"REALIZACJA PUNKTU 4\");\n System.out.println(\"=====================================================================================================================\\n\");\n System.out.println(\"Kursy:\\n\");\n for (Kurs kurs : Listy.kursy) {\n System.out.println(kurs.toString());\n }\n\n System.out.println(\"\\nOsoby:\\n\");\n for (Osoba osoba : Listy.osoby) {\n System.out.println(\"OSOBA====================================================================================================\");\n System.out.println(osoba.toString());\n System.out.println();\n }\n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tclass Ulamek{\r\n\t\t\tprivate int licznik, mianownik;\r\n\r\n\t\t\tpublic void ustawLicznik (int l){\r\n\t\t\t\tlicznik=l;\r\n\t\t\t}\r\n\t\t\tpublic void ustawMianownik (int m){\r\n\t\t\t\tmianownik=m;\r\n\t\t\t}\r\n\t\t\tpublic void ustawUlamek (int u1, int u2){\r\n\t\t\t\tlicznik=u1;\r\n\t\t\t\tmianownik=u2;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tpublic void wyswietl (){\r\n\t\t\t\t\r\n\t\t\t\tint przod, reszta, przod_dlugosc, mianownik_dlugosc, licznik_dlugosc;\r\n\t\t\t\tString przod_zamiana, mianownik_string, licznik_string;\r\n\t\t\t\tdouble wynik;\r\n\t\t\t\t\r\n\t\t\t\tif (mianownik!=0 && licznik !=0){\r\n\t\t\t\tprzod=licznik/mianownik;\r\n\t\t\t\treszta=licznik-(przod*mianownik);\r\n\t\t\t\tprzod_zamiana=\"\"+przod;\r\n\t\t\t\tprzod_dlugosc=przod_zamiana.length();\r\n\t\t\t\twynik=1.0*licznik/mianownik;\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t licznik++;\r\n\t\t\t\t\t}while (licznik!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(reszta);\r\n\t\t\t}\r\n\r\n\t\t\t\t//zamiana na stringa i liczenie\r\n\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t//brak calości\r\n\t\t\t\tif(przod==0){\r\n\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\r\n\r\n\t\t\t\tif(przod!=0){\r\n\t\t\t\tSystem.out.print(\" \"+przod+\" \");\r\n\t\t\t\tint licznik3 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik3++;\r\n\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t System.out.print(\" = \"+wynik);\r\n\r\n\t\t\t System.out.println();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(reszta!=0){\r\n\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\tint licznik2 = 0;\r\n\t\t\t\tdo{\r\n\t\t\t\t\tif(reszta!=0){\r\n\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t licznik2++;\r\n\t\t\t\t\t\r\n\t\t\t\t}while (licznik2!=przod_dlugosc);\r\n\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t System.out.println();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\t//jezeli blad \r\n\t\t\t\t\tmianownik_string=\"\"+mianownik;\r\n\t\t\t\t\tmianownik_dlugosc=mianownik_string.length();\r\n\t\t\t\t\tlicznik_string=\"\"+licznik;\r\n\t\t\t\t\tlicznik_dlugosc=licznik_string.length();\r\n\t\t\t\t\tif(licznik_dlugosc>mianownik_dlugosc){\r\n\t\t\t\t\t\tmianownik_dlugosc=licznik_dlugosc;\r\n\t\t\t\t\t}\r\n\t\t\t\t\t//gora\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t//if(licznik==0){\r\n\t\t\t\t\t//System.out.print(\" \");\r\n\t\t\t\t\t//}\r\n\r\n\t\t\t\t\tSystem.out.println(licznik);\r\n\t\t\t\t\t\r\n\t\t\t\t\t//srodek\r\n\t\t\t\t\tSystem.out.print(\" \"+\" \"+\" \");\r\n\t\t\t\t\t\r\n\t\t\t\t\tint licznik3 = 0;\r\n\t\t\t\t\tdo{\r\n\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t licznik3++;\r\n\t\t\t\t\t}while (licznik3!=mianownik_dlugosc);\r\n\t\t\t\t System.out.print(\" = \"+\"ERR\");\r\n\r\n\t\t\t\t System.out.println();\r\n\t\t\t\t\t\r\n\t\t\t\t //dol\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t\t\tSystem.out.println(mianownik);\r\n\t\t\t\t\t System.out.println();\r\n\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\t Ulamek u1=new Ulamek();\r\n\t\t Ulamek u2=new Ulamek();\r\n\r\n\t\t u1.ustawLicznik(3);\r\n\t\t u1.ustawMianownik(5);\r\n\r\n\t\t u2.ustawLicznik(142);\r\n\t\t u2.ustawMianownik(8);\r\n\r\n\t\t u1.wyswietl();\r\n\r\n\r\n\r\n\r\n\r\n\r\n\t\t \r\n\t\t u2.wyswietl();\r\n\r\n\r\n\r\n\r\n\t\t u2.ustawUlamek(100,0);\r\n\r\n\r\n\t\t u2.wyswietl();\r\n\r\n\t}",
"public void ZbierzTowaryKlas() {\n\t\tSystem.out.println(\"ZbierzTowaryKlas\");\n\t\tfor(int i=0;i<Plansza.getTowarNaPlanszy().size();i++) {\n\t\t\tfor(Towar towar : Plansza.getTowarNaPlanszy()) {\n\t\t\t\t\n\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getNiewolnikNaPLanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getNiewolnikNaPLanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getNiewolnikNaPLanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t//Szansa Niewolnika na zdobycie dwoch razy wiecej towarow\n\t\t\t\t\t\tif(GeneratorRandom.RandomOd0(101) <= ZapisOdczyt.getNiewolnicySzansa()) {\n\t\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getNiewolnikNaPLanszy().setLicznikTowarow(Plansza.getNiewolnikNaPLanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getRzemieslnikNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getRzemieslnikNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getRzemieslnikNaPlanszy().setLicznikTowarow(Plansza.getRzemieslnikNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getXpolozenie()-1 <= towar.getXtowar() && Plansza.getArystokrataNaPlanszy().getXpolozenie()+1 >= towar.getXtowar()) \n\t\t\t\t\tif(Plansza.getArystokrataNaPlanszy().getYpolozenie()-1 <= towar.getYtowar() && Plansza.getArystokrataNaPlanszy().getYpolozenie()+1 >= towar.getYtowar()) {\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().ZbieranieTowarow(towar);\n\t\t\t\t\t\tPlansza.getTowarNaPlanszy().remove(towar);\n\t\t\t\t\t\tPlansza.getArystokrataNaPlanszy().setLicznikTowarow(Plansza.getArystokrataNaPlanszy().getLicznikTowarow()+1);\n\t\t\t\t\t\ti--;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"static public void zapisz(String host){\n\n String daneWysyłane=\"oddaj=\";\n Wyp[] wyporzyczeniaDoZmiany=new Wyp[wyporzyczenia.size()];\n for(int i=0;i<wyporzyczenia.size();i++){\n Wyp el=wyporzyczenia.elements().nextElement();\n if(el.zmieniony){\n wyporzyczeniaDoZmiany[i]=el;\n daneWysyłane+=el.id+\"/\"+el.czasKoniec+\";\";\n\n }\n }\n daneWysyłane+=\"&dodaj=\";\n Wyp[] wyporzyczeniaDoDodania=new Wyp[wyporzyczenia.size()];\n for(int i=0;i<wyporzyczenia.size();i++){\n Wyp el=wyporzyczenia.elements().nextElement();\n if(el.dodany){\n wyporzyczeniaDoDodania[i]=el;\n daneWysyłane+=el.laptop.id+\"/\"+el.kto.id+\"/\"+el.czasStart()+\"/\"+el.czasKoniec()+\";\";\n\n }\n }\n URL u = null;\n try {\n u = new URL(\"http://\"+host+\"/zapisz.php\");\n HttpURLConnection con = (HttpURLConnection) u.openConnection();\n\n //add reuqest header\n con.setRequestMethod(\"POST\");\n con.setRequestProperty(\"User-Agent\", \"Android\");\n con.setRequestProperty(\"Accept-Language\", \"en-US,en;q=0.5\");\n\n\n // Send post request\n con.setDoOutput(true);\n DataOutputStream wr = new DataOutputStream(con.getOutputStream());\n wr.writeBytes(daneWysyłane);\n wr.flush();\n wr.close();\n\n int responseCode = con.getResponseCode();\n\n BufferedReader in = new BufferedReader(\n new InputStreamReader(con.getInputStream()));\n String inputLine;\n StringBuffer response = new StringBuffer();\n\n while ((inputLine = in.readLine()) != null) {\n response.append(inputLine);\n }\n in.close();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public String zwrocAdresSzablonu() {\r\n\t\treturn adresSzablonu;\r\n\t}",
"public boolean Wygrana() {\n\t\tSystem.out.println(\"Wygrana\");\n\t\tif(SprawdzanieWygranej.WygranaNiewolnikow()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getNiewolnikNaPLanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= Plansza.getArystokrataNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tif(SprawdzanieWygranej.WygranaRzemieslnikow()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getRzemieslnikNaPlanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= Plansza.getArystokrataNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getArystokrataNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\tif(SprawdzanieWygranej.WygranaArystokracji()) {\n\t\t\tZapisOdczyt.setWygranaKlasa(Plansza.getArystokrataNaPlanszy());\n\t\t\tZapisOdczyt.setWygranaKlasaPopulacja(Plansza.getArystokrataNaPlanszy().getPopulacja());\n\t\t\t\n\t\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= Plansza.getRzemieslnikNaPlanszy().getPopulacja()) {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t}\n\t\t\telse {\n\t\t\t\tZapisOdczyt.setMiejsce2(Plansza.getRzemieslnikNaPlanszy());\n\t\t\t\tZapisOdczyt.setMiejsce2Populacja(Plansza.getRzemieslnikNaPlanszy().getPopulacja());\n\t\t\t\tZapisOdczyt.setMiejsce3(Plansza.getNiewolnikNaPLanszy());\n\t\t\t\tZapisOdczyt.setMiejsce3Populacja(Plansza.getNiewolnikNaPLanszy().getPopulacja());\n\t\t\t}\n\t\t\t\n\t\t\treturn true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public AutomatZustand()\r\n\t{\r\n\t\tthis.ew_lokal = Automat.eingabewort;\r\n\t}",
"private String sprawdzRozszerzenie(String adresPliku) {\r\n\t\tString[] tablica = adresPliku.split(\"\\\\.\");\r\n\r\n\t\treturn tablica[tablica.length - 1];\r\n\t}",
"public int liczbaelnastosie() {\n\t\treturn 0;\n\t}",
"private int generujViacZvierat(int pocet){\r\n int poc = 0;\r\n for (int i = 0; i < pocet; i++) {\r\n if (zoo.pridajZivocicha(vytvorZivocicha())) poc++;\r\n }\r\n return poc;\r\n }",
"private void sonucYazdir() {\n\t\talinanPuan = (int)(((float)alinanPuan / (float)toplamPuan) * 100);\n\t\tSystem.out.println(\"\\nSınav Bitti..!\\n\" + soruSayisi + \" sorudan \" + dogruSayaci + \" tanesine\"\n\t\t\t\t\t\t+ \" doğru cevap verdiniz.\\nPuan: \" + alinanPuan + \"/\" + toplamPuan);\n\t}",
"public static void dodavanjePutnickogVozila() {\n\t\tString vrstaVozila = \"Putnicko Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja100 = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 10000;\n\t\tdouble cenaServisa = 8000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedist = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tPutnickoVozilo vozilo = new PutnickoVozilo(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja100, predjeno,\n\t\t\t\tpreServisa, cenaServisa, cenaDan, brSedist, brVrata, vozObrisano, servisiNadVozilom);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"---------------------------------------\");\n\t}",
"public void urciStupneVrcholu(){\n\t\tfor(int i = 0;i < vrchP.length; i++){\n\t\t\tstupenVrcholu(vrchP[i].klic);\n\t\t}\n\t}",
"public void ucitajPotez(Potez potez) {\n\t\tint red = potez.vratiRed();\n\t\tint kolona = potez.vratiKolonu();\n\t\ttabla[red][kolona] = potez.vratiRezultat();\n\n\t\tif (potez.vratiRezultat() == Polje1.potopljen) {\n\t\t\tint gornjiRed, gornjaKolona;\n\t\t\tboolean cont1 = false;\n\t\t\tboolean cont2 = false;\n\t\t\tboolean redar = false;\n\t\t\tboolean kolonar = false;\n\t\t\twhile (redar == false) {\n\t\t\t\tif (red == 0) {\n\t\t\t\t\tgornjiRed = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjiRed = red - 1;\n\t\t\t\t}\n\t\t\t\tif (red == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\tred--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjiRed++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[gornjiRed][kolona] == Polje1.pogodjen || tabla[gornjiRed][kolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[gornjiRed][kolona] = Polje1.potopljen;\n\t\t\t\t\t\tred++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tredar = true;\n\t\t\t}\n\t\t\tcont1 = false;\n\t\t\tcont2 = false;\n\t\t\tred = potez.vratiRed();\n\t\t\twhile (kolonar == false) {\n\t\t\t\tif (kolona == 0) {\n\t\t\t\t\tgornjaKolona = 0;\n\t\t\t\t\tcont1 = true;\n\t\t\t\t} else {\n\t\t\t\t\tgornjaKolona = kolona - 1;\n\t\t\t\t}\n\t\t\t\tif (kolona == 9) {\n\t\t\t\t\tcont2 = true;\n\t\t\t\t}\n\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen && cont1 == false) {\n\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\tkolona--;\n\t\t\t\t} else {\n\t\t\t\t\tcont1 = true;\n\t\t\t\t\tgornjaKolona++;\n\t\t\t\t}\n\t\t\t\tif (cont1 == true) {\n\t\t\t\t\tif (tabla[red][gornjaKolona] == Polje1.pogodjen || tabla[red][gornjaKolona] == Polje1.potopljen) {\n\t\t\t\t\t\ttabla[red][gornjaKolona] = Polje1.potopljen;\n\t\t\t\t\t\tkolona++;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tcont2 = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (cont1 == true && cont2 == true)\n\t\t\t\t\tkolonar = true;\n\n\t\t\t}\n\n\t\t}\n\n\n\t}",
"public void AwansSpoleczny() {\n\t\tSystem.out.println(\"AwansSpoleczny\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getNiewolnikNaPLanszy() instanceof Niewolnicy) {\n\t\t\tPlansza.setNiewolnikNaPlanszy(new Mieszczanie(Plansza.getNiewolnikNaPLanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getRzemieslnikNaPlanszy() instanceof Rzemieslnicy) {\n\t\t\tPlansza.setRzemieslnikNaPlanszy(new Handlarze(Plansza.getRzemieslnikNaPlanszy()));\n\t\t}\n\t\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getPopulacja() >= ZapisOdczyt.getPOPULACJAMAX()*0.67 && Plansza.getArystokrataNaPlanszy() instanceof Arystokracja) {\n\t\t\tPlansza.setArystokrataNaPlanszy(new Szlachta(Plansza.getArystokrataNaPlanszy()));\n\t\t}\n\t}",
"public int getZgrada() {\n return zgrada;\n }",
"public Tura() {\n\t\tLicznikTur = 0;\n\t}",
"public static int getLicznikTur() { return LicznikTur; }",
"static void cetak_data(String nama, int usia) {\n int tahun_sekarang = 2020, tahun_lahir = tahun_sekarang - usia;\r\n System.out.println(\"---------\\nNama Saya : \" + nama + \"\\nUsia Saya : \" + usia + \"\\nTahun Lahir : \" + tahun_lahir);\r\n }",
"@Test\n public void testAvaaRuutu() {\n int x = 0;\n int y = 0;\n Peli pjeli = new Peli(new Alue(3, 0));\n pjeli.avaaRuutu(x, y);\n ArrayList[] lista = pjeli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isAvattu());\n assertEquals(false, pjeli.isLahetetty());\n }",
"public static List<StronaWiersza> pobierzStronaWierszazBazy(StronaWiersza stronaWiersza, String wnma, StronaWierszaDAO stronaWierszaDAO, TransakcjaDAO transakcjaDAO) {\r\n List<StronaWiersza> listaStronaWierszazBazy =new ArrayList<>();\r\n// stare = pobiera tylko w walucie dokumentu rozliczeniowego \r\n// listaNowychRozrachunkow = stronaWierszaDAO.findStronaByKontoWnMaWaluta(stronaWiersza.getKonto(), stronaWiersza.getWiersz().getTabelanbp().getWaluta().getSymbolwaluty(), stronaWiersza.getWnma());\r\n// nowe pobiera wszystkie waluty \r\n listaStronaWierszazBazy = stronaWierszaDAO.findStronaByKontoWnMa(stronaWiersza.getKonto(), wnma);\r\n //stronaWierszaDAO.refresh(listaStronaWierszazBazy);\r\n if (listaStronaWierszazBazy != null && !listaStronaWierszazBazy.isEmpty()) {\r\n try {\r\n DateFormat formatter;\r\n formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n String datarozrachunku = null;\r\n if (stronaWiersza.getWiersz().getDataWalutyWiersza() != null) {\r\n datarozrachunku = stronaWiersza.getWiersz().getDokfk().getRok()+\"-\"+stronaWiersza.getWiersz().getDokfk().getMiesiac()+\"-\"+stronaWiersza.getWiersz().getDataWalutyWiersza();\r\n } else {\r\n datarozrachunku = stronaWiersza.getWiersz().getDokfk().getDatadokumentu();\r\n }\r\n Date dataR = formatter.parse(datarozrachunku);\r\n Iterator it = listaStronaWierszazBazy.iterator();\r\n while(it.hasNext()) {\r\n StronaWiersza stronaWierszaZbazy = (StronaWiersza) it.next();\r\n List<Transakcja> zachowaneTransakcje = transakcjaDAO.findByNowaTransakcja(stronaWierszaZbazy);\r\n for (Iterator<Transakcja> itx = stronaWierszaZbazy.getPlatnosci().iterator(); itx.hasNext();) {\r\n Transakcja transakcjazbazy = (Transakcja) itx.next();\r\n if (zachowaneTransakcje == null || zachowaneTransakcje.size() == 0) {\r\n itx.remove();\r\n } else if (!zachowaneTransakcje.contains(transakcjazbazy)) {\r\n itx.remove();\r\n }\r\n }\r\n for (Transakcja ta : zachowaneTransakcje) {\r\n if (!stronaWierszaZbazy.getPlatnosci().contains(ta)) {\r\n stronaWierszaZbazy.getPlatnosci().add(ta);\r\n }\r\n }\r\n if (Z.z(stronaWierszaZbazy.getPozostalo()) <= 0.0) {\r\n it.remove();\r\n } else {\r\n String dataplatnosci;\r\n if (stronaWierszaZbazy.getWiersz().getDataWalutyWiersza() != null) {\r\n dataplatnosci = stronaWierszaZbazy.getWiersz().getDokfk().getRok()+\"-\"+stronaWierszaZbazy.getWiersz().getDokfk().getMiesiac()+\"-\"+stronaWierszaZbazy.getWiersz().getDataWalutyWiersza();\r\n } else {\r\n dataplatnosci = stronaWierszaZbazy.getWiersz().getDokfk().getDatadokumentu();\r\n }\r\n Date dataP = formatter.parse(dataplatnosci);\r\n if (dataP.compareTo(dataR) > 0) {\r\n it.remove();\r\n }\r\n }\r\n }\r\n } catch (ParseException ex) {\r\n E.e(ex);\r\n }\r\n }\r\n List<StronaWiersza> stronywierszaBO = stronaWierszaDAO.findStronaByKontoWnMaBO(stronaWiersza.getKonto(), stronaWiersza.getWnma());\r\n if (stronywierszaBO != null && !stronywierszaBO.isEmpty()) {\r\n Iterator it = stronywierszaBO.iterator();\r\n while(it.hasNext()) {\r\n StronaWiersza p = (StronaWiersza) it.next();\r\n if (Z.z(p.getPozostalo()) <= 0.0) {\r\n it.remove();\r\n }\r\n }\r\n listaStronaWierszazBazy.addAll(stronywierszaBO);\r\n }\r\n if (listaStronaWierszazBazy == null) {\r\n return (new ArrayList<>());\r\n }\r\n return listaStronaWierszazBazy;\r\n //pobrano wiersze - a teraz z nich robie rozrachunki\r\n }",
"double kalkuliereZeit();",
"double objetosc() {\n return dlugosc * wysokosc * szerokosc; //zwraca obliczenie poza metode\r\n }",
"public void DaneStartowe() {\n\t\tSystem.out.println(\"DaneStartowe\");\n\t\tPlansza.getNiewolnikNaPLanszy().setJedzenie(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getNiewolnikNaPLanszy().setUbrania(ZapisOdczyt.getPopulacjaStartowaNiewolnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setMaterialy(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getRzemieslnikNaPlanszy().setNarzedzia(ZapisOdczyt.getPopulacjaStartowaRzemieslnicy());\n\t\tPlansza.getArystokrataNaPlanszy().setZloto((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t\tPlansza.getArystokrataNaPlanszy().setTowary((int) (ZapisOdczyt.getPopulacjaStartowaArystokracja() + ZapisOdczyt.getArystokracjaWiekszaPopulacja()*ZapisOdczyt.getPopulacjaStartowaArystokracja()*0.01));\n\t}",
"public void AktualizacjaPopulacjiKlas() {\n\t\tSystem.out.println(\"AktualizacjaPopulacjiKlas\");\n\t\tif(Plansza.getNiewolnikNaPLanszy().getJedzenie() >= Plansza.getNiewolnikNaPLanszy().getUbrania()) {\n\t\t\tPlansza.getNiewolnikNaPLanszy().setPopulacja(Plansza.getNiewolnikNaPLanszy().getUbrania());\n\t\t}\n\t\telse {\n\t\t\tPlansza.getNiewolnikNaPLanszy().setPopulacja(Plansza.getNiewolnikNaPLanszy().getJedzenie());\n\t\t}\n\t\t\n\t\tif(Plansza.getRzemieslnikNaPlanszy().getNarzedzia() >= Plansza.getRzemieslnikNaPlanszy().getMaterialy()) {\n\t\t\tPlansza.getRzemieslnikNaPlanszy().setPopulacja(Plansza.getRzemieslnikNaPlanszy().getMaterialy());\n\t\t}\n\t\telse {\n\t\t\tPlansza.getRzemieslnikNaPlanszy().setPopulacja(Plansza.getRzemieslnikNaPlanszy().getNarzedzia());\n\t\t}\n\t\t\n\t\tif(Plansza.getArystokrataNaPlanszy().getTowary() >= Plansza.getArystokrataNaPlanszy().getZloto()) {\n\t\t\tPlansza.getArystokrataNaPlanszy().setPopulacja(Plansza.getArystokrataNaPlanszy().getZloto());\n\t\t}\n\t\telse {\n\t\t\tPlansza.getArystokrataNaPlanszy().setPopulacja(Plansza.getArystokrataNaPlanszy().getTowary());\n\t\t}\n\t}",
"void berechneUmfang() {\r\n\t\tfor (int i = 1; i < m_ANZAHL_POINTS; i++) {\r\n\t\t\tm_umfang += m_pointArray[i].distance(m_pointArray[i-1]);\t\t\r\n\t\t}\r\n\t}",
"public void uradiPotez(int direkcija) {\r\n\t\tboolean promjena1 = pomjeri(direkcija);\r\n\t\tboolean promjena2 = spoji(direkcija);\r\n\t\tif(promjena1 || promjena2) { //ukoliko nije bilo promjene ni u pomjeranju ni spajanju, ne generise novo polje\r\n\t\t\tpomjeri(direkcija);\r\n\t\t\tgenerisiPolje();\r\n\t\t}\r\n\t}",
"public void podstawZapiszDaneJedenPlik() throws IOException {\r\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(\"./wynik/wynik.\"\r\n\t\t\t\t+ rozszerzenieSzablonu));\r\n\t\tString[] wektorDanych;\r\n\t\twhile ((wektorDanych = daneEgzemplarza.getNextCorrectData()) != null) {\r\n\t\t\tfor (String[] s : calaZawartoscRozsep) {\r\n\t\t\t\tfor (String wyraz : s) {\r\n\t\t\t\t\tif (wyraz.equals(interpretujWyraz(wyraz)))\r\n\t\t\t\t\t\tfor (int i = 0; i < zmienne.length; ++i) {\r\n\t\t\t\t\t\t\tif (wyraz.equals(zmienne[i])) {\r\n\t\t\t\t\t\t\t\twyraz = wektorDanych[i];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\twyraz = interpretujWyraz(wyraz);\r\n\r\n\t\t\t\t\tbw.write(wyraz);\r\n\t\t\t\t}\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tbw.write(\"---------------------------------------------------\");\r\n\t\t\tbw.newLine();\r\n\t\t}\r\n\t\tbw.close();\r\n\t}",
"private zzdov(zzdor zzdor, Object obj) {\n this.zzhgu = zzdor;\n this.zzhgq = obj;\n }",
"public boolean czyZdalnie()\n\t{\n\t\treturn najlepsze == null;\n\t}",
"public void naplnVrcholy() {\r\n System.out.println(\"Zadajte pocet vrcholov: \");\r\n pocetVrcholov = skener.nextInt();\r\n for (int i=0; i < pocetVrcholov; i++) {\r\n nekonecno = (int)(Double.POSITIVE_INFINITY);\r\n if(i==0) { //pre prvy vrchol potrebujeme nastavit vzdialenost 0 \r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu, 0, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n } else { //ostatne budu mat nekonecno alebo v tomto pripade 9999 (lebo tuto hodnotu v mensich grafoch nepresiahnem)\r\n String menoVrcholu = Character.toString((char)(i+65)); //pretipovanie int na String, z i=0 dostanem A\r\n Vrchol vrchol = new Vrchol(menoVrcholu,nekonecno, \"\"); //vrcholu nastavim vzdialenost a vrcholPrichodu \r\n vrcholy.add(vrchol);\r\n }\r\n }\r\n }",
"private static void kapazitaetPruefen(){\n\t\tList<OeffentlichesVerkehrsmittel> loev = new ArrayList<OeffentlichesVerkehrsmittel>();\n\t\t\n\t\tLinienBus b1 = new LinienBus();\n\t\tFaehrschiff f1 = new Faehrschiff();\n\t\tLinienBus b2 = new LinienBus();\t\n\t\t\n\t\tloev.add(b1);\n\t\tloev.add(b2);\n\t\tloev.add(f1);\n\t\t\n\t\tint zaehlung = 500;\n\t\tboolean ausreichend = kapazitaetPruefen(loev,500);\n\t\tp(\"Kapazitaet ausreichend? \" + ausreichend);\n\t\t\n\t}",
"public static void odczytZnakPoZnaku(String nazwaPlikuOdczyt) throws IOException {\n FileReader plikZPZ = null;\n try {\n plikZPZ = new FileReader(nazwaPlikuOdczyt);\n System.out.println(\"\\n\\nOdczyt pliku znak po znaku:\\n\");\n int znaki;\n //odczyt pliku znak po anaku i wyświetlenie na ekranie\n while ((znaki = plikZPZ.read()) != -1) {//jeśli znaki = -1 to znaczy koniec pliku\n System.out.println((char) znaki);\n }\n } finally {// klauzula finally służy do wykonania instrukcji\n // niezależnie od tego kiedy i w jaki sposób (normalnie lub\n // przez wyjątek) zostało zakończone wykonywanie bloku try\n if (plikZPZ != null) {\n plikZPZ.close();//zamknięcie pliku\n }\n }\n }",
"public ListaPracownikow() {\n generujPracownikow();\n //dodajPracownika();\n }",
"public void zmiana_rozmiaru_okna()\n {\n b.dostosowanie_rozmiaru(getWidth(),getHeight());\n w.dostosowanie_rozmiaru(getWidth(),getHeight());\n\n for (Pilka np : p) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Naboj np : n) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n for (Bonus np : bon) {\n np.dostosowanie_rozmiaru(getWidth(),getHeight());\n }\n\n }",
"@Test\n public void yksiVasemmalle() {\n char[][] kartta = Labyrintti.lueLabyrintti(\"src/main/resources/labyrinttiTestiVasen.txt\");\n assertFalse(kartta == null);\n Labyrintti labyrintti = new Labyrintti(kartta);\n RatkaisuLeveyshaulla ratkaisuSyvyyshaulla = new RatkaisuLeveyshaulla(labyrintti);\n String ratkaisu = ratkaisuSyvyyshaulla.ratkaisu();\n assertTrue(Tarkistaja.tarkista(ratkaisu, labyrintti));\n }",
"public abstract void zza(zzk zzk, zzk zzk2);",
"public void podstawZapiszDaneWielePlikow() throws IOException {\r\n\t\tBufferedWriter bw = null; // tutaj zaSztywno\r\n\t\tString[] wektorDanych;\r\n\t\tString nazwaPlikuWynikowego = null;\r\n\t\tint licznik = 0;\r\n\t\twhile ((wektorDanych = daneEgzemplarza.getNextCorrectData()) != null) {\r\n\t\t\t++licznik;\r\n\t\t\tnazwaPlikuWynikowego = \"./wynik/wynik\" + Integer.toString(licznik)\r\n\t\t\t\t\t+ \".\" + rozszerzenieSzablonu;\r\n\t\t\tbw = new BufferedWriter(new FileWriter(nazwaPlikuWynikowego));\r\n\t\t\tfor (String[] s : calaZawartoscRozsep) {\r\n\t\t\t\tfor (String wyraz : s) {\r\n\t\t\t\t\tif (wyraz.equals(interpretujWyraz(wyraz)))\r\n\t\t\t\t\t\tfor (int i = 0; i < zmienne.length; ++i) {\r\n\t\t\t\t\t\t\tif (wyraz.equals(zmienne[i])) {\r\n\t\t\t\t\t\t\t\twyraz = wektorDanych[i];\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\telse\r\n\t\t\t\t\t\twyraz = interpretujWyraz(wyraz);\r\n\r\n\t\t\t\t\tbw.write(wyraz);\r\n\t\t\t\t}\r\n\t\t\t\tbw.newLine();\r\n\t\t\t}\r\n\t\t\tbw.close();\r\n\t\t}\r\n\t}",
"public String toString(){\r\n\t\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}",
"public void nastav() {\n\t\ttabulkaZiak.setMaxWidth(velkostPolickaX * 3 + 2);\n\t\ttabulkaZiak.setPlaceholder(new Label(\"Žiadne známky.\"));\n\n\t}",
"private int obliczDowoz() {\n int x=this.klient.getX();\n int y=this.klient.getY();\n double odl=Math.sqrt((Math.pow((x-189),2))+(Math.pow((y-189),2)));\n int kilometry=(int)(odl*0.5); //50 gr za kilometr\n return kilometry;\n }",
"public String toString(){\r\n\treturn \"KORISNIK:\"+korisnik+\" PORUKA:\"+poruka;\r\n\t}",
"public Pojazd dostepDoPojazdu()\n\t{\n\t\treturn pojazd;\n\t}",
"public IzvajalecZdravstvenihStoritev() {\n\t}",
"public String preuzmiPassword() {\n return konfiguracija.dajPostavku(\"OpenSkyNetwork.lozinka\");\n }",
"@Test\n public void testLukitseRuutu() {\n System.out.println(\"lukitseRuutu\");\n int x = 0;\n int y = 0;\n Peli peli = new Peli(new Alue(3, 1));\n peli.lukitseRuutu(x, y);\n ArrayList[] lista = peli.getAlue().getRuudukko();\n ArrayList<Ruutu> ruudut = lista[0];\n assertEquals(true, ruudut.get(0).isLukittu());\n }",
"public void zeichnen_kavalier() {\n /**\n * Abrufen der Koordinaten aus den einzelnen\n * Point Objekten des Objekts Tetraeder.\n */\n double[] A = t1.getTetraeder()[0].getPoint();\n double[] B = t1.getTetraeder()[1].getPoint();\n double[] C = t1.getTetraeder()[2].getPoint();\n double[] D = t1.getTetraeder()[3].getPoint();\n\n /**\n * Aufrufen der Methode sortieren\n */\n double[][] sP = cls_berechnen.sortieren(A, B, C, D);\n\n A = sP[0];\n B = sP[1];\n C = sP[2];\n D = sP[3];\n\n /**Wenn alle z Koordinaten gleich sind, ist es kein Tetraeder. */\n if (A[2] == D[2] || (A[2]==B[2] && C[2]==D[2])) {\n System.out.println(\"kein Tetraeder\");\n return;\n }\n\n /** Transformiert x,y,z Koordinaten zu x,y Koordinaten */\n double ax, ay, bx, by, cx, cy, dx, dy;\n ax = (A[0] + (A[2] / 2));\n ay = (A[1] + (A[2] / 2));\n bx = (B[0] + (B[2] / 2));\n by = (B[1] + (B[2] / 2));\n cx = (C[0] + (C[2] / 2));\n cy = (C[1] + (C[2] / 2));\n dx = (D[0] + (D[2] / 2));\n dy = (D[1] + (D[2] / 2));\n\n tetraederzeichnen(ax, ay, bx, by, cx, cy, dx, dy);\n }",
"@Test\r\n\tpublic void testGetPeliBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == -2.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 0.75);\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Baztezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(bek.getBalioa(e3.getId()) == 1.75);\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// p1 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p1.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"-1,6398\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\t// p2 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p2.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(e1.getId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == 1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",1491\"));\r\n\t\tassertTrue(bek.getBalioa(e4.getId()) == 0);\r\n\t\t\r\n\t\t// p3 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p3.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e2.getId()) == -1);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\",4472\"));\r\n\t\tassertFalse(bek.bektoreanDago(e1.getId()));\r\n\t\t\r\n\t\t// p4 pelikula baloratu duten erabiltzaileen ID-ak eta balorazio normalizautak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getPeliBalorazioNormalizatuak(p4.getPelikulaId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(e1.getId()) == 0);\r\n\t\tassertTrue(df.format(bek.getBalioa(e3.getId())).equals(\"1,0435\"));\r\n\t\tassertFalse(bek.bektoreanDago(e2.getId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}",
"public int getPunktyZaWejscie() {\n return punktyZaWejscie;\n }",
"public void setPozycja(PozycjaZamowienia pozycja){\n\t\tthis.pozycja = pozycja;\n\t}",
"@Override\r\n\tpublic void rozmnozovat() {\n\t}",
"public void atakuj() {\n\n System.out.println(\"to metoda atakuj z klasy Potwor \");\n\n }",
"public void dodajZmiju() {\n\t\t\n\t\tint i = this.zmija.get(0).i;\n\t\tint j = this.zmija.get(0).j;\n\t\tthis.tabla[i][j] = 'O';\n\t\t\n\t\tfor (int k = 1; k < this.zmija.size(); k++) {\n\t\t\ti = this.zmija.get(k).i;\n\t\t\tj = this.zmija.get(k).j;\n\t\t\tthis.tabla[i][j] = 'o';\n\t\t}\t\n\t}",
"public static void zapisPliku(String nazwaPlikuZapis) throws IOException{\n FileWriter plikZapisz = null;\n try {\n // tworzy nowy plik jeżeli nie istnieje, w przeciwnym przypadku\n // usuwa zawartość pliku i nadpisuje od początku\n plikZapisz = new FileWriter(nazwaPlikuZapis);\n //zapis łańcucha\n plikZapisz.write(tekstDoZapisu);\n //zapis po znaku\n for (char znak = 'a'; znak <='z'; znak++){\n plikZapisz.write(znak);\n plikZapisz.write('\\n');\n }\n }finally {\n if (plikZapisz != null){\n plikZapisz.close();\n }\n }\n }",
"@Test\r\n\tpublic void testGetErabBalorazioNormalizatuak() {\n\t\tBektorea bek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == -0.5);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.5);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -0.5);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(bek.getBalioa(p1.getPelikulaId()) == -2.75);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0.25);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == 0.75);\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 1.75);\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Batezbestekoa erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t\r\n\t\t// Normalizazioa Zsore erabiliz egiten dugu\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Zscore());\r\n\t\t\r\n\t\tDecimalFormat df = new DecimalFormat(\"#.0000\");\r\n\t\t\r\n\t\t// e1 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e1.getId());\r\n\t\tassertTrue(bek.luzera() == 3);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"1,2247\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\"-1,2247\"));\r\n\t\tassertTrue(bek.getBalioa(p4.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p3.getPelikulaId()));\r\n\t\t\r\n\t\t// e2 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e2.getId());\r\n\t\tassertTrue(bek.luzera() == 2);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 1);\r\n\t\tassertTrue(bek.getBalioa(p3.getPelikulaId()) == -1);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\t// e3 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e3.getId());\r\n\t\tassertTrue(bek.luzera() == 4);\r\n\t\tassertTrue(df.format(bek.getBalioa(p1.getPelikulaId())).equals(\"-1,6398\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p2.getPelikulaId())).equals(\",1491\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p3.getPelikulaId())).equals(\",4472\"));\r\n\t\tassertTrue(df.format(bek.getBalioa(p4.getPelikulaId())).equals(\"1,0435\"));\r\n\t\t\r\n\t\t// e4 erabiltzaileak baloratu dituen pelikulen ID-ak eta balorazio normalizatuak (Zscore erabiliz) itzuli\r\n\t\tbek = BalorazioenMatrizea.getBalorazioenMatrizea().getErabBalorazioNormalizatuak(e4.getId());\r\n\t\tassertTrue(bek.luzera() == 1);\r\n\t\tassertTrue(bek.getBalioa(p2.getPelikulaId()) == 0);\r\n\t\tassertFalse(bek.bektoreanDago(p1.getPelikulaId()));\r\n\t\t\r\n\t\tBalorazioenMatrizea.getBalorazioenMatrizea().erreseteatu();\r\n\t\tNormalizazioKalkulua.getNormalizazioKalkulua().normalizazioMotaAldatu(new Batezbestekoa());\r\n\t\t\r\n\t}",
"public ArrayList<ArrayList<Float>> predykcjaCenNaRynkuLokalnym()\n\t{\n\t\tfloat cenaMinimalnaNaRynkuLokalnym= Stale.cenaMinimalnaNaRynkuLokalnym;\n\t\tfloat cenaMaksymalnaNaRynkuLokalnym = Stale.cenaDystrybutoraZewnetrznego;\n\t\t\n\t\t//tu siedzi to rozroznienie czy z generatora czy predykcja z poprzendiej symualcji\n\t\tArrayList<Float> normalnaPredykcja = pierwszaPredykcja();\n\t\tpriceVectorsList.add(normalnaPredykcja);\n\t\t\n\t\tArrayList<ArrayList<Float>> listaPredykcjiCen= new ArrayList<ArrayList<Float>>();\n\t\t\n\t\t\n\t\t//nizsza \n\t\tArrayList<Float> predykcjaZNizszaCena=new ArrayList<Float>(normalnaPredykcja);\t\t\n\t\tArrayList<Float> predykcjaZWyzszaCena=new ArrayList<Float>(normalnaPredykcja);\n\t\t\n\t\tfloat nizszaCena =(normalnaPredykcja.get(0)+cenaMinimalnaNaRynkuLokalnym)/2 ;\n\t\tfloat wyzszaCena=(normalnaPredykcja.get(0)+cenaMaksymalnaNaRynkuLokalnym)/2;\n\t\t\n\t\tpredykcjaZNizszaCena.set(0, nizszaCena);\n\t\tpredykcjaZWyzszaCena.set(0, wyzszaCena);\n\t\t\n\t\tlistaPredykcjiCen.add(predykcjaZNizszaCena);\n\t\tlistaPredykcjiCen.add(normalnaPredykcja);\n\t\tlistaPredykcjiCen.add(predykcjaZWyzszaCena);\n\t\t\n\t\t//reporting - zapisz zadeklarowan cene\n\t\trynekHistory.dodajZadeklarowanaCene(normalnaPredykcja.get(0));\n\t\t\n\t\t\n\t\treturn listaPredykcjiCen;\t\n\t}",
"public static void main(String[] args) {\n Pasien Dam = new Pasien(\"Puspaningsyas\");\r\n Dam.setTanggalLahir(1974, 1, 12);\r\n// String str = Dam.getNama();\r\n \r\n \r\n\r\n System.out.println(\"Umur = \" + Dam.getUsia());\r\n Dam.NomorRekamMedis();\r\n // System.out.println(str.substring(0, 3));\r\n\r\n// Pasien Dam2 = new Pasien(\"Dam\");\r\n// Dam2.setTanggalLahir(1999,3,13);\r\n// System.out.println(\"Umur = \" +Dam2.getUsia());\r\n }",
"@Override\r\n\tpublic void zjedz(Kost k) {\n\t}",
"public void RuchyKlas() {\n\t\tSystem.out.println(\"RuchyKlas\");\n\t\tPlansza.getNiewolnikNaPLanszy().Ruch();\n\t\tPlansza.getRzemieslnikNaPlanszy().Ruch();\n\t\tPlansza.getArystokrataNaPlanszy().Ruch();\n\t}",
"protected void ucitajSortiranoPoBrojRez() {\n\t\tObject[]redovi=new Object[9];\r\n\t\tdtm.setRowCount(0);\r\n\t\t\r\n\t\tfor(Rezervacije r:alSort) {\r\n\t\t\t\r\n\t\t\tredovi[0]=r.getID_Rez();\r\n\t\t\tredovi[1]=r.getImePrezime();\r\n\t\t\tredovi[2]=r.getImePozorista();\r\n\t\t\tredovi[3]=r.getNazivPredstave();\r\n\t\t\tredovi[4]=r.getDatumIzvodjenja();\r\n\t\t\tredovi[5]=r.getVremeIzvodjenja();\r\n\t\t\tredovi[6]=r.getScenaIzvodjenja();\r\n\t\t\tredovi[7]=r.getBrRezUl();\r\n\t\t\tredovi[8]=r.getCenaUlaznica();\r\n\t\t\tdtm.addRow(redovi);\r\n\t\t}\r\n\t}",
"public static void main(String[] args) {\n\t\t\r\n\t\tVozac v1 = new Vozac(\"Petar Petrovic\", \"vozac\");\r\n\t\tVozac v2 = new Vozac(\"Marko Markovic\", \"visi vozac\");\r\n\t\t\r\n\t\tPutnik p1 = new Putnik(\"Mara Maric\", 1000);\r\n\t\tPutnik p2 = new Putnik(\"Zora Zoric\", 1520);\r\n\t\tPutnik p3 = new Putnik(\"Rade Radic\", 854);\r\n\t\tPutnik p4 = new Putnik(\"Mile Milic\", 3150);\r\n\t\tPutnik p5 = new Putnik(\"Joka Jokic\", 2100);\r\n\t\t\r\n\t\tAutobus a1 = new Autobus(\"Novi Sad - Beograd\", 700);\r\n\t\t\r\n\t\ta1.postaviVozaca(v1);\r\n\t\ta1.dodajPutnika(p1);\r\n\t\ta1.dodajPutnika(p2);\r\n\t\ta1.dodajPutnika(p3);\r\n\t\ta1.dodajPutnika(p4);\r\n\t\ta1.dodajPutnika(p5);\r\n\t\t\r\n\t\tSystem.out.println(\"Autobus na relaciji: \" + a1.getNaziv() + \" vozi \" + a1.getVozac().getImeIPrezime() + \", a cena karte je: \" + a1.getCenaKarte() + \" dinara\");\r\n\t\tSystem.out.println(\"\");\r\n\t\tSystem.out.println(\"Lista putnika koju putuju autobusom: \");\r\n\t\tfor (int i = 0; i < a1.getListaPutnika().size(); i++) {\r\n\t\t\ta1.getListaPutnika().get(i).oduzmiNovac(a1.getCenaKarte());\r\n\t\t\tSystem.out.println(a1.getListaPutnika().get(i).getImeIPrezime() + \", a preostala svota novca je \" + a1.getListaPutnika().get(i).getSvotaNovca());\t\t\t\t\t\t\t\t\r\n\t\t}\r\n\t\t\r\n\r\n\t}",
"float getMonatl_kosten();",
"public void nastaviIgru() {\r\n\t\t// nastavi igru poslije pobjede\r\n\t\tigrajPoslijePobjede = true;\r\n\t}",
"public void ordenaPontos(){\r\n\t\tloja.ordenaPontos();\r\n\t}",
"public void pobierzProjektUkladu(String br, TreeNodeExtended root, String aktywapasywa) {\r\n try {\r\n pozycje = Collections.synchronizedList(new ArrayList<>());\r\n pozycje = UkladBRBean.pobierzpozycje(pozycjaRZiSDAO, pozycjaBilansDAO, uklad, aktywapasywa, br);\r\n root.getChildren().clear();\r\n if (pozycje != null) {\r\n PozycjaRZiSFKBean.ustawRootaprojekt(root, pozycje);\r\n level = PozycjaRZiSFKBean.ustawLevel(root, pozycje);\r\n Msg.msg(\"Pobrano układ \");\r\n } else {\r\n Msg.msg(\"e\", \"Pozycje sa puste\");\r\n }\r\n } catch (Exception e) {\r\n E.e(e);\r\n root.getChildren().clear();\r\n Msg.msg(\"e\", \"Wystąpił błąd, nie pobrano układu\");\r\n }\r\n }",
"public static void dodavanjeTeretnogVozila() {\n\t\tString vrstaVozila = \"Teretno Vozilo\";\n\t\tString regBr = UtillMethod.unosRegBroj();\n\t\tGorivo gorivo = UtillMethod.izabirGoriva();\n\t\tGorivo gorivo2 = UtillMethod.izabirGorivaOpet(gorivo);\n\t\tint brServisa = 1;\n\t\tdouble potrosnja = UtillMethod.unesiteDoublePotrosnja();\n\t\tSystem.out.println(\"Unesite broj km koje je vozilo preslo:\");\n\t\tdouble predjeno = UtillMethod.unesiteBroj();\n\t\tdouble preServisa = 20000;\n\t\tdouble cenaServisa = 10000;\n\t\tSystem.out.println(\"Unesite cenu vozila za jedan dan:\");\n\t\tdouble cenaDan = UtillMethod.unesiteBroj();\n\t\tSystem.out.println(\"Unesite broj sedista u vozilu:\");\n\t\tint brSedista = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite broj vrata vozila:\");\n\t\tint brVrata = UtillMethod.unesiteInt();\n\t\tboolean vozObrisano = false;\n\t\tArrayList<Gorivo> gorivaVozila = new ArrayList<Gorivo>();\n\t\tgorivaVozila.add(gorivo);\n\t\tif(gorivo2!=Main.nista) {\n\t\t\tgorivaVozila.add(gorivo2);\n\t\t}\n\t\tArrayList<Servis> servisiNadVozilom = new ArrayList<Servis>();\n\t\tSystem.out.println(\"Unesite maximalnu masu koje vozilo moze da prenosi u KG !!\");\n\t\tint maxMasauKg = UtillMethod.unesiteInt();\n\t\tSystem.out.println(\"Unesite maximalnu visinu u m:\");\n\t\tdouble visinauM = UtillMethod.unesiteBroj();\n\t\tTeretnaVozila vozilo = new TeretnaVozila(vrstaVozila, regBr, gorivaVozila, brServisa, potrosnja, predjeno, preServisa,\n\t\t\t\tcenaServisa, cenaDan, brSedista, brVrata, vozObrisano, servisiNadVozilom, maxMasauKg, visinauM);\n\t\tUtillMethod.prviServis(vozilo, predjeno);\n\t\tMain.getVozilaAll().add(vozilo);\n\t\tSystem.out.println(\"Novo vozilo je uspesno dodato u sistem!\");\n\t\tSystem.out.println(\"--------------------------------------\");\n\t}",
"public void testOctaedre() {\n\t\t\t\n\t\t\tSolide i = Octaedre.octaedre();\n\t\t\t\n\t\t\t/* creation de points qui ont les memes coordonnees que ceux qui \n\t\t\t * constituent notre solide (car octaedre() n'a pas de parametres)\n\t\t\t */\n\t\t\t\n\t\t\tPoint p1 = new Point(-25, 0,-25);\n\t\t\tPoint p2 = new Point(-25, 0,25);\n\t\t\tPoint p3 = new Point(25, 0,-25);\n\t\t\tPoint p4 = new Point(25,0,25);\n\t\t\tfloat hauteur = (float) (50/Math.sqrt(2));\n\t\t\t// on se sert de la hauteur pour donnee les coordonees des sommets manquant\n\t\t\tPoint p5 = new Point(0, hauteur,0);\n\t\t\tPoint p6 = new Point(0,-hauteur,0);\n\t\t\t\n\t\t\t//On teste si les points de l'octaedre i sont bien les memes que ceux créés\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getAbscisse()==(p1.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(1).getAbscisse()==(p2.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(5).getAbscisse()==(p3.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(3).getAbscisse()==(p4.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(2).getAbscisse()==(p5.getAbscisse()));\n\t\t\tassertTrue(i.getPoint().get(0).getAbscisse()==(p6.getAbscisse()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getOrdonnee()==(p1.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(1).getOrdonnee()==(p2.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(5).getOrdonnee()==(p3.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(3).getOrdonnee()==(p4.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(2).getOrdonnee()==(p5.getOrdonnee()));\n\t\t\tassertTrue(i.getPoint().get(0).getOrdonnee()==(p6.getOrdonnee()));\n\t\t\t\n\t\t\tassertTrue(i.getPoint().get(4).getProfondeur()==(p1.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(1).getProfondeur()==(p2.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(5).getProfondeur()==(p3.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(3).getProfondeur()==(p4.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(2).getProfondeur()==(p5.getProfondeur()));\n\t\t\tassertTrue(i.getPoint().get(0).getProfondeur()==(p6.getProfondeur()));\n\t\t\t\n\t\t\t//On teste si les faces de l'octaedre contiennent bien les points créés\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(0).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(0).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(1).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(1).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(2).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(2).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(3).contient(p1));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(3).contient(p6));\n\t\t\n\t\t\tassertTrue(i.getFaces().get(4).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(4).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(5).contient(p3));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(5).contient(p6));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(6).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(6).contient(p5));\n\t\t\t\n\t\t\tassertTrue(i.getFaces().get(7).contient(p2));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p4));\n\t\t\tassertTrue(i.getFaces().get(7).contient(p6));\n\t\t\t\n\t\t\t\n\t\t\t\n\t}",
"public NapraviPorudzbinu(Zaposleni zaposleni) {\n kontrolerNP = new KontrolerNapraviPorudzbinu();\n this.zaposleni = zaposleni;\n initComponents();\n kontrolerNP.popuniTabelu(jTable1, zaposleni);\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n textBroj.setEditable(false);\n buttonIzmeni.setVisible(false);\n kontrolerNP.vratiID(textBroj, zaposleni);\n }",
"@Test\n public void konstruktoriAsettaaSateenOikein() {\n assertEquals(3.0, lierio.getSade(), 1);\n }",
"public void test5(){\r\n\t\tZug zug1 = st.zugErstellen(1, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(0, 3, \"Zug 2\"); \r\n\t}",
"@Test\n public void WertZuweisung (){\n String bez = \"Test\";\n String matGr = \"Test\";\n String zeichNr = \"Test\";\n float preis = 3;\n int ve = 1;\n try {\n Teilebestand teil = new Teilebestand();\n teil.setBezeichnung(bez);\n teil.setMaterialgruppe(matGr);\n teil.setPreis(preis);\n teil.setTyp(Teilebestand.Typ.kaufteile);\n teil.setZeichnungsnummer(zeichNr);\n teil.setVe(ve);\n \n teil.save();\n \n assertEquals(teil.getBezeichnung(), bez);\n assertEquals(teil.getMaterialgruppe(), matGr);\n assertEquals(teil.getPreis(), preis, 0.1);\n assertNotNull(preis);\n assertEquals(teil.getTyp(), Teilebestand.Typ.kaufteile);\n assertEquals(teil.getVe(), ve);\n assertNotNull(ve);\n assertEquals(teil.getZeichnungsnummer(), zeichNr);\n \n } catch (SQLException ex) {\n fail(ex.getSQLState());\n }\n \n \n \n \n }",
"public void test6(){\r\n\t\tZug zug1 = st.zugErstellen(2, 0, \"Zug 1\");\r\n\t\tZug zug2 = st.zugErstellen(2, 0, \"Zug 2\");\r\n\t\tst.fahren();\r\n\t}",
"public boolean czyUstalonyGracz()\n\t{\n\t\treturn (pojazd != null);\n\t}",
"public void dodajPrijelaz(int pocetno, int sljedece, char znak) {\n dodajPrijelaz(pocetno, sljedece, Character.toString(znak));\n }",
"private zza.zza()\n\t\t{\n\t\t}",
"public RuimteFiguur() {\n kleur = \"zwart\";\n }",
"float znajdzOstatecznaCene()\n\t{\n\t\t//getInput(\"znajdzOstatecznaCene\");\n\t\t//print (\"znajdzOstatecznaCene \"+iteracja);\n\t\t\n\t\t//debug\n\t\tBoolean debug = false;\n\t\tif (LokalneCentrum.getCurrentHour().equals(\"03:00\"))\n\t\t{\n\t\t\tprint(\"03:00 on the clock\",debug);\n\t\t\tdebug=false;\n\t\t}\n\t\t\n\t\t//wszystkie ceny jakie byly oglaszan ne na najblizszy slot w \n\t\tArrayList<Float> cenyNaNajblizszySlot =znajdzOstatecznaCeneCenaNaNajblizszeSloty();\n\t\t\n\t\t\n\t\t//Stworzenie cen w raportowaniu\n\t\tint i=0;\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\trynekHistory.kontraktDodajCene(cenyNaNajblizszySlot.get(i));\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tprint(\"ceny na najblizszy slot \"+cenyNaNajblizszySlot.size());\n\n\t\t\n\t\t//do rpzerobienia problemu minimalizacji na maksymalizacje\n\t\tint inverter =-1;\n\t\t\n\t\ti=0;\n\t\tfloat cena =cenyNaNajblizszySlot.get(i);\n\t\tfloat minimuCena =cena;\t\t\n\t\tfloat minimumValue =inverter*funkcjaRynku2(cena, false,true);\n\t\ti++;\n\t\t\n\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), minimuCena);\n\t\t\n\t\twhile (i<cenyNaNajblizszySlot.size())\n\t\t{\n\t\t\tcena =cenyNaNajblizszySlot.get(i);\n\t\t\tfloat value =inverter*funkcjaRynku2(cena, false,true);\t\t\t\n\n\t\t\trynekHistory.kontraktDodajWartoscFunkcjiRynku(funkcjaRynku2(cena, false), cena);\n\n\t\t\tif (value<minimumValue)\n\t\t\t{\n\t\t\t\tminimuCena =cena;\n\t\t\t\tminimumValue = value;\n\n\t\t\t}\n\t\t\t\n\t\t\ti++;\n\t\t}\n\t\t\n\t\tif(debug)\n\t\t{\n\t\t\tgetInput(\"03:00 end\");\n\t\t}\n\t\t\n\t\t//getInput(\"znajdzOstatecznaCene - nto finished\");\n\t\treturn minimuCena;\n\t\t\n\t}",
"private Pozycja losujPole(Plansza oPlanszaPrzeciwnika)\n\t\t{\n\t\ttry\n\t\t\t{\n\t\t\tPozycja oWylosowanePole = new Pozycja(2);\n\t\t\tint iWylosowanePole = oRand.nextInt( oPlanszaPrzeciwnika.getIloscNieznanych() ) + 1;\n\t\t\t//obliczenie x i y dla wylosowanego pola\n\t\t\tint iX = 0;\n\t\t\tint iY = 0;\n\t\t\twhile (iWylosowanePole > 0)\n\t\t\t\t{\n\t\t\t\tif (oPlanszaPrzeciwnika.getPole(iX, iY) == PlanszaTypPola.PLANSZA_POLE_PUSTE || oPlanszaPrzeciwnika.getPole(iX, iY) == PlanszaTypPola.PLANSZA_STATEK)\n\t\t\t\t\t--iWylosowanePole;\n\t\t\t\tif (iWylosowanePole > 0)\n\t\t\t\t\t{\n\t\t\t\t\t++iX;\n\t\t\t\t\tif (iX == oPlanszaPrzeciwnika.getSzerokosc())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t++iY;\n\t\t\t\t\t\tiX = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\toWylosowanePole.setX(iX);\n\t\t\toWylosowanePole.setY(iY);\n\t\t\treturn oWylosowanePole;\n\t\t\t}\n\t\tcatch (ParametrException e)\n\t\t\t{\n\t\t\tthrow new ProgramistaException(e);\n\t\t\t}\n\t\t}",
"public static void main(String[] args) {\n\t\t\t\n\t\t\t//utworzenie zmiennych okno1 i okno2 i ich zainicjowanie\n\t\t\tOkno okno1 = new Okno();\n\t\t\tOkno okno2 = new Okno(1800,1800,3);\n\t\t\t\n\t\t\t//wywołanie metody \"otwórz\"\n\t\t\tokno1.otworz();\n\t\t\tokno2.otworz(0);\n\t\t\tokno2.otworz(2);\n\t\t\t\n\t\t\t//wywołanie metody \"wypisz stan\"\n\t\t\tokno1.wypiszStan();\n\t\t\tokno2.wypiszStan();\n\t\t\t\n\t\t\t//wywołanie metod \"zamknij\" oraz metody ustawiającej długosc okna\n\t\t\tokno1.zamknij();\n\t\t\tokno2.setDlugosc(2100);\n\t\t\tokno2.zamknij(0);\n\t\t\t\n\t\t\t//utworzenie i zainicjowanie zmiennej\n\t\t\tKlamka kl = new Klamka();\n\t\t\tkl.setCzyKluczyk(true);\n\t\t\t\n\t\t\t//metody dostepowe i zwracajace \n\t\t\tokno2.getSkrzydla()[1].setKlamka(kl);\n\t\t\tokno2.getSkrzydla()[2].setKlamka(null);\n\t\t\t\n\t\t\t//wywołanie metody \"wypisz stan\"\n\t\t\tokno1.wypiszStan();\n\t\t\tokno2.wypiszStan();\n\t\t\t\n\t\t}",
"public static ArrayList<Vkladi> rascetObsciBalans() {\r\n\t\tArrayList<Vkladi> foundVkladi = new ArrayList<Vkladi>();\r\n\r\n\t\tint t = 0;\r\n\t\tfor (Vkladi vkla : vklad) {\r\n\r\n\t\t\tt = t + vkla.getPribil();\r\n\t\t}\r\n\t\tint z = 0;\r\n\t\tfor (Krediti kredit : kred) {\r\n\r\n\t\t\tz = z + kredit.getDolg();\r\n\t\t}\r\n\t\tint y = 0;\r\n\t\ty = z + t;\r\n\t\tSystem.out.println(\"Symarnii balanse Scetov= \" + y + \"$\");\r\n\t\treturn foundVkladi;\r\n\t}",
"protected boolean strzalSasiadujacy(StatekIterator oStatkiPrzeciwnika)\n\t\t{\n\t\t//przygotowanie kontenera przechowujacego do 4 sasiednich pol, ktore nadaja sie do kolejnego strzalu\n\t\tArrayList<Pozycja> oSasiedniePola = new ArrayList<Pozycja>(4);\n\t\t//petla wyszukujaca we wczesniejszych trafieniach pola do oddania kolejnego strzalu\n\t\twhile (oUzyteczneTrafienia.size() > 0)\n\t\t\t{\n\t\t\t//wylosowanie pola do przetestowania\n\t\t\tint iLosowanePole = oRand.nextInt(oUzyteczneTrafienia.size());\n\t\t\tPozycja oWybranePole = oUzyteczneTrafienia.get(iLosowanePole);\n\t\t\t\n\t\t\ttry\n\t\t\t\t{\n\t\t\t\t//wczytanie wspolrzednych 4 sasiadow i sprawdzenie, czy sa to pola puste, lub zawierajace statek\n\t\t\t\tfor (int i = -1; i <= 1; ++i)\n\t\t\t\t\tfor (int j = -1; j <= 1; ++j)\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\toWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()\n\t\t\t\t\t\t\t&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()\n\t\t\t\t\t\t\t&& (i + j == -1 || i + j == 1)\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_POLE_PUSTE\n\t\t\t\t\t\t\t\t|| oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STATEK\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tPozycja oPrawidlowe = new Pozycja(2);\n\t\t\t\t\t\t\t\toPrawidlowe.setX(oWybranePole.getX() + i);\n\t\t\t\t\t\t\t\toPrawidlowe.setY(oWybranePole.getY() + j);\n\t\t\t\t\t\t\t\toSasiedniePola.add(oPrawidlowe);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (bProsteLinie == true)\n\t\t\t\t\t{\n\t\t\t\t\tboolean bPionowy = false;\n\t\t\t\t\tboolean bPoziomy = false;\n\t\t\t\t\tfor (int i = -1; i <= 1; ++i)\n\t\t\t\t\t\tfor (int j = -1; j <= 1; ++j)\n\t\t\t\t\t\t\tif (\n\t\t\t\t\t\t\t\toWybranePole.getX() + i >= 0 && oWybranePole.getX() + i < oStatkiPrzeciwnika.getPlansza().getSzerokosc()\n\t\t\t\t\t\t\t\t&& oWybranePole.getY() + j >= 0 && oWybranePole.getY() + j < oStatkiPrzeciwnika.getPlansza().getWysokosc()\n\t\t\t\t\t\t\t\t&& (i + j == -1 || i + j == 1)\n\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tif (oStatkiPrzeciwnika.getPlansza().getPole(oWybranePole.getX() + i, oWybranePole.getY() + j) == PlanszaTypPola.PLANSZA_STRZAL_CELNY)\n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\tif (i == 0)\n\t\t\t\t\t\t\t\t\t\tbPionowy = true;\n\t\t\t\t\t\t\t\t\tif (j == 0)\n\t\t\t\t\t\t\t\t\t\tbPoziomy = true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\tif (bPionowy == true && bPoziomy == true)\n\t\t\t\t\t\tthrow new ProgramistaException();\n\t\t\t\t\tif (bPionowy == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = oSasiedniePola.size() - 1; i >= 0; --i)\n\t\t\t\t\t\t\tif (oSasiedniePola.get(i).getX() != oWybranePole.getX())\n\t\t\t\t\t\t\t\toSasiedniePola.remove(i);\n\t\t\t\t\t\t}\n\t\t\t\t\tif (bPoziomy == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\tfor (int i = oSasiedniePola.size() - 1; i >= 0; --i)\n\t\t\t\t\t\t\tif (oSasiedniePola.get(i).getY() != oWybranePole.getY())\n\t\t\t\t\t\t\t\toSasiedniePola.remove(i);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif (oSasiedniePola.size() > 0)\n\t\t\t\t\t{\n\t\t\t\t\t//sa pola prawidlowe do oddania kolejnego strzalu\n\t\t\t\t\tint iWylosowanySasiad = oRand.nextInt(oSasiedniePola.size());\n\t\t\t\t\t//oddanie strzalu na wspolrzedne weybranego pola\n\t\t\t\t\tboolean bStrzal;\n\t\t\t\t\tbStrzal = oStatkiPrzeciwnika.strzal(oSasiedniePola.get(iWylosowanySasiad).getX(), oSasiedniePola.get(iWylosowanySasiad).getY());\n\t\t\t\t\tif (bStrzal == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t//zapisanie celnego strzalu w tablicy trafien\n\t\t\t\t\t\tPozycja oTrafienie = new Pozycja(2);\n\t\t\t\t\t\toTrafienie.setX( oSasiedniePola.get(iWylosowanySasiad).getX() );\n\t\t\t\t\t\toTrafienie.setY( oSasiedniePola.get(iWylosowanySasiad).getY() );\n\t\t\t\t\t\toUzyteczneTrafienia.add(oTrafienie);\n\t\t\t\t\t\t}\n\t\t\t\t\treturn bStrzal;\n\t\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t//brak prawidlowych pol. usuniecie trafienia z listy i przejscie do kolejnej iteracji petli wyszukujacej\n\t\t\t\t\toUzyteczneTrafienia.remove(iLosowanePole);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tcatch (ParametrException e)\n\t\t\t\t{\n\t\t\t\tthrow new ProgramistaException(e);\n\t\t\t\t}\n\t\t\t\n\t\t\t}\n\t\treturn strzalLosowy(oStatkiPrzeciwnika);\n\t\t}",
"public boolean czyKolizja()\n\t{\n\t\tif(aktualnyNumerSciezki == -1)\n\t\t\treturn false;\n\t\tSciezka s = droga.get(aktualnyNumerSciezki);\n\t\treturn s.czyKolizja(pojazd);\t\n\t}"
] |
[
"0.6972393",
"0.69578224",
"0.6833867",
"0.66164136",
"0.6537677",
"0.6490494",
"0.64698803",
"0.6436976",
"0.6431967",
"0.6363147",
"0.6359912",
"0.6325653",
"0.6281178",
"0.62723154",
"0.62582207",
"0.62204313",
"0.6193138",
"0.6165066",
"0.6153946",
"0.61240536",
"0.61196184",
"0.61038774",
"0.6102498",
"0.60764635",
"0.60400635",
"0.60343254",
"0.6007758",
"0.598931",
"0.5988238",
"0.5978546",
"0.59527355",
"0.59502125",
"0.59319204",
"0.59102696",
"0.5904537",
"0.5895657",
"0.5878315",
"0.58702236",
"0.5868763",
"0.5868628",
"0.5857878",
"0.5845939",
"0.58365816",
"0.58347416",
"0.583325",
"0.5830204",
"0.5809183",
"0.580708",
"0.58050954",
"0.5789409",
"0.5779234",
"0.57759434",
"0.57644814",
"0.5758831",
"0.5755231",
"0.57542515",
"0.5736407",
"0.57363975",
"0.5733565",
"0.5730605",
"0.5730379",
"0.5727474",
"0.572681",
"0.5725572",
"0.57251126",
"0.57243603",
"0.5721613",
"0.5720615",
"0.5717832",
"0.57157934",
"0.57097274",
"0.568793",
"0.5685741",
"0.56764084",
"0.56707686",
"0.56675404",
"0.56650513",
"0.5660412",
"0.5659511",
"0.56557316",
"0.56516296",
"0.56492496",
"0.5648636",
"0.5643564",
"0.56280035",
"0.5625387",
"0.5618786",
"0.56184447",
"0.5615925",
"0.56154543",
"0.5609257",
"0.5606533",
"0.5604713",
"0.5603663",
"0.56026006",
"0.5599234",
"0.55936444",
"0.55928355",
"0.5592399",
"0.5590098",
"0.55883414"
] |
0.0
|
-1
|
Export Web Services, Database Configurations, Global Variables and BusinessCalendar
|
public EnvironmentExporter() {
super();
fExporterList = new ArrayList<AbstractExporter>();
fExporterList.add(new GlobalVariableExporter());
fExporterList.add(new DatabaseConfigurationExporter());
fExporterList.add(new WebServiceExporter());
fExporterList.add(new BusinessCalendarExporter());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Map<String, Object> exportConfiguration();",
"public EnvironmentExporter(Boolean exportWebService, Boolean exportDatabaseConfig, Boolean exportGlobalVar,\r\n Boolean exportBusinessCalendar) {\r\n super();\r\n fExporterList = new ArrayList<AbstractExporter>();\r\n if (exportWebService) {\r\n fExporterList.add(new WebServiceExporter());\r\n }\r\n if (exportDatabaseConfig) {\r\n fExporterList.add(new DatabaseConfigurationExporter());\r\n }\r\n if (exportGlobalVar) {\r\n fExporterList.add(new GlobalVariableExporter());\r\n }\r\n if (exportBusinessCalendar) {\r\n fExporterList.add(new BusinessCalendarExporter());\r\n }\r\n }",
"public ExportaDatosWSBean() {\n }",
"public void exportConfiguration(){\n\t\tcontroller.exportTestConfiguration();\n\t}",
"Map<String, Object> exportDefaultConfiguration();",
"public RestDataservice(URI baseUri, Dataservice dataService, boolean exportXml, UnitOfWork uow) throws KException {\n super(baseUri, dataService, uow, false);\n\n setDescription(dataService.getDescription(uow));\n\n addExecutionProperties(uow, dataService);\n\n Properties settings = getUriBuilder().createSettings(SettingNames.DATA_SERVICE_NAME, getId());\n URI parentUri = getUriBuilder().dataserviceParentUri(dataService, uow);\n getUriBuilder().addSetting(settings, SettingNames.DATA_SERVICE_PARENT_PATH, parentUri);\n\n Vdb serviceVdb = dataService.getServiceVdb(uow);\n if (serviceVdb != null) {\n setServiceVdbName(serviceVdb.getVdbName( uow ));\n setServiceVdbVersion(Integer.toString(serviceVdb.getVersion( uow )));\n setServiceViewModel(dataService.getServiceViewModelName(uow));\n setViewDefinitionNames(dataService.getViewDefinitionNames(uow));\n }\n\n Connection[] connections = dataService.getConnections(uow);\n setConnectionTotal(connections != null ? connections.length : 0);\n\n Driver[] drivers = dataService.getDrivers(uow);\n setDriverTotal(drivers != null ? drivers.length : 0);\n \n // Initialize the published state to NOTFOUND\n setPublishedState(BuildStatus.Status.NOTFOUND.name());\n\n addLink(new RestLink(LinkType.SELF, getUriBuilder().dataserviceUri(LinkType.SELF, settings)));\n addLink(new RestLink(LinkType.PARENT, getUriBuilder().dataserviceUri(LinkType.PARENT, settings)));\n createChildLink();\n addLink(new RestLink(LinkType.VDBS, getUriBuilder().dataserviceUri(LinkType.VDBS, settings)));\n addLink(new RestLink(LinkType.CONNECTIONS, getUriBuilder().dataserviceUri(LinkType.CONNECTIONS, settings)));\n }",
"public static void exportData(Context context){\r\n \t\tinvokeLoggerService(context, MainPipeline.ACTION_ARCHIVE_DATA);\r\n \t}",
"public void service(){\n Serv_ID = 0;\n Serv_Emp_ID = 0;\n Serv_Event_ID = 0;\n Serv_Grant_ID = 0;\n Serv_Proj_ID = 0;//add project creation\n Serv_Date = \"currrent_date\";\n Serv_Type = \"\";\n Serv_Desc = \"\";\n Serv_Mon_Val = 0.00;\n Serv_Hours = 0;\n }",
"@Override\r\n\tpublic void exportLogExcel(SapDataCollection sapDataCollection,\r\n\t\t\tJSONObject json, String optflag, String bdate, String edate,\r\n\t\t\tHttpServletResponse response) throws IOException,\r\n\t\t\tSecurityException, NoSuchMethodException, IllegalArgumentException,\r\n\t\t\tIllegalAccessException, InvocationTargetException,\r\n\t\t\tURISyntaxException {\n\t\tList<RuntimeColumnInfo> kna1list = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNA1);\r\n\t\tList<RuntimeColumnInfo> knb1list = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNB1);\r\n\t\tList<RuntimeColumnInfo> knvvlist = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNVV);\r\n\t\tString[] kna1titles = new String[kna1list.size()*2+6],kna1fields=new String[kna1list.size()*2+6];\r\n\t\tString[] knb1titles = new String[knb1list.size()*2+6],knb1fields=new String[knb1list.size()*2+6];\r\n\t\tString[] knvvtitles = new String[knvvlist.size()*2+6],knvvfields=new String[knvvlist.size()*2+6];\r\n\t\tif(kna1list!=null&&kna1list.size()>0){\r\n\t\t\tkna1titles[0]=\"操作结果\";\r\n\t\t\tkna1fields[0]=\"optflag\";\r\n\t\t\tkna1titles[1]=\"操作时间\";\r\n\t\t\tkna1fields[1]=\"opttime\";\r\n\t\t\tkna1titles[2]=\"操作人\";\r\n\t\t\tkna1fields[2]=\"optuser\";\r\n\t\t\tkna1titles[3]=\"操作\";\r\n\t\t\tkna1fields[3]=\"opt\";\r\n\t\t\tkna1titles[4]=\"操作类型\";\r\n\t\t\tkna1fields[4]=\"opttype\";\r\n\t\t\tkna1titles[5]=\"异常信息\";\r\n\t\t\tkna1fields[5]=\"optmsg\";\r\n\t\t\tint count=6;\r\n\t\t\tfor(RuntimeColumnInfo runtimeColumnInfo : kna1list){\r\n\t\t\t\tkna1titles[count]=runtimeColumnInfo.getTargetColumnName();\r\n\t\t\t\tkna1fields[count]=runtimeColumnInfo.getTargetColumn();\r\n\t\t\t\tcount++;\r\n\t\t\t\tkna1titles[count]=runtimeColumnInfo.getTargetColumnName()+\"_原值\";\r\n\t\t\t\tkna1fields[count]=runtimeColumnInfo.getTargetColumn()+\"_old\";\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(knb1list!=null&&knb1list.size()>0){\r\n\t\t\tknb1titles[0]=\"操作结果\";\r\n\t\t\tknb1fields[0]=\"optflag\";\r\n\t\t\tknb1titles[1]=\"操作时间\";\r\n\t\t\tknb1fields[1]=\"opttime\";\r\n\t\t\tknb1titles[2]=\"操作人\";\r\n\t\t\tknb1fields[2]=\"optuser\";\r\n\t\t\tknb1titles[3]=\"操作\";\r\n\t\t\tknb1fields[3]=\"opt\";\r\n\t\t\tknb1titles[4]=\"操作类型\";\r\n\t\t\tknb1fields[4]=\"opttype\";\r\n\t\t\tknb1titles[5]=\"异常信息\";\r\n\t\t\tknb1fields[5]=\"optmsg\";\r\n\t\t\tint count=6;\r\n\t\t\tfor(RuntimeColumnInfo runtimeColumnInfo : knb1list){\r\n\t\t\t\tknb1titles[count]=runtimeColumnInfo.getTargetColumnName();\r\n\t\t\t\tknb1fields[count]=runtimeColumnInfo.getTargetColumn();\r\n\t\t\t\tcount++;\r\n\t\t\t\tknb1titles[count]=runtimeColumnInfo.getTargetColumnName()+\"_原值\";\r\n\t\t\t\tknb1fields[count]=runtimeColumnInfo.getTargetColumn()+\"_old\";\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(knvvlist!=null&&knvvlist.size()>0){\r\n\t\t\tknvvtitles[0]=\"操作结果\";\r\n\t\t\tknvvfields[0]=\"optflag\";\r\n\t\t\tknvvtitles[1]=\"操作时间\";\r\n\t\t\tknvvfields[1]=\"opttime\";\r\n\t\t\tknvvtitles[2]=\"操作人\";\r\n\t\t\tknvvfields[2]=\"optuser\";\r\n\t\t\tknvvtitles[3]=\"操作\";\r\n\t\t\tknvvfields[3]=\"opt\";\r\n\t\t\tknvvtitles[4]=\"操作类型\";\r\n\t\t\tknvvfields[4]=\"opttype\";\r\n\t\t\tknvvtitles[5]=\"异常信息\";\r\n\t\t\tknvvfields[5]=\"optmsg\";\r\n\t\t\tint count=6;\r\n\t\t\tfor(RuntimeColumnInfo runtimeColumnInfo : knvvlist){\r\n\t\t\t\tknvvtitles[count]=runtimeColumnInfo.getTargetColumnName();\r\n\t\t\t\tknvvfields[count]=runtimeColumnInfo.getTargetColumn();\r\n\t\t\t\tcount++;\r\n\t\t\t\tknvvtitles[count]=runtimeColumnInfo.getTargetColumnName()+\"_原值\";\r\n\t\t\t\tknvvfields[count]=runtimeColumnInfo.getTargetColumn()+\"_old\";\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t}\r\n\t\tlong kna1totalNum = commonLogService.findTotalNum(sapDataCollection,\"Kna1Log\", json, optflag, bdate, edate);\r\n\t\tlong knb1totalNum = commonLogService.findTotalNum(sapDataCollection,\"Knb1Log\", json, optflag, bdate, edate);\r\n\t\tlong knvvtotalNum = commonLogService.findTotalNum(sapDataCollection,\"KnvvLog\", json, optflag, bdate, edate);\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tSimpleDateFormat sf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\tString today = sf.format(c.getTime());\r\n\t\tString frefixOfFileName = \"customerLog_\"+today;\r\n\t\tlong kna1pages = kna1totalNum%PERSIZE==0?kna1totalNum/PERSIZE:kna1totalNum/PERSIZE+1;\r\n\t\tlong knb1pages = knb1totalNum%PERSIZE==0?knb1totalNum/PERSIZE:knb1totalNum/PERSIZE+1;\r\n\t\tlong knvvpages = knvvtotalNum%PERSIZE==0?knvvtotalNum/PERSIZE:knvvtotalNum/PERSIZE+1;\r\n\t\tString path = \"\";\r\n\t\tif(kna1pages>1){\r\n\t\t\tfor(int i=1;i<=kna1pages;i++){\r\n\t\t\t\tList<CompanyLog> datas = commonLogService.findByPage(sapDataCollection,\"Kna1Log\", json, optflag, bdate, edate, PERSIZE, i, null, null);\r\n\t\t\t\tString filename = frefixOfFileName+\"_kna1_\"+i;\r\n\t\t\t\tpath = excelService.generateExcel(kna1titles,kna1fields, datas,Kna1Log.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tString filename = frefixOfFileName+\"_kna1\";\r\n\t\t\tList<CompanyLog> datas = commonLogService.find(sapDataCollection,\"Kna1Log\", json, optflag, bdate, edate);\r\n\t\t\tpath = excelService.generateExcel(kna1titles,kna1fields, datas,Kna1Log.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t}\r\n\t\tif(knb1pages>1){\r\n\t\t\tfor(int i=1;i<=knb1pages;i++){\r\n\t\t\t\tList<CompanyLog> datas = commonLogService.findByPage(sapDataCollection,\"Knb1Log\", json, optflag, bdate, edate, PERSIZE, i, null, null);\r\n\t\t\t\tString filename = frefixOfFileName+\"_knb1_\"+i;\r\n\t\t\t\tpath = excelService.generateExcel(knb1titles,knb1fields, datas,Knb1Log.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tString filename = frefixOfFileName+\"_knb1\";\r\n\t\t\tList<CompanyLog> datas = commonLogService.find(sapDataCollection,\"Knb1Log\", json, optflag, bdate, edate);\r\n\t\t\tpath = excelService.generateExcel(knb1titles,knb1fields, datas,Knb1Log.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t}\r\n\t\tif(knvvpages>1){\r\n\t\t\tfor(int i=1;i<=knvvpages;i++){\r\n\t\t\t\tList<CompanyLog> datas = commonLogService.findByPage(sapDataCollection,\"KnvvLog\", json, optflag, bdate, edate, PERSIZE, i, null, null);\r\n\t\t\t\tString filename = frefixOfFileName+\"_knvv_\"+i;\r\n\t\t\t\tpath = excelService.generateExcel(knvvtitles,knvvfields, datas,KnvvLog.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}else{\r\n\t\t\tString filename = frefixOfFileName+\"_knvv\";\r\n\t\t\tList<CompanyLog> datas = commonLogService.find(sapDataCollection,\"KnvvLog\", json, optflag, bdate, edate);\r\n\t\t\tpath = excelService.generateExcel(knvvtitles,knvvfields, datas,KnvvLog.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t}\r\n\t\tString zipname = frefixOfFileName;\r\n\t\texcelService.downloadZip(path, zipname, response);\r\n\t\texcelService.deleteByFilePath(path);\r\n\t}",
"@WebService\npublic interface BLFacade {\n\n\t/**\n\t * Returns the logged user account\n\t * \n\t * @return Account of the logged user\n\t */\n\n\tpublic String getCurrentUserAccount();\n\n\t/**\n\t * Sets the logged user by the given one\n\t * \n\t * @param currentUserAccount the new logged user account\n\t */\n\tpublic void setCurrentUserAccount(String currentUserAccount);\n\t\n\t\n\t\n\t\n\t/**\n\t * This method invokes the data access to attempt to create an event\n\t * @throws if event already exists\n\t * @param date in which the event is created\n\t * @param des the description about the event\n\t * @return the created event\n\t */\n\t@WebMethod public Event createEvent(Date date, Team a, Team b) throws EventAlreadyExist;\n\n\t/**\n\t * This method finds a specific event \n\t * @param event\n\t * @param date\n\t * @return boolean if\n\t */\n\t@WebMethod public boolean findEvent(String event, Date date);\n\n\n\t/**\n\t * This method retrieves the events of a given date \n\t * \n\t * @param date in which events are retrieved\n\t * @return collection of events\n\t */\n\t@WebMethod public Vector<Event> getEvents(Date date);\n\n\t/**\n\t * This method retrieves from the database the dates a month for which there are events\n\t * \n\t * @param date of the month for which days with events want to be retrieved \n\t * @return collection of dates\n\t */\n\t@WebMethod public Vector<Date> getEventsMonth(Date date);\n\n\t/**\n\t * This method creates a question for an event, with a question text and the minimum bet\n\t * \n\t * @param event to which question is added\n\t * @param question text of the question\n\t * @param betMinimum minimum quantity of the bet\n\t * @return the created question, or null, or an exception\n\t * @throws EventFinished if current data is after data of the event\n\t * @throws QuestionAlreadyExist if the same question already exists for the event\n\t */\n\t@WebMethod Question createQuestion(Event event, String question, float betMinimum) throws EventFinished, QuestionAlreadyExist;\n\n\t/**\n\t * Method to find all questions of an event\n\t * @param ev the event\n\t * @return a vector of question of the event ev\n\t */\n\t@WebMethod public Vector<Question> getQuestions(Event ev);\n\n\t/**\n\t * Method to find all questions of an event\n\t * @param ev the event\n\t * @return a collections of question of the event ev\n\t */\n\t@WebMethod public List<Question> findAllQuestion(Event ev);\n\n\t/**\n\t * This method invokes the data access to create a bet\n\t * @throws if bet already exists\n\t * @param bet a description of the bet\n\t * @param prize the prize multiplier\n\t * @param q the question where the bet is created\n\t * @return the created bet\n\t */\n\t@WebMethod public Bet createBet(String bet, float money, Question q) throws BetAlreadyExist;\n\t\n\t/**\n\t * Method to find a specific bet of a question\n\t * @param bet the bet\n\t * @param q the question the bet is related to\n\t * @return boolean, if bet is found then true else false\n\t */\n\t@WebMethod public boolean findBet(String inputQuery, Question q);\n\n\t/**\n\t * Method to Log in to MainGUI\n\t * @param userName the username of the account\n\t * @param password the password of the account\n\t * @return boolean, if log in successful then true else false\n\t */\n\t@WebMethod public boolean logIn(String userName, String password);\n\n\t/**\n\t * Method to check if logged user is admin\n\t * @param user the user to check\n\t * @return boolean if user is admin then true else false\n\t */\n\t@WebMethod public boolean isAdmin(String user);\n\n\t/**\n\t * Method to add user and its information into the database\n\t * @param name the real name\n\t * @param lastName the last name\n\t * @param email the email\n\t * @param nid the dni\n\t * @param user the username\n\t * @param password the password to log in\n\t */\n\t@WebMethod public void addUser(String name, String lastName, String email, String nid, String user, String password);\n\n\t/**\n\t * Method to check if inserted user is a valid user\n\t * @param userName the username inserted\n\t * @param pass the password inserted\n\t * @return boolean if user is valid then true else false\n\t */\n\t@WebMethod public boolean checkUser(String userName);\n\n\t/**\n\t * Method to check if nid is a valid nid\n\t * @param nid the nid\n\t * @param name the real name\n\t * @param lastName the last name\n\t * @param email the email\n\t * @return boolean if nid is valid then true else false\n\t */\n\t@WebMethod public boolean checkNid(String nid);\n\n\t/**\n\t * Method to check if dni has DNI format\n\t * @param nid the nid\n\t * @param name the real name\n\t * @param lastName the last name\n\t * @param email the email\n\t * @return boolean, if dni has dni format then true else false\n\t */\n\t@WebMethod public boolean dniValido(String nid);\n\n\t/**\n\t * This method calls the data access to initialize the database with some events and questions.\n\t * It is invoked only when the option \"initialize\" is declared in the tag dataBaseOpenMode of resources/config.xml file\n\t */\t\n\t@WebMethod public void initializeBD();\n\t\n\t/**\n\t * Method to add a bet made by a user\n\t * @param user the user that made the bet\n\t * @param bet the bet it belongs to\n\t * @param money the money the user gambled\n\t */\n\t@WebMethod public void addBetMade(Account user, Bet bet, float money);\n\n\t/**\n\t * Method to get bet of a question\n\t * @param ev the event\n\t * @param q the question\n\t * @return the bet\n\t */\n\t@WebMethod public Bet getBet(Event ev, Question q);\n\n\t/**\n\t * Method to get an account\n\t * @param user the user name of the account\n\t * @param pass the password of the account\n\t * @return the account\n\t */\n\t@WebMethod public Account getUser(String user);\n\n\t/**\n\t * Method to close event\n\t * @param event the event to close\n\t */\n\t@WebMethod public void closeEvent(Event event);\n\n\t/**\n\t * Method to get all bets of a question\n\t * @param event the event\n\t * @param question the question\n\t * @return a list of bets that belong to the question that belongs to the event\n\t */\n\t@WebMethod public List<Bet> findAllBets(Event event, Question question);\n\n\t/**\n\t * Method to set winner of a bet\n\t * @param bet the bet to set\n\t */\n\t@WebMethod public void setWinnerBet(Bet bet);\n\t\n\t/**\n\t * Method to add a coupon\n\t * @param amount the prize amount of the coupon\n\t */\n\t@WebMethod public Coupon addCoupon(Integer amount, String code);\n\t\n\t/**\n\t * This method finds the given coupon\n\t * @param coupon\n\t * @return boolean\n\t */\n\t@WebMethod public boolean findCoupon(String coupon);\n\t\n\t/**\n\t * If the given method is in the database, it is redeem by the user\n\t * @param coupon\n\t */\n\t@WebMethod public void redeemCoupon(String userName, String coupon);\n\t\n\t/**\n\t * Method to add money to an account from a payment method, if entered a negative amount it will withdraw it.\n\t * @param user The selected account\n\t * @param e The selected payment method\n\t * @param amount the money amount to add\n\t * @throws PaymentMethodNotFound \n\t * @throws NoPaymentMethodException \n\t * @throws UserNotInDBException \n\t * @throws IncorrectPaymentFormatException \n\t * @throws NullParameterException \n\t */\n\t@WebMethod public float addMoney(Account user,String e, float amount) throws NullParameterException, IncorrectPaymentFormatException, UserNotInDBException, NoPaymentMethodException, PaymentMethodNotFound;\n\n\n\t/**\n\t * Method to add a payment method to an account\n\t * @param user The selected account\n\t * @param e the payment method\n\t */\n\t@WebMethod public void addPaymentMethod(Account user,CreditCard e);\n\n\t/**\n\t * Method to remove a payment method from an account\n\t * @param user the account\n\t * @param card the payment method\n\t */\n\t@WebMethod public void removePaymentMethod(Account user,String card);\n\t\n\t/**\n\t * Method to get all the payment methods of an account\n\t * @param user the account\n\t * @return A vector of all the payment methods\n\t */\n\t@WebMethod public LinkedList<CreditCard> getAllPaymentMethods(Account user);\n\t\n\t/**\n\t * Method to get a coupon from the data base\n\t * @param coupon the code of the coupon to search\n\t * @return the coupon\n\t */\n\t@WebMethod public Coupon getCoupon(String coupon);\n\n\t/**\n\t * Method to get all bets made by a user\n\t * @param ac the account to get all bets made\n\t * @return a collection of bets made by the account\n\t */\n\t@WebMethod public List<BetMade> getBetsMade(Account ac);\n\t\n\t/**\n\t * Method to get all active events\n\t * @return a list of all events\n\t */\n\t@WebMethod public List<Event> getAllEvents();\n\t\n\t/**\n\t * Method to get all bets made from an active event\n\t * @param ev the event\n\t * @return a list of bets made\n\t */\n\t@WebMethod public List<BetMade> getBetsFromEvents(Event ev);\n\t\n\t/**\n\t * Method to get all teams\n\t * @return a list of teams\n\t */\n\t@WebMethod public List<Team> getAllTeams();\n\t\n\t/**\n\t * Method to add a team into the database\n\t * @param name the name of the team\n\t * @return the added team\n\t */\n\t@WebMethod public Team addTeam(String name) throws TeamAlreadyExists;\n\n\n}",
"private WebServicesFabrica(){}",
"@WebService\npublic interface BLFacade {\n\t \n\n\t/**\n\t * This method creates a question for an event, with a question text and the minimum bet\n\t * \n\t * @param event to which question is added\n\t * @param question text of the question\n\t * @param betMinimum minimum quantity of the bet\n\t * @return the created question, or null, or an exception\n\t * @throws EventFinished if current data is after data of the event\n \t * @throws QuestionAlreadyExist if the same question already exists for the event\n\t */\n\t@WebMethod Question createQuestion(Event event, String question, double betMinimum) throws EventFinished, QuestionAlreadyExist;\n\t\n\t\n\t/**\n\t * This method retrieves the events of a given date \n\t * \n\t * @param date in which events are retrieved\n\t * @return collection of events\n\t */\n\t@WebMethod public ArrayList<Event> getEvents(LocalDate date);\n\t\n\t/**\n\t * This method retrieves from the database the dates a month for which there are events\n\t * \n\t * @param date of the month for which days with events want to be retrieved \n\t * @return collection of dates\n\t */\n\t@WebMethod public ArrayList<LocalDate> getEventsMonth(LocalDate date);\n\t\n\t/**\n\t * This method calls the data access to initialize the database with some events and questions.\n\t * It is invoked only when the option \"initialize\" is declared in the tag dataBaseOpenMode of resources/config.xml file\n\t */\t\n\t@WebMethod public void initializeBD();\n\t\n\t/**\n\t * Metodo honek erabiltzaile izen eta pasahitz bat jasota, bi hauek dituen pertsona bat bilatzen du datu basean.\n\t * Aurkitzen badu itzuli egiten du bestela null balioa.\n\t * @param erabiltzaileIzena \n\t * @param pasahitza\n\t * @return \n\t */\n\t@WebMethod public Pertsona isLogin(String erabiltzaileIzena, String pasahitza);\n\t\n\t/**\n\t * Metodo honek, erabiltzaile izen gisa erabiltzaileIzena duen Pertsonarik ez badago datu basean, sarrerako datuekin\n\t * bat sortu eta datu-basean gehitzen du\n\t * @param izena\n\t * @param abizena1\n\t * @param abizena2\n\t * @param erabiltzaileIzena\n\t * @param pasahitza\n\t * @param telefonoa\n\t * @param emaila\n\t * @param jaiotzeData\n\t * @param mota\n\t * @return\n\t * @throws UserAlreadyExist\n\t */\n\t@WebMethod public Pertsona register(String izena, String abizena1, String abizena2, String erabiltzaileIzena, String pasahitza, String telefonoa, String emaila, LocalDate jaiotzeData, String mota) throws UserAlreadyExist;\n\t\n\t/**\n\t * Metodo honek description eta eventDate dituen gertaerarik ez badago datu basean, sortu eta gehitu egiten du\n\t * @param description\n\t * @param eventDate\n\t * @throws EventAlreadyExist\n\t */\n\t@WebMethod public void createEvent(String description, LocalDate eventDate) throws EventAlreadyExist;\n\t\n\t@WebMethod public ArrayList<Question> getQuestions(Event event);\n\t\n\t@WebMethod Pronostikoa createPronostic(Question question, String description, double kuota) throws PronosticAlreadyExist;\n\t\n\t@WebMethod public void emaitzaIpini(Question question, Pronostikoa pronostikoa);\n\t\n\t@WebMethod public Bezeroa apustuaEgin(ArrayList<Pronostikoa> pronostikoak, double a, Bezeroa bezero);\n\t\n\t@WebMethod public Bezeroa deleteApustua(Apustua a) throws EventFinished;\n\t\n\t@WebMethod public Bezeroa diruaSartu(double u, Bezeroa bezero);\n\t\n\t@WebMethod public void ezabatuGertaera(Event event);\n\t\n\t@WebMethod public Bezeroa getBezeroa(String ErabiltzaileIzena);\n\t\n\t@WebMethod public Langilea getLangilea(String ErabiltzaileIzena);\n\t\n\t@WebMethod public ArrayList<Bezeroa> getBezeroak(String username, Bezeroa bezeroa);\n\t\n\t@WebMethod public Bezeroa bidaliMezua(Bezeroa nork, Bezeroa nori, String mezua, String gaia, String mota, double zenbatApostatu, double hilabeteanZenbat, double zenbatErrepikatuarentzat);\n\n\t@WebMethod public ArrayList<Mezua> getMezuak(Bezeroa bezeroa);\n\t\n\t@WebMethod public void mezuaIrakurri(Mezua mezua);\n\t\n\t@WebMethod public void removeMezua(Mezua mezua);\n\t\n\t@WebMethod public Bezeroa eguneratuEzarpenak(Bezeroa b, double komisioa, boolean publikoa);\n\t\n\t@WebMethod public void errepikatu(Bezeroa nork, Bezeroa nori, double apustatukoDena, double hilabetekoMax, double komisioa);\n\t\n\t@WebMethod public ArrayList<PronostikoaContainer> getPronostikoak(Apustua a);\n\t\n\t@WebMethod public ArretaElkarrizketa arretaMezuaBidali(ArretaElkarrizketa elkarrizketa, String mezua, boolean langileari);\n\t\n\t@WebMethod public ArretaElkarrizketa bezeroaEsleitu(Langilea langilea);\n\t\n\t@WebMethod public ArretaElkarrizketa arretaElkarrizketaSortu(Bezeroa bezeroa, String gaia, String mezua);\n\t\n\t@WebMethod public BezeroaContainer getBezeroaContainer(Bezeroa b);\n\t\n\t@WebMethod public void geldituElkarrizketa(ArretaElkarrizketa ae);\n\t\n\t@WebMethod public void amaituElkarrizketa(ArretaElkarrizketa ae);\n\t\n\t@WebMethod public void gehituPuntuazioa(ArretaElkarrizketa l, Integer x);\n\t\n\t@WebMethod public void eguneratuErrepikapenak();\n\n\t@WebMethod public ArrayList<Langilea> getLangileak();\n\t\n\t@WebMethod public ArrayList<ErrepikatuakContainer> getErrepikatzaileak(Bezeroa bezeroa);\n\t \n\t@WebMethod public void jarraitzeariUtzi(Errepikapena errepikapena);\n\t\t \n\t@WebMethod public ArrayList<ErrepikatuakContainer> getErrepikapenak(Bezeroa bezeroa);\n\t\n\t@WebMethod public ArretaElkarrizketa getArretaElkarrizketa(ArretaElkarrizketa ae);\n}",
"public static void main(String[] args) {\n Module module = ActivatorToolBox.simpleLink(new BaseDBActivator(),\n new ConfigurationActivator(),\n new StandaloneModeActivator(),\n new ModuleHealActivator(),\n new StateServiceActivator(),\n new ChartBaseActivator(),\n new SchedulerActivator(),\n new ReportBaseActivator(),\n new RestrictionActivator(),\n new ReportActivator(),\n new WriteActivator());\n SimpleWork.supply(CommonOperator.class, new CommonOperatorImpl());\n String envpath = \"//Applications//FineReport10_325//webapps//webroot//WEB-INF\";\n SimpleWork.checkIn(envpath);\n I18nResource.getInstance();\n module.start();\n\n\n ResultWorkBook rworkbook = null;\n try {\n // read the workbook\n TemplateWorkBook workbook = TemplateWorkBookIO.readTemplateWorkBook(\"//doc//Primary//Parameter//Parameter.cpt\");\n // get the parameters and set value\n Parameter[] parameters = workbook.getParameters();\n parameters[0].setValue(\"华东\");\n // define a parameter map to execute the workbook\n java.util.Map parameterMap = new java.util.HashMap();\n for (int i = 0; i < parameters.length; i++) {\n parameterMap.put(parameters[i].getName(), parameters[i]\n .getValue());\n }\n\n FileOutputStream outputStream;\n\n // unaltered export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//ExcelExport.xls\"));\n ExcelExporter excel = new ExcelExporter();\n excel.setVersion(true);\n excel.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // unaltered export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//ExcelExport.xlsx\"));\n StreamExcel2007Exporter excel1 = new StreamExcel2007Exporter();\n excel.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // full page export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageExcelExport.xls\"));\n PageExcelExporter page = new PageExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())));\n page.setVersion(true);\n page.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // full page export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageExcelExport.xlsx\"));\n PageExcel2007Exporter page1 = new PageExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook));\n page1.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // page to sheet export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageSheetExcelExport.xls\"));\n PageToSheetExcelExporter sheet = new PageToSheetExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())));\n sheet.setVersion(true);\n sheet.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // page to sheet export to xlsx\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//PageSheetExcelExport.xlsx\"));\n PageToSheetExcel2007Exporter sheet1 = new PageToSheetExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook));\n sheet1.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n // Large data volume export to xls\n outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//LargeExcelExport.zip\"));\n LargeDataPageExcelExporter large = new LargeDataPageExcelExporter(ReportUtils.getPaperSettingListFromWorkBook(workbook.execute(parameterMap,new WriteActor())), true);\n\n // Large data volume export to xlsx\n // outputStream = new FileOutputStream(new File(\"//Users//susie//Downloads//LargeExcelExport.xlsx\"));\n // LargeDataPageExcel2007Exporter large = new LargeDataPageExcel2007Exporter(ReportUtils.getPaperSettingListFromWorkBook(rworkbook), true);\n large.export(outputStream, workbook.execute(parameterMap,new WriteActor()));\n\n outputStream.close();\n module.stop();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"client-\"+date.getTime()+\".xls\";\n\t\tTableToExcel.save(grid,nameFile);\n\t}",
"public Preparation(){\n\t\ttry {\n\t\t\t\n\t\t\tValueObjectRetrieve valueObjectRetrieve = new ValueObjectRetrieve(\"StaticData\",new Integer(1),remotehosturi);\n\t\t\tStaticData staticData = (StaticData)valueObjectRetrieve.getValueObject();\n\t\t\tHttpPost httpPost = new HttpPost(\"name\",nameofj2eeproject,null,remotehosturi,\"J2eeProject\");\n\t\t\tSystem.err.println(httpPost.isOk());\n\t\t\t\n\t\t\tFile file = new File(eclipseroot + nameofj2eeproject + \"/mda\");\n\t\t\tfile.mkdir();\n\t\t\t\n\t\t\tFile webxmlfile = new File(eclipseroot + nameofj2eeproject + \"/WEB-INF/web.xml\");\n\t\t\t\n\t\t\tFileDownload fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/base.css\",remotehosturi + \"/base.css\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/createscheme.bat\",remotehosturi + \"/mda/createscheme.bat\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/dropscheme.bat\",remotehosturi + \"/mda/dropscheme.bat\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/h.jsp\",remotehosturi + \"/h.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/index.jsp\",remotehosturi + \"/index.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/menu.jsp\",remotehosturi + \"/menu.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/mysql-connector-java-3.1.12-bin.jar\",remotehosturi + \"/mda/mysql-connector-java-3.1.12-bin.jar\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/systemheader.jsp\",remotehosturi + \"/systemheader.jsp\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/web.xml\",remotehosturi + \"/WEB-INF/web.xml\");\n\t\t\t fileDownload = new FileDownload(eclipseroot + nameofj2eeproject+\"/templates/.classpath\",remotehosturi + \"/.classpath\");\n\n\t\t\t \n\t\t\tHttpClient httpClient = new HttpClient(); \n\t\t\tGetMethod getMethod = new GetMethod(\"http://\" + remotehosturi + \"/templates/copycorejar.bat\");\n\t\t\thttpClient.executeMethod(getMethod);\n\t\t\tString contentofcopycorejat_bat = getMethod.getResponseBodyAsString();\n\t\t\tcontentofcopycorejat_bat = contentofcopycorejat_bat.replaceAll(\"nameofj2eeproject\",nameofj2eeproject);\n\t\t\tFile copycorejat_batfile = new File(eclipseroot + nameofj2eeproject + \"/mda/copycorejar.bat\");\n\t\t\tFileWriter writer = new FileWriter(copycorejat_batfile);\n\t\t\twriter.write(contentofcopycorejat_bat);\n\t\t\t\n\t\t\thttpClient = new HttpClient(); \n\t\t\tgetMethod = new GetMethod(\"http://\" + remotehosturi + \"/templates/createscheme.bat\");\n\t\t\thttpClient.executeMethod(getMethod);\n\t\t\tString content = getMethod.getResponseBodyAsString();\n\t\t\tcontent = content.replaceAll(\"nameofj2eeproject\",nameofj2eeproject);\n\t\t\tFile instancefile = new File(eclipseroot + nameofj2eeproject + \"/mda/copycorejar.bat\");\n\t\t\twriter = new FileWriter(instancefile);\n\t\t\twriter.write(contentofcopycorejat_bat);\n//\t\t\tFile base_css = new File(eclipseroot + nameofj2eeproject + \"base.css\");\n\t\t\t\n\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void execute() throws XDocletException {\n\t\tsetPublicId(DD_PUBLICID_20);\n\t\tsetSystemId(DD_SYSTEMID_20);\n\n\t\t// will not work .... dumper.xdt does not exist\n\t\t/*\n\t\tsetTemplateURL(getClass().getResource(\"resources/dumper.xdt\"));\n\t\tsetDestinationFile(\"dump\");\n\t\tSystem.out.println(\"Generating dump\");\n\t\tstartProcess();\n\t\t*/\n\n\n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_EJB_JAR_XML_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"ejb-jar.xml\");\n\t\tSystem.out.println(\"Generating ejb-jar.xml\");\n\t\tstartProcess();\n\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_BND_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_BND_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_BND_FILE_NAME);\n startProcess();\n\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_EXT_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_EXT_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_EXT_FILE_NAME);\n startProcess();\n \n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_EXT_PME_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_EXT_PME_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_EXT_PME_FILE_NAME);\n startProcess();\n\n /*\n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_ACCESS_BEAN_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_ACCESS_FILE_NAME);\n System.out.println(\"Generating \" + WEBSPHERE_DD_ACCESS_FILE_NAME);\n startProcess();\n */\n \n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_MAPXMI_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"backends/\" + getDb() + \"/Map.mapxmi\");\n\t\tSystem.out.println(\"Generating backends/\" + getDb() + \"/Map.mapxmi\");\n\t\tstartProcess();\n \n setTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_DBXMI_TEMPLATE_FILE));\n setDestinationFile(\"backends/\" + getDb() + \"/\" + getSchema() + \".dbxmi\");\n System.out.println(\"Generating backends/\" + getDb() + \"/\" + getSchema() + \".dbxmi\");\n startProcess();\n \n\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_SCHXMI_TEMPLATE_FILE));\n\t\tsetDestinationFile(\"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql.schxmi\");\n\t\tSystem.out.println(\"Generating backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql.schxmi\");\n\t\tstartProcess();\n\t\t\n\t\tCollection classes = getXJavaDoc().getSourceClasses();\n\t\tfor (ClassIterator i = XCollections.classIterator(classes); i.hasNext();) {\n\t\t\tXClass clazz = i.next();\n\t\t\t//System.out.print(\">> \" + clazz.getName());\n\t\t\t// check tag ejb:persistence + sub tag table-name\n\t\t\tXTag tag = clazz.getDoc().getTag(\"ejb:persistence\");\n\t\t\tif (tag != null) {\n\t\t\t\tString tableName = tag.getAttributeValue(\"table-name\");\n\t\t\t\t//System.out.println(\"ejb:persistence table-name = '\" + tableName + \"'\");\n\t\t\t\tString destinationFileName = \"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql_\" + tableName + \".tblxmi\";\n\t\t\t\tSystem.out.println(\"Generating \" + destinationFileName);\n\t\t\t\t\n\t\t\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_TBLXMI_TEMPLATE_FILE));\n\t\t\t\tsetDestinationFile(destinationFileName);\n\t\t\t\tsetHavingClassTag(\"ejb:persistence\");\n\t\t\t\tsetCurrentClass(clazz);\n\t\t\t\tstartProcess();\n\t\t\t}\n\t\t\t// Now, check for relationships \n\t\t\tfor (Iterator methods = clazz.getMethods().iterator(); methods.hasNext();) {\n\t\t\t\tXMethod method = (XMethod)methods.next();\n\t\t\t\tif (method.getDoc().hasTag(\"websphere:relation\")) {\n\t\t\t\t\tString tableName = method.getDoc().getTagAttributeValue(\"websphere:relation\",\"table-name\");\n\t\t\t\t\tsetTemplateURL(getClass().getResource(WEBSPHERE_DEFAULT_RELATIONSHIP_TBLXMI_TEMPLATE_FILE));\n\t\t\t\t\tString destinationFileName = \"backends/\" + getDb() + \"/\" + getSchema() + \"_\" + getUser() + \"_sql_\" + tableName + \".tblxmi\";\n\t\t\t\t\tsetDestinationFile(destinationFileName);\n\t\t\t\t\tsetCurrentClass(clazz);\n\t\t\t\t\tsetCurrentMethod(method);\n\t\t\t\t\tSystem.out.println(\"\\tGenerating M-M Relationship table: \" + destinationFileName);\n\t\t\t\t\tstartProcess();\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\t\n\n\t\t}\n\n/*\n if (atLeastOneCmpEntityBeanExists()) {\n setTemplateURL(getClass().getResource(WEBSPHERE_SCHEMA_TEMPLATE_FILE));\n setDestinationFile(WEBSPHERE_DD_SCHEMA_FILE_NAME);\n startProcess();\n }\n*/\n }",
"@Override\r\n\tpublic void exportExcel(SapDataCollection sapDataCollection,\r\n\t\t\tJSONObject json, HttpServletResponse response) throws IOException,\r\n\t\t\tSecurityException, NoSuchMethodException, IllegalArgumentException,\r\n\t\t\tIllegalAccessException, InvocationTargetException,\r\n\t\t\tURISyntaxException {\n\t\tString path = \"\";\r\n\t\tList<RuntimeColumnInfo> kna1cols = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNA1);\r\n\t\tList<RuntimeColumnInfo> knb1cols = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNB1);\r\n\t\tList<RuntimeColumnInfo> knvvcols = runtime_ColumnInfo_Service.findAllActiveData(sapDataCollection, SjlxTypeName.TYPE_CUSTOMER_KNVV);\r\n\t\tlong kna1totalNum = commonService.findTotalNum(sapDataCollection,\"Kna1\", json);\r\n\t\tlong knb1totalNum = commonService.findTotalNum(sapDataCollection,\"Knb1\", json);\r\n\t\tlong knvvtotalNum = commonService.findTotalNum(sapDataCollection,\"Knvv\", json);\r\n\t\tString[] kna1titles = new String[kna1cols.size()],kna1fields=new String[kna1cols.size()];\r\n\t\tString[] knb1titles = new String[kna1cols.size()],knb1fields=new String[knb1cols.size()];\r\n\t\tString[] knvvtitles = new String[kna1cols.size()],knvvfields=new String[knvvcols.size()];\r\n\t\tint k=0;\r\n\t\tfor(RuntimeColumnInfo col : kna1cols){\r\n\t\t\tkna1titles[k]=col.getTargetColumnName()+\"(\"+col.getTargetColumn()+\")\";\r\n\t\t\tkna1fields[k]=col.getTargetColumn();\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tk=0;\r\n\t\tfor(RuntimeColumnInfo col : knb1cols){\r\n\t\t\tknb1titles[k]=col.getTargetColumnName()+\"(\"+col.getTargetColumn()+\")\";\r\n\t\t\tknb1fields[k]=col.getTargetColumn();\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tk=0;\r\n\t\tfor(RuntimeColumnInfo col : knvvcols){\r\n\t\t\tknvvtitles[k]=col.getTargetColumnName()+\"(\"+col.getTargetColumn()+\")\";\r\n\t\t\tknvvfields[k]=col.getTargetColumn();\r\n\t\t\tk++;\r\n\t\t}\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tSimpleDateFormat sf = new SimpleDateFormat(\"yyyyMMdd\");\r\n\t\tString today = sf.format(c.getTime());\r\n\t\tString frefixOfFileName = \"customer_\"+today;\r\n\t\tif(kna1totalNum>0){\r\n\t\t\tlong pages = kna1totalNum%PERSIZE==0?kna1totalNum/PERSIZE:kna1totalNum/PERSIZE+1;\r\n\t\t\tif(pages>1){\r\n\t\t\t\tfor(int i=1;i<=pages;i++){\r\n\t\t\t\t\tList<Kna1> datas = commonService.findByPage(sapDataCollection,\"Kna1\", json, PERSIZE, i,null,null);\r\n\t\t\t\t\tString filename = frefixOfFileName+\"_kna1_\"+i;\r\n\t\t\t\t\tpath = excelService.generateExcel(kna1titles,kna1fields, datas,Kna1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tString filename = frefixOfFileName+\"_kna1\";\r\n\t\t\t\tList<Kna1> datas = commonService.findByPage(sapDataCollection,\"Kna1\", json, PERSIZE, 1,null,null);\r\n\t\t\t\tpath = excelService.generateExcel(kna1titles,kna1fields, datas,Kna1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(knb1totalNum>0){\r\n\t\t\tlong pages = knb1totalNum%PERSIZE==0?knb1totalNum/PERSIZE:knb1totalNum/PERSIZE+1;\r\n\t\t\tif(pages>1){\r\n\t\t\t\tfor(int i=1;i<=pages;i++){\r\n\t\t\t\t\tList<Knb1> datas = commonService.findByPage(sapDataCollection,\"Knb1\", json, PERSIZE, i,null,null);\r\n\t\t\t\t\tString filename = frefixOfFileName+\"_knb1_\"+i;\r\n\t\t\t\t\tpath = excelService.generateExcel(knb1titles,knb1fields, datas,Knb1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tString filename = frefixOfFileName+\"_knb1\";\r\n\t\t\t\tList<Knb1> datas = commonService.findByPage(sapDataCollection,\"Knb1\", json, PERSIZE, 1,null,null);\r\n\t\t\t\tpath = excelService.generateExcel(knb1titles,knb1fields, datas,Knb1.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}\r\n\t\tif(knvvtotalNum>0){\r\n\t\t\tlong pages = knvvtotalNum%PERSIZE==0?knvvtotalNum/PERSIZE:knvvtotalNum/PERSIZE+1;\r\n\t\t\tif(pages>1){\r\n\t\t\t\tfor(int i=1;i<=pages;i++){\r\n\t\t\t\t\tList<Knvv> datas = commonService.findByPage(sapDataCollection,\"Knvv\", json, PERSIZE, i,null,null);\r\n\t\t\t\t\tString filename = frefixOfFileName+\"_knvv_\"+i;\r\n\t\t\t\t\tpath = excelService.generateExcel(knvvtitles,knvvfields, datas,Knvv.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t\t}\r\n\t\t\t}else{\r\n\t\t\t\tString filename = frefixOfFileName+\"_knvv\";\r\n\t\t\t\tList<Knvv> datas = commonService.findByPage(sapDataCollection,\"Knvv\", json, PERSIZE, 1,null,null);\r\n\t\t\t\tpath = excelService.generateExcel(knvvtitles,knvvfields, datas,Knvv.class, sapDataCollection, SjlxTypeName.TYPE_CUSTOMER, filename);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString zipname = frefixOfFileName;\r\n\t\texcelService.downloadZip(path, zipname, response);\r\n\t\texcelService.deleteByFilePath(path);\r\n\t}",
"private DataService() {\n\t\tusers = new LinkedHashSet<>();\n\t\tlists = new LinkedHashSet<>();\n\t\ttasks = new LinkedHashMap<>();\n\t\tdbManager = DBManager.getInstance();\n\t\tdbManager.initialize();\n\t\tusers = dbManager.getUsers();\n\n\t\toutputFile = System.getProperty(\"user.dir\")+\"/output/\"+Calendar.getInstance().getTimeInMillis()+\"_Output.txt\";\n\t}",
"public interface OmcSchemaManagementService {\n public void txnSchemaUpload(\n OmcEnvironment.Environment envionment,\n String schemaDir,\n boolean isClassAttrUpload,\n boolean isMenuUpload,\n boolean isLifeCycleUpload,\n boolean isEtcUpload,\n boolean isConstantUpload,\n boolean isTemporaryOnly,\n Map<String,String> schemaExcelScheet);\n public void synchronizeClassProcess(OmcEnvironment.Environment envionment, String propertyUtilClass, String objectRootVOClass);\n public void dumpTableScripts(OmcEnvironment.Environment envionment,boolean isFull, boolean includeCreateIndex, long targetDBMSType);\n public void txnInitialSchemaSetupMain(OmcEnvironment.Environment envionment,String defaultSite);\n //public void secondSchemaSetupMain(OmcEnvironment.Environment envionment);\n public void dumpIndexScriptsAll(OmcEnvironment.Environment envionment, boolean isParallelOption);\n}",
"@PostConstruct\r\n\tpublic void init() {\r\n\t\tLOGGER.info(\":: En postconsruct EAPI \");\r\n\t\t// reportId = 2;\r\n\t\t// tcReporte = reportesRepository.findOne(reportId);\r\n\t\tjasperReporteName = \"EAPI\";\r\n\t\tendFilename = jasperReporteName + \".pdf\";\r\n\t}",
"@RemoteServiceRelativePath(\"action/account\")\npublic interface AccountService extends RemoteService {\n\t\n\t@BusinessAnnotation(serviceno=1,recordLog= true)\n\tList<Map<String, String>> getBgAccountInfo() throws Exception;\n\t\n\t@BusinessAnnotation(serviceno=2,recordLog= true)\n\tList<Map<String, String>> getAccountInfo() throws Exception;\n\t\n\t@BusinessAnnotation(serviceno=3,recordLog= true)\n\tList<Map<String, String>> exportDataToExcel(Map<String,String> paramMap) throws Exception;\n}",
"public void exportAllLists(){\n }",
"public SSTBrexitDashboardService() {\n\t\tuserTeamDataService = new UserTeamDBDataService();\n\t\tindexDashboardService = new IndexDBDataService();\n\t}",
"public interface IDataExportService {\n\n /**\n * Exports data for a single user to a temporary file.\n *\n * @param query the query that selects the data to export.\n * @return a unique token for downloading the exported file.\n *\n * @throws ApplicationException if the query execution or file creation fails.\n */\n String export(UserDataExportQuery query) throws ApplicationException;\n\n /**\n * Exports data for a single utility to a file. Any exported data file is replaced.\n *\n * @param query the query that selects the data to export.\n *\n * @throws ApplicationException if the query execution or file creation fails.\n */\n void export(UtilityDataExportQuery query) throws ApplicationException;\n\n}",
"public Emp_Payroll_JDBC_Main() {\n\t\temployeePayrollDBServicebj = EmpPayrollDBService.getInstance();\n\t\tnormalisedDBServiceObj = EmpPayrollDBServiceNormalised.getInstance();\n\t}",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"IWsPmsSdkService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[9];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getRoadwayPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"doControl\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleAlarmInfoPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getEntrancePage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[4]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleRecordPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[5]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getDictionaryPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[6]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getVehicleBookPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[7]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://impl.thirdsdk.api.pms.cms.hikvision.com\", \"getParkPage\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[8]=__operation;\n \n \n }",
"protected void doRun() {\n\n\t\tFile dirFile = null;\n\t\ttry {\n\t\t\tdirFile = new File(exportConfig.getDataFileFolder() + File.separator + \"ddl\");\n\t\t\tif (!dirFile.exists()) {\n\t\t\t\tdirFile.mkdir();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLOGGER.error(\"create schema dir error : \", e);\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\t\t\tString schemaFile = null;\n\t\t\tString indexFile = null;\n\t\t\tString triggerFile = null;\n\t\t\tif (exportConfig.isExportSchema()) {\n\t\t\t\tschemaFile = dirFile + File.separator + \"schema.sql\";\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataBeginOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SCHEMA));\n\t\t\t}\n\t\t\tif (exportConfig.isExportIndex()) {\n\t\t\t\tindexFile = dirFile + File.separator + \"index.sql\";\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataBeginOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_INDEX));\n\t\t\t}\n\t\t\tif (exportConfig.isExportTrigger()) {\n\t\t\t\ttriggerFile = dirFile + File.separator + \"trigger.sql\";\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataBeginOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_TRIGGER));\n\t\t\t}\n\n\t\t\tSet<String> tableSet = new HashSet<String>();\n\t\t\ttableSet.addAll(exportConfig.getTableNameList());\n\t\t\tExprotToOBSHandler.exportSchemaToOBSFile(dbInfo, exportDataEventHandler, tableSet,\n\t\t\t\t\tschemaFile, indexFile, triggerFile, exportConfig.getFileCharset(),\n\t\t\t\t\texportConfig.isExportSerialStartValue(), false);\n\n\t\t\tif (exportConfig.isExportSchema()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataSuccessEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SCHEMA));\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFinishOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SCHEMA));\n\t\t\t}\n\t\t\tif (exportConfig.isExportIndex()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataSuccessEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_INDEX));\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFinishOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_INDEX));\n\t\t\t}\n\t\t\tif (exportConfig.isExportTrigger()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataSuccessEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_TRIGGER));\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFinishOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_TRIGGER));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tif (exportConfig.isExportSchema()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFailedOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SCHEMA));\n\t\t\t}\n\t\t\tif (exportConfig.isExportIndex()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFailedOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_INDEX));\n\t\t\t}\n\t\t\tif (exportConfig.isExportTrigger()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFailedOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_TRIGGER));\n\t\t\t}\n\t\t\tLOGGER.error(\"create schema index trigger error : \", e);\n\t\t}\n\n\t\ttry {\n\t\t\tif (exportConfig.isExportSerial()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataBeginOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SERIAL));\n\t\t\t\tString serialFile = dirFile + File.separator + \"serial.sql\";\n\t\t\t\texportSerial(serialFile);\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataSuccessEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SERIAL));\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFinishOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_SERIAL));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\texportDataEventHandler.handleEvent(new ExportDataFailedOneTableEvent(\n\t\t\t\t\tExportConfig.TASK_NAME_SERIAL));\n\t\t\tLOGGER.error(\"create serial.sql error : \", e);\n\t\t}\n\n\t\ttry {\n\t\t\tif (exportConfig.isExportView()) {\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataBeginOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_VIEW));\n\t\t\t\tString viewFile = dirFile + File.separator + \"view.sql\";\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataSuccessEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_VIEW));\n\t\t\t\texportDataEventHandler.handleEvent(new ExportDataFinishOneTableEvent(\n\t\t\t\t\t\tExportConfig.TASK_NAME_VIEW));\n\t\t\t\texportView(viewFile);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\texportDataEventHandler.handleEvent(new ExportDataFailedOneTableEvent(\n\t\t\t\t\tExportConfig.TASK_NAME_VIEW));\n\t\t\tLOGGER.error(\"create view.sql error : \", e);\n\t\t}\n\t}",
"public static void wsdl() {\n\t\trender(\"Services/MonitoringService.wsdl\");\n\t}",
"public ServiceExportConfigurationInfo exportConfiguration() {\n return this.exportConfiguration;\n }",
"public interface CoreReportService {\n /**\n * 生成excel报表文件\n *\n * @param reportName 报表名称\n * @param reportSql 调用报表sql\n * @param params 请求参数\n * @param keys 通过key为获取sql返回结果数据,\n * @param headers excel第一行表头\n */\n void createReportExcelFile(String taskId,\n String reportName,\n String reportSql,\n Object[] params,\n String[] keys,\n String[] headers);\n}",
"public DBCursor exportData() {\n\t\tCalendar startDate = new GregorianCalendar(2012, 9-1, 01, 0, 0, 0);\n\t\tCalendar endDate = new GregorianCalendar(2012, 9-1, 30, 23, 59, 59);\n\n\t\t/*\t*/\n\t\tBasicDBObject query = new BasicDBObject(\"date\", new BasicDBObject(\n\t\t\t\t\"$gte\", startDate.getTime()).append(\"$lte\", endDate.getTime()));\n\t\t//query.append(\"componentName\", \"CONTROL/DV10/FrontEnd/Cryostat\");\n\t\t//query.append(\"monitorPointName\", \"GATE_VALVE_STATE\");\n\t\t//query.append(\"componentName\", \"CONTROL/DV16/LLC\");\n\t\t//query.append(\"monitorPointName\", \"POL_MON4\");\n\n\t\t// Used only when the query take more than 10 minutes.\n\t\t_collection.addOption(Bytes.QUERYOPTION_NOTIMEOUT);\n\n\t\t/*\t*/\n\n\t\t// Registros utilizados para probar la diferencia de la zona horaria \n\t\t// local con la del servidor de mongo\n\t\t//BasicDBObject query = new BasicDBObject(\"_id\", new ObjectId(\"50528be325d8b6dfbafd7ac2\"));\n\t\t//BasicDBObject query = new BasicDBObject(\"_id\", new ObjectId(\"50529496a310ecc5da59531c\"));\n\n\t\tcursor = _collection.find(query);\n\n\t\t//System.out.println(\"Collections: \"+_database.getCollectionNames());\n\t\t\n\t\t//System.out.println(\"Error: \"+_database.getLastError());\n\t\treturn cursor;\n\t}",
"public interface STConstant {\n\n /** The base resource path for this application. */\n String BASE_RES_PATH = \"/com/sandy/stocktracker/\" ;\n\n /** The date format used for NSE EOD dates in the CSV files. */\n SimpleDateFormat DATE_FMT = new SimpleDateFormat( \"dd-MMM-yyyy\" ) ;\n\n /** The time format used for ITD title displays and general time displays. */\n SimpleDateFormat TIME_FMT = new SimpleDateFormat( \"HH:mm:ss\" ) ;\n\n /** The the expanded time format. */\n SimpleDateFormat DATE_TIME_FMT = new SimpleDateFormat( \"dd-MMM-yyyy HH:mm:ss\" ) ;\n\n /** The prefix for drop values indicating the drop value as scrip name. */\n String DROP_VAL_SCRIP = \"SCRIP:\" ;\n\n /** The application config key against which the install directory is specified. */\n String CFG_KEY_INSTALL_DIR = \"pluto.install.dir\" ;\n\n /** The application config key against which biz start hour is specified. */\n String CFG_KEY_NSE_BIZ_START_HR = \"nse.business.start.time\" ;\n\n /** The application config key against which biz end hour is specified. */\n String CFG_KEY_NSE_BIZ_END_HR = \"nse.business.end.time\" ;\n\n /** The number of days for which to show old news. */\n String CFG_KEY_NUM_OLD_DAYS_NEWS = \"news.display.num.days\" ;\n}",
"public FileObject getWebservicesDD();",
"void export(UtilityDataExportQuery query) throws ApplicationException;",
"private ExportUsers() {}",
"protected static void exportData(ProcessSteps step){\n try {\n Runtime.getRuntime().exec(\"mongoexport --host localhost --port 27017 \" +\n \"-d\" + step.toString() +\n \"-o ./dump/\" + step.toString() + \".json\");\n }\n catch (IOException e){\n e.printStackTrace();\n }\n }",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData getCompanyBaseData();",
"public static void main(String[] args) {\n\t\tString data = \"\";\r\n ExportFactory exportFactory = new ExportHtmlFactory();\r\n ExportFile ef = exportFactory.factory(\"financial\");\r\n ef.export(data);\r\n\t}",
"public CommonDataServiceForAppsSink() {}",
"public ModelExportToExcelService() {\n\t\tsuper();\n\t}",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"HISWebService\" +\r\n getUniqueSuffix());\r\n addAnonymousOperations();\r\n\r\n //creating the operations\r\n org.apache.axis2.description.AxisOperation __operation;\r\n\r\n _operations = new org.apache.axis2.description.AxisOperation[40];\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XXBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[0] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"createCardPatInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[1] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getGhlb\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[2] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_XDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[3] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"updateZYYJJ\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[4] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"appNoList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[5] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemData\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[6] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCHBList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[7] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"sapInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[8] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_ZQGSZSYBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[9] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"msgInterface\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[10] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_YDBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[11] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getPeopleFeeStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[12] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorDe\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[13] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getsfzy\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[14] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getDoctorList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[15] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAdmByCardNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[16] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"bankAddDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[17] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"accSearch\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[18] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getChargetariff\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[19] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXYJCBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[20] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillDetailByAd\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[21] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_CTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[22] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"iDCardCheck\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[23] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"dOCKSList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[24] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"patChargeList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[25] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"mainMethod\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[26] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"testDBStatus\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[27] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBaseCardPrice\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[28] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"netTest\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[29] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getYYT_DTXDTBG\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[30] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"addDeposit\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[31] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"oPRegist\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[32] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"editInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[33] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"yPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[34] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getAppNo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[35] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getItemDataPrint\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[36] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getXFList\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[37] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"getBillInfo\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[38] = __operation;\r\n\r\n __operation = new org.apache.axis2.description.OutInAxisOperation();\r\n\r\n __operation.setName(new javax.xml.namespace.QName(\r\n \"http://tempuri.org/\", \"autoOPBillCharge\"));\r\n _service.addOperation(__operation);\r\n\r\n _operations[39] = __operation;\r\n }",
"public static void main(String[] argv)\r\n {\r\n //Fazer isto depois para múltiplos web services\r\n InsulinDoseCalculator service = null;\r\n try {\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://liis-lab.dei.uc.pt:8080/Server?wsdl\")).getInsulinDoseCalculatorPort();\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://qcs12.dei.uc.pt:8080/insulin?wsdl\")).getInsulinDoseCalculatorPort();\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://qcs18.dei.uc.pt:8080/insulin?wsdl\")).getInsulinDoseCalculatorPort();14\r\n service = new InsulinDoseCalculatorService(new URL(\"http://localhost:9000/InsulinDoseCalculator?wsdl\")).getInsulinDoseCalculatorPort();\r\n //service = new InsulinDoseCalculatorService(new URL(\"http://vm-sgd17.dei.uc.pt:80/InsulinDoseCalculator?wsdl\")).getInsulinDoseCalculatorPort();\r\n } catch (MalformedURLException e) {\r\n e.printStackTrace();\r\n }\r\n\r\n //InsulinDoseCalculator service = new InsulinDoseCalculatorService().getInsulinDoseCalculatorPort();\r\n menu(service);\r\n }",
"public WebService_Detalle_alquiler_factura() {\n }",
"public static void main(String[] args){\n WSDLParser parser = new WSDLParser();\n \n //checar este wsdl http://www.xmethods.net/ve2/ViewListing.po?key=425856 //Elemento Symple\n Definitions wsdl = parser.parse(\"http://www.xignite.com/xAnalysts.asmx?WSDL\");\n \n //Definitions wsdl = parser.parse(\"http://www.restfulwebservices.net/wcf/BibleKJVService.svc?wsdl\");//Imports con targetnamespace mal\n //Definitions wsdl = parser.parse(\"http://www.thomas-bayer.com/axis2/services/BLZService?wsdl\");\n //Definitions wsdl = parser.parse(\"https://api.networkip.net/jaduka/?WSDL\");//http://www.xmethods.net/ve2/ViewListing.po?key=uuid:22952E44-96F9-4597-55E1-05447A4DD947\n \n //Schema schema = wsdl.getSchema(\"http://thomas-bayer.com/blz/\");\n Schema schema = wsdl.getSchema(wsdl.getTargetNamespace());\n //Schema schema = wsdl.getSchema(\"http://www.restfulwebservices.net/ServiceContracts/2008/01/Imports\");\n \n ///////////////////////////////////////////////////////////////////CODIGO PARSEO SCHEMA\n //SchemaParser parser = new SchemaParser();\n //Schema schema = parser.parse(\"samples/xsd/human-resources.xsd\");\n \n out(\"-------------- Schema Information --------------\");\n out(\" Schema TargetNamespace: \" + schema.getTargetNamespace());\n out(\" AttributeFormDefault: \" + schema.getAttributeFormDefault());\n out(\" ElementFormDefault: \" + schema.getElementFormDefault());\n out(\"\");\n \n out(\"Schema as String: \");\n out(schema.getAsString());\n \n if (schema.getImports().size() > 0) {\n out(\" Schema Imports: \");\n for (Import imp : schema.getImports()) {\n out(\" Import Namespace: \" + imp.getNamespace());\n out(\" Import Location: \" + imp.getSchemaLocation());\n }\n out(\"\");\n }\n \n if (schema.getIncludes().size() > 0) {\n out(\" Schema Includes: \");\n for (Include inc : schema.getIncludes()) {\n out(\" Include Location: \" + inc.getSchemaLocation());\n }\n out(\"\");\n }\n \n out(\" Schema Elements: \");\n for (Element e : schema.getAllElements()) {\n out(\" Element Name: \" + e.getName());\n if (e.getType() != null) {\n /*\n * schema.getType() delivers a TypeDefinition (SimpleType orComplexType)\n * object.\n */\n out(\" Element Type Name: \" + schema.getType(e.getType()).getName());\n out(\" Element minoccurs: \" + e.getMinOccurs());\n out(\" Element maxoccurs: \" + e.getMaxOccurs());\n out(\" Schema del Elemento: \" + e.getSchema().toString());\n \n if (e.getAnnotation() != null)\n annotationOut(e);\n }\n }\n out(\"\");\n \n out(\" Schema ComplexTypes: \");\n for (ComplexType ct : schema.getComplexTypes()) {\n out(\" ComplexType Name: \" + ct.getName());\n if (ct.getAnnotation() != null)\n annotationOut(ct);\n if (ct.getAttributes().size() > 0) {\n out(\" ComplexType Attributes: \");\n /*\n * If available, attributeGroup could be read as same as attribute in\n * the following.\n */\n for (Attribute attr : ct.getAttributes()) {\n out(\" Attribute Name: \" + attr.getName());\n out(\" Attribute Form: \" + attr.getForm());\n out(\" Attribute ID: \" + attr.getId());\n out(\" Attribute Use: \" + attr.getUse());\n out(\" Attribute FixedValue: \" + attr.getFixedValue());\n out(\" Attribute DefaultValue: \" + attr.getDefaultValue());\n }\n }\n /*\n * ct.getModel() delivers the child element used in complexType. In case\n * of 'sequence' you can also use the getSequence() method.\n */\n out(\" ComplexType Model: \" + ct.getModel().getClass().getSimpleName());\n if (ct.getModel() instanceof ModelGroup) {\n out(\" Model Particles: \");\n for (SchemaComponent sc : ((ModelGroup) ct.getModel()).getParticles()) {\n out(\" Particle Kind: \" + sc.getClass().getSimpleName());\n out(\" Particle Name: \" + sc.getName());\n out(\" Prefix: \" + sc.getPrefix());\n out(\" DataType: \" + ((QName)sc.getProperty(\"type\")).getQualifiedName() );\n out(\" String: \" + sc.getAsString());\n \n }\n }\n \n if (ct.getModel() instanceof ComplexContent) {\n Derivation der = ((ComplexContent) ct.getModel()).getDerivation();\n out(\" ComplexConten Derivation: \" + der.getClass().getSimpleName());\n out(\" Derivation Base: \" + der.getBase());\n }\n \n if (ct.getAbstractAttr() != null)\n out(\" ComplexType AbstractAttribute: \" + ct.getAbstractAttr());\n if (ct.getAnyAttribute() != null)\n out(\" ComplexType AnyAttribute: \" + ct.getAnyAttribute());\n \n out(\"\");\n }\n \n if (schema.getSimpleTypes().size() > 0) {\n out(\" Schema SimpleTypes: \");\n for (SimpleType st : schema.getSimpleTypes()) {\n out(\" SimpleType Name: \" + st.getName());\n out(\" SimpleType Restriction: \" + st.getRestriction());\n out(\" -----------:Base:\" + st.getRestriction().getBase().getQualifiedName());\n out(\" ----------:Prefix:\" + st.getRestriction().getBase().getPrefix());\n out(\" SimpleType Union: \" + st.getUnion());\n out(\" SimpleType List: \" + st.getList());\n }\n }\n \n \n }",
"private void exportFiles()\n\t{\n\t\tloading.setVisibility(View.VISIBLE);\n\t\t\n\t\t// Report String\n\t\t//----------------\n\t\tString reportString = \"Date,Location Latitude, Location Longitude,Vehicle,Description\\n\";\t\n\t\t\n\t\tStringBuilder reportBuilder = new StringBuilder();\n\t\treportBuilder.append(reportString);\n\t\t\n\t\tString objectString = \"\"+ \n\t\t\t\tincident.getDate()+\",\" +\n\t\t\t\tincident.getLatitude() + \",\" +\n\t\t\t\tincident.getLongitude()+\",\" +\n\t\t\t\tincident.getVehicleReg()+\",\" +\n\t\t\t\tincident.getDescription()+\",\" + \"\\n\";\n\t\t\n\t\treportBuilder.append(objectString);\n\t\t\n\t\t// Witnesses String\n\t\t//----------------\n\t\tString witnessString = \"witnessName,witnessEmail,witnessNumber,witnessStatement\\n\";\n\t\t\n\t\tStringBuilder witnessesBuilder = new StringBuilder();\n\t\twitnessesBuilder.append(witnessString);\n\t\t\n\t\tfor(int i=0; i<incident.getWitnesses().size(); i++)\n\t\t{\n\t\t\tobjectString = \"\"+ \n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessName\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessEmail\") + \",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessNumber\")+\",\" +\n\t\t\t\t\tincident.getWitnesses().get(i).get(\"witnessStatement\")+\",\" + \"\\n\";\n\t\t\t\n\t\t\twitnessesBuilder.append(objectString);\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Create file\n\t\t//===========================================\n\t\t// Incident Report\n\t\t//-------------------------------------------------\n\t\tfinal File reportFile = new File(getFilesDir() + \"/\" + \"incident_report.csv\");\n\t\treportFile.setReadable(true,false);\n\t\t\n\t\tif( reportFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"incident_report.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(reportBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Witnesses file\n\t\t//-------------------------------------------------\n\t\tfinal File witnessesFile = new File(getFilesDir() + \"/\" + \"witnesses.csv\");\n\t\twitnessesFile.setReadable(true,false);\n\t\t\n\t\tif( witnessesFile != null )\n\t\t{\n\t\t try \n\t\t {\n\t\t \tFileOutputStream fOut = openFileOutput(\"witnesses.csv\", Context.MODE_WORLD_READABLE);\n\t\t \tOutputStreamWriter osw = new OutputStreamWriter(fOut); \n\t\t \tosw.write(witnessesBuilder.toString());\n\t\t\t\tosw.flush();\n\t\t\t\tosw.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\t//-------------------------------------------------\n\t\t\n\t\t// Media files\n\t\t//-------------------------------------------------\t\n\t\tParseQuery<ParseObject> query = ParseQuery.getQuery(\"DCIncident\");\n\t\tquery.getInBackground(incident.getId(),new GetCallback<ParseObject>() \n\t\t{\n\t\t\t@Override\n\t\t\tpublic void done(final ParseObject parseIncident, ParseException e) \n\t\t\t{\n\t\t\t\tif(e == null)\n\t\t\t\t{\t\t\t\t\t\n\t\t\t\t\t// Get number of photos attached\n\t\t\t\t\tParseQuery<ParseObject> queryPhotos = parseIncident.getRelation(\"incidentPhotos\").getQuery();\n\t\t\t\t\tqueryPhotos.findInBackground(new FindCallback<ParseObject>()\n\t\t\t\t\t{\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void done(List<ParseObject> parsePhotos, ParseException e) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tArrayList<byte[]> bytes = new ArrayList<byte[]>();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tfor(int i=0; i<parsePhotos.size(); i++)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// Get photo from the parse\n\t\t\t\t\t\t\t\tParseFile photo = (ParseFile) parsePhotos.get(i).get(\"photoFile\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\tbytes.add(photo.getData());\n\t\t\t\t\t\t\t\t} catch (ParseException e1) {\n\t\t\t\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tphotoFiles = AssetsUtilities.saveIncidentPhoto(ReviewReportActivity.this, bytes);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t// Video\n\t\t\t\t\t\t\tParseFile parseVideo = (ParseFile) parseIncident.get(\"incidentVideo\");\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif(parseVideo != null)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tparseVideo.getDataInBackground(new GetDataCallback()\n\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void done(byte[] data, ParseException e) \n\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\tif(e == null)\n\t\t\t\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t\t\t\t// Save file\n\t\t\t\t\t\t\t\t\t\t\tvideoFile = AssetsUtilities.saveIncidentVideo(ReviewReportActivity.this,data);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tfinishSendingEmail(reportFile, witnessesFile);\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});\n\t}",
"public void exportTableInfoDefinitions(FileEnvVar exportFile,\n boolean includeTableTypes,\n boolean includeInputTypes,\n boolean includeDataTypes,\n String outputType,\n boolean addEOFMarker,\n boolean addSOFMarker) throws CCDDException, Exception\n {\n // Placeholder\n }",
"private void configureServices(Environment environment){\n DaoCountry country = new DaoCountry(hibernateBundle.getSessionFactory());\n DaoAddress address = new DaoAddress(hibernateBundle.getSessionFactory());\n\n environment.jersey().register(new ServiceCountry(country));\n environment.jersey().register(new ServiceAddress(address));\n }",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tString filePath = env.getProperty(\"export.file.path\");\n\t\t\t\tFileSystem fileSystem = FileSystems.getDefault();\n\t\t\t\tif (StringUtils.isNotEmpty(empId)) {\n\t\t\t\t\tfilePath += \"/\" + empId;\n\t\t\t\t}\n\t\t\t\tPath path = fileSystem.getPath(filePath);\n\t\t\t\t// path = path.resolve(String.valueOf(empId));\n\t\t\t\tif (!Files.exists(path)) {\n\t\t\t\t\tPath newEmpPath = Paths.get(filePath);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tFiles.createDirectory(newEmpPath);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while creating path \" + newEmpPath);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tfilePath += \"/\" + exportFileName;\n\t\t\t\ttry {\n\t\t\t\t\t// initialize FileWriter object\n\t\t\t\t\tlog.debug(\"filePath = \" + filePath + \", isAppend=\" + isAppend);\n\t\t\t\t\tfileWriter = new FileWriter(filePath, isAppend);\n\t\t\t\t\tString siteName = null;\n\n\t\t\t\t\t// initialize CSVPrinter object\n\t\t\t\t\tcsvFilePrinter = new CSVPrinter(fileWriter, csvFileFormat);\n\t\t\t\t\tif (!isAppend) {\n\t\t\t\t\t\t// Create CSV file header\n\t\t\t\t\t\tcsvFilePrinter.printRecord(CONSOLIDATED_REPORT_FILE_HEADER);\n\t\t\t\t\t}\n\t\t\t\t\tfor (ReportResult transaction : content) {\n\t\t\t\t\t\tif (StringUtils.isEmpty(siteName) || !siteName.equalsIgnoreCase(transaction.getSiteName())) {\n\t\t\t\t\t\t\tcsvFilePrinter.printRecord(\"\");\n\t\t\t\t\t\t\tcsvFilePrinter\n\t\t\t\t\t\t\t\t\t.printRecord(\"CLIENT - \" + projName + \" SITE - \" + transaction.getSiteName());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tList record = new ArrayList();\n\t\t\t\t\t\tlog.debug(\"Writing transaction record for site :\" + transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getSiteName());\n\t\t\t\t\t\trecord.add(transaction.getLocatinName());\n\t\t\t\t\t\trecord.add(transaction.getAssignedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getCompletedJobCount());\n\t\t\t\t\t\trecord.add(transaction.getOverdueJobCount());\n\t\t\t\t\t\trecord.add(transaction.getTat());\n\t\t\t\t\t\tcsvFilePrinter.printRecord(record);\n\t\t\t\t\t}\n\t\t\t\t\tlog.info(exportFileName + \" CSV file was created successfully !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"COMPLETED\");\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tlog.error(\"Error in CsvFileWriter !!!\");\n\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t} finally {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tfileWriter.flush();\n\t\t\t\t\t\tfileWriter.close();\n\t\t\t\t\t\tcsvFilePrinter.close();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tlog.error(\"Error while flushing/closing fileWriter/csvPrinter !!!\");\n\t\t\t\t\t\tstatusMap.put(exportFileName, \"FAILED\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tlock.unlock();\n\t\t\t}",
"net.webservicex.www.WeatherForecasts getWeatherForecasts();",
"ServiceConfig getServiceConfig();",
"ServiceConfig getServiceConfig();",
"Map<String, Object> getServiceSpecificObjects();",
"@Override\n public void exportTables(FileEnvVar exportFile,\n List<TableInfo> tableDefs,\n boolean includeBuildInformation,\n boolean replaceMacros,\n boolean includeVariablePaths,\n CcddVariableHandler variableHandler,\n String[] separators,\n String outputType,\n Object... extraInfo) throws JAXBException,\n MarshalException,\n CCDDException,\n Exception\n {\n\n // Convert the table data into XTCE XML format\n convertTablesToXTCE(tableDefs,\n includeBuildInformation,\n (EndianType) extraInfo[0],\n (boolean) extraInfo[1],\n (String) extraInfo[2],\n (String) extraInfo[3],\n (String) extraInfo[4],\n (String) extraInfo[5],\n (String) extraInfo[6]);\n\n // Output the XML to the specified file. The marshaller has a hard-coded limit of 8 levels;\n // once exceeded it starts back at the first column. Therefore, a Transformer is used to\n // set the indentation amount (it doesn't have an indentation level limit)\n DOMResult domResult = new DOMResult();\n marshaller.marshal(project, domResult);\n Transformer transformer = TransformerFactory.newInstance().newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.setOutputProperty(\"{http://xml.apache.org/xslt}indent-amount\", \"3\");\n transformer.transform(new DOMSource(domResult.getNode()), new StreamResult(exportFile));\n }",
"private byte[] getExportData(ExportType exportType, DocumentData documentData) {\n if (exportTypeToDocumentDataBuilderMap == null) {\n exportTypeToDocumentDataBuilderMap = new HashMap<ExportType,\n DocumentDataBuilder>();\n exportTypeToDocumentDataBuilderMap.put(ExportType.CSV, csvDocumentDataBuilder);\n exportTypeToDocumentDataBuilderMap.put(ExportType.EXCEL, excelDocumentDataBuilder);\n exportTypeToDocumentDataBuilderMap.put(ExportType.PDF, pdfDocumentDataBuilder);\n }\n \n DocumentDataBuilder documentDataBuilder = exportTypeToDocumentDataBuilderMap.get(exportType);\n // build and return the data\n return documentDataBuilder.build(documentData);\n }",
"public ExternalServicesDto getExternalServiceData();",
"public void setExportService(ExportService exportService) {\n this.exportService = exportService;\n }",
"public interface IWebScheduleService {\r\n public ScheduleResponse getScheduleShowByTeamId(String teamId, Long scheduleDetaildId,Long scheduleId, Long descId);\r\n\r\n //获取页面所有链接的签名map\r\n public ScheduleResponse getScheduleSigns(ScheduleShowRequest showRequest, ScheduleResponse response, SignVo signVo);\r\n\r\n //获取行程中所有导游\r\n public List<LeaderEntity> getScheduleGuides(String teamId);\r\n\r\n // 获取游客列表\r\n public List<MemberEntity> getTouristList(Long scheduleId);\r\n\r\n}",
"private void saveProperties() {\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.driver\", driver);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.serverURL\", serverURL);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.username\", username);\n JiveGlobals.setXMLProperty(\"database.defaultProvider.password\", password);\n\n JiveGlobals.setXMLProperty(\"database.defaultProvider.minConnections\",\n Integer.toString(minConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.maxConnections\",\n Integer.toString(maxConnections));\n JiveGlobals.setXMLProperty(\"database.defaultProvider.connectionTimeout\",\n Double.toString(connectionTimeout));\n }",
"interface ExportConfigurationsService {\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.applicationinsights.v2015_05_01.ExportConfigurations list\" })\n @GET(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration\")\n Observable<Response<ResponseBody>> list(@Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceName\") String resourceName, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.applicationinsights.v2015_05_01.ExportConfigurations create\" })\n @POST(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration\")\n Observable<Response<ResponseBody>> create(@Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceName\") String resourceName, @Query(\"api-version\") String apiVersion, @Body ApplicationInsightsComponentExportRequest exportProperties, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.applicationinsights.v2015_05_01.ExportConfigurations delete\" })\n @HTTP(path = \"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\", method = \"DELETE\", hasBody = true)\n Observable<Response<ResponseBody>> delete(@Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceName\") String resourceName, @Path(\"exportId\") String exportId, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.applicationinsights.v2015_05_01.ExportConfigurations get\" })\n @GET(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\")\n Observable<Response<ResponseBody>> get(@Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceName\") String resourceName, @Path(\"exportId\") String exportId, @Query(\"api-version\") String apiVersion, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n @Headers({ \"Content-Type: application/json; charset=utf-8\", \"x-ms-logging-context: com.microsoft.azure.management.applicationinsights.v2015_05_01.ExportConfigurations update\" })\n @PUT(\"subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Insights/components/{resourceName}/exportconfiguration/{exportId}\")\n Observable<Response<ResponseBody>> update(@Path(\"resourceGroupName\") String resourceGroupName, @Path(\"subscriptionId\") String subscriptionId, @Path(\"resourceName\") String resourceName, @Path(\"exportId\") String exportId, @Query(\"api-version\") String apiVersion, @Body ApplicationInsightsComponentExportRequest exportProperties, @Header(\"accept-language\") String acceptLanguage, @Header(\"User-Agent\") String userAgent);\n\n }",
"public interface ApiEndPointsAndPatameters {\n\t\n//\t/** Resource path for api resources */\n//\tString API_PREFIX = \"/api\";\n//\n\t/** Resource path for API version 1 */\n\tString API_VERSION_1 = \"/v1\";\n//\n//\t/** Resource path to get available power plants. */\n//\tString POWER_PLANT_PATH = \"/powerPlant\";\n//\n//\t/** Resource path to get power plant data for a given power plant id. */\n//\tString POWER_PLANT_DATA_PATH = \"/{id}\";\n//\n//\tString POWER_PLANT_DETAILS = \"/details\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_DAY = \"/sumByDay\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_WEEK = \"/sumByWeek\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_MONTH = \"/sumByMonth\";\n//\n//\tString POWER_PLANT_DATA_SUM_BY_YEAR = \"/sumByYear\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_HOUR_FORECAST = \"/nextHourForecast\";\n//\t\n//\tString POWER_PLANT_DATA_NEXT_DAY_FORECAST = \"/nextDayForecast\";\n//\n//\t/** Query parameter for filtering by start date. */\n//\tString QUERY_PARAMETER_START_DATE = \"startDate\";\n//\n//\t/** Query parameter for filtering by end date. */\n//\tString QUERY_PARAMETER_END_DATE = \"endDate\";\n//\n//\t/** Query parameter for filtering by power plant data type. */\n//\tString QUERY_PARAMETER_DATA_TYPE = \"dataType\";\n//\t\n//\t\n\t\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHENTICATION_ID = \"Authentication-ID\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_USER_PASSWORD = \"UserPassword\";\n\t\n\t/** Query parameter for filtering by power plant data type. */\n\tString QUERY_AUTHORISATION_ID = \"authorisation-id\";\n\t\n\t/** Resource path to get a list to the components a User has access to. */\n\tString USER_COMPONENT_LIST = \"/UserComponentLists\";\n\t\n\t/** Resource path to get a list of available resources for a component. */\n\tString DATA_LIST = \"/DataLists\";\n\t\n\t/** Resource path to authenticate. */\n\tString AUTHENTICATION = \"/authentication\";\n\t\n\t/** Resource path to logout. */\n\tString LOGOUT = \"/logout\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString COMPONENT_ID_PATH = \"/{cId}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString SIDE_PATH = \"/{side}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString TYPE_PATH = \"/{type}\";\n\t\n\t/** Resource path to get power plant data for a given power plant id. */\n\tString DATE_PATH = \"/{date}\";\n}",
"public interface SupplierIndexService {\n\n /**\n * 供应商全量脚本\n */\n @Export\n Response<Boolean> fullDump();\n\n /**\n * 供应商增量脚本\n * @param interval 时间间隔,单位分钟,一般为15分钟\n */\n @Export(paramNames = {\"interval\"})\n Response<Boolean> deltaDump(int interval);\n\n /**\n *\n * @param ids 供应商id列表\n * @param status 供应商状态\n */\n Response<Boolean> realTimeIndex(List<Long> ids, User.SearchStatus status);\n}",
"public GetAllPeriodServlet() {\n\t\tsuper();\n\t}",
"@Override\n public JSONObject getGSTRuleSetup(JSONObject requestParams) throws ServiceException, ParseException, com.krawler.utils.json.base.JSONException {\n JSONObject finalReturnObj = new JSONObject();\n try {\n String storeRec = \"\";\n JSONObject jMeta = new JSONObject();\n JSONArray jarrColumns = new JSONArray();\n JSONArray jarrRecords = new JSONArray();\n JSONObject jobjTemp = new JSONObject();\n JSONArray dataJArr = new JSONArray();\n JSONArray pagedJson = new JSONArray();\n\n /**\n * Create Column model\n */\n HashMap<String, Object> fieldParamsRequestMap = new HashMap<>();\n ArrayList fieldParamsfilter_names = new ArrayList();\n ArrayList fieldParamsfilter_params = new ArrayList();\n\n KwlReturnObject KWLObj = accountingHandlerDAOobj.getObject(Company.class.getName(), requestParams.optString(Constants.companyKey));\n Company company = (Company) KWLObj.getEntityList().get(0);\n String countryid = company.getCountry().getID();\n requestParams.put(\"countryid\", countryid);\n\n fieldParamsfilter_names.add(Constants.FIELDPARAMS_ISACTIVATE);\n fieldParamsfilter_params.add(1);\n fieldParamsfilter_names.add(Constants.GST_CONFIG_TYPE);\n fieldParamsfilter_params.add(Constants.GST_CONFIG_ISFORGST);\n fieldParamsfilter_names.add(Constants.moduleid);\n fieldParamsfilter_params.add(Constants.GSTModule);\n fieldParamsfilter_names.add(\"companyid\");\n fieldParamsfilter_params.add(requestParams.optString(\"companyid\"));\n fieldParamsRequestMap.put(Constants.filterNamesKey, fieldParamsfilter_names);\n fieldParamsRequestMap.put(Constants.filterParamsKey, fieldParamsfilter_params);\n KwlReturnObject result = accEntityGstDao.getChildFieldParamsForGSTRule(fieldParamsRequestMap);\n List<FieldParams> fieldParamses = result.getEntityList();\n for (FieldParams fieldParams : fieldParamses) {\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", fieldParams.getFieldlabel());\n jobjTemp.put(\"dataIndex\", \"shippedLoc\" + fieldParams.getGSTMappingColnum());\n jobjTemp.put(\"align\", \"center\");\n jobjTemp.put(\"width\", 150);\n jobjTemp.put(\"pdfwidth\", 150);\n jarrColumns.put(jobjTemp);\n //Records\n jobjTemp = new JSONObject();\n jobjTemp.put(\"name\", \"shippedLoc\" + fieldParams.getGSTMappingColnum());\n jarrRecords.put(jobjTemp);\n }\n\n JSONObject params = new JSONObject();\n params.put(\"termType\", 7);\n params.put(\"companyid\", requestParams.optString(\"companyid\"));\n params.put(\"isInput\", requestParams.optBoolean(\"isSales\"));\n /**\n * get GST master\n */\n\n KwlReturnObject kwlReturnObject = accEntityGstDao.getGSTTermDetails(params);\n List<LineLevelTerms> lineLevelTerms = kwlReturnObject.getEntityList();\n Map<String, String> GSTTermMap = new HashMap();\n for (LineLevelTerms lineLevelTerms1 : lineLevelTerms) {\n /**\n * Create Map for Term Id,Name\n */\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\", lineLevelTerms1.getTerm());\n jobjTemp.put(\"dataIndex\", lineLevelTerms1.getId());\n jobjTemp.put(\"align\", \"center\");\n jobjTemp.put(\"width\", 150);\n jobjTemp.put(\"renderer\", \"WtfGlobal.gstdecimalRenderer\");\n jobjTemp.put(\"pdfwidth\", 150);\n jarrColumns.put(jobjTemp);\n //Records\n jobjTemp = new JSONObject();\n jobjTemp.put(\"name\", lineLevelTerms1.getId());\n jarrRecords.put(jobjTemp);\n }\n /**\n * ERP-34044\n */\n if(countryid.equals(String.valueOf(Constants.indian_country_id))){\n jobjTemp = new JSONObject();\n jobjTemp.put(\"header\",\"\" );\n jobjTemp.put(\"dataIndex\", \"groupTerm\");\n jarrColumns.put(jobjTemp);\n //Records\n jobjTemp = new JSONObject();\n jobjTemp.put(\"name\", \"groupTerm\");\n jarrRecords.put(jobjTemp);\n }\n /**\n * get rule data from table\n */\n requestParams.put(\"df\", authHandler.getDateOnlyFormat());\n JSONObject dataObj = getEntityRuleSetup(requestParams);\n dataJArr = dataObj.optJSONArray(\"dataArr\");\n\n pagedJson = dataJArr;\n finalReturnObj.put(\"totalCount\", dataJArr.length());\n finalReturnObj.put(\"columns\", jarrColumns);\n finalReturnObj.put(\"coldata\", pagedJson);\n jMeta.put(\"totalProperty\", \"totalCount\");\n jMeta.put(\"root\", \"coldata\");\n jMeta.put(\"fields\", jarrRecords);\n finalReturnObj.put(\"metaData\", jMeta);\n boolean isExport = false;\n if (requestParams.has(\"isExport\")) {\n isExport = Boolean.parseBoolean(requestParams.optString(\"isExport\"));\n }\n if (isExport) {\n finalReturnObj.put(\"data\", dataJArr);\n }\n } catch (ServiceException | com.krawler.utils.json.base.JSONException ex) {\n Logger.getLogger(AccGstServiceImpl.class.getName()).log(Level.INFO, ex.getMessage());\n } catch (SessionExpiredException ex) {\n Logger.getLogger(AccGstServiceImpl.class.getName()).log(Level.SEVERE, null, ex);\n }\n return finalReturnObj;\n }",
"public static Properties getProperties(){\n properties=new Properties();\n // properties.setProperty(\"selectBindDefaults\",selectBindDefaults);\n properties.setProperty(\"urlString\",urlString);\n properties.setProperty(\"userName\",userName);\n properties.setProperty(\"password\",password);\n properties.setProperty(\"packageName\",packageName);\n properties.setProperty(\"outputDirectory\",outputDirectory);\n properties.setProperty(\"taglibName\",TagLibName);\n properties.setProperty(\"jarFilename\",jarFilename);\n properties.setProperty(\"whereToPlaceJar\",whereToPlaceJar);\n properties.setProperty(\"tmpWorkDir\",tmpWorkDir);\n properties.setProperty(\"aitworksPackageBase\",aitworksPackageBase);\n properties.setProperty(\"databaseDriver\",databaseDriver);\n \n if(includeSource)\n properties.setProperty(\"includeSource\",\"true\");\n else\n properties.setProperty(\"includeSource\",\"false\");\n \n if(includeClasses)\n properties.setProperty(\"includeClasses\",\"true\");\n else\n properties.setProperty(\"includeClasses\",\"false\");\n \n if(generatedClasses)\n properties.setProperty(\"generatedClasses\",\"true\");\n else\n properties.setProperty(\"generatedClasses\",\"false\");\n\n return properties;\n }",
"@Before\n \tpublic static void setup() {\n \t\trenderArgs.put(\"base\", request.getBase());\n\t\tString location = request.getBase() + \"/services/RawService.wsdl\";\n \t\trenderArgs.put(\"wsdl\", location);\n \t}",
"public static void main(String[] argv) throws Exception {\n\n String argXmlFile = null;\n String argDocsFile = null;\n String tsUserName = \"webserviceuser\";\n String dbUser = null;\n String dbPasswd = null;\n boolean displayUsage = false;\n\n // Process arguments\n for (int i = 0; (i < argv.length) && !displayUsage; i++) {\n String arg = argv[i];\n if (arg.equals(\"-help\") || arg.equals(\"-h\")) {\n displayUsage = true;\n } else if (arg.startsWith(\"-\")) {\n if (++i < argv.length) {\n if (arg.equals(\"-uploads\")) {\n argDocsFile = argv[i];\n } else if (arg.equals(\"-host\")) {\n setDBHost(argv[i]);\n } else if (arg.equals(\"-sid\")) {\n setDBSid(argv[i]);\n } else if (arg.equals(\"-dbuser\")) {\n System.out.println(\">>>>>>>>>>>>>>> dbuser=: \" + argv[i]);\n dbUser = argv[i];\n } else if (arg.equals(\"-dbpasswd\")) {\n System.out.println(\">>>>>>>>>>>>>>> dbpasswd=: \" + argv[i]);\n dbPasswd = argv[i];\n } else if (arg.equals(\"-tsuser\")) {\n System.out.println(\">>>>>>>>>>>>>>> ts user=: \" + argv[i]);\n tsUserName = argv[i];\n } else {\n System.err.println(\"Invalid Argument: \" + arg);\n displayUsage = true;\n }\n } else {\n displayUsage = true;\n }\n } else {\n if (argXmlFile != null) {\n displayUsage = true;\n } else {\n argXmlFile = argv[i];\n }\n }\n }\n\n // Check for missing arguments\n displayUsage = checkMissingArgs(dbUser, dbPasswd);\n if (displayUsage || (argXmlFile == null)) {\n printUsage();\n System.exit(1);\n }\n\n // Do the work\n\n try {\n doWork(argXmlFile, argDocsFile, tsUserName);\n } catch (Exception e) {\n System.err.println(\"Execution failed: \" + e.getMessage());\n e.printStackTrace();\n System.exit(2);\n }\n\n System.exit(0);\n }",
"private void exportConfiguration() {\n if (!Files.exists(languageConfigPath)) this.saveResource(\"language.yml\", false);\n if (!Files.exists(propertiesConfigPath)) this.saveResource(\"properties.yml\", false);\n }",
"private void fetchBusinessGoalFromDB() \r\n\t{\r\n\t\tthis.showLoadingStatusBar();\r\n\t\tServiceDefTarget endpoint = (ServiceDefTarget) service; \t\t// get the business goal and associated subgoals and assets\r\n\t\tendpoint.setServiceEntryPoint(GWT.getModuleBaseURL() + \"identifyGoalAssetService.rpc\");\r\n\t\tservice.loadBusinessGoalInfo(getCurrentState().getProjectID(), new AsyncCallback<GwtBusinessGoal>()\r\n\t\t{\r\n\t\t\tpublic void onFailure(Throwable caught)\r\n\t\t\t{\r\n\t\t\t\tWindow.alert(caught.getMessage());\r\n\t\t\t}\r\n\r\n\t\t\tpublic void onSuccess(GwtBusinessGoal result)\r\n\t\t\t{\t\t\r\n\t\t\t\t\tbusinessGoal = result;\r\n\t\t\t\t\tsummaryPageCommand.execute();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"private LogService()\n {\n logWriter = new CleanSweepLogWriterImpl();\n\n Calendar date = Calendar.getInstance();\n int year = date.get(Calendar.YEAR);\n int month = date.get(Calendar.MONTH)+1;\n int day = date.get(Calendar.DAY_OF_MONTH);\n\n todaysDate=\"\";\n if(day<10) {\n todaysDate += year + \"\" + month + \"0\" + day;\n }\n else\n {\n todaysDate += year + \"\" + month + \"\" + day;\n }\n\n }",
"ArrayList<String[]> prepareExportRecurringTransactionList() throws BankException {\n logger.warning(\"This account does not support this feature\");\n throw new BankException(\"This account does not support this feature\");\n }",
"DataFrameExport export();",
"void export(DataExportOptions options, Pageable pageable, OutputStream outputStream);",
"public static void insertTestDataExport() throws ArcException {\n\t\tinsertTestData(\"BdDTest/script_test_export.sql\");\n\t}",
"@Override\r\n\tpublic void export(Writer printWriter,Integer formId, Date fromDate, Date toDate, Integer userId) {\r\n\r\n\t\t// Check to ensure that we have such a form version as identified by the formId.\r\n\t\tFormDefVersion formDefVersion = dataExportService.getFormDefVersion(formId);\r\n\t\tif (formDefVersion == null)\r\n\t\t\treturn;\r\n\r\n\t\t// Parse the xform and generate the model\r\n\t\tDocument xformDoc = XmlUtil.fromString2Doc(formDefVersion.getXform());\r\n\t\tList<String> gpsFields = getGPSFields(xformDoc);\r\n\t\tList<String> multimediaFields = getMultimediaFields(xformDoc);\r\n\t\tMap<String,List<String>> multiSelFields = getMultSelFields(xformDoc);\r\n\r\n\t\t// Get and write the CSV header.\r\n\t\tList<String> header = getHeader(xformDoc, multimediaFields, gpsFields, multiSelFields);\r\n try {\r\n printWriter.write(StringUtils.collectionToCommaDelimitedString(header) + \"\\n\");\r\n } catch (IOException ex) {\r\n throw new UnexpectedException(ex);\r\n }\r\n\t\t\r\n\t\t// Get the data list to export.\r\n\t\tList<Object[]> data = dataExportService.getFormDataWithAuditing(formId, fromDate, toDate, userId);\r\n\t\tif (data == null || data.size() == 0)\r\n\t\t\treturn;\r\n\r\n\t\t// Export the data\r\n\t\tSimpleDateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n\t\tfor (Object[] o : data) {\r\n\t\t\tMap<String, String> dataLine = new HashMap<String, String>();\r\n\t\t\t\r\n\t\t\t// auditing data\r\n\t\t\tdataLine.put(\"ID\", o[0].toString());\r\n\t\t\tdataLine.put(\"CAPTURER\", (String)o[1]);\r\n\t\t\tdataLine.put(\"CREATION DATE\", df.format((Date)o[2]));\r\n\t\t\t\r\n\t\t\t// other data\r\n\t\t\tString xml = (String)o[3];\r\n\t\t\tNodeList nodes = XmlUtil.fromString2Doc(xml).getDocumentElement().getChildNodes();\r\n\t\t\tfor (int index=0, length=nodes.getLength(); index<length; index++) {\r\n\t\t\t\tNode node = nodes.item(index);\r\n\t\t\t\tif (node.getNodeType() != Node.ELEMENT_NODE)\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t\r\n\t\t\t\tString name = node.getNodeName();\r\n\t\t\t\tString value = node.getTextContent();\r\n\r\n\t\t\t\tif (multimediaFields.contains(name)) // we do not export multimedia field values at the moment.\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\tif (gpsFields.contains(node.getNodeName())) { // split it into its various pieces (latitude, longitude and altitude)\r\n\t\t\t\t\tif (value != null && value.trim().length() > 0) {\r\n\t\t\t\t\t\tString[] coordinates = value.split(\",\");\r\n\t\t\t\t\t\tif (coordinates.length >= 3) {\r\n\t\t\t\t\t\t\tdataLine.put(name.toUpperCase()+\"_LATITUDE\", coordinates[0]);\r\n\t\t\t\t\t\t\tdataLine.put(name.toUpperCase()+\"_LONGITUDE\", coordinates[1]);\r\n\t\t\t\t\t\t\tdataLine.put(name.toUpperCase()+\"_ALTITUDE\", coordinates[2]);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else if (multiSelFields.keySet().contains(name)) {\r\n\t\t\t\t\tList<String> options = multiSelFields.get(name);\r\n\t\t\t\t\tif (options != null) {\r\n\t\t\t\t\t\tfor (String option : options) {\r\n\t\t\t\t\t\t\tString selected = (value.contains(option)) ? \"1\" : \"0\";\r\n\t\t\t\t\t\t\tdataLine.put(name.toUpperCase()+\"_\"+option.toUpperCase(), selected);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdataLine.put(name.toUpperCase(), formatCSV(value));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t// output in the correct order\r\n\t\t\tStringBuilder line = new StringBuilder();\r\n\t\t\tfor (String h : header) {\r\n\t\t\t\tString d = dataLine.get(h);\r\n\t\t\t\tif (line.length() > 0) {\r\n\t\t\t\t\tline.append(\",\");\r\n\t\t\t\t}\r\n\t\t\t\tline.append(d);\r\n\t\t\t}\r\n try {\r\n printWriter.write(line + \"\\n\");\r\n } catch (IOException ex) {\r\n throw new UnexpectedException(ex);\r\n }\r\n\t\t}\r\n\t}",
"ch.crif_online.www.webservices.crifsoapservice.v1_00.CompanyBaseData addNewAuditingCompany();",
"public void setData(){\n\t\tif(companyId != null){\t\t\t\n\t\t\tSystemProperty systemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"BUSINESS_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tbusinessType = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"MAX_INVALID_LOGIN\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvalidloginMax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SKU_GENFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tformatItemCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"STO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tstockOpnameNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"RN_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptItemNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_GENFLAG\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tautomaticProdCode = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PLU_FORMAT_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tprodCodeFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SOINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tinvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"SORCPT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\treceiptNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DEFAULT_TAX_TYPE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tsalesTax = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"DELIVERY_COST\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tdeliveryCost = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PO_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PINV_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpurchaceInvoiceNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"PAYMENT_NUMBERFORMAT\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\tpaymentNoFormat = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t\t\n\t\t\tsystemProperty = systemPropertyService\n\t\t\t\t\t.searchSystemPropertyNameAndCompany(\"TAX_VALUE\", companyId);\n\t\t\tif(systemProperty!=null){\n\t\t\t\ttaxValue = systemProperty.getSystemPropertyValue();\n\t\t\t}\n\t\t} else {\n\t\t\tbusinessType = null;\n\t\t\tinvalidloginMax = null;\n\t\t\tautomaticItemCode = null;\n\t\t\tformatItemCode = null;\n\t\t\tdeliveryItemNoFormat = null;\n\t\t\tstockOpnameNoFormat = null;\n\t\t\treceiptItemNoFormat = null;\n\t\t\tautomaticProdCode = null;\n\t\t\tprodCodeFormat = null;\n\t\t\tsalesNoFormat = null;\n\t\t\tinvoiceNoFormat = null;\n\t\t\treceiptNoFormat = null;\n\t\t\tsalesTax = null;\n\t\t\tdeliveryCost = null;\n\t\t\tpurchaceNoFormat = null;\n\t\t\tpurchaceInvoiceNoFormat = null;\n\t\t\tpaymentNoFormat = null;\n\t\t\ttaxValue = null;\n\t\t}\n\t}",
"@Override\r\n\tpublic void exportMap() {\n\r\n\t}",
"@Override\n\tpublic void exportarData() {\n\t\tDate date=new Date();\n\t\tString nameFile=\"recaudado-\"+date.getTime()+\".xls\";\n\t\tTableToExcel.save(grid,nameFile);\n\t}",
"@Deprecated\n @GET\n @Path(\"bootstrap\")\n @Produces(MediaType.APPLICATION_JSON)\n public Response bootstrap () {\n Map m = new HashMap();\n // m.put(\"settings\", new UserSettings().toObjectMap());\n m.put(\"ql\", BeansFactory.getKustvaktContext().getConfiguration()\n .getQueryLanguages());\n m.put(\"SortTypes\", null); // types of sorting that are supported!\n m.put(\"version\", ServiceInfo.getInfo().getVersion());\n return Response.ok(JsonUtils.toJSON(m)).build();\n }",
"public interface ConfigService {\n\n /**\n * 获取合适条件分页属性数据\n *\n * @param proName\n * @param groupId\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigPropertyVO>> getConfigPropertyPage(String proName, long groupId, int page, int length);\n\n /**\n * 新增 or 更新属性数据\n *\n * @param propertyDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigProperty(ConfigPropertyDO propertyDO);\n\n /**\n * 删除指定id的属性数据\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigProperty(long id);\n\n /**\n * 获取合适条件分页属性组数据\n *\n * @param groupName\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigPropertyGroupDO>> getConfigPropertyGroupPage(String groupName, int page, int length);\n\n /**\n * 保存 or 更新属性组数据\n *\n * @param groupDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigPropertyGroup(ConfigPropertyGroupDO groupDO);\n\n /**\n * 删除指定id的属性组数据\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigPropertyGroup(long id);\n\n /**\n * 获取合适条件分页服务器组属性组数据\n *\n * @param groupId\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ServerGroupPropertiesVO>> getGroupPropertyPageByGroupId(long groupId, int page, int length);\n\n /**\n * 获取合适条件分页服务器组属性组数据\n *\n * @param groupId\n * @param serverId\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ServerGroupPropertiesVO>> getGroupPropertyPageByServerId(long groupId, long serverId, int page, int length);\n\n /**\n * 新增 or 更新服务器组属性组数据\n *\n * @param groupPropertiesVO\n * @return\n */\n BusinessWrapper<Boolean> saveServerPropertyGroup(ServerGroupPropertiesVO groupPropertiesVO);\n\n /**\n * 删除指定服务器组&属性组数据\n *\n * @param serverGroupPropertiesDO\n * @return\n */\n BusinessWrapper<Boolean> delServerPropertyGroup(ServerGroupPropertiesDO serverGroupPropertiesDO);\n\n /**\n * 查询指定服务器组id的属性组\n *\n * @param groupId\n * @return\n */\n List<ConfigPropertyGroupDO> getPropertyGroupByGroupId(long groupId);\n\n /**\n * 生成指定服务器组&属性组的配置文件\n *\n * @param serverGroupId\n * @param propertyGroupId\n * @return\n */\n // BusinessWrapper<String> createServerPropertyFile(long serverGroupId, long propertyGroupId);\n\n /**\n * 预览指定服务器组&属性组的配置文件\n *\n * @param serverGroupId\n * @param propertyGroupId\n * @return\n */\n List<PreviewConfig> previewServerPropertyFile(long serverGroupId, long propertyGroupId);\n\n /**\n * 加载指定服务器组&属性组的本地属性配置文件\n *\n * @param serverGroupId\n * @param propertyGroupId\n * @return\n */\n // BusinessWrapper<String> launchServerPropertyFile(long serverGroupId, long propertyGroupId);\n\n /**\n * 获取文件组\n *\n * @param groupName\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigFileGroupDO>> getConfigFileGroupPage(String groupName, int page, int length);\n\n /**\n * 保存 or 更新文件组信息\n *\n * @param configFileGroupDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigFileGroup(ConfigFileGroupDO configFileGroupDO);\n\n /**\n * 删除指定id的文件组信息\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigFileGroup(long id);\n\n /**\n * 获取文件\n *\n * @param configFileDO\n * @param page\n * @param length\n * @return\n */\n TableVO<List<ConfigFileVO>> getConfigFilePage(ConfigFileDO configFileDO, int page, int length);\n\n List<ConfigFileDO> getConfigFile();\n\n\n /**\n * 保存 or 更新文件信息\n *\n * @param configFileDO\n * @return\n */\n BusinessWrapper<Boolean> saveConfigFile(ConfigFileDO configFileDO);\n\n /**\n * 删除指定id的文件信息\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> delConfigFile(long id);\n\n /**\n * 创建 or 更新指定id的文件\n *\n * @param id\n * @return\n */\n BusinessWrapper<Boolean> createConfigFile(long id);\n\n\n /**\n * 查询不重复的文件路径\n *\n * @param fileGroupid\n * @return\n */\n List<ConfigFileDO> queryFilePath(long fileGroupid);\n\n\n /**\n * 创建 or 更新指定名称的文件\n *\n * @param fileName\n * @return\n */\n boolean createConfigFileByName(String fileName);\n\n /**\n * 创建并更新指定名称的配置文件(废弃)\n *\n * @param fileName\n * @return\n */\n void createAndInvokeConfigFile(String fileName, int envType);\n\n\n /**\n * 用户相关的配置文件自动同步和执行script\n */\n void invokeUserConfig();\n\n /**\n * 执行命令\n *\n * @param id\n * @return\n */\n BusinessWrapper<String> invokeConfigFileCmd(long id);\n\n\n /**\n * 预览本地内容\n *\n * @param id\n * @return\n */\n BusinessWrapper<String> launchConfigFile(long id);\n\n\n /**\n * 获取服务器组的属性\n *\n * @param serverGroupDO\n * @param key\n * @return\n */\n String acqConfigByServerGroupAndKey(ServerGroupDO serverGroupDO, String key);\n\n\n /**\n * 保存服务器组的属性\n *\n * @param serverGroupDO\n * @param key\n * @param value\n * @return\n */\n boolean saveConfigServerGroupValue(ServerGroupDO serverGroupDO, String key, String value);\n\n /**\n * 获取服务器属性\n *\n * @param serverDO\n * @param key\n * @return\n */\n\n\n String acqConfigByServerAndKey(ServerDO serverDO, String key);\n\n /**\n * 新增服务器的配置文件变更\n */\n void invokeServerConfig(ServerVO serverVO);\n\n /**\n * 新增服务器的配置文件变更\n *\n * @param serverGroupId\n * @param envType\n */\n void invokeServerConfig(long serverGroupId, int envType);\n\n /**\n * 删除服务器的配置文件变更\n */\n void invokeDelServerConfig(long serverGroupId, int envType);\n\n /**\n * 新增配置项的配置文件变更\n */\n void invokeConfig(long configPropertyGroupId, long serverGroupId, boolean isAddConfig);\n\n /**\n * 保存Getway主机配置文件\n *\n * @param file\n * @return\n */\n boolean saveGetwayHostFileConfigFile(String file);\n\n /**\n * 获取ansible所有主机列表文件\n *\n * @return\n */\n String getAnsibleHostsAllPath();\n\n\n BusinessWrapper<Boolean> saveFilePlaybook(ConfigFilePlaybookDO configFilePlaybookDO);\n\n List<ConfigFilePlaybookVO> getFilePlaybookPage();\n\n BusinessWrapper<Boolean> delFilePlaybook(long id);\n\n PlaybookLogVO doPlaybook(long id, int doType);\n\n PlaybookLogVO getPlaybookLog(long logId);\n\n PlaybookLogVO getPlaybookLog(PlaybookLogDO playbookLogDO);\n\n TableVO<List<PlaybookLogVO>> getPlaybookLogPage(String playbookName, String username, int page, int length);\n\n BusinessWrapper<Boolean> delPlaybookLog(long id);\n\n\n}",
"private void initData() {\r\n allElements = new Vector<PageElement>();\r\n\r\n String className = Utility.getDisplayName(queryResult.getOutputEntity());\r\n List<AttributeInterface> attributes = Utility.getAttributeList(queryResult);\r\n int attributeSize = attributes.size();\r\n //int attributeLimitInDescStr = (attributeSize < 10) ? attributeSize : 10;\r\n\r\n Map<String, List<IRecord>> allRecords = queryResult.getRecords();\r\n serviceURLComboContents.add(\" All service URLs \");\r\n for (String url : allRecords.keySet()) {\r\n\r\n List<IRecord> recordList = allRecords.get(url);\r\n \r\n StringBuilder urlNameSize = new StringBuilder( url );\r\n urlNameSize = new StringBuilder( urlNameSize.substring(urlNameSize.indexOf(\"//\")+2));\r\n urlNameSize = new StringBuilder(urlNameSize.substring(0,urlNameSize.indexOf(\"/\")));\r\n urlNameSize.append(\" ( \" + recordList.size() + \" )\");\r\n serviceURLComboContents.add(urlNameSize.toString());\r\n Vector<PageElement> elements = new Vector<PageElement>();\r\n for (IRecord record : recordList) {\r\n StringBuffer descBuffer = new StringBuffer();\r\n for (int i = 0; i < attributeSize; i++) {\r\n Object value = record.getValueForAttribute(attributes.get(i));\r\n if (value != null) {\r\n if (i != 0) {\r\n descBuffer.append(',');\r\n }\r\n descBuffer.append(value);\r\n }\r\n }\r\n String description = descBuffer.toString();\r\n // if (description.length() > 150) {\r\n // //150 is allowable chars at 1024 resolution\r\n // description = description.substring(0, 150);\r\n // //To avoid clipping of attribute value in-between\r\n // int index = description.lastIndexOf(\",\");\r\n // description = description.substring(0, index);\r\n // }\r\n PageElement element = new PageElementImpl();\r\n element.setDisplayName(className + \"_\" + record.getRecordId().getId());\r\n element.setDescription(description);\r\n\r\n DataRow dataRow = new DataRow(record, queryResult.getOutputEntity());\r\n dataRow.setParent(parentDataRow);\r\n dataRow.setAssociation(queryAssociation);\r\n\r\n Vector recordListUserObject = new Vector();\r\n recordListUserObject.add(dataRow);\r\n recordListUserObject.add(record);\r\n\r\n element.setUserObject(recordListUserObject);\r\n\r\n allElements.add(element);\r\n elements.add(element);\r\n }\r\n URLSToResultRowMap.put(urlNameSize.toString(), elements);\r\n }\r\n }",
"private void populateAxisService() throws org.apache.axis2.AxisFault {\n _service = new org.apache.axis2.description.AxisService(\"RadiologyService\" + getUniqueSuffix());\n addAnonymousOperations();\n\n //creating the operations\n org.apache.axis2.description.AxisOperation __operation;\n\n _operations = new org.apache.axis2.description.AxisOperation[4];\n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"requestAppointment\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[0]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"orderRadiologyExamination\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[1]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutInAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"getOrderStatus\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[2]=__operation;\n \n \n __operation = new org.apache.axis2.description.OutOnlyAxisOperation();\n \n\n __operation.setName(new javax.xml.namespace.QName(\"http://www.PAHospital.org/RadiologyService/\", \"makePayment\"));\n\t _service.addOperation(__operation);\n\t \n\n\t \n\t \n _operations[3]=__operation;\n \n \n }",
"@Override\n\tpublic void export(DataConfig storeConfig) {\n\t\t\n\t\tsuper.export(storeConfig);\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(storeConfig);\n\t\tsaveBnetMap(adapter, bnetMap, storeConfig.getStoreUri(), getName());\n\t\tadapter.close();\n\t}",
"public static void main(String[] args) throws ParseException {\n\t\tSiteCustomerInfoServiceImpl t=InitContext.getBean(\"siteCustomerInfoServiceImpl\", SiteCustomerInfoServiceImpl.class);\n\t\tSystem.out.println(t.getUserData(\"2017-12-12\", \"2017-12-12\", 0, 5));\n\t\t\n\t}",
"@WebService(name = \"infra_PortType\", targetNamespace = PepConfig.TARGET_NAMESPACE)\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n sk.gov.ekolky.estamp.fo10.nominal.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.aponet.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.assessment.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.cashdesk.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.infra.ObjectFactory.class,\n sk.gov.ekolky.estamp.xsd10.ObjectFactory.class,\n com.jump_soft.estamp.fo10.common.ObjectFactory.class,\n sk.gov.ekolky.estamp.fo10.estamp.ObjectFactory.class\n})\npublic interface InfraPortType {\n\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.IncidentRegisterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"incidentRegisterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public IncidentRegisterResponse incidentRegister(\n @WebParam(name = \"incidentRegisterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n IncidentRegisterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.DeviceStateCheckResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"deviceStateCheckResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public DeviceStateCheckResponse deviceStateCheck(\n @WebParam(name = \"deviceStateCheckRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n DeviceStateCheckRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListParameterResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listParameterResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListParameterResponse listParameter(\n @WebParam(name = \"listParameterRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListParameterRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListServiceResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listServiceResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListServiceResponse listService(\n @WebParam(name = \"listServiceRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListServiceRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeeResponse listFee(\n @WebParam(name = \"listFeeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListOfficeResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listOfficeResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListOfficeResponse listOffice(\n @WebParam(name = \"listOfficeRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListOfficeRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListSWPResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listSWPResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListSWPResponse listSWP(\n @WebParam(name = \"listSWPRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListSWPRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListCountryResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listCountryResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListCountryResponse listCountry(\n @WebParam(name = \"listCountryRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListCountryRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListDeviceInfoResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listDeviceInfoResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListDeviceInfoResponse listDeviceInfo(\n @WebParam(name = \"listDeviceInfoRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListDeviceInfoRequest parameters)\n throws BloxFaultMessage\n ;\n\n /**\n * \n * @param parameters\n * @return\n * returns sk.gov.ekolky.estamp.fo10.infra.ListFeDevicesResponse\n * @throws BloxFaultMessage\n */\n @WebMethod\n @WebResult(name = \"listFeDevicesResponse\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n public ListFeDevicesResponse listFeDevices(\n @WebParam(name = \"listFeDevicesRequest\", targetNamespace = PepConfig.TARGET_NAMESPACE, partName = \"parameters\")\n ListFeDevicesRequest parameters)\n throws BloxFaultMessage\n ;\n\n}",
"public static void main(String[] args) {\n\t\t\tString url = \"http://localhost:9999/mavencrm/ws/customerService/customer/1/8a7e859e5948830501594883ab710000\";\r\n\t\t\t// crm 录入客户信息业务 数据库表录入临时测试数据\r\n\t\t\t// 1: 服务 获取未关联的定区客户信息\r\n//\t\t\t Collection<? extends Customer> customers = WebClient.create(url).accept(MediaType.APPLICATION_JSON).getCollection(Customer.class);\r\n\t\t\t// Collection<? extends Customer> customers = WebClient.create(url).accept(MediaType.APPLICATION_JSON).getCollection(Customer.class);\r\n//\t\t\t System.out.println(customers);\r\n\t\t\tWebClient.create(url).put(null);\r\n}",
"@WebService(targetNamespace = \"http://iso8583.org/payload\", name = \"CoreServicePortType\")\n@XmlSeeAlso({ObjectFactory.class, org.team5.bank.core.server.service.model.xsd.ObjectFactory.class})\npublic interface CoreServicePortType {\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getTransactionHistory\", output = \"urn:getTransactionHistoryResponse\")\n @RequestWrapper(localName = \"getTransactionHistory\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistory\")\n @WebMethod(action = \"urn:getTransactionHistory\")\n @ResponseWrapper(localName = \"getTransactionHistoryResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetTransactionHistoryResponse\")\n public java.util.List<org.team5.bank.core.server.service.model.xsd.Transaction> getTransactionHistory(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getBalance\", output = \"urn:getBalanceResponse\")\n @RequestWrapper(localName = \"getBalance\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalance\")\n @WebMethod(action = \"urn:getBalance\")\n @ResponseWrapper(localName = \"getBalanceResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetBalanceResponse\")\n public java.lang.String getBalance(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:getAccount\", output = \"urn:getAccountResponse\")\n @RequestWrapper(localName = \"getAccount\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccount\")\n @WebMethod(action = \"urn:getAccount\")\n @ResponseWrapper(localName = \"getAccountResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.GetAccountResponse\")\n public org.team5.bank.core.server.service.model.xsd.Account getAccount(\n @WebParam(name = \"userId\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Long userId\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:withdraw\", output = \"urn:withdrawResponse\")\n @RequestWrapper(localName = \"withdraw\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Withdraw\")\n @WebMethod(action = \"urn:withdraw\")\n @ResponseWrapper(localName = \"withdrawResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.WithdrawResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse withdraw(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:fundTransfer\", output = \"urn:fundTransferResponse\")\n @RequestWrapper(localName = \"fundTransfer\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransfer\")\n @WebMethod(action = \"urn:fundTransfer\")\n @ResponseWrapper(localName = \"fundTransferResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.FundTransferResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse fundTransfer(\n @WebParam(name = \"from\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String from,\n @WebParam(name = \"to\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String to,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n\n @WebResult(name = \"return\", targetNamespace = \"http://iso8583.org/payload\")\n @Action(input = \"urn:deposit\", output = \"urn:depositResponse\")\n @RequestWrapper(localName = \"deposit\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.Deposit\")\n @WebMethod(action = \"urn:deposit\")\n @ResponseWrapper(localName = \"depositResponse\", targetNamespace = \"http://iso8583.org/payload\", className = \"org.iso8583.payload.DepositResponse\")\n public org.team5.bank.core.server.service.model.xsd.TransactionResponse deposit(\n @WebParam(name = \"accountNo\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.String accountNo,\n @WebParam(name = \"amount\", targetNamespace = \"http://iso8583.org/payload\")\n java.lang.Double amount\n );\n}",
"public static void writeAddressBookData(IOService ioService) {\n if (ioService.equals(com.AddressBook.IOService.CONSOLE_IO))\n System.out.println(\"Employee Payroll to Details : \" + list);\n if (ioService.equals(com.AddressBook.IOService.FILE_IO))\n new AddressBookFileIOService().writeData(list);\n }",
"@RequestMapping(\"/admin/backup.xml\")\r\n public void backup(final ModelMap model, final OutputStream out) throws JAXBException {\r\n\r\n Backup backup = new Backup();\r\n backup.setJobCountPerDay(jobCountPerDayDao.getAll());\r\n backup.setIndustries(jobService.getIndustries());\r\n backup.setRegions(jobService.getRegions());\r\n backup.setRoles(roleDao.getAll());\r\n backup.setUsers(userService.getAllUsers());\r\n backup.setJobs(jobService.getJobs());\r\n\r\n marshaller.marshal(backup, new StreamResult(out));\r\n\r\n }",
"private BusinessDateUtility() {\n\t}",
"public interface TestConstants {\n\n public static final String MONGO_SERVER = \"dun-tst-devf01\";\n public static final int MONGO_PORT = 27017;\n public static final String MONGO_DB = \"mydbTest\";\n public static final String RESOURCE_FILE = \"/j2eeMonitoring.log\";\n public static final String SERVER_NAME = \"appcfm51\";\n public static final String AS_NAME = \"AS_STEELUSER\";\n public static final String APPLICATION_NAME = \"SteelUserTest\";\n\n}",
"public static void main(String[] args) throws FileNotFoundException, ParseException {\n\t\tCreateLocations.main(args);// create default locations\n\t\t\n\t\t// Create Apex Consulting\n\t\t\n\t\tLegalName = \"Apex Consulting\";//compose the company's name\n\t\tDBAName = LegalName;\n\t\tDomain = \"apexconsulting.com\";//compose the company's domain\n\t\tToken = \"0_NJTIPIpaJTl1XOyn9SmfFFrK0=\";// OAuth access token\n\t\tIndustry = \"Consulting\";\n\t\tcity = \"Bellevue\";\n\t\t\n\t\tHQ = location.getCity(locCollection, city);\n\t\tHQ.display();\n\t\tif (HQ.getCountryCode().equals(\"CA\")) {//then it's a Canadian company\n\t\t\tPostingCurrency = \"CAD\";\n\t\t} else if (HQ.getCountryCode().equals(\"GB\")) {//then it's a United Kingdom company\n\t\t\tPostingCurrency = \"GBP\";\n\t\t} else if (HQ.getCountryCode().equals(\"AU\")) {//then it's a Australian company\n\t\t\tPostingCurrency = \"AUD\";\n\t\t}else {//then its an American company\n\t\t\tPostingCurrency = \"USD\";\n\t\t}// if block\n\t\n\t\t\n\t\tcompany.setID(GUID.getGUID(4));\n\t\tcompany.setDBAName(DBAName);\n\t\tcompany.setLegalName(LegalName);\n\t\tcompany.setDomain(Domain);\n\t\tcompany.setIndustry(Industry);\n\t\tcompany.setHQ(HQ);\n\t\tcompany.setPostingCurrency(PostingCurrency);\n\n\t\t\n\t\tcoid = company.getID();\n\t\tout.println(\"----------------------\");\n\t\tcompany.display();\n\t\tmyDoc = company.getDocument();//convert the Company object into a BasicDBObject document\n\t\tmyMongoCompanyFunctions.addDoc(comCollection, myDoc);\n\t\t\n\t\tlogin=\"Support@\" + Domain;\n\t\t\n\t\temployee.setID(GUID.getGUID(4));\n\t\temployee.setDisplayName(firstname + \" \"+ lastname);\n\t\temployee.setEmployerCompanyID(coid);\n\t\temployee.setEmployerCompanyName(LegalName);\n\t\temployee.setHome(HQ);\n\t\temployee.setLastName(lastname);\n\t\temployee.setFirstName(firstname);\n\t\temployee.setLoginID(login);\n\n\t\tout.println(\"----------------------\");\n\t\temployee.display();\n\t\tmyDoc = employee.getDocument();// convert this Employee object into a BasicDBObject\n\t\tmyMongoCompanyFunctions.addDoc(empCollection, myDoc);// add this BasicDBObject to the MongoDB\n\t\t\n\t\tString strDate = \"11/21/2017 04:58:55 AM\";// assign the Expriration_Date to this \"String date\"\n\t\tDate ExpirationDate = sdf.parse(strDate);// parse the \"String date\" into a Date object using the SimpleDateFormat object sdf\n\t\t\n\n\t\tEmployeeID = employee.getID();// assign the ID for this Employee\n\t\tCompanyID = employee.getEmployerCompanyID();// assign the Company ID for this employee\n\t\t\n\t\ttoken.setID(GUID.getGUID(4));\n\t\ttoken.setInstanceURL(Instance);\n\t\ttoken.setToken(Token);\n\t\ttoken.setExpirationDate(ExpirationDate);\n\t\ttoken.setEmployeeID(EmployeeID);\n\t\ttoken.setCompanyID(CompanyID);\n\n\t\tout.println(\"----------------------\");\n\t\ttoken.display();\n\t\tmyDoc = token.getDocument();// convert the OAuthToken object into a BasicDBObject document\n\t\tmyMongoCompanyFunctions.addDoc(tokenCollection, myDoc);// add the BasicDBObject to the Tokens collection\n\t\t\n\t\t\n\t\t\n\t\n\n\t}",
"public static void main(String[] args){\n \n String loginResponse = \"\";\n String jSessionID = \"\";\n String jsonData = \"\";\n String csvData = \"\";\n String writeToFileOutput = \"\";\n // Change the baseURL to your own jira server's address and port number\n // Note: adding \"rest/\" at the end may not be necessary in your \n // environment\n String baseURL = \"http://ec2-18-235-248-253.compute-1.amazonaws.com:2990/jira/rest/\";\n String loginURL = \"auth/1/session\";\n String biExportURL = \"getbusinessintelligenceexport/1.0/message\";\n // The analysisStartData and analysisEndDate specify an inclusive\n // period over time over which you want to extract issues that \n // have been either added or updated.\n String analysisStartDate = \"01-DEC-18\";\n String analysisEndDate = \"31-DEC-18\";\n // The loginUserName and loginPassWord are the credentials for a user\n // who has permission to view the issues that you wish to export.\n String loginUserName = \"admin\";\n String loginPassWord = \"admin\";\n boolean errorsOccurred = false;\n String exportDirectory = \"./downloads/\";\n \n if(!errorsOccurred)\n {\n loginResponse = loginToJira(baseURL, loginURL, loginUserName, loginPassWord);\n if(loginResponse == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n jSessionID = parseJSessionID(loginResponse);\n if(jSessionID == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n jsonData = getJsonData(baseURL, biExportURL, jSessionID, analysisStartDate, analysisEndDate);\n if(jsonData == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n csvData = formatAsCSV(jsonData);\n if(csvData == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n writeToFileOutput = writeToFile(csvData, exportDirectory);\n if(writeToFileOutput == \"ERROR\") { errorsOccurred = true; }\n }\n if(!errorsOccurred)\n {\n System.out.println(\"SUCCESS\");\n } else {\n System.out.println(\"FAILURE\");\n }\n }",
"public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {\n\n response.setContentType( \"text/html\");\n /* set up the intrinsic variables using the pageContext goober:\n ** session = HttpSession\n ** application = ServletContext\n ** out = JspWriter\n ** page = this\n ** config = ServletConfig\n ** all session/app beans declared in globals.jsa\n */\n PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, false, JspWriter.DEFAULT_BUFFER, true);\n // Note: session is false, so no session variable is defined.\n int __jsp_tag_starteval;\n ServletContext application = pageContext.getServletContext();\n JspWriter out = pageContext.getOut();\n _AppsLocalLogin page = this;\n ServletConfig config = pageContext.getServletConfig();\n\n try {\n\n\n out.write(__oracle_jsp_text[0]);\n out.write(__oracle_jsp_text[1]);\n out.write(__oracle_jsp_text[2]);\n out.write(__oracle_jsp_text[3]);\n out.write(__oracle_jsp_text[4]);\n out.write(__oracle_jsp_text[5]);\n out.write(__oracle_jsp_text[6]);\n out.write(__oracle_jsp_text[7]);\n out.write(__oracle_jsp_text[8]);\n out.write(__oracle_jsp_text[9]);\n out.write(__oracle_jsp_text[10]);\n \n Utils.setRequestCharacterEncoding(request);\n String requestUrl = request.getParameter(\"requestUrl\");\n \n WebAppsContext wctx = null;\n boolean alreadySet = false;\n \n Connection conn = null;\n if (Utils.isAppsContextAvailable()) {\n wctx = Utils.getAppsContext();\n alreadySet = true;\n } else {\n wctx = Utils.getAppsContext();\n }\n try {\n String params;\n StringBuffer tmp = new StringBuffer();\n tmp.append(\"requestUrl=\");\n if( requestUrl != null && !requestUrl.equals(\"\"))\n tmp.append(URLEncoder.encode(requestUrl,SessionMgr.getCharSet()));\n \n Enumeration paramNames = request.getParameterNames();\n while (paramNames != null && paramNames.hasMoreElements()) {\n String name = (String) paramNames.nextElement();\n if (!(name.equals(\"requestUrl\")))\n {\n String value = request.getParameter(name);\n tmp.append(\"&\");\n tmp.append(oracle.apps.fnd.util.URLEncoder.encode(name,SessionMgr.getCharSet()));\n tmp.append(\"=\");\n tmp.append(oracle.apps.fnd.util.URLEncoder.encode(value,SessionMgr.getCharSet()));\n }\n } \n \n \n conn = Utils.getConnection();\n boolean getIcxLang = false;\n String langCode = request.getParameter(\"langCode\");\n String sessionLang = null;\n if ( langCode != null)\n {\n // This is from language selection bean\n if (SessionMgr.isInstalledLanguage(langCode))\n {\n sessionLang = langCode;\n Utils.writeToLog(\"sso/html\", \"Language: \"+langCode+\" is installed\", wctx);\n }\n else\n {\n getIcxLang = true;\n Utils.writeToLog(\"sso/html\", \"Language: \"+langCode+\" is not installed in apps\", wctx);\n }\n \n }\n else\n {\n // try getting language from browser\n Utils.writeToLog(\"sso/html\", \"trying to get browser's Language\", wctx);\n \n String browserLanguages = request.getHeader(\"Accept-Language\");\n Utils.writeToLog(\"sso/html\", \"Browser Language:\"+browserLanguages, wctx);\n \n sessionLang = LoginPage.getAppsLangFromBrowser(browserLanguages, wctx);\n getIcxLang = (sessionLang == null || sessionLang.equals(\"\"));\n }\n \n String cval = SessionMgr.getAppsCookie(request); \n String pNlsLanguage = null;\n if(cval!= null && !cval.equals(\"-1\") && !cval.equals(\"\") )\n { \n \n Utils.writeToLog(\"sso/html\", \"Session exists:: \"+cval+\" setting lang :: \"+langCode, wctx); \n LangInfo info = wctx.getLangInfo(sessionLang , null, conn);\n pNlsLanguage = info.getNLSLanguage();\n wctx.validateSession(cval); \n boolean check = wctx.setLanguageContext(pNlsLanguage, null, null, null, null, null, null); \n } else {\n SessionMgr.createGuestSession(request, response, false, sessionLang);\n }\n \n String returnUrl = SSOUtil.getLocalLoginRFUrl(tmp.toString());\n response.sendRedirect(returnUrl );\n } \n catch(Exception e)\n {\n Utils.writeToLog(\"sso/html\", \"Exception occurred\"+e.toString(), wctx); \n throw new Exception(e.toString());\n }\n finally {\n if (alreadySet == false) {\n Utils.releaseAppsContext();\n }\n }\n \n out.write(__oracle_jsp_text[11]);\n\n }\n catch (Throwable e) {\n if (!(e instanceof javax.servlet.jsp.SkipPageException)){\n try {\n if (out != null) out.clear();\n }\n catch (Exception clearException) {\n }\n pageContext.handlePageException(e);\n }\n }\n finally {\n OracleJspRuntime.extraHandlePCFinally(pageContext, true);\n JspFactory.getDefaultFactory().releasePageContext(pageContext);\n }\n\n }",
"public interface MyBatisTest {\n\n List<ItemPayment> export(ExportQueryDBParam exportParam);\n\n}",
"private void initializeExportTable() {\n\t\tif (this.libraryName.equals(\"mapistub.dll\")) {\n\t\t\texportTable.put(\"fixmapi\", (long) (baseAddress + Math.random() * Math.pow(10, 2)));\n\t\t}\n\t}",
"protected void initializeServices() throws Exception {\n String fileName = this.getClass().getSimpleName() + \"Output.csv\";\r\n outputFile = new File(fileName); // located in current run dir \r\n getOutputFile().delete(); // delete any previous version\r\n \r\n // Configure system properties for Velo to work properly (can also be provided as runtime args)\r\n System.setProperty(\"logfile.path\", \"./velo.log\");\r\n if(repositoryPropertiesFile == null) {\r\n System.setProperty(\"repository.properties.path\", \"./repository.properties\");\r\n } else {\r\n System.setProperty(\"repository.properties.path\", repositoryPropertiesFile.getAbsolutePath()); \r\n }\r\n \r\n // Initialize the spring container\r\n if(cmsServicesFile == null && tifServicesFile == null) {\r\n SpringContainerInitializer.loadBeanContainerFromClasspath(null);\r\n \r\n } else {\r\n List<String> beanFilePaths = new ArrayList<String>();\r\n if(cmsServicesFile != null) {\r\n beanFilePaths.add(\"file:\" + cmsServicesFile.getAbsolutePath());\r\n }\r\n if(tifServicesFile != null) {\r\n beanFilePaths.add(\"file:\" + tifServicesFile.getAbsolutePath());\r\n }\r\n SpringContainerInitializer.loadBeanContainerFromFilesystem(beanFilePaths.toArray(new String[beanFilePaths.size()]));\r\n }\r\n \r\n // set the service classes\r\n securityManager = CmsServiceLocator.getSecurityManager();\r\n resourceManager = CmsServiceLocator.getResourceManager();\r\n searchManager = CmsServiceLocator.getSearchManager();\r\n notificationManager = CmsServiceLocator.getNotificationManager();\r\n \r\n if(tifServicesFile != null) {\r\n jobLaunchService = TifServiceLocator.getJobLaunchingService();\r\n codeRegistry = TifServiceLocator.getCodeRegistry();\r\n machineRegistry = TifServiceLocator.getMachineRegistry();\r\n scriptRegistry = TifServiceLocator.getScriptRegistry();\r\n jobConfigService = TifServiceLocator.getJobConfigService();\r\n veloWorkspace = TifServiceLocator.getVeloWorkspace();\r\n }\r\n \r\n \r\n securityManager.login(username, password);\r\n\r\n }",
"public BusinessObjectFormatDdl generateBusinessObjectFormatDdl(BusinessObjectFormatDdlRequest businessObjectFormatDdlRequest);",
"@RequestMapping(\"/exportItem\")\n\tpublic ModelAndView exportData() {\n\t\tList<Item> item = service.getAll();\n\t\treturn new ModelAndView(new ItemXlsxView(),\"itemList\",item);\n\t}",
"public static SCMXMLDto getAppConfigVal()throws Exception {\r\n\t\tUtility.LOG(true,false,\"Entering getAppConfigVal\");\r\n\t\tConnection connection =null;\r\n\t\tPreparedStatement getList =null;\r\n\t\tMap<String,String> tmpMap=new HashMap<String,String>();\r\n\t\tResultSet rsAppConfig = null;\r\n\t\tSCMXMLDto tmpScmDto =new SCMXMLDto();\r\n\t\ttry{\r\n\t\t\t//Start for properties file into database\r\n\t\t\tconnection=DbConnection.getConnectionObject();\r\n\t\t\tgetList= connection.prepareCall(strGetAppConfigValue);\r\n\t\t\tgetList.setString(1, \"Third Party\");\r\n\t\t\trsAppConfig = getList.executeQuery();\r\n\t\t\twhile(rsAppConfig.next()){\r\n\t\t\t\tUtility.LOG(true,true,rsAppConfig.getString(\"KEYNAME\"));\r\n\t\t\t\tUtility.LOG(true,true,rsAppConfig.getString(\"KEYVALUE\"));\r\n\t\t\t\ttmpMap.put(rsAppConfig.getString(\"KEYNAME\"), rsAppConfig.getString(\"KEYVALUE\"));\r\n\t\t\t}\r\n\t\t\tappConfig.put(\"scmQueue_host\", tmpMap.get(\"scmQueue_host\"));\r\n\t\t\tappConfig.put(\"scmQueue_channel\",tmpMap.get(\"scmQueue_channel\"));\r\n\t\t\tappConfig.put(\"scmQueue_port\",tmpMap.get(\"scmQueue_port\"));\r\n\t\t\tappConfig.put(\"scmQueue_qmgrName\",tmpMap.get(\"scmQueue_qmgrName\"));\r\n\t\t\tappConfig.put(\"scmQueue_changeReqQName\",tmpMap.get(\"scmQueue_changeReqQName\"));\r\n\t\t\tappConfig.put(\"scmQueue_reqQName\",tmpMap.get(\"scmQueue_reqQName\"));\r\n\t\t\tappConfig.put(\"scmQueue_respQNamePRReuse\",tmpMap.get(\"scmQueue_respQNamePRReuse\"));\r\n\t\t\tappConfig.put(\"scmQueue_respQNameEiResp\",tmpMap.get(\"scmQueue_respQNameEiResp\"));\r\n\t\t\tappConfig.put(\"scmQueue_respQNameSCMResp\",tmpMap.get(\"scmQueue_respQNameSCMResp\"));\r\n\t\t}catch(Exception ex ){\r\n\t\t\tex.printStackTrace();\t\r\n\t\t}finally{\r\n\t\t\ttry{\r\n\t\t\t\tDbConnection.closeResultset(rsAppConfig);\r\n\t\t\t\tDbConnection.closePreparedStatement(getList);\r\n\t\t\t\tDbConnection.freeConnection(connection);\r\n\t\t\t}catch (SQLException 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}\r\n\t\tUtility.LOG(true,false,\"Exiting getAppConfigVal\");\r\n\t\treturn tmpScmDto;\r\n\t}"
] |
[
"0.600549",
"0.59667546",
"0.56943846",
"0.5565203",
"0.553671",
"0.54745233",
"0.5459374",
"0.53760755",
"0.5364173",
"0.522677",
"0.5223993",
"0.5220537",
"0.52201456",
"0.5206805",
"0.51940536",
"0.5187216",
"0.5186963",
"0.51768035",
"0.5139485",
"0.5133331",
"0.5133151",
"0.5124874",
"0.5094792",
"0.50910455",
"0.50515634",
"0.5015776",
"0.49907163",
"0.4981705",
"0.4961775",
"0.49608955",
"0.49268803",
"0.4921585",
"0.4918752",
"0.4914725",
"0.49032104",
"0.48982316",
"0.48954862",
"0.48797908",
"0.48652425",
"0.48464516",
"0.4833369",
"0.48173413",
"0.48027664",
"0.4800544",
"0.47904456",
"0.47794163",
"0.4768437",
"0.47677615",
"0.4766067",
"0.4752585",
"0.4752585",
"0.47494164",
"0.47463137",
"0.47382134",
"0.4737983",
"0.47312233",
"0.47253275",
"0.47214714",
"0.4718525",
"0.4713691",
"0.47102875",
"0.4701081",
"0.4690247",
"0.4686872",
"0.46840835",
"0.46749088",
"0.46720833",
"0.46716058",
"0.46691862",
"0.46620402",
"0.46605927",
"0.46541953",
"0.4653847",
"0.46527848",
"0.4650133",
"0.46494386",
"0.46484995",
"0.46477643",
"0.46447572",
"0.4644095",
"0.464097",
"0.46407124",
"0.463488",
"0.46211064",
"0.4618345",
"0.46173748",
"0.46165076",
"0.461551",
"0.46143627",
"0.4613567",
"0.46118778",
"0.46118343",
"0.46105942",
"0.46097597",
"0.46084833",
"0.460813",
"0.46078852",
"0.4607031",
"0.46044266",
"0.46035564"
] |
0.486858
|
38
|
Choose config type to export by passing boolean
|
public EnvironmentExporter(Boolean exportWebService, Boolean exportDatabaseConfig, Boolean exportGlobalVar,
Boolean exportBusinessCalendar) {
super();
fExporterList = new ArrayList<AbstractExporter>();
if (exportWebService) {
fExporterList.add(new WebServiceExporter());
}
if (exportDatabaseConfig) {
fExporterList.add(new DatabaseConfigurationExporter());
}
if (exportGlobalVar) {
fExporterList.add(new GlobalVariableExporter());
}
if (exportBusinessCalendar) {
fExporterList.add(new BusinessCalendarExporter());
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Map<String, Object> exportConfiguration();",
"public void setExport(boolean value) {\n this.export = value;\n }",
"boolean hasOutputConfig();",
"io.dstore.values.BooleanValue getImportConfiguration();",
"Map<String, Object> exportDefaultConfiguration();",
"protected void additionalConfig(ConfigType config){}",
"private PluginConfig(String configType) {\n\t\tthis.configType = configType;\n\t}",
"boolean is(Class<? extends DownloaderConfiguration> type);",
"public static byte[] generateConfigClass(boolean value) {\n\n ClassWriter cw = new ClassWriter(0);\n cw.visit(V1_6, ACC_FINAL + ACC_SUPER,\n \"com/rakuten/tech/mobile/perf/runtime/internal/AppPerformanceConfig\", null,\n \"java/lang/Object\", null);\n cw.visitField(ACC_PUBLIC + ACC_STATIC, \"enabled\", \"Z\", null, value);\n cw.visitEnd();\n return cw.toByteArray();\n }",
"public boolean isExport() {\n return export;\n }",
"ShipmentGatewayConfigType createShipmentGatewayConfigType();",
"public void exportConfiguration(){\n\t\tcontroller.exportTestConfiguration();\n\t}",
"private void setPublishType(IPSPubServer server, String type, String driver, String secure, boolean isDefaultServer, String format)\n {\n // Check for file type and local driver\n if (type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_LOCAL))\n {\n String publishTypeValue = PublishType.filesystem.toString();\n if (format.equalsIgnoreCase(XML_FLAG))\n {\n publishTypeValue = PublishType.filesystem_only.toString();\n }\n server.setPublishType(publishTypeValue);\n return;\n }\n\n // Check for file type and FTP driver\n if (type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_FTP))\n {\n boolean isSecureFtp = secure != null && secure.equalsIgnoreCase(\"true\");\n String publishTypeValue = isDefaultServer ? PublishType.ftp.toString() : PublishType.ftp_only.toString();\n if (isSecureFtp)\n {\n publishTypeValue = isDefaultServer ? PublishType.sftp.toString() : PublishType.sftp_only.toString();\n }\n\n if (isDefaultServer && format.equalsIgnoreCase(XML_FLAG))\n {\n publishTypeValue = PublishType.ftp_only.toString();\n if (isSecureFtp)\n {\n publishTypeValue = PublishType.sftp_only.toString();\n }\n }\n server.setPublishType(publishTypeValue);\n return;\n }\n if (type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_SFTP))\n {\n\n String publishTypeValue = isDefaultServer ? PublishType.sftp.toString() : PublishType.sftp_only.toString();\n\n\n if (isDefaultServer && format.equalsIgnoreCase(XML_FLAG))\n {\n publishTypeValue = PublishType.sftp_only.toString();\n\n }\n server.setPublishType(publishTypeValue);\n return;\n }\n // Check for file type and FTPS driver\n if (type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_FTPS))\n {\n if(isDefaultServer && !format.equalsIgnoreCase(XML_FLAG)) {\n server.setPublishType(PublishType.ftps.toString());\n }else{\n server.setPublishType(PublishType.ftps_only.toString());\n }\n return;\n }\n if(type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_AMAZONS3)){\n String publishTypeValue = isDefaultServer ? PublishType.amazon_s3.toString() : PublishType.amazon_s3_only.toString();\n server.setPublishType(publishTypeValue);\n }\n\n if(type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_AMAZONS3)){\n String publishTypeValue = isDefaultServer ? PublishType.amazon_s3.toString() : PublishType.amazon_s3_only.toString();\n server.setPublishType(publishTypeValue);\n }\n // Check for database type\n if (isDatabaseType(type))\n {\n server.setPublishType(PublishType.database.toString());\n }\n }",
"public String getConfigType() {\n\t\treturn configType;\n\t}",
"public void setType(boolean type) {\n this.type = type;\n }",
"boolean hasImportConfiguration();",
"@Override\n\tpublic void setExportEnabled(String ref, boolean enable) {\n\t\t\n\t}",
"public interface AdminToolConfig \n{\n\tpublic static final String WEBJARS_CDN_PREFIX = \"https://cdn.jsdelivr.net/webjars/\";\n\t\n\tpublic static final String WEBJARS_CDN_PREFIX_BOWER = WEBJARS_CDN_PREFIX + \"org.webjars.bower/\";\n\t\n\tpublic static final String WEBJARS_LOCAL_PREFIX = \"/webjars/\";\n\t\n\t/**\n\t * should print the configuration to log\n\t */\n\tpublic void printConfig();\n\t\n\t/**\n\t * should return if component is active or deactivated\n\t * @return\n\t */\n\tpublic boolean isEnabled();\n}",
"@Override\n public boolean hasAdditionalConfig() { return true; }",
"public interface ExportStrategy {\r\n public String getFileName();\r\n public Collection getCollection();\r\n public Class getClazz();\r\n\r\n}",
"@Override\n\tpublic boolean getExportEnabled(String ref) {\n\t\treturn false;\n\t}",
"io.dstore.values.BooleanValueOrBuilder getImportConfigurationOrBuilder();",
"boolean getImportConfigurationNull();",
"public void setOutputFileValue(String name, boolean value) {\n\tString svalue;\n\tgetLogger().finest(\"Setting: \"+name+\" = \"+value);\n\tif (value) {\n\t svalue = \"true\";\n\t} else {\n\t svalue = \"false\";\n\t}\n\t_outputFiles.put(name, svalue);\n }",
"public ConfigGuiType getType();",
"private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }",
"public boolean setPropertyDACConfig(String aValue);",
"public static String getDatabaseExportMode() {\n\t\tif ((xml == null) || (databaseExportMode == null)) return \"disabled\";\n\t\treturn databaseExportMode;\n\t}",
"SettingType createSettingType();",
"boolean requiresConfigSchema();",
"boolean hasConfiguration();",
"public int getType() {\n\t\treturn (config >> 2) & 0x3F;\n\t}",
"static boolean shouldOutput(Configuration conf) {\n return conf.getBoolean(OUTPUT_FLAG, true);\n }",
"public boolean isSetCartypeconfig() {\n return this.cartypeconfig != null;\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:24:54.472 -0400\", hash_original_method = \"313E1346BB4C2A661F225A135DCC1B61\", hash_generated_method = \"5E27901655B27A16747212CDEEA7F56E\")\n \n public static boolean saveConfigCommand(){\n \tdouble taintDouble = 0;\n \n \treturn ((taintDouble) == 1);\n }",
"void writeBool(boolean value);",
"public interface RuntimeConfigurationBackend {\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Boolean getBoolean(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setBoolean(String name, boolean value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Integer getInteger(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setInt(String name, int value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Long getLong(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setLong(String name, long value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Float getFloat(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setFloat(String name, float value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n Double getDouble(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setDouble(String name, double value);\n\n /**\n * @param name the name of the configuration directive.\n * @return the configured value or null.\n */\n String getString(String name);\n\n /**\n * @param name the name of the configuration directive.\n * @param value the configured value.\n */\n void setString(String name, String value);\n}",
"ClassLoaderConfigType createClassLoaderConfigType();",
"public interface AppConfigs {\n\n Double getDouble(String s);\n\n Double getDouble(String s, Double aDouble);\n\n Float getFloat(String s);\n\n Float getFloat(String s, Float aFloat);\n\n Integer getInt(String s);\n\n Integer getInt(String s, Integer integer);\n\n Long getLong(String s);\n\n Long getLong(String s, Long aLong);\n\n String getString(String s);\n\n String getString(String s, String s1);\n\n java.util.Map<String, String> toMap();\n\n Boolean getBoolean(String s);\n\n Boolean getBoolean(String s, boolean s1);\n}",
"public boolean canExport(Grid grid) {\n return true;\n }",
"public static void configItem(String name, boolean value) {\n openMinorTag(\"conf\");\n attribute(\"name\",name);\n attribute(\"value\",value);\n closeMinorTag();\n }",
"boolean hasInputConfig();",
"boolean hasInputConfig();",
"boolean hasInputConfig();",
"@Test\n public void testIsBooleanType()\n { \n assertThat(m_SUT.isBooleanType(), is(false));\n \n when(m_AttributeModel.getType()).thenReturn(AttributeDefinition.BOOLEAN);\n m_SUT = new ConfigPropModelImpl(m_AttributeModel);\n assertThat(m_SUT.isBooleanType(), is(true));\n }",
"public interface PluginConfigType {\n public static final String PLUGIN_PROPERTY_NAME_PREFIX = \"pluginProperty_\";\n\n /**\n * Render the configuration item to the given writer. This should result in some form control element.\n * The name of the form control should be \"pluginProperty_\" followed by the pluginConfig.getKey().\n *\n * @param writer The writer to render to\n * @param pluginConfig The configuration to render\n * @param value The value to render\n * @throws IOException If an error occured\n */\n void render(JspWriter writer, PluginConfig pluginConfig, String value) throws IOException;\n\n /**\n * Validate the value entered the user\n * \n * @param pluginConfig The config to validate against\n * @param value The value to validate\n * @return null if validation passed, or a error message if not\n */\n String validate(PluginConfig pluginConfig, String value);\n\n}",
"boolean isNoExport();",
"ConfigType getConfigTypeByCode(String typeCode);",
"public static boolean isMatrixConfig( ProjectDTO type )\n {\n return \"hudson.matrix.MatrixConfiguration\".equals( type.getType() ); //$NON-NLS-1$\n }",
"public static boolean databaseExportEnabled() {\n\t\tif ((xml == null) || (databaseExportMode == null)) return false;\n\t\treturn !databaseExportMode.equals(\"disabled\");\n\t}",
"private static void customSettingWhenDisabled(){\n if (format == null) setFormat(false);\n if (!format.equals(\"\")) tick(false); // If the setting is not empty, then use our custom format\n }",
"public interface StageConfig extends Config<StageConfig> {\r\n\r\n /**\r\n * Get the name of the stage\r\n * @return Name of the stage\r\n */\r\n String getStageName();\r\n\r\n /**\r\n * Get the fully-qualified class the stage is an instance of\r\n * @return\r\n */\r\n String getStageClass();\r\n\r\n /**\r\n * Get name for the StageExecutionMode to be used for this stage. This should\r\n * be the name of the enum (e.g. NEXT_DOC, NEXT_STAGE, etc..) It is used to\r\n * instantiate the enum from a serialized configuration.\r\n * @return Name for the StageExecutionMode\r\n */\r\n String getStageExceptionModeClass();\r\n\r\n /**\r\n * Get StageExecutionMode for the Stage. If stage does not set this explicitly,\r\n * the stageExecutionMode setting for the pipeline will be applied.\r\n * @return StageExecutionMode instance\r\n */\r\n StageExceptionMode getStageExceptionMode();\r\n\r\n /**\r\n * Set the StageExecutionMode for this stage to the specified value. If stage\r\n * does not set this explicitly, the stageExecutionMode setting for the pipeline\r\n * will be applied.\r\n * @param mode StageExceptionMode to apply\r\n */\r\n void setStageExceptionMode(StageExceptionMode mode);\r\n}",
"public void setDistributable(boolean distributable);",
"public List<ProgressConfigurationType> getConfigType(String type);",
"public boolean getOutputFileValue(String name) {\n\tboolean ret = false;\n\tString value = (String) _outputFiles.get(name);\n\tif ((value!=null) && (value.toLowerCase().equals(\"true\"))) {\n\t ret = true;\n\t}\n\treturn ret;\n }",
"public void setBulkTransport(boolean value) {\r\n this.bulkTransport = value;\r\n }",
"boolean isNewConfig();",
"public boolean getType() {\r\n\t\treturn type;\r\n\t}",
"public boolean createCustomTemperatureConfig() {\n TEMPERATURES.getConfig().save();\n return true;\n }",
"public void exportConfigs ()\n {\n if (_chooser.showOpenDialog(ConfigEditor.this) == JFileChooser.APPROVE_OPTION) {\n ArrayList<ManagedConfig> configs = new ArrayList<ManagedConfig>();\n _tree.getSelectedNode().getConfigs(configs);\n group.save(configs, _chooser.getSelectedFile());\n }\n _prefs.put(\"config_dir\", _chooser.getCurrentDirectory().toString());\n }",
"public abstract IOpipeConfiguration config();",
"public String getType() {\r\n\t\treturn \"boolean\";\r\n\t}",
"private void treatmentBooleanDecorator() throws ConfigurationException {\n\t\tif (stylesMap.get(CellStyleHandler.CELL_DECORATOR_BOOLEAN) == null) {\n\t\t\tstylesMap.put(CellStyleHandler.CELL_DECORATOR_BOOLEAN,\n\t\t\t\t\tcellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_BOOLEAN)\n\t\t\t\t\t\t\t? CellStyleHandler.initializeCellStyleByCellDecorator(workbook,\n\t\t\t\t\t\t\t\t\tcellDecoratorMap.get(CellStyleHandler.CELL_DECORATOR_BOOLEAN))\n\t\t\t\t\t\t\t: CellStyleHandler.initializeBooleanCellDecorator(workbook));\n\t\t\tcellDecoratorMap.remove(cellDecoratorMap.containsKey(CellStyleHandler.CELL_DECORATOR_BOOLEAN));\n\t\t}\n\t}",
"@Test\n public void testLoadOptional() throws Exception\n {\n factory.setURL(OPTIONAL_FILE.toURI().toURL());\n Configuration config = factory.getConfiguration();\n assertTrue(config.getBoolean(\"test.boolean\"));\n assertEquals(\"value\", config.getProperty(\"element\"));\n }",
"public ExportType getResultantExportType() {\r\n\t\treturn this.exportType;\r\n\t}",
"protected abstract Class<C> getConfigClass();",
"boolean hasConfigConnectorConfig();",
"public void setIsGermplasmTemplate(boolean isGermplasmTemplate);",
"boolean hasProduceResType();",
"boolean isDataSourceIngestModuleFactory();",
"public void setDefaultOutputsEnabled( boolean enabled );",
"private void exportConfiguration() {\n if (!Files.exists(languageConfigPath)) this.saveResource(\"language.yml\", false);\n if (!Files.exists(propertiesConfigPath)) this.saveResource(\"properties.yml\", false);\n }",
"@Override\n public boolean isConfigured()\n {\n return (config != null) && config.isValid() &&!config.isDisabled();\n }",
"@Override\n\tpublic boolean hasExtraConfigs()\n\t{\n\t\treturn false;\n\t}",
"public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}",
"@Override\n\tpublic int IfNameAndTypeExist(String adminname, String pagetype) {\n\t\treturn SettingMapper.IfNameAndTypeExist(adminname, pagetype);\n\t}",
"boolean isTypeAdapterAware();",
"private void createExportStatusAndReview(){\r\n\t\tComposite composite = createParent(getFieldEditorParent(), \"Common\");\r\n\t\tuseExportStatusAndReview = new BooleanFieldEditor(CapellaDocgenPreferenceConstant.DOCGEN_EXPORT__STATUS_AND_REVIEW, \r\n\t\t\t\t Messages.EXPORT__STATUS_AND_REVIEW_FIELD_LABEL, composite);\r\n\t}",
"@JsonAutoDetect(\n fieldVisibility = JsonAutoDetect.Visibility.ANY,\n isGetterVisibility = JsonAutoDetect.Visibility.NONE,\n getterVisibility = JsonAutoDetect.Visibility.NONE)\n@JsonTypeInfo(\n use = JsonTypeInfo.Id.NAME,\n include = JsonTypeInfo.As.PROPERTY,\n property = \"type\")\n@JsonSubTypes({\n @JsonSubTypes.Type(value = CommandAlign.AlignConfiguration.class, name = \"align-configuration\"),\n @JsonSubTypes.Type(value = CommandAssemble.AssembleConfiguration.class, name = \"assemble-configuration\"),\n @JsonSubTypes.Type(value = CommandAssembleContigs.AssembleContigsConfiguration.class, name = \"assemble-contig-configuration\"),\n @JsonSubTypes.Type(value = CommandAssemblePartialAlignments.AssemblePartialConfiguration.class, name = \"assemble-partial-configuration\"),\n @JsonSubTypes.Type(value = CommandExtend.ExtendConfiguration.class, name = \"extend-configuration\"),\n @JsonSubTypes.Type(value = CommandMergeAlignments.MergeConfiguration.class, name = \"merge-configuration\"),\n @JsonSubTypes.Type(value = CommandFilterAlignments.FilterConfiguration.class, name = \"filter-configuration\"),\n @JsonSubTypes.Type(value = CommandSortAlignments.SortConfiguration.class, name = \"sort-configuration\"),\n @JsonSubTypes.Type(value = CommandSlice.SliceConfiguration.class, name = \"slice-configuration\")\n})\n@Serializable(asJson = true)\npublic interface ActionConfiguration<Conf extends ActionConfiguration<Conf>> {\n String actionName();\n\n /** Action version string */\n default String versionId() { return \"\"; }\n\n /** Compatible with other configuration */\n default boolean compatibleWith(Conf other) { return equals(other); }\n}",
"public Builder setImportConfiguration(io.dstore.values.BooleanValue value) {\n if (importConfigurationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n importConfiguration_ = value;\n onChanged();\n } else {\n importConfigurationBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public final JsonFactory configure(JsonGenerator.Feature f, boolean state)\n/* */ {\n/* 626 */ return state ? enable(f) : disable(f);\n/* */ }",
"boolean isSetCryptProviderTypeExt();",
"public interface BooleanFormatStrategy extends FormatStrategy\n{\n String UPPER_CASE_FORMAT = \"UPPER_CASE\";\n String UPPER_CASE_FORMAT_DESC = \"Upper Case\";\n String CAPITALIZED_FORMAT = \"CAPITALIZED\";\n String CAPITALIZED_FORMAT_DESC = \"Capitalized\";\n String TRUE_STRING = \"True\";\n String FALSE_STRING = \"False\";\n\n String format(Short aShort);\n\n String format(Short aShort, String styleName);\n}",
"protected boolean isShowFormatterSetting() {\n \t\treturn true;\n \t}",
"public boolean getDefaultOutputsEnabled();",
"ImportConfig createImportConfig();",
"public void exportInternalCCDDData(boolean[] includes,\n CcddConstants.exportDataTypes[] dataTypes,\n FileEnvVar exportFile,\n String outputType) throws CCDDException, Exception\n {\n // Placeholder\n }",
"@Test\n @Ignore(\"Need to implement\")\n public void testOutputDynamicCsvMode() throws Throwable {\n testOutputDynamic(true);\n }",
"public abstract String getConfig();",
"private boolean updateConfigurationFromGUI(OBORunnerConfiguration config) {\n // config from main panel\n // path\n String inputFile = mainPanel.inputFileTextField.getText();\n config.paths.setValue(inputFile);\n // outFile\n config.outFile.setValue(mainPanel.outputFileTextField.getText());\n // outputdir is not used in the GUI\n if (config.outFile.isEmpty() && config.outputdir.isEmpty()) {\n renderInputError(\"Configuration error. Please specify at least one fo the following in the main panel: Output Folder OR Output File\");\n return false;\n }\n // isOboToOwl\n config.isOboToOwl.setRealValue(mainPanel.obo2owlButton.isSelected());\n // config from advanced panel\n // defaultOnt\n config.defaultOnt.setValue(specificAdvancedPanel.defaultOntologyField\n .getText());\n // format (owlxml, manchester, rdf)\n if (specificAdvancedPanel.formatOWLXMLButton.isSelected()) {\n config.format.setValue(\"owlxml\");\n } else if (specificAdvancedPanel.formatManchesterButton.isSelected()) {\n config.format.setValue(\"manchester\");\n } else {\n config.format.setValue(\"RDF\");\n }\n // allowDangling\n config.allowDangling\n .setRealValue(specificAdvancedPanel.danglingCheckbox\n .isSelected());\n // follow imports\n config.followImports\n .setRealValue(specificAdvancedPanel.followImportsCheckBox\n .isSelected());\n // strict conversion\n config.strictConversion\n .setRealValue(specificAdvancedPanel.strictCheckBox.isSelected());\n // expand Macros\n config.isExpandMacros\n .setRealValue(specificAdvancedPanel.expandMacrosCheckbox\n .isSelected());\n // ontsToDownloads\n if (advancedPanel.downloadOntologiesCheckBox.isSelected()) {\n List<String> strings = GuiTools\n .getStrings(advancedPanel.downloadOntologies);\n for (String string : strings) {\n config.ontsToDownload.setValue(string);\n }\n // buildDir -> temp dir for download\n String buildDir = advancedPanel.ontologyDownloadFolderField\n .getText();\n if (strings.size() > 0\n && (buildDir == null || buildDir.length() <= 0)) {\n renderInputError(\"Configuration error. Please specify also a download directory.\");\n return false;\n } else {\n config.buildDir.setValue(buildDir);\n }\n }\n // omitOntsToDownload\n if (advancedPanel.omitDownloadOntologiesCheckBox.isSelected()) {\n List<String> strings = GuiTools\n .getStrings(advancedPanel.omitDownloadOntologies);\n for (String string : strings) {\n config.omitOntsToDownload.setValue(string);\n }\n }\n return true;\n }",
"@Override\n public void writeToConfig(ConfigurationNode config, Optional<CollisionOptions> value) {\n config.remove(\"trainCollision\");\n\n if (value.isPresent()) {\n ConfigurationNode collisionConfig = config.getNode(\"collision\");\n CollisionOptions data = value.get();\n\n for (CollisionMobCategory category : CollisionMobCategory.values()) {\n CollisionMode mode = data.mobMode(category);\n if (mode != null) {\n collisionConfig.set(category.getMobType(), mode);\n } else {\n collisionConfig.remove(category.getMobType());\n }\n }\n\n collisionConfig.set(\"players\", data.playerMode());\n collisionConfig.set(\"misc\", data.miscMode());\n collisionConfig.set(\"train\", data.trainMode());\n collisionConfig.set(\"block\", data.blockMode());\n } else {\n config.remove(\"collision\");\n }\n }",
"boolean typeIsStandalone() {\n return true;\n }",
"public interface ApiConfig {\n\n String DYTT_URL = \"http://www.dytt8.net/index.htm\";\n String DY_2018_URL = \"http://www.dy2018.com/\";\n String DYTT_XL = \"http://www.ygdy8.net/html/gndy/index.html\";\n String XIAO_PIAN_URL = \"http://www.xiaopian.com/html/\";\n String PIAO_HUA_URL = \"http://www.piaohua.com/html/\";\n String K_567_URL = \"http://www.567k.info/?\";\n\n interface Type {\n String DYTT = \"dytt\";\n String DY_2018 = \"dy2018\";\n String XIAO_PIAN = \"xiaopian\";\n String PIAO_HUA = \"piaohua\";\n String K_567 = \"k567\";\n\n int DYTT_XL_TYPE = 0;\n int DYTT_CHOSEN_TYPE = 1;\n }\n}",
"public void dumpTypeMapping(Config config) throws FileNotFoundException {\n PrintStream stream = new PrintStream(\"type_mapping.txt\");\n\n // avoid \"unused\" warning\n dumpMap(stream, new HashMap<String, String>());\n //\n // Map<String, String> simpleAttrAtomicTypeMapping =\n // config.getSimpleAttrAtomicTypeMapping();\n // stream.println(\"AttrAtomicTypeMapping\");\n // dumpMap(stream, simpleAttrAtomicTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrAtomicTypePreConversionMapping = config\n // .getSimpleAttrAtomicTypePreConversionMapping();\n // stream.println(\"AttrAtomicTypePreConversionMapping\");\n // dumpMap(stream, simpleAttrAtomicTypePreConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrAtomicTypeConversionMapping =\n // config.getSimpleAttrAtomicTypeConversionMapping();\n // stream.println(\"AttrAtomicTypeConversionMapping\");\n // dumpMap(stream, simpleAttrAtomicTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrAtomicTypePostConversionMapping =\n // config\n // .getSimpleAttrAtomicTypePostConversionMapping();\n // stream.println(\"AttrAtomicTypePostConversionMapping\");\n // dumpMap(stream, simpleAttrAtomicTypePostConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypeMapping =\n // config.getSimpleAttrListTypeMapping();\n // stream.println(\"AttrListTypeMapping\");\n // dumpMap(stream, simpleAttrListTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypePreConversionMapping =\n // config.getSimpleAttrListTypePreConversionMapping();\n // stream.println(\"AttrListTypePreConversionMapping\");\n // dumpMap(stream, simpleAttrListTypePreConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypeConversionMapping =\n // config.getSimpleAttrListTypeConversionMappingNoItemValidation();\n // stream.println(\"AttrListTypeConversionMapping\");\n // dumpMap(stream, simpleAttrListTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypePostConversionMapping = config\n // .getSimpleAttrListTypePostConversionMapping();\n // stream.println(\"AttrListTypePostConversionMapping\");\n // dumpMap(stream, simpleAttrListTypePostConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypeMapping =\n // config.getSimpleDataAtomicTypeMapping();\n // stream.println(\"DataAtomicTypeMapping\");\n // dumpMap(stream, simpleDataAtomicTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypePreConversionMapping = config\n // .getSimpleDataAtomicTypePreConversionMapping();\n // stream.println(\"DataAtomicTypePreConversionMapping\");\n // dumpMap(stream, simpleDataAtomicTypePreConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypeConversionMapping =\n // config.getSimpleDataAtomicTypeConversionMapping();\n // stream.println(\"DataAtomicTypeConversionMapping\");\n // dumpMap(stream, simpleDataAtomicTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypePostConversionMapping =\n // config\n // .getSimpleDataAtomicTypePostConversionMapping();\n // stream.println(\"DataAtomicTypePostConversionMapping\");\n // dumpMap(stream, simpleDataAtomicTypePostConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataListTypeMapping =\n // config.getSimpleDataListTypeMapping();\n // stream.println(\"DataListTypeMapping\");\n // dumpMap(stream, simpleDataListTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataListTypeConversionMapping =\n // config.getSimpleDataListTypeConversionMapping();\n // stream.println(\"DataListTypeConversionMapping\");\n // dumpMap(stream, simpleDataListTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n stream.close();\n }",
"@java.lang.Override\n public boolean getBoolValue() {\n if (typeCase_ == 2) {\n return (java.lang.Boolean) type_;\n }\n return false;\n }",
"public static void saveGameType() {\r\n\t\tclearGameType();\r\n\t\t\r\n\t\tif (GameSetup.threeHanded.getState()) {\r\n\t\t\tMain.isThreeHanded = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedSingle.getState()) {\r\n\t\t\tMain.isFourHandedSingle = true;\r\n\t\t}\r\n\t\tif (GameSetup.fourHandedTeams.getState()) {\r\n\t\t\tMain.isFourHandedTeams = true;\r\n\t\t}\r\n\t}",
"Map<String, Object> createConfig(Request request, String configtype);",
"@Override\r\n public void configure(Map<String, ?> configs, boolean isKey) {\n \r\n }",
"boolean isSetCryptProviderTypeExtSource();",
"public interface Configuration {\n\n}"
] |
[
"0.5991425",
"0.59524727",
"0.58315694",
"0.57117707",
"0.56313056",
"0.55091584",
"0.54130524",
"0.5380504",
"0.5338772",
"0.5285099",
"0.52584124",
"0.52346265",
"0.51344013",
"0.5124218",
"0.512039",
"0.51093924",
"0.5092882",
"0.5039809",
"0.5037513",
"0.5025413",
"0.5006569",
"0.49757385",
"0.49609753",
"0.4960199",
"0.49550068",
"0.49446017",
"0.4930624",
"0.49228382",
"0.4915069",
"0.49013618",
"0.49002063",
"0.48914182",
"0.48876417",
"0.4881932",
"0.48737782",
"0.48707747",
"0.48513314",
"0.4847129",
"0.48459944",
"0.48444012",
"0.4838456",
"0.483607",
"0.483607",
"0.483607",
"0.48279086",
"0.48255962",
"0.48238266",
"0.4820005",
"0.48058146",
"0.48049283",
"0.48038852",
"0.47899497",
"0.47611466",
"0.47436732",
"0.47398588",
"0.4728548",
"0.47251204",
"0.47196385",
"0.4697872",
"0.46977",
"0.46967372",
"0.46964216",
"0.46937478",
"0.46877772",
"0.4684716",
"0.46830046",
"0.46683744",
"0.46601057",
"0.46585545",
"0.46561682",
"0.46532625",
"0.46470475",
"0.4646214",
"0.46459705",
"0.46396396",
"0.46364802",
"0.4635684",
"0.46352863",
"0.46347305",
"0.4634272",
"0.46258053",
"0.46257713",
"0.46075594",
"0.4601312",
"0.4589411",
"0.45875522",
"0.45840526",
"0.45830098",
"0.45821515",
"0.4577302",
"0.45735025",
"0.45706114",
"0.45648414",
"0.4564448",
"0.4558519",
"0.4548856",
"0.4543497",
"0.45418233",
"0.45367736",
"0.4528886"
] |
0.50997305
|
16
|
Choose config type to export by pass the list of correlative exporter
|
public EnvironmentExporter(List<AbstractExporter> exporterList) {
super();
this.fExporterList = exporterList;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public interface ExportStrategy {\r\n public String getFileName();\r\n public Collection getCollection();\r\n public Class getClazz();\r\n\r\n}",
"Map<String, Object> exportConfiguration();",
"public List<ProgressConfigurationType> getConfigType(String type);",
"Map<String, Object> exportDefaultConfiguration();",
"public void exportConfigs ()\n {\n if (_chooser.showOpenDialog(ConfigEditor.this) == JFileChooser.APPROVE_OPTION) {\n ArrayList<ManagedConfig> configs = new ArrayList<ManagedConfig>();\n _tree.getSelectedNode().getConfigs(configs);\n group.save(configs, _chooser.getSelectedFile());\n }\n _prefs.put(\"config_dir\", _chooser.getCurrentDirectory().toString());\n }",
"public abstract ArrayList<ImportExportPair> getConfiguracion();",
"public ConfigGuiType getType();",
"PartyType getExporterParty();",
"Exporter<?, ?> getExporter(String transferDataType);",
"public void exportConfiguration(){\n\t\tcontroller.exportTestConfiguration();\n\t}",
"public ReportConfigType getReportConfigType() throws OculusException\n {\n IIID iid = getTargetClassIID();\n if(IDCONST.PRODUCT.equals(iid))\n return ReportConfigType.CUSTOM_GLOBAL;\n else if(IDCONST.PRODUCTVERSION.equals(iid))\n return ReportConfigType.CUSTOM_PRODUCT; \n else if(IDCONST.CATEGORY.equals(iid))\n return ReportConfigType.CUSTOM_PRODUCT_VERSION;\n else if(IDCONST.FEATURECATEGORYLINK.equals(iid))\n return ReportConfigType.CUSTOM_FEATURE;\n else if(IDCONST.DISCUSSIONTOPIC.equals(iid))\n return ReportConfigType.CUSTOM_PRODUCT_VERSION;\n else if(IDCONST.STANDARDSCOLLECTION.equals(iid))\n return ReportConfigType.CUSTOM_GLOBAL;\n else if(IDCONST.STANDARDINPUT.equals(iid))\n return ReportConfigType.CUSTOM_FOLDER;\n else if(IDCONST.ARTICLEINPUT.equals(iid))\n return ReportConfigType.CUSTOM_FOLDER;\n else if(IDCONST.QUESTIONINPUT.equals(iid))\n return ReportConfigType.CUSTOM_FOLDER;\n else if(IDCONST.WINLOSSINPUT.equals(iid))\n return ReportConfigType.CUSTOM_FOLDER;\n else if(IDCONST.PROBLEMSTATEMENT.equals(iid))\n return ReportConfigType.CUSTOM_FOLDER; \n return null;\n }",
"private PluginConfig(String configType) {\n\t\tthis.configType = configType;\n\t}",
"protected void additionalConfig(ConfigType config){}",
"public void exportList(String name){\n }",
"ConfigType getConfigTypeByCode(String typeCode);",
"@Override\n\tprotected String getExportFileType() {\n\t\treturn null;\n\t}",
"public ExportType getResultantExportType() {\r\n\t\treturn this.exportType;\r\n\t}",
"private void initExportMap() {\n\t\tsegConfigStringMap.put(\"cells.BlueSchellingCell\", \"b\");\n\t\tsegConfigStringMap.put(\"cells.OrangeSchellingCell\", \"o\");\n\t\tsegConfigStringMap.put(\"cells.EmptyCell\", \"e\");\n\t\tgOLConfigStringMap.put(\"cells.LiveCell\", \"l\");\n\t\tgOLConfigStringMap.put(\"cells.DeadCell\", \"d\");\n\t\tfireConfigStringMap.put(\"cells.TreeCell\", \"t\");\n\t\tfireConfigStringMap.put(\"cells.BurningTreeCell\", \"b\");\n\t\tfireConfigStringMap.put(\"cells.EmptyLandCell\", \"e\");\n\t\twatorConfigStringMap.put(\"cells.FishCell\", \"f\");\n\t\twatorConfigStringMap.put(\"cells.SharkCell\", \"s\");\n\t\twatorConfigStringMap.put(\"cells.EmptyCell\", \"e\");\n\t\tantConfigStringMap.put(\"cells.AntGroupCell\", \"a\");\n\t\tantConfigStringMap.put(\"cells.EmptyCell\", \"e\");\n\t\trpsConfigStringMap.put(\"cells.BlueRPSCell\", \"b\");\n\t\trpsConfigStringMap.put(\"cells.GreenRPSCell\", \"g\");\n\t\trpsConfigStringMap.put(\"cells.WhiteRPSCell\", \"w\");\n\t\trpsConfigStringMap.put(\"cells.RedRPSCell\", \"r\");\n\t}",
"@Override\n protected String getExportFileType() {\n return null;\n }",
"@Override\n protected String getExportFileType() {\n return null;\n }",
"@Override\n protected String getExportFileType() {\n return null;\n }",
"public EnvironmentExporter(Boolean exportWebService, Boolean exportDatabaseConfig, Boolean exportGlobalVar,\r\n Boolean exportBusinessCalendar) {\r\n super();\r\n fExporterList = new ArrayList<AbstractExporter>();\r\n if (exportWebService) {\r\n fExporterList.add(new WebServiceExporter());\r\n }\r\n if (exportDatabaseConfig) {\r\n fExporterList.add(new DatabaseConfigurationExporter());\r\n }\r\n if (exportGlobalVar) {\r\n fExporterList.add(new GlobalVariableExporter());\r\n }\r\n if (exportBusinessCalendar) {\r\n fExporterList.add(new BusinessCalendarExporter());\r\n }\r\n }",
"@Override\r\n\tpublic List<Object> exportShipmentfile(String Type, List<String> Data) {\n\t\t\r\n\t\tList<Object> exportedShipment ;\r\n\t\t\r\n\t\tif(Type.equals(\"articleid\"))\r\n\t\t{\r\n\t\t\texportedShipment = senderDataRepository.exportShipmentArticleid(Data);\r\n\t\t}\r\n\t\telse if (Type.equals(\"barcodelabel\"))\r\n\t\t\t\t{\r\n\t\t\texportedShipment = senderDataRepository.exportShipmentBarcode(Data);\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.print(\"in else\");\r\n\t\t\texportedShipment = senderDataRepository.exportShipmentRef(Data);\r\n\t\t}\r\n\t\t\t\t\r\n\t\tSystem.out.println(exportedShipment.size());\r\n\t\treturn exportedShipment;\r\n\t\t\r\n\t}",
"public interface DwCAExportPipelineOptions extends IndexingPipelineOptions {\n\n @Description(\"Message format compatible Image service URL path\")\n String getImageServicePath();\n\n void setImageServicePath(String imageServicePath);\n\n @Description(\"Local filesystem path to use to generate a path for ZIP\")\n String getLocalExportPath();\n\n void setLocalExportPath(String localExportPath);\n\n @Default.Boolean(true)\n @Description(\"Predicate exports enabled\")\n Boolean getPredicateExportEnabled();\n\n void setPredicateExportEnabled(Boolean predicateExportEnabled);\n}",
"public List<String> getDataPointTypes() {\n Object[] dpTypes = (Object[])configMap.get(DATA_POINT_TYPES);\n List<String> types = Utility.downcast( dpTypes );\n return types;\n }",
"public void dumpTypeMapping(Config config) throws FileNotFoundException {\n PrintStream stream = new PrintStream(\"type_mapping.txt\");\n\n // avoid \"unused\" warning\n dumpMap(stream, new HashMap<String, String>());\n //\n // Map<String, String> simpleAttrAtomicTypeMapping =\n // config.getSimpleAttrAtomicTypeMapping();\n // stream.println(\"AttrAtomicTypeMapping\");\n // dumpMap(stream, simpleAttrAtomicTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrAtomicTypePreConversionMapping = config\n // .getSimpleAttrAtomicTypePreConversionMapping();\n // stream.println(\"AttrAtomicTypePreConversionMapping\");\n // dumpMap(stream, simpleAttrAtomicTypePreConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrAtomicTypeConversionMapping =\n // config.getSimpleAttrAtomicTypeConversionMapping();\n // stream.println(\"AttrAtomicTypeConversionMapping\");\n // dumpMap(stream, simpleAttrAtomicTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrAtomicTypePostConversionMapping =\n // config\n // .getSimpleAttrAtomicTypePostConversionMapping();\n // stream.println(\"AttrAtomicTypePostConversionMapping\");\n // dumpMap(stream, simpleAttrAtomicTypePostConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypeMapping =\n // config.getSimpleAttrListTypeMapping();\n // stream.println(\"AttrListTypeMapping\");\n // dumpMap(stream, simpleAttrListTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypePreConversionMapping =\n // config.getSimpleAttrListTypePreConversionMapping();\n // stream.println(\"AttrListTypePreConversionMapping\");\n // dumpMap(stream, simpleAttrListTypePreConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypeConversionMapping =\n // config.getSimpleAttrListTypeConversionMappingNoItemValidation();\n // stream.println(\"AttrListTypeConversionMapping\");\n // dumpMap(stream, simpleAttrListTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleAttrListTypePostConversionMapping = config\n // .getSimpleAttrListTypePostConversionMapping();\n // stream.println(\"AttrListTypePostConversionMapping\");\n // dumpMap(stream, simpleAttrListTypePostConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypeMapping =\n // config.getSimpleDataAtomicTypeMapping();\n // stream.println(\"DataAtomicTypeMapping\");\n // dumpMap(stream, simpleDataAtomicTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypePreConversionMapping = config\n // .getSimpleDataAtomicTypePreConversionMapping();\n // stream.println(\"DataAtomicTypePreConversionMapping\");\n // dumpMap(stream, simpleDataAtomicTypePreConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypeConversionMapping =\n // config.getSimpleDataAtomicTypeConversionMapping();\n // stream.println(\"DataAtomicTypeConversionMapping\");\n // dumpMap(stream, simpleDataAtomicTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataAtomicTypePostConversionMapping =\n // config\n // .getSimpleDataAtomicTypePostConversionMapping();\n // stream.println(\"DataAtomicTypePostConversionMapping\");\n // dumpMap(stream, simpleDataAtomicTypePostConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataListTypeMapping =\n // config.getSimpleDataListTypeMapping();\n // stream.println(\"DataListTypeMapping\");\n // dumpMap(stream, simpleDataListTypeMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n // Map<String, String> simpleDataListTypeConversionMapping =\n // config.getSimpleDataListTypeConversionMapping();\n // stream.println(\"DataListTypeConversionMapping\");\n // dumpMap(stream, simpleDataListTypeConversionMapping);\n // stream.println(\n // \"***********************************************************\");\n // stream.println();\n // stream.println();\n //\n stream.close();\n }",
"public interface ApiConfig {\n\n String DYTT_URL = \"http://www.dytt8.net/index.htm\";\n String DY_2018_URL = \"http://www.dy2018.com/\";\n String DYTT_XL = \"http://www.ygdy8.net/html/gndy/index.html\";\n String XIAO_PIAN_URL = \"http://www.xiaopian.com/html/\";\n String PIAO_HUA_URL = \"http://www.piaohua.com/html/\";\n String K_567_URL = \"http://www.567k.info/?\";\n\n interface Type {\n String DYTT = \"dytt\";\n String DY_2018 = \"dy2018\";\n String XIAO_PIAN = \"xiaopian\";\n String PIAO_HUA = \"piaohua\";\n String K_567 = \"k567\";\n\n int DYTT_XL_TYPE = 0;\n int DYTT_CHOSEN_TYPE = 1;\n }\n}",
"public String getConfigType() {\n\t\treturn configType;\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n protected OwXMLUtil findMatchingRendererConfig(List<String> mimeType_p) throws OwConfigurationException\r\n {\r\n List<OwXMLUtil> viewers = getConfiguration().getSafeUtilList(EL_VIEWER);\r\n OwXMLUtil anyContentViewer = null;\r\n for (OwXMLUtil viewer : viewers)\r\n {\r\n List<OwXMLUtil> filterMimes = viewer.getSafeUtilList(EL_FILTER, EL_MIME);\r\n for (OwXMLUtil filter : filterMimes)\r\n {\r\n String mimeType = filter.getSafeStringAttributeValue(AT_TYPE, null);\r\n if (mimeType != null)\r\n {\r\n if (ANY_CONTENT_TYPE.equals(mimeType))\r\n {\r\n anyContentViewer = viewer;\r\n }\r\n if (mimeType_p.contains(mimeType))\r\n {\r\n return viewer;\r\n }\r\n }\r\n }\r\n }\r\n return anyContentViewer;\r\n }",
"public void addDataformatToSaveToSystemList(FileType type) {\r\n\t\tList<String> dataformatsToSystem;\r\n\t\tif(this.settings.containsKey(\"dataformatsToSystem\")) {\r\n\t\t\tdataformatsToSystem = new ArrayList<String>(Arrays.asList(String.valueOf(this.settings.get(\"dataformatsToSystem\")).split(\",\")));\r\n\t\t\tif(!dataformatsToSystem.contains(type.toString())) {\r\n\t\t\t\tdataformatsToSystem.add(type.toString());\r\n\t\t\t}\r\n\t\t\tthis.settings.setProperty(\"dataformatsToSystem\", String.join(\",\", dataformatsToSystem));\r\n\t\t} else {\r\n\t\t\tdataformatsToSystem = new ArrayList<>();\r\n\t\t\tdataformatsToSystem.add(type.toString());\r\n\t\t\tthis.settings.setProperty(\"dataformatsToSystem\", String.join(\",\", dataformatsToSystem));\r\n\t\t}\t\t\r\n\t\tthis.saveChanges();\r\n\t}",
"public void exportOpticsChanges( final OpticsExporter exporter ) {}",
"public void listExporters(CSVParser parser, String exportOfInterest) {\n for (CSVRecord record : parser) {\n //Look at the \"Exports\" column\n String export = record.get(\"Exports\");\n //Check if it contains exportOfInterest\n if (export.contains(exportOfInterest)) {\n //If so, write down the \"Country\" from that row\n String country = record.get(\"Country\");\n System.out.println(country);\n }\n }\n }",
"public interface ExportSelector<V, E>\n{\n\n /**\n * Export Graphs in <a href=\"http://en.wikipedia.org/wiki/DOT_language\">DOT language</a>.\n *\n * @return {@link DotExporter} instance\n * @throws GraphExportException\n */\n DotExporter<V, E> usingDotNotation()\n throws GraphExportException;\n\n /**\n * Export Graphs in <a href=\"http://graphml.graphdrawing.org/\">GraphML file format</a>.\n *\n * @return {@link GraphMLExporter} instance\n * @throws GraphExportException\n */\n GraphMLExporter<V, E> usingGraphMLFormat()\n throws GraphExportException;\n\n}",
"public void exportInternalCCDDData(boolean[] includes,\n CcddConstants.exportDataTypes[] dataTypes,\n FileEnvVar exportFile,\n String outputType) throws CCDDException, Exception\n {\n // Placeholder\n }",
"public static PluginConfig getConfigType(String configType) {\n\t\tPluginConfig subsConfig = null;\n\t\tfor (PluginConfig config : PluginConfig.values()) {\n\t\t\tif (configType.equalsIgnoreCase(config.configType)) {\n\t\t\t\tsubsConfig = config;\n\t\t\t}\n\t\t}\n\t\treturn subsConfig;\n\t}",
"public EnvironmentExporter() {\r\n super();\r\n fExporterList = new ArrayList<AbstractExporter>();\r\n fExporterList.add(new GlobalVariableExporter());\r\n fExporterList.add(new DatabaseConfigurationExporter());\r\n fExporterList.add(new WebServiceExporter());\r\n fExporterList.add(new BusinessCalendarExporter());\r\n }",
"public void setExport(boolean value) {\n this.export = value;\n }",
"public void setTypes(ArrayList<String> types){\n this.types = types;\n }",
"public String selectExportable(\n\t\tint inTipoResidencia\n\t) {\n\t\tString outResult = null;\t\t\t\t\n\t\ttry{\n\t\t\tConnection con = ManagerConnection.getConnection();\t\t\t\n\t\t\toutResult = new com.besixplus.sii.db.Cgg_res_residencia().selectExportable(con,inTipoResidencia);\n\t\t\tcon.close();\n\t\t}catch(SQLException inException){\n\t\t\tcom.besixplus.sii.db.SQLErrorHandler.errorHandler(inException);\t\t\t\n\t\t}catch (Exception inException){\n\t\t\tcom.besixplus.sii.db.SQLErrorHandler.errorHandler(inException);\t\t\t\n\t\t}\n\t\treturn outResult;\n\t}",
"List<Map<String,Object>> getConfigList(Request request, String configtype);",
"private static void setDefaultConfig() {\n AgentConfig agentConfig = HypertraceConfig.get();\n OpenTelemetryConfig.setDefault(OTEL_EXPORTER, \"zipkin\");\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue());\n OpenTelemetryConfig.setDefault(\n OTEL_PROPAGATORS, toOtelPropagators(agentConfig.getPropagationFormatsList()));\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_ENDPOINT, agentConfig.getReporting().getEndpoint().getValue());\n OpenTelemetryConfig.setDefault(\n OTEL_EXPORTER_ZIPKIN_SERVICE_NAME, agentConfig.getServiceName().getValue());\n }",
"private void setTEMiosFromConfig(){\n\t\t\n\t\t//model I/O options\n\t\tTEM.runcht.califilein = config.califilein; //switch to read-in calibrated parameters from Jcalinput.txt\t\t\t\n\t\tTEM.runcht.califile = config.califile;\n\t\t\n\t\tTEM.runcht.usecalirestart = config.ccdfilein; //switch to read-in Env. driver for equilibrim-run from calirestart.nc \n\t\tTEM.runcht.outcalirestart = false; //only valid if 'usecalirestart' above is set to false\n\t\tTEM.runcht.ccdfile = config.ccdfile;\n\t\t\n\t\tTEM.runcht.outmodes.OSITER = config.OSITE;\n\t\tTEM.runcht.outmodes.ODAY = config.OSDLY;\n\t\tTEM.runcht.outmodes.OMONTH = config.OSMLY;\n\t\tTEM.runcht.outmodes.OYEAR = config.OSYLY;\n\t\tTEM.runcht.outmodes.OREGNER = config.OREGN;\t\t\t\t\t\n\t\n\t\t//plotters when NO output file\n\t\tTEM.runcht.GUIgraphic = config.OGRAPH;\n\t\tif (TEM.runcht.GUIgraphic) {\n\n\t\t\tbvplotter =new BioVariablePlotter();\t\t\t\n\t\t\tpvplotter =new PhyVariablePlotter();\n\t\t\t\n\t\t\tTEM.runcht.plotting.setPlotter(bvplotter);\n\t\t\tTEM.runcht.plotting.setPlotter2(pvplotter);\n\t\t\t\n\t\t\tif (config.OBGRAPH) {\n\t\t\t\tBioVariablePlotter.f.setVisible(true);\n\t\t\t} else {\n\t\t\t\tBioVariablePlotter.f.setVisible(false);\n\t\t\t}\n\t\t\tif (config.OPGRAPH) {\n\t\t\t\tPhyVariablePlotter.f.setVisible(true);\n\t\t\t} else {\n\t\t\t\tPhyVariablePlotter.f.setVisible(false);\n\t\t\t}\n\t\t}\n\n\t}",
"private void updateExportAvailables() {\n if (comboExportLevel.getSelectedItem().equals(ExportLevels.none)) {\n comboExportFormat.setEnabled(false);\n } else {\n comboExportFormat.setEnabled(true);\n }\n\n comboExportFormat.removeAllItems();\n\n ExportLevels selectedLvl = (ExportLevels)comboExportLevel.getSelectedItem();\n switch (selectedLvl) {\n case PSM:\n case protein:\n comboExportFormat.addItem(ExportFormats.mzIdentML);\n comboExportFormat.addItem(ExportFormats.mzTab);\n comboExportFormat.addItem(ExportFormats.idXML);\n\n case peptide:\n comboExportFormat.addItem(ExportFormats.csv);\n break;\n\n case none:\n default:\n break;\n }\n }",
"public void exportAllLists(){\n }",
"void setRendererType(String rendererType);",
"@Override\n\tpublic void export(DataConfig storeConfig) {\n\t\t\n\t\tsuper.export(storeConfig);\n\t\t\n\t\tUriAdapter adapter = new UriAdapter(storeConfig);\n\t\tsaveBnetMap(adapter, bnetMap, storeConfig.getStoreUri(), getName());\n\t\tadapter.close();\n\t}",
"@Override\n public <T> void exportToExcel(String location, List<T>... values) throws IOException, WriteException, DALException {\n ExcelWriter newFile = new ExcelWriter();\n newFile.setOutputFile(location);\n newFile.createNewExcel(\"Rapport over frivillige\");\n\n newFile.createCaptions(0, \"Frivillig\", \"Email\", \"Telefon\", \"Antal timer i laug\");\n\n writeDataToFile(newFile, values[0], 1);\n\n //If a second list is parsed, prints its information under the first list.\n if (values.length > 1 && values[1] != null) {\n newFile.createCaptions(values[0].size() + 1, \"Inaktive Frivillige\");\n\n writeDataToFile(newFile, values[1], values[1].size() + 2);\n }\n\n newFile.writeExcelToFile();\n }",
"public void exportTargetConfig(ActionEvent actionEvent) {\n String noTargetConfig =\n getFndMessages((String)SudokuUtils.noTargetConfigMsg);\n V93kQuote v93 =\n (V93kQuote)ADFUtils.getSessionScopeValue(\"parentObject\");\n if (v93 != null && v93.getTargetConfigurationLines() != null &&\n !v93.getTargetConfigurationLines().isEmpty()) {\n RichPopup.PopupHints hints = new RichPopup.PopupHints();\n expConfigPopup.show(hints);\n } else {\n if (noTargetConfig != null)\n ADFUtils.showFacesMessage(noTargetConfig,\n FacesMessage.SEVERITY_WARN);\n else\n ADFUtils.showFacesMessage(SudokuUtils.noTargetConfigMsg,\n FacesMessage.SEVERITY_WARN);\n // ADFUtils.showFacesMessage(\"No target configuration is found in the session, please create target configuration.\",\n // FacesMessage.SEVERITY_WARN);\n }\n }",
"void setOutputFormat(String outputFormat);",
"ClassLoaderConfigType createClassLoaderConfigType();",
"public int getType() {\n\t\treturn (config >> 2) & 0x3F;\n\t}",
"public static String getDicomExportMode() {\n\t\tif (xml == null) return \"auto\";\n\t\tif (dicomExportMode == null) return \"auto\";\n\t\tif (dicomExportMode.equals(\"QC\")) return \"QC\";\n\t\treturn \"auto\";\n\t}",
"public List<IStreamDataExporterDescriptor> getDataExporters(Collection<Class<?>> objectTypes)\n {\n List<IStreamDataExporterDescriptor> editors = new ArrayList<IStreamDataExporterDescriptor>();\n for (DataExporterDescriptor descriptor : dataExporters) {\n boolean supports = true;\n for (Class objectType : objectTypes) {\n if (!descriptor.appliesToType(objectType)) {\n supports = false;\n break;\n }\n }\n if (supports) {\n editors.add(descriptor);\n }\n }\n return editors;\n }",
"public abstract String getOutputFormat();",
"ShipmentGatewayConfigType createShipmentGatewayConfigType();",
"protected abstract Class<C> getConfigClass();",
"private void setPublishType(IPSPubServer server, String type, String driver, String secure, boolean isDefaultServer, String format)\n {\n // Check for file type and local driver\n if (type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_LOCAL))\n {\n String publishTypeValue = PublishType.filesystem.toString();\n if (format.equalsIgnoreCase(XML_FLAG))\n {\n publishTypeValue = PublishType.filesystem_only.toString();\n }\n server.setPublishType(publishTypeValue);\n return;\n }\n\n // Check for file type and FTP driver\n if (type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_FTP))\n {\n boolean isSecureFtp = secure != null && secure.equalsIgnoreCase(\"true\");\n String publishTypeValue = isDefaultServer ? PublishType.ftp.toString() : PublishType.ftp_only.toString();\n if (isSecureFtp)\n {\n publishTypeValue = isDefaultServer ? PublishType.sftp.toString() : PublishType.sftp_only.toString();\n }\n\n if (isDefaultServer && format.equalsIgnoreCase(XML_FLAG))\n {\n publishTypeValue = PublishType.ftp_only.toString();\n if (isSecureFtp)\n {\n publishTypeValue = PublishType.sftp_only.toString();\n }\n }\n server.setPublishType(publishTypeValue);\n return;\n }\n if (type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_SFTP))\n {\n\n String publishTypeValue = isDefaultServer ? PublishType.sftp.toString() : PublishType.sftp_only.toString();\n\n\n if (isDefaultServer && format.equalsIgnoreCase(XML_FLAG))\n {\n publishTypeValue = PublishType.sftp_only.toString();\n\n }\n server.setPublishType(publishTypeValue);\n return;\n }\n // Check for file type and FTPS driver\n if (type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_FTPS))\n {\n if(isDefaultServer && !format.equalsIgnoreCase(XML_FLAG)) {\n server.setPublishType(PublishType.ftps.toString());\n }else{\n server.setPublishType(PublishType.ftps_only.toString());\n }\n return;\n }\n if(type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_AMAZONS3)){\n String publishTypeValue = isDefaultServer ? PublishType.amazon_s3.toString() : PublishType.amazon_s3_only.toString();\n server.setPublishType(publishTypeValue);\n }\n\n if(type.equalsIgnoreCase(PUBLISH_FILE_TYPE) && driver.equalsIgnoreCase(DRIVER_AMAZONS3)){\n String publishTypeValue = isDefaultServer ? PublishType.amazon_s3.toString() : PublishType.amazon_s3_only.toString();\n server.setPublishType(publishTypeValue);\n }\n // Check for database type\n if (isDatabaseType(type))\n {\n server.setPublishType(PublishType.database.toString());\n }\n }",
"@Test(description = \"export interface with two types\")\n public void exportWithTwoTypes()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final TypeData type1 = data.getType(\"TestType1\");\n final TypeData type2 = data.getType(\"TestType2\");\n final InterfaceData inter = data.getInterface(\"TestInterface\")\n .addType(type1)\n .addType(type2);\n data.create();\n\n inter.checkExport(inter.export());\n }",
"public void exportGroup ()\n {\n if (_chooser.showSaveDialog(ConfigEditor.this) == JFileChooser.APPROVE_OPTION) {\n group.save(_chooser.getSelectedFile());\n }\n _prefs.put(\"config_dir\", _chooser.getCurrentDirectory().toString());\n }",
"private void _printFileTypes(Map fileTypes, String defaultGroup) {\n // if printing fileTypes for only 1 server group\n // there is no need to qualify the filetypes.\n \n if (defaultGroup == null)\n defaultGroup = \"\";\n boolean qualifyFileTypes = !(fileTypes.size() == 1);\n Set keys = fileTypes.keySet();\n String key = null;\n int maxFileTypeLength = 0;\n String fileType = null, fileType2 = null;\n\n this._logger.info(\"Domain file: \"+this._domainFile);\n \n /*\n this._logger.info(Constants.COPYRIGHT);\n this._logger.info(Constants.APIVERSIONSTR + \"\\n\");\n this._logger.info(\"File types in \\\"\"\n + new File(this._domainFile).getName()\n + \"\\\"\"\n + (qualifyFileTypes ? \"\" : \" belonging to server group \\\"\"\n + keys.iterator().next() + \"\\\"\"));\n */\n \n // Check if \"classic\" display is requested\n if (this._argTable.get(CMD.CLASSIC) != null) {\n List listToPrint = new LinkedList();\n\n // First find the longest servergroup:filetype string.\n // This is necessary for proper formatting.\n // Then, store each servergroup:filetype string in a list\n for (Iterator it = keys.iterator(); it.hasNext();) {\n key = (String) it.next();\n for (ListIterator lit = ((List) fileTypes.get(key)).listIterator(); lit\n .hasNext();) {\n fileType = (String) lit.next();\n maxFileTypeLength = Math.max(maxFileTypeLength, key.length()\n + fileType.length());\n listToPrint.add((qualifyFileTypes ? key + \":\" : \"\") + fileType);\n }\n }\n\n PrintfFormat col1Format = new PrintfFormat(\"%-\"\n + (maxFileTypeLength + 4) + \"s%s\");\n for (ListIterator lit = listToPrint.listIterator(); lit.hasNext();) {\n fileType = (String) lit.next();\n if (lit.hasNext()) {\n fileType2 = (String) lit.next();\n this._logger.info(col1Format.sprintf(new Object[] { fileType,\n fileType2 }));\n } else\n this._logger.info(fileType);\n }\n } else {\n for (Iterator it = keys.iterator(); it.hasNext();) {\n key = (String) it.next();\n String line = \"Server Group: \" + key;\n if (key.equals(defaultGroup))\n line = line + \" (default)\"; \n this._logger.info(line);\n for (ListIterator lit = ((List) fileTypes.get(key)).listIterator(); lit\n .hasNext();) {\n this._logger.info(\" \" + lit.next());\n\n }\n }\n }\n // this._logger.info(\"File types in group: \"+group);\n // if (list.size() > 0) {\n // for (ListIterator lit = list.listIterator(); lit.hasNext();) {\n // this._logger.info(\" \"+lit.next());\n // }\n // } else\n // this._logger.info(\" No file types found that match criteria.\");\n }",
"private void updateFilterExportPossible() {\n ExportLevels exportLvl = (ExportLevels)comboExportLevel.getSelectedItem();\n ExportFormats exportFormat = (ExportFormats)comboExportFormat.getSelectedItem();\n boolean filterEnabled = true;\n\n // check, which format and levels are selected and enable/disable the filtering accordingly\n if (ExportLevels.none.equals(exportLvl) ||\n (ExportLevels.protein.equals(exportLvl) && ExportFormats.mzIdentML.equals(exportFormat))) {\n filterEnabled = false;\n }\n\n\n // implementation-check (hard-coded for working export)\n // TODO: implement all and remove this\n if (filterEnabled &&\n // works only for mzIdentML for now\n ExportFormats.mzIdentML.equals(exportFormat)) {\n filterEnabled = true;\n } else {\n filterEnabled = false;\n }\n\n checkExportFilter.setEnabled(filterEnabled);\n }",
"@Test(description = \"export interface with one single type\")\n public void exportWithOneType()\n throws Exception\n {\n final DataCollection data = new DataCollection(this);\n final TypeData type = data.getType(\"TestType\");\n final InterfaceData inter = data.getInterface(\"TestInterface\").addType(type);\n data.create();\n\n inter.checkExport(inter.export());\n }",
"private JComboBox<ValueLabelItem> buildImplicitDestTypes() {\r\n ValueLabelItem[] destTypes = new ValueLabelItem[]{\r\n new ValueLabelItem(Destination.TYPE_XYZ,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.xyz.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITH,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fith.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITR,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fitr.label\")),\r\n new ValueLabelItem(Destination.TYPE_FIT,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fit.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITB,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fitb.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITBH,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fitbh.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITBV,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fitbv.label\")),\r\n new ValueLabelItem(Destination.TYPE_FITBV,\r\n messageBundle.getString(\r\n \"viewer.utilityPane.action.dialog.goto.type.fitbv.label\")),\r\n };\r\n return new JComboBox<>(destTypes);\r\n }",
"public void setDataSourceTypes (List<DataSourceType> dataSourceTypes) {\n this.dataSourceTypes = dataSourceTypes;\n }",
"public static void exportarConf(DadosConfiguracao dados) {\n numeroNeuroniosPrimeiraCamada = dados.getNumCamadas();\n numEpocasMaxima = dados.getNumEpocas();\n erroAceitavel = dados.getErroAceito();\n taxaAprendizado = dados.getTaxaAprendizado();\n\n System.out.println(\"Numero de Camadas: \" + numeroNeuroniosPrimeiraCamada);\n System.out.println(\"Numero de Epocas: \" + numEpocasMaxima);\n System.out.println(\"Erro Aceitavel: \" + erroAceitavel);\n System.out.println(\"Taxa Aprendizado: \" + taxaAprendizado);\n }",
"public static void encodeConfig(MessageFactory factory, String name, String type, Object value, Config current) {\n\n //Sorry but no inheritance in this case...\n\n if (TYPE_INT.equals(type)) {\n IntParameter defaultParam = null;\n for (IntParameter param : current.getInts()) {\n if (param.getName().equals(name)) {\n defaultParam = param;\n break;\n }\n }\n\n if (defaultParam == null) {\n defaultParam = factory.newFromType(IntParameter._TYPE);\n defaultParam.setName(name);\n current.getInts().add(defaultParam);\n }\n\n defaultParam.setValue((Integer)value);\n\n } else\n\n if (TYPE_BOOL.equals(type)) {\n BoolParameter defaultParam = null;\n for (BoolParameter param : current.getBools()) {\n if (param.getName().equals(name)) {\n defaultParam = param;\n break;\n }\n }\n\n if (defaultParam == null) {\n defaultParam = factory.newFromType(BoolParameter._TYPE);\n defaultParam.setName(name);\n current.getBools().add(defaultParam);\n }\n\n defaultParam.setValue((Boolean)value);\n } else\n\n if (TYPE_STR.equals(type)) {\n StrParameter defaultParam = null;\n for (StrParameter param : current.getStrs()) {\n if (param.getName().equals(name)) {\n defaultParam = param;\n break;\n }\n }\n\n if (defaultParam == null) {\n defaultParam = factory.newFromType(StrParameter._TYPE);\n defaultParam.setName(name);\n current.getStrs().add(defaultParam);\n }\n\n defaultParam.setValue((String)value);\n } else\n\n if (TYPE_DBL.equals(type)) {\n DoubleParameter defaultParam = null;\n for (DoubleParameter param : current.getDoubles()) {\n if (param.getName().equals(name)) {\n defaultParam = param;\n break;\n }\n }\n\n if (defaultParam == null) {\n defaultParam = factory.newFromType(DoubleParameter._TYPE);\n defaultParam.setName(name);\n current.getDoubles().add(defaultParam);\n }\n\n defaultParam.setValue((Double)value);\n }\n }",
"@Override\n\tpublic String[] getConfiguredContentTypes(ISourceViewer sourceViewer) {\n\t\treturn new String[] {\n\t\t\tIDocument.DEFAULT_CONTENT_TYPE \n\t\t};\t\t\n\t}",
"protected void configurePorts() {\n \t\tremoveInputs();\n \t\tremoveOutputs();\n \n \t\t// FIXME: Replace with your input and output port definitions\n \n \t\t// Hard coded input port, expecting a single String\n \t\t//File name for the Input tables\n \t\taddInput(IN_FIRST_INPUT_TABLE, 0, true, null, String.class);\n \t\taddInput(IN_FORMAT_INPUT_TABLE, 0, true, null, String.class);\n \t\taddInput(IN_FORMAT_OUTPUT_TABLE, 0, true, null, String.class);\n \t\taddInput(IN_FILTER, 0, true, null, String.class);\n \t\t\n \t\t\n \t\tif(configBean.getTypeOfInput().compareTo(\"File\")==0){\n \t\t\taddInput(IN_OUTPUT_TABLE_NAME, 0, true, null, String.class);\n \t\t}\n \t\t\n \n \t\t// Optional ports depending on configuration\n \t\t//if (configBean.getExampleString().equals(\"specialCase\")) {\n \t\t//\t// depth 1, ie. list of binary byte[] arrays\n \t\t//\taddInput(IN_EXTRA_DATA, 1, true, null, byte[].class);\n \t\t//\taddOutput(OUT_REPORT, 0);\n \t\t//}\n \t\t\n \t\t// Single value output port (depth 0)\n \t\taddOutput(OUT_SIMPLE_OUTPUT, 0);\n \t\t// Single value output port (depth 0)\n \t\taddOutput(OUT_REPORT, 0);\n \n \t}",
"public abstract String getExportLocation();",
"public static Exporter loadExporter(MimeType mimeType, Collection<?> objects) throws ExportException\r\n {\r\n for (Exporter exporter : getAllExporters())\r\n {\r\n if (exporter.getMimeType() == mimeType && exporter.setObjects(objects).canExport(java.io.File.class))\r\n {\r\n return exporter;\r\n }\r\n }\r\n\r\n throw new ExportException(\"No exporter found for MIME type: \" + mimeType);\r\n }",
"@Override\n\tpublic void configuration(String csv) {\n\n\t}",
"private void setConfigElements() {\r\n getConfig().addEntry(new ConfigEntry(ConfigContainer.TYPE_CHECKBOX, this.getPluginConfig(), USE_API, JDL.L(\"plugins.hoster.CatShareNet.useAPI\", getPhrase(\"USE_API\"))).setDefaultValue(defaultUSE_API).setEnabled(false));\r\n }",
"public static List<Exporter> getExporters(Collection<?> objects, Toolbox toolbox, Class<?> targetType)\r\n {\r\n List<Exporter> result = New.list();\r\n for (Exporter exporter : getAllExporters())\r\n {\r\n if (exporter.setObjects(objects).canExport(targetType))\r\n {\r\n exporter.setToolbox(toolbox);\r\n result.add(exporter);\r\n }\r\n }\r\n return result;\r\n }",
"private void getAgentTypesFromFile(){\n \t\tagentTypes= agentTypesProvider.GetAgentTypes();\n \t}",
"public interface AdminToolConfig \n{\n\tpublic static final String WEBJARS_CDN_PREFIX = \"https://cdn.jsdelivr.net/webjars/\";\n\t\n\tpublic static final String WEBJARS_CDN_PREFIX_BOWER = WEBJARS_CDN_PREFIX + \"org.webjars.bower/\";\n\t\n\tpublic static final String WEBJARS_LOCAL_PREFIX = \"/webjars/\";\n\t\n\t/**\n\t * should print the configuration to log\n\t */\n\tpublic void printConfig();\n\t\n\t/**\n\t * should return if component is active or deactivated\n\t * @return\n\t */\n\tpublic boolean isEnabled();\n}",
"public <T> void exportToExcel(String location, List<T>... values) throws IOException, WriteException, DALException;",
"public interface FormatConverter {\n\n /**\n * Returns the tool's executable full path.\n * \n * @return\n */\n public String getExecutable();\n\n /**\n * Sets the tool's executable full path.\n * \n * @param executable\n */\n public void setExecutable(String executable);\n\n /**\n * Returns the environment variables that are set prior to invoking the tool's executable.\n * \n * @return\n */\n public Map<String, String> getEnvironment();\n\n /**\n * Provides the environment variables that are set prior to invoking the tool's executable.\n * \n * @return\n */\n public void setEnvironment(Map<String, String> environment);\n\n /**\n * Adds an output format among the supported ones.\n * \n * @param format\n */\n public void addFormat(Format format);\n\n /**\n * Get a list of supported output formats.\n *\n * @return\n */\n public List<Format> getFormats();\n\n /**\n * Programmatically removes all formats.\n */\n public void clearFormats();\n\n /**\n * Replaces currently supported formats with the provided list.\n * \n * @param formats\n */\n public void replaceFormats(List<Format> formats);\n\n}",
"public static Exporter getExporter(Collection<?> objects, Toolbox toolbox, Class<?> targetType) throws ExportException\r\n {\r\n List<Exporter> exporters = getExporters(objects, toolbox, targetType);\r\n if (exporters.isEmpty())\r\n {\r\n throw new ExportException(\"No exporters availble for objects \" + objects + \" and type \" + targetType);\r\n }\r\n return exporters.get(0);\r\n }",
"interface Config {\n\n String DB_USERS = \"USERS\";\n String DB_USERS_DATA = \"DATA\";\n String DB_EQUIPMENTS = \"EQUIPMENTS\";\n String DB_MEMBERS = \"MEMBERS\";\n String DB_ORDERS = \"ORDERS\";\n}",
"private void exportConfiguration() {\n if (!Files.exists(languageConfigPath)) this.saveResource(\"language.yml\", false);\n if (!Files.exists(propertiesConfigPath)) this.saveResource(\"properties.yml\", false);\n }",
"public static void CSVExport(String output, LinkedList<Patient> src, boolean[] shouldEx) {\n\t\tExportSepValuesFile(output, src, \",\", shouldEx);\n\t}",
"@SuppressWarnings(\"unchecked\")\n @Override\n public Set<?> instantiate() throws IOException {\n OrthoMclFormat format = (OrthoMclFormat) wizard.getProperty(PROP_ORTHOMCL_FORMAT);\n format.setDirectory(wizard.getDirectory());\n //update the format settings\n// format.setFilePerOrganism((Boolean) this.wizard.getProperty(GroupingWizardPanel.PROP_FILE_PER_ORGANISM));\n// format.setPrefixOrganism((Boolean) this.wizard.getProperty(GroupingWizardPanel.PROP_PREFIX_FOUR_LETTER_ORGANISM));\n// format.setFilePerMethod((Boolean) this.wizard.getProperty(GroupingWizardPanel.PROP_FILE_PER_METHOD));\n \n// format.setIsWindows((Boolean) this.wizard.getProperty(OrthoMclFormat.PROP_IS_WINDOWS));\n// format.setPerlDir((String) this.wizard.getProperty(OrthoMclFormat.PROP_PERL_DIR));\n// format.setOrthoDir((String) this.wizard.getProperty(OrthoMclFormat.PROP_ORTHO_DIR));\n// format.setMclDir((String) this.wizard.getProperty(OrthoMclFormat.PROP_MCL_DIR));\n\n// format.setDb_userName((String) this.wizard.getProperty(OrthoMclFormat.PROP_USER_NAME));\n// format.setDb_password((String) this.wizard.getProperty(OrthoMclFormat.PROP_PASSWORD));\n// format.setDatabaseName((String) this.wizard.getProperty(OrthoMclFormat.PROP_DB_NAME));\n// format.setDropCreateDatabase((Boolean) this.wizard.getProperty(OrthoMclFormat.PROP_DROP_CREATE_DB));\n //format.setMysqlBin((String) this.wizard.getProperty(OrthoMclFormat.PROP_MYSQL_BIN));\n\n format.setRunBlastp((Boolean) this.wizard.getProperty(OrthoMclFormat.PROP_DO_BLASTP));\n format.setRunMakeBlastDb((Boolean) this.wizard.getProperty(OrthoMclFormat.PROP_DO_MAKEBLAST));\n //format.setBlastBin((String) wizard.getProperty(OrthoMclFormat.PROP_BLAST_BIN));\n format.setMakeblastdbParameters((String) wizard.getProperty(OrthoMclFormat.PROP_MAKEBLASTDB_PARAMETERS));\n format.setBlastpParameters((String) wizard.getProperty(OrthoMclFormat.PROP_BLASTP_PARAMETERS));\n\n format.setMinProteinLength((String) this.wizard.getProperty(OrthoMclFormat.PROP_MIN_PROT_LENGTH));\n format.setMaxPercentStops((String) this.wizard.getProperty(OrthoMclFormat.PROP_MAX_PERCENT_STOPS));\n format.setPercentMatchCutoff((String) this.wizard.getProperty(OrthoMclFormat.PROP_PERCENT_MATCH));\n format.seteValueCutoff((String) this.wizard.getProperty(OrthoMclFormat.PROP_EVALUE_CUTOFF));\n// format.setExecute((Boolean)this.wizard.getProperty(OrthoMclFormat.PROP_EXECUTE));\n try {\n final OrthoMclFormat myFormat = format;\n myFormat.download();\n } catch (DownloadException ex) {\n Exceptions.printStackTrace(ex);\n }\n //set the last directory\n if(format.getDirectory() != null){\n NbPreferences.forModule(OrthoMclFormat.class).put(\"orthomcl-run\", format.getDirectory());\n }\n\n return Collections.emptySet();\n }",
"@Override final protected Class<?>[] getOutputTypes() { return this.OutputTypes; }",
"private static void addEventTypes(Configuration cepConfig) {\n\t cepConfig.addEventType(\"Batch\", Batch.class.getName());\n\t cepConfig.addEventType(\"Span\", Span.class.getName());\n\t cepConfig.addEventType(\"Process\", Process.class.getName());\n\t cepConfig.addEventType(\"Log\", Log.class.getName());\n\t cepConfig.addEventType(\"Tag\", Tag.class.getName());\n\t cepConfig.addEventType(\"SpanRef\", SpanRef.class.getName());\n\t \n\t // SOCKET events\n\t // Metrics -> JSON influxDB\n\t // Events -> Custom definition\n\t // We register metrics and events as objects the engine will have to handle\n\t cepConfig.addEventType(\"Metric\", Metric.class.getName());\n\t cepConfig.addEventType(\"Event\", Event.class.getName());\n\t\t\n\t}",
"String provideType();",
"@JsonAutoDetect(\n fieldVisibility = JsonAutoDetect.Visibility.ANY,\n isGetterVisibility = JsonAutoDetect.Visibility.NONE,\n getterVisibility = JsonAutoDetect.Visibility.NONE)\n@JsonTypeInfo(\n use = JsonTypeInfo.Id.NAME,\n include = JsonTypeInfo.As.PROPERTY,\n property = \"type\")\n@JsonSubTypes({\n @JsonSubTypes.Type(value = CommandAlign.AlignConfiguration.class, name = \"align-configuration\"),\n @JsonSubTypes.Type(value = CommandAssemble.AssembleConfiguration.class, name = \"assemble-configuration\"),\n @JsonSubTypes.Type(value = CommandAssembleContigs.AssembleContigsConfiguration.class, name = \"assemble-contig-configuration\"),\n @JsonSubTypes.Type(value = CommandAssemblePartialAlignments.AssemblePartialConfiguration.class, name = \"assemble-partial-configuration\"),\n @JsonSubTypes.Type(value = CommandExtend.ExtendConfiguration.class, name = \"extend-configuration\"),\n @JsonSubTypes.Type(value = CommandMergeAlignments.MergeConfiguration.class, name = \"merge-configuration\"),\n @JsonSubTypes.Type(value = CommandFilterAlignments.FilterConfiguration.class, name = \"filter-configuration\"),\n @JsonSubTypes.Type(value = CommandSortAlignments.SortConfiguration.class, name = \"sort-configuration\"),\n @JsonSubTypes.Type(value = CommandSlice.SliceConfiguration.class, name = \"slice-configuration\")\n})\n@Serializable(asJson = true)\npublic interface ActionConfiguration<Conf extends ActionConfiguration<Conf>> {\n String actionName();\n\n /** Action version string */\n default String versionId() { return \"\"; }\n\n /** Compatible with other configuration */\n default boolean compatibleWith(Conf other) { return equals(other); }\n}",
"SourceType sourceType();",
"void generate(String name, List<String> types, Settings settings);",
"String renderReport(T config);",
"private void configurationEdit(SegmentType elementType, ArrayList<Integer> elementIdList) {\n switch (elementType) {\n case Person:\n for (Configuration segment : dataModel.getConfigurations()) {\n List<Integer> type = segment.getAuthorIndex();\n List<Integer> personId = dataModel.getRoleId(type);\n for (int deleteId : elementIdList) {\n int deleteIndexInProject = dataModel.getPersonIndexInProject(deleteId);\n for (int i = 0; i < personId.size(); i++) {\n int index = type.get(i);\n if (personId.get(i) == deleteId) {\n segment.getAuthorIndex().remove(i);\n segment.getAuthorIndicator().remove(i);\n } else if (index > deleteIndexInProject) {\n segment.getAuthorIndex().remove(i);\n segment.getAuthorIndex().add(i, index - 1);\n segment.getAuthorIndicator().remove(i);\n }\n }\n }\n }\n break;\n case Config_Person_Relation:\n for (Configuration segment : dataModel.getConfigurations()) {\n int i = 0;\n for (CPRSList list : segment.getCPRsIndexs()) {\n updateElementListFromSegment(elementIdList, list.getCPRs());\n if (list.getCPRs().size() == 0) {\n segment.getCPRsIndicator().remove(i);\n }\n i++;\n }\n }\n break;\n case Change:\n for (Configuration segment : dataModel.getConfigurations()) {\n int i = 0;\n ArrayList<ChangeList> tmp = new ArrayList(segment.getChangesIndexs());\n for (ChangeList list : tmp) {\n updateElementListFromSegment(elementIdList, list.getChanges());\n if (list.getChanges().size() == 0) {\n segment.getChangesIndexs().remove(i);\n }\n i++;\n }\n }\n break;\n case Branch:\n for (Configuration segment : dataModel.getConfigurations()) {\n int i = 0;\n for (BranchList list : segment.getBranchIndexs()) {\n updateElementListFromSegment(elementIdList, list.getBranches());\n if (list.getBranches().size() == 0) {\n segment.getBranchIndicator().remove(i);\n }\n i++;\n }\n }\n break;\n case VCSTag:\n for (Configuration segment : dataModel.getConfigurations()) {\n List<Integer> type = segment.getTagIndex();\n List<Integer> tagId = dataModel.getTagId(type);\n for (int deleteId : elementIdList) {\n int deleteIndexInProject = dataModel.getVCSTAgProjectIndex(deleteId);\n for (int i = type.size() - 1; i >= 0; i--) {\n int index = type.get(i);\n if (tagId.get(i) == deleteId) {\n segment.getTagIndex().remove(i);\n segment.getTagsIndicator().remove(i);\n } else if (index > deleteIndexInProject) {\n segment.getTagIndex().remove(i);\n segment.getTagIndex().add(i, index - 1);\n segment.getTagsIndicator().remove(i);\n }\n }\n }\n }\n break;\n\n default:\n }\n }",
"@Override\n public void setOutputType(TypeInformation<T> outTypeInfo, ExecutionConfig executionConfig) {\n Preconditions.checkState(\n elements != null,\n \"The output type should've been specified before shipping the graph to the cluster\");\n checkIterable(elements, outTypeInfo.getTypeClass());\n TypeSerializer<T> newSerializer = outTypeInfo.createSerializer(executionConfig);\n if (Objects.equals(serializer, newSerializer)) {\n return;\n }\n serializer = newSerializer;\n try {\n serializeElements();\n } catch (IOException ex) {\n throw new UncheckedIOException(ex);\n }\n }",
"Map<String, Object> createConfig(Request request, String configtype);",
"@ProviderType\npublic interface ReportSerializerPlugin {\n\n\t/**\n\t * Get the set of file extension names corresponding to the format that this\n\t * plugin can serialize to.\n\t * \n\t * @return one or multiple extensions name, never {@code null}\n\t */\n\tpublic String[] getHandledExtensions();\n\n\t/**\n\t * Serialize the DTO report into the output stream.\n\t * \n\t * @param reportDTO the DTO report to serialize, must not be {@code null}\n\t * @param output the output stream to write the serialization result, must\n\t * not be {@code null}\n\t * @throws Exception if any errors occur during the serialization process\n\t */\n\tpublic void serialize(Map<String, Object> reportDTO, OutputStream output) throws Exception;\n}",
"private static ConfigSource config()\n {\n return CONFIG_MAPPER_FACTORY.newConfigSource()\n .set(\"type\", \"mailchimp\")\n .set(\"auth_method\", \"api_key\")\n .set(\"apikey\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"access_token\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"list_id\", \"xxxxxxxxxxxxxxxxxxx\")\n .set(\"email_column\", \"email\")\n .set(\"fname_column\", \"fname\")\n .set(\"lname_column\", \"lname\");\n }",
"private void actionExport() {\n ExportPanel myPanel = new ExportPanel(ImportPanel.nlistDir);\n int result = JOptionPane.showConfirmDialog(this, myPanel, \"Export\",\n JOptionPane.OK_CANCEL_OPTION);\n Long functionStartTime = System.currentTimeMillis();\n Long accumulatedTime = 0L;\n if (result == JOptionPane.OK_OPTION) { // Afirmative\n writeNeuronListToFile(\n myPanel.tfields[ExportPanel.idxInhList].getText(),\n layoutPanel.inhNList, LayoutPanel.INH);\n // add to workbench project\n if (null != workbenchMgr && workbenchMgr.isProvEnabled()) {\n Long startTime = System.currentTimeMillis();\n workbenchMgr.getProvMgr().addFileGeneration(\n \"InhibitoryNeuronListExport\" + java.util.UUID.randomUUID(),\n \"neuronListExport\", \"NLEdit\", null, false,\n myPanel.tfields[ExportPanel.idxInhList].getText(), null,\n null);\n accumulatedTime = DateTime.sumProvTiming(startTime, accumulatedTime);\n }\n\n writeNeuronListToFile(\n myPanel.tfields[ExportPanel.idxActList].getText(),\n layoutPanel.activeNList, LayoutPanel.ACT);\n // add to workbench project\n if (null != workbenchMgr && workbenchMgr.isProvEnabled()) {\n Long startTime = System.currentTimeMillis();\n workbenchMgr.getProvMgr().addFileGeneration(\n \"ActiveNeuronListExport\" + java.util.UUID.randomUUID(),\n \"neuronListExport\", \"NLEdit\", null, false,\n myPanel.tfields[ExportPanel.idxActList].getText(), null,\n null);\n accumulatedTime = DateTime.sumProvTiming(startTime, accumulatedTime);\n }\n\n writeNeuronListToFile(\n myPanel.tfields[ExportPanel.idxPrbList].getText(),\n layoutPanel.probedNList, LayoutPanel.PRB);\n // add to workbench project\n if (null != workbenchMgr && workbenchMgr.isProvEnabled()) {\n Long startTime = System.currentTimeMillis();\n workbenchMgr.getProvMgr().addFileGeneration(\n \"ProbedNeuronListExport\" + java.util.UUID.randomUUID(),\n \"neuronListExport\", \"NLEdit\", null, false,\n myPanel.tfields[ExportPanel.idxPrbList].getText(), null,\n null);\n accumulatedTime = DateTime.sumProvTiming(startTime, accumulatedTime);\n }\n }\n DateTime.recordFunctionExecutionTime(\"ControlFrame\", \"actionExport\",\n System.currentTimeMillis() - functionStartTime,\n workbenchMgr.isProvEnabled());\n if (workbenchMgr.isProvEnabled()) {\n DateTime.recordAccumulatedProvTiming(\"ControlFrame\", \"actionExport\",\n accumulatedTime);\n }\n }",
"void doExportProcess(Iterator it, DestFileWriter writer) {\n\t\tString express = (String) it.next();\n\t\tString[] key_value = this.parser.parseExpress(express);\n\t\tif(key_value!=null)\n\t\t{\n\t\t\tContextManager context = ContextManager.getContext();\n\t\t\tcontext.addDefineGlobalValue(key_value[0], key_value[1]);\n\t\t}\n\t}",
"void setOutputs(List<ContractIOType> outputs) {\n this.outputs = outputs;\n }",
"private void createExportExchanges(){\r\n\t\tComposite composite = createParent(getFieldEditorParent(), \"Exchanges\");\r\n\t\tuseExportComponentExchange = new BooleanFieldEditor(CapellaDocgenPreferenceConstant.DOCGEN_EXPORT__COMPONENT_EXCHANGE, \r\n\t\t\t\t Messages.EXPORT__COMPONENT_EXCHANGE_FIELD_LABEL, composite);\r\n\t\t\r\n\t\tuseExportFunctionalExchange = new BooleanFieldEditor(CapellaDocgenPreferenceConstant.DOCGEN_EXPORT__FUNCTIONAL_EXCHANGE, \r\n\t\t\t\t Messages.EXPORT__FUNCTIONAL_EXCHANGE_FIELD_LABEL, composite);\r\n\t\t\r\n\t\tuseExportPhysicalLink = new BooleanFieldEditor(CapellaDocgenPreferenceConstant.DOCGEN_EXPORT__PHYSICAL_LINK, \r\n\t\t\t\t Messages.EXPORT__PHYSICAL_LINK_FIELD_LABEL, composite);\r\n\t}",
"boolean is(Class<? extends DownloaderConfiguration> type);",
"public boolean canExport(Grid grid) {\n return true;\n }"
] |
[
"0.5737604",
"0.56617117",
"0.5425295",
"0.54144704",
"0.52465326",
"0.5189219",
"0.5133989",
"0.5116076",
"0.50938284",
"0.5068669",
"0.50310713",
"0.5023867",
"0.50146604",
"0.4941622",
"0.4907449",
"0.48721007",
"0.48591354",
"0.48421153",
"0.48299956",
"0.48299956",
"0.48299956",
"0.47932816",
"0.4778764",
"0.47630218",
"0.47414246",
"0.47313157",
"0.4719013",
"0.46931174",
"0.46862188",
"0.46807382",
"0.46797752",
"0.4678828",
"0.46700278",
"0.4664855",
"0.4649649",
"0.4645778",
"0.4645089",
"0.46102762",
"0.46033671",
"0.46001944",
"0.45702735",
"0.4568562",
"0.45585188",
"0.45558155",
"0.45551932",
"0.4543177",
"0.45321772",
"0.45238844",
"0.45233154",
"0.4516089",
"0.45140892",
"0.45011675",
"0.44962567",
"0.44961822",
"0.44936657",
"0.44911706",
"0.44784632",
"0.44623336",
"0.4461704",
"0.44430986",
"0.44412947",
"0.44380057",
"0.44368166",
"0.44283298",
"0.4423666",
"0.44222325",
"0.44187126",
"0.4413308",
"0.44087043",
"0.44084346",
"0.4402426",
"0.43994656",
"0.4393804",
"0.43906432",
"0.43838733",
"0.43659526",
"0.43570492",
"0.4351605",
"0.43449152",
"0.4340203",
"0.43363327",
"0.43274823",
"0.4314834",
"0.43140975",
"0.43139258",
"0.43137598",
"0.43105",
"0.43070525",
"0.4304045",
"0.4303497",
"0.42969453",
"0.42934838",
"0.42920798",
"0.42870447",
"0.427319",
"0.42712772",
"0.42667964",
"0.42639083",
"0.42606816",
"0.42582843"
] |
0.46930677
|
28
|
TODO Autogenerated method stub
|
@Override
public int describeContents() {
return 0;
}
|
{
"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
|
TODO Autogenerated method stub
|
@Override
public void writeToParcel(Parcel dest, int flags) {
dest.writeInt(user_id);
dest.writeString(title);
dest.writeString(desc);
dest.writeString(location_ids);
}
|
{
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] |
0.0
|
-1
|
TODO Autogenerated method stub
|
@Override
public Album createFromParcel(Parcel source) {
return new Album(source);
}
|
{
"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
|
TODO Autogenerated method stub
|
@Override
public Album[] newArray(int size) {
return new Album[size];
}
|
{
"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
|
Decide whether or not to use the competition executor or our custom debug executor
|
public static void main(String[] args) {
boolean debug = true;
if(debug) {
CustomExecutor executor = new CustomExecutor.Builder()
.setVisual(true)
.setTickLimit(8000)
.setPO(true)
.build();
EnumMap<GHOST, IndividualGhostController> controllers = new EnumMap<>(GHOST.class);
MyPacMan agent = new MyPacMan(true, MODULE_TYPE.THREE_MULTITASK, 2);
//MyPacMan badboy = new MyPacMan(true, MODULE_TYPE.TWO_MODULES, 15);
//create ghost controllers
controllers.put(GHOST.INKY, new POGhost(GHOST.INKY));
controllers.put(GHOST.BLINKY, new POGhost(GHOST.BLINKY));
controllers.put(GHOST.PINKY, new POGhost(GHOST.PINKY));
controllers.put(GHOST.SUE, new POGhost(GHOST.SUE));
boolean secondViewer = true; // View in PO and non-PO mode
executor.runGameTimed(agent, new MASController(controllers), secondViewer);
System.out.println("Evaluation over");
} else {
Executor executor = new Executor.Builder()
.setVisual(true)
.setTickLimit(8000)
.build();
EnumMap<GHOST, IndividualGhostController> controllers = new EnumMap<>(GHOST.class);
MyPacMan agent = new MyPacMan();
controllers.put(GHOST.INKY, new POGhost(GHOST.INKY));
controllers.put(GHOST.BLINKY, new POGhost(GHOST.BLINKY));
controllers.put(GHOST.PINKY, new POGhost(GHOST.PINKY));
controllers.put(GHOST.SUE, new POGhost(GHOST.SUE));
executor.runGameTimed(agent, new MASController(controllers));
System.out.println("Evaluation over");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected EventExecutor executor()\r\n/* 49: */ {\r\n/* 50: 87 */ return this.executor;\r\n/* 51: */ }",
"public Debug() {\n target = getProject().getObjects()\n .property(JavaForkOptions.class);\n port = getProject().getObjects()\n .property(Integer.class).convention(5005);\n server = getProject().getObjects()\n .property(Boolean.class).convention(true);\n suspend = getProject().getObjects()\n .property(Boolean.class).convention(true);\n finalizedBy(target);\n }",
"public boolean hasExecutor() {\n return result.hasExecutor();\n }",
"@Override\n\t\tpublic boolean shouldContinueExecuting() {\n\t\t\treturn false;\n\t\t}",
"static void debug() {\n ProcessRunnerImpl.setGlobalDebug(true);\n }",
"public boolean shouldExecute() {\n\t\treturn true;\n\t}",
"public void setExecutor(Executor e) {\n addReference(\"ant.executor\", e);\n }",
"public abstract T executor(@Nullable Executor executor);",
"public boolean supportsDebugArgument();",
"@Override\n\tpublic Executor getExecutor() {\n\t\treturn null;\n\t}",
"public static Executor buildExecutor() {\n GrpcRegisterConfig config = Singleton.INST.get(GrpcRegisterConfig.class);\n if (null == config) {\n return null;\n }\n final String threadpool = Optional.ofNullable(config.getThreadpool()).orElse(Constants.CACHED);\n switch (threadpool) {\n case Constants.SHARED:\n try {\n return SpringBeanUtils.getInstance().getBean(ShenyuThreadPoolExecutor.class);\n } catch (NoSuchBeanDefinitionException t) {\n throw new ShenyuException(\"shared thread pool is not enable, config ${shenyu.sharedPool.enable} in your xml/yml !\", t);\n }\n case Constants.FIXED:\n case Constants.EAGER:\n case Constants.LIMITED:\n throw new UnsupportedOperationException();\n case Constants.CACHED:\n default:\n return null;\n }\n }",
"public boolean isDebugEnabled();",
"void prepare(final boolean triggerCompile) throws Exception {\n if (triggerCompile) {\n triggerCompile();\n }\n if (debug == null) {\n // debug mode not specified\n // make sure 5005 is not used, we don't want to just fail if something else is using it\n // we don't check this on restarts, as the previous process is still running\n if (debugPortOk == null) {\n try (Socket socket = new Socket(InetAddress.getByAddress(new byte[] { 127, 0, 0, 1 }), 5005)) {\n getLog().error(\"Port 5005 in use, not starting in debug mode\");\n debugPortOk = false;\n } catch (IOException e) {\n debugPortOk = true;\n }\n }\n if (debugPortOk) {\n args.add(\"-Xdebug\");\n args.add(\"-Xrunjdwp:transport=dt_socket,address=0.0.0.0:5005,server=y,suspend=\" + suspend);\n }\n } else if (debug.toLowerCase().equals(\"client\")) {\n args.add(\"-Xdebug\");\n args.add(\"-Xrunjdwp:transport=dt_socket,address=localhost:5005,server=n,suspend=\" + suspend);\n } else if (debug.toLowerCase().equals(\"true\")) {\n args.add(\"-Xdebug\");\n args.add(\"-Xrunjdwp:transport=dt_socket,address=0.0.0.0:5005,server=y,suspend=\" + suspend);\n } else if (!debug.toLowerCase().equals(\"false\")) {\n try {\n int port = Integer.parseInt(debug);\n if (port <= 0) {\n throw new MojoFailureException(\"The specified debug port must be greater than 0\");\n }\n args.add(\"-Xdebug\");\n args.add(\"-Xrunjdwp:transport=dt_socket,address=0.0.0.0:\" + port + \",server=y,suspend=\" + suspend);\n } catch (NumberFormatException e) {\n throw new MojoFailureException(\n \"Invalid value for debug parameter: \" + debug + \" must be true|false|client|{port}\");\n }\n }\n //build a class-path string for the base platform\n //this stuff does not change\n // Do not include URIs in the manifest, because some JVMs do not like that\n StringBuilder classPathManifest = new StringBuilder();\n final DevModeContext devModeContext = new DevModeContext();\n for (Map.Entry<Object, Object> e : System.getProperties().entrySet()) {\n devModeContext.getSystemProperties().put(e.getKey().toString(), (String) e.getValue());\n }\n devModeContext.setProjectDir(project.getFile().getParentFile());\n devModeContext.getBuildSystemProperties().putAll((Map) project.getProperties());\n\n // this is a minor hack to allow ApplicationConfig to be populated with defaults\n devModeContext.getBuildSystemProperties().putIfAbsent(\"quarkus.application.name\", project.getArtifactId());\n devModeContext.getBuildSystemProperties().putIfAbsent(\"quarkus.application.version\", project.getVersion());\n\n devModeContext.setSourceEncoding(getSourceEncoding());\n\n // Set compilation flags. Try the explicitly given configuration first. Otherwise,\n // refer to the configuration of the Maven Compiler Plugin.\n final Optional<Xpp3Dom> compilerPluginConfiguration = findCompilerPluginConfiguration();\n if (compilerArgs != null) {\n devModeContext.setCompilerOptions(compilerArgs);\n } else if (compilerPluginConfiguration.isPresent()) {\n final Xpp3Dom compilerPluginArgsConfiguration = compilerPluginConfiguration.get().getChild(\"compilerArgs\");\n if (compilerPluginArgsConfiguration != null) {\n List<String> compilerPluginArgs = new ArrayList<>();\n for (Xpp3Dom argConfiguration : compilerPluginArgsConfiguration.getChildren()) {\n compilerPluginArgs.add(argConfiguration.getValue());\n }\n // compilerArgs can also take a value without using arg\n if (compilerPluginArgsConfiguration.getValue() != null\n && !compilerPluginArgsConfiguration.getValue().isEmpty()) {\n compilerPluginArgs.add(compilerPluginArgsConfiguration.getValue().trim());\n }\n devModeContext.setCompilerOptions(compilerPluginArgs);\n }\n }\n if (source != null) {\n devModeContext.setSourceJavaVersion(source);\n } else if (compilerPluginConfiguration.isPresent()) {\n final Xpp3Dom javacSourceVersion = compilerPluginConfiguration.get().getChild(\"source\");\n if (javacSourceVersion != null && javacSourceVersion.getValue() != null\n && !javacSourceVersion.getValue().trim().isEmpty()) {\n devModeContext.setSourceJavaVersion(javacSourceVersion.getValue().trim());\n }\n }\n if (target != null) {\n devModeContext.setTargetJvmVersion(target);\n } else if (compilerPluginConfiguration.isPresent()) {\n final Xpp3Dom javacTargetVersion = compilerPluginConfiguration.get().getChild(\"target\");\n if (javacTargetVersion != null && javacTargetVersion.getValue() != null\n && !javacTargetVersion.getValue().trim().isEmpty()) {\n devModeContext.setTargetJvmVersion(javacTargetVersion.getValue().trim());\n }\n }\n\n setKotlinSpecificFlags(devModeContext);\n if (noDeps) {\n final LocalProject localProject = LocalProject.load(project.getModel().getPomFile().toPath());\n addProject(devModeContext, localProject, true);\n pomFiles.add(localProject.getRawModel().getPomFile().toPath());\n devModeContext.getLocalArtifacts()\n .add(new AppArtifactKey(localProject.getGroupId(), localProject.getArtifactId(), null, \"jar\"));\n } else {\n final LocalProject localProject = LocalProject.loadWorkspace(project.getModel().getPomFile().toPath());\n for (LocalProject project : filterExtensionDependencies(localProject)) {\n addProject(devModeContext, project, project == localProject);\n pomFiles.add(project.getRawModel().getPomFile().toPath());\n devModeContext.getLocalArtifacts()\n .add(new AppArtifactKey(project.getGroupId(), project.getArtifactId(), null, \"jar\"));\n }\n }\n\n addQuarkusDevModeDeps(classPathManifest);\n\n args.add(\"-Djava.util.logging.manager=org.jboss.logmanager.LogManager\");\n\n //in most cases these are not used, however they need to be present for some\n //parent-first cases such as logging\n for (Artifact appDep : project.getArtifacts()) {\n // only add the artifact if it's present in the dev mode context\n // we need this to avoid having jars on the classpath multiple times\n if (!devModeContext.getLocalArtifacts().contains(new AppArtifactKey(appDep.getGroupId(), appDep.getArtifactId(),\n appDep.getClassifier(), appDep.getArtifactHandler().getExtension()))) {\n addToClassPaths(classPathManifest, appDep.getFile());\n }\n }\n\n //now we need to build a temporary jar to actually run\n\n File tempFile = new File(buildDir, project.getArtifactId() + \"-dev.jar\");\n tempFile.delete();\n // Only delete the -dev.jar on exit if requested\n if (deleteDevJar) {\n tempFile.deleteOnExit();\n }\n getLog().debug(\"Executable jar: \" + tempFile.getAbsolutePath());\n\n devModeContext.setBaseName(project.getBuild().getFinalName());\n devModeContext.setCacheDir(new File(buildDir, \"transformer-cache\").getAbsoluteFile());\n\n // this is the jar file we will use to launch the dev mode main class\n devModeContext.setDevModeRunnerJarFile(tempFile);\n\n modifyDevModeContext(devModeContext);\n\n try (ZipOutputStream out = new ZipOutputStream(new FileOutputStream(tempFile))) {\n out.putNextEntry(new ZipEntry(\"META-INF/\"));\n Manifest manifest = new Manifest();\n manifest.getMainAttributes().put(Attributes.Name.MANIFEST_VERSION, \"1.0\");\n manifest.getMainAttributes().put(Attributes.Name.CLASS_PATH, classPathManifest.toString());\n manifest.getMainAttributes().put(Attributes.Name.MAIN_CLASS, DevModeMain.class.getName());\n out.putNextEntry(new ZipEntry(\"META-INF/MANIFEST.MF\"));\n manifest.write(out);\n\n out.putNextEntry(new ZipEntry(DevModeMain.DEV_MODE_CONTEXT));\n ByteArrayOutputStream bytes = new ByteArrayOutputStream();\n ObjectOutputStream obj = new ObjectOutputStream(new DataOutputStream(bytes));\n obj.writeObject(devModeContext);\n obj.close();\n out.write(bytes.toByteArray());\n }\n\n outputDirectory.mkdirs();\n // if the --enable-preview flag was set, then we need to enable it when launching dev mode as well\n if (devModeContext.isEnablePreview()) {\n args.add(DevModeContext.ENABLE_PREVIEW_FLAG);\n }\n\n propagateUserProperties();\n\n args.add(\"-jar\");\n args.add(tempFile.getAbsolutePath());\n if (argsString != null) {\n args.addAll(Arrays.asList(CommandLineUtils.translateCommandline(argsString)));\n }\n }",
"void setThreadedAsyncMode(boolean useExecutor);",
"public boolean isDebug();",
"public String getExecutorName() {\n return executorName;\n }",
"@Override\n protected boolean isDebugEnable() {\n return false;\n }",
"private static boolean development() {\n final String mode = mode();\n return \"dev\".equalsIgnoreCase(mode);\n }",
"public void startExecuting() {}",
"protected EventExecutor executor()\r\n/* 27: */ {\r\n/* 28: 58 */ EventExecutor e = super.executor();\r\n/* 29: 59 */ if (e == null) {\r\n/* 30: 60 */ return channel().eventLoop();\r\n/* 31: */ }\r\n/* 32: 62 */ return e;\r\n/* 33: */ }",
"static void debug(boolean b) {\n ProcessRunnerImpl.setGlobalDebug(b);\n }",
"public interface ThreadExecutor extends Executor {\n}",
"@Override\n public boolean canExecute() {\n return true;\n }",
"public interface RecipeExecutor {\n\n /**\n * Submit a Test recipe for asynchronous execution.\n *\n * @param recipe Test recipe to be executed.\n * @return an instance of <code>Execution</code> containing the current state of execution\n */\n Execution submitRecipe(TestRecipe recipe);\n\n /**\n * Submit a Test recipe for synchronous execution.\n *\n * @param recipe Test recipe to be executed.\n * @return an instance of <code>Execution</code> containing the execution result\n */\n Execution executeRecipe(TestRecipe recipe);\n\n /**\n * @return List of all the execution stored on server\n */\n// List<Execution> getExecutions();\n\n /**\n * Adds an execution listener, used when a recipe is submitted for asynchronous execution.\n *\n * @param listener listener to be added\n */\n void addExecutionListener(ExecutionListener listener);\n\n /**\n * Removes the provided listener\n *\n * @param listener listener to be removed\n */\n void removeExecutionListener(ExecutionListener listener);\n\n /**\n * Adds a recipe filter for preprocessing generated recipes\n *\n * @param recipeFilter\n */\n\n void addRecipeFilter(RecipeFilter recipeFilter);\n\n /**\n * Removes an existing recipe filter\n *\n * @param recipeFilter\n */\n\n void removeRecipeFilter(RecipeFilter recipeFilter);\n\n /**\n * @return executionMode <code>ExecutionMode.LOCAL</code> if running locally, <code>ExecutionMode.LOCAL</code> otherwise (when running on TestEngine)\n */\n ExecutionMode getExecutionMode();\n}",
"boolean isDebugEnabled();",
"public interface Executor {\n\n void setAction(Action action);\n boolean execute( Map<String,String> values, MODE mode) throws IOException;\n}",
"public boolean shouldExecute()\n {\n if (this.runDelay <= 0)\n {\n if (!this.theRaider.world.getGameRules().getBoolean(\"mobGriefing\"))\n {\n return false;\n }\n\n this.currentTask = -1;\n this.wantsToReapStuff = true;\n }\n\n return super.shouldExecute();\n }",
"public void continueDebugStep() {\n \tthis.continueDebug = true;\n }",
"public void setExecutorName(String executorName) {\n this.executorName = executorName;\n }",
"boolean isDebug();",
"boolean isDebug();",
"private static synchronized Executor getDefaultExecutor() {\n return sDefaultExecutor == null ? sDefaultExecutor = new Executor(1)\n : sDefaultExecutor;\n }",
"protected final boolean willUseDocker() {\n\t\treturn this.shouldUseDocker() && CodeExecutorDockerBase.DOCKER_CONTAINER_ID.get() != null;\n\t}",
"boolean hasExecBroker();",
"public void setOrderedThreadPoolExecutor(boolean orderedThreadPoolExecutor) {\n this.orderedThreadPoolExecutor = orderedThreadPoolExecutor;\n }",
"public void ensureExecuted(Executor executor, ContextValue context) {\n if (isExecuted()) return;\n StopWatchSet.begin(\"Executor.execute\");\n if (opts.showExecutions)\n LogInfo.logs(\"%s - %s\", canonicalUtterance, formula);\n Executor.Response response = executor.execute(formula, context);\n StopWatchSet.end();\n value = response.value;\n executorStats = response.stats;\n }",
"public SequentialExecutor(Executor executor)\r\n {\r\n myExecutor = Utilities.checkNull(executor, \"executor\");\r\n }",
"@Input\n public boolean isDebuggable() {\n return debug;\n }",
"public boolean mayPickup(Player debug1) {\n/* 112 */ return true;\n/* */ }",
"@Pointcut(value = \"@annotation(LogExecute)\")\n public void executorPointcut()\n {\n }",
"@Override public boolean isCodeTask() { return true; }",
"protected void execute() {\n \t// \"Demo Mode\" turns off the driveline for demonstration events so that we don't have to pull fuses.\n \t// Ideally, we only check this every few seconds to avoid performance implications at competitions.\n\t\tif ((++m_loops%500) == 0) { // at 20ms/loop, 50 loops per second, so limit query to 500 loops per 10 seconds\n\t\t\tm_demoMode = SmartDashboard.getBoolean(\"Demo Mode\", false);// default to false if not found in the table\n\t\t}\n\t\tif (!m_demoMode) {\n\t\t\tRobot.driveTrain.octaCanumDriveWithJoysticks(Robot.oi.joyLeft, Robot.oi.joyRight);\n \t}\n \t\n }",
"public interface Daemon extends Runnable {\n\t/**\n\t * @return if the logs are activated or not.\n\t */\n\tdefault boolean verbose() {\n\t\treturn false;\n\t}\n}",
"@Parameterized.Parameters(name = \"Execution mode = {0}\")\n public static Collection<Object[]> executionModes() {\n return Arrays.asList(\n new Object[] {TestExecutionMode.CLUSTER},\n new Object[] {TestExecutionMode.COLLECTION});\n }",
"static Executor m4016b() {\n return f4073a.f4076d;\n }",
"public static GlideExecutor m21519e() {\n ThreadPoolExecutor threadPoolExecutor = new ThreadPoolExecutor(0, Integer.MAX_VALUE, f23336b, TimeUnit.MILLISECONDS, new SynchronousQueue(), new C8962a(\"source-unlimited\", UncaughtThrowableStrategy.f23340b, false));\n return new GlideExecutor(threadPoolExecutor);\n }",
"public Executor getExecutor() {\n return executor;\n }",
"@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}",
"@Override\n\tpublic boolean pickAndExecuteAnAction() {\n\t\treturn false;\n\t}",
"public Executor getExecutor() {\n\t\t\t\treturn null;\n\t\t\t}",
"public interface TIOADExecutorListeners{\n void OnStart();\n void OnStarting(double pro);\n void OnError(int error);\n void OnSuccess();\n}",
"public interface ICommandOptions {\n\n /**\n * Returns <code>true</code> if abbreviated help mode has been requested\n */\n public boolean isHelpMode();\n\n /**\n * Returns <code>true</code> if full detailed help mode has been requested\n */\n public boolean isFullHelpMode();\n\n /**\n * Return <code>true</code> if we should <emph>skip</emph> adding this command to the queue.\n */\n public boolean isDryRunMode();\n\n /**\n * Return <code>true</code> if we should print the command out to the console before we\n * <emph>skip</emph> adding it to the queue.\n */\n public boolean isNoisyDryRunMode();\n\n /**\n * Return the loop mode for the config.\n */\n public boolean isLoopMode();\n\n /**\n * Get the min loop time for the config.\n *\n * @deprecated use {@link #getLoopTime()} instead\n */\n @Deprecated\n public long getMinLoopTime();\n\n /**\n * Get the time to wait before re-scheduling this command.\n * @return time in ms\n */\n public long getLoopTime();\n\n /**\n * Sets the loop mode for the command\n *\n * @param loopMode\n */\n public void setLoopMode(boolean loopMode);\n\n /**\n * Creates a copy of the {@link ICommandOptions} object.\n * @return\n */\n public ICommandOptions clone();\n\n /**\n * Return true if command should run on all devices.\n */\n public boolean runOnAllDevices();\n\n /**\n * Return true if a bugreport should be taken when the test invocation has ended.\n */\n public boolean takeBugreportOnInvocationEnded();\n\n}",
"public boolean usesAniThread() {\r\n\t\treturn false;\r\n\t}",
"interface DebugCallable<T> {\n\n /**\n * The invocation that will be tracked.\n *\n * @return the result\n */\n T call() throws EvalException, InterruptedException;\n }",
"private void startDebugControlThread() {\n String dbgCtrlFile = System.getProperty(\"DEBUG_CONTROL\");\n dbgCtrlThread = new DebugControlThread(this, dbgCtrlFile, 1000);\n executorService.submit(dbgCtrlThread);\n }",
"public boolean isSingleDriver() {\n return true;\n }",
"private final boolean isDebugMode() {\r\n\tString debug = m_ctx.getInitParameter(\"gateway.debug\");\r\n\tif (debug == null)\r\n\t return false;\r\n\tif (debug.equalsIgnoreCase(\"true\"))\r\n\t return true;\r\n\telse\r\n\t return false;\r\n }",
"public boolean isNoisyDryRunMode();",
"ResilientExecutionUtil() {\n // do nothing\n }",
"public boolean shouldExecute() {\n return this.goalOwner.getTeam() == null ? false : super.shouldExecute();\n }",
"public boolean getCustomBuildStep();",
"public boolean shouldExecute() {\n if (this.runDelay <= 0) {\n if (!net.minecraftforge.event.ForgeEventFactory.getMobGriefingEvent(bean.world, bean)) {\n return false;\n }\n\n this.currentTask = -1;\n if(plantAndCollect)\n this.hasFarmItem = ((EntityWorkBean)bean).isFarmItemInInventory();\n else this.hasFarmItem = false;\n this.wantsToReapStuff = true; //this.villager.wantsMoreFood();\n }\n\n return super.shouldExecute();\n }",
"public static void normalDebug(){\n enableVerbos = false;\n }",
"public interface RegistryExecutor extends Executor {\n ExecutionContext getExecutionContext();\n\n void setRunner(RegistryDelegate<? extends RegistryTask> delegate);\n\n void start();\n\n void stop();\n}",
"protected boolean isDebugEnable() {\n return BlurDialogEngine.DEFAULT_DEBUG_POLICY;\n }",
"protected boolean isContinueDebug() {\n\t\treturn continueDebug;\n\t}",
"@NonNull\n public static Executor directExecutor() {\n return DirectExecutor.getInstance();\n }",
"public void executeTarget( String target ) {\n final String target_name = target;\n\n\n class Runner extends SwingWorker<Object, Object> {\n Color original_color;\n AbstractButton button;\n\n @Override\n public Object doInBackground() {\n // find the button again, the reload replaces the buttons\n // on the button panel, so the button that caused this action event\n // is not the same button that needs to change color\n Component[] components = _button_panel.getComponents();\n int i = 0;\n for ( ; i < components.length; i++ ) {\n if ( target_name.equals( ( ( AbstractButton ) components[ i ] ).getActionCommand() ) ) {\n button = ( AbstractButton ) components[ i ];\n break;\n }\n }\n\n // set button color\n original_color = null;\n if ( button != null ) {\n original_color = button.getForeground();\n button.setForeground( Color.RED );\n }\n\n // maybe save all files before running the target\n saveBeforeRun();\n\n try {\n if ( _settings.getShowPerformanceOutput() && _performance_listener != null ) {\n _performance_listener.reset();\n }\n\n ArrayList targets = new ArrayList();\n\n // run the unnamed target if Ant 1.6\n if ( AntUtils.getAntVersion() == 1.6 && _unnamed_target != null ) {\n //targets.add( _unnamed_target.getName() );\n targets.add( \"\" );\n }\n\n // run the targets\n if ( !target_name.equals( IMPLICIT_TARGET_NAME ) )\n targets.add( target_name );\n AntelopePanel.this.executeTargets( this, targets );\n }\n catch ( Exception e ) {\n _project.fireBuildFinished( e );\n }\n return null;\n }\n\n /* not supported in Java 1.6 SwingWorker\n @Override\n public boolean cancel( boolean mayInterruptIfRunning ) {\n Exception e = new Exception();\n e.printStackTrace();\n log( Level.SEVERE, \"=====> BUILD INTERRUPTED <=====\" );\n return super.cancel( mayInterruptIfRunning );\n }\n */\n\n @Override\n protected void done() {\n if ( _settings.getShowPerformanceOutput() && _performance_listener != null ) {\n log( _performance_listener.getPerformanceStatistics() );\n _performance_listener.reset();\n }\n _build_logger.close();\n if ( button != null && original_color != null ) {\n button.setForeground( original_color );\n button.setSelected( false );\n }\n }\n\n\n\n }\n _runner = new Runner();\n _runner.execute();\n }",
"public Executor(){\n errorsMade = 0;\n decisionsMade = 0; //total number of decisions made accross all days\n // dailyBenchmark = 4; //number of apps that you shld get right\n disads = 0;\n numApps = 7; //number of apps in one day\n numDay = 1;\n errorThreshold = 3; //number of errors for one disadulation. threshold of 3 = 2 errors allowed. 3rd one is a disad.\n }",
"public void testNewSingleThreadExecutor2() {\n final ExecutorService e = Executors.newSingleThreadExecutor(new SimpleThreadFactory());\n try (PoolCleaner cleaner = cleaner(e)) {\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n e.execute(new NoOpRunnable());\n }\n }",
"@Test\n @DisplayName(\"Enabled when it is built\")\n @Disabled\n @Tag(\"development\")\n void developmentTest() {\n }",
"public boolean getSpecifyDebugCcl() {\n return specifyDebugCcl;\n }",
"@Bean\n @ConditionalOnMissingBean(Executor.class)\n @ConditionalOnProperty(name = \"async\", prefix = \"slack\", havingValue = \"true\")\n public Executor threadPool() {\n ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();\n executor.setCorePoolSize(5);\n executor.setMaxPoolSize(30);\n executor.setQueueCapacity(20);\n executor.setThreadNamePrefix(\"slack-thread\");\n return executor;\n }",
"public void setDebuggable(boolean debug) {\n this.debug = debug;\n }",
"@Override\n\tpublic void setDebugMode(boolean debug) {\n\n\t}",
"public interface Executor {\n void setTask(Task task);\n Task getTask();\n void startTask();\n}",
"public interface PatternExecutor {\n\n void execute();\n\n}",
"public interface Constellation {\n\n /**\n * Submit an activity.\n *\n * The submitted Activity will be inserted into Constellation and executed if and when a suitable Executor is found. An\n * ActivityIdentifier is returned that can be used to refer to this submitted Activity at a later moment in time.\n *\n * It is up to the user to make sure that this constellation instance has a suitable executor, or, if the contexts don't\n * match, an executor that can be stolen from. In some cases, the system can detect that no suitable executor can be found. In\n * those cases, it throws an exception.\n *\n * @param activity\n * the Activity to submit\n * @exception NoSuitableExecutorException\n * is thrown when the system has detected that no suitable executor can be found.\n * @return ActivityIdentifier that can be used to refer to the submitted Activity.\n */\n public ActivityIdentifier submit(Activity activity) throws NoSuitableExecutorException;\n\n /**\n * Send an event.\n *\n * @param e\n * the Event to send.\n */\n public void send(Event e);\n\n /**\n * Activate this Constellation implementation.\n *\n * Constellation instances start out in in inactive state when they are created. This allows the application to configure\n * Constellation (for example, by setting up the desired combination of distributed and local constellation instances).\n *\n * Upon activation, the Constellation instance will activate all sub-constellations, and activate its own executors, steal\n * pools, event queues, etc.\n *\n * @return if the Constellation was activated.\n */\n public boolean activate();\n\n /**\n * Terminate Constellation.\n *\n * When terminating all sub-constellations will be terminated. Termination may also block until all other running\n * constellation instances in a Pool have also decided to terminate.\n */\n public void done();\n\n /**\n * Returns <code>true</code> if this Constellation instance is the master, <code>false</code> otherwise.\n *\n * @return whether this Constellation instance is the master.\n */\n public boolean isMaster();\n\n /**\n * Returns a unique identifier for this Constellation instance.\n *\n * This identifier can be used to uniquely refer to a running Constellation instance.\n *\n * @return a string that uniquely identifies this Constellation instance.\n */\n public ConstellationIdentifier identifier();\n\n /**\n * Creates a {@link Timer} with the specified device, thread, and action name.\n *\n * @param device\n * the device name\n * @param thread\n * the thread name\n * @param action\n * the action name\n * @return the Timer object\n */\n public Timer getTimer(String device, String thread, String action);\n\n /**\n * Creates a {@link Timer} without device, thread, or action name.\n *\n * @return the Timer object\n */\n public Timer getTimer();\n\n /**\n * Returns the overall timer.\n *\n * This timer needs to be started and stopped by the main program.\n *\n * @return the overall timer.\n */\n public Timer getOverallTimer();\n}",
"boolean hasExecution();",
"public Boolean isExecEnable() {\n return execEnable;\n }",
"public void debug() {\n\n }",
"static boolean debug(Configuration conf) {\n return conf.getBoolean(DEBUG_FLAG, false);\n }",
"@Override\n\t\tpublic void run() {\n\t\t\tExecutor executor = new Executor(this.env);\n\n\t\t\t// control loop\n\t\t\t//String dataFileName = monitorLog.monitor();\n\t\t\t//AnalysisStatus analysisStatus = analyser.analyse(dataFileName, args);\n\t\t\t// AdaptationPlan adaptationPlan =\n\t\t\t// planner.selectPlan(analysisStatus);\n\t\t\t//executor.execute(adaptationPlan);\n\t\t\t//System.out.println(this.getClass()+\" **************** CHANGE **************\"+System.nanoTime());\n\t\t\texecutor.executeFake(this.env);\n\t\t\t//executeFake();\n\t\t}",
"@Test\n @DisplayName(\"SingleThread Executor + shutdown\")\n void firstExecutorService() {\n ExecutorService executor = Executors.newSingleThreadExecutor();\n executor.submit(this::printThreadName);\n\n shutdownExecutor(executor);\n assertThrows(RejectedExecutionException.class, () -> executor.submit(this::printThreadName));\n }",
"public void setExecEnable(Boolean value) {\n this.execEnable = value;\n }",
"public boolean isRunOnDocker() {\n return Mode.DOCKER == mode;\n }",
"protected boolean preChecksNonJavaProject(ILaunchConfiguration configuration, String mode, IProgressMonitor monitor) throws CoreException {\r\n\t\tif (!saveBeforeLaunch(configuration, mode, monitor)) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tif (mode.equals(ILaunchManager.RUN_MODE) && configuration.supportsMode(ILaunchManager.DEBUG_MODE)) {\r\n\t\t\tIBreakpoint[] breakpoints= getBreakpoints(configuration);\r\n\t if (breakpoints == null) {\r\n\t return true;\r\n\t }\r\n\t\t\tfor (int i = 0; i < breakpoints.length; i++) {\r\n\t\t\t\tif (breakpoints[i].isEnabled()) {\r\n\t\t\t\t\tIStatusHandler prompter = DebugPlugin.getDefault().getStatusHandler(promptStatus);\r\n\t\t\t\t\tif (prompter != null) {\r\n\t\t\t\t\t\tboolean launchInDebugModeInstead = ((Boolean)prompter.handleStatus(switchToDebugPromptStatus, configuration)).booleanValue();\r\n\t\t\t\t\t\tif (launchInDebugModeInstead) { \r\n\t\t\t\t\t\t\treturn false; //kill this launch\r\n\t\t\t\t\t\t} \r\n\t\t\t\t\t}\r\n\t\t\t\t\t// if no user prompt, or user says to continue (no need to check other breakpoints)\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\t\r\n\t\t// no enabled breakpoints... continue launch\r\n\t\treturn true;\r\n\t}",
"public abstract boolean execute(String[] args) throws InterruptedException;",
"public interface IExecutor {\n void execute(Runnable runnable);\n void shutdown();\n void shutdownNow();\n}",
"private void normalExecutorService() {\n ListeningExecutorService executor = MoreExecutors.listeningDecorator(Executors.newFixedThreadPool(numberOfThreadsInThePool));\n try {\n Set<Future<String>> printTaskFutures = new HashSet<Future<String>>();\n for (final String printRequest : printRequests) {\n// Future<String> printer = executor.submit(new Printer(printRequest));\n ListenableFuture<String> printer = executor.submit(new Printer(printRequest));\n printTaskFutures.add(printer);\n// Futures.addCallback(printer, new FutureCallback<String>() {\n// // we want this handler to run immediately after we push the big red button!\n// public void onSuccess(String explosion) {\n//// walkAwayFrom(explosion);\n// }\n//\n// public void onFailure(Throwable thrown) {\n//// battleArchNemesis(); // escaped the explosion!\n// }\n// });\n }\n for (Future<String> future : printTaskFutures) {\n System.out.print(future.get());\n\n }\n } catch (Exception e) {\n Thread.currentThread().interrupt();\n } finally {\n// if (executor != null) {\n executor.shutdownNow();\n// }\n }\n }",
"public abstract boolean shouldPrintWorkerString();",
"public void setTaskExecutor(Executor taskExecutor) {\n this.taskExecutor = taskExecutor;\n }",
"public boolean shouldExecute() {\n return ShulkerEntity.this.world.getDifficulty() == Difficulty.PEACEFUL ? false : super.shouldExecute();\n }",
"public static boolean isDockerRun() {\n if (\"DOCKER\".equalsIgnoreCase(System.getenv(\"WAGERPLAYER_RUN_MODE\"))) {\n return true;\n }\n return false;\n }",
"@Override\n public Boolean usesTcsSimulator() {\n return true;\n }",
"public interface DodonaExecutor {\n\t/**\n\t * Executes the given call, synchronously.\n\t *\n\t * @param call the call to execute\n\t * @param indicator the progress indicator\n\t * @param <T> return type of the response\n\t * @return the response from the call\n\t */\n\t@Nonnull\n\t<T> T execute(Function<? super DodonaClient, T> call,\n\t ProgressIndicator indicator);\n\t\n\t/**\n\t * Executes the given call, asynchronously.\n\t *\n\t * @param project the project\n\t * @param title the dialog title\n\t * @param cancellable whether this request can be cancelled\n\t * @param indicator the progress indicator\n\t * @param call the call to execute\n\t * @param <T> return type of the response\n\t * @return the response from the call\n\t */\n\t@Nonnull\n\t<T> DodonaFuture<T> execute(@Nullable Project project,\n\t String title,\n\t boolean cancellable,\n\t ProgressIndicator indicator,\n\t Function<? super DodonaClient, ? extends T> call);\n\t\n\t/**\n\t * Executes the given call, asynchronously.\n\t *\n\t * @param call the call to execute\n\t * @param <T> type of the response\n\t * @return the response from the call\n\t */\n\t@Nonnull\n\t<T> DodonaFuture<T> execute(Function<? super DodonaClient, ? extends T> call);\n}",
"void setExecutorService(ExecutorService executorService);",
"public WebDriver getDriverInstance() throws Exception {\n\t\tDesiredCapabilities caps = new DesiredCapabilities();\n\n\t\tString browser = (System.getProperty(\"browser\") != null\n\t\t\t\t&& !(System.getProperty(\"browser\").equals(\"${browser}\"))) ? (System.getProperty(\"browser\"))\n\t\t\t\t\t\t: (getConfiguration().getBrowserName());\n\t\tthis.browser = browser;\n\n\t\tbaseUrl = (System.getProperty(\"instanceUrl\") != null\n\t\t\t\t&& !(System.getProperty(\"instanceUrl\").equals(\"${instanceUrl}\"))) ? System.getProperty(\"instanceUrl\")\n\t\t\t\t\t\t: getConfiguration().getURL();\n\n\t\tboolean isBrowserStackExecution = (System.getProperty(\"isBrowserstackExecution\") != null\n\t\t\t\t&& !(System.getProperty(\"isBrowserstackExecution\").equals(\"${isBrowserstackExecution}\")))\n\t\t\t\t\t\t? (System.getProperty(\"isBrowserstackExecution\").equals(\"true\"))\n\t\t\t\t\t\t: getConfiguration().isBrowserStackExecution();\n\t\tSystem.out.println(\"Is Browser Stack execution: \" + System.getProperty(\"isBrowserstackExecution\") + \" : \"\n\t\t\t\t+ isBrowserStackExecution);\n\n\t\tboolean isRemoteExecution = (System.getProperty(\"isRemoteExecution\") != null\n\t\t\t\t&& !(System.getProperty(\"isRemoteExecution\").equals(\"${isRemoteExecution}\")))\n\t\t\t\t\t\t? (System.getProperty(\"isRemoteExecution\").equals(\"true\"))\n\t\t\t\t\t\t: getConfiguration().isRemoteExecution();\n\t\tSystem.out\n\t\t\t\t.println(\"Is Remote execution: \" + System.getProperty(\"isRemoteExecution\") + \" : \" + isRemoteExecution);\n\n\t\tif (isBrowserStackExecution) {\n\t\t\tString browserVersion, os, osVersion, platform, device, browserStackUserName = \"\", browserStackAuthKey = \"\",\n\t\t\t\t\tisEmulator = \"false\";\n\n\t\t\tif (System.getProperty(\"isJenkinsJob\") != null && System.getProperty(\"isJenkinsJob\").equals(\"true\")) {\n\t\t\t\t// isBrowserStackExecution=((System.getProperty(\"isBrowserstackExecution\")!=null)&&(System.getProperty(\"isBrowserstackExecution\").equals(\"true\")));\n\t\t\t\tReporter.log(\"starting from is jenkins job\", true);\n\t\t\t\tbaseUrl = System.getProperty(\"instanceUrl\");\n\t\t\t\tReporter.log(baseUrl + \"\", true);\n\n\t\t\t\tbrowserVersion = System.getProperty(\"browserVersion\");\n\t\t\t\tReporter.log(browserVersion + \"\", true);\n\n\t\t\t\tos = System.getProperty(\"os\");\n\t\t\t\t;\n\t\t\t\tReporter.log(os + \"\", true);\n\n\t\t\t\tosVersion = System.getProperty(\"osVersion\");\n\t\t\t\tReporter.log(osVersion + \"\", true);\n\n\t\t\t\tplatform = System.getProperty(\"platform\");\n\t\t\t\tReporter.log(platform + \"\", true);\n\n\t\t\t\tdevice = System.getProperty(\"device\");\n\t\t\t\tReporter.log(device + \"\", true);\n\n\t\t\t\tbrowser = System.getProperty(\"browser\");\n\t\t\t\tReporter.log(browser + \"\", true);\n\n\t\t\t\tbrowserStackUserName = System.getProperty(\"broswerStackUserName\").trim();\n\t\t\t\tReporter.log(browserStackUserName + \"\", true);\n\n\t\t\t\tbrowserStackAuthKey = System.getProperty(\"broswerStackAuthKey\").trim();\n\t\t\t\tReporter.log(browserStackAuthKey + \"\", true);\n\n\t\t\t\tisEmulator = System.getProperty(\"isEmulator\").trim();\n\t\t\t\tReporter.log(isEmulator + \"\", true);\n\n\t\t\t\tReporter.log(\"stopping from is jenkins job\", true);\n\t\t\t} else {\n\n\t\t\t\tbrowserVersion = (System.getProperty(\"browserVersion\") != null\n\t\t\t\t\t\t&& !(System.getProperty(\"browserVersion\").equals(\"${browserVersion}\")))\n\t\t\t\t\t\t\t\t? (System.getProperty(\"browserVersion\"))\n\t\t\t\t\t\t\t\t: getConfiguration().getBrowserStackBrowserVersion();\n\t\t\t\tos = getConfiguration().getBrowserStackOS();\n\t\t\t\tosVersion = getConfiguration().getBrowserStackOSVersion();\n\t\t\t\tplatform = getConfiguration().getBrowserStackPlatform();\n\t\t\t\tdevice = getConfiguration().getBrowserStackDevice();\n\t\t\t\tisEmulator = getConfiguration().getBrowserStackIsEmulator();\n\t\t\t}\n\n\t\t\tif (browser.equalsIgnoreCase(\"IE\")) {\n\t\t\t\tcaps.setCapability(\"browser\", \"IE\");\n\t\t\t} else if (browser.equalsIgnoreCase(\"GCH\") || browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tcaps.setCapability(\"browser\", \"Chrome\");\n\t\t\t} else if (browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t\tcaps.setCapability(\"browser\", \"Safari\");\n\t\t\t} else if (browser.equalsIgnoreCase(\"android\") || browser.equalsIgnoreCase(\"iphone\")\n\t\t\t\t\t|| browser.equalsIgnoreCase(\"ipad\")) {\n\t\t\t\tcaps.setCapability(\"browserName\", browser);\n\t\t\t\tcaps.setCapability(\"platform\", platform);\n\t\t\t\tcaps.setCapability(\"device\", device);\n\t\t\t\tif (isEmulator.equals(\"true\")) {\n\t\t\t\t\tcaps.setCapability(\"emulator\", isEmulator);\n\t\t\t\t}\n\t\t\t\tcaps.setCapability(\"autoAcceptAlerts\", \"true\");\n\t\t\t} else {\n\t\t\t\tcaps.setCapability(\"browser\", \"Firefox\");\n\t\t\t}\n\t\t\tif (!(browser.equalsIgnoreCase(\"android\"))) {\n\t\t\t\tif (browserVersion != null && !browserVersion.equals(\"\") && !browserVersion.equals(\"latest\")) {\n\t\t\t\t\tcaps.setCapability(\"browser_version\", browserVersion);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (osVersion != null && !(browser.equalsIgnoreCase(\"android\"))) {\n\t\t\t\tcaps.setCapability(\"os\", os);\n\t\t\t\tif (os.toLowerCase().startsWith(\"win\")) {\n\t\t\t\t\tcaps.setCapability(\"os\", \"Windows\");\n\t\t\t\t} else if (os.toLowerCase().startsWith(\"mac-\") || os.toLowerCase().startsWith(\"os x-\")) {\n\t\t\t\t\tcaps.setCapability(\"os\", \"OS X\");\n\t\t\t\t}\n\n\t\t\t\tif (os.equalsIgnoreCase(\"win7\")) {\n\t\t\t\t\tosVersion = \"7\";\n\t\t\t\t} else if (os.equalsIgnoreCase(\"win8\")) {\n\t\t\t\t\tosVersion = \"8\";\n\t\t\t\t} else if (os.equalsIgnoreCase(\"win8.1\") || os.equalsIgnoreCase(\"win8_1\")) {\n\t\t\t\t\tosVersion = \"8.1\";\n\t\t\t\t} else if (os.toLowerCase().startsWith(\"mac-\") || os.toLowerCase().startsWith(\"os x-\")) {\n\t\t\t\t\tosVersion = os.split(\"-\")[1];\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"OS Version:\" + osVersion);\n\t\t\t\tcaps.setCapability(\"os_version\", osVersion);\n\t\t\t}\n\t\t\tcaps.setCapability(\"resolution\", \"1920x1080\");\n\t\t\tcaps.setCapability(\"browserstack.debug\", \"true\");\n\n\t\t\tSystem.out.println(\"AppLibrary Build: \" + System.getProperty(\"Build\"));\n\t\t\tSystem.out.println(\"AppLibrary Project: \" + System.getProperty(\"Suite\"));\n\t\t\tSystem.out.println(\"AppLibrary Name: \" + currentTestName);\n\t\t\tcaps.setCapability(\"build\", System.getProperty(\"Build\"));\n\t\t\tcaps.setCapability(\"project\", System.getProperty(\"Suite\"));\n\t\t\tcaps.setCapability(\"name\", currentTestName);\n\n\t\t\ttry {\n\t\t\t\tdriver = new RemoteWebDriver(new URL(\"http://\"\n\t\t\t\t\t\t+ (browserStackUserName.equals(\"\") ? getConfiguration().getBrowserStackUserName()\n\t\t\t\t\t\t\t\t: browserStackUserName)\n\t\t\t\t\t\t+ \":\" + (browserStackAuthKey.equals(\"\") ? getConfiguration().getBrowserStackAuthKey()\n\t\t\t\t\t\t\t\t: browserStackAuthKey)\n\t\t\t\t\t\t+ \"@hub.browserstack.com/wd/hub\"), caps);\n\t\t\t\t((RemoteWebDriver) driver).setFileDetector(new LocalFileDetector());\n\t\t\t} catch (Exception e) {\n\t\t\t\tReporter.log(\"Issue creating new driver instance due to following error: \" + e.getMessage() + \"\\n\"\n\t\t\t\t\t\t+ e.getStackTrace(), true);\n\t\t\t\tthrow e;\n\t\t\t}\n\n\t\t\tcurrentSessionID = ((RemoteWebDriver) driver).getSessionId().toString();\n\n\t\t} else if (isRemoteExecution) {\n\t\t\tSystem.out.println(\"Remote execution set up\");\n\t\t\tString remoteGridUrl = (System.getProperty(\"remoteGridUrl\") != null\n\t\t\t\t\t&& !(System.getProperty(\"remoteGridUrl\").equals(\"${remoteGridUrl}\")))\n\t\t\t\t\t\t\t? (System.getProperty(\"remoteGridUrl\"))\n\t\t\t\t\t\t\t: getConfiguration().getRemoteGridUrl();\n\t\t\tString os = (System.getProperty(\"os\") != null && !(System.getProperty(\"os\").equals(\"${os}\")))\n\t\t\t\t\t? (System.getProperty(\"os\"))\n\t\t\t\t\t: getConfiguration().getOS();\n\t\t\tString deviceName = (System.getProperty(\"deviceName\") != null\n\t\t\t\t\t&& !(System.getProperty(\"deviceName\").equals(\"${deviceName}\"))) ? (System.getProperty(\"deviceName\"))\n\t\t\t\t\t\t\t: getConfiguration().getDeviceName();\n\t\t\tString deviceVersion = (System.getProperty(\"deviceVersion\") != null\n\t\t\t\t\t&& !(System.getProperty(\"deviceVersion\").equals(\"${deviceVersion}\")))\n\t\t\t\t\t\t\t? (System.getProperty(\"deviceVersion\"))\n\t\t\t\t\t\t\t: getConfiguration().getDeviceVersion();\n\t\t\tString version = (System.getProperty(\"browserVersion\") != null\n\t\t\t\t\t&& !(System.getProperty(\"browserVersion\").equals(\"${browserVersion}\")))\n\t\t\t\t\t\t\t? (System.getProperty(\"browserVersion\"))\n\t\t\t\t\t\t\t: getConfiguration().getBrowserVersion();\n\t\t\tbrowser = (browser.equalsIgnoreCase(\"ie\") || browser.equalsIgnoreCase(\"internet explorer\")\n\t\t\t\t\t|| browser.equalsIgnoreCase(\"iexplore\")) ? \"internet explorer\" : browser;\n\t\t\tcaps.setBrowserName(browser.toLowerCase());\n\n\t\t\tif (os.equalsIgnoreCase(\"win7\") || os.equalsIgnoreCase(\"vista\")) {\n\t\t\t\tcaps.setPlatform(Platform.VISTA);\n\t\t\t} else if (os.equalsIgnoreCase(\"win8\")) {\n\t\t\t\tcaps.setPlatform(Platform.WIN8);\n\t\t\t} else if (os.equalsIgnoreCase(\"win8.1\") || os.equalsIgnoreCase(\"win8_1\")) {\n\t\t\t\tcaps.setPlatform(Platform.WIN8_1);\n\t\t\t} else if (os.equalsIgnoreCase(\"mac\")) {\n\t\t\t\tcaps.setPlatform(Platform.MAC);\n\t\t\t} else if (os.equalsIgnoreCase(\"android\")) {\n\t\t\t\tcaps.setCapability(\"platformName\", \"ANDROID\");\n\t\t\t\tcaps.setBrowserName(StringUtils.capitalize(browser.toLowerCase()));\n\t\t\t\tcaps.setCapability(\"deviceName\", deviceName);\n\t\t\t\tcaps.setCapability(\"platformVersion\", deviceVersion);\n\t\t\t} else if (os.equalsIgnoreCase(\"ios\")) {\n\t\t\t\tcaps.setCapability(\"platformName\", \"iOS\");\n\t\t\t\tcaps.setCapability(\"deviceName\", deviceName);\n\t\t\t\tcaps.setCapability(\"platformVersion\", deviceVersion);\n\t\t\t\tif (browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t\t\tcaps.setBrowserName(\"Safari\");\n\t\t\t\t} else {\n\t\t\t\t\tcaps.setCapability(\"app\", \"safari\");\n\t\t\t\t\tcaps.setBrowserName(\"iPhone\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tcaps.setPlatform(Platform.ANY);\n\t\t\t}\n\n\t\t\tif (version != null && !(version.equalsIgnoreCase(\"\") && !(version.equalsIgnoreCase(\"null\")))) {\n\t\t\t\t// caps.setVersion(version);\n\t\t\t}\n\t\t\tSystem.out.println(caps.asMap());\n\t\t\tdriver = new RemoteWebDriver(new URL(remoteGridUrl), caps);\n\t\t\t((RemoteWebDriver) driver).setFileDetector(new LocalFileDetector());\n\t\t\tSystem.out.println(\"Session ID: \" + ((RemoteWebDriver) driver).getSessionId());\n\t\t} else {\n\t\t\tif (browser.equalsIgnoreCase(\"IE\")) {\n\t\t\t\tString driverPath = getConfiguration().getIEDriverPath();\n\t\t\t\tif ((driverPath == null) || (driverPath.trim().length() == 0)) {\n\t\t\t\t\tdriverPath = \"IEDriverServer.exe\";\n\t\t\t\t}\n\t\t\t\tSystem.setProperty(\"webdriver.ie.driver\", driverPath);\n\t\t\t\tDesiredCapabilities capabilities = DesiredCapabilities.internetExplorer();\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.INTRODUCE_FLAKINESS_BY_IGNORING_SECURITY_DOMAINS,\n\t\t\t\t\t\tfalse);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.REQUIRE_WINDOW_FOCUS, false);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.ENABLE_PERSISTENT_HOVERING, true);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.NATIVE_EVENTS, false);\n\t\t\t\tcapabilities.setCapability(InternetExplorerDriver.IGNORE_ZOOM_SETTING, true);\n\t\t\t\tdriver = new InternetExplorerDriver(capabilities);\n\n\t\t\t} else if (browser.equalsIgnoreCase(\"GCH\") || browser.equalsIgnoreCase(\"chrome\")) {\n\t\t\t\tString driverPath = getConfiguration().getChromeDriverPath();\n\t\t\t\tif ((driverPath == null) || (driverPath.trim().length() == 0)) {\n\t\t\t\t\tdriverPath = \"chromedriver.exe\";\n\t\t\t\t}\n\t\t\t\tSystem.setProperty(\"webdriver.chrome.driver\", driverPath);\n\t\t\t\tChromeOptions options = new ChromeOptions();\n\t\t\t\toptions.addArguments(\"--test-type\");\n\t\t\t\toptions.addArguments(\"chrome.switches\", \"--disable-extensions\");\n\t\t\t\toptions.addArguments(\"start-maximized\");\n\t\t\t\tdriver = new ChromeDriver();\n\t\t\t} else if (browser.equalsIgnoreCase(\"safari\")) {\n\t\t\t\tdriver = new SafariDriver();\n\t\t\t}\n\n\t\t\telse {\n\t\t\t\tSystem.setProperty(\"webdriver.firefox.profile\", \"default\");\n\t\t\t\tdriver = new FirefoxDriver();\n\t\t\t}\n\n\t\t}\n\n\t\tdriver.manage().timeouts().implicitlyWait(GLOBALTIMEOUT, TimeUnit.SECONDS);\n\t\t// isExecutionOnMobile = this.browser.equalsIgnoreCase(\"iPhone\") ||\n\t\t// this.browser.equalsIgnoreCase(\"android\");\n\t\t// if (!isExecutionOnMobile) {\n\t\t// driver.manage().window().maximize();\n\t\t// }\n\t\treturn driver;\n\n\t}",
"private static ScriptedNonThreadScheduler test(GreenApp app, GreenRuntime runtime) {\n runtime.builder = new BuilderImpl(runtime.gm,runtime.args);\n\n //lowered for tests, we want tests to run faster, tests probably run on bigger systems.\n runtime.builder.setDefaultRate(10_000);\n \n \tapp.declareConfiguration(runtime.builder);\n GraphManager.addDefaultNota(runtime.gm, GraphManager.SCHEDULE_RATE, runtime.builder.getDefaultSleepRateNS());\n\n runtime.declareBehavior(app);\n\n\t\truntime.builder.buildStages(runtime);\n\n\t runtime.logStageScheduleRates();\n\n\t if ( runtime.builder.isTelemetryEnabled()) {\n\t\t runtime.gm.enableTelemetry(defaultTelemetryPort);\n\t }\n\n\t //exportGraphDotFile();\n\t boolean reverseOrder = false;\n\t\truntime.scheduler = new ScriptedNonThreadScheduler(runtime.gm, reverseOrder);\n\t\t\n\t\t/////////////\n\t\t//new work investigating the skipping of calls\n\t\t/////////////\n\t\t\n\t\tScriptedNonThreadScheduler s = (ScriptedNonThreadScheduler)runtime.scheduler;\n\t\tScriptedSchedule schedule = s.schedule();\n\t\t\n//\t\t//[0, 1, 2, 3, 5, 6, 7, -1, 0, 1, 2, 4, 5, 6, 7, -1]\n//\t\tSystem.err.println(\"testing list\");\n//\t\tSystem.err.println(Arrays.toString(schedule.script));\n//\t\t\n//\t\tfor(int i = 0; i<s.stages.length; i++) {\n//\t\t\tSystem.err.println(i+\" \"+s.stages[i].getClass());\n//\t\t\t\n//\t\t}\n\t\t\n\t\t\n\t\t//skip script is same length as the script\n\t\tGraphManager gm = runtime.gm;\n\t\t\n\t\t//TODO: must store the run count to the next skip point\n\t\t// skip points are Producers or merge pipe points.\n\t\t// all others are zero, to take point\n\t\t//high bit will be used to enable and 0 high for disable\n\t\tint[] skipScript = ScriptedNonThreadScheduler.buildSkipScript(schedule, gm, s.stages, schedule.script);\n\t\t\n//\t\tSystem.err.println(Arrays.toString(skipScript));\n\t\t\n\t\t//if enabled\n\t\t//if value is > 1\n\t\t//if input pipes are empty\n\t\t// jump n\n\t\t//else\n\t\t// count down value for each set of empty pipes\n\t\t// if we have zero at next >1 point enable else disable\n\t\t\n//\t\t\n//\t\tfor(int i = 0;i<schedule.script.length;i++) {\n//\t\t\tif (schedule.script[i] == -1) {\n//\t\t\t\tSystem.err.println(\"END\");\n//\t\t\t} else {\n//\t\t\t\tSystem.err.println(s.stages[schedule.script[i]].getClass());\n//\t\t\n//\t\t\t\tint inC = GraphManager.getInputPipeCount(runtime.gm, s.stages[schedule.script[i]].stageId);\n//\t\t\t\tSystem.err.print(\" input: \");\n//\t\t\t\tfor(int j = 1; j<=inC; j++) {\n//\t\t\t\t\tPipe p = GraphManager.getInputPipe(runtime.gm, s.stages[schedule.script[i]].stageId, j);\n//\t\t\t\t\tSystem.err.print(\" \"+p.id);\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\tSystem.err.println();\n//\t\t\t\t\n//\t\t\t\tSystem.err.print(\" output: \");\n//\t\t\t\tint outC = GraphManager.getOutputPipeCount(runtime.gm, s.stages[schedule.script[i]].stageId);\n//\t\t\t\tfor(int j = 1; j<=outC; j++) {\n//\t\t\t\t\tPipe p = GraphManager.getOutputPipe(runtime.gm, s.stages[schedule.script[i]].stageId, j);\n//\t\t\t\t\tSystem.err.print(\" \"+p.id);\t\t\t\t\t\n//\t\t\t\t}\n//\t\t\t\tSystem.err.println();\n//\t\t\t}\t\t\n//\t\t}\n\t\t\n\t\t\n\t\t////////////////\n\t\t////////////////\n\t\t/////////////\n\t\t\n\t\t\n\t\t\n\t\treturn (ScriptedNonThreadScheduler) runtime.scheduler;\n\t}",
"public final boolean startSimulation() {\n\t\tboolean result = true;\n\t\tfor (String mdl : executors.keySet()) {\n\t\t\tSubstructureExecutorI exe = executors.get(mdl);\n\t\t\tresult = result && exe.startSimulation();\n\t\t}\n\t\tsetRunning(true);\n\t\treturn result;\n\t}"
] |
[
"0.56062186",
"0.5472145",
"0.5376241",
"0.52925587",
"0.5292016",
"0.5236487",
"0.52172",
"0.5179543",
"0.5135719",
"0.5129768",
"0.5120042",
"0.5027419",
"0.50055534",
"0.49938288",
"0.4958558",
"0.49556312",
"0.4940283",
"0.4928735",
"0.49287042",
"0.4918266",
"0.49130613",
"0.4908645",
"0.49062878",
"0.48969722",
"0.48833546",
"0.4875758",
"0.48520476",
"0.4851243",
"0.48327905",
"0.48307863",
"0.48307863",
"0.4824687",
"0.48234648",
"0.48119342",
"0.4809634",
"0.47951588",
"0.47902444",
"0.4790186",
"0.47771722",
"0.47721332",
"0.47574767",
"0.47574162",
"0.47485176",
"0.47371385",
"0.47311017",
"0.4724441",
"0.47220802",
"0.47213522",
"0.47213522",
"0.47189388",
"0.47164384",
"0.4715929",
"0.47113487",
"0.47049835",
"0.4700233",
"0.46925247",
"0.46906257",
"0.46735212",
"0.4671927",
"0.46693152",
"0.46690714",
"0.46683058",
"0.46673203",
"0.46609563",
"0.46486703",
"0.46476868",
"0.46468332",
"0.46414194",
"0.46388152",
"0.46239632",
"0.46223727",
"0.46203408",
"0.4620274",
"0.4619717",
"0.46191117",
"0.4610129",
"0.46010414",
"0.4592169",
"0.45840424",
"0.45822242",
"0.45800874",
"0.45795146",
"0.457151",
"0.45703492",
"0.45700747",
"0.45700333",
"0.45688686",
"0.4567836",
"0.45672268",
"0.45663786",
"0.45652264",
"0.45594606",
"0.4559453",
"0.4558139",
"0.45545796",
"0.45511752",
"0.45437688",
"0.45403507",
"0.45364732",
"0.45359144"
] |
0.5472589
|
1
|
Instantiates a new dSM function.
|
public DSMFunction( KeyMove keyMove )
{
super( keyMove );
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public DSMFunction( Properties props )\n {\n super( props );\n }",
"public Function() {\r\n\r\n\t}",
"public SimdEstimation(Function func) {\n this.func=func;\n }",
"public static final DistanceMatrixService newInstance() {\n JavaScriptObject jso = createJso();\n WorkAroundUtils.removeGwtObjectId(jso);\n return jso.cast();\n }",
"Function createFunction();",
"public Function()\n {}",
"public DSMFunction( int keyCode, int deviceButtonIndex, int deviceType, int setupCode, Hex cmd, String notes )\n {\n super( keyCode, deviceButtonIndex, deviceType, setupCode, cmd, notes );\n }",
"public Sc2Gears4DM() {\n\t}",
"public IdFunction() {}",
"public D() {}",
"public VFunction2D() {\n \n \n }",
"@Import(ModelType.FEATURE_SELECTION)\n\tpublic static LinearDiscriminantAnalysis newInstance(Map<String, Object> params) {\n\t\tLinearDiscriminantAnalysis lda = new LinearDiscriminantAnalysis();\n\t\t\n\t\tlda.ldaMatrix = (double[][])params.get(\"lda\");\n\t\tlda.resultDimension = lda.ldaMatrix.length;\n\t\t\n\t\treturn lda;\n\t}",
"public static IHjsonDsfProvider math() { return new DsfMath(); }",
"public DoubleFunction<String> build() {\n return factory.apply(this);\n }",
"OpFunction createOpFunction();",
"DL createDL();",
"Object dml(Settings settings);",
"DTMCFactory getDTMCFactory();",
"DsmlClass createDsmlClass();",
"public TravellingSalesmanFunctions() {\n\t\tregisterFunctions(\n\t\t\t\tnew SquareRoot(),\n\t\t\t\tnew Square(),\n\t\t\t\tnew Cube(),\n\t\t\t\tnew ScaledExponential(),\n\t\t\t\tnew AbsoluteSineAB(),\n\t\t\t\tnew AbsoluteCosineAB(),\n\t\t\t\tnew AbsoluteHyperbolicTangentAB(),\n\t\t\t\tnew ScaledHypotenuse(),\n\t\t\t\tnew ScaledAddition(),\n\t\t\t\tnew SymmetricSubtraction(),\n\t\t\t\tnew Multiplication(),\n\t\t\t\tnew BoundedDivision());\n\t}",
"public static NewExpression new_(Constructor constructor) { throw Extensions.todo(); }",
"public Function( String name )\n {\n this.name = name;\n }",
"public MultivariateGaussianDM() {\n\t}",
"private PartitionFunctionFactory() {\n }",
"Node(double d, String s) {\r\n mobileNo = d;\r\n name = s;\r\n }",
"public ASTFunction(int id) {\n super(id);\n }",
"public Module() {\n\t\tthis(new Function[0]);\n\t}",
"Reproducible newInstance();",
"public static Factory factory() {\n return ext_accdt::new;\n }",
"DsmlComponent createDsmlComponent();",
"public cy mo1942a(dm dmVar) {\r\n return new cs(dmVar, this.f6454a);\r\n }",
"protected FunctionOperation(Structogram function, ArrayList<String> parameterList) {\n this.function = function;\n this.parameterList = parameterList;\n }",
"public LambdaMART() {}",
"public Function( Function base )\n {\n name = base.name;\n gid = base.gid;\n if ( base.data != null )\n data = new Hex( base.data );\n notes = base.notes;\n upgrade = base.upgrade;\n serial = base.serial;\n keyflags = base.keyflags;\n if ( base.icon != null )\n// icon = new RMIcon( base.icon );\n icon = base.icon; // *** not sure why it needed to be copied\n }",
"public Milstein(SDE sde) {\n this.sde = sde;\n }",
"private FunctionUtils() {\n }",
"private Node newInstrumentationNode(NodeTraversal traversal, Node node, String fnName) {\n\n String type = \"Type.FUNCTION\";\n\n String encodedParam = parameterMapping.getEncodedParam(traversal.getSourceName(), fnName, type);\n\n Node innerProp = IR.getprop(IR.name(MODULE_RENAMING), IR.string(INSTRUMENT_CODE_INSTANCE));\n Node outerProp = IR.getprop(innerProp, IR.string(INSTRUMENT_CODE_FUNCTION_NAME));\n Node functionCall = IR.call(outerProp, IR.string(encodedParam), IR.number(node.getLineno()));\n Node exprNode = IR.exprResult(functionCall);\n\n return exprNode.useSourceInfoIfMissingFromForTree(node);\n }",
"public PlainValueFunction(DirectFunctionEstimator functionEstimator) {\n this(1, functionEstimator);\n }",
"public static Graph<Vertex,Edge> createGraphObject()\n\t{\n\t\tGraph<Vertex,Edge> g = new DirectedSparseMultigraph<Vertex, Edge>();\n\t\treturn g;\n\t}",
"private MyMath() {\n }",
"public IDnaStrand getInstance(String source);",
"DD createDD();",
"private Instantiation(){}",
"public PDFunctionType4(COSBase functionStream) throws IOException {\n/* 49 */ super(functionStream);\n/* 50 */ byte[] bytes = getPDStream().toByteArray();\n/* 51 */ String string = new String(bytes, \"ISO-8859-1\");\n/* 52 */ this.instructions = InstructionSequenceBuilder.parse(string);\n/* */ }",
"private XMath()\n {\n \n }",
"public ASTFunction(Grammar grammar, int id) {\n super(grammar, id);\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-24 13:04:41.591 -0500\", hash_original_method = \"FA063F91D44E7D4042E286E05194EEE9\", hash_generated_method = \"669017D820CEDFE100C3C214E1FCE2C7\")\n \nstatic Instance createInstance(int sequenceType, int orientationType, Gesture gesture, String label) {\n float[] pts;\n Instance instance;\n if (sequenceType == GestureStore.SEQUENCE_SENSITIVE) {\n pts = temporalSampler(orientationType, gesture);\n instance = new Instance(gesture.getID(), pts, label);\n instance.normalize();\n } else {\n pts = spatialSampler(gesture);\n instance = new Instance(gesture.getID(), pts, label);\n }\n return instance;\n }",
"@Override\r\n protected MachineFunction loadMachineFunction(RecordInputStream s, ModuleTypeInfo mti, CompilerMessageLogger msgLogger) throws IOException {\r\n // Load the record header and determine which actual class we are loading.\r\n RecordHeaderInfo rhi = s.findRecord(ModuleSerializationTags.LECC_MACHINE_FUNCTION);\r\n if (rhi == null) {\r\n throw new IOException (\"Unable to find record header for LECCMachineFunction.\");\r\n }\r\n \r\n LECCMachineFunction mf = new LECCMachineFunction();\r\n mf.readContent(s, rhi.getSchema(), mti, msgLogger);\r\n s.skipRestOfRecord();\r\n \r\n return mf;\r\n }",
"FunctionExtract createFunctionExtract();",
"public CD() {}",
"public FuncionesSemanticas(){\r\n\t}",
"FuelingStation createFuelingStation();",
"public Dynamics newDynamics(ComponentType ct) {\n\t\tDynamics ret = new Dynamics(ct);\n\t\treturn ret;\n\t}",
"public FunctionPlatform(EnigFunction function) {\n\t\tfunc = function;\n\t}",
"public Funcionaria(){\n\n }",
"protected DPP createDPP() {\n\t\tDPP dpp = new DPP();\n\t\tdpp.add(null, OP_CREATE, ST_CREATED);\n\t\t// dpp.add(ST_CREATED, ..., ...);\n\t\treturn dpp;\n\t}",
"protected DenseMatrix()\n\t{\n\t}",
"public Transducer ()\n\t{\n\t\tsumLatticeFactory = new SumLatticeDefault.Factory();\n\t\tmaxLatticeFactory = new MaxLatticeDefault.Factory();\n\t}",
"public Distance() {\n \n }",
"public CSSTidier() {\n\t}",
"public native void constructor();",
"public MMTMeasurement(){\n }",
"public MDS() {\n\t\ttreeMap = new TreeMap<>();\n\t\thashMap = new HashMap<>();\n\t}",
"int mo98356d();",
"public Simulador(){\n }",
"FunctionDecl createFunctionDecl();",
"public Domicilio() {\n }",
"public Math2()\r\n {\r\n \r\n }",
"@Override\r\n public Serializable createStaticState() {\r\n return this.m_func.createStaticState();\r\n }",
"private SpTreeMan() {\n }",
"public StandardDTEDNameTranslator() {}",
"public FGDistanceStats()\r\n {\r\n \r\n }",
"private SIModule(){}",
"public static TimedStateMachineFactory init() {\n\t\ttry {\n\t\t\tTimedStateMachineFactory theTimedStateMachineFactory = (TimedStateMachineFactory) EPackage.Registry.INSTANCE\n\t\t\t\t\t.getEFactory(TimedStateMachinePackage.eNS_URI);\n\t\t\tif (theTimedStateMachineFactory != null) {\n\t\t\t\treturn theTimedStateMachineFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new TimedStateMachineFactoryImpl();\n\t}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"private Builder(final Function<Builder, DoubleFunction<String>> factory) {\n this.factory = factory;\n }",
"MathinterpreterFactory getMathinterpreterFactory();",
"Make createMake();",
"public static StatespaceFactory init() {\r\n\t\ttry {\r\n\t\t\tStatespaceFactory theStatespaceFactory = (StatespaceFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://se.compute.dtu.dk/ecno/statespace/1.0\"); \r\n\t\t\tif (theStatespaceFactory != null) {\r\n\t\t\t\treturn theStatespaceFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new StatespaceFactoryImpl();\r\n\t}",
"public Node function()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.IDENTIFIER)\r\n\t\t{\r\n\t\t\tString name = lexer.getString();\r\n\t\t\tif(lexer.getToken()==Lexer.Token.LEFT_BRACKETS)\r\n\t\t\t{\r\n\t\t\t\tNode exp = expression();\r\n\t\t\t\tif(exp!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(lexer.getToken()==Lexer.Token.RIGHT_BRACKETS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(name.equals(\"sin\")) return new Sin(exp);\r\n\t\t\t\t\t\tif(name.equals(\"cos\")) return new Cos(exp);\r\n\t\t\t\t\t\tif(name.equals(\"tan\")) return new Tan(exp);\r\n\t\t\t\t\t\tif(name.equals(\"log\")) return new Log(exp);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}",
"public MbCoordDpto() {\r\n \r\n }",
"public dxm(boolean r3) {\n /*\n r2 = this;\n r2.<init>()\n esb r0 = defpackage.esb.a.a\n java.lang.Class<cuh> r1 = defpackage.cuh.class\n esc r0 = r0.a(r1)\n cuh r0 = (defpackage.cuh) r0\n r1 = 0\n if (r0 == 0) goto L_0x001b\n cug r0 = r0.c()\n boolean r0 = r0.c()\n goto L_0x001c\n L_0x001b:\n r0 = 0\n L_0x001c:\n if (r0 == 0) goto L_0x0021\n if (r3 != 0) goto L_0x0021\n r1 = 1\n L_0x0021:\n r3 = 8\n if (r1 == 0) goto L_0x003b\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r1 = java.lang.Integer.valueOf(r3)\n boolean r0 = r0.contains(r1)\n if (r0 != 0) goto L_0x0056\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n r0.add(r3)\n return\n L_0x003b:\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r1 = java.lang.Integer.valueOf(r3)\n boolean r0 = r0.contains(r1)\n if (r0 == 0) goto L_0x0056\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n int r3 = r0.indexOf(r3)\n java.util.ArrayList<java.lang.Integer> r0 = a\n r0.remove(r3)\n L_0x0056:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxm.<init>(boolean):void\");\n }",
"public DiscMesh() {\n this(1f, 25);\n }",
"Schulleiter createSchulleiter();",
"DsmlNonUML createDsmlNonUML();",
"public FuncContentProvider() {\n\t\t}",
"public simulation() {\n\n }",
"public final Statistic newInstance() {\n Statistic s = new Statistic();\n s.myNumMissing = myNumMissing;\n s.firstx = firstx;\n s.max = max;\n s.min = min;\n s.myConfidenceLevel = myConfidenceLevel;\n s.myJsum = myJsum;\n s.myValue = myValue;\n s.setName(getName());\n s.num = num;\n s.sumxx = sumxx;\n s.moments = Arrays.copyOf(moments, moments.length);\n if (getSaveOption()) {\n s.save(getSavedData());\n s.setSaveOption(true);\n }\n return (s);\n }",
"public AugmentedfsmFactoryImpl() {\n\t\tsuper();\n\t}",
"public Funcionario() {\r\n\t\t\r\n\t}",
"FunctionName createStartFunction() throws IOException {\n return new SyntheticFunctionName( \"\", \"<start>\", \"()V\" ) {\n /**\n * {@inheritDoc}\n */\n @Override\n protected boolean hasWasmCode() {\n return true;\n }\n\n /**\n * {@inheritDoc}\n */\n @Override\n protected WasmCodeBuilder getCodeBuilder( WatParser watParser ) {\n watParser.reset( null, null, getSignature( null ) );\n\n while( !clinits.isEmpty() ) {\n FunctionName name = clinits.pop();\n watParser.addCallInstruction( name, 0, -1 );\n scanAndPatchIfNeeded( name );\n }\n return watParser;\n }\n };\n }",
"public Vector(double s, double d){\n\t\tthis.magnitude = s;\n\t\tthis.direction = d;\n\t\tthis.dX = this.magnitude * Math.cos(Math.toRadians(d));\n\t\tthis.dY = this.magnitude * Math.sin(Math.toRadians(d));\n\t\t\n\t}",
"public Simulator(){}",
"public static C10067G m32839a() {\n String str = \"newInstance\";\n try {\n Class<?> unsafeClass = Class.forName(\"sun.misc.Unsafe\");\n Field f = unsafeClass.getDeclaredField(\"theUnsafe\");\n f.setAccessible(true);\n return new C10063C(unsafeClass.getMethod(\"allocateInstance\", new Class[]{Class.class}), f.get(null));\n } catch (Exception e) {\n try {\n Method getConstructorId = ObjectStreamClass.class.getDeclaredMethod(\"getConstructorId\", new Class[]{Class.class});\n getConstructorId.setAccessible(true);\n int constructorId = ((Integer) getConstructorId.invoke(null, new Object[]{Object.class})).intValue();\n Method newInstance = ObjectStreamClass.class.getDeclaredMethod(str, new Class[]{Class.class, Integer.TYPE});\n newInstance.setAccessible(true);\n return new C10064D(newInstance, constructorId);\n } catch (Exception e2) {\n try {\n Method newInstance2 = ObjectInputStream.class.getDeclaredMethod(str, new Class[]{Class.class, Class.class});\n newInstance2.setAccessible(true);\n return new C10065E(newInstance2);\n } catch (Exception e3) {\n return new C10066F();\n }\n }\n }\n }",
"public SSDI_AMImpl() {\n }",
"public FitRealFunction() {\t\t\r\n\t}",
"public MyDslFactoryImpl()\n {\n super();\n }",
"public void setDistanceFunction(DistanceFunction distanceFunction);",
"public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }",
"@Override\n\tpublic function initFromString(String s) {\n\t\treturn new Monom(s);\n\t}"
] |
[
"0.6552328",
"0.60364574",
"0.5820245",
"0.57174814",
"0.55390227",
"0.5501436",
"0.5434229",
"0.5384318",
"0.5381573",
"0.5316391",
"0.5289923",
"0.5270692",
"0.524684",
"0.520298",
"0.52026516",
"0.5199184",
"0.51815236",
"0.51768005",
"0.5146832",
"0.51390904",
"0.51352376",
"0.51342034",
"0.5131125",
"0.5122497",
"0.5115648",
"0.5068764",
"0.5042722",
"0.5006263",
"0.4983493",
"0.4962479",
"0.4958135",
"0.49515408",
"0.49369764",
"0.49075007",
"0.48746994",
"0.487152",
"0.48689443",
"0.48673907",
"0.4863545",
"0.4862064",
"0.486126",
"0.48568955",
"0.48478672",
"0.4841034",
"0.48299247",
"0.48250607",
"0.48069635",
"0.48032475",
"0.48016554",
"0.480065",
"0.47986513",
"0.47981715",
"0.47935617",
"0.4791844",
"0.4788182",
"0.47819054",
"0.47801796",
"0.47776827",
"0.47771192",
"0.476993",
"0.4756547",
"0.4756514",
"0.47557604",
"0.4751927",
"0.4749675",
"0.47465298",
"0.47385794",
"0.47331148",
"0.47243455",
"0.4722346",
"0.4720581",
"0.47199693",
"0.4719279",
"0.4714078",
"0.47131088",
"0.47099712",
"0.47068253",
"0.46924248",
"0.4688523",
"0.4688503",
"0.46850404",
"0.46722856",
"0.46697184",
"0.4666982",
"0.46613482",
"0.46534824",
"0.46522006",
"0.4651753",
"0.46450397",
"0.46370715",
"0.46358815",
"0.46334878",
"0.46313015",
"0.4628429",
"0.46263525",
"0.46238264",
"0.46193665",
"0.46187016",
"0.46183863",
"0.46162218"
] |
0.59541893
|
2
|
Instantiates a new dSM function.
|
public DSMFunction( int keyCode, int deviceButtonIndex, int deviceType, int setupCode, Hex cmd, String notes )
{
super( keyCode, deviceButtonIndex, deviceType, setupCode, cmd, notes );
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public DSMFunction( Properties props )\n {\n super( props );\n }",
"public Function() {\r\n\r\n\t}",
"public DSMFunction( KeyMove keyMove )\n {\n super( keyMove );\n }",
"public SimdEstimation(Function func) {\n this.func=func;\n }",
"public static final DistanceMatrixService newInstance() {\n JavaScriptObject jso = createJso();\n WorkAroundUtils.removeGwtObjectId(jso);\n return jso.cast();\n }",
"Function createFunction();",
"public Function()\n {}",
"public Sc2Gears4DM() {\n\t}",
"public IdFunction() {}",
"public D() {}",
"public VFunction2D() {\n \n \n }",
"@Import(ModelType.FEATURE_SELECTION)\n\tpublic static LinearDiscriminantAnalysis newInstance(Map<String, Object> params) {\n\t\tLinearDiscriminantAnalysis lda = new LinearDiscriminantAnalysis();\n\t\t\n\t\tlda.ldaMatrix = (double[][])params.get(\"lda\");\n\t\tlda.resultDimension = lda.ldaMatrix.length;\n\t\t\n\t\treturn lda;\n\t}",
"public static IHjsonDsfProvider math() { return new DsfMath(); }",
"public DoubleFunction<String> build() {\n return factory.apply(this);\n }",
"OpFunction createOpFunction();",
"DL createDL();",
"Object dml(Settings settings);",
"DTMCFactory getDTMCFactory();",
"DsmlClass createDsmlClass();",
"public TravellingSalesmanFunctions() {\n\t\tregisterFunctions(\n\t\t\t\tnew SquareRoot(),\n\t\t\t\tnew Square(),\n\t\t\t\tnew Cube(),\n\t\t\t\tnew ScaledExponential(),\n\t\t\t\tnew AbsoluteSineAB(),\n\t\t\t\tnew AbsoluteCosineAB(),\n\t\t\t\tnew AbsoluteHyperbolicTangentAB(),\n\t\t\t\tnew ScaledHypotenuse(),\n\t\t\t\tnew ScaledAddition(),\n\t\t\t\tnew SymmetricSubtraction(),\n\t\t\t\tnew Multiplication(),\n\t\t\t\tnew BoundedDivision());\n\t}",
"public static NewExpression new_(Constructor constructor) { throw Extensions.todo(); }",
"public MultivariateGaussianDM() {\n\t}",
"public Function( String name )\n {\n this.name = name;\n }",
"private PartitionFunctionFactory() {\n }",
"Node(double d, String s) {\r\n mobileNo = d;\r\n name = s;\r\n }",
"public ASTFunction(int id) {\n super(id);\n }",
"public Module() {\n\t\tthis(new Function[0]);\n\t}",
"Reproducible newInstance();",
"public static Factory factory() {\n return ext_accdt::new;\n }",
"DsmlComponent createDsmlComponent();",
"public cy mo1942a(dm dmVar) {\r\n return new cs(dmVar, this.f6454a);\r\n }",
"protected FunctionOperation(Structogram function, ArrayList<String> parameterList) {\n this.function = function;\n this.parameterList = parameterList;\n }",
"public LambdaMART() {}",
"public Function( Function base )\n {\n name = base.name;\n gid = base.gid;\n if ( base.data != null )\n data = new Hex( base.data );\n notes = base.notes;\n upgrade = base.upgrade;\n serial = base.serial;\n keyflags = base.keyflags;\n if ( base.icon != null )\n// icon = new RMIcon( base.icon );\n icon = base.icon; // *** not sure why it needed to be copied\n }",
"public Milstein(SDE sde) {\n this.sde = sde;\n }",
"private FunctionUtils() {\n }",
"private Node newInstrumentationNode(NodeTraversal traversal, Node node, String fnName) {\n\n String type = \"Type.FUNCTION\";\n\n String encodedParam = parameterMapping.getEncodedParam(traversal.getSourceName(), fnName, type);\n\n Node innerProp = IR.getprop(IR.name(MODULE_RENAMING), IR.string(INSTRUMENT_CODE_INSTANCE));\n Node outerProp = IR.getprop(innerProp, IR.string(INSTRUMENT_CODE_FUNCTION_NAME));\n Node functionCall = IR.call(outerProp, IR.string(encodedParam), IR.number(node.getLineno()));\n Node exprNode = IR.exprResult(functionCall);\n\n return exprNode.useSourceInfoIfMissingFromForTree(node);\n }",
"public PlainValueFunction(DirectFunctionEstimator functionEstimator) {\n this(1, functionEstimator);\n }",
"public static Graph<Vertex,Edge> createGraphObject()\n\t{\n\t\tGraph<Vertex,Edge> g = new DirectedSparseMultigraph<Vertex, Edge>();\n\t\treturn g;\n\t}",
"private MyMath() {\n }",
"public IDnaStrand getInstance(String source);",
"DD createDD();",
"private Instantiation(){}",
"public PDFunctionType4(COSBase functionStream) throws IOException {\n/* 49 */ super(functionStream);\n/* 50 */ byte[] bytes = getPDStream().toByteArray();\n/* 51 */ String string = new String(bytes, \"ISO-8859-1\");\n/* 52 */ this.instructions = InstructionSequenceBuilder.parse(string);\n/* */ }",
"private XMath()\n {\n \n }",
"public ASTFunction(Grammar grammar, int id) {\n super(grammar, id);\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-24 13:04:41.591 -0500\", hash_original_method = \"FA063F91D44E7D4042E286E05194EEE9\", hash_generated_method = \"669017D820CEDFE100C3C214E1FCE2C7\")\n \nstatic Instance createInstance(int sequenceType, int orientationType, Gesture gesture, String label) {\n float[] pts;\n Instance instance;\n if (sequenceType == GestureStore.SEQUENCE_SENSITIVE) {\n pts = temporalSampler(orientationType, gesture);\n instance = new Instance(gesture.getID(), pts, label);\n instance.normalize();\n } else {\n pts = spatialSampler(gesture);\n instance = new Instance(gesture.getID(), pts, label);\n }\n return instance;\n }",
"@Override\r\n protected MachineFunction loadMachineFunction(RecordInputStream s, ModuleTypeInfo mti, CompilerMessageLogger msgLogger) throws IOException {\r\n // Load the record header and determine which actual class we are loading.\r\n RecordHeaderInfo rhi = s.findRecord(ModuleSerializationTags.LECC_MACHINE_FUNCTION);\r\n if (rhi == null) {\r\n throw new IOException (\"Unable to find record header for LECCMachineFunction.\");\r\n }\r\n \r\n LECCMachineFunction mf = new LECCMachineFunction();\r\n mf.readContent(s, rhi.getSchema(), mti, msgLogger);\r\n s.skipRestOfRecord();\r\n \r\n return mf;\r\n }",
"public CD() {}",
"FunctionExtract createFunctionExtract();",
"public FuncionesSemanticas(){\r\n\t}",
"FuelingStation createFuelingStation();",
"public Dynamics newDynamics(ComponentType ct) {\n\t\tDynamics ret = new Dynamics(ct);\n\t\treturn ret;\n\t}",
"public FunctionPlatform(EnigFunction function) {\n\t\tfunc = function;\n\t}",
"public Funcionaria(){\n\n }",
"protected DPP createDPP() {\n\t\tDPP dpp = new DPP();\n\t\tdpp.add(null, OP_CREATE, ST_CREATED);\n\t\t// dpp.add(ST_CREATED, ..., ...);\n\t\treturn dpp;\n\t}",
"public Transducer ()\n\t{\n\t\tsumLatticeFactory = new SumLatticeDefault.Factory();\n\t\tmaxLatticeFactory = new MaxLatticeDefault.Factory();\n\t}",
"protected DenseMatrix()\n\t{\n\t}",
"public Distance() {\n \n }",
"public CSSTidier() {\n\t}",
"public MDS() {\n\t\ttreeMap = new TreeMap<>();\n\t\thashMap = new HashMap<>();\n\t}",
"public MMTMeasurement(){\n }",
"public native void constructor();",
"public Simulador(){\n }",
"int mo98356d();",
"FunctionDecl createFunctionDecl();",
"public Domicilio() {\n }",
"public Math2()\r\n {\r\n \r\n }",
"private SpTreeMan() {\n }",
"@Override\r\n public Serializable createStaticState() {\r\n return this.m_func.createStaticState();\r\n }",
"private SIModule(){}",
"public FGDistanceStats()\r\n {\r\n \r\n }",
"public StandardDTEDNameTranslator() {}",
"public static TimedStateMachineFactory init() {\n\t\ttry {\n\t\t\tTimedStateMachineFactory theTimedStateMachineFactory = (TimedStateMachineFactory) EPackage.Registry.INSTANCE\n\t\t\t\t\t.getEFactory(TimedStateMachinePackage.eNS_URI);\n\t\t\tif (theTimedStateMachineFactory != null) {\n\t\t\t\treturn theTimedStateMachineFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new TimedStateMachineFactoryImpl();\n\t}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"private Builder(final Function<Builder, DoubleFunction<String>> factory) {\n this.factory = factory;\n }",
"MathinterpreterFactory getMathinterpreterFactory();",
"Make createMake();",
"public static StatespaceFactory init() {\r\n\t\ttry {\r\n\t\t\tStatespaceFactory theStatespaceFactory = (StatespaceFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://se.compute.dtu.dk/ecno/statespace/1.0\"); \r\n\t\t\tif (theStatespaceFactory != null) {\r\n\t\t\t\treturn theStatespaceFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new StatespaceFactoryImpl();\r\n\t}",
"public Node function()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.IDENTIFIER)\r\n\t\t{\r\n\t\t\tString name = lexer.getString();\r\n\t\t\tif(lexer.getToken()==Lexer.Token.LEFT_BRACKETS)\r\n\t\t\t{\r\n\t\t\t\tNode exp = expression();\r\n\t\t\t\tif(exp!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(lexer.getToken()==Lexer.Token.RIGHT_BRACKETS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(name.equals(\"sin\")) return new Sin(exp);\r\n\t\t\t\t\t\tif(name.equals(\"cos\")) return new Cos(exp);\r\n\t\t\t\t\t\tif(name.equals(\"tan\")) return new Tan(exp);\r\n\t\t\t\t\t\tif(name.equals(\"log\")) return new Log(exp);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}",
"public MbCoordDpto() {\r\n \r\n }",
"public dxm(boolean r3) {\n /*\n r2 = this;\n r2.<init>()\n esb r0 = defpackage.esb.a.a\n java.lang.Class<cuh> r1 = defpackage.cuh.class\n esc r0 = r0.a(r1)\n cuh r0 = (defpackage.cuh) r0\n r1 = 0\n if (r0 == 0) goto L_0x001b\n cug r0 = r0.c()\n boolean r0 = r0.c()\n goto L_0x001c\n L_0x001b:\n r0 = 0\n L_0x001c:\n if (r0 == 0) goto L_0x0021\n if (r3 != 0) goto L_0x0021\n r1 = 1\n L_0x0021:\n r3 = 8\n if (r1 == 0) goto L_0x003b\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r1 = java.lang.Integer.valueOf(r3)\n boolean r0 = r0.contains(r1)\n if (r0 != 0) goto L_0x0056\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n r0.add(r3)\n return\n L_0x003b:\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r1 = java.lang.Integer.valueOf(r3)\n boolean r0 = r0.contains(r1)\n if (r0 == 0) goto L_0x0056\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n int r3 = r0.indexOf(r3)\n java.util.ArrayList<java.lang.Integer> r0 = a\n r0.remove(r3)\n L_0x0056:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxm.<init>(boolean):void\");\n }",
"public DiscMesh() {\n this(1f, 25);\n }",
"Schulleiter createSchulleiter();",
"DsmlNonUML createDsmlNonUML();",
"public simulation() {\n\n }",
"public FuncContentProvider() {\n\t\t}",
"public final Statistic newInstance() {\n Statistic s = new Statistic();\n s.myNumMissing = myNumMissing;\n s.firstx = firstx;\n s.max = max;\n s.min = min;\n s.myConfidenceLevel = myConfidenceLevel;\n s.myJsum = myJsum;\n s.myValue = myValue;\n s.setName(getName());\n s.num = num;\n s.sumxx = sumxx;\n s.moments = Arrays.copyOf(moments, moments.length);\n if (getSaveOption()) {\n s.save(getSavedData());\n s.setSaveOption(true);\n }\n return (s);\n }",
"public AugmentedfsmFactoryImpl() {\n\t\tsuper();\n\t}",
"FunctionName createStartFunction() throws IOException {\n return new SyntheticFunctionName( \"\", \"<start>\", \"()V\" ) {\n /**\n * {@inheritDoc}\n */\n @Override\n protected boolean hasWasmCode() {\n return true;\n }\n\n /**\n * {@inheritDoc}\n */\n @Override\n protected WasmCodeBuilder getCodeBuilder( WatParser watParser ) {\n watParser.reset( null, null, getSignature( null ) );\n\n while( !clinits.isEmpty() ) {\n FunctionName name = clinits.pop();\n watParser.addCallInstruction( name, 0, -1 );\n scanAndPatchIfNeeded( name );\n }\n return watParser;\n }\n };\n }",
"public Funcionario() {\r\n\t\t\r\n\t}",
"public Vector(double s, double d){\n\t\tthis.magnitude = s;\n\t\tthis.direction = d;\n\t\tthis.dX = this.magnitude * Math.cos(Math.toRadians(d));\n\t\tthis.dY = this.magnitude * Math.sin(Math.toRadians(d));\n\t\t\n\t}",
"public Simulator(){}",
"public static C10067G m32839a() {\n String str = \"newInstance\";\n try {\n Class<?> unsafeClass = Class.forName(\"sun.misc.Unsafe\");\n Field f = unsafeClass.getDeclaredField(\"theUnsafe\");\n f.setAccessible(true);\n return new C10063C(unsafeClass.getMethod(\"allocateInstance\", new Class[]{Class.class}), f.get(null));\n } catch (Exception e) {\n try {\n Method getConstructorId = ObjectStreamClass.class.getDeclaredMethod(\"getConstructorId\", new Class[]{Class.class});\n getConstructorId.setAccessible(true);\n int constructorId = ((Integer) getConstructorId.invoke(null, new Object[]{Object.class})).intValue();\n Method newInstance = ObjectStreamClass.class.getDeclaredMethod(str, new Class[]{Class.class, Integer.TYPE});\n newInstance.setAccessible(true);\n return new C10064D(newInstance, constructorId);\n } catch (Exception e2) {\n try {\n Method newInstance2 = ObjectInputStream.class.getDeclaredMethod(str, new Class[]{Class.class, Class.class});\n newInstance2.setAccessible(true);\n return new C10065E(newInstance2);\n } catch (Exception e3) {\n return new C10066F();\n }\n }\n }\n }",
"public SSDI_AMImpl() {\n }",
"public FitRealFunction() {\t\t\r\n\t}",
"@Override\n\tpublic function initFromString(String s) {\n\t\treturn new Monom(s);\n\t}",
"public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }",
"public MyDslFactoryImpl()\n {\n super();\n }",
"public void setDistanceFunction(DistanceFunction distanceFunction);"
] |
[
"0.6551302",
"0.60332257",
"0.5953784",
"0.58189577",
"0.5719367",
"0.553583",
"0.54973775",
"0.5385372",
"0.5378657",
"0.5313583",
"0.52884054",
"0.5270636",
"0.5246011",
"0.51996607",
"0.51995355",
"0.5196604",
"0.51798695",
"0.5176548",
"0.51463056",
"0.51397425",
"0.5133903",
"0.5131949",
"0.5131079",
"0.5121372",
"0.5115358",
"0.50646156",
"0.5041002",
"0.500609",
"0.4980648",
"0.49607205",
"0.49582058",
"0.49480674",
"0.49370992",
"0.49040997",
"0.48765352",
"0.4870329",
"0.4866294",
"0.48656583",
"0.4865616",
"0.48610923",
"0.48608863",
"0.4853513",
"0.48470536",
"0.48377615",
"0.48291558",
"0.4820983",
"0.4807405",
"0.48040003",
"0.47990447",
"0.4797973",
"0.47977254",
"0.47974068",
"0.4792707",
"0.4789048",
"0.47855228",
"0.4780609",
"0.47800055",
"0.4779575",
"0.4775913",
"0.47709018",
"0.47587895",
"0.4758173",
"0.4756603",
"0.47511214",
"0.4750709",
"0.4742256",
"0.47365034",
"0.47325733",
"0.47246614",
"0.47238356",
"0.47211236",
"0.47197157",
"0.47192645",
"0.47161448",
"0.47131157",
"0.47082436",
"0.47064742",
"0.46932542",
"0.4690446",
"0.46853805",
"0.4684019",
"0.46713018",
"0.46679777",
"0.46672267",
"0.46603224",
"0.4652936",
"0.4652831",
"0.46521384",
"0.46456888",
"0.46347317",
"0.4634616",
"0.46330902",
"0.4632631",
"0.46304384",
"0.4627806",
"0.46218023",
"0.46191314",
"0.46184927",
"0.46171105",
"0.4616568"
] |
0.54327774
|
7
|
Instantiates a new dSM function.
|
public DSMFunction( Properties props )
{
super( props );
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Function() {\r\n\r\n\t}",
"public DSMFunction( KeyMove keyMove )\n {\n super( keyMove );\n }",
"public SimdEstimation(Function func) {\n this.func=func;\n }",
"public static final DistanceMatrixService newInstance() {\n JavaScriptObject jso = createJso();\n WorkAroundUtils.removeGwtObjectId(jso);\n return jso.cast();\n }",
"Function createFunction();",
"public Function()\n {}",
"public DSMFunction( int keyCode, int deviceButtonIndex, int deviceType, int setupCode, Hex cmd, String notes )\n {\n super( keyCode, deviceButtonIndex, deviceType, setupCode, cmd, notes );\n }",
"public Sc2Gears4DM() {\n\t}",
"public IdFunction() {}",
"public D() {}",
"public VFunction2D() {\n \n \n }",
"@Import(ModelType.FEATURE_SELECTION)\n\tpublic static LinearDiscriminantAnalysis newInstance(Map<String, Object> params) {\n\t\tLinearDiscriminantAnalysis lda = new LinearDiscriminantAnalysis();\n\t\t\n\t\tlda.ldaMatrix = (double[][])params.get(\"lda\");\n\t\tlda.resultDimension = lda.ldaMatrix.length;\n\t\t\n\t\treturn lda;\n\t}",
"public static IHjsonDsfProvider math() { return new DsfMath(); }",
"public DoubleFunction<String> build() {\n return factory.apply(this);\n }",
"OpFunction createOpFunction();",
"DL createDL();",
"Object dml(Settings settings);",
"DTMCFactory getDTMCFactory();",
"DsmlClass createDsmlClass();",
"public TravellingSalesmanFunctions() {\n\t\tregisterFunctions(\n\t\t\t\tnew SquareRoot(),\n\t\t\t\tnew Square(),\n\t\t\t\tnew Cube(),\n\t\t\t\tnew ScaledExponential(),\n\t\t\t\tnew AbsoluteSineAB(),\n\t\t\t\tnew AbsoluteCosineAB(),\n\t\t\t\tnew AbsoluteHyperbolicTangentAB(),\n\t\t\t\tnew ScaledHypotenuse(),\n\t\t\t\tnew ScaledAddition(),\n\t\t\t\tnew SymmetricSubtraction(),\n\t\t\t\tnew Multiplication(),\n\t\t\t\tnew BoundedDivision());\n\t}",
"public static NewExpression new_(Constructor constructor) { throw Extensions.todo(); }",
"public MultivariateGaussianDM() {\n\t}",
"public Function( String name )\n {\n this.name = name;\n }",
"private PartitionFunctionFactory() {\n }",
"Node(double d, String s) {\r\n mobileNo = d;\r\n name = s;\r\n }",
"public ASTFunction(int id) {\n super(id);\n }",
"public Module() {\n\t\tthis(new Function[0]);\n\t}",
"Reproducible newInstance();",
"public static Factory factory() {\n return ext_accdt::new;\n }",
"DsmlComponent createDsmlComponent();",
"public cy mo1942a(dm dmVar) {\r\n return new cs(dmVar, this.f6454a);\r\n }",
"protected FunctionOperation(Structogram function, ArrayList<String> parameterList) {\n this.function = function;\n this.parameterList = parameterList;\n }",
"public LambdaMART() {}",
"public Function( Function base )\n {\n name = base.name;\n gid = base.gid;\n if ( base.data != null )\n data = new Hex( base.data );\n notes = base.notes;\n upgrade = base.upgrade;\n serial = base.serial;\n keyflags = base.keyflags;\n if ( base.icon != null )\n// icon = new RMIcon( base.icon );\n icon = base.icon; // *** not sure why it needed to be copied\n }",
"public Milstein(SDE sde) {\n this.sde = sde;\n }",
"private FunctionUtils() {\n }",
"private Node newInstrumentationNode(NodeTraversal traversal, Node node, String fnName) {\n\n String type = \"Type.FUNCTION\";\n\n String encodedParam = parameterMapping.getEncodedParam(traversal.getSourceName(), fnName, type);\n\n Node innerProp = IR.getprop(IR.name(MODULE_RENAMING), IR.string(INSTRUMENT_CODE_INSTANCE));\n Node outerProp = IR.getprop(innerProp, IR.string(INSTRUMENT_CODE_FUNCTION_NAME));\n Node functionCall = IR.call(outerProp, IR.string(encodedParam), IR.number(node.getLineno()));\n Node exprNode = IR.exprResult(functionCall);\n\n return exprNode.useSourceInfoIfMissingFromForTree(node);\n }",
"public PlainValueFunction(DirectFunctionEstimator functionEstimator) {\n this(1, functionEstimator);\n }",
"public static Graph<Vertex,Edge> createGraphObject()\n\t{\n\t\tGraph<Vertex,Edge> g = new DirectedSparseMultigraph<Vertex, Edge>();\n\t\treturn g;\n\t}",
"private MyMath() {\n }",
"public IDnaStrand getInstance(String source);",
"DD createDD();",
"private Instantiation(){}",
"public PDFunctionType4(COSBase functionStream) throws IOException {\n/* 49 */ super(functionStream);\n/* 50 */ byte[] bytes = getPDStream().toByteArray();\n/* 51 */ String string = new String(bytes, \"ISO-8859-1\");\n/* 52 */ this.instructions = InstructionSequenceBuilder.parse(string);\n/* */ }",
"private XMath()\n {\n \n }",
"public ASTFunction(Grammar grammar, int id) {\n super(grammar, id);\n }",
"@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-02-24 13:04:41.591 -0500\", hash_original_method = \"FA063F91D44E7D4042E286E05194EEE9\", hash_generated_method = \"669017D820CEDFE100C3C214E1FCE2C7\")\n \nstatic Instance createInstance(int sequenceType, int orientationType, Gesture gesture, String label) {\n float[] pts;\n Instance instance;\n if (sequenceType == GestureStore.SEQUENCE_SENSITIVE) {\n pts = temporalSampler(orientationType, gesture);\n instance = new Instance(gesture.getID(), pts, label);\n instance.normalize();\n } else {\n pts = spatialSampler(gesture);\n instance = new Instance(gesture.getID(), pts, label);\n }\n return instance;\n }",
"@Override\r\n protected MachineFunction loadMachineFunction(RecordInputStream s, ModuleTypeInfo mti, CompilerMessageLogger msgLogger) throws IOException {\r\n // Load the record header and determine which actual class we are loading.\r\n RecordHeaderInfo rhi = s.findRecord(ModuleSerializationTags.LECC_MACHINE_FUNCTION);\r\n if (rhi == null) {\r\n throw new IOException (\"Unable to find record header for LECCMachineFunction.\");\r\n }\r\n \r\n LECCMachineFunction mf = new LECCMachineFunction();\r\n mf.readContent(s, rhi.getSchema(), mti, msgLogger);\r\n s.skipRestOfRecord();\r\n \r\n return mf;\r\n }",
"public CD() {}",
"FunctionExtract createFunctionExtract();",
"public FuncionesSemanticas(){\r\n\t}",
"FuelingStation createFuelingStation();",
"public Dynamics newDynamics(ComponentType ct) {\n\t\tDynamics ret = new Dynamics(ct);\n\t\treturn ret;\n\t}",
"public FunctionPlatform(EnigFunction function) {\n\t\tfunc = function;\n\t}",
"public Funcionaria(){\n\n }",
"protected DPP createDPP() {\n\t\tDPP dpp = new DPP();\n\t\tdpp.add(null, OP_CREATE, ST_CREATED);\n\t\t// dpp.add(ST_CREATED, ..., ...);\n\t\treturn dpp;\n\t}",
"public Transducer ()\n\t{\n\t\tsumLatticeFactory = new SumLatticeDefault.Factory();\n\t\tmaxLatticeFactory = new MaxLatticeDefault.Factory();\n\t}",
"protected DenseMatrix()\n\t{\n\t}",
"public Distance() {\n \n }",
"public CSSTidier() {\n\t}",
"public MDS() {\n\t\ttreeMap = new TreeMap<>();\n\t\thashMap = new HashMap<>();\n\t}",
"public MMTMeasurement(){\n }",
"public native void constructor();",
"public Simulador(){\n }",
"int mo98356d();",
"FunctionDecl createFunctionDecl();",
"public Domicilio() {\n }",
"public Math2()\r\n {\r\n \r\n }",
"private SpTreeMan() {\n }",
"@Override\r\n public Serializable createStaticState() {\r\n return this.m_func.createStaticState();\r\n }",
"private SIModule(){}",
"public FGDistanceStats()\r\n {\r\n \r\n }",
"public StandardDTEDNameTranslator() {}",
"public static TimedStateMachineFactory init() {\n\t\ttry {\n\t\t\tTimedStateMachineFactory theTimedStateMachineFactory = (TimedStateMachineFactory) EPackage.Registry.INSTANCE\n\t\t\t\t\t.getEFactory(TimedStateMachinePackage.eNS_URI);\n\t\t\tif (theTimedStateMachineFactory != null) {\n\t\t\t\treturn theTimedStateMachineFactory;\n\t\t\t}\n\t\t} catch (Exception exception) {\n\t\t\tEcorePlugin.INSTANCE.log(exception);\n\t\t}\n\t\treturn new TimedStateMachineFactoryImpl();\n\t}",
"public static StaticFactoryInsteadOfConstructors create(){\n return new StaticFactoryInsteadOfConstructors();\n }",
"private Builder(final Function<Builder, DoubleFunction<String>> factory) {\n this.factory = factory;\n }",
"MathinterpreterFactory getMathinterpreterFactory();",
"Make createMake();",
"public static StatespaceFactory init() {\r\n\t\ttry {\r\n\t\t\tStatespaceFactory theStatespaceFactory = (StatespaceFactory)EPackage.Registry.INSTANCE.getEFactory(\"http://se.compute.dtu.dk/ecno/statespace/1.0\"); \r\n\t\t\tif (theStatespaceFactory != null) {\r\n\t\t\t\treturn theStatespaceFactory;\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception exception) {\r\n\t\t\tEcorePlugin.INSTANCE.log(exception);\r\n\t\t}\r\n\t\treturn new StatespaceFactoryImpl();\r\n\t}",
"public Node function()\r\n\t{\r\n\t\tint index = lexer.getPosition();\r\n\t\tif(lexer.getToken()==Lexer.Token.IDENTIFIER)\r\n\t\t{\r\n\t\t\tString name = lexer.getString();\r\n\t\t\tif(lexer.getToken()==Lexer.Token.LEFT_BRACKETS)\r\n\t\t\t{\r\n\t\t\t\tNode exp = expression();\r\n\t\t\t\tif(exp!=null)\r\n\t\t\t\t{\r\n\t\t\t\t\tif(lexer.getToken()==Lexer.Token.RIGHT_BRACKETS)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif(name.equals(\"sin\")) return new Sin(exp);\r\n\t\t\t\t\t\tif(name.equals(\"cos\")) return new Cos(exp);\r\n\t\t\t\t\t\tif(name.equals(\"tan\")) return new Tan(exp);\r\n\t\t\t\t\t\tif(name.equals(\"log\")) return new Log(exp);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tlexer.setPosition(index);\r\n\t\treturn null;\r\n\t}",
"public MbCoordDpto() {\r\n \r\n }",
"public dxm(boolean r3) {\n /*\n r2 = this;\n r2.<init>()\n esb r0 = defpackage.esb.a.a\n java.lang.Class<cuh> r1 = defpackage.cuh.class\n esc r0 = r0.a(r1)\n cuh r0 = (defpackage.cuh) r0\n r1 = 0\n if (r0 == 0) goto L_0x001b\n cug r0 = r0.c()\n boolean r0 = r0.c()\n goto L_0x001c\n L_0x001b:\n r0 = 0\n L_0x001c:\n if (r0 == 0) goto L_0x0021\n if (r3 != 0) goto L_0x0021\n r1 = 1\n L_0x0021:\n r3 = 8\n if (r1 == 0) goto L_0x003b\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r1 = java.lang.Integer.valueOf(r3)\n boolean r0 = r0.contains(r1)\n if (r0 != 0) goto L_0x0056\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n r0.add(r3)\n return\n L_0x003b:\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r1 = java.lang.Integer.valueOf(r3)\n boolean r0 = r0.contains(r1)\n if (r0 == 0) goto L_0x0056\n java.util.ArrayList<java.lang.Integer> r0 = a\n java.lang.Integer r3 = java.lang.Integer.valueOf(r3)\n int r3 = r0.indexOf(r3)\n java.util.ArrayList<java.lang.Integer> r0 = a\n r0.remove(r3)\n L_0x0056:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: defpackage.dxm.<init>(boolean):void\");\n }",
"public DiscMesh() {\n this(1f, 25);\n }",
"Schulleiter createSchulleiter();",
"DsmlNonUML createDsmlNonUML();",
"public simulation() {\n\n }",
"public FuncContentProvider() {\n\t\t}",
"public final Statistic newInstance() {\n Statistic s = new Statistic();\n s.myNumMissing = myNumMissing;\n s.firstx = firstx;\n s.max = max;\n s.min = min;\n s.myConfidenceLevel = myConfidenceLevel;\n s.myJsum = myJsum;\n s.myValue = myValue;\n s.setName(getName());\n s.num = num;\n s.sumxx = sumxx;\n s.moments = Arrays.copyOf(moments, moments.length);\n if (getSaveOption()) {\n s.save(getSavedData());\n s.setSaveOption(true);\n }\n return (s);\n }",
"public AugmentedfsmFactoryImpl() {\n\t\tsuper();\n\t}",
"FunctionName createStartFunction() throws IOException {\n return new SyntheticFunctionName( \"\", \"<start>\", \"()V\" ) {\n /**\n * {@inheritDoc}\n */\n @Override\n protected boolean hasWasmCode() {\n return true;\n }\n\n /**\n * {@inheritDoc}\n */\n @Override\n protected WasmCodeBuilder getCodeBuilder( WatParser watParser ) {\n watParser.reset( null, null, getSignature( null ) );\n\n while( !clinits.isEmpty() ) {\n FunctionName name = clinits.pop();\n watParser.addCallInstruction( name, 0, -1 );\n scanAndPatchIfNeeded( name );\n }\n return watParser;\n }\n };\n }",
"public Funcionario() {\r\n\t\t\r\n\t}",
"public Vector(double s, double d){\n\t\tthis.magnitude = s;\n\t\tthis.direction = d;\n\t\tthis.dX = this.magnitude * Math.cos(Math.toRadians(d));\n\t\tthis.dY = this.magnitude * Math.sin(Math.toRadians(d));\n\t\t\n\t}",
"public Simulator(){}",
"public static C10067G m32839a() {\n String str = \"newInstance\";\n try {\n Class<?> unsafeClass = Class.forName(\"sun.misc.Unsafe\");\n Field f = unsafeClass.getDeclaredField(\"theUnsafe\");\n f.setAccessible(true);\n return new C10063C(unsafeClass.getMethod(\"allocateInstance\", new Class[]{Class.class}), f.get(null));\n } catch (Exception e) {\n try {\n Method getConstructorId = ObjectStreamClass.class.getDeclaredMethod(\"getConstructorId\", new Class[]{Class.class});\n getConstructorId.setAccessible(true);\n int constructorId = ((Integer) getConstructorId.invoke(null, new Object[]{Object.class})).intValue();\n Method newInstance = ObjectStreamClass.class.getDeclaredMethod(str, new Class[]{Class.class, Integer.TYPE});\n newInstance.setAccessible(true);\n return new C10064D(newInstance, constructorId);\n } catch (Exception e2) {\n try {\n Method newInstance2 = ObjectInputStream.class.getDeclaredMethod(str, new Class[]{Class.class, Class.class});\n newInstance2.setAccessible(true);\n return new C10065E(newInstance2);\n } catch (Exception e3) {\n return new C10066F();\n }\n }\n }\n }",
"public SSDI_AMImpl() {\n }",
"public FitRealFunction() {\t\t\r\n\t}",
"@Override\n\tpublic function initFromString(String s) {\n\t\treturn new Monom(s);\n\t}",
"public static StaticFactoryInsteadOfConstructors newInstance() {\n return new StaticFactoryInsteadOfConstructors();\n }",
"public MyDslFactoryImpl()\n {\n super();\n }",
"public void setDistanceFunction(DistanceFunction distanceFunction);"
] |
[
"0.60332257",
"0.5953784",
"0.58189577",
"0.5719367",
"0.553583",
"0.54973775",
"0.54327774",
"0.5385372",
"0.5378657",
"0.5313583",
"0.52884054",
"0.5270636",
"0.5246011",
"0.51996607",
"0.51995355",
"0.5196604",
"0.51798695",
"0.5176548",
"0.51463056",
"0.51397425",
"0.5133903",
"0.5131949",
"0.5131079",
"0.5121372",
"0.5115358",
"0.50646156",
"0.5041002",
"0.500609",
"0.4980648",
"0.49607205",
"0.49582058",
"0.49480674",
"0.49370992",
"0.49040997",
"0.48765352",
"0.4870329",
"0.4866294",
"0.48656583",
"0.4865616",
"0.48610923",
"0.48608863",
"0.4853513",
"0.48470536",
"0.48377615",
"0.48291558",
"0.4820983",
"0.4807405",
"0.48040003",
"0.47990447",
"0.4797973",
"0.47977254",
"0.47974068",
"0.4792707",
"0.4789048",
"0.47855228",
"0.4780609",
"0.47800055",
"0.4779575",
"0.4775913",
"0.47709018",
"0.47587895",
"0.4758173",
"0.4756603",
"0.47511214",
"0.4750709",
"0.4742256",
"0.47365034",
"0.47325733",
"0.47246614",
"0.47238356",
"0.47211236",
"0.47197157",
"0.47192645",
"0.47161448",
"0.47131157",
"0.47082436",
"0.47064742",
"0.46932542",
"0.4690446",
"0.46853805",
"0.4684019",
"0.46713018",
"0.46679777",
"0.46672267",
"0.46603224",
"0.4652936",
"0.4652831",
"0.46521384",
"0.46456888",
"0.46347317",
"0.4634616",
"0.46330902",
"0.4632631",
"0.46304384",
"0.4627806",
"0.46218023",
"0.46191314",
"0.46184927",
"0.46171105",
"0.4616568"
] |
0.6551302
|
0
|
Initialize your data structure here.
|
public LeetCode381() {
list = new ArrayList<>();
map = new HashMap<Integer,HashSet<Integer>>();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void initData() {\n }",
"private void initData() {\n\t}",
"private void initData() {\n\n }",
"public void initData() {\n }",
"public void initData() {\n }",
"@Override\n\tpublic void initData() {\n\n\n\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}",
"@Override\n\tpublic void initData() {\n\t\t\n\t}",
"@Override\n protected void initData() {\n }",
"@Override\n protected void initData() {\n }",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tpublic void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\t\t\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"@Override\n\tprotected void initData() {\n\n\t}",
"private void InitData() {\n\t}",
"@Override\r\n\tpublic void initData() {\n\t}",
"private void initData(){\n\n }",
"public AllOOneDataStructure() {\n map = new HashMap<>();\n vals = new HashMap<>();\n maxKey = minKey = \"\";\n max = min = 0;\n }",
"@Override\n\tprotected void initdata() {\n\n\t}",
"@Override\r\n\tprotected void initData() {\n\r\n\t}",
"@Override\n\tprotected void initData(){\n\t\tsuper.initData();\n\t}",
"public InitialData(){}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"@Override\r\n\tprotected void initSelfData() {\n\t\t\r\n\t}",
"protected @Override\r\n abstract void initData();",
"private void initialize() {\n first = null;\n last = null;\n size = 0;\n dictionary = new Hashtable();\n }",
"public DesignADataStructure() {\n arr = new ArrayList<>();\n map = new HashMap<>();\n }",
"public void initData() {\n\t\tnotes = new ArrayList<>();\n\t\t//place to read notes e.g from file\n\t}",
"public void initialize() {\n // empty for now\n }",
"void initData(){\n }",
"@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}",
"public void initData(){\r\n \r\n }",
"public void initialize()\n {\n }",
"private void initData() {\n\t\tpages = new ArrayList<WallpaperPage>();\n\n\t}",
"public void init() {\n \n }",
"private void initializeData() {\n posts = new ArrayList<>();\n posts.add(new Posts(\"Emma Wilson\", \"23 years old\", R.drawable.logo));\n posts.add(new Posts(\"Lavery Maiss\", \"25 years old\", R.drawable.star));\n posts.add(new Posts(\"Lillie Watts\", \"35 years old\", R.drawable.profile));\n }",
"public static void init() {\n buildings = new HashMap<Long, JSONObject>();\n arr = new ArrayList();\n buildingOfRoom = new HashMap<Long, Long>();\n }",
"public void init() {\n\t\t}",
"public void InitData() {\n }",
"abstract void initializeNeededData();",
"@Override\r\n\tprotected void init() {\n\t\tupdateValues();\r\n\t}",
"@Override\n\t\tpublic void init() {\n\t\t}",
"private RandomData() {\n initFields();\n }",
"private TigerData() {\n initFields();\n }",
"@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}",
"public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }",
"public void init()\n {\n this.tripDict = new HashMap<String, Set<Trip>>();\n this.routeDict = new HashMap<String, Double>();\n this.tripList = new LinkedList<Trip>();\n this.computeAllPaths();\n this.generateDictionaries();\n }",
"public void init() {\n for (int i = 1; i <= 20; i++) {\n List<Data> dataList = new ArrayList<Data>();\n if (i % 2 == 0 || (1 + i % 10) == _siteIndex) {\n dataList.add(new Data(i, 10 * i));\n _dataMap.put(i, dataList);\n }\n }\n }",
"private void initData() {\n requestServerToGetInformation();\n }",
"private void Initialized_Data() {\n\t\t\r\n\t}",
"void initData() {\r\n\t\tthis.daVinci = new Artist(\"da Vinci\");\r\n\t\tthis.mona = new Painting(daVinci, \"Mona Lisa\");\r\n\t\t//this.lastSupper = new Painting(this.daVinci, \"Last Supper\");\r\n\t}",
"private void initValues() {\n \n }",
"public void initialize() {\n grow(0);\n }",
"private void init() {\n }",
"public void init() {\r\n\r\n\t}",
"private void initialize()\n {\n aggregatedFields = new Fields(fieldToAggregator.keySet());\n }",
"@objid (\"4bb3363c-38e1-48f1-9894-6dceea1f8d66\")\n public void init() {\n }",
"public void initialize() {\n\n fechaDeLaVisita.set(LocalDate.now());\n\n if (medico.get() != null) {\n medico.get().clear();\n } else {\n medico.set(new Medico());\n }\n\n turnoVisita.set(\"\");\n visitaAcompanadaSN.set(false);\n lugarVisita.set(\"\");\n if (causa.get() != null) {\n causa.get().clear();\n } else {\n causa.set(new Causa());\n }\n\n if (promocion.get() != null) {\n promocion.get().clear();\n } else {\n promocion.set(new Promocion());\n }\n\n observacion.set(\"\");\n persistida.set(false);\n persistidoGraf.set(MaterialDesignIcon.SYNC_PROBLEM.graphic());\n\n fechaCreacion.set(LocalDateTime.now());\n\n }",
"public void initialise() \n\t{\n\t\tthis.docids = scoresMap.keys();\n\t\tthis.scores = scoresMap.getValues();\n\t\tthis.occurrences = occurrencesMap.getValues();\t\t\n\t\tresultSize = this.docids.length;\n\t\texactResultSize = this.docids.length;\n\n\t\tscoresMap.clear();\n\t\toccurrencesMap.clear();\n\t\tthis.arraysInitialised = true;\n\t}",
"protected void initialize() {\n \t\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"private void init() {\n }",
"@Override public void init()\n\t\t{\n\t\t}",
"private void initData() {\n\t\tcomboBoxInit();\n\t\tinitList();\n\t}",
"public DataStructure() {\r\n firstX = null;\r\n lastX = null;\r\n firstY = null;\r\n lastY = null;\r\n size = 0;\r\n }",
"private void initialize() {\n }",
"private void initData() {\n\t\tnamesInfo = new NameSurferDataBase(fileName);\n\n\t}",
"private void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void init() {\n\n\t}",
"public void initialize() {\n // TODO\n }",
"public void initialize() {\r\n }",
"@SuppressWarnings(\"static-access\")\n\tprivate void initData() {\n\t\tstartDate = startDate.now();\n\t\tendDate = endDate.now();\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}",
"private void init()\n\t{\n\t\tif (_invData == null)\n\t\t\t_invData = new InvestigateStore.MappedStores();\n\t}",
"@Override\n\t\tprotected void initialise() {\n\n\t\t}",
"public void init() {\n\t\t\n\t}",
"public void init() {\n\t\n\t}",
"public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }",
"private void initialize() {\n\t\t\n\t}",
"private void initialize() {\n this.pm10Sensors = new ArrayList<>();\n this.tempSensors = new ArrayList<>();\n this.humidSensors = new ArrayList<>();\n }",
"@Override\r\n\tpublic void init() {}",
"public void init() {\n\t\t// Read the data text file and load up the local database\n\t\tinitData();\n\n\t\t// Create the labels and the textbox\n\t\taddNameLabel();\n\t\taddNameBox();\n\t\taddGraphButton();\n\t\taddClearButton();\n\n\t\t// Set up the graph object\n\t\tgraph = new NameSurferGraph();\n\t\tadd(graph);\n\n\t}",
"private void initialData() {\n\n }",
"@Override\r\n\tpublic final void init() {\r\n\r\n\t}",
"public mainData() {\n }",
"private void initStructures() throws RIFCSException {\n initTexts();\n initDates();\n }",
"public void init() {\n initComponents();\n initData();\n }",
"public void init() {\n\t}"
] |
[
"0.7995335",
"0.79737675",
"0.78095216",
"0.77773166",
"0.77773166",
"0.7643578",
"0.76366925",
"0.76366925",
"0.76366925",
"0.76366925",
"0.76366925",
"0.76366925",
"0.75556004",
"0.7543105",
"0.7543105",
"0.7542904",
"0.7542904",
"0.7542904",
"0.7532211",
"0.7522603",
"0.7522603",
"0.7515719",
"0.74943185",
"0.7454944",
"0.73884916",
"0.7379938",
"0.73278433",
"0.7311224",
"0.7255658",
"0.7241787",
"0.7241787",
"0.72036445",
"0.72032195",
"0.71645194",
"0.71443665",
"0.7135383",
"0.7133882",
"0.7130172",
"0.710232",
"0.7098148",
"0.70955205",
"0.7056985",
"0.70557845",
"0.70428634",
"0.70203394",
"0.7006517",
"0.6987227",
"0.69788456",
"0.69585496",
"0.6945761",
"0.69378483",
"0.6937766",
"0.6936713",
"0.69355154",
"0.693473",
"0.6920608",
"0.69164866",
"0.69110626",
"0.69029266",
"0.6882545",
"0.68820757",
"0.6878521",
"0.6876153",
"0.6868305",
"0.6867839",
"0.68542224",
"0.6852286",
"0.6847034",
"0.6847034",
"0.6847034",
"0.6847034",
"0.68453526",
"0.6820778",
"0.68090177",
"0.6804756",
"0.6791837",
"0.6786846",
"0.678092",
"0.678092",
"0.678092",
"0.67671084",
"0.67611986",
"0.6760666",
"0.6752388",
"0.6752388",
"0.6752388",
"0.6751708",
"0.67316973",
"0.6721157",
"0.67204195",
"0.6719027",
"0.6716295",
"0.6713228",
"0.6706609",
"0.67001903",
"0.6699138",
"0.66909236",
"0.668607",
"0.6680299",
"0.6670214",
"0.66660905"
] |
0.0
|
-1
|
Inserts a value to the set. Returns true if the set did not already contain the specified element.
|
public boolean insert(int val) {
if(map.containsKey(val))
{
map.get(val).add(list.size());
list.add(val);
return false;
}else{
map.put(val, new HashSet<Integer>());
map.get(val).add(list.size());
list.add(val);
return true;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean insert(int val) {\r\n return set.add(val);\r\n }",
"public boolean insert(int val) {\n if (!set.contains(val)) {\n set.add(val);\n return true;\n } else return false;\n }",
"public boolean insert(int val) {\n if (set.containsKey(val)) return false;\n set.put(val, set.size());\n list.add(val);\n return true;\n }",
"public boolean insert(int val) {\n if (realSet.contains(val)) return false;\n if (size == allSet.length) {\n Integer[] tmpSet = new Integer[size * 2];\n int not = 0;\n for (int i = 0; i < size; i ++) {\n if (allSet[i] == null) {\n not ++;\n continue;\n }\n tmpSet[i - not] = allSet[i];\n }\n size -= not;\n allSet = tmpSet;\n }\n realSet.add(val);\n allSet[size] = val;\n size ++;\n return true;\n\n }",
"public boolean add(E element){\n Object result = map.put(element, \"\");\n return (result == null);\n }",
"public boolean insert(int val) {\n boolean res=!map.containsKey(val);\n if(res)\n map.put(val,new HashSet());\n map.get(val).add(li.size());\n li.add(val);\n return res;\n }",
"public /*@ non_null @*/ JMLObjectSet<E> insert(E elem)\n throws IllegalStateException\n {\n if (has(elem)) {\n return this;\n } else if (size < Integer.MAX_VALUE) {\n return fast_insert(elem); \n } else {\n throw new IllegalStateException(\"Cannot insert into a set \"\n +\"with Integer.MAX_VALUE elements\");\n }\n }",
"@Override\n public boolean add(X x) {\n if (!allowElementsWithoutIdentification)\n throw new IllegalArgumentException(\"It is not allowed to put Elements without Identification in this Set\");\n\n return map.put(x, placeholder) == null;\n }",
"public boolean insert(int val) {\n boolean contain = _map.containsKey(val);\n if ( contain ) return false;\n _map.put( val, _list.size());\n _list.add(val);\n return true;\n }",
"public boolean insert(int val) {\n if (!map.containsKey(val)) {\n map.put(val, lst.size());\n lst.add(val);\n return true;\n }\n return false;\n }",
"public boolean insert(int val) {\n boolean contains = map.containsKey(val);\n if (contains) return false;\n map.put(val, nums.size()); // insert O(1) in map(with no collision) (linkedlist)\n nums.add(val); // linkedlist add one element in the end, O(1)\n return true;\n }",
"@Override\n\tpublic boolean insert(E e) {\n\t\treturn add(e);\n\t}",
"public boolean insert(int val) {\n if(map.containsKey(val)) return false;\n map.put(val, list.size());\n list.add(val);\n return true;\n }",
"public boolean insert(int val) {\n if (!map.containsKey(val)) {\n map.put(val, new HashSet<>());\n }\n map.get(val).add(size);\n list.add(val);\n size++;\n return map.get(val).size() == 1;\n }",
"public boolean insert(int val) {\n if(!map.containsKey(val)){\n if(validLength == set.size()){\n set.add(val);\n map.put(val, validLength++);\n }\n else{\n map.put(val, validLength);\n set.set(validLength++, val);\n }\n return true;\n }\n else{\n return false;\n }\n }",
"public boolean insert(T value){\n\t\treturn insert(root, value);\n\t}",
"public boolean insert(int val) {\n if (map.containsKey(val)) {\n return false;\n }\n map.put(val, val);\n return true;\n }",
"public boolean insert(int val) {\n if (m.containsKey(val)) {\n return false;\n } else {\n l.add(val);\n m.put(val, l.size()-1);\n return true;\n }\n }",
"@Override\n public boolean add(T value) {\n if (!this.validate(this.cursor)) {\n this.ensureCapacity();\n }\n this.values[this.cursor++] = value;\n return this.values[this.cursor - 1].equals(value);\n }",
"public boolean add(Object element);",
"public boolean insert(int val) {\n if (valToIndex.containsKey(val)) {\n return false;\n }\n \n valToIndex.put(val, A.size());\n A.add(val);\n return true;\n }",
"@Override\n public boolean addItem(T item) {\n //Make sure the Set does not already contain the item\n if(!this.contains(item)) {\n //Make sure there is enough room for the item. If there isn't\n //resize the array\n if(numItems == arr.length)\n this.ensureCap();\n //Add the item to the end and increment numItems\n arr[numItems++] = item;\n //return true\n return true;\n }\n //if item was already in set, return false\n return false;\n }",
"public final <T> boolean insert(final Class<T> key, T value) {\n\n if(contains(key))\n return false;\n\n _data.put(key, value);\n return true;\n }",
"public boolean insert(K key, V value) {\n boolean isInserted = false;\n\n if (key != null) {\n if ((double) amountOfEntries / container.length > loadFactor) {\n extendContainer();\n }\n int index = indexFor(key);\n Entry<K, V> entry = container[index];\n if (entry == null) {\n //add new\n Entry newEntry = new Entry(key, value);\n container[index] = newEntry;\n amountOfEntries++;\n } else if (entry.key.equals(key)) {\n //update\n entry.value = value;\n }\n }\n return isInserted;\n }",
"public boolean insert(int val) {\n if (location.containsKey(val)) {\n return false;\n }\n\n nums.add(val);\n location.put(val, nums.size() - 1);\n return true;\n }",
"public boolean insert(int val) {\n boolean ret = !map.containsKey(val);\n ArrayList<Integer> l = map.computeIfAbsent(val, k -> new ArrayList<>());\n l.add(arr.size());\n arr.add(new int[]{val, l.size()-1}); \n return ret;\n }",
"public boolean add(Object value)\r\n {\r\n if (contains(value))\r\n return false;\r\n root = add(root, value);\r\n return true;\r\n }",
"public boolean insert(T value) {\n if (value == null)\n return false;\n\n int prevSize = size;//record starting size\n\n root = insert( value, root );//helper method called\n\n return prevSize != size;//return true if size changed\n }",
"public boolean insert(int val) {\n nums.add(val); //在列表末尾添加的元素 O(1)\n Set<Integer> set = idx.getOrDefault(val, new HashSet<Integer>());\n set.add(nums.size()-1);\n idx.put(val,set);\n return set.size()==1;\n }",
"public boolean insert(int val) {\n\n return list.add(val);\n }",
"public boolean insert(int val) {\n boolean inserted = !valueToIdx.containsKey(val);\n if ( inserted ) {\n int nextIdx = valueList.size();\n valueToIdx.put(val,nextIdx);\n valueList.add(val);\n }\n\n return inserted;\n }",
"public boolean insert(int val) {\n if(hm.containsKey(val)){\n return false;\n }\n else{\n sub.add(val);\n hm.put(val,sub.size()-1);\n return true;\n }\n\n\n\n }",
"public boolean insert(int val) {\n if(! valToIndex.containsKey(val)){\n // add element to list\n elementsList.add(val);\n // add val + index to map\n valToIndex.put(val, elementsList.size()-1);\n return true;\n }\n\n return false;\n }",
"public boolean insert(int val) {\n if (lookup.containsKey(val)) return false;\n\n nums[size] = val;\n lookup.put(val, size);\n size++;\n\n return true;\n }",
"boolean add(T element);",
"boolean add(T element);",
"public boolean add(T val) {\n Integer idx = hmap.get(val);\n if (idx == null) {\n int i = list.size();\n list.add(val);\n idx = new Integer(i);\n hmap.put(val, idx);\n return true;\n }\n return false;\n }",
"public boolean insert(int val) {\r\n\r\n\t\tint pos = get_pos(val);\r\n\t\tif (bucket[pos] != null) {\r\n\t\t\tNode n = bucket[pos].list;\r\n\t\t\tNode p = n;\r\n\t\t\twhile (n != null) {\r\n\t\t\t\tif (n.val == val)\r\n\t\t\t\t\treturn false;\r\n\t\t\t\tp = n;\r\n\t\t\t\tn = n.next;\r\n\t\t\t}\r\n\t\t\tp.next = new Node(val);\r\n\t\t} else {\r\n\t\t\tbucket[pos] = new BucketItem();\r\n\t\t\tbucket[pos].list = new Node(val);\r\n\t\t}\r\n\t\tbucket[pos].size++;\r\n\t\treturn true;\r\n\t}",
"public boolean insert(int val) {\n boolean alreadyExist = num2Index.containsKey(val);\n num2Index.putIfAbsent(val, new LinkedHashSet<>());\n num2Index.get(val).add(nums.size());\n nums.add(val);\n \n return !alreadyExist;\n }",
"@Override\n public boolean add(E value) {\n final AVLTreeNode<E> insert = insert(value);\n if(insert != null && insert != tree.getHead()){\n tree.setHead(insert);\n }\n return insert != null;\n }",
"private static void addValue(ISet set, Scanner in)\n {\n boolean contained;\n int val;\n if (set.getSize() == ISet.MAX_SIZE)\n {\n System.out.println(\"Set is already full!\");\n return;\n }\n do {\n System.out.println(\"What value to add to set?\");\n val = Integer.parseInt(in.nextLine());\n contained = set.contains(val);\n if (contained)\n System.out.println(\"That value is already in the set\");\n } while (contained);\n set.add(val);\n }",
"public boolean insert(int val) {\n \n if (!this.numToIdx.containsKey(val)) {\n \n this.numToIdx.put(val, new LinkedHashSet<Integer>());\n }\n \n this.nums.add(val);\n this.numToIdx.get(val).add(this.nums.size() - 1);\n \n return this.numToIdx.get(val).size() == 1;\n \n }",
"public boolean insert(int val) {\n if (checkDups.containsKey(val)) {\n return false;\n }\n if (this.list.size() == this.size) {\n this.list.add(val);\n } else {\n this.list.set(this.size, val);\n }\n checkDups.put(val, this.size);\n this.size++;\n return true;\n \n }",
"@Override\n public boolean addItem(T item) {\n //Make sure the item is not already in the set\n if(!this.contains(item)){\n //create a new node with the item, and the current first node\n Node n = new Node(item, first);\n //update first node reference\n first = n;\n //increment numItems\n numItems++;\n return true;\n }\n //if item is already in the set return false\n return false;\n }",
"public boolean insert(int val) {\n if(!valueIndex.containsKey(val)){\n valueIndex.put(val,data.size());\n data.add(val);\n return true;\n }\n return false;\n }",
"public boolean insert(Integer key, String value) {\n\t\treturn root.insert(key, value);\n\t}",
"public boolean add(T element) {\n if (this.position >= this.container.length) {\n this.enlargeCapacity();\n }\n this.container[this.position++] = element;\n return true;\n }",
"boolean insert(E e);",
"public boolean insert(int val) {\r\n return insert(val, true);\r\n }",
"public void insert(E element) {\n // TODO: YOUR CODE HERE\n if (contains(element)) {\n throw new IllegalArgumentException();\n } else {\n setElement(size() + 1, element);\n size += 1;\n bubbleUp(size());\n }\n }",
"public boolean insert( AnyType x )\n { \n int currentPos = findPos( x );\n \n if( array[ currentPos ] == null )\n ++occupied;\n array[ currentPos ] = new HashEntry<>(x);\n \n theSize++;\n \n // Rehash\n if( occupied > array.length / 2 )\n rehash( );\n \n return true;\n }",
"@Override\n public boolean insert(T val) {\n List<Node> path = new ArrayList<>();\n boolean[] wasInserted = new boolean[1];\n root = insertRec(val, root, path, wasInserted);\n splay(path.get(0), path.subList(1, path.size()));\n\n if (wasInserted[0]) {\n ++this.size;\n return true;\n }\n return false;\n }",
"public boolean insert(int val) {\n if(map.containsKey(val)){\n map.get(val).add(nums.size());\n nums.add(val);\n return false;\n }\n map.put(val,new ArrayList<>());\n map.get(val).add(nums.size());\n nums.add(val);\n return true;\n }",
"public void insert(ValueType element) {\r\n // TODO\r\n }",
"public boolean add( T element )\n {\n // THIS IS AN APPEND TO THE LOGICAL END OF THE ARRAY AT INDEX count\n if (size() == theArray.length) upSize(); // DOUBLES PHYSICAL CAPACITY\n theArray[ count++] = element; // ADD IS THE \"setter\"\n return true; // success. it was added\n }",
"@Override\r\n\tpublic boolean contains(T element) {\n\t\treturn false;\r\n\t}",
"@Test\n\tpublic void testRepeatedInsert() {\n\t\tSetADT<String> items = new JavaSet<>();\n\t\titems.insert(\"A\");\n\t\titems.insert(\"B\");\n\t\titems.insert(\"C\");\n\t\titems.insert(\"C\");\n\t\t\n\t\t// No matter what, \"C\" can't be added twice.\n\t\titems.insert(\"C\");\n\t\tassertEquals(3, items.size());\n\t\t\n\t\t//double checking - same as for loop\n\t\titems.insert(\"C\");\n\t\tassertEquals(3, items.size());\n\t\t\n\t\tassertEquals(3, items.size());\n\t\tassertEquals(true, items.contains(\"A\"));\n\t\tassertEquals(true, items.contains(\"B\"));\n\t\tassertEquals(true, items.contains(\"C\"));\n\t\t\n\t}",
"private boolean addElement(E value) {\n if (value.equals(this.value)) {\n return false;\n }\n\n if (((Comparable)value).compareTo(this.value) < 0) {\n if (this.leftChild != null) {\n if (!this.leftChild.addElement(value)) {\n return false;\n }\n this.leftChild = this.leftChild.balance();\n } else {\n this.leftChild = new Node(value, null, null, 1);\n }\n } else {\n if (this.rightChild != null) {\n if (!this.rightChild.addElement(value)) {\n return false;\n }\n this.rightChild = this.rightChild.balance();\n } else {\n this.rightChild = new Node(value, null, null, 1);\n }\n }\n return true;\n }",
"public void putIfAbsent(T item) {\n synchronized(this) {\n _treeSet.add(item);\n }\n }",
"public boolean insert(int val) {\n if (val2Index.containsKey(val)) return false;\n // 新元素插入到最后\n data.add(val);\n val2Index.put(val, data.size() - 1);\n return true;\n }",
"public boolean insert(int val) {\n if (valueToIndex.containsKey(val)) return false;\n //将元素放入arraylist,并将val和index的映射放入map\n values.add(val);\n valueToIndex.put(val, values.size() - 1);\n return true;\n }",
"public boolean add(Element element) {\n if (addNoNotify(element)) {\n setChanged();\n Message message = Message.makeAdded(element);\n notifyObservers(message);\n return true;\n } else {\n return false;\n }\n\n }",
"@SuppressWarnings(\"unchecked\")\n public boolean insert(String key, Object value) {\n if (key == null) {\n LOGGER.warning(\"Tried to use a null key on insert()\");\n return false;\n }\n\n // actual insert\n mJSONObject.put(key, value);\n\n return true;\n }",
"public boolean add(T value) {\n NodePair<T> spl = split(root, value);\n\n if (spl.second != null && getLeft(spl.second).value.compareTo(value) == 0) {\n root = merge(spl.first, spl.second);\n return false;\n }\n\n root = merge(spl.first, merge(makeNode(value), spl.second));\n return true;\n }",
"public void insert(T element);",
"public boolean add( String key, T value )\r\n {\r\n HashMap<String,T> top = tables.peekFirst();\r\n T result = top.get( key );\r\n top.put( key, value );\r\n return result==null;\r\n }",
"@Override\n public boolean contains(T item) {\n Node n = first;\n //walk through the linked list untill you reach the end\n while(n != null) {\n //see if the item exists in the set, if it does return true\n if(n.value.equals(item))\n return true;\n //move to the next node\n n = n.next;\n }\n //if not found return false\n return false;\n }",
"@Override\n public boolean add(int value) {\n Entry newElement = new Entry(value);\n if (size == 0) {\n first = newElement;\n last = newElement;\n } else {\n last.next = newElement;\n newElement.previous = last;\n last = newElement;\n }\n size++;\n return true;\n }",
"public boolean add(Object x)\n {\n if (loadFactor() > 1)\n {\n resize(nearestPrime(2 * buckets.length - 1));\n }\n\n int h = x.hashCode();\n h = h % buckets.length;\n if (h < 0) { h = -h; }\n\n Node current = buckets[h];\n while (current != null)\n {\n if (current.data.equals(x))\n {\n return false; // Already in the set\n }\n current = current.next;\n }\n Node newNode = new Node();\n newNode.data = x;\n newNode.next = buckets[h];\n buckets[h] = newNode;\n currentSize++;\n return true;\n }",
"@Override\r\n\t\tpublic boolean contains(E value) {\n\t\t\tsynchronized (mutex) {\r\n\t\t\t\treturn pair.contains(value);\r\n\t\t\t}\r\n\t\t}",
"public boolean contains(E value);",
"@Override\n public final boolean add(final Integer element) {\n // First, check to see that the array can support another element\n ensureCapacity(size);\n // Add the element to the next available slot\n arrayList[size++] = element;\n return true;\n }",
"public Boolean add(int value) {\n\t\t\n\t\tfor (Integer elem : elemList) {\n\t\t\tif (elem == value)\n\t\t\t\treturn false;\n\t\t}\n\t\tthis.elemList.add(value);\n\t\treturn true;\n\t}",
"public boolean push(T x) throws NullPointerException\n\t{\n\t\tcheckNull(x);\n\t\treturn list.add(0, x);\n\t}",
"public boolean addEntry(String element, String path, int position) {\n\t\tinvertedIndex.putIfAbsent(element, new TreeMap<String, TreeSet<Integer>>());\n\t\tinvertedIndex.get(element).putIfAbsent(path, new TreeSet<Integer>());\n\t\tboolean added = this.invertedIndex.get(element).get(path).add(position);\n\t\tthis.counts.putIfAbsent(path, position);\n\n\t\tif (position > counts.get(path)) {\n\t\t\tthis.counts.put(path, position);\n\t\t}\n\t\treturn added;\n\t}",
"public boolean contains(E element);",
"@Override\n\tpublic boolean add(T element) {\n\t\titemProbs_.put(element, 1d);\n\t\telementArray_ = null;\n\t\tklSize_ = 0;\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}",
"@Override\n public boolean insert(T o) {\n // Makes sure only the same Object in in the Array\n/*\n if(type == null){\n type = o.getClass();\n }\n if(type != o.getClass()) return false;\n*/\n\n if(o == null) return false;\n if(contains(o)) return false;\n int hcode = hash(o);\n hcode %= array.length;\n array[hcode].add(o);\n return true;\n }",
"public boolean add(E key)\r\n {\r\n if(this.contains(key))\r\n {\r\n return false;\r\n }\r\n\r\n else\r\n {\r\n super.add(key);\r\n }\r\n return true;\r\n }",
"public boolean insert(K key, V value)\r\n\t{\r\n\t\tint size = SIZES[sizeIdx];\r\n\t\tint i;\r\n\t\tnumProbes = 0;\r\n\r\n\t\t// Make sure we haven't filled 70% or more of the entries\r\n\t\tif (numFilledSlots >= 0.7 * size)\r\n\t\t{\r\n\t\t\t// If we're running out of space, increase the size of our table\r\n\t\t\tincreaseCapacity();\r\n\t\t\tsize = SIZES[sizeIdx];\r\n\t\t}\r\n\r\n\t\t// Probe no more iterations than the size of the table\r\n\t\tfor (i = 0; i < size; ++i)\r\n\t\t{\r\n\t\t\t// Compute the next index in the probe sequence\r\n\t\t\tint index = probe(key, i, size);\r\n\r\n\t\t\t// If the current slot doesn't contain a value\r\n\t\t\tif (table[index] == null || table[index].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Store the given value at the current slot\r\n\t\t\t\ttable[index] = new HashEntry<K, V>(key, value);\r\n\t\t\t\t++numEntries;\r\n\t\t\t\t++numFilledSlots;\r\n\t\t\t\tnumProbes = i;\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t\t// If the current slot has a value with the same key as the key we\r\n\t\t\t// are inserting with\r\n\t\t\telse if (table[index].key.equals(key) && !table[index].isTombstone)\r\n\t\t\t{\r\n\t\t\t\t// Add the given value to the current slot\r\n\t\t\t\ttable[index].value.add(value);\r\n\t\t\t\t++numEntries;\r\n\t\t\t\tnumProbes = i;\r\n\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Compute the number of probes if probing failed\r\n\t\tnumProbes = i - 1;\r\n\r\n\t\t// The value wasn't inserted because we couldn't find a place to insert\r\n\t\t// it\r\n\t\treturn false;\r\n\t}",
"public boolean add(ElementType element){\n if(this.contains(element)){\n return false;\n }\n else{\n if(size==capacity){\n reallocate();\n }\n elements[size]=element;\n size++;\n }\n return true;\n }",
"@Override\n public int insert(E value) {\n //noinspection DuplicateStringLiteralInspection\n log.trace(\"Adding '\" + value + \"' to pool '\" + poolName + \"'\");\n int insertPos = Collections.binarySearch(this, value, this);\n if (insertPos >= 0) {\n log.trace(\"Value '\" + value + \"' already exists in pool '\" + poolName + \"'\");\n return -1 * insertPos - 1;\n }\n insertPos = -1 * (insertPos + 1);\n add(insertPos, value); // Positive position\n return insertPos;\n }",
"@Override\r\n\t\tpublic boolean contains(E value) {\n\t\t\treturn value == null;\r\n\t\t}",
"public abstract boolean addDataTo(Element element);",
"public boolean add(X x, Identification identification) {\n return map.put(x, identification) == null;\n }",
"public boolean contains(T element);",
"@Test\r\n public void addWorks() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n assertTrue(s.add(1));\r\n assertTrue(s.contains(1));\r\n assertFalse(s.add(1));\r\n }",
"public static <E> boolean addNotNull(Collection<E> collection, E element) {\n\t\tif (element == null) {\n\t\t\treturn false;\n\t\t}\n\t\treturn collection.add(element);\n\t}",
"public boolean add(String element) {\n if (element == null) {\n throw new IllegalArgumentException(\"Null string!\");\n }\n\n Node addNode = getNodeByString(element, true);\n\n if (addNode.isTerminal()) {\n return false;\n }\n\n addNode.setTerminal(true);\n\n return true;\n }",
"@Override\r\n\tpublic boolean insert(Account account) {\n\t\tint i= iInsert.insert(account);\r\n\t\tif(1==i){\r\n\t\t\tflag=true;\r\n\t\t}\r\n\t\treturn flag;\r\n\t}",
"public boolean add(T x) throws NullPointerException\n\t{\n\t\treturn push(x);\n\t}",
"@Test\r\n public void testHashSetInsert()\r\n {\r\n Square s0 = new Square(1, -1),\r\n s1 = new Square(1, -1);\r\n HashSet<Square> hs = new HashSet<>();\r\n hs.add(s0);\r\n assertEquals(1, hs.size());\r\n hs.add(s1);\r\n assertEquals(1, hs.size());\r\n assertTrue(hs.contains(s0));\r\n assertTrue(hs.contains(s1));\r\n }",
"@Override\n public void add(Integer element) {\n if (this.contains(element) != -1) {\n return;\n }\n // when already in use\n int index = this.getIndex(element);\n if(this.data[index] != null && this.data[index] != this.thumbstone){\n int i = index + 1;\n boolean foundFreePlace = false;\n while(!foundFreePlace && i != index){\n if(this.data[i] == null && this.data[i] == this.thumbstone){\n foundFreePlace = true;\n }else{\n if(i == this.data.length - 1){\n // start at beginning.\n i = 0;\n }else{\n i++;\n }\n }\n }\n if(foundFreePlace){\n this.data[i] = element;\n }else{\n throw new IllegalStateException(\"Data Structre Full\");\n }\n }\n }",
"public boolean add(String newValue) {\n if (!collection.contains(newValue) && collection.add(newValue)) {\n return true;\n }\n return false;\n }",
"@Override\n public boolean add(T e) {\n if (elements.add(e)) {\n ordered.add(e);\n return true;\n } else {\n return false;\n }\n }",
"public boolean add(E x) {\n\t\taddLast(x);\n\t\treturn true;\n\t}",
"public boolean elementOf(int value){\n for(int element = 0; element < set.length; element++){\n if(set[element] == value)\n return true; \n }\n return false;\n }",
"public void insertElement(int element) {\n // if within min and max and doesnt haveElement then add the int\n if (element < MAXSETVALUE && element > MINSETVALUE && hasElement(element) != true && get != null) {\n // replacement array\n int[] arr = new int[get.length + 1];\n // copying values up to last\n for (int j = 0; j < get.length; j++)\n arr[j] = get[j];\n // inserts element\n arr[get.length] = element;\n get = arr;\n // avoiding errors\n } else if (get == null) {\n get = new int[1];\n get[0] = element;\n }\n\n }",
"@Override\n public boolean add(final T element) {\n if (this.size > this.data.length - 1) {\n this.doubleArraySizeBy(2);\n }\n\n this.data[this.size++] = element;\n return true;\n }"
] |
[
"0.74475455",
"0.7444871",
"0.71580637",
"0.688099",
"0.6789673",
"0.67116463",
"0.6638302",
"0.65900064",
"0.65252864",
"0.651785",
"0.64790654",
"0.6460319",
"0.6430236",
"0.64193773",
"0.6408459",
"0.64027035",
"0.63861066",
"0.63428944",
"0.63350683",
"0.63322675",
"0.63056725",
"0.62939066",
"0.62884784",
"0.6266889",
"0.62363124",
"0.62344825",
"0.6227097",
"0.62143606",
"0.61681366",
"0.6156831",
"0.6155164",
"0.61371404",
"0.60890937",
"0.6088361",
"0.60744244",
"0.60744244",
"0.6068695",
"0.6050316",
"0.60481745",
"0.6022794",
"0.60201454",
"0.6018164",
"0.60104406",
"0.60078657",
"0.60036176",
"0.5993441",
"0.5968674",
"0.59661746",
"0.59537673",
"0.5918978",
"0.59176993",
"0.59102684",
"0.5894923",
"0.5890329",
"0.58857214",
"0.5882173",
"0.5849448",
"0.5837429",
"0.5827976",
"0.5813934",
"0.5812951",
"0.5788499",
"0.57728547",
"0.5743065",
"0.5731304",
"0.57204217",
"0.5707855",
"0.57034487",
"0.5702272",
"0.5687555",
"0.56863844",
"0.56795144",
"0.56664073",
"0.56457186",
"0.564073",
"0.5637371",
"0.56369305",
"0.56336546",
"0.56291866",
"0.56210554",
"0.56148535",
"0.5608849",
"0.56036794",
"0.5571682",
"0.5558686",
"0.5558103",
"0.55568486",
"0.5544813",
"0.55408454",
"0.55349535",
"0.5527879",
"0.55207753",
"0.5509767",
"0.5508283",
"0.5506512",
"0.5505983",
"0.5502036",
"0.5498164",
"0.5494537",
"0.54813385"
] |
0.6202086
|
28
|
Removes a value from the set. Returns true if the set contained the specified element.
|
public boolean remove(int val) {
if(map.containsKey(val)){
if(map.get(val).size() == 1){
int last = list.get(list.size()-1);
int mvindex = map.get(val).iterator().next();
map.get(last).remove(list.size()-1);
map.get(last).add(mvindex);
list.set(mvindex,list.get(list.size()-1));
list.remove(list.size()-1);
map.remove(val);
}else {
int last = list.get(list.size()-1);
int mvindex = map.get(val).iterator().next();
map.get(last).remove(list.size()-1);
map.get(last).add(mvindex);
list.set(mvindex, list.get(list.size()-1));
list.remove(list.size()-1);
if(last != val)
map.get(val).remove(mvindex);
}
return true;
}else {
return false;
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean remove(int val) {\n if (set.contains(val)) {\n set.remove(val);\n return true;\n } else return false;\n }",
"public boolean remove(int val) {\r\n return set.remove(val);\r\n }",
"public boolean remove(Object value)\r\n {\r\n if (!contains(value))\r\n return false;\r\n root = remove(root, value);\r\n return true;\r\n }",
"@Override\r\n\tpublic boolean remove(Object o) {\n\t\treturn set.remove(o);\r\n\t}",
"public boolean remove(E element){\n // TO BE IMPLEMENTED\n Object result = map.remove(element);\n if(result != null){\n return true;\n }else{\n return false;\n } \n }",
"public boolean remove(E item) {\n \tif(item == null) {\n \t\tthrow new IllegalArgumentException(\"Invalid parameter!\");\n \t}\n \t\n \tIterator<E> iterateSet = this.iterator();\n \tboolean foundMatch = false;\n \t\n \twhile(iterateSet.hasNext()) {\n \t\tE element = iterateSet.next();\n \t\t// removes all occurrences of a target element\n \t\tif(element.equals(item)) {\n \t\t\titerateSet.remove();\n \t\t\tfoundMatch = true;\n \t\t}\t\n \t}\n \t\n \treturn foundMatch;\n }",
"public boolean remove(int val) {\n if (!set.containsKey(val)) return false;\n int lastElement = list.get(list.size() - 1);\n int idx = set.get(val);\n list.set(idx, lastElement);\n set.put(lastElement, idx);\n list.remove(list.size() - 1);\n set.remove(val);\n return true;\n }",
"boolean remove(T element);",
"@Override\r\n\tpublic boolean remove(T element) {\n\t\treturn this._list.remove(element);\r\n\t}",
"@Override\n public boolean remove(T item) {\n //find the node with the value\n Node n = getRefTo(item);\n //make sure it actually is in the set\n if(n == null)\n return false;\n //reassign the value from the first node to the removed node\n n.value = first.value;\n //take out the first node\n remove();\n return true;\n }",
"public boolean remove(int val) {\n if (!realSet.contains(val)) return false;\n if (realSet.size() > 10 && realSet.size() == allSet.length / 4) {\n Integer[] tmpSet = new Integer[size * 2];\n int not = 0;\n for (int i = 0; i < size; i ++) {\n if (allSet[i] == null) {\n not ++;\n continue;\n }\n tmpSet[i - not] = allSet[i];\n }\n size -= not;\n allSet = tmpSet;\n }\n realSet.remove(val);\n return true;\n }",
"@Override\n public boolean remove(final Object element) {\n for (int i = 0; i < size; i++) {\n if (this.checkIfEqual(element, i)) {\n this.shiftRemove(i);\n return true;\n }\n }\n\n return false;\n }",
"public boolean remove(T value) {\n checkForNull(value);\n\n if (!childrenValueSet.contains(value)) {\n return false;\n }\n\n childrenValueSet.remove(value);\n\n Iterator<Tree<T>> iterator = children.iterator();\n while (iterator.hasNext()) {\n if (value.equals(iterator.next().getValue())) {\n iterator.remove();\n incModificationCount();\n\n return true;\n }\n }\n\n return false;\n }",
"public boolean remove(String key, V value) {\n Collection<V> values = map.get(key);\n\n if (values != null) {\n return values.remove(value);\n }\n\n return false;\n }",
"@Override\n\tpublic boolean remove(Object value) {\n\t\tint index = indexOf(value);\n\n\t\tif (index == -1) {\n\t\t\treturn false;\n\t\t}\n\n\t\tremove(index);\n\t\treturn true;\n\t}",
"public boolean remove(Object element) {\n\n\t\tif (element == null) {\n\t\t\tthrow new IllegalArgumentException(\"ArrayList cannot contain null.\");\n\t\t}\n\t\tint index = -1;\n\t\tfor (int i = 0; i < this.size; i++) {\n\t\t\tObject object = this.storedObjects[i];\n\t\t\tif (object.equals(element)) {\n\t\t\t\tindex = i;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif (index == -1) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (int i = index + 1; i < this.size; i++) {\n\t\t\tthis.storedObjects[i - 1] = this.storedObjects[i];\n\t\t}\n\t\tthis.size--;\n\t\tthis.storedObjects[this.size] = null;\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean remove(Object value) {\n\t\ttry {\n\t\t\tremove(indexOf(value));\n\t\t}catch(IndexOutOfBoundsException e){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}",
"public boolean remove(U value) {\n\t\t\tNode<U> currNode = mHead;\n\n\t\t\tfor (int i = 0; i < mLength; ++i) {\n\t\t\t\tif (Objects.equals(currNode.getValue(), value)) {\n\t\t\t\t\tunlinkNode(currNode);\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\tcurrNode = currNode.getNext();\n\t\t\t}\n\n\t\t\treturn false;\n\t\t}",
"public boolean remove(int val) {\n if(map.containsKey(val)){\n int idx = map.get(val);\n if(idx == (validLength - 1)){\n validLength--;\n }\n else{\n int lastValue = set.get(--validLength);\n set.set(idx, lastValue);\n map.put(lastValue, idx);\n }\n map.remove(val);\n return true;\n }\n else{\n return false;\n }\n }",
"public boolean remove(int val) {\n if(!map.containsKey(val))\n return false;\n HashSet<Integer> st=map.get(val);\n if(st.size()==1)\n map.remove(val);\n Integer ind=0;\n for(Integer a:st){\n ind=a;\n break;\n }\n st.remove(ind);\n li.set(ind,li.get(li.size()-1));\n st=map.get(li.get(li.size()-1));\n if(st!=null){\n st.remove(new Integer(li.size()-1));\n st.add(ind);\n }\n li.remove(li.size()-1);\n \n return true;\n \n }",
"public boolean remove(BSTMapNode element) \n\t{\n\t\t\n\t\tif(element.getKey() == this.key)\n\t\t{\n\t\t\t\n\t\t\t\n\t\t\treturn true;\n\t\t\t\n\t\t}\n\t\telse if(element.getKey() < this.key)\n\t\t{\n\t\t\tif(this.left == null)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn this.left.contains(element);\n\t\t\t}\n\t\t}\n\t\telse\n\t\t{\n\t\t\tif(this.right == null)\n\t\t\t{\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\treturn this.right.contains(element);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"public boolean remove(E elem) {\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tif (indices.get(i).data == elem) {\r\n\t\t\t\tremoveAt(i);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"public boolean remove(Object value) {\n\t\treturn false;\n\t}",
"public boolean remove(IntSet remove){\n\t\tint index = contains(remove);\n\t\tif(index==-1){\n\t\t\treturn false;\n\t\t}\n\t\telse{\n\t\t\tcontents.remove(index);\n\t\t\treturn true;\n\t\t}\n\t}",
"public boolean remove(T element) {\n\t\tif (head == null)\n\t\t\treturn false;\n\t\tNode<T> curNode = head;\n\t\tif (curNode.value.equals(element)) {\n\t\t\thead = curNode.next;\n\t\t\tsize--;\n\t\t\treturn true;\n\t\t}\n\t\twhile (curNode.next != null) {\n\t\t\tif (curNode.next.value.equals(element)) {\n\t\t\t\tcurNode.next = curNode.next.next;\n\t\t\t\tsize--;\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\tcurNode = curNode.next;\n\t\t}\n\t\treturn false;\n\t}",
"@Override\n public boolean removeByValue(int value) {\n Entry tmp = first;\n for (int i = 0; i < size; i++) {\n if (tmp.value == value) {\n tmp.previous.next = tmp.next;\n tmp.next.previous = tmp.previous;\n size--;\n return true;\n }\n tmp = tmp.next;\n }\n return false;\n }",
"public boolean remove(E e){\n int target = e.hashCode() % this.buckets;\n return this.data[target].remove(e) == null;\n }",
"public boolean remove(int val) {\n if (!map.containsKey(val)) {\n return false;\n }\n int idx = map.remove(val);\n int last = lst.remove(lst.size() - 1);\n if (val != last) {\n lst.set(idx, last);\n map.put(last, idx);\n }\n return true;\n }",
"public boolean remove(int val) {\n if (!location.containsKey(val)) {\n return false;\n }\n int numSize = nums.size();\n int lastVal = nums.get(numSize - 1);\n int index = location.get(val);\n nums.set(index, lastVal);\n location.put(lastVal, index);\n nums.remove(numSize - 1); // O(1)\n location.remove(val);\n return true;\n }",
"public boolean remove(E item) {\n\t\tif (item == null)\n\t\t\tthrow new IllegalArgumentException(\"The given item is null.\");\n\t\tIterator<E> iterator = this.iterator();\n\t\twhile (iterator.hasNext()) {\n\t\t\tif (iterator.next().equals(item)) {\n\t\t\t\titerator.remove();\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse\n\t\t\t\titerator.next();\n\t\t}\n\t\treturn false;\n\t}",
"public boolean remove(int val) {\n boolean contain = _map.containsKey(val);\n if ( ! contain ) return false;\n int loc = _map.get(val);\n if (loc < _list.size() - 1 ) { // not the last one than swap the last one with this val\n int lastone = _list.get(_list.size() - 1 );\n _list.set( loc , lastone );\n _map.put(lastone, loc);\n }\n _map.remove(val);\n _list.remove(_list.size() - 1);\n return true;\n }",
"public boolean remove(int val) {\n if (!map.containsKey(val) || map.get(val).size() == 0) {\n return false;\n }\n Integer next = map.get(val).iterator().next();\n map.get(val).remove(next);\n int last = list.get(list.size()-1);\n list.set(next, last);\n map.get(last).add(next);\n map.get(last).remove(list.size()-1);\n\n list.remove(list.size()-1);\n size--;\n return true;\n }",
"public boolean remove(int val) {\n if (map.containsKey(val)) {\n map.remove(val);\n return true;\n }\n return false;\n }",
"public boolean removeBook(Book book) {\n \treturn set.remove(book);\n }",
"public final boolean remove(final Integer element) {\n final int index = linearSearch(element);\n if (index == -1) {\n return false;\n } else {\n for (int i = index; i < (size - 1); i++) {\n arrayList[i] = arrayList[i + 1];\n arrayList[i + 1] = 0;\n }\n size--;\n return true;\n\n }\n }",
"public boolean remove(T value) {\n int prevSize = size;\n root = remove( value, root );\n\n return prevSize != size;//return true if size changed\n\n }",
"@Override\n public boolean remove( K key,\n V value ) {\n ValueIterator values = new ValueIterator(key);\n while (values.hasNext()) {\n if (ObjectUtil.isEqualWithNulls(values.next(), value)) {\n values.remove();\n return true;\n }\n }\n return false;\n }",
"public boolean remove(int val) {\n return list.remove(val);\n }",
"public boolean remove(ElementType element){\n if(this.find(element)==-1){\n return false;\n }\n elements[this.find(element)]=elements[size-1];\n size--;\n return true;\n }",
"public boolean remove(int val) {\n if (values.containsKey(val)) {\n List<Integer> indices = values.get(val);\n int index = indices.get(indices.size() - 1);\n list.set(index, list.size() - 1);\n list.remove(list.size() - 1);\n values.get(val).remove(indices.size() - 1);\n if (values.get(val).size() == 0) {\n values.remove(val);\n }\n return true;\n } else {\n return false;\n }\n }",
"public boolean removeElement(Element element) {\n if (removeNoNotify(element)) {\n setChanged();\n Message message = Message.makeRemoved(element);\n notifyObservers(message);\n return true;\n } else {\n return false;\n }\n\n }",
"boolean remove(String elementId);",
"public boolean removeItem(int value) {\n if (root == null) {\n return false;\n } else {\n return remove(value, root, null);\n }\n }",
"public boolean Remove(TreeNode<T> element) {\n\t\treturn false;\n\t}",
"public boolean remove(E item){\n\t\treturn (delete(item) != null) ? true : false;\n\t}",
"public boolean remove(int val) {\n if (m.containsKey(val)) {\n if (l.size() > 1) {\n int idx = m.get(val);\n if (idx == l.size()-1) {\n m.remove(val);\n l.remove(idx);\n } else {\n m.remove(val);\n l.set(idx, l.get(l.size() - 1));\n l.remove(l.size() - 1);\n m.put(l.get(idx), idx);\n }\n } else {\n l.remove(0);\n m.remove(val);\n }\n return true;\n } else {\n return false;\n }\n }",
"public boolean remove(int val) {\n boolean contains = map.containsKey(val);\n if(!contains) return false;\n int pos = map.get(val);\n if (pos < nums.size() - 1) { // if not the last one, then swap the last one with this val\n int last = nums.get(nums.size() - 1); // arraylist get() O(1), basically a value in an array\n nums.set(pos, last); // set the element at \"pos\" position to be last element in the list , set like assign value in an array element\n map.put(last, pos); // put the last element in the list with the pos position\n }\n map.remove(val); // hashmap remove() It is O(1) only when removing the last element by index.\n // O(1); map remove(obj)\n //O(1+k/n) where k is the no. of collision elements\n // added to the same LinkedList (k elements had same hashCode)\n nums.remove(nums.size() - 1);\n return true;\n }",
"public boolean removeElement(Object obj);",
"public boolean remove(int val) {\n if (!valToIndex.containsKey(val)) {\n return false;\n }\n \n int lastIndex = A.size() - 1;\n int lastVal = A.get(lastIndex);\n \n A.set(valToIndex.get(val), lastVal);\n valToIndex.put(lastVal, valToIndex.get(val));\n A.remove(lastIndex);\n valToIndex.remove(val);\n return true;\n }",
"public /*@ non_null @*/ JMLObjectSet<E> remove(E elem) {\n if (!has(elem)) {\n return this;\n } else {\n //@ assume the_list != null;\n JMLListObjectNode<E> new_list = the_list.remove(elem);\n //@ assume (new_list == null) == (size == 1);\n return new JMLObjectSet<E>(new_list, size - 1);\n }\n }",
"public boolean remove(int val) {\r\n\r\n\t\tint pos = get_pos(val);\r\n\t\tif (bucket[pos] != null) {\r\n\t\t\tNode n = bucket[pos].list;\r\n\t\t\tNode p = n;\r\n\t\t\twhile (n != null) {\r\n\t\t\t\tif (n.val == val) {\r\n\t\t\t\t\tif (p == bucket[pos].list) {\r\n\t\t\t\t\t\tbucket[pos].list = n.next;\r\n\t\t\t\t\t\tbucket[pos].size--;\r\n\t\t\t\t\t\tif (bucket[pos].list == null)\r\n\t\t\t\t\t\t\tbucket[pos] = null;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tp.next = n.next;\r\n\t\t\t\t\t\tbucket[pos].size--;\r\n\t\t\t\t\t}\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\t\t\t\tp = n;\r\n\t\t\t\tn = n.next;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}",
"public boolean remove() {\n if (parent == null) {\n throw new RuntimeException(ROOT_REMOVING_EXCEPTION_MESSAGE);\n }\n\n return parent.remove(value); // increments modificationCount!\n }",
"public boolean remove(T anEntry);",
"public boolean remove(int val) {\n if(!map.containsKey(val)) return false;\n int index = map.get(val);\n int size = list.size();\n int tmp = list.get(size-1);\n list.set(size-1, list.get(index));\n list.set(index, tmp);\n list.remove(size-1);\n map.put(tmp, index);\n map.remove(val);\n return true;\n }",
"public boolean remove(int val) {\n if(!hm.containsKey(val)){\n return false;\n }\n else{//换位置,再删\n int val_index=hm.get(val);\n if(val_index<sub.size()-1){\n int lastElement=sub.get(sub.size()-1);\n sub.set(val_index,lastElement);\n hm.put(lastElement,val_index);\n }\n hm.remove(val);\n sub.remove(sub.size()-1);\n return true;\n }\n\n }",
"public boolean remove(int val) {\r\n boolean retval = false;\r\n int i = getIndex(val);\r\n Item item = items.get(i);\r\n if (item != null) {\r\n if (item.value == val) {\r\n removeItem(i, item);\r\n retval = true;\r\n } else {\r\n Node previous = null;\r\n Node next = item.next;\r\n while (next != null) {\r\n if (next.value == val) {\r\n break;\r\n }\r\n previous = next;\r\n next = next.next;\r\n }\r\n if (next != null) {\r\n assert (next.value == val);\r\n --item.count;\r\n if (previous == null) {\r\n item.next = next.next;\r\n } else {\r\n previous.next = next.next;\r\n }\r\n retval = true;\r\n }\r\n }\r\n }\r\n /*\r\n * if (retval) { if ((itemSize / nextIndexInCache) < 0.5) {\r\n * rehash(Math.max(itemSize, bufSize), items); } }\r\n */\r\n return retval;\r\n }",
"public boolean remove(T item) {\n\t\treturn list.remove(item);\n\t}",
"@Test\r\n\t\tpublic void testDeleteElement() {\n\t\t\ttestingSet= new IntegerSet(list1);\r\n\t\t\tInteger array[] = testingSet.toArray(); \r\n\t\t\ttestingSet.deleteElement(0);\r\n\t\t\t// check to see if the first element in the set still exists\r\n\t\t\t// should result to false \r\n\t\t\tassertEquals(testingSet.exists(array[0]), false); \r\n\t\t}",
"@Override\r\n\tpublic boolean contains(T element) {\n\t\treturn false;\r\n\t}",
"public boolean remove(AddressEntry addressEntry) {\n return entrySet.remove(addressEntry);\n }",
"public boolean remove(int elem)\r\n\t{\r\n\t\tElo p = null;\r\n\t\tp = busca(elem);\r\n\r\n\t\tif (p == null) return false;\r\n\r\n\t\t/* Retira primeiro elemento */\r\n\t\tif (p == prim) \r\n\t\t\tprim = prim.prox;\r\n\t\telse \r\n\t\t\t/* Retira elemento do meio */\r\n\t\t\tp.ant.prox = p.prox;\r\n\r\n\t\t/* Testa se é ultimo elemento */ \r\n\t\tif (p.prox != null)\r\n\t\t\tp.prox.ant = p.ant;\r\n\r\n\t\tp = null;\r\n\t\t\r\n\t\tthis.tamanho--;\r\n\r\n\t\treturn true;\r\n\t}",
"public boolean remove(int val) {\n if (!checkDups.containsKey(val)) {\n return false;\n }\n checkDups.put(this.list.get(this.size - 1), this.checkDups.get(val)); // important! update map\n swap(this.list, this.checkDups.get(val), this.size - 1);\n checkDups.remove(val);\n this.size--;\n return true;\n }",
"@Override\n public boolean contains(final Object element) {\n return this.lastIndexOf(element) != -1;\n }",
"public boolean remove(int val) {\n if(!map.containsKey(val)){\n return false;\n }\n //swap val to the last position\n int lastIndex = nums.size()-1;\n if(map.get(val).contains(lastIndex)){\n nums.remove(lastIndex);\n if(map.get(val).size()==1){\n map.remove(val);\n }else{\n int index = map.get(val).indexOf(lastIndex);\n map.get(val).remove(index);\n }\n }else{\n //swap last element into valid position\n int index = map.get(val).size()-1;\n nums.set(map.get(val).get(index),nums.get(lastIndex));\n map.get(nums.get(lastIndex)).add(map.get(val).get(index));\n if(map.get(val).size()==1){\n map.remove(val);\n }else{\n map.get(val).remove(index);\n }\n\n //delete the last element;\n index = map.get(nums.get(lastIndex)).indexOf(lastIndex);\n map.get(nums.get(lastIndex)).remove(index);\n nums.remove(lastIndex);\n\n }\n return true;\n }",
"@Override\n public boolean remove(Object item) {\n if (item == null)\n return false;\n Counter count = map.get(item);\n if (count == null)\n return false;\n count.decrement();\n if (count.isZero())\n map.remove(item);\n return true;\n }",
"public boolean remove(T element, Point2D pos);",
"public boolean remove(Object o) {\n\t\treturn map.remove(o) == PRESENT;\n\t}",
"public boolean removeEntry(Entry entry) {\n\t\t return entries.removeElement(entry);\n\t\t\n\t}",
"boolean remove(E e);",
"public boolean remove(int val) {\n //若当前val不在map中,无法remove,返回false\n if (!valueToIndex.containsKey(val)) return false;\n int index = valueToIndex.get(val);\n int lastValue = values.get(values.size() - 1);\n //将arraylist的最后一位元素移动到要删除val的index上\n values.set(index, lastValue);\n //更新最后一位元素的映射\n valueToIndex.put(lastValue, index);\n //将val移除出当前map(删除该元素)\n valueToIndex.remove(val);\n //同时将arraylist最后一位移除\n values.remove(values.size() - 1);\n return true;\n }",
"public boolean remove(E element)\r\n\t{\r\n\t\tBTNode<E> cursor = root;\r\n\t\tBTNode<E> parentOfCursor = null;\r\n\t\tboolean done = false;\r\n\r\n\t\twhile(cursor != null && !done)\r\n\t\t{\r\n\t\t\tif(element.equals(cursor.getData()))\r\n\t\t\t\tdone = true;\r\n\t\t\telse if(element.compareTo(cursor.getData()) <= 0)\r\n\t\t\t{\r\n\t\t\t\tparentOfCursor = cursor;\r\n\t\t\t\tcursor = cursor.getLeft();\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\tparentOfCursor = cursor;\r\n\t\t\t\tcursor = cursor.getRight();\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\tif(cursor == null)\r\n\t\t{\r\n\t\t\tdone = false;\r\n\t\t}\r\n\t\telse if(cursor.getLeft() == null && cursor == root)\r\n\t\t{\r\n\t\t\troot = root.getRight();\r\n\t\t\tnumItems--;\r\n\t\t}\r\n\t\telse if(cursor.getLeft() == null && cursor != root)\r\n\t\t{\r\n\t\t\tif(cursor == parentOfCursor.getLeft())\r\n\t\t\t{\r\n\t\t\t\tparentOfCursor.setLeft(cursor.getRight());\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t\tparentOfCursor.setRight(cursor.getRight());\r\n\t\t\tnumItems--;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tcursor.setData(cursor.getLeft().getRightMostData());\r\n\t\t\tcursor.setLeft(cursor.getLeft().removeRightMost());\r\n\t\t\tnumItems--;\r\n\t\t}\r\n\r\n\t\treturn done;\r\n\t}",
"public boolean contains(T element);",
"boolean remove(Object key, Object value);",
"public boolean delete(T t) {\n boolean found = false; // is element with value t found\n Object[] newElements = new Object[elements.length]; // creating new array with size of \"elements\"\n int index = 0; // stores current index\n\n for(int i = 0; i < size; i++){ // treat all elements\n if(!found && elements[i] == t){ // if we have not found element with value t and current element has this value\n found = true; // we have found such element\n }\n else{\n newElements[index] = elements[i]; // // copy elements in temporary array\n index++; // increment index\n }\n }\n elements = newElements; // move temporary array to main array \"elements\"\n size --; // decrement size\n return found; // return Is element with value t found?\n }",
"public boolean contains(E element);",
"public boolean elementOf(int value){\n for(int element = 0; element < set.length; element++){\n if(set[element] == value)\n return true; \n }\n return false;\n }",
"public boolean contains(E value);",
"public boolean delete(T element) {\n boolean isDelete = false;\n int index = this.getIndex(element);\n if (index != -1) {\n this.deleteElement(index);\n isDelete = true;\n }\n return isDelete;\n }",
"@Override\r\n\tpublic boolean contains(Object o) {\n\t\treturn set.contains(o);\r\n\t}",
"public boolean remove(int val) {\n if (!lookup.containsKey(val)) return false;\n\n int index = lookup.get(val);\n lookup.remove(val);\n size--;\n\n nums[index] = nums[size];\n nums[size] = 0;\n lookup.replace(nums[index], index);\n\n return true;\n }",
"public boolean contains(SeqItemset set)\n\t{\n\t\tif (m_size<set.m_size) return false;\n\t\tint ind = 0;\n\t\tint i = 0;\n\t\twhile ((i<set.m_size) && (-1!=ind))\n\t\t{\n\t\t\tind = indexOf(set.elementIdAt(i));\n\t\t\ti++;\n\t\t}\n\t\tif (-1==ind) return false;\n\t\telse return true;\n\t}",
"public boolean remove(E e) {\n if (!contains(e)) {\n return false;\n }\n int i = hash(e);\n if (table[i].data.equals(e)) {\n table[i] = table[i].next;\n } else {\n HashNode<E> current = table[i];\n while (!current.next.data.equals(e)) {\n current = current.next;\n }\n current.next = current.next.next;\n }\n size--;\n return true;\n }",
"public boolean remove(String element) {\n if (element == null) {\n throw new IllegalArgumentException(\"Null string!\");\n }\n\n Node removeNode = getNodeByString(element, false);\n\n if (removeNode == null) {\n return false;\n }\n\n if (!removeNode.isTerminal()) {\n return false;\n }\n\n removeNode.setTerminal(false);\n\n return true;\n }",
"public boolean remove(Object o) {\r\n return this.map.remove(o.hashCode()) != null;\r\n }",
"public <K> boolean remove(K key);",
"public boolean remove(K key);",
"public boolean remove(int val) {\n if (!idx.containsKey(val)){\n return false; //没有该值,删除失败\n }\n int lastNum = nums.get(nums.size() - 1);\n //交换要删除的元素和列表最末的元素\n if (val==lastNum){ //如果末尾元素就是的要删除的元素\n idx.get(val).remove(nums.size()-1);\n return true;\n }\n //如果末尾元素不是要删除的元素\n int lastIndex=idx.get(val).iterator().next(); //要删除的元素第一次出现的位置\n nums.set(lastIndex, lastNum); //最后一个元素到要删除的元素第一次出现的位置\n idx.get(val).remove(lastIndex);\n idx.get(lastNum).remove(nums.size()-1);\n if (lastIndex < nums.size() - 1) idx.get(lastNum).add(lastIndex);\n if (idx.get(val).size() == 0) { //删除之后,val出现的次数变为0\n idx.remove(val);\n }\n nums.remove(nums.size()-1); //删除末尾元素的时间复杂度为O(1)\n return true;\n }",
"@Override\n public boolean contains(T item) {\n Node n = first;\n //walk through the linked list untill you reach the end\n while(n != null) {\n //see if the item exists in the set, if it does return true\n if(n.value.equals(item))\n return true;\n //move to the next node\n n = n.next;\n }\n //if not found return false\n return false;\n }",
"public boolean remove(int val) {\n //这里讲要删除的元素交换到data的最后一个位置,实际上就是将最后一个元素值赋值到val位置,这样保证时间复杂度是O(1)\n if(valueIndex.containsKey(val)){\n //获取val位置\n int index=valueIndex.get(val);\n //val不是最后一个元素\n if(index!=data.size()-1){\n //获取最后一个元素\n int lastEle=data.get(data.size()-1);\n //将最后一个元素值赋值到val位置\n data.set(index,lastEle);\n valueIndex.put(lastEle,index);\n }\n //删除data中最后一个元素\n data.remove(data.size()-1);\n valueIndex.remove(val);\n return true;\n }\n return false;\n }",
"public boolean contains(E elem) {\n return indexOf(elem) != -1;\n }",
"public T remove (T element);",
"public boolean remove(int val) {\n if (!list.containsKey(val)) {\n return false;\n }\n\n int c = list.get(val);\n c--;\n if (c == 0) {\n list.remove(val);\n }\n\n linklist.removeFirstOccurrence(val);\n return true;\n }",
"public boolean contains(U value) {\n\t\t\treturn indexOf(value) != -1;\n\t\t}",
"public boolean contains(final int item) {\n for (int i = 0; i < size; i++) {\n if (set[i] == item) {\n return true;\n }\n }\n return false;\n }",
"boolean removeAll(Object key, Set values);",
"public void removePartOfSet( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.remove(this.model, this.getResource(), PARTOFSET, value);\r\n\t}",
"@Test\r\n public void removeAndContains() throws Exception {\r\n TreeSet<Integer> s = new TreeSet<>();\r\n s.addAll(sInt);\r\n s.remove(2);\r\n assertFalse(s.contains(2));\r\n }",
"@Override\n public boolean remove(Object o) {\n if (contains(o)) {\n root = root.removeElement(o);\n size--;\n return true;\n }\n return false;\n }",
"private static void removeValue(ISet set, Scanner in)\n {\n if (set.getSize() == 0)\n System.out.println(\"Can't remove from an empty set!\");\n else {\n int pos;\n boolean valid;\n do {\n System.out.println(\"What position should be removed from the set?\");\n pos = Integer.parseInt(in.nextLine());\n valid = (pos >= 0 && pos < set.getSize());\n if (!valid)\n System.out.println(\"That's not a valid position\");\n } while (!valid);\n set.removePos(pos);\n }\n }",
"@Override\n\tpublic boolean contains(Object value) {\n\t\tif(indexOf(value)!=-1)\n\t\t\treturn true;\n\t\treturn false;\n\t}"
] |
[
"0.73536336",
"0.7337537",
"0.68661743",
"0.68512434",
"0.68097264",
"0.67975914",
"0.67905724",
"0.66934174",
"0.6662184",
"0.6625957",
"0.6590175",
"0.65636146",
"0.6535152",
"0.6472745",
"0.6424232",
"0.6418782",
"0.6387345",
"0.63820505",
"0.6301452",
"0.62993807",
"0.62868553",
"0.62728834",
"0.62595534",
"0.6253182",
"0.6247495",
"0.62433654",
"0.62336516",
"0.62267816",
"0.6220063",
"0.6195406",
"0.61951345",
"0.61873263",
"0.61534697",
"0.6152802",
"0.61336267",
"0.61184",
"0.6109519",
"0.6077971",
"0.6060034",
"0.60445577",
"0.60342866",
"0.6014511",
"0.60092175",
"0.600715",
"0.60069185",
"0.6005318",
"0.6000281",
"0.59974587",
"0.59945583",
"0.5974031",
"0.59565437",
"0.59564",
"0.59483457",
"0.5936086",
"0.59126204",
"0.59125096",
"0.58932275",
"0.58910465",
"0.58849066",
"0.58777666",
"0.58499503",
"0.58435637",
"0.5839021",
"0.5814285",
"0.5809522",
"0.58079916",
"0.5807292",
"0.57943535",
"0.57936347",
"0.5788836",
"0.578465",
"0.5779005",
"0.5776136",
"0.57736075",
"0.5773136",
"0.57620686",
"0.5755285",
"0.5753336",
"0.57376534",
"0.5733291",
"0.5727258",
"0.56912863",
"0.5677654",
"0.56732",
"0.566911",
"0.56629145",
"0.5661522",
"0.5650287",
"0.5646547",
"0.5645622",
"0.5644932",
"0.5642321",
"0.5640505",
"0.56396055",
"0.56333745",
"0.56218755",
"0.56088454",
"0.5607761",
"0.55825156",
"0.5582032"
] |
0.5693285
|
81
|
Get a random element from the set.
|
public int getRandom() {
Random random = new Random();
int val = list.get( random.nextInt(list.size()));
return val;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getRandom() {\n int idx;\n Random rand;\n \n rand = new Random();\n idx = rand.nextInt(set.size());\n return set.get(idx);\n }",
"public int getRandom() {\r\n var list = new ArrayList<>(set);\r\n return list.get(new Random().nextInt(set.size()));\r\n }",
"public int getRandom() {\n int n = set.size();\n if (n == 0) return 0;\n Object[] res = set.toArray();\n Random rand = new Random();\n int result = rand.nextInt(n);\n return (Integer)res[result];\n }",
"@SuppressWarnings(\"unchecked\")\n public <T> T of(Set<T> set) {\n return (T) set.toArray()[random.nextInt(set.size() - 1)];\n }",
"public T getRandomElement() {\n\t\treturn this.itemList.get(this.getRandomIndex());\n\t}",
"public T sample() {\r\n if (this.isEmpty()) {\r\n return null;\r\n }\r\n \r\n Random r = new Random();\r\n int rValue = r.nextInt(size);\r\n return elements[rValue];\r\n }",
"public int getRandom() {\n Integer ans = null;\n while (ans == null) {\n int r = random.nextInt(size);\n ans = allSet[r];\n if (!realSet.contains(ans)) {\n ans = allSet[r] = null;\n }\n }\n return ans;\n }",
"public int getRandom() {\n Random rand = new Random();\n int idx = rand.nextInt(validLength);\n return set.get(idx);\n }",
"public Item sample() {\n if (N == 0) throw new java.util.NoSuchElementException();\n return collection[rnd.nextInt(N)];\n }",
"public T sample() {\r\n if (size == 0) {\r\n return null;\r\n }\r\n int r = new Random().nextInt(size());\r\n return elements[r];\r\n }",
"public T next(final Random random) {\n return elements[selection.applyAsInt(random)];\n }",
"public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n double rand = Math.random() * N;\n int idx = (int) Math.floor(rand);\n Item item = s[idx];\n return item;\n }",
"private <T> T getRandomElement(List<T> list) {\n return list.get(randomInt(0, list.size()));\n }",
"public Item sample() {\n if(isEmpty()) throw new NoSuchElementException();\n int idx = StdRandom.uniform(size);\n return arr[idx];\n }",
"public Item sample() {\n if (N == 0) throw new NoSuchElementException();\n int idx = StdRandom.uniform(N);\n return s[first + idx];\n }",
"public Item sample() {\n if (isEmpty()) {\n throw new NoSuchElementException();\n }\n return a[StdRandom.uniform(N)];\n }",
"public int getRandom() {\n int i = random.nextInt(list.size());\n return list.get(i);\n }",
"public Item sample() {\n if (isEmpty())\n throw new NoSuchElementException();\n\n // Get random index [0, elements) and remove from array\n int randomIndex = StdRandom.uniform(0, elements);\n return values[randomIndex];\n }",
"public int getRandom() {\n int index = rnd.nextInt(list.size());\n return list.get(index).val;\n }",
"public int getRandom() {\n int x=rand.nextInt(li.size());\n return li.get(x);\n }",
"public int getRandom() {\n return _list.get( rand.nextInt(_list.size()) );\n }",
"public Item getRandomItem() {\n int index = 0;\n int i = (int) (Math.random() * getItems().size()) ;\n for (Item item : getItems()) {\n if (index == i) {\n return item;\n }\n index++;\n }\n return null;\n }",
"public int getRandom() {\n return lst.get(rand.nextInt(lst.size()));\n }",
"public int getRandom() {\n Random random = new Random();\n int i = random.nextInt(list.size());\n return list.get(i);\n }",
"public int getRandom() {\n return elementsList.get(rand.nextInt(elementsList.size()));\n }",
"public Item sample(){\n if(size == 0){\n throw new NoSuchElementException();\n }\n int ri = StdRandom.uniform(size);\n \n Iterator<Item> it = this.iterator();\n \n for(int i = 0; i < ri; i++){\n it.next();\n }\n \n return it.next();\n }",
"public Item sample()\r\n {\r\n if (isEmpty()) throw new NoSuchElementException(\"Empty randomized queue\");\r\n\r\n int randomizedIdx = StdRandom.uniform(n);\r\n\r\n return a[randomizedIdx];\r\n }",
"public Item sample() {\n\n if (size == 0) {\n throw new NoSuchElementException();\n }\n\n int r = random.nextInt(size);\n return queue[r];\n }",
"public Item sample() {\n if (this.isEmpty()) {\n throw new NoSuchElementException();\n }\n if (this.size == 1) {\n return this.storage[0];\n }\n else {\n return this.storage[StdRandom.uniform(this.currentIndex)];\n }\n }",
"public int getRandom() {\n if (this.size == 0) throw new IllegalArgumentException();\n Random rand = new Random();\n int randomGetIndex = rand.nextInt(this.size);\n return this.list.get(randomGetIndex);\n }",
"public Item sample() {\n\t\tif (size == 0)\n\t\t\tthrow new java.util.NoSuchElementException();\n\n\t\tint index = StdRandom.uniform(size);\n\t\treturn queue[index];\n\t}",
"public int getRandom() {\n return sub.get(rand.nextInt(sub.size()));\n }",
"public Item sample() {\n\n\t\tif (isEmpty())\n\t\t\tthrow new NoSuchElementException();\n\n\t\tint random = (int)(StdRandom.uniform() * N);\n\t\treturn arr[random];\n\t}",
"public int getRandom() {\n return A.get(r.nextInt(A.size()));\n }",
"@Override\r\n\tpublic Item sample() {\r\n\t\tint index = StdRandom.uniform(count);\r\n\t\tItem item = arr[index];\r\n\t\treturn item;\r\n\t}",
"public int getRandom() {\n Random random = new Random();\n return list.get(random.nextInt(list.size()));\n }",
"public int getRandom() {\n int randomIdx = random.nextInt(valueList.size());\n return valueList.get(randomIdx);\n }",
"public Item sample() {\n\t\t\n\t\tif(isEmpty()) throw new NoSuchElementException();\n\t\t\n\t\tint index = StdRandom.uniform(N);\n\t\t\t\n\t\t\t/*while(items[index] == null) {\n\t\t\t\tindex = StdRandom.uniform(length());\n\t\t\t}*/\n\n\t\treturn items[index];\n\t}",
"public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n return queue[StdRandom.uniform(size)];\n }",
"public Item sample() {\n if (size == 0) throw new NoSuchElementException();\n return array[StdRandom.uniform(size)];\n }",
"public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"Empty queue\");\n\n int rdm = StdRandom.uniform(n);\n return a[rdm];\n }",
"public int getRandom() {\n int index = (int) Math.round(Math.random()*(list.size()-1));\n return list.get(index);\n }",
"public static <T> T getRandomElement(List<T> list) {\n \tint index = (int) (Math.random() * list.size());\n \treturn list.get(index);\n }",
"public int getRandom() {\n return arr.get(r.nextInt(arr.size()))[0];\n }",
"public int getRandom() {\r\n if ((itemSize / nextIndexInCache) < 0.25) {\r\n rebuildCache();\r\n }\r\n while (true) {\r\n int i = random.nextInt(nextIndexInCache);\r\n int v = cache[i];\r\n if (contains(v)) {\r\n return v;\r\n }\r\n }\r\n }",
"public Item sample() {\n if (n == 0) throw new NoSuchElementException();\n return arr[StdRandom.uniform(n)];\n }",
"public int getRandom() {\n int n = l.size();\n Random rand = new Random();\n return l.get(rand.nextInt(n));\n }",
"public int getRandom() {\n Set<Integer> keys = map.keySet();\n Object[] objects = keys.toArray();\n Random rand = new Random();\n int key = rand.nextInt(keys.size());\n return map.get(objects[key]);\n }",
"public Hazard selectRandom() {\r\n\t\tRandom gen = new Random();\r\n\t\treturn hazards.get(gen.nextInt(hazards.size()));\r\n\t}",
"public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"\");\n int i = randomNotEmptyIndex();\n return queue[i];\n }",
"public Item sample() {\n \t\tif (size == 0) {\n \t\t\tthrow new NoSuchElementException();\n \t\t}\n \t\treturn (Item) items[StdRandom.uniform(size)];\n \t}",
"public static Suit randomSuit() {\n int pick = new Random().nextInt(Suit.values().length-1); // w/o Excuse\n return Suit.values()[pick];\n }",
"public int getRandom() {\n if(list.size() <= 0) return -1;\n return list.get(new Random().nextInt(list.size()));\n }",
"@Override\n public <T> T getRandomElement(List<T> list) {\n return super.getRandomElement(list);\n }",
"public Item sample() {\r\n\t\tif (isEmpty()) {\r\n\t\t\tthrow new NullPointerException();\r\n\t\t}\r\n\t\telse {\r\n\t\t\treturn queue[StdRandom.uniform(0,n)];\r\n\t\t}\r\n\t}",
"public int getRandom() {\n // get a random integer from [0, n) where n is the size of the value list\n return values.get(random.nextInt(values.size()));\n }",
"public Item sample(){\n if(itemCount == 0){\n throw new NoSuchElementException(\"Queue is empty\");\n }\n int rand = StdRandom.uniform(array.length);\n while(array[rand] == null){ // if it's a null value\n rand = StdRandom.uniform(array.length); // pick another one\n }\n return array[rand];\n }",
"public int getRandom() {\n Iterator<Integer> it = list.iterator();\n int i = (int) (Math.random()*list.size());\n for (int j = 0; j < i; j++) {\n it.next();\n }\n return it.next();\n }",
"public DataSetMember<t> getRandomMember()\n\t{\n\t\tRandom R = new Random();\n\t\tint i = R.nextInt(_data.size());\n\t\treturn _data.get(i);\n\t}",
"public int getRandom() {\n return data.get(random.nextInt(data.size()));\n }",
"public Item sample() {\n if (size == 0) \n throw new NoSuchElementException(\"the RandomizedQueue is empty\");\n return rqArrays[StdRandom.uniform(0, size)];\n }",
"public Verbum getWord(){\r\n\t\t// Pick random starting point in the linked list\r\n\t\tint start = (int)(Math.random() * words.size());\r\n\t\tDSElement<Verbum> w = words.first;\r\n\t\tfor(int i = 0; i < start; i++)\r\n\t\t\tw = w.getNext();\r\n\t\treturn w.getItem();\r\n\t}",
"public static Dog getSomeRandomDog() {\r\n\t\treturn dogsList.get(random.nextInt(dogsList.size()));\r\n\t}",
"public <T> T of(List<T> list) {\n return list.get(random.nextInt(list.size() - 1));\n }",
"public int getRandom() {\n return data.get(random.nextInt(data.size()));\n }",
"public Random getRandom() {\n\t\treturn (rand);\n\t}",
"public Item sample() {\n if (size == 0) throw new java.util.NoSuchElementException(\"Queue is empty!\");\n\n return items[StdRandom.uniform(size)];\n }",
"public int getRandom() {\n int index = (int) Math.floor(Math.random() * size);\n return nums[index];\n }",
"public int getRandom() {\n return nums.get((int) (Math.random() * nums.size()));\n }",
"public Item sample() {\n if (isEmpty()) throw new NoSuchElementException(\"deque underflow \");\n Item item;\n int randomIndex = StdRandom.uniform(N);\n while(randomizedQueue[randomIndex] == null){\n randomIndex = StdRandom.uniform(N);\n }\n item = randomizedQueue[randomIndex];\n \n return item;\n }",
"public int getRandom() {\n Random random = new Random();\n return nums.get(random.nextInt(nums.size()));\n }",
"public int getRandom() {\n return nums.get(random.nextInt(nums.size()));\n }",
"public int getRandom() {\n return nums.get(random.nextInt(nums.size()));\n }",
"public static <T> T random(Collection<T> coll)\r\n\t{\r\n\t\tif (coll.size() == 0) return null;\r\n\t\tif (coll.size() == 1) return coll.iterator().next();\r\n\t\tint index = MCore.random.nextInt(coll.size());\r\n\t\treturn new ArrayList<T>(coll).get(index);\r\n\t}",
"private static Option pickRandom() {\n\t\treturn Option.values()[rand.nextInt(3)];\n\t}",
"public int getRandom() {\n return nums.get(rand.nextInt(nums.size()));\n }",
"public Item sample() {\n \t if (size==0){\n \t \tthrow new NoSuchElementException();\n \t }\n \t int index = StdRandom.uniform(size);\n // System.out.println(\"The index of the number is: \" + index);\n int k = 0;\n \t Node p=sentinel.next.next;\n \t for (int i = 0; i < index; i++){\n p = p.next; \n \t }\n \t return p.item;\n }",
"public Item sample() {\n if (qSize == 0) {\n throw new java.util.NoSuchElementException(\"Empty queue\");\n }\n\n return queue[StdRandom.uniform(qSize)];\n }",
"public Item generateItem()\n {\n Random rand = new Random();\n int item = rand.nextInt(itemList.size());\n return itemList.get(item);\n }",
"public String getRandom() {\n\t return word.get(new Random().nextInt(word.size()));}",
"public Vector<String> getRandom(){\n\t\t\n\t\tAssert.pre(size()>0, \"data must be initialized\");\n\t\t\n\t\tint n = r.nextInt(size());\n\t\t\n\t\treturn get(n);\n\t}",
"public int getRandom() {\n Random rand = new Random();\n return list.get(rand.nextInt(linklist.size()));\n }",
"private static int get() { \r\n Random r = new Random();\r\n return (r.nextInt(9));\r\n }",
"public static void main(String[] args) {\n RandomizedSet randomSet = new RandomizedSet();\n\n // Inserts 1 to the set. Returns true as 1 was inserted successfully.\n System.out.println(randomSet.insert(1));\n\n // Returns false as 2 does not exist in the set.\n System.out.println(randomSet.remove(2));\n\n // Inserts 2 to the set, returns true. Set now contains [1,2].\n System.out.println(randomSet.insert(2));\n\n // getRandom should return either 1 or 2 randomly.\n System.out.println(randomSet.getRandom());\n\n // Removes 1 from the set, returns true. Set now contains [2].\n System.out.println(randomSet.remove(1));\n\n // 2 was already in the set, so return false.\n System.out.println(randomSet.insert(2));\n\n // Since 2 is the only number in the set, getRandom always return 2.\n System.out.println(randomSet.getRandom());\n }",
"public T getRandom()\n\t{\n\t\tDLLNode<T> newNode = head;\n\t\tint randomNum = (int)(Math.random()*size);\n\t\tfor(int i =0; i<randomNum; i++){\n\t\t\tnewNode= newNode.getNext();\n\t\t}\n\t\treturn newNode.getData();\n\t}",
"public int getRandom() {\n ListNode pick = null;\n ListNode p = head;\n int count = 1;\n while (p != null) {\n if (rand.nextInt(count) == 0) {\n pick = p;\n }\n p = p.next;\n count++;\n }\n return pick.val;\n }",
"private static ItemType random() {\n return ITEM_TYPES.get(RANDOM.nextInt(SIZE));\n }",
"public Item sample() {\n if (isEmpty()) {\n throw new java.util.NoSuchElementException();\n }\n int sampleIndex = StdRandom.uniform(1, size + 1);\n Item item;\n //case 1: return first item\n if (sampleIndex == 1) {\n item = first.item;\n }\n //case 2 :return last item\n else if (sampleIndex == size) {\n item = last.item;\n }\n //case 3: general case in between\n else {\n Node temp = first;\n while (sampleIndex != 1) {\n temp = temp.next;\n sampleIndex--;\n }\n item = temp.item;\n }\n return item;\n }",
"public static Object getRandom(Object... kv)\n {\n return getRandom(distributeChance(kv));\n }",
"public Item sample() {\n if (isEmpty()) throw new NoSuchElementException();\n return items[index()];\n }",
"protected Gene getRandomGene() {\n\t\tArrayList<Gene> genearr = new ArrayList<Gene>();\n\t\tgenearr.addAll(genes.values());\n\t\treturn genearr.get(Braincraft.randomInteger(genearr.size()));\n\t}",
"public Cell randomCell() {\n ArrayList<Cell> available = this.randomCellHelper();\n return available.get(new Random().nextInt(available.size()));\n\n }",
"public int getRandom() {\n \n return this.nums.get(this.rand.nextInt(this.nums.size()));\n \n }",
"public int getRandom() {\r\n\r\n\t\tint rand = (int) (Math.random() * BUCKET_SIZE);\r\n\t\tfor (int i = rand; (i + 1) % BUCKET_SIZE != rand; i = (++i) % BUCKET_SIZE) {\r\n\t\t\tif (bucket[i] == null)\r\n\t\t\t\tcontinue;\r\n\r\n\t\t\tint rand2 = (int) (Math.random() * bucket[i].size);\r\n\r\n\t\t\tNode p = bucket[i].list;\r\n\t\t\tfor (int j = 0; j < rand2; ++j)\r\n\t\t\t\tp = p.next;\r\n\r\n\t\t\treturn p.val;\r\n\t\t}\r\n\t\treturn 0;\r\n\t}",
"public int getRandom() {\r\n\r\n\t\tListNode temp = this.head;\r\n\t\tListNode random = this.head;\r\n\r\n\t\tint c = 1;\r\n\r\n\t\tfor (; temp != null; temp = temp.next) {\r\n\r\n\t\t\tint r = new Random().nextInt(c) + 1;\r\n\r\n\t\t\tc++;\r\n\t\t\tif (r == 1) {\r\n\t\t\t\trandom = temp;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\treturn random.val;\r\n\r\n\t}",
"private Shirt getRandomShirt() {\n String selectQuery = \"SELECT * FROM \" + ShirtEntry.TABLE_NAME + \" ORDER BY RANDOM() LIMIT 1\";\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(selectQuery, null);\n\n // Extract shirt details\n if (c.moveToFirst()) {\n int shirtId = c.getInt((c.getColumnIndex(ShirtEntry._ID)));\n String shirtPath = c.getString(c.getColumnIndex(ShirtEntry.IMG_PATH));\n\n c.close();\n return new Shirt(shirtId, shirtPath);\n } else {\n return null;\n }\n }",
"public static Fruit getRandom(List<Fruit> fruits) {\r\n return fruits.get(new Random().nextInt(fruits.size()));\r\n }",
"private static TETile getRandomTile() {\n Random r = new Random();\n int tileNum = r.nextInt(5);\n switch (tileNum) {\n case 0: return Tileset.FLOWER;\n case 1: return Tileset.MOUNTAIN;\n case 2: return Tileset.TREE;\n case 3: return Tileset.GRASS;\n case 4: return Tileset.SAND;\n default: return Tileset.SAND;\n }\n }",
"private IUnit getRandomCacheUnit(){\n\t\tcache = new UnitCache();\n\t\treturn cache.getUnit(rnd.nextInt(cache.getSize()));\n\t}",
"public Item sample()\n {\n checkNotEmpty();\n\n return items[nextIndex()];\n }"
] |
[
"0.791835",
"0.7723838",
"0.73558825",
"0.73073596",
"0.7299999",
"0.7125759",
"0.7075432",
"0.70544857",
"0.7021675",
"0.70010036",
"0.6924541",
"0.68527114",
"0.6841163",
"0.6808583",
"0.67908883",
"0.67675084",
"0.669298",
"0.667805",
"0.6653935",
"0.6647121",
"0.6632087",
"0.66271675",
"0.6623454",
"0.6606746",
"0.6596474",
"0.6589846",
"0.6587147",
"0.65848637",
"0.6581947",
"0.6548646",
"0.65316087",
"0.65276706",
"0.65261424",
"0.6520121",
"0.64952326",
"0.648544",
"0.64777136",
"0.64752096",
"0.6466745",
"0.64602363",
"0.64513063",
"0.64296657",
"0.64273083",
"0.642677",
"0.640958",
"0.64075637",
"0.63875854",
"0.6358859",
"0.63560134",
"0.63340014",
"0.6319803",
"0.6304728",
"0.6287533",
"0.62267095",
"0.62259984",
"0.6216436",
"0.6198187",
"0.61957407",
"0.6193395",
"0.61875093",
"0.61824024",
"0.6156329",
"0.6148896",
"0.61421907",
"0.6123379",
"0.61085093",
"0.61055344",
"0.6087455",
"0.60796714",
"0.60712904",
"0.60655975",
"0.60642946",
"0.60580766",
"0.6053081",
"0.6049286",
"0.60414153",
"0.6026748",
"0.6009953",
"0.60094696",
"0.59949034",
"0.5992541",
"0.59877944",
"0.5983745",
"0.5954841",
"0.59374183",
"0.59317285",
"0.5915148",
"0.5892281",
"0.5844796",
"0.5844067",
"0.582573",
"0.57829726",
"0.5770215",
"0.574518",
"0.57396036",
"0.57355505",
"0.57236415",
"0.572214",
"0.5700565",
"0.56994283"
] |
0.6474144
|
38
|
private int[][] matrix1; private int[][] matrix2; private int[][] matrix3;
|
@Before
public void setUp() throws Exception {
myM = new Matrix();
/** matrix1 = new int[4][4];
for (int i = 0; i < matrix1.length; i++) {
for (int j = 0; j < matrix1[0].length; j++) {
if( i == j) {
matrix1[i][j] = 1;
}
}
}
matrix2 = new int[6][6];
for (int i = 0; i < matrix2.length; i++) {
for (int j = 0; j < matrix2[0].length; j++) {
matrix2[i][j] = i;
}
}
matrix3 = new int[3][4];
for (int i = 0; i < matrix3.length; i++) {
for (int j = 0; j < matrix3[0].length; j++) {
if( i == j) {
matrix3[i][j] = 1;
}
}
} **/
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public static void main(String[] args) {\n\t\tint[][] a = {{1,2}, {5,3}};\n\t\tint[][] b = {{3,2}, {4,5}};\n\t\tint[][] c = {{1,2}, {4,3}};\n\t\tint[][] d = {{1,2,3}, {4, 5, 6}};\n\t\tint[][] e = {{1, 4}, {2, 5}, {3,6}};\n\n\n\t\t//create new matrices using multidimensional arrays to get a size\n\t\tMatrix m = new Matrix(a);\n\t\tMatrix m2 = new Matrix(b);\n\t\tMatrix m3 = new Matrix(c);\n\t\tMatrix m4 = new Matrix(d);\n\t\tMatrix m5 = new Matrix(e);\n\n\n\n\t\t//Example of matrix addition\n\t\tSystem.out.println(\"Example of Matrix addition using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nSUM:\");\n\t\tSystem.out.println(m.add(m2));\n\t\t\n\t\t//Example of matrix subtraction\n\t\tSystem.out.println(\"Example of Matrix subtraction using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nDIFFERENCE:\");\n\t\tSystem.out.println(m.subt(m2));\n\n\t\t//Example of matrix multiplication\n\t\tSystem.out.println(\"Example of Matrix multiplication using the following matrices:\");\n\t\tSystem.out.println(m3.toString());\n\t\tSystem.out.println(m2.toString() + \"\\nPRODUCT:\");\n\t\tSystem.out.println(m2.mult(m3));\n\t\t\n\t\t//Example of scalar multiplication\n\t\tSystem.out.println(\"Example of scalar multiplication using the following matrices with a scalar value of 2:\");\n\t\tSystem.out.println(m3.toString() + \"\\nSCALAR PRODUCT:\");\n\t\tSystem.out.println(m3.scalarMult(2));\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m.transpose());\n\t\t\n\t\t//Example of transpose \n\t\tSystem.out.println(\"Example of transpose using the following matrix:\");\n\t\tSystem.out.println(m4.toString() + \"\\nTRANSPOSE:\");\n\t\tSystem.out.println(m4.transpose());\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"Example of equality using the following matrices:\");\n\t\tSystem.out.println(m.toString());\n\t\tSystem.out.println(m.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m.equality(m));\n\t\t\n\t\t//Example of equality \n\t\tSystem.out.println(\"\\nExample of equality using the following matrices:\");\n\t\tSystem.out.println(m4.toString());\n\t\tSystem.out.println(m5.toString() + \"\\nEQUALITY:\");\n\t\tSystem.out.println(m4.equality(m5));\n\n\t}",
"public static void main(String[] args) { \r\n int[][] a = new int[3][5]; // прямоугольный массив\r\n int size1 = a.length;\r\n int size2 = a[0].length;\r\n int[][] b = new int[3][]; // массив переменной длины (тут - треугольный)\r\n b[0] = new int[1];\r\n b[1] = new int[2];\r\n b[2] = new int[3];\r\n int c[] = new int[] {1,2,3,};\r\n c = new int[]{0,1,2,3}; // а вот так не сработает: c = {0,1,2,3};\r\n \r\n int[] array1D= {0,1,2,3}; \r\n int[][] array2D= {{0,1,5,10},{2,3,1,0,5,55,16},{0,1}};\r\n int[][][] array3D= {\r\n { {2,3,1,0},\r\n {2,3,1,0},\r\n {2,3,1,0}},\r\n \r\n { {2,3,1,0},\r\n {2,3,1,0},\r\n {2,3,1,0}},\r\n \r\n { {2,3,1,0},\r\n {2,3,1,0},\r\n {2,3,1,0}}};\r\n System.out.println(\"============array1D==========\");\r\n System.out.println(array1D);\r\n System.out.println(Arrays.toString(array1D)); //Работает на глубину одного измерения (для одномерных масивов)\r\n System.out.println(\"============array2D==========\");\r\n System.out.println(array2D);\r\n System.out.println(Arrays.toString(array2D)); \r\n System.out.println(Arrays.deepToString(array2D));\r\n System.out.println(\"============array3D==========\");\r\n System.out.println(array3D);\r\n System.out.println(Arrays.toString(array3D));\r\n System.out.println(Arrays.deepToString(array3D));\r\n }",
"@Before\n public void setup() {\n threeByTwo = new Matrix(new int[][] {{1, 2, 3}, {2, 5, 6}});\n compareTwoByThree = new Matrix(new int[][] {{1, 42, 32}, {2, 15, 65}});\n oneByOne = new Matrix(new int[][] {{4}});\n rightOneByOne = new Matrix(new int[][] {{8}});\n twoByFour = new Matrix(new int[][] {{1, 2, 3, 4}, {2, 5, 6, 8}});\n twoByThree = new Matrix(new int[][] {{4, 5}, {3, 2}, {1, 1}});\n threeByThree = new Matrix(new int[][] {{4, 5, 6}, {3, 2, 0}, {1, 1, 1}});\n rightThreeByThree = new Matrix(new int[][] {{1, 2, 3}, {5, 2, 0}, {1, 1, 1}});\n emptyMatrix = new Matrix(new int[0][0]);\n // this is the known correct result of multiplying M1 by M2\n twoByTwoResult = new Matrix(new int[][] {{13, 12}, {29, 26}});\n threeByThreeResult = new Matrix(new int[][] {{35, 24, 18}, {13, 10, 9}, {7, 5, 4}});\n oneByOneSum = new Matrix(new int[][] {{12}});\n oneByOneProduct = new Matrix(new int[][] {{32}});\n }",
"public static void main(String[] args) {\n int mat1[][]=new int[3][3];\n int mat2[][]=new int[3][3];\n int ans[][]=new int[3][3];\n Scanner sc=new Scanner(System.in);\n \n //input values\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.println(\"Enter mat1[\"+i+\"][\"+j+\"] : \");\n \t\t mat1[i][j]= sc.nextInt();\n \t }\n }\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.println(\"Enter mat2[\"+i+\"][\"+j+\"] : \");\n \t\t mat2[i][j]= sc.nextInt();\n \t }\n }\n \n System.out.println(\"Matrix 1 is :\");\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.print(mat1[i][j]+\" \");\n \t }\n \t System.out.println(\"\\n\");\n }\n \n System.out.println(\"\\nMatrix 2 is :\");\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.print(mat2[i][j]+\" \");\n \t }\n \t System.out.println(\"\\n\");\n }\n \n //Multiplication\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\tans[i][j]=0;\n \t\tfor(int k=0;k<3;k++) {\n \t\t\tans[i][j]+=mat1[i][k]*mat2[k][j];\n \t\t}\n \t }\n }\n \n System.out.println(\"\\nMatrix Multiplication is :\");\n for(int i=0;i<3;i++) {\n \t for(int j=0;j<3;j++) {\n \t\t System.out.print(ans[i][j]+\" \");\n \t }\n \t System.out.println(\"\\n\");\n }\n sc.close();\n\t}",
"Matrix(){\n matrixVar = new double[1][1];\n rows = 1;\n columns = 1;\n }",
"public static void main (String[] args) {\n int[][] twoD = new int[3][4];\n// Where x is an integer\n// [[x, x, x, x],\n// [x, x, x, x],\n// [x, x, x, x]]\n\n// int[][][] threeD = new int[3][4][3];\n\n// 4x3\n int[][] twoDInit = {{1, 3, 5}, {4, 3, 5}, {1, 4, 5}, {4, 3, 5}};\n\n for (int i = 0; i < twoDInit.length; i++) {\n for (int j = 0; j < twoDInit[i].length; j++) {\n System.out.println(twoDInit[i][j]);\n }\n }\n\n for (int[] ints : twoDInit) {\n for (int anInt : ints) {\n System.out.println(anInt);\n }\n }\n\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 7; j++) {\n System.out.print(\"*\");\n }\n System.out.println();\n }\n\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < i + 1; j++) {\n System.out.print(\"*\");\n }\n System.out.println();\n }\n }",
"public static void main(String[] args)\n {\n int[][] ints;\n int[][] ints1;\n\n\n\n\n ints = new int[][]{\n {1, 2, 3, 4, 5, 6, 7, 8, 9},\n {10, 11, 12, 13, 14, 15, 16, 17, 18},\n {19, 20, 21, 22, 23, 24, 25, 26, 27},\n {28, 29, 30, 31, 32, 33, 34, 35, 36},\n {37, 38, 39, 40, 41, 42, 43, 44, 45},\n {46, 47, 48, 49, 50, 51, 52, 53, 54},\n {55, 56, 57, 58, 59, 60, 61, 62, 63},\n {64, 65, 66, 67, 68, 69, 70, 0, 71},\n {73, 74, 75, 76, 77, 78, 79, 80, 72}\n };\n\n ints = new int[][]{\n {1,0},\n {2,3},\n };\n ints1 = new int[][]{\n {1, 2, 3},\n {4, 5, 6},\n {7, 0, 8}\n };\n\n ints1 = new int[][]{\n {1, 2, 3},\n {4, 8, 5},\n {7, 0, 6}\n };\n ints = new int[][]{\n {5, 0, 4},\n {2, 3, 8},\n {7,1,6}\n };\n ints1 = new int[][]{\n {1, 6, 4},\n {7, 0, 8},\n {2, 3, 5}\n };\n\n ints1 = new int[][]{\n {6, 0, 5},\n {8, 7, 4},\n {3, 2, 1}\n };\n ints1 = new int[][]{\n {11, 0, 4, 7},\n {2, 15, 1, 8},\n {5, 14, 9, 3},\n {13, 6, 12, 10 }\n };\n\n\n ints1 = new int[][]{\n {14, 13, 5, 3},\n {0, 1, 8, 12},\n {6, 2, 4, 10},\n {11, 9, 15, 7 }\n };\n\n ints1 = new int[][]{\n {8, 4, 7},\n {1,5,6},\n {3,2,0}\n };\n\n\n ints1 = new int[][]{\n {8, 4, 7},\n {1,5,6},\n {3,2,0}\n };\n\n\n ints = new int[][]{\n {1, 2, 3},\n {4, 6,5},\n {7, 8,0}\n };\n ints1 = new int[][]{\n {8, 4, 7},\n {1,5,6},\n {3,2,0}\n };\n ints = new int[][]{\n {1,0},\n {2,3},\n };\n System.out.println(System.currentTimeMillis());\n Board board = new Board(ints);\n Solver solution = new Solver(board);\n\n for (Board el :solution.solution())\n {\n System.out.println(el);\n }\n System.out.println(System.currentTimeMillis());\n\n\n }",
"public static int [][][] buildMat3d() {\n //defines array to be 3 X 7X 9 dimensioned\n int mat3d [][][]= new int [3][7][9];\n //for loop which runs 3 times\n for(int s=0; s<3; s++) {\n //for loop which runs a different amount of times\n for(int j=0; j<(3+2*s); j++) {\n //for loop which does the same\n for(int c=0; c<(s+j+1); c++) {\n //defines values based on raondom generation\n mat3d[s][j][c]= (int)(Math.random()*99);\n \n }\n }\n }\n //returns the resulting array\n return mat3d;\n }",
"void setAdjForThirdType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, matrixOfSquares[1][1] , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], matrixOfSquares[0][3]);\n matrixOfSquares[0][3].setCardinalSquare(null,matrixOfSquares[1][3] , matrixOfSquares[0][2], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], matrixOfSquares[2][0], null, null );\n matrixOfSquares[1][1].setCardinalSquare(matrixOfSquares[0][1], matrixOfSquares[2][1], null, null );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , matrixOfSquares[2][2], null, matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(matrixOfSquares[0][3], matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][0].setCardinalSquare(matrixOfSquares[1][0],null, null, matrixOfSquares[2][1] );\n matrixOfSquares[2][1].setCardinalSquare( matrixOfSquares[1][1],null, matrixOfSquares[2][0], matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(matrixOfSquares[1][2], null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n }",
"public int[][] MatrizPesos(){\n return this.mat;\n }",
"private static void demoMultiDArrays() {\r\n\t\tint[][] nums = new int[3][5];\r\n\t\tnums[0][2] = 10;\r\n//\t\tcompact, hard to read version: **note: slower. its worse in every way.**\r\n//\t\tnums[nums.length-1][nums[nums.length-1].length-1] = 14;\r\n\t\tint lastRow = nums.length-1;\r\n\t\tint lastCol = nums[lastRow].length-1;\r\n\t\tnums[lastRow][lastCol] = 14;\r\n//\t\tcompact, hard to read version: **note: slower. its worse in every way.**\r\n//\t\tnums[0][0] = nums[0][2] + nums[nums.length-1][nums[nums.length-1].length-1];\r\n\t\tnums[0][0] = nums[0][2]+nums[lastRow][lastCol];\r\n\t\t\r\n\t\t//return length of the cols in nums\r\n\t\t//return the length of the rows in nums\r\n\t\tfor (int[] rowData : nums) {\r\n\t\t\tSystem.out.print(\"[\");\r\n\t\t\tfor (int colData : rowData) {\r\n\t\t\t\tSystem.out.print(colData);\r\n\t\t\t\tSystem.out.print(\",\\t\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(\"], \");\r\n\t\t}\r\n\t\t\r\n\t}",
"public void ConceptosMatrices() {\n int[][] maX={{5,6,6},\n {5,6,2},\n {5,12,2},\n {5,6,2}};\n //Obtener el tamaño de la fila de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX.length);\n //Obtener el tamaño de la columna de la matriz maX\n System.out.println(\"Tamaño en fila matriz maX=\"+maX[0].length);\n System.out.println(\"Mostrar el valor 12 de la matriz maX=\"+maX[2][1]);\n //Cambiar el elemento 12 de la matriz maX por 16\n maX[2][1]=16;\n Scanner sc=new Scanner(System.in);\n System.out.println(\"Ingrese un valor en los indices 2,2\");\n maX[2][2]=sc.nextInt();\n \n System.out.println(\"Defina el indice para fila:\");\n int iFx=sc.nextInt(); \n int iCx=sc.nextInt(); \n System.out.println(\"Ingrese un valor en los indices \"+iFx+\", \"+iCx+\":\");\n maX[iFx][iCx]=sc.nextInt(); \n \n imprimirMatriz(maX);\n \n //defenir matrices sin dimensiones\n int[][] matrizN;\n //definiendo dimensiones a una matriz\n System.out.println(\"Ingrese la dimension en fila para la MatrizN=\");\n int inFi=sc.nextInt();\n System.out.println(\"Ingrese la dimension en columna para la MatrizN=\");\n int inCo=sc.nextInt();\n matrizN=new int[inFi][inCo]; \n int vi=0;\n //Rellenando una matriz con una serie de numeros\n for (int f = 0; f < matrizN.length; f++) {\n for (int c = 0; c < matrizN[0].length; c++) {\n System.out.println(\"Ingrese un valor en matrizN[\"+f+\"][\"+c+\"]:=\");\n matrizN[f][c]=sc.nextInt();\n vi=vi+2;\n } \n } \n System.out.println(\"la nueva matrizN es de: \"+matrizN.length+\"x\"+matrizN[0].length);\n imprimirMatriz(matrizN); \n\n }",
"public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\r\n\t\tint row,column;\r\n\t\tSystem.out.println(\"Enter the number of rows\");\r\n\t\trow=sc.nextInt();\r\n\t\tSystem.out.println(\"Enter the number of columns\");\r\n\t\tcolumn=sc.nextInt();\r\n\t\tint[][] arr1=new int[row][column];\r\n\t\tint[][] arr2=new int[row][column];\r\n\t\tint[][] arr3=new int[row][column];\r\n\t\tSystem.out.println(\"Enter the elements of 1st matrix\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tarr1[i][j]=sc.nextInt();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tSystem.out.println(\"Enter the elements of 2nd matrix\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tarr2[i][j]=sc.nextInt();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\r\n\t\tSystem.out.println(\"The Addition of above 2 matrix is:\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tarr3[i][j]=arr1[i][j]+arr2[i][j];\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\r\n\t\t//System.out.println(\"The Addition of above 2 matrix is:\");\r\n\t\tfor(int i=0;i<row;i++)\r\n\t\t{\r\n\t\t\tfor(int j=0;j<column;j++)\r\n\t\t\t{\r\n\t\t\t\tSystem.out.print(arr3[i][j]+\" \");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tsc.close();\r\n\t}",
"public static void main(String[] args) {\n int cols1, cols2, rows1, rows2, num_usu1, num_usu2;\r\n \r\n try{\r\n \r\n cols1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de colunas para a primeira matriz:\"));\r\n rows1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de linhas para a primeira matriz:\"));\r\n cols2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de colunas para a segunda matriz:\"));\r\n rows2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe o numero de linhas para a segunda matriz:\"));\r\n \r\n int[][] matriz1 = MatrixInt.newRandomMatrix(cols1, rows1);\r\n int[][] matriz2 = MatrixInt.newSequentialMatrix(cols2, rows2);\r\n \r\n System.out.println(\"Primeira matriz:\");\r\n MatrixInt.imprimir(matriz1);\r\n System.out.println(\" \");\r\n System.out.println(\"Segunda matriz:\");\r\n MatrixInt.imprimir(matriz2);\r\n System.out.println(\" \");\r\n \r\n MatrixInt.revert(matriz2);\r\n \r\n System.out.println(\"Matriz sequancial invertida:\");\r\n MatrixInt.imprimir(matriz2);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria:\");\r\n MatrixInt.imprimir(matriz1);\r\n System.out.println(\" \");\r\n \r\n num_usu1 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe um numero qualquer:\"));\r\n \r\n for1: for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n if(num_usu1 == matriz1[i][j]){\r\n System.out.println(\"O numero '\"+num_usu1+\"' foi encontardo na posição:\" + i);\r\n break for1;\r\n }else if(j == (matriz1[i].length - 1) && i == (matriz1.length - 1)){\r\n System.out.println(\"Não foi encontrado o numero '\"+num_usu1+\"' no vetor aleatorio.\");\r\n break for1;\r\n } \r\n }\r\n }\r\n \r\n String menores = \"\", maiores = \"\";\r\n for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n if(num_usu1 > matriz1[i][j]){\r\n menores = menores + matriz1[i][j] + \", \";\r\n }else if(num_usu1 < matriz1[i][j]){\r\n maiores = maiores + matriz1[i][j] + \", \";\r\n }\r\n }\r\n }\r\n System.out.println(\" \");\r\n System.out.print(\"Numeros menores que '\"+num_usu1+\"' :\");\r\n System.out.println(menores);\r\n System.out.print(\"Numeros maiores que '\"+num_usu1+\"' :\");\r\n System.out.println(maiores);\r\n \r\n num_usu2 = Integer.parseInt(JOptionPane.showInputDialog(\"Informe um numero que exista na matriz aleatoria:\"));\r\n \r\n int trocas = MatrixInt.replace(matriz1, num_usu2, num_usu1);\r\n \r\n if (trocas == 0) {\r\n System.out.println(\" \");\r\n System.out.println(\"Não foi realizada nenhuma troca de valores.\");\r\n }else{\r\n System.out.println(\" \");\r\n System.out.println(\"O numero de trocas realizadas foi: \"+trocas);\r\n }\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria:\");\r\n MatrixInt.imprimir(matriz1);\r\n \r\n int soma_total = 0;\r\n for (int i = 0; i < matriz1.length; i++) {\r\n for (int j = 0; j < matriz1[i].length; j++) {\r\n soma_total += matriz1[i][j];\r\n }\r\n \r\n }\r\n System.out.println(\" \");\r\n System.out.println(\"A soma dos numeros da matriz foi: \" + soma_total);\r\n \r\n System.out.println(\" \");\r\n System.out.println(\"Matriz aleatoria\");\r\n Exercicio2.imprimir(matriz1);\r\n System.out.println(\" \");\r\n System.out.println(\"Matriz sequencial\");\r\n Exercicio2.imprimir2(matriz2);\r\n \r\n }catch(Exception e){\r\n System.out.println(e);\r\n }\r\n \r\n \r\n \r\n }",
"public static void main(String[] args) {\n\t\tint[][] array = new int[5][6];\r\n\t\tint[] x = {1,2};array[0] = x;\r\n\t\tSystem.out.println(\"array[0][1] is \" + array[0][1]);\r\n\t\tSystem.out.println(Arrays.deepToString(array));\r\n\t\t\r\n\t\tint[][] arr = {{1,2}, {3,4}, {5,6}};\r\n\t\tfor (int i = arr.length - 1; i >= 0; i--) \r\n\t\t{for (int j = arr[i].length - 1; j >= 0; j--)\r\n\t\t\tSystem.out.print(arr[i][j] + \" \");\r\n\t\tSystem.out.println();\r\n\t\t}\r\n\t\tint[][] array1 = {{1,2}, {3,4}, {5,6}};\r\n\t\tint sum = 0;\r\n\t\tfor (int i = 0; i < array1.length; i++)\r\n\t\t\tsum += array1[i][0];\r\n\t\tSystem.out.println(sum);\r\n\t\r\n\tint [][]matrix = new int [10] [10];\r\n\t\r\n\tfor (int row = 0; row < matrix.length; row++) {\r\n\t\tfor (int column = 0; column < matrix[row].length; column++) {\r\n\t\tmatrix[row][column] = (int)(Math.random() * 100); }}\r\n\tSystem.out.println(Arrays.deepToString(matrix));\r\n\r\n\tfor (int i = 0; i < matrix.length; i++) {\r\n\t\tfor (int j = 0; j < matrix[i].length; j++) {\r\n\t\t\tint i1 = (int)(Math.random() * matrix.length);\r\n\t\t\tint j1 = (int)(Math.random() * matrix[i].length);\r\n\t\t\tint temp = matrix[i][j];\r\n\t\t\tmatrix[i][j] = matrix[i1][j1];\r\n\t\t\tmatrix[i1][j1] = temp;\r\n\t\t}\r\n\t}System.out.println(Arrays.deepToString(matrix));\r\n\t}",
"public int[][] getMazeMatrix(){ return maze;}",
"public abstract Matrix matrix(double s1, double s2, double s3, double c1, double c2, double c3);",
"public static void main(String[] args) {\n\t\tSystem.out.println(\"Enter the rows and columns of first matrix\");\n\t\tint m = Utility.inputInt();\n\t\tint n = Utility.inputInt();\n\t\tint N[][] = new int [m][n];\n\t\tSystem.out.println(\"Enter the first matrix\");\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\tfor(int j = 0; j < n; j++) {\n\t\t\t\tN[i][j] = Utility.inputInt();\n\t\t\t}\n\t\t}\n\t\t int d = N[1][1]*N[2][2]-N[1][2]*N[2][1];\n\t\t System.out.println(\"Determinant of 2 by 2 matrix4 is:\" + d);\n\t\t int b = N[0][1]*N[1][2]-N[0][2]*N[1][1];\n\t\t System.out.println(\"Determinant of 2 by 2 matrix1 is:\" + b);\n\t\t int a = N[0][0]*N[1][1]-N[0][1]*N[1][0];\n\t\t System.out.println(\"Determinant of 2 by 2 matrix is:\" + a);\n\t\t int s = N[0][0]*N[1][2]-N[0][2]*N[1][0];\n\t\t System.out.println(\"Determinant of 2 by 2 matrix5 is:\" + s);\n\t\t\n\t\t int c = N[1][0]*N[2][1]-N[1][1]*N[2][0];\n\t\t System.out.println(\"Determinant of 2 by 2 matrix2 is:\" + b);\n\t\t int x = N[1][0]*N[2][2]-N[1][2]*N[2][0];\n\t\t System.out.println(\"Determinant of 2 by 2 matrix3 is:\" + c);\n\t\t\n\t\t\n\t\t int p = N[0][0]*N[2][2]-N[0][2]*N[2][0];\n\t\t System.out.println(\"Determinant of 2 by 2 matrix6 is:\" + p);\n\t\t int q = N[0][0]*N[2][1]-N[0][1]*N[2][0];\n\t\t System.out.println(\"Determinant of 2 by 2 matrix7 is:\" + q);\n\t\t int r = N[0][1]*N[2][2]-N[0][2]*N[2][1];\n\t\t System.out.println(\"Determinant of 2 by 2 matrix8 is:\" + r);\n\t\t \n\n\t}",
"public Matrix3D(double[] d1) {\n super(3,3);\n int k = -1;\n for (int i=0 ; i<3 ; i++) { // loop over rows\n for (int j=0 ; j<3 ; j++) { // loop over columns\n k++;\n set(i,j,d1[k]); // d[i][j] = d1[k];\n }\n }\n }",
"public static void main(String[] args) {\n\t\tint[] marks = {10,20,30,60,40,50,70}; // element = 7\n\t\tint[] marks2 = new int[10]; \n\t\tmarks2[0] = 10;\n\t\tmarks2[1] = 10;\n\t\tmarks2[2] = 10;\n\t\tmarks2[3] = 10;\n\t\tmarks2[4] = 10;\n\t\tmarks2[5] = 10;\n\t\tmarks2[6] = 10;\n\t\tmarks2[7] = 10;\n\t\tmarks2[8] = 10;\n\t\tmarks2[9] = 10;\n\t\t\n\t\t// array works on index concept.\n\t\t// 7 - length of this array\n\t\t// highest index - 6\n\t\t// System.out.println(marks.length); // size = 7\n\t\t\n//\t\tfor(int i = 0; i < marks2.length; i++) {\n//\t\t\tSystem.out.println(marks2[i]);\n//\t\t}\n\t\t\n\t\tfor(int i = (marks.length-1) ; i >= 0 ;i--) {\n\t\t\tSystem.out.println(marks[i]);\n\t\t}\n\t\t\n\t\t// advantages\n\t\t// keep the collection\n\t\t// fastest available collection in any object oriented language\n\t\t// when we create array - we have to give size of that array \n\t\t// 10 of int(4) = 10*4 = 40 byte (JVM )\n\t\t\n\t\t// disavantage \n\t\t// array - we cannot chnage the size \n\t\t\n\t\t\n\t\t// multidimentional - 1D array\n\t\t// 2D array - 2 dimentions\n\t\tint[][] matrix = {{10,20},{20,30}}; // directly values \n\t\t\n\t\tint[][] matrix2 = new int[2][2]; // directly values\n\t\tmatrix2[0][0] = 10;\n\t\tmatrix2[0][1] = 20;\n\t\tmatrix2[1][0] = 20;\n\t\tmatrix2[1][1] = 30;\n\t\t\n\t\tint[][] matrix1 = new int[2][6]; // size\n\t\t// student 1 marks\n\t\tmatrix1[0][0] = 10;\n\t\tmatrix1[0][1] = 20;\n\t\tmatrix1[0][2] = 20;\n\t\tmatrix1[0][3] = 20;\n\t\tmatrix1[0][4] = 20;\n\t\tmatrix1[0][5] = 20;\n\t\t// student 2 marks\n\t\tmatrix1[1][0] = 10;\n\t\tmatrix1[1][1] = 20;\n\t\tmatrix1[1][2] = 20;\n\t\tmatrix1[1][3] = 20;\n\t\tmatrix1[1][4] = 20;\n\t\tmatrix1[1][5] = 20;\n\t\t\n\t\t\n\t\t\n\t}",
"public static void multiply(int[][] matrix1, int[][] matrix2) {\n\t\t int matrix1row = matrix1.length;\r\n\t\t int matrix1column = matrix1[0].length;//same as rows in B\r\n\t\t int matrix2column = matrix2[0].length;\r\n\t\t int[][] matrix3 = new int[matrix1row][matrix2column];\r\n\t\t for (int i = 0; i < matrix1row; i++) {//outer loop refers to row position\r\n\t\t for (int j = 0; j < matrix2column; j++) {//refers to column position\r\n\t\t for (int k = 0; k < matrix1column; k++) {\r\n\t\t \t //adds the products of row*column elements until the row/column is complete\r\n\t\t \t //updates to next row/column\r\n\t\t matrix3[i][j] = matrix3[i][j] + matrix1[i][k] * matrix2[k][j];\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t print(matrix3);\r\n\t\t }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tSystem.out.println(\"enter the number of rows\");\n\t\tint m=sc.nextInt();\n\t\tSystem.out.println(\"enter the number of columns\");\n\t\tint n=sc.nextInt();\n\t\t\n\t\tint matrix1[][]= new int[m][n];\n\t\tint matrix2[][]= new int[m][n];\n\t\tint sumMatrix[][]= new int[m][n];\n\t\tint diffMatrix[][]= new int[m][n];\n\t\tint proMatrix[][]= new int[m][n];\n\t\tSystem.out.println(\"enter matrix one\");\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tmatrix1[i][j]=sc.nextInt();\n\t\t}\n\t\t\n\t\tSystem.out.println(\"enter matrix two\");\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tmatrix2[i][j]=sc.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tsumMatrix[i][j]=matrix1[i][j]+matrix2[i][j];\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Sum matrix\");\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tSystem.out.print(sumMatrix[i][j]+\"\\t\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tdiffMatrix[i][j]=matrix1[i][j]-matrix2[i][j];\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Difference matrix\");\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tSystem.out.print(diffMatrix[i][j]+\"\\t\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t{\n\t\t\t\tfor(int k=0;k<n;k++)\n\t\t\t\t\tproMatrix[i][j]=matrix1[i][k]*matrix2[k][j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Product matrix\");\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tfor(int j=0;j<n;j++)\n\t\t\t\tSystem.out.print(proMatrix[i][j]+\"\\t\");\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}",
"public static void sort(int mat3d[][]) {\n \n }",
"public static void main(String[] args) {\n\t\t\r\n\t\tint [][] matrix={\r\n\t\t\t\t{10,15,2,76,-9},\r\n\t\t\t\t{85,-22,4,35,99},\r\n\t\t\t\t{64,68,31,7,-3},\r\n\t\t\t\t{1,53,94,33,8}\r\n\t\t};\r\n\t\t\r\n\t\tfor(int[] fila:matrix){\r\n\t\t\tSystem.out.println();//le da salto de linea cuando termina cada fila\r\n\t\t\tfor (int z:fila){\r\n\t\t\t\tSystem.out.print(z + \" \");\r\n\t\t\t}\r\n\t\t}\r\n\t\t/*int [][] matrix= new int[4][5];//primera dimension, segunda dimension\r\n\t\t\r\n\t\tmatrix [0][0]=5;\r\n\t\tmatrix [0][1]=18;\r\n\t\tmatrix [0][2]=29;\r\n\t\tmatrix [0][3]=80;\r\n\t\tmatrix [0][4]=3;\r\n\t\t\r\n\t\tmatrix [1][0]=-9;\r\n\t\tmatrix [1][1]=71;\r\n\t\tmatrix [1][2]=32;\r\n\t\tmatrix [1][3]=-24;\r\n\t\tmatrix [1][4]=62;\r\n\t\t\r\n\t\tmatrix [2][0]=54;\r\n\t\tmatrix [2][1]=22;\r\n\t\tmatrix [2][2]=-39;\r\n\t\tmatrix [2][3]=1;\r\n\t\tmatrix [2][4]=97;\r\n\t\t\r\n\t\tmatrix [3][0]=74;\r\n\t\tmatrix [3][1]=43;\r\n\t\tmatrix [3][2]=39;\r\n\t\tmatrix [3][3]=96;\r\n\t\tmatrix [3][4]=-63;\r\n\r\n\t\tfor (int i=0; i<4; i++){\r\n\t\t\tSystem.out.println();\r\n\t\t\tfor (int j=0; j<5; j++){\r\n\t\t\t\tSystem.out.print(matrix[i][j] + \" \");\r\n\t\t\t}\r\n\t\t}*/\r\n\t}",
"public Matrix(int[][] array)\n {\n matrix = array;\n }",
"public Matrix(int[][] array){\n this.matriz = array;\n }",
"void calcAllMatrixPPP(int iNode1, int iNode2, int iNode3) {\n\t\tdouble [] fPartials1 = m_fPartials[m_iCurrentPartials[iNode1]][iNode1];\n\t\tdouble [] fMatrices1 = m_fMatrices[m_iCurrentMatrices[iNode1]][iNode1];\n\t\tdouble [] fPartials2 = m_fPartials[m_iCurrentPartials[iNode2]][iNode2];\n\t\tdouble [] fMatrices2 = m_fMatrices[m_iCurrentMatrices[iNode2]][iNode2];\n\t\tdouble [] fPartials3 = m_fPartials[m_iCurrentPartials[iNode3]][iNode3];\n\t\tdouble sum1, sum2;\n\n\t\tint u = 0;\n\t\tint v = 0;\n\n\t\tfor (int l = 0; l < m_nMatrices; l++) {\n\n\t\t\tfor (int k = 0; k < m_nPatterns; k++) {\n\n int w = l * m_nMatrixSize;\n\n\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\tsum1 = sum2 = 0.0;\n\n\t\t\t\t\tfor (int j = 0; j < m_nStates; j++) {\n\t\t\t\t\t\tsum1 += fMatrices1[w] * fPartials1[v + j];\n\t\t\t\t\t\tsum2 += fMatrices2[w] * fPartials2[v + j];\n\n\t\t\t\t\t\tw++;\n\t\t\t\t\t}\n\n\t\t\t\t\tfPartials3[u] = sum1 * sum2;\n\t\t\t\t\tu++;\n\t\t\t\t}\n\t\t\t\tv += m_nStates;\n\t\t\t}\n\t\t}\n\t}",
"void iniciaMatriz() {\r\n int i, j;\r\n for (i = 0; i < 5; i++) {\r\n for (j = 0; j <= i; j++) {\r\n if (j <= i) {\r\n m[i][j] = 1;\r\n } else {\r\n m[i][j] = 0;\r\n }\r\n }\r\n }\r\n m[0][1] = m[2][3] = 1;\r\n\r\n// Para los parentesis \r\n for (j = 0; j < 7; j++) {\r\n m[5][j] = 0;\r\n m[j][5] = 0;\r\n m[j][6] = 1;\r\n }\r\n m[5][6] = 0; // Porque el m[5][6] quedo en 1.\r\n \r\n for(int x=0; x<7; x++){\r\n for(int y=0; y<7; y++){\r\n // System.out.print(\" \"+m[x][y]);\r\n }\r\n //System.out.println(\"\");\r\n }\r\n \r\n }",
"public void matrizAdjunta (){\n float tablaA[][]= getMatriz();\n setMatrizAdjunta(new float[3][3]);\n getMatrizAdjunta()[0][0]=(tablaA[1][1]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][1]);\n getMatrizAdjunta()[0][1]=-((tablaA[0][1]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][1]));\n getMatrizAdjunta()[0][2]=(tablaA[0][1]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][1]);\n \n getMatrizAdjunta()[1][0]=-((tablaA[1][0]*tablaA[2][2]) - (tablaA[1][2]*tablaA[2][0]));\n getMatrizAdjunta()[1][2]=-((tablaA[0][0]*tablaA[1][2]) - (tablaA[0][2]*tablaA[1][0]));\n getMatrizAdjunta()[1][1]=(tablaA[0][0]*tablaA[2][2]) - (tablaA[0][2]*tablaA[2][0]);\n \n getMatrizAdjunta()[2][0]=(tablaA[1][0]*tablaA[2][1]) - (tablaA[1][1]*tablaA[2][0]);\n getMatrizAdjunta()[2][1]=-((tablaA[0][0]*tablaA[2][1]) - (tablaA[0][1]*tablaA[2][0]));\n getMatrizAdjunta()[2][2]=(tablaA[0][0]*tablaA[1][1]) - (tablaA[0][1]*tablaA[1][0]);\n mostrarMatriz(getMatrizAdjunta(),\"Matriz adjunta\");\n }",
"void calcAllMatrixSSP(int iNode1, int iNode2, int iNode3) {\n\t\tint [] iStates1 = m_iStates[iNode1];\n\t\tint [] iStates2 = m_iStates[iNode2];\n\t\tdouble [] fMatrices1 = m_fMatrices[m_iCurrentMatrices[iNode1]][iNode1];\n\t\tdouble [] fMatrices2 = m_fMatrices[m_iCurrentMatrices[iNode2]][iNode2];\n\t\tdouble [] fPartials3 = m_fPartials[m_iCurrentPartials[iNode3]][iNode3];\n\t\tint v = 0;\n\n\t\tfor (int l = 0; l < m_nMatrices; l++) {\n\n\t\t\tfor (int k = 0; k < m_nPatterns; k++) {\n\n\t\t\t\tint state1 = iStates1[k];\n\t\t\t\tint state2 = iStates2[k];\n\n\t\t\t\tint w = l * m_nMatrixSize;\n\n if (state1 < m_nStates && state2 < m_nStates) {\n\n\t\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\t\tfPartials3[v] = fMatrices1[w + state1] * fMatrices2[w + state2];\n\n\t\t\t\t\t\tv++;\n\t\t\t\t\t\tw += m_nStates;\n\t\t\t\t\t}\n\n\t\t\t\t} else if (state1 < m_nStates) {\n\t\t\t\t\t// child 2 has a gap or unknown state so treat it as unknown\n\n\t\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\t\tfPartials3[v] = fMatrices1[w + state1];\n\n\t\t\t\t\t\tv++;\n\t\t\t\t\t\tw += m_nStates;\n\t\t\t\t\t}\n\t\t\t\t} else if (state2 < m_nStates) {\n\t\t\t\t\t// child 2 has a gap or unknown state so treat it as unknown\n\n\t\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\t\tfPartials3[v] = fMatrices2[w + state2];\n\n\t\t\t\t\t\tv++;\n\t\t\t\t\t\tw += m_nStates;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// both children have a gap or unknown state so set partials to 1\n\n\t\t\t\t\tfor (int j = 0; j < m_nStates; j++) {\n\t\t\t\t\t\tfPartials3[v] = 1.0;\n\t\t\t\t\t\tv++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"@Test\n public void testCreateRowIndices3(){\n int[][] a = new int[4][2];\n a[0][0] = 0;\n a[0][1] = 0;\n a[1][0] = 0;\n a[1][1] = 1;\n a[2][0] = 0;\n a[2][1] = 2;\n a[3][0] = 2;\n a[3][1] = 1;\n\n double[][] input = new double[4][4];\n\n for(int i = 0 ; i < a.length ; i++){\n input[a[i][0]][a[i][1]] = 1;\n }\n\n int[][] myIndices = HarderArrayProblems.createRowIndices(input);\n for(int i = 0 ; i < a.length ; i++){\n assertEquals(a[i][0], myIndices[i][0]);\n assertEquals(a[i][1], myIndices[i][1]);\n }\n }",
"public Matrix( int a ) {\n\tmatrix = new Object[a][a];\n }",
"public static void main(String[] args) throws IOException {\n\n\t\t\n\t\tdouble[] columnwise = {1.,2.,3.,4.,5.,6.,7.,8.,9.,10.,11.,12.};\n\t\tdouble[] condmat = {1.,3.,7.,9.};\n\t\tint[] matrixDimension = new int[10]; // dont except to ever use more than 4 cells. would by 99x99\n\n\tString[] inputARGNull = null ;\n\t\tArrayList<Integer> inputTestData = new ArrayList<>(Arrays.asList(11,2,3,6,11,18,45,88));\n\n//\t\tSystem.out.println();\n//\t\tSystem.out.println(inputTestData.toString());\n//\t\tSystem.out.println(\"Test Running Class: \" +this.getClass() ) ;\t\n//\t\tMatrix testRunMatrix = new Matrix(2, 3, inputTestData );\n\n\t\tMatrix testRunMatrix = new Matrix();\n\t\ttestRunMatrix.setName(\"testRunMatrix\");\n\t\ttestRunMatrix.displayCompact();\n//\t\tclearScreen();\n\n\t\tMatrix firstRunMatrixParams = new Matrix(3,3, inputTestData);\n\t\tfirstRunMatrixParams.setName(\"firstRunMatrixParams\");\n\t\tfirstRunMatrixParams.displayCompact();\n//\t\tclearScreen();\n\t\t\n\t\tMatrix secondRunMatrixParams = new Matrix(3,3, columnwise); // or condmat\n\t\tsecondRunMatrixParams.setName(\"secondRunMatrixParams\");\n\t\tsecondRunMatrixParams.displayCompact();\n//\t\tclearScreen();\n\t\t\n\t//\tfirstRunMatrixParams.displayDeepString();\n\t//\tsecondRunMatrixParams.displayDeepString();\n\t\tmatrixDimension[0]=2;\n\t\tmatrixDimension[1]=3;\n\t\n\t\tMatrix outOfSeqTestMatrix = new Matrix(matrixDimension, columnwise);\n\t\tsecondRunMatrixParams.setName(\"outOfSeqTestMatrix\");\n\t\tsecondRunMatrixParams.displayCompact();\n\t\t\n\t\tMatrix addResult = firstRunMatrixParams.Add(secondRunMatrixParams);\n\t\taddResult.setName(\"addResult\");\n\t\t\n\t\taddResult.displayCompact();\n//\t\tclearScreen();\n\t\t\n//\t\taddResult = addResult.Multiply((22/7));\n\t\taddResult = addResult.Multiply(3.623);\n\t\taddResult.displayMore();\n\t\t\n\t\t\n\t\tString[] testInput1 = new String[]{\"-c\",\"5x4\",\"12\", \"32\", \"43\", \"44\", \"5\",\"5\",\"5\",\"4\",\"4\",\".999999999\",\"0\",\"0\",\"0\",\"9\",\"4\",\"2.71826\",\"3.14159\",\"33\",\"11\",\"0.1136\",\"888\",\"7\",\"6\",\"5\"};\n\t\tInputStringObj myTestCase = new InputStringObj(\"-c\", testInput1);\n\t\tInputNumericObj myNumTest = new InputNumericObj(myTestCase);\n\t\t\n\t\tSystem.out.println(\"And Now a Matrix from a Numeric Object\");\n\n\t\tMatrix numObjBasedMatrix = new Matrix(myNumTest,\"TestMatrix.java_string\");\n\t\tnumObjBasedMatrix.setName(\"numObjBasedMatrix\");\n\t\tnumObjBasedMatrix.displayCompact();\n\tSystem.out.println(\"\");\n\tSystem.out.println(\"\");\n\t\tnumObjBasedMatrix.displayMore();\n\t\t\n\t\t\n//\t\tclearScreen();\n\t\t\n\t}",
"int main()\n {\n int tri[][] = {{1, 0, 0},\n {4, 8, 0},\n {1, 5, 3}};\n return 0;\n }",
"public static void main(String[] args) {\n\r\n\t\tint a[][] = new int[2][3];\r\n\r\n\t\ta[0][0] = 2;\r\n\t\ta[0][1] = 4;\r\n\t\ta[0][2] = 5;\r\n\t\ta[1][0] = 3;\r\n\t\ta[1][1] = 4;\r\n\t\ta[1][2] = 7;\r\n\r\n\t\t// int b[][]= {{2,4,5},{3,4,7}}.....; you can declare Multidimesion as well\r\n\r\n\t\t// System.out.println(a[1][0]);\r\n\r\n\t\tfor (int i = 0; i < 2; i++)\r\n\r\n\t\t{\r\n for(int j=0; j<3;j++)\r\n {\r\n \t System.out.println(a[i][j]+ \"\");\r\n }\r\n\t\t} \r\n\r\n\t}",
"public int[][] getMatrix(){\n\t\treturn matrix;\n\t}",
"void setAdjForFourthType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, matrixOfSquares[1][1] , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], matrixOfSquares[2][0], null, null );\n matrixOfSquares[1][1].setCardinalSquare(matrixOfSquares[0][1], matrixOfSquares[2][1], null, matrixOfSquares[1][2] );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , null, matrixOfSquares[1][1], matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(null, matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][0].setCardinalSquare(matrixOfSquares[1][0],null, null, matrixOfSquares[2][1] );\n matrixOfSquares[2][1].setCardinalSquare(matrixOfSquares[1][1], null, matrixOfSquares[2][0], matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(null, null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n\n }",
"private void compareMatrices(double[][] firstM, double[][] secondM) {\n assertEquals(firstM.length, secondM.length);\n\n for(int i=0; i<firstM.length; i++) {\n assertEquals(firstM[i].length, secondM[i].length);\n\n for(int j=0; j<firstM[0].length; j++) {\n assertEquals(\"i,j = \"+i+\",\"+j, \n firstM[i][j], secondM[i][j], TOLERANCE);\n }\n }\n }",
"private int[][] initialStateMatrix() {\n return new int[][]{{2,1,-1,3,0,-1},\n {2,-1,-1,3,-1,-1},\n {2,-1,5,4,8,-1},\n {4,-1,-1,-1,-1,-1},\n {4,-1,5,-1,8,-1},\n {7,6,-1,-1,-1,-1},\n {7,-1,-1,-1,-1,-1},\n {7,-1,-1,-1,8,-1},\n {-1,-1,-1,-1,8,-1}};\n }",
"Matrix(Matrix first, Matrix second) {\n if (first.getColumns() == second.getRows()) {\n this.rows = first.getRows();\n this.columns = second.getColumns();\n matrix = new int[first.getRows()][second.getColumns()];\n for (int col = 0; col < this.getColumns(); col++) {\n int sum;\n int commonality = first.getColumns(); // number to handle summation loop\n for (int rw = 0; rw < this.getRows(); rw++) {\n sum = 0;\n // summation loop\n for (int x = 0; x < commonality; x++) {\n sum += first.getValue(rw, x) * second.getValue(x, col);\n }\n matrix[rw][col] = sum;\n }\n\n }\n } else {\n System.out.println(\"Matrices cannot be multiplied\");\n }\n }",
"public interface Array2D {\n}",
"public static void main(String[] args) {\n\t\t\r\n\t\tint[][] arr=new int[][]{{21,22},{32,25},{25,58}};\r\nfor (int i = 0; i < arr.length; i++) {\r\n\tfor (int j = 0; j < 2; j++) {\r\n\t\tSystem.out.println(arr[i][j]+\" \");\r\n\t\t\r\n\t}\r\n\tSystem.out.println(\" \");\r\n\t\r\n}\r\n//int[][][] arr2=new int[][][] {{{10,12},{30}},{{30,15},{80}}};\r\n//for (int i = 0; i < arr2.length; i++) {\r\n//\tfor (int j = 0; j < 2; j++) {\r\n//\t\tfor (int j2 = 0; j2 < 3; j2++) {\r\n//\t\t\tSystem.out.println(arr2[i][j][j2]+\" \");\r\n//\t\t\t\r\n//\t\t}\r\n//\t\tSystem.out.println(\" \");\r\n//\t\t\r\n//\t}\r\n//\t\r\n//}\r\n\t}",
"public int[][] getMatriceAdjacence()\n {\n return matriceAdjacence;\n }",
"public int[][] getAdjacencyMatrix();",
"public static void main(String[] args) {\n int[][] array=new int[3][5];\n int[][] array1=new int[3][];\n int[][] array3=new int[][]{};\n int[] a[]={};\n\n int[][] array4=new int[][] {\n {1,2,3},\n {4,5,6,7,9,10},\n {9,10,11,15}\n };\n System.out.println(array4.length);\n System.out.println(array4[0].length);\n System.out.println(array4[1].length);\n System.out.println(array4[0][1]);\n System.out.println(array4[2][3]);\n\n int sum=0;\n for (int i=0; i<array4.length; i++) {\n for (int j=0; j<array4[i].length; j++) {\n sum=sum+array4[i][j];\n System.out.print(array4[i][j]+\" \");\n }\n }\n System.out.println();\n System.out.println(\"Sum of all numbers is: \" +sum);\n\n }",
"Matrix(int r,int c)\n {\n this.r=r;\n this.c=c;\n arr=new int[r][c];\n }",
"public static void main(String[] args) {\n\r\nint sale[][][] = new int[][][] {{{1,2,3,4},{5,6,7,8}},{{9,10,11,12,13},{14,15,16,17}}};\r\n\r\nfor(int i=0; i<2; i++)\r\n\tfor(int j=0; j<2; j++)\r\n\t\tfor( int k=0; k<2; k++)\r\n\t\t\tSystem.out.println(sale[i][j][k]);\r\n\r\n\r\n\t}",
"public void createBlock(int iOffset, int jOffset, int[][] mat1, int[][] mat2, int[][] mat3){\n int jstart = jOffset;\n xmin[0] = 999;\n xmin[1] = 999;\n xmin[2] = 999;\n // row 1\n p.get(0).setI(iOffset); //col 1\n p.get(0).setJ(jOffset);\n p.get(0).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(1).setI(iOffset); //col 2\n p.get(1).setJ(jOffset);\n p.get(1).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(2).setI(iOffset); // col 3\n p.get(2).setJ(jOffset);\n p.get(2).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n \n // row 2\n jOffset = jstart;\n iOffset++;\n p.get(3).setI(iOffset);\n p.get(3).setJ(jOffset);\n p.get(3).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(4).setI(iOffset);\n p.get(4).setJ(jOffset);\n p.get(4).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(5).setI(iOffset);\n p.get(5).setJ(jOffset);\n p.get(5).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n \n //row 3\n jOffset = jstart;\n iOffset++;\n p.get(6).setI(iOffset);\n p.get(6).setJ(jOffset);\n p.get(6).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(7).setI(iOffset);\n p.get(7).setJ(jOffset);\n p.get(7).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n jOffset++;\n p.get(8).setI(iOffset);\n p.get(8).setJ(jOffset);\n p.get(8).setScore(mat1[iOffset][jOffset], mat2[iOffset][jOffset], mat3[iOffset][jOffset]);\n if (mat1[iOffset][jOffset]<xmin[0]){\n xmin[0] = mat1[iOffset][jOffset];\n }\n if (mat2[iOffset][jOffset]<xmin[1]){\n xmin[1] = mat2[iOffset][jOffset];\n }\n if (mat3[iOffset][jOffset]<xmin[2]){\n xmin[2] = mat3[iOffset][jOffset];\n }\n }",
"@Override\n public Matrix idct(final MatrixView in) {\n check(in);\n double[][] out = new double[in.getRows()][in.getColumns()];\n double tmp1, tmp2, tmp3, tmp4;\n double tmpm0 = 0, tmpm1 = 0, tmpm2 = 0, tmpm3 = 0, tmpm4 = 0, tmpm5 = 0, tmpm6 = 0, tmpm7 = 0;\n double tmpm20, tmpm21, tmpm22, tmpm23, tmpm24, tmpm25, tmpm26, tmpm27 = 0;\n double[] outtmpmyi = null;\n\n for (int my = 0; my < in.getRows(); my += SIZE) {\n for (int mx = 0; mx < in.getColumns(); mx += SIZE) {\n for (int i = 0; i < 8; i++) {\n outtmpmyi = out[my + i];\n\n tmpm0 = in.getDouble(my + i, mx + 0);\n tmpm1 = in.getDouble(my + i, mx + 1);\n tmpm2 = in.getDouble(my + i, mx + 2);\n tmpm3 = in.getDouble(my + i, mx + 3);\n tmpm4 = in.getDouble(my + i, mx + 4);\n tmpm5 = in.getDouble(my + i, mx + 5);\n tmpm6 = in.getDouble(my + i, mx + 6);\n tmpm7 = in.getDouble(my + i, mx + 7);\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n outtmpmyi[mx + 0] = tmpm0 + tmpm7;\n outtmpmyi[mx + 7] = tmpm0 - tmpm7;\n outtmpmyi[mx + 1] = tmpm1 + tmpm6;\n outtmpmyi[mx + 6] = tmpm1 - tmpm6;\n outtmpmyi[mx + 2] = tmpm2 + tmpm5;\n outtmpmyi[mx + 5] = tmpm2 - tmpm5;\n outtmpmyi[mx + 3] = tmpm3 + tmpm4;\n outtmpmyi[mx + 4] = tmpm3 - tmpm4;\n\n }\n\n for (int i = 0; i < 8; i++) {\n\n tmpm0 = out[my + 0][mx + i];\n tmpm1 = out[my + 1][mx + i];\n tmpm2 = out[my + 2][mx + i];\n tmpm3 = out[my + 3][mx + i];\n tmpm4 = out[my + 4][mx + i];\n tmpm5 = out[my + 5][mx + i];\n tmpm6 = out[my + 6][mx + i];\n tmpm7 = out[my + 7][mx + i];\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n out[my + 0][mx + i] = tmpm0 + tmpm7;\n out[my + 7][mx + i] = tmpm0 - tmpm7;\n out[my + 1][mx + i] = tmpm1 + tmpm6;\n out[my + 6][mx + i] = tmpm1 - tmpm6;\n out[my + 2][mx + i] = tmpm2 + tmpm5;\n out[my + 5][mx + i] = tmpm2 - tmpm5;\n out[my + 3][mx + i] = tmpm3 + tmpm4;\n out[my + 4][mx + i] = tmpm3 - tmpm4;\n }\n }\n }\n\n return new DoubleMatrix(in.getRows(), in.getColumns(), out);\n }",
"void setAdjForSecondType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, null , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], matrixOfSquares[0][3]);\n matrixOfSquares[0][3].setCardinalSquare(null,matrixOfSquares[1][3] , matrixOfSquares[0][2], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], null, null, matrixOfSquares[1][1] );\n matrixOfSquares[1][1].setCardinalSquare(null, matrixOfSquares[2][1], matrixOfSquares[1][0], null );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , matrixOfSquares[2][2], null, matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(matrixOfSquares[0][3], matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][1].setCardinalSquare(matrixOfSquares[1][1],null, null, matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(matrixOfSquares[1][2], null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n\n }",
"public static void main(String[] args) {\n\t\tint a = 4; // single variable\n\t\tint b[] = new int[5]; // declares an array and allocate memory for the values: Method 1\n\t\tb[0] = 1;\n\t\tb[1] = 2;\n\t\tb[2] = 3;\n\t\tb[3] = 4;\n\t\tb[4] = 5;\n\t\t\n\t\tfor(int i = 0; i <b.length; i++) {\n\t\t\tSystem.out.print(b[i]);\n\t\t}\n\t\tSystem.out.println();\n\t\tint c[] = {4,2,3,4,5};\n\t\tfor(int i = 0; i <c.length; i++) {\n\t\t\tSystem.out.print(c[i]);\n\t\t}\n\t\tSystem.out.println();\n\t\tint m[][] = new int[2][2];\n\t\tm[0][0] = 2;\n\t\tm[0][1]= 3;\n\t\tm[1][0] = 4;\n\t\tm[1][1] = 5;\n\t\t\n\t\tSystem.out.println(m[1][0] + \"*\");\n\t\t\n\t\tfor(int i = 0; i<m.length; i++) {\n\t\t\tfor(int j = 0; j<m.length; j++) {\n\t\t\t\tSystem.out.println(m[i][j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\tint n[][] = {{2,3}, {4,5}, {5,6}};\n\t\tfor(int i = 0; i<3; i++) {\n\t\t\tfor(int j = 0; j<2; j++) {\n\t\t\t\tSystem.out.print(n[i][j] + \"\\t\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\n\t}",
"public void populateMatrices(Matrix arrayOfMatrices[]){\n String[] rows;\n String[] columns;\n matrixCounter=0;\n try{ \n br = new BufferedReader(new FileReader(\"E:\\\\NUST\\\\6th Semester\\\\Advanced Programming - AP\\\\Labs\\\\Advanced Programming Lab-1\\\\src\\\\pk\\\\edu\\\\nust\\\\seecs\\\\bscs2\\\\advancedprogramming\\\\lab1\\\\matrices.txt\") );\n br.readLine(); //skipping first line that explains the format of matrices\n while( (currentLine = br.readLine()) != null){ \n if (currentLine.trim().length() > 0){ \n //parse the string. Get the rows and columns. Count length of rows and columns. ADD DELETE FEATURE\n rows = currentLine.split(\";\"); //get rows of current matrix\n currentMatrixRows = rows.length;\n columns = rows[0].split(\"\\\\s\"); //get each element of current row\n currentMatrixColumns = columns.length;\n //call the Matrix parameterized constructor to create a matrix of dimenstions currentMatrixRows x currentMatrixColumns\n arrayOfMatrices[matrixCounter] = new Matrix(currentMatrixRows, currentMatrixColumns); \n \n for(int i=0; i< rows.length; i++){\n columns = rows[i].split(\"\\\\s\"); //get each element of current row \n if(columns.length != currentMatrixColumns){\n System.out.println(\"INVALID MATRIX ENTERED. NUMBER OF COLUMNS IN EVERY ROW SHOULD BE EQUAL.\");\n System.exit(0); \n }\n for(int j=0; j< columns.length ; j++){ \n arrayOfMatrices[matrixCounter].setMatrixElement(i, j, Integer.parseInt(columns[j]) );\n }\n }\n //matrices.add(temp);\n totalMatrices++;\n //arrayOfMatrices[matrixCounter].toString();\n matrixCounter++;\n \n }\n } \n }catch(IOException e){\n e.printStackTrace(); \n }finally{ \n try{\n if(br!=null)\n br.close();\n }catch(IOException e){\n e.printStackTrace();\n }\n } \n \n \n// for(int i=0; i<totalMatrices;i++){\n// arrayOfMatrices[i] = new Matrix(2,3);\n// }\n }",
"public static void main(String[] args) {\n\r\n\t\tMatrices1 matrix = new Matrices1(10, 3);\r\n\t\tMatrices1 matrix2 = new Matrices1(3, 1);\r\n\t\t\r\n\r\n\t\tmatrix.initialize(matrix.array);\r\n\t\tmatrix2.initialize(matrix2.array);\r\n\t\t\r\n\t\tdouble [][]output=Matrices1.matrixProduct(matrix.array, matrix2.array, matrix.row1, matrix2.column1, matrix.column1);\r\n\t\tfor (int i = 0; i < matrix.row1; i++) {\r\n\t\t\tfor (int j = 0; j < matrix2.column1; j++) {\r\n\t\t\t\tSystem.out.println(output[i][j]);\r\n\t\t\t}//end of forloop\r\n\t\t}//end of forloop\r\n\t}",
"public void llenarMatriz(){\n Scanner in = new Scanner(System.in);\n setMatriz(new float[3][3]);\n //int matriz1[][] ={{2,3,1},{1,-1,2},{0,1,0}};\n //int matriz1[][] ={{5,-2,3},{1,2,2},{-4,-1,3}};\n //float matriz1[][] ={{1,-2,5},{3,3,-1},{0,4,-2}};\n for(int i=0;i<3;i++){\n for(int j=0;j<3;j++){\n System.out.println(\"Ingresa valor la posición [\"+i+\"][\"+j+\"]\");\n getMatriz()[i][j]= in.nextInt();\n }\n }\n mostrarMatriz(getMatriz(),\"Matriz inicial\");\n }",
"public static void main(String[] args) {\n\t\tint matrix[][] = new int [2][3];\r\n\t\t\r\n\t\tmatrix[0][0]=00;\r\n\t\tmatrix[0][1]=01;\r\n\t\tmatrix[0][2]=02;\r\n\t\tmatrix[1][0]=10;\r\n\t\tmatrix[1][1]=11;\r\n\t\tmatrix[1][2]=12;\r\n\t\t\r\n\t\t//i para las filas, j para las columnas\r\n\t\tfor(int i=0; i<2 ; i++){ \r\n\t\t\tSystem.out.println();\r\n\t\t\tfor(int j=0; j<3; j++){\r\n\t\t\t\tSystem.out.print(matrix[i][j]+\" \");\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t}",
"private static BigInteger[][] multiply (BigInteger a[][], BigInteger b[][])\n {\n BigInteger x = (a[0][0].multiply(b[0][0])).add(a[0][1].multiply(b[1][0]));\n BigInteger y = (a[0][0].multiply(b[0][1])).add(a[0][1].multiply(b[1][1]));\n BigInteger z = (a[1][0].multiply(b[0][0])).add(a[1][1].multiply(b[1][0]));\n BigInteger w = (a[1][0].multiply(b[0][1])).add(a[1][1].multiply(b[1][1]));\n \n return new BigInteger[][]{{x, y},{z, w}};\n }",
"Matrix()\n {\n x = new Vector();\n y = new Vector();\n z = new Vector();\n }",
"public interface Matrix {\n\n void initZeroValues();\n\n void fillRandomValues();\n\n int getRows();\n\n int getColumns();\n\n Entity getEntity(int i, int j);\n\n String toString();\n}",
"public Map(){\n this.matrix = new int[10][10];\n }",
"public static void main(String[] args) {\n\t\tint ma[][] = new int[3][2];\n\t\t//how to print multi-dimentional array\n\t\tSystem.out.println(Arrays.deepToString(ma)); //[ [0, 0], [0, 0], [0, 0] ]\n\t\t\n\t\t//how to assing values to the elements\n\t\tma[0][1] = 2;\n\t\tSystem.out.println(Arrays.deepToString(ma)); //[ [0, 2], [0, 0], [0, 0] ]\n\t\t\n\t\tma[2][0] = 5;\n\t\tSystem.out.println(Arrays.deepToString(ma)); //[ [0, 2], [0, 0], [5, 0] ]\n\t\t\n\t\tma[0][0] = 1;\n\t\tSystem.out.println(Arrays.deepToString(ma)); //[ [1, 2], [0, 0], [5, 0] ]\n\t\t\n\t\tma[1][0] = 3;\n\t\tSystem.out.println(Arrays.deepToString(ma)); //[ [1, 2], [3, 0], [5, 0] ]\n\t\t\n\t\tma[1][1] = 4;\n\t\tSystem.out.println(Arrays.deepToString(ma)); //[ [1, 2], [3, 4], [5, 0] ]\n\t\t\n\t\tma[2][1] = 6;\n\t\tSystem.out.println(Arrays.deepToString(ma)); //[ [1, 2], [3, 0], [5, 6] ]\n\t\t\n\t\tint maa[][] = { {1}, {3, 4}, {5, 6, 7} };\n\t\tSystem.out.println(Arrays.deepToString(maa));\n\t\t\n\t\t//how to print a specific inner arrays on the console\n\t\tSystem.out.println(Arrays.toString(maa[1])); //[3,4]\n\t\t\n\t\t// how to print a specific element in a multidimentioanl array\n\t\tSystem.out.println(maa[2][1]); // 6\n\t\t\n\t\t// How to print all elements one by one on the console in the same line with aa \"*\" at the beginning \n\t\t//of very elemnt\n\t\t\n\t\tfor(int i=0; i<maa.length; i++) {\n\t\t\t\n\t\t\tfor (int k=0; k<maa[i].length; k++) {\n\t\t\t\tSystem.out.print(\"*\" + maa[i][k]); //*1*3*4*5*6*7\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\t//How to find the product of all elements in the array \"maa\"\n\n\t\tint product = 1; // for addition begin with 1\n\t\tfor(int i=0; i<maa.length; i++) {\n\t\t\tfor(int k=0; k<maa[i].length; k++) {\n\t\t\t\tproduct = product * maa[i][k];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The product of all elements: \" + product); //The product of all elements: 2520\n\t\t\n\t\t// How to find the sum of all elements (Homework)\n\t\t\n\t\tint sum = 0; // for sum begin with 0\n\t\tfor(int i=0; i<maa.length; i++) {\n\t\t\tfor(int k=0; k<maa[i].length; k++) {\n\t\t\t\tsum = sum + maa[i][k];\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"The sum of all elements: \" + sum); //The sum of all elements: 26\n\t\t\n\n\t\t//yeni bi array yaz otomatik\n\t\tint count=1;\n\t\t\tfor(int i=0;i<3;i++) {\n\t\t\tfor(int k=0;k<2;k++) {\n\t\t\t\tma[i][k]=count;\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(Arrays.deepToString(ma)); //[[1, 2], [3, 4], [5, 6]]\n\t\n\t\t \n\t}",
"public Matrix33() {\r\n // empty\r\n }",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner (System.in);\r\n\t\t\r\n\t\tint matriz[][]=new int[4][4];\r\n\t\tmatriz[0][0] = 1;\r\n\t\tmatriz[0][1] = 2;\r\n\t\tmatriz[0][2] = 3;\r\n\t\tmatriz[0][3] = 4;\r\n\t\tmatriz[1][0] = 5;\r\n\t\tmatriz[1][1] = 6;\r\n\t\tmatriz[1][2] = 7;\r\n\t\tmatriz[1][3] = 8;\r\n\t\tmatriz[2][0] = 9;\r\n\t\tmatriz[2][1] = 10;\r\n\t\tmatriz[2][2] = 11;\r\n\t\tmatriz[2][3] = 12;\r\n\t\tmatriz[3][0] = 13;\r\n\t\tmatriz[3][1] = 14;\r\n\t\tmatriz[3][2] = 15;\r\n\t\tmatriz[3][3] = 16;\r\n\t\t\r\n\t\t\r\n\t\tint vectorfila[]=new int[4];\r\n\t\tint vectorcolumna[]=new int[4];\r\n\t\t\r\n\t\t\r\n\t\tvectorfila[0]=matriz[0][0]+matriz[0][1]+matriz[0][2]+matriz[0][3];\r\n\t\tvectorfila[1]=matriz[1][0]+matriz[1][1]+matriz[1][2]+matriz[1][3];\r\n\t\tvectorfila[2]=matriz[2][0]+matriz[2][1]+matriz[2][2]+matriz[2][3];\r\n\t\tvectorfila[3]=matriz[3][0]+matriz[3][1]+matriz[3][2]+matriz[3][3];\r\n\t\t\r\n\t\tvectorcolumna[0]=matriz[0][0]+matriz[1][0]+matriz[2][0]+matriz[3][0];\r\n\t\tvectorcolumna[1]=matriz[0][1]+matriz[1][1]+matriz[2][1]+matriz[3][1];\r\n\t\tvectorcolumna[2]=matriz[0][2]+matriz[1][2]+matriz[2][2]+matriz[3][2];\r\n\t\tvectorcolumna[3]=matriz[0][3]+matriz[1][3]+matriz[2][3]+matriz[3][3];\r\n\t\t\r\n\t\tsc.close();\r\n\t}",
"void calcAllMatrixSPP(int iNode1, int iNode2, int iNode3) {\n\t\tint [] iStates1 = m_iStates[iNode1];\n\t\tdouble [] fMatrices1 = m_fMatrices[m_iCurrentMatrices[iNode1]][iNode1];\n\t\tdouble [] fPartials2 = m_fPartials[m_iCurrentPartials[iNode2]][iNode2];\n\t\tdouble [] fMatrices2 = m_fMatrices[m_iCurrentMatrices[iNode2]][iNode2];\n\t\tdouble [] fPartials3 = m_fPartials[m_iCurrentPartials[iNode3]][iNode3];\n\n\t\tdouble sum, tmp;\n\n\t\tint u = 0;\n\t\tint v = 0;\n\n\t\tfor (int l = 0; l < m_nMatrices; l++) {\n\t\t\tfor (int k = 0; k < m_nPatterns; k++) {\n\n\t\t\t\tint state1 = iStates1[k];\n\n int w = l * m_nMatrixSize;\n\n\t\t\t\tif (state1 < m_nStates) {\n\n\n\t\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\t\ttmp = fMatrices1[w + state1];\n\n\t\t\t\t\t\tsum = 0.0;\n\t\t\t\t\t\tfor (int j = 0; j < m_nStates; j++) {\n\t\t\t\t\t\t\tsum += fMatrices2[w] * fPartials2[v + j];\n\t\t\t\t\t\t\tw++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfPartials3[u] = tmp * sum;\n\t\t\t\t\t\tu++;\n\t\t\t\t\t}\n\n\t\t\t\t\tv += m_nStates;\n\t\t\t\t} else {\n\t\t\t\t\t// Child 1 has a gap or unknown state so don't use it\n\n\t\t\t\t\tfor (int i = 0; i < m_nStates; i++) {\n\n\t\t\t\t\t\tsum = 0.0;\n\t\t\t\t\t\tfor (int j = 0; j < m_nStates; j++) {\n\t\t\t\t\t\t\tsum += fMatrices2[w] * fPartials2[v + j];\n\t\t\t\t\t\t\tw++;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tfPartials3[u] = sum;\n\t\t\t\t\t\tu++;\n\t\t\t\t\t}\n\n\t\t\t\t\tv += m_nStates;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public Matriz(Complejo[][] numeros){\n\t\tthis.numeros = numeros;\n\t}",
"static void printMatrix(int[][] inp){\n\n for(int i=0;i<inp.length;i++){\n for(int j=0;j<inp[0].length;j++){\n System.out.print(inp[i][j]+\" \");\n }\n System.out.println(\"\");\n }\n }",
"public int[][] getMatriceValeurs()\n {\n return matriceValeurs;\n }",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int i = scanner.nextInt();\n int j = scanner.nextInt();\n\n int[][] matrix = new int[i][j];\n\n for (int k = 0; k < i; k++) {\n for (int l = 0; l < j; l++) {\n matrix[k][l] = scanner.nextInt();\n }\n }\n\n int n = scanner.nextInt();\n int m = scanner.nextInt();\n\n int tmp;\n\n for (int k = 0; k < i; k++) {\n tmp = matrix[k][n];\n matrix[k][n] = matrix[k][m];\n matrix[k][m] = tmp;\n }\n\n for (int[] ints : matrix) {\n for (int l = 0; l < j; l++) {\n System.out.print(ints[l] + \" \");\n }\n System.out.println();\n }\n\n }",
"public static void main(String[] args) {\n int arr1[][] = {{1,89,75},{56,20,15},{63,02,30}};\n int arr2[][] = {{48,8,02},{78,280,1895},{3,0562,390}};\n //int arr2[][] = {{40,50,60},{8,52,82},{88,90,02}};\n //int arr2[][] = {{48,8,02},{78,280,1895},{3,0562,390}};\n\n int arrSum[][] = new int[3][3];\n int arrSub[][] = new int[3][3];\n int arrMult[][] = new int[3][3];\n\n System.out.println(\"array1\");\n for(int i = 0; i<arr1.length; i++){\n for(int j=0; j<arr1.length; j++){\n System.out.print(arr1[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println();\n\n\n System.out.println(\"array2\");\n for(int i = 0; i<arr1.length; i++){\n for(int j=0; j<arr1.length; j++){\n System.out.print(arr2[i][j] + \" \");\n }\n System.out.println();\n }\n\n for(int i = 0; i < arr1.length; i++){\n for(int j = 0; j < arr1.length; j++){\n arrSum[i][j] = arr1[i][j]+arr2[i][j];\n arrSub[i][j] = arr1[i][j]-arr2[i][j];\n //arrMult[i][j] = arr1[i][j]*arr2[i][j];\n }\n System.out.println();\n }\n for(int i = 0; i <arr2.length;i++){\n for(int j = 0; j<arr2.length;j++){\n arrMult[i][j] = 0;\n for(int k =0; k<3;k++){\n arrMult[i][j] += arr1[i][k]*arr2[k][j];\n }\n }\n }\n System.out.println();\n System.out.println(\"matrix addition ...\");\n for(int i = 0; i<arr1.length; i++){\n for(int j=0; j<arr1.length; j++){\n System.out.print(arrSum[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println();\n\n\n System.out.println(\"matrix subtraction ...\");\n for(int i = 0; i<arr1.length; i++){\n for(int j=0; j<arr1.length; j++){\n System.out.print(arrSub[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println();\n\n\n\n System.out.println(\"matrix multiplication ...\");\n for(int i = 0; i<arr1.length; i++){\n for(int j=0; j<arr1.length; j++){\n System.out.print(arrMult[i][j] + \" \");\n }\n System.out.println();\n }\n System.out.println();\n\n\n \n }",
"public static void main(String[] args) {\n\t// write your code here\n int[][] input = new int[3][3];\n input[1][1] = 1;\n\n Solution sol = new Solution();\n sol.printMatrix(input);\n int[][] output = sol.updateMatrix(input);\n sol.printMatrix(output);\n\n }",
"public Matrix() {\n\tmatrix = new Object[DEFAULT_SIZE][DEFAULT_SIZE];\n }",
"public void compararMatrix(Estado_q es1, Estado_q es2, int filest,short tam,int tamañoEsta){\n if(es1.isFinal()==es2.isFinal()){\n //contador para vecto de alfabeto o transiciones\n int con=0;\n //si son inidistinguibles los estados, se insertan en la matriz sus estados destinos respecto a transiciones\n for(int cont=1;cont<=(int)tam;cont++){\n matrix[filest][cont].setEst1(es1.getTransiçaosE(con));\n matrix[filest][cont].setEst2(es2.getTransiçaosE(con)); \n con++;\n }\n //comparamos en la misma fila y distintas columnas, si hay alguna pareja igual a la original, para revisarla\n //pareja original es la de la columna 0, de donde se obtuvieron los estados de las columnas insertadas\n for(int k=1;k<=(int)tam;k++){\n if((matrix[filest][k].getEst1().getNombre()==es1.getNombre())&&(matrix[filest][k].getEst2().getNombre()\n ==es2.getNombre())){\n matrix[filest][k].setRevisado(true);\n }\n }\n //se setea verdadera la revision de la posicion donde estabamos\n matrix[filest][0].setRevisado(true);\n \n //terminado de insertar todos los estados es una fila(for de arriba), se lee la matrix a buscar nuevos estados sin revisar\n //para colocarlos una posicion mas abajo\n for(int fil=0;fil<=tamañoEsta;fil++){\n for(int col=0;col<=(int)tam;col++){\n \n //se busca en la matriz alguna pareja de estados que sea igual a la original para marcarla revisada\n if((matrix[fil][col]!=null)&&(matrix[fil][col].getEst1().getNombre()==es1.getNombre())&&\n (matrix[fil][col].getEst2().getNombre())==es2.getNombre()){\n matrix[fil][col].setRevisado(true);\n }\n \n //si la casilla no esta revisada\n if((matrix[fil][col].isRevisado()==false)&&(matrix[fil][col]!=null)){\n \n //vamos a buscar si no esta esta posicion ya verificada\n for(int row=0;row<=tamañoEsta;row++){\n for(int cols=0;cols<=(int)tam;cols++){\n if((matrix[fil][col].getEst1().getNombre()==matrix[row][cols].getEst1().getNombre())&&\n (matrix[fil][col].getEst2().getNombre()==matrix[row][cols].getEst2().getNombre())\n &&(matrix[row][cols].isRevisado()==true)){\n matrix[fil][col].setRevisado(true);\n }\n }\n }\n if((matrix[fil][col].isRevisado()==false)&&(matrix[fil][col]!=null)){\n \n //si la siguiente fila esta nula\n if(matrix[fil+1][0]==null){\n //se inerta la casilla con sus estados en una fila abajo\n matrix[fil+1][0].setEst1(matrix[fil][col].getEst1());\n matrix[fil+1][0].setEst2(matrix[fil][col].getEst2());\n tamañoEsta++;\n //se vuelve a llamar al metodo, para volver a verificar desde la columna e estados si son inidistinguibles\n compararMatrix(matrix[fil][col].getEst1(),matrix[fil][col].getEst2(),filest+1,tam,tamañoEsta);\n\n }\n else\n {\n matrix[col][0].setEst1(matrix[fil][col].getEst1());\n matrix[col][0].setEst2(matrix[fil][col].getEst2());\n //se vuelve a llamar al metodo, para volver a verificar desde la columna e estados si son inidistinguibles\n compararMatrix(matrix[fil][col].getEst1(),matrix[fil][col].getEst2(),filest+1,tam,tamañoEsta);\n\n }\n }\n }\n } \n }\n System.out.print(\"SI son equivalentes\");\n \n }\n else\n System.out.print(\"NO son equivalentes\");\n \n \n }",
"public static void main( String[] args ) {\n\tMatrix first = new Matrix();\n\tSystem.out.println(first);\n\tSystem.out.println(first.size());\n\tfirst.set(1,1,5);\n\tSystem.out.println(first.get(1,1)); //5\n\tSystem.out.println(first.isEmpty(1,1)); //false\n\tSystem.out.println(first.isEmpty(0,0)); //true\n\tSystem.out.println();\n\n\tMatrix second = new Matrix(2);\n\tSystem.out.println(second);\n\tSystem.out.println(second.size());\n\tsecond.set(1,1,5);\n\tSystem.out.println(second.get(1,1)); //5\n\tSystem.out.println(second.isEmpty(1,1)); //false\n\tSystem.out.println(second.isEmpty(0,0)); //true\n\tSystem.out.println();\n\n\tSystem.out.println(first.equals(second)); //true\n\n\tfirst.swapColumns(0,1);\n\tSystem.out.println(first);\n\tfirst.swapRows(0,1);\n\tSystem.out.println(first);\n\n\tSystem.out.println(first.isFull()); //false\n\t/*\n\t//System.out.println(first.getRow(0));\n\tSystem.out.println(first.setRow(0,first.getCol(0)));\n\tSystem.out.println(first);\n\t//System.out.println(first.getRow(0));\n\tSystem.out.println(first.setCol(0,first.getRow(0)));\n\tSystem.out.println(first);\n\t//System.out.println(first.getCol(0));\n\t*/\n\tfirst.set(1,0,6);\n\tfirst.set(1,1,7);\n\tfirst.set(0,1,8);\n\tSystem.out.println(first);\n\tfirst.transpose();\n\tSystem.out.println(first);\n\tSystem.out.println(first.contains(6)); //true\n\n }",
"public Estados[][] getMatrix() {\n return matrix;\n }",
"float[] getModelMatrix();",
"public void generateMatrix() {\n\n flow = new int[MATRIX_TAM][MATRIX_TAM];\n loc = new int[MATRIX_TAM][MATRIX_TAM];\n\n for (int i = 0; i < MATRIX_TAM; i++) {\n for (int j = 0; j < MATRIX_TAM; j++) {\n\n //fill the distances matrix\n if (i != j) {\n loc[i][j] = rn.nextInt(MAX_DISTANCE - MIN_DISTANCE + 1) + MIN_DISTANCE;\n } else {\n loc[i][j] = 0;\n }\n\n //fill the flow matrix\n if (i != j) {\n flow[i][j] = rn.nextInt(MAX_FLOW - MIN_FLOW + 1) + MIN_FLOW;\n } else {\n flow[i][j] = 0;\n }\n\n }\n }\n\n }",
"public Matriz(int[][] matriz) {\n\t\tthis.matriz = matriz;\n\t}",
"Matrix(double[][] input) {\n matrixVar = input;\n columns = matrixVar[0].length;\n rows = matrixVar.length;\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 }",
"@Override\n\tpublic void setMatrix(int n) {\n\t\tthis.baris = DeretAngka.getLastTriAngluar(n);\n\t\tthis.kolom = n*n;\n\t\tthis.matrix = new String[this.baris][this.kolom];\n\t\t//int[] bil1 = {1,2,3,4};\n\t\t//int[] bil2 = {1,3,5,7};\n\t\t//int[] bil3 = {0,1,2,3};\n\t\tint[] bil4 = DeretAngka.getTriAngluar(n);//{0,1,3,6};\n\t\tint[] bil5 = DeretAngka.getPangkat(n);//{0,1,4,9};\n\t\tint addBangun = 1;\n\t\tint addGanjil = 1;\n\t\tfor(int bangun =0; bangun < n; bangun++) {\n\t\t\t//int pangkat = bangun * bangun; //0*0,1*1,2*2,3*3\n\t\t\tfor (int i = 0; i < addBangun; i++) {\n\t\t\t\tfor (int j = 0; j < addGanjil; j++) {\n\t\t\t\t\tif(i+j >= bangun && j - i <= bangun) {\n\t\t\t\t\t\tthis.matrix[i + bil4[bangun]][j+bil5[bangun]] = \"*\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\taddBangun = addBangun + 1;\n\t\t\taddGanjil = addGanjil + 2;\n\t\t}\n\t\t\n\t\t\n//\t\tfor (int i = 0; i < bil1[0]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[0]; j++) {\n//\t\t\t\tif(i+j >= 0 && j - i <= 0) {\n//\t\t\t\t\tthis.matrix[i+0][j+0] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\tfor (int i = 0; i < bil1[1]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[1]; j++) {\n//\t\t\t\tif(i+j >= 1 && j - i <= 1) {\n//\t\t\t\t\tthis.matrix[i+1][j+1] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n//\t\tfor (int i = 0; i < bil1[2]; i++) {\n//\t\t\tfor (int j = 0; j < bil2[2]; j++) {\n//\t\t\t\tif(i+j >= 2 && j - i <= 2) {\n//\t\t\t\t\tthis.matrix[i+3][j+4] = \"*\";\n//\t\t\t\t}\n//\t\t\t\t\n//\t\t\t}\n//\t\t}\n\t\t\n\t}",
"public static void matrixDis()\n\t{\n\t\t\n\t\tclade = clad[k];\n\t\t//System.err.println(\"\\n\\n\" + clade.cladeName);\n\n\t\tfor(c=0; c<clade.numSubClades; c++)\n\t\t{\n\t\t\tclade.Dc[c]=0;\n\t\t\tclade.Dn[c]=0;\n\t\t\t//clade.varDc[c]=0;\n\t\t\t//clade.varDn[c]=0;\n\t\t\tsum1 = sum2 = sum3 = 0;\n\t\t\tsumc1 = sumc2 = sumc3 = 0;\n\n\t\t\tfor(i=0; i<clade.numCladeLocations; i++) \t\n\t\t\t{\t\n\t\t\t\t\n\t\t\t\tsum2 += clade.obsMatrix[c][i] * (clade.obsMatrix[c][i]-1) / 2 ;\n\t\t\t\tsumc2 += (clade.obsMatrix[c][i] * (clade.obsMatrix[c][i]-1) / 2) + \n\t\t\t (clade.obsMatrix[c][i] * (clade.columnTotal[i] - clade.obsMatrix[c][i]));\t\n\t\t\t\n\t\t\t\tfor (j=0; j<clade.numCladeLocations; j++)\n\t\t\t\t{\t\n\t\t\t\t\tpopA = clade.cladeLocIndex[i];\n\t\t\t\t\tpopB = clade.cladeLocIndex[j];\n\t\t\t\t\t\n\t\t\t\t\tif (j != i)\n\t\t\t\t\t{\n\t\t\t\t\t\tsum1 += (double) clade.obsMatrix[c][i] * clade.obsMatrix[c][j] * distance[popA-1][popB-1];\n\t\t\t\t\t\tsum3 += clade.obsMatrix[c][i] * clade.obsMatrix[c][j];\t\t\t\n\t\t\t\t\t\tsumc1 += (double) clade.obsMatrix[c][i] * clade.columnTotal[j] * distance[popA-1][popB-1];\t\n\t\t\t\t\t\tsumc3 += clade.obsMatrix[c][i] * clade.columnTotal[j];\n\t\t\t\t\t\t//System.err.println(\"\\npopA = \" + popA + \" popB = \" + popB + \" dist= \" + distance[popA-1][popB-1]);\n\t\t\t\t\t\t//System.err.println(\"sumc1: \" + clade.obsMatrix[c][i] + \" * \" + clade.columnTotal[j] +\" * \" + distance[popA-1][popB-1] + \" = \" + sumc1); \n\t\t\t\t\t\t//System.err.println(\"\\nOBS[\" + c +\"][\" + i+ \"]= \" + clade.obsMatrix[c][i]); \n\t\t\t\t\t\t//System.err.println(\"\\nCT[\" + j +\"]= \" + clade.columnTotal[j]); \n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} \n\n\t\t\t//System.err.println(\"\\nOBS[\" + c +\"][\" + i+ \"]= \" + clade.obsMatrix[c][i]); \n\t\t\n\t\t\t\n\t\t\tif (sum3 == 0.0)\n\t\t\t\tclade.Dc[c] = 0.0;\n\t\t\telse\n\t\t\t\tclade.Dc[c] = sum1 / (sum2 + sum3);\t\t\t\t\n\t\n\t\n\t\t\tif (sumc3 == 0.0)\n\t\t\t\tclade.Dn[c] = 0.0;\n\t\t\telse\n\t\t\t\tclade.Dn[c] = sumc1 / (sumc2 + sumc3);\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t//System.err.println(\"\\nClade \" + clade.cladeName + \" subclade \" + c + \n\t\t\t// \" Dc= \" + clade.Dc[c] + \" Dn= \" + clade.Dn[c]); \t\t\n\t\t\t//System.err.println(\"sum1= \" + sum1 + \" sum2= \" + sum2 + \" sum3= \" + sum3); \n\t\t\t//System.err.println(\"sumc1= \" + sumc1 + \" sumc2= \" + sumc2 + \" sumc3= \" + sumc3); \t\n\t\t}\t\t\n\n\t}",
"public static void main(String[] args) {\n int[] miMatriz = new int[5];\n\n //Primera forma de agregar elementos a una matriz (agregar cada elemento en el indice indicado)\n miMatriz[0] = 1;\n miMatriz[1] = 2;\n miMatriz[2] = 3;\n miMatriz[3] = 4;\n miMatriz[4] = 5;\n\n /* Segunda forma de declarar una matriz\n Esta lo que hace es declarar la matriz e introducir los elementos \n en una sola línea\n */\n int[] miMatriz2 = {1, 2, 3, 4, 5};\n\n // Recorrer las matrices con un for normal\n for (int i = 0; i < miMatriz.length; i++) {\n System.out.println(\"Posicion matriz 1: \" + i + \" con un valor de \" + miMatriz[i]);\n }\n System.out.println();\n for (int i = 0; i < miMatriz2.length; i++) {\n System.out.println(\"Posicion matriz 2: \" + i + \" con un valor de \" + miMatriz2[i]);\n }\n }",
"private void declareArrays() {\n int iNumTimesteps = m_oLegend.getNumberOfTimesteps(),\n i, j, k;\n \n //Create arrays to hold raw data.\n mp_fLiveTreeVolumeTotals = new double[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses];\n mp_fSnagVolumeTotals = new double[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses]; \n mp_iLiveTreeCounts = new long[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses];\n mp_iSnagCounts = new long[m_iNumSpecies][iNumTimesteps + 1][m_iNumSizeClasses];\n mp_fLiveTreeDBHTotal = new double[m_iNumSpecies][iNumTimesteps + 1];\n mp_fSnagDBHTotal = new double[m_iNumSpecies][iNumTimesteps + 1];\n mp_fTallestLiveTrees = new float[m_iNumSpecies+1][iNumTimesteps + 1][10];\n mp_fTallestSnags = new float[m_iNumSpecies+1][iNumTimesteps + 1][10];\n \n //Initialize all values with 0s\n for (i = 0; i < mp_fTallestLiveTrees.length; i++) {\n for (j = 0; j < mp_fTallestLiveTrees[i].length; j++) {\n for (k = 0; k < mp_fTallestLiveTrees[i][j].length; k++) {\n mp_fTallestLiveTrees[i][j][k] = 0;\n mp_fTallestSnags[i][j][k] = 0;\n }\n }\n }\n \n for (i = 0; i < m_iNumSpecies; i++) {\n for (j = 0; j <= iNumTimesteps; j++) {\n mp_fLiveTreeDBHTotal[i][j] = 0;\n mp_fSnagDBHTotal[i][j] = 0;\n for (k = 0; k < m_iNumSizeClasses; k++) {\n mp_iLiveTreeCounts[i][j][k] = 0;\n mp_iSnagCounts[i][j][k] = 0;\n mp_fLiveTreeVolumeTotals[i][j][k] = 0;\n mp_fSnagVolumeTotals[i][j][k] = 0;\n }\n }\n }\n }",
"@Test\n public void testCreateTranspose3(){\n double[][] a = new double[4][2];\n for(int i = 0 ; i < a.length ; i++){\n for(int j = 0 ; j < a[0].length ; j++){\n a[i][j] = Math.random();\n }\n }\n double[][] newA = HarderArrayProblems.createTranspose(a);\n checkTranspose(a, newA);\n }",
"public Matrix3x3rc (long[] in_array) throws WrongLength{ //throws error of type WrongLength if input array length is not 9\n\t\tif (in_array.length != 9){\n\t\t\tthrow new WrongLength (9, in_array.length, \"in_array\");\n\t\t}\n\t\telse{ //changes global record if length of input array == 9\n\t\t\t//since every 3 elements of the input array correspond to a row of the matrix, every 3 elements are stored in\n\t\t\t//a column register, then the column registers are stored in a row register\n\t\t\tcolRow3 a1 = new colRow3(in_array[0], in_array[1], in_array[2]); //stores 1st row\n\t\t\tcolRow3 b1 = new colRow3(in_array[3], in_array[4], in_array[5]); //stores 2nd row\n\t\t\tcolRow3 c1 = new colRow3(in_array[6], in_array[7], in_array[8]); //stores 3rd row\n\t\t\tthis.mat = new Row3(a1, b1, c1); //stores all 3 record in global record\n\t\t}\n\t}",
"public static void show(int mat3d[][][]) {\n //for loop which runs 3 times again\n for(int s=0; s<3; s++) {\n //this for loop does the same as the first method\n for(int j=0; j<(3+2*s); j++) {\n //for follows pattern of array ^^\n for(int c=0; c<(s+j+1); c++) {\n //prints of the array slot for s,j,c\n System.out.print(mat3d[s][j][c]);\n //prints out a blank space to seperate\n System.out.print(\" \");\n }\n //prints out blank line to seperate \n System.out.println();\n }\n \n System.out.println();\n }\n }",
"public Espai(int a, int b){\n matriuElements = new Object[a][b];\n referencies = new Hashtable<Integer,Pos>();\n }",
"public Maze3d(int[][][] m)\r\n\t{\r\n\t\tthis.maze = m;\r\n\t}",
"public ParallelMatrix(int me,int n,int p,int m1[][] ,int m2[][],int res[][]) {\r\n B = n/p;\r\n this.me = me ;\r\n matrix1 = m1;\r\n matrix2 = m2;\r\n N = n;\r\n matrix = res;//new int[N][N];\r\n }",
"@Test\n public void testParseMatrix() {\n String path1 = \"c:\\\\Voici\\\\input.txt\";\n MatrixReader reader = new MatrixReader(path1);\n Matrix data = reader.getMatrix();\n Matrix[] parsedMatrix = MatrixReader.parseMatrix(data, 10);\n assertEquals(parsedMatrix[0].get(4, 2), data.get(4, 2), 0.001);\n assertEquals(parsedMatrix[2].get(0, 0), data.get(32, 0), 0.001);\n assertEquals(parsedMatrix[1].get(0, 0), data.get(16, 0), 0.001);\n }",
"@Test\n public void testCreateRowIndices2(){\n int[][] a = new int[4][2];\n a[0][0] = 0;\n a[0][1] = 0;\n a[1][0] = 0;\n a[1][1] = 1;\n a[2][0] = 0;\n a[2][1] = 2;\n a[3][0] = 2;\n a[3][1] = 1;\n\n double[][] input = new double[4][3];\n\n for(int i = 0 ; i < a.length ; i++){\n input[a[i][0]][a[i][1]] = 1;\n }\n\n int[][] myIndices = HarderArrayProblems.createRowIndices(input);\n for(int i = 0 ; i < a.length ; i++){\n assertEquals(a[i][0], myIndices[i][0]);\n assertEquals(a[i][1], myIndices[i][1]);\n }\n\n }",
"private void imprimirMatriz(int[][] m) {\n\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tfor (int j = 0; j < 4; j++) {\n\t\t\t\tSystem.out.println(\"M[\" + i + \"][\" + j + \"] = \" + m[i][j]);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"-------------------------------------------\");\n\t}",
"public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }",
"public void mo23181a(Canvas canvas, Matrix matrix, int i) {\n }",
"public static BigDecimal[][] multiplyMatrices(BigDecimal[][] m1, BigDecimal[][] m2){\n\t\t\n\t\tint size = m1.length;\n\t\t\n\t\tBigDecimal[][] next = new BigDecimal[size][size];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tfor(int j = 0; j < size; j++){\n\t\t\t\tBigDecimal current = new BigDecimal(0);\n\t\t\t\tfor(int k = 0; k < size; k++)\n\t\t\t\t\tcurrent = current.add(m1[i][k].multiply(m2[k][j]));\n\n\t\t\t\tnext[i][j] = current;\n\t\t\t}\n\t\t}\n\t\treturn next;\n\t}",
"private Matrix33d getMatrix() {\n final Matrix33d m = new Matrix33d();\n m.setMatrixColumn(new Vector3d(V1), 0);\n m.setMatrixColumn(new Vector3d(V2), 1);\n m.setMatrixColumn(new Vector3d(V3), 2);\n return m;\n }",
"float[] getViewMatrix();",
"void setAdjForFirstType() {\n matrixOfSquares[0][0].setCardinalSquare(null, matrixOfSquares[1][0] , null, matrixOfSquares[0][1]);\n matrixOfSquares[0][1].setCardinalSquare(null, null , matrixOfSquares[0][0], matrixOfSquares[0][2]);\n matrixOfSquares[0][2].setCardinalSquare(null,matrixOfSquares[1][2] , matrixOfSquares[0][1], null);\n matrixOfSquares[1][0].setCardinalSquare(matrixOfSquares[0][0], null, null, matrixOfSquares[1][1] );\n matrixOfSquares[1][1].setCardinalSquare(null, matrixOfSquares[2][1], matrixOfSquares[1][0], matrixOfSquares[1][2] );\n matrixOfSquares[1][2].setCardinalSquare(matrixOfSquares[0][2] , null, matrixOfSquares[1][1], matrixOfSquares[1][3]);\n matrixOfSquares[1][3].setCardinalSquare(null, matrixOfSquares[2][3], matrixOfSquares[1][2], null);\n matrixOfSquares[2][1].setCardinalSquare( matrixOfSquares[1][1], null, null, matrixOfSquares[2][2] );\n matrixOfSquares[2][2].setCardinalSquare(null, null, matrixOfSquares[2][1], matrixOfSquares[2][3] );\n matrixOfSquares[2][3].setCardinalSquare(matrixOfSquares[1][3], null, matrixOfSquares[2][2], null);\n }",
"public int[][] turfu() {\r\n\t\tint[][] tab = new int[matrice[0].length][matrice.length]; \r\n\t\tint n =0; \r\n\t\tfor(int i=0; i<tab.length; i++) {\r\n\t\t\tfor(int j=0; j< tab[0].length; j++) {\r\n\t\t\t\ttab[i][j] = matrice[j][n]; \r\n\t\t\t}\r\n\t\t\tn++;\r\n\t\t}\r\n\t\treturn tab; \r\n\t}",
"float[] getMVPMatrix();",
"int getSize(){\n return this.matrixSize;\n }"
] |
[
"0.6374139",
"0.62249506",
"0.61913115",
"0.61792415",
"0.61238074",
"0.60336643",
"0.6008271",
"0.5997788",
"0.5977873",
"0.59629095",
"0.5941594",
"0.5940388",
"0.5927638",
"0.59207904",
"0.58922493",
"0.5884931",
"0.5807708",
"0.57744557",
"0.57676506",
"0.57583493",
"0.57428896",
"0.57363546",
"0.57115424",
"0.5637766",
"0.5626891",
"0.56231624",
"0.5613523",
"0.56012076",
"0.5596608",
"0.5593889",
"0.55875605",
"0.558435",
"0.5559093",
"0.5551177",
"0.5545424",
"0.5531551",
"0.55305713",
"0.5528972",
"0.55090106",
"0.5507019",
"0.5475095",
"0.54699",
"0.54660445",
"0.54580134",
"0.5457729",
"0.54480886",
"0.544409",
"0.54415584",
"0.5440901",
"0.543964",
"0.54372025",
"0.5432079",
"0.5424216",
"0.54217815",
"0.5417617",
"0.5414534",
"0.54047537",
"0.5398758",
"0.5390529",
"0.5380769",
"0.5374497",
"0.53635335",
"0.5363008",
"0.5348014",
"0.53459126",
"0.5338811",
"0.5337802",
"0.53353024",
"0.5328664",
"0.53187776",
"0.53100157",
"0.53097826",
"0.5308297",
"0.5308106",
"0.52988154",
"0.5298007",
"0.5294764",
"0.5292403",
"0.5292107",
"0.52849007",
"0.5275785",
"0.5272017",
"0.52672",
"0.5265572",
"0.52605385",
"0.52540493",
"0.52538407",
"0.5250997",
"0.5235337",
"0.5233732",
"0.52316296",
"0.52267206",
"0.5224272",
"0.52224386",
"0.5221796",
"0.5220911",
"0.52191675",
"0.521875",
"0.5216191",
"0.5212289"
] |
0.6086693
|
5
|
The SockJS client will attempt to connect to "/gsguidewebsocket" and use the best transport available (websocket, xhrstreaming, xhrpolling, etc).
|
@Override
public void registerStompEndpoints(StompEndpointRegistry registry) {
registry.addEndpoint("/boot-websocket").withSockJS();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\r\n\tpublic void open(long timeout) {\r\n\t\tsuper.open(timeout);\r\n\t\t// ws hs no open method,just when init to open it.\r\n\r\n\t\tString uriS = uri.getUri();\r\n\r\n\t\tWebSocketJSO wso = WebSocketJSO.newInstance(uriS, false);\r\n\t\tif (wso == null) {\r\n\t\t\tthis.errorHandlers.handle(\"websocket not supported by browser?\");\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tthis.socket = wso;\r\n\r\n\t\tthis.socket.onOpen(new HandlerI<EventJSO>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(EventJSO t) {\r\n\t\t\t\tWsGomet.this.onOpen(t);\r\n\t\t\t}\r\n\t\t});\r\n\t\t//\r\n\t\tthis.socket.onClose(new HandlerI<CloseEventJSO>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(CloseEventJSO t) {\r\n\t\t\t\tWsGomet.this.onClose(t);\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\t//\r\n\t\tthis.socket.onError(new HandlerI<ErrorJSO>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ErrorJSO t) {\r\n\t\t\t\tWsGomet.this.onError(t);\r\n\t\t\t}\r\n\t\t});\r\n\t\tthis.socket.onMessage(new HandlerI<EventJSO>() {\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(EventJSO t) {\r\n\t\t\t\tWsGomet.this.onMessage(t);\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"public void InicializacionWS(){\n try {\n factory = new WebSocketFactory().setConnectionTimeout(5000);\n ws = factory.createSocket(ws_host);\n // Register a listener to receive WebSocket events.\n ws.addListener(new WebSocketAdapter() {\n @Override\n public void onTextMessage(WebSocket websocket, String message) throws Exception {\n System.out.println(message);\n }\n });\n } catch (IOException e){\n GenericDialogs.Dialogs.ShowDiaglog(\"Exception WebSocket client class\", e.getMessage(), context);\n }\n }",
"public ClientWebSocket(String url) {\n try {\n URI endpointURI = new URI(url);\n WebSocketContainer container = ContainerProvider.getWebSocketContainer();\n container.connectToServer(this, endpointURI);\n\n } catch (URISyntaxException e) {\n e.printStackTrace();\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"@Bean\r\n\tpublic WebSocketStompClient stompClient() {\n\t\tWebSocketStompClient stompClient = new WebSocketStompClient(new StandardWebSocketClient());\r\n\t\tstompClient.setMessageConverter(new MappingJackson2MessageConverter());\r\n\t\t//stompClient.setMessageConverter(new GenericMessageConverter());\r\n\t\t//stompClient.setMessageConverter(new StringMessageConverter());\r\n\t\treturn stompClient;\r\n\t}",
"WebSocketConnection getWebSocketConnection();",
"@Nonnull WebSocket initialize(WebSocket socket);",
"private void connectToWebSocket(TextView text) {\n\n networkProfileRepo = new NetworkProfileRepo(context.get());\n NetworkProfile networkProfile = networkProfileRepo.getNetworkProfile(1) ;\n\n URI uri = URI.create(networkProfile.getConnectionData().getOcppCsmsUrl());\n\n ChargingStationRepo chargingStationRepo = new ChargingStationRepo(context.get());\n\n ClientManager client = ClientManager.createClient();\n\n client.getProperties().put(ClientProperties.CREDENTIALS, new Credentials(\"ws_user\", \"password\")); // Basic Authentication for Charging Station\n client.getProperties().put(ClientProperties.LOG_HTTP_UPGRADE, true);\n\n try {\n client.connectToServer(this,uri) ;\n } catch (DeploymentException e) {\n e.printStackTrace();\n text.append(\"\\nDeployment Exception\"+ R.string.conncsmsnot + \"\\n\");\n } catch (IOException e) {\n e.printStackTrace();\n text.append(\"\\nIO Exception\" + R.string.conncsmsnot + \"\\n\");\n }\n\n\n if(session != null){\n text.append(\"Connection with CSMS Established\");\n text.append(\"\\nConnected to Session :\"+ session.getId() + \"\\n\" );\n text.append(\"\\nBoot Reason: \"+ BootNotificationRequest.getReason()+\"\\n\");\n\n ChargingStation chargingStation = chargingStationRepo.getChargingStationType() ;\n\n ChargingStationType.setSerialNumber(chargingStation.getSerialNumber());\n ChargingStationType.setModel(chargingStation.getModel());\n ChargingStationType.setVendorName(chargingStation.getVendorName());\n ChargingStationType.setFirmwareVersion(chargingStation.getFirmwareVersion());\n ModemType.setIccid(chargingStation.getModem().iccid);\n ModemType.setImsi(chargingStation.getModem().imsi);\n\n text.append(\"\\nCharging Station\\n\");\n text.append(\"\\nserialNumber: \"+ChargingStationType.serialNumber+\"\\n\");\n text.append(\"\\nmodel: \"+ChargingStationType.model+\"\\n\");\n text.append(\"\\nvendorName: \"+ChargingStationType.vendorName+\"\\n\");\n text.append(\"\\nfirmwareVersion: \"+ChargingStationType.firmwareVersion+\"\\n\");\n text.append(\"\\nmodem iccid:\"+ ModemType.iccid+\"\\n\");\n text.append(\"\\nmodem imsi:\"+ ModemType.imsi+\"\\n\");\n text.append(\"\\nSending BootNotificationRequest to CSMS\\n\");\n try {\n toCSMS.sendBootNotificationRequest();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n text.append(\"\\nBoot status: \"+ bootNotificationResponse.getBootStatus() + \"\\n\");\n }\n }",
"private void connectUsingToken() {\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(sslContext.getSocketFactory());\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public IWebSocketConnection openWebSocketConnection(String uriString, String protocol) throws IOException {\n return openWebSocketConnection(uriString, protocol, null);\n }",
"public void onOpen(WebSocket conn);",
"public IWebSocketConnection openWebSocketConnection(String uriString, String protocol, IWebSocketHandler webSocketHandler) throws IOException {\n URI uri = URI.create(uriString);\n \n int port = uri.getPort();\n if (port == -1) {\n if (uri.getScheme().toLowerCase().equals(\"wss\")) {\n port = 443;\n } else {\n port = 80;\n }\n }\n \n return new WebSocketConnection(this, uri, protocol, webSocketHandler); \n }",
"private WebSocket connect() throws Exception\n {\n return new WebSocketFactory()\n .setConnectionTimeout(TIMEOUT)\n .createSocket(SERVER)\n .addListener(new WebSocketAdapter() {\n // A text message arrived from the server.\n public void onTextMessage(WebSocket websocket, String message) {\n if(message.contains(\"ticker\")) {\n List<Object> decodeMessage = GSON.fromJson(message, new TypeToken<List<Object>>() {}.getType());\n if (decodeMessage.size() == 4) {\n val ticker = decodeMessage.get(2);\n if (ticker instanceof String && ((String) ticker).equalsIgnoreCase(\"ticker\")) {\n Map<String, List<Object>> ticks = (Map<String, List<Object>>) decodeMessage.get(1);\n val ask = Double.parseDouble((String) ticks.get(\"a\").get(0));\n val bid = Double.parseDouble((String) ticks.get(\"b\").get(0));\n val krakenCurrencyPair = (String)decodeMessage.get(3);\n val currencyPair = CurrencyPair.of(krakenCurrencyPair.substring(0,3), krakenCurrencyPair.substring(4,7));\n outBoundBus.post(PriceUpdateEvent.of(BidAsk.of(bid,ask),currencyPair, Exchange.KRAKEN));\n }\n }\n\n }\n }\n })\n .addExtension(WebSocketExtension.PERMESSAGE_DEFLATE)\n .connect();\n }",
"@Override\r\n public synchronized void connect(SelectionKey clientKey)\r\n { \r\n // Local Variable Declaration \r\n Map<String, String> headers = new HashMap<>(); \r\n String headerString = \"\", rqsMethod = \"\", socKey = \"\";\r\n float rqsVersion = 0;\r\n \r\n // Read headers from socket client\r\n headerString = receiveHeaders(clientKey);\r\n \r\n // Parse and validate the headers if the headerString could be read\r\n if(!headerString.equals(null))\r\n {\r\n headers = parseAndValidateHeaders(headerString);\r\n \r\n // Extract the HTTP method and version used in this connection request\r\n rqsMethod = headers.get(RQS_METHOD);\r\n rqsVersion = Float.parseFloat(headers.get(RQS_VERSION));\r\n socKey = headers.get(\"Sec-WebSocket-Key\");\r\n }\r\n \r\n /* Make sure the header contained the GET method has a version higher \r\n * 1.1 and that the socket key exists */ \r\n if (!headerString.equals(null) && rqsMethod.equals(new String(\"GET\")) && \r\n rqsVersion >= 1.1 && socKey != null)\r\n {\r\n // Complete handshake, by sending response header confirming connection terms\r\n finishConnection(headers, clientKey);\r\n \r\n // Add the socket to the map of sockets by the name passed \r\n this.sockets.put(clientKey, new WebSocketData()); \r\n }\r\n else\r\n {\r\n // Send a Bad Request HTTP response \r\n SocketChannel sc = (SocketChannel) clientKey.channel();\r\n \r\n try \r\n {\r\n // Build a response header for the error \r\n byte rsp[] = (this.BAD_RQST_HDR \r\n + \"Malformed request. The connection request must \"\r\n + \"use a 'GET' method, must have a version greater \"\r\n + \"than 1.1 and have 'Sec-WebSocket-Key'. Please\"\r\n + \"check your headers\"\r\n + \"\\\\r\\\\n\").getBytes(\"UTF-8\");\r\n \r\n // Send the response error header to the client\r\n sc.write(ByteBuffer.wrap(rsp));\r\n } \r\n catch (IOException ex) \r\n {\r\n Logger.getLogger(RecptionRoom.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n }\r\n }",
"@Test\n public void testTransportNegotiationFailureForClientWebSocketServerLongPolling() throws Exception {\n bayeuxServer.setAllowedTransports(\"long-polling\");\n evaluateScript(\"keep_only_websocket_transport\",\n \"cometd.unregisterTransports();\" +\n \"cometd.registerTransport('websocket', originalTransports['websocket']);\");\n\n defineClass(Latch.class);\n evaluateScript(\"var failureLatch = new Latch(1);\");\n Latch failureLatch = get(\"failureLatch\");\n evaluateScript(\"cometd.onTransportException = function(failure, oldTransport, newTransport)\" +\n \"{\" +\n \" failureLatch.countDown();\" +\n \"}\");\n evaluateScript(\"cometd.init({url: '\" + cometdURL + \"', logLevel: '\" + getLogLevel() + \"'});\");\n\n Assert.assertTrue(failureLatch.await(5000));\n Assert.assertTrue((Boolean)evaluateScript(\"cometd.isDisconnected();\"));\n }",
"public WebSocketClient(URI uri) {\n this.globalLock = new Object();\n this.uri = uri;\n this.secureRandom = new SecureRandom();\n this.connectTimeout = 0;\n this.readTimeout = 0;\n this.automaticReconnection = false;\n this.waitTimeBeforeReconnection = 0;\n this.isRunning = false;\n this.headers = new HashMap<String, String>();\n webSocketConnection = new WebSocketConnection();\n }",
"@Test\n public void testTransportNegotiationFailureForClientLongPollingServerWebSocket() throws Exception {\n bayeuxServer.setAllowedTransports(\"websocket\");\n evaluateScript(\"keep_only_long_polling_transport\",\n \"cometd.unregisterTransports();\" +\n \"cometd.registerTransport('long-polling', originalTransports['long-polling']);\");\n\n defineClass(Latch.class);\n evaluateScript(\"var failureLatch = new Latch(1);\");\n Latch failureLatch = get(\"failureLatch\");\n evaluateScript(\"cometd.onTransportException = function(failure, oldTransport, newTransport)\" +\n \"{\" +\n \" failureLatch.countDown();\" +\n \"}\");\n evaluateScript(\"cometd.init({url: '\" + cometdURL + \"', logLevel: '\" + getLogLevel() + \"'});\");\n\n Assert.assertTrue(failureLatch.await(5000));\n\n evaluateScript(\"cometd.disconnect(true);\");\n }",
"public void connect() {\n synchronized (globalLock) {\n if (isRunning) {\n throw new IllegalStateException(\"WebSocketClient is not reusable\");\n }\n\n this.isRunning = true;\n createAndStartConnectionThread();\n }\n }",
"@Override\r\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(\"/server_socket\").withSockJS();\r\n }",
"interface WebSocketListener {\n \n /**\n * Called when the socket connection is first established, and the WebSocket\n * handshake has been recieved.\n */\n public HandshakeBuilder onHandshakeRecievedAsServer( WebSocket conn , Draft draft , Handshakedata request ) throws IOException;\n public boolean onHandshakeRecievedAsClient( WebSocket conn , Handshakedata request , Handshakedata response ) throws IOException;\n \n /**\n * Called when an entire text frame has been recieved. Do whatever you want\n * here...\n * @param conn The <tt>WebSocket</tt> instance this event is occuring on.\n * @param message The UTF-8 decoded message that was recieved.\n */\n public void onMessage(WebSocket conn, String message);\n \n public void onMessage( WebSocket conn , byte[] blob );\n \n /**\n * Called after <var>onHandshakeRecieved</var> returns <var>true</var>.\n * Indicates that a complete WebSocket connection has been established,\n * and we are ready to send/recieve data.\n * @param conn The <tt>WebSocket</tt> instance this event is occuring on.\n */\n public void onOpen(WebSocket conn);\n \n /**\n * Called after <tt>WebSocket#close</tt> is explicity called, or when the\n * other end of the WebSocket connection is closed.\n * @param conn The <tt>WebSocket</tt> instance this event is occuring on.\n */\n public void onClose(WebSocket conn);\n\n /**\n * Triggered on any IOException error. This method should be overridden for custom \n * implementation of error handling (e.g. when network is not available). \n * @param ex\n */\n public void onError( Throwable ex );\n \n public void onPong();\n \n public String getFlashPolicy( WebSocket conn);\n}",
"public IWebSocketConnection openWebSocketConnection(String uriString) throws IOException {\n return openWebSocketConnection(uriString, (String) null);\n }",
"private ClientContainer getWebSocketsContainer(){\n return ( ClientContainer ) ContainerProvider.getWebSocketContainer(); \n }",
"public abstract DefaultWOWebSocket create(Channel channel);",
"public void onConnect(WebSocket ws) {\n\t\ttry {\n\t\t\tif (ws == null || ws.getRemoteSocketAddress() == null) {\n\t\t\t\terror(\"ws or getRemoteSocketAddress() == null\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlog.info(ws.getRemoteSocketAddress().toString());\n\n\t\t\t// set javascript user object for this connection\n\t\t\tConnection conn = conns.addConnection(ws);\n\t\t\tMessage onConnect = createMessage(\"shoutclient\", \"onConnect\", Encoder.toJson(conn));\n\t\t\tws.send(Encoder.toJson(onConnect));\n\n\t\t\t// BROADCAST ARRIVAL\n\t\t\t// TODO - broadcast to others new connection of user - (this mean's\n\t\t\t// user\n\t\t\t// has established new connection,\n\t\t\t// this could be refreshing the page, going to a different page,\n\t\t\t// opening\n\t\t\t// a new tab or\n\t\t\t// actually arriving on the site - how to tell the difference\n\t\t\t// between\n\t\t\t// all these activities?\n\t\t\tsystemBroadcast(String.format(\"[%s]@[%s] is in the haus !\", conn.user, conn.ip));\n\n\t\t\t// FIXME onShout which takes ARRAY of shouts !!! - send the whole\n\t\t\t// thing\n\t\t\t// in one shot\n\t\t\t// UPDATE NEW CONNECTION'S DISPLAY\n\t\t\tfor (int i = 0; i < shouts.size(); ++i) {\n\t\t\t\tShout s = shouts.get(i);\n\t\t\t\tString ss = Encoder.toJson(s);\n\t\t\t\tMessage catchup = createMessage(\"shoutclient\", \"onShout\", ss);\n\t\t\t\tws.send(Encoder.toJson(catchup));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLogging.logError(e);\n\t\t}\n\t}",
"protected NetworkEmulatorTransport createWebsocketTransport() {\n return new NetworkEmulatorTransport(\n Transport.bindAwait(\n TransportConfig.defaultConfig().transportFactory(new WebsocketTransportFactory())));\n }",
"public IWebSocketConnection openWebSocketConnection(String uriString, IWebSocketHandler webSocketHandler) throws IOException {\n return openWebSocketConnection(uriString, null, webSocketHandler);\n }",
"@SuppressWarnings(\n {\n \"nls\"\n })\n @Override\n public void init(RestClient restClient, List<Header> headers, WebSocketAdapter messageListener)\n {\n log.info(\"Init WebSocketClient with config=\" + this.webSocketConfig + \" for this=\" + this.toString());\n this.wsPool.setMaxActive(this.webSocketConfig.getWsMaxActive());\n this.wsPool.setMaxIdle(this.webSocketConfig.getWsMaxIdle());\n this.wsPool.setMaxWait(this.webSocketConfig.getWsMaxWait());\n this.wsPool.setTestOnBorrow(true);\n this.wsPool.setTestOnReturn(true);\n this.wsPool.setWhenExhaustedAction(GenericObjectPool.WHEN_EXHAUSTED_BLOCK);\n \n \n this.webSocketPoolableConnectionFactory.init(restClient, this.webSocketConfig, headers, messageListener);\n this.wsPool.setFactory(this.webSocketPoolableConnectionFactory);\n for (int i = 0; i < this.wsPool.getMaxActive(); ++i)\n {\n try\n {\n this.wsPool.addObject();\n }\n catch (Exception e)\n {\n log.error(\"Encountered issue creating WebSocket in pool. \" + e);\n throw new RuntimeException(\"Encountered issue creating WebSocket in pool. \", e);\n }\n }\n\n this.isInitialized = true;\n }",
"public void connect() throws IOException {\n this.session =\n SlackSessionFactory.createWebSocketSlackSession(this.apiToken);\n\n // Listen for when we connect\n session.addSlackConnectedListener(new SlackConnectedListener() {\n @Override\n public void onEvent(SlackConnected event, SlackSession session) {\n PlackBot.this.onConnect();\n }\n });\n\n // Listen for when we're disconnected\n session.addSlackDisconnectedListener(new SlackDisconnectedListener() {\n @Override\n public void onEvent(SlackDisconnected event, SlackSession session) {\n PlackBot.this.onDisconnect();\n }\n });\n\n // Listen for when we join a channel\n session.addChannelJoinedListener(new SlackChannelJoinedListener() {\n @Override\n public void onEvent(SlackChannelJoined event, SlackSession session) {\n SlackChannel channel = event.getSlackChannel();\n PlackBot.this.onJoin(\n channel.getName(),\n PlackBot.this.getNick(),\n PlackBot.this.getLogin(),\n PlackBot.this.getName()\n );\n }\n });\n\n // Listen for when we leave a channel\n session.addChannelLeftListener(new SlackChannelLeftListener() {\n @Override\n public void onEvent(SlackChannelLeft event, SlackSession session) {\n SlackChannel channel = event.getSlackChannel();\n PlackBot.this.onPart(\n channel.getName(),\n PlackBot.this.getNick(),\n PlackBot.this.getLogin(),\n PlackBot.this.getName()\n );\n }\n });\n\n // Listen for new messages\n session.addMessagePostedListener(new SlackMessagePostedListener() {\n @Override\n public void onEvent(SlackMessagePosted event, SlackSession session) {\n SlackChannel channel = event.getChannel();\n String messageContent = event.getMessageContent();\n SlackUser user = event.getSender();\n\n SlackMessagePosted.MessageSubType messageSubType =\n event.getMessageSubType();\n\n if (messageSubType == SlackMessagePosted.MessageSubType.CHANNEL_TOPIC) {\n // String topic = (String)event.getJsonSource().get(\"topic\");\n JSONObject jsonObject = new JSONObject(event.getJsonSource());\n\n String topic = StringEscapeUtils.unescapeHtml4(\n jsonObject.getString(\"topic\")\n );\n\n PlackBot.this.onTopic(\n channel.getName(),\n topic,\n user.getUserName(),\n 0,\n true\n );\n } else if (channel.isDirect()) {\n PlackBot.this.onPrivateMessage(\n user.getUserName(),\n user.getUserMail(),\n user.getRealName(),\n messageContent\n );\n } else if (messageSubType == SlackMessagePosted.MessageSubType.UNKNOWN) {\n PlackBot.this.onMessage(\n channel.getName(),\n user.getUserName(),\n user.getUserMail(),\n user.getRealName(),\n messageContent\n );\n }\n }\n });\n\n // Listen for new reactions added\n session.addReactionAddedListener(new ReactionAddedListener() {\n @Override\n public void onEvent(ReactionAdded event, SlackSession session) {\n String emojiName = event.getEmojiName();\n SlackUser user = event.getUser();\n SlackUser itemUser = event.getItemUser();\n SlackChannel channel = event.getChannel();\n\n // reactions don't always have a channel or item user, set defaults\n String userName = (user != null) ? user.getUserName() : null;\n String itemUserName = (itemUser != null) ? itemUser.getUserName() : null;\n String channelName = (channel != null) ? channel.getName() : null;\n\n PlackBot.this.onReactionAdded(\n channelName,\n userName,\n itemUserName,\n emojiName\n );\n }\n });\n\n // Listen for new reactions removed\n session.addReactionRemovedListener(new ReactionRemovedListener() {\n @Override\n public void onEvent(ReactionRemoved event, SlackSession session) {\n String emojiName = event.getEmojiName();\n SlackUser user = event.getUser();\n SlackUser itemUser = event.getItemUser();\n SlackChannel channel = event.getChannel();\n\n // reactions don't always have a channel or item user, set defaults\n String userName = (user != null) ? user.getUserName() : null;\n String itemUserName = (itemUser != null) ? itemUser.getUserName() : null;\n String channelName = (channel != null) ? channel.getName() : null;\n\n PlackBot.this.onReactionRemoved(\n channelName,\n userName,\n itemUserName,\n emojiName\n );\n }\n });\n\n this.session.connect();\n }",
"public interface WebSocketMessage {\n\n /**\n * Retrieve the target of the application as a String.\n *\n * @return the target of the application.\n */\n String getTarget();\n\n /**\n * Check whether the message is coming from server connector or client connector.\n *\n * @return true if the message is coming from server connector else return false if the message is coming from\n * client connector.\n */\n boolean isServerMessage();\n\n /**\n * Retrieve the session of the connection.\n *\n * @return the session of the connection.\n */\n WebSocketConnection getWebSocketConnection();\n}",
"@BeforeClass\n public static void startEmbeddedJetty_9_1_1() throws Exception {\n server = new Server( 8080 );\n \n WebAppContext webapp = new WebAppContext();\n webapp.setContextPath( \"/websock-webapp\" );\n //But the .war should already have WebSocketServerEndpoint.class in it \n webapp.setWar( new File( \".\", \"../webapp/target/\" + WebAppConstants.WEBSOCKET_WEBAPP_NAME + \".war\" ).getPath() );\n server.setHandler( webapp );\n // Initialize the WebSocket Server Container\n WebSocketServerContainerInitializer.configureContext( webapp ); \n server.start();\n \n // After Jetty started and WebSocket Server Container was initialized, obtain it\n webSocketServerContainer = ( ServerContainer ) webapp.getServletContext().getAttribute( \n javax.websocket.server.ServerContainer.class.getName() );\n assertNotNull( webSocketServerContainer );\n System.out.println( \"--->> webSocketServerContainer [\" + webSocketServerContainer + \"] of class [\" + \n ( webSocketServerContainer == null ? null : webSocketServerContainer.getClass().getName() ) + \"]\" );\n \n //This should really NOT be needed since WebSocketServerEndpoint is in the .war and should be\n //picked up via annotation. PLUS this requires refactoring WebSocketServerEndpoint from out of the\n // /webapp child module into /common which is really unnecessary at this point.\n // webSocketServerContainer.addEndpoint( WebSocketServerEndpoint.class );\n \n WebSocketContainer container = ContainerProvider.getWebSocketContainer();\n assertNotNull( \"Jetty WebSockets Container is null\", container );\n container.connectToServer( WebSocketClientEndpoint.class,\n// // \"ws://localhost:8080/websock-webapp/echo\"\n new URI( WebAppConstants.WEBSOCKET_FULL_URL ) );\n \n/* This still throws the same damn, exception\n \nCaused by: org.eclipse.jetty.websocket.api.UpgradeException: Didn't switch protocols\n\tat org.eclipse.jetty.websocket.client.io.UpgradeConnection.validateResponse(UpgradeConnection.java:272)\n\tat org.eclipse.jetty.websocket.client.io.UpgradeConnection.read(UpgradeConnection.java:203)\n\tat org.eclipse.jetty.websocket.client.io.UpgradeConnection.onFillable(UpgradeConnection.java:148) \n*/ \n \n /* \n Running server as standalone and client as standalone via Spring work though.\n \n final ServletHolder servletHolder = new ServletHolder( new DefaultServlet() );\n final ServletContextHandler context = new ServletContextHandler();\n\n context.setContextPath( \"/\" );\n context.addServlet( servletHolder, \"/*\" );\n context.addEventListener( new ContextLoaderListener() ); \n context.setInitParameter( \"contextClass\", AnnotationConfigWebApplicationContext.class.getName() );\n context.setInitParameter( \"contextConfigLocation\", AppConfig.class.getName() );\n */\n \n }",
"Client getClient();",
"private void shakeHands() throws IOException {\n HttpRequest req = new HttpRequest(inputStream);\n String requestLine = req.get(HttpRequest.REQUEST_LINE);\n handshakeComplete = checkStartsWith(requestLine, \"GET /\")\n && checkContains(requestLine, \"HTTP/\")\n && req.get(\"Host\") != null\n && checkContains(req.get(\"Upgrade\"), \"websocket\")\n && checkContains(req.get(\"Connection\"), \"Upgrade\")\n && \"13\".equals(req.get(\"Sec-WebSocket-Version\"))\n && req.get(\"Sec-WebSocket-Key\") != null;\n String nonce = req.get(\"Sec-WebSocket-Key\");\n if (handshakeComplete) {\n byte[] nonceBytes = BaseEncoding.base64().decode(nonce);\n if (nonceBytes.length != HANDSHAKE_NONCE_LENGTH) {\n handshakeComplete = false;\n }\n }\n // if we have met all the requirements\n if (handshakeComplete) {\n outputPeer.write(asUTF8(\"HTTP/1.1 101 Switching Protocols\\r\\n\"));\n outputPeer.write(asUTF8(\"Upgrade: websocket\\r\\n\"));\n outputPeer.write(asUTF8(\"Connection: upgrade\\r\\n\"));\n outputPeer.write(asUTF8(\"Sec-WebSocket-Accept: \"));\n HashFunction hf = Hashing.sha1();\n HashCode hc = hf.newHasher()\n .putString(nonce, StandardCharsets.UTF_8)\n .putString(WEBSOCKET_ACCEPT_UUID, StandardCharsets.UTF_8)\n .hash();\n String acceptKey = BaseEncoding.base64().encode(hc.asBytes());\n outputPeer.write(asUTF8(acceptKey));\n outputPeer.write(asUTF8(\"\\r\\n\\r\\n\"));\n }\n outputPeer.setHandshakeComplete(handshakeComplete);\n }",
"public void testThatStandardTransportClientCanConnectToDefaultProfile() throws Exception {\n assertGreenClusterState(internalCluster().transportClient());\n }",
"public interface WebsocketConfig {\n static final String WSURI = \"ws://192.168.20.3:8084/prospect\";\n}",
"public interface WebSocketSessionAware {\n void setWebSocketSession(WebSocketSession webSocketSession);\n}",
"protected void connect() {\n\t\treadProperties();\n\t\tif (validateProperties())\n\t\t\tjuraMqttClient = createClient();\n\t}",
"String webSocketUri();",
"@FunctionalInterface\npublic interface SocketInitializer {\n /**\n * The actual method used to initialize a pre-created WebSocket before a connection is made with it.\n * @param socket A WebSocket instance.\n * @return A <b>not-null</b> WebSocket instance with the updated properties.\n */\n @Nonnull WebSocket initialize(WebSocket socket);\n}",
"@Test\n\tpublic void sendMessagesToOneServer() throws URISyntaxException, InterruptedException {\n\t\t// CONFIG //\n\t\t////////////\n\n\t\tint messagesCountPerClient = 500;\n\t\tint clientsCount = 20;\n\t\tint sendPoolSize = 40;\n\t\tint totalMessagesCount = messagesCountPerClient * clientsCount;\n\n\t\tint messageSize = 307200;\n\n\t\twebSocketHandler.expectMessagesCount(totalMessagesCount);\n\t\twebSocketHandler.expectMessageSize(messageSize);\n\n\t\tString serverEndpoint = String.format(\"ws://localhost:%d/%s\", getServerPort(), endpoint);\n\t\tbyte[] message = new byte[messageSize];\n\t\tArrays.fill(message, (byte) 8);\n\n\t\t///////////\n\t\t// SETUP //\n\t\t///////////\n\n\t\tMap<Integer, DemoClient> clients = new HashMap<>();\n\n\t\tfor (int i = 0; i < clientsCount; i++) {\n\t\t\tURI uri = new URI(serverEndpoint);\n\t\t\tDemoClient client = new DemoClient(uri);\n\t\t\tclient.connectBlocking();\n\n\t\t\tclients.put(i, client);\n\t\t}\n\n\t\tThreadPoolExecutor tpe = new ThreadPoolExecutor(sendPoolSize, sendPoolSize, 1, TimeUnit.MINUTES, new LinkedBlockingQueue<>());\n\t\ttpe.prestartAllCoreThreads();\n\n\t\tlogger.info(\"Ready\");\n\n\t\t// Get some time to start visualvm\n// Thread.sleep(5);\n\n\t\tmonitorWebSocketHandler(webSocketHandler, 1, TimeUnit.SECONDS);\n\n\t\t/////////\n\t\t// RUN //\n\t\t/////////\n\n\t\tLocalDateTime startTime = LocalDateTime.now();\n\n\t\tfor (int i = 0; i < messagesCountPerClient; i++) {\n\t\t\tfor (int c = 0; c < clientsCount; c++) {\n\t\t\t\tDemoClient client = clients.get(c);\n\n\t\t\t\ttpe.submit(() -> {\n\t\t\t\t\tclient.send(message);\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\ttpe.shutdown();\n\t\ttpe.awaitTermination(1, TimeUnit.MINUTES);\n\n\t\twebSocketHandler.awaitExpectation();\n\n\t\tLocalDateTime endTime = LocalDateTime.now();\n\n\t\tlong duration = ChronoUnit.MILLIS.between(startTime, endTime);\n\n\t\tint messagesPerSecond = (int) (totalMessagesCount * 1000 / duration);\n\n\t\tBigInteger bandwidth = BigInteger.valueOf(messageSize)\n\t\t\t\t.multiply(BigInteger.valueOf(totalMessagesCount))\n\t\t\t\t.multiply(BigInteger.valueOf(1000))\n\t\t\t\t.divide(BigInteger.valueOf(duration))\n\t\t\t\t.divide(BigInteger.valueOf(1024*1024))\n\t\t\t\t;\n\n\t\tlogger.info(\"Test duration : {} ms\", duration);\n\t\tlogger.info(\"{} messages per second\", messagesPerSecond);\n\t\tlogger.info(\"{} MB/s total\", bandwidth);\n\t\tlogger.info(\"{} MB/s per connection\", bandwidth.divide(BigInteger.valueOf(clientsCount)));\n\t}",
"private void connectUsingCertificate() {\n\t\tfinal String METHOD = \"connectUsingCertificate\";\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"wss://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WSS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"ssl://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTTS_PORT;\n\t\t\t}\n\t\t} \n\n\t\tString mqttServer = getMQTTServer();\n\t\t\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, DATA_STORE);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t\tmqttClientOptions.setAutomaticReconnect(isAutomaticReconnect());\n\t\t\t\n\t\t\t/* This isn't needed as the production messaging.internetofthings.ibmcloud.com \n\t\t\t * certificate should already be in trust chain.\n\t\t\t * \n\t\t\t * See: \n\t\t\t * http://stackoverflow.com/questions/859111/how-do-i-accept-a-self-signed-certificate-with-a-java-httpsurlconnection\n\t\t\t * https://gerrydevstory.com/2014/05/01/trusting-x509-base64-pem-ssl-certificate-in-java/\n\t\t\t * http://stackoverflow.com/questions/12501117/programmatically-obtain-keystore-from-pem\n\t\t\t * https://gist.github.com/sharonbn/4104301\n\t\t\t * \n\t\t\t * CertificateFactory cf = CertificateFactory.getInstance(\"X.509\");\n\t\t\t * InputStream certFile = AbstractClient.class.getResourceAsStream(\"messaging.pem\");\n\t\t\t * Certificate ca = cf.generateCertificate(certFile);\n\t\t\t *\n\t\t\t * KeyStore keyStore = KeyStore.getInstance(KeyStore.getDefaultType());\n\t\t\t * keyStore.load(null, null);\n\t\t\t * keyStore.setCertificateEntry(\"ca\", ca);\n\t\t\t * TrustManager trustManager = TrustManagerUtils.getDefaultTrustManager(keyStore);\n\t\t\t * SSLContext sslContext = SSLContextUtils.createSSLContext(\"TLSv1.2\", null, trustManager);\n\t\t\t * \n\t\t\t */\n\n\t\t\tSSLContext sslContext = SSLContext.getInstance(\"TLSv1.2\");\n\t\t\tsslContext.init(null, null, null);\n\t\t\t\n\t\t\t//Validate the availability of Server Certificate\n\t\t\t\n\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Server-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tserverCert = trimedValue(options.getProperty(\"Server-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Server Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Client Certificate\n\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".pem\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".der\")||trimedValue(options.getProperty(\"Client-Certificate\")).contains(\".cer\")){\n\t\t\t\t\tclientCert = trimedValue(options.getProperty(\"Client-Certificate\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only PEM, DER & CER certificate formats are supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Certificate is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t//Validate the availability of Client Certificate Key\n\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")) != null){\n\t\t\t\tif (trimedValue(options.getProperty(\"Client-Key\")).contains(\".key\")){\n\t\t\t\t\tclientCertKey = trimedValue(options.getProperty(\"Client-Key\"));\n\t\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Only Certificate key in .key format is supported at this point of time\");\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Client Key is missing\");\n\t\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\n\t\t\t//Validate the availability of Certificate Password\n\t\t\ttry{\n\t\t\tif (trimedValue(options.getProperty(\"Certificate-Password\")) != null){\n\t\t\t\tcertPassword = trimedValue(options.getProperty(\"Certificate-Password\"));\n\t\t\t\t} else {\n\t\t\t\t\tcertPassword = \"\";\n\t\t\t\t}\n\t\t\t} catch (Exception e){\n\t\t\t\t\tLoggerUtility.log(Level.SEVERE, CLASS_NAME, METHOD, \"Value for Certificate Password is missing\", e);\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t\tthrow e;\n\t\t\t\t}\n\t\t\t\n\t\t\tmqttClientOptions.setSocketFactory(getSocketFactory(serverCert, clientCert, clientCertKey, certPassword));\n\n\t\t} catch (Exception e) {\n\t\t\tLoggerUtility.warn(CLASS_NAME, METHOD, \"Unable to configure TLSv1.2 connection: \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public interface WebSocketMessageTransmitter {\n /**\n * Transmits WEB SOCKET messages\n *\n * @param protocol\n * message protocol\n * @param message\n * message body\n */\n void transmit(String protocol, String message);\n}",
"private void doHandshake()throws Exception {\n\t\tHttpClient httpClient = new HttpClient();\n\t\t// Here set up Jetty's HttpClient, for example:\n\t\t// httpClient.setMaxConnectionsPerDestination(2);\n\t\thttpClient.start();\n\n\t\t// Prepare the transport\n\t\tMap<String, Object> options = new HashMap<String, Object>();\n\t\tClientTransport transport = new LongPollingTransport(options, httpClient);\n\n\t\t// Create the BayeuxClient\n\t\tClientSession client = new BayeuxClient(\"http://localhost:8080/childrenguard-server/cometd\", transport);\n\n\t\tclient.handshake(null,new ClientSessionChannel.MessageListener()\n\t\t{\n\t\t public void onMessage(ClientSessionChannel channel, Message message)\n\t\t {\n\t\t \tSystem.out.println(\"fail to connect to server.\");\n\t\t if (message.isSuccessful())\n\t\t {\n\t\t \tSystem.out.println(message);\n\t\t // Here handshake is successful\n\t\t }\n\t\t }\n\t\t});\n\t\t\n\t\t// Here set up the BayeuxClient, for example:\n\t\t//client.getChannel(Channel.META_CONNECT).addListener(new ClientSessionChannel.MessageListener() { });\n\n\t\t\n\t}",
"@Override\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(\"/ws\")\n .setAllowedOrigins(\"*\");\n }",
"@SuppressWarnings(\"SameParameterValue\")\n boolean canUpgrade(String transport) {\n return (!mUpgrading.get() && mTransport.getName().equals(Polling.NAME) && transport.equals(WebSocket.NAME));\n }",
"public ClientTSap() {\n socketFactory = SocketFactory.getDefault();\n }",
"@Override\n public void configureWebSocketTransport(WebSocketTransportRegistration registry) {\n registry.setSendTimeLimit(15 * 1000).setSendBufferSizeLimit(512 * 1024).setMessageSizeLimit(64 * 1024);\n WebSocketMessageBrokerConfigurer.super.configureWebSocketTransport(registry); \n }",
"private static void startWebSocketServer() {\n\n Server webSocketServer = new Server();\n ServerConnector connector = new ServerConnector(webSocketServer);\n connector.setPort(PORT);\n webSocketServer.addConnector(connector);\n log.info(\"Connector added\");\n\n // Setup the basic application \"context\" for this application at \"/\"\n // This is also known as the handler tree (in jetty speak)\n ServletContextHandler webSocketContext = new ServletContextHandler(\n ServletContextHandler.SESSIONS);\n webSocketContext.setContextPath(\"/\");\n webSocketServer.setHandler(webSocketContext);\n log.info(\"Context handler set\");\n\n try {\n ServerContainer serverContainer = WebSocketServerContainerInitializer\n .configureContext(webSocketContext);\n log.info(\"Initialize javax.websocket layer\");\n\n serverContainer.addEndpoint(GreeterEndpoint.class);\n log.info(\"Endpoint added\");\n\n webSocketServer.start();\n log.info(\"Server started\");\n\n webSocketServer.join();\n log.info(\"Server joined\");\n\n } catch (Throwable t) {\n log.error(\"Error startWebSocketServer {0}\", t);\n }\n }",
"@Override\n\tpublic void onOpen( ServerHandshake handshakedata ) {\n\t\tlog.info(\"opened connection\");\n\t\t// if you plan to refuse connection based on ip or httpfields overload: onWebsocketHandshakeReceivedAsClient\n\t}",
"public static void main(String[] args) {\n\t\t\n\t\tsetDebug(true);\n\t\t\n\t\tWebSocket webSocket = new WebSocket(\"main ws\", 1200); // TODO - not yet fully functional, sometimes fails\n\t\twebSocket.handshake();\n\t\t\n\t}",
"@Override\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(\"/messages\").withSockJS();\n }",
"@Override\n\tpublic void configure(WebSocketServletFactory arg0) {\n\t\tthrow new UnsupportedOperationException(\"not yet implemented\");\n\t}",
"public InputSocket(String url, String username, String password, String topic, Class<T> subscribedType)\t\n\t{\n\t\tthis.socket = new HTTPClient(username, password);\n\t\tthis.url = url;\t\t\n\t\tthis.topic = topic;\n\t\tthis.timeout = 5000;\n\t\tthis.limit = 1000;\n\t\tthis.subscribedType = subscribedType;\n\t\tthis.me = new Thread(this);\t\n\t}",
"@Override\n\tpublic void onOpen(org.java_websocket.WebSocket conn,\n\t\t\tClientHandshake handshake) {\n\t\t System.out.println(\"有人连接Socket conn:\" + conn);\n\t // l++;\n\t\t logger.info(\"有人连接Socket conn:\" + conn.getRemoteSocketAddress());\n\t\t l++;\n\t\t\n\t}",
"public void connect() {\n try {\n socket = connectToBackEnd();\n } catch (IOException ioe) {\n ioe.printStackTrace();\n }\n }",
"@Override\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(SAMPLE_ENDPOINT_MESSAGE_MAPPING)\n .setAllowedOrigins(\"*\")\n .withSockJS();\n\n }",
"public MyServer() {\n try {\n \ttimer = new Timer(1000, timerListener());\n regularSocket = new ServerSocket(7777);\n webServer = new Server(new InetSocketAddress(\"127.0.0.1\", 80));\n WebSocketHandler wsHandler = new WebSocketHandler() {\n\t @Override\n\t public void configure(WebSocketServletFactory factory) {\n\t factory.register(HumanClientHandler.class);\n\t }\n\t };\n\t \n webServer.setHandler(wsHandler);\n\t webServer.start();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"protected String getDefaultProtocols() {\r\n\t\tString sp = System.getProperty(\"transport.client.protocol\");\r\n\t\tif (isEmpty(sp))\r\n\t\t\tsp = \"SSL_TLS,TLS,SSL\";\r\n\t\treturn sp;\r\n\t}",
"ClientConnection connection();",
"public WebWorker(Socket s) {\n socket = s;\n}",
"private void applyConfig(GraphQLClientConfiguration configuration) {\n if (this.endpoint == null && configuration.getUrl() != null) {\n this.endpoint = URI.create(configuration.getUrl());\n }\n if (this.websocketUrl == null && configuration.getWebsocketUrl() != null) {\n this.websocketUrl = configuration.getWebsocketUrl();\n }\n if (this.headers == null && configuration.getHeaders() != null) {\n this.headers = configuration.getHeaders();\n }\n if (this.initPayload == null && configuration.getInitPayload() != null) {\n this.initPayload = configuration.getInitPayload();\n }\n if (this.websocketInitializationTimeout == null && configuration.getWebsocketInitializationTimeout() != null) {\n this.websocketInitializationTimeout = configuration.getWebsocketInitializationTimeout();\n }\n if (executeSingleOperationsOverWebsocket == null && configuration.getExecuteSingleOperationsOverWebsocket() != null) {\n this.executeSingleOperationsOverWebsocket = configuration.getExecuteSingleOperationsOverWebsocket();\n }\n if (allowUnexpectedResponseFields == null && configuration.getAllowUnexpectedResponseFields() != null) {\n this.allowUnexpectedResponseFields = configuration.getAllowUnexpectedResponseFields();\n }\n\n if (configuration.getWebsocketSubprotocols() != null) {\n configuration.getWebsocketSubprotocols().forEach(protocol -> {\n try {\n WebsocketSubprotocol e = WebsocketSubprotocol.fromString(protocol);\n this.subprotocols.add(e);\n } catch (IllegalArgumentException e) {\n log.warn(e);\n }\n });\n }\n\n VertxClientOptionsHelper.applyConfigToVertxOptions(options, configuration);\n }",
"public static String getDefaultEndpoint() {\n return \"biglake.googleapis.com:443\";\n }",
"@Override\r\n\tpublic void onError(WebSocket conn, Exception ex) {\n\r\n\t}",
"@OnOpen\n\tpublic void onOpen(Session session) {\n\t\tclients.add(session);\n\n\t\ttry {\n\n\t\t\tQuestionService qs = WebSocketSupportBean.getInstance().getQs();\n\n\t\t\tif (qs != null) {\n\t\t\t\tsendCurrentValues(session, qs);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// ignore for now\n\t\t}\n\n\t}",
"public static void initSocketClient(){\r\n\r\n try{\r\n //connectToProfilingServer();\r\n //setupClientStreams();\r\n handleData();\r\n }catch (EOFException eofe){\r\n eofe.printStackTrace();\r\n //TODO - send error message to server, we won't handle it here\r\n }catch (java.io.IOException ioe){\r\n ioe.printStackTrace();\r\n //TODO - send error message to server, we won't handle it here\r\n }catch (ClassNotFoundException ccne){\r\n ccne.printStackTrace();\r\n //TODO - send error message to server, we won't handle it here\r\n }finally {\r\n //closeSocketClient();\r\n }\r\n }",
"public void testThatStandardTransportClientCanConnectToNoClientAuthProfile() throws Exception {\n try(TransportClient transportClient = new TestXPackTransportClient(Settings.builder()\n .put(transportClientSettings())\n .put(\"xpack.security.transport.ssl.enabled\", true)\n .put(\"node.name\", \"programmatic_transport_client\")\n .put(\"cluster.name\", internalCluster().getClusterName())\n .build(), LocalStateSecurity.class)) {\n transportClient.addTransportAddress(new TransportAddress(localAddress,\n getProfilePort(\"no_client_auth\")));\n assertGreenClusterState(transportClient);\n }\n }",
"public void connect(String firebaseToken) {\n // If socket is already connected\n if ((socket != null && socket.connected()) || !authService.isLoggedInUnboxed()) {\n return;\n }\n\n try {\n // Create socket\n if (socket == null) {\n // Specify connection options and connect\n String baseUrl = \"socket\";\n IO.Options opts = new IO.Options();\n opts.query = String.format(\"auth_token=%s&firebase_token=%s\",\n authService.getAuthToken().replace(\"Bearer \", \"\"),\n firebaseToken);\n opts.forceNew = true;\n\n socket = IO.socket(ConfigurationManager.getInstance().getProperty(\n \"SERVER_URL\") + baseUrl, opts);\n }\n\n // Connect\n socket.connect();\n\n // On connect\n socket.on(Socket.EVENT_CONNECT, args -> logger.info(\"Socket connected\"));\n // On error\n socket.on(Socket.EVENT_ERROR, args -> logger.error(\"Socket error\"));\n // On disconnection\n socket.on(Socket.EVENT_DISCONNECT, args -> logger.info(\"Socket disconnected\"));\n\n // On receiving data message\n socket.on(\"data_message\", args -> {\n // Extract payload\n String stringPayload = (String) args[0];\n Gson gson = new Gson();\n\n // Deserialize json to HashMap\n // Adapted from https://stackoverflow.com/questions/14944419\n Type stringStringMap = new TypeToken<Map<String, String>>(){}.getType();\n Map<String, String> payload = gson.fromJson(stringPayload, stringStringMap);\n\n if (payload.containsKey(\"type\") && payload.containsKey(\"data\")) {\n String type = payload.get(\"type\");\n String data = payload.get(\"data\");\n pubSubHub.publish(type, data);\n }\n });\n } catch (URISyntaxException e) {\n e.printStackTrace();\n }\n }",
"@Override\n\t\t\tpublic void onOpen(WebSocket conn, ClientHandshake handshake) {\n\t\t\t\tSystem.out.print(\"onOpen\");\n\t\t\t\tif(listener!=null) listener.onMessage(\"onOpen\");\n\t\t\t}",
"@Override\n public void registerStompEndpoints(StompEndpointRegistry stompEndpointRegistry) {\n stompEndpointRegistry.addEndpoint(\"/stock-list\")\n .setAllowedOrigins(\"*\")\n .withSockJS();\n }",
"public TelemetryClientClient()\n {\n TelemetryClient tc = new TelemetryClient();\n if (!tc.getOnlineStatus())\n tc.connect(\"a connection string\");\n\n tc.send(\"some message\");\n\n String response = tc.receive();\n\n tc.disconnect();\n\n }",
"private void configureMqtt() {\n\t\tString protocol = null;\n\t\tint port = getPortNumber();\n\t\tif (isWebSocket()) {\n\t\t\tprotocol = \"ws://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = WS_PORT;\n\t\t\t}\n\t\t} else {\n\t\t\tprotocol = \"tcp://\";\n\t\t\t// If there is no port specified use default\n\t\t\tif(port == -1) {\n\t\t\t\tport = MQTT_PORT;\n\t\t\t}\n\t\t}\n\t\t\n\t\tString mqttServer = getMQTTServer();\n\t\tif(mqttServer != null){\n\t\t\tserverURI = protocol + mqttServer + \":\" + port;\n\t\t} else {\n\t\t\tserverURI = protocol + getOrgId() + \".\" + MESSAGING + \".\" + this.getDomain() + \":\" + port;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tpersistence = new MemoryPersistence();\n\t\t\tmqttAsyncClient = new MqttAsyncClient(serverURI, clientId, persistence);\n\t\t\tmqttAsyncClient.setCallback(mqttCallback);\n\t\t\tmqttClientOptions = new MqttConnectOptions();\n\t\t\tif (clientUsername != null) {\n\t\t\t\tmqttClientOptions.setUserName(clientUsername);\n\t\t\t}\n\t\t\tif (clientPassword != null) {\n\t\t\t\tmqttClientOptions.setPassword(clientPassword.toCharArray());\n\t\t\t}\n\t\t\tmqttClientOptions.setCleanSession(this.isCleanSession());\n\t\t\tif(this.keepAliveInterval != -1) {\n\t\t\t\tmqttClientOptions.setKeepAliveInterval(this.keepAliveInterval);\n\t\t\t}\n\t\t\tmqttClientOptions.setMaxInflight(getMaxInflight());\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public Message<?> preSend(Message<?> message, MessageChannel channel){\n StompHeaderAccessor accessor = StompHeaderAccessor.wrap(message);\n StompCommand stc = accessor.getCommand();\n\n String session = accessor.getSessionId();\n String roomId, username, memberName;\n\n // System.out.println(accessor.getDestination());\n // System.out.println(session);\n \n // String token = accessor.getFirstNativeHeader(\"Authorization\");\n // String destination = accessor.getDestination();\n\n switch(stc) {\n case CONNECT :\n // 도저히 jwt 인증은 해결 안되네..\n // authentication 객체를 어디다 담아야 websocket security에서 통과시켜줄까?\n // String jwt = ju.parseJwt(token);\n // String validResult = \"\";\n // if(jwt != null){\n // validResult = ju.validateJwtToken(jwt);\n // }\n // if (validResult.equals(\"OK\")) {\n // try {\n \n // username = ju.getUserNameFromJwtToken(jwt);\n // roles = ju.getRolesFromJwtToken(jwt);\n // UserDetailsImpl userDetails = new UserDetailsImpl();\n // userDetails.setId(username);\n // userDetails.setRoles(roles);\n // UsernamePasswordAuthenticationToken authentication = \n // new UsernamePasswordAuthenticationToken(\n // userDetails, \n // null, \n // userDetails.getAuthorities()\n // );\n\n // SecurityContextHolder.getContext().setAuthentication(authentication);\n \n // accessor.setUser(authentication);\n // } catch (Exception e) {\n // e.printStackTrace();\n // }\n // }\n \n\n System.out.println(\"STOMP CONNECTED\");\n\n break;\n\n case SUBSCRIBE :\n\n roomId = chatService.getRoomId(accessor.getDestination());\n username = accessor.getFirstNativeHeader(\"username\");\n memberName = accessor.getFirstNativeHeader(\"memberName\");\n\n // System.out.println(session + \" : \" + roomId + \" : \" + username + \" : \" + memberName);\n //채팅방 접속일 경우\n if(roomId.equals(\"all\")){\n //세션 저장\n chatService.setSession(session, roomId, username, memberName);\n //접속 수 +1\n chatService.increaseUserCount(roomId);\n //입장 메세지 전송\n chatService.sendChatMessage(\n ChatMessage\n .builder()\n .roomId(roomId)\n .username(username)\n .memberName(memberName)\n .type(ChatMessage.MessageType.ENTER)\n .message(\"[시스템] \" + memberName + \"님이 입장하였습니다.\")\n .sendDate(\"\")\n .build()\n );\n }else if(roomId.equals(\"ccu\")){\n System.out.println(accessor.getDestination());\n System.out.println(session);\n }\n \n // System.out.println(\"STOMP SUBSCRIBED\");\n break;\n\n case DISCONNECT :\n\n // System.out.println(accessor.getDestination());\n // System.out.println(session);\n \n //채팅 세션 처리\n Optional\n .ofNullable(chatService.getSession(session))\n .ifPresent(\n chatSession -> {\n String innerRoomId = chatSession.getRoomId();\n String innerUsername = chatSession.getUsername();\n String innerMemberName = chatSession.getMemberName();\n \n //해당 세션 삭제\n chatService.deleteSession(session);\n //접속 수 -1\n chatService.decreaseUserCount(innerRoomId);\n \n //접속 인원 -, 해당 방 유저들에게 퇴장했다고 알려야 함. destination, memberName 필요.\n chatService.sendChatMessage(\n ChatMessage\n .builder()\n .roomId(innerRoomId)\n .username(innerUsername)\n .memberName(innerMemberName)\n .type(ChatMessage.MessageType.EXIT)\n .message(\"[시스템] \" + innerMemberName + \"님이 퇴장하였습니다.\")\n .sendDate(\"\")\n .build()\n );\n }\n );\n\n //세션 가져오기\n // ChatSession chatSession = chatService.getSession(session);\n // if(chatSession != null){\n // roomId = chatSession.getRoomId();\n // username = chatSession.getUsername();\n // memberName = chatSession.getMemberName();\n\n // //해당 세션 삭제\n // chatService.deleteSession(session);\n // //접속 수 -1\n // chatService.decreaseUserCount(roomId);\n\n // //접속 인원 -, 해당 방 유저들에게 퇴장했다고 알려야 함. destination, memberName 필요.\n // chatService.sendChatMessage(\n // ChatMessage\n // .builder()\n // .roomId(roomId)\n // .username(username)\n // .memberName(memberName)\n // .type(ChatMessage.MessageType.EXIT)\n // .message(\"[시스템] \" + memberName + \"님이 퇴장하였습니다.\")\n // .sendDate(\"\")\n // .build()\n // );\n // }\n\n // System.out.println(\"STOMP DISCONNECTED\");\n break;\n\n case SEND :\n\n // System.out.println(\"STOMP SEND\");\n break;\n\n default :\n\n break;\n }\n return message;\n }",
"private static Socket m39192a(Socket socket) {\n if (socket instanceof SSLSocket) {\n SSLSocket sSLSocket = (SSLSocket) socket;\n ArrayList arrayList = new ArrayList(Arrays.asList(sSLSocket.getSupportedProtocols()));\n arrayList.retainAll(Arrays.asList(new String[]{\"TLSv1.2\", \"TLSv1.1\", \"TLSv1\"}));\n sSLSocket.setEnabledProtocols((String[]) arrayList.toArray(new String[arrayList.size()]));\n }\n return socket;\n }",
"private WebClient getWebClient() {\n if (webClient == null) {\n webClient = new WebClient();\n webClient.getOptions().setUseInsecureSSL(true);\n webClient.getOptions().setThrowExceptionOnScriptError(false);\n webClient.getOptions().setCssEnabled(false);\n\n silenceWebClient(webClient);\n }\n\n return webClient;\n }",
"public interface PushsaferClientConfiguration {\n\n URI pushsaferBaseUrl();\n\n Duration connectionTimeoutDuration();\n\n Duration responseTimeoutDuration();\n}",
"@OnOpen\n public void onOpen(final Session session)\n {\n System.out.println(session.getId() + \" has open a connection\");\n // since all connection use the same process create a private context\n final YAPIContext yctx = new YAPIContext();\n try {\n yctx.PreregisterHubWebSocketCallback(session);\n } catch (YAPI_Exception e) {\n e.printStackTrace();\n return;\n }\n\n Thread thread = new Thread(new Runnable()\n {\n @Override\n public void run()\n {\n\n\n try {\n // register the YoctoHub/VirtualHub that start the connection\n yctx.UpdateDeviceList();\n\n // list all devices connected on this hub (only for debug propose)\n System.out.println(\"Device list:\");\n YModule module = YModule.FirstModuleInContext(yctx);\n while (module != null) {\n System.out.println(\" \" + module.get_serialNumber() + \" (\" + module.get_productName() + \")\");\n module = module.nextModule();\n }\n\n // play a bit with relay output :-)\n try {\n YRelay relay = YRelay.FirstRelayInContext(yctx);\n if (relay != null) {\n relay.set_state(YRelay.STATE_A);\n Thread.sleep(500);\n relay.set_state(YRelay.STATE_B);\n Thread.sleep(250);\n relay.set_state(YRelay.STATE_A);\n Thread.sleep(250);\n relay.set_state(YRelay.STATE_B);\n Thread.sleep(500);\n relay.set_state(YRelay.STATE_A);\n Thread.sleep(1000);\n relay.set_state(YRelay.STATE_B);\n Thread.sleep(500);\n relay.set_state(YRelay.STATE_A);\n Thread.sleep(1000);\n relay.set_state(YRelay.STATE_B);\n } else {\n System.out.println(\"No Relay connected\");\n }\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n } catch (YAPI_Exception ex) {\n System.out.println(\" error (\" + ex.getLocalizedMessage() + \")\");\n ex.printStackTrace();\n }\n // no not forget to FreeAPI to ensure that all pending operation\n // are finished and freed\n yctx.FreeAPI();\n }\n });\n thread.start();\n }",
"protected void configureClient(ChannelHandlerContext ctx) {\n\t\tSystem.out.println(\"Checking auth\");\n\t\t\n\t\tWebSession sess = ctx.channel().attr(WebSession.webSessionKey).get();\n\t\t\n\t\tif (sess == null) {\n\t\t\tSystem.out.println(\"Closing websocket connection, no session found\");\n\t\t\tctx.writeAndFlush(new CloseWebSocketFrame(400, \"NO SESSION FOUND\")).addListener(ChannelFutureListener.CLOSE);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Got session id: \"+sess.getSessionId());\n\t\t\n\t\tAppRunner ar = ctx.channel().attr(AppPlugHandler.appPlugKey).get();\n\t\tar.addCtx(ctx);\n\t\t\n\t\tci = new ClientInvocation(ctx, ar)\n\t\t{\n\t\t\t@Override\n\t\t\tpublic void invoke(String val)\n\t\t\t{\n\t\t\t\tthis.sendToAll(val);\n\t\t\t}\n\t\t};\n\t}",
"public interface WebSocketListener {\n\n /**\n * Called when a new WebSocket message is delivered.\n *\n * @param message new WebSocket message\n * @throws IOException thrown if an observer failed to process the message\n */\n void onMessage(String message) throws IOException;\n\n void onError(Exception e);\n\n void onClose();\n}",
"@OnOpen\n public void onOpen(Session session, EndpointConfig config) {\n // Mapping the current WebSocket Session to the HTTP Session\n HttpSession httpSession = (HttpSession) config.getUserProperties().get(HttpSession.class.getName());\n LiveViewServlet.socketMap.put(httpSession.getId(), session);\n }",
"void connect() throws TransportException;",
"public SSLEngine openSSLEngine()\n {\n SSLSocketProvider.Dependencies deps = getSocketProvider().getDependencies();\n SSLEngine engine = deps.getSSLContext().createSSLEngine();\n String[] asCiphers = deps.getEnabledCipherSuites();\n String[] asProtocols = deps.getEnabledProtocolVersions();\n if (asCiphers != null)\n {\n engine.setEnabledCipherSuites(asCiphers);\n }\n\n if (asProtocols != null)\n {\n engine.setEnabledProtocols(asProtocols);\n }\n\n switch (deps.getClientAuth())\n {\n case wanted:\n engine.setNeedClientAuth(false);\n engine.setWantClientAuth(true);\n break;\n case required:\n engine.setWantClientAuth(true);\n engine.setNeedClientAuth(true);\n break;\n case none:\n default:\n engine.setWantClientAuth(false);\n engine.setNeedClientAuth(false);\n break;\n }\n\n return engine;\n }",
"default String socket() {\n return WebServer.DEFAULT_SOCKET_NAME;\n }",
"public UPKClient() {\n connectToServer(BASE_URL);\n }",
"private void requestConnection() {\n getGoogleApiClient().connect();\n }",
"@Override\n\tpublic void registerStompEndpoints(StompEndpointRegistry registry) {\n\t\tregistry.addEndpoint(\"/messages\");\n\n\t\t// Register additional fallback handling using sock-js\n\t\t// (http://myserver.com/ws/rest/messages)\n\t\tregistry.addEndpoint(\"/messages\").withSockJS();\n\n\t}",
"proto.MessagesProtos.ClientRequest.Socket getSock();",
"@Override\n\tpublic void reconnect() {\n\n\t}",
"private void handleHttpRequest(ChannelHandlerContext ctx, FullHttpRequest req) throws Exception {\n if (!req.getDecoderResult().isSuccess()) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, BAD_REQUEST));\n return;\n }\n\n // Allow only GET methods.\n if (req.getMethod() != GET) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, FORBIDDEN));\n return;\n }\n\n // Send the demo page and favicon.ico\n if (\"/\".equals(req.getUri())) {\n ByteBuf content = getContent(getWebSocketLocation(req));\n FullHttpResponse res = new DefaultFullHttpResponse(HTTP_1_1, OK, content);\n res.headers().set(CONTENT_TYPE, \"text/html; charset=UTF-8\");\n setContentLength(res, content.readableBytes());\n sendHttpResponse(ctx, req, res);\n return;\n }\n if (\"/favicon.ico\".equals(req.getUri())) {\n FullHttpResponse res = new DefaultFullHttpResponse(HTTP_1_1, NOT_FOUND);\n sendHttpResponse(ctx, req, res);\n return;\n }\n\n Channel channel = ctx.channel();\n\n QueryStringDecoder dec = new QueryStringDecoder(req.getUri());\n String username = dec.parameters().get(\"username\").get(0);\n String page = dec.parameters().get(\"page\").get(0);\n channel.attr(WebSocketServer.USERNAME).set(username);\n Archon.getInstance().getLogger().warning(Thread.currentThread().getName() + \" [WS] channel username for \" + channel + \": \" + username + \" - page=\" + page);\n\n // Handshake\n WebSocketServerHandshakerFactory wsFactory = new WebSocketServerHandshakerFactory(getWebSocketLocation(req), null, false);\n handshaker = wsFactory.newHandshaker(req);\n if (handshaker == null) {\n WebSocketServerHandshakerFactory.sendUnsupportedWebSocketVersionResponse(ctx.channel());\n } else {\n handshaker.handshake(ctx.channel(), req).addListener((ChannelFutureListener) future -> {\n Channel channel1 = future.channel();\n if (future.isSuccess()) {\n channel1.attr(WebSocketServer.REGISTERED).set(true);\n server.addChannel(channel1);\n } else {\n future.channel().attr(WebSocketServer.REGISTERED).set(false);\n Archon.getInstance().getLogger().log(Level.WARNING, Thread.currentThread().getName() + \" [WS] Failed to register channel (handshake): \" + channel1, future.cause());\n }\n });\n }\n }",
"private void initializeSocket() {\n\n //creating a socket to connect to the node js server using socket.io.client\n try {\n //check for internet connection\n if(!isOnline()) {\n throw new Exception();\n }\n\n //generating a random number for join id in the server\n Random rand = new Random();\n int id = rand.nextInt(50) + 1;\n\n //using sharedPreferences to read the link to the server: heroku or local\n SharedPreferences sharedPref = getActivity().getPreferences(Context.MODE_PRIVATE);\n String url = sharedPref.getString(getString(R.string.link), \"http://192.168.1.119:3001\");\n Log.i(\"INFO\",url);\n\n socket = IO.socket(url); //specifying the url\n socket.connect(); //connecting to the server\n //socket.emit(\"joinAndroid\",Integer.toString(id)); //specifying the join group to the server\n\n //callback functions for socket connected, message received and socket disconnected\n socket.on(Socket.EVENT_CONNECT, new Emitter.Listener() {\n\n @Override\n public void call(Object... args) {\n }\n\n }).on(\"pointData\", new Emitter.Listener() {\n\n @Override\n public void call(Object... args) {\n\n Log.i(\"INFO\", args[0].toString());\n //Toast.makeText(getContext(), args[0].toString(), Toast.LENGTH_SHORT).show();\n\n }\n\n }).on(Socket.EVENT_DISCONNECT, new Emitter.Listener() {\n\n @Override\n public void call(Object... args) {\n }\n\n });\n } catch(URISyntaxException e) {\n Log.i(\"INFO\",\"Uri syntax exception\");\n } catch(Exception e) {\n Log.i(\"INFO\", \"No internet connection\");\n Toast.makeText(getContext(), \"No Internet\", Toast.LENGTH_LONG).show();\n }\n }",
"public void registerStompEndpoints(StompEndpointRegistry registry) {\r\n\t\tLog.info(\"WebSocketConfig : registerStompEndpoints : start\");\r\n\t\tregistry.addEndpoint(\"/ws\").withSockJS();\r\n\t\tLog.info(\"WebSocketConfig : registerStompEndpoints : end\");\r\n\t}",
"public abstract Client getClient();",
"void shouldUseSocksProxy() {\n }",
"ClientTransport clientTransport(TransportResources resources);",
"private boolean createAndConnectTCPSocket() throws IOException {\n synchronized (internalLock) {\n if (!isClosed) {\n String scheme = uri.getScheme();\n int port = uri.getPort();\n if (scheme != null) {\n if (scheme.equals(\"ws\")) {\n SocketFactory socketFactory = SocketFactory.getDefault();\n socket = socketFactory.createSocket();\n socket.setSoTimeout(readTimeout);\n\n if (port != -1) {\n socket.connect(new InetSocketAddress(uri.getHost(), port), connectTimeout);\n } else {\n socket.connect(new InetSocketAddress(uri.getHost(), 80), connectTimeout);\n }\n } else if (scheme.equals(\"wss\")) {\n socket = socketFactory.createSocket();\n socket.setSoTimeout(readTimeout);\n\n if (port != -1) {\n socket.connect(new InetSocketAddress(uri.getHost(), port), connectTimeout);\n } else {\n socket.connect(new InetSocketAddress(uri.getHost(), 443), connectTimeout);\n }\n } else {\n throw new IllegalSchemeException(\"The scheme component of the URI should be ws or wss\");\n }\n } else {\n throw new IllegalSchemeException(\"The scheme component of the URI cannot be null\");\n }\n\n return true;\n }\n\n return false;\n }\n }",
"public Socket connectSocket(Socket sock, String host, int port, InetAddress localAddress, int localPort, HttpParams params)\n/* */ throws IOException\n/* */ {\n/* 105 */ if (host == null) {\n/* 106 */ throw new IllegalArgumentException(\"Target host may not be null.\");\n/* */ }\n/* 108 */ if (params == null) {\n/* 109 */ throw new IllegalArgumentException(\"Parameters may not be null.\");\n/* */ }\n/* */ \n/* 112 */ if (sock == null) {\n/* 113 */ sock = createSocket();\n/* */ }\n/* 115 */ if ((localAddress != null) || (localPort > 0))\n/* */ {\n/* */ \n/* 118 */ if (localPort < 0) {\n/* 119 */ localPort = 0;\n/* */ }\n/* 121 */ InetSocketAddress isa = new InetSocketAddress(localAddress, localPort);\n/* */ \n/* 123 */ sock.bind(isa);\n/* */ }\n/* */ \n/* 126 */ int timeout = HttpConnectionParams.getConnectionTimeout(params);\n/* */ \n/* 128 */ InetAddress[] inetadrs = InetAddress.getAllByName(host);\n/* 129 */ List<InetAddress> addresses = new ArrayList(inetadrs.length);\n/* 130 */ addresses.addAll(Arrays.asList(inetadrs));\n/* 131 */ Collections.shuffle(addresses);\n/* */ \n/* 133 */ IOException lastEx = null;\n/* 134 */ for (InetAddress remoteAddress : addresses) {\n/* */ try {\n/* 136 */ sock.connect(new InetSocketAddress(remoteAddress, port), timeout);\n/* */ }\n/* */ catch (SocketTimeoutException ex) {\n/* 139 */ throw new ConnectTimeoutException(\"Connect to \" + remoteAddress + \" timed out\");\n/* */ }\n/* */ catch (IOException ex) {\n/* 142 */ sock = new Socket();\n/* */ \n/* 144 */ lastEx = ex;\n/* */ }\n/* */ }\n/* 147 */ if (lastEx != null) {\n/* 148 */ throw lastEx;\n/* */ }\n/* 150 */ return sock;\n/* */ }",
"public void onMessage(WebSocket conn, String message);",
"@OnWebSocketConnect\n\tpublic void onConnect(Session session) {\n\t\tthis.session = session;\n\t\tlatch.countDown();\n\t}",
"@Bean // Inject this bean -> -at Qualifier(\"webClient\")\n\tpublic WebClient webClient() {\n\n\t\tfinal TcpClient tcpClient = TcpClient.create()\n\t\t\t\t.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, TIMEOUT)\n\t\t\t\t.doOnConnected(conn -> conn.addHandlerLast(new ReadTimeoutHandler(TIMEOUT)).addHandlerLast(new WriteTimeoutHandler(TIMEOUT)))\n\t\t\t\t.wiretap(true); // Helps logging, each request and response will be logged in full detail.\n\n\t\t@SuppressWarnings(\"deprecation\")\n\t\tfinal ClientHttpConnector clientHttpConnector = new ReactorClientHttpConnector(\n\t\t\t\tHttpClient.from(tcpClient).keepAlive(true));\n\n\t\treturn webClientBuilder\n\t\t\t\t.baseUrl(this.consumerBaseUrl)\n\t\t\t\t.codecs(clientCodecConfigure -> clientCodecConfigure.defaultCodecs().enableLoggingRequestDetails(true))\n\t\t\t\t.clientConnector(clientHttpConnector)\n//\t\t\t\t.codecs(clientConfigurer -> clientConfigurer.defaultCodecs().maxInMemorySize(TRANFER_SIZE * 1024 * 1024)) // is set in application.properties -> spring.codec.max-in-memory-size\n\t\t\t\t.defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)\n\t\t\t\t.defaultHeader(HttpHeaders.USER_AGENT, USER_AGENT)\n\t\t\t\t.filters(exchangeFilterFunctions -> {\n\t\t\t\t\texchangeFilterFunctions.add(logRequest());\n//\t\t\t\t\texchangeFilterFunctions.add(logResponse());\n\t\t\t\t})\n\t\t\t\t.build();\n\t}",
"public void testThatStandardTransportClientCannotConnectToClientProfile() throws Exception {\n try (TransportClient transportClient = createTransportClient(Settings.EMPTY)) {\n transportClient.addTransportAddress(new TransportAddress(localAddress, getProfilePort(\"client\")));\n transportClient.admin().cluster().prepareHealth().get();\n fail(\"Expected NoNodeAvailableException\");\n } catch (NoNodeAvailableException e) {\n assertThat(e.getMessage(), containsString(\"None of the configured nodes are available: [{#transport#-\"));\n }\n }",
"@OnOpen\n @SuppressWarnings(\"rawtypes\")\n public void onOpen(WebSocketSession session, HttpRequest request) {\n session.put(HTTP_REQUEST_KEY, request);\n scheduler.schedule(configuration.getConnectionInitWaitTimeout(), () -> {\n if (!connections.contains(session.getId())) {\n session.close(new CloseReason(4408, \"Connection initialisation timeout.\"));\n }\n });\n if (LOG.isTraceEnabled()) {\n LOG.trace(\"Opened websocket connection with id {}\", session.getId());\n }\n }",
"public void establishSocketConnection() {\n\t\ttry {\n\t\t\tsocket = new Socket(serverIP, serverPort);\n\t\t\tlogger.info(\"Connection with JSON-RPC server opened at local endpoint \" + socket.getLocalAddress().getHostAddress() + \":\" + socket.getLocalPort());\n\t\t\t// create a writer to send JSON-RPC requests to the JSON-RPC server\n\t\t\twriter = new OutputStreamWriter(socket.getOutputStream(), \"utf-8\");\n\t\t\t// create a JsonReader object to receive JSON-RPC response\n\t\t\tjsonReader = new JsonReader(new InputStreamReader(socket.getInputStream(), \"utf-8\"));\n\t\t} catch (UnknownHostException e) {\n\t\t\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void onOpen(WebSocketConnection connection) {\n System.out.println(\"ClientConnected!\");\n clients.add(connection);\n projectIdReference.add(\"\");\n connectionCount++;\n }"
] |
[
"0.62342066",
"0.60312426",
"0.6016931",
"0.58988893",
"0.582842",
"0.57757056",
"0.5769684",
"0.56354725",
"0.5624952",
"0.55778646",
"0.5564136",
"0.5537519",
"0.5515017",
"0.5477855",
"0.54685974",
"0.5438846",
"0.543052",
"0.540925",
"0.53775376",
"0.53452754",
"0.5233487",
"0.5225723",
"0.5217015",
"0.51860577",
"0.5163343",
"0.51608586",
"0.51430917",
"0.5104168",
"0.5085776",
"0.50826865",
"0.50755167",
"0.5070971",
"0.50588566",
"0.5044086",
"0.5038372",
"0.5030082",
"0.50009036",
"0.49954942",
"0.49791503",
"0.49739504",
"0.49666187",
"0.4942865",
"0.49224323",
"0.4898653",
"0.48831528",
"0.48821902",
"0.48648116",
"0.4852953",
"0.4847486",
"0.48143342",
"0.48077366",
"0.4804908",
"0.47898203",
"0.47816846",
"0.47683954",
"0.47612733",
"0.4755798",
"0.47189292",
"0.46986023",
"0.46935168",
"0.46862838",
"0.4672834",
"0.4672708",
"0.4664175",
"0.46566558",
"0.46411067",
"0.46408242",
"0.46407935",
"0.46392736",
"0.46376163",
"0.4630028",
"0.46242678",
"0.46112037",
"0.46077132",
"0.46063533",
"0.46047565",
"0.4604257",
"0.45875898",
"0.4572896",
"0.45689034",
"0.45575207",
"0.45373717",
"0.4526134",
"0.4512975",
"0.4508798",
"0.45080394",
"0.45062563",
"0.4506093",
"0.45011413",
"0.44982502",
"0.4498208",
"0.44955486",
"0.44926366",
"0.44924933",
"0.44873178",
"0.44815767",
"0.44801497",
"0.44696006",
"0.4459102",
"0.4458753"
] |
0.5117333
|
27
|
SPRD : fixbug457824 Interface to modify the system.
|
private void setAudioProfilModem() {
int ringerMode = mAudioManager.getRingerModeInternal();
ContentResolver mResolver = mContext.getContentResolver();
Vibrator vibrator = (Vibrator) mContext
.getSystemService(Context.VIBRATOR_SERVICE);
boolean hasVibrator = vibrator == null ? false : vibrator.hasVibrator();
if (AudioManager.RINGER_MODE_SILENT == ringerMode) {
if (hasVibrator) {
Settings.System.putInt(mResolver,
Settings.System.SOUND_EFFECTS_ENABLED, 0);
/* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */
//mAudioManager.setRingerMode(AudioManager.RINGER_MODE_VIBRATE);
mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_VIBRATE);
/* @} */
mAudioManager.setVibrateSetting(
AudioManager.VIBRATE_TYPE_RINGER,
AudioManager.VIBRATE_SETTING_ON);
mAudioManager.setVibrateSetting(
AudioManager.VIBRATE_TYPE_NOTIFICATION,
AudioManager.VIBRATE_SETTING_ON);
} else {
Settings.System.putInt(mResolver,
Settings.System.SOUND_EFFECTS_ENABLED, 1);
/* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */
//mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);
/* @} */
}
} else if (AudioManager.RINGER_MODE_VIBRATE == ringerMode) {
Settings.System.putInt(mResolver,
Settings.System.SOUND_EFFECTS_ENABLED, 1);
/* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */
//mAudioManager.setRingerMode(AudioManager.RINGER_MODE_NORMAL);
mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_OUTDOOR);
/* @} */
}else if (AudioManager.RINGER_MODE_OUTDOOR == ringerMode) {//add by wanglei for outdoor mode
Settings.System.putInt(mResolver,Settings.System.SOUND_EFFECTS_ENABLED, 1);
mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_NORMAL);
}else {
Settings.System.putInt(mResolver,
Settings.System.SOUND_EFFECTS_ENABLED, 0);
/* SPRD: fixbug454214 The status bar scene mode button is not synchronized with the button set up the scene mode. @{ */
//mAudioManager.setRingerMode(AudioManager.RINGER_MODE_SILENT);
mAudioManager.setRingerModeInternal(AudioManager.RINGER_MODE_SILENT);
/* @} */
if (hasVibrator) {
mAudioManager.setVibrateSetting(
AudioManager.VIBRATE_TYPE_RINGER,
AudioManager.VIBRATE_SETTING_OFF);
mAudioManager.setVibrateSetting(
AudioManager.VIBRATE_TYPE_NOTIFICATION,
AudioManager.VIBRATE_SETTING_OFF);
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Software update( Software s );",
"public void sensorSystem() {\n\t}",
"protected abstract void setSpl();",
"@Override\n\t\tpublic void setService(String system_id) throws RemoteException {\n\t\t\tSystem.out.println(\"set service invoke on \" + system_id);\n\t\t}",
"void setSystem(java.lang.String system);",
"void secondarySetTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;",
"public void setSystem(byte system) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeByte(__io__address + 4, system);\n\t\t} else {\n\t\t\t__io__block.writeByte(__io__address + 4, system);\n\t\t}\n\t}",
"public void setSystem(String value) {\r\n this.system = value;\r\n }",
"Patch createNewPatch(byte[] gsysex, IDriver driver);",
"public abstract BaseQuantityDt setSystem(String theUri);",
"void setTechStuff(com.hps.july.persistence.Worker aTechStuff) throws java.rmi.RemoteException;",
"@Override\r\n public void leftSystem() {\n }",
"public void modify() {\n }",
"private void formatSystem() {}",
"protected abstract void fixChassis();",
"void writeLegacyPermissionStateTEMP();",
"@Override\n\tpublic void modify() {\n\t\t\n\t}",
"public void ventilationServices() {\n\t\tSystem.out.println(\"FH----overridden method from hospital management--parent class of fortis hospital\");\n\t}",
"@PUT\n\t@Path(\"/\") \n\t@Consumes(MediaType.APPLICATION_JSON) \n\t@Produces(MediaType.TEXT_PLAIN) \n\tpublic String updatesystem_editor(String systData) \n\t{\n\t\tJsonObject itemObject = new JsonParser().parse(systData).getAsJsonObject(); \n\t\t\n\t\t//Read the values from the JSON object\n\t\tString sid = itemObject.get(\"sid\").getAsString(); \n\t\tString username = itemObject.get(\"username\").getAsString(); \n\t\tString email = itemObject.get(\"email\").getAsString(); \n\t\tString password = itemObject.get(\"password\").getAsString(); \n\t\t\n\t\tString output = sysObj.updatesystem_editor(sid, username, email,password);\n\t\t\n\t\treturn output; \n\t}",
"public String modifyStu() {\n\t\tSystem.out.println(\"====================>>>>>\");\r\n\t\tSystem.out.println(stu.getStu_class());\r\n\t\tSystem.out.println(stu.getStu_name());\r\n\t\tSystem.out.println(de_id);\r\n\t\tDepartment de = departmentService.findDepartById(de_id);\r\n\t\tstu.setStu_department(de);\r\n\t\tSystem.out.println(\"====================>>>>>\");\r\n\t\tstuser.updateStudent(stu);\r\n\t\treturn \"modifyStuSuccess\";\r\n\t}",
"Patch createNewPatch(byte[] gsysex);",
"public void update() {\r\n for (SGSystem sys : systems.toArray(new SGSystem[0])) {\r\n sys.update();\r\n }\r\n }",
"Patch createNewPatch(byte[] gsysex, Device device);",
"public interface IUHFService {\n\n public static final int REGION_CHINA_840_845 = 0;\n public static final int REGION_CHINA_920_925 = 1;\n public static final int REGION_CHINA_902_928 = 2;\n public static final int REGION_EURO_865_868 = 3;\n public static final int RESERVED_A = 0;\n public static final int EPC_A = 1;\n public static final int TID_A = 2;\n public static final int USER_A = 3;\n public static final int FAST_MODE = 0;\n public static final int SMART_MODE = 1;\n public static final int LOW_POWER_MODE = 2;\n public static final int USER_MODE = 3;\n public static final String SERIALPORT = \"/dev/ttyMT2\";\n public static final String POWERCTL = \"/sys/class/misc/mtgpio/pin\";\n\n\n //默认参数初始化模块\n public int OpenDev();\n\n //释放模块\n public void CloseDev();\n\n //开始盘点\n public void inventory_start();\n\n // Handler用于处理返回的盘点数据\n public void inventory_start(Handler hd);\n\n public void setListener(Listener listener);\n\n public interface Listener {\n void update(Tag_Data var1);\n }\n //新盘点方法,Listener回调\n public void newInventoryStart();\n\n public void newInventoryStop();\n\n\n //设置密码\n public int set_Password(int which, String cur_pass, String new_pass);\n //停止盘点\n public int inventory_stop();\n\n /**\n * 从标签 area 区的 addr 位置(以 word 计算)读取 count 个值(以 byte 计算)\n * passwd 是访问密码,如果区域没被锁就给 0 值。\n *\n * @param area\n * @param addr\n * @param count\n * @param passwd\n * @return\n */\n public byte[] read_area(int area, int addr, int count, String passwd);\n public String read_area(int area, String str_addr\n , String str_count, String str_passwd);\n\n\n //把 content 中的数据写到标签 area 区中 addr(以 word 计算)开始的位 置。\n public int write_area(int area, int addr, String passwd, byte[] content);\n public int write_area(int area, String addr, String pwd, String count, String content);\n\n\n //选中要进行操作的 epc 标签\n public int select_card(int bank,byte[] epc,boolean mFlag);\n public int select_card(int bank,String epc,boolean mFlag);\n\n\n //设置天线功率\n public int set_antenna_power(int power);\n\n //读取当前天线功率值\n public int get_antenna_power();\n\n //设置频率区域\n public int set_freq_region(int region);\n\n public int get_freq_region();\n\n //设置盘点的handler\n public void reg_handler(Handler hd);\n\n\n public INV_TIME get_inventory_time();\n public int set_inventory_time(int work_t, int rest_t);\n public int MakeSetValid();\n public int setlock(int type, int area, int passwd);\n public int get_inventory_mode();\n public int set_inventory_mode(int m);\n //拿到最近一次详细内部错误信息\n public String GetLastDetailError();\n\n public int SetInvMode(int invm, int addr, int length);\n public int GetInvMode(int type);\n}",
"void updateRealSense() {\n\t\tLog.debug(\"\\n========== updating RealSense\");\n\t}",
"private void updSTMST()\n\t{ \n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update FG_STMST set \";\n\t\t\tM_strSQLQRY += \"ST_STKQT = ST_STKQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"ST_ALOQT = ST_ALOQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"ST_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"ST_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"ST_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\tM_strSQLQRY += \" where st_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and st_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_prdtp = '\"+strPRDTP+\"'\";\n\t\t\tM_strSQLQRY += \" and st_lotno = '\"+strLOTNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_rclno = '\"+strRCLNO+\"'\";\n\t\t\tM_strSQLQRY += \" and st_pkgtp = '\"+strPKGTP+\"'\";\n\t\t\tM_strSQLQRY+= \" and st_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\t//System.out.println(M_strSQLQRY);\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"updSTMST\");\n\t\t}\n\t}",
"public void setSystemOperationData(byte[] sysOpdata) {\n\t\tthis.systemOperationData=sysOpdata;\n\t}",
"public void run () {\n \n ExternalAgentReference childExtRef;\n LiaisonStatusReference childLSR;\n ALPAgentReference childAlpRef;\n ALPAgentReference alpRef = theApplication.currentAlpRef;\n ExternalAgentReference extRef = theApplication.currentExtRef;\n ArrayList affectedLSRs = new ArrayList();\n ArrayList extDescendants;\n ArrayList alpDescendants;\n ArrayList alpArray = new ArrayList(); \n ArrayList extArray = new ArrayList();\n Iterator extIt, alpIt;\n\n theApplication.mainWindow.setStatusBar(new String(\"Updating liaison permissions...\"));\n \n affectedLSRs.add(theLSR);\n\n // gather all affect extRefs \n extArray.add(extRef);\n extDescendants = theApplication.extSet.getDescendants(extRef);\n extIt = extDescendants.iterator();\n while(extIt.hasNext()){\n extArray.add(extIt.next());\n }\n\n // gather all affected Alp references \n alpArray.add(alpRef); \n // if the current ALP node controls subordinates, we must set \n // their permissions as well. \n if(!(alpRef.delegatesAuthority.booleanValue())){\n alpDescendants = theApplication.alpSet.getDescendants(alpRef);\n if(alpDescendants.size() > 0){\n alpIt = alpDescendants.iterator();\n while(alpIt.hasNext()){\n alpArray.add(alpIt.next());\n }\n }\n }\n\n // Now, cycle through and modify all necessary permissions\n\n alpIt = alpArray.iterator();\n while(alpIt.hasNext()){\n // outer loop, go through the current alp ref and any descendants\n childAlpRef = (ALPAgentReference) alpIt.next();\n // inner loop-- go through all affect ext refs. \n extIt = extArray.iterator();\n while(extIt.hasNext()){\n childExtRef = (ExternalAgentReference) extIt.next();\n childLSR = theApplication.liaisonSet.getStatusRef(childAlpRef, \n childExtRef);\n childLSR.ALPCanInitiate = new Boolean(theValue);\n affectedLSRs.add(childLSR);\n } // loop through affected external refs \n\n }\n\n theApplication.liaisonCollector.writeOutLSRsToJavaSpace(affectedLSRs);\n \n \n \n \n // Need to get teh external tree to repaint itself. \n theApplication.mainWindow.repaintMainExtTree();\n // Update permissions panel but not the values themselves, otherwise will\n // end up in an infinite event loop\n theApplication.mainWindow.updatePermissionsPanel(alpRef, extRef, false);\n theApplication.mainWindow.setStatusBar(new String(\"done.\"));\n \n }",
"private void updateDiagnostics() {\n\t// driveSubsystem.updateDiagnostics();\n\t// elevatorSubsystem.updateDiagnostics();\n\t// cubeSubsystem.updateDiagnostics();\n\t// cubeVision.updateDiagnostics();\n }",
"private void updPRMST()\n\t{ \n\t\ttry\n\t\t{\n\t\t\tM_strSQLQRY = \"Update CO_PRMST set \";\n\t\t\tM_strSQLQRY += \"PR_CSTQT = PR_CSTQT + \"+strISSQT+\",\";\n\t\t\tM_strSQLQRY += \"PR_TRNFL = '0',\";\n\t\t\tM_strSQLQRY += \"PR_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\tM_strSQLQRY += \"PR_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\tM_strSQLQRY += \" where pr_prdcd = '\"+strPRDCD+\"'\";\n\t\t\t\n\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t//System.out.println(\"update COprmt table :\"+M_strSQLQRY);\n\t\t}catch(Exception L_EX)\n\t\t{\n\t\t\tsetMSG(L_EX,\"updPRMST\");\n\t\t}\n\t}",
"public void service(){\n Serv_ID = 0;\n Serv_Emp_ID = 0;\n Serv_Event_ID = 0;\n Serv_Grant_ID = 0;\n Serv_Proj_ID = 0;//add project creation\n Serv_Date = \"currrent_date\";\n Serv_Type = \"\";\n Serv_Desc = \"\";\n Serv_Mon_Val = 0.00;\n Serv_Hours = 0;\n }",
"public interface Software extends Item, Technical\r\n{\r\n\t/**\r\n\t * A list of services provided by software\r\n\t * This is used in signals and messages between\r\n\t * software.\r\n\t *\r\n\t * @author Bo Zimmerman\r\n\t *\r\n\t */\r\n\tpublic enum SWServices\r\n\t{\r\n\t\tTARGETING,\r\n\t\tIDENTIFICATION,\r\n\t\tCOORDQUERY\r\n\t}\r\n\r\n\t/**\r\n\t * The parent menu that this software gets access from.\r\n\t * When Software is available from root, \"\" is returned.\r\n\t * @return parent menu that this software gets access from\r\n\t */\r\n\tpublic String getParentMenu();\r\n\r\n\t/**\r\n\t * The parent menu that this software gets access from.\r\n\t * When Software is available from root, \"\" is set.\r\n\t *\r\n\t * @param name parent menu that this software gets access from\r\n\t */\r\n\tpublic void setParentMenu(String name);\r\n\r\n\t/**\r\n\t * Returns the internal name of this software.\r\n\t * @return the internal name of this software.\r\n\t */\r\n\tpublic String getInternalName();\r\n\r\n\t/**\r\n\t * The internal name of this software.\r\n\t *\r\n\t * @param name the internal name of this software.\r\n\t */\r\n\tpublic void setInternalName(String name);\r\n\r\n\t/**\r\n\t * Returns settings specific to this disk.\r\n\t *\r\n\t * @see Software#setSettings(String)\r\n\t *\r\n\t * @return settings\r\n\t */\r\n\tpublic String getSettings();\r\n\r\n\t/**\r\n\t * Sets settings specific to this disk.\r\n\t *\r\n\t * @see Software#getSettings()\r\n\t *\r\n\t * @param settings the new settings\r\n\t */\r\n\tpublic void setSettings(final String settings);\r\n\r\n\t/**\r\n\t * Returns whether the given computer-entry command\r\n\t * should be responded to by THIS software object\r\n\t * on an activation command.\r\n\t * @param word the computer-entry command entered\r\n\t * @return true if this software should respond.\r\n\t */\r\n\tpublic boolean isActivationString(String word);\r\n\r\n\t/**\r\n\t * Returns whether the given computer-entry command\r\n\t * should be responded to by THIS software object\r\n\t * on a deactivation command.\r\n\t * @param word the computer-entry command entered\r\n\t * @return true if this software should respond.\r\n\t */\r\n\tpublic boolean isDeActivationString(String word);\r\n\r\n\t/**\r\n\t * Returns whether the given computer-entry command\r\n\t * should be responded to by THIS software object\r\n\t * on a WRITE/ENTER command.\r\n\t * @param word the computer-entry command\r\n\t * @param isActive true if the software is already activated\r\n\t * @return true if this software can respond\r\n\t */\r\n\tpublic boolean isCommandString(String word, boolean isActive);\r\n\r\n\t/**\r\n\t * Returns the menu name of this software, so that it can\r\n\t * be identified on its parent screen.\r\n\t * @return the menu name of this software\r\n\t */\r\n\tpublic String getActivationMenu();\r\n\r\n\t/**\r\n\t * Adds a new message to the screen from this program, which\r\n\t * will be received by those monitoring the computer\r\n\t * @see Software#getScreenMessage()\r\n\t * @see Software#getCurrentScreenDisplay()\r\n\t * @param msg the new message for the screen\r\n\t */\r\n\tpublic void addScreenMessage(String msg);\r\n\r\n\t/**\r\n\t * Returns any new messages from this program when\r\n\t * it is activated and on the screen. Seen by those\r\n\t * monitoring the computer.\r\n\t * @see Software#addScreenMessage(String)\r\n\t * @see Software#getCurrentScreenDisplay()\r\n\t * @return the new screen messages\r\n\t */\r\n\tpublic String getScreenMessage();\r\n\r\n\t/**\r\n\t * Returns the full screen appearance of this program when\r\n\t * it is activated and on the screen. Only those intentially\r\n\t * looking at the screen again, or forced by the program, will\r\n\t * see this larger message.\r\n\t * @see Software#addScreenMessage(String)\r\n\t * @see Software#getScreenMessage()\r\n\t * @return the entire screen message\r\n\t */\r\n\tpublic String getCurrentScreenDisplay();\r\n\r\n\t/**\r\n\t * Software runs on computers, and computers run on power systems.\r\n\t * This method tells the software what the power system \"circuit\" key\r\n\t * is that the computer host is running on, allowing the software to\r\n\t * find other equipment on the same circuit and control it.\r\n\t * @param key the circuit key\r\n\t */\r\n\tpublic void setCircuitKey(String key);\r\n\r\n\t/**\r\n\t * An internal interface for various software procedure\r\n\t * classes, allowing software to be more \"plug and play\".\r\n\t * \r\n\t * @author BZ\r\n\t *\r\n\t */\r\n\tpublic static interface SoftwareProcedure\r\n\t{\r\n\t\tpublic boolean execute(final Software sw, final String uword, final MOB mob, final String unparsed, final List<String> parsed);\r\n\t}\r\n}",
"public void editOperation() {\n\t\t\r\n\t}",
"public void softwareResources() {\n\t\t\r\n\t}",
"public String getSysCode()\n/* */ {\n/* 80 */ return this.sysCode;\n/* */ }",
"public String getSystemID()\n/* */ {\n/* 1299 */ return this.systemID;\n/* */ }",
"@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}",
"void updateSolrSystem(SolrSystemDTO systemDTO, UserDTO userDTO);",
"public void updateSwarm();",
"void xsetSystem(org.apache.xmlbeans.XmlString system);",
"private void registToWX() {\n }",
"public void updateStoredServices() {\n\t\ttableModelStoredServices.setData(((PswGenCtl) ctl).getServices().getServices());\n\t}",
"public com.vodafone.global.er.decoupling.binding.request.ModifySpType createModifySpType()\n throws javax.xml.bind.JAXBException\n {\n return new com.vodafone.global.er.decoupling.binding.request.impl.ModifySpTypeImpl();\n }",
"@Override\n protected Patch createNewPatch() {\n Patch p = getPatchFactory().createNewPatch(Constants.NEW_SYSEX, this);\n return p;\n }",
"@Override\n\t\tpublic void emergencyServices() {\n\t\t\tSystem.out.println(\"FH--emergency services\");\t\n\t\t\t\n\t\t}",
"@Override\n protected void service(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {\n \tString uname=req.getParameter(\"uname\");\n \tlong create=Long.parseLong((req.getParameter(\"create\")));\n \tString eval=req.getParameter(\"eval\");\n \tint uid=Integer.parseInt((req.getParameter(\"uid\")));\n \tSystem.out.println(uname+\":\"+create+\":\"+eval+\":\"+uid);\n \tEvals es=new Evals(0,uname,create,eval,uid); \n \t\n \tSwService ss=new SwServiceImpl();\n \tint index=ss.reviseEvalsService(es);\n \tSystem.out.println(index);\n\t\tif(index>0){\n\t\t\tresp.getWriter().write(\"1\");\n\t\t}else{\n\t\t\tresp.getWriter().write(\"-1\");\n\t\t}\n }",
"public void setSystemId(String systemId);",
"void setOsP( String osP );",
"protected JSLFrame editPatch(Patch p) {\n ErrorMsg.reportError(\"Error\", \"The Driver for this patch does not support Patch Editing.\");\n return null;\n }",
"private void performDirectEdit() {\n\t}",
"private void edit() {\n\n\t}",
"private void updrec() {\n\t\tsavedata();\n\t\tcontractDetail.retrieve(stateVariable.getXwordn(), stateVariable.getXwabcd());\n\t\tnmfkpinds.setPgmInd36(! lastIO.isFound());\n\t\tnmfkpinds.setPgmInd66(isLastError());\n\t\t// BR00011 Product found on Contract_Detail and NOT ERROR(CONDET)\n\t\tif (! nmfkpinds.pgmInd36() && ! nmfkpinds.pgmInd66()) {\n\t\t\trestoredata();\n\t\t\tcontractDetail.update();\n\t\t\tnmfkpinds.setPgmInd99(isLastError());\n\t\t\tif (nmfkpinds.pgmInd99()) {\n\t\t\t\tmsgObjIdx = setMsgObj(\"Y2U0007\", \"\", msgObjIdx, messages);\n\t\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tstateVariable.setZmsage(subString(errmsg, 1, 78));\n\t\t}\n\t}",
"@Override\r\n\tpublic void service(AgiRequest arg0, AgiChannel arg1) throws AgiException {\n\t\t\r\n String tpunch = getVariable(\"timeforpunch\");\r\n\t\t\r\n\t\tString docid = getVariable(\"DOCID\");\r\n\t\tString punchact = getVariable(\"ACTPUNCH\");\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString unid = getVariable(\"UNIQUEID\");\r\n\t\tString fname = \"edit\" + unid + \".WAV\";\r\n\t\tFile f = new File(\"/var/spool/asterisk/monitor/\" + fname);\r\n \t\r\n \tlong fsize = f.length();\r\n \tbyte[] data = new byte[(int)fsize];\r\n \t\r\n \ttry{\r\n \t FileInputStream fin = new FileInputStream(f);\r\n \t\r\n \t fin.read(data);\r\n \t\r\n \t fin.close();\r\n \t}catch(Exception e)\r\n \t{\r\n \t\t\r\n \t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString[] opts = new String[4];\r\n\t\topts[0] = docid;\r\n\t\topts[1] = punchact;\r\n\t\topts[2] = tpunch;\r\n\t\topts[3] = fname;\r\n\t\t\r\n\t\tString cmd = \"EDITPUNCHINTIME\";\r\n\t\t\r\n\t\t\r\n String url = \"http://www.heightsre.com/Examples/Test/PunchCLK.nsf/AstPortal\";\r\n\t \r\n\t\tNotesWSClient wsclient = new NotesWSClient(url);\r\n\t\t\r\n\t\tString[] res = wsclient.generalCommand(cmd, opts, data);\r\n\t\t\r\n\t\tdata = null;\r\n\t\t\r\n\r\n\t}",
"public void transferWrite( String sContract,String sMchCode,String sMchNameDes,String sMchCodeCont,String sTestPointId,String sPmNo,String pmDescription,String insNote) \n {\n ASPManager mgr = getASPManager();\n String repby=null;\n\n cmd = trans.addEmptyCommand(\"HEAD\",\"FAULT_REPORT_API.New__\",headblk);\n cmd.setOption(\"ACTION\",\"PREPARE\");\n trans = mgr.perform(trans);\n data = trans.getBuffer(\"HEAD/DATA\");\n\n trans.clear();\n cmd = trans.addCustomFunction(\"GETUSER\",\"Fnd_Session_API.Get_Fnd_User\",\"ISUSER\");\n\n cmd = trans.addCustomFunction(\"GETREPBY\",\"Person_Info_API.Get_Id_For_User\",\"REPORTED_BY\");\n cmd.addReference(\"ISUSER\",\"GETUSER/DATA\");\n\n cmd = trans.addCustomFunction(\"REPBYID\",\"Company_Emp_API.Get_Max_Employee_Id\",\"REPORTED_BY_ID\");\n cmd.addParameter(\"COMPANY\",data.getFieldValue(\"COMPANY\"));\n cmd.addReference(\"REPORTED_BY\",\"GETREPBY/DATA\");\n\n trans = mgr.perform(trans);\n repby = trans.getValue(\"GETREPBY/DATA/REPORTED_BY\");\n reportById = trans.getValue(\"REPBYID/DATA/REPORTED_BY_ID\");\n\n data.setValue(\"REPORTED_BY\",repby);\n data.setValue(\"REPORTED_BY_ID\",reportById);\n data.setValue(\"CONTRACT\",sContract);\n data.setValue(\"MCH_CODE\",sMchCode);\n data.setValue(\"MCH_CODE_DESCRIPTION\",sMchNameDes);\n data.setValue(\"MCH_CODE_CONTRACT\",sMchCodeCont);\n data.setValue(\"TEST_POINT_ID\",sTestPointId);\n data.setValue(\"PM_NO\",sPmNo);\n data.setValue(\"PM_DESCR\",pmDescription);\n data.setValue(\"NOTE\",insNote);\n //Bug 76003, start\n data.setValue(\"CONNECTION_TYPE_DB\",\"EQUIPMENT\");\n //Bug 76003, end\n\n headset.addRow(data);\n }",
"private void processUpdates(SystemMetadata newSystemMetadata)\n throws RetryableException, UnrecoverableException, SynchronizationFailed {\n\n logger.debug(task.taskLabel() + \" entering processUpdates...\");\n\n //XXX is cloning the identifier necessary?\n Identifier pid = D1TypeBuilder.cloneIdentifier(newSystemMetadata.getIdentifier());\n\n logger.info(buildStandardLogMessage(null, \"Start ProcessUpdate\"));\n logger.debug(task.taskLabel() + \" Getting sysMeta from HazelCast map\");\n // TODO: assume that if hasReservation indicates the id exists, that \n // hzSystemMetadata will not be null...can we make this assumption?\n SystemMetadata hzSystemMetadata = hzSystemMetaMap.get(pid);\n SystemMetadataValidator validator = null;\n String errorTracker = \"\";\n try {\n errorTracker = \"validateSysMeta\";\n \tvalidator = new SystemMetadataValidator(hzSystemMetadata);\n validator.validateEssentialProperties(newSystemMetadata, nodeCommunications.getMnRead());\n\n // if here, we know that the new system metadata is referring to the same\n // object, and we can consider updating other values.\n NodeList nl = nodeCommunications.getNodeRegistryService().listNodes();\n boolean isV1Object = AuthUtils.isCNAuthorityForSystemMetadataUpdate(nl, newSystemMetadata);\n errorTracker = \"processUpdate\";\n if (task.getNodeId().contentEquals(hzSystemMetadata.getAuthoritativeMemberNode().getValue())) {\n\n if (isV1Object) {\n \t// (no seriesId in V1 to validate)\n processV1AuthoritativeUpdate(newSystemMetadata, hzSystemMetadata);\n \n } else {\n \tvalidateSeriesId(newSystemMetadata,hzSystemMetadata);\n \tprocessV2AuthoritativeUpdate(newSystemMetadata, validator);\n \n }\n } else {\n \t// not populating anything other than replica information\n processPossibleNewReplica(newSystemMetadata, hzSystemMetadata, isV1Object);\n }\n logger.info(buildStandardLogMessage(null, \" Completed ProcessUpdate\"));\n } catch (InvalidSystemMetadata e) {\n if (validator == null) {\n throw new UnrecoverableException(\"In processUpdates, bad SystemMetadata from the HzMap\", e);\n } else {\n throw new UnrecoverableException(\"In processUpdates, could not find authoritativeMN in the NodeList\", e);\n }\n } catch (NotAuthorized e) {\n \tif (errorTracker.equals(\"validateSysMeta\")) {\n \t\tthrow SyncFailedTask.createSynchronizationFailed(task.getPid(), \"In processUpdates, while validating the checksum\", e);\n \t} else {\n \t\tthrow SyncFailedTask.createSynchronizationFailed(task.getPid(), \"NotAuthorized to use the seriesId. \", e);\n \t}\n } catch (IdentifierNotUnique | InvalidRequest | InvalidToken | NotFound e) {\n \n throw SyncFailedTask.createSynchronizationFailed(task.getPid(), \"In processUpdates, while validating the checksum\", e);\n } catch (ServiceFailure e) {\n extractRetryableException(e);\n throw new UnrecoverableException(\"In processUpdates, while validating the checksum:, e\");\n } catch (NotImplemented e) {\n throw new UnrecoverableException(\"In processUpdates, while validating the checksum:, e\");\n }\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}",
"void unsetSystem();",
"public AS400 getSystem() {\r\n return system;\r\n }",
"org.hyperflex.roscomponentmodel.System getSystem();",
"void switchScreen()\n {\n\n byte[] data = new byte[13];\n data[0] = (byte)0xF0;\n data[1] = (byte)0x00;\n data[2] = (byte)0x01;\n data[3] = (byte)0x05;\n data[4] = (byte)0x21;\n data[5] = (byte)DEFAULT_ID; //(byte)getID();\n data[6] = (byte)0x02; // \"Write Dump\" What??? Really???\n data[7] = (byte)0x15; // UNDOCUMENTED LOCATION\n data[8] = (byte)0x00; // UNDOCUMENTED LOCATION\n data[9] = (byte)0x01; // UNDOCUMENTED LOCATION\n data[10] = (byte)0x00; \n data[11] = (byte)0x00;\n data[12] = (byte)0xF7;\n tryToSendSysex(data);\n }",
"void systemBoot();",
"@Override\r\n\tpublic void updateResourceInformation() {\n\t}",
"private void updateStudentSecurityInfo() {\n\t\t\n\t\tstudent.setPassword(sPasswordPF1.getPassword());\n\t\tstudent.setSecuirtyAnswer1(sSecurityQ1TF.getText());\n\t\tstudent.setSecurityQuestion1((String)sSecurityList1.getSelectedItem());\n\t\tstudent.setSecurityAnswer2(sSecurityQ2TF.getText());\n\t\tstudent.setSecurityQuestion2((String)sSecurityList1.getSelectedItem());\n\t\t\n\t\t//Update Student security information in database\n\t\t\n\t}",
"abstract int patch();",
"protected final void sendPatchWorker(Patch p) {\n if (deviceIDoffset > 0)\n p.sysex[deviceIDoffset] = (byte) (getDeviceID() - 1);\n \n send(p.sysex);\n }",
"@Override\r\n\tpublic int update(SpUser t) {\n\t\treturn 0;\r\n\t}",
"System createSystem();",
"@DISPID(1611005952) //= 0x60060000. The runtime will prefer the VTID if present\n @VTID(27)\n boolean newWithAxisSystem();",
"public void appendSystem(String text) {\n try {\n StyledDocument doc = screenTP.getStyledDocument();\n doc.insertString(doc.getLength(), formatForPrint(text), doc.getStyle(\"system\"));\n } catch (BadLocationException ex) {\n// ex.printStackTrace();\n AdaptationSuperviser.logger.error(\"Error while trying to append system message in the \" + this.getName(), ex);\n }\n }",
"@Override\n\tpublic void updateResourceInformation() {\n\t}",
"public abstract void doPatch(RawPcodeImpl patchPcode);",
"SystemData systemData();",
"SystemData systemData();",
"SystemData systemData();",
"SystemData systemData();",
"SystemData systemData();",
"public void modifyStudent(Student student) {\n\t\t\r\n\t}",
"public void setSysNo(String sysNo) {\n this.sysNo = sysNo;\n }",
"@Override\n\tpublic void swim() {\n\t\t\n\t}",
"public SetPCProcess()\n {\n super(\"SetPC\");\n }",
"@Override\r\n\tpublic void sssDoLwTestPeriodic() {\n\r\n\t}",
"protected void updatePermanentWorkItems() throws NbaBaseException {\t//SPR2992 changed method signature\n\t\tgetLogger().logDebug(\"Starting updatePermanentWorkItems\");\n\t\t// get the receipt date from the temporary work item\n\t\t// NBA3290 code deleted\n\t\tfor (int i = 0; i < getPermWorkItems().size(); i++) {\t//SPR2992\n\t\t\tNbaDst perm = (NbaDst) getPermWorkItems().get(i);\t//SPR2992\n\t\t\t//NBA213 deleted code\n\t\t\tsetWiStatus(new NbaProcessStatusProvider(getUser(), perm)); //SPR1715 SPR2992\n\t\t\tperm.setStatus(getWiStatus().getPassStatus());\t//SPR2992\n\t\t\tNbaUtils.setRouteReason(perm,perm.getStatus());//APSL462\n\t\t\tperm.increasePriority(getWiStatus().getWIAction(), getWiStatus().getWIPriority());\t//SPR2992\n\t\t\tcopyCreateStation(perm);//ALS5191\n\t\t\tupdateWork(getUser(), perm);\t//SPR3009, NBA213\n\t\t\tif (perm.isSuspended()) {\n\t\t\t\tNbaSuspendVO suspendVO = new NbaSuspendVO();\n\t\t\t\tsuspendVO.setTransactionID(perm.getID());\n\t\t\t\tunsuspendWork(getUser(), suspendVO);\t//SPR3009, NBA213\n\t\t\t}\n\t\t\tif (!perm.getID().equals(getWork().getID())) { // APSL5055-NBA331.1\n\t\t\t\tunlockWork(getUser(), perm);\t//SPR3009, NBA213\t\t\t\t\n\t\t\t} // APSL5055-NBA331.1 \n\t\t\t//NBA213 deleted code\n\t\t}\n\t}",
"private static void updateMgmtServiceOption(HmDomain hmDom) {\r\n\t\tif (allOptionRadius.size() > 0) {\r\n\t\t\tHmUpgradeLog upgradeLog;\r\n\t\t\tList<HmUpgradeLog> lstLogBo = new ArrayList<HmUpgradeLog>();\r\n\t\t\tList<MgmtServiceOption> updateOptionBo = new ArrayList<MgmtServiceOption>();\r\n\r\n\t\t\tString post12 = \"The set of management options do not specify a RADIUS server.\";\r\n\t\t\tString action1 = \"If you need a RADIUS server for the set of management options, manually add it.\";\r\n\t\t\tString action2 = \"To keep the authentication method as local, leave the management options alone. To authenticate \"+NmsUtil.getOEMCustomer().getAccessPonitName()+\" admins through RADIUS, change the method of authentication to RADIUS or Both.\";\r\n\t\t\tString post3 = NmsUtil.getOEMCustomer().getNmsName() +\r\n\t\t\t\t\" chose a RADIUS server from one of the network policies and bound it to this set of management options.\";\r\n\t\t\tString action3 = \"If a network policy must use a different RADIUS server, clone this management options set, specify a different RADIUS server, and reference the newly cloned management options set in the network policy.\";\r\n\t\t\tString post4 = NmsUtil.getOEMCustomer().getNmsName() + \" bound the specified RADIUS server to this set of management options.\";\r\n\t\t\tString action4 = \"No action is required.\";\r\n\t\t\tString post5 = \"Because a network policy now only references a RADIUS server indirectly through a management options set, this network policy no longer references a RADIUS server.\";\r\n\t\t\tString action5 = \"If the network policy must use this RADIUS server, create a new set of management options that references it and specify that management options set in this network policy.\";\r\n\t\t\tMap<String, String> allRadius;\r\n\t\t\tMgmtServiceOption mgmtOption;\r\n\t\t\tfor (String optionIdOld : allOptionRadius.keySet()) {\r\n\t\t\t\tallRadius = allOptionRadius.get(optionIdOld);\r\n\t\t\t\tString former;\r\n\t\t\t\tif (\"-1\".equals(optionIdOld)) {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * these wlan policies have radius server but no mgmt service option\r\n\t\t\t\t\t */\r\n\t\t\t\t\tfor (String radiusName : allRadius.keySet()) {\r\n\t\t\t\t\t\tupgradeLog = new HmUpgradeLog();\r\n\t\t\t\t\t\tformer = \"Network policy \\\"\" + allRadius.get(radiusName) + \") specified RADIUS server \\\"\" + radiusName + \") but not a management options set.\";\r\n\t\t\t\t\t\tupgradeLog.setFormerContent(former);\r\n\t\t\t\t\t\tupgradeLog.setPostContent(post5);\r\n\t\t\t\t\t\tupgradeLog.setRecommendAction(action5);\r\n\t\t\t\t\t\tlstLogBo.add(upgradeLog);\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\t/*\r\n\t\t\t\t\t * get this mgmt service option information\r\n\t\t\t\t\t */\r\n\t\t\t\t\tLong newId = AhRestoreNewMapTools.getMapOption(Long.valueOf(optionIdOld));\r\n\t\t\t\t\tmgmtOption = QueryUtil.findBoById(MgmtServiceOption.class, newId);\r\n\t\t\t\t\tString optionName = mgmtOption.getMgmtName();\r\n\t\t\t\t\tString authType = \"\";\r\n\t\t\t\t\tswitch(mgmtOption.getUserAuth()) {\r\n\t\t\t\t\t\tcase EnumConstUtil.ADMIN_USER_AUTHENTICATION_RADIUS :\r\n\t\t\t\t\t\t\tauthType = \"RADIUS\";\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tcase EnumConstUtil.ADMIN_USER_AUTHENTICATION_BOTH :\r\n\t\t\t\t\t\t\tauthType = \"Both\";\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\tdefault :\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tStringBuilder strBody = new StringBuilder();\r\n\t\t\t\t\tString radiusName = \"\";\r\n\t\t\t\t\tfor (String radiusId : allRadius.keySet()) {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * set the radius server to this mgmt service option\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tif (!\"-1\".equals(radiusId)) {\r\n\t\t\t\t\t\t\tnewId = AhRestoreNewMapTools.getMapRadiusServerAssign(Long.valueOf(radiusId));\r\n\t\t\t\t\t\t\tif (null != newId) {\r\n\t\t\t\t\t\t\t\tList<?> radiusSql = QueryUtil.executeQuery(\"SELECT radiusName FROM \" + RadiusAssignment.class.getSimpleName(), null, new FilterParams(\"id\", newId));\r\n\t\t\t\t\t\t\t\tif (!radiusSql.isEmpty()) {\r\n\t\t\t\t\t\t\t\t\tradiusName = (String)(radiusSql.get(0));\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\tif (!\"\".equals(authType) && null == mgmtOption.getRadiusServer() && null != newId) {\r\n\t\t\t\t\t\t\t\tmgmtOption.setRadiusServer(AhRestoreNewTools.CreateBoWithId(RadiusAssignment.class, newId));\r\n\t\t\t\t\t\t\t\tupdateOptionBo.add(mgmtOption);\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t// get wlan policy name\r\n\t\t\t\t\t\tString[] wlans = allRadius.get(radiusId).split(\" \");\r\n\t\t\t\t\t\tStringBuilder strEnd = new StringBuilder();\r\n\t\t\t\t\t\tstrEnd.append(\"\\\"\");\r\n\t\t\t\t\t\tif (wlans.length == 1) {\r\n\t\t\t\t\t\t\tstrEnd.append(wlans[0]);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tfor (int i = 0; i < wlans.length; i ++) {\r\n\t\t\t\t\t\t\t\tif (i != wlans.length-1) {\r\n\t\t\t\t\t\t\t\t\tstrEnd.append(wlans[i]).append(\", \");\r\n\t\t\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t\t\tstrEnd.append(\"and \").append(wlans[i]);\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}\r\n\t\t\t\t\t\tstrEnd.append(\"\\\" \");\r\n\t\t\t\t\t\tif (!\"\".equals(authType) && allRadius.size() == 1) {\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * the mgmt service option has no corresponding radius server\r\n\t\t\t\t\t\t\t */\r\n\t\t\t\t\t\t\tif (\"-1\".equals(radiusId)) {\r\n\t\t\t\t\t\t\t\tupgradeLog = new HmUpgradeLog();\r\n\t\t\t\t\t\t\t\tstrEnd.append(\"However, no RADIUS server was specified in \");\r\n\t\t\t\t\t\t\t\tstrEnd.append((wlans.length == 1)?\"it.\":\"these network policies.\");\r\n\t\t\t\t\t\t\t\tformer = \"The management options set \\\"\" + optionName + \") specified \" + authType + \" for \"+NmsUtil.getOEMCustomer().getAccessPonitName()+\" admins authentication and was used in network policy \" + strEnd.toString();\r\n\t\t\t\t\t\t\t\tupgradeLog.setFormerContent(former);\r\n\t\t\t\t\t\t\t\tupgradeLog.setPostContent(post12);\r\n\t\t\t\t\t\t\t\tupgradeLog.setRecommendAction(action1);\r\n\t\t\t\t\t\t\t\tlstLogBo.add(upgradeLog);\r\n\t\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t\t * the mgmt service option has one same radius server\r\n\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\tupgradeLog = new HmUpgradeLog();\r\n\t\t\t\t\t\t\t\tstrEnd.append((wlans.length == 1)?\"which specified the RADIUS server \\\"\":\"all of which specified the same RADIUS server \\\"\");\r\n\t\t\t\t\t\t\t\tformer = \"The management options set \\\"\" + optionName + \") specified \" + authType + \" for \"+NmsUtil.getOEMCustomer().getAccessPonitName()+\" admins authentication and was used in network policy \" + strEnd.toString() + radiusName + \").\";\r\n\t\t\t\t\t\t\t\tupgradeLog.setFormerContent(former);\r\n\t\t\t\t\t\t\t\tupgradeLog.setPostContent(post4);\r\n\t\t\t\t\t\t\t\tupgradeLog.setRecommendAction(action4);\r\n\t\t\t\t\t\t\t\tlstLogBo.add(upgradeLog);\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\tstrBody.append(\" in network policy \").append(strEnd.toString());\r\n\t\t\t\t\t\t\tstrBody.append(radiusName.length() > 32 ? \"no RADIUS server was specified in which;\" : \"which referenced RADIUS server \\\"\" + radiusName + \");\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (strBody.length() > 0) {\r\n\t\t\t\t\t\tString strResult = strBody.toString().substring(0, strBody.toString().length()-1) + \".\";\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * the auth method is radius or both of the mgmt service option which has more than one corresponding radius server\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tif (!\"\".equals(authType)) {\r\n\t\t\t\t\t\t\tupgradeLog = new HmUpgradeLog();\r\n\t\t\t\t\t\t\tformer = \"The management options set \\\"\" + optionName + \") specified \" + authType + \" for \"+NmsUtil.getOEMCustomer().getAccessPonitName()+\" admins authentication and was used\" + strResult;\r\n\t\t\t\t\t\t\tupgradeLog.setFormerContent(former);\r\n\t\t\t\t\t\t\tupgradeLog.setPostContent(post3);\r\n\t\t\t\t\t\t\tupgradeLog.setRecommendAction(action3);\r\n\t\t\t\t\t\t\tlstLogBo.add(upgradeLog);\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * the auth method is local of the mgmt service option which has more than one corresponding radius server\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tupgradeLog = new HmUpgradeLog();\r\n\t\t\t\t\t\t\tformer = \"The management options set \\\"\" + optionName + \") specified Local for \"+NmsUtil.getOEMCustomer().getAccessPonitName()+\" admins authentication and was used\" + strResult;\r\n\t\t\t\t\t\t\tupgradeLog.setFormerContent(former);\r\n\t\t\t\t\t\t\tupgradeLog.setPostContent(post12);\r\n\t\t\t\t\t\t\tupgradeLog.setRecommendAction(action2);\r\n\t\t\t\t\t\t\tlstLogBo.add(upgradeLog);\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\r\n\t\t\t/*\r\n\t\t\t * update the mgmt service option data in database\r\n\t\t\t */\r\n\t\t\tif (updateOptionBo.size() > 0) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\tQueryUtil.bulkUpdateBos(updateOptionBo);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tAhRestoreDBTools.logRestoreMsg(\"update mgmt service option data error\");\r\n\t\t\t\t\tAhRestoreDBTools.logRestoreMsg(e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t/*\r\n\t\t\t * insert or update the data to database\r\n\t\t\t */\r\n\t\t\tif (lstLogBo.size() > 0) {\r\n\t\t\t\tfor (HmUpgradeLog log : lstLogBo) {\r\n\t\t\t\t\tlog.setOwner(hmDom);\r\n\t\t\t\t\tlog.setLogTime(new HmTimeStamp(System.currentTimeMillis(),hmDom.getTimeZoneString()));\r\n\t\t\t\t\tlog.setAnnotation(\"Click to add an annotation\");\r\n\t\t\t\t}\r\n\t\t\t\ttry {\r\n\t\t\t\t\tQueryUtil.bulkCreateBos(lstLogBo);\r\n\t\t\t\t} catch (Exception e) {\r\n\t\t\t\t\tAhRestoreDBTools.logRestoreMsg(\"insert mgmt service option upgrade log error\");\r\n\t\t\t\t\tAhRestoreDBTools.logRestoreMsg(e.getMessage());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public ModifyVirtualMachine(){\r\n\t\t super(COMMAND);\r\n\t}",
"public final void modifyMotorcycle(){\r\n \tgetOffer();\r\n \tgetExhaustSystem();\r\n \tgetTires();\r\n getWindshield();\r\n getLED();\r\n getEngineGuards();\r\n /* Note that any of this methods \r\n \t * could provide a default implementation \r\n \t * by being concretely defined\r\n \t */\r\n }",
"protected abstract void refresh() throws RemoteException, NotBoundException, FileNotFoundException;",
"public void stg() {\n\n\t}",
"SUP createSUP();",
"public void setSpid(int param){\n localSpidTracker = true;\n \n this.localSpid=param;\n \n\n }",
"public interface COPSPdpOSDataProcess extends COPSDataProcess {\r\n\r\n /**\r\n * Gets the policies to be uninstalled\r\n * @param man The associated request state manager\r\n * @return A <tt>Vector</tt> holding the policies to be uninstalled\r\n */\r\n public List<COPSDecision> getRemovePolicy(COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Gets the policies to be installed\r\n * @param man The associated request state manager\r\n * @return A <tt>Vector</tt> holding the policies to be uninstalled\r\n */\r\n public List<COPSDecision> getInstallPolicy(COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Makes a decision from the supplied request data\r\n * @param man The associated request state manager\r\n * @param reqSIs Client specific data suppplied in the COPS request\r\n */\r\n public void setClientData(COPSPdpOSReqStateMan man, List<COPSClientSI> reqSIs);\r\n\r\n /**\r\n * Builds a failure report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void failReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Builds a success report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void successReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Builds an accounting report\r\n * @param man The associated request state manager\r\n * @param reportSIs Report data\r\n */\r\n public void acctReport (COPSPdpOSReqStateMan man, List<COPSClientSI> reportSIs);\r\n\r\n /**\r\n * Notifies that no accounting report has been received\r\n * @param man The associated request state manager\r\n */\r\n public void notifyNoAcctReport (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies a keep-alive timeout\r\n * @param man The associated request state manager\r\n */\r\n public void notifyNoKAliveReceived (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies that the connection has been closed\r\n * @param man The associated request state manager\r\n * @param error Reason\r\n */\r\n public void notifyClosedConnection (COPSPdpOSReqStateMan man, COPSError error);\r\n\r\n /**\r\n * Notifies that a request state has been deleted\r\n * @param man The associated request state manager\r\n */\r\n public void notifyDeleteRequestState (COPSPdpOSReqStateMan man);\r\n\r\n /**\r\n * Notifies that a request state has been closed\r\n * @param man The associated request state manager\r\n */\r\n public void closeRequestState(COPSPdpOSReqStateMan man);\r\n\r\n}",
"public void update() {\n \t\tthrow new UnsupportedOperationException(\"Not implemented at this level\");\n \t}",
"ManagementLockObject.Update update();",
"@Override\n\tpublic PI update(PIDTO updated) throws NotFoundException {\n\t\treturn null;\n\t}",
"@Override \n\tpublic int modifyRentPort(RentPort rentPort) {\n\t\treturn 0;\n\t}",
"private void updLCMST(){ \n\t\ttry{\n\t\t\t\tM_strSQLQRY = \"Update FG_LCMST set \";\n\t\t\t\tM_strSQLQRY += \"LC_STKQT = LC_STKQT + \"+strISSQT+\",\";\n\t\t\t\tM_strSQLQRY += \"LC_TRNFL = '0',\";\n\t\t\t\tM_strSQLQRY += \"LC_LUSBY = '\"+cl_dat.M_strUSRCD_pbst+\"',\";\n\t\t\t\tM_strSQLQRY += \"LC_LUPDT = '\"+M_fmtDBDAT.format(M_fmtLCDAT.parse(cl_dat.M_strLOGDT_pbst))+\"'\";\n\t\t\t\tM_strSQLQRY += \" where lc_CMPCD = '\"+cl_dat.M_strCMPCD_pbst+\"' and lc_wrhtp = '\"+strWRHTP+\"'\";\n\t\t\t\tM_strSQLQRY += \" and lc_mnlcd = '\"+strMNLCD+\"'\";\n\t\t\t\t\n\t\t\t\tcl_dat.exeSQLUPD(M_strSQLQRY,\"setLCLUPD\");\n\t\t\t\t//System.out.println(M_strSQLQRY);\n\t\t\t\t\n\t\t}catch(Exception L_EX){\n\t\t\tsetMSG(L_EX,\"updLCMST\");\n\t\t}\n\t}",
"@Override\n public int update(J34SiscomexOrigemDi j34SiscomexOrigemDi) {\n return super.doUpdate(j34SiscomexOrigemDi);\n }",
"org.apache.geronimo.corba.xbeans.csiv2.tss.TSSDescriptionType addNewDescription();",
"ISModifyConnector createISModifyConnector();",
"private void handleSimSwitched() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 0073 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleSimSwitched():void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.handleSimSwitched():void\");\n }",
"public void update() {\n\t\tSystem.out.println(this.name+\"已经获得王者勋章...\");\n\t}",
"public void setServicioSRI(ServicioSRI servicioSRI)\r\n/* 106: */ {\r\n/* 107:125 */ this.servicioSRI = servicioSRI;\r\n/* 108: */ }"
] |
[
"0.6438905",
"0.59327173",
"0.591951",
"0.5849383",
"0.5848878",
"0.5790151",
"0.5673366",
"0.55972344",
"0.55860484",
"0.5576106",
"0.55747974",
"0.55671275",
"0.55307555",
"0.55191475",
"0.5511033",
"0.550017",
"0.54985535",
"0.5487296",
"0.5431195",
"0.5417031",
"0.5399304",
"0.5398064",
"0.5393929",
"0.538428",
"0.5371352",
"0.5371181",
"0.5359021",
"0.5337896",
"0.5309466",
"0.5305467",
"0.5292345",
"0.5291413",
"0.52855134",
"0.5284016",
"0.5283562",
"0.5279668",
"0.5278149",
"0.5270551",
"0.52697337",
"0.5268684",
"0.5254036",
"0.52494645",
"0.5245218",
"0.5235533",
"0.5232245",
"0.5224486",
"0.5220188",
"0.5214116",
"0.5210596",
"0.5209229",
"0.52082145",
"0.5190923",
"0.5178801",
"0.51711565",
"0.51635027",
"0.5162406",
"0.5150392",
"0.51483583",
"0.5140152",
"0.513819",
"0.51333135",
"0.51215804",
"0.51215726",
"0.512097",
"0.5120632",
"0.5116071",
"0.51140606",
"0.511373",
"0.511255",
"0.5103694",
"0.5102119",
"0.5099552",
"0.5099552",
"0.5099552",
"0.5099552",
"0.5099552",
"0.5098673",
"0.50978136",
"0.50902635",
"0.50597435",
"0.5056386",
"0.5046082",
"0.5040944",
"0.5035781",
"0.50355285",
"0.5035108",
"0.50329316",
"0.5025275",
"0.5025041",
"0.50200486",
"0.5018576",
"0.50167793",
"0.5015491",
"0.50140196",
"0.5013096",
"0.5008965",
"0.5007566",
"0.5005478",
"0.50017124",
"0.49988526",
"0.49894592"
] |
0.0
|
-1
|
The classification of a configuration. For more information see, .
|
public String getClassification() {
return classification;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getClassification() {\n return classification;\n }",
"public String getClassification() {\n return classification;\n }",
"public String getClassification() {\r\n\t\treturn this.classification;\r\n\t}",
"public Integer getClassify() {\n return classify;\n }",
"Classifier getClassifier();",
"boolean hasAutomlClassificationConfig();",
"public String getClassificationName()\n {\n return classificationName;\n }",
"org.landxml.schema.landXML11.ClassificationDocument.Classification[] getClassificationArray();",
"Integer classify(LogicGraph pce);",
"public String getClassifier() {\n return _classifier;\n }",
"public Configuration withClassification(String classification) {\n this.classification = classification;\n return this;\n }",
"java.util.List<org.landxml.schema.landXML11.ClassificationDocument.Classification> getClassificationList();",
"public void setClassification(String classification) {\n this.classification = classification;\n }",
"Classifier getType();",
"public void setClassification(String classification) {\n this.classification = classification;\n }",
"public Classifier getClassifier() {\n return classifier;\n }",
"boolean hasLabelDetectionConfig();",
"org.landxml.schema.landXML11.ClassificationDocument.Classification getClassificationArray(int i);",
"protected abstract Class<C> getConfigClass();",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Classification [imageUUID=\" + imageUUID + \", speciesName=\" + speciesName + \"]\";\r\n\t}",
"Classifier getBase_Classifier();",
"public void setClassificationName(String classificationName)\n {\n this.classificationName = classificationName;\n }",
"public RandomForestClassificationModel getClassificationModel() {\n\t\treturn classificationModel;\n\t}",
"public int getType() {\n\t\treturn (config >> 2) & 0x3F;\n\t}",
"abstract String classify(Instance inst);",
"C getConfiguration();",
"public AutoClassification(ClassificationModel classificationModel) {\r\n this.classificationModel = classificationModel;\r\n }",
"public Classifier getClassifier() {\n return m_Classifier;\n }",
"@Override\n public Classifier getClassifier() {\n return this.classifier;\n }",
"public void setClassify(Integer classify) {\n this.classify = classify;\n }",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"public void classify() {\n\t\ttry {\n\t\t\tdouble pred = classifier.classifyInstance(instances.instance(0));\n\t\t\tSystem.out.println(\"===== Classified instance =====\");\n\t\t\tSystem.out.println(\"Class predicted: \" + instances.classAttribute().value((int) pred));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Problem found when classifying the text\");\n\t\t}\t\t\n\t}",
"public abstract double classify(Instance e);",
"public ImmutableMap<String, Boolean> getAttributeClusteringConfig();",
"private Category classify() {\n Category category = null;\n if (name != null) {\n if (name.contains(\"potato\") || name.contains(\"apple\")) {\n category = Category.FOOD;\n } else if (name.contains(\"cloths\") || name.contains(\"pants\") || name.contains(\"shirt\")) {\n category = Category.CLOTHING;\n }\n }\n return category;\n }",
"public static Set<Classification> getClassifications() throws Exception {\r\n String xmlRequest = \"<request><request-header><protocol-version>2</protocol-version></request-header></request>\";\r\n try {\r\n String responseXML = FSHelperLibrary.sendRequest(null, RequestType.RT_GET_CLASSIFICATIONS, xmlRequest);\r\n LoggerUtil.logDebug(\"Get Classificatios Response XML: \" + responseXML);\r\n\r\n Node rootNode = XMLUtil.getRootNode(responseXML);\r\n Node requestStatusNode = XMLUtil.parseNode(\"request-status\", rootNode);\r\n String returnValue = XMLUtil.parseString(\"return-value\", requestStatusNode);\r\n\r\n if (!\"1\".equals(returnValue)) {\r\n LoggerUtil.logError(\"Get Classificatios Response XML: \" + responseXML);\r\n String errorMsg = XMLUtil.parseString(\"error-message\", requestStatusNode);\r\n String dispMsg = XMLUtil.parseString(\"display-message\", requestStatusNode);\r\n if (dispMsg == null || dispMsg.trim().isEmpty()) {\r\n dispMsg = errorMsg;\r\n }\r\n throw new Exception(dispMsg);\r\n }\r\n\r\n NodeList lNodeList = XMLUtil.parseNodeList(\"classifications/classification\", rootNode);\r\n if (lNodeList != null && lNodeList.getLength() > 0) {\r\n Set<Classification> lClassifications = new LinkedHashSet<Classification>();\r\n for (int i = 0; i < lNodeList.getLength(); i++) {\r\n Node lNode = lNodeList.item(i);\r\n String lstrClassId = XMLUtil.parseString(\"id\", lNode);\r\n String lstrClassName = XMLUtil.parseString(\"name\", lNode);\r\n String lstrClassDesc = XMLUtil.parseString(\"description\", lNode);\r\n String lstrStatus = XMLUtil.parseString(\"status\", lNode);\r\n // Take only active classification\r\n if (\"1\".equals(lstrStatus)) {\r\n Classification lClassification = new Classification();\r\n lClassification.setId(lstrClassId);\r\n lClassification.setName(lstrClassName);\r\n lClassification.setDescription(lstrClassDesc);\r\n lClassifications.add(lClassification);\r\n }\r\n }\r\n XMLDBService.updateClassifications(lClassifications);\r\n return lClassifications;\r\n }\r\n } catch (FSHelperException e) {\r\n throw e;\r\n }\r\n return null;\r\n }",
"List<String> getTargetClassifications(Observation obs);",
"public boolean isSetClassification() {\n return this.classification != null;\n }",
"public Object\tgetConfiguration();",
"int sizeOfClassificationArray();",
"ClassificationHandler getClassificationHandler() {\n return classificationHandler;\n }",
"public String classify(String text){\n\t\treturn mClassifier.classify(text).bestCategory();\n\t}",
"public List<BotClassification> getClassifications() {\n return classifications;\n }",
"public p getConfig() {\n return c.K();\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getClassification() != null) sb.append(\"Classification: \" + getClassification() + \",\");\n if (getConfigurations() != null) sb.append(\"Configurations: \" + getConfigurations() + \",\");\n if (getProperties() != null) sb.append(\"Properties: \" + getProperties() );\n sb.append(\"}\");\n return sb.toString();\n }",
"public MediaAiAnalysisClassificationItem [] getClassificationSet() {\n return this.ClassificationSet;\n }",
"private boolean setConfiguration(){\r\n\t\tif(!checkInputFields()) return false;\r\n\t\t\r\n\t\tConfiguration conf = m_Categorizer.Configuration();\r\n\t\tconf.setMCSScore(Float.parseFloat(m_MCSTf.getText()));\r\n\t\tconf.setRelevanceWeight(Float.parseFloat(m_RelScoreTf.getText()));\r\n\t\tconf.setCoherenceWeight(Float.parseFloat(m_CohScoreTf.getText()));\r\n\t\tconf.setKeywordsWeight(Float.parseFloat(m_KeyTf.getText()));\r\n\t\tconf.setCategoryConfidenceWeight(Float.parseFloat(m_CatConfTf.getText()));\r\n\t\tconf.setRepeatedConceptWeight(Float.parseFloat(m_RepeatTf.getText()));\r\n\t\tconf.setMaxOutputCategories(Integer.parseInt(m_MaxCatsTf.getText()));\r\n\t\tconf.setMinOutputCategories(Integer.parseInt(m_MinCatsTf.getText()));\r\n\t\tconf.setMinScore(Float.parseFloat(m_MinCatScoreTf.getText()));\r\n\t\treturn true;\r\n\t}",
"public String configurationInfo();",
"@Override\n public PdcClassification getPreDefinedClassification(String instanceId) {\n PdcClassification classification = classificationRepository.\n findPredefinedClassificationByComponentInstanceId(instanceId);\n if (classification == null) {\n classification = NONE_CLASSIFICATION;\n }\n return classification;\n }",
"int getCclmsTrainType();",
"@IcalProperty(pindex = PropertyInfoIndex.CLASS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setClassification(final String val) {\n classification = val;\n }",
"public void classify() throws Exception;",
"@Override\n public Classification<F, C> classify(Collection<F> features) {\n SortedSet<Classification<F, C>> probabilites = this.categoryProbabilities(features);\n\n if (probabilites.size() > 0) {\n return probabilites.last();\n }\n return null;\n }",
"public String getClassificatioName() {\n return classificatioName;\n }",
"public static ArrayList<Classification> getAllClassifications() {\n\t\tString path = ALL_CLASSIF;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getClassifications(response);\n\t}",
"org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();",
"public String getDomainClassifier() {\r\n\t\treturn getTextValue(this.domainClassifierList);\r\n\t}",
"@BeforeClass\r\n public static void generateConfigurationOfClassifiersAndLoadData() {\r\n\r\n //one classifier in the ensemble will be ClassifierModel (Model for enach output class)\r\n GaussianMultiModelConfig gmc = new GaussianMultiModelConfig();\r\n gmc.setTrainerClassName(\"QuasiNewtonTrainer\");\r\n gmc.setTrainerCfg(new QuasiNewtonConfig());\r\n LinearModelConfig lmcpso = new LinearModelConfig();\r\n lmcpso.setTrainerClassName(\"PSOTrainer\");\r\n lmcpso.setTrainerCfg(new PSOConfig());\r\n ClassifierModelConfig clc = new ClassifierModelConfig();\r\n clc.setClassModelsDef(BaseModelsDefinition.RANDOM);\r\n clc.addClassModelCfg(lmcpso);\r\n clc.addClassModelCfg(gmc);\r\n clc.setClassRef(ClassifierModel.class);\r\n\r\n //todo second classifier in the ensemble will be Weka decision tree\r\n\r\n ClassifierBaggingConfig bagc = new ClassifierBaggingConfig();\r\n bagc.setClassifiersNumber(2);\r\n bagc.setBaseClassifiersDef(BaseModelsDefinition.UNIFORM);\r\n bagc.addBaseClassifierCfg(clc);\r\n\r\n generatedCfg = bagc;\r\n ConfigurationFactory.saveConfiguration(generatedCfg, cfgfilename);\r\n\r\n data = new FileGameData(datafilename);\r\n\r\n }",
"@Override\n public CategoricalTypeConstants getCategoricalTypeConstant() {\n return CategoricalTypeConstants.SPECIFIC;\n }",
"@Override\n public int getDeviceConfigurationCount() {\n int product = 1;\n\n for (CloudConfigurationDimension dimension : getDimensions()) {\n product *= dimension.getEnabledTypes().size();\n }\n\n return product;\n }",
"@Internal(\"Represented as part of archiveName\")\n public String getClassifier() {\n return classifier;\n }",
"@Override\r\npublic String getCelestialClassification() {\n\treturn \"DwarfPlanets\";\r\n}",
"@ApiModelProperty(value = \"A list of classification results\")\n public List<ProjectClassificationResult> getClassificationResults() {\n return classificationResults;\n }",
"public void configure(Configuration config) {\r\n learner = config.get(\"classifier\");\r\n if(learner == null)\r\n throw new IllegalArgumentException(\"No weka classifier specified. Make sure a 'classifier' property is specified.\");\r\n classifier = classifiers.get(learner);\r\n if(classifier == null)\r\n throw new IllegalArgumentException(\"Invalid weka classifier name of '\"+learner+\"' - must be one of \"+ArrayUtil.asString(classifiers.getValidNames()));\r\n\r\n super.configure(config);\r\n\r\n logger.config(\" \"+this.getClass().getName()+\"[\"+getName()+\"] configure: weka-classifier[\"+learner+\"]=\"+classifier);\r\n\r\n if(config.containsKey(\"options\"))\r\n {\r\n try\r\n {\r\n classifier.setOptions(config.get(\"options\").split(\" \"));\r\n }\r\n catch(Exception ex)\r\n {\r\n throw new RuntimeException(\"Failed to initialize \"+this.getClass().getName(),ex);\r\n }\r\n }\r\n }",
"com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig getAutomlClassificationConfig();",
"public String toString(){\n\n String s;\n Exemplar cur = m_Exemplars;\n int i;\t\n\n if (m_MinArray == null) {\n return \"No classifier built\";\n }\n int[] nbHypClass = new int[m_Train.numClasses()];\n int[] nbSingleClass = new int[m_Train.numClasses()];\n for(i = 0; i<nbHypClass.length; i++){\n nbHypClass[i] = 0;\n nbSingleClass[i] = 0;\n }\n int nbHyp = 0, nbSingle = 0;\n\n s = \"\\nNNGE classifier\\n\\nRules generated :\\n\";\n\n while(cur != null){\n s += \"\\tclass \" + m_Train.attribute(m_Train.classIndex()).value((int) cur.classValue()) + \" IF : \";\n s += cur.toRules() + \"\\n\";\n nbHyp++;\n nbHypClass[(int) cur.classValue()]++;\t \n if (cur.numInstances() == 1){\n\tnbSingle++;\n\tnbSingleClass[(int) cur.classValue()]++;\n }\n cur = cur.next;\n }\n s += \"\\nStat :\\n\";\n for(i = 0; i<nbHypClass.length; i++){\n s += \"\\tclass \" + m_Train.attribute(m_Train.classIndex()).value(i) + \n\t\" : \" + Integer.toString(nbHypClass[i]) + \" exemplar(s) including \" + \n\tInteger.toString(nbHypClass[i] - nbSingleClass[i]) + \" Hyperrectangle(s) and \" +\n\tInteger.toString(nbSingleClass[i]) + \" Single(s).\\n\";\n }\n s += \"\\n\\tTotal : \" + Integer.toString(nbHyp) + \" exemplars(s) including \" + \n Integer.toString(nbHyp - nbSingle) + \" Hyperrectangle(s) and \" +\n Integer.toString(nbSingle) + \" Single(s).\\n\";\n\t\n s += \"\\n\";\n\t\n s += \"\\tFeature weights : \";\n\n String space = \"[\";\n for(int ii = 0; ii < m_Train.numAttributes(); ii++){\n if(ii != m_Train.classIndex()){\n\ts += space + Double.toString(attrWeight(ii));\n\tspace = \" \";\n }\n }\n s += \"]\";\n s += \"\\n\\n\";\n return s;\n }",
"private boolean isClassConfiguration(IConfigurationAnnotation configurationAnnotation) {\n if(null == configurationAnnotation) {\n return false;\n }\n \n boolean before= (null != configurationAnnotation)\n ? configurationAnnotation.getBeforeTestClass()\n : false;\n\n boolean after= (null != configurationAnnotation)\n ? configurationAnnotation.getAfterTestClass()\n : false;\n\n return (before || after);\n }",
"public String getConfiguration(){\n\t\treturn this.config;\n\t}",
"public int classify(String doc){\n\t\tint label = 0;\n\t\tint vSize = vocabulary.size();\n\t\tdouble[] score = new double[numClasses];\n\t\tfor(int i=0;i<score.length;i++){\n\t\t\tscore[i] = Math.log(classCounts[i]*1.0/trainingDocs.size());\n\t\t}\n\t\tString[] tokens = doc.split(\" \");\n\t\tfor(int i=0;i<numClasses;i++){\n\t\t\tfor(String token: tokens){\n\t\t\t\tif(condProb[i].containsKey(token)){\n\t\t\t\t\tscore[i] += Math.log(condProb[i].get(token));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tscore[i] += Math.log(1.0/(classTokenCounts[i]+vSize));\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"token: \"+token+\" \"+score[i]);\n\t\t\t}\n\t\t}\n\t\tdouble maxScore = score[0];\n\t\t//System.out.println(\"class 0: \"+score[0]);\n\t\tfor(int i=1;i<score.length;i++){\n\t\t\t//System.out.println(\"class \"+i+\": \"+score[i]);\n\t\t\tif(score[i]>maxScore){\n\t\t\t\tlabel = i;\n\t\t\t}\n\t\t}\n\t\treturn label;\n\t}",
"public String getClassificationSetFileUrl() {\n return this.ClassificationSetFileUrl;\n }",
"public String classifiers(int index)\n\t{\n\t\treturn classifiers().get(index);\n\t}",
"public String toString() {\n \n String str = m_Classifier.getClass().getName();\n \n str += \" \"\n + Utils\n .joinOptions(((OptionHandler) m_Classifier)\n\t .getOptions());\n \n return str;\n \n }",
"public abstract void printClassifier();",
"@Test\n\tpublic void classificationTest(){\n\n\t\tJavaPairRDD<String, Set<String>> javaRDD = javaSparkContext.textFile(\"/Downloads/book2-master/2rd_data/ch02/Gowalla_totalCheckins.txt\")\n\t\t\t\t.map(line -> line.split(\"~\"))\n\t\t\t\t.map(s -> new AppDto(s[0],s[1],s[2],s[3],s[4]))\n\t\t\t\t.mapToPair(app -> {\n\t\t\t\t\tSet<String> setIntro = Arrays.stream(app.getIntroduction().split(\" \"))\n\t\t\t\t\t\t\t.map(s -> s.split(\"/\"))\n\t\t\t\t\t\t\t.filter(ss -> ss[0].length()>1 && (ss[1].equals(\"v\") || ss[1].indexOf(\"n\")>-1))\n\t\t\t\t\t\t\t.map(ss -> ss[0]).collect(Collectors.toSet());\n\n\t\t\t\t\treturn new Tuple2<>(app.getCls(), setIntro);\n\t\t\t\t});\n\n\t\tjavaRDD.map(t -> t._2).zipWithIndex();\n\t}",
"public ConfigurationType getConfigurationType() {\n return this.configurationType;\n }",
"public MLlibClassifier getClassifier() {\n return m_classifier;\n }",
"public SortedSet<ClassificationPair> getClassifications() {\n\t\treturn this.classifications;\n\t}",
"public org.pentaho.pms.cwm.pentaho.meta.core.CwmClassifier getType();",
"void setClassificationArray(org.landxml.schema.landXML11.ClassificationDocument.Classification[] classificationArray);",
"public String classFlagTipText() {\n return \"If set to TRUE, lists the cluster as an extra attribute.\";\n }",
"@Test\n public void testDetectConfigurationClassHierarchy() throws Exception {\n\n Config testConfig = ConfigFactory.parseResourcesAnySyntax(\"classHierarchy.conf\");\n\n StreamsConfigurator.setConfig(testConfig);\n\n ComponentConfigurator<ComponentConfigurationForTestingNumberTwo> configurator = new ComponentConfigurator(ComponentConfigurationForTestingNumberTwo.class);\n\n ComponentConfiguration configuredPojo = configurator.detectConfiguration();\n\n Assert.assertThat(configuredPojo, is(notNullValue()));\n\n Assert.assertThat(configuredPojo.getInClasses(), is(notNullValue()));\n Assert.assertThat(configuredPojo.getInClasses().size(), is(greaterThan(0)));\n Assert.assertThat(configuredPojo.getInClasses().get(0), equalTo(\"java.lang.Integer\"));\n\n Assert.assertThat(configuredPojo.getOutClasses(), is(notNullValue()));\n Assert.assertThat(configuredPojo.getOutClasses().size(), is(greaterThan(0)));\n Assert.assertThat(configuredPojo.getOutClasses().get(0), equalTo(\"java.lang.Float\"));\n\n }",
"public String getThresholdStyleClass() {\r\n return numberThreshold ? \"equipmentNumber\" : \"\";\r\n }",
"String classify(AudioFile af);",
"public abstract Class getDescriptedClass();",
"public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}",
"public Class getModelClass() {\n return m_Classifier.getClass();\n }",
"public boolean isSetDiscoveryClassification() {\n return this.discoveryClassification != null;\n }",
"public List<String> classifiers()\n\t{\n\t\t//If the classifier list has not yet been constructed then go ahead and do it\n\t\tif (c.isEmpty())\n\t\t{\n\t\t\tfor(DataSetMember<t> member : _data)\n\t\t\t{\n\t\t\t\tif (!c.contains(member.getCategory()))\n\t\t\t\t\t\tc.add(member.getCategory().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn c;\n\t}",
"public String getBestClassByClassification(Features features,\r\n\t\t\tFileOneByOneLineWriter writer) {\r\n\t\tdouble[] categoryProb = getClassProbByClassification(features, writer);\r\n\t\tdouble maximumProb = -Double.MAX_VALUE;\r\n\t\tint maximumIndex = -1;\r\n\t\tfor (int i = 0; i < categoryProb.length; ++i) {\r\n\t\t\tif (maximumProb < categoryProb[i]) {\r\n\t\t\t\tmaximumProb = categoryProb[i];\r\n\t\t\t\tmaximumIndex = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mCategories[maximumIndex];\r\n\t}",
"public String getConfigType() {\n\t\treturn configType;\n\t}",
"public int getNumEClassifiers () { \r\n\t\treturn this.classifiers.size(); \r\n\t}",
"public int getNumberOfClasses() {\n return 200;\n }",
"@Override\n\tpublic ClassifyResult classify(List<String> words) {\n\t\t// TODO : Implement\n\t\t// Sum up the log probabilities for each word in the input data, and the\n\t\t// probability of the label\n\t\t// Set the label to the class with larger log probability\n\t\tdouble log_POSITIVE = Math.log(p_l(Label.POSITIVE));\n\t\tfor (String word : words)\n\t\t\tlog_POSITIVE += Math.log(p_w_given_l(word, Label.POSITIVE));\n\n\t\tdouble log_NEGATIVE = Math.log(p_l(Label.NEGATIVE));\n\t\tfor (String word : words)\n\t\t\tlog_NEGATIVE += Math.log(p_w_given_l(word, Label.NEGATIVE));\n\n\t\t// Create the ClassifyResult\n\t\tClassifyResult result = new ClassifyResult();\n\t\tresult.logProbPerLabel = new HashMap<Label, Double>();\n\t\tresult.logProbPerLabel.put(Label.POSITIVE, log_POSITIVE);\n\t\tresult.logProbPerLabel.put(Label.NEGATIVE, log_NEGATIVE);\n\t\t\n\t\tif (log_POSITIVE > log_NEGATIVE)\n\t\t\tresult.label = Label.POSITIVE;\n\t\telse\n\t\t\tresult.label = Label.NEGATIVE;\n\n\t\treturn result;\n\t}",
"public abstract Configuration configuration();",
"public abstract int classifyInstance(Instance instance) throws Exception;",
"@ApiModelProperty(example = \"null\", value = \"Use this name for referring to the classifier in a configuration provided with the media for processing\")\n public String getClassifierName() {\n return classifierName;\n }",
"public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}"
] |
[
"0.75533885",
"0.75533885",
"0.721015",
"0.694438",
"0.6849572",
"0.68204874",
"0.67996114",
"0.6309983",
"0.6305982",
"0.6265431",
"0.6260542",
"0.6231317",
"0.62293375",
"0.6154358",
"0.6148715",
"0.6005961",
"0.59810144",
"0.5979657",
"0.59639686",
"0.5894278",
"0.5887641",
"0.5885389",
"0.58653134",
"0.5808827",
"0.5759169",
"0.5757767",
"0.5717035",
"0.56885386",
"0.5675463",
"0.5665969",
"0.5660914",
"0.5660914",
"0.5660914",
"0.5660914",
"0.5652413",
"0.56283396",
"0.56185395",
"0.56052005",
"0.5578216",
"0.5559514",
"0.55572736",
"0.5555343",
"0.5555155",
"0.5553434",
"0.55508876",
"0.5525739",
"0.5515293",
"0.5514694",
"0.55145353",
"0.5505864",
"0.547181",
"0.5463704",
"0.5463075",
"0.5444405",
"0.54384005",
"0.5371857",
"0.53629434",
"0.5358791",
"0.5351873",
"0.5343253",
"0.53355205",
"0.5308676",
"0.53057957",
"0.52957296",
"0.5295528",
"0.52903104",
"0.52876127",
"0.5276979",
"0.52759224",
"0.5267107",
"0.52494764",
"0.5249037",
"0.524502",
"0.5235273",
"0.5231402",
"0.5225533",
"0.5185753",
"0.51764905",
"0.5175373",
"0.5174864",
"0.5173444",
"0.5167258",
"0.51671135",
"0.5166807",
"0.516337",
"0.5159918",
"0.5152627",
"0.51510274",
"0.5150594",
"0.51426804",
"0.51423144",
"0.5129648",
"0.51190645",
"0.5107973",
"0.5107236",
"0.5105987",
"0.51010066",
"0.50998586",
"0.5082324",
"0.50717586"
] |
0.75105965
|
2
|
The classification of a configuration. For more information see, .
|
public void setClassification(String classification) {
this.classification = classification;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getClassification() {\n return classification;\n }",
"public String getClassification() {\n return classification;\n }",
"public String getClassification() {\n return classification;\n }",
"public String getClassification() {\r\n\t\treturn this.classification;\r\n\t}",
"public Integer getClassify() {\n return classify;\n }",
"Classifier getClassifier();",
"boolean hasAutomlClassificationConfig();",
"public String getClassificationName()\n {\n return classificationName;\n }",
"org.landxml.schema.landXML11.ClassificationDocument.Classification[] getClassificationArray();",
"Integer classify(LogicGraph pce);",
"public String getClassifier() {\n return _classifier;\n }",
"public Configuration withClassification(String classification) {\n this.classification = classification;\n return this;\n }",
"java.util.List<org.landxml.schema.landXML11.ClassificationDocument.Classification> getClassificationList();",
"public void setClassification(String classification) {\n this.classification = classification;\n }",
"Classifier getType();",
"public Classifier getClassifier() {\n return classifier;\n }",
"org.landxml.schema.landXML11.ClassificationDocument.Classification getClassificationArray(int i);",
"boolean hasLabelDetectionConfig();",
"protected abstract Class<C> getConfigClass();",
"@Override\r\n\tpublic String toString() {\r\n\t\treturn \"Classification [imageUUID=\" + imageUUID + \", speciesName=\" + speciesName + \"]\";\r\n\t}",
"Classifier getBase_Classifier();",
"public void setClassificationName(String classificationName)\n {\n this.classificationName = classificationName;\n }",
"public RandomForestClassificationModel getClassificationModel() {\n\t\treturn classificationModel;\n\t}",
"public int getType() {\n\t\treturn (config >> 2) & 0x3F;\n\t}",
"abstract String classify(Instance inst);",
"C getConfiguration();",
"public AutoClassification(ClassificationModel classificationModel) {\r\n this.classificationModel = classificationModel;\r\n }",
"public Classifier getClassifier() {\n return m_Classifier;\n }",
"@Override\n public Classifier getClassifier() {\n return this.classifier;\n }",
"public void setClassify(Integer classify) {\n this.classify = classify;\n }",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"public void classify() {\n\t\ttry {\n\t\t\tdouble pred = classifier.classifyInstance(instances.instance(0));\n\t\t\tSystem.out.println(\"===== Classified instance =====\");\n\t\t\tSystem.out.println(\"Class predicted: \" + instances.classAttribute().value((int) pred));\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Problem found when classifying the text\");\n\t\t}\t\t\n\t}",
"public abstract double classify(Instance e);",
"public ImmutableMap<String, Boolean> getAttributeClusteringConfig();",
"private Category classify() {\n Category category = null;\n if (name != null) {\n if (name.contains(\"potato\") || name.contains(\"apple\")) {\n category = Category.FOOD;\n } else if (name.contains(\"cloths\") || name.contains(\"pants\") || name.contains(\"shirt\")) {\n category = Category.CLOTHING;\n }\n }\n return category;\n }",
"public static Set<Classification> getClassifications() throws Exception {\r\n String xmlRequest = \"<request><request-header><protocol-version>2</protocol-version></request-header></request>\";\r\n try {\r\n String responseXML = FSHelperLibrary.sendRequest(null, RequestType.RT_GET_CLASSIFICATIONS, xmlRequest);\r\n LoggerUtil.logDebug(\"Get Classificatios Response XML: \" + responseXML);\r\n\r\n Node rootNode = XMLUtil.getRootNode(responseXML);\r\n Node requestStatusNode = XMLUtil.parseNode(\"request-status\", rootNode);\r\n String returnValue = XMLUtil.parseString(\"return-value\", requestStatusNode);\r\n\r\n if (!\"1\".equals(returnValue)) {\r\n LoggerUtil.logError(\"Get Classificatios Response XML: \" + responseXML);\r\n String errorMsg = XMLUtil.parseString(\"error-message\", requestStatusNode);\r\n String dispMsg = XMLUtil.parseString(\"display-message\", requestStatusNode);\r\n if (dispMsg == null || dispMsg.trim().isEmpty()) {\r\n dispMsg = errorMsg;\r\n }\r\n throw new Exception(dispMsg);\r\n }\r\n\r\n NodeList lNodeList = XMLUtil.parseNodeList(\"classifications/classification\", rootNode);\r\n if (lNodeList != null && lNodeList.getLength() > 0) {\r\n Set<Classification> lClassifications = new LinkedHashSet<Classification>();\r\n for (int i = 0; i < lNodeList.getLength(); i++) {\r\n Node lNode = lNodeList.item(i);\r\n String lstrClassId = XMLUtil.parseString(\"id\", lNode);\r\n String lstrClassName = XMLUtil.parseString(\"name\", lNode);\r\n String lstrClassDesc = XMLUtil.parseString(\"description\", lNode);\r\n String lstrStatus = XMLUtil.parseString(\"status\", lNode);\r\n // Take only active classification\r\n if (\"1\".equals(lstrStatus)) {\r\n Classification lClassification = new Classification();\r\n lClassification.setId(lstrClassId);\r\n lClassification.setName(lstrClassName);\r\n lClassification.setDescription(lstrClassDesc);\r\n lClassifications.add(lClassification);\r\n }\r\n }\r\n XMLDBService.updateClassifications(lClassifications);\r\n return lClassifications;\r\n }\r\n } catch (FSHelperException e) {\r\n throw e;\r\n }\r\n return null;\r\n }",
"List<String> getTargetClassifications(Observation obs);",
"public boolean isSetClassification() {\n return this.classification != null;\n }",
"int sizeOfClassificationArray();",
"ClassificationHandler getClassificationHandler() {\n return classificationHandler;\n }",
"public String classify(String text){\n\t\treturn mClassifier.classify(text).bestCategory();\n\t}",
"public Object\tgetConfiguration();",
"public List<BotClassification> getClassifications() {\n return classifications;\n }",
"public MediaAiAnalysisClassificationItem [] getClassificationSet() {\n return this.ClassificationSet;\n }",
"@Override\n public String toString() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"{\");\n if (getClassification() != null) sb.append(\"Classification: \" + getClassification() + \",\");\n if (getConfigurations() != null) sb.append(\"Configurations: \" + getConfigurations() + \",\");\n if (getProperties() != null) sb.append(\"Properties: \" + getProperties() );\n sb.append(\"}\");\n return sb.toString();\n }",
"public p getConfig() {\n return c.K();\n }",
"private boolean setConfiguration(){\r\n\t\tif(!checkInputFields()) return false;\r\n\t\t\r\n\t\tConfiguration conf = m_Categorizer.Configuration();\r\n\t\tconf.setMCSScore(Float.parseFloat(m_MCSTf.getText()));\r\n\t\tconf.setRelevanceWeight(Float.parseFloat(m_RelScoreTf.getText()));\r\n\t\tconf.setCoherenceWeight(Float.parseFloat(m_CohScoreTf.getText()));\r\n\t\tconf.setKeywordsWeight(Float.parseFloat(m_KeyTf.getText()));\r\n\t\tconf.setCategoryConfidenceWeight(Float.parseFloat(m_CatConfTf.getText()));\r\n\t\tconf.setRepeatedConceptWeight(Float.parseFloat(m_RepeatTf.getText()));\r\n\t\tconf.setMaxOutputCategories(Integer.parseInt(m_MaxCatsTf.getText()));\r\n\t\tconf.setMinOutputCategories(Integer.parseInt(m_MinCatsTf.getText()));\r\n\t\tconf.setMinScore(Float.parseFloat(m_MinCatScoreTf.getText()));\r\n\t\treturn true;\r\n\t}",
"public String configurationInfo();",
"@Override\n public PdcClassification getPreDefinedClassification(String instanceId) {\n PdcClassification classification = classificationRepository.\n findPredefinedClassificationByComponentInstanceId(instanceId);\n if (classification == null) {\n classification = NONE_CLASSIFICATION;\n }\n return classification;\n }",
"int getCclmsTrainType();",
"@IcalProperty(pindex = PropertyInfoIndex.CLASS,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true\n )\n public void setClassification(final String val) {\n classification = val;\n }",
"public void classify() throws Exception;",
"@Override\n public Classification<F, C> classify(Collection<F> features) {\n SortedSet<Classification<F, C>> probabilites = this.categoryProbabilities(features);\n\n if (probabilites.size() > 0) {\n return probabilites.last();\n }\n return null;\n }",
"public String getClassificatioName() {\n return classificatioName;\n }",
"public static ArrayList<Classification> getAllClassifications() {\n\t\tString path = ALL_CLASSIF;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\treturn getClassifications(response);\n\t}",
"org.landxml.schema.landXML11.ClassificationDocument.Classification addNewClassification();",
"public String getDomainClassifier() {\r\n\t\treturn getTextValue(this.domainClassifierList);\r\n\t}",
"@BeforeClass\r\n public static void generateConfigurationOfClassifiersAndLoadData() {\r\n\r\n //one classifier in the ensemble will be ClassifierModel (Model for enach output class)\r\n GaussianMultiModelConfig gmc = new GaussianMultiModelConfig();\r\n gmc.setTrainerClassName(\"QuasiNewtonTrainer\");\r\n gmc.setTrainerCfg(new QuasiNewtonConfig());\r\n LinearModelConfig lmcpso = new LinearModelConfig();\r\n lmcpso.setTrainerClassName(\"PSOTrainer\");\r\n lmcpso.setTrainerCfg(new PSOConfig());\r\n ClassifierModelConfig clc = new ClassifierModelConfig();\r\n clc.setClassModelsDef(BaseModelsDefinition.RANDOM);\r\n clc.addClassModelCfg(lmcpso);\r\n clc.addClassModelCfg(gmc);\r\n clc.setClassRef(ClassifierModel.class);\r\n\r\n //todo second classifier in the ensemble will be Weka decision tree\r\n\r\n ClassifierBaggingConfig bagc = new ClassifierBaggingConfig();\r\n bagc.setClassifiersNumber(2);\r\n bagc.setBaseClassifiersDef(BaseModelsDefinition.UNIFORM);\r\n bagc.addBaseClassifierCfg(clc);\r\n\r\n generatedCfg = bagc;\r\n ConfigurationFactory.saveConfiguration(generatedCfg, cfgfilename);\r\n\r\n data = new FileGameData(datafilename);\r\n\r\n }",
"@Override\n public CategoricalTypeConstants getCategoricalTypeConstant() {\n return CategoricalTypeConstants.SPECIFIC;\n }",
"@Override\n public int getDeviceConfigurationCount() {\n int product = 1;\n\n for (CloudConfigurationDimension dimension : getDimensions()) {\n product *= dimension.getEnabledTypes().size();\n }\n\n return product;\n }",
"@Internal(\"Represented as part of archiveName\")\n public String getClassifier() {\n return classifier;\n }",
"@Override\r\npublic String getCelestialClassification() {\n\treturn \"DwarfPlanets\";\r\n}",
"@ApiModelProperty(value = \"A list of classification results\")\n public List<ProjectClassificationResult> getClassificationResults() {\n return classificationResults;\n }",
"public void configure(Configuration config) {\r\n learner = config.get(\"classifier\");\r\n if(learner == null)\r\n throw new IllegalArgumentException(\"No weka classifier specified. Make sure a 'classifier' property is specified.\");\r\n classifier = classifiers.get(learner);\r\n if(classifier == null)\r\n throw new IllegalArgumentException(\"Invalid weka classifier name of '\"+learner+\"' - must be one of \"+ArrayUtil.asString(classifiers.getValidNames()));\r\n\r\n super.configure(config);\r\n\r\n logger.config(\" \"+this.getClass().getName()+\"[\"+getName()+\"] configure: weka-classifier[\"+learner+\"]=\"+classifier);\r\n\r\n if(config.containsKey(\"options\"))\r\n {\r\n try\r\n {\r\n classifier.setOptions(config.get(\"options\").split(\" \"));\r\n }\r\n catch(Exception ex)\r\n {\r\n throw new RuntimeException(\"Failed to initialize \"+this.getClass().getName(),ex);\r\n }\r\n }\r\n }",
"public String toString(){\n\n String s;\n Exemplar cur = m_Exemplars;\n int i;\t\n\n if (m_MinArray == null) {\n return \"No classifier built\";\n }\n int[] nbHypClass = new int[m_Train.numClasses()];\n int[] nbSingleClass = new int[m_Train.numClasses()];\n for(i = 0; i<nbHypClass.length; i++){\n nbHypClass[i] = 0;\n nbSingleClass[i] = 0;\n }\n int nbHyp = 0, nbSingle = 0;\n\n s = \"\\nNNGE classifier\\n\\nRules generated :\\n\";\n\n while(cur != null){\n s += \"\\tclass \" + m_Train.attribute(m_Train.classIndex()).value((int) cur.classValue()) + \" IF : \";\n s += cur.toRules() + \"\\n\";\n nbHyp++;\n nbHypClass[(int) cur.classValue()]++;\t \n if (cur.numInstances() == 1){\n\tnbSingle++;\n\tnbSingleClass[(int) cur.classValue()]++;\n }\n cur = cur.next;\n }\n s += \"\\nStat :\\n\";\n for(i = 0; i<nbHypClass.length; i++){\n s += \"\\tclass \" + m_Train.attribute(m_Train.classIndex()).value(i) + \n\t\" : \" + Integer.toString(nbHypClass[i]) + \" exemplar(s) including \" + \n\tInteger.toString(nbHypClass[i] - nbSingleClass[i]) + \" Hyperrectangle(s) and \" +\n\tInteger.toString(nbSingleClass[i]) + \" Single(s).\\n\";\n }\n s += \"\\n\\tTotal : \" + Integer.toString(nbHyp) + \" exemplars(s) including \" + \n Integer.toString(nbHyp - nbSingle) + \" Hyperrectangle(s) and \" +\n Integer.toString(nbSingle) + \" Single(s).\\n\";\n\t\n s += \"\\n\";\n\t\n s += \"\\tFeature weights : \";\n\n String space = \"[\";\n for(int ii = 0; ii < m_Train.numAttributes(); ii++){\n if(ii != m_Train.classIndex()){\n\ts += space + Double.toString(attrWeight(ii));\n\tspace = \" \";\n }\n }\n s += \"]\";\n s += \"\\n\\n\";\n return s;\n }",
"com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig getAutomlClassificationConfig();",
"private boolean isClassConfiguration(IConfigurationAnnotation configurationAnnotation) {\n if(null == configurationAnnotation) {\n return false;\n }\n \n boolean before= (null != configurationAnnotation)\n ? configurationAnnotation.getBeforeTestClass()\n : false;\n\n boolean after= (null != configurationAnnotation)\n ? configurationAnnotation.getAfterTestClass()\n : false;\n\n return (before || after);\n }",
"public int classify(String doc){\n\t\tint label = 0;\n\t\tint vSize = vocabulary.size();\n\t\tdouble[] score = new double[numClasses];\n\t\tfor(int i=0;i<score.length;i++){\n\t\t\tscore[i] = Math.log(classCounts[i]*1.0/trainingDocs.size());\n\t\t}\n\t\tString[] tokens = doc.split(\" \");\n\t\tfor(int i=0;i<numClasses;i++){\n\t\t\tfor(String token: tokens){\n\t\t\t\tif(condProb[i].containsKey(token)){\n\t\t\t\t\tscore[i] += Math.log(condProb[i].get(token));\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tscore[i] += Math.log(1.0/(classTokenCounts[i]+vSize));\n\t\t\t\t}\n\t\t\t\t//System.out.println(\"token: \"+token+\" \"+score[i]);\n\t\t\t}\n\t\t}\n\t\tdouble maxScore = score[0];\n\t\t//System.out.println(\"class 0: \"+score[0]);\n\t\tfor(int i=1;i<score.length;i++){\n\t\t\t//System.out.println(\"class \"+i+\": \"+score[i]);\n\t\t\tif(score[i]>maxScore){\n\t\t\t\tlabel = i;\n\t\t\t}\n\t\t}\n\t\treturn label;\n\t}",
"public String getConfiguration(){\n\t\treturn this.config;\n\t}",
"public String getClassificationSetFileUrl() {\n return this.ClassificationSetFileUrl;\n }",
"public String classifiers(int index)\n\t{\n\t\treturn classifiers().get(index);\n\t}",
"public String toString() {\n \n String str = m_Classifier.getClass().getName();\n \n str += \" \"\n + Utils\n .joinOptions(((OptionHandler) m_Classifier)\n\t .getOptions());\n \n return str;\n \n }",
"public abstract void printClassifier();",
"@Test\n\tpublic void classificationTest(){\n\n\t\tJavaPairRDD<String, Set<String>> javaRDD = javaSparkContext.textFile(\"/Downloads/book2-master/2rd_data/ch02/Gowalla_totalCheckins.txt\")\n\t\t\t\t.map(line -> line.split(\"~\"))\n\t\t\t\t.map(s -> new AppDto(s[0],s[1],s[2],s[3],s[4]))\n\t\t\t\t.mapToPair(app -> {\n\t\t\t\t\tSet<String> setIntro = Arrays.stream(app.getIntroduction().split(\" \"))\n\t\t\t\t\t\t\t.map(s -> s.split(\"/\"))\n\t\t\t\t\t\t\t.filter(ss -> ss[0].length()>1 && (ss[1].equals(\"v\") || ss[1].indexOf(\"n\")>-1))\n\t\t\t\t\t\t\t.map(ss -> ss[0]).collect(Collectors.toSet());\n\n\t\t\t\t\treturn new Tuple2<>(app.getCls(), setIntro);\n\t\t\t\t});\n\n\t\tjavaRDD.map(t -> t._2).zipWithIndex();\n\t}",
"public MLlibClassifier getClassifier() {\n return m_classifier;\n }",
"public SortedSet<ClassificationPair> getClassifications() {\n\t\treturn this.classifications;\n\t}",
"public org.pentaho.pms.cwm.pentaho.meta.core.CwmClassifier getType();",
"public ConfigurationType getConfigurationType() {\n return this.configurationType;\n }",
"public String classFlagTipText() {\n return \"If set to TRUE, lists the cluster as an extra attribute.\";\n }",
"void setClassificationArray(org.landxml.schema.landXML11.ClassificationDocument.Classification[] classificationArray);",
"@Test\n public void testDetectConfigurationClassHierarchy() throws Exception {\n\n Config testConfig = ConfigFactory.parseResourcesAnySyntax(\"classHierarchy.conf\");\n\n StreamsConfigurator.setConfig(testConfig);\n\n ComponentConfigurator<ComponentConfigurationForTestingNumberTwo> configurator = new ComponentConfigurator(ComponentConfigurationForTestingNumberTwo.class);\n\n ComponentConfiguration configuredPojo = configurator.detectConfiguration();\n\n Assert.assertThat(configuredPojo, is(notNullValue()));\n\n Assert.assertThat(configuredPojo.getInClasses(), is(notNullValue()));\n Assert.assertThat(configuredPojo.getInClasses().size(), is(greaterThan(0)));\n Assert.assertThat(configuredPojo.getInClasses().get(0), equalTo(\"java.lang.Integer\"));\n\n Assert.assertThat(configuredPojo.getOutClasses(), is(notNullValue()));\n Assert.assertThat(configuredPojo.getOutClasses().size(), is(greaterThan(0)));\n Assert.assertThat(configuredPojo.getOutClasses().get(0), equalTo(\"java.lang.Float\"));\n\n }",
"public String getThresholdStyleClass() {\r\n return numberThreshold ? \"equipmentNumber\" : \"\";\r\n }",
"String classify(AudioFile af);",
"public abstract Class getDescriptedClass();",
"public Class getModelClass() {\n return m_Classifier.getClass();\n }",
"public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}",
"public List<String> classifiers()\n\t{\n\t\t//If the classifier list has not yet been constructed then go ahead and do it\n\t\tif (c.isEmpty())\n\t\t{\n\t\t\tfor(DataSetMember<t> member : _data)\n\t\t\t{\n\t\t\t\tif (!c.contains(member.getCategory()))\n\t\t\t\t\t\tc.add(member.getCategory().toString());\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn c;\n\t}",
"public boolean isSetDiscoveryClassification() {\n return this.discoveryClassification != null;\n }",
"public String getBestClassByClassification(Features features,\r\n\t\t\tFileOneByOneLineWriter writer) {\r\n\t\tdouble[] categoryProb = getClassProbByClassification(features, writer);\r\n\t\tdouble maximumProb = -Double.MAX_VALUE;\r\n\t\tint maximumIndex = -1;\r\n\t\tfor (int i = 0; i < categoryProb.length; ++i) {\r\n\t\t\tif (maximumProb < categoryProb[i]) {\r\n\t\t\t\tmaximumProb = categoryProb[i];\r\n\t\t\t\tmaximumIndex = i;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn mCategories[maximumIndex];\r\n\t}",
"public String getConfigType() {\n\t\treturn configType;\n\t}",
"public int getNumEClassifiers () { \r\n\t\treturn this.classifiers.size(); \r\n\t}",
"public int getNumberOfClasses() {\n return 200;\n }",
"@Override\n\tpublic ClassifyResult classify(List<String> words) {\n\t\t// TODO : Implement\n\t\t// Sum up the log probabilities for each word in the input data, and the\n\t\t// probability of the label\n\t\t// Set the label to the class with larger log probability\n\t\tdouble log_POSITIVE = Math.log(p_l(Label.POSITIVE));\n\t\tfor (String word : words)\n\t\t\tlog_POSITIVE += Math.log(p_w_given_l(word, Label.POSITIVE));\n\n\t\tdouble log_NEGATIVE = Math.log(p_l(Label.NEGATIVE));\n\t\tfor (String word : words)\n\t\t\tlog_NEGATIVE += Math.log(p_w_given_l(word, Label.NEGATIVE));\n\n\t\t// Create the ClassifyResult\n\t\tClassifyResult result = new ClassifyResult();\n\t\tresult.logProbPerLabel = new HashMap<Label, Double>();\n\t\tresult.logProbPerLabel.put(Label.POSITIVE, log_POSITIVE);\n\t\tresult.logProbPerLabel.put(Label.NEGATIVE, log_NEGATIVE);\n\t\t\n\t\tif (log_POSITIVE > log_NEGATIVE)\n\t\t\tresult.label = Label.POSITIVE;\n\t\telse\n\t\t\tresult.label = Label.NEGATIVE;\n\n\t\treturn result;\n\t}",
"public abstract int classifyInstance(Instance instance) throws Exception;",
"public abstract Configuration configuration();",
"@ApiModelProperty(example = \"null\", value = \"Use this name for referring to the classifier in a configuration provided with the media for processing\")\n public String getClassifierName() {\n return classifierName;\n }",
"public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}"
] |
[
"0.7555715",
"0.7555715",
"0.7513017",
"0.72119945",
"0.694707",
"0.68521565",
"0.68203056",
"0.68015254",
"0.63118845",
"0.6307885",
"0.6267323",
"0.6260146",
"0.62329453",
"0.6230645",
"0.61567944",
"0.6007782",
"0.598197",
"0.59799445",
"0.5962353",
"0.5895566",
"0.58892804",
"0.58866584",
"0.58669776",
"0.5807872",
"0.5761293",
"0.5754623",
"0.5719275",
"0.5689918",
"0.5677054",
"0.56678176",
"0.56572825",
"0.56572825",
"0.56572825",
"0.56572825",
"0.5655383",
"0.5629707",
"0.56166124",
"0.56068707",
"0.5580233",
"0.5560331",
"0.555851",
"0.5557047",
"0.55536646",
"0.55533975",
"0.5552524",
"0.5527325",
"0.55159366",
"0.55151135",
"0.5513799",
"0.55047953",
"0.5469528",
"0.54661477",
"0.5464871",
"0.5446321",
"0.54402757",
"0.5374358",
"0.53643227",
"0.53609806",
"0.53533274",
"0.534395",
"0.5336228",
"0.53090954",
"0.53051615",
"0.5296742",
"0.529535",
"0.5293142",
"0.52848244",
"0.52784705",
"0.5276336",
"0.5266056",
"0.52525413",
"0.5246845",
"0.5245129",
"0.52372944",
"0.52326787",
"0.5227863",
"0.51893395",
"0.5177089",
"0.5176328",
"0.5175291",
"0.51744545",
"0.5168862",
"0.51682675",
"0.516517",
"0.5163877",
"0.5160279",
"0.51539946",
"0.515202",
"0.51483667",
"0.51455164",
"0.51429",
"0.5131298",
"0.5116507",
"0.5109993",
"0.51090556",
"0.51082516",
"0.5101475",
"0.5097622",
"0.5082697",
"0.5068989"
] |
0.61500585
|
15
|
The classification of a configuration. For more information see, . Returns a reference to this object so that method calls can be chained together.
|
public Configuration withClassification(String classification) {
this.classification = classification;
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public SetTypeConfigurationRequest withConfiguration(String configuration) {\n setConfiguration(configuration);\n return this;\n }",
"public void configure(Configuration config) {\r\n learner = config.get(\"classifier\");\r\n if(learner == null)\r\n throw new IllegalArgumentException(\"No weka classifier specified. Make sure a 'classifier' property is specified.\");\r\n classifier = classifiers.get(learner);\r\n if(classifier == null)\r\n throw new IllegalArgumentException(\"Invalid weka classifier name of '\"+learner+\"' - must be one of \"+ArrayUtil.asString(classifiers.getValidNames()));\r\n\r\n super.configure(config);\r\n\r\n logger.config(\" \"+this.getClass().getName()+\"[\"+getName()+\"] configure: weka-classifier[\"+learner+\"]=\"+classifier);\r\n\r\n if(config.containsKey(\"options\"))\r\n {\r\n try\r\n {\r\n classifier.setOptions(config.get(\"options\").split(\" \"));\r\n }\r\n catch(Exception ex)\r\n {\r\n throw new RuntimeException(\"Failed to initialize \"+this.getClass().getName(),ex);\r\n }\r\n }\r\n }",
"public String getClassification() {\r\n\t\treturn this.classification;\r\n\t}",
"public String getClassification() {\n return classification;\n }",
"public String getClassification() {\n return classification;\n }",
"public String getClassification() {\n return classification;\n }",
"protected abstract Class<C> getConfigClass();",
"public abstract Configuration configuration();",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public Configuration c() {\n return configuration;\n }",
"com.google.cloud.videointelligence.v1p3beta1.StreamingAutomlClassificationConfig getAutomlClassificationConfig();",
"public C build() {\n if (configs.isEmpty()) {\n throw new RuntimeException(\"There should be at least one configuration provided\");\n }\n\n // Handling config files\n ConfigSource firstConfigSource = configs.get(0);\n Config firstConfigOrig = getConfigSupplier(firstConfigSource).getConfig();\n if (!(supportedConfig.isInstance(firstConfigOrig))) {\n throw new RuntimeException(\n String.format(\n \"Config is not of parameterized type %s, got instead %s\",\n supportedConfig.getName(), firstConfigOrig.getClass().getName()));\n }\n C firstConfig = (C) firstConfigOrig;\n for (int i = 1; i < configs.size(); ++i) {\n ConfigSource nextConfigSource = configs.get(i);\n Config nextConfig = getConfigSupplier(nextConfigSource).getConfig();\n try {\n firstConfig = copyProperties(firstConfig, nextConfig);\n } catch (Exception ex) {\n throw new RuntimeException(\n String.format(\"Failed to merge config %s into main config\", nextConfigSource), ex);\n }\n }\n\n // Handling string pathValue pairs config overrides\n for (Pair<String, Object> pathValue : pathValueOverrides) {\n try {\n PropertyUtils.setNestedProperty(firstConfig, pathValue.getValue0(), pathValue.getValue1());\n } catch (Exception e) {\n throw new RuntimeException(\n String.format(\n \"Cannot override property %s with value %s\",\n pathValue.getValue0(), pathValue.getValue1()),\n e);\n }\n }\n\n return firstConfig;\n }",
"public Configuration withConfigurations(java.util.Collection<Configuration> configurations) {\n if (configurations == null) {\n this.configurations = null;\n } else {\n com.amazonaws.internal.ListWithAutoConstructFlag<Configuration> configurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>(configurations.size());\n configurationsCopy.addAll(configurations);\n this.configurations = configurationsCopy;\n }\n\n return this;\n }",
"public RandomForestClassificationModel getClassificationModel() {\n\t\treturn classificationModel;\n\t}",
"public ConfigurationType getConfigurationType() {\n return this.configurationType;\n }",
"public Integer getClassify() {\n return classify;\n }",
"public CompositeConfiguration getConfiguration() {\n return _configuration;\n }",
"public Builder mergeConfiguration(com.google.protobuf.Any value) {\n if (configurationBuilder_ == null) {\n if (configuration_ != null) {\n configuration_ =\n com.google.protobuf.Any.newBuilder(configuration_).mergeFrom(value).buildPartial();\n } else {\n configuration_ = value;\n }\n onChanged();\n } else {\n configurationBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public Builder classificationComments(String value) {\n this.classificationComments =\n new SecurityMetadataString(\n SecurityMetadataString.CLASSIFICATION_COMMENTS, value);\n return this;\n }",
"public String getClassificationName()\n {\n return classificationName;\n }",
"public Classifier getClassifier() {\n return classifier;\n }",
"ClassificationHandler getClassificationHandler() {\n return classificationHandler;\n }",
"public ConfigurationSet getGeneralConfiguration() {\r\n\t\treturn configuration;\r\n\t}",
"public SlopeOneConfiguration getConfiguration() { return configuration; }",
"public Configuration getConfiguration() {\n return config;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"public SynapseNotebookActivity setConfigurationType(ConfigurationType configurationType) {\n this.configurationType = configurationType;\n return this;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public SetTypeConfigurationRequest withConfigurationAlias(String configurationAlias) {\n setConfigurationAlias(configurationAlias);\n return this;\n }",
"public Configuration getConfiguration() {\n return configurationParameter.getConfiguration();\n }",
"protected Configuration getConfiguration(){\n return configuration;\n }",
"public UpdateClassificationJobRequest withJobStatus(JobStatus jobStatus) {\n this.jobStatus = jobStatus.toString();\n return this;\n }",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }",
"public com.google.cloud.datafusion.v1beta1.NetworkConfig.Builder getNetworkConfigBuilder() {\n bitField0_ |= 0x00000040;\n onChanged();\n return getNetworkConfigFieldBuilder().getBuilder();\n }",
"public Configuration getConfiguration() {\n\t\treturn theConfiguration;\n\t}",
"protected Configuration getConfiguration() {\n return configuration;\n }",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }",
"public Builder setConfiguration(com.google.protobuf.Any value) {\n if (configurationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n configuration_ = value;\n onChanged();\n } else {\n configurationBuilder_.setMessage(value);\n }\n\n return this;\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder> \n getConfigurationFieldBuilder() {\n if (configurationBuilder_ == null) {\n configurationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<\n com.google.protobuf.Any, com.google.protobuf.Any.Builder, com.google.protobuf.AnyOrBuilder>(\n getConfiguration(),\n getParentForChildren(),\n isClean());\n configuration_ = null;\n }\n return configurationBuilder_;\n }",
"public com.google.protobuf.Any getConfiguration() {\n if (configurationBuilder_ == null) {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n } else {\n return configurationBuilder_.getMessage();\n }\n }",
"public Classifier getClassifier() {\n return m_Classifier;\n }",
"public Configuration getCfg() {\n return cfg;\n }",
"public ClusterTypeConfigImpl(String config) {\r\n\t\tthis.setConfiguration(config);\r\n\t}",
"public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() {\n if (configurationBuilder_ != null) {\n return configurationBuilder_.getMessageOrBuilder();\n } else {\n return configuration_ == null ?\n com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }\n }",
"public String getConfiguration() {\n return this.configuration;\n }",
"@Override\n\tpublic Configuration getConf() {\n\t\treturn this.Conf;\n\t}",
"public UpdateClassificationJobRequest withJobStatus(String jobStatus) {\n setJobStatus(jobStatus);\n return this;\n }",
"@Override\n public Classifier getClassifier() {\n return this.classifier;\n }",
"public void setClassification(String classification) {\n this.classification = classification;\n }",
"Classifier getClassifier();",
"public String getConfiguration() {\n return configuration;\n }",
"public C setLabelMizingType(KNNMixingType mixingType) {\n\t\tthis.mixing = mixingType;\n\t\treturn model;\n\t}",
"public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}",
"public Configuration getConfiguration() {\n \tif (configurationRef==null)\n \t\treturn null;\n \treturn (Configuration)configurationRef.get();\n }",
"GeneralConfiguration getGeneralConfiguration();",
"boolean hasAutomlClassificationConfig();",
"public void setClassification(String classification) {\n this.classification = classification;\n }",
"public String getClassifier() {\n return _classifier;\n }",
"public Configuration getConfiguration(String gameName, String confName) {\n\n Configuration thisConf = new Configuration();\n\n for(Configuration conf : configurations) {\n\n if(conf.getGame().getTitle().equals(gameName) && conf.getConfName().equals(confName)) {\n thisConf = conf;\n }\n }\n\n return thisConf;\n }",
"public MLlibClassifier getClassifier() {\n return m_classifier;\n }",
"public LocalConfiguration getConfiguration() {\n return configuration;\n }",
"public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public Configuration update(final Configuration configuration);",
"public MediaAiAnalysisClassificationItem [] getClassificationSet() {\n return this.ClassificationSet;\n }",
"public C getConfig()\n {\n return config;\n }",
"public String getConfigurationValue() {\n return newConfigValue;\n }",
"Configuration getConfigByKey(String configKey);",
"public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}",
"private Category classify() {\n Category category = null;\n if (name != null) {\n if (name.contains(\"potato\") || name.contains(\"apple\")) {\n category = Category.FOOD;\n } else if (name.contains(\"cloths\") || name.contains(\"pants\") || name.contains(\"shirt\")) {\n category = Category.CLOTHING;\n }\n }\n return category;\n }",
"public void setClassificationName(String classificationName)\n {\n this.classificationName = classificationName;\n }",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"@java.lang.Override\n public com.google.protobuf.Any getConfiguration() {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }",
"public String getConfiguration(){\n\t\treturn this.config;\n\t}",
"public Builder mergeConfig(DerivedFeatureConfig value) {\n if (configBuilder_ == null) {\n if (config_ != null) {\n config_ =\n DerivedFeatureConfig.newBuilder(config_).mergeFrom(value).buildPartial();\n } else {\n config_ = value;\n }\n onChanged();\n } else {\n configBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public ConfigurationManagement getConfig() {\r\n\t\treturn config;\r\n\t}",
"public Configuration getConfiguration(final String name, Environment environment) {\n\t\tif (environment == null)\n\t\t\tenvironment = GlobalEnvironment.INSTANCE;\n\t\tfinal Artefact a = getArtefact(name);\n\t\tif (a == null)\n\t\t\tthrow new IllegalArgumentException(\"No such artefact: \" + name);\n\t\tfinal ConfigurationImpl configurationImpl = new ConfigurationImpl(a.getName());\n\t\tfinal List<String> attributeNames = a.getAttributeNames();\n\n\t\tconfigurationImpl.clearExternalConfigurations();\n\t\tfor (final ConfigurationSourceKey include : a.getExternalConfigurations())\n\t\t\tconfigurationImpl.addExternalConfiguration(include);\n\n\t\tfor (final String attributeName : attributeNames) {\n\t\t\tfinal Value attributeValue = a.getAttribute(attributeName).getValue(environment);\n\t\t\tif (attributeValue != null)\n\t\t\t\tconfigurationImpl.setAttribute(attributeName, attributeValue);\n\t\t}\n\t\treturn configurationImpl;\n\t}",
"public Configuration customize(Configuration defaultConfiguration, Configuration namedConfiguration)\n {\n // Set custom configuration\n\n ConfigurationBuilder builder = null;\n\n if (namedConfiguration == null) {\n builder = customizeEviction(builder, defaultConfiguration);\n }\n\n // Make sure filesystem based caches have a proper location\n\n if (namedConfiguration != null) {\n builder = completeFilesystem(builder, namedConfiguration);\n }\n\n return builder != null ? builder.build() : null;\n }",
"protected Configuration getConfiguration() {\n return variable.getConfiguration();\n }",
"private com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.datafusion.v1beta1.NetworkConfig,\n com.google.cloud.datafusion.v1beta1.NetworkConfig.Builder,\n com.google.cloud.datafusion.v1beta1.NetworkConfigOrBuilder>\n getNetworkConfigFieldBuilder() {\n if (networkConfigBuilder_ == null) {\n networkConfigBuilder_ =\n new com.google.protobuf.SingleFieldBuilderV3<\n com.google.cloud.datafusion.v1beta1.NetworkConfig,\n com.google.cloud.datafusion.v1beta1.NetworkConfig.Builder,\n com.google.cloud.datafusion.v1beta1.NetworkConfigOrBuilder>(\n getNetworkConfig(), getParentForChildren(), isClean());\n networkConfig_ = null;\n }\n return networkConfigBuilder_;\n }",
"public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}",
"public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}",
"private boolean setConfiguration(){\r\n\t\tif(!checkInputFields()) return false;\r\n\t\t\r\n\t\tConfiguration conf = m_Categorizer.Configuration();\r\n\t\tconf.setMCSScore(Float.parseFloat(m_MCSTf.getText()));\r\n\t\tconf.setRelevanceWeight(Float.parseFloat(m_RelScoreTf.getText()));\r\n\t\tconf.setCoherenceWeight(Float.parseFloat(m_CohScoreTf.getText()));\r\n\t\tconf.setKeywordsWeight(Float.parseFloat(m_KeyTf.getText()));\r\n\t\tconf.setCategoryConfidenceWeight(Float.parseFloat(m_CatConfTf.getText()));\r\n\t\tconf.setRepeatedConceptWeight(Float.parseFloat(m_RepeatTf.getText()));\r\n\t\tconf.setMaxOutputCategories(Integer.parseInt(m_MaxCatsTf.getText()));\r\n\t\tconf.setMinOutputCategories(Integer.parseInt(m_MinCatsTf.getText()));\r\n\t\tconf.setMinScore(Float.parseFloat(m_MinCatScoreTf.getText()));\r\n\t\treturn true;\r\n\t}",
"public ComponentConfiguration getConfiguration();",
"public Builder clearConfiguration() {\n if (configurationBuilder_ == null) {\n configuration_ = null;\n onChanged();\n } else {\n configuration_ = null;\n configurationBuilder_ = null;\n }\n\n return this;\n }",
"public ConfigBuilder addConfig(Config config) {\n configs.add(new AsIsSource(config));\n return this;\n }",
"public void newConfig ()\n {\n Class<?> clazz = group.getRawConfigClasses().get(0);\n try {\n ManagedConfig cfg = (ManagedConfig)PreparedEditable.PREPARER.apply(\n clazz.newInstance());\n if (cfg instanceof DerivedConfig) {\n ((DerivedConfig)cfg).cclass = group.getConfigClass();\n }\n newNode(cfg);\n } catch (Exception e) {\n log.warning(\"Failed to instantiate config [class=\" + clazz + \"].\", e);\n }\n }",
"C getConfiguration();",
"@Test\n public void testExtendedClass() throws ConfigurationException\n {\n factory.setFile(CLASS_FILE);\n CombinedConfiguration cc = factory.getConfiguration(true);\n assertEquals(\"Extended\", cc.getProperty(\"test\"));\n assertTrue(\"Wrong result class: \" + cc.getClass(),\n cc instanceof ExtendedCombinedConfiguration);\n }",
"@NonNull\n public TextClassificationContext build() {\n return new TextClassificationContext(mPackageName, mWidgetType, mWidgetVersion);\n }",
"CategoryType(final String configurationKey) {\n this.configurationKey = configurationKey;\n }",
"public RecognizeConfigurationsInternal getRecognizeConfiguration() {\n return this.recognizeConfiguration;\n }",
"public static Configuration getConfiguration() {\n synchronized (Configuration.class) {\n return configuration;\n }\n }",
"@ApiModelProperty(example = \"null\", value = \"Use this name for referring to the classifier in a configuration provided with the media for processing\")\n public String getClassifierName() {\n return classifierName;\n }"
] |
[
"0.5241917",
"0.49800575",
"0.49727207",
"0.4901552",
"0.4895918",
"0.4895918",
"0.48637438",
"0.4802644",
"0.47441295",
"0.4731365",
"0.4690312",
"0.4644519",
"0.46318924",
"0.4578159",
"0.45439675",
"0.45407334",
"0.45312425",
"0.4527428",
"0.4508476",
"0.4490525",
"0.4444103",
"0.44310427",
"0.44247353",
"0.4417965",
"0.4414179",
"0.4414179",
"0.44004458",
"0.4399021",
"0.4399021",
"0.4399021",
"0.4399021",
"0.43953502",
"0.4392632",
"0.4365026",
"0.43592104",
"0.43564507",
"0.43564507",
"0.43564507",
"0.43564507",
"0.4341404",
"0.43299243",
"0.43194485",
"0.42991474",
"0.42981902",
"0.42920017",
"0.42620933",
"0.42378306",
"0.4221615",
"0.42186016",
"0.42075408",
"0.42033046",
"0.41962552",
"0.41904545",
"0.4189673",
"0.41828024",
"0.41794664",
"0.41792223",
"0.4162901",
"0.41617516",
"0.41592306",
"0.41551355",
"0.415318",
"0.41526717",
"0.41494727",
"0.41442636",
"0.41369718",
"0.4134251",
"0.41300046",
"0.41248098",
"0.41243398",
"0.41222093",
"0.41133928",
"0.40936774",
"0.40808734",
"0.40754062",
"0.40651682",
"0.406069",
"0.40535548",
"0.40515417",
"0.40505713",
"0.40441605",
"0.40403095",
"0.40270838",
"0.4026948",
"0.40216154",
"0.4020075",
"0.40156215",
"0.4015176",
"0.4003171",
"0.40030092",
"0.39959955",
"0.39918587",
"0.39874166",
"0.3984452",
"0.39749992",
"0.39744478",
"0.3972298",
"0.39681137",
"0.3959234",
"0.3959126"
] |
0.7577346
|
0
|
A list of configurations you apply to this configuration object.
|
public java.util.List<Configuration> getConfigurations() {
if (configurations == null) {
configurations = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>();
configurations.setAutoConstruct(true);
}
return configurations;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public ArrayList<Configuration> getConfigurations(){\n return configurations;\n }",
"public List<StatisticsConfig> getConfigurations() {\n return configurations;\n }",
"public List<ConfigurationInner> configurations() {\n return this.innerProperties() == null ? null : this.innerProperties().configurations();\n }",
"public List<Configuration> getAll();",
"public Collection<Configuration> findAll() {\n\t\treturn this.configurationRepository.findAll();\n\t}",
"public List<ConfigurationHopital> getListeConfigDuColis() {\r\n\t\treturn configurations;\r\n\t}",
"public List<ProgressConfigurationType> getAllConfigurations();",
"public List<ATNConfig> elements() { return configs; }",
"public Vector getConfigurations() {\n return getConfigurations(DEFAULT_DB_CONFIG_TABLE);\n }",
"public static ArrayList<ConfigurationItem> getAllConfigurationItems() {\n\t\tString path = CONFIGURATION;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\tArrayList<ConfigurationItem> items = getConfigItems(response);\n\t\treturn items;\n\t}",
"public Set<Configuration> getConfigurations() {\n\t\treturn configurationToButtonMap.keySet();\n\t}",
"@Override\n\tpublic List<Config_Entity> get_all_config() {\n\t\treturn config.get_all_config();\n\t}",
"public List<TemplatorConfig> getConfig() {\n return cfg;\n }",
"@SystemApi\n @NonNull\n public List<IkeConfigRequest> getConfigurationRequests() {\n return Collections.unmodifiableList(Arrays.asList(mConfigRequests));\n }",
"public void setConfigurations() {\n configurations = jsonManager.getConfigurationsFromJson();\n }",
"protected List<String> configurationArguments() {\n List<String> args = new ArrayList<String>();\n return args;\n }",
"public List<DDVConfig> getConfigs() throws Exception\n {\n return DDVConfigFactory.getConfigs();\n }",
"Collection<String> readConfigs();",
"List<ContextBuilderConfigurator> getConfigurators() {\n return configurators;\n }",
"@RequestMapping(value = \"/ocConfigurations\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\t@Timed\n\tpublic List<OcConfiguration> getAll() {\n\t\tlog.debug(\"REST request to get all OcConfigurations\");\n\t\treturn ocConfigurationRepository.findAll();\n\t}",
"public ArrayList<ComConf> getList_comconf() {\r\n\t\treturn list_comconf;\r\n\t}",
"@Override\n public Iterable<String> configKeys() {\n Set<String> result = new HashSet<>();\n result.add(CONFIG_NAME);\n\n result.addAll(upgradeProviders.stream()\n .flatMap(it -> it.configKeys().stream())\n .collect(Collectors.toSet()));\n\n return result;\n }",
"@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();",
"public List<Configuration> getValidConfigurations() {\n\t\t// A state is valid for return if it is normal.\n\t\tfinal ArrayList<Configuration> list = new ArrayList<>();\n\t\tfinal Iterator<ConfigurationButton> it = configurationToButtonMap.values().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal ConfigurationButton button = it.next();\n\t\t\tif (button.state == ConfigurationButton.NORMAL || button.state == ConfigurationButton.FOCUSED) {\n\t\t\t\tlist.add(button.getConfiguration());\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"List<String> getConfigFilePaths();",
"public List<ProgressSiteConfiguration> getConfigurations(String siteID);",
"private static List<IConfigElement> getConfigElements()\n {\n\n List<IConfigElement> configElements = new ArrayList<IConfigElement>();\n\n if (ConfigReference.getInstance().isLoaded())\n {\n\n IConfigElement generalConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(Configuration.CATEGORY_GENERAL));\n IConfigElement blockConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(ConfigReference.CATEGORY_BLOCKIDS));\n\n while (generalConfigs.getChildElements().iterator().hasNext())\n {\n Object config = generalConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n\n while (blockConfigs.getChildElements().iterator().hasNext())\n {\n Object config = blockConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n }\n else\n {\n LogHelper.error(\"Attempted to retrieve config information from an unloaded config file.\");\n }\n \n return configElements;\n }",
"public Collection<ConfigAttribute> getAllConfigAttributes() {\n\t\treturn null;\n\t}",
"public java.util.List<String> getConfigurationTemplates() {\n if (configurationTemplates == null) {\n configurationTemplates = new java.util.ArrayList<String>();\n }\n return configurationTemplates;\n }",
"public String getSearchForConfigElements()\n {\n return searchForConfigElements;\n }",
"public ComponentListConfig getConfig() {\n return CONFIG;\n }",
"public RunConfiguration[] getRunConfigurations()\n\t{\n\t\treturn runConfigurations;\n\t}",
"ArrayList<ArrayList<String>> get_config(){\n return config_file.r_wartosci();\n }",
"protected final Map<String, String> getConfiguration() {\r\n\t\treturn Collections.unmodifiableMap(configuration);\r\n\t}",
"@Override\n public List<ConfigurationNode> getChildren()\n {\n return children.getSubNodes();\n }",
"public java.util.List<ReservedInstancesConfiguration> getTargetConfigurations() {\n if (targetConfigurations == null) {\n targetConfigurations = new com.amazonaws.internal.ListWithAutoConstructFlag<ReservedInstancesConfiguration>();\n targetConfigurations.setAutoConstruct(true);\n }\n return targetConfigurations;\n }",
"public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}",
"public Collection<ConfigurationTreeNode> getChildren() {\r\n\t\treturn children.values();\r\n\t}",
"public String getConfiguration() {\n return configuration;\n }",
"public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}",
"java.util.concurrent.Future<ListConfigurationsResult> listConfigurationsAsync(ListConfigurationsRequest listConfigurationsRequest);",
"public Set<JenkinsActiveConfiguration> getActiveConfigurations() {\n return activeConfigurations;\n }",
"abstract public Map<ScrapMode, List<String>> getScrapConfigurations();",
"@Configuration\n public Option[] configuration() {\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.core\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.api\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.jackrabbit.vault\",\"org.apache.jackrabbit.vault\");\n return new Option[]{\n baseConfiguration(),\n slingQuickstart(),\n logback(),\n // build artifact\n slingDistribution(),\n // testing\n defaultOsgiConfigs(),\n SlingOptions.webconsole(),\n CoreOptions.mavenBundle(\"org.apache.felix\", \"org.apache.felix.webconsole.plugins.ds\", \"2.0.8\"),\n junitBundles()\n };\n }",
"@Override\n\tpublic Collection<ConfigAttribute> getAllConfigAttributes() {\n\t\treturn null;\n\t}",
"public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}",
"public CompositeConfiguration getConfiguration() {\n return _configuration;\n }",
"public Collection<String> getPaths() {\n // Only return paths of valid configurations\n Set<String> paths = new HashSet<String>();\n for (Map.Entry<String, CachedConfig> entry : confs.entrySet()) {\n if (entry.getValue().state == ConfigState.OK) {\n paths.add(entry.getKey());\n }\n }\n return paths;\n }",
"public JSONObject handleListConfigs(MapReduceXml xml) {\n JSONObject retValue = new JSONObject();\n JSONArray configArray = new JSONArray();\n Set<String> names = xml.getConfigurationNames();\n for (String name : names) {\n String configXml = xml.getTemplateAsXmlString(name);\n ConfigurationTemplatePreprocessor preprocessor = \n new ConfigurationTemplatePreprocessor(configXml);\n configArray.put(preprocessor.toJson(name));\n }\n try {\n retValue.put(\"configs\", configArray);\n } catch (JSONException e) {\n throw new RuntimeException(\"Hard coded string is null\");\n }\n return retValue;\n }",
"public abstract Configuration configuration();",
"public List<HTMLConfigComponent> getStylingList() {\n return stylingList;\n }",
"public Configs getConfig() {\n boolean[] $jacocoInit = $jacocoInit();\n int defaultPerLineCount = Type.FOLLOW_STORE.getDefaultPerLineCount();\n Type type = Type.FOLLOW_STORE;\n $jacocoInit[1] = true;\n Configs configs = new Configs(this, defaultPerLineCount, type.isFixedPerLineCount());\n $jacocoInit[2] = true;\n return configs;\n }",
"public Configuration c() {\n return configuration;\n }",
"private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n //getCountries\n CountriesList countriesList = (CountriesList) AppContext.getContext().getBean(AppSpringBeans.COUNTRIES_BEAN);\n configOutput.append(countriesList.getListInXML());\n //getWeaponConfiguration\n configOutput.append(WeaponConfiguration.getInstance().getXmlOutput());\n //getPerksConfiguration\n configOutput.append(\"\\n\");\n configOutput.append(PerksConfiguration.getInstance().getXmlOutput());\n //getRankingRules\n ScoringRules scoreRules = (ScoringRules) AppContext.getContext().getBean(AppSpringBeans.SCORING_RULES_BEAN);\n configOutput.append(scoreRules.rankingRulesXml());\n\n configOutput.append(AchievementsConfiguration.getInstance().getXmlOutput());\n\n configOutput.append(\"\\n\");\n configOutput.append(AvatarsConfiguration.getInstance().getXmlOutput());\n\n\n return configOutput.toString();\n }",
"public ProxyConfig[] getProxyConfigList();",
"public List<AlternateConf> listAll(){\n\t\treturn altRepo.findAll();\n\t}",
"public String getConfiguration(){\n\t\treturn this.config;\n\t}",
"private String[] getConfiguration() {\n String[] result = new String[6];\n // Query the latest configuration file made and send it back in an array of strings\n String query = \"SELECT * FROM configuration ORDER BY configuration_id DESC LIMIT 1\";\n sendQuery(query);\n try {\n if(resultSet.next()) {\n for (int i = 1; i < 7; i++) {\n result[i-1] = resultSet.getString(i);\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return result;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"@Updatable\n public S3AccessControlListConfiguration getAccessControlListConfiguration() {\n return accessControlListConfiguration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }",
"public void setConfigurations(Configuration[] configurations) {\n this._configurations = configurations;\n }",
"public Bmv2Configuration configuration() {\n return configuration;\n }",
"public ArrayList<Integer[]> getConfigs() throws IOException {\r\n BufferedReader reader = new BufferedReader(new FileReader(config));\r\n ArrayList<Integer[]> configs = new ArrayList<>();\r\n String line = reader.readLine();\r\n line = reader.readLine();\r\n while(line != null) {\r\n String[] parsedLine = line.split(\",\");\r\n Integer[] item = new Integer[5];\r\n for(int i=0; i<5; i++) {\r\n item[i] = Integer.parseInt(parsedLine[i]);\r\n }\r\n configs.add(item);\r\n line = reader.readLine();\r\n }\r\n reader.close();\r\n return configs;\r\n\r\n }",
"public List<Configuration> GetConfigurationsFromProject(String idProject) {\n\t\treturn this.jdbcTemplate.query(\n\t\t\t\t\"select * from configurationCrawlers where idProject = \" + idProject ,\n\t\t\t\tnew ConfigurationMapper());\n\t}",
"public ListConfigurationForAllNamespaces watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }",
"@RequestMapping(value = \"/*\", method = RequestMethod.GET)\n public String listConfigurations(Model model) {\n model.addAttribute(\"configuration\", new Configuration());\n model.addAttribute(\"listConfigurations\", this.configurationService.listConfigurations());\n return \"configuration\";\n }",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"@GetMapping(\"/config-parameters\")\n @Timed\n public List<ConfigParameter> getAllConfigParameters() {\n log.debug(\"REST request to get all ConfigParameters\");\n return configParameterRepository.findAll();\n }",
"public Map<String, RelyingPartyConfiguration> getRelyingPartyConfigurations();",
"@Override\n\tpublic Configuration getConf() {\n\t\treturn this.Conf;\n\t}",
"private static List<Configuration> configure() {\n Map<String, Configuration> configurations = new HashMap<String, Configuration>();\n try {\n Enumeration<URL> resources = Thread.currentThread().getContextClassLoader().getResources(\"jorm.properties\");\n \n while (resources.hasMoreElements()) {\n URL url = resources.nextElement();\n \n Database.get().log.debug(\"Found jorm configuration @ \" + url.toString());\n \n Properties properties = new Properties();\n InputStream is = url.openStream();\n properties.load(is);\n is.close();\n \n String database = null;\n String destroyMethodName = null;\n String dataSourceClassName = null;\n Map<String, String> dataSourceProperties = new HashMap<String, String>();\n int priority = 0;\n \n for (Entry<String, String> property : new TreeMap<String, String>((Map) properties).entrySet()) {\n String[] parts = property.getKey().split(\"\\\\.\");\n if (parts.length < 3 || !parts[0].equals(\"database\")) {\n continue;\n }\n if (database != null && !parts[1].equals(database)) {\n try {\n Configuration conf = configurations.get(database);\n if (conf == null || conf.priority < priority) {\n conf = new Configuration(database, dataSourceClassName, dataSourceProperties, destroyMethodName, priority);\n configurations.put(database, conf);\n Database.get().log.debug(\"Configured \" + conf);\n }\n } catch (Exception ex) {\n Database.get().log.warn(\"Failed to configure database: \" + ex.getMessage());\n }\n database = parts[1];\n destroyMethodName = null;\n dataSourceClassName = null;\n dataSourceProperties = new HashMap<String, String>();\n priority = 0;\n }\n\n if (parts.length == 3 && parts[2].equals(\"destroyMethod\")) {\n destroyMethodName = property.getValue();\n } else if (parts.length == 3 && parts[2].equals(\"priority\")) {\n try {\n priority = Integer.parseInt(property.getValue().trim());\n } catch (Exception ex) {\n \n }\n } else if (parts[2].equals(\"dataSource\")) {\n if (parts.length == 3) {\n dataSourceClassName = property.getValue();\n } else if (parts.length == 4) {\n dataSourceProperties.put(parts[3], property.getValue());\n } else {\n Database.get().log.warn(\"Invalid DataSource property '\" + property.getKey() + \"'\");\n }\n } else {\n Database.get().log.warn(\"Invalid property '\" + property.getKey() + \"'\");\n }\n }\n \n if (database != null) {\n try {\n Configuration conf = configurations.get(database);\n if (conf == null || conf.priority < priority) {\n conf = new Configuration(database, dataSourceClassName, dataSourceProperties, destroyMethodName, priority);\n configurations.put(database, conf);\n Database.get().log.debug(\"Configured \" + conf);\n }\n } catch (Exception ex) {\n Database.get().log.warn(\"Failed to configure database: \" + ex.getMessage());\n }\n }\n }\n \n for (Entry<String, Configuration> entry : configurations.entrySet()) {\n entry.getValue().apply();\n Database.get().log.debug(\"Configured \" + configuration);\n }\n } catch (IOException ex) {\n Database.get().log.warn(\"Failed to configure database: \" + ex.getMessage()); \n }\n \n return new ArrayList<Configuration>(configurations.values());\n }",
"public String getConfiguration() {\n return this.configuration;\n }",
"@Override\n\tpublic Set<DualSubtitleConfigBO> getConfigs() {\n\t\treturn this.dualSubConfigs;\n\t}",
"@Override\n public Map<String, ConfiguredVariableItem> getConfiguration() {\n return config;\n }",
"public Configuration[] getSizeConfigurations() {\n Configuration[] nativeGetSizeConfigurations;\n synchronized (this) {\n ensureValidLocked();\n nativeGetSizeConfigurations = nativeGetSizeConfigurations(this.mObject);\n }\n return nativeGetSizeConfigurations;\n }",
"@Override\n public ListEventConfigurationsResult listEventConfigurations(ListEventConfigurationsRequest request) {\n request = beforeClientExecution(request);\n return executeListEventConfigurations(request);\n }",
"public int[] getSavedConfigurations() {\r\n return savedConfigurations;\r\n }",
"@Transactional(readOnly = true)\n public List<ConfigSystem> findAll() {\n log.debug(\"Request to get all ConfigSystems\");\n return configSystemRepository.findAll();\n }",
"public List<DatabaseAccountConnectionString> connectionStrings() {\n return this.connectionStrings;\n }",
"protected Map<String, Object> getConfigurationParameters(){\n\t\treturn configurationParameters;\n\t}",
"public ConfigurationManagement getConfig() {\r\n\t\treturn config;\r\n\t}",
"public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}",
"public String configurationInfo();",
"protected Configuration getConfiguration(){\n return configuration;\n }",
"private List<Row> getConfigEntries() {\n InputStream inputStream = null;\n try {\n inputStream = getAssets().open(\"config.conf\");\n } catch (IOException ex) {\n System.err.println(\"File konnte nicht gelesen werden!\");\n }\n\n // inputStream in String umwandeln\n String configString = \"\";\n try {\n configString = inputStreamToString(inputStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // String in Zeilen umwandeln\n String[] keyValuePairs = configString.trim().split(\"\\n\");\n\n // String in Objekt mit key und value umwandeln\n return Arrays.stream(keyValuePairs).map(r -> {\n String[] temp = r.split(\"=\");\n String key = temp[0];\n String values = temp[1];\n return new Row(key, values);\n }).collect(Collectors.toList());\n }",
"List<Map<String,Object>> getConfigList(Request request, String configtype);",
"public Map<String, WorldConfig> getWorldConfigs() {\n\t\treturn Collections.unmodifiableMap(WorldCfg);\n\n\t}",
"public static java.util.Iterator<org.semanticwb.process.resources.SWPResourcesConfig> listSWPResourcesConfigs()\r\n {\r\n java.util.Iterator it=sclass.listInstances();\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.process.resources.SWPResourcesConfig>(it, true);\r\n }",
"public List<Settings> getAllSettings() {\n return this.settingsRepository.findAll();\n }",
"List<Map<String,Object>> getConfigList(VirtualHost vhost, String configtype);",
"@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/configurations\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<ConfigurationList, Configuration> listConfigurationForAllNamespaces();"
] |
[
"0.7922547",
"0.7575725",
"0.7562626",
"0.7535095",
"0.74226385",
"0.7245151",
"0.70832133",
"0.7057677",
"0.6989977",
"0.6873294",
"0.685766",
"0.6701545",
"0.6610113",
"0.6482415",
"0.6380726",
"0.6276572",
"0.6268048",
"0.624194",
"0.6235164",
"0.61845857",
"0.615754",
"0.6149607",
"0.61348647",
"0.6133198",
"0.6108372",
"0.60832936",
"0.60593265",
"0.6027948",
"0.6002739",
"0.5993346",
"0.5988942",
"0.59764105",
"0.59615195",
"0.5954913",
"0.5945461",
"0.59291255",
"0.59123635",
"0.5873425",
"0.5859925",
"0.58478343",
"0.5838084",
"0.5834243",
"0.5804615",
"0.5791913",
"0.57809854",
"0.577707",
"0.5771989",
"0.5765348",
"0.5763381",
"0.57525283",
"0.5749937",
"0.5744468",
"0.5744201",
"0.57422626",
"0.573726",
"0.57230455",
"0.5715644",
"0.57145417",
"0.57110816",
"0.57110816",
"0.56902385",
"0.56860125",
"0.56860125",
"0.56860125",
"0.56860125",
"0.5682595",
"0.5673604",
"0.5661935",
"0.56543887",
"0.5649301",
"0.56390876",
"0.56329495",
"0.563224",
"0.563224",
"0.563224",
"0.563224",
"0.5616009",
"0.5605086",
"0.5599886",
"0.5594308",
"0.55866283",
"0.55753946",
"0.5574472",
"0.55620545",
"0.55610174",
"0.55555177",
"0.55413735",
"0.55395883",
"0.5531017",
"0.5528089",
"0.55275184",
"0.5525285",
"0.5524916",
"0.55146533",
"0.5512936",
"0.55086744",
"0.54982644",
"0.5496102",
"0.5493458",
"0.54886526"
] |
0.76039654
|
1
|
A list of configurations you apply to this configuration object.
|
public void setConfigurations(java.util.Collection<Configuration> configurations) {
if (configurations == null) {
this.configurations = null;
return;
}
com.amazonaws.internal.ListWithAutoConstructFlag<Configuration> configurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>(configurations.size());
configurationsCopy.addAll(configurations);
this.configurations = configurationsCopy;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public ArrayList<Configuration> getConfigurations(){\n return configurations;\n }",
"public java.util.List<Configuration> getConfigurations() {\n if (configurations == null) {\n configurations = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>();\n configurations.setAutoConstruct(true);\n }\n return configurations;\n }",
"public List<StatisticsConfig> getConfigurations() {\n return configurations;\n }",
"public List<ConfigurationInner> configurations() {\n return this.innerProperties() == null ? null : this.innerProperties().configurations();\n }",
"public List<Configuration> getAll();",
"public Collection<Configuration> findAll() {\n\t\treturn this.configurationRepository.findAll();\n\t}",
"public List<ConfigurationHopital> getListeConfigDuColis() {\r\n\t\treturn configurations;\r\n\t}",
"public List<ProgressConfigurationType> getAllConfigurations();",
"public List<ATNConfig> elements() { return configs; }",
"public Vector getConfigurations() {\n return getConfigurations(DEFAULT_DB_CONFIG_TABLE);\n }",
"public static ArrayList<ConfigurationItem> getAllConfigurationItems() {\n\t\tString path = CONFIGURATION;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\tArrayList<ConfigurationItem> items = getConfigItems(response);\n\t\treturn items;\n\t}",
"public Set<Configuration> getConfigurations() {\n\t\treturn configurationToButtonMap.keySet();\n\t}",
"@Override\n\tpublic List<Config_Entity> get_all_config() {\n\t\treturn config.get_all_config();\n\t}",
"public List<TemplatorConfig> getConfig() {\n return cfg;\n }",
"@SystemApi\n @NonNull\n public List<IkeConfigRequest> getConfigurationRequests() {\n return Collections.unmodifiableList(Arrays.asList(mConfigRequests));\n }",
"public void setConfigurations() {\n configurations = jsonManager.getConfigurationsFromJson();\n }",
"protected List<String> configurationArguments() {\n List<String> args = new ArrayList<String>();\n return args;\n }",
"public List<DDVConfig> getConfigs() throws Exception\n {\n return DDVConfigFactory.getConfigs();\n }",
"Collection<String> readConfigs();",
"List<ContextBuilderConfigurator> getConfigurators() {\n return configurators;\n }",
"@RequestMapping(value = \"/ocConfigurations\", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)\n\t@Timed\n\tpublic List<OcConfiguration> getAll() {\n\t\tlog.debug(\"REST request to get all OcConfigurations\");\n\t\treturn ocConfigurationRepository.findAll();\n\t}",
"public ArrayList<ComConf> getList_comconf() {\r\n\t\treturn list_comconf;\r\n\t}",
"@Override\n public Iterable<String> configKeys() {\n Set<String> result = new HashSet<>();\n result.add(CONFIG_NAME);\n\n result.addAll(upgradeProviders.stream()\n .flatMap(it -> it.configKeys().stream())\n .collect(Collectors.toSet()));\n\n return result;\n }",
"@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();",
"public List<Configuration> getValidConfigurations() {\n\t\t// A state is valid for return if it is normal.\n\t\tfinal ArrayList<Configuration> list = new ArrayList<>();\n\t\tfinal Iterator<ConfigurationButton> it = configurationToButtonMap.values().iterator();\n\t\twhile (it.hasNext()) {\n\t\t\tfinal ConfigurationButton button = it.next();\n\t\t\tif (button.state == ConfigurationButton.NORMAL || button.state == ConfigurationButton.FOCUSED) {\n\t\t\t\tlist.add(button.getConfiguration());\n\t\t\t}\n\t\t}\n\t\treturn list;\n\t}",
"List<String> getConfigFilePaths();",
"public List<ProgressSiteConfiguration> getConfigurations(String siteID);",
"private static List<IConfigElement> getConfigElements()\n {\n\n List<IConfigElement> configElements = new ArrayList<IConfigElement>();\n\n if (ConfigReference.getInstance().isLoaded())\n {\n\n IConfigElement generalConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(Configuration.CATEGORY_GENERAL));\n IConfigElement blockConfigs = new ConfigElement(ConfigReference.getInstance().getCategory(ConfigReference.CATEGORY_BLOCKIDS));\n\n while (generalConfigs.getChildElements().iterator().hasNext())\n {\n Object config = generalConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n\n while (blockConfigs.getChildElements().iterator().hasNext())\n {\n Object config = blockConfigs.getChildElements().iterator().next();\n if (config instanceof IConfigElement)\n {\n configElements.add((IConfigElement)config);\n }\n }\n }\n else\n {\n LogHelper.error(\"Attempted to retrieve config information from an unloaded config file.\");\n }\n \n return configElements;\n }",
"public Collection<ConfigAttribute> getAllConfigAttributes() {\n\t\treturn null;\n\t}",
"public java.util.List<String> getConfigurationTemplates() {\n if (configurationTemplates == null) {\n configurationTemplates = new java.util.ArrayList<String>();\n }\n return configurationTemplates;\n }",
"public String getSearchForConfigElements()\n {\n return searchForConfigElements;\n }",
"public ComponentListConfig getConfig() {\n return CONFIG;\n }",
"public RunConfiguration[] getRunConfigurations()\n\t{\n\t\treturn runConfigurations;\n\t}",
"ArrayList<ArrayList<String>> get_config(){\n return config_file.r_wartosci();\n }",
"protected final Map<String, String> getConfiguration() {\r\n\t\treturn Collections.unmodifiableMap(configuration);\r\n\t}",
"@Override\n public List<ConfigurationNode> getChildren()\n {\n return children.getSubNodes();\n }",
"public java.util.List<ReservedInstancesConfiguration> getTargetConfigurations() {\n if (targetConfigurations == null) {\n targetConfigurations = new com.amazonaws.internal.ListWithAutoConstructFlag<ReservedInstancesConfiguration>();\n targetConfigurations.setAutoConstruct(true);\n }\n return targetConfigurations;\n }",
"public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}",
"public Collection<ConfigurationTreeNode> getChildren() {\r\n\t\treturn children.values();\r\n\t}",
"public String getConfiguration() {\n return configuration;\n }",
"public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}",
"java.util.concurrent.Future<ListConfigurationsResult> listConfigurationsAsync(ListConfigurationsRequest listConfigurationsRequest);",
"public Set<JenkinsActiveConfiguration> getActiveConfigurations() {\n return activeConfigurations;\n }",
"abstract public Map<ScrapMode, List<String>> getScrapConfigurations();",
"@Configuration\n public Option[] configuration() {\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.core\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.sling\", \"org.apache.sling.distribution.api\");\n SlingOptions.versionResolver.setVersionFromProject(\"org.apache.jackrabbit.vault\",\"org.apache.jackrabbit.vault\");\n return new Option[]{\n baseConfiguration(),\n slingQuickstart(),\n logback(),\n // build artifact\n slingDistribution(),\n // testing\n defaultOsgiConfigs(),\n SlingOptions.webconsole(),\n CoreOptions.mavenBundle(\"org.apache.felix\", \"org.apache.felix.webconsole.plugins.ds\", \"2.0.8\"),\n junitBundles()\n };\n }",
"@Override\n\tpublic Collection<ConfigAttribute> getAllConfigAttributes() {\n\t\treturn null;\n\t}",
"public String getConfiguration()\r\n\t{\r\n\t\treturn _configuration; \r\n\t}",
"public CompositeConfiguration getConfiguration() {\n return _configuration;\n }",
"public Collection<String> getPaths() {\n // Only return paths of valid configurations\n Set<String> paths = new HashSet<String>();\n for (Map.Entry<String, CachedConfig> entry : confs.entrySet()) {\n if (entry.getValue().state == ConfigState.OK) {\n paths.add(entry.getKey());\n }\n }\n return paths;\n }",
"public JSONObject handleListConfigs(MapReduceXml xml) {\n JSONObject retValue = new JSONObject();\n JSONArray configArray = new JSONArray();\n Set<String> names = xml.getConfigurationNames();\n for (String name : names) {\n String configXml = xml.getTemplateAsXmlString(name);\n ConfigurationTemplatePreprocessor preprocessor = \n new ConfigurationTemplatePreprocessor(configXml);\n configArray.put(preprocessor.toJson(name));\n }\n try {\n retValue.put(\"configs\", configArray);\n } catch (JSONException e) {\n throw new RuntimeException(\"Hard coded string is null\");\n }\n return retValue;\n }",
"public abstract Configuration configuration();",
"public List<HTMLConfigComponent> getStylingList() {\n return stylingList;\n }",
"public Configs getConfig() {\n boolean[] $jacocoInit = $jacocoInit();\n int defaultPerLineCount = Type.FOLLOW_STORE.getDefaultPerLineCount();\n Type type = Type.FOLLOW_STORE;\n $jacocoInit[1] = true;\n Configs configs = new Configs(this, defaultPerLineCount, type.isFixedPerLineCount());\n $jacocoInit[2] = true;\n return configs;\n }",
"public Configuration c() {\n return configuration;\n }",
"private String getAllConfigsAsXML() {\n StringBuilder configOutput = new StringBuilder();\n //getConfigParams\n configOutput.append(Configuration.getInstance().getXmlOutput());\n //getRocketsConfiguration\n configOutput.append(RocketsConfiguration.getInstance().getXmlOutput());\n //getCountries\n CountriesList countriesList = (CountriesList) AppContext.getContext().getBean(AppSpringBeans.COUNTRIES_BEAN);\n configOutput.append(countriesList.getListInXML());\n //getWeaponConfiguration\n configOutput.append(WeaponConfiguration.getInstance().getXmlOutput());\n //getPerksConfiguration\n configOutput.append(\"\\n\");\n configOutput.append(PerksConfiguration.getInstance().getXmlOutput());\n //getRankingRules\n ScoringRules scoreRules = (ScoringRules) AppContext.getContext().getBean(AppSpringBeans.SCORING_RULES_BEAN);\n configOutput.append(scoreRules.rankingRulesXml());\n\n configOutput.append(AchievementsConfiguration.getInstance().getXmlOutput());\n\n configOutput.append(\"\\n\");\n configOutput.append(AvatarsConfiguration.getInstance().getXmlOutput());\n\n\n return configOutput.toString();\n }",
"public ProxyConfig[] getProxyConfigList();",
"public List<AlternateConf> listAll(){\n\t\treturn altRepo.findAll();\n\t}",
"public String getConfiguration(){\n\t\treturn this.config;\n\t}",
"private String[] getConfiguration() {\n String[] result = new String[6];\n // Query the latest configuration file made and send it back in an array of strings\n String query = \"SELECT * FROM configuration ORDER BY configuration_id DESC LIMIT 1\";\n sendQuery(query);\n try {\n if(resultSet.next()) {\n for (int i = 1; i < 7; i++) {\n result[i-1] = resultSet.getString(i);\n }\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return result;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"@Updatable\n public S3AccessControlListConfiguration getAccessControlListConfiguration() {\n return accessControlListConfiguration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public List<LoadBalancerConfiguration> loadBalancerConfigurations() {\n return this.loadBalancerConfigurations;\n }",
"public void setConfigurations(Configuration[] configurations) {\n this._configurations = configurations;\n }",
"public Bmv2Configuration configuration() {\n return configuration;\n }",
"public ArrayList<Integer[]> getConfigs() throws IOException {\r\n BufferedReader reader = new BufferedReader(new FileReader(config));\r\n ArrayList<Integer[]> configs = new ArrayList<>();\r\n String line = reader.readLine();\r\n line = reader.readLine();\r\n while(line != null) {\r\n String[] parsedLine = line.split(\",\");\r\n Integer[] item = new Integer[5];\r\n for(int i=0; i<5; i++) {\r\n item[i] = Integer.parseInt(parsedLine[i]);\r\n }\r\n configs.add(item);\r\n line = reader.readLine();\r\n }\r\n reader.close();\r\n return configs;\r\n\r\n }",
"public List<Configuration> GetConfigurationsFromProject(String idProject) {\n\t\treturn this.jdbcTemplate.query(\n\t\t\t\t\"select * from configurationCrawlers where idProject = \" + idProject ,\n\t\t\t\tnew ConfigurationMapper());\n\t}",
"public ListConfigurationForAllNamespaces watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }",
"@RequestMapping(value = \"/*\", method = RequestMethod.GET)\n public String listConfigurations(Model model) {\n model.addAttribute(\"configuration\", new Configuration());\n model.addAttribute(\"listConfigurations\", this.configurationService.listConfigurations());\n return \"configuration\";\n }",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"@GetMapping(\"/config-parameters\")\n @Timed\n public List<ConfigParameter> getAllConfigParameters() {\n log.debug(\"REST request to get all ConfigParameters\");\n return configParameterRepository.findAll();\n }",
"public Map<String, RelyingPartyConfiguration> getRelyingPartyConfigurations();",
"@Override\n\tpublic Configuration getConf() {\n\t\treturn this.Conf;\n\t}",
"private static List<Configuration> configure() {\n Map<String, Configuration> configurations = new HashMap<String, Configuration>();\n try {\n Enumeration<URL> resources = Thread.currentThread().getContextClassLoader().getResources(\"jorm.properties\");\n \n while (resources.hasMoreElements()) {\n URL url = resources.nextElement();\n \n Database.get().log.debug(\"Found jorm configuration @ \" + url.toString());\n \n Properties properties = new Properties();\n InputStream is = url.openStream();\n properties.load(is);\n is.close();\n \n String database = null;\n String destroyMethodName = null;\n String dataSourceClassName = null;\n Map<String, String> dataSourceProperties = new HashMap<String, String>();\n int priority = 0;\n \n for (Entry<String, String> property : new TreeMap<String, String>((Map) properties).entrySet()) {\n String[] parts = property.getKey().split(\"\\\\.\");\n if (parts.length < 3 || !parts[0].equals(\"database\")) {\n continue;\n }\n if (database != null && !parts[1].equals(database)) {\n try {\n Configuration conf = configurations.get(database);\n if (conf == null || conf.priority < priority) {\n conf = new Configuration(database, dataSourceClassName, dataSourceProperties, destroyMethodName, priority);\n configurations.put(database, conf);\n Database.get().log.debug(\"Configured \" + conf);\n }\n } catch (Exception ex) {\n Database.get().log.warn(\"Failed to configure database: \" + ex.getMessage());\n }\n database = parts[1];\n destroyMethodName = null;\n dataSourceClassName = null;\n dataSourceProperties = new HashMap<String, String>();\n priority = 0;\n }\n\n if (parts.length == 3 && parts[2].equals(\"destroyMethod\")) {\n destroyMethodName = property.getValue();\n } else if (parts.length == 3 && parts[2].equals(\"priority\")) {\n try {\n priority = Integer.parseInt(property.getValue().trim());\n } catch (Exception ex) {\n \n }\n } else if (parts[2].equals(\"dataSource\")) {\n if (parts.length == 3) {\n dataSourceClassName = property.getValue();\n } else if (parts.length == 4) {\n dataSourceProperties.put(parts[3], property.getValue());\n } else {\n Database.get().log.warn(\"Invalid DataSource property '\" + property.getKey() + \"'\");\n }\n } else {\n Database.get().log.warn(\"Invalid property '\" + property.getKey() + \"'\");\n }\n }\n \n if (database != null) {\n try {\n Configuration conf = configurations.get(database);\n if (conf == null || conf.priority < priority) {\n conf = new Configuration(database, dataSourceClassName, dataSourceProperties, destroyMethodName, priority);\n configurations.put(database, conf);\n Database.get().log.debug(\"Configured \" + conf);\n }\n } catch (Exception ex) {\n Database.get().log.warn(\"Failed to configure database: \" + ex.getMessage());\n }\n }\n }\n \n for (Entry<String, Configuration> entry : configurations.entrySet()) {\n entry.getValue().apply();\n Database.get().log.debug(\"Configured \" + configuration);\n }\n } catch (IOException ex) {\n Database.get().log.warn(\"Failed to configure database: \" + ex.getMessage()); \n }\n \n return new ArrayList<Configuration>(configurations.values());\n }",
"public String getConfiguration() {\n return this.configuration;\n }",
"@Override\n\tpublic Set<DualSubtitleConfigBO> getConfigs() {\n\t\treturn this.dualSubConfigs;\n\t}",
"@Override\n public Map<String, ConfiguredVariableItem> getConfiguration() {\n return config;\n }",
"public Configuration[] getSizeConfigurations() {\n Configuration[] nativeGetSizeConfigurations;\n synchronized (this) {\n ensureValidLocked();\n nativeGetSizeConfigurations = nativeGetSizeConfigurations(this.mObject);\n }\n return nativeGetSizeConfigurations;\n }",
"@Override\n public ListEventConfigurationsResult listEventConfigurations(ListEventConfigurationsRequest request) {\n request = beforeClientExecution(request);\n return executeListEventConfigurations(request);\n }",
"public int[] getSavedConfigurations() {\r\n return savedConfigurations;\r\n }",
"@Transactional(readOnly = true)\n public List<ConfigSystem> findAll() {\n log.debug(\"Request to get all ConfigSystems\");\n return configSystemRepository.findAll();\n }",
"public List<DatabaseAccountConnectionString> connectionStrings() {\n return this.connectionStrings;\n }",
"protected Map<String, Object> getConfigurationParameters(){\n\t\treturn configurationParameters;\n\t}",
"public ConfigurationManagement getConfig() {\r\n\t\treturn config;\r\n\t}",
"public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}",
"public String configurationInfo();",
"protected Configuration getConfiguration(){\n return configuration;\n }",
"private List<Row> getConfigEntries() {\n InputStream inputStream = null;\n try {\n inputStream = getAssets().open(\"config.conf\");\n } catch (IOException ex) {\n System.err.println(\"File konnte nicht gelesen werden!\");\n }\n\n // inputStream in String umwandeln\n String configString = \"\";\n try {\n configString = inputStreamToString(inputStream);\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n // String in Zeilen umwandeln\n String[] keyValuePairs = configString.trim().split(\"\\n\");\n\n // String in Objekt mit key und value umwandeln\n return Arrays.stream(keyValuePairs).map(r -> {\n String[] temp = r.split(\"=\");\n String key = temp[0];\n String values = temp[1];\n return new Row(key, values);\n }).collect(Collectors.toList());\n }",
"List<Map<String,Object>> getConfigList(Request request, String configtype);",
"public Map<String, WorldConfig> getWorldConfigs() {\n\t\treturn Collections.unmodifiableMap(WorldCfg);\n\n\t}",
"public static java.util.Iterator<org.semanticwb.process.resources.SWPResourcesConfig> listSWPResourcesConfigs()\r\n {\r\n java.util.Iterator it=sclass.listInstances();\r\n return new org.semanticwb.model.GenericIterator<org.semanticwb.process.resources.SWPResourcesConfig>(it, true);\r\n }",
"public List<Settings> getAllSettings() {\n return this.settingsRepository.findAll();\n }",
"List<Map<String,Object>> getConfigList(VirtualHost vhost, String configtype);",
"@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/configurations\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<ConfigurationList, Configuration> listConfigurationForAllNamespaces();"
] |
[
"0.7921727",
"0.76043487",
"0.75743145",
"0.7562526",
"0.7535076",
"0.7423641",
"0.72443336",
"0.7081986",
"0.7057123",
"0.69897497",
"0.6874344",
"0.6856254",
"0.670194",
"0.6609697",
"0.64824694",
"0.6380107",
"0.62764937",
"0.62687993",
"0.6242727",
"0.6236209",
"0.618464",
"0.6157602",
"0.6150216",
"0.6135004",
"0.61310107",
"0.61080146",
"0.608318",
"0.60589606",
"0.60290915",
"0.6002493",
"0.599341",
"0.5989724",
"0.5975859",
"0.59616506",
"0.595615",
"0.5947452",
"0.5929533",
"0.5913096",
"0.587428",
"0.58604383",
"0.58480626",
"0.5836867",
"0.58338815",
"0.580412",
"0.57916105",
"0.5782317",
"0.57778263",
"0.57723296",
"0.5764617",
"0.57630396",
"0.5752732",
"0.5749208",
"0.57453483",
"0.5744332",
"0.57429576",
"0.57378954",
"0.5722478",
"0.5716515",
"0.57145655",
"0.57116216",
"0.57116216",
"0.5691557",
"0.56863517",
"0.56863517",
"0.56863517",
"0.56863517",
"0.56836045",
"0.5671263",
"0.56627184",
"0.56552666",
"0.56490123",
"0.56391966",
"0.56325036",
"0.56320024",
"0.56320024",
"0.56320024",
"0.56320024",
"0.5615032",
"0.5605856",
"0.56009847",
"0.5594277",
"0.5587268",
"0.55754566",
"0.5575123",
"0.556118",
"0.5560573",
"0.5555046",
"0.5541253",
"0.55404127",
"0.5531396",
"0.5529083",
"0.5528456",
"0.55257803",
"0.5525293",
"0.55144674",
"0.5512446",
"0.550956",
"0.549874",
"0.549637",
"0.54939693",
"0.5489943"
] |
0.0
|
-1
|
A list of configurations you apply to this configuration object. Returns a reference to this object so that method calls can be chained together.
|
public Configuration withConfigurations(java.util.Collection<Configuration> configurations) {
if (configurations == null) {
this.configurations = null;
} else {
com.amazonaws.internal.ListWithAutoConstructFlag<Configuration> configurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>(configurations.size());
configurationsCopy.addAll(configurations);
this.configurations = configurationsCopy;
}
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List<ConfigurationInner> configurations() {\n return this.innerProperties() == null ? null : this.innerProperties().configurations();\n }",
"public C build() {\n if (configs.isEmpty()) {\n throw new RuntimeException(\"There should be at least one configuration provided\");\n }\n\n // Handling config files\n ConfigSource firstConfigSource = configs.get(0);\n Config firstConfigOrig = getConfigSupplier(firstConfigSource).getConfig();\n if (!(supportedConfig.isInstance(firstConfigOrig))) {\n throw new RuntimeException(\n String.format(\n \"Config is not of parameterized type %s, got instead %s\",\n supportedConfig.getName(), firstConfigOrig.getClass().getName()));\n }\n C firstConfig = (C) firstConfigOrig;\n for (int i = 1; i < configs.size(); ++i) {\n ConfigSource nextConfigSource = configs.get(i);\n Config nextConfig = getConfigSupplier(nextConfigSource).getConfig();\n try {\n firstConfig = copyProperties(firstConfig, nextConfig);\n } catch (Exception ex) {\n throw new RuntimeException(\n String.format(\"Failed to merge config %s into main config\", nextConfigSource), ex);\n }\n }\n\n // Handling string pathValue pairs config overrides\n for (Pair<String, Object> pathValue : pathValueOverrides) {\n try {\n PropertyUtils.setNestedProperty(firstConfig, pathValue.getValue0(), pathValue.getValue1());\n } catch (Exception e) {\n throw new RuntimeException(\n String.format(\n \"Cannot override property %s with value %s\",\n pathValue.getValue0(), pathValue.getValue1()),\n e);\n }\n }\n\n return firstConfig;\n }",
"public ArrayList<Configuration> getConfigurations(){\n return configurations;\n }",
"public List<StatisticsConfig> getConfigurations() {\n return configurations;\n }",
"public ListConfigurationForAllNamespaces watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }",
"public java.util.List<Configuration> getConfigurations() {\n if (configurations == null) {\n configurations = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>();\n configurations.setAutoConstruct(true);\n }\n return configurations;\n }",
"public List<Configuration> getAll();",
"java.util.concurrent.Future<ListConfigurationsResult> listConfigurationsAsync(ListConfigurationsRequest listConfigurationsRequest);",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public Builder mergeConfiguration(com.google.protobuf.Any value) {\n if (configurationBuilder_ == null) {\n if (configuration_ != null) {\n configuration_ =\n com.google.protobuf.Any.newBuilder(configuration_).mergeFrom(value).buildPartial();\n } else {\n configuration_ = value;\n }\n onChanged();\n } else {\n configurationBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public Collection<Configuration> findAll() {\n\t\treturn this.configurationRepository.findAll();\n\t}",
"public CompositeConfiguration getConfiguration() {\n return _configuration;\n }",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }",
"public ArrayList<Configuration> confWithThisModel(String modelName){\n\n ArrayList<Configuration> thisConf = new ArrayList<>();\n\n for(Configuration conf : configurations)\n if(conf.getModel().getName().equals(modelName))\n thisConf.add(conf);\n\n return thisConf;\n }",
"public ConfigBuilder addConfig(Config config) {\n configs.add(new AsIsSource(config));\n return this;\n }",
"@Updatable\n public S3AccessControlListConfiguration getAccessControlListConfiguration() {\n return accessControlListConfiguration;\n }",
"public Configuration c() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configurationParameter.getConfiguration();\n }",
"@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/configurations\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<ConfigurationList, Configuration> listConfigurationForAllNamespaces();",
"public ListConfigurationForAllNamespaces pretty(String pretty) {\n put(\"pretty\", pretty);\n return this;\n }",
"public ConfigurationManagement getConfig() {\r\n\t\treturn config;\r\n\t}",
"public Configs getConfig() {\n boolean[] $jacocoInit = $jacocoInit();\n int defaultPerLineCount = Type.FOLLOW_STORE.getDefaultPerLineCount();\n Type type = Type.FOLLOW_STORE;\n $jacocoInit[1] = true;\n Configs configs = new Configs(this, defaultPerLineCount, type.isFixedPerLineCount());\n $jacocoInit[2] = true;\n return configs;\n }",
"public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }",
"public ComponentListConfig getConfig() {\n return CONFIG;\n }",
"public FileConfiguration getConfig () {\n if (fileConfiguration == null) {\n this.reloadConfig();\n }\n return fileConfiguration;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"public ApplicationDescription withConfigurationTemplates(String... configurationTemplates) {\n for (String value : configurationTemplates) {\n getConfigurationTemplates().add(value);\n }\n return this;\n }",
"public abstract Configuration configuration();",
"public List<ATNConfig> elements() { return configs; }",
"@SystemApi\n @NonNull\n public List<IkeConfigRequest> getConfigurationRequests() {\n return Collections.unmodifiableList(Arrays.asList(mConfigRequests));\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Bmv2Configuration configuration() {\n return configuration;\n }",
"@RequestMapping(value = \"/api/v1/device/config\", method = RequestMethod.POST, consumes = \"application/json\", produces = \"application/json\")\n\tpublic RestResponse configuration(@RequestBody DeviceConfigurationRequest request) {\n\t\tRestResponse response = new RestResponse();\n\n\t\ttry {\n\t\t\tAuthenticatedUser user = this.authenticate(request.getCredentials(), EnumRole.ROLE_USER);\n\n\t\t\tDeviceConfigurationResponse configurationResponse = new DeviceConfigurationResponse();\n\n\t\t\tArrayList<DeviceConfigurationCollection> deviceConfigurations = deviceRepository.getConfiguration(\n\t\t\t\t\t\t\tuser.getKey(), request.getDeviceKey());\n\n\t\t\tfor (int c = deviceConfigurations.size() - 1; c >= 0; c--) {\n\t\t\t\tfor (int i = deviceConfigurations.get(c).getConfigurations().size() - 1; i >= 0; i--) {\n\t\t\t\t\tif (deviceConfigurations.get(c).getConfigurations().get(i).getAcknowledgedOn() != null) {\n\t\t\t\t\t\tdeviceConfigurations.get(c).getConfigurations().remove(i);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (deviceConfigurations.get(c).getConfigurations().size() == 0) {\n\t\t\t\t\tdeviceConfigurations.remove(c);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconfigurationResponse.setDevices(deviceConfigurations);\n\n\t\t\treturn configurationResponse;\n\t\t} catch (Exception ex) {\n\t\t\tlogger.error(ex.getMessage(), ex);\n\n\t\t\tresponse.add(this.getError(ex));\n\t\t}\n\n\t\treturn response;\n\t}",
"@Override\n public ListConfigurationHistoryResult listConfigurationHistory(ListConfigurationHistoryRequest request) {\n request = beforeClientExecution(request);\n return executeListConfigurationHistory(request);\n }",
"public Builder clearConfiguration() {\n if (configurationBuilder_ == null) {\n configuration_ = null;\n onChanged();\n } else {\n configuration_ = null;\n configurationBuilder_ = null;\n }\n\n return this;\n }",
"protected Configuration getConfiguration() {\n return configuration;\n }",
"public ListNamespacedConfiguration watch(Boolean watch) {\n put(\"watch\", watch);\n return this;\n }",
"public static ConfigManager getConfiguration() {\n return configuration;\n }",
"public SlopeOneConfiguration getConfiguration() { return configuration; }",
"public Builder clearConfig() {\n if (configBuilder_ == null) {\n config_ = null;\n onChanged();\n } else {\n config_ = null;\n configBuilder_ = null;\n }\n\n return this;\n }",
"public PagedCallSettings.Builder<\n ListDatabasesRequest, ListDatabasesResponse, ListDatabasesPagedResponse>\n listDatabasesSettings() {\n return listDatabasesSettings;\n }",
"public Builder clearConfig() {\n bitField0_ = (bitField0_ & ~0x00000001);\n config_ = null;\n if (configBuilder_ != null) {\n configBuilder_.dispose();\n configBuilder_ = null;\n }\n onChanged();\n return this;\n }",
"protected T getConfigurationByCascading() {\n\t\t\n\t\tList<T> configurationObjectList = new ArrayList<T>();\n\t\t\n\t\t// Add the configuration objects in the order they should override \n\t\t// each other. Command line options override property file information\n\t\t// which in turn override any default configuration objects that may\n\t\t// have been given.\n\t\t//\n\t\tconfigurationObjectList.add (getConfigurationByCommandline());\n\t\tconfigurationObjectList.addAll (getConfigurationByProperties(this.propertyFile));\n\t\tconfigurationObjectList.addAll (configurationObjects);\n\t\t\n\t\tInvocationHandler handler = new ConfigurationByCascading<T>(configurationObjectList);\n\n\t\t@SuppressWarnings(\"unchecked\")\t\t\n\t\tT configuration = (T)\n\t\t\tjava.lang.reflect.Proxy.newProxyInstance(\n\t\t\t\tthis.configurationInterface.getClassLoader(),\n\t\t\t\tnew Class[] { this.configurationInterface },\n\t\t\t\thandler\n\t\t);\n\n\t\treturn configuration;\n\t}",
"public PagedCallSettings.Builder<\n ListCatalogsRequest, ListCatalogsResponse, ListCatalogsPagedResponse>\n listCatalogsSettings() {\n return listCatalogsSettings;\n }",
"java.util.concurrent.Future<DescribeConfigurationsResult> describeConfigurationsAsync(DescribeConfigurationsRequest describeConfigurationsRequest);",
"public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}",
"public Configuration withClassification(String classification) {\n this.classification = classification;\n return this;\n }",
"@NonNull\n\t\tConfig build();",
"protected Configuration getConfiguration(){\n return configuration;\n }",
"public ConfigProvider getConfig() {\n return config;\n }",
"public static ArrayList<ConfigurationItem> getAllConfigurationItems() {\n\t\tString path = CONFIGURATION;\n\t\tHttpResponse<String> response = sendRequest(path);\n\t\tif(response == null) return null;\n\t\tArrayList<ConfigurationItem> items = getConfigItems(response);\n\t\treturn items;\n\t}",
"protected Config getConfig () {\n return this.conf;\n }",
"public HealthConfigurationProperties withEnabled(boolean enabled) {\n this.enabled = enabled;\n return this;\n }",
"public ReportConfig getConfiguration() {\r\n return predecessor.getConfiguration();\r\n }",
"public ListNamespacedConfiguration pretty(String pretty) {\n put(\"pretty\", pretty);\n return this;\n }",
"public com.google.api.servicemanagement.v1.ConfigSource.Builder getConfigSourceBuilder() {\n \n onChanged();\n return getConfigSourceFieldBuilder().getBuilder();\n }",
"public ConfigCommon getConfig() {\n return config;\n }",
"public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();",
"public OriginRequestPolicyConfig withHeadersConfig(OriginRequestPolicyHeadersConfig headersConfig) {\n setHeadersConfig(headersConfig);\n return this;\n }",
"public Configuration getConfiguration() {\n\t\treturn theConfiguration;\n\t}",
"public SSLConfig build()\n {\n return new SSLConfig(\n isClient, verifyMode, this.caPath, this.certPath, this.keyPath);\n }",
"public List<ConfigurationHopital> getListeConfigDuColis() {\r\n\t\treturn configurations;\r\n\t}",
"public Configuration update(final Configuration configuration);",
"@Override\n public SmarterMap fetchConf() {\n SmarterMap result = new SmarterMap();\n\n List<File> files = new LinkedList<>();\n File conf = new File(path);\n if (conf.isDirectory()) {\n for (File f : conf.listFiles()) {\n if (f.getName().endsWith(\".json\") || f.getName().endsWith(\".yaml\") || f.getName().endsWith(\".yml\")) {\n files.add(f);\n }\n }\n } else {\n files.add(conf);\n }\n\n for (File f : files) {\n if (f.isFile()) {\n String confFileName = f.getName().replaceAll(\"\\\\.[^.]*$\", \"\");\n SmarterMap c = Fwissr.parseConfFile(f);\n mergeConf(result, c, confFileName.split(\"\\\\.\"), TOP_LEVEL_CONF_FILES.contains(confFileName));\n }\n }\n\n return result;\n }",
"public static Result appConfig() {\n ObjectNode response = Json.newObject();\n ObjectNode config = Json.newObject();\n\n config.put(\"appVersion\", APP_VERSION);\n config.put(\"isInternal\", IS_INTERNAL);\n config.put(\"shouldShowDatasetLineage\", WHZ_SHOW_LINEAGE);\n config.put(\"shouldShowDatasetHealth\", WHZ_SHOW_DS_HEALTH);\n config.put(\"suggestionConfidenceThreshold\", Integer.parseInt(WHZ_SUGGESTION_CONFIDENCE_THRESHOLD));\n config.set(\"wikiLinks\", wikiLinks());\n config.set(\"JitAclAccessWhitelist\", Json.toJson(StringUtils.split(JIT_ACL_WHITELIST, ',')));\n config.put(\"jitAclContact\", WHZ_LINKS__JIT_ACL_CONTACT);\n config.set(\"tracking\", trackingInfo());\n // In a staging environment, we can trigger this flag to be true so that the UI can handle based on\n // such config and alert users that their changes will not affect production data\n config.put(\"isStagingBanner\", WHZ_STG_BANNER);\n config.put(\"isLiveDataWarning\", WHZ_LIVE_DATA_BANNER);\n // Flag set in order to warn users that search is experiencing issues\n config.put(\"isStaleSearch\", WHZ_STALE_SEARCH_ALERT);\n\n // Insert properties for user profile operations\n config.set(\"userEntityProps\", userEntityProps());\n\n response.put(\"status\", \"ok\");\n response.set(\"config\", config);\n\n return ok(response);\n }",
"public FileConfiguration getConfiguration() {\n return configuration;\n }",
"public WriterConfig getConfig() {\n return mConfig;\n }",
"public static Configuration getConfiguration() {\n synchronized (Configuration.class) {\n return configuration;\n }\n }",
"public C getConfig()\n {\n return config;\n }",
"public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}",
"public com.google.protobuf.Any getConfiguration() {\n if (configurationBuilder_ == null) {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n } else {\n return configurationBuilder_.getMessage();\n }\n }",
"public Config getConfig() {\n return config;\n }",
"@Override\n\tpublic Configuration getConf() {\n\t\treturn this.Conf;\n\t}",
"public void setConfigurations() {\n configurations = jsonManager.getConfigurationsFromJson();\n }",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"public Builder clearConfig() {\n if (configBuilder_ == null) {\n if (converseRequestCase_ == 1) {\n converseRequestCase_ = 0;\n converseRequest_ = null;\n onChanged();\n }\n } else {\n if (converseRequestCase_ == 1) {\n converseRequestCase_ = 0;\n converseRequest_ = null;\n }\n configBuilder_.clear();\n }\n return this;\n }",
"public Builder mergeConfig(DerivedFeatureConfig value) {\n if (configBuilder_ == null) {\n if (config_ != null) {\n config_ =\n DerivedFeatureConfig.newBuilder(config_).mergeFrom(value).buildPartial();\n } else {\n config_ = value;\n }\n onChanged();\n } else {\n configBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"void applyConfiguration(Configuration configuration);",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public Set<Configuration> getConfigurations() {\n\t\treturn configurationToButtonMap.keySet();\n\t}",
"java.util.concurrent.Future<ListConfigurationsResult> listConfigurationsAsync(ListConfigurationsRequest listConfigurationsRequest,\n com.amazonaws.handlers.AsyncHandler<ListConfigurationsRequest, ListConfigurationsResult> asyncHandler);",
"ConfigurationEntity loadFullConfigurations() {\n\n\t\tConfigurationEntity config;\n\t\tconfig = getPartiallyLoadedConfigEntity();\n\t\tconfig.setCanvasLayout(getCanvasLayoutMatrix());\n\t\treturn config\n\t}",
"public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() {\n if (configurationBuilder_ != null) {\n return configurationBuilder_.getMessageOrBuilder();\n } else {\n return configuration_ == null ?\n com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }\n }",
"ConfigBlock getConfig();",
"public Builder setConfiguration(com.google.protobuf.Any value) {\n if (configurationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n configuration_ = value;\n onChanged();\n } else {\n configurationBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public ListConfigurationForAllNamespaces limit(Number limit) {\n put(\"limit\", limit);\n return this;\n }",
"public Config getConfig();",
"public FileConfiguration getSettings() {\r\n\t\treturn settings.getConfig();\r\n\t}",
"@NonNull\n private Builder addConfigRequest(IkeConfigAttribute configReq) {\n mConfigRequestList.add(configReq);\n return this;\n }",
"@HTTP(\n method = \"GET\",\n path = \"/apis/dapr.io/v1alpha1/configurations\"\n )\n @Headers({ \n \"Accept: */*\"\n })\n KubernetesListCall<ConfigurationList, Configuration> listConfigurationForAllNamespaces(\n @QueryMap ListConfigurationForAllNamespaces queryParameters);",
"public JSONObject handleListConfigs(MapReduceXml xml) {\n JSONObject retValue = new JSONObject();\n JSONArray configArray = new JSONArray();\n Set<String> names = xml.getConfigurationNames();\n for (String name : names) {\n String configXml = xml.getTemplateAsXmlString(name);\n ConfigurationTemplatePreprocessor preprocessor = \n new ConfigurationTemplatePreprocessor(configXml);\n configArray.put(preprocessor.toJson(name));\n }\n try {\n retValue.put(\"configs\", configArray);\n } catch (JSONException e) {\n throw new RuntimeException(\"Hard coded string is null\");\n }\n return retValue;\n }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"public String getConfiguration() {\n return configuration;\n }",
"public List<TemplatorConfig> getConfig() {\n return cfg;\n }",
"public Configuration getCfg() {\n return cfg;\n }"
] |
[
"0.5544438",
"0.54158425",
"0.53134096",
"0.5154693",
"0.5018703",
"0.500692",
"0.4972072",
"0.49581203",
"0.49578378",
"0.49577752",
"0.4942598",
"0.48684895",
"0.48478413",
"0.48275158",
"0.47650427",
"0.47251976",
"0.4722384",
"0.4702615",
"0.46775684",
"0.46754736",
"0.467534",
"0.46492943",
"0.4618571",
"0.46054065",
"0.4603899",
"0.45989317",
"0.45989317",
"0.45961106",
"0.45932755",
"0.4593014",
"0.45543095",
"0.45530552",
"0.45530552",
"0.45530552",
"0.45530552",
"0.45519975",
"0.45200527",
"0.45132658",
"0.45042595",
"0.449624",
"0.44946343",
"0.4492413",
"0.4467465",
"0.4467178",
"0.44583437",
"0.4455343",
"0.44483465",
"0.4436101",
"0.44168323",
"0.441539",
"0.44151205",
"0.4409978",
"0.44083363",
"0.43991938",
"0.43797386",
"0.43782234",
"0.43748352",
"0.43746623",
"0.4366852",
"0.43558478",
"0.4352771",
"0.43502605",
"0.4349009",
"0.43454406",
"0.43333247",
"0.4332373",
"0.43295825",
"0.4329243",
"0.43277606",
"0.43112692",
"0.4309134",
"0.4303007",
"0.43023285",
"0.42900705",
"0.4281757",
"0.42807373",
"0.42741957",
"0.4267797",
"0.4265638",
"0.4262225",
"0.42549077",
"0.42536327",
"0.4250772",
"0.42506242",
"0.42479602",
"0.42459336",
"0.42449337",
"0.4242652",
"0.4241223",
"0.42322057",
"0.42008638",
"0.41916424",
"0.4185585",
"0.41819966",
"0.4173297",
"0.41674656",
"0.4161124",
"0.41509464",
"0.41446784",
"0.4127358"
] |
0.6443741
|
0
|
A set of properties supplied to the Configuration object.
|
public java.util.Map<String,String> getProperties() {
if (properties == null) {
properties = new java.util.HashMap<String,String>();
}
return properties;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setConfiguration(Properties props);",
"void configure(Properties properties);",
"public void setupProperties() {\n // left empty for subclass to override\n }",
"private ConfigProperties getProperties() {\n return properties;\n }",
"Map<String, String> getConfigProperties();",
"Map<String, String> properties();",
"Map<String, String> properties();",
"@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }",
"public void setProperties(Properties properties);",
"public void setProperties(Properties setList);",
"Properties getProperties();",
"public Set<ConfigProperty> values() {\n return new HashSet<>(_properties.values());\n }",
"@Override\r\n\tpublic void setProperties(Properties properties) {\n\t\t\r\n\t}",
"@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}",
"public void configure(PropertiesGetter properties) {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}",
"public\n YutilProperties()\n {\n super(new Properties());\n }",
"StringMap getProperties();",
"CommonProperties getProperties();",
"public void setProperties(Properties properties)\n {\n this.properties = properties;\n }",
"public Properties getProperties() { return props; }",
"public Map getProperties();",
"public Set getPropertyNames(){\n return this.vendorSpecificProperties;\n }",
"Map<String, Object> properties();",
"public String[] getProperties() \n {\n String[] props = {\"discussionSearch.subject\", \"discussionSearch.content\"}; \n return props;\n }",
"public void setProperties(Map<String, List<String>> properties) {\n\t\tthis.properties = properties;\n\t}",
"public void setProperties(Properties properties) {\n this.properties=properties;\n }",
"public abstract Properties getProperties();",
"public DefaultProperties() {\n\t\t// Festlegung der Werte für Admin-Zugang\n\t\tthis.setProperty(\"admin.username\", \"admin\");\n\t\tthis.setProperty(\"admin.password\", \"password\");\n\t\tthis.setProperty(\"management.port\", \"8443\");\n\n\t\t// Festlegung der Werte für CouchDB-Verbindung\n\t\tthis.setProperty(\"couchdb.adress\", \"http://localhost\");\n\t\tthis.setProperty(\"couchdb.port\", \"5984\");\n\t\tthis.setProperty(\"couchdb.databaseName\", \"profiles\");\n\n\t\t// Festlegung der Werte für Zeitvergleiche\n\t\tthis.setProperty(\"server.minTimeDifference\", \"5\");\n\t\tthis.setProperty(\"server.monthsBeforeDeletion\", \"18\");\n\t}",
"public void setProperties(Map properties);",
"Map<String, String> getProperties();",
"Map<String, String> getProperties();",
"EProperties getProperties();",
"public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }",
"public abstract AbstractProperties getProperties();",
"@Override\r\n\tpublic void setProperties(Properties arg0) {\n\r\n\t}",
"public Properties getProperties();",
"protected java.util.Map getProperties() {\n return properties;\n }",
"public Set<ProductSectionProperty> getProperties() {\n return properties;\n }",
"public void setProperties(Properties properties) {\n\t\tthis.properties = properties;\n\t}",
"public Map<String, String> getProperties() {\n return properties;\n }",
"@Override\n public void initialize(Map<String, String> propertyValues) {\n // Set the configurable properties\n properties.setValues(propertyValues);\n }",
"public Map<String, Property> getProperties()\n {\n return properties;\n }",
"public static void configure(Properties properties) {\r\n configure(properties, true);\r\n }",
"public Properties getProperties() {\n return properties;\n }",
"public Map<String, String> properties() {\n return this.properties;\n }",
"java.lang.String getProperties();",
"@Override\n public List<Property> getConfigurationProperties() {\n List<Property> configProperties = new ArrayList<>();\n\n Property apiKey = new Property();\n apiKey.setName(Token2Constants.APIKEY);\n apiKey.setDisplayName(\"Api Key\");\n apiKey.setRequired(true);\n apiKey.setDescription(\"Enter Token2 API Key value\");\n apiKey.setDisplayOrder(1);\n configProperties.add(apiKey);\n\n Property callbackUrl = new Property();\n callbackUrl.setDisplayName(\"Callback URL\");\n callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);\n callbackUrl.setDescription(\"Enter value corresponding to callback url.\");\n callbackUrl.setDisplayOrder(2);\n configProperties.add(callbackUrl);\n return configProperties;\n }",
"public void setProperties(final ConfigProperties properties) {\n this.properties = properties;\n }",
"protected void setProperties(P[] properties) {\n\t\tthis.properties = properties;\n\t}",
"public Iterator<String> getUserDefinedProperties();",
"@Override\n\tpublic void setProperties(Properties properties) {\n\t\tsuper.setProperties(properties);\n\t}",
"public Set<String> stringPropertyNames() {\n return userConfig.stringPropertyNames();\n }",
"public WebIceProperties getProperties()\n\t{\n\t\treturn config;\n\t}",
"public Properties getProperties() {\n return properties;\n }",
"public Properties getProperties() {\n return this.serverProperties;\n }",
"public Map<String, String> getProperties() {\n return properties;\n }",
"public Map<String, String> getProperties() {\n return properties;\n }",
"AccountProperties properties();",
"public LinkedHashMap<String, LinkedHashSet<String>> getRequestedProperties()\n\t{\n\t\treturn requestedProperties;\n\t}",
"public Collection<ModuleProperty> getProperties();",
"public Set<Pp> getProperties() {\n return properties;\n }",
"public void setParameters(Properties props) {\n\n\t}",
"@ApiModelProperty(example = \"null\", value = \"The properties of the reporting task.\")\n public Map<String, String> getProperties() {\n return properties;\n }",
"public void setProperties(Map<String, Object> properties) {\n this.properties = properties;\n }",
"public Set<Property> getProperties() {\r\n\t\treturn properties;\r\n\t}",
"public void setProperties(Map<String, String> properties) {\n this.properties = properties;\n }",
"protected Map<String, Object> getConfigurationParameters(){\n\t\treturn configurationParameters;\n\t}",
"public void setProperties(String prefix, Properties setList);",
"@Override\n public void addConfigurationProperties(Properties properties) {\n this.properties.putAll(properties);\n\n suppressDate = StringUtility.isTrue(properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_DATE));\n\n suppressAllComments = StringUtility.isTrue(properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_ALL_COMMENTS));\n\n }",
"Property[] getProperties();",
"public Properties getProperties() {\n \tProperties p = new Properties(); \n if (charSet != null) {\n \t p.put(\"charSet\",charSet);\n } \n\t\n\tif (user != null) {\n \t p.put(\"user\", user);\n }\n\t\n\tif (password != null) {\n \t p.put(\"password\", password);\n }\n\t\n\tif (url != null){\n\t p.put(\"url\",url);\t\n\t}\t\n\tp.put(\"loginTimeout\",\"\"+loginTimeout);\n \treturn p; \n }",
"public void setProperties(Map<String, String> properties) {\n\t\tthis.properties = properties;\n\t}",
"public Set<ConfigListDTO> getListProperties() {\n \t\treturn new HashSet<ConfigListDTO>(listProperties.values());\n \t}",
"public Properties getProperties()\n {\n return this.properties;\n }",
"public org.LexGrid.commonTypes.Properties getProperties() {\n return properties;\n }",
"public Config(Properties props) {\n entries = (Properties)props.clone();\n }",
"public static void properties(final Swagger2Properties theProperties) {\n if (properties == null) {\n properties = theProperties;\n }\n else {\n throw new RuntimeException(\n \"The properties this class has already been configured. Subsequent configuration of this class is not allowed.\"\n );\n }\n }",
"public Map<String, String> getAllProperties()\n {\n return _propertyEntries;\n }",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"public void setProperties(org.LexGrid.commonTypes.Properties properties) {\n this.properties = properties;\n }",
"PropertiesTask setProperties( Properties properties );",
"public PropertiesHandler(final Configuration aConfig) {\n super(aConfig);\n }",
"@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}",
"public interface Configurable {\n\n void configure(Properties properties);\n}",
"List<? extends T> getProperties();",
"@SuppressWarnings(\"deprecation\")\n private void dumpConfiguration(Properties props) {\n PropertiesUtil.serialize(props, \"deprecatedParam\", deprecatedParam);\n PropertiesUtil.serialize(props, \"deprecatedParam2\", deprecatedParam2);\n PropertiesUtil.serialize(props, \"deprecatedParamWithDefaultConstant\", deprecatedParamWithDefaultConstant);\n PropertiesUtil.serialize(props, \"deprecatedParamWithDefaultEvaluate\", deprecatedParamWithDefaultEvaluate);\n PropertiesUtil.serialize(props, \"deprecatedArray\", deprecatedArray);\n PropertiesUtil.serialize(props, \"deprecatedArrayWithDefaults\", deprecatedArrayWithDefaults);\n PropertiesUtil.serialize(props, \"deprecatedProperties\", deprecatedProperties);\n PropertiesUtil.serialize(props, \"deprecatedList\", deprecatedList);\n PropertiesUtil.serialize(props, \"deprecatedListWithDefaults\", deprecatedListWithDefaults);\n PropertiesUtil.serialize(props, \"deprecatedMap\", deprecatedMap);\n }",
"public void setProperties(Map<String, Object> properties) {\n\t\tthis.properties = properties;\n\t}",
"@Override\n\tpublic Properties getOptions() {\n\t\treturn options;\n\t}",
"public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }",
"private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }",
"public void setProperties(java.util.Map<String,String> properties) {\n this.properties = properties;\n }",
"public Map<String, String> getProperties() {\n\t\treturn this.properties;\n\t}",
"@ApiModelProperty(value = \"The customized properties that are present\")\n public List<PropertyDefinitionResource> getProperties() {\n return properties;\n }",
"static Properties getConfig()\n {\n return(config);\n }",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"public\n YutilProperties(YutilProperties argprops)\n {\n super(new Properties());\n setPropertiesDefaults(argprops);\n }",
"public Properties getProperties() {\n\t\treturn this.properties;\n\t}",
"ProductProperties productProperties();",
"public Properties() {\n\n\t\tconfig = new java.util.Properties();\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(new File(\n\t\t\t\t\t\"ConfigurationFile.txt\"));\n\t\t\tconfig.load(input);\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}"
] |
[
"0.6950982",
"0.65518737",
"0.650045",
"0.65001315",
"0.6473369",
"0.6336818",
"0.6336818",
"0.633307",
"0.6301891",
"0.6267658",
"0.6226958",
"0.61838794",
"0.61831087",
"0.6169454",
"0.61667144",
"0.6139597",
"0.61351",
"0.6058179",
"0.6039803",
"0.6019692",
"0.6007879",
"0.6006252",
"0.60061723",
"0.6002364",
"0.5989791",
"0.5980711",
"0.5943459",
"0.59329206",
"0.5926473",
"0.5919177",
"0.58986795",
"0.58986795",
"0.58770156",
"0.5862895",
"0.585071",
"0.5850017",
"0.58375823",
"0.5825319",
"0.5823704",
"0.5822332",
"0.5822149",
"0.5800389",
"0.57918674",
"0.5791313",
"0.57899487",
"0.5786747",
"0.57760537",
"0.57729447",
"0.5772356",
"0.5759544",
"0.5746462",
"0.5744548",
"0.5737497",
"0.5734127",
"0.5732244",
"0.5725378",
"0.5724748",
"0.5724748",
"0.5716821",
"0.5704589",
"0.5702516",
"0.5702214",
"0.5698884",
"0.56855094",
"0.5680213",
"0.5676768",
"0.5674915",
"0.56729317",
"0.56713927",
"0.5671322",
"0.5669868",
"0.5661201",
"0.565922",
"0.56409466",
"0.56400514",
"0.5634347",
"0.5632558",
"0.5621075",
"0.56191206",
"0.56189334",
"0.56169766",
"0.5590309",
"0.55833",
"0.5570527",
"0.5565651",
"0.556096",
"0.55606824",
"0.55543464",
"0.55506146",
"0.5550484",
"0.5546816",
"0.5540351",
"0.553721",
"0.55321705",
"0.5532067",
"0.55255395",
"0.55255395",
"0.551412",
"0.55096406",
"0.5503884",
"0.54961926"
] |
0.0
|
-1
|
A set of properties supplied to the Configuration object.
|
public void setProperties(java.util.Map<String,String> properties) {
this.properties = properties;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setConfiguration(Properties props);",
"void configure(Properties properties);",
"private ConfigProperties getProperties() {\n return properties;\n }",
"public void setupProperties() {\n // left empty for subclass to override\n }",
"Map<String, String> getConfigProperties();",
"Map<String, String> properties();",
"Map<String, String> properties();",
"@Override\n public ConfigurablePropertyMap getProperties() {\n return properties;\n }",
"public void setProperties(Properties properties);",
"public void setProperties(Properties setList);",
"Properties getProperties();",
"public Set<ConfigProperty> values() {\n return new HashSet<>(_properties.values());\n }",
"@Override\r\n\tpublic void setProperties(Properties properties) {\n\t\t\r\n\t}",
"@Override\n\tpublic void setProperties(Properties p) {\n\t\t\n\t}",
"public void configure(PropertiesGetter properties) {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"@Override\r\n\tpublic void setProperties(Properties properties) \r\n\t{\n\t}",
"public\n YutilProperties()\n {\n super(new Properties());\n }",
"StringMap getProperties();",
"CommonProperties getProperties();",
"public void setProperties(Properties properties)\n {\n this.properties = properties;\n }",
"public Properties getProperties() { return props; }",
"public Map getProperties();",
"public Set getPropertyNames(){\n return this.vendorSpecificProperties;\n }",
"Map<String, Object> properties();",
"public String[] getProperties() \n {\n String[] props = {\"discussionSearch.subject\", \"discussionSearch.content\"}; \n return props;\n }",
"public void setProperties(Map<String, List<String>> properties) {\n\t\tthis.properties = properties;\n\t}",
"public void setProperties(Properties properties) {\n this.properties=properties;\n }",
"public abstract Properties getProperties();",
"public DefaultProperties() {\n\t\t// Festlegung der Werte für Admin-Zugang\n\t\tthis.setProperty(\"admin.username\", \"admin\");\n\t\tthis.setProperty(\"admin.password\", \"password\");\n\t\tthis.setProperty(\"management.port\", \"8443\");\n\n\t\t// Festlegung der Werte für CouchDB-Verbindung\n\t\tthis.setProperty(\"couchdb.adress\", \"http://localhost\");\n\t\tthis.setProperty(\"couchdb.port\", \"5984\");\n\t\tthis.setProperty(\"couchdb.databaseName\", \"profiles\");\n\n\t\t// Festlegung der Werte für Zeitvergleiche\n\t\tthis.setProperty(\"server.minTimeDifference\", \"5\");\n\t\tthis.setProperty(\"server.monthsBeforeDeletion\", \"18\");\n\t}",
"public void setProperties(Map properties);",
"Map<String, String> getProperties();",
"Map<String, String> getProperties();",
"EProperties getProperties();",
"public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }",
"public abstract AbstractProperties getProperties();",
"@Override\r\n\tpublic void setProperties(Properties arg0) {\n\r\n\t}",
"public Properties getProperties();",
"protected java.util.Map getProperties() {\n return properties;\n }",
"public Set<ProductSectionProperty> getProperties() {\n return properties;\n }",
"public Map<String, String> getProperties() {\n return properties;\n }",
"public void setProperties(Properties properties) {\n\t\tthis.properties = properties;\n\t}",
"@Override\n public void initialize(Map<String, String> propertyValues) {\n // Set the configurable properties\n properties.setValues(propertyValues);\n }",
"public Map<String, Property> getProperties()\n {\n return properties;\n }",
"public static void configure(Properties properties) {\r\n configure(properties, true);\r\n }",
"public Properties getProperties() {\n return properties;\n }",
"public Map<String, String> properties() {\n return this.properties;\n }",
"@Override\n public List<Property> getConfigurationProperties() {\n List<Property> configProperties = new ArrayList<>();\n\n Property apiKey = new Property();\n apiKey.setName(Token2Constants.APIKEY);\n apiKey.setDisplayName(\"Api Key\");\n apiKey.setRequired(true);\n apiKey.setDescription(\"Enter Token2 API Key value\");\n apiKey.setDisplayOrder(1);\n configProperties.add(apiKey);\n\n Property callbackUrl = new Property();\n callbackUrl.setDisplayName(\"Callback URL\");\n callbackUrl.setName(IdentityApplicationConstants.OAuth2.CALLBACK_URL);\n callbackUrl.setDescription(\"Enter value corresponding to callback url.\");\n callbackUrl.setDisplayOrder(2);\n configProperties.add(callbackUrl);\n return configProperties;\n }",
"java.lang.String getProperties();",
"public void setProperties(final ConfigProperties properties) {\n this.properties = properties;\n }",
"protected void setProperties(P[] properties) {\n\t\tthis.properties = properties;\n\t}",
"public Iterator<String> getUserDefinedProperties();",
"@Override\n\tpublic void setProperties(Properties properties) {\n\t\tsuper.setProperties(properties);\n\t}",
"public Set<String> stringPropertyNames() {\n return userConfig.stringPropertyNames();\n }",
"public WebIceProperties getProperties()\n\t{\n\t\treturn config;\n\t}",
"public Properties getProperties() {\n return properties;\n }",
"public Properties getProperties() {\n return this.serverProperties;\n }",
"public Map<String, String> getProperties() {\n return properties;\n }",
"public Map<String, String> getProperties() {\n return properties;\n }",
"AccountProperties properties();",
"public LinkedHashMap<String, LinkedHashSet<String>> getRequestedProperties()\n\t{\n\t\treturn requestedProperties;\n\t}",
"public Collection<ModuleProperty> getProperties();",
"public Set<Pp> getProperties() {\n return properties;\n }",
"public void setParameters(Properties props) {\n\n\t}",
"@ApiModelProperty(example = \"null\", value = \"The properties of the reporting task.\")\n public Map<String, String> getProperties() {\n return properties;\n }",
"public void setProperties(Map<String, Object> properties) {\n this.properties = properties;\n }",
"public Set<Property> getProperties() {\r\n\t\treturn properties;\r\n\t}",
"protected Map<String, Object> getConfigurationParameters(){\n\t\treturn configurationParameters;\n\t}",
"public void setProperties(Map<String, String> properties) {\n this.properties = properties;\n }",
"@Override\n public void addConfigurationProperties(Properties properties) {\n this.properties.putAll(properties);\n\n suppressDate = StringUtility.isTrue(properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_DATE));\n\n suppressAllComments = StringUtility.isTrue(properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_ALL_COMMENTS));\n\n }",
"public void setProperties(String prefix, Properties setList);",
"Property[] getProperties();",
"public Properties getProperties() {\n \tProperties p = new Properties(); \n if (charSet != null) {\n \t p.put(\"charSet\",charSet);\n } \n\t\n\tif (user != null) {\n \t p.put(\"user\", user);\n }\n\t\n\tif (password != null) {\n \t p.put(\"password\", password);\n }\n\t\n\tif (url != null){\n\t p.put(\"url\",url);\t\n\t}\t\n\tp.put(\"loginTimeout\",\"\"+loginTimeout);\n \treturn p; \n }",
"public void setProperties(Map<String, String> properties) {\n\t\tthis.properties = properties;\n\t}",
"public Set<ConfigListDTO> getListProperties() {\n \t\treturn new HashSet<ConfigListDTO>(listProperties.values());\n \t}",
"public Properties getProperties()\n {\n return this.properties;\n }",
"public Config(Properties props) {\n entries = (Properties)props.clone();\n }",
"public org.LexGrid.commonTypes.Properties getProperties() {\n return properties;\n }",
"public static void properties(final Swagger2Properties theProperties) {\n if (properties == null) {\n properties = theProperties;\n }\n else {\n throw new RuntimeException(\n \"The properties this class has already been configured. Subsequent configuration of this class is not allowed.\"\n );\n }\n }",
"public Map<String, String> getAllProperties()\n {\n return _propertyEntries;\n }",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"public void setProperties(org.LexGrid.commonTypes.Properties properties) {\n this.properties = properties;\n }",
"PropertiesTask setProperties( Properties properties );",
"public PropertiesHandler(final Configuration aConfig) {\n super(aConfig);\n }",
"@Override\r\n\tpublic void setProperty(Properties prop) {\n\t}",
"public interface Configurable {\n\n void configure(Properties properties);\n}",
"@SuppressWarnings(\"deprecation\")\n private void dumpConfiguration(Properties props) {\n PropertiesUtil.serialize(props, \"deprecatedParam\", deprecatedParam);\n PropertiesUtil.serialize(props, \"deprecatedParam2\", deprecatedParam2);\n PropertiesUtil.serialize(props, \"deprecatedParamWithDefaultConstant\", deprecatedParamWithDefaultConstant);\n PropertiesUtil.serialize(props, \"deprecatedParamWithDefaultEvaluate\", deprecatedParamWithDefaultEvaluate);\n PropertiesUtil.serialize(props, \"deprecatedArray\", deprecatedArray);\n PropertiesUtil.serialize(props, \"deprecatedArrayWithDefaults\", deprecatedArrayWithDefaults);\n PropertiesUtil.serialize(props, \"deprecatedProperties\", deprecatedProperties);\n PropertiesUtil.serialize(props, \"deprecatedList\", deprecatedList);\n PropertiesUtil.serialize(props, \"deprecatedListWithDefaults\", deprecatedListWithDefaults);\n PropertiesUtil.serialize(props, \"deprecatedMap\", deprecatedMap);\n }",
"List<? extends T> getProperties();",
"public void setProperties(Map<String, Object> properties) {\n\t\tthis.properties = properties;\n\t}",
"public void getConfigProperty() {\n Properties properties = new Properties();\n try(InputStream input = new FileInputStream(\"config.properties\");){\n properties.load(input);\n logger.info(\"BASE URL :\" + properties.getProperty(\"BASEURL\"));\n setBaseUrl(properties.getProperty(\"BASEURL\"));\n setLoginMode(properties.getProperty(\"LOGINMODE\"));\n setProjectId(properties.getProperty(\"PROJECTID\"));\n setReportId(properties.getProperty(\"REPORTID\"));\n if (!(properties.getProperty(\"PASSWORD\").trim().equals(\"\"))) {\n setPassword(properties.getProperty(\"PASSWORD\"));\n }\n if (!(properties.getProperty(\"USERNAME\").trim().equals(\"\"))) {\n setUserName(properties.getProperty(\"USERNAME\"));\n }\n }catch(IOException ex) {\n logger.debug(\"Failed to fetch value from configure file: \", ex);\n }\n\n }",
"@Override\n\tpublic Properties getOptions() {\n\t\treturn options;\n\t}",
"private void logProperties() {\n log.info(\"externalPropertiesConfiguration::whoAmI = {}\", this.externalPropertiesConfiguration.getWhoAmI());\n log.info(\"externalPropertiesConfiguration::propertyOne = {}\", this.externalPropertiesConfiguration.getPropertyOne());\n log.info(\"externalPropertiesConfiguration::propertyTwo = {}\", this.externalPropertiesConfiguration.getPropertyTwo());\n log.info(\"externalPropertiesConfiguration::propertyThree = {}\", this.externalPropertiesConfiguration.getPropertyThree());\n log.info(\"externalPropertiesConfiguration::propertyFour = {}\", this.externalPropertiesConfiguration.getPropertyFour());\n\n log.info(\"anotherPropertiesConfiguration::whoAmI = {}\", this.anotherPropertiesConfiguration.getWhoAmI());\n log.info(\"anotherPropertiesConfiguration::propertyOne = {}\", this.anotherPropertiesConfiguration.getPropertyOne());\n log.info(\"anotherPropertiesConfiguration::propertyTwo = {}\", this.anotherPropertiesConfiguration.getPropertyTwo());\n log.info(\"anotherPropertiesConfiguration::propertyThree = {}\", this.anotherPropertiesConfiguration.getPropertyThree());\n log.info(\"anotherPropertiesConfiguration::propertyFour = {}\", this.anotherPropertiesConfiguration.getPropertyFour());\n }",
"public Map<String, String> getProperties() {\n\t\treturn this.properties;\n\t}",
"static Properties getConfig()\n {\n return(config);\n }",
"@ApiModelProperty(value = \"The customized properties that are present\")\n public List<PropertyDefinitionResource> getProperties() {\n return properties;\n }",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"public Map<String, Object> getProperties() {\n return properties;\n }",
"public\n YutilProperties(YutilProperties argprops)\n {\n super(new Properties());\n setPropertiesDefaults(argprops);\n }",
"public Properties getProperties() {\n\t\treturn this.properties;\n\t}",
"ProductProperties productProperties();",
"public Properties() {\n\n\t\tconfig = new java.util.Properties();\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(new File(\n\t\t\t\t\t\"ConfigurationFile.txt\"));\n\t\t\tconfig.load(input);\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}"
] |
[
"0.6950846",
"0.6551004",
"0.6498897",
"0.6497395",
"0.6474064",
"0.63359386",
"0.63359386",
"0.63314354",
"0.6299664",
"0.6265981",
"0.6224568",
"0.6183617",
"0.6180646",
"0.6167284",
"0.6165704",
"0.613717",
"0.6134344",
"0.6056478",
"0.60384876",
"0.6017566",
"0.60056084",
"0.6004972",
"0.6004024",
"0.6001341",
"0.5988975",
"0.5979725",
"0.59413546",
"0.5930762",
"0.5925574",
"0.5917593",
"0.58973366",
"0.58973366",
"0.5874535",
"0.5860597",
"0.5848601",
"0.5848172",
"0.5835625",
"0.5823352",
"0.5821692",
"0.5820819",
"0.58203095",
"0.58003366",
"0.57905215",
"0.5790205",
"0.57878405",
"0.5785504",
"0.5774017",
"0.5773891",
"0.5772084",
"0.57578355",
"0.57454115",
"0.5741991",
"0.5736758",
"0.5733383",
"0.5730223",
"0.57238495",
"0.5723524",
"0.5723524",
"0.5715542",
"0.57034475",
"0.57003677",
"0.5700353",
"0.5697702",
"0.56833315",
"0.5678524",
"0.5674694",
"0.56738704",
"0.5673397",
"0.56711036",
"0.56709313",
"0.5667981",
"0.56603545",
"0.5657753",
"0.5640576",
"0.5637859",
"0.5632973",
"0.56326395",
"0.56194127",
"0.56182414",
"0.56174827",
"0.5615422",
"0.5587534",
"0.55843276",
"0.5567951",
"0.55659455",
"0.55611223",
"0.55591834",
"0.55527395",
"0.5550297",
"0.5549683",
"0.5545687",
"0.55357826",
"0.5532195",
"0.5530779",
"0.5524189",
"0.5524189",
"0.55138916",
"0.5507556",
"0.55008507",
"0.5495921"
] |
0.5538884
|
91
|
A set of properties supplied to the Configuration object. Returns a reference to this object so that method calls can be chained together.
|
public Configuration withProperties(java.util.Map<String,String> properties) {
setProperties(properties);
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Configuration withConfigurations(java.util.Collection<Configuration> configurations) {\n if (configurations == null) {\n this.configurations = null;\n } else {\n com.amazonaws.internal.ListWithAutoConstructFlag<Configuration> configurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>(configurations.size());\n configurationsCopy.addAll(configurations);\n this.configurations = configurationsCopy;\n }\n\n return this;\n }",
"public com.google.protobuf.Any.Builder getConfigurationBuilder() {\n \n onChanged();\n return getConfigurationFieldBuilder().getBuilder();\n }",
"public C build() {\n if (configs.isEmpty()) {\n throw new RuntimeException(\"There should be at least one configuration provided\");\n }\n\n // Handling config files\n ConfigSource firstConfigSource = configs.get(0);\n Config firstConfigOrig = getConfigSupplier(firstConfigSource).getConfig();\n if (!(supportedConfig.isInstance(firstConfigOrig))) {\n throw new RuntimeException(\n String.format(\n \"Config is not of parameterized type %s, got instead %s\",\n supportedConfig.getName(), firstConfigOrig.getClass().getName()));\n }\n C firstConfig = (C) firstConfigOrig;\n for (int i = 1; i < configs.size(); ++i) {\n ConfigSource nextConfigSource = configs.get(i);\n Config nextConfig = getConfigSupplier(nextConfigSource).getConfig();\n try {\n firstConfig = copyProperties(firstConfig, nextConfig);\n } catch (Exception ex) {\n throw new RuntimeException(\n String.format(\"Failed to merge config %s into main config\", nextConfigSource), ex);\n }\n }\n\n // Handling string pathValue pairs config overrides\n for (Pair<String, Object> pathValue : pathValueOverrides) {\n try {\n PropertyUtils.setNestedProperty(firstConfig, pathValue.getValue0(), pathValue.getValue1());\n } catch (Exception e) {\n throw new RuntimeException(\n String.format(\n \"Cannot override property %s with value %s\",\n pathValue.getValue0(), pathValue.getValue1()),\n e);\n }\n }\n\n return firstConfig;\n }",
"public abstract Configuration configuration();",
"public Configuration getConfiguration() {\n return configurationParameter.getConfiguration();\n }",
"protected Configuration getConfiguration(){\n return configuration;\n }",
"protected Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration c() {\n return configuration;\n }",
"public ConfigurationHolder getConfiguration() {\n return this.cfg;\n }",
"public HealthConfigurationProperties withEnabled(boolean enabled) {\n this.enabled = enabled;\n return this;\n }",
"public Builder clearConfiguration() {\n if (configurationBuilder_ == null) {\n configuration_ = null;\n onChanged();\n } else {\n configuration_ = null;\n configurationBuilder_ = null;\n }\n\n return this;\n }",
"public com.google.assistant.embedded.v1alpha1.ConverseConfig.Builder getConfigBuilder() {\n return getConfigFieldBuilder().getBuilder();\n }",
"public Builder mergeConfiguration(com.google.protobuf.Any value) {\n if (configurationBuilder_ == null) {\n if (configuration_ != null) {\n configuration_ =\n com.google.protobuf.Any.newBuilder(configuration_).mergeFrom(value).buildPartial();\n } else {\n configuration_ = value;\n }\n onChanged();\n } else {\n configurationBuilder_.mergeFrom(value);\n }\n\n return this;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public Configuration getConfiguration() {\n return configuration;\n }",
"public CompositeConfiguration getConfiguration() {\n return _configuration;\n }",
"public SetTypeConfigurationRequest withConfiguration(String configuration) {\n setConfiguration(configuration);\n return this;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"public Configuration getConfiguration() {\n return config;\n }",
"private Configuration getConfig() {\n final Configuration config = new Configuration();\n for (final Field field : getClass().getDeclaredFields()) {\n try {\n final Field configField = Configuration.class.getDeclaredField(field.getName());\n field.setAccessible(true);\n configField.setAccessible(true);\n\n final Object value = field.get(this);\n if (value != null) {\n configField.set(config, value);\n getLog().debug(\"using \" + field.getName() + \" = \" + value);\n }\n } catch (final NoSuchFieldException nsfe) {\n // ignored\n } catch (final Exception e) {\n getLog().warn(\"can't initialize attribute \" + field.getName());\n }\n\n }\n if (containerProperties != null) {\n final Properties props = new Properties();\n props.putAll(containerProperties);\n config.setProperties(props);\n }\n if (forceJspDevelopment) {\n if (config.getProperties() == null) {\n config.setProperties(new Properties());\n }\n config.getProperties().put(\"tomee.jsp-development\", \"true\");\n }\n return config;\n }",
"public io.dstore.values.BooleanValue.Builder getImportConfigurationBuilder() {\n \n onChanged();\n return getImportConfigurationFieldBuilder().getBuilder();\n }",
"public FileFormatConfiguration withJsonConfiguration(JsonConfiguration jsonConfiguration) {\n setJsonConfiguration(jsonConfiguration);\n return this;\n }",
"public SSLConfig build()\n {\n return new SSLConfig(\n isClient, verifyMode, this.caPath, this.certPath, this.keyPath);\n }",
"public UpdateGatewayCapabilityConfigurationRequest withCapabilityConfiguration(String capabilityConfiguration) {\n setCapabilityConfiguration(capabilityConfiguration);\n return this;\n }",
"public DerivedFeatureConfig.Builder getConfigBuilder() {\n \n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public SlopeOneConfiguration getConfiguration() { return configuration; }",
"public Configuration getConfiguration() {\n\t\treturn theConfiguration;\n\t}",
"public Bmv2Configuration configuration() {\n return configuration;\n }",
"public Configuration withClassification(String classification) {\n this.classification = classification;\n return this;\n }",
"protected final Configuration getConfiguration()\n {\n return mConfiguration;\n }",
"public LocalConfiguration getConfiguration() {\n return configuration;\n }",
"public Builder setConfiguration(com.google.protobuf.Any value) {\n if (configurationBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n configuration_ = value;\n onChanged();\n } else {\n configurationBuilder_.setMessage(value);\n }\n\n return this;\n }",
"public com.google.privacy.dlp.v2.StoredInfoTypeConfig.Builder getConfigBuilder() {\n bitField0_ |= 0x00000001;\n onChanged();\n return getConfigFieldBuilder().getBuilder();\n }",
"public ServicesProperties withAuthenticationConfiguration(ServiceAuthenticationConfigurationInfo authenticationConfiguration) {\n this.authenticationConfiguration = authenticationConfiguration;\n return this;\n }",
"public Builder clearConfig() {\n bitField0_ = (bitField0_ & ~0x00000001);\n config_ = null;\n if (configBuilder_ != null) {\n configBuilder_.dispose();\n configBuilder_ = null;\n }\n onChanged();\n return this;\n }",
"protected Config getConfig () {\n return this.conf;\n }",
"protected Configuration getConfiguration() {\n return variable.getConfiguration();\n }",
"public static Configuration getConfiguration() {\r\n\t\treturn config;\r\n\t}",
"public ConfigurationManagement getConfig() {\r\n\t\treturn config;\r\n\t}",
"public Properties init() {\n // init nested properties starting from the bottom ones\n initProperties();\n initLayout();\n return this;\n }",
"@NonNull\n\t\tConfig build();",
"public ReportConfig getConfiguration() {\r\n return predecessor.getConfiguration();\r\n }",
"public HealthConfigurationProperties withContextEnabled(boolean contextEnabled) {\n this.contextEnabled = contextEnabled;\n return this;\n }",
"public Builder userConfig(UserConfig userConfig) {\n _userConfig = userConfig;\n return this;\n }",
"public Configuration update(final Configuration configuration);",
"public SetTypeConfigurationRequest withConfigurationAlias(String configurationAlias) {\n setConfigurationAlias(configurationAlias);\n return this;\n }",
"public static Configuration getConfiguration() {\n synchronized (Configuration.class) {\n return configuration;\n }\n }",
"public IotdmSimpleConfig build() {\n return new IotdmSimpleConfig(this.builder.build());\n }",
"public FileConfiguration getConfig () {\n if (fileConfiguration == null) {\n this.reloadConfig();\n }\n return fileConfiguration;\n }",
"public com.google.api.servicemanagement.v1.ConfigSource.Builder getConfigSourceBuilder() {\n \n onChanged();\n return getConfigSourceFieldBuilder().getBuilder();\n }",
"public Builder clearConfig() {\n if (configBuilder_ == null) {\n config_ = null;\n onChanged();\n } else {\n config_ = null;\n configBuilder_ = null;\n }\n\n return this;\n }",
"@Override\n\tpublic Configuration getConf() {\n\t\treturn this.Conf;\n\t}",
"public com.google.protobuf.Any getConfiguration() {\n if (configurationBuilder_ == null) {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n } else {\n return configurationBuilder_.getMessage();\n }\n }",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"Configuration getConfiguration();",
"public Configs getConfig() {\n boolean[] $jacocoInit = $jacocoInit();\n int defaultPerLineCount = Type.FOLLOW_STORE.getDefaultPerLineCount();\n Type type = Type.FOLLOW_STORE;\n $jacocoInit[1] = true;\n Configs configs = new Configs(this, defaultPerLineCount, type.isFixedPerLineCount());\n $jacocoInit[2] = true;\n return configs;\n }",
"@Nonnull\n public ShipConfiguration build() {\n return new ShipConfiguration(\n radius, movementSpeed, acceleration, traverseSpeed, hitPoints, engines, thrusters, sensors,\n defenses, weapons, energy);\n }",
"public HealthConfigurationProperties withRegistryEnabled(boolean registryEnabled) {\n this.registryEnabled = registryEnabled;\n return this;\n }",
"public ClientConfiguration getConfiguration() {\r\n return this.configuration;\r\n }",
"public ConfigBuilder addConfig(Config config) {\n configs.add(new AsIsSource(config));\n return this;\n }",
"public Element toXml()\n {\n // Create the configuration.\n Element configuration = new Element(\"configuration\");\n configuration.setAttribute(\"name\", this.__profile_name);\n configuration.setAttribute(\"target\", this.getAddOnName());\n\n // Add the generic and the specialized configuration.\n configuration.addContent(this.getData());\n\n return configuration;\n }",
"public PropertiesHandler(final Configuration aConfig) {\n super(aConfig);\n }",
"public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() {\n if (configurationBuilder_ != null) {\n return configurationBuilder_.getMessageOrBuilder();\n } else {\n return configuration_ == null ?\n com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }\n }",
"public com.google.analytics.data.v1beta.CohortReportSettings.Builder\n getCohortReportSettingsBuilder() {\n bitField0_ |= 0x00000004;\n onChanged();\n return getCohortReportSettingsFieldBuilder().getBuilder();\n }",
"public IProjectConfiguration getConfiguration()\n {\n return new ProjectConfiguration(mProject, mCheckConfigs, mFileSets, mFilters,\n mUseSimpleConfig);\n }",
"public ComplexConfigDTO flatCopy() {\n \t\tfinal ComplexConfigDTO config = new ComplexConfigDTO();\n \t\tconfig.setPropertyType(getPropertyType());\n \t\tconfig.setPropertyName(getPropertyName());\n \t\tconfig.setDefiningScopePath(getDefiningScopePath());\n \t\tconfig.setPolymorph(isPolymorph());\n \t\tconfig.setVersion(getVersion());\n \t\tconfig.setParentVersion(getParentVersion());\n \t\tconfig.setParentScopeName(getParentScopeName());\n \t\tconfig.setClassVersion(getClassVersion());\n \t\tconfig.setNulled(isNulled());\n \t\treturn config;\n \t}",
"public MUCLightRoomConfiguration getConfiguration() {\n return configuration;\n }",
"public FileConfiguration getConfiguration() {\n return configuration;\n }",
"public Eac3AtmosSettings withSampleRate(Integer sampleRate) {\n setSampleRate(sampleRate);\n return this;\n }",
"static Properties getConfig()\n {\n return(config);\n }",
"private DynamicConfiguration getPropertiesConfiguration() throws ConfigurationException,\n MalformedURLException {\n String userHome = System.getProperty(\"user.home\");\n Path properties = Paths.get(userHome, \"config-root\", \"address\", \"address.properties\");\n PolledConfigurationSource polledSource = new URLConfigurationSource(properties.toUri().toURL());\n return new DynamicConfiguration(polledSource, new FixedDelayPollingScheduler());\n }",
"public Configuration getConfiguration() {\n \tif (configurationRef==null)\n \t\treturn null;\n \treturn (Configuration)configurationRef.get();\n }",
"protected final Map<String, String> getConfiguration() {\r\n\t\treturn Collections.unmodifiableMap(configuration);\r\n\t}",
"public IConfigurationElement getConfigurationElement() {\n\t\treturn fConfigurationElement;\n\t}",
"public static ConfigManager getConfiguration() {\n return configuration;\n }",
"public EndpointPropertiesBaseInner withProperties(Map<String, String> properties) {\n this.properties = properties;\n return this;\n }",
"public Configuration.Builder getAccessTokenBuilder() {\n String accessToken = getString(R.string.access_token);\n return new Configuration.Builder(accessToken);\n }",
"interface WithChainerSettings {\n /**\n * Specifies chainerSettings.\n * @param chainerSettings the chainerSettings parameter value\n * @return the next definition stage\n */\n WithCreate withChainerSettings(ChainerSettings chainerSettings);\n }",
"private Builder configureFrom(SecurityHandler handler) {\n handler.rolesAllowed.ifPresent(this::rolesAllowed);\n handler.customObjects.ifPresent(this::customObjects);\n handler.config.ifPresent(this::config);\n handler.explicitAuthenticator.ifPresent(this::authenticator);\n handler.explicitAuthorizer.ifPresent(this::authorizer);\n handler.authenticate.ifPresent(this::authenticate);\n handler.authenticationOptional.ifPresent(this::authenticationOptional);\n handler.audited.ifPresent(this::audit);\n handler.auditEventType.ifPresent(this::auditEventType);\n handler.auditMessageFormat.ifPresent(this::auditMessageFormat);\n handler.authorize.ifPresent(this::authorize);\n this.queryParamHandlers.addAll(handler.queryParamHandlers());\n\n return this;\n }",
"public MinaConfiguration copy() {\n try {\n return (MinaConfiguration) clone();\n } catch (CloneNotSupportedException e) {\n throw new RuntimeCamelException(e);\n }\n }",
"protected T getConfigurationByCascading() {\n\t\t\n\t\tList<T> configurationObjectList = new ArrayList<T>();\n\t\t\n\t\t// Add the configuration objects in the order they should override \n\t\t// each other. Command line options override property file information\n\t\t// which in turn override any default configuration objects that may\n\t\t// have been given.\n\t\t//\n\t\tconfigurationObjectList.add (getConfigurationByCommandline());\n\t\tconfigurationObjectList.addAll (getConfigurationByProperties(this.propertyFile));\n\t\tconfigurationObjectList.addAll (configurationObjects);\n\t\t\n\t\tInvocationHandler handler = new ConfigurationByCascading<T>(configurationObjectList);\n\n\t\t@SuppressWarnings(\"unchecked\")\t\t\n\t\tT configuration = (T)\n\t\t\tjava.lang.reflect.Proxy.newProxyInstance(\n\t\t\t\tthis.configurationInterface.getClassLoader(),\n\t\t\t\tnew Class[] { this.configurationInterface },\n\t\t\t\thandler\n\t\t);\n\n\t\treturn configuration;\n\t}",
"@java.lang.Override\n public com.google.protobuf.Any getConfiguration() {\n return configuration_ == null ? com.google.protobuf.Any.getDefaultInstance() : configuration_;\n }",
"public String getConfiguration() {\n return configuration;\n }",
"public Builder config(InlusiveNamingConfig inclusiveNamingConfig) {\n this.inclusiveNamingConfig = inclusiveNamingConfig;\n return this;\n }",
"public Builder setConfiguration(\n com.google.protobuf.Any.Builder builderForValue) {\n if (configurationBuilder_ == null) {\n configuration_ = builderForValue.build();\n onChanged();\n } else {\n configurationBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }",
"public InitialConfiguration audioState(AudioState audioState) {\n this.audioState = audioState;\n return this;\n }",
"@CanIgnoreReturnValue\n @NonNull\n public AppSearchSchema.Builder addProperty(@NonNull PropertyConfig propertyConfig) {\n Preconditions.checkNotNull(propertyConfig);\n resetIfBuilt();\n String name = propertyConfig.getName();\n if (!mPropertyNames.add(name)) {\n throw new IllegalSchemaException(\"Property defined more than once: \" + name);\n }\n mPropertyBundles.add(propertyConfig.mBundle);\n return this;\n }",
"public interface ConfigureConfiguration {\n\n\t// A list of names of configuration files\n\t@Option(shortName=\"c\", description = \"Name of one or many configuration \"\n\t\t+ \"files. Parameters in configuration files override each other. If a\"\n\t\t+ \" parameter is provided in more than one file, the first occurrence \"\n\t\t+ \" is used.\"\n\t) \n\tList<File> getConf();\n\tboolean isConf();\n\t\n}",
"@java.lang.Override\n public com.google.protobuf.AnyOrBuilder getConfigurationOrBuilder() {\n return getConfiguration();\n }",
"public String getConfiguration() {\n return this.configuration;\n }",
"public void setConfiguration(Properties props);",
"public List<ConfigurationInner> configurations() {\n return this.innerProperties() == null ? null : this.innerProperties().configurations();\n }",
"public ClusterConfig build() {\n return new ClusterConfig(_id, _resourceMap, _participantMap, _constraintMap, _stateModelMap,\n _stats, _alerts, _userConfig, _isPaused, _autoJoin);\n }",
"public ApplicationDefinitionProperties withIsEnabled(String isEnabled) {\n this.isEnabled = isEnabled;\n return this;\n }",
"public String getConfiguration() {\r\n\t\treturn configuration;\r\n\t}",
"public google.maps.fleetengine.v1.DeviceSettings.Builder getDeviceSettingsBuilder() {\n \n onChanged();\n return getDeviceSettingsFieldBuilder().getBuilder();\n }"
] |
[
"0.53836024",
"0.53191715",
"0.52775747",
"0.51851994",
"0.50664634",
"0.50659215",
"0.5063581",
"0.50505435",
"0.5015356",
"0.4991788",
"0.49652976",
"0.49472645",
"0.49225745",
"0.4901798",
"0.4901798",
"0.4901798",
"0.4901798",
"0.4880316",
"0.48674217",
"0.4862489",
"0.4862489",
"0.4802969",
"0.47854686",
"0.47525844",
"0.4752021",
"0.4749308",
"0.4730728",
"0.472833",
"0.4718084",
"0.47034976",
"0.46983698",
"0.46633178",
"0.46467584",
"0.46454743",
"0.46448794",
"0.46386707",
"0.46205547",
"0.46121985",
"0.45884213",
"0.45855978",
"0.45804343",
"0.4578679",
"0.45664644",
"0.45648348",
"0.45576432",
"0.4557426",
"0.4555743",
"0.45471168",
"0.45466116",
"0.45450002",
"0.45422646",
"0.454138",
"0.45363018",
"0.4500916",
"0.44903404",
"0.44792083",
"0.44792083",
"0.44792083",
"0.44792083",
"0.44640374",
"0.44614834",
"0.44588083",
"0.44560564",
"0.44368955",
"0.44284713",
"0.44278884",
"0.4427678",
"0.4426345",
"0.44187623",
"0.44081575",
"0.4406625",
"0.440491",
"0.44034913",
"0.4393074",
"0.43921915",
"0.43552473",
"0.43523428",
"0.43503457",
"0.43495837",
"0.43331888",
"0.43319455",
"0.43246287",
"0.4322674",
"0.43203396",
"0.43133488",
"0.4312948",
"0.4307645",
"0.43045244",
"0.4300306",
"0.429912",
"0.42951977",
"0.42939293",
"0.42925757",
"0.4278828",
"0.42771417",
"0.42698544",
"0.42668337",
"0.42647523",
"0.4264297",
"0.42603356"
] |
0.55368173
|
0
|
A set of properties supplied to the Configuration object. The method adds a new keyvalue pair into Properties parameter, and returns a reference to this object so that method calls can be chained together.
|
public Configuration addPropertiesEntry(String key, String value) {
if (null == this.properties) {
this.properties = new java.util.HashMap<String,String>();
}
if (this.properties.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.properties.put(key, value);
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Configuration withProperties(java.util.Map<String,String> properties) {\n setProperties(properties);\n return this;\n }",
"public EndpointPropertiesBaseInner withProperties(Map<String, String> properties) {\n this.properties = properties;\n return this;\n }",
"@CanIgnoreReturnValue\n @NonNull\n public AppSearchSchema.Builder addProperty(@NonNull PropertyConfig propertyConfig) {\n Preconditions.checkNotNull(propertyConfig);\n resetIfBuilt();\n String name = propertyConfig.getName();\n if (!mPropertyNames.add(name)) {\n throw new IllegalSchemaException(\"Property defined more than once: \" + name);\n }\n mPropertyBundles.add(propertyConfig.mBundle);\n return this;\n }",
"ObjectBuilder<T> addProperty(final String name, final String value) {\n properties.put(name, value);\n return this;\n }",
"public Builder putProperties(\n java.lang.String key,\n java.lang.String value) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n if (value == null) {\n throw new NullPointerException(\"map value\");\n }\n internalGetMutableProperties().getMutableMap()\n .put(key, value);\n bitField0_ |= 0x00000004;\n return this;\n }",
"@Override\n public void addConfigurationProperties(Properties properties) {\n }",
"public static void configure(Properties properties) {\r\n configure(properties, true);\r\n }",
"public void setProperties(final ConfigProperties properties) {\n this.properties = properties;\n }",
"public LineLayer withProperties(@NonNull Property<?>... properties) {\n setProperties(properties);\n return this;\n }",
"public StoreReadSettings withAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }",
"@Override\n public Configuration parseProperties(String fileUrlToProperties) throws Exception {\n fileUrlToProperties = resolvePropertiesSources(fileUrlToProperties);\n if (fileUrlToProperties != null) {\n for (String fileUrl : fileUrlToProperties.split(\",\")) {\n Properties brokerProperties = new InsertionOrderedProperties();\n if (fileUrl.endsWith(\"/\")) {\n // treat as a directory and parse every property file in alphabetical order\n File dir = new File(fileUrl);\n if (dir.exists()) {\n String[] files = dir.list(new FilenameFilter() {\n @Override\n public boolean accept(File file, String s) {\n return s.endsWith(\".properties\");\n }\n });\n if (files != null && files.length > 0) {\n Arrays.sort(files);\n for (String fileName : files) {\n try (FileInputStream fileInputStream = new FileInputStream(new File(dir, fileName));\n BufferedInputStream reader = new BufferedInputStream(fileInputStream)) {\n brokerProperties.clear();\n brokerProperties.load(reader);\n parsePrefixedProperties(this, fileName, brokerProperties, null);\n }\n }\n }\n }\n } else {\n File file = new File(fileUrl);\n try (FileInputStream fileInputStream = new FileInputStream(file);\n BufferedInputStream reader = new BufferedInputStream(fileInputStream)) {\n brokerProperties.load(reader);\n parsePrefixedProperties(this, file.getName(), brokerProperties, null);\n }\n }\n }\n }\n parsePrefixedProperties(System.getProperties(), systemPropertyPrefix);\n return this;\n }",
"@Override\n public void addConfigurationProperties(Properties properties) {\n this.properties.putAll(properties);\n\n suppressDate = StringUtility.isTrue(properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_DATE));\n\n suppressAllComments = StringUtility.isTrue(properties.getProperty(PropertyRegistry.COMMENT_GENERATOR_SUPPRESS_ALL_COMMENTS));\n\n }",
"public Secret withPropertyKey(String key) {\n\t\tthis.propertyKey = key;\n\t\treturn this;\n\t}",
"public PropertiesHandler(final Configuration aConfig) {\n super(aConfig);\n }",
"void configure(Properties properties);",
"public MicrosoftGraphGroupSetting withAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }",
"public void registerProperty(File propertiesFile, String key, String value) {\n\t\tSystem.out.println(\"enter method registerProperty(\" + \"File propertiesFile, String key, String value)\");\n\t\tPropertiesConfiguration propertiesConfiguration = null;\n\t\ttry {\n\t\t\tpropertiesConfiguration = new PropertiesConfiguration(propertiesFile);\n\t\t\tpropertiesConfiguration.setProperty(key, value);\n\t\t\tpropertiesConfiguration.save();\n\n\t\t} catch (ConfigurationException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"public void writeToPropertiesFile(String propertiesPath) {\n OrderedPropertiesBuilder builder = new OrderedPropertiesBuilder();\n builder.withOrdering(String.CASE_INSENSITIVE_ORDER);\n builder.withSuppressDateInComment(true);\n OrderedProperties props = builder.build();\n \n // Creating a File object which will point to location of\n // properties file\n File propertiesFile = new File(propertiesPath);\n \n try {\n \n // create a FileOutputStream by passing above properties file\n FileOutputStream xlsFos = new FileOutputStream(propertiesFile);\n \n // Taking hashMaps keys by first converting it to Set and than\n // taking iterator over it.\n Iterator mapIterator = properties.keySet().iterator();\n \n // looping over iterator properties\n while (mapIterator.hasNext()) {\n \n // extracting keys and values based on the keys\n String key = mapIterator.next().toString();\n \n String value = properties.get(key);\n \n // setting each properties file in props Object\n // created above\n props.setProperty(key, value);\n \n }\n \n // Finally storing the properties to real\n // properties file.\n props.store(xlsFos, null);\n \n } catch (FileNotFoundException e) {\n \n e.printStackTrace();\n \n } catch (IOException e) {\n \n e.printStackTrace();\n \n }\n }",
"public final void setPropertyConfig(\n final PropertiesConfiguration propertyConfig) {\n PCTMailGenerator.propertyConfig = propertyConfig;\n }",
"public void setProperty(Properties properties) {\r\n this.properties = properties;\r\n }",
"public static void properties(final Swagger2Properties theProperties) {\n if (properties == null) {\n properties = theProperties;\n }\n else {\n throw new RuntimeException(\n \"The properties this class has already been configured. Subsequent configuration of this class is not allowed.\"\n );\n }\n }",
"private static FileBasedConfigurationBuilder<PropertiesConfiguration> propertiesFileBuilder(final String config) {\n final var propertiesParams = new Parameters()//\r\n .fileBased() //\r\n .setFile(new File(config + PROPERTIES_FILE_EXTENSION)) //\r\n .setListDelimiterHandler(new DefaultListDelimiterHandler(LIST_DELIMITER));\r\n return new FileBasedConfigurationBuilder<>(DEFAULT_CONFIGURATION_FILE_TYPE).configure(propertiesParams);\r\n }",
"public Properties init() {\n // init nested properties starting from the bottom ones\n initProperties();\n initLayout();\n return this;\n }",
"private Configuration searchConfigs(String propertyFile) throws ConfigurationException\n {\n return new PropertiesConfiguration(propertyFile);\n }",
"public StoreConfig(final Properties pProps) {\n\t\tthis.overloadConfigFromEnviroment(pProps);\n\t\tinitConfig(this);\n\t}",
"public void configure(PropertiesGetter properties) {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"public static void writeProperties() {\n\t\ttry {\n\t\t\tLogger.getLogger(Configuration.class).info(\"Write properties\");\n\t\t\tFileOutputStream fileOutputStream = new FileOutputStream(new File(configFileName));\n\t\t\tproperties.store(fileOutputStream, \"\");\n\t\t\tfileOutputStream.close();\n\n\t\t\t// externalToolParser.writeInFile(externalToolsList,\n\t\t\t// Configuration.extToolsConfigFileName);\n\t\t} catch (FileNotFoundException fne) {\n\t\t\tAlert.raise(fne, \"Cannot find configuration file: \" + fne.getMessage());\n\t\t} catch (IOException ioe) {\n\t\t\tAlert.raise(ioe, \"Cannot write configuration file: \" + ioe.getMessage());\n\t\t} catch (Exception ex) {\n\t\t\tAlert.raise(ex, \"Cannot write configuration file: \" + ex.getMessage());\n\t\t}\n\t}",
"public void addProperty(org.apache.ant.antlib.system.SubBuild.Property property) {\n properties.put(property.getName(), property.getValue());\n }",
"public Config(Properties props) {\n entries = (Properties)props.clone();\n }",
"public Properties() {\n\n\t\tconfig = new java.util.Properties();\n\n\t\ttry {\n\t\t\tInputStream input = new FileInputStream(new File(\n\t\t\t\t\t\"ConfigurationFile.txt\"));\n\t\t\tconfig.load(input);\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"public MetadataResourceType setProperties(Object properties) {\n this.properties = properties;\n return this;\n }",
"public void addProperty( String key, String value )\n {\n Props.Entry entry = new Props.Entry();\n entry.setKey( key );\n entry.setValue( value );\n this.props.getEntry().add( entry );\n }",
"public Builder putAllProperties(\n java.util.Map<java.lang.String, java.lang.String> values) {\n internalGetMutableProperties().getMutableMap()\n .putAll(values);\n bitField0_ |= 0x00000004;\n return this;\n }",
"public void addProperties( Properties props )\n {\n if ( props != null )\n {\n for ( Enumeration<?> e = props.propertyNames(); e.hasMoreElements(); )\n {\n // This LDAP attr is stored as a name-value pair separated by a ':'.\n String key = ( String ) e.nextElement();\n String val = props.getProperty( key );\n addProperty( key, val );\n }\n }\n }",
"public Configuration withConfigurations(java.util.Collection<Configuration> configurations) {\n if (configurations == null) {\n this.configurations = null;\n } else {\n com.amazonaws.internal.ListWithAutoConstructFlag<Configuration> configurationsCopy = new com.amazonaws.internal.ListWithAutoConstructFlag<Configuration>(configurations.size());\n configurationsCopy.addAll(configurations);\n this.configurations = configurationsCopy;\n }\n\n return this;\n }",
"public EventHubOutputDataSourceProperties withPropertyColumns(List<String> propertyColumns) {\n this.propertyColumns = propertyColumns;\n return this;\n }",
"public void writeProp(File propFile) {\n\t\tprop = new Properties();\n\n\t\t// File file = new File(\"../resources/files/Config.properties\");\n\n\t\tpropFile = new File(propFile.getAbsolutePath().replace(\"..\", \"src\\\\main\"));\n\n\t\ttry {\n\n\t\t\toutput = new FileOutputStream(propFile);\n\n\t\t\t// set the properties value\n\t\t\tprop.setProperty(\"database\", \"localhost\");\n\t\t\tprop.setProperty(\"dbuser\", \"mkyong\");\n\t\t\tprop.setProperty(\"dbpassword\", \"password\");\n\n\t\t\t// save properties to project root folder\n\t\t\tprop.store(output, null);\n\n\t\t} catch (Exception io) {\n\t\t\tio.printStackTrace();\n\t\t} finally {\n\t\t\tif (output != null) {\n\t\t\t\ttry {\n\t\t\t\t\toutput.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\n\t}",
"@NotNull @Contract(pure = true)\n\tT withProperties(Map<String, Object> newProperties);",
"public void addProperties(MetadataEntity metadataEntity, Map<String, String> properties)\n throws IOException, UnauthenticatedException, BadRequestException, UnauthorizedException {\n String path = String.format(\"%s/metadata/properties\", constructPath(metadataEntity));\n path = addQueryParams(path, metadataEntity, null);\n makeRequest(path, HttpMethod.POST, GSON.toJson(properties));\n }",
"public CustomizationPolicyInner withTypePropertiesType(CustomizationPolicyPropertiesType typePropertiesType) {\n this.typePropertiesType = typePropertiesType;\n return this;\n }",
"static AuditYamlConfigurationLoader withProperties(Properties properties)\n {\n return new AuditYamlConfigurationLoader(properties);\n }",
"public Parameters(Properties properties) {\n\t\trequireNonNull(\n\t\t\t\tproperties,\n\t\t\t\t\"A properties to store parameters in not specified\");\n\t\tthis.store = new PropertiesParameters(properties);\n\t}",
"@NonNull\n\t\tBuilder addProperty(@NonNull String key, Object value);",
"Builder addProperty(String name, String value);",
"public JavaPropertyWriter(final Properties props) {\n Assert.exists(props, Properties.class);\n\n m_props = props;\n }",
"private DynamicConfiguration getPropertiesConfiguration() throws ConfigurationException,\n MalformedURLException {\n String userHome = System.getProperty(\"user.home\");\n Path properties = Paths.get(userHome, \"config-root\", \"address\", \"address.properties\");\n PolledConfigurationSource polledSource = new URLConfigurationSource(properties.toUri().toURL());\n return new DynamicConfiguration(polledSource, new FixedDelayPollingScheduler());\n }",
"private void overrideProperties() throws BuildException {\n // remove duplicate properties - last property wins\n // Needed for backward compatibility\n Set set = new HashSet();\n for (int i = properties.size() - 1; i >= 0; --i) {\n Property p = (Property) properties.get(i);\n if (p.getName() != null && !p.getName().equals(\"\")) {\n if (set.contains(p.getName())) {\n properties.remove(i);\n } else {\n set.add(p.getName());\n }\n }\n }\n Enumeration e = properties.elements();\n while (e.hasMoreElements()) {\n Property p = (Property) e.nextElement();\n p.setProject(newProject);\n p.execute();\n }\n getProject().copyInheritedProperties(newProject);\n }",
"public final void mergeProperties(final Properties prop)\n {\n this.fProp.putAll(prop);\n }",
"public static void setProperties(final HashMap<String, String> properties) {\n for (String propertyName : properties.keySet()) {\n Conf.properties.setProperty(propertyName, properties.get(propertyName));\n }\n try {\n commit();\n } catch (IOException e) {\n Log.error(e);\n }\n }",
"public LogProfileProperties withRetentionPolicy(RetentionPolicy retentionPolicy) {\n this.retentionPolicy = retentionPolicy;\n return this;\n }",
"public void addProperty(String key, String value);",
"public EndpointPropertiesBaseInner withKeys(EndpointAuthKeysInner keys) {\n this.keys = keys;\n return this;\n }",
"public static void addProperty(String [] propertyValues){\r\n Property oneProperty = new Property();\r\n oneProperty = setPropertyAttributes(oneProperty, propertyValues);\r\n propertyLogImpl.add(oneProperty);\r\n }",
"public final MF addColumnProperty(Predicate<? super K> predicate, Object... properties) {\n\t\tfor(Object property : properties) {\n\t\t\tcolumnDefinitions.addColumnProperty(predicate, property);\n\t\t}\n\t\treturn (MF) this;\n\t}",
"public Property createProperty() {\n Property p = new Property();\n p.setProject(getProject());\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"public final MF addColumnProperty(String column, Object... properties) {\n\t\tfor(Object property : properties) {\n\t\t\tcolumnDefinitions.addColumnProperty(column, property);\n\t\t}\n\t\treturn (MF) this;\n\t}",
"public PropertiesPlus(Properties properties)\n\t{\n\t\tsuper(properties);\n\t\tdateFormatGMT.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t\tdateFormatGMT_MS.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\t}",
"public DrillBuilder setPropertyKey(String propertyKey) {\n this.propertyKey = propertyKey;\n return this;\n }",
"public void addApplicationProperty(String property, String value) {\n if (property == null)\n return;\n\n if (appProperties == null)\n appProperties = new Vector();\n \n properties.put(property, value);\n appProperties.addElement(property);\n }",
"public ApplicationConfigurationProperties(\r\n Collection<ApplicationConfigurationSetting> settings) {\r\n // TODO init with localhost as default?\r\n String urlPrefixValue = \"\";\r\n String urlPrefixSecuredValue = \"\";\r\n properties = new HashMap<String, String>();\r\n if (settings != null) {\r\n for (ApplicationConfigurationSetting setting : settings) {\r\n properties.put(setting.getSettingKey(), setting.getSettingValue());\r\n }\r\n // initialize the configured URLs required for situations where no request is available\r\n String hostName = getProperty(ApplicationProperty.WEB_SERVER_HOST_NAME);\r\n if (StringUtils.isBlank(hostName)) {\r\n LOG.warn(\"The application property \"\r\n + ApplicationProperty.WEB_SERVER_HOST_NAME.getKeyString()\r\n + \" is not defined. The URL rendering will not work correctly.\");\r\n } else {\r\n String context = getProperty(ApplicationProperty.WEB_SERVER_CONTEXT_NAME, \"\")\r\n .trim();\r\n if (StringUtils.isNotBlank(context) && !context.startsWith(\"/\")) {\r\n context = \"/\" + context;\r\n }\r\n int port = getProperty(ApplicationProperty.WEB_HTTP_PORT,\r\n ApplicationProperty.DEFAULT_WEB_HTTP_PORT);\r\n urlPrefixValue = buildUrlPrefix(hostName, port, context, false);\r\n if (getProperty(ApplicationProperty.WEB_HTTPS_SUPPORTED,\r\n ApplicationProperty.DEFAULT_WEB_HTTPS_SUPPORTED)) {\r\n port = getProperty(ApplicationProperty.WEB_HTTPS_PORT,\r\n ApplicationProperty.DEFAULT_WEB_HTTPS_PORT);\r\n urlPrefixSecuredValue = buildUrlPrefix(hostName, port, context, true);\r\n } else {\r\n urlPrefixSecuredValue = urlPrefixValue;\r\n }\r\n }\r\n }\r\n urlPrefix = urlPrefixValue;\r\n urlPrefixSecured = urlPrefixSecuredValue;\r\n }",
"public Builder addProps(org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement value) {\n if (propsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePropsIsMutable();\n props_.add(value);\n onChanged();\n } else {\n propsBuilder_.addMessage(value);\n }\n return this;\n }",
"public Properties initForRuntime() {\n initProperties();\n return this;\n }",
"public Configuration clearPropertiesEntries() {\n this.properties = null;\n return this;\n }",
"public Builder addProps(\n int index, org.apache.calcite.avatica.proto.Responses.DatabasePropertyElement value) {\n if (propsBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n ensurePropsIsMutable();\n props_.add(index, value);\n onChanged();\n } else {\n propsBuilder_.addMessage(index, value);\n }\n return this;\n }",
"public static void bindProperties(Binder binder, final Properties properties) {\n bindProperties(binder, new JavaPropertiesHandler(properties));\n }",
"PropertiesTask setProperty( String key, String value );",
"public Config(File confDir, Properties props) throws IOException {\n FileInputStream input = new FileInputStream(new File(confDir, PROPERTIES_FILE));\n Properties p = new Properties();\n p.load(input);\n entries = new Properties(p); // Set the file values as defaults for our properties\n // Now copy in our passed in properties\n for (String key : props.stringPropertyNames()) entries.setProperty(key, props.getProperty(key));\n input.close();\n }",
"@SuppressWarnings({\"unchecked\", \"rawtypes\"})\n public void loadConfigProperties() {\n Properties properties = new Properties();\n InputStream inputStream = null;\n try {\n String configFile = Constant.CONFIGURATION_PROPERTIES;\n inputStream = RepositoryParser.class.getClassLoader().getResourceAsStream(configFile);\n // Loading the property file\n properties.load(inputStream);\n } catch (FileNotFoundException e) {\n Log.error(\"Property file was not found\");\n } catch (IOException e) {\n Log.error(\"The key was not found in the property file\");\n } finally {\n if (inputStream != null) {\n try {\n inputStream.close();\n } catch (IOException e) {\n Log.error(\"The property file was not closed\");\n }\n }\n }\n\n // Getting the corresponding value of the key in the property file\n configPropertiesMap = new HashMap<String, String>((Map) properties);\n }",
"public MicrosoftGraphStsPolicy withAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }",
"public HistogramConfiguration loadProperties(String propertyFileName)\n {\n HistogramConfiguration histConfig = HistogramConfiguration.getInstance();\n\n try(FileInputStream inputStream = new FileInputStream(propertyFileName))\n {\n properties.load(inputStream);\n\n histConfig.setShouldIgnoreWhiteSpaces(loadShouldIgnoreWhiteSpace());\n histConfig.setIgnoreCharacters(loadIgnoredCharactersProperties());\n\n }catch (IOException e)\n {\n e.printStackTrace();\n }\n\n return histConfig;\n }",
"public CreateStatementBuilder setTableProperties(Map<String, String> tableProperties) {\n this.tableProperties = addRequiredTableProperties(tableProperties);\n return this;\n }",
"private ConfigProperties getProperties() {\n return properties;\n }",
"PropertiesTask setProperties( Properties properties );",
"interface WithProperties {\n /**\n * Specifies the properties property: Specifies the job properties.\n *\n * @param properties Specifies the job properties.\n * @return the next definition stage.\n */\n WithCreate withProperties(JobDetails properties);\n }",
"public void setConfiguration(Properties props);",
"public CopySink setAdditionalProperties(Map<String, Object> additionalProperties) {\n this.additionalProperties = additionalProperties;\n return this;\n }",
"public final EObject ruleEProperties() throws RecognitionException {\n EObject current = null;\n\n EObject lv_properties_1_0 = null;\n\n\n\n \tenterRule();\n\n try {\n // InternalRMParser.g:4518:2: ( ( () ( (lv_properties_1_0= ruleEPropertyDefinition ) )* ) )\n // InternalRMParser.g:4519:2: ( () ( (lv_properties_1_0= ruleEPropertyDefinition ) )* )\n {\n // InternalRMParser.g:4519:2: ( () ( (lv_properties_1_0= ruleEPropertyDefinition ) )* )\n // InternalRMParser.g:4520:3: () ( (lv_properties_1_0= ruleEPropertyDefinition ) )*\n {\n // InternalRMParser.g:4520:3: ()\n // InternalRMParser.g:4521:4: \n {\n\n \t\t\t\tcurrent = forceCreateModelElement(\n \t\t\t\t\tgrammarAccess.getEPropertiesAccess().getEPropertiesAction_0(),\n \t\t\t\t\tcurrent);\n \t\t\t\n\n }\n\n // InternalRMParser.g:4527:3: ( (lv_properties_1_0= ruleEPropertyDefinition ) )*\n loop33:\n do {\n int alt33=2;\n int LA33_0 = input.LA(1);\n\n if ( (LA33_0==RULE_ID) ) {\n alt33=1;\n }\n\n\n switch (alt33) {\n \tcase 1 :\n \t // InternalRMParser.g:4528:4: (lv_properties_1_0= ruleEPropertyDefinition )\n \t {\n \t // InternalRMParser.g:4528:4: (lv_properties_1_0= ruleEPropertyDefinition )\n \t // InternalRMParser.g:4529:5: lv_properties_1_0= ruleEPropertyDefinition\n \t {\n\n \t \t\t\t\t\tnewCompositeNode(grammarAccess.getEPropertiesAccess().getPropertiesEPropertyDefinitionParserRuleCall_1_0());\n \t \t\t\t\t\n \t pushFollow(FOLLOW_43);\n \t lv_properties_1_0=ruleEPropertyDefinition();\n\n \t state._fsp--;\n\n\n \t \t\t\t\t\tif (current==null) {\n \t \t\t\t\t\t\tcurrent = createModelElementForParent(grammarAccess.getEPropertiesRule());\n \t \t\t\t\t\t}\n \t \t\t\t\t\tadd(\n \t \t\t\t\t\t\tcurrent,\n \t \t\t\t\t\t\t\"properties\",\n \t \t\t\t\t\t\tlv_properties_1_0,\n \t \t\t\t\t\t\t\"org.sodalite.dsl.RM.EPropertyDefinition\");\n \t \t\t\t\t\tafterParserOrEnumRuleCall();\n \t \t\t\t\t\n\n \t }\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop33;\n }\n } while (true);\n\n\n }\n\n\n }\n\n\n \tleaveRule();\n\n }\n\n catch (RecognitionException re) {\n recover(input,re);\n appendSkippedTokens();\n }\n finally {\n }\n return current;\n }",
"public static void configure(Properties properties, boolean useDefaults) {\r\n for (ConfigurationOption<?> option : OPTIONS.values()) {\r\n if (doSetProperty(properties, option.getKey(), useDefaults)) {\r\n option.fromProperties(properties);\r\n }\r\n }\r\n }",
"public void setProperties(Properties properties) {\n\t\tthis.properties = properties;\n\t}",
"PropertiesTask setProperties( File propertiesFile );",
"private static Properties loadProperties() {\n Properties properties;\n try (InputStream in = FHIRServerProperties.class.getClassLoader().getResourceAsStream(HAPI_PROPERTIES)) {\n properties = new Properties();\n properties.load(in);\n } catch (Exception e) {\n throw new ConfigurationException(\"Could not load HAPI properties\", e);\n }\n\n Properties overrideProps = loadOverrideProperties();\n if (overrideProps != null) {\n properties.putAll(overrideProps);\n }\n return properties;\n }",
"public void setProperties(Map<String, List<String>> properties) {\n\t\tthis.properties = properties;\n\t}",
"public ResourceConfiguration(String name, String namespace, Map properties) {\n this.name = name;\n this.namespace = namespace;\n \n if (properties == null) {\n this.properties = new HashMap();\n } else {\n this.properties = properties;\n }\n }",
"public PackageBuilderConfiguration(Properties properties) {\r\n init( null,\r\n properties );\r\n }",
"interface WithProperties {\n /**\n * Specifies properties.\n * @param properties Properties of the secret\n * @return the next update stage\n */\n Update withProperties(SecretPatchProperties properties);\n }",
"public void setProperties(java.util.Map<String,String> properties) {\n this.properties = properties;\n }",
"public void setProperties(Properties properties) {\n this.properties=properties;\n }",
"public void storeConfiguration(Configuration configProperties) throws ApplicationException, DepositorException,\r\n ConnectionException, InfrastructureException {\r\n throw new UnsupportedOperationException(\"everything moved\");\r\n }",
"public FileServicePropertiesProperties withProtocolSettings(ProtocolSettings protocolSettings) {\n this.protocolSettings = protocolSettings;\n return this;\n }",
"public Property createProperty() {\n if (newProject == null) {\n reinit();\n }\n Property p = new Property(true, getProject());\n p.setProject(newProject);\n p.setTaskName(\"property\");\n properties.addElement(p);\n return p;\n }",
"interface WithProperties {\n /**\n * Specifies the properties property: Properties of Cognitive Services account..\n *\n * @param properties Properties of Cognitive Services account.\n * @return the next definition stage.\n */\n WithCreate withProperties(AccountProperties properties);\n }",
"public void addProperty(Property property)\r\n {\r\n m_values.add(property);\r\n }",
"interface WithProperties {\n /**\n * Specifies properties.\n * @param properties the properties parameter value\n * @return the next definition stage\n */\n WithCreate withProperties(MoveCollectionProperties properties);\n }",
"public void setProperties(Map<String, String> properties) {\n this.properties = properties;\n }",
"interface WithProperties {\n /**\n * Specifies the properties property: Properties of Cognitive Services account..\n *\n * @param properties Properties of Cognitive Services account.\n * @return the next definition stage.\n */\n Update withProperties(AccountProperties properties);\n }",
"public static void storeProperties(final Properties properties, final String path)\n throws IOException {\n if (StringUtils.isBlank(path)) {\n throw new IllegalArgumentException(\n \"The properties file path can't be null or empty\");\n }\n\n if (properties == null) {\n throw new IllegalArgumentException(\n \"The properties to save can't be null\");\n }\n\n final FileOutputStream outPutStream = new FileOutputStream(path);\n properties.store(outPutStream, null);\n }",
"public void setProperties(Properties properties)\n {\n this.properties = properties;\n }",
"public HealthConfigurationProperties withEnabled(boolean enabled) {\n this.enabled = enabled;\n return this;\n }",
"public void setProperty(String key, String value) {\n\t\tthis.properties.put(key, value);\n\t}",
"public void setProperties(Map<String, String> properties) {\n\t\tthis.properties = properties;\n\t}"
] |
[
"0.7618094",
"0.66269565",
"0.5956371",
"0.56769174",
"0.5331313",
"0.52971655",
"0.5225736",
"0.51646143",
"0.51223165",
"0.5100764",
"0.50957376",
"0.5084511",
"0.50554746",
"0.50511426",
"0.5040007",
"0.5022758",
"0.4985025",
"0.49420717",
"0.4898628",
"0.48810256",
"0.48649484",
"0.47887915",
"0.47791737",
"0.47159106",
"0.47158796",
"0.47116053",
"0.4687962",
"0.46847275",
"0.4683223",
"0.46570483",
"0.4651398",
"0.46481338",
"0.46246442",
"0.46085453",
"0.4603654",
"0.4598862",
"0.45823756",
"0.45725116",
"0.45718303",
"0.4560843",
"0.45559335",
"0.45532867",
"0.45446748",
"0.45337465",
"0.4508033",
"0.45078713",
"0.4470259",
"0.44661623",
"0.44608396",
"0.4460075",
"0.44485205",
"0.44444838",
"0.440249",
"0.43922776",
"0.43912742",
"0.43902984",
"0.43883705",
"0.4385477",
"0.43817848",
"0.43774903",
"0.43707463",
"0.43569016",
"0.43564224",
"0.43551448",
"0.43501246",
"0.43380857",
"0.43280593",
"0.4326159",
"0.4310331",
"0.43061346",
"0.43054065",
"0.4305152",
"0.4298686",
"0.42948845",
"0.42912245",
"0.42880175",
"0.42857072",
"0.42825845",
"0.42812744",
"0.42782345",
"0.42782107",
"0.426691",
"0.42551517",
"0.42485508",
"0.42419207",
"0.42300138",
"0.42144862",
"0.42124236",
"0.42080212",
"0.41982448",
"0.41939238",
"0.4190641",
"0.41894004",
"0.41878474",
"0.41764584",
"0.41761422",
"0.41742226",
"0.41709593",
"0.4164317",
"0.41633302"
] |
0.65993446
|
2
|
Removes all the entries added into Properties. Returns a reference to this object so that method calls can be chained together.
|
public Configuration clearPropertiesEntries() {
this.properties = null;
return this;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Builder removeProperties(\n java.lang.String key) {\n if (key == null) {\n throw new NullPointerException(\"map key\");\n }\n internalGetMutableProperties().getMutableMap()\n .remove(key);\n return this;\n }",
"public Builder clearProperty() {\n\n property_ = getDefaultInstance().getProperty();\n onChanged();\n return this;\n }",
"public Builder clearProps() {\n if (propsBuilder_ == null) {\n props_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n propsBuilder_.clear();\n }\n return this;\n }",
"PropertiesTask removeAllProperties();",
"PropertiesTask removeProperty( String key );",
"public Builder removeProps(int index) {\n if (propsBuilder_ == null) {\n ensurePropsIsMutable();\n props_.remove(index);\n onChanged();\n } else {\n propsBuilder_.remove(index);\n }\n return this;\n }",
"Property clearAndAddValue(PropertyValue<?, ?> value);",
"public Builder clearKeepPropertiesHistoryInHours() {\n if (keepPropertiesHistoryInHoursBuilder_ == null) {\n keepPropertiesHistoryInHours_ = null;\n onChanged();\n } else {\n keepPropertiesHistoryInHours_ = null;\n keepPropertiesHistoryInHoursBuilder_ = null;\n }\n\n return this;\n }",
"public EndpointPropertiesBaseInner withProperties(Map<String, String> properties) {\n this.properties = properties;\n return this;\n }",
"public Configuration withProperties(java.util.Map<String,String> properties) {\n setProperties(properties);\n return this;\n }",
"public Builder clearProperty1() {\n bitField0_ = (bitField0_ & ~0x00000008);\n property1_ = 0;\n \n return this;\n }",
"public void deleteProperties(String sourceInstance, String property)\r\n\t{\r\n\t\tOntResource si = this.obtainOntResource(sourceInstance);\r\n\t\tProperty prop = this.obtainOntProperty(property);\r\n\t\tsi.removeAll(prop);\r\n\t}",
"public void resetProperties ()\n\t{\n\t\tproperties.clear();\n\t}",
"public Builder clearKeepPropertiesHistoryInHoursNull() {\n \n keepPropertiesHistoryInHoursNull_ = false;\n onChanged();\n return this;\n }",
"public Builder clearEntry() {\n if (entryBuilder_ == null) {\n entry_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n } else {\n entryBuilder_.clear();\n }\n return this;\n }",
"void remove(InstanceProperties props) {\n props.remove();\n removeListeners.fireChange();\n }",
"public LineLayer withProperties(@NonNull Property<?>... properties) {\n setProperties(properties);\n return this;\n }",
"public Builder clearCollection() {\n copyOnWrite();\n instance.clearCollection();\n return this;\n }",
"Form removeProperty(String key);",
"public boolean removeProperty(String name) {\n for(Pp property : properties){\n if(property.getId().equals(name))\n return removeProperty(property);\n }\n return false;\n }",
"public final void clearPropertyCache()\n {\n this.cache.clear();\n }",
"public boolean removeProperty(Pp property) {\n if(properties.remove(property)){\n //Se property existe, retira o seu parentesco\n if(property != null)\n property.setParent(null);\n\n notifyRemoved(NCLElementSets.PROPERTIES, property);\n return true;\n }\n return false;\n }",
"void clearProperty(String key);",
"void clearProperty(String key);",
"public Builder clearProperty0() {\n bitField0_ = (bitField0_ & ~0x00000004);\n property0_ = 0;\n \n return this;\n }",
"public Properties init() {\n // init nested properties starting from the bottom ones\n initProperties();\n initLayout();\n return this;\n }",
"public Builder clearAttributes() {\n if (attributesBuilder_ == null) {\n attributes_ = null;\n onChanged();\n } else {\n attributes_ = null;\n attributesBuilder_ = null;\n }\n\n return this;\n }",
"public void removeProperty(TLProperty element);",
"public Builder clearPatch() {\n copyOnWrite();\n instance.clearPatch();\n return this;\n }",
"Property removeValue(PropertyValue<?, ?> value);",
"public\tList<JsClass.Property>\tgetRemovedProperties() {\n\t\t\n\t\treturn\tCollections.unmodifiableList(this.removedProperties);\n\t}",
"public void reset() {\r\n properties.clear();\r\n }",
"public static void removeProperty(String aKey) {\n checkArgument(!isNullOrEmpty(aKey), \"aKey cannot be null or empty\");\n \n loadPropertiesFile();\n if (props.containsKey(aKey))\n props.remove(aKey);\n storePropsFile();\n }",
"public Builder clearCustom() {\n copyOnWrite();\n instance.clearCustom();\n return this;\n }",
"public Builder clearPatch() {\n copyOnWrite();\n instance.clearPatch();\n return this;\n }",
"public Builder clearAttributes() {\n if (attributesBuilder_ == null) {\n attributes_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n } else {\n attributesBuilder_.clear();\n }\n return this;\n }",
"public Builder clearProperty() {\n property_ = message.Figure.FigureData.FigureProperty.getDefaultInstance();\n\n bitField0_ = (bitField0_ & ~0x00000080);\n return this;\n }",
"public Canary clearTagsEntries() {\n this.tags = null;\n return this;\n }",
"public Builder clearItems() {\n items_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000002);\n onChanged();\n return this;\n }",
"public MetadataResourceType setProperties(Object properties) {\n this.properties = properties;\n return this;\n }",
"public Builder clearPut() {\n copyOnWrite();\n instance.clearPut();\n return this;\n }",
"public PolicyVariables clearRuleVariablesEntries() {\n this.ruleVariables = null;\n return this;\n }",
"private void trimProperties(Properties properties) {\n // Have to do this iteration in a Java 5 compatible manner. no stringPropertyNames().\n for (Map.Entry<Object, Object> entry : properties.entrySet()) {\n String propName = (String) entry.getKey();\n properties.setProperty(propName, properties.getProperty(propName).trim());\n }\n }",
"public void removeProperty(Object key) {\r\n\t\tproperties.remove(key);\r\n\t}",
"public Builder clearItems() {\n if (itemsBuilder_ == null) {\n items_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n itemsBuilder_.clear();\n }\n return this;\n }",
"public Config(Properties props) {\n entries = (Properties)props.clone();\n }",
"public Builder clearItem() {\n if (itemBuilder_ == null) {\n item_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000080);\n onChanged();\n } else {\n itemBuilder_.clear();\n }\n return this;\n }",
"public Builder clearAdditionalBindings() {\n copyOnWrite();\n instance.clearAdditionalBindings();\n return this;\n }",
"public Proposal clearTagsEntries() {\n this.tags = null;\n return this;\n }",
"private void overrideProperties() throws BuildException {\n // remove duplicate properties - last property wins\n // Needed for backward compatibility\n Set set = new HashSet();\n for (int i = properties.size() - 1; i >= 0; --i) {\n Property p = (Property) properties.get(i);\n if (p.getName() != null && !p.getName().equals(\"\")) {\n if (set.contains(p.getName())) {\n properties.remove(i);\n } else {\n set.add(p.getName());\n }\n }\n }\n Enumeration e = properties.elements();\n while (e.hasMoreElements()) {\n Property p = (Property) e.nextElement();\n p.setProject(newProject);\n p.execute();\n }\n getProject().copyInheritedProperties(newProject);\n }",
"public Builder clearBuild() {\n copyOnWrite();\n instance.clearBuild();\n return this;\n }",
"public Object removeProperty( String key );",
"public Configuration addPropertiesEntry(String key, String value) {\n if (null == this.properties) {\n this.properties = new java.util.HashMap<String,String>();\n }\n if (this.properties.containsKey(key))\n throw new IllegalArgumentException(\"Duplicated keys (\" + key.toString() + \") are provided.\");\n this.properties.put(key, value);\n return this;\n }",
"public Builder clearMetadata() { copyOnWrite();\n instance.clearMetadata();\n return this;\n }",
"public Builder clearGet() {\n copyOnWrite();\n instance.clearGet();\n return this;\n }",
"public Builder clearResources() {\n resources_ = com.google.protobuf.LazyStringArrayList.EMPTY;\n bitField0_ = (bitField0_ & ~0x00000004);\n onChanged();\n return this;\n }",
"public Builder clearMemo() {\n copyOnWrite();\n instance.clearMemo();\n return this;\n }",
"public Builder clearMemo() {\n copyOnWrite();\n instance.clearMemo();\n return this;\n }",
"public Builder clearMemo() {\n copyOnWrite();\n instance.clearMemo();\n return this;\n }",
"public Builder clearHeight() {\n copyOnWrite();\n instance.clearHeight();\n return this;\n }",
"public Object removeProperty( Object propertyId ) {\n return nodeProperties != null ? nodeProperties.remove(propertyId) : null;\n }",
"public Element createJDOMRepresentation(PropertySet properties){\n\t\t\n\t\t//Create an empty \"root\" element\n\t\tElement rootProp = new Element(\"properties\");\n\t\trootProp.setName(\"properties\");\n\t\t\n\t\t//Iterate through the properties of this PropertySet\n\t\tIterator<Property> iterator = properties.iterator();\n\t\twhile(iterator.hasNext()){\n\t\t\t\n\t\t\t//Get the current Property\n\t\t\tProperty property = iterator.next();\n\t\t\t\n\t\t\t//Create a new Element representing this property\n\t\t\tElement prop = new Element(\"property\");\n\t\t\t\n\t\t\t//Add the appropriate attributes\n\t\t\tprop.setAttribute(\"name\", property.getName());\n\t\t\tprop.setAttribute(\"type\",String.valueOf(property.getMeasure().getType()));\n\t\t\tprop.setAttribute(\"description\", property.getDescription());\n\t\t\tprop.setAttribute(\"positive_impact\", String.valueOf(property.isPositive()));\n\t\t\t\n\t\t\t//TODO: Check how to get rid of this if statements - IDEA: Initialize these fields at value \"\"\n\t\t\tif(property.getMeasure().getMetricName() != null){\n\t\t\t\tprop.setAttribute(\"metricName\", property.getMeasure().getMetricName());\n\t\t\t}else{\n\t\t\t\tprop.setAttribute(\"metricName\", \"\");\n\t\t\t}\n\t\t\t\n\t\t\tif(property.getMeasure().getRulesetPath() != null){\n\t\t\t\tprop.setAttribute(\"ruleset\", property.getMeasure().getRulesetPath());\n\t\t\t}else{\n\t\t\t\tprop.setAttribute(\"ruleset\", \"\");\n\t\t\t}\n\t\t\tprop.setAttribute(\"tool\", property.getMeasure().getTool());\n\t\t\t//Save the thresholds as well (ascending order) \n\t\t\t//Create a node (element) containing the thresholds of the property\n\t\t\tElement thresholds = new Element(\"thresholds\");\n\t\t\tfor(int i = 0; i < property.getThresholds().length; i++){\n\t\t\t\t\n\t\t\t\t//Create a threshold Element\n\t\t\t\tElement t = new Element(\"threshold\");\n\t\t\t\t\n\t\t\t\t//Set the appropriate value of the threshold\n\t\t\t\tt.setText(String.valueOf(property.getThresholds()[i]));\n\t\t\t\t\n\t\t\t\t//Attach the current threshold element to the element named \"thresholds\"\n\t\t\t\tthresholds.addContent(t);\n\t\t\t}\n\t\t\t\n\t\t\t//Attach the \"thresholds\" sub element to the \"property\" element\n\t\t\tprop.addContent(thresholds);\n\t\t\t\n\t\t\t//Attach the \"property\" element to the \"properties\" parent element\n\t\t\trootProp.addContent(prop);\n\t\t}\n\t\t\n\t\t//Return the \"root\" element of the properties\n\t\treturn rootProp;\t\n\t}",
"public void removeProperty(String key) {\n\t\tthis.properties.remove(key);\n\t}",
"public Set<ConfigProperty> values() {\n return new HashSet<>(_properties.values());\n }",
"public void dropNullValueProperties(){\n if(properties!=null){\n final Iterator<Map.Entry<String,Object>> iterator = properties.entrySet().iterator();\n for (;iterator.hasNext();) {\n final Object value = iterator.next().getValue();\n if(value == null){\n iterator.remove();\n }\n }\n }\n }",
"public final GetHTTP removeUrl() {\n properties.remove(URL_PROPERTY);\n return this;\n }",
"public Builder clearRefuse() {\n copyOnWrite();\n instance.clearRefuse();\n return this;\n }",
"public Builder clearContents() {\n bitField0_ = (bitField0_ & ~0x00000004);\n contents_ = getDefaultInstance().getContents();\n onChanged();\n return this;\n }",
"public\tvoid\tsetRemovedProperties(List<JsClass.Property> removedProperties) {\n\t\tthis.removedProperties = removedProperties;\n\t}",
"public synchronized void update() {\n // set lastCheck first to reduce risk of recursive calls\n this.lastCheck = System.currentTimeMillis();\n if (getChecksum() != this.lastChecksum) {\n // First collect properties into a temporary collection,\n // in a second step copy over new properties,\n // and in the final step delete properties which have gone.\n ResourceProperties temp = new ResourceProperties();\n temp.setIgnoreCase(this.ignoreCase);\n\n // first of all, properties are load from default properties\n if (this.defaultProperties != null) {\n this.defaultProperties.update();\n temp.putAll(this.defaultProperties);\n }\n\n // next we try to load properties from the application's\n // repositories, if we belong to any application\n if (this.resourceName != null) {\n Iterator iterator = this.app.getRepositories().iterator();\n while (iterator.hasNext()) {\n try {\n RepositoryInterface repository = (RepositoryInterface) iterator.next();\n ResourceInterface res = repository.getResource(this.resourceName);\n if (res != null && res.exists()) {\n\t\t\t\t\t\t\tInputStreamReader reader = new InputStreamReader(\n\t\t\t\t\t\t\t\t\tres.getInputStream());\n\t\t\t\t\t\t\ttemp.load(reader);\n\t\t\t\t\t\t\treader.close();\n }\n } catch (IOException iox) {\n iox.printStackTrace();\n }\n }\n }\n\n // if these are subproperties, reload them from the parent properties\n if (this.parentProperties != null && this.prefix != null) {\n this.parentProperties.update();\n Iterator it = this.parentProperties.entrySet().iterator();\n int prefixLength = this.prefix.length();\n while (it.hasNext()) {\n Map.Entry entry = (Map.Entry) it.next();\n String key = entry.getKey().toString();\n if (key.regionMatches(this.ignoreCase, 0, this.prefix, 0, prefixLength)) {\n temp.put(key.substring(prefixLength), entry.getValue());\n }\n }\n\n }\n\n // at last we try to load properties from the resource list\n if (this.resources != null) {\n Iterator iterator = this.resources.iterator();\n while (iterator.hasNext()) {\n try {\n ResourceInterface res = (ResourceInterface) iterator.next();\n if (res.exists()) {\n\t\t\t\t\t\t\tInputStreamReader reader = new InputStreamReader(\n\t\t\t\t\t\t\t\t\tres.getInputStream());\n\t\t\t\t\t\t\ttemp.load(reader);\n\t\t\t\t\t\t\treader.close();\n }\n } catch (IOException iox) {\n iox.printStackTrace();\n }\n }\n }\n\n // Copy over new properties ...\n putAll(temp);\n // ... and remove properties which have been removed.\n Iterator it = super.keySet().iterator();\n while (it.hasNext()) {\n if (!temp.containsKey(it.next())) {\n it.remove();\n }\n }\n // copy new up-to-date keyMap to ourself\n this.keyMap = temp.keyMap;\n\n this.lastChecksum = getChecksum();\n this.lastCheck = this.lastModified = System.currentTimeMillis();\n }\n }",
"public Builder clearDelete() {\n copyOnWrite();\n instance.clearDelete();\n return this;\n }",
"void addOrReplaceProperty(Property prop, Collection<Property> properties);",
"private void deleteNodeProperties(int nodeIndex) {\n synchronized(AlertCorrelationEngine.class) {\n for (int i = 0; i < propertiesNode[nodeIndex].size(); i++) {\n \n AlertTreeNodeLeaf leaf =\n (AlertTreeNodeLeaf) propertiesNode[nodeIndex].get(i);\n if (leaf != null) {\n propertiesMap.remove(leaf.getPath());\n }\n }\n servicesNode[nodeIndex].clear();\n propertiesNode[nodeIndex].clear();\n }\n }",
"public Builder clearMockUpdates() {\n copyOnWrite();\n instance.clearMockUpdates();\n return this;\n }",
"@CanIgnoreReturnValue\n @NonNull\n public AppSearchSchema.Builder addProperty(@NonNull PropertyConfig propertyConfig) {\n Preconditions.checkNotNull(propertyConfig);\n resetIfBuilt();\n String name = propertyConfig.getName();\n if (!mPropertyNames.add(name)) {\n throw new IllegalSchemaException(\"Property defined more than once: \" + name);\n }\n mPropertyBundles.add(propertyConfig.mBundle);\n return this;\n }",
"public Builder clearProperty2() {\n bitField0_ = (bitField0_ & ~0x00000010);\n property2_ = 0;\n \n return this;\n }",
"public Builder clearValue() {\n value_ = emptyLongList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }",
"public Builder clearStats() {\n copyOnWrite();\n instance.clearStats();\n return this;\n }",
"public Builder clearContents() {\n bitField0_ = (bitField0_ & ~0x00000001);\n contents_ = getDefaultInstance().getContents();\n onChanged();\n return this;\n }",
"Properties modifyProperties(Properties properties);",
"public static void deleteAllProperties(Model model,\torg.ontoware.rdf2go.model.node.Resource instanceResource) {\r\n\t\tBase.deleteAllProperties(model, instanceResource);\r\n\t}",
"public Builder clearArguments() {\n arguments.clear();\n return this;\n }",
"public Builder clearShirt() {\n bitField0_ = (bitField0_ & ~0x00000008);\n shirt_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearInputs() {\n if (inputsBuilder_ == null) {\n inputs_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n inputsBuilder_.clear();\n }\n return this;\n }",
"public Builder clearInputs() {\n if (inputsBuilder_ == null) {\n inputs_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n inputsBuilder_.clear();\n }\n return this;\n }",
"public Builder clearInputs() {\n if (inputsBuilder_ == null) {\n inputs_ = java.util.Collections.emptyList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n } else {\n inputsBuilder_.clear();\n }\n return this;\n }",
"public Builder clearX() {\n copyOnWrite();\n instance.clearX();\n return this;\n }",
"public Builder clearItem() {\n item_ = emptyIntList();\n bitField0_ = (bitField0_ & ~0x00000001);\n onChanged();\n return this;\n }",
"public Builder clearObj() {\n\n obj_ = getDefaultInstance().getObj();\n onChanged();\n return this;\n }",
"public Builder clearMetadata() {\n bitField0_ = (bitField0_ & ~0x00000004);\n metadata_ = null;\n if (metadataBuilder_ != null) {\n metadataBuilder_.dispose();\n metadataBuilder_ = null;\n }\n onChanged();\n return this;\n }",
"public Builder clearDelta() {\n \n delta_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearMetadata() {\n bitField0_ = (bitField0_ & ~0x00000008);\n metadata_ = null;\n if (metadataBuilder_ != null) {\n metadataBuilder_.dispose();\n metadataBuilder_ = null;\n }\n onChanged();\n return this;\n }",
"public final ListS3 removePrefix() {\n properties.remove(PREFIX_PROPERTY);\n return this;\n }",
"public FormPropertiesImpl(final HeterogMap<String> properties) {\n\t\tif (properties == null) throw new IllegalArgumentException(\"formProperties cannot be null, only empty\");\n\t\tthis.properties = HeterogCollections.unmodifiableMap(properties);\n\t}",
"public Builder clearTime() {\n copyOnWrite();\n instance.clearTime();\n return this;\n }",
"public Builder clearValue() {\n \n value_ = getDefaultInstance().getValue();\n onChanged();\n return this;\n }",
"public Builder clearValue() {\n \n value_ = getDefaultInstance().getValue();\n onChanged();\n return this;\n }",
"public Builder clearShoes() {\n bitField0_ = (bitField0_ & ~0x00000040);\n shoes_ = 0;\n onChanged();\n return this;\n }",
"public Builder clearH() {\n \n h_ = getDefaultInstance().getH();\n onChanged();\n return this;\n }",
"public final GetHTTP removePassword() {\n properties.remove(PASSWORD_PROPERTY);\n return this;\n }"
] |
[
"0.6061104",
"0.5972409",
"0.59674305",
"0.55438787",
"0.5246091",
"0.51421905",
"0.5137588",
"0.49936852",
"0.4928913",
"0.49229226",
"0.4865418",
"0.48078623",
"0.48007727",
"0.4786914",
"0.47828078",
"0.47824925",
"0.47748718",
"0.4760511",
"0.4748984",
"0.46705902",
"0.46628362",
"0.46570334",
"0.46442887",
"0.46442887",
"0.46437034",
"0.46121338",
"0.45902047",
"0.45842245",
"0.4557893",
"0.45248535",
"0.45194465",
"0.45045924",
"0.44909316",
"0.4481113",
"0.4478919",
"0.44749776",
"0.4474476",
"0.44724232",
"0.44540167",
"0.44349846",
"0.44343513",
"0.44305173",
"0.44303888",
"0.44190744",
"0.4417893",
"0.44091392",
"0.43966377",
"0.43939695",
"0.4381253",
"0.43738982",
"0.43630472",
"0.43586078",
"0.43547118",
"0.43497282",
"0.43419385",
"0.43361744",
"0.43283445",
"0.43283445",
"0.43283445",
"0.43265578",
"0.43256825",
"0.43225336",
"0.43180966",
"0.43015406",
"0.4278998",
"0.42630315",
"0.42625004",
"0.42529288",
"0.42468625",
"0.4245582",
"0.4238788",
"0.42363825",
"0.4234406",
"0.42342907",
"0.42290035",
"0.42214411",
"0.42175856",
"0.42156893",
"0.41904756",
"0.41899487",
"0.41768685",
"0.41654795",
"0.41595846",
"0.41527858",
"0.41527858",
"0.41527858",
"0.4151654",
"0.4150585",
"0.41481104",
"0.414447",
"0.41420034",
"0.41365287",
"0.4135381",
"0.41318282",
"0.4130118",
"0.4129612",
"0.4129612",
"0.4125247",
"0.41242474",
"0.41239598"
] |
0.6915221
|
0
|
Returns a string representation of this object; useful for testing and debugging.
|
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getClassification() != null) sb.append("Classification: " + getClassification() + ",");
if (getConfigurations() != null) sb.append("Configurations: " + getConfigurations() + ",");
if (getProperties() != null) sb.append("Properties: " + getProperties() );
sb.append("}");
return sb.toString();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String toString() { return stringify(this, true); }",
"public String toString() {\n StringWriter writer = new StringWriter();\n this.write(writer);\n return writer.toString();\n }",
"@Override\n public String toString() {\n // TODO: Using Serializer\n return Serializer.toByteArray(this).toString();\n }",
"public String toString()\n\t{\n\t\treturn Printer.stringify(this, false);\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"public String toString() {\n\t\treturn this.toJSON().toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn toStringBuilder(new StringBuilder()).toString();\n\t}",
"@Override()\n public String toString()\n {\n final StringBuilder buffer = new StringBuilder();\n toString(buffer);\n return buffer.toString();\n }",
"public String toString() {\n return ToStringBuilder.reflectionToString(this);\n }",
"@Override\n public String toString() {\n return new Gson().toJson(this);\n }",
"public String toString() {\n\t\treturn toString(this);\n\t}",
"@Override\n public String toString() {\n return new JSONSerializer().serialize(this);\n }",
"public String toString() {\n\t\treturn toString(true);\n\t}",
"@Override\n public final String toString() {\n return asString(0, 4);\n }",
"@Override\n\tpublic String toString() {\n\t\treturn toText();\n\t}",
"@Override\n public String toString() {\n return toString(false, true, true, null);\n }",
"public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}",
"public String toString() {\n\t\treturn EPPUtil.toString(this);\n\t}",
"public String toString() {\n\t\treturn toString(0, 0);\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\tString str = \"\";\r\n\t\treturn str;\r\n\t}",
"@Override\n public String toString() {\n return gson.toJson(this);\n }",
"@Override\n public String toString() {\n String str = \"\";\n\n //TODO: Complete Method\n\n return str;\n }",
"@Override\n public String toString() {\n ByteArrayOutputStream bs = new ByteArrayOutputStream();\n PrintStream out = new PrintStream(bs);\n output(out, \"\");\n return bs.toString();\n }",
"@Override\r\n public String toString() {\r\n return JsonSerializer.SerializeObject(this);\r\n }",
"public String toString() {\n return toDisplayString();\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"@Override\n public String toString() {\n return JsonSerializer.SerializeObject(this);\n }",
"public String toString()\r\n\t{\r\n\t\tStringBuffer OutString = new StringBuffer();\r\n\t\t// Open tag\r\n\t\tOutString.append(\"<\");\r\n\t\t// Add the object's type\r\n\t\tOutString.append(getType());\r\n\t\t// attach the ID if required.\r\n\t\tif (DEBUG)\r\n\t\t\tOutString.append(getObjID());\r\n\t\t// add the class attribute if required; default: don't.\r\n\t\tif (getIncludeClassAttribute() == true)\r\n\t\t\tOutString.append(getClassAttribute());\r\n\t\t// Add any transformation information,\r\n\t\t// probably the minimum is the x and y values.\r\n\t\t// again this is new to Java 1.4;\r\n\t\t// this function returns a StringBuffer.\r\n\t\tOutString.append(getAttributes());\r\n\t\t// close the tag.\r\n\t\tOutString.append(\">\");\r\n\t\tOutString.append(\"&\"+entityReferenceName+\";\");\r\n\t\t// close tag\r\n\t\tOutString.append(\"</\");\r\n\t\tOutString.append(getType());\r\n\t\tOutString.append(\">\");\r\n\r\n\t\treturn OutString.toString();\r\n\t}",
"@Override\n public String toString() {\n final Map<String, Object> augmentedToStringFields = Reflect.getStringInstanceVarEntries(this);\n augmentToStringFields(augmentedToStringFields);\n return Reflect.joinStringMap(augmentedToStringFields, this);\n }",
"@Override\n public String toString() {\n ObjectMapper mapper = new ObjectMapper();\n try {\n return mapper.writeValueAsString(this);\n } catch (JsonProcessingException e) {\n return null;\n }\n }",
"@Override\n public String toString() {\n return new GsonBuilder().serializeNulls().create().toJson(this).toString();\n }",
"public String toString() {\n\t\treturn super.toString();\n\t\t// This gives stack overflows:\n\t\t// return ToStringBuilder.reflectionToString(this);\n\t}",
"public String toString()\n\t{\n\t\tString result = \"\";\n\t\tresult += this.data;\n\t\treturn result;\n\t}",
"@Override public String toString();",
"@Override\n\tpublic String toString() {\n\t\ttry {\n\t\t\treturn this.toJSONString(0);\n\t\t} catch (Exception e) {\n\t\t\treturn null;\n\t\t}\n\t}",
"public synchronized String toString() {\n StringBuffer oBuffer = new StringBuffer();\n\n oBuffer\n .append(\"Preprocessing params: \").append(this.oPreprocessingParams).append(\"\\n\")\n .append(\"Feature extraction params: \").append(this.oFeatureExtractionParams).append(\"\\n\")\n .append(\"Classification params: \").append(this.oClassificationParams);\n\n return oBuffer.toString();\n }",
"public String toString(){\r\n\t\tString superString = super.toString();\r\n\t\tStringBuilder builder = new StringBuilder();\r\n\t\t//Add the object to the string\r\n\t\tbuilder.append(\". \");\r\n\t\tif (this.error != null) {\r\n\t\t\tbuilder.append(error.toString());\r\n\t\t\tbuilder.append(\". \");\r\n\t\t}\r\n\t\tbuilder.append(\"Object: \");\r\n\t\tbuilder.append(object.toString());\r\n\t\tif (this.recordRoute)\r\n\t\t\tbuilder.append(\", [RECORD_ROUTE]\");\r\n\t\tif (this.reRouting) \r\n\t\t\tbuilder.append(\", [RE-ROUTING]\");\r\n\t\t//Add the masks to the string\r\n\t\tif (this.mask != null) {\r\n\t\t\tbuilder.append(\", label set: \");\r\n\t\t\tbuilder.append(mask.toString());\r\n\t\t}\r\n\t\treturn superString.concat(builder.toString());\r\n\t}",
"public final String toString() {\n\t\tStringWriter write = new StringWriter();\n\t\tString out = null;\n\t\ttry {\n\t\t\toutput(write);\n\t\t\twrite.flush();\n\t\t\tout = write.toString();\n\t\t\twrite.close();\n\t\t} catch (UnsupportedEncodingException use) {\n\t\t\tuse.printStackTrace();\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t\treturn (out);\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn JSONObject.toJSONString(this);\r\n\t}",
"@Override\n public String toString()\n {\n return this.toLsString();\n }",
"public String toString() {\n\t\t//TODO add your own field name here\t\t\n\t\t//return buffer.append(this.yourFieldName).toString();\n\t\treturn \"\";\n\t}",
"public String toString() {\n\treturn createString(data);\n }",
"public String toString() {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tthis.createSpecSection(buffer);\n\t\tthis.createOperatorSection(buffer);\n\t\treturn buffer.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn Json.pretty( this );\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn \"\";\r\n\t}",
"@Override\n public String toString() {\n Gson gson = new Gson();\n\n String json = gson.toJson(this);\n System.out.println(\"json \\n\" + json);\n return json;\n }",
"@Override\n\tpublic String toString() {\n\t\tif (repr == null)\n\t\t\trepr = toString(null);\n\n\t\treturn repr;\n\t}",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"public String serialize() {\n Gson gson = new Gson();\n return gson.toJson(this);\n }",
"@Override\r\n\tpublic String toString();",
"@Override String toString();",
"@Override\n public String toString() {\n return (this.str);\n }",
"@Override\n\tpublic String toString()\n\t{\n\t\treturn this.str;\n\t}",
"@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}",
"public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToString(\"ProjectName\", getProjectName()));\n buffer.append(objectToStringFK(\"DataProvider\", getDataProvider()));\n buffer.append(objectToStringFK(\"PrimaryInvestigator\", getPrimaryInvestigator()));\n buffer.append(objectToStringFK(\"CreatedBy\", getCreatedBy()));\n buffer.append(objectToString(\"CreatedTime\", getCreatedTime()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn \"\";\n\t}",
"public String toString(){\r\n\t\tString output=\"\";\r\n\t\toutput+=super.toString();\r\n\t\treturn output;\r\n\t}",
"public String toString() {\n\t\treturn this;\n\t}",
"public String toString() {\n\t\treturn super.toString();\n\t}",
"public String toString() {\n\t\treturn super.toString();\n\t}",
"public String toString() {\n StringBuffer buffer = new StringBuffer();\n\n buffer.append(getClass().getName());\n buffer.append(\"@\");\n buffer.append(Integer.toHexString(hashCode()));\n buffer.append(\" [\");\n buffer.append(objectToString(\"Id\", getId()));\n buffer.append(objectToStringFK(\"Project\", getProject()));\n buffer.append(objectToStringFK(\"User\", getUser()));\n buffer.append(objectToString(\"Status\", getStatus()));\n buffer.append(objectToString(\"LastActivityDate\", getLastActivityDate()));\n buffer.append(objectToString(\"HasPiSeen\", getHasPiSeen()));\n buffer.append(objectToString(\"HasDpSeen\", getHasDpSeen()));\n buffer.append(objectToString(\"HasAdminSeen\", getHasAdminSeen()));\n buffer.append(objectToString(\"HasRequestorSeen\", getHasRequestorSeen()));\n buffer.append(objectToString(\"EmailStatus\", getEmailStatus()));\n buffer.append(\"]\");\n\n return buffer.toString();\n }",
"@Override\r\n public String toString();",
"public String toString() {\r\n\t\t\r\n\t\treturn super.toString();\r\n\t\t\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"@Override\r\n\tpublic String toString() {\n\t\treturn super.toString();\r\n\t}",
"public String toString ( ) {\r\n String returnString = _name + \"{ id: \" + _uniqueID + \" pos: [\"+ getPosition().getPosition() + \"] }\";\r\n return returnString;\r\n }",
"public String toString()\r\n\t{\r\n\t\treturn toCharSequence().toString();\r\n\t}",
"@Override\r\n String toString();",
"@Override\n public String toString() {\n return value();\n }",
"@Override\n public String toString()\n {\n return Arrays.toString(this.toArray());\n }",
"public String toString() {\t\t\t\t\t\r\n\t\treturn super.toString();\r\n\t}",
"@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}",
"@Override\n public String toString()\n {\n StringBuilder builder = new StringBuilder();\n dump(builder, 0, '\\'');\n return builder.toString();\n }",
"@Override\n\tpublic String toString() {\n\t\treturn new StringBuilder()\n\t\t\t.append(this.getClass().getSimpleName())\n\t\t\t.append(\" { id:\").append(id)\n\t\t\t.append(\", version:\").append(version)\n\t\t\t.append(\" }\")\n\t\t\t.toString();\n\t}",
"@Override\n public String toString() {\n return mString;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn this.toAnticipatedString();\n\t}",
"public String toString(){\n\t\treturn \"<== at \" + time + \": \" + name + \", \" + type + \", \" + data + \"==>\"; \n\t}",
"@Override\n public String toString() {\n // TODO this is a sudo method only for testing puroposes\n return \"{name: 5aled, age:15}\";\n }",
"@Override\r\n public String toString() {\r\n return toSmartText().toString();\r\n }",
"@Override\n\tpublic String toString();",
"public String toString() {\n\t\tByteArrayOutputStream bos = new ByteArrayOutputStream();\n\n\t\tDocument document = XMLUtils.newDocument();\n\t\tdocument.appendChild(toXML(document));\n\t\tXMLUtils.write(bos, document);\n\n\t\treturn bos.toString();\n\t}",
"@Override\n public String toString() {\n return string;\n }",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}",
"@Override\n\tpublic String toString() {\n\t\treturn super.toString();\n\t}"
] |
[
"0.8683157",
"0.85115",
"0.84982616",
"0.84619015",
"0.8388398",
"0.8388398",
"0.82967556",
"0.8296591",
"0.8273532",
"0.8266389",
"0.8264453",
"0.8257445",
"0.8227678",
"0.8142639",
"0.81201446",
"0.81005955",
"0.80892855",
"0.80892855",
"0.8065512",
"0.8061759",
"0.8060815",
"0.79943335",
"0.79901737",
"0.7981884",
"0.79735917",
"0.7971996",
"0.7971996",
"0.7971996",
"0.7958978",
"0.79553366",
"0.7932715",
"0.79306763",
"0.79043746",
"0.7904065",
"0.78990185",
"0.78949785",
"0.78885007",
"0.7878708",
"0.78486717",
"0.7846077",
"0.7844563",
"0.78441226",
"0.78422505",
"0.7835668",
"0.78300136",
"0.7828919",
"0.78238523",
"0.78220224",
"0.78191584",
"0.78191584",
"0.7810494",
"0.7794261",
"0.7787267",
"0.7786093",
"0.77772653",
"0.77769005",
"0.7769246",
"0.7763385",
"0.77526337",
"0.77509063",
"0.77509063",
"0.7747754",
"0.7741253",
"0.77397496",
"0.7735773",
"0.7735773",
"0.7735773",
"0.7735773",
"0.7735773",
"0.7735773",
"0.77346385",
"0.77333665",
"0.77303845",
"0.77276254",
"0.7726654",
"0.7722288",
"0.7721954",
"0.7716266",
"0.7711521",
"0.7710691",
"0.77106684",
"0.77093047",
"0.77065593",
"0.77050966",
"0.76908726",
"0.76905745",
"0.7686871",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684",
"0.7682684"
] |
0.0
|
-1
|
google map API object to be added / constructor without group id songs, budget and destinations will be set later
|
public Group(String groupImage, int time, int date, String comment){
this.groupImage = groupImage;
this.meetingTime = time;
this.date = date;
this.comment = comment;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private void setUpMap() {\n // Crear all map elements\n mGoogleMap.clear();\n // Set map type\n mGoogleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n // If we cant find the location now, we call a Network Provider location\n if (mLocation != null) {\n // Create a LatLng object for the current location\n LatLng latLng = new LatLng(mLocation.getLatitude(), mLocation.getLongitude());\n // Show the current location in Google Map\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n // Draw the first circle in the map\n mCircleOptions = new CircleOptions().fillColor(0x5500ff00).strokeWidth(0l);\n // Zoom in the Google Map\n mGoogleMap.animateCamera(CameraUpdateFactory.zoomTo(15));\n\n // Zoom in the Google Map\n //icon = BitmapDescriptorFactory.fromResource(R.drawable.logo2);\n\n // Creation and settings of Marker Options\n mMarkerOptions = new MarkerOptions().position(latLng).title(\"You are here!\");//.icon(icon);\n // Creation and addition to the map of the Marker\n mMarker = mGoogleMap.addMarker(mMarkerOptions);\n // set the initial map radius and draw the circle\n drawCircle(RADIUS);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n MapsInitializer.initialize(mContext);\n gMap = googleMap;\n\n //you can move map here to item specific 'location'\n int pos = getAdapterPosition();\n\n LatLng latLng = new LatLng(6.42788, 3.4274513);\n LatLng NIGERIA = new LatLng(9.0611017, 4.1763482);\n\n gMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 15));\n gMap.addMarker(new MarkerOptions()\n .position(latLng)\n .draggable(false)\n .flat(true)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));\n }",
"private void setupMap() {\n int status = GooglePlayServicesUtil.isGooglePlayServicesAvailable(getBaseContext());\n \t\tif ( status != ConnectionResult.SUCCESS ) {\n \t\t\t// Google Play Services are not available.\n \t\t\tint requestCode = 10;\n \t\t\tGooglePlayServicesUtil.getErrorDialog( status, this, requestCode ).show();\n \t\t} else {\n \t\t\t// Google Play Services are available.\n \t\t\tif ( this.googleMap == null ) {\n \t\t\t\tFragmentManager fragManager = this.getSupportFragmentManager();\n \t\t\t\tSupportMapFragment mapFrag = (SupportMapFragment) fragManager.findFragmentById( R.id.edit_gpsfilter_area_google_map );\n \t\t\t\tthis.googleMap = mapFrag.getMap();\n \n \t\t\t\tif ( this.googleMap != null ) {\n \t\t\t\t\t// The Map is verified. It is now safe to manipulate the map.\n \t\t\t\t\tthis.configMap();\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n // Add a marker in Sydney, Australia,\n // and move the map's camera to the same location.\n LatLng daegu = new LatLng(35.888836, 128.6102997);\n\n for(int i =0; i < items.size();i++){\n Item item = items.get(i);\n double latitude = item.getLatitude();\n double longitude = item.getLongitude();\n //Log.d(\"MYGOOGLEMAP\",\"\"+latitude+\" \"+longitude);\n googleMap.addMarker(new MarkerOptions()\n .position(new LatLng(latitude, longitude))\n .anchor(0.5f, 0.5f)\n .title(item.getItem_name())\n .snippet(item.getItem_price_per_day()+\" won per a day\")\n //.flat(true)\n //.alpha(0.7f)//투명도\n //.icon(BitmapDescriptorFactory.fromBitmap(resizeMapIcons(item.getItem_image(),100,100)))\n );\n\n }\n// gmap.moveCamera(CameraUpdateFactory.newLatLngZoom(startingPoint,16));\n\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(daegu,14));\n }",
"public MapFragment() {\n // Required empty public constructor\n }",
"public MapGameRequest(String map){\n super(map);\n this.content=\"MapRequest\";\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n\n }",
"private void setupGoogleMap()\n {\n CameraUpdate cameraUpdate = CameraUpdateFactory.newLatLngZoom(new LatLng(45.5436018, 10.1886594), 10);\n googleMap.animateCamera(cameraUpdate);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n MapStyleOptions style = MapStyleOptions.loadRawResourceStyle(this.getApplicationContext(), R.raw.maps_night);\n mMap.setMapStyle(style);\n\n /*cmall=mMap.addMarker(new MarkerOptions()\n .position(CMALL)\n .title(\"CMALL\")\n .snippet(\"Population: 4,627,300\"));\n //.icon(BitmapDescriptorFactory.fromResource(R.drawable.lexicon)));\n cmall.setTag(0);*/\n\n\n /*//add a marker in Sydney and move the camera\n LatLng myfav = new LatLng(10.3395125, 123.9110532);//(-34, 151);\n mMap.addMarker(new MarkerOptions().position(myfav).title(\"My Favorite Mall\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(myfav));\n //Zooming mode\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n CameraUpdate update=CameraUpdateFactory.newLatLngZoom(myfav, 18);\n mMap.animateCamera(update);*/\n\n }",
"public MapBuilder() {\r\n map = new Map();\r\n json = new Gson();\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n RequestQueue queue = Volley.newRequestQueue(this);\n String gamesUrl = \"https://treasurehunt-mamn01.herokuapp.com/api/games\";\n\n StringRequest strRequest = new StringRequest(Request.Method.GET, gamesUrl,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n ArrayList<Game> games = Parser.generateGames(response);\n\n for (Game g : games) {\n Log.i(\"Maps\", \"Game (\" + g.getId() + \"): \" + g.getName());\n\n Marker m = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(g.getPosition().getLatitude(), g.getPosition().getLongitude()))\n .title(g.getName()));\n\n gameMarkers.put(m, g.getId());\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n Log.e(\"Maps\", error.toString());\n }\n });\n\n queue.add(strRequest);\n\n /*\n Marker m = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(55.711165, 13.207776)).title(\"First Game\"));\n gameMarkers.put(m, 1);\n\n m = mMap.addMarker(new MarkerOptions()\n .position(new LatLng(55.721001, 13.210863)).title(\"Delphi's Game\"));\n gameMarkers.put(m, 2);\n */\n\n locationManager = (LocationManager) getSystemService(Context.LOCATION_SERVICE);\n enableMyLocation();\n String provider = locationManager.getBestProvider(new Criteria(), true);\n Location location = getLastKnownLocation();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(\n new LatLng(location.getLatitude(), location.getLongitude()), 17.0f));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n LatLng shop = new LatLng(latitude, longitude);\n googleMap.addMarker(new MarkerOptions().position(shop)\n .title(shopName));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(shop));\n googleMap.animateCamera(CameraUpdateFactory.zoomIn());\n // Zoom out to zoom level 10, animating with a duration of 2 seconds.\n googleMap.animateCamera(CameraUpdateFactory.zoomTo(15), 2000, null);\n }",
"private void setUpMap() {\n if (mGoogleMap != null && mParkingField != null) {\n LatLng latLng = new LatLng(mParkingField.getLatitude(), mParkingField.getLongitude());\n mGoogleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16));\n mGoogleMap.addMarker(mMapFactory.createParkingFieldMakerOptions(mParkingField, getContext()));\n }\n }",
"private void buildGoogleApiClient() {\n Log.d(Constants.SERVICE_CREATED, Constants.GOOGLE_MAP_BUILDING);\n mGoogleApiClient = new GoogleApiClient.Builder(this)\n .addConnectionCallbacks(this)\n .addOnConnectionFailedListener(this)\n .addApi(com.google.android.gms.location.LocationServices.API)\n .build();\n Log.d(Constants.SERVICE_CREATED, Constants.GOOGLE_MAP_BUILT);\n createLocationRequest();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.getUiSettings().setZoomGesturesEnabled(true);\n // Add a marker in Sydney and move the camera\n\n for( JSONObject jo : this.ubicaciones )\n {\n try{\n Log.i(\"ubicacion\",\n \" lat : \" + jo.get(\"lat\")\n + \" lon : \" + jo.get(\"lon\")\n + \" alt : \" + jo.get(\"alt\")\n );\n LatLng marca = new LatLng( jo.getDouble(\"lat\"), jo.getDouble(\"lon\") );\n\n mMap.addMarker(\n new MarkerOptions()\n .position(marca)\n .icon(\n BitmapDescriptorFactory\n .defaultMarker(BitmapDescriptorFactory.HUE_BLUE)\n )\n );\n// .title(\"Marker in Sydney\"));\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(marca));\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n }",
"public void initGoogleMaps(){\n\n double lat = getIntent().getDoubleExtra(\"lat\", 0);\n double lng = getIntent().getDoubleExtra(\"lng\", 0);\n LatLng latLng = new LatLng(lat, lng);\n\n MapFragment mapFragment = (MapFragment) getFragmentManager().findFragmentById(R.id.map);\n GoogleMap googleMap = mapFragment.getMap();\n //googleMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(25.017273, 121.542012)));\n //googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16));\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(latLng, 16));\n\n\n MarkerOptions markerOptions = new MarkerOptions().position(latLng).title(\"here\");\n googleMap.addMarker(markerOptions);\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap){\n mMap = googleMap;\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n mMap.setOnMarkerClickListener(this);\n\n\n // Add a marker in Sydney and move the camera\n\n getData(All_urls.values.mapData);\n\n\n\n\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n //Settings for user Icon\r\n\r\n mMap = googleMap;\r\n mMap.setOnMarkerClickListener((GoogleMap.OnMarkerClickListener) this);\r\n\r\n Drawable circleDrawable = getResources().getDrawable(R.drawable.you_are_here_png);\r\n BitmapDescriptor markerIcon = getMarkerIconFromDrawable(circleDrawable);\r\n BitmapDescriptor markerTypeOfBuildings = getMarkerIconFromDrawableForEducation();\r\n\r\n if(_buildings_type.equals(\"Education\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForEducation(); }\r\n if(_buildings_type.equals(\"Administration\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForAdministration(); }\r\n if(_buildings_type.equals(\"Entertainment\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForEntertainment(); }\r\n if(_buildings_type.equals(\"Religion\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForReligion(); }\r\n if(_buildings_type.equals(\"Food\")){ markerTypeOfBuildings = getMarkerIconFromDrawableForFood(); }\r\n\r\n\r\n if(_university_name==\"\") {\r\n setUserLocation(markerIcon);\r\n }\r\n else{\r\n //Set all buildings on Map\r\n for(Build b: allBuildings_){\r\n LatLng buildingsPosition = new LatLng(b.getLatitude(), b.getLongitude());\r\n mMap.addMarker(new MarkerOptions().position(buildingsPosition).title(\"Building \"+b.getName()).icon(markerTypeOfBuildings).snippet(b.getDescription()));\r\n mMap.getUiSettings().setZoomControlsEnabled(true);\r\n // mMap.moveCamera(CameraUpdateFactory.newLatLng(position));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(buildingsPosition, zoom));\r\n }\r\n setUserLocation(markerIcon);\r\n //Nachat slushat tolko esly ACTION = ONLINE WALKING\r\n startListener();\r\n }\r\n\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng loc = new LatLng(v, v1);\n mMap.addMarker(new\n MarkerOptions().position(loc).title(\"0000000000\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(loc));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n updateLocationUI();\n getDeviceLocation();\n // Add a marker in Sydney and move the camera\n //float zoom = 15;\n //LatLng gbc = new LatLng(43.676209, -79.410703);\n //mMap.addMarker(new MarkerOptions().position(gbc).title(\"Marker in GBC\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(gbc, zoom));\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n this.googleMap = googleMap;\n this.googleMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n this.googleMap.setIndoorEnabled(false);\n this.googleMap.setBuildingsEnabled(true);\n\n // Set boundary for Karlsruhe\n LatLngBounds karlsruhe = new LatLngBounds(\n new LatLng(48.996694, 8.378687), new LatLng(49.024639, 8.423896));\n\n // Add a marker in Karlsruhe and move the camera\n LatLng euro = new LatLng(49.009927, 8.395140);\n LatLng shotz = new LatLng(49.008477, 8.396108);\n LatLng badbrau = new LatLng(49.011877, 8.394246);\n LatLng pinte = new LatLng(49.007908, 8.389647);\n LatLng strawberry = new LatLng(49.004179, 8.409696);\n LatLng flynn = new LatLng(49.004767, 8.390939);\n LatLng scruffy = new LatLng(49.011642, 8.395445);\n LatLng aposto = new LatLng(49.008791, 8.396359);\n LatLng koffer = new LatLng(49.008314, 8.391809);\n this.googleMap.addMarker(new MarkerOptions().position(shotz).title(\"Shotz\"));\n this.googleMap.addMarker(new MarkerOptions().position(badbrau).title(\"Badisches Brauhaus\"));\n this.googleMap.addMarker(new MarkerOptions().position(aposto).title(\"Aposto\"));\n this.googleMap.addMarker(new MarkerOptions().position(koffer).title(\"Der Kofferraum\"));\n this.googleMap.addMarker(new MarkerOptions().position(pinte).title(\"Die Pinte\"));\n this.googleMap.addMarker(new MarkerOptions().position(strawberry).title(\"Erdbeermund\"));\n this.googleMap.addMarker(new MarkerOptions().position(flynn).title(\"Flynn's Inn\"));\n this.googleMap.addMarker(new MarkerOptions().position(scruffy).title(\"Scruffy's\"));\n //googleMap.setLatLngBoundsForCameraTarget(karlsruhe);\n this.googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(euro, 17));\n this.googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(new CameraPosition.Builder(this.googleMap.getCameraPosition()).tilt(50).build()));\n\n\n /*\n if (ActivityCompat.checkSelfPermission(ctx, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED) {\n // TODO: Consider calling\n // Activity#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 Activity#requestPermissions for more details.\n this.googleMap.setMyLocationEnabled(true);\n }\n */\n this.googleMap.setMyLocationEnabled(true);\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng parque = new LatLng(latitud, longitud);\n mMap.addMarker(new MarkerOptions().position(parque).title(lugar).icon(BitmapDescriptorFactory.fromResource(R.drawable.icons8_terraria_48)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(parque));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitud, longitud),16.0f));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n MapAddress durban= new MapAddress(\"Gordon Rajapogal: Durban Teen Challenge\",\"Afrique du Sud\",\"Durban\",\"Newlands East\",-29.777830,30.988298,\"5/7 Marlin Grov Newlands East Durban\",0,\"0833448430\");\n MapAddress nigeria= new MapAddress(\"BETLAADA ADULT & TEEN CHALLENGE\",\"Nigeria\",\"Ibadan\",\"\",7.323658, 3.898848,\"42A UNIQUE ESTATE, SANYO , IBADAN, NIGERIA\",0,\"+234-810-508-7705\");\n MapAddress ghana= new MapAddress(\"Teen Challenge, Ghana.\",\"Ghana\",\"Koforidua\",\"Eastern Region\",6.065691, -0.252336,\"Hse No. 193A, Adweso, Koforidua, Eastern Region, Ghana.\",0,\"+233243841230\");\n MapAddress nairo= new MapAddress(\"Teen Challenge Kenya\",\"Kenya\",\"Nairobi\",\"Kiambu\",-1.197566, 36.845074,\"Mushroom Rd, Kiambu, Kenya\",0,\"+254 722 410751\");\n MapAddress nigeria_jos= new MapAddress(\"Teen Challenge Jos, Nigeria\",\"Nigeria\",\"Jos\",\"Plateu State\",9.897248, 8.896680,\" No 74 Liberty Boulevard Gwarandok, Jos Plateau State, Nigeria\",0,\"\");\n mMap.addMarker(new MarkerOptions().position(new LatLng(durban.getLat(),durban.getLng())).title(durban.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(nigeria.getLat(),nigeria.getLng())).title(nigeria.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(ghana.getLat(),ghana.getLng())).title(ghana.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(nairo.getLat(),nairo.getLng())).title(nairo.getOrganisation()));\n mMap.addMarker(new MarkerOptions().position(new LatLng(nigeria_jos.getLat(),nigeria_jos.getLng())).title(nigeria_jos.getOrganisation()));\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(new LatLng(durban.getLat(), durban.getLng())));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n if (servicesOK() /*&& initMap()*/) {\n try {\n\n /*MarkerOptions options = new MarkerOptions()\n .title(getString(R.string.landon_hotel) + \", \" + city)\n .position(new LatLng(lat, lng));\n mMap.addMarker(options);*/\n //onMapReady(mMap);\n\n\n LatLng zoom = new LatLng(-2.982996, 104.732918);\n\n// mMap.addMarker(new MarkerOptions().position(zoom).title(\"Marker in Palembang\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n mMap.getUiSettings().setAllGesturesEnabled(true);\n mMap.getUiSettings().setRotateGesturesEnabled(false);\n mMap.getUiSettings().setTiltGesturesEnabled(false);\n mMap.getUiSettings().setCompassEnabled(true);\n//\n mMap.setTrafficEnabled(true);\n\n Log.i(\"CEKDATA\",\"BEGINNING\");\n mMap.moveCamera(CameraUpdateFactory.newLatLng(zoom));\n mMap.animateCamera(CameraUpdateFactory.zoomTo(14), 2000, null);\n Log.i(\"CEKDATA\",\"Finishing\");\n\n } /*catch (IOException e) {\n Toast.makeText(this, getString(R.string.error_finding_hotel), Toast.LENGTH_SHORT).show();\n }*/ catch (Exception e) {\n Toast.makeText(this, e.getMessage(), Toast.LENGTH_SHORT).show();\n Log.d(\"Check this->\", e.getMessage());\n }\n\n\n api.bukan_parkir(googleMap, this);\n\n }\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Bratislava and move the camera\n LatLng bratislava = new LatLng(48.148598, 17.107748);\n mMap.addMarker(new MarkerOptions().position(bratislava).title(\"Marker in Bratislava\").snippet(\"Hope you go there\"));\n\n CameraPosition bratislavaCam = CameraPosition.builder().target(bratislava).zoom(16).bearing(0).build();\n\n mMap.moveCamera(CameraUpdateFactory.newCameraPosition(bratislavaCam));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n this.googleMap = googleMap;\n marker = googleMap.addMarker(markerOptions);\n googleMap.animateCamera(CameraUpdateFactory.newCameraPosition(cameraPosition));\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n }",
"public WMS100MapRequest() {\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n if(null!=sampleJsonModel){\n LatLng sydney = new LatLng(Double.valueOf(sampleJsonModel.getLocation().getLatitude()), Double.valueOf(sampleJsonModel.getLocation().getLongitude()));\n mMap.addMarker(new MarkerOptions().position(sydney).title(sampleJsonModel.getName()));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Double.valueOf(sampleJsonModel.getLocation().getLatitude()), Double.valueOf(sampleJsonModel.getLocation().getLongitude())), 12.0f));\n }\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n\n mMap.getUiSettings().setCompassEnabled(true); //Compass\n mMap.getUiSettings().setIndoorLevelPickerEnabled(true); //Indoor\n mMap.getUiSettings().setMapToolbarEnabled(true); //Map toolsbar\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n for (int i= 0; i < this.lista.size(); i++) {\n if ( i == 0) {\n LatLng micentro = new LatLng(lista.get(i).getLatitud(), lista.get(i).getLongitud());\n CameraPosition cameraPosition = new CameraPosition.Builder()\n .target(micentro).zoom(16).build();\n mMap.animateCamera(CameraUpdateFactory\n .newCameraPosition(cameraPosition));\n }\n MarkerOptions markerend = new MarkerOptions().position(\n new LatLng(lista.get(i).getLatitud(), lista.get(i).getLongitud())).title(lista.get(i).getTitle()).snippet(lista.get(i).getDescription());\n markerend.icon(BitmapDescriptorFactory\n .defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\n // adding marker\n mMap.addMarker(markerend);\n }\n\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap)\n {\n // Add a marker in Sydney and move the camera\n MapsInitializer.initialize(getContext());\n\n ArrayList<Player> list = null;\n Gson gson = new Gson();\n list = gson.fromJson(msp.getString(\"scores\", \"\"), new TypeToken<List<Player>>() {}.getType());\n\n int i = 1;\n LatLng pos = null;\n if(list != null)\n {\n for (Player score : list)\n {\n pos = new LatLng(score.getLat(), score.getLon());\n googleMap.addMarker(new MarkerOptions().position(pos).title((i++) + \") \" + score.getName()));\n }\n }\n\n if (pos != null)\n {\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(pos, googleMap.getMaxZoomLevel() / 2));\n }\n }",
"private MapContainer(MapProvider provider, String htmlApiKey) {\n super(new BorderLayout());\n internalNative = (InternalNativeMaps)NativeLookup.create(InternalNativeMaps.class);\n if(internalNative != null) {\n if(internalNative.isSupported()) {\n currentMapId++;\n mapId = currentMapId;\n PeerComponent p = internalNative.createNativeMap(mapId);\n \n // can happen if Google play services failed or aren't installed on an Android device\n if(p != null) {\n addComponent(BorderLayout.CENTER, p);\n return;\n }\n } \n internalNative = null;\n }\n if(provider != null) {\n internalLightweightCmp = new MapComponent(provider) {\n private boolean drg = false;\n\n @Override\n public void pointerDragged(int x, int y) {\n super.pointerDragged(x, y); \n drg = true;\n }\n\n @Override\n public void pointerDragged(int[] x, int[] y) {\n super.pointerDragged(x, y); \n drg = true;\n }\n\n @Override\n public void pointerReleased(int x, int y) {\n super.pointerReleased(x, y); \n if(!drg) {\n fireTapEvent(x, y);\n }\n drg = false;\n }\n\n };\n addComponent(BorderLayout.CENTER, internalLightweightCmp);\n } else {\n internalBrowser = new BrowserComponent();\n\n internalBrowser.putClientProperty(\"BrowserComponent.fireBug\", Boolean.TRUE);\n\n Location loc = LocationManager.getLocationManager().getLastKnownLocation();\n internalBrowser.setPage(\n \"<!DOCTYPE html>\\n\" +\n \"<html>\\n\" +\n \" <head>\\n\" +\n \" <title>Simple Map</title>\\n\" +\n \" <meta name=\\\"viewport\\\" content=\\\"initial-scale=1.0\\\">\\n\" +\n \" <meta charset=\\\"utf-8\\\">\\n\" +\n \" <style>\\n\" +\n \" /* Always set the map height explicitly to define the size of the div\\n\" +\n \" * element that contains the map. */\\n\" +\n \" #map {\\n\" +\n \" height: 100%;\\n\" +\n \" }\\n\" +\n \" /* Optional: Makes the sample page fill the window. */\\n\" +\n \" html, body {\\n\" +\n \" height: 100%;\\n\" +\n \" margin: 0;\\n\" +\n \" padding: 0;\\n\" +\n \" }\\n\" +\n \" </style>\\n\" +\n \" </head>\\n\" +\n \" <body>\\n\" +\n \" <div id=\\\"map\\\"></div>\\n\" +\n \" <script>\\n\" + \n \" var map;\\n\" +\n \" function initMap() {\\n\" +\n \" var origin = {lat: \"+ loc.getLatitude() + \", lng: \" + loc.getLongitude() + \"};\\n\" +\n \" map = new google.maps.Map(document.getElementById('map'), {\\n\" +\n \" center: origin,\\n\" +\n \" zoom: 8\\n\" +\n \" });\\n\" +\n \" var clickHandler = new ClickEventHandler(map, origin);\\n\" +\n \" }\\n\" +\n \" var ClickEventHandler = function(map, origin) {\\n\" +\n \" var self = this;\\n\" +\n \" this.origin = origin;\\n\" +\n \" this.map = map;\\n\" +\n \" //this.directionsService = new google.maps.DirectionsService;\\n\" +\n \" //this.directionsDisplay = new google.maps.DirectionsRenderer;\\n\" +\n \" //this.directionsDisplay.setMap(map);\\n\" +\n \" //this.placesService = new google.maps.places.PlacesService(map);\\n\" +\n \" //this.infowindow = new google.maps.InfoWindow;\\n\" +\n \" //this.infowindowContent = document.getElementById('infowindow-content');\\n\" +\n \" //this.infowindow.setContent(this.infowindowContent);\\n\" +\n \"\\n\" +\n// \" google.maps.event.addListener(this.map, 'click', function(evt) {\\n\" +\n// \" self.handleClick(evt);\\n\" +\n// \" });\" +\n \"this.map.addListener('click', this.handleClick.bind(this));\\n\" +\n \" };\\n\" +\n \" ClickEventHandler.prototype.handleClick = function(event) {\\n\" + \n \" //document.getElementById('map').innerHTML = 'foobar';\\n\" +\n \" cn1OnClickCallback(event);\" +\n \" };\\n\" +\n \" </script>\\n\" +\n \" <script src=\\\"https://maps.googleapis.com/maps/api/js?key=\" + \n htmlApiKey +\n \"&callback=initMap\\\"\\n\" +\n \" async defer></script>\\n\" +\n \" </body>\\n\" +\n \"</html>\", \"/\");\n browserContext = new JavascriptContext(internalBrowser);\n internalBrowser.addWebEventListener(\"onLoad\", new ActionListener() {\n public void actionPerformed(ActionEvent evt) {\n JSObject window = (JSObject)browserContext.get(\"window\");\n window.set(\"cn1OnClickCallback\", new JSFunction() {\n public void apply(JSObject self, Object[] args) {\n Log.p(\"Click\");\n }\n });\n }\n });\n addComponent(BorderLayout.CENTER, internalBrowser);\n }\n setRotateGestureEnabled(true);\n }",
"@Override\n public void onMapClick(LatLng latLng) {\n MarkerOptions markerOptions = new MarkerOptions();\n\n //Set position of market\n\n\n //markerOptions.position(latLng);\n markerOptions.position(defaultLocation);\n //set title marker\n markerOptions.title(defaultLocation.latitude + \": \" + defaultLocation.longitude);\n\n //removeall markers\n // googleMap.clear();\n //Animating to zoom the marker\n googleMap.animateCamera(CameraUpdateFactory.newLatLngZoom(\n defaultLocation, 10\n ));\n //Add marker on map\n googleMap.addMarker(markerOptions);\n\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng livraria = new LatLng(maps.getLatitude(), maps.getLongitude());\n if(this.maps.getId() == 1){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Saraiva - Praia de Belas\"));\n } else if(this.maps.getId() == 2){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Cultura - Bourbon Country\"));\n } else if(this.maps.getId() == 3){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Cameron\"));\n } else if(this.maps.getId() == 4){\n mMap.addMarker(new MarkerOptions().position(livraria).title(\"Livraria Siciliano\"));\n }\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(livraria, 15f));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n\n MarkerOptions markerOptions =new MarkerOptions().position(x).title(\"abane ramdane\");\n CircleOptions circleOptions = new CircleOptions().center(x).radius(1000).fillColor(0xffffff0).strokeColor(0xffff0000).strokeWidth(2);\n markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.house));\n mMap.addMarker(markerOptions);\n mMap.addCircle(circleOptions);\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(x, 13));\n }",
"public void setGoogleMap(GoogleMap googleMap){\n this.googleMap = googleMap;\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n }",
"protected LocationGroup() {\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n final LatLng latLng = new LatLng(latitude, longitude);\n mMap.addCircle(new CircleOptions()\n .center(latLng)\n .radius(75)\n .strokeWidth(2f));\n CameraUpdate center=\n CameraUpdateFactory.newLatLng(latLng);\n CameraUpdate zoom=CameraUpdateFactory.zoomTo(21);\n\n mMap.moveCamera(center);\n mMap.animateCamera(zoom);\n Marker mark= mMap.addMarker(new MarkerOptions()\n .position(latLng)\n .title(\"I'm here...\")\n .snippet(\"Its My Location\")\n .rotation((float) -15.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n\n Tmarker=mMap.addMarker(new MarkerOptions()\n .snippet(tuition_id)\n .rotation((float)12.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE))\n .position(new LatLng(lat,lan)));\n\n\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n if(marker!=null) {\n marker.remove();\n }\n marker=mMap.addMarker(new MarkerOptions()\n .snippet(\"My Home\")\n .rotation((float)0.0)\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_BLUE))\n .position(latLng));\n }\n });\n\n//.fillColor(0x55ffff99));\n // Add a marker in Sydney and move the camera\n /*LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n Intent intent = getIntent();\n String title=intent.getStringExtra(\"title\");\n Double lat = intent.getExtras().getDouble(\"latitude\");\n Double lng = intent.getExtras().getDouble(\"longitude\");\n LatLng latLng= new LatLng(lat,lng);\n MarkerOptions markerOptions = new MarkerOptions()\n .position(latLng)\n .title(title)\n .anchor((float) 0.5, (float) 0.5);\n //.snippet(\"Время: \" + MainActivity.time.get(MainActivity.position));\n markerOptions.icon(BitmapDescriptorFactory.fromResource(R.drawable.marker));\n mMap.addMarker(markerOptions);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(latLng));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n /* mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n //mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));*/\n LatLng ifto = new LatLng(-10.199202218157746, -48.31158433109522);\n mMap = googleMap;\n mMap.setOnCameraIdleListener(this);\n mMap.addMarker(new MarkerOptions().position(ifto).title(\"IFTO Campus Palmas\"));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n UiSettings uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(true);\n\n // Add a marker in Sydney and move the camera\n LatLng barcelona = new LatLng(41.3887901, 2.1589899);\n LatLng marcador1 = new LatLng(41.379564, 2.167203);\n LatLng marcador2 = new LatLng(41.394327, 2.191843);\n LatLng marcador3 = new LatLng(41.398121, 2.199290);\n LatLng marcador4 = new LatLng(41.386235, 2.146300);\n LatLng marcador5 = new LatLng(41.395933, 2.136832);\n LatLng marcador6 = new LatLng(41.441696, 2.237285);\n LatLng marcador7 = new LatLng(41.457493, 2.255982);\n LatLng marcador8 = new LatLng(41.316202, 2.028248);\n LatLng marcador9 = new LatLng(41.333813, 2.035098);\n LatLng marcador10 = new LatLng(41.357954, 2.061158);\n\n\n mMap.addMarker(new MarkerOptions().position(marcador1).title(\"Los amigos\"));\n mMap.addMarker(new MarkerOptions().position(marcador2).title(\"El dorado\"));\n mMap.addMarker(new MarkerOptions().position(marcador3).title(\"Juan y Luca\"));\n mMap.addMarker(new MarkerOptions().position(marcador4).title(\"Durums\"));\n mMap.addMarker(new MarkerOptions().position(marcador5).title(\"Restaurante Jose Fina\"));\n mMap.addMarker(new MarkerOptions().position(marcador6).title(\"Los Hermanos\"));\n mMap.addMarker(new MarkerOptions().position(marcador7).title(\"Paella para todos\"));\n mMap.addMarker(new MarkerOptions().position(marcador8).title(\"Señor Pollo\"));\n mMap.addMarker(new MarkerOptions().position(marcador9).title(\"Restaurante Boliviano\"));\n mMap.addMarker(new MarkerOptions().position(marcador10).title(\"Laguna Alalay\"));\n\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(barcelona,12), 4000,null);\n mMap.setMaxZoomPreference(1000);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n String info = sTitle;\n // Add a marker in Sydney and move the camera\n LatLng pos = new LatLng(latitude, longitude);\n mMap.addMarker(new MarkerOptions().position(pos).title(info));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(pos));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(pos, 8));\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng hn = new LatLng(14.079526, -87.180662);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(hn));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(hn,7));\n helperFacturacion = new FacturacionHelper(MapListClientesActivity.this);\n\n\n addMarkers();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n drawGokongweiBuilding();\n getContinuousLocationUpdates();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n googleMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n googleMap.setBuildingsEnabled(false);\n\n LatLng ncf = new LatLng(27.3848206, -82.5587668);\n //mMap.addMarker(new MarkerOptions().position(ncf).title(\"Marker in NCF\"));\n //mMap.moveCamera(CameraUpdateFactory.newLatLng(ncf));\n\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(ncf, 18));\n\n BitmapDescriptor marker = BitmapDescriptorFactory.fromResource(R.mipmap.red_marker);\n\n mBP1 = mMap.addMarker(new MarkerOptions().position(BP1).title(\"Out or Order\").icon(marker));\n mBP2 = mMap.addMarker(new MarkerOptions().position(BP2).icon(marker));\n mBP3 = mMap.addMarker(new MarkerOptions().position(BP3).icon(marker));\n mBP4 = mMap.addMarker(new MarkerOptions().position(BP4).icon(marker));\n mBP5 = mMap.addMarker(new MarkerOptions().position(BP5).icon(marker));\n mBP7 = mMap.addMarker(new MarkerOptions().position(BP7).icon(marker));\n mBP8 = mMap.addMarker(new MarkerOptions().position(BP8).icon(marker));\n mBP9 = mMap.addMarker(new MarkerOptions().position(BP9).icon(marker));\n mBP10 = mMap.addMarker(new MarkerOptions().position(BP10).icon(marker));\n mBP11 = mMap.addMarker(new MarkerOptions().position(BP11).icon(marker));\n mBP12 = mMap.addMarker(new MarkerOptions().position(BP12).icon(marker));\n mBP14 = mMap.addMarker(new MarkerOptions().position(BP14).icon(marker));\n mBP21 = mMap.addMarker(new MarkerOptions().position(BP21).icon(marker));\n mBP23 = mMap.addMarker(new MarkerOptions().position(BP23).icon(marker));\n mBP24 = mMap.addMarker(new MarkerOptions().position(BP24).icon(marker));\n mBP25 = mMap.addMarker(new MarkerOptions().position(BP25).icon(marker));\n mBP26 = mMap.addMarker(new MarkerOptions().position(BP26).icon(marker));\n mBP30 = mMap.addMarker(new MarkerOptions().position(BP30).icon(marker));\n mBP32 = mMap.addMarker(new MarkerOptions().position(BP32).icon(marker));\n mBP33 = mMap.addMarker(new MarkerOptions().position(BP33).icon(marker));\n\n }",
"private static void setUpMap() {\n onMapReady();\n /*mMap.setMyLocationEnabled(true);\n // For dropping a marker at a point on the Map\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n // For zooming automatically to the Dropped PIN Location\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude,\n longitude), 12.0f));*/\n }",
"public MapGraphExtra()\n\t{\n\t\t// TODO: Implement in this constructor in WEEK 3\n\t\tmap = new HashMap<GeographicPoint, MapNode> ();\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n this.googleMap = googleMap;\n this.googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(10.3157, 123.8854), 15.00f));\n this.googleMap.setOnMarkerClickListener(this);\n\n /*LatLng sunrise = new LatLng(10.2778832, 123.8530936);\n\n this.googleMap.addMarker(new MarkerOptions().position(sunrise).title(\"Sunrise\"));*/\n retrieveJobs();\n //LatLng sunrise = new LatLng(10.2778832,123.8530936);\n //this.googleMap.addMarker(new MarkerOptions().position(sunrise).title(\"Sunrise\"));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\")\n //below line is use to add custom marker on our map.\n .icon(BitmapFromVector(getApplicationContext(), R.drawable.ic_flag)));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"private void intializeMap() {\n\n if (googleMap == null) {\n\n SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\n .findFragmentById(R.id.map);\n mapFragment.getMapAsync(this);\n\n\n // getPlacesMarkers();\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"you are in sydney\").draggable(true));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.setOnMarkerDragListener(this);\n mMap.setOnMapLongClickListener(this);\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n // Add a marker in Sydney, Australia,\n // and move the map's camera to the same location.\n LatLng singapore = new LatLng(1.338709, 103.819519);\n googleMap.addMarker(new MarkerOptions().position(singapore)\n .title(\"Marker in Singapore\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(singapore));\n googleMap.animateCamera(CameraUpdateFactory.zoomTo(11),3000,null);\n }",
"public MapGenerator(GameMap map) {\n\n gameMap = map;\n setGuiHashMap();\n firstCountryFlag=true;\n validator = new MapValidator(gameMap);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n// updateMap(new LocationModel(41.806363, 44.768531, \"Agmasheneblis Xeivani\"));\n if (shoppingList.getLocationReminder() != null) {\n updateMap(shoppingList.getLocationReminder());\n } else {\n updateMap(null);\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n initGoogleApi(googleMap);\n initWindow();\n }",
"public void setUpMapIfNeeded() {\n // Do a null check to confirm that we have not already instantiated the map.\n if (mMap == null) {\n // Try to obtain the map from the SupportMapFragment.\n ((SupportMapFragment) getChildFragmentManager().findFragmentById(R.id.farmMap)).getMapAsync(new OnMapReadyCallback() {\n @Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n setUpMap();\n\n db.open();\n Cursor c1 = db.getallContour(AppConstant.user_id);\n\n allFarmsArray = new ArrayList<String>();\n allFarmsContour = new ArrayList<String>();\n allFarmsArray.add(\"All\");\n\n if (c1.moveToFirst()) {\n do {\n String ss = c1.getString(c1.getColumnIndex(DBAdapter.FARM_NAME));\n String c_lat = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LAT));\n String c_lon = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LON));\n String contour = c1.getString(c1.getColumnIndex(DBAdapter.CONTOUR));\n allFarmsContour.add(contour);\n allFarmsArray.add(ss);\n\n Log.v(\"contourrrr\", \"\" + contour);\n\n FarmData data = new FarmData();\n\n data.setFarmerName(ss);\n\n if (c_lat != null) {\n data.setLatitude(Double.parseDouble(c_lat));\n data.setLongitude(Double.parseDouble(c_lon));\n }\n\n if (mMap != null) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.home);\n\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(data.getLatitude(), data.getLongitude()))\n .title(\"\" + data.getFarmerName())\n .icon(icon);\n\n\n Marker mMarker = mMap.addMarker(markerOptions);\n if (mMarker != null) {\n\n Log.v(\"markerAddd\", \"Addedddd\");\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(data.getLatitude(), data.getLongitude()), 5));\n }\n data.setMarker(mMarker);\n }\n mandiArray.add(data);\n\n Log.v(\"contour\", \"-0\" + ss);\n } while (c1.moveToNext());\n }\n db.close();\n\n if (mandiArray.size() < 1) {\n if (mMap != null) {\n mMap.addMarker(new MarkerOptions().position(new LatLng(latitude, longitude)).title(\"My Home\").snippet(\"Home Address\"));\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(latitude, longitude), 12.0f));\n }\n }\n\n\n ArrayAdapter<String> chooseYourFarmSpiner = new ArrayAdapter<String>(getActivity(), android.R.layout.simple_spinner_item, allFarmsArray);\n chooseYourFarmSpiner.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);\n farmSpinner.setAdapter(chooseYourFarmSpiner);\n\n farmSpinner.setOnItemSelectedListener(new AdapterView.OnItemSelectedListener() {\n @Override\n public void onItemSelected(AdapterView<?> adapterView, View view, int i, long l) {\n if (i > 0) {\n String conto = allFarmsContour.get(i - 1);\n if (conto != null) {\n if (mMap != null) {\n mMap.clear();\n\n }\n points = new ArrayList<LatLng>();\n List<String> l_List = Arrays.asList(conto.split(\"-\"));\n Double lat1 = null;\n Double lon1 =null;\n\n /* Double lat1 = Double.valueOf(l_List.get(0));\n Double lon1 = Double.valueOf(l_List.get(l_List.size() - 1));\n points.add(new LatLng(lat1, lon1));*/\n\n for (int j = 0; j < l_List.size(); j++) {\n String currentString = l_List.get(j);\n if (currentString != null) {\n String[] separated = currentString.split(\",\");\n if (separated.length>1) {\n String la = separated[0];\n String lo = separated[1];\n\n lat1=Double.parseDouble(la);\n lon1=Double.parseDouble(lo);\n\n points.add(new LatLng(Double.valueOf(la), Double.valueOf(lo)));\n\n Log.v(\"points\",la+\",\"+lo);\n }\n }\n }\n\n if (lat1 != null) {\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lat1, lon1), 19.0f));\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n\n SharedPreferences prefs = getActivity().getSharedPreferences(AppConstant.SHARED_PREFRENCE_NAME, getActivity().MODE_PRIVATE);\n SharedPreferences.Editor ed = prefs.edit();\n ed.putString(\"lat\",lat1+\"\");\n ed.putString(\"lon\",lon1+\"\");\n ed.apply();\n\n } else {\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(Double.valueOf(latitude), Double.valueOf(longitude)), 13.0f));\n Log.v(\"latlon2\", lat1 + \"---\" + lon1);\n mMap.setMapType(GoogleMap.MAP_TYPE_SATELLITE);\n\n SharedPreferences prefs = getActivity().getSharedPreferences(AppConstant.SHARED_PREFRENCE_NAME, getActivity().MODE_PRIVATE);\n SharedPreferences.Editor ed = prefs.edit();\n ed.putString(\"lat\",latitude+\"\");\n ed.putString(\"lon\",longitude+\"\");\n ed.apply();\n }\n if (mMap != null) {\n mMap.clear();\n setUpMap();\n }\n }\n } else {\n\n if (mMap != null) {\n mMap.clear();\n\n }\n\n db.open();\n Cursor c1 = db.getallContour(AppConstant.user_id);\n\n allFarmsArray = new ArrayList<String>();\n allFarmsContour = new ArrayList<String>();\n allFarmsArray.add(\"All\");\n\n if (c1.moveToFirst()) {\n do {\n String ss = c1.getString(c1.getColumnIndex(DBAdapter.FARM_NAME));\n String c_lat = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LAT));\n String c_lon = c1.getString(c1.getColumnIndex(DBAdapter.CENTRE_LON));\n String contour = c1.getString(c1.getColumnIndex(DBAdapter.CONTOUR));\n allFarmsContour.add(contour);\n allFarmsArray.add(ss);\n\n FarmData data = new FarmData();\n\n data.setFarmerName(ss);\n\n if (c_lat != null) {\n data.setLatitude(Double.parseDouble(c_lat));\n data.setLongitude(Double.parseDouble(c_lon));\n }\n\n if (mMap != null) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.home);\n\n MarkerOptions markerOptions = new MarkerOptions().position(new LatLng(data.getLatitude(), data.getLongitude()))\n .title(\"\" + data.getFarmerName())\n .icon(icon);\n\n\n Marker mMarker = mMap.addMarker(markerOptions);\n if (mMarker != null) {\n\n Log.v(\"markerAddd\", \"Addedddd\");\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(data.getLatitude(), data.getLongitude()), 5));\n }\n data.setMarker(mMarker);\n }\n mandiArray.add(data);\n\n Log.v(\"contour\", \"-0\" + ss);\n } while (c1.moveToNext());\n }\n db.close();\n\n }\n }\n\n @Override\n public void onNothingSelected(AdapterView<?> adapterView) {\n\n }\n });\n\n // Setting a custom info window adapter for the google map\n mMap.setInfoWindowAdapter(new GoogleMap.InfoWindowAdapter() {\n\n // Use default InfoWindow frame\n @Override\n public View getInfoWindow(Marker arg0) {\n return null;\n }\n\n // Defines the contents of the InfoWindow\n @Override\n public View getInfoContents(Marker arg0) {\n View v = getActivity().getLayoutInflater().inflate(R.layout.info_window, null);\n // Getting reference to the TextView to set latitude\n TextView tvLat = (TextView) v.findViewById(R.id.title);\n\n // Getting reference to the TextView to set longitude\n TextView tvLng = (TextView) v.findViewById(R.id.distance);\n System.out.println(\"Title : \" + arg0.getTitle());\n if (arg0.getTitle() != null && arg0.getTitle().length() > 0) {\n // Getting the position from the marker\n\n final String title = arg0.getTitle();\n\n db.open();\n Cursor c = db.getStateFromSelectedFarm(title);\n if (c.moveToFirst()) {\n do {\n AppConstant.stateID = c.getString(c.getColumnIndex(DBAdapter.STATE_ID));\n /* String contour = c.getString(c.getColumnIndex(DBAdapter.CONTOUR));\n getAtLeastOneLatLngPoint(contour);*/\n }\n while (c.moveToNext());\n }\n db.close();\n\n final String distance = arg0.getSnippet();\n tvLat.setText(title);\n tvLng.setText(distance);\n AlertDialog.Builder builder = new AlertDialog.Builder(getActivity());\n builder.setTitle(title).\n setMessage(distance).\n setPositiveButton(\"Farm Data\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n\n dialogInterface.cancel();\n Intent intent = new Intent(getActivity(), NavigationDrawerActivity.class);\n intent.putExtra(\"calling-activity\", AppConstant.HomeActivity);\n intent.putExtra(\"FarmName\", title);\n\n startActivity(intent);\n getActivity().finish();\n\n\n }\n }).\n setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n dialogInterface.cancel();\n }\n });\n builder.show();\n\n } else {\n // Setting the latitude\n tvLat.setText(String.valueOf(arg0.getPosition().latitude));\n // Setting the longitude\n tvLng.setText(String.valueOf(arg0.getPosition().longitude));\n }\n return v;\n }\n });\n\n\n }\n });\n // Check if we were successful in obtaining the map.\n if (mMap != null) {\n\n }\n }\n }",
"@Override\n\t\t\t\tpublic void onMapClick(LatLng arg0) {\n\t\t\t\t\tgoogleMap.clear();\n\n\t\t\t\t\t// Creating an instance of MarkerOptions to set position\n\t\t\t\t\t// MarkerOptions markerOptions = new MarkerOptions();\n\n\t\t\t\t\t// Setting position on the MarkerOptions\n\t\t\t\t\tmarker.position(arg0);\n\n\t\t\t\t\t// Animating to the currently touched position\n\t\t\t\t\tgoogleMap.animateCamera(CameraUpdateFactory.newLatLng(arg0));\n\n\t\t\t\t\t// Adding marker on the GoogleMap\n\t\t\t\t\tMarker marker1 = googleMap.addMarker(marker);\n\n\t\t\t\t\t// Showing InfoWindow on the GoogleMap\n\t\t\t\t\tmarker1.showInfoWindow();\n\t\t\t\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setMapType(GoogleMap.MAP_TYPE_TERRAIN);\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n LatLng indiaLatitudeLongitude = new LatLng(20.5937, 78.9629);\n MarkerOptions indiaMarker = new MarkerOptions();\n indiaMarker.position(indiaLatitudeLongitude);\n indiaMarker.title(\"I Love My India...\");\n indiaMarker.icon(BitmapDescriptorFactory.fromResource(R.mipmap.ic_launcher));\n mMap.addMarker(indiaMarker);\n// mMap.moveCamera(CameraUpdateFactory.newLatLng(indiaLatitudeLongitude));\n CameraPosition newPosition = new CameraPosition.Builder()\n .target(indiaLatitudeLongitude)\n// .zoom(14)\n .build();\n\n\n MarkerOptions mumbai = new MarkerOptions();\n mumbai.position(new LatLng(20, 78));\n mumbai.title(\"Mumbai\");\n mMap.addMarker(mumbai);\n mMap.addCircle(new CircleOptions().center(new LatLng(20, 78)).radius(20000));\n\n mMap.animateCamera(CameraUpdateFactory.newCameraPosition(newPosition));\n\n\n }",
"private void mapConfig(GoogleMap googleMap) {\n LatLng position=new LatLng(playerDetails.getLat(),playerDetails.getLongitude());\n\n googleMap.addMarker(new MarkerOptions().position(position).title(playerDetails.getWinnerName())).showInfoWindow();\n googleMap.moveCamera(CameraUpdateFactory.newLatLng(position));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setMyLocationButtonEnabled(false);\n MarkerOptions markerOptions = new MarkerOptions();\n Log.d(\"Lat\", String.valueOf(clickedBook.getLat()));\n Log.d(\"Lon\", String.valueOf(clickedBook.getLon()));\n markerOptions.position(new LatLng(clickedBook.getLat(), clickedBook.getLon()));\n\n markerOptions.title(Address);\n mMap.clear();\n CameraUpdate location = CameraUpdateFactory.newLatLngZoom(\n new LatLng(clickedBook.getLat(), clickedBook.getLon()), 16f);\n mMap.animateCamera(location);\n mMap.addMarker(markerOptions);\n Log.d(\"status\", \"success\");\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n miUbicacion();\n\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-12.125108, -77.024879);\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Isil Miraflores\"));\n\n // Add a marker in Sydney and move the camera\n LatLng Hamnegra = new LatLng(-12.1712825, -76.9307592);\n mMap.addMarker(new MarkerOptions().position(Hamnegra).title(\"La Hamburguesa Negra\"));\n\n //Marcador de prueba\n LatLng prueba = new LatLng(-13.125108, -70.024879);\n markerPrueba = googleMap.addMarker(new MarkerOptions().position(prueba).title(\"Prueba Random\"));\n\n //CAMARA\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n //CLICK EN EL MARCADOR\n googleMap.setOnMarkerClickListener(this);\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n LatLng latlong = new LatLng(29.375859, 47.977405);\n googleMap.addMarker(new MarkerOptions().position(latlong).title(\"\"));\n googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(latlong, 9.0f));\n }",
"public GoogleMap getMap(){\n return gMap;\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n\n\n\n // Add a marker in Sydney and move the camera\n sydney = new LatLng(8.552161651991246, 79.94052328405958);\n\n mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n\n\n\n //mMap.setMinZoomPreference(11);\n\n\n\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(-34, 151);\n marker = mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(sydney));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng korea = new LatLng(0,0);\n LatLng busan = new LatLng(ListOfLat[0], ListOfLong[0]);\n mMap.addMarker(new MarkerOptions().position(busan).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"Point : 1\"));\n for(int i=1; i<=size; i++){\n korea = new LatLng(ListOfLat[i-1], ListOfLong[i-1]);\n busan = new LatLng(ListOfLat[i], ListOfLong[i]);\n PolylineOptions aa = new PolylineOptions().add(korea).add(busan);\n mMap.addMarker(new MarkerOptions().position(busan).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"Point : \"+(i+1)));\n mMap.addPolyline(aa);\n }\n\n mMap.moveCamera(CameraUpdateFactory.newLatLng(busan));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n this.googleMap = googleMap;\n this.googleMap.getUiSettings().setMapToolbarEnabled(false);\n if(getContext()!=null) {\n this.googleMap.setMapStyle(\n MapStyleOptions.loadRawResourceStyle(getContext(), R.raw.map_style)\n );\n }\n if (bundle != null) {\n String name = bundle.getString(\"location\");\n LatLng latLng ;\n try {\n JSONObject locations = new JSONObject(loadJSONFromAsset());\n JSONObject location = locations.getJSONObject(name);\n latLng = new LatLng(location.getDouble(\"Lat\"),location.getDouble(\"Lng\"));\n setLocation(name, latLng);\n }catch (Exception e){\n Log.e(TAG, \"locs.json parsing error \"+e.getMessage());\n setLocation(\"Main Building\", new LatLng(13.010595, 74.794298));\n }\n } else {\n // Default location\n setLocation(\"Main Building\", new LatLng(13.010595, 74.794298));\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n // Add a marker in Sydney and move the camera\n LatLng CSN = new LatLng(51.87, -8.481);\n mMap.setMapType(MAP_TYPE_HYBRID);\n mMap.addMarker(new MarkerOptions().position(CSN).title(\"Marker at CSN college\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(CSN, 15F));\n mMap.getUiSettings().setZoomControlsEnabled(true);\n }",
"public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n displayMarker();\r\n\r\n\r\n // mMap.addMarker(new MarkerOptions().position(mLatLng).title(\"T\"));\r\n // new GetJSON().execute();\r\n\r\n // SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager()\r\n // .findFragmentById(R.id.map);\r\n // mapFragment.getMapAsync(this);\r\n\r\n LatLng Arsenal = new LatLng(51.555034, -0.108482);\r\n LatLng AstonVilla = new LatLng(52.509236, -1.884815);\r\n LatLng Bournemouth = new LatLng(50.744747, -1.841174);\r\n LatLng Brighton = new LatLng(50.860948, -0.081484);\r\n LatLng Burnley = new LatLng(53.789183, -2.230195);\r\n\r\n\r\n googleMap.addMarker(new MarkerOptions().position(Arsenal).title(\"Emirates Stadium\").snippet(\"This is where Arsenal play\").icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_ORANGE)));\r\n googleMap.addMarker(new MarkerOptions().position(AstonVilla).title(\"Villa Park\"));\r\n googleMap.addMarker(new MarkerOptions().position(Bournemouth).title(\"Dean Court\"));\r\n googleMap.addMarker(new MarkerOptions().position(Brighton).title(\"AMEX stadium\"));\r\n googleMap.addMarker(new MarkerOptions().position(Burnley).title(\"Turf Moor\"));\r\n\r\n\r\n CameraUpdate point = CameraUpdateFactory.newLatLng(new LatLng(51.555034, -0.108482));\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(Arsenal, 14F));\r\n googleMap.moveCamera(point);\r\n\r\n // googleMap.setMapType(googleMap.MAP_TYPE_HYBRID);\r\n googleMap.getUiSettings().setZoomControlsEnabled(true);\r\n googleMap.getUiSettings().setRotateGesturesEnabled(true);\r\n googleMap.setMyLocationEnabled(true);\r\n\r\n\r\n\r\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\r\n\r\n @Override\r\n public void onMapClick(LatLng point) {\r\n\r\n // Already two locations\r\n if (MarkerPoints.size() > 1) {\r\n\r\n }\r\n\r\n // Adding new item to the ArrayList\r\n MarkerPoints.add(point);\r\n\r\n // Creating MarkerOptions\r\n MarkerOptions options = new MarkerOptions();\r\n\r\n // Setting the position of the marker\r\n options.position(point);\r\n\r\n /**\r\n * For the start location, the color of marker is GREEN and\r\n * for the end location, the color of marker is RED.\r\n */\r\n if (MarkerPoints.size() == 1) {\r\n options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));\r\n } else if (MarkerPoints.size() == 2) {\r\n options.icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED));\r\n }\r\n\r\n\r\n // Add new marker to the Google Map Android API V2\r\n mMap.addMarker(options);\r\n\r\n // Checks, whether start and end locations are captured\r\n\r\n\r\n\r\n }\r\n });\r\n }",
"@Override\r\n protected void setUpMap() {\n mMap.addMarker(new MarkerOptions()\r\n .position(BRISBANE)\r\n .title(\"Brisbane\")\r\n .snippet(\"Population: 2,074,200\")\r\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)));\r\n\r\n // Uses a custom icon with the info window popping out of the center of the icon.\r\n mMap.addMarker(new MarkerOptions()\r\n .position(SYDNEY)\r\n .title(\"Sydney\")\r\n .snippet(\"Population: 4,627,300\")\r\n .icon(BitmapDescriptorFactory.fromResource(R.drawable.arrow))\r\n .infoWindowAnchor(0.5f, 0.5f));\r\n\r\n // Creates a draggable marker. Long press to drag.\r\n mMap.addMarker(new MarkerOptions()\r\n .position(MELBOURNE)\r\n .title(\"Melbourne\")\r\n .snippet(\"Population: 4,137,400\")\r\n .draggable(true));\r\n\r\n // A few more markers for good measure.\r\n mMap.addMarker(new MarkerOptions()\r\n .position(PERTH)\r\n .title(\"Perth\")\r\n .snippet(\"Population: 1,738,800\"));\r\n mMap.addMarker(new MarkerOptions()\r\n .position(ADELAIDE)\r\n .title(\"Adelaide\")\r\n .snippet(\"Population: 1,213,000\"));\r\n\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(BRISBANE, 10));\r\n }",
"private void initilizeMap() {\n\t\tif (googleMap == null) {\n\t\t\tgoogleMap = ((MapFragment) getFragmentManager().findFragmentById(\n\t\t\t\t\tR.id.map)).getMap();\n\n\t\t\tif (googleMap == null) {\n\t\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\t\"Sorry! unable to create maps\", Toast.LENGTH_SHORT)\n\t\t\t\t\t\t.show();\n\t\t\t}\n\t\t}\n\t}",
"private void setUpMap() {\n\t\t \n\t\tmMap.setMapType(GoogleMap.MAP_TYPE_HYBRID);\n\t\t//mMap.setMyLocationEnabled(true);\n\t\t\t \n\t\tmMap.animateCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(\n\t\t\t\tlatitude, longitude), 12.0f));\n\n\t}",
"public MapContainer() {\n this(new OpenStreetMapProvider());\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n// // Add a marker in Sydney and move the camera\n// LatLng sydney = new LatLng(-34, 151);\n// mMap.addMarker(new MarkerOptions().position(sydney).title(\"Marker in Sydney\"));\n// mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 14.0f));\n mMap.addMarker(new MarkerOptions().position(center).title(title));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(center, 14.0f));\n//\n Log.i(\"tag\", otherPoints.size() + \"\");\n for (LatLng p : otherPoints) {\n BitmapDescriptor icon = BitmapDescriptorFactory.fromResource(R.drawable.baseline_album_black_18);\n mMap.addMarker(new MarkerOptions()\n .position(new LatLng(p.latitude, p.longitude))\n .title(\"\")\n .icon(icon));\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n getLat g = new getLat();\n g.execute(tid);\n\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n mMap.setTrafficEnabled(true);\n googleMap.setMyLocationEnabled(true);\n mMap.setOnMyLocationChangeListener(onMyLocationChangeListener);\n\n // mMap.setPadding(0, 0, 0, 100);\n UiSettings uiSettings = mMap.getUiSettings();\n uiSettings.setZoomControlsEnabled(true);\n\n mMap.addMarker(new MarkerOptions()\n .position(new LatLng(65.9667, -18.5333))\n .title(\"Hello world\"));\n\n\n }",
"public GoogleApiA() {}",
"private void initializeMapAd()\n {\n mAdView = new NativeExpressAdView(this);\n mAdView.setAdSize(new AdSize(320, 80));\n mAdView.setAdUnitId(mPreferences.getString(RemoteConfigService.AD_UNIT_ID + 1, \"ca-app-pub-9949935976977846/4866656411\"));\n\n RelativeLayout.LayoutParams layoutParams = new RelativeLayout\n .LayoutParams(RelativeLayout.LayoutParams.WRAP_CONTENT,\n RelativeLayout.LayoutParams.WRAP_CONTENT);\n\n layoutParams.addRule(RelativeLayout.CENTER_IN_PARENT);\n\n RelativeLayout layout = new RelativeLayout(this);\n layout.setLayoutParams(layoutParams);\n layout.addView(mAdView);\n mMapAdView.addView(layout);\n }",
"private void setUpMapIfNeeded() {\n \tif (mMap == null) {\r\n \t\t//Instanciamos el objeto mMap a partir del MapFragment definido bajo el Id \"map\"\r\n \t\tmMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();\r\n \t\t// Chequeamos si se ha obtenido correctamente una referencia al objeto GoogleMap\r\n \t\tif (mMap != null) {\r\n \t\t\t// El objeto GoogleMap ha sido referenciado correctamente\r\n \t\t\t//ahora podemos manipular sus propiedades\r\n \t\t\t//Seteamos el tipo de mapa\r\n \t\t\tmMap.setMapType(GoogleMap.MAP_TYPE_NORMAL);\r\n \t\t\t//Activamos la capa o layer MyLocation\r\n \t\t\tmMap.setMyLocationEnabled(true);\r\n \t\t\t\r\n \t\t\tAgregarPuntos();\r\n \t\t\t\r\n \t\t\t\r\n \t\t}\r\n \t}\r\n }",
"private void setUpMapIfNeeded() {\n\t\tif (mMap == null) {\n\t\t\tlogger.info(\"map is null\");\n\t\t\tlogger.debug(\"maps is null\");\n\t\t\tSystem.out.println(\"map is null\");\n\t\t\t// Try to obtain the map from the SupportMapFragment.\n\t\t\tmMap = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map)).getMap();\n\t\t\t// Check if we were successful in obtaining the map.\n\t\t\tif (mMap != null) {\n\t\t\t\taddMarker(markerLatLng);\n\t\t\t\t \n\t\t\t}\n\t\t}else\n\t\t{\n\t\t\t\n\t\t\t// Creating an instance of MarkerOptions\n addMarker(markerLatLng);\n \n\t\t\n\t\t}\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng place = new LatLng(Double.parseDouble(lat),Double.parseDouble(longitude));\n\n mMap.addMarker(new MarkerOptions().position(place));\n moveToCurrentLocation(place);\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n setInitialLocation(VehicleData.getLatitude(), VehicleData.getLongitude());\n }",
"public MapTile() {}",
"@Override\n public void onMapReady(GoogleMap googleMap)\n {\n //Enable interactions with the google map\n mMap = googleMap;\n mMap.getUiSettings().setZoomControlsEnabled(true);\n\n if(!partnerLocs) {\n Log.d(\"GO TO INTI :\", \"!!!!\");\n init(); //initialize components\n mMap.setOnMapLongClickListener(this);\n mMap.setOnMarkerDragListener(this);\n\n }\n mMap.setOnMarkerClickListener(this);\n\n if(showMyLoc || partnerLocs){\n loadMarkers();\n mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n markerClicked.showInfoWindow();\n }\n else{\n loadMarkers(); //change to loadPartnerMarkers() later\n// mMap.animateCamera(CameraUpdateFactory.newLatLngZoom(markerClicked.getPosition(), ZOOMLV));\n// markerClicked.showInfoWindow();\n }\n }",
"@Override\r\n public void onMapReady(GoogleMap googleMap) {\r\n mMap = googleMap;\r\n\r\n // Add a marker in Sydney and move the camera\r\n\r\n\r\n\r\n LatLng salud = new LatLng(18.5094113, -69.8923432);\r\n mMap.addMarker(new MarkerOptions().position(salud).draggable(true).title(\"Centro De salud\").snippet(\"Centro de salud \").icon(BitmapDescriptorFactory.fromResource(R.drawable.salud)));\r\n\r\n\r\n LatLng monjas = new LatLng(18.509410, -69.891796);\r\n mMap.addMarker(new MarkerOptions().position(monjas).title(\"Casa de las hermnas\").snippet(\"Casa de las hermnas\").icon(BitmapDescriptorFactory.fromResource(R.drawable.monjas)));\r\n\r\n\r\n LatLng parroquia = new LatLng(18.510546, -69.891847);\r\n mMap.addMarker(new MarkerOptions().position(parroquia).title(\"Parroquia\").snippet(\"Parroquia \").icon(BitmapDescriptorFactory.fromResource(R.drawable.parroquia)));\r\n LatLng escuela = new LatLng(18.5110794, -69.8921382);\r\n mMap.addMarker(new MarkerOptions().position(escuela).title(\"Escuela Hogar pituca florez\").snippet(\"Escuela hogar pituca florez\").icon(BitmapDescriptorFactory.fromResource(R.drawable.escuela)));\r\n\r\n LatLng CIJE = new LatLng(18.509463 , -69.891545);\r\n markerPrueba =googleMap.addMarker(new MarkerOptions()\r\n .position(CIJE)\r\n .title(\"CIJE, Centro Infantil Juvenil Enmanuel\").snippet(\"Centro de estudios para todas las edades\").icon(BitmapDescriptorFactory.fromResource(R.drawable.cije)));\r\n\r\n\r\n mMap.getUiSettings().setZoomControlsEnabled(true);\r\n\r\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(CIJE,18));\r\n\r\n googleMap.setOnMarkerClickListener(this);\r\n googleMap.setOnInfoWindowClickListener(this);\r\n\r\n }",
"@Override\n public void onMapReady(GoogleMap map) {\n googleMap = map;\n map.setMapType(GoogleMap.MAP_TYPE_NORMAL);\n // map.setTrafficEnabled(true);\n map.setIndoorEnabled(true);\n map.setBuildingsEnabled(true);\n map.getUiSettings().setZoomControlsEnabled(true);\n\n if (ContextCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION)\n == PackageManager.PERMISSION_GRANTED) {\n map.setMyLocationEnabled(true);\n }\n\n double lat = Double.parseDouble(getIntent().getStringExtra(\"lat\"));\n double lng = Double.parseDouble(getIntent().getStringExtra(\"lng\"));\n a = new LatLng(lat, lng);\n\n map.moveCamera(CameraUpdateFactory.newLatLngZoom(a, 14));\n new callGooglePlaceApi().execute();\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng liege = new LatLng(50.620552, 5.581177);\n LatLng victime = new LatLng(50.620957, 5.582263);\n mMap.addMarker(new MarkerOptions()\n .position(liege)\n .title(\"You are here !\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_YELLOW)));\n mMap.addMarker(new MarkerOptions()\n .position(victime)\n .title(\"Aurélie\")\n .icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_RED)));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(liege,17));\n }",
"@Override\n\tpublic void run() {\n\t\tfinal MapOptions options = MapOptions.create(); //Dhmiourgeia antikeimenou me Factory (xwris constructor)\n\t\t//Default na fenetai xarths apo doruforo (Hybrid)\n\t\toptions.setMapTypeId(MapTypeId.HYBRID);\n\t\toptions.setZoom(Map.GOOGLE_MAPS_ZOOM);\n\t\t//Dhmiourgei ton xarth me tis panw ruthmiseis kai to vazei sto mapDiv\n\t\tgoogleMap = GoogleMap.create(map, options);\n\t\t//Otan o xrhsths kanei click epanw ston xarth\n\t\tfinal MarkerOptions markerOptions = MarkerOptions.create();\n\t\tmarkerOptions.setMap(googleMap);\n\t\tmarker = Marker.create(markerOptions);\n\t\t//psaxnei antikeimeno gia na kentrarei o xarths kai na fortwsei h forma\n\t\tfinal String id = Window.Location.getParameter(\"id\");\n\t\tif (id == null) {\n\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorRetrievingMedium(\n\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.noMediaIdSpecified()));\n\t\t\t//redirect sto map\n\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t} else {\n\t\t\t//Klhsh tou MEDIA_SERVICE gia na paroume to antikeimeno (metadedomena)\n\t\t\tMEDIA_SERVICE.getMedia(id, new AsyncCallback<Media>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(final Throwable throwable) {\n\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorRetrievingMedium(throwable.getMessage()));\n\t\t\t\t\t//redirect sto map\n\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(final Media media) {\n\t\t\t\t\tif (media == null) {\n\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(\n\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.mediaNotFound()));\n\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t//o xrhsths vlepei to media giati einai diko tou 'h einai diaxeirisths 'h to media einai public\n\t\t\t\t\t} else if (currentUser.equals(media.getUser()) || (currentUser.getStatus() == UserStatus.ADMIN) || media.isPublic()) {\n\t\t\t\t\t\t//Gemisma tou div content analoga ton tupo\n\t\t\t\t\t\tswitch (MediaType.getMediaType(media.getType())) {\n\t\t\t\t\t\tcase APPLICATION:\n\t\t\t\t\t\t\tfinal ImageElement application = Document.get().createImageElement();\n\t\t\t\t\t\t\tapplication.setSrc(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), MediaType.APPLICATION.name().toLowerCase()));\n\t\t\t\t\t\t\tapplication.setAlt(media.getTitle());\n\t\t\t\t\t\t\tapplication.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\tapplication.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\tcontent.appendChild(application);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase AUDIO:\n\t\t\t\t\t\t\tfinal AudioElement audio = Document.get().createAudioElement();\n\t\t\t\t\t\t\taudio.setControls(true);\n\t\t\t\t\t\t\taudio.setPreload(AudioElement.PRELOAD_AUTO);\n\t\t\t\t\t\t\t//url sto opoio vriskontai ta dedomena tou antikeimenou. Ta travaei o browser\n\t\t\t\t\t\t\t//me xrhsh tou media servlet\n\t\t\t\t\t\t\tfinal SourceElement audioSource = Document.get().createSourceElement();\n\t\t\t\t\t\t\taudioSource.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\taudioSource.setType(media.getType());\n\t\t\t\t\t\t\taudio.appendChild(audioSource);\n\t\t\t\t\t\t\tcontent.appendChild(audio);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase IMAGE:\n\t\t\t\t\t\t\tfinal ImageElement image = Document.get().createImageElement();\n\t\t\t\t\t\t\timage.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\timage.setAlt(media.getTitle());\n\t\t\t\t\t\t\timage.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\timage.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\tcontent.appendChild(image);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase TEXT:\n\t\t\t\t\t\t\t/**\n\t\t\t\t\t\t\t * @see http://www.gwtproject.org/doc/latest/tutorial/JSON.html#http\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tfinal ParagraphElement text = Document.get().createPElement();\n\t\t\t\t\t\t\ttext.getStyle().setWidth(CONTENT_WIDTH, Style.Unit.PX);\n\t\t\t\t\t\t\ttext.getStyle().setHeight(CONTENT_HEIGHT, Style.Unit.PX);\n\t\t\t\t\t\t\t//scrollbar gia to text\n\t\t\t\t\t\t\ttext.getStyle().setOverflow(Style.Overflow.SCROLL);\n\t\t\t\t\t\t\tcontent.appendChild(text);\n\t\t\t\t\t\t\t//Zhtaei asugxrona to periexomeno enos url\n\t\t\t\t\t\t\tfinal RequestBuilder requestBuilder = new RequestBuilder(RequestBuilder.GET,\n\t\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\trequestBuilder.sendRequest(null, new RequestCallback() {\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onError(final Request request, final Throwable throwable) {\n\t\t\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(throwable.getMessage()));\n\t\t\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onResponseReceived(final Request request, final Response response) {\n\t\t\t\t\t\t\t\t\t\tif (response.getStatusCode() == Response.SC_OK) {\n\t\t\t\t\t\t\t\t\t\t\t//selida pou fernei to response se me to keimeno pros anazhthsh\n\t\t\t\t\t\t\t\t\t\t\ttext.setInnerText(response.getText());\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t//selida pou efere to response se periptwsh sfalmatos (getText())\n\t\t\t\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(response.getText()));\n\t\t\t\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t} catch (final RequestException e) {\n\t\t\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(e.getMessage()));\n\t\t\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), URL.encodeQueryString(\n\t\t\t\t\t\t\t\t\t\t//me to antistoixo locale \n\t\t\t\t\t\t\t\t\t\tLocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tcase VIDEO:\n\t\t\t\t\t\t\tfinal VideoElement video = Document.get().createVideoElement();\n\t\t\t\t\t\t\tvideo.setPoster(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), MediaType.VIDEO.name().toLowerCase()));\n\t\t\t\t\t\t\tvideo.setControls(true);\n\t\t\t\t\t\t\tvideo.setPreload(VideoElement.PRELOAD_AUTO);\n\t\t\t\t\t\t\tvideo.setWidth(Double.valueOf(CONTENT_WIDTH).intValue());\n\t\t\t\t\t\t\tvideo.setHeight(Double.valueOf(CONTENT_HEIGHT).intValue());\n\t\t\t\t\t\t\tfinal SourceElement videoSource = Document.get().createSourceElement();\n\t\t\t\t\t\t\tvideoSource.setSrc(MOBILE_MEDIA_SHARE_URLS.download(GWT.getHostPageBaseURL(), media.getId()));\n\t\t\t\t\t\t\tvideoSource.setType(media.getType());\n\t\t\t\t\t\t\tvideo.appendChild(videoSource);\n\t\t\t\t\t\t\tcontent.appendChild(video);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t//O current user peirazei to media an einai diko tou 'h an einai diaxeirisths\n\t\t\t\t\t\tif (currentUser.equals(media.getUser()) || (currentUser.getStatus() == UserStatus.ADMIN)) {\n\t\t\t\t\t\t\tedit.setEnabled(true);\n\t\t\t\t\t\t\tdelete.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttitle.setText(media.getTitle());\n\t\t\t\t\t\t//prosthikh html (keimeno kai eikona) stin selida\n\t\t\t\t\t\ttype.setHTML(List.TYPE.getValue(media));\n\t\t\t\t\t\t//analoga ton tupo dialegetai to katallhlo eikonidio\n\t\t\t\t\t\tmarker.setIcon(MarkerImage.create(MOBILE_MEDIA_SHARE_URLS.selectedImage(GWT.getHostPageBaseURL(), \n\t\t\t\t\t\t\t\tMediaType.getMediaType(media.getType()).name().toLowerCase())));\n\t\t\t\t\t\tsize.setText(List.SIZE.getValue(media));\n\t\t\t\t\t\tduration.setText(List.DURATION.getValue(media));\n\t\t\t\t\t\tuser.setText(List.USER.getValue(media));\n\t\t\t\t\t\tcreated.setText(List.CREATED.getValue(media));\n\t\t\t\t\t\tedited.setText(List.EDITED.getValue(media));\n\t\t\t\t\t\tpublik.setHTML(List.PUBLIC.getValue(media));\n\t\t\t\t\t\tlatitudeLongitude.setText(\"(\" + List.LATITUDE.getValue(media) + \", \" + List.LONGITUDE.getValue(media) + \")\");\n\t\t\t\t\t\tfinal LatLng latLng = LatLng.create(media.getLatitude().doubleValue(), media.getLongitude().doubleValue());\n\t\t\t\t\t\tgoogleMap.setCenter(latLng);\n\t\t\t\t\t\tmarker.setPosition(latLng);\n\t\t\t\t\t} else { //Vrethike to media alla einai private allounou\n\t\t\t\t\t\tWindow.alert(MOBILE_MEDIA_SHARE_MESSAGES.errorViewingMedia(\n\t\t\t\t\t\t\t\tMOBILE_MEDIA_SHARE_CONSTANTS.accessDenied()));\n\t\t\t\t\t\t//redirect sto map\n\t\t\t\t\t\tWindow.Location.assign(MOBILE_MEDIA_SHARE_URLS.map(GWT.getHostPageBaseURL(), \n\t\t\t\t\t\t\t\tURL.encodeQueryString(LocaleInfo.getCurrentLocale().getLocaleName())));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng montesson = new LatLng(48.9190286,2.1380955);\n mMap.addMarker(new MarkerOptions().position(montesson).title(\"Marker in Montesson\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(montesson));\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n // Add a marker in Sydney and move the camera\n LatLng sydney = new LatLng(2.16, 102.43);\n LatLng merlimau = new LatLng(2.153708, 102.427699);\n LatLng jamaluddin = new LatLng(2.153708, 102.427699);\n LatLng malaya = new LatLng(2.155456, 102.427411);\n LatLng ting = new LatLng(2.147843, 102.426639);\n LatLng limHang = new LatLng(2.146331, 102.425942);\n LatLng mariam = new LatLng(2.145006, 102.422510);\n LatLng yunus = new LatLng(2.145441, 102.421779);\n\n mMap.addMarker(new MarkerOptions().position(sydney)\n .title(\"Taman Harmoni\")\n .snippet(\"Ramai Budak Poli dan U duduk disini\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(sydney, 16));\n mMap.addMarker(new MarkerOptions().position(merlimau)\n .title(\"Klinik Kesihatan merlimau \")\n .snippet(\"Klinik Kesihatan merlimau\"));\n mMap.addMarker(new MarkerOptions().position(jamaluddin)\n .title(\"Klinik Dr Jamaludin dan surgery \")\n .snippet(\"Klinik Jr Jamaludin dan surgery\"));\n mMap.addMarker(new MarkerOptions().position(malaya)\n .title(\"Poliklinik Malaya \")\n .snippet(\"Ramai Budak Poli dan U duduk disini\"));\n mMap.addMarker(new MarkerOptions().position(ting)\n .title(\"Klinik Dr Ting \")\n .snippet(\"Ramai Budak Poli dan U duduk disini\"));\n mMap.addMarker(new MarkerOptions().position(limHang)\n .title(\"Limhang Klinik & surgery \")\n .snippet(\"Ramai Budak Poli dan U duduk disini\"));\n mMap.addMarker(new MarkerOptions().position(yunus)\n .title(\"Poliklinik Mohd Yunus \")\n .snippet(\"Ramai Budak Poli dan U duduk disini\"));\n mMap.addMarker(new MarkerOptions().position(mariam)\n .title(\"Klinik Dr Mariam Poliklinik & surgery \")\n .snippet(\"Ramai Budak Poli dan U duduk disini\"));\n\n\n mMap.setMyLocationEnabled(true);\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n Log.i(\"MapWorks\", \"The map works\");\n mMap = googleMap;\n //center camera at her stuff\n //add pins\n // Add a marker in Sydney and move the camera\n LatLng currentLoc = new LatLng(myLat, myLong);\n mMap.addMarker(new MarkerOptions().position(currentLoc).title(\"Your Location\"));\n mMap.moveCamera(CameraUpdateFactory.newLatLng(currentLoc));\n// locs[1] = new LatLng(34, 119);\n// locs[2] = new LatLng(20, 130);\n if(null != locs) {\n Log.i(\"size of message: \", \" \"+ size);\n for (int i = 0; i < size; i++) {\n LatLng l = locs[i];\n mMap.addMarker(new MarkerOptions().position(l).title(names[i] + \" is a meteor of mass \" +\n masses[i] + \" that landed here in \" + years[i]));\n }\n }\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n\n mMap = googleMap;\n mMap2 = googleMap;\n mMap3 = googleMap;\n mMap4 = googleMap;\n mMap5 = googleMap;\n mMap6 = googleMap;\n mMap7 = googleMap;\n mMap8 = googleMap;\n\n\n configuracion =mMap.getUiSettings();\n configuracion.setZoomControlsEnabled(true);\n\n // Add a marker in Sydney and move the camera\n\n LatLng med = new LatLng(5.5986029, -75.8189893);\n LatLng med2 = new LatLng(5.5963072,-75.8130777);\n LatLng med3 = new LatLng(5.5936377, -75.8126003);\n LatLng med4 = new LatLng(5.5749407, -75.7907993);\n LatLng med5 = new LatLng(5.5646469, -75.7912391);\n LatLng med6 = new LatLng(5.5457995, -75.7945168);\n LatLng med7 = new LatLng(5.5391573, -75.8043015);\n LatLng med8 = new LatLng(5.5305395, -75.8031642);\n\n\n final Marker medellin = mMap.addMarker(new MarkerOptions().position(med).title(getString(R.string.ventanas1)));\n final Marker medellin2 = mMap2.addMarker(new MarkerOptions().position(med2).title(getString(R.string.ventanas2)));\n final Marker medellin3 = mMap3.addMarker(new MarkerOptions().position(med3).title(getString(R.string.ventanas3)));\n final Marker medellin4 = mMap4.addMarker(new MarkerOptions().position(med4).title(getString(R.string.ventanas4)));\n final Marker medellin5 = mMap5.addMarker(new MarkerOptions().position(med5).title(getString(R.string.ventanas5)));\n final Marker medellin6 = mMap6.addMarker(new MarkerOptions().position(med6).title(getString(R.string.ventanas6)));\n final Marker medellin7 = mMap7.addMarker(new MarkerOptions().position(med7).title(getString(R.string.ventanas7)));\n final Marker medellin8 = mMap8.addMarker(new MarkerOptions().position(med8).title(getString(R.string.ventanas8)));\n\n\n mMap.moveCamera(CameraUpdateFactory.newLatLngZoom(med, 12));\n mMap2.moveCamera(CameraUpdateFactory.newLatLngZoom(med2, 12));\n mMap3.moveCamera(CameraUpdateFactory.newLatLngZoom(med3, 12));\n mMap4.moveCamera(CameraUpdateFactory.newLatLngZoom(med4, 12));\n mMap5.moveCamera(CameraUpdateFactory.newLatLngZoom(med5, 12));\n mMap6.moveCamera(CameraUpdateFactory.newLatLngZoom(med6, 12));\n mMap7.moveCamera(CameraUpdateFactory.newLatLngZoom(med7, 12));\n mMap8.moveCamera(CameraUpdateFactory.newLatLngZoom(med8, 12));\n mMap.addPolyline(new PolylineOptions().geodesic(true)\n .add(new LatLng( 5.5985815 , -75.8189195 ))\n .add(new LatLng( 5.5975885 , -75.8166182 ))\n .add(new LatLng( 5.5960936 , -75.8130026 ))\n .add(new LatLng( 5.5957733 , -75.8127344 ))\n .add(new LatLng( 5.5937338 , -75.8126485 ))\n .add(new LatLng( 5.5927835 , -75.8132172 ))\n .add(new LatLng( 5.5918866 , -75.8127987 ))\n .add(new LatLng( 5.5912352 , -75.8127666 ))\n .add(new LatLng( 5.5893986 , -75.8110714 ))\n .add(new LatLng( 5.5885231 , -75.8110070 ))\n .add(new LatLng( 5.5888861 , -75.8095479 ))\n .add(new LatLng( 5.5902956 , -75.8079815 ))\n .add(new LatLng( 5.5909149 , -75.8080673 ))\n .add(new LatLng( 5.5915128 , -75.8073592 ))\n .add(new LatLng( 5.5918545 , -75.8078313 ))\n .add(new LatLng( 5.5923030 , -75.8079815 ))\n .add(new LatLng( 5.5923244 , -75.8068013 ))\n .add(new LatLng( 5.5926020 , -75.8059430 ))\n .add(new LatLng( 5.5915342 , -75.8057284 ))\n .add(new LatLng( 5.5906159 , -75.8050203 ))\n .add(new LatLng( 5.5903596 , -75.8037329 ))\n .add(new LatLng( 5.5898471 , -75.8031428 ))\n .add(new LatLng( 5.5896336 , -75.8027136 ))\n .add(new LatLng( 5.5879785 , -75.8015442 ))\n .add(new LatLng( 5.5874019 , -75.8011794 ))\n .add(new LatLng( 5.5868360 , -75.7985830 ))\n .add(new LatLng( 5.5854051 , -75.7966733 ))\n .add(new LatLng( 5.5851702 , -75.7962441 ))\n .add(new LatLng( 5.5847217 , -75.7942271 ))\n .add(new LatLng( 5.5847644 , -75.7931542 ))\n .add(new LatLng( 5.5843800 , -75.7911801 ))\n .add(new LatLng( 5.5845509 , -75.7902789 ))\n .add(new LatLng( 5.5842305 , -75.7894850 ))\n .add(new LatLng( 5.5835045 , -75.7887983 ))\n .add(new LatLng( 5.5825434 , -75.7871032 ))\n .add(new LatLng( 5.5823299 , -75.7861590 ))\n .add(new LatLng( 5.5821590 , -75.7850862 ))\n .add(new LatLng( 5.5813689 , -75.7821250 ))\n .add(new LatLng( 5.5813475 , -75.7805371 ))\n .add(new LatLng( 5.5813048 , -75.7790565 ))\n .add(new LatLng( 5.5813475 , -75.7774687 ))\n .add(new LatLng( 5.5807922 , -75.7771468 ))\n .add(new LatLng( 5.5801943 , -75.7785416 ))\n .add(new LatLng( 5.5789770 , -75.7780051 ))\n .add(new LatLng( 5.5781014 , -75.7763529 ))\n .add(new LatLng( 5.5773112 , -75.7762671 ))\n .add(new LatLng( 5.5766492 , -75.7756662 ))\n .add(new LatLng( 5.5760085 , -75.7753444 ))\n .add(new LatLng( 5.5745670 , -75.7738262 ))\n .add(new LatLng( 5.5729546 , -75.7729304 ))\n .add(new LatLng( 5.5729332 , -75.7734239 ))\n .add(new LatLng( 5.5728478 , -75.7743251 ))\n .add(new LatLng( 5.5735419 , -75.7747972 ))\n .add(new LatLng( 5.5737875 , -75.7752693 ))\n .add(new LatLng( 5.5738729 , -75.7764816 ))\n .add(new LatLng( 5.5744708 , -75.7764173 ))\n .add(new LatLng( 5.5746631 , -75.7779086 ))\n .add(new LatLng( 5.5753358 , -75.7794267 ))\n .add(new LatLng( 5.5761793 , -75.7801294 ))\n .add(new LatLng( 5.5760298 , -75.7809448 ))\n .add(new LatLng( 5.5761153 , -75.7816315 ))\n .add(new LatLng( 5.5759444 , -75.7829189 ))\n .add(new LatLng( 5.5764143 , -75.7844424 ))\n .add(new LatLng( 5.5754959 , -75.7865667 ))\n .add(new LatLng( 5.5748553 , -75.7888842 ))\n .add(new LatLng( 5.5749941 , -75.7906866 ))\n .add(new LatLng( 5.5720576 , -75.7914162 ))\n .add(new LatLng( 5.5712888 , -75.7906222 ))\n .add(new LatLng( 5.5705413 , -75.7906866 ))\n .add(new LatLng( 5.5700074 , -75.7903647 ))\n .add(new LatLng( 5.5687687 , -75.7913518 ))\n .add(new LatLng( 5.5677650 , -75.7907295 ))\n .add(new LatLng( 5.5668253 , -75.7910728 ))\n .add(new LatLng( 5.5664409 , -75.7907295 ))\n .add(new LatLng( 5.5656293 , -75.7911587 ))\n .add(new LatLng( 5.5646896 , -75.7910299 ))\n .add(new LatLng( 5.5659283 , -75.7927036 ))\n .add(new LatLng( 5.5660992 , -75.7936478 ))\n .add(new LatLng( 5.5655012 , -75.7942915 ))\n .add(new LatLng( 5.5647323 , -75.7943344 ))\n .add(new LatLng( 5.5619133 , -75.7972527 ))\n .add(new LatLng( 5.5614434 , -75.7990551 ))\n .add(new LatLng( 5.5608454 , -75.7991409 ))\n .add(new LatLng( 5.5602902 , -75.7984972 ))\n .add(new LatLng( 5.5588806 , -75.7975531 ))\n .add(new LatLng( 5.5561469 , -75.7968664 ))\n .add(new LatLng( 5.5561469 , -75.7953644 ))\n .add(new LatLng( 5.5536268 , -75.7944202 ))\n .add(new LatLng( 5.5514911 , -75.7936478 ))\n .add(new LatLng( 5.5500816 , -75.7948065 ))\n .add(new LatLng( 5.5493981 , -75.7944202 ))\n .add(new LatLng( 5.5457674 , -75.7934332 ))\n .add(new LatLng( 5.5453403 , -75.7951498 ))\n .add(new LatLng( 5.5457674 , -75.7961369 ))\n .add(new LatLng( 5.5460451 , -75.7968235 ))\n .add(new LatLng( 5.5468139 , -75.7983255 ))\n .add(new LatLng( 5.5453616 , -75.7986689 ))\n .add(new LatLng( 5.5455966 , -75.7996988 ))\n .add(new LatLng( 5.5464081 , -75.8006215 ))\n .add(new LatLng( 5.5458956 , -75.8013296 ))\n .add(new LatLng( 5.5463227 , -75.8022308 ))\n .add(new LatLng( 5.5451053 , -75.8032823 ))\n .add(new LatLng( 5.5449345 , -75.8037865 ))\n .add(new LatLng( 5.5445501 , -75.8039045 ))\n .add(new LatLng( 5.5443792 , -75.8036900 ))\n .add(new LatLng( 5.5449345 , -75.8028531 ))\n .add(new LatLng( 5.5452121 , -75.8025956 ))\n .add(new LatLng( 5.5449986 , -75.8023596 ))\n .add(new LatLng( 5.5448918 , -75.8023596 ))\n .add(new LatLng( 5.5445073 , -75.8025956 ))\n .add(new LatLng( 5.5431298 , -75.8041513 ))\n .add(new LatLng( 5.5423930 , -75.8043337 ))\n .add(new LatLng( 5.5426493 , -75.8036685 ))\n .add(new LatLng( 5.5430123 , -75.8031321 ))\n .add(new LatLng( 5.5436744 , -75.8024669 ))\n .add(new LatLng( 5.5428628 , -75.8022952 ))\n .add(new LatLng( 5.5419712 , -75.8028370 ))\n .add(new LatLng( 5.5408232 , -75.8030784 ))\n .add(new LatLng( 5.5403427 , -75.8016300 ))\n .add(new LatLng( 5.5402359 , -75.8005357 ))\n .add(new LatLng( 5.5402572 , -75.7992053 ))\n .add(new LatLng( 5.5403640 , -75.7983899 ))\n .add(new LatLng( 5.5400223 , -75.7985616 ))\n .add(new LatLng( 5.5399155 , -75.7995915 ))\n .add(new LatLng( 5.5400437 , -75.8032823 ))\n .add(new LatLng( 5.5394136 , -75.8042479 ))\n .add(new LatLng( 5.5382283 , -75.8037114 ))\n .add(new LatLng( 5.5381215 , -75.8027458 ))\n .add(new LatLng( 5.5374808 , -75.8024025 ))\n .add(new LatLng( 5.5358149 , -75.8037758 ))\n .add(new LatLng( 5.5349606 , -75.8032179 ))\n .add(new LatLng( 5.5340849 , -75.8039474 ))\n .add(new LatLng( 5.5337005 , -75.8036900 ))\n .add(new LatLng( 5.5340208 , -75.8031750 ))\n .add(new LatLng( 5.5336791 , -75.8025098 ))\n .add(new LatLng( 5.5323976 , -75.8024883 ))\n .add(new LatLng( 5.5324350 , -75.8019519 ))\n .add(new LatLng( 5.5320960 , -75.8018446 ))\n .add(new LatLng( 5.5317569 , -75.8020806 ))\n .add(new LatLng( 5.5317356 , -75.8029604 ))\n .add(new LatLng( 5.5314579 , -75.8030999 ))\n .add(new LatLng( 5.5310414 , -75.8026814 ))\n .add(new LatLng( 5.5304968 , -75.8027995 ))\n .color(Color.BLUE)\n .width(5)\n\n );\n\n if (ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, android.Manifest.permission.ACCESS_COARSE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n\n return;\n }\n mMap.setMyLocationEnabled(true);\n\n\n\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n myMap = googleMap;\n setMap();\n try{\n myMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(lastKnown.getLatitude(), lastKnown.getLongitude()), 18.0f));\n }catch (NullPointerException e){\n\n }\n }",
"@Override\n public void onMapReady(GoogleMap googleMap) {\n mMap = googleMap;\n\n MarkerOptions m= new MarkerOptions().position(new LatLng(28.7041,77.1025)).icon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_AZURE)).title(\"tap to get the alerts\");\n n= mMap.addMarker(m);\n\n mMap.setOnMapClickListener(new GoogleMap.OnMapClickListener() {\n @Override\n public void onMapClick(LatLng latLng) {\n\n if (!lati.equals(\"false\") && !longi.equals(\"false\")) {\n Double la = Double.parseDouble(lati);\n Double lo = Double.parseDouble(longi);\n // Add a marker in Sydney and move the camera\n n.setPosition(new LatLng(la,lo));\n n.setTitle(level);\n if(level.equals(\"hard\")){\n n.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_MAGENTA));}\n else\n {\n n.setIcon(BitmapDescriptorFactory.defaultMarker(BitmapDescriptorFactory.HUE_GREEN));}\n LatLng posi = new LatLng(la, lo);\n mMap.moveCamera(CameraUpdateFactory.newLatLng(posi));\n }\n\n\n }\n });\n\n\n\n }"
] |
[
"0.60556906",
"0.6031665",
"0.60210997",
"0.60066986",
"0.6001808",
"0.5982874",
"0.59535164",
"0.5945832",
"0.59386533",
"0.59372616",
"0.5937252",
"0.5935068",
"0.59218884",
"0.58964646",
"0.5887536",
"0.58854777",
"0.5882098",
"0.5863583",
"0.5851618",
"0.58449894",
"0.5840512",
"0.5839113",
"0.58325803",
"0.58319426",
"0.58270013",
"0.5821043",
"0.5811909",
"0.5811582",
"0.58015287",
"0.5787276",
"0.5782658",
"0.5780924",
"0.5774486",
"0.57569546",
"0.5756236",
"0.575598",
"0.5755507",
"0.57531935",
"0.5742625",
"0.573823",
"0.5726693",
"0.57180595",
"0.57115465",
"0.570888",
"0.57071006",
"0.570394",
"0.56972605",
"0.5690294",
"0.56888324",
"0.5688606",
"0.56852984",
"0.5685124",
"0.5684206",
"0.5679977",
"0.56746125",
"0.5674104",
"0.5671834",
"0.5662877",
"0.56573963",
"0.56523365",
"0.5651133",
"0.56482154",
"0.56461376",
"0.5644416",
"0.5643745",
"0.56426877",
"0.56328034",
"0.5623406",
"0.5620588",
"0.5616843",
"0.5610467",
"0.5608504",
"0.56051797",
"0.56005955",
"0.5599853",
"0.55947506",
"0.5589172",
"0.5581387",
"0.557949",
"0.557313",
"0.5569369",
"0.5568876",
"0.5564075",
"0.55637753",
"0.55618125",
"0.55591637",
"0.5555346",
"0.55527866",
"0.5552504",
"0.55487144",
"0.55429655",
"0.55421805",
"0.5541939",
"0.5540108",
"0.5539509",
"0.55354697",
"0.55315125",
"0.5528599",
"0.5526945",
"0.55269384",
"0.55269086"
] |
0.0
|
-1
|
/ constructor with group id
|
public Group(int groupID, String groupImage, int time, int date, String comment){
this.groupID = groupID;
this.groupImage = groupImage;
this.meetingTime = time;
this.date = date;
this.comment = comment;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Group(String id) {\n super(id);\n setConstructor(SvgType.GROUP);\n }",
"public ArticleGroup(int id, String grn) {\n this(id, grn, new Vector<Article>());\n }",
"public Group()\n\t{\n\t\tthis.members = new ArrayList<>();\n\t\tthis.groupID= idCounter;\n\t\tidCounter++;\n\t}",
"public Group(int id, String title) {\n this.id = id;\n this.title = title;\n }",
"public Group() {\r\n\t}",
"public Group(){\n\n }",
"public Group() {\n\n }",
"protected void createGroup(int id) {\n\t\tcreateGroup(id, _motherGroupID);\n\t}",
"public static Group initGroupObject(){\n Group test_group = new Group(\"testGroup\");\n return test_group;\n }",
"public Group()\r\n {\r\n endpoints = new ArrayList<>();\r\n name = \"NewGroup\";\r\n }",
"public GroupChat(String withId) {\n super(withId);\n }",
"public Group(int gid, String ntitle){\n\t\tid = gid;\n\t\tthis.title = ntitle;\n\t\taddToContext();\n\t}",
"Group(String name) {\n this(name, new ArrayList<>());\n }",
"public Group(int id, Day day, int hourBegin, int hourEnd)\r\n {\r\n mId = id;\r\n mDay = day;\r\n mHourBegin = hourBegin;\r\n mHourEnd = hourEnd;\r\n }",
"GroupId groupId();",
"public Group(String name) {\n super(name);\n this.members = new HashSet<>();\n }",
"GroupRefType createGroupRefType();",
"Group getGroupById(String id);",
"protected void createGroup(int id, int parentGroupID) {\n\t\tsendMessage(\"/g_new\", new Object[] { id, 0, parentGroupID });\n\n\t}",
"ID create(NewRoamingGroup group);",
"public Group(){\n\t\tstartTime =-1;\n\t\ttempNumber = 0;\n\t}",
"CsticGroupModel createInstanceOfCsticGroupModel();",
"public Group(GroupManager gm, String groupName) {\n this.groupManager = gm;//GroupManager.getInstance();\n this.groupName = groupName;\n }",
"public GroupEntity(String id, AccountEntity owner, String groupName, Timestamp timestamp) {\n\t\tthis.id = id;\n\t\tthis.owner = owner;\n\t\tthis.groupName = groupName;\n\t\tthis.timestamp = timestamp;\n\t}",
"public CreateGroup() {\n initComponents();\n start();\n }",
"public SimpleGroup(final String name) {\n super(name);\n }",
"private static final devplugin.ChannelGroup createChannelGroup(final String id) {\r\n return new devplugin.ChannelGroupImpl(id, id, \"\");\r\n }",
"public Group getGroup(Long id);",
"public Group() {\n\t\t\tfirst = last = null;\n\t\t\tsize = 0;\n\t\t}",
"public final void rule__AstConstructor__Group__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7231:1: ( rule__AstConstructor__Group__0__Impl rule__AstConstructor__Group__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7232:2: rule__AstConstructor__Group__0__Impl rule__AstConstructor__Group__1\n {\n pushFollow(FOLLOW_rule__AstConstructor__Group__0__Impl_in_rule__AstConstructor__Group__014976);\n rule__AstConstructor__Group__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConstructor__Group__1_in_rule__AstConstructor__Group__014979);\n rule__AstConstructor__Group__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public int getIdGroup() {\n return idGroup;\n }",
"protected VoltexGroup() {\n\t\tsuper();\n\t}",
"public TblrefCityGroupRecord(Short groupid, Short languageid, String groupname, Short grouporder) {\n super(TblrefCityGroup.TBLREF_CITY_GROUP);\n\n set(0, groupid);\n set(1, languageid);\n set(2, groupname);\n set(3, grouporder);\n }",
"public GroupCreateBean() {\n\t\tsuper();\n\t\tthis.initializeNumbers();\t\t\n\t}",
"public Nheader(String groupId) {\r\n\t this.groupId = groupId;\r\n\t long id = ids.incrementAndGet();\r\n\t if (id > MAX_IDS) {\r\n\t \tids.set(0);\r\n\t }\r\n\t reqid = id ;//Long.parseLong(df.format(new Date())+id%MAX_IDS);\r\n\t}",
"PlayerGroup createPlayerGroup();",
"protected abstract Group createIface ();",
"@Override\n\tpublic LinkGroup create(long linkgroupId) {\n\t\tLinkGroup linkGroup = new LinkGroupImpl();\n\n\t\tlinkGroup.setNew(true);\n\t\tlinkGroup.setPrimaryKey(linkgroupId);\n\n\t\tlinkGroup.setCompanyId(companyProvider.getCompanyId());\n\n\t\treturn linkGroup;\n\t}",
"public Group(int id, String name, String description, GroupType groupType, DateTime creationDate, DateTime\n modificationDate, String term, String password, int groupAdmin){\n this.id = id;\n this.name = name;\n this.description = description;\n this.groupType = groupType;\n this.creationDate = creationDate;\n this.modificationDate = modificationDate;\n this.term = term;\n this.password = password;\n this.groupAdmin = groupAdmin;\n }",
"protected int createGroup() {\n\t\tint id = _motherGroupID + 1;\n\t\twhile (_soundNodes.containsKey(id)) { id++; }\n\t\tcreateGroup(id);\n\t\treturn id;\n\t}",
"void setGroupId(String groupId);",
"public void allocateGroupId(){\n\t\trecords.add(new pair(this.groupname,currentId));\n\t\tthis.groupid = currentId;\n\t\tcurrentId++;\n\t\tConnection c = null;\n\t\tStatement stmt = null;\n\t\ttry{\n\t\t\tSystem.out.println(\"group setup\");\n\t\t\tSystem.out.println(this.groupid);\n\t\t\tClass.forName(\"org.postgresql.Driver\");\n\t\t\tc = DriverManager.getConnection(\"jdbc:postgresql://localhost:5432/ifoundclassmate\");\n\t\t\tc.setAutoCommit(false);\n\t\t\tstmt = c.createStatement();\n\t\t\tString sql = \"INSERT INTO GROUPS (GROUPID,GROUPNAME,DESCRIPTION) \"+\n\t\t\t\t\t\"VALUES (\" + this.groupid + \", \" + \"'\" +this.groupname + \"'\"\n\t\t\t\t\t+\" , \" + \"'\" + this.description + \"' \" + \");\" ;\n\t\t\tstmt.executeUpdate(sql);\n\t\t\t\n\t\t\tstmt.close();\n\t\t\tc.commit();\n\t\t\tc.close();\n\t\t} catch (Exception e ){\n\t\t\tSystem.out.println(e.getClass().getName() + e.getMessage() );\n\t\t\treturn;\n\t\t}\n\t\treturn;\n\t}",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public void setGroupId(long groupId);",
"public GroupResponse(){\n\t\t\n\t}",
"public final void rule__AstConstructor__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7260:1: ( rule__AstConstructor__Group__1__Impl rule__AstConstructor__Group__2 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7261:2: rule__AstConstructor__Group__1__Impl rule__AstConstructor__Group__2\n {\n pushFollow(FOLLOW_rule__AstConstructor__Group__1__Impl_in_rule__AstConstructor__Group__115036);\n rule__AstConstructor__Group__1__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConstructor__Group__2_in_rule__AstConstructor__Group__115039);\n rule__AstConstructor__Group__2();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void newGroup() {\n addGroup(null, true);\n }",
"public ServiceGroup create(String shortName, String title, int cid) throws Exception;",
"protected PSGroupProviderInstance()\n {\n }",
"ZigBeeGroup getGroup(int groupId);",
"public void patch(Long id, GroupDto groupDto)\n\t{\n\t\tGroup group = new Group();\n\t\tif (groupDto.getName() != null) group.setName(groupDto.getName());\n\t\t\n\t\tif (groupDto.getSize() != null) group.setSize(groupDto.getSize());\n\t\t\n\t}",
"public final void rule__AstConstructor__Group_2_1__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7419:1: ( rule__AstConstructor__Group_2_1__0__Impl rule__AstConstructor__Group_2_1__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7420:2: rule__AstConstructor__Group_2_1__0__Impl rule__AstConstructor__Group_2_1__1\n {\n pushFollow(FOLLOW_rule__AstConstructor__Group_2_1__0__Impl_in_rule__AstConstructor__Group_2_1__015348);\n rule__AstConstructor__Group_2_1__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConstructor__Group_2_1__1_in_rule__AstConstructor__Group_2_1__015351);\n rule__AstConstructor__Group_2_1__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"GroupType createGroupType();",
"GroupType createGroupType();",
"public JIssueGroup() {\n this(DSL.name(\"issue_group\"), null);\n }",
"public final void rule__AstConstructor__Group__2__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7303:1: ( ( ( rule__AstConstructor__Group_2__0 )? ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7304:1: ( ( rule__AstConstructor__Group_2__0 )? )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7304:1: ( ( rule__AstConstructor__Group_2__0 )? )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7305:1: ( rule__AstConstructor__Group_2__0 )?\n {\n before(grammarAccess.getAstConstructorAccess().getGroup_2()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7306:1: ( rule__AstConstructor__Group_2__0 )?\n int alt60=2;\n int LA60_0 = input.LA(1);\n\n if ( (LA60_0==RULE_ID||(LA60_0>=38 && LA60_0<=45)||LA60_0==58||LA60_0==81||LA60_0==91) ) {\n alt60=1;\n }\n switch (alt60) {\n case 1 :\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7306:2: rule__AstConstructor__Group_2__0\n {\n pushFollow(FOLLOW_rule__AstConstructor__Group_2__0_in_rule__AstConstructor__Group__2__Impl15128);\n rule__AstConstructor__Group_2__0();\n\n state._fsp--;\n\n\n }\n break;\n\n }\n\n after(grammarAccess.getAstConstructorAccess().getGroup_2()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public final void rule__AstConstructor__Group_2__0() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7358:1: ( rule__AstConstructor__Group_2__0__Impl rule__AstConstructor__Group_2__1 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7359:2: rule__AstConstructor__Group_2__0__Impl rule__AstConstructor__Group_2__1\n {\n pushFollow(FOLLOW_rule__AstConstructor__Group_2__0__Impl_in_rule__AstConstructor__Group_2__015226);\n rule__AstConstructor__Group_2__0__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConstructor__Group_2__1_in_rule__AstConstructor__Group_2__015229);\n rule__AstConstructor__Group_2__1();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"Integer givenGroupId();",
"public void setGroupID(int groupID) {\n this.groupID = groupID;\n }",
"public final void rule__XConstructorCall__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:13356:1: ( rule__XConstructorCall__Group__1__Impl rule__XConstructorCall__Group__2 )\r\n // InternalDroneScript.g:13357:2: rule__XConstructorCall__Group__1__Impl rule__XConstructorCall__Group__2\r\n {\r\n pushFollow(FOLLOW_6);\r\n rule__XConstructorCall__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XConstructorCall__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public DataNormalizerImpl (Integer... groupIds) {\n\t\tthis.groupIds = groupIds;\n\t}",
"public GLineGroup() {\n\t\t// empty\n\t}",
"public NCDGroupDB(ConnectionInf db)\n {\n theConnectionInf = db;\n dbObj = new NCDGroup();\n initConfig();\n }",
"Object getGroupID(String groupName) throws Exception;",
"public final void rule__XConstructorCall__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:13329:1: ( rule__XConstructorCall__Group__0__Impl rule__XConstructorCall__Group__1 )\r\n // InternalDroneScript.g:13330:2: rule__XConstructorCall__Group__0__Impl rule__XConstructorCall__Group__1\r\n {\r\n pushFollow(FOLLOW_90);\r\n rule__XConstructorCall__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_2);\r\n rule__XConstructorCall__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public void setGroupId(Integer groupId) {\r\n this.groupId = groupId;\r\n }",
"public GroupFragment() {\n groupList= new ArrayList<String>();\n //The group list should come from the server\n groupList.add(\"Lordaeron\");\n groupList.add(\"Institute of War\");\n groupList.add(\"BJTU-LOL\");\n groupList.add(\"High school\");\n groupList.add(\"We are a team\");\n groupList.add(\"Killing\");\n groupList.add(\"Less is more\");\n groupList.add(\"Come on baby\");\n groupList.add(\"Breaking the news\");\n groupList.add(\"DL\");\n groupList.add(\"Taste my blade\");\n groupList.add(\"Little\");\n groupList.add(\"Double kill\");\n groupList.add(\"Victory \");\n groupList.add(\"Huskar\");\n groupList.add(\"First blood\");\n groupList.add(\"Ironwood Branch\");\n groupList.add(\"Medusa\");\n groupList.add(\"Slithice\");\n groupList.add(\"Zeus\");\n groupList.add(\"It's lucky time\");\n }",
"public final void rule__XConstructorCall__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:13793:1: ( ( 'new' ) )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:13794:1: ( 'new' )\r\n {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:13794:1: ( 'new' )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:13795:1: 'new'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); \r\n }\r\n match(input,117,FOLLOW_117_in_rule__XConstructorCall__Group__1__Impl27990); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public Group() {\n\t\t\tmembers = new ArrayList<String>();\n\t\t\tcreatorName = null;\n\t\t\tdemotedCreatorName = null;\n\t\t}",
"UUID getGroupId();",
"public final void rule__XConstructorCall__Group__1() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:13781:1: ( rule__XConstructorCall__Group__1__Impl rule__XConstructorCall__Group__2 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:13782:2: rule__XConstructorCall__Group__1__Impl rule__XConstructorCall__Group__2\r\n {\r\n pushFollow(FOLLOW_rule__XConstructorCall__Group__1__Impl_in_rule__XConstructorCall__Group__127959);\r\n rule__XConstructorCall__Group__1__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XConstructorCall__Group__2_in_rule__XConstructorCall__Group__127962);\r\n rule__XConstructorCall__Group__2();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public void setGroupId(int groupId) {\n this.groupId = groupId;\n }",
"public void setGroupId(int groupId) {\n this.groupId = groupId;\n }",
"public final void rule__XConstructorCall__Group__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:9472:1: ( ( 'new' ) )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:9473:1: ( 'new' )\n {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:9473:1: ( 'new' )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:9474:1: 'new'\n {\n if ( state.backtracking==0 ) {\n before(grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); \n }\n match(input,55,FOLLOW_55_in_rule__XConstructorCall__Group__1__Impl19097); if (state.failed) return ;\n if ( state.backtracking==0 ) {\n after(grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); \n }\n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public void setGroupID(Long newGroupID)\n {\n this.groupID = newGroupID;\n }",
"public final void rule__XConstructorCall__Group__1__Impl() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \t\r\n try {\r\n // InternalDroneScript.g:13368:1: ( ( 'new' ) )\r\n // InternalDroneScript.g:13369:1: ( 'new' )\r\n {\r\n // InternalDroneScript.g:13369:1: ( 'new' )\r\n // InternalDroneScript.g:13370:2: 'new'\r\n {\r\n if ( state.backtracking==0 ) {\r\n before(grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); \r\n }\r\n match(input,84,FOLLOW_2); if (state.failed) return ;\r\n if ( state.backtracking==0 ) {\r\n after(grammarAccess.getXConstructorCallAccess().getNewKeyword_1()); \r\n }\r\n\r\n }\r\n\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"static DinnerGroupFragment newInstance(int groupId) {\n DinnerGroupFragment fragment = new DinnerGroupFragment();\n Bundle args = new Bundle();\n args.putInt(GROUP_ID, groupId);\n fragment.setArguments(args);\n return fragment;\n }",
"public void setGroup(entity.Group value);",
"public final void rule__XConstructorCall__Group__1() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:9460:1: ( rule__XConstructorCall__Group__1__Impl rule__XConstructorCall__Group__2 )\n // ../org.xtext.lwc.instances.ui/src-gen/org/xtext/lwc/instances/ui/contentassist/antlr/internal/InternalInstances.g:9461:2: rule__XConstructorCall__Group__1__Impl rule__XConstructorCall__Group__2\n {\n pushFollow(FOLLOW_rule__XConstructorCall__Group__1__Impl_in_rule__XConstructorCall__Group__119066);\n rule__XConstructorCall__Group__1__Impl();\n\n state._fsp--;\n if (state.failed) return ;\n pushFollow(FOLLOW_rule__XConstructorCall__Group__2_in_rule__XConstructorCall__Group__119069);\n rule__XConstructorCall__Group__2();\n\n state._fsp--;\n if (state.failed) return ;\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public long getGroup()\r\n { return group; }",
"public final void rule__XConstructorCall__Group__0() throws RecognitionException {\r\n\r\n \t\tint stackSize = keepStackSize();\r\n \r\n try {\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:13750:1: ( rule__XConstructorCall__Group__0__Impl rule__XConstructorCall__Group__1 )\r\n // ../de.nie.fin.ui/src-gen/de/nie/fin/ui/contentassist/antlr/internal/InternalFin.g:13751:2: rule__XConstructorCall__Group__0__Impl rule__XConstructorCall__Group__1\r\n {\r\n pushFollow(FOLLOW_rule__XConstructorCall__Group__0__Impl_in_rule__XConstructorCall__Group__027898);\r\n rule__XConstructorCall__Group__0__Impl();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n pushFollow(FOLLOW_rule__XConstructorCall__Group__1_in_rule__XConstructorCall__Group__027901);\r\n rule__XConstructorCall__Group__1();\r\n\r\n state._fsp--;\r\n if (state.failed) return ;\r\n\r\n }\r\n\r\n }\r\n catch (RecognitionException re) {\r\n reportError(re);\r\n recover(input,re);\r\n }\r\n finally {\r\n\r\n \trestoreStackSize(stackSize);\r\n\r\n }\r\n return ;\r\n }",
"public final void rule__AstConstructor__Group_2__1__Impl() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7398:1: ( ( ( rule__AstConstructor__Group_2_1__0 )* ) )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7399:1: ( ( rule__AstConstructor__Group_2_1__0 )* )\n {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7399:1: ( ( rule__AstConstructor__Group_2_1__0 )* )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7400:1: ( rule__AstConstructor__Group_2_1__0 )*\n {\n before(grammarAccess.getAstConstructorAccess().getGroup_2_1()); \n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7401:1: ( rule__AstConstructor__Group_2_1__0 )*\n loop61:\n do {\n int alt61=2;\n int LA61_0 = input.LA(1);\n\n if ( (LA61_0==62) ) {\n alt61=1;\n }\n\n\n switch (alt61) {\n \tcase 1 :\n \t // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7401:2: rule__AstConstructor__Group_2_1__0\n \t {\n \t pushFollow(FOLLOW_rule__AstConstructor__Group_2_1__0_in_rule__AstConstructor__Group_2__1__Impl15313);\n \t rule__AstConstructor__Group_2_1__0();\n\n \t state._fsp--;\n\n\n \t }\n \t break;\n\n \tdefault :\n \t break loop61;\n }\n } while (true);\n\n after(grammarAccess.getAstConstructorAccess().getGroup_2_1()); \n\n }\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"public BaseStoreGrnM (java.lang.Integer id) {\n\t\tthis.setId(id);\n\t\tinitialize();\n\t}",
"public long getGroupId();",
"public long getGroupId();",
"public long getGroupId();",
"public long getGroupId();",
"public long getGroupId();",
"public long getGroupId();",
"@Override\n\t\t\tpublic void run() {\n\t\t\t\tResult createGroup = mFacePlus.createGroup(groupname.getText().toString(), groupname.getText().toString(), null);\n\t\t\t\tif(createGroup.type == Result.TYPE.FAILED){\n\t\t\t\t\tDebug.debug(TAG, \"err msg = \" + createGroup.data);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tGroup group = (Group) createGroup.data;\n\t\t\t\tLog.e(TAG,\"groupid = \"+group.getId());\n\t\t\t\tLog.e(TAG,group.toString());\n\t\t\t}",
"public void setGroupId( String groupId ) {\n this.groupId = groupId;\n }",
"public boolean createGroup(GroupsGen group) {\n \n super.create(group);\n return true;\n }",
"public final void rule__AstConstructor__Group__2() throws RecognitionException {\n\n \t\tint stackSize = keepStackSize();\n \n try {\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7291:1: ( rule__AstConstructor__Group__2__Impl rule__AstConstructor__Group__3 )\n // ../org.caltoopia.frontend.ui/src-gen/org/caltoopia/frontend/ui/contentassist/antlr/internal/InternalCal.g:7292:2: rule__AstConstructor__Group__2__Impl rule__AstConstructor__Group__3\n {\n pushFollow(FOLLOW_rule__AstConstructor__Group__2__Impl_in_rule__AstConstructor__Group__215098);\n rule__AstConstructor__Group__2__Impl();\n\n state._fsp--;\n\n pushFollow(FOLLOW_rule__AstConstructor__Group__3_in_rule__AstConstructor__Group__215101);\n rule__AstConstructor__Group__3();\n\n state._fsp--;\n\n\n }\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n }\n finally {\n\n \trestoreStackSize(stackSize);\n\n }\n return ;\n }",
"Integer getGroupId();",
"public EnemyGroup(){\r\n\t\t\r\n\t}",
"public void setGroupId(Integer groupId) {\n this.groupId = groupId;\n }"
] |
[
"0.75594044",
"0.73264897",
"0.727827",
"0.71621615",
"0.71450084",
"0.7100456",
"0.7049737",
"0.69140244",
"0.6896822",
"0.6829531",
"0.67917657",
"0.6729394",
"0.6689571",
"0.66643095",
"0.6594868",
"0.65927345",
"0.64726",
"0.6448822",
"0.64290625",
"0.6417239",
"0.6414576",
"0.6360035",
"0.63500255",
"0.6318548",
"0.6309295",
"0.6308762",
"0.6293243",
"0.62764335",
"0.62727296",
"0.624455",
"0.6237651",
"0.6224981",
"0.6206962",
"0.617923",
"0.61734664",
"0.6170726",
"0.6152445",
"0.6140893",
"0.61382324",
"0.6100754",
"0.6094064",
"0.6091397",
"0.6080508",
"0.6080508",
"0.6080508",
"0.6080508",
"0.6080508",
"0.6080508",
"0.6077746",
"0.6069829",
"0.6065808",
"0.6056148",
"0.60557306",
"0.6040323",
"0.60308605",
"0.60097414",
"0.60038704",
"0.60038704",
"0.59973437",
"0.5991708",
"0.59530425",
"0.5934609",
"0.5923755",
"0.592361",
"0.5917482",
"0.590504",
"0.5884384",
"0.5884066",
"0.58837646",
"0.5874397",
"0.58660954",
"0.58612406",
"0.5859814",
"0.58587646",
"0.58452183",
"0.5831573",
"0.5831573",
"0.58291763",
"0.5828249",
"0.58276135",
"0.5823212",
"0.58210593",
"0.5821042",
"0.58125126",
"0.5800441",
"0.57994205",
"0.5788963",
"0.5788382",
"0.5788382",
"0.5788382",
"0.5788382",
"0.5788382",
"0.5788382",
"0.5785023",
"0.5780777",
"0.57802117",
"0.5779407",
"0.5778731",
"0.57785535",
"0.5770215"
] |
0.586246
|
71
|
TODO Autogenerated method stub
|
@Override
public List<StreamCounterVO> getStreamCounterList(int startLimit,
int endLimit) throws DataAccessFailedException {
return null;
}
|
{
"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.66713095",
"0.6567948",
"0.652319",
"0.648097",
"0.64770466",
"0.64586824",
"0.64132667",
"0.6376419",
"0.62759",
"0.62545097",
"0.62371093",
"0.62237984",
"0.6201738",
"0.619477",
"0.619477",
"0.61924416",
"0.61872935",
"0.6173417",
"0.613289",
"0.6127952",
"0.6080854",
"0.6076905",
"0.6041205",
"0.6024897",
"0.60200036",
"0.59985113",
"0.5967729",
"0.5967729",
"0.5965808",
"0.5949083",
"0.5941002",
"0.59236866",
"0.5909713",
"0.59030116",
"0.589475",
"0.58857024",
"0.58837134",
"0.586915",
"0.58575684",
"0.5850424",
"0.5847001",
"0.5824116",
"0.5810248",
"0.5809659",
"0.58069366",
"0.58069366",
"0.5800507",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.5792168",
"0.57900196",
"0.5790005",
"0.578691",
"0.578416",
"0.578416",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5774115",
"0.5761079",
"0.57592577",
"0.57592577",
"0.5749888",
"0.5749888",
"0.5749888",
"0.5748457",
"0.5733414",
"0.5733414",
"0.5733414",
"0.57209575",
"0.57154554",
"0.57149583",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.57140404",
"0.571194",
"0.57043016",
"0.56993437",
"0.5696782",
"0.5687825",
"0.5677794",
"0.5673577",
"0.5672046",
"0.5669512",
"0.5661156",
"0.56579345",
"0.5655569",
"0.5655569",
"0.5655569",
"0.56546396",
"0.56543446",
"0.5653163",
"0.56502634"
] |
0.0
|
-1
|
super: hace referencia al constructor de la clase "madre" (en este caso Paciente)
|
Doctor(){
super();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public MPaciente() {\r\n\t}",
"public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }",
"public Alojamiento() {\r\n\t}",
"public MorteSubita() {\n }",
"private ControleurAcceuil(){ }",
"public AntrianPasien() {\r\n\r\n }",
"public Pasien() {\r\n }",
"public Respuesta() {\n }",
"public Candidatura (){\n \n }",
"private UsineJoueur() {}",
"public Camion(int peso,Marcas marca,int kilometraje,int antiguedad) {\n super(peso,marca,kilometraje,antiguedad);\n if (super.getMarca().equals(\"FORD\")|| super.getMarca().equals(\"FIAT\"))\n {\n super.setArticulado();\n }\n if(super.getArticulado() && getPeso()<3000)\n {\n super.setCumpleNormativa();\n }\n if(!super.getArticulado() && getPeso()<2000)\n {\n super.setCumpleNormativa();\n }\n\n }",
"public Plato(){\n\t\t\n\t}",
"public Caso_de_uso () {\n }",
"public CarteCaisseCommunaute() {\n super();\n }",
"public Propuestas() {}",
"public Carrera(){\n }",
"public ControladorPrueba() {\r\n }",
"public Personaje(Juego juego,Celda c) {\r\n\t\tsuper(juego,c);\r\n\t}",
"public FiltroMicrorregiao() {\r\n }",
"public paciente()\n {\n con = new bdconexion(); //instancia la clase bdconexion\n }",
"public Propiedad(){\n\t}",
"public Corso() {\n\n }",
"public Unidadmedida() {\r\n\t}",
"public Pila(Fabrica<TNodo> creadorDeNodos) {\n\t\tsuper(creadorDeNodos);\n\t}",
"protected Asignatura()\r\n\t{}",
"public CuentaDeposito() {\n super();\n }",
"public prueba()\r\n {\r\n }",
"public Empleado() { }",
"public Sistema(){\r\n\t\t\r\n\t}",
"public Supercar() {\r\n\t\t\r\n\t}",
"public SlanjePoruke() {\n }",
"public ConsultaMedica() {\n super();\n }",
"protected Approche() {\n }",
"private BaseDatos() {\n }",
"public Persona(){\n \n }",
"public Persona(){\n \n }",
"public Manusia() {}",
"public Persona() {\n \t\n }",
"public nomina()\n {\n deducidoClase = new deducido();\n devengadoClase = new devengado();\n }",
"protected Persona (String nombre,String apellido, String fechaNac){\r\n this.nombre = nombre;\r\n this.apellido = apellido;\r\n this.fechaNac = fechaNac;\r\n }",
"public Carrinho() {\n\t\tsuper();\n\t}",
"public ContaBancaria() {\n }",
"private QuadradoPerfeito() {\n }",
"public void construirCargo() {\n persona.setCargo(Cargos.SUPERVISOR);\n }",
"public Repartidor(String nombre, String apellido, String direccion, String telefono, String cedula) {\n super(nombre, apellido, direccion, telefono, cedula);\n this.disponible = true; //empieza siendo disponible luego cuando lo utilicemos pasara a no estarlo y asi...\n this.salario = 50; //establecemos un salario inicial de 50 al que luego le adicionaremos segun la cantidad de envios que haya realizado con exito \n }",
"Petunia() {\r\n\t\t}",
"public Commande() {\n }",
"public Sobre() {\n\t\tsuper();\n\t\tinitialize();\n\t}",
"public Clade() {}",
"public Exercicio(){\n \n }",
"protected EmpleadoPlantilla(com.matisse.reflect.MtClass mtCls) {\n super(mtCls);\n }",
"public Persona() {\n\t}",
"public Dipendente() {\r\n\t\tsetnMat();\r\n\t}",
"public Persona(){\n /*super(nombresPosibles\n [r.nextInt(nombresPosibles.length)],(byte)r.nextInt(101));\n */\n super(\"Anónimo\",(byte)5);\n String[] nombresPosibles={\"Patracio\",\"Eusequio\",\"Bartolo\",\"Mortadelo\",\"Piorroncho\",\"Tiburcio\"};\n String[] apellidosPosibles={\"Sánchez\",\"López\",\"Martínez\",\"González\",\"Páramos\",\"Jiménez\",\"Parra\"};\n String[] nacionalidadesPosibles={\"Española\",\"Francesa\",\"Alemana\",\"Irlandesa\",\"Japonesa\",\"Congoleña\",\"Bielorrusa\",\"Mauritana\"};\n Random r=new Random();\n this.apellido=apellidosPosibles\n [r.nextInt(apellidosPosibles.length)];\n this.nacionalidad=nacionalidadesPosibles\n [r.nextInt(nacionalidadesPosibles.length)];\n mascota=new Mascota[5];\n this.saldo=r.nextInt(101);\n }",
"public Busca(){\n }",
"public DarAyudaAcceso() {\r\n }",
"public Commune() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public Prova() {}",
"public TipoPrestamo() {\n\t\tsuper();\n\t}",
"public Troco() {\n }",
"public AfiliadoVista() {\r\n }",
"public ControladorCoche() {\n\t}",
"public Vehiculo() {\r\n }",
"public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }",
"public CorreoElectronico() {\n }",
"public Aritmetica(){ }",
"public Oveja() {\r\n this.nombreOveja = \"Oveja\";\r\n }",
"public PersonaFisica() {}",
"public Pacientes() {\n initComponents();\n mostrarDatosPaciente(\"\");\n }",
"public ControladorUsuario() {\n }",
"public PacienteDAO(){ \n }",
"public Comida(String nombre){\n super(nombre);\n this.calorias = 10;\n }",
"public Produto() {}",
"public Contato() {\n }",
"private TIPO_REPORTE(String nombre)\r\n/* 55: */ {\r\n/* 56: 58 */ this.nombre = nombre;\r\n/* 57: */ }",
"public Ciudad()\n {\n\n }",
"public FicheConnaissance() {\r\n }",
"public Livre() {\r\n super();\r\n }",
"public Composante() {\n\t\tsuper();\n\t\t// TODO Auto-generated constructor stub\n\t}",
"public AgenteEstAleatorio() {\r\n }",
"public solicitudControlador() {\n }",
"public Firma() {\n }",
"public Corrida(){\n\n }",
"public PantallaPersonal(GeoWallStart game) {\n\t\t\tsuper(game);\n\t\t\tuser= new Usuario();\n\t\t\n\t}",
"public Transportista() {\n }",
"public Persona() {\n }",
"public CCuenta()\n {\n }",
"public EtatInitialisation(Controleur controleur) {\n super(controleur);\n super.rendControleur().lancerEcranDemarrage();\n }",
"public Medico() {\r\n\t\tsuper();\r\n\t codmedico = \"\";\r\n\t\tespecialidad = null;\r\n\t}",
"public lesPostesControlesImpl() {\n }",
"public Puntaje() {\n nombre = \"\";\n puntos = 0;\n }",
"public Coche() {\n super();\n }",
"public CuerpoCeleste() {\n\t\t// Start of user code constructor for CuerpoCeleste)\n\t\tsuper();\n\t\t// End of user code\n\t}",
"public Reserva(){super();}",
"public TebakNusantara()\n {\n }",
"public Inicio()\n { \n super(600, 400, 1);\n prepararInicio();\n\n }",
"public PersistenciaCMT() {\n\n }",
"public DetArqueoRunt () {\r\n\r\n }",
"private DittaAutonoleggio(){\n \n }",
"public Empleado(String nombre, String apellidos, int edad, String dni, String telefono, int codEmpleado) {\n super(nombre, apellidos, edad, dni, telefono, codEmpleado);\n }"
] |
[
"0.7835905",
"0.7700401",
"0.74370044",
"0.7335536",
"0.730514",
"0.726765",
"0.72206813",
"0.718865",
"0.71502024",
"0.7138697",
"0.713716",
"0.7131176",
"0.7130628",
"0.7112735",
"0.70662886",
"0.7054524",
"0.70418876",
"0.7041808",
"0.7033487",
"0.70263124",
"0.6999095",
"0.69960034",
"0.6984352",
"0.69709086",
"0.6957941",
"0.6947498",
"0.69275117",
"0.6903327",
"0.69000477",
"0.6889746",
"0.68839025",
"0.68780553",
"0.6848477",
"0.6825498",
"0.6821408",
"0.6821408",
"0.68176526",
"0.6800975",
"0.6798352",
"0.6791867",
"0.67916095",
"0.67838067",
"0.67830426",
"0.6777074",
"0.67743224",
"0.67722034",
"0.676762",
"0.6762944",
"0.67567104",
"0.67542976",
"0.67390573",
"0.67325175",
"0.67284936",
"0.6726115",
"0.67199564",
"0.6718183",
"0.6712354",
"0.6701801",
"0.6695588",
"0.66843736",
"0.6677593",
"0.6675222",
"0.6664827",
"0.6658574",
"0.66557115",
"0.6655118",
"0.66496897",
"0.663649",
"0.66352624",
"0.66324127",
"0.66226983",
"0.6620498",
"0.6614431",
"0.66011053",
"0.6600678",
"0.6597666",
"0.65955704",
"0.65928847",
"0.65873504",
"0.65808266",
"0.657802",
"0.6575588",
"0.65753067",
"0.65723896",
"0.6571333",
"0.6571067",
"0.6560805",
"0.6552683",
"0.6551416",
"0.6549284",
"0.6546576",
"0.65429085",
"0.6536552",
"0.65364504",
"0.65346014",
"0.6533846",
"0.651095",
"0.6509036",
"0.65088034",
"0.6505211"
] |
0.69217956
|
27
|
Sum of two numbers before it
|
public static int fib(int index){
int num1 = 0;
int num2 = 1;
int temp;
for(int i = 0; i < index-1; i++){
temp = num2;
num2 += num1;
num1 = temp;
}
return num2;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private long calcSum(int a, int b) {\n return (new Long(a) + new Long(b));\n }",
"public T sum(T first, T second);",
"@Override\n\t\t\tpublic Integer apply(Integer num1, Integer num2) {\n\t\t\t\treturn num1+num2;\n\t\t\t}",
"public int GetSum(int a, int b) {\n\t\tint result = 0;\r\n\t\tint number = 0;\r\n\t\t\r\n\t\t//If a is greater than b, I will loop through all the integers between them, starting by b and summing 1 in every step of the loop \r\n\t\tif (a > b) {\r\n\r\n\t\t\tfor (int x = b; x <= a; x++) {\r\n\t\t\t\t//The number variable will be the x step of the loop, starting from b\r\n\t\t\t\tnumber = x;\r\n\t\t\t\tresult += number;\r\n\t\t\t\tnumber++;\r\n\t\t\t}\r\n\t\t//It will be similar if a is greater than b, but starting counting from a\r\n\t\t} else if (a < b) {\r\n\t\t\tfor (int x = a; x <= b; x++) {\r\n\t\t\t\tnumber = x;\r\n\t\t\t\tresult += number;\r\n\t\t\t\tnumber++;\r\n\t\t\t}\r\n\r\n\t\t}\r\n\t\t//If the two values are similar, the method just return one of them, ie a:\r\n\t\telse {\r\n\t\t\tresult = a;\r\n\t\t\t\r\n\t\t}\r\n\r\n\t\t//Finally the method return the result.\r\n\t\treturn result;\r\n\r\n\t}",
"public static int sum(int a, int b) {\n\t\tif (b <= 0) {\n\t\t\treturn a;\n\t\t} else {\n\t\t\treturn sum(a + 1, b - 1);\n\t\t}\n\t}",
"public static int getSum(int b, int n1, int n2) {\n int carry = 0;\r\n int pos = 1;\r\n int num = 0;\r\n while (n1 != 0 || n2 != 0 || carry != 0) {\r\n int a = n1 % 10;\r\n int d = n2 % 10;\r\n int c = a + d + carry;\r\n \r\n // if (c >= b)\r\n // c = c % b;\r\n carry = c/ b;\r\n c=c%b;\r\n num = num + pos * (c);\r\n \r\n pos *= 10;\r\n n1 /= 10;\r\n n2 /= 10;\r\n }\r\n\r\n return num;\r\n }",
"public int sum(int a, int b) {\n\t\treturn a + b;\n\t}",
"protected int sumIterative(int a, int b){\n int result = a;\n while (b != 0){\n if (b > 0){\n result++;\n b--;\n } else {\n result--;\n b++;\n }\n }\n return result;\n }",
"public static int suma(int num1, int num2){\r\n\t\treturn num1+num2;\r\n\t}",
"@Override\r\n\tpublic int calculate(int a, int b) {\n\t\treturn (a + b) * 2;\r\n\t}",
"public int sumDouble(int a, int b) {\n int sum = a + b;\n if (a == b){\n sum *= 2;\n }\n\n return sum; \n}",
"private static BigInteger findSum(BigInteger start, BigInteger end) {\n return start.add(end).multiply(end.subtract(start).add(new BigInteger(\"1\"))).divide(new BigInteger(\"2\"));\n }",
"public int sumTwo(int a, int b) {\n\t\twhile (b != 0) {\n\t\t\tint sum = a ^ b;\n\t\t\tint carry = (a & b) << 1;\n\t\t\ta = sum; \n\t\t\tb = carry; \n\t\t}\n\t\treturn a;\n\t}",
"public int addTwoNumbers(int a, int b) {\n return a + b;\n }",
"public static int sum(int first, int second) {\n\t\treturn first + second;\n\n\t}",
"static int add(int a, int b){\n int carry = 0;\n int result = 0;\n int i;\n for(i=0; a>0||b>0; i++){\n int ba = a&1;\n int bb = b&1;\n result = result|((carry^ba^bb)<<i);\n carry = (ba&bb) | (bb&carry) | (carry&ba);\n a = a>>1;\n b = b>>1;\n }\n return result|(carry<<i);\n }",
"public static int sum (int a, int b) {\n\t\t\n\t\treturn a + b;\n\t}",
"public int getSum(int a, int b) {\n return b == 0 ? a : getSum(a ^ b, (a & b) << 1);\n }",
"public double getSum()\n {\n return first + second;\n }",
"public static int sum(int a, int b) {\n return a + b;\n }",
"private void addition()\n {\n\tint tempSum = 0;\n\tint carryBit = 0;\n\tsum = new Stack<String>();\n\tStack<String> longerStack = pickLongerStack(number, otherNumber);\n\twhile(!longerStack.isEmpty())\n\t{\n\t tempSum = digitOf(number) + digitOf(otherNumber) + carryBit; //adding\n\t carryBit = tempSum / 10;\n\t sum.push((tempSum % 10) + \"\"); //store the digit which is not carryBit\n\t}\n\tif(carryBit == 1) sum.push(\"1\"); //the last carry bit need to be add as very first digit of sum if there is carry bit\n }",
"public int getSum(int a, int b) {\n if(a == 0) {\n return b;\n }\n\n if(b == 0) {\n return a;\n }\n\n int carry = 0;\n\n while(b != 0) {\n\n // If both bits are 1, we set the bit to the left (<<1) to 1 -- this is the carry step\n carry = (a & b) << 1;\n\n // If both bits are 1, this will give us 0 (we will have a carry from the step above)\n // If only 1 bit is 1, this will give us 1 (there is nothing to carry)\n a = a ^ b;\n\n b = carry;\n }\n\n return a;\n }",
"public void sum(int a, int b)\n {\n int index = a + 1;\n int sum = 0;\n \n while (index < b) {\n sum += index;\n index++;\n }\n System.out.println(sum);\n }",
"private static BigInteger forceAdd(BigInteger first, BigInteger second) {\n\t\tBigInteger i = new BigInteger();\n\t\tint sign1 = first.sign(), sign2 = second.sign();\n\t\ti.front = new DigitNode(0, null); // dummy\n\t\tfor(DigitNode n1 = first.front, n2 = second.front, n = i.front; n1 != null || n2 !=null; n = n.next) {\n\t\t\tint value = 0;\n\t\t\tif (n1 != null) {\n\t\t\t\tvalue += n1.digit*sign1;\n\t\t\t\tn1 = n1.next;\n\t\t\t}\n\t\t\tif (n2 != null) {\n\t\t\t\tvalue += n2.digit*sign2;\n\t\t\t\tn2 = n2.next;\n\t\t\t}\n\t\t\tn.next = new DigitNode(value, null);\n\t\t\tif (value != 0) i.negative = (value < 0);\n\t\t\ti.numDigits++;\n\t\t}\n\t\ti.front = i.front.next; //skip the dummy\n\t\treturn i;\n\t}",
"public static int sum(int a,int b) {\n\t\tint c = a + b;\n\t\treturn c;\n\t}",
"@Override\n\t\tpublic Double fazCalculo(Double num1, Double num2) {\n\t\t\treturn num1 + num2;\n\t\t}",
"public static int twoNumbers(int a, int b) {\n if ( a == b) {\n return ((a+2)+(b+2));\n }\n else {\n return ((a+1)+(b+1));\n }\n\n }",
"@Override\n\tpublic int arithmetical(int first, int second) {\n\t\treturn first - second;\n\t}",
"static int sum(int value1, int value2) {\n return value1 + value2;\n }",
"public int add(int a, int b) //add method take two int values and returns the sum\n {\n int sum = a + b;\n return sum;\n }",
"public int getSum(int a, int b) {\n\n while(b!=0){ //check till carry is not equal to zero\n int carry = a&b;\n a=a^b;\n b=carry<<1;\n }\n return a;\n }",
"public int sum() {\n\t\treturn (x + y);\n\t}",
"public int suma(int numero1, int numero2){\n //Estas variables solo tienen el alcance de este metodo\n return numero1 + numero2;\n }",
"public double add(int a, int b){\r\n return a + b;\r\n }",
"double getSum();",
"double getSum();",
"public static int getSum(int a, int b) {\n// Integer.toBinaryString(a) ^ Integer.toBinaryString(b);\n return a ^ b;\n }",
"public static NumberP Addition(NumberP first, NumberP second)\n {\n return OperationsManaged.PerformArithmeticOperation\n (\n first, second, ExistingOperations.Addition\n ); \t\n }",
"int sum(int a, int b) {\n return a + b;\n }",
"public static int Sum(int a, int b)\r\n\t{\n\tint sum=a+b;\r\n\treturn sum;\r\n\t}",
"static int soma2(int a, int b) {\n\t\tint s = a + b;\r\n\t\treturn s;\r\n\t}",
"public static int sum(int n1, int n2){\n return n1 + n2;\n }",
"private void addTwoNumbers() {\n\t\t\n\t}",
"public static void add(int[] n1, int[] n2, int[] sum) {\n\t\tint b = n1.length-1;\n\t\tint carry = 0;\n\t\twhile (b >= 0) {\n\t\t\tint s = n1[b] + n2[b] + carry;\n\t\t\tsum[b+1] = s % 10;\n\t\t\tif (s > 9) { carry = 1; } else { carry = 0; }\n\t\t\tb--;\n\t\t}\n\t\t\n\t\tsum[0] = carry;\n\t}",
"@Override\r\n\tpublic int plus(int left, int right) {\n\t\treturn left + right; \r\n\t\t//return 0;\r\n\t}",
"public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n Stack<Integer> stack1 = new Stack<>(), stack2 = new Stack<>();\n if(l1 == null) return l2;\n if(l2 == null) return l1;\n int carry = 0;\n ListNode tmp1 = l1, tmp2 = l2;\n while(tmp1 != null){\n \tstack1.push(tmp1.val);\n \ttmp1 = tmp1.next;\n } \n while(tmp2 != null){\n \tstack2.push(tmp2.val);\n \ttmp2 = tmp2.next;\n }\n int val1 = 0, val2 = 0, sum = 0;\n while(!stack1.isEmpty() || !stack2.isEmpty()){\n \tif(!stack1.isEmpty()){\n \t\tval1 = stack1.pop();\n \t}else{\n \t\tval1 = 0;\n \t}\n \tif(!stack2.isEmpty()){\n \t\tval2 = stack2.pop();\n \t}else{\n \t\tval2 = 0;\n \t}\n \tsum = val1 + val2 + carry;\n \tcarry = sum / 10;\n \ttmp1 = new ListNode(sum % 10);\n \ttmp1.next = tmp2;\n \ttmp2 = tmp1;\n }\n if(carry != 0){\n tmp1 = new ListNode(carry);\n tmp1.next = tmp2;\n tmp2 = tmp1;\n }\n return tmp1;\n }",
"public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n \tint sum = 0;\n \tListNode l3 = new ListNode(0);\n \tListNode l = l3;\n \twhile (l1 != null || l2 != null || sum != 0) {\n \t\tif (l1 != null && l2 != null) {\n \t\t\tsum = l1.val + l2.val + sum;\n \t\t\tl1 = l1.next;\n \t\t\tl2 = l2.next;\n \t\t} else if (l2 != null) {\n \t\t\tsum = l2.val + sum;\n \t\t\tl2 = l2.next;\n \t\t} else if (l1 != null) {\n \t\t\tsum = l1.val + sum;\n \t\t\tl1 = l1.next;\n \t\t}\n \t\tint val;\n \t\tif (sum > 9) {\n \t\t\tval = sum % 10;\n \t\t\tsum = sum/10;\n \t\t} else {\n \t\t\tval = sum;\n \t\t\tsum = 0;\n \t\t}\n \t\tl3.next = new ListNode (val);\n \t\tl3 = l3.next;\n \t}\n return l.next;\n }",
"public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n\t\tListNode dummyHead = new ListNode(0);\n\t\tListNode p = l1, q = l2, curr = dummyHead;\n\t\tint carry = 0;\n\t\twhile (p != null || q != null) {\n\t\t\tint x = (p != null) ? p.val : 0;\n\t\t\tint y = (q != null) ? q.val : 0;\n\t\t\tint sum = carry + x + y;\n\t\t\tcarry = sum / 10;\n\t\t\tcurr.next = new ListNode(sum % 10);\n\t\t\tcurr = curr.next;\n\t\t\tif (p != null)\n\t\t\t\tp = p.next;\n\t\t\tif (q != null)\n\t\t\t\tq = q.next;\n\t\t}\n\t\tif (carry > 0) {\n\t\t\tcurr.next = new ListNode(carry);\n\t\t}\n\t\treturn dummyHead.next;\n\t}",
"static int sum(int a, int b) {\n return a+b;\r\n }",
"public static double sum(double a, double b) {\n return a + b;\n }",
"public int getSum(int x, int y){\n return x+y;\n }",
"public ListNode addTwoNumbers(ListNode l1, ListNode l2){\r\n\t\tint sum=0,carry=0;\r\n\t\tListNode prebefore=new ListNode(0),run=prebefore;\r\n\t\twhile(!(l1==null && l2 ==null && carry==0)){\r\n\t\t\tsum=(l1==null?0:l1.val)+(l2==null?0:l2.val)+carry;\r\n\t\t\tcarry=sum/10;\r\n\t\t\trun.next=new ListNode(sum%10);\r\n\t\t\trun=run.next;\r\n\t\t\tl1=(l1==null?null:l1.next);\r\n\t\t\tl2=(l2==null?null:l2.next);\r\n\t\t\t\r\n\t\t}\r\n\t\tListNode res=prebefore.next;//and it is better to delete the prebefore node\r\n\t\tprebefore=null;\r\n\t\treturn res;\r\n\t}",
"public static final ListNode<java.lang.Integer> Add (\n\t\tfinal ListNode<java.lang.Integer> headNode1,\n\t\tfinal ListNode<java.lang.Integer> headNode2)\n\t{\n\t\tint carry = 0;\n\t\tListNode<java.lang.Integer> node1 = headNode1;\n\t\tListNode<java.lang.Integer> node2 = headNode2;\n\t\tListNode<java.lang.Integer> additionHeadNode = null;\n\t\tListNode<java.lang.Integer> additionPrevNode = null;\n\n\t\twhile (null != node1 && null != node2) {\n\t\t\tint sum = carry + node1.value() + node2.value();\n\n\t\t\tListNode<java.lang.Integer> additionNode = new ListNode<java.lang.Integer> (sum % 10, null);\n\n\t\t\tif (null != additionPrevNode) additionPrevNode.setNext (additionNode);\n\n\t\t\tif (null == additionHeadNode) additionHeadNode = additionNode;\n\n\t\t\tadditionPrevNode = additionNode;\n\t\t\tcarry = sum / 10;\n\n\t\t\tnode1 = node1.next();\n\n\t\t\tnode2 = node2.next();\n\t\t}\n\n\t\twhile (null != node1) {\n\t\t\tint sum = carry + node1.value();\n\n\t\t\tListNode<java.lang.Integer> additionNode = new ListNode<java.lang.Integer> (sum % 10, null);\n\n\t\t\tif (null != additionPrevNode) additionPrevNode.setNext (additionNode);\n\n\t\t\tif (null == additionHeadNode) additionHeadNode = additionNode;\n\n\t\t\tadditionPrevNode = additionNode;\n\t\t\tcarry = sum / 10;\n\n\t\t\tnode1 = node1.next();\n\t\t}\n\n\t\twhile (null != node2) {\n\t\t\tint sum = carry + node2.value();\n\n\t\t\tListNode<java.lang.Integer> additionNode = new ListNode<java.lang.Integer> (sum % 10, null);\n\n\t\t\tif (null != additionPrevNode) additionPrevNode.setNext (additionNode);\n\n\t\t\tif (null == additionHeadNode) additionHeadNode = additionNode;\n\n\t\t\tadditionPrevNode = additionNode;\n\t\t\tcarry = sum / 10;\n\n\t\t\tnode2 = node2.next();\n\t\t}\n\n\t\treturn additionHeadNode;\n\t}",
"private static void sum(int firstValue, int secondValue ) {\r\n\t\t\r\n\t\tSystem.out.println(\"Sum is: \"+ (firstValue + secondValue));\t}",
"public static double add(int left, int right){\n return left + right;\n }",
"public int addition(int a, int b){\r\n\t\treturn a+b;\r\n\t}",
"public int sumDouble(int a, int b) {\n\t\t\n\t\tint i = 0;\n\t\t\n\t\tif (a != b)\n\t\t\ti = a + b;\n\t\telse\n\t\t\ti = (a + b) * 2;\n\t\t\n\t\treturn i;\n\n\t}",
"@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}",
"public static Node addTwoNumbers(Node l1, Node l2) {\n int carry = 0;\n Node dummyHead = new Node(0, null);\n Node current = dummyHead;\n\n while (l1 != null || l2 != null) {\n int x = (l1 != null) ? l1.getData() : 0;\n int y = (l2 != null) ? l2.getData() : 0;\n int sum = x + y + carry;\n carry = sum / 10;\n current.next = new Node(sum % 10, null);\n current = current.next;\n // Next index\n if (l1 != null) {\n l1 = l1.next;\n }\n if (l2 != null) {\n l2 = l2.next;\n }\n }\n if (carry > 0) {\n current.next = new Node(carry, null);\n }\n return dummyHead.next;\n }",
"public int getSumLoop(int a, int b) {\n while (b != 0) {\n int temp = a ^ b;\n b = (a & b) << 1;\n a = temp;\n }\n return a;\n }",
"public double add(double firstNumber, double secondNUmber){\n\t\treturn firstNumber + secondNUmber;\n\t}",
"static int[] Summe(int[] a, int[] b){\n int index = 0, i = a.length - 1;\n int[] c = new int [a.length + 1];\n Arrays.fill(c, 0);\n while (i >= 0){\n c[i+1] = (a[i] + b[i] + index) % 10;\n if ((a[i] + b[i] + index) > 9) index = 1;\n else index = 0;\n i -= 1;\n }\n if (index == 1) c[0] = 1;\n return c;\n }",
"ListNode addTwoNumbers2(ListNode l1, ListNode l2) {\n ListNode c1 = l1;\n ListNode c2 = l2;\n ListNode sentinel = new ListNode(0);\n ListNode d = sentinel;\n int sum = 0;\n while (c1 != null || c2 != null) {\n sum /= 10;\n if (c1 != null) {\n sum += c1.val;\n c1 = c1.next;\n }\n if (c2 != null) {\n sum += c2.val;\n c2 = c2.next;\n }\n d.next = new ListNode(sum % 10);\n d = d.next;\n }\n if (sum / 10 == 1) {\n d.next = new ListNode(1);\n }\n return sentinel.next;\n }",
"public static int addNums(int a, int b) {\n int result = a + b;\n return(result);\n }",
"public int sum(int x, int y) {\r\n\t\treturn (x+y);\r\n\t}",
"@Override\n\tpublic double add(double in1, double in2) {\n\t\treturn 0;\n\t}",
"public int addition(int a, int b){\n return a + b;\n }",
"static int sumOfNumbers(int x, int y) {\n return x + y;\n }",
"public int sum(int x, int y)\n\t{\n\t\treturn x+y;\n\t}",
"public static double sum() {\n System.out.println(\"Enter augend\");\n double a = getNumber();\n System.out.println(\"Enter addend\");\n double b = getNumber();\n\n return a + b;\n }",
"public double suma(double a, double b) {\n\t\treturn a+b;\n\t}",
"public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n if (l1 == null) return l2;\n if (l2 == null) return l1;\n\n // create results head pointer with dummy node\n final ListNode results = new ListNode(0);\n // create and point results pointer to the head\n ListNode resultsPointer = results;\n\n // value to keep reminder from previous sum operation\n int carry = 0;\n\n // iterate numbers until we process both completely\n while (l1 != null || l2 != null) {\n // one of the numbers can be longer, that's why adding zeros to shorter number\n final int digit1 = l1 != null ? l1.val : 0;\n final int digit2 = l2 != null ? l2.val : 0;\n // just simple math https://en.wikipedia.org/wiki/Carry_(arithmetic)\n final int sum = digit1 + digit2 + carry;\n final int result = sum % 10;\n carry = sum / 10;\n\n // save result in results list\n resultsPointer.next = new ListNode(result);\n resultsPointer = resultsPointer.next;\n\n // move numbers to the next digits, if number has more digits\n if (l1 != null) l1 = l1.next;\n if (l2 != null) l2 = l2.next;\n }\n\n // if there is carry left, just add it to result\n if (carry > 0) {\n resultsPointer.next = new ListNode(carry);\n }\n\n // remove first dummy node\n return results.next;\n }",
"public double addition(double firstNumber, double secondNumber) {\n\t\tdouble returnValue = 0.0;\n\t\treturnValue = firstNumber + secondNumber;\n\t\treturn returnValue;\n\t}",
"ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n ListNode curL1 = l1;\n ListNode curL2 = l2;\n int add = 0;\n while (curL1 != null && curL2 != null) {\n int result = 0;\n int total = curL1.val + curL2.val + add;\n if (total >= 10) {\n result = total % 10;\n add = 1;\n } else {\n result = total;\n add = 0;\n }\n curL1.val = result;\n if (curL2.next != null && curL1.next == null) {\n curL2.next.val += add;\n curL1.next = curL2.next;\n break;\n }\n if (curL1.next != null && curL2.next == null) {\n curL1.next.val += add;\n break;\n }\n if (curL1.next == null && curL2.next == null && add == 1) {\n curL1.next = new ListNode(1);\n break;\n }\n curL1 = curL1.next;\n curL2 = curL2.next;\n }\n if (curL1 != null && curL1.next != null) {\n curL1 = curL1.next;\n }\n while (curL1 != null) {\n if (curL1.val >= 10) {\n curL1.val = curL1.val % 10;\n if (curL1.next == null) {\n curL1.next = new ListNode(1);\n curL1 = curL1.next;\n } else {\n curL1 = curL1.next;\n curL1.val += 1;\n }\n\n } else {\n break;\n }\n }\n return l1;\n }",
"public int sortaSum(int a, int b) {\n if (a + b >= 10 && a + b <= 19) {\n return 20;\n }\n\n return a + b;\n }",
"@Override\n\tpublic double add(double a, double b) {\n\t\treturn (a+b);\n\t}",
"public static int suma (int x, int y){\n int s=x+y;\n return s;\n }",
"public int sumar(){\n return this.a+this.b;\n }",
"public static Digit plus(Digit first, Digit second){\n return Operations.plus(first.copy(), second.copy());\n }",
"public static void sumAndPrint(int a, int b) {\n System.out.println( a + \" + \" + b + \" = \" + (a + b) );\n }",
"@Override\r\n\tpublic int add(int a,int b) {\n\t\treturn a+b;\r\n\t}",
"public static Node addStraightNumbersHelper(Node num1,Node num2){\n if(num1 == null){\n return null;\n }\n int carry = 0;\n Node result = addStraightNumbersHelper(num1.next,num2.next);\n if(result!=null) {\n carry = result.value / 10;\n result.value = result.value % 10;\n }\n Node superResult = new Node(num1.value+num2.value+carry);\n superResult.next=result;\n return superResult;\n\n }",
"protected int sumRecursive(int a, int b){\n if (b == 0){\n return a;\n } else {\n if (b > 0){\n return sumRecursive(a + 1, b - 1);\n } else {\n return sumRecursive(a - 1, b + 1);\n }\n }\n }",
"public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n\t\t \n\t\t ListNode result = null;\n\t\t \n\t\t ListNode temp = null;\n\t\t \n\t\t int sum = 0;\n\t\t \n\t\t int carryOver = 0;\n\t\t \n\t\t while(l1 != null || l2 != null)\n\t\t {\n\t\t\t int l1Num = 0;\n\t\t\t int l2Num = 0;\n\t\t\t \n\t\t\t if(l1 != null)\n\t\t\t {\n\t\t\t\t l1Num = l1.val;\n\t\t\t\t l1 = l1.next;\n\t\t\t }\n\t\t\t \n\t\t\t if(l2 != null)\n\t\t\t {\n\t\t\t\t l2Num = l2.val;\n\t\t\t\t l2 = l2.next;\n\t\t\t }\n\t\t\t \n\t\t\t sum = carryOver + l1Num + l2Num;\n\t\t\t \n\t\t\t carryOver = sum / 10;\n\t\t\t \n\t\t\t ListNode node = new ListNode(sum % 10);\n\t\t\t \n\t\t\t if(result == null)\n\t\t\t {\n\t\t\t\t result = node;\n\t\t\t\t temp = node;\n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t\t temp.next = node;\n\t\t\t\t temp = node;\n\t\t\t }\n\t\t\t \n\t\t }\n\t\t \n\t\t if(carryOver > 0)\n\t\t {\n\t\t\t ListNode carryNode = new ListNode(carryOver);\n\t\t\t temp.next = carryNode;\n\t\t }\n\t\t // Find out the sum , have a carry over in case \n\t\t \n\t\t // create output links \n\t\t return result;\n\t }",
"public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n ListNode iter1=l1,iter2=l2,newHead=new ListNode(0),newTail;\n newTail=newHead;\n int res=0;\n int addition=0;\n while(l1!=null || l2!=null){\n int temp;\n if(l1==null){\n temp=l2.val+addition;\n l2=l2.next;\n }\n else if(l2==null){\n temp=l1.val+addition;\n l1=l1.next;\n }\n else{\n temp=l1.val+l2.val+addition;\n l1=l1.next;\n l2=l2.next;\n }\n addition=temp/10;\n temp=temp%10;\n newTail.next=new ListNode(temp);\n newTail=newTail.next;\n }\n if(addition!=0){\n newTail.next=new ListNode(addition);\n }\n return newHead.next;\n \n }",
"private int Sum1(int x) {\n int a = ROTR(6, x);\n int b = ROTR(11, x);\n int c = ROTR(25, x);\n int ret = a ^ b ^ c;\n return ret;\n }",
"default int sumOfAll(int a, int b) {\n\t\t\treturn 0;\n\t\t}",
"public Integer add(Integer first, Integer second){\n return first + second;\n }",
"public static int plus(int value1, int value2){\r\n return value1 + value2;\r\n }",
"public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n \tif(l1==null && l2==null)\n\t\treturn null;\n\tif(l1==null)\n\t\treturn l2;\n\tif(l2==null)\n\t\treturn l1;\n\t\n\tint sum =0;\n\tint carry = 0;\n\tListNode resList = new ListNode(0);\n ListNode dummy = resList;\n\twhile(l1!=null && l2!=null){\n\t\tsum = l1.val + l2.val + carry;\n\t\tcarry = sum/10;\n\t\tListNode newNode = new ListNode(sum%10);\n\t\tresList.next = newNode;\n\t\tresList = resList.next;\n\t\tl1=l1.next;\n\t\tl2=l2.next;\n\t}\n\twhile(l1!=null){\n\t\tsum = l1.val + carry;\n\t\tcarry = sum/10;\n\t\tListNode newNode = new ListNode(sum%10);\n\t\tresList.next = newNode;\n\t\tresList = resList.next;\n\t\tl1=l1.next;\n\t}\n\twhile(l2!=null){\n\t\tsum = l2.val + carry;\n\t\tcarry = sum/10;\n\t\tListNode newNode = new ListNode(sum%10);\n\t\tresList.next = newNode;\n\t\tresList = resList.next;\n\t\tl2=l2.next;\n\t}\n\tif(carry!=0){\n\t\tListNode newNode = new ListNode(carry);\n\t\tresList.next = newNode;\n\t}\n return dummy.next;\n }",
"public void getSum(int a, int b) {\n\t\tSystem.out.println( a + b);\n\t}",
"public static void twoSum(Node x, Node y) {\n int lenX = x.getlength();\n int lenY = y.getlength();\n int lenLong = Math.max(lenX, lenY);\n Node result = new Node();\n int carryOn = 0;\n\n for (int i = 0; i < lenLong; i++) {\n int curposX = lenX - i - 1;\n int curposY = lenY - i - 1;\n int digitX = 0;\n int digitY = 0;\n if (curposX < 0) {\n digitX = 0;\n } else {\n digitX = x.get(curposX);\n }\n if (curposY < 0) {\n digitY = 0;\n } else {\n digitY = y.get(curposY);\n }\n // System.out.printf(\"x: %d y: %d \\n\", digitX, digitY);\n result = result.add(digitX + digitY, 0);\n\n }\n // result.printList();\n result = twoSumRegulate(result);\n System.out.println(\"the two sum result is:\");\n result.printList();\n }",
"public int add(int a, int b) {\n int sum = a+b;\n return sum;\n }",
"public int addNum(int a, int b){\n return a+b;\n }",
"@Override\n\tpublic int add(int a, int b) {\n\t\treturn a+b;\n\t}",
"int calculate() {\n return getSum() + b1;\n }",
"public int addition(int a, int b){\r\n int result = a+b;\r\n return result;\r\n }",
"public double sum(double x, double y) {\r\n\t\treturn(x+y);\r\n\t}",
"public static int Add(int a, int b){\n\t\t\treturn (a+b);\n\t\t\t\n\t\t}",
"@Override\n public Integer reduce(Integer value, Integer sum) {\n return value + sum;\n }",
"public Node findSumOfNumbers(Node l1, Node l2) {\n\t\tint carry =0;\n \n\t\tNode newHead = null;\n\t\tNode tempNodeForIteration=null;\n\t\tint sum=0;\n \n\t\tint count=0;\n\t\twhile(l1!=null || l2!=null)\n\t\t{\n\t\t\tcount++;\n\t\t\tsum=carry;\n\t\t\tif(l1!=null)\n\t\t\t{\n\t\t\t\tsum=sum+l1.value;\n\t\t\t\tl1=l1.next;\n\t\t\t}\n \n\t\t\tif(l2!=null)\n\t\t\t{\n\t\t\t\tsum=sum+l2.value;\n\t\t\t\tl2=l2.next;\n\t\t\t}\n \n \n\t\t\tcarry=sum/10;\n\t\t\tsum=sum%10;\n\t\t\t// Check if it first node for the result\n\t\t\tif(count==1)\n\t\t\t{ \n\t\t\t\ttempNodeForIteration = new Node(sum);\n\t\t\t\tnewHead=tempNodeForIteration;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t// 1-->5 -->7\n\t\t\t\t//tempNodeForIteration first node is =1\n\t\t\t\tNode tempSumNode=new Node(sum);\n\t\t\t\t//tempNodeForIteration second node is =5\n\t\t\t\ttempNodeForIteration.next=tempSumNode;\n\t\t\t\t//tempNodeForIteration node holding last node =5\n\t\t\t\ttempNodeForIteration=tempNodeForIteration.next;\n\t\t\t}\n \n\t\t}\n\t\tif(carry!=0)\n\t\t{\n\t\t\tNode tempNode=new Node(carry);\n\t\t\ttempNodeForIteration.next=tempNode;\n\t\t}\n\t\treturn newHead;\n\t}"
] |
[
"0.69637877",
"0.69624865",
"0.6919465",
"0.6917762",
"0.6904534",
"0.68957776",
"0.68169224",
"0.6808987",
"0.6783712",
"0.67090464",
"0.6676941",
"0.66535175",
"0.66523623",
"0.66356987",
"0.66309285",
"0.6611843",
"0.6611326",
"0.66088253",
"0.6564707",
"0.65426654",
"0.6534934",
"0.65300924",
"0.6529676",
"0.6520956",
"0.6519134",
"0.65186244",
"0.65004444",
"0.6488371",
"0.64882296",
"0.64876115",
"0.6479465",
"0.6467465",
"0.6445572",
"0.6429082",
"0.6427232",
"0.6427232",
"0.6425668",
"0.6416818",
"0.6411748",
"0.64078516",
"0.640699",
"0.6403218",
"0.6377024",
"0.6376812",
"0.63729393",
"0.63717717",
"0.6370421",
"0.6369638",
"0.63579905",
"0.63509107",
"0.63489294",
"0.63286847",
"0.6324689",
"0.6324116",
"0.63199824",
"0.6318522",
"0.63010263",
"0.629758",
"0.6296807",
"0.6291793",
"0.6281495",
"0.6279001",
"0.6276537",
"0.6272067",
"0.62680477",
"0.62640244",
"0.6256505",
"0.62554854",
"0.6241224",
"0.6240198",
"0.62289065",
"0.62256396",
"0.6218591",
"0.6217412",
"0.62121195",
"0.6209162",
"0.61969763",
"0.61965305",
"0.6189095",
"0.6183276",
"0.6177973",
"0.6174092",
"0.61620265",
"0.6156133",
"0.61558163",
"0.61553496",
"0.6141461",
"0.61404806",
"0.613951",
"0.61350626",
"0.61350214",
"0.61255807",
"0.6120534",
"0.61195177",
"0.6119267",
"0.611869",
"0.6118593",
"0.61101514",
"0.6103973",
"0.6100708",
"0.6099276"
] |
0.0
|
-1
|
/ / / / / / / / / / / / / / / / / /
|
private Krb5InitCredential(Krb5NameElement paramKrb5NameElement, Credentials paramCredentials, byte[] paramArrayOfbyte1, KerberosPrincipal paramKerberosPrincipal1, KerberosPrincipal paramKerberosPrincipal2, KerberosPrincipal paramKerberosPrincipal3, KerberosPrincipal paramKerberosPrincipal4, byte[] paramArrayOfbyte2, int paramInt, boolean[] paramArrayOfboolean, Date paramDate1, Date paramDate2, Date paramDate3, Date paramDate4, InetAddress[] paramArrayOfInetAddress) throws GSSException {
/* 135 */ super(paramArrayOfbyte1, paramKerberosPrincipal1, paramKerberosPrincipal3, paramArrayOfbyte2, paramInt, paramArrayOfboolean, paramDate1, paramDate2, paramDate3, paramDate4, paramArrayOfInetAddress);
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 146 */ KerberosSecrets.getJavaxSecurityAuthKerberosAccess()
/* 147 */ .kerberosTicketSetClientAlias(this, paramKerberosPrincipal2);
/* 148 */ KerberosSecrets.getJavaxSecurityAuthKerberosAccess()
/* 149 */ .kerberosTicketSetServerAlias(this, paramKerberosPrincipal4);
/* 150 */ this.name = paramKrb5NameElement;
/* */
/* */
/* 153 */ this.krb5Credentials = paramCredentials;
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"double passer();",
"public Integer getWidth(){return this.width;}",
"static int getNumPatterns() { return 64; }",
"int getWidth() {return width;}",
"int width();",
"public abstract void bepaalGrootte();",
"public void getTile_B8();",
"public void divide() {\n\t\t\n\t}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"int getTribeSize();",
"private int rightChild(int i){return 2*i+2;}",
"void mo33732Px();",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"long getWidth();",
"double seBlesser();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public String ring();",
"public int generateRoshambo(){\n ;]\n\n }",
"double getNewWidth();",
"public abstract int getSpotsNeeded();",
"public double getWidth() { return _width<0? -_width : _width; }",
"public static int size_parent() {\n return (8 / 8);\n }",
"int getSize ();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public String toString(){ return \"DIV\";}",
"public int my_leaf_count();",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"int getSpriteArraySize();",
"public int getTakeSpace() {\n return 0;\n }",
"long getMid();",
"long getMid();",
"@Override\n public void bfs() {\n\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n\tpublic int sount() {\n\t\treturn 0;\n\t}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public void skystonePos4() {\n }",
"int expand();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }",
"public void leerPlanesDietas();",
"public int length() { return 1+maxidx; }",
"public abstract String division();",
"@Override\n\tprotected void interr() {\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int getWidth(){\n return width;\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract double getBaseWidth();",
"public void method_4270() {}",
"private void poetries() {\n\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public int getWidth()\n {return width;}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"int align();",
"public String getRing();",
"@Override\n public int width()\n {\n return widthCent; //Charlie Gao helped me debug the issue here\n }",
"public static int offset_parent() {\n return (40 / 8);\n }",
"Operations operations();",
"static int size_of_inx(String passed){\n\t\treturn 1;\n\t}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"static int size_of_xra(String passed){\n\t\treturn 1;\n\t}",
"@Override\r\n\tpublic int operar() {\n\t\treturn 0;\r\n\t}",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"int depth();",
"int depth();",
"int size() {\n int basic = ((offset() + 4) & ~3) - offset() + 8;\n /* Add 8*number of offsets */\n return basic + targetsOp.length*8;\n }",
"public static void enrichmentMaxLowMem(String szinputsegment,String szinputcoorddir,String szinputcoordlist,\n\t\t\t\t int noffsetleft, int noffsetright,\n int nbinsize, boolean bcenter,boolean bunique, boolean busesignal,String szcolfields,\n\t\t\t\t boolean bbaseres, String szoutfile,boolean bcolscaleheat,Color theColor,String sztitle, \n\t\t\t\t\t String szlabelmapping, boolean bprintimage, boolean bstringlabels, boolean bbrowser) throws IOException\n {\n\n\n //for each enrichment category and state label gives a count of how often\n //overlapped by a segment optionally with signal\n\n String szLine;\n String[] files;\n\n if (szinputcoordlist == null)\n {\n File dir = new File(szinputcoorddir);\n\t //we don't have a specific list of files to include\n\t //will use all files in the directory\n\t if (dir.isDirectory())\t \n\t {\n\t //throw new IllegalArgumentException(szinputcoorddir+\" is not a directory!\");\n\t //added in v1.11 to skip hidden files\n\t String[] filesWithHidden = dir.list();\n\t int nnonhiddencount = 0;\n\t for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t\t{\n\t\t nnonhiddencount++;\n\t\t}\n\t }\t \n\n\t int nactualindex = 0;\n\t files = new String[nnonhiddencount];// dir.list(); \n\t if (nnonhiddencount == 0)\n\t {\n\t throw new IllegalArgumentException(\"No files found in \"+szinputcoorddir);\n\t }\n\n for (int nfile = 0; nfile < filesWithHidden.length; nfile++)\n\t {\n\t if (!(new File(filesWithHidden[nfile])).isHidden())\n\t {\n\t files[nactualindex] = filesWithHidden[nfile];\n\t\t nactualindex++;\n\t }\n\t }\n\t Arrays.sort(files);\n\t szinputcoorddir += \"/\";\n\t }\n\t else\n\t {\n\t files = new String[1];\n\t files[0] = szinputcoorddir;\n\t szinputcoorddir = \"\";\n\t }\n }\n else\n {\n szinputcoorddir += \"/\";\n\t //store in files all file names given in szinputcoordlist\n\t BufferedReader brfiles = Util.getBufferedReader(szinputcoordlist);\n\t ArrayList alfiles = new ArrayList();\n\t while ((szLine = brfiles.readLine())!=null)\n\t {\n\t alfiles.add(szLine);\n\t }\n\t brfiles.close(); \n\t files = new String[alfiles.size()];\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t files[nfile] = (String) alfiles.get(nfile);\n\t }\n }\n\t\n ArrayList alchromindex = new ArrayList(); //stores the index of the chromosome\n\t\n if (busesignal)\n {\n bunique = false;\n }\n\n HashMap hmchromMax = new HashMap(); //maps chromosome to the maximum index\n HashMap hmchromToIndex = new HashMap(); //maps chromosome to an index\n HashMap hmLabelToIndex = new HashMap(); //maps label to an index\n HashMap hmIndexToLabel = new HashMap(); //maps index string to label\n int nmaxlabel=0; // the maximum label found\n String szlabel=\"\";\n boolean busedunderscore = false;\n //reads in the segmentation recording maximum position for each chromosome and\n //maximum label\n BufferedReader brinputsegment = Util.getBufferedReader(szinputsegment);\n while ((szLine = brinputsegment.readLine())!=null)\n {\n\n\t //added v1.24\n\t if (bbrowser)\n\t {\n\t if ((szLine.toLowerCase(Locale.ENGLISH).startsWith(\"browser\"))||(szLine.toLowerCase(Locale.ENGLISH).startsWith(\"track\")))\n\t {\n\t continue;\n\t }\n\t }\n\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n }\n\n\t //added in v1.24\n\t int numtokens = st.countTokens();\n\t if (numtokens == 0)\n\t {\n\t //skip blank lines\n\t continue;\n\t }\n\t else if (numtokens < 4)\n\t {\n\t throw new IllegalArgumentException(\"Line \"+szLine+\" in \"+szinputsegment+\" only had \"+numtokens+\" token(s). Expecting at least 4\");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\t if (nbegincoord % nbinsize != 0)\n\t {\n\t\tthrow new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with coordinates in input segment \"+szLine+\". -b binsize should match parameter value to LearnModel or \"+\n \"MakeSegmentation used to produce segmentation. If segmentation is derived from a lift over from another assembly, then the '-b 1' option should be used\");\n\t }\n //int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n szlabel = st.nextToken().trim();\n\t short slabel;\n\n\n if (bstringlabels)\n\t {\n\n\t int nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t if (nunderscoreindex >=0)\n\t {\n\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t\t busedunderscore = true;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t}\n catch (NumberFormatException ex)\n\t\t{\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t if (slabel > nmaxlabel)\n\t\t {\n\t\t nmaxlabel = slabel;\n\t\t }\n\t\t busedunderscore = true;\n\t\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n\t\t hmIndexToLabel.put(\"\"+slabel, szlabel);\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t if (busedunderscore)\n\t\t {\n\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t }\n\t\t }\n\t\t}\n\t }\n\n\t if (!busedunderscore)\n\t {\n //handle string labels\n\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\n\t if (objshort == null)\n\t {\n\t nmaxlabel = hmLabelToIndex.size()+1;\n\t slabel = (short) nmaxlabel;\n\t hmLabelToIndex.put(szlabel, Short.valueOf(slabel));\n \t hmIndexToLabel.put(\"\"+nmaxlabel, szlabel);\n\t }\n\t //else\n\t //{\n\t // slabel = ((Short) objshort).shortValue();\n\t //}\n\t }\n\t }\n\t else\n\t {\n try\n\t {\n slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t{\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t}\n\t catch (NumberFormatException ex2)\n\t {\n throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t\t}\n\t }\n\n\t //alsegments.add(new SegmentRec(szchrom,nbegin,nend,slabel));\n\t if (slabel > nmaxlabel)\n\t {\n\t nmaxlabel = slabel;\n\t }\n\t }\n\n\t Integer objMax = (Integer) hmchromMax.get(szchrom);\n\t if (objMax == null)\n\t {\n\t //System.out.println(\"on chrom \"+szchrom);\n\t hmchromMax.put(szchrom,Integer.valueOf(nend));\n\t hmchromToIndex.put(szchrom, Integer.valueOf(hmchromToIndex.size()));\n\t alchromindex.add(szchrom);\n\t }\n\t else\n\t {\n\t int ncurrmax = objMax.intValue();\n\t if (ncurrmax < nend)\n\t {\n\t hmchromMax.put(szchrom, Integer.valueOf(nend));\t\t \n\t }\n\t }\n }\n brinputsegment.close();\n\n double[][] tallyoverlaplabel = new double[files.length][nmaxlabel+1];\n double[] dsumoverlaplabel = new double[files.length];\n double[] tallylabel = new double[nmaxlabel+1];\n\n int numchroms = alchromindex.size();\n\n for (int nchrom = 0; nchrom < numchroms; nchrom++)\n {\n //ArrayList alsegments = new ArrayList(); //stores all the segments\n\t String szchromwant = (String) alchromindex.get(nchrom);\n\t //System.out.println(\"processing \"+szchromwant);\n\t int nsize = ((Integer) hmchromMax.get(szchromwant)).intValue()+1;\n\t short[] labels = new short[nsize]; //stores the hard label assignments\n\n\t //sets to -1 so missing segments not counted as label 0\n\t for (int npos = 0; npos < nsize; npos++)\n\t {\n labels[npos] = -1;\n\t }\n\n\t brinputsegment = Util.getBufferedReader(szinputsegment);\n\t while ((szLine = brinputsegment.readLine())!=null)\n\t {\n\t StringTokenizer st;\n\t if (bstringlabels)\n\t {\n\t st = new StringTokenizer(szLine,\"\\t\");\n\t }\n\t else\n\t {\n\t st = new StringTokenizer(szLine,\"\\t \");\n\t }\n\n\t String szchrom = st.nextToken().trim();\n\t if (!szchrom.equals(szchromwant)) \n\t continue;\n\n\t int nbegincoord = Integer.parseInt(st.nextToken().trim());\n\t int nendcoord = Integer.parseInt(st.nextToken().trim());\n\n\t //if (nbegincoord % nbinsize != 0)\n\t // {\n\t //\t throw new IllegalArgumentException(\"Binsize of \"+nbinsize+\" does not agree with input segment \"+szLine);\n\t //}\n\t int nbegin = nbegincoord/nbinsize;\n\t int nend = (nendcoord-1)/nbinsize;\n\t szlabel = st.nextToken().trim();\n\t short slabel = -1;\n\n\t if (bstringlabels)\n\t {\n\t\tint nunderscoreindex = szlabel.indexOf(\"_\");\n\n\t\tif (nunderscoreindex >=0)\n\t\t{\n\t\t String szprefix = szlabel.substring(0,nunderscoreindex);\n\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix));\n\t\t busedunderscore = true;\n\t\t }\n catch (NumberFormatException ex)\n\t\t {\n try\n\t\t {\n\t\t slabel = (short) (Short.parseShort(szprefix.substring(1)));\n\t\t\t busedunderscore = true;\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t\t if (busedunderscore)\n\t\t\t {\n\t\t\t throw new IllegalArgumentException(\"Not a valid ID before '_' in \"+szlabel+\", while valid ID found for other entries\");\n\t\t\t }\n\t\t }\n\t\t }\n\t\t}\n\n\t\tif (!busedunderscore)\n\t\t{\n\t //handle string labels\n\t\t Short objshort = (Short) hmLabelToIndex.get(szlabel);\n\t\t slabel = ((Short) objshort).shortValue();\n\t\t}\n\t }\n\t else\n\t {\n try\n\t {\n\t slabel = (short) (Short.parseShort(szlabel));\n\t }\n\t catch (NumberFormatException ex)\n\t {\n try\n\t\t {\n slabel = (short) (Short.parseShort(szlabel.substring(1)));\n\t\t }\n\t\t catch (NumberFormatException ex2)\n\t\t {\n\t\t throw new IllegalArgumentException(\"In fourth column neither state number or ID found in segmentation file. Use '-labels' option to run overlap enrichment treating fourth column as labels\");\n\t }\n\t\t}\n\t }\n\n\t if (nbegin < 0)\n\t {\n\t nbegin = 0;\n\t }\n\n\t if (nend >= labels.length)\n\t {\n\t nend = labels.length - 1;\n\t }\n\n\t //SegmentRec theSegmentRec = (SegmentRec) alsegments.get(nindex);\n\t //int nbegin = theSegmentRec.nbegin;\n\t //int nend = theSegmentRec.nend;\n\t //short slabel = theSegmentRec.slabel;\n\t //int nchrom = ((Integer) hmchromToIndex.get(theSegmentRec.szchrom)).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\t //stores each label position in the genome\n\t for (int npos = nbegin; npos <= nend; npos++)\n\t {\n\t labels[npos] = slabel;\n\t //tallylabel[slabel]++; \n\t }\n\t tallylabel[slabel] += (nend-nbegin)+1;\n\t }\n\n\n\t for (int nfile = 0; nfile < files.length; nfile++)\n\t {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t int nchromindex = 0;\n\t int nstartindex = 1;\n\t int nendindex = 2;\n\t int nsignalindex = 3;\n\n\t if (szcolfields != null)\n\t {\n\t StringTokenizer stcolfields = new StringTokenizer(szcolfields,\",\");\n\t\tnchromindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnstartindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t\tnendindex = Integer.parseInt(stcolfields.nextToken().trim());\n\n\t if (busesignal)\n\t {\n\t nsignalindex = Integer.parseInt(stcolfields.nextToken().trim());\n\t }\n\t }\n\n \t \n if (bunique)\n\t {\n\t //Iterator itrChroms = hmchromToIndex.entrySet().iterator();\n\t //while (itrChroms.hasNext())\n\t //{\n\t //Map.Entry pairs = (Map.Entry) itrChroms.next();\n\t //String szchrom =(String) pairs.getKey();\n\t //int nchrom = ((Integer) pairs.getValue()).intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t //reading in the coordinates to overlap with\n BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t ArrayList alrecs = new ArrayList();\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\t\t if (nstartindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nstartindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n if (nendindex >= szLineA.length)\n\t\t {\n\t\t throw new IllegalArgumentException(nendindex+\" is an invalid column index for \"+szLine+\" in \"+szinputcoorddir+files[nfile]);\n\t\t }\n\n\t String szcurrchrom = szLineA[nchromindex];\n\t \t if (szchromwant.equals(szcurrchrom))\n\t\t {\n\t\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t\t if (bcenter)\n\t\t {\n\t\t nbeginactual = (nbeginactual+nendactual)/2;\n\t\t nendactual = nbeginactual;\n\t\t }\n\t\t alrecs.add(new Interval(nbeginactual,nendactual));\n\t\t }\n\t\t}\n\t brcoords.close();\n\n\t\tObject[] alrecA = alrecs.toArray();\n\t\tArrays.sort(alrecA,new IntervalCompare());\n\n\t\tboolean bclosed = true;\n\t int nintervalstart = -1;\n\t\tint nintervalend = -1;\n\t\tboolean bdone = false;\n\n\t\tfor (int nindex = 0; (nindex <= alrecA.length&&(alrecA.length>0)); nindex++)\n\t\t{\n\t\t int ncurrstart = -1;\n\t\t int ncurrend = -1;\n\n\t\t if (nindex == alrecA.length)\n\t\t {\n\t\t bdone = true;\n\t\t }\n\t\t else \n\t\t {\n\t\t ncurrstart = ((Interval) alrecA[nindex]).nstart;\n\t\t ncurrend = ((Interval) alrecA[nindex]).nend;\n if (nindex == 0)\n\t\t {\n\t\t nintervalstart = ncurrstart;\n\t\t\t nintervalend = ncurrend;\n\t\t }\n\t\t else if (ncurrstart <= nintervalend)\n\t\t {\n\t\t //this read is still in the active interval\n\t\t //extending the current active interval \n\t\t if (ncurrend > nintervalend)\n\t\t {\n\t\t nintervalend = ncurrend;\n\t\t }\n\t\t }\t\t \n\t\t else \n\t\t {\n\t\t //just finished the current active interval\n\t\t bdone = true;\n\t\t }\n\t\t }\n\n\t\t if (bdone)\n\t {\t\t \t\t\t\t\t\t\n\t int nbegin = nintervalstart/nbinsize;\n\t\t int nend = nintervalend/nbinsize;\n\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\n\t for (int nbin = nbegin; nbin <= nend; nbin++)\n\t {\n\t\t if (labels[nbin]>=0)\n\t\t {\n\t\t tallyoverlaplabel_nfile[labels[nbin]]++;\n\t\t }\n\t\t }\n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nintervalstart - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nintervalend-1)/(double) nbinsize;\n\t\t\t \n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t { \t\t\t \n\t\t //only counted the bases if nbegin was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t tallyoverlaplabel_nfile[labels[nend]]-=dendfrac;\n\t\t\t }\n\t\t }\t\t\t \n\n\t\t nintervalstart = ncurrstart; \n\t\t nintervalend = ncurrend;\n\t\t bdone = false;\n\t\t }\t \n\t\t}\n\t\t //}\n\t }\n\t else\n\t {\n\t BufferedReader brcoords = Util.getBufferedReader(szinputcoorddir +files[nfile]);\n\t while ((szLine = brcoords.readLine())!=null)\n\t {\n\t if (szLine.trim().equals(\"\")) continue;\n\t String[] szLineA = szLine.split(\"\\\\s+\");\n\n\t String szchrom = szLineA[nchromindex];\n\t\t if (!szchromwant.equals(szchrom))\n\t\t continue;\n\n\t int nbeginactual =Integer.parseInt(szLineA[nstartindex])-noffsetleft;\n\t int nbegin = nbeginactual/nbinsize;\n\n\t\t int nendactual =Integer.parseInt(szLineA[nendindex])-noffsetright;\n\t int nend = nendactual/nbinsize;\n\n\t\t double damount;\n\t if ((busesignal)&&(nsignalindex < szLineA.length))\n\t {\n\t \t damount = Double.parseDouble(szLineA[nsignalindex]);\n\t\t }\n\t else\n\t {\n\t damount = 1;\n\t\t }\n\n\t //Integer objChrom = (Integer) hmchromToIndex.get(szchrom);\n\t //if (objChrom != null)\n\t\t //{\n\t\t //we have the chromosome corresponding to this read\n\t //int nchrom = objChrom.intValue();\n\t //short[] labels_nchrom = labels[nchrom];\n\n\t\t if (bcenter)\n\t {\n\t //using the center position of the interval only\n\t\t int ncenter = (nbeginactual+nendactual)/(2*nbinsize);\n\t\t if ((ncenter < labels.length)&&(labels[ncenter]>=0))\n\t\t {\n\t tallyoverlaplabel_nfile[labels[ncenter]]+=damount;\t\t\t \n\t\t }\n\t\t }\n\t else\n\t {\n\t\t if (nbegin < 0)\n\t\t {\n\t\t nbegin = 0;\n\t\t }\n\t\t //using the full interval range\n\t\t //no requirement on uniqueness\n\t\t if (nend >= labels.length)\n\t\t {\n\t\t nend = labels.length - 1;\n\t\t }\n\t\t\t\n\t for (int nindex = nbegin; nindex <= nend; nindex++)\n\t {\n\t\t if (labels[nindex]>=0)\n\t\t {\n\t\t //increment overlap tally not checking for uniqueness\n \t tallyoverlaplabel_nfile[labels[nindex]]+=damount;\n\t\t\t }\n\t\t }\t \n\n\t\t if (bbaseres)\n\t\t { \n\t\t //dbeginfrac represents the fraction of bases the nbegin interval\n\t\t\t //which came after the actual nbeginactual\n\t double dbeginfrac = (nbeginactual - nbegin*nbinsize)/(double) nbinsize;\n\t\t\t \n\t\t\t //dendfrac represents the fraction of bases after the end position in the interval\n\t double dendfrac = ((nend+1)*nbinsize-nendactual-1)/(double) nbinsize;\n\n\t\t\t if ((nbegin < labels.length)&&(labels[nbegin]>=0)&&(dbeginfrac>0))\n\t\t\t { \n\t\t\t //only counted the bases if nbegin was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nbegin]]-=damount*dbeginfrac;\n\t\t\t }\n\n if ((nend < labels.length)&&(labels[nend]>=0)&&(dendfrac>0))\n\t\t {\n\t\t //only counted the bases if nend was less than labels.length \n\t\t\t tallyoverlaplabel_nfile[labels[nend]]-=damount*dendfrac;\n\t\t\t }\t\t\t \n\t\t }\n\t\t }\n\t\t}\t \n\t\tbrcoords.close();\n\t }\n\t }\n }\n\n\n for (int nfile = 0; nfile < files.length; nfile++)\n {\n\t double[] tallyoverlaplabel_nfile = tallyoverlaplabel[nfile];\n\n\t for (int nindex = 0; nindex < tallyoverlaplabel_nfile.length; nindex++)\n {\n dsumoverlaplabel[nfile] += tallyoverlaplabel_nfile[nindex];\n }\n\t\t\n if (dsumoverlaplabel[nfile] < EPSILONOVERLAP) // 0.00000001)\n {\n\t throw new IllegalArgumentException(\"Coordinates in \"+files[nfile]+\" not assigned to any state. Check if chromosome naming in \"+files[nfile]+\n\t\t\t\t\t\t \" match those in the segmentation file.\");\n\t }\n\t}\n\n\toutputenrichment(szoutfile, files,tallyoverlaplabel, tallylabel, dsumoverlaplabel,theColor,\n\t\t\t bcolscaleheat,ChromHMM.convertCharOrderToStringOrder(szlabel.charAt(0)),sztitle,0,szlabelmapping,szlabel.charAt(0), bprintimage, bstringlabels, hmIndexToLabel);\n }",
"public int get_resource_distance() {\n return 1;\r\n }",
"public int width();",
"public double width() { return _width; }",
"public String getRingback();",
"double volume(){\n return width*height*depth;\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\n public int getSize() {\n return 1;\n }",
"String directsTo();",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\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\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\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.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public void Exterior() {\n\t\t\r\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"public void verliesLeven() {\r\n\t\t\r\n\t}",
"int getWidth()\n {\n return width;\n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int fixedSize();",
"static int size_of_shld(String passed){\n\t\treturn 3;\n\t}",
"int getSize();",
"int getSize();",
"int getSize();"
] |
[
"0.5363639",
"0.5268377",
"0.510366",
"0.5090266",
"0.50591934",
"0.5055254",
"0.50444996",
"0.50121444",
"0.49831194",
"0.49722913",
"0.49664408",
"0.49633694",
"0.49488497",
"0.49370983",
"0.49255544",
"0.4921423",
"0.49111158",
"0.490597",
"0.49009746",
"0.48803926",
"0.48739308",
"0.4866078",
"0.4863334",
"0.48627147",
"0.486143",
"0.4851001",
"0.48469773",
"0.48445046",
"0.48372284",
"0.4836344",
"0.4834961",
"0.48287317",
"0.4824121",
"0.48224443",
"0.4815103",
"0.48065355",
"0.4793096",
"0.47864416",
"0.4783639",
"0.4783227",
"0.4782775",
"0.4782775",
"0.47826135",
"0.47817013",
"0.47807902",
"0.47753134",
"0.4763872",
"0.47607288",
"0.47583243",
"0.4756762",
"0.47506613",
"0.47439846",
"0.47411114",
"0.47379237",
"0.4735004",
"0.47335166",
"0.47312555",
"0.47289297",
"0.4725473",
"0.4725243",
"0.4723166",
"0.47210965",
"0.47139084",
"0.4703738",
"0.47035086",
"0.4698971",
"0.46967325",
"0.46929705",
"0.4691971",
"0.46909887",
"0.4688688",
"0.4687263",
"0.46871853",
"0.46864617",
"0.46807474",
"0.46718952",
"0.46715027",
"0.4667615",
"0.4667615",
"0.46661204",
"0.4665838",
"0.4662881",
"0.46627903",
"0.46607196",
"0.46596748",
"0.46543607",
"0.46539766",
"0.46538743",
"0.4652771",
"0.465267",
"0.4651264",
"0.4650268",
"0.464907",
"0.46465558",
"0.46463135",
"0.46457863",
"0.46440825",
"0.46424058",
"0.46409333",
"0.46409333",
"0.46409333"
] |
0.0
|
-1
|
/ / / / /
|
static Krb5InitCredential getInstance(GSSCaller paramGSSCaller, Krb5NameElement paramKrb5NameElement, int paramInt) throws GSSException {
/* 160 */ KerberosTicket kerberosTicket = getTgt(paramGSSCaller, paramKrb5NameElement, paramInt);
/* 161 */ if (kerberosTicket == null) {
/* 162 */ throw new GSSException(13, -1, "Failed to find any Kerberos tgt");
/* */ }
/* */
/* 165 */ if (paramKrb5NameElement == null) {
/* 166 */ String str = kerberosTicket.getClient().getName();
/* 167 */ paramKrb5NameElement = Krb5NameElement.getInstance(str, Krb5MechFactory.NT_GSS_KRB5_PRINCIPAL);
/* */ }
/* */
/* */
/* */
/* */
/* 173 */ KerberosPrincipal kerberosPrincipal1 = KerberosSecrets.getJavaxSecurityAuthKerberosAccess().kerberosTicketGetClientAlias(kerberosTicket);
/* */
/* */
/* 176 */ KerberosPrincipal kerberosPrincipal2 = KerberosSecrets.getJavaxSecurityAuthKerberosAccess().kerberosTicketGetServerAlias(kerberosTicket);
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* */
/* 190 */ Krb5InitCredential krb5InitCredential = new Krb5InitCredential(paramKrb5NameElement, kerberosTicket.getEncoded(), kerberosTicket.getClient(), kerberosPrincipal1, kerberosTicket.getServer(), kerberosPrincipal2, kerberosTicket.getSessionKey().getEncoded(), kerberosTicket.getSessionKeyType(), kerberosTicket.getFlags(), kerberosTicket.getAuthTime(), kerberosTicket.getStartTime(), kerberosTicket.getEndTime(), kerberosTicket.getRenewTill(), kerberosTicket.getClientAddresses());
/* 191 */ krb5InitCredential
/* 192 */ .proxyTicket = KerberosSecrets.getJavaxSecurityAuthKerberosAccess().kerberosTicketGetProxy(kerberosTicket);
/* 193 */ return krb5InitCredential;
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void divide() {\n\t\t\n\t}",
"private int parent(int i){return (i-1)/2;}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public void gored() {\n\t\t\n\t}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public abstract String division();",
"private int leftChild(int i){return 2*i+1;}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"double passer();",
"public String ring();",
"private int rightChild(int i){return 2*i+2;}",
"public String toString(){ return \"DIV\";}",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"static void pyramid(){\n\t}",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public void stg() {\n\n\t}",
"void mo33732Px();",
"void sharpen();",
"void sharpen();",
"Operations operations();",
"public void skystonePos4() {\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"double volume(){\n return width*height*depth;\n }",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\n public void bfs() {\n\n }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"int getWidth() {return width;}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\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\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\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.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"void ringBell() {\n\n }",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"int width();",
"private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"void walk() {\n\t\t\n\t}",
"double getPerimeter(){\n return 2*height+width;\n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\npublic void processDirection() {\n\t\n}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"@Override\r\n public void draw()\r\n {\n\r\n }",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }",
"@Override\n\tpublic void draw3() {\n\n\t}",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }",
"double defendre();",
"public void getTile_B8();",
"public void SubRect(){\n\t\n}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"void mo21076g();",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void skystonePos2() {\n }",
"public void skystonePos5() {\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }",
"public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }",
"public void skystonePos3() {\n }",
"double seBlesser();",
"void block(Directions dir);",
"public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"public RMPath getPath() { return RMPath.unitRectPath; }",
"public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}",
"public int upright();",
"private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}",
"public Integer getWidth(){return this.width;}",
"public void skystonePos6() {\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}",
"@Override\n\tpublic void breath() {\n\n\t}",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}",
"private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t}"
] |
[
"0.5654446",
"0.52820337",
"0.5271249",
"0.52676165",
"0.52306265",
"0.52296305",
"0.5206255",
"0.51926357",
"0.51523715",
"0.5099704",
"0.5095072",
"0.50714195",
"0.5043397",
"0.50093687",
"0.5006837",
"0.49735466",
"0.49680007",
"0.49592596",
"0.49568266",
"0.49417847",
"0.49417847",
"0.4941728",
"0.49032676",
"0.48963118",
"0.48877206",
"0.4878639",
"0.48751986",
"0.48713252",
"0.4868702",
"0.48635373",
"0.48586923",
"0.48402756",
"0.48361078",
"0.4831637",
"0.4830096",
"0.4825806",
"0.48213267",
"0.4817274",
"0.4803086",
"0.4803086",
"0.4799573",
"0.47919035",
"0.47901195",
"0.47772098",
"0.47729576",
"0.4767296",
"0.47566402",
"0.47512594",
"0.47447902",
"0.4737148",
"0.47342178",
"0.47310853",
"0.4723958",
"0.47211447",
"0.47189522",
"0.47157505",
"0.4714216",
"0.47138712",
"0.47086555",
"0.4702963",
"0.4700547",
"0.4700441",
"0.4698242",
"0.46977422",
"0.46946698",
"0.46945414",
"0.4692397",
"0.4690384",
"0.46893278",
"0.46851698",
"0.46830603",
"0.4677172",
"0.4677172",
"0.46758604",
"0.46707246",
"0.46704718",
"0.46702877",
"0.46697158",
"0.46673694",
"0.46655256",
"0.46633917",
"0.46612245",
"0.46592748",
"0.46591464",
"0.46543574",
"0.46468976",
"0.46468052",
"0.46455312",
"0.46442294",
"0.46438172",
"0.4641466",
"0.4639147",
"0.4637562",
"0.4637321",
"0.46364754",
"0.4635775",
"0.4634907",
"0.4634907",
"0.46344763",
"0.46325928",
"0.46319452"
] |
0.0
|
-1
|
/ / / / /
|
static Krb5InitCredential getInstance(Krb5NameElement paramKrb5NameElement, Credentials paramCredentials) throws GSSException {
/* 200 */ EncryptionKey encryptionKey = paramCredentials.getSessionKey();
/* */
/* */
/* */
/* */
/* */
/* */
/* 207 */ PrincipalName principalName1 = paramCredentials.getClient();
/* 208 */ PrincipalName principalName2 = paramCredentials.getClientAlias();
/* 209 */ PrincipalName principalName3 = paramCredentials.getServer();
/* 210 */ PrincipalName principalName4 = paramCredentials.getServerAlias();
/* */
/* 212 */ KerberosPrincipal kerberosPrincipal1 = null;
/* 213 */ KerberosPrincipal kerberosPrincipal2 = null;
/* 214 */ KerberosPrincipal kerberosPrincipal3 = null;
/* 215 */ KerberosPrincipal kerberosPrincipal4 = null;
/* */
/* 217 */ Krb5NameElement krb5NameElement = null;
/* */
/* 219 */ if (principalName1 != null) {
/* 220 */ String str = principalName1.getName();
/* 221 */ krb5NameElement = Krb5NameElement.getInstance(str, Krb5MechFactory.NT_GSS_KRB5_PRINCIPAL);
/* */
/* 223 */ kerberosPrincipal1 = new KerberosPrincipal(str);
/* */ }
/* */
/* 226 */ if (principalName2 != null) {
/* 227 */ kerberosPrincipal2 = new KerberosPrincipal(principalName2.getName());
/* */ }
/* */
/* */
/* */
/* 232 */ if (principalName3 != null)
/* */ {
/* 234 */ kerberosPrincipal3 = new KerberosPrincipal(principalName3.getName(), 2);
/* */ }
/* */
/* */
/* 238 */ if (principalName4 != null) {
/* 239 */ kerberosPrincipal4 = new KerberosPrincipal(principalName4.getName());
/* */ }
/* */
/* 242 */ return new Krb5InitCredential(krb5NameElement, paramCredentials, paramCredentials
/* */
/* 244 */ .getEncoded(), kerberosPrincipal1, kerberosPrincipal2, kerberosPrincipal3, kerberosPrincipal4, encryptionKey
/* */
/* */
/* */
/* */
/* 249 */ .getBytes(), encryptionKey
/* 250 */ .getEType(), paramCredentials
/* 251 */ .getFlags(), paramCredentials
/* 252 */ .getAuthTime(), paramCredentials
/* 253 */ .getStartTime(), paramCredentials
/* 254 */ .getEndTime(), paramCredentials
/* 255 */ .getRenewTill(), paramCredentials
/* 256 */ .getClientAddresses());
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void divide() {\n\t\t\n\t}",
"private int parent(int i){return (i-1)/2;}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public void gored() {\n\t\t\n\t}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public abstract String division();",
"private int leftChild(int i){return 2*i+1;}",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"double passer();",
"public String ring();",
"private int rightChild(int i){return 2*i+2;}",
"public String toString(){ return \"DIV\";}",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public void division() {\n\t\tx=1;\n\t\ty=0;\n\t\tz=x/y;\n\t\t\t\t\n\t}",
"static void pyramid(){\n\t}",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public void stg() {\n\n\t}",
"void mo33732Px();",
"Operations operations();",
"void sharpen();",
"void sharpen();",
"public void skystonePos4() {\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"double volume(){\n return width*height*depth;\n }",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\n public void bfs() {\n\n }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"int getWidth() {return width;}",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"Parallelogram(){\n length = width = height = 0;\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\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\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\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.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"void ringBell() {\n\n }",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"int width();",
"private boolean slash() {\r\n return MARK(OPERATOR) && CHAR('/') && gap();\r\n }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"void walk() {\n\t\t\n\t}",
"double getPerimeter(){\n return 2*height+width;\n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\npublic void processDirection() {\n\t\n}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"@Override\r\n public void draw()\r\n {\n\r\n }",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public static void method1(){\n System.out.println(\"*****\");\n System.out.println(\"*****\");\n System.out.println(\" * *\");\n System.out.println(\" *\");\n System.out.println(\" * *\");\n }",
"@Override\n\tpublic void draw3() {\n\n\t}",
"private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"double defendre();",
"public void getTile_B8();",
"public void SubRect(){\n\t\n}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"void mo21076g();",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void skystonePos2() {\n }",
"public void skystonePos5() {\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public static void topHalf() {\n \t\n for( int i = 1; i <= SIZE; i++){\n for(int spaces = 1; spaces <= 3*SIZE - 3*i; spaces++) {\n System.out.print(\" \"); \n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"__/\");\n }\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n System.out.print(\"||\");\n \n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\":::\");\n }\n \n for(int j = 1; j <= 1; j++) {\n System.out.print(\"\\\\__\");\n }\n \n System.out.println();\n }\n \n System.out.print(\"|\");\n \n for(int i = 1; i <= 6 * SIZE; i++) {\n System.out.print(\"\\\"\");\n }\n \n System.out.println(\"|\");\n }",
"public static void body() {\n \tfor(int i = 1; i <= SIZE*SIZE; i++) {\n for(int j = 1; j <= 3*SIZE-(SIZE-1); j++) {\n System.out.print(\" \");\n }\n \n System.out.print(\"|\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"||\");\n for(int j = 1; j <= SIZE-2; j++) {\n \tSystem.out.print(\"%\");\n }\n System.out.print(\"|\");\n \n System.out.println();\n }\n }",
"public void skystonePos3() {\n }",
"double seBlesser();",
"public wall() { //default constructor makes a 10x10 square extending right and down from the pixel located at 5,5\r\n x = 5;\r\n y = 5;\r\n height = 10;\r\n width = 10;\r\n }",
"void block(Directions dir);",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"public static void main(String[] args) {\nint i,j,k;\r\nint num=5;\r\nfor(i=0;i<num;i++){\r\n\tfor(j=0;j<i;j++){\r\n\t\tSystem.out.print(\" \");\r\n\t}\r\n\tfor(k=num; k>=2*i-1; k--){\r\n\t\tSystem.out.print(\"*\");\r\n\t}\r\n\t\r\n\tSystem.out.println();\r\n}\r\n\t}",
"public RMPath getPath() { return RMPath.unitRectPath; }",
"public int upright();",
"private int uniquePaths(int x, int y, int[][] dp) {\n \t\tif (x == 0 || y == 0) return 1;\n \t\tif (dp[x][y] == 0)\n \t\t\tdp[x][y] = uniquePaths(x - 1, y, dp) + uniquePaths(x, y - 1, dp);\n \t\treturn dp[x][y];\n \t}",
"public Integer getWidth(){return this.width;}",
"public void skystonePos6() {\n }",
"void GenerateBoardPath() {\n\t\t\t\n\t\t\tint rows = board.getRowsNum();\n\t\t\tint columns = board.getColsNum();\n\t\t\tint space_number = 1; \n\t\t\t\n\t\t\t\n\t\t\tfor (int i = rows - 1; i >= 0; i--) \n\t\t\t\t//If the row is an odd-number, move L-R\n\t\t\t\tif (i % 2 != 0) {\n\t\t\t\t\tfor (int j = 0; j < columns; j++) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = columns-1; j >=0; j--) \n\t\t\t\t\t\tBoardPathRepository.put(space_number++, board.getTile(i, j));\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\n\t\t}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"@Override\n\tpublic void breath() {\n\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void draw() {\n\t\t\r\n\t}",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public static void main(String[] args) {\n\r\n\t\t\r\n\t\tint n = 7;\r\n\t\tfor (int i = n; i >= 0; i--) {\r\n\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t for(int j=0; j<n-i; j++) {\r\n\t\t\t \r\n\t\t\t System.out.print(\" \");\r\n\t\t\t \r\n\t\t\t }\r\n\t\t\t \r\n\t\t\t \r\n\r\n\t\t\tfor (int j = n; j >= n-i; j--) {\r\n\r\n\t\t\t\tSystem.out.print(\"*\");\r\n\r\n\t\t\t}\r\n\r\n\t\t\tSystem.out.println(\"\");\r\n\t\t}\r\n\r\n\t\t\r\n\t}",
"@Override\n\tpublic void draw() {\n\t}",
"private void division()\n\t{\n\t\tFun = Function.DIVIDE; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}"
] |
[
"0.5654086",
"0.5282051",
"0.5270874",
"0.5268489",
"0.5230159",
"0.5229372",
"0.5205559",
"0.51923394",
"0.51524484",
"0.50993294",
"0.50948834",
"0.5071109",
"0.5043058",
"0.5009983",
"0.5006536",
"0.49739555",
"0.49691963",
"0.4959123",
"0.49568397",
"0.49425906",
"0.49421698",
"0.49421698",
"0.4903223",
"0.4897176",
"0.48879617",
"0.48803073",
"0.48741165",
"0.48718095",
"0.48679698",
"0.48646608",
"0.48598114",
"0.48402584",
"0.48362267",
"0.48321876",
"0.48310882",
"0.4825809",
"0.48227587",
"0.48175377",
"0.48045233",
"0.48045233",
"0.48002362",
"0.47911668",
"0.47906598",
"0.4776121",
"0.47734705",
"0.47673976",
"0.475685",
"0.47517157",
"0.47446346",
"0.47364715",
"0.47353277",
"0.47321412",
"0.47242466",
"0.4721296",
"0.47190621",
"0.47164857",
"0.47148356",
"0.47142458",
"0.47103566",
"0.47027764",
"0.47023293",
"0.4701804",
"0.46992764",
"0.46985114",
"0.46954885",
"0.4695406",
"0.46914175",
"0.4690724",
"0.46901584",
"0.4686765",
"0.4682771",
"0.46786475",
"0.46786475",
"0.4676364",
"0.46714565",
"0.46710065",
"0.46701837",
"0.46698236",
"0.46671712",
"0.466633",
"0.4663725",
"0.46617198",
"0.46599096",
"0.46593648",
"0.4654308",
"0.46481097",
"0.46472353",
"0.46443266",
"0.46441418",
"0.46438584",
"0.4642061",
"0.46387514",
"0.46382058",
"0.46375832",
"0.4636777",
"0.46365395",
"0.46365395",
"0.46359038",
"0.4635539",
"0.46332848",
"0.46326485"
] |
0.0
|
-1
|
/ / / / / / / / /
|
public final GSSNameSpi getName() throws GSSException {
/* 267 */ return this.name;
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public String ring();",
"int getWidth() {return width;}",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public Integer getWidth(){return this.width;}",
"public abstract String division();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int width();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"double volume(){\n return width*height*depth;\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int generateRoshambo(){\n ;]\n\n }",
"Operations operations();",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double getNewWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"long getWidth();",
"public void SubRect(){\n\t\n}",
"void mo33732Px();",
"static void pyramid(){\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public int my_leaf_count();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"void walk() {\n\t\t\n\t}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\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\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\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.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"double seBlesser();",
"void sharpen();",
"void sharpen();",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void leerPlanesDietas();",
"public String getRing();",
"static int getNumPatterns() { return 64; }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public int getWidth(){\n return width;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public abstract double getBaseWidth();",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"int expand();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public int upright();",
"int getTribeSize();",
"int getWidth1();",
"int getR();",
"String directsTo();",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"int depth();",
"int depth();",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"double getWidth();",
"double getWidth();"
] |
[
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.49287266",
"0.4884688",
"0.4874051",
"0.4871873",
"0.48511675",
"0.48435977",
"0.48318782",
"0.48268357",
"0.48253223",
"0.48089546",
"0.4805502",
"0.48046046",
"0.4803564",
"0.48035362",
"0.47987092",
"0.47966656",
"0.47941628",
"0.47918317",
"0.4789212",
"0.4783637",
"0.47747543",
"0.4774159",
"0.47730577",
"0.47666246",
"0.47664872",
"0.47615",
"0.4755131",
"0.47543177",
"0.47509375",
"0.47481856",
"0.47429588",
"0.47421312",
"0.47413164",
"0.47407025",
"0.47407025",
"0.47362685",
"0.47353023",
"0.47351807",
"0.47331676",
"0.47328842",
"0.47319365",
"0.4729934",
"0.47290468",
"0.47287467",
"0.47275317",
"0.47259426",
"0.47239763",
"0.4723621",
"0.4715134",
"0.47056246",
"0.47034666",
"0.47034577",
"0.4701833",
"0.46977103",
"0.46967983",
"0.46885592",
"0.46881223",
"0.46881223",
"0.4685835",
"0.4677769",
"0.46758488",
"0.46741006",
"0.46703368",
"0.46684504",
"0.4664061",
"0.4664013",
"0.46639267",
"0.46607205",
"0.4659042",
"0.46581274",
"0.4656714",
"0.46495056",
"0.464903",
"0.4648408",
"0.46467063",
"0.4643833",
"0.4643833",
"0.46426296",
"0.46422264",
"0.4639917",
"0.4639917"
] |
0.0
|
-1
|
/ / / / / / / /
|
public int getInitLifetime() throws GSSException {
/* 277 */ Date date = getEndTime();
/* 278 */ if (date == null) {
/* 279 */ return 0;
/* */ }
/* */
/* 282 */ long l = date.getTime() - System.currentTimeMillis();
/* 283 */ return (int)(l / 1000L);
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public String ring();",
"public void gored() {\n\t\t\n\t}",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"int getWidth() {return width;}",
"public String toString(){ return \"DIV\";}",
"public abstract String division();",
"public void getTile_B8();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public Integer getWidth(){return this.width;}",
"int width();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"@Override\n public void bfs() {\n\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"double volume(){\n return width*height*depth;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"Operations operations();",
"public double getWidth() { return _width<0? -_width : _width; }",
"public int generateRoshambo(){\n ;]\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"static void pyramid(){\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public void SubRect(){\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"void sharpen();",
"void sharpen();",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"void mo33732Px();",
"void walk() {\n\t\t\n\t}",
"public void skystonePos4() {\n }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\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\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\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.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"double getNewWidth();",
"Parallelogram(){\n length = width = height = 0;\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getPerimeter(){\n return 2*height+width;\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double seBlesser();",
"public void leerPlanesDietas();",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public int my_leaf_count();",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"public String getRing();",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public int getWidth(){\n return width;\n }",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"static int getNumPatterns() { return 64; }",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }",
"public abstract double getBaseWidth();",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public int upright();",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}",
"void block(Directions dir);",
"@Override\r\n public void draw()\r\n {\n\r\n }",
"int getWidth1();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"int expand();",
"int getR();",
"private int right(int parent) {\n\t\treturn parent*2+2;\n\t}",
"public void snare();"
] |
[
"0.55048823",
"0.5413075",
"0.5298015",
"0.52379996",
"0.5205496",
"0.51480424",
"0.5101674",
"0.5076514",
"0.5037376",
"0.50321674",
"0.5009592",
"0.498159",
"0.49813378",
"0.497832",
"0.4973623",
"0.4962841",
"0.4937309",
"0.49288675",
"0.49036264",
"0.4893208",
"0.4878872",
"0.486023",
"0.48546878",
"0.48474306",
"0.4843786",
"0.4843597",
"0.48404554",
"0.4828573",
"0.48274475",
"0.48219448",
"0.48183352",
"0.48035783",
"0.48026597",
"0.48024082",
"0.48010957",
"0.47977605",
"0.47963956",
"0.47898334",
"0.47896647",
"0.47896647",
"0.47895992",
"0.4779191",
"0.47783852",
"0.4774972",
"0.4772322",
"0.47666243",
"0.4766516",
"0.47659966",
"0.47643757",
"0.4759398",
"0.4758365",
"0.47569305",
"0.47497272",
"0.47480056",
"0.47479713",
"0.4741745",
"0.47414282",
"0.47396216",
"0.47332615",
"0.47332615",
"0.4730555",
"0.47282982",
"0.47245604",
"0.47213167",
"0.4720495",
"0.47192472",
"0.47116497",
"0.4710941",
"0.47098854",
"0.47097144",
"0.47078505",
"0.47062895",
"0.46959555",
"0.46922386",
"0.46900117",
"0.4689764",
"0.46894056",
"0.4689377",
"0.4686405",
"0.46843585",
"0.4674956",
"0.46731538",
"0.4672369",
"0.46682325",
"0.4665395",
"0.46646914",
"0.46625108",
"0.4657444",
"0.46537265",
"0.46518642",
"0.46471432",
"0.46463698",
"0.46434096",
"0.46425372",
"0.46412522",
"0.4640808",
"0.46407127",
"0.4638794",
"0.46371377",
"0.46312422",
"0.46296054"
] |
0.0
|
-1
|
/ / / / / / / /
|
public int getAcceptLifetime() throws GSSException {
/* 293 */ return 0;
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public String ring();",
"public void gored() {\n\t\t\n\t}",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"int getWidth() {return width;}",
"public String toString(){ return \"DIV\";}",
"public abstract String division();",
"public void getTile_B8();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public Integer getWidth(){return this.width;}",
"int width();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"@Override\n public void bfs() {\n\n }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"double volume(){\n return width*height*depth;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"Operations operations();",
"public double getWidth() { return _width<0? -_width : _width; }",
"public int generateRoshambo(){\n ;]\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"static void pyramid(){\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public void SubRect(){\n\t\n}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"void sharpen();",
"void sharpen();",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"void mo33732Px();",
"void walk() {\n\t\t\n\t}",
"public void skystonePos4() {\n }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\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\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\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.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"double getNewWidth();",
"Parallelogram(){\n length = width = height = 0;\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"double getPerimeter(){\n return 2*height+width;\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double seBlesser();",
"public void leerPlanesDietas();",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public int my_leaf_count();",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"public String getRing();",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public int getWidth(){\n return width;\n }",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"protected int parent(int i) { return (i - 1) / 2; }",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"static int getNumPatterns() { return 64; }",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }",
"public abstract double getBaseWidth();",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public int upright();",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}",
"void block(Directions dir);",
"@Override\r\n public void draw()\r\n {\n\r\n }",
"int getWidth1();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"int expand();",
"int getR();",
"private int right(int parent) {\n\t\treturn parent*2+2;\n\t}",
"public void snare();"
] |
[
"0.55048823",
"0.5413075",
"0.5298015",
"0.52379996",
"0.5205496",
"0.51480424",
"0.5101674",
"0.5076514",
"0.5037376",
"0.50321674",
"0.5009592",
"0.498159",
"0.49813378",
"0.497832",
"0.4973623",
"0.4962841",
"0.4937309",
"0.49288675",
"0.49036264",
"0.4893208",
"0.4878872",
"0.486023",
"0.48546878",
"0.48474306",
"0.4843786",
"0.4843597",
"0.48404554",
"0.4828573",
"0.48274475",
"0.48219448",
"0.48183352",
"0.48035783",
"0.48026597",
"0.48024082",
"0.48010957",
"0.47977605",
"0.47963956",
"0.47898334",
"0.47896647",
"0.47896647",
"0.47895992",
"0.4779191",
"0.47783852",
"0.4774972",
"0.4772322",
"0.47666243",
"0.4766516",
"0.47659966",
"0.47643757",
"0.4759398",
"0.4758365",
"0.47569305",
"0.47497272",
"0.47480056",
"0.47479713",
"0.4741745",
"0.47414282",
"0.47396216",
"0.47332615",
"0.47332615",
"0.4730555",
"0.47282982",
"0.47245604",
"0.47213167",
"0.4720495",
"0.47192472",
"0.47116497",
"0.4710941",
"0.47098854",
"0.47097144",
"0.47078505",
"0.47062895",
"0.46959555",
"0.46922386",
"0.46900117",
"0.4689764",
"0.46894056",
"0.4689377",
"0.4686405",
"0.46843585",
"0.4674956",
"0.46731538",
"0.4672369",
"0.46682325",
"0.4665395",
"0.46646914",
"0.46625108",
"0.4657444",
"0.46537265",
"0.46518642",
"0.46471432",
"0.46463698",
"0.46434096",
"0.46425372",
"0.46412522",
"0.4640808",
"0.46407127",
"0.4638794",
"0.46371377",
"0.46312422",
"0.46296054"
] |
0.0
|
-1
|
/ / / / / / / / /
|
public final Oid getMechanism() {
/* 312 */ return Krb5MechFactory.GSS_KRB5_MECH_OID;
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"private int rightChild(int i){return 2*i+2;}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public String ring();",
"int getWidth() {return width;}",
"public void gored() {\n\t\t\n\t}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void getTile_B8();",
"public Integer getWidth(){return this.width;}",
"public abstract String division();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"int width();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"@Override\n public void bfs() {\n\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"double volume(){\n return width*height*depth;\n }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int generateRoshambo(){\n ;]\n\n }",
"Operations operations();",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"double getNewWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"long getWidth();",
"public void SubRect(){\n\t\n}",
"void mo33732Px();",
"static void pyramid(){\n\t}",
"public double getPerimiter(){return (2*height +2*width);}",
"public int my_leaf_count();",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"void walk() {\n\t\t\n\t}",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\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\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\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.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"double seBlesser();",
"void sharpen();",
"void sharpen();",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void leerPlanesDietas();",
"public String getRing();",
"static int getNumPatterns() { return 64; }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public int getWidth(){\n return width;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"public abstract double getBaseWidth();",
"public void stg() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"int expand();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public int upright();",
"int getTribeSize();",
"int getWidth1();",
"int getR();",
"String directsTo();",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"int depth();",
"int depth();",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"double getWidth();",
"double getWidth();"
] |
[
"0.5531016",
"0.54378587",
"0.52516115",
"0.52405924",
"0.5151045",
"0.5127977",
"0.50680465",
"0.5066997",
"0.50218964",
"0.5013022",
"0.5007318",
"0.50048536",
"0.49997565",
"0.4994835",
"0.49735898",
"0.49699947",
"0.49680406",
"0.49594593",
"0.4937881",
"0.49361676",
"0.49287266",
"0.4884688",
"0.4874051",
"0.4871873",
"0.48511675",
"0.48435977",
"0.48318782",
"0.48268357",
"0.48253223",
"0.48089546",
"0.4805502",
"0.48046046",
"0.4803564",
"0.48035362",
"0.47987092",
"0.47966656",
"0.47941628",
"0.47918317",
"0.4789212",
"0.4783637",
"0.47747543",
"0.4774159",
"0.47730577",
"0.47666246",
"0.47664872",
"0.47615",
"0.4755131",
"0.47543177",
"0.47509375",
"0.47481856",
"0.47429588",
"0.47421312",
"0.47413164",
"0.47407025",
"0.47407025",
"0.47362685",
"0.47353023",
"0.47351807",
"0.47331676",
"0.47328842",
"0.47319365",
"0.4729934",
"0.47290468",
"0.47287467",
"0.47275317",
"0.47259426",
"0.47239763",
"0.4723621",
"0.4715134",
"0.47056246",
"0.47034666",
"0.47034577",
"0.4701833",
"0.46977103",
"0.46967983",
"0.46885592",
"0.46881223",
"0.46881223",
"0.4685835",
"0.4677769",
"0.46758488",
"0.46741006",
"0.46703368",
"0.46684504",
"0.4664061",
"0.4664013",
"0.46639267",
"0.46607205",
"0.4659042",
"0.46581274",
"0.4656714",
"0.46495056",
"0.464903",
"0.4648408",
"0.46467063",
"0.4643833",
"0.4643833",
"0.46426296",
"0.46422264",
"0.4639917",
"0.4639917"
] |
0.0
|
-1
|
/ / / / / / /
|
Credentials getKrb5Credentials() {
/* 325 */ return this.krb5Credentials;
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"public void divide() {\n\t\t\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"private int rightChild(int i){return 2*i+2;}",
"public abstract void bepaalGrootte();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"double passer();",
"public void gored() {\n\t\t\n\t}",
"public String ring();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"public abstract String division();",
"public String toString(){ return \"DIV\";}",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"int getWidth() {return width;}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"public void getTile_B8();",
"public double getWidth() {\n return this.size * 2.0; \n }",
"double volume(){\n return width*height*depth;\n }",
"@Override\n public void bfs() {\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"int width();",
"Operations operations();",
"void sharpen();",
"void sharpen();",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"static void pyramid(){\n\t}",
"public Integer getWidth(){return this.width;}",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public void skystonePos4() {\n }",
"void mo33732Px();",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"public void SubRect(){\n\t\n}",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"void walk() {\n\t\t\n\t}",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public double getWidth() { return _width<0? -_width : _width; }",
"public void draw(){\n for(int i = 1; i <= height; i++){\n for(int s = 1; s <= i; s++)\n System.out.print(\"*\");\n System.out.println();\n }\n }",
"public void stg() {\n\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"@Override\n\tpublic void draw() {\n\t\t\n\t}",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\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\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\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.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"public static void main(String[] args) {\n\t\tfor(int j=0;j<8;j++){\n\t\t\tfor(int i=0;i<8;i++){\n\t\t\t\t//上下两侧\n\t\t\t\tif(j==0||j==7){\n\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t}else{\n\t\t\t\t\t//中间\n\t\t\t\t\tif(i>0&&i<7){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"*\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"double getPerimeter(){\n return 2*height+width;\n }",
"public static void part2(){\n\t\n System.out.println(\"\\\\\"); //Outer wall\n System.out.println(\"\\\\\");\n System.out.println(\"\\\\\");\n for(int i = 0; i <= 16; i++){ //loop created to display top of the door\n\n \tSystem.out.print(\"-\");\n\n\t}\n System.out.println(\"\");\n System.out.println(\"\\\\\\t\\t| \\t(\\\")\"); //The door and the stick figure\n System.out.println(\"\\\\\\t\\t|\\t-|-\");\n System.out.println(\"\\\\\\t o | \\t |\");\n System.out.println(\"\\\\\\t\\t|\\t /\\\\\");\n System.out.println(\"\\\\\\t\\t|\\t/ \\\\\");\n\t\t\n }",
"public double getPerimiter(){return (2*height +2*width);}",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"void doubleBox(int sides, float x1, float y1, float z1, float x2, float y2, float z2)\r\n/* 100: */ {\r\n/* 101: 99 */ int s2 = sides << 1 & 0x2A | sides >> 1 & 0x15;\r\n/* 102: */ \r\n/* 103:101 */ this.context.renderBox(sides, x1, y1, z1, x2, y2, z2);\r\n/* 104:102 */ this.context.renderBox(s2, x2, y2, z2, x1, y1, z1);\r\n/* 105: */ }",
"@Override\n protected void paint2d(Graphics2D g) {\n \n }",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"double getNewWidth();",
"public void draw4x4 (char design){\n System.out.println(\"\"+design+design+design+design);\n System.out.println(design+\" \"+design);\n System.out.println(design+\" \"+design);\n System.out.println(\"\"+design+design+design+design);\n}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"private void createPath(Direction d, int width, Point p1, Point p2) {\n\t\t// Determine how far away from the center the corners are\n\t\tint sideOneOffset = 0;\t// Top or Left depending on path direction\n\t\tint sideTwoOffset = 0;\t// Bot or Right depending on path direction\n\t\t// If the width is odd, balance the offsets\n\t\tif (width % 2 != 0) {\t\n\t\t\tsideOneOffset = sideTwoOffset = ((width / 2) + 1);\n\t\t} else {\n\t\t\t// If the width is even, the offsets will be off by 1\n\t\t\tsideOneOffset = width;\n\t\t\tsideTwoOffset = width - 1;\n\t\t}\n\t\tif (d == Direction.LEFT || d == Direction.RIGHT) {\n\t\t\t// If the direction is left then we want to swap the points\n\t\t\t// to pretend like the direction was right (so the following code works)\n\t\t\tif (d == Direction.LEFT) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p1.x, p1.y + sideTwoOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p2.x, p1.y - sideOneOffset)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x, p1.y + sideTwoOffset)));\n\t\t\t// Set the left and right walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.y is the center of the path (top to bottom)\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x, p1.y + (i - width/2))));\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p2.x, p2.y + (i - width/2))));\n\t\t\t}\n\t\t\t// Set middle path and top/bottom padding (horizontal Oreo!)\n\t\t\tfor (int col = p1.x + 1, endCol = p2.x; col < endCol; col++) {\n\t\t\t\t// Add the top wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(col, p1.y - sideOneOffset)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(col, p1.y + (i - width /2))));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the bottom wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(col, p1.y + sideTwoOffset)));\n\t\t\t}\n\t\t} else {\n\t\t\t// If the direction is up then we want to swap the points\n\t\t\t// to pretend like the direction was down (so the following code works)\n\t\t\tif (d == Direction.UP) {\n\t\t\t\tPoint tempP = p2;\n\t\t\t\tp2 = p1;\n\t\t\t\tp1 = tempP;\n\t\t\t}\n\t\t\t// Set the four corners\n\t\t\tpathSquares.add(new PathSquare(\"top-left\", new Point(p1.x - sideOneOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-left\", new Point(p2.x - sideOneOffset, p2.y)));\n\t\t\tpathSquares.add(new PathSquare(\"top-right\", new Point(p1.x + sideTwoOffset, p1.y)));\n\t\t\tpathSquares.add(new PathSquare(\"bot-right\", new Point(p2.x + sideTwoOffset, p2.y)));\n\t\t\t// Set the top and bottom walls\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t// (i - width/2) ensures that p1.x is the center of the path (left to right)\n\t\t\t\tpathSquares.add(new PathSquare(\"top\", new Point(p1.x + (i - width /2), p1.y)));\n\t\t\t\tpathSquares.add(new PathSquare(\"bot\", new Point(p2.x + (i - width /2), p2.y)));\n\t\t\t}\n\t\t\t// Set middle path and left/right padding (vertical Oreo!)\n\t\t\tfor (int row = p1.y + 1, endRow = p2.y; row < endRow; row++) {\n\t\t\t\t// Add the left wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"left\", new Point(p1.x - sideOneOffset, row)));\t\t\t\t\n\t\t\t\t// Add the delicious cream filling\n\t\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\t\tpathSquares.add(new PathSquare(\"middle\", new Point(p1.x + (i - width /2), row)));\n\t\t\t\t}\t\t\t\t\n\t\t\t\t// Add the right wafer\n\t\t\t\tpathSquares.add(new PathSquare(\"right\", new Point(p1.x + sideTwoOffset, row)));\t\t\t\t\n\t\t\t}\n\t\t}\n\t}",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public void renderCenterBlock(int cons, int side, int end)\r\n/* 143: */ {\r\n/* 144:135 */ if (cons == 0)\r\n/* 145: */ {\r\n/* 146:136 */ this.context.setTex(end);\r\n/* 147:137 */ doubleBox(63, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 148:138 */ return;\r\n/* 149: */ }\r\n/* 150:139 */ if (cons == 3)\r\n/* 151: */ {\r\n/* 152:140 */ this.context.setTexFlags(1773);\r\n/* 153:141 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 154:142 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 155:143 */ return;\r\n/* 156: */ }\r\n/* 157:144 */ if (cons == 12)\r\n/* 158: */ {\r\n/* 159:145 */ this.context.setTexFlags(184365);\r\n/* 160:146 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 161:147 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 1.0F);\r\n/* 162:148 */ return;\r\n/* 163: */ }\r\n/* 164:149 */ if (cons == 48)\r\n/* 165: */ {\r\n/* 166:150 */ this.context.setTexFlags(187200);\r\n/* 167:151 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 168:152 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 169:153 */ return;\r\n/* 170: */ }\r\n/* 171:155 */ this.context.setTex(end);\r\n/* 172:156 */ doubleBox(0x3F ^ cons, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F);\r\n/* 173:157 */ if ((cons & 0x1) > 0)\r\n/* 174: */ {\r\n/* 175:158 */ this.context.setTexFlags(1773);\r\n/* 176:159 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 177:160 */ doubleBox(60, 0.375F, 0.0F, 0.375F, 0.625F, 0.375F, 0.625F);\r\n/* 178: */ }\r\n/* 179:162 */ if ((cons & 0x2) > 0)\r\n/* 180: */ {\r\n/* 181:163 */ this.context.setTexFlags(1773);\r\n/* 182:164 */ this.context.setTex(end, end, side, side, side, side);\r\n/* 183:165 */ doubleBox(60, 0.375F, 0.625F, 0.375F, 0.625F, 1.0F, 0.625F);\r\n/* 184: */ }\r\n/* 185:167 */ if ((cons & 0x4) > 0)\r\n/* 186: */ {\r\n/* 187:168 */ this.context.setTexFlags(184365);\r\n/* 188:169 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 189:170 */ doubleBox(51, 0.375F, 0.375F, 0.0F, 0.625F, 0.625F, 0.375F);\r\n/* 190: */ }\r\n/* 191:172 */ if ((cons & 0x8) > 0)\r\n/* 192: */ {\r\n/* 193:173 */ this.context.setTexFlags(184365);\r\n/* 194:174 */ this.context.setTex(side, side, end, end, side, side);\r\n/* 195:175 */ doubleBox(51, 0.375F, 0.375F, 0.625F, 0.625F, 0.625F, 1.0F);\r\n/* 196: */ }\r\n/* 197:177 */ if ((cons & 0x10) > 0)\r\n/* 198: */ {\r\n/* 199:178 */ this.context.setTexFlags(187200);\r\n/* 200:179 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 201:180 */ doubleBox(15, 0.0F, 0.375F, 0.375F, 0.375F, 0.625F, 0.625F);\r\n/* 202: */ }\r\n/* 203:182 */ if ((cons & 0x20) > 0)\r\n/* 204: */ {\r\n/* 205:183 */ this.context.setTexFlags(187200);\r\n/* 206:184 */ this.context.setTex(side, side, side, side, end, end);\r\n/* 207:185 */ doubleBox(15, 0.625F, 0.375F, 0.375F, 1.0F, 0.625F, 0.625F);\r\n/* 208: */ }\r\n/* 209: */ }",
"double seBlesser();",
"long getWidth();",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"private void render() {\n StringBuilder builder = new StringBuilder();\n builder.append(horizontalEdge).append(\"\\n\");\n for (int i = 0; i < this.height; i++) {\n builder.append(VERTICAL_CHAR);\n for (int j = 0; j < this.width; j++) {\n builder.append(pixels[i][j]);\n }\n builder.append(VERTICAL_CHAR);\n builder.append(\"\\n\");\n }\n builder.append(horizontalEdge);\n System.out.printf(builder.toString());\n }",
"public void leerPlanesDietas();",
"@Override\r\n public void draw()\r\n {\n\r\n }",
"private void buildPath() {\r\n int xNext = 1;\r\n int yNext = map.getStartPos() + 1;\r\n CellLayered before = cells[yNext][xNext];\r\n while(true)\r\n {\r\n Byte[] xy = map.getDirection(xNext-1, yNext-1);\r\n xNext = xNext + xy[0];\r\n yNext = yNext + xy[1];\r\n\r\n CellLayered next = cells[yNext][xNext];\r\n\r\n if(xy[0]==-1)\r\n before.setRight(false);\r\n else\r\n before.setRight(true);\r\n before.setPath(true);\r\n if(next==null)\r\n break;\r\n\r\n before.setNextInPath(next);\r\n before = next;\r\n }\r\n }",
"void block(Directions dir);",
"public static void slashes() {\n\t\tSystem.out.println(\"//////////////////////\");\r\n\r\n\t}",
"public String getRing();",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"public\nstatic\nvoid\nmain(String args[]) \n\n{ \n\nBinaryTree tree = \nnew\nBinaryTree(); \n\ntree.root = \nnew\nNode(\n20\n); \n\ntree.root.left = \nnew\nNode(\n8\n); \n\ntree.root.left.left = \nnew\nNode(\n4\n); \n\ntree.root.left.right = \nnew\nNode(\n12\n); \n\ntree.root.left.right.left = \nnew\nNode(\n10\n); \n\ntree.root.left.right.right = \nnew\nNode(\n14\n); \n\ntree.root.right = \nnew\nNode(\n22\n); \n\ntree.root.right.right = \nnew\nNode(\n25\n); \n\ntree.printBoundary(tree.root); \n\n}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public int getWidth(){\n return width;\n }",
"public int upright();",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\n\tpublic void draw() {\n\n\t}",
"@Override\n\tpublic void draw() {\n\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public int getDireccion(Pixel p) {\r\n\t\tif (x == p.x && y < p.y)\r\n\t\t\treturn DIR_N;\r\n\t\tif (x > p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y < p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_NO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_NO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_N;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x == p.x && y > p.y)\r\n\t\t\treturn DIR_S;\r\n\t\tif (x > p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SE;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SE;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_E;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x < p.x && y > p.y){\r\n\t\t\tdouble distancia = this.distancia(p);\r\n\t\t\tif (distancia <= 1){\r\n\t\t\t\treturn DIR_SO;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tint distanciaX = Math.abs(x - p.x);\r\n\t\t\t\tint distanciaY = Math.abs(y - p.y);\r\n\t\t\t\tif (distanciaX == distanciaY)\r\n\t\t\t\t\treturn DIR_SO;\r\n\t\t\t\telse if (distanciaX > distanciaY)\r\n\t\t\t\t\treturn DIR_O;\r\n\t\t\t\telse \r\n\t\t\t\t\treturn DIR_S;\r\n\t\t\t}\r\n\t\t}\r\n\t\tif (x > p.x && y == p.y)\r\n\t\t\treturn DIR_E;\r\n\t\tif (x < p.x && y == p.y)\r\n\t\t\treturn DIR_O;\r\n\t\treturn -1;\r\n\t}",
"private void renderPath(Node n)\n {\n\tGraphics g = getGraphics();\n\tboolean painting;\n\tColor nc,lc;\n\n\tpainting = (n.paths_passing==0);\n\twhile (n != null) {\n\t if (painting)\n\t\tn.paths_passing++;\n\t else {\n\t\tn.paths_passing--;\n\t }\n\t \n// \t nc = (n.paths_passing > 0)?hilitcolor:normalcolor;\n// \t lc = (n.paths_passing > 0)?hilitcolor:linecolor;\n\t nc = (n.paths_passing > 0)?n.path_color:normalcolor;\n\t lc = (n.paths_passing > 0)?n.path_color:linecolor;\n\t \n\t if (n.parent == null) {\n\t\tsetRenderColor(g,nc);\n\t\trenderNode(g,n);\n\t\tbreak;\n\t }\n\n\t // Double line width\n\t //setRenderColor(g,(n.paths_passing>0)?hilitcolor:Color.white);\n\t setRenderColor(g,(n.paths_passing>0)?n.path_color:Color.white);\n\t renderLine(g,n.x-1,n.y,n.parent.x-1,n.parent.y);\t\n\n\t setRenderColor(g,lc);\n\t renderLine(g,n.x,n.y,n.parent.x,n.parent.y);\n\n\t setRenderColor(g,nc);\n\t renderNode(g,n);\n\t n = n.parent;\n\t}\n }",
"double volume() {\n\treturn width*height*depth;\n}",
"void table(){\n fill(0);\n rect(width/2, height/2, 600, 350); // boarder\n fill(100, 0 ,0);\n rect(width/2, height/2, 550, 300); //Felt\n \n \n}",
"public void snare();",
"void ringBell() {\n\n }",
"public static void main(String[] args) {\n\t\tint n=5;\n\t\tfor(int i=n-1;i>=0;i--)\n\t\t{\n\t\t\tfor(int space=0;space<n-1-i;space++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tfor(int j=0;j<=i*2;j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(\"* \");\n\t\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public void skystonePos2() {\n }",
"public int my_leaf_count();",
"@Override\n\tpublic void draw3() {\n\n\t}"
] |
[
"0.54567957",
"0.53680295",
"0.53644985",
"0.52577376",
"0.52142847",
"0.51725817",
"0.514088",
"0.50868535",
"0.5072305",
"0.504888",
"0.502662",
"0.50005764",
"0.49740013",
"0.4944243",
"0.4941118",
"0.4937142",
"0.49095523",
"0.48940238",
"0.48719338",
"0.48613623",
"0.48604724",
"0.48558092",
"0.48546165",
"0.48490012",
"0.4843668",
"0.4843668",
"0.48420057",
"0.4839597",
"0.4832105",
"0.4817357",
"0.481569",
"0.48122767",
"0.48085573",
"0.48065376",
"0.48032433",
"0.48032212",
"0.4799707",
"0.4798766",
"0.47978994",
"0.47978172",
"0.47921672",
"0.47903922",
"0.4790111",
"0.47886384",
"0.47843018",
"0.47837785",
"0.47828907",
"0.47826976",
"0.4776919",
"0.47767594",
"0.47767594",
"0.47766045",
"0.4764252",
"0.47560593",
"0.4753577",
"0.4752732",
"0.47510985",
"0.47496924",
"0.47485355",
"0.4748455",
"0.4746839",
"0.4744132",
"0.47203988",
"0.4713808",
"0.4711382",
"0.47113234",
"0.47096533",
"0.47075558",
"0.47029856",
"0.4701444",
"0.47014076",
"0.46973658",
"0.46969122",
"0.4692372",
"0.46897912",
"0.4683049",
"0.4681391",
"0.46810925",
"0.46750805",
"0.46722633",
"0.46681988",
"0.466349",
"0.46618745",
"0.46606532",
"0.46533036",
"0.46485004",
"0.46464643",
"0.46447286",
"0.46447286",
"0.46438906",
"0.46405315",
"0.46397775",
"0.4634643",
"0.46339533",
"0.4633923",
"0.4632826",
"0.4631328",
"0.46299514",
"0.46285036",
"0.46276402",
"0.4625902"
] |
0.0
|
-1
|
/ / / / / / / / / /
|
public void dispose() throws GSSException {
/* */ try {
/* 338 */ destroy();
/* 339 */ } catch (DestroyFailedException destroyFailedException) {
/* */
/* */
/* 342 */ GSSException gSSException = new GSSException(11, -1, "Could not destroy credentials - " + destroyFailedException.getMessage());
/* 343 */ gSSException.initCause(destroyFailedException);
/* */ }
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"public abstract void bepaalGrootte();",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"double passer();",
"int getWidth() {return width;}",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"public String ring();",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"public void gored() {\n\t\t\n\t}",
"public void getTile_B8();",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public String toString(){ return \"DIV\";}",
"int width();",
"public abstract String division();",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"@Override\n public void bfs() {\n\n }",
"public int getEdgeCount() \n {\n return 3;\n }",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"@Override\npublic void processDirection() {\n\t\n}",
"double getNewWidth();",
"long getWidth();",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int generateRoshambo(){\n ;]\n\n }",
"double volume(){\n return width*height*depth;\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"public int my_leaf_count();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"Operations operations();",
"static int getNumPatterns() { return 64; }",
"void mo33732Px();",
"public double getPerimiter(){return (2*height +2*width);}",
"double seBlesser();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public void SubRect(){\n\t\n}",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"public void skystonePos4() {\n }",
"public int getWidth(){\n return width;\n }",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"private void pointer(Graphics image,int x,int y,int height,int b,int dir) {\n\n\t\tint[] xt=new int[3];\n\t\tint[] yt=new int[3];\n\n\t\tif(dir==0) {\n\t\t\txt[0]=x;\n\t\t\txt[1]=xt[2]=x+height;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=y+b/2;\n\t\t\tyt[2]=y-b/2;\n\t\t} else {\n\t\t\txt[0]=x;\n\t\t\txt[1]=x+b/2;\n\t\t\txt[2]=x-b/2;\n\t\t\tyt[0]=y;\n\t\t\tyt[1]=yt[2]=y-height;\n\t\t}\n\t\timage.fillPolygon(xt,yt,3);\n\t}",
"static void pyramid(){\n\t}",
"public void leerPlanesDietas();",
"public String getRing();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\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\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\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.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"void walk() {\n\t\t\n\t}",
"int getTribeSize();",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"@Override\n\tpublic void walk() {\n\t\t\n\t}",
"public abstract double getBaseWidth();",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"public void foundLeaf(int width, int height, int level, int currX, int currY, int location) {\n level = level +2;\n if (location == 1) {\n\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - ( (new Double(spatialHeight / Math.pow(2, level ))).intValue()),\n currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY * 2,\n Color.BLACK);\n\n\n canvas.addLine(((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue())) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n currX,\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n\n }\n\n if (location == 2) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY + (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n ( currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue()) + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n (currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY + (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.black);\n\n\n\n }\n\n if (location == 3) {\n\n canvas.addLine(currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue()) - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX - (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY,\n Color.BLACK);\n\n\n\n canvas.addLine((currX - (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n\tcurrY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), \n (currX - (new Double(spatialWidth / Math.pow(2, level ))).intValue()) + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n Color.BLACK);\n\n\n }\n\n if (location == 4) {\n\n\n canvas.addLine(currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n (currY - (new Double(spatialHeight / Math.pow(2, level))).intValue()) - (new Double(spatialHeight / Math.pow(2, level))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY,\n Color.BLACK);\n\n\n canvas.addLine((currX + (new Double(spatialWidth / Math.pow(2, level))).intValue()) - (new Double(spatialWidth / Math.pow(2, level ))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(),\n currX + (new Double(spatialWidth / Math.pow(2, level ))).intValue() + (new Double(spatialWidth / Math.pow(2, level))).intValue(),\n currY - (new Double(spatialHeight / Math.pow(2, level ))).intValue(), Color.BLACK);\n\n\n }\n\n\n\n\n }",
"public static void main(String[] args) {\n\n\n for(int a=0; a<7;a++){\n for(int b=0;b<7-a;b++){\n System.out.print(\" \");\n }\n for(int c=0; c<=a;c++){\n System.out.print(\"* \");\n }\n System.out.println(\" \");\n }\n\n }",
"public static void unionPathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze two = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\tSystem.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = two.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber+n) != S.findAndCompress(randomNumber)){\n\t\t\t\t\t\tS.union(randomNumber+n, randomNumber);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'u');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.union(randomNumber, randomNumber+1);\n\t\t\t\t\t\ttwo.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(two, n);\n\t\tuserSelection_SolveMaze(n);\n\n\n\t\tStdDraw.show(0);\n\t\ttwo.draw();\n\t\ttwo.printCellNumbers();\n\t}",
"double getPerimeter(){\n return 2*height+width;\n }",
"void sharpen();",
"void sharpen();",
"private static void breadcrumbArrow(int width, int height, int indent, int c1, int c2) {\n\n\t\tdouble x0 = 0, y0 = height / 2d;\n\t\tdouble x1 = indent, y1 = 0;\n\t\tdouble x2 = indent, y2 = height / 2d;\n\t\tdouble x3 = indent, y3 = height;\n\t\tdouble x4 = width, y4 = 0;\n\t\tdouble x5 = width, y5 = height / 2d;\n\t\tdouble x6 = width, y6 = height;\n\t\tdouble x7 = indent + width, y7 = 0;\n\t\tdouble x8 = indent + width, y8 = height;\n\n\t\tint fc1 = ColorHelper.mixAlphaColors(c1, c2, 0);\n\t\tint fc2 = ColorHelper.mixAlphaColors(c1, c2, (indent)/(width + 2f * indent));\n\t\tint fc3 = ColorHelper.mixAlphaColors(c1, c2, (indent + width)/(width + 2f * indent));\n\t\tint fc4 = ColorHelper.mixAlphaColors(c1, c2, 1);\n\n\t\tRenderSystem.disableTexture();\n\t\tRenderSystem.enableBlend();\n\t\tRenderSystem.disableAlphaTest();\n\t\tRenderSystem.defaultBlendFunc();\n\t\tRenderSystem.shadeModel(GL11.GL_SMOOTH);\n\n\t\tTessellator tessellator = Tessellator.getInstance();\n\t\tBufferBuilder bufferbuilder = tessellator.getBuffer();\n\t\tbufferbuilder.begin(GL11.GL_TRIANGLES, DefaultVertexFormats.POSITION_COLOR);\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x0, y0, 0).color(fc1 >> 16 & 0xFF, fc1 >> 8 & 0xFF, fc1 & 0xFF, fc1 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x2, y2, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x1, y1, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x3, y3, 0).color(fc2 >> 16 & 0xFF, fc2 >> 8 & 0xFF, fc2 & 0xFF, fc2 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x4, y4, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x7, y7, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\tbufferbuilder.vertex(x6, y6, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x5, y5, 0).color(fc3 >> 16 & 0xFF, fc3 >> 8 & 0xFF, fc3 & 0xFF, fc3 >> 24 & 0xFF).endVertex();\n\t\tbufferbuilder.vertex(x8, y8, 0).color(fc4 >> 16 & 0xFF, fc4 >> 8 & 0xFF, fc4 & 0xFF, fc4 >> 24 & 0xFF).endVertex();\n\n\t\ttessellator.draw();\n\t\tRenderSystem.shadeModel(GL11.GL_FLAT);\n\t\tRenderSystem.disableBlend();\n\t\tRenderSystem.enableAlphaTest();\n\t\tRenderSystem.enableTexture();\n\t}",
"public static String makeShapeA() {\n\tString result = \"\";\n\t\tfor (int i = 0; i < 8 ; i++) {\n\t\t\tresult+=printHash(i);\n\t\t\t\n\t\t}return result;\n\t\t\t//System.out.println(printHash(i));\n\t\t}",
"int expand();",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"private void traversePath()\n\t{\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.right(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t\trobot.forward(50);\n\t\trobot.left(90);\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"@Override\r\n\tpublic double perimeter() {\n\t\treturn 2*length*breadth;\r\n\t}",
"String directsTo();",
"int depth();",
"int depth();",
"int getWidth1();",
"public int upright();",
"public abstract int getSpotsNeeded();",
"public void stg() {\n\n\t}",
"int getR();",
"public String getRingback();",
"int fi(int x, int y) {\n\t\treturn (x + 1) + (width + 2) * (y + 1);\n\t}",
"double getWidth();",
"double getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();"
] |
[
"0.55419606",
"0.5447018",
"0.5228543",
"0.5212609",
"0.51105833",
"0.5096667",
"0.5061987",
"0.5037592",
"0.5035494",
"0.5014215",
"0.5004887",
"0.500345",
"0.49992946",
"0.49972984",
"0.49893183",
"0.49876484",
"0.49807012",
"0.49793923",
"0.49676415",
"0.4957394",
"0.4915404",
"0.49039543",
"0.4896913",
"0.48821047",
"0.48612353",
"0.48466957",
"0.48394108",
"0.48290768",
"0.482274",
"0.48216015",
"0.4819541",
"0.48192054",
"0.48137245",
"0.4809637",
"0.48064172",
"0.4805224",
"0.48037797",
"0.47953123",
"0.47851902",
"0.4785037",
"0.4781077",
"0.477311",
"0.47624525",
"0.4761931",
"0.47614706",
"0.4759969",
"0.47577533",
"0.47537705",
"0.47502214",
"0.474966",
"0.47490707",
"0.47489405",
"0.47478864",
"0.47466055",
"0.47425178",
"0.47386616",
"0.4732027",
"0.47299176",
"0.47277328",
"0.47269693",
"0.4726648",
"0.47264412",
"0.47216418",
"0.4720243",
"0.47200102",
"0.4718447",
"0.4716921",
"0.47140503",
"0.47119984",
"0.47062564",
"0.4701428",
"0.4700817",
"0.4700817",
"0.4698169",
"0.46967527",
"0.46934563",
"0.46915057",
"0.46822938",
"0.4681151",
"0.46781754",
"0.4676572",
"0.46754834",
"0.46743223",
"0.46720433",
"0.4670818",
"0.4670818",
"0.46654537",
"0.4662364",
"0.46589658",
"0.4656665",
"0.46548778",
"0.46531248",
"0.46529844",
"0.46527243",
"0.46527243",
"0.46525708",
"0.46525708",
"0.46525708",
"0.46525708",
"0.46525708",
"0.46525708"
] |
0.0
|
-1
|
/ / / / / / / / / / / / /
|
private static KerberosTicket getTgt(GSSCaller paramGSSCaller, Krb5NameElement paramKrb5NameElement, int paramInt) throws GSSException {
/* */ final String clientPrincipal;
/* 360 */ if (paramKrb5NameElement != null) {
/* 361 */ str = paramKrb5NameElement.getKrb5PrincipalName().getName();
/* */ } else {
/* 363 */ str = null;
/* */ }
/* */
/* 366 */ final AccessControlContext acc = AccessController.getContext();
/* */
/* */ try {
/* 369 */ final GSSCaller realCaller = (paramGSSCaller == GSSCaller.CALLER_UNKNOWN) ? GSSCaller.CALLER_INITIATE : paramGSSCaller;
/* */
/* */
/* 372 */ return AccessController.<KerberosTicket>doPrivileged(new PrivilegedExceptionAction<KerberosTicket>()
/* */ {
/* */
/* */ public KerberosTicket run() throws Exception
/* */ {
/* 377 */ return Krb5Util.getInitialTicket(realCaller, clientPrincipal, acc);
/* */ }
/* */ });
/* */ }
/* 381 */ catch (PrivilegedActionException privilegedActionException) {
/* */
/* */
/* */
/* 385 */ GSSException gSSException = new GSSException(13, -1, "Attempt to obtain new INITIATE credentials failed! (" + privilegedActionException.getMessage() + ")");
/* 386 */ gSSException.initCause(privilegedActionException.getException());
/* 387 */ throw gSSException;
/* */ }
/* */ }
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"private int parent(int i){return (i-1)/2;}",
"private int leftChild(int i){return 2*i+1;}",
"private int rightChild(int i){return 2*i+2;}",
"public void divide() {\n\t\t\n\t}",
"int getWidth() {return width;}",
"double passer();",
"public abstract void bepaalGrootte();",
"private double[] getExtents(){\n return new double[] { -90, -180, 90, 180 };\n }",
"public Integer getWidth(){return this.width;}",
"public double getWidth() {\n return this.size * 2.0; \n }",
"int width();",
"public void getTile_B8();",
"public double getWidth() {\n return this.left.getLeft(0) - this.right.getRight(0); \n }",
"private static Object[] newPath(int length, Object[] leaf) {\n Object[] node = leaf;\n for (int i = 0; i < length; i += 5) {\n node = new Object[] { node };\n }\n return node;\n }",
"public void gored() {\n\t\t\n\t}",
"public void zeichneQuadrate(){\n for (int i=0; i<10;i++)\n rect (50+i*25,50,25,25);\n }",
"public String ring();",
"public static void bottomHalf() {\n\n for(int i = 1; i <= SIZE; i++) {\n for(int j = 1; j <= i - 1; j++) {\n System.out.print(\" \");\n }\n \n\t System.out.print(\"\\\\_\");\n\t for(int j = 3*SIZE-i; j >= i; j--) {\n\t System.out.print(\"/\\\\\");\n\t }\n\t System.out.println(\"_/\");\n }\n }",
"laptop(){\r\n length= 0 ;\r\n weight = 0;\r\n height = 0;\r\n width = 0;\r\n }",
"@Override\n public double getPerimiter() {\n return 4 * width;\n }",
"public String toString(){ return \"DIV\";}",
"static int getNumPatterns() { return 64; }",
"private int leftChild(int index){\n\t\treturn (2*index) +1;\n\t}",
"public int getEdgeCount() \n {\n return 3;\n }",
"public double getWidth() { return _width<0? -_width : _width; }",
"long getWidth();",
"@Override\n protected int mapSize() {\n return left.size()+right.size()-hidden.size();\n }",
"public int getWidth() {\r\n\treturn this.width;\r\n}",
"public abstract String division();",
"int getTribeSize();",
"double getNewWidth();",
"public int my_leaf_count();",
"private int get_right_child(int index){\r\n return 2 * index + 2;\r\n }",
"public int generateRoshambo(){\n ;]\n\n }",
"void mo33732Px();",
"@Override\n public void bfs() {\n\n }",
"double seBlesser();",
"private void traverseBayeredPatternHalfSizeRGB(){\n int originalPositionX = 0;\n int originalPositionY = 1;\n\n for (int newX = 0; originalPositionX < originalImageHeight -1; newX++){\n for (int newY = 0; originalPositionY < originalImageWidth -1; newY++){\n Point newPosition = new Point(newX,newY);\n int newAbsoultPosition = getAbsolutPixelPosition(newPosition, originalImageHeight / 2, originalImageWidth / 2);\n halfSizePixRGB[newAbsoultPosition] = getAverageRGB(new Point(originalPositionX,originalPositionY));\n originalPositionY += 2;\n }\n originalPositionY = 0;\n originalPositionX += 2;\n }\n }",
"public static void sizePathCompression(){\n\t\tint n = 10;\t\n\n\t\tdsf S = new dsf(n*n);\n\t\tMaze five = new Maze(n);\n\n\t\tRandom random;\n\t\tint sets = n*n;\t//number of sets in the DSF\n\t\tint randomNumber;\n\t\tint randomDirection;\n\t\tint row;\n\t\tint col;\n\n\t\tchar upperRight; \t//bottom or right\n\n\t\tS.print();\n\n\t\twhile(sets > 1){\n\t\t\trandom = new Random();\n\t\t\trandomNumber = random.nextInt((n*n) - 1);\n\t\t\t//System.out.println(\"RANDOM NUMBER: \"+randomNumber);\n\t\t\trow = randomNumber /n;\t//SWITCHED\n\t\t\tcol = randomNumber %n;\t//SWITCHED\n\t\t\trandomDirection = random.nextInt(2);\n\t\t\tString direct;\n\t\t\tif(randomDirection == 0)\n\t\t\t\tdirect = \"upper\";\n\t\t\telse\n\t\t\t\tdirect = \"right\";\n\t\t\t//System.out.println(\"RANDOM DIRECTI0N: \"+direct);\n\t\t\tupperRight = five.direction(randomDirection);\n\n\t\t\tif(upperRight == 'u'){\n\t\t\t\tif((randomNumber) < ((n*n)-n)){\n\t\t\t\t\tSystem.out.println(\"Sets: \"+sets);\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber + n)){\n\t\t\t\t\t\tS.unionBySize(randomNumber+n, randomNumber);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'u');\n\t\t\t\t\t\t//S.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(upperRight == 'r'){\n\t\t\t\tif(((randomNumber)%(n*n)) != n-1){\n\t\t\t\t\tif(S.findAndCompress(randomNumber) != S.findAndCompress(randomNumber+1)){\n\t\t\t\t\t\tS.unionBySize(randomNumber, randomNumber+1);\n\t\t\t\t\t\tfive.remove_wall(col, row, 'r');\n\t\t\t\t\t\tS.print();\n\t\t\t\t\t\tsets--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tbuildAdjacencyList(five, n);\n\t\tuserSelection_SolveMaze(n);\n\n\t\tStdDraw.show(0);\n\t\tfive.draw();\n\t\tfive.printCellNumbers();\t\n\t}",
"@Override\n\tpublic float getWidth() {\n\t\treturn 26;\n\t}",
"public static int size_parent() {\n return (8 / 8);\n }",
"@Override\npublic void processDirection() {\n\t\n}",
"public abstract int getSpotsNeeded();",
"protected boolean\nshouldCompactPathLists()\n//\n////////////////////////////////////////////////////////////////////////\n{\n return true;\n}",
"protected int getWidth()\n\t{\n\t\treturn 0;\n\t}",
"public double getWidth() {\n return this.getRight(this.tree.getRight(0)) - this.getLeft(this.tree.getLeft(0)); \n }",
"public int getWidth(){\n return width;\n }",
"public void leerPlanesDietas();",
"@Override\n public String toString()\n {\n\treturn getClass().getSimpleName() + \" (\" + getLength() + \"x\" + getWidth() + \")\";\n }",
"private int get_left_child(int index){\r\n return 2 * index + 1;\r\n }",
"public void skystonePos4() {\n }",
"double volume(){\n return width*height*depth;\n }",
"Operations operations();",
"int expand();",
"public String getRing();",
"public double getPerimiter(){return (2*height +2*width);}",
"public abstract double getBaseWidth();",
"int[] union(int s1,int t1,int s2,int t2)\r\n\t{\r\n\t\tint [] st=new int[2];\r\n\t\t//Please fill in the program here\r\n\t\tst[0] = incCapacity();\r\n\t\taddEdge(st[0], epssymbol, s1);\r\n\t\taddEdge(st[0], epssymbol, s2);\r\n\t\tst[1] = incCapacity();\r\n\t\taddEdge(t1, epssymbol, st[1]);\r\n\t\taddEdge(t2, epssymbol, st[1]);\r\n\r\n\t\treturn st;\r\n\t}",
"long getMid();",
"long getMid();",
"public int getBlockLength()\r\n/* 45: */ {\r\n/* 46:107 */ return -32;\r\n/* 47: */ }",
"int getSpriteArraySize();",
"private int get_parent(int index){\r\n return (index-1)/2;\r\n }",
"public static void main(String[] args) {\n\t\tScanner obj=new Scanner(System.in);\r\n\t\tint a=0;\r\n\t\tint count=0;\r\n System.out.println(\"enter size\");\r\n\t\ta=obj.nextInt();\r\n\t\tint m=2*a+1;\r\n\t\tint n=2*a+2;\r\n\t\tint mid=(m+1)/2;\r\n\t\tfor(int i=1;i<=m;i++)\r\n\t\t{\r\n\t\t\tcount=0;\r\n\t\t\tfor(int j=1;j<=n;j++)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t\tif((i==1)||(i==m)||(j==1)||(j==n))//frame begin\r\n\t\t\t\t{\r\n\t\t\t\t\tif((i==1)||(i==m))\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif((j==1)||(j==n))\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"+\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\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\tif((j==1)||(j==n))\r\n\t {\r\n\t\t\t\t\t\t\tSystem.out.print(\"|\");//frame left and right\r\n\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//frame end\r\n\t\t\t\telse if (i<mid)//upper-half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t for(int l=1;l<=2*i-4;l++)\r\n\t\t\t\t {\r\n\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t System.out.print(\"=\");\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.print(\"-\");\r\n\t\t\t\t\t }\r\n\t\t\t\t }\r\n\t\t\t\tSystem.out.print(\"\\\\\");\r\n\t\t\t\t for(int k=mid;k>i;k--)\r\n\t\t\t\t {\r\n\t\t\t\t\t System.out.print(\" \");\r\n\t\t\t\t }\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end of upper half\r\n\t\t\t\telse if(i>mid)//lower half\r\n\t\t\t\t{\r\n\t\t\t\t\tif(count<=2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\tfor(int k=mid;k<i;k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t System.out.print(\"\\\\\");\r\n\t\t\t\t\t for(int l=2*m-6;l>2*i-4;l--)\r\n\t\t\t\t\t {\r\n\t\t\t\t\t\t if(i%2==0)\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"=\");\r\n\t\t\t\t\t\t }\r\n\t\t\t\t\t\t else\r\n\t\t\t\t\t\t {\r\n\t\t\t\t\t\t\t System.out.print(\"-\");\r\n\t\t\t\t\t\t } \r\n\t\t\t\t\t }\r\n\t\t\t\t\t System.out.print(\"/\");\r\n\t\t\t\t\t for(int k=mid;k<i;k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\" \");\r\n\t\t\t\t\t\t}\r\n\t\t\t }\r\n\t\t\t\t\t}//end of lower half\r\n\t\t\t\telse if(i==mid)//middle part\r\n\t\t\t\t{\r\n\t\t\t\t\tif(j==2)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\"<\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(j==n-1)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tSystem.out.print(\">\");\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\tif(i%2==0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"=\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tSystem.out.print(\"-\");\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}//end\r\n\t\t\t}//end-of-j\r\n\t\t\tSystem.out.println();\r\n\t\t}//end\r\n\r\n\t}",
"@Override\r\n\tpublic int getWidth() {\n\t\treturn 0;\r\n\t}",
"public int getWidth()\n {return width;}",
"public void lowerFlatbed(){\n flatbed.lowerFlatbed();\n }",
"protected int parent(int i) { return (i - 1) / 2; }",
"@Override\r\n\tpublic void walk() {\n\r\n\t}",
"int depth();",
"int depth();",
"private byte r() {\r\n\t\treturn (left_map == 0 ) ? (byte) 1 : 0;\r\n\t}",
"Parallelogram(){\n length = width = height = 0;\n }",
"String directsTo();",
"static void pyramid(){\n\t}",
"private void e()\r\n/* 273: */ {\r\n/* 274:278 */ this.r = false;\r\n/* 275:279 */ this.s = false;\r\n/* 276:280 */ this.t = false;\r\n/* 277:281 */ this.u = false;\r\n/* 278:282 */ this.v = false;\r\n/* 279: */ }",
"@Override\n\tpublic int taille() {\n\t\treturn 1;\n\t}",
"public static int size_parentId() {\n return (16 / 8);\n }",
"public String getRingback();",
"@Override\n\tprotected void interr() {\n\t}",
"public int getTakeSpace() {\n return 0;\n }",
"double Volume(){\r\n return Height * Width * Depth;\r\n }",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"int getWidth();",
"public void SubRect(){\n\t\n}",
"int getSize ();"
] |
[
"0.5511054",
"0.54129165",
"0.51372945",
"0.511903",
"0.50692093",
"0.50639486",
"0.50610137",
"0.5056326",
"0.50562686",
"0.5020084",
"0.5008243",
"0.50073624",
"0.4987515",
"0.4968476",
"0.49637726",
"0.4947741",
"0.49458793",
"0.49450463",
"0.49411407",
"0.49279913",
"0.49277878",
"0.49158895",
"0.48975217",
"0.48964083",
"0.48767284",
"0.48669547",
"0.48635495",
"0.48618066",
"0.48576608",
"0.4856925",
"0.48542222",
"0.48423737",
"0.4839587",
"0.4830312",
"0.48292938",
"0.48263526",
"0.48156425",
"0.47996923",
"0.4796672",
"0.47879413",
"0.47863764",
"0.47850114",
"0.4778385",
"0.47781238",
"0.47776836",
"0.4771643",
"0.47684032",
"0.47672895",
"0.47666818",
"0.4758426",
"0.47530028",
"0.47502044",
"0.47472006",
"0.4746553",
"0.47457492",
"0.4745068",
"0.47432235",
"0.4740544",
"0.47390717",
"0.47390717",
"0.47385663",
"0.47381902",
"0.47246012",
"0.47205526",
"0.47205183",
"0.47146785",
"0.4708258",
"0.4706045",
"0.4700609",
"0.46998185",
"0.46998185",
"0.4690684",
"0.4689533",
"0.46882144",
"0.4687289",
"0.468664",
"0.46853065",
"0.46813402",
"0.4680788",
"0.46798423",
"0.4677018",
"0.46720538",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46706718",
"0.46689597",
"0.4666849"
] |
0.0
|
-1
|
Retrieve a Datastream instance by pid and dsid
|
Datastream findOrCreateDatastream(Session session, String path);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List<String> listDatastreams(String pid) throws FedoraException, IOException {\r\n GetMethod get = new GetMethod(this.fedoraBaseUrl + \"/objects/\" + pid + \"/datastreams?format=xml\");\r\n try {\r\n client.executeMethod(get);\r\n try {\r\n InputStream is = get.getResponseBodyAsStream();\r\n Document dsDoc = null;\r\n try {\r\n DocumentBuilder parser = getDocumentBuilder();\r\n synchronized (parser) {\r\n dsDoc = parser.parse(is);\r\n }\r\n } finally {\r\n is.close();\r\n }\r\n NodeList elements = dsDoc.getDocumentElement().getChildNodes();\r\n List<String> dsNames = new ArrayList<String>(elements.getLength());\r\n for (int i = 0; i < elements.getLength(); i ++) {\r\n if (elements.item(i) instanceof Element) {\r\n Element el = (Element) elements.item(i);\r\n if (el.getNodeName().equals(\"datastream\")) {\r\n dsNames.add(el.getAttribute(\"dsid\"));\r\n }\r\n }\r\n }\r\n return dsNames;\r\n } catch (SAXException ex) {\r\n throw new FedoraResponseParsingException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraResponseParsingException(ex);\r\n }\r\n } finally {\r\n get.releaseConnection();\r\n }\r\n }",
"public boolean hasDatastream(String pid, String dsName) throws IOException, FedoraException {\r\n GetMethod get = new GetMethod(this.fedoraBaseUrl + \"/objects/\" + pid + \"/datastreams?format=xml\");\r\n try {\r\n client.executeMethod(get);\r\n InputStream is = get.getResponseBodyAsStream();\r\n boolean hasDs = (readStream(is, get.getResponseCharSet()).indexOf(\"dsid=\\\"\" + dsName + \"\\\"\") != -1);\r\n is.close();\r\n return hasDs;\r\n } finally {\r\n get.releaseConnection();\r\n }\r\n }",
"public String getDatastreamProperty(String pid, String dsName, DatastreamProfile.DatastreamProperty prop) throws HttpException, IOException, SAXException, ParserConfigurationException, FedoraException, XPathExpressionException {\r\n String url = this.fedoraBaseUrl + \"/objects/\" + pid + \"/datastreams/\" + dsName + \"?format=xml\";\r\n GetMethod get = new GetMethod(url);\r\n try {\r\n client.executeMethod(get);\r\n if (get.getStatusCode() == 200) {\r\n InputStream is = get.getResponseBodyAsStream();\r\n Document xml = null;\r\n DocumentBuilder parser = getDocumentBuilder();\r\n try {\r\n synchronized (parser) {\r\n xml = parser.parse(is);\r\n }\r\n } finally {\r\n is.close();\r\n }\r\n \r\n // compatible with fedora 3.4\r\n String value = (String) this.getXPath().evaluate(\"/fedora-management:datastreamProfile/fedora-management:\" + prop.getPropertyName(), xml, XPathConstants.STRING);\r\n if (value != null) {\r\n return value;\r\n } else {\r\n // compatible with fedora 3.2\r\n return (String) this.getXPath().evaluate(\"/datastreamProfile/\" + prop.getPropertyName(), xml, XPathConstants.STRING);\r\n }\r\n \r\n } else {\r\n throw new FedoraException(\"REST action \\\"\" + url + \"\\\" failed: \" + get.getStatusLine());\r\n }\r\n } finally {\r\n get.releaseConnection();\r\n }\r\n }",
"@Override\n public Optional<SensingDevice> findByIdWithObservationsFromDatastreamOnly(String deviceId, Datastream datastream) {\n return null;\n }",
"public Stream getStream(String streamId) {\n\t\tserverLock.lock();\n\t\ttry {\n\t\t\twhile (lookupStreamIds.contains(streamId)) {\n\t\t\t\t// Another thread is looking up this stream - wait for them to get back\n\t\t\t\ttry {\n\t\t\t\t\treturnedFromServer.await();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tStream s = getRobonobo().getDbService().getStream(streamId);\n\t\t\tif (s != null)\n\t\t\t\treturn s;\n\n\t\t\tlookupStreamIds.add(streamId);\n\t\t} finally {\n\t\t\tserverLock.unlock();\n\t\t}\n\n\t\ttry {\n\t\t\tString streamUrl = metadataServer.getStreamUrl(streamId);\n\t\t\ttry {\n\t\t\t\tStreamMsg.Builder sb = StreamMsg.newBuilder();\n\t\t\t\tgetRobonobo().getSerializationManager().getObjectFromUrl(sb, streamUrl);\n\t\t\t\tStream s = new Stream(sb.build());\n\t\t\t\tgetRobonobo().getDbService().putStream(s);\n\t\t\t\treturn s;\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RobonoboException(e);\n\t\t\t} finally {\n\t\t\t\tserverLock.lock();\n\t\t\t\tlookupStreamIds.remove(streamId);\n\t\t\t\treturnedFromServer.signalAll();\n\t\t\t\tserverLock.unlock();\n\t\t\t}\n\t\t} catch (RobonoboException e) {\n\t\t\tlog.error(\"Exception getting stream\", e);\n\t\t\treturn null;\n\t\t}\n\t}",
"DataStreamApi getDataStreamApi();",
"public static DataGrabber getInstance(String conexusID) {\n Bundle args = new Bundle();\n args.putString(ID_KEY, conexusID);\n\n DataGrabber grabber = new DataGrabber();\n grabber.setArguments(args);\n return grabber;\n }",
"public Map<String, String> getDeviceInfo(String dpidStr)\n\t\t\tthrows DPIDNotFound;",
"public DcSquadDO loadById(long id) throws DataAccessException;",
"@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}",
"OutputStream read(String id);",
"public static FlowMap getSubFlowMap(long dpid) {\n\t\t// assumes that new OFMatch() matches everything\n\t\tsynchronized (FVConfig.class) {\n\t\t\treturn FlowSpaceUtil.getSubFlowMap(FVConfig.getFlowSpaceFlowMap(),\n\t\t\t\t\tdpid, new OFMatch());\n\t\t}\n\t}",
"public Patient getPatientByID(int pid) {\r\n\t\tPatient patient=null;\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients WHERE id = ? \";\r\n\t\t\tPreparedStatement pStatement= super.getConnection().prepareStatement(query);\r\n\t\t\tpStatement.setInt(1, pid);\r\n\t\t\tResultSet results= pStatement.executeQuery();\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\t//Patient table\r\n\t\t\t\tint idPatient= results.getInt(1);\r\n\t\t\t\tString fname= results.getString(2);\r\n\t\t\t\tString lname= results.getString(3);\r\n\t\t\t\tString gender= results.getString(4);\r\n\t\t\t\tint age= results.getInt(5);\r\n\t\t\t\tString phone= results.getString(6);\r\n\t\t\t\tString villege= results.getString(7);\r\n\t\t\t\tString commune= results.getString(8);\r\n\t\t\t\tString city= results.getString(9);\r\n\t\t\t\tString province= results.getString(10);\r\n\t\t\t\tString country= results.getString(11);\r\n\t\t\t\tAddress address= new Address(villege, commune, city, province, country);\r\n\t\t\t\tString type= results.getString(12);\r\n\t\t\t\t\r\n\t\t\t\tpatient= new Patient(idPatient, fname, lname, gender, age, phone, address, type);\r\n\t\t\t\tSystem.out.println(\"Get Patients succeed From DatabasePatient\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\t\r\n\t\treturn patient;\r\n\t}",
"public Patient getPatientByPatientId(long pid) throws PatientExn {\n\t\tTypedQuery<Patient> query = \n\t\t\t\tem.createNamedQuery(\"SearchPatientByPatientID\", Patient.class)\n\t\t\t\t.setParameter(\"pid\", pihhd);\n\t\tList<Patient> patients = query.getResultList();\n\t\tif(patients.size() > 1)\n\t\t\tthrow new PatientExn(\"Duplicate patient records: patient id = \" +pid);\n\t\telse if (patients.size() < 1)\n\t\t\tthrow new PatientExn(\"Patient not found: patient id = \" +pid);\n\t\telse {\n\t\t\tPatient p = patients.get(0);\n\t\t\tp.setTreatmentDAO(this.treatmentDAO);\n\t\t\treturn p;\n\t\t}\n\t}",
"DataStreams createDataStreams();",
"public Session findSession(String id) throws IOException;",
"T read(int id);",
"T read(int id);",
"@GET\n @Path(\"get/{id}\")\n @Produces(\"application/xml\")\n public SEHRDataObject getSEHRDataObject(@PathParam(\"id\") int id) {\n //TODO return proper object, selcted by a list the client receives before\n //throw new UnsupportedOperationException();\n SEHRDataObjectTxHandler sdoTxHandler = SEHRDataObjectTxHandler.getInstance();\n SEHRDataObject sdo = sdoTxHandler.getSDO(id);\n //SEHRDataObject sdo = new SEHRDataObject();\n //sdo.setObjID(IDGenerator.generateID());\n return sdo;\n }",
"OutputStream read(String id, OutputStream output);",
"D getById(K id);",
"public abstract I_SessionInfo getSessionByPublicId(long publicSessionId);",
"public Record readRecord(Long id);",
"public SsoAuthDO query(Integer id) throws DataAccessException;",
"public Performer get(String spid) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tMap<String, String> params = new HashMap();\n\t\tparams.put(\"id\", spid);\n\t\t\n\t\tInputStream is = serverCommunication.invokeMethod(PERFORMERS_GET, params);\n\t\t\n\t\tPerformer v = (Performer)unmarshallRequest(Performer.class, is);\n\t\t\n\t\treturn v;\n\t}",
"@Override\n public SharingProduct getSharingProduct(int PID, String email) {\n \n SharingProduct sharingProduct = null;\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n ResultSet result = null;\n \n try {\n connection = MySQLDAOFactory.createConnection();\n preparedStatement = connection.prepareStatement(Read_Query);\n preparedStatement.setString(1, email);\n preparedStatement.setInt(2, PID);\n preparedStatement.execute();\n result = preparedStatement.getResultSet();\n \n while (result.next()) {\n sharingProduct = new SharingProduct(result.getString(1), result.getInt(2) );\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n result.close();\n } catch (Exception rse) {\n rse.printStackTrace();\n }\n try {\n preparedStatement.close();\n } catch (Exception sse) {\n sse.printStackTrace();\n }\n try {\n connection.close();\n } catch (Exception cse) {\n cse.printStackTrace();\n }\n }\n \n return sharingProduct;\n }",
"public synchronized ServerDesc get(short sid) {\n ServerDescEntry tab[] = table;\n int index = (sid & 0x7FFF) % tab.length;\n for (ServerDescEntry e = tab[index] ; e != null ; e = e.next) {\n if (e.desc.sid == sid) return e.desc;\n }\n return null;\n }",
"public DVDDetails getDetails(String dvdID);",
"public Collection<Map<String, String>> getSwitchFlowDB(String dpidstr)\n\t\t\tthrows DPIDNotFound;",
"public abstract StreamUser getStreamUser(String uid);",
"public DcSquadDO loadByName(String squadName) throws DataAccessException;",
"public void setPdid(Long pdid) {\n this.pdid = pdid;\n }",
"Log getHarvestLog(String dsID) throws RepoxException;",
"@GET\n @Path(\"read/{queue}/{msgid}\")\n @Produces(\"application/xml\")\n public SEHRDataObject readMessage(\n @PathParam(\"queue\") String queue,\n @PathParam(\"msgid\") String msgid) {\n ActiveMQConnection amqcon = (ActiveMQConnection) sctx.getAttribute(\"ActiveMQConnection\");\n //SEHRDataObjectTxHandler sdoTxHandler = SEHRDataObjectTxHandler.getInstance();\n SEHRDataObject sdo = new SEHRDataObject();\n try {\n QueueSession sess = amqcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);\n //ActiveMQQueue q = new ActiveMQQueue(queue);\n //QueueBrowser queueBrowser = sess.createBrowser((Queue) q);\n Destination q = sess.createQueue(queue);\n MessageConsumer consumer = sess.createConsumer(q, \"JMSMessageID='\" + msgid + \"'\");\n //get specified message\n amqcon.start();\n Message message = consumer.receiveNoWait();\n if (message == null) {\n Logger.getLogger(SDOTxResource.class.getName()).warning(\"No message wit ID \" + msgid);\n consumer.close();\n sess.close();\n return null;\n }\n if (message instanceof MapMessage) {\n MapMessage mm = (MapMessage) message;\n Map<String, Object> msgProperties = txMsgHeader2SDOHeader(message);\n //'param' is part of data / body...\n //TODO check specification\n Object oParam = mm.getObject(\"param\");\n if (oParam != null) {\n msgProperties.put(\"param\", oParam);\n }\n sdo.setSDOProperties(msgProperties);\n //TODO process data / body / content\n Object oData = mm.getObject(\"data\");\n// if (oData instanceof Map){\n// try {\n// //WebService does not accept a Map\n// byte[] b = DeSerializer.serialize(oData);\n// sdo.setDataobject(b);\n// } catch (ObjectHandlerException ex) {\n// Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex);\n// }\n// }else{\n// sdo.setDataobject(oData);\n// }\n //always serialize...\n try {\n //WebService does not accept some types (like Map)\n byte[] b = DeSerializer.serialize(oData);\n sdo.setDataobject(b);\n } catch (ObjectHandlerException ex) {\n Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex.getMessage());\n }\n //System.out.println(\"Received and marshalled: \" + message.toString());\n Logger.getLogger(SDOTxResource.class.getName()).info(\"Received and marshalled: \" + message.toString());\n } else if (message instanceof ObjectMessage) {\n Logger.getLogger(SDOTxResource.class.getName()).info(\"ObjectMessage received. byte[] transforming of message: \" + message.toString());\n try {\n //WebService does not accept some types (like Map)\n byte[] b = DeSerializer.serialize(((ObjectMessage) message).getObject());\n sdo.setDataobject(b);\n } catch (ObjectHandlerException ex) {\n Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex.getMessage());\n }\n //System.out.println(\"Received but not marshalled, not a MapMessage: \" + message.toString());\n } else if (message instanceof TextMessage) {\n Logger.getLogger(SDOTxResource.class.getName()).info(\"ObjectMessage received. byte[] transforming of message: \" + message.toString());\n sdo.setDataobject(((TextMessage) message).getText());\n } else {\n Logger.getLogger(SDOTxResource.class.getName()).warning(\"No processor for message: \" + message.toString());\n }\n consumer.close();\n sess.close();\n } catch (JMSException ex) {\n Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex.getMessage());\n return null;\n }\n return sdo;\n }",
"public Question getQuestionbyId(int sid,int qid);",
"public Long getPdid() {\n return pdid;\n }",
"@Override\n public PWsdTaskdataDomain findByKey(PWsdTaskdataDomain pWsdTaskdataDomain) {\n return getPersistanceManager().load(getNamespace() + \".findByKey\", pWsdTaskdataDomain);\n }",
"Datastream asDatastream(Node node) throws ResourceTypeException;",
"InternalSession findSession(String id);",
"M getById(Serializable id) throws DataAccessException;",
"public Patient getPatientBySsn(String ssn) {\n Patient pat = null;\n for (int i = 0; i < patients.size(); i++) {\n if (patients.get(i).getSsn().equals(ssn)) {\n pat = patients.get(i);\n }\n }\n return pat;\n }",
"synchronized Session getSession(long id) {\n return (Session) sessionMap.get(id);\n }",
"public Page readPage(PageId pid) {\n // some code goes here\n int offset = pid.pageNumber() * BufferPool.PAGE_SIZE;\n byte[] pageData = new byte[BufferPool.PAGE_SIZE];\n Page page = null;\n try {\n RandomAccessFile accessor = new RandomAccessFile(f, \"r\");\n accessor.seek(offset);\n accessor.read(pageData, 0, BufferPool.PAGE_SIZE);\n page = new HeapPage((HeapPageId) pid, pageData);\n accessor.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return page;\n }",
"Object get(ID id) throws Exception;",
"public DataRecord getQuestionRecord(String questionId)\r\n throws ProcessManagerException {\r\n Question question = getQuestion(questionId);\r\n return new QuestionRecord(question.getQuestionText());\r\n }",
"public FFileInputDO findById(long inputId) throws DataAccessException;",
"public DBFileInfo getStreamInfo(FileState parent, String[] paths, DBDeviceContext dbCtx) {\n\n // Check if the file is in the cache\n\n String streamPath = paths[0] + paths[1] + paths[2]; \n FileState state = getFileState(streamPath, dbCtx, true);\n \n if ( state != null && state.getFileId() != -1) {\n \n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"@@ Cache hit - getStreamInfo() path=\" + streamPath);\n \n // Return the file information\n \n DBFileInfo finfo = (DBFileInfo) state.findAttribute(FileState.FileInformation);\n if ( finfo != null)\n return finfo;\n }\n\n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DBDiskDriver getStreamInfo parent=\" + parent.getPath() + \", stream=\" + paths[2]);\n \n // Get a list of the streams for the parent file\n \n DBFileInfo finfo = null;\n \n try {\n \n // Get the list of streams\n\n StreamInfoList sList = (StreamInfoList) parent.findAttribute(DBStreamList);\n \n if ( sList == null) {\n \n // No cached stream information, get the list from the database\n\n sList = dbCtx.getDBInterface().getStreamsList(parent.getFileId(), DBInterface.StreamAll);\n \n // Cache the information\n \n parent.addAttribute(DBStreamList, sList);\n }\n\n // Find the required stream information\n \n if ( sList != null) {\n \n // Find the required stream information\n \n StreamInfo sInfo = sList.findStream(paths[2]);\n \n // Convert the stream information to file information\n \n if ( sInfo != null) {\n \n // Load the stream information\n \n finfo = new DBFileInfo();\n finfo.setFileId(parent.getFileId());\n \n // Copy the stream information\n \n finfo.setFileName(sInfo.getName());\n finfo.setSize(sInfo.getSize());\n \n // Get the file creation date, or use the current date/time\n\n if ( sInfo.hasCreationDateTime())\n finfo.setCreationDateTime(sInfo.getCreationDateTime());\n \n // Get the modification date, or use the current date/time\n \n if ( sInfo.hasModifyDateTime())\n finfo.setModifyDateTime(sInfo.getModifyDateTime());\n else if ( sInfo.hasCreationDateTime())\n finfo.setModifyDateTime(sInfo.getCreationDateTime());\n \n // Get the last access date, or use the current date/time\n \n if ( sInfo.hasAccessDateTime())\n finfo.setAccessDateTime(sInfo.getAccessDateTime());\n else if ( sInfo.hasCreationDateTime())\n finfo.setAccessDateTime(sInfo.getCreationDateTime());\n }\n }\n }\n catch ( DBException ex) {\n Debug.println(ex);\n finfo = null;\n }\n\n // Set the full path for the file\n \n if ( finfo != null)\n finfo.setFullName(streamPath);\n \n // Update the cached information, if available\n \n if ( state != null && finfo != null) {\n state.addAttribute(FileState.FileInformation, finfo);\n state.setFileStatus( FileStatus.FileExists);\n }\n \n // Return the file information for the stream\n\n return finfo;\n }",
"SerializableState getData(Long id) throws RemoteException;",
"Session get(int id);",
"T readOne(int id);",
"Instance getInstance(String id);",
"@Override\n public Optional<SensingDevice> findByIdWithObservationsFromDatastreamsOnly(String deviceId,\n Collection<Datastream> datastreams) {\n return null;\n }",
"public interface IStreamFactory{\n Closeable getStream(Query q);\n }",
"SIEntry(final Context<BTree, BTreeLeaf> context, java.nio.ByteBuffer stream)\n\t\tthrows\n\t\t\tjava.io.IOException\n\t\t{\n\t\t\tDataContainer dc = new DataContainer();\n\t\t\tdc.read(stream, context.unicode() ? unicode_fields : ansi_fields);\n\n\t\t\tnid = (NID)dc.get(nm_nid);\n\t\t\tbid = (BID)dc.get(nm_bid);\n\t\t}",
"ScheduleTasks getScheduledHarvestingSessions(String dsID) throws RepoxException;",
"public Object get(Class cl, Serializable id) throws HibException;",
"public static DataOutputStream getData(OutputStream out) {\n return new DataOutputStream(get(out));\n }",
"public static SiteSMD findById (Session session, long id)\n {\n SiteSMD out = (SiteSMD) session.createCriteria (SiteSMD.class).add (Restrictions.eq (\"id\", id)).uniqueResult ();\n return out;\n }",
"public StreamDefinition getStreamDefinitionFromStore(Credentials credentials, String streamId) {\n try {\n return StreamDefnCache.getStreamDefinition(credentials, streamId);\n } catch (ExecutionException e) {\n return null;\n }\n }",
"@Override\n\tpublic RecordableRecord findRecordableRecordByPid(String id) {\n\t\treturn recordableRecordRepository.findRecordableRecordByPid(id);\n\t}",
"public SDOInterface _createSDOProcObject(String procName)\n throws Open4GLException\n {\n return (m_QuarixProgressOOConnectorImpl._createSDOProcObject(procName));\n }",
"public boolean wasDatastreamChanged(String dsId);",
"private ParseInterface getParser(String sid) {\n if (parseMap.containsKey(sid)) {\n return parseMap.get(sid);\n } else {\n Log.d(TAG, \"Could not instantiate \" + sid + \"parser\");\n }\n return null;\n }",
"public Survey getSurveybySid(int sid);",
"private DataOutputStream getDataStream(int keyLength)\n throws IOException {\n // Resize array if necessary\n if (dataStreams.length <= keyLength) {\n var copyOfDataStreams = Arrays.copyOf(dataStreams, keyLength + 1);\n Arrays.fill(dataStreams, null);\n dataStreams = null;\n dataStreams = copyOfDataStreams;\n dataFiles = Arrays.copyOf(dataFiles, keyLength + 1);\n }\n\n DataOutputStream dos = dataStreams[keyLength];\n if (dos == null) {\n File file = new File(tempFolder, \"data\" + keyLength + \".dat\");\n file.deleteOnExit();\n dataFiles[keyLength] = file;\n\n dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(file)));\n dataStreams[keyLength] = dos;\n\n // Write one byte so the zero offset is reserved\n dos.writeByte(0);\n }\n return dos;\n }",
"@Override\n\tpublic Subject get(Session sess, int id) {\n\t\treturn (Subject) sess.load(Subject.class, id);\n\t}",
"public static Map<String, Object> read(String sid, InetAddress address, int port, int timeout)\n throws IOException {\n Map<String, Object> message = new LinkedHashMap<>();\n message.put(\"cmd\", \"read\");\n message.put(\"sid\", sid);\n SocketAddress remote = new InetSocketAddress(address, port);\n return unicast(message, remote, timeout);\n }",
"public Request<LogStream> get(String logStreamId) {\n Asserts.assertNotNull(logStreamId, \"log stream id\");\n\n String url = baseUrl\n .newBuilder()\n .addPathSegments(LOG_STREAMS_PATH)\n .addPathSegment(logStreamId)\n .build()\n .toString();\n\n CustomRequest<LogStream> request = new CustomRequest<>(client, url, \"GET\", new TypeReference<LogStream>() {\n });\n request.addHeader(AUTHORIZATION_HEADER, \"Bearer \" + apiToken);\n return request;\n }",
"public PoBean getPoById(int pid) throws Exception {\n String query = \"SELECT * FROM PO WHERE id = ?\";\n try (\n Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query)) {\n p.setInt(1, pid);\n ResultSet r = p.executeQuery();\n PoBean po = null;\n if (r.next()) {\n int id = r.getInt(\"id\");\n PoBean.Status status = PoBean.Status.getStatus(r.getString(\"status\"));\n int addressId = r.getInt(\"address\");\n int uid = r.getInt(\"uid\");\n AddressDAO addressDAO = new AddressDAO();\n UserDAO userDAO = new UserDAO();\n po = new PoBean(id, userDAO.getUserById(uid), status, addressDAO.getAddressById(addressId));\n }\n r.close();\n p.close();\n con.close();\n return po;\n }\n }",
"public abstract long getSdiId();",
"private Sink getSink(int node_id, int dvn) {\n\n\t\t// address of Mote\n\t\tString addr = new MoteAddrStrategy().execute(new int[] { node_id }, 0);\n\t\treturn dao.getSinkDAO().mergeSink(addr, dvn);\n\n\t}",
"public EscherRecord findFirstWithId(short id) {\n \treturn findFirstWithId(id, getEscherRecords());\n }",
"@Override\r\n\tpublic Policy getById(Integer pid) {\n\t\tPolicy policy =dao.getById(pid);\r\n return policy;\r\n\t}",
"public StreamInfo getStreamInformation(SrvSession sess, TreeConnection tree, StreamInfo streamInfo)\n throws IOException {\n\n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"### getStreamInformation() called ###\");\n \n // TODO Auto-generated method stub\n return null;\n }",
"public Page readPage(PageId pid) {\n // some code goes here\n \t\n \tHeapPage pg = null;\n \tbyte[] pageBytes = new byte[BufferPool.PAGE_SIZE];\n \t\n \ttry {\n\t \tRandomAccessFile raf = new RandomAccessFile(m_f, \"r\");\n\t \traf.seek(pid.pageNumber() * BufferPool.PAGE_SIZE);\n\t \traf.read(pageBytes, 0, BufferPool.PAGE_SIZE);\n\t \traf.close();\n\t \tpg = new HeapPage((HeapPageId) pid, pageBytes);\n \t} catch (IOException e){\n \t\te.printStackTrace();\n \t}\n \t\n \treturn pg;\n }",
"@SuppressWarnings(\"unchecked\")\r\n public DomainObject getRecordByPrimaryKey(KeyType id) {\r\n Session session = getSession();\r\n try {\r\n return (DomainObject) session.get(getPersistentClass(), id);\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getRecordByPrimaryKey Method:\" + e, e);\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n }",
"public VinDevices getDevice(String id_device)\n\t\t{\n\t\t\tList<?> dataAux;\n\t\t\tVinDevices Arecord = new VinDevices();\n\t\t\ttry{\n\t\t\t\tdataAux =\tthis.getListaBaseTable(\"id_device='\"+id_device+\"'\");\n\t\t\t\tArecord = (VinDevices)dataAux.get(0);\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tdataAux = null;\n\t\t\t}\n\t\t\treturn Arecord;\t\t\t\t\n\t\t\t\n\t\t}",
"public String getStreamId() {\n return this.streamId;\n }",
"@Override\n\tpublic Factory get(Serializable id) {\n\t\treturn mapper.get(id);\n\t}",
"public Data findById(Object id);",
"public SDB getDB(String dbid) throws SqlJetException,IOException {\r\n\t\t//if (getPrimaryDBID().equals(dbid)) return getPrimaryDB();\r\n\t\tSFile db=singleDBHome(dbid);\r\n\t\tif (!db.exists()) return null;\r\n\t\tSFile f=db.rel(MAIN_DB);\r\n\t\treturn dbFromFile(f);\r\n\t}",
"E read(K id);",
"public So_cdVO getById(String so_cd);",
"public final double get\r\n ( DataID dID // input\r\n )\r\n {\r\n return dataArray[dID.ordinal()];\r\n }",
"synchronized void setDeviceID(String deviceID)\r\n throws IOException {\n if (this.deviceID != null) {\r\n /*\r\n * Just to be on the safe side, make sure #read(Buffer) is not\r\n * currently executing.\r\n */\r\n waitWhileStreamIsBusy();\r\n\r\n if (stream != 0) {\r\n /*\r\n * For the sake of completeness, attempt to stop this instance\r\n * before disconnecting it.\r\n */\r\n if (started) {\r\n try {\r\n stop();\r\n } catch (IOException ioe) {\r\n /*\r\n * The exception should have already been logged by the\r\n * method #stop(). Additionally and as said above, we\r\n * attempted it out of courtesy.\r\n */\r\n }\r\n }\r\n\r\n boolean closed = false;\r\n\r\n try {\r\n Pa.CloseStream(stream);\r\n closed = true;\r\n } catch (PortAudioException pae) {\r\n /*\r\n * The function Pa_CloseStream is not supposed to time out\r\n * under normal execution. However, we have modified it to\r\n * do so under exceptional circumstances on Windows at least\r\n * in order to overcome endless loops related to\r\n * hotplugging. In such a case, presume the native PortAudio\r\n * stream closed in order to maybe avoid a crash at the risk\r\n * of a memory leak.\r\n */\r\n long errorCode = pae.getErrorCode();\r\n\r\n if ((errorCode == Pa.paTimedOut)\r\n || (Pa.HostApiTypeId.paMME.equals(\r\n pae.getHostApiType())\r\n && (errorCode == Pa.MMSYSERR_NODRIVER))) {\r\n closed = true;\r\n }\r\n\r\n if (!closed) {\r\n// logger.error(\r\n// \"Failed to close \" + getClass().getSimpleName(),\r\n// pae);\r\n System.err.println(\"Failed to close \" + getClass().getSimpleName() + pae);\r\n IOException ioe\r\n = new IOException(pae.getLocalizedMessage());\r\n\r\n ioe.initCause(pae);\r\n throw ioe;\r\n }\r\n } finally {\r\n if (closed) {\r\n stream = 0;\r\n\r\n if (inputParameters != 0) {\r\n Pa.StreamParameters_free(inputParameters);\r\n inputParameters = 0;\r\n }\r\n\r\n /*\r\n * Make sure this AbstractPullBufferStream asks its\r\n * DataSource for the Format in which it is supposed to\r\n * output audio data the next time it is opened instead\r\n * of using its Format from a previous open.\r\n */\r\n this.format = null;\r\n\r\n if (readIsMalfunctioningSince != NEVER) {\r\n setReadIsMalfunctioning(false);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n this.deviceID = deviceID;\r\n this.started = false;\r\n\r\n // DataSource#connect\r\n if (this.deviceID != null) {\r\n AudioSystem2 audioSystem\r\n = (AudioSystem2) AudioSystem.getAudioSystem(\r\n AudioSystem.LOCATOR_PROTOCOL_PORTAUDIO);\r\n\r\n if (audioSystem != null) {\r\n audioSystem.willOpenStream();\r\n }\r\n try {\r\n connect();\r\n } finally {\r\n if (audioSystem != null) {\r\n audioSystem.didOpenStream();\r\n }\r\n }\r\n }\r\n }",
"public abstract I_SessionInfoProtector getSessionByPubSessionId(\n\t\t\tlong pubSessionId);",
"@Override\n public Optional<Seq> getbyid(int id) {\n \tConnection conn = null;\n \tPreparedStatement pstmt=null;\n \tResultSet rs;\n \tSeq seq=null;\n ProcessesDAO pdao = new ProcessesDAO();\n \ttry {\n \t\tString url = \"jdbc:sqlite:src\\\\database\\\\AT2_Mobile.db\";\n \t\tconn = DriverManager.getConnection(url);\n\t \tpstmt = conn.prepareStatement(\n\t \t \"select * from seq where id =?\");\n\t \t \n\t \tpstmt.setInt(1,id); \n\t\n\t \trs = pstmt.executeQuery();\n\t \twhile (rs.next()) {\n\t \t\tseq = new Seq(rs.getInt(\"id\"), pdao.getbyidentifier(rs.getString(\"identifier\")), rs.getInt(\"seq_number\"));\n\t \t}\n\t \trs.close(); \n\t \tpstmt.close();\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n } finally {\n \ttry {\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n\n }\n return Optional.of(seq);\n }",
"public Data getData(String repository,String id) {\n\n Data result = null;\n\n //Check if the repository is there\n if(doesDataExist(repository,id)){\n //Fetch the data\n result = storage.get(repository).get(id);\n }\n\n return result;\n }",
"public ObjectProfile getObjectProfile(String pid) throws SAXException, IOException, ParserConfigurationException, FedoraException {\r\n String url = fedoraBaseUrl + \"/objects/\" + pid + \"?format=xml\";\r\n GetMethod get = new GetMethod(url);\r\n try {\r\n client.executeMethod(get);\r\n if (get.getStatusCode() == 200) {\r\n InputStream response = get.getResponseBodyAsStream();\r\n Document xml = null;\r\n DocumentBuilder parser = getDocumentBuilder();\r\n synchronized (parser) {\r\n xml = parser.parse(response);\r\n }\r\n response.close();\r\n return new ObjectProfile(xml, getXPath());\r\n } else {\r\n throw new FedoraException(\"REST action \\\"\" + url + \"\\\" failed: \" + get.getStatusLine());\r\n }\r\n } finally {\r\n get.releaseConnection();\r\n }\r\n }",
"public IncomingReport find(Integer id) throws DAOException;",
"protected abstract InputStream openPrivateKeyStream(String id)\n throws FileNotFoundException, KeyStorageException, IOException;",
"@Override\n\tpublic List<StreamDTO> getStreamList() throws DataNotFoundException, DatabaseException {\n\t\tConnection con = DbUtil.getConnection();\n\t\tStudentRegistrationValidationDaoi studentRegistrationValidationDaoi=new StudentRegistrationValidationDaoimpl();\n\t\tList<StreamDTO> sttreamDTOs=studentRegistrationValidationDaoi.getStreamList(con);\n\t\tDbUtil.closeConnection(con);\n\t\treturn sttreamDTOs;\n\t}",
"private Session getSession (String sessionID) {\n\t\tSession session;\n\t\tif (get(sessionID) != null) {\n\t\t\tsession = get(sessionID);\n\t\t} else {\n\t\t\tsession = new Session();\n\t\t\tput(session.getId(), session);\n\t\t}\n\t\treturn session;\n\t}",
"public AsxDataVO findOne(String id) {\n\t\t return (AsxDataVO) mongoTemplate.findOne(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}",
"public static long readStream(final DataInputStream dis, final ByteBuffer towrite, final long byteCount) throws IOException {\n // return readStream(new ByteBufferDiscrim(), dis, towrite, byteCount);\n\n return readStream(dis,\n\n (buf, offset, numBytes) -> towrite.put(buf, offset, numBytes)\n\n , byteCount);\n\n }",
"public InputStream createPullStream(String fname) throws IOException {\n\t\tSocket socket = null;\n\t\ttry {\n\t\t\tsocket = new Socket(host, port);\n\t\t\tInputStream in = socket.getInputStream();\n\t\t\tOutputStream out = socket.getOutputStream();\n\t\t\tDataOutputStream output = new DataOutputStream(socket.getOutputStream());\n\t\t\tProtocolSupport.send(\"host:transport:\" + serial, in, out);\n\n\t\t\tProtocolSupport.send(\"sync:\", in, out);\n\t\t\toutput.writeBytes(\"RECV\");\n\t\t\toutput.writeInt(Integer.reverseBytes(fname.length()));\n\t\t\toutput.writeBytes(fname);\n\t\t\toutput.flush();\n\t\t\treturn new PullStream(in);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\ttry {\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tcatch (IOException e1) {\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t}",
"ExpDataClass getDataClass(@NotNull String lsid);",
"public TSLDataCacheObject getTSLDataCacheObject(long tslDataId) throws TSLManagingException {\n\n\t\ttry {\n\t\t\treturn ConfigurationCacheFacade.tslGetTSLDataCacheObject(tslDataId);\n\t\t} catch (TSLCacheException e) {\n\t\t\tthrow new TSLManagingException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL174, new Object[ ] { tslDataId }), e);\n\t\t}\n\n\t}",
"protected abstract InputStream openCertificateStream(String id)\n throws FileNotFoundException, KeyStorageException, IOException;",
"public DataInputStream openDataInputStream() throws IOException {\n return new DataInputStream(openInputStream());\n }"
] |
[
"0.62165475",
"0.62160414",
"0.60320807",
"0.539478",
"0.53824794",
"0.52641064",
"0.5234551",
"0.51874894",
"0.51774853",
"0.5151651",
"0.5131362",
"0.5122395",
"0.5120488",
"0.5080189",
"0.5075388",
"0.49506474",
"0.49398905",
"0.49398905",
"0.493463",
"0.49260926",
"0.49255964",
"0.48766994",
"0.4860748",
"0.4830677",
"0.48117346",
"0.48103374",
"0.48093447",
"0.47979048",
"0.47915843",
"0.47842282",
"0.475024",
"0.47341692",
"0.47307178",
"0.46844813",
"0.46693307",
"0.4667549",
"0.46552584",
"0.46429607",
"0.4638148",
"0.46307024",
"0.46284863",
"0.46249694",
"0.4607095",
"0.4602713",
"0.46000257",
"0.4592163",
"0.45712504",
"0.4569534",
"0.4568263",
"0.45682022",
"0.4541884",
"0.45416027",
"0.4538325",
"0.4538141",
"0.4520663",
"0.45204023",
"0.4516996",
"0.45163557",
"0.4515116",
"0.45133996",
"0.45109284",
"0.45044765",
"0.44940418",
"0.4490686",
"0.44845963",
"0.44842473",
"0.44763708",
"0.44743276",
"0.4473465",
"0.44725937",
"0.446502",
"0.44564322",
"0.44506544",
"0.44500256",
"0.4449668",
"0.44495732",
"0.44463798",
"0.44450393",
"0.44385627",
"0.44285688",
"0.44196463",
"0.44140136",
"0.44095975",
"0.4404504",
"0.44036418",
"0.4393441",
"0.43906754",
"0.43903202",
"0.43852356",
"0.43849874",
"0.43790242",
"0.43739504",
"0.43689585",
"0.43560576",
"0.43556878",
"0.4352559",
"0.435106",
"0.4350204",
"0.43435165",
"0.43418127"
] |
0.6085309
|
2
|
Retrieve a Binary instance by path
|
FedoraBinary getBinary(Session session, String path);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"byte[] getBinaryVDBResource(String resourcePath) throws Exception;",
"public static Object getObj(String path){\n int index = Integer.parseInt(path.substring(6).split(\"\\\\.\")[0]) % maxBufferSize;\n if (buffer[index] != null && buffer[index].getPath().equals(path)) {\n return buffer[index];\n }\n return deserialize(path);\n }",
"public abstract byte[] getBytes(String path) throws IOException, ClassNotFoundException;",
"public AnnisBinary getBinary(Long id)\r\n \t{\r\n \t\tlogger.debug(\"Looking for binary file with id = \" + id);\r\n \t\t\r\n \t\ttry\r\n \t\t{\r\n \t\t\tExtFileObjectCom extFile= this.getExtFileObj(id);\r\n \t\t\tAnnisBinary aBin= new AnnisBinaryImpl(); \r\n \t\t\t\r\n \t\t\t//Bytes setzen\r\n \t\t\tFile file = extFile.getFile();\r\n \t\t\tlong length = file.length();\r\n \t\t\tFileInputStream fis = new FileInputStream(file);\r\n \t\t\tbyte[] bytes = new byte[(int)length];\r\n \t\t int offset = 0;\r\n \t\t int numRead = 0;\r\n \t\t while (offset < bytes.length\r\n \t\t && (numRead=fis.read(bytes, offset, bytes.length-offset)) >= 0) \r\n \t\t {\r\n \t\t \toffset += numRead;\r\n \t\t }\r\n \t\r\n \t\t \r\n \t\t // Ensure all the bytes have been read in\r\n \t\t if (offset < bytes.length) {\r\n \t\t \tthrow new IOException(\"Could not completely read file \"+file.getName());\r\n \t\t }\r\n \t\t\tfis.close();\r\n \t\t\taBin.setBytes(bytes);\r\n \t\t\taBin.setId(extFile.getID());\r\n \t\t\taBin.setFileName(extFile.getFileName());\r\n \t\t\taBin.setMimeType(extFile.getMime());\r\n \t\t\t\r\n \t\t\treturn(aBin);\r\n \t\t}\r\n \t\tcatch (Exception e)\r\n \t\t{\r\n \t\t\tlogger.error(\"Could not read binary file\", e);\r\n \t\t\tthrow new ExternalFileMgrException(e);\r\n \t\t}\r\n \t}",
"private Object getFile(String path) throws Exception {\t\t\t\n\t\t \n\t\t FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream objectIn = new ObjectInputStream(fileIn);\n\n Object obj = objectIn.readObject();\n objectIn.close();\n \n return obj;\t\t\n\t}",
"public Blob getResource(String relativePath) throws DocumentNotFoundException;",
"private Object readObject(String path)\n throws IOException, ClassNotFoundException {\n InputStream file = new FileInputStream(path);\n InputStream buffer = new BufferedInputStream(file);\n ObjectInput input = new ObjectInputStream(buffer);\n Object inputObj = input.readObject();\n input.close();\n return inputObj;\n }",
"public Object get(String path)\n {\n return DataObjectUtil.get(this, path);\n }",
"@Override\n public Optional<File> getRemappedBinary(String path) {\n if (!SystemInfo.isMac || path.indexOf(File.separatorChar) >= 0) {\n return Optional.empty();\n }\n String shellPath = EnvironmentUtil.getValue(\"PATH\");\n return Optional.ofNullable(\n PathEnvironmentVariableUtil.findInPath(path, shellPath, /* filter= */ null));\n }",
"default Object get(String path) {\n return get(path, null);\n }",
"private static Object deserialize(String path) {\n Object e = null;\n try {\n discAccesses++;\n FileInputStream fileIn = new FileInputStream(path);\n ObjectInputStream in = new ObjectInputStream(fileIn);\n e = in.readObject();\n in.close();\n fileIn.close();\n } catch (IOException | ClassNotFoundException i) {\n throw new Error(\"No serialized object for path \" + path);\n }\n return e;\n }",
"public ExtFileObjectCom getExtFileObj(Long id)\r\n \t{ \r\n \t\tlogger.debug(\"Retrieving binary file with ID = \" + id);\r\n \t\t\r\n \t\tExtFileObjectDAO extFileDao = externalFileMgrDao.getExtFileObj(id);\r\n \t\t\r\n \t\tString branch = extFileDao.getBranch();\r\n \t\tString filename = extFileDao.getFileName();\r\n \t\tString path= this.externalDataFolder + \"/\"+ branch + \"/\"+ filename;\r\n \t\tlogger.debug(\"Binary file: ID = \" + id + \"; branch = \" + branch + \"; filename = \" + filename + \"; path = \" + path);\r\n \t\t\t\t\r\n \t\t//ExtFileObjectCom extFileCom= new ExtFileObjectImpl();\r\n \t\t//extFileCom.setFile(new File(fileSrc));\r\n \t\tExtFileObjectCom extFileCom= new ExtFileObjectImpl(extFileDao, new File(path));\r\n \t\treturn extFileCom; \r\n \t}",
"public Object readObject(String path) throws Exception{\n FileInputStream fis = new FileInputStream(path);\n ObjectInputStream ois = new ObjectInputStream(fis);\n\n return ois.readObject();\n }",
"public static Object load(String path) throws SlickException {\n\t\tObject o = new Object();\n\t\tObjectInputStream inStream;\n\t\ttry {\n\t\t\tinStream = new ObjectInputStream(new FileInputStream(path));\n\t\t\to = inStream.readObject();\n\t\t\tinStream.close();\n\t\t\treturn o;\n\t\t} catch (Exception ex) {\n\t\t\tthrow new SlickException(ex.getMessage(), ex.getCause());\n\t\t}\n\t}",
"public T findByPath(String path) throws DataAccessException;",
"FedoraBinary asBinary(Node node);",
"public byte[] do_get (String pathOnServer) throws RemoteException {\r\n\t\tFile toClient = new File (pathOnServer)\t;\r\n\t\tSystem.out.println(\"Searching file name= \" + pathOnServer);\r\n\t\tbyte[] data = new byte[getFileSize(pathOnServer)];\t\r\n\t\ttry {\r\n\t\t\tif (toClient.exists()) {\r\n\t\t\tFileInputStream fis = new FileInputStream(toClient);\r\n\t\t\tfis.read(data, 0, data.length);\t\r\n\t\t\tfis.close(); \r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"File \" + pathOnServer + \" does not exist.\");\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\r\n\t\treturn data;\r\n\t}",
"@Override\n public GEMFile getFileByAbsolutePath(String absolutePath) {\n return (GEMFile) gemFileDb.get(absolutePath);\n }",
"FileStore getFile(String fileRefId);",
"Blob deserializeBlob(String path) {\n Blob newBlob = null;\n File pathy = new File(path);\n try {\n FileInputStream f = new FileInputStream(pathy);\n ObjectInputStream objn = new ObjectInputStream(f);\n newBlob = (Blob) objn.readObject();\n } catch (IOException e) {\n String msg = \"IOException while loading.\";\n return null;\n } catch (ClassNotFoundException e) {\n String msg = \"ClassNotFoundException while loading myCat.\";\n System.out.println(msg);\n }\n return newBlob;\n\n }",
"public String getMountedObbPath(String rawPath) throws RemoteException;",
"@Override\n\tpublic Object load(String path, Object defaultObject) throws Exception {\n\t\tfinal Object[] object = new Object[1];\n\t\t\n\t\t// Stream\n\t\ttry {\n\t\t\tfinal FileInputStream fis = new FileInputStream(path);\n\t\t\tfinal ObjectInputStream ois = new ObjectInputStream(fis);\n\n\t\t\t// Load an object\n\t\t\tobject[0] = ois.readObject();\n\n\t\t\t// Close stream\n\t\t\tois.close();\n\t\t} catch (FileNotFoundException fileNotFoundException){\n\t\t\t// Assign default object when the file is not found.\n\t\t\tobject[0] = defaultObject;\n\t\t}\n\t\t\n\t\t// Return object\n\t\treturn object[0];\n\t}",
"private static byte[] getFileAsByte(String pathFile) {\n\t\tFile file = new File(pathFile);\n\n\t\ttry {\n\t\t\tFileInputStream fin = new FileInputStream(file);\n\t\t\tbyte fileContent[] = new byte[(int) file.length()];\n\t\t\tfin.read(fileContent);\n\t\t\tfin.close();\n\n\t\t\treturn fileContent;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLOGGER.error(\"File not found: \" + e);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"Exception while reading the file: \" + e);\n\t\t}\n\t\treturn null;\n\t}",
"public String getMountedObbPath(String rawPath) throws RemoteException {\n Parcel _data = Parcel.obtain();\n Parcel _reply = Parcel.obtain();\n String _result;\n try {\n _data.writeInterfaceToken(DESCRIPTOR);\n _data.writeString(rawPath);\n mRemote.transact(Stub.TRANSACTION_getMountedObbPath, _data, _reply, 0);\n _reply.readException();\n _result = _reply.readString();\n } finally {\n _reply.recycle();\n _data.recycle();\n }\n return _result;\n }",
"@JRubyMethod(meta = true, required = 1, optional = 2, compat = RUBY1_9)\n public static IRubyObject binread(ThreadContext context, IRubyObject recv, IRubyObject[] args) {\n IRubyObject nil = context.getRuntime().getNil();\n IRubyObject path = args[0];\n IRubyObject length = nil;\n IRubyObject offset = nil;\n Ruby runtime = context.runtime;\n \n if (args.length > 2) {\n offset = args[2];\n length = args[1];\n } else if (args.length > 1) {\n length = args[1];\n }\n RubyIO file = (RubyIO)RuntimeHelpers.invoke(context, runtime.getFile(), \"new\", path, runtime.newString(\"rb:ASCII-8BIT\"));\n \n try {\n if (!offset.isNil()) file.seek(context, offset);\n return !length.isNil() ? file.read(context, length) : file.read(context);\n } finally {\n file.close();\n }\n }",
"byte[] get(byte[] id) throws RemoteException;",
"File retrieveFile(String absolutePath);",
"public static Object loadFromClassPath(String path) throws SlickException {\n\t\tObject o = new Object();\n\t\tInputStream in = IO_Object.class.getClassLoader().getResourceAsStream(path);\n\t\tObjectInputStream inStream;\n\t\ttry {\n\t\t\tinStream = new ObjectInputStream(in);\n\t\t\to = inStream.readObject();\n\t\t\tinStream.close();\n\t\t\treturn o;\n\t\t} catch (Exception ex) {\n\t\t\tthrow new SlickException(ex.getMessage(), ex.getCause());\n\t\t}\n\t\t\n\t}",
"private byte[] loadByteArrayFromNetwork(String path) {\n\n ByteArrayOutputStream outputStream = null;\n try {\n URL url = new URL(path);\n InputStream inputStream = (InputStream) url.getContent();\n\n outputStream = new ByteArrayOutputStream();\n byte[] buffer = new byte[1024];\n int len = 0;\n while ((len = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, len);\n }\n outputStream.close();\n inputStream.close();\n\n } catch (MalformedURLException e1) {\n e1.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return outputStream != null ? outputStream.toByteArray() : null;\n }",
"SingleDocumentModel loadDocument(Path path);",
"public static Bitmap get(String key) {\n Bitmap bitmap = getFromMemory(key);\n if (bitmap == null) {\n bitmap = getFromDisk(key);\n }\n return bitmap;\n }",
"public static Bitmap getBitmap(String path) {\n Bitmap bitmap = null;\n try {\n Log.i(\"FileManager\", \"GetBitmap: \" + path);\n FileInputStream imgIS = new FileInputStream(new File(path));\n BufferedInputStream bufIS = new BufferedInputStream(imgIS);\n bitmap = BitmapFactory.decodeStream(bufIS);\n Log.i(\"FileManager\", \"GetBitmap Finished: \" + bitmap);\n } catch (FileNotFoundException e) { //catch fileinputstream exceptions\n e.printStackTrace();\n } //trying to get wallpaper from display cycle node\n return bitmap;\n }",
"public Object get(Class cl, Serializable id) throws HibException;",
"public GitFile getFile(String aPath)\n {\n if(aPath.equals(\"/\")) return this;\n String paths[] = aPath.split(\"/\"); GitFile file = this;\n for(int i=0; i<paths.length && file!=null; i++) { String name = paths[i]; if(name.length()==0) continue;\n GitFile files[] = file.getFiles(); file = null;\n for(GitFile f : files)\n if(name.equals(f.getName())) {\n file = f; break; }\n }\n return file;\n }",
"public Instances openARFF(String path)\n\t{\n\t\ttry\n\t\t{\n\t\t\tthis.dataset = new Instances(new BufferedReader(new FileReader(path)));\n\t\t}\n\t\tcatch(IOException ex)\n\t\t{\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t\treturn this.dataset;\n\t}",
"public Object get(String path) {\n if (configuration.contains(path))\n return configuration.get(path);\n else return defaultConfig.get(path);\n }",
"@Override\n public Binary getBinary() throws ValueFormatException, RepositoryException {\n return null;\n }",
"byte[] getFile(String sha) throws Exception;",
"private String getBinaryPath() {\n return System.getProperty(SeLionConstants.WEBDRIVER_GECKO_DRIVER_PROPERTY,\n Config.getConfigProperty(ConfigProperty.SELENIUM_GECKODRIVER_PATH));\n }",
"@Nullable\n public byte[] getFileByteArray(String path) {\n\n try {\n return FileUtils.readFileToByteArray(getFile(path));\n } catch (Exception e) {\n //Eliten.getLogger().warning(\"File not found with path \" + path);\n }\n\n return null;\n }",
"public static FileInputStream returnImageBytes(String path){\n \n try {\n FileInputStream fis = null;\n File file = new File(path);\n fis = new FileInputStream(file);\n return fis;\n } catch (FileNotFoundException ex) {\n logger.appendnewLog(ex.getMessage());\n Logger.getLogger(Illneses.class.getName()).log(Level.SEVERE, null, ex);\n }\n return null;\n }",
"static @Nullable ModelFile fromPath(String path) {\n final File file = new File(path);\n try {\n final ParcelFileDescriptor modelFd = ParcelFileDescriptor.open(\n file, ParcelFileDescriptor.MODE_READ_ONLY);\n final int version = TextClassifierImplNative.getVersion(modelFd.getFd());\n final String supportedLocalesStr =\n TextClassifierImplNative.getLocales(modelFd.getFd());\n if (supportedLocalesStr.isEmpty()) {\n Log.d(DEFAULT_LOG_TAG, \"Ignoring \" + file.getAbsolutePath());\n return null;\n }\n final boolean languageIndependent = supportedLocalesStr.equals(\"*\");\n final List<Locale> supportedLocales = new ArrayList<>();\n for (String langTag : supportedLocalesStr.split(\",\")) {\n supportedLocales.add(Locale.forLanguageTag(langTag));\n }\n closeAndLogError(modelFd);\n return new ModelFile(path, file.getName(), version, supportedLocales,\n languageIndependent);\n } catch (FileNotFoundException e) {\n Log.e(DEFAULT_LOG_TAG, \"Failed to peek \" + file.getAbsolutePath(), e);\n return null;\n }\n }",
"@NonNull\n\t<T> Optional<T> get(@NonNull String path, @NonNull Class<T> type);",
"Blob getBlob(BlobStoreContext blobStoreContext, CloudPath path, GetOptionFileAttribute getOption);",
"protected abstract InputStream getFile(final String path);",
"VirtualFile getFile(String uuid);",
"public static String get(String path)\n {\n try\n {\n URI uri = new URI(path);\n String fragment = uri.getFragment();\n if (fragment != null)\n {\n File file = new File(fragment);\n if (file.exists())\n return file.toString();\n }\n\n // remove the fragment\n path = uri.getPath();\n }\n catch (URISyntaxException e)\n {\n // do nothing... fall through to the remaining code\n }\n\n // otherwise, try to load from full path\n\n if (cachedFiles == null)\n return null;\n\n for (Path cachedFile : cachedFiles)\n {\n if (cachedFile.toString().endsWith(path))\n {\n return cachedFile.toString();\n }\n if (cachedFile.getParent().toString().endsWith(path))\n {\n return cachedFile.toString();\n }\n }\n\n return null;\n }",
"public Path getPath(String path,String nombreArchivo);",
"boolean getBinaryFileAttribute();",
"FileReference getFile(String fileName);",
"JarFile get(URL uRL, boolean bl) throws IOException {\n Object object;\n if (bl) {\n JarFile jarFile;\n object = instance;\n synchronized (object) {\n jarFile = this.getCachedJarFile(uRL);\n }\n object = jarFile;\n if (jarFile == null) {\n JarFile jarFile2 = URLJarFile.getJarFile(uRL, this);\n JarFileFactory jarFileFactory = instance;\n synchronized (jarFileFactory) {\n jarFile = this.getCachedJarFile(uRL);\n if (jarFile == null) {\n fileCache.put(URLUtil.urlNoFragString(uRL), jarFile2);\n urlCache.put(jarFile2, uRL);\n object = jarFile2;\n } else {\n object = jarFile;\n if (jarFile2 != null) {\n jarFile2.close();\n object = jarFile;\n }\n }\n }\n }\n } else {\n object = URLJarFile.getJarFile(uRL, this);\n }\n if (object != null) {\n return object;\n }\n throw new FileNotFoundException(uRL.toString());\n }",
"public ByteArray getBin() {\n return bin;\n }",
"Bitmap load(String id);",
"public byte[] getBytes(String remotePath) throws Exception {\r\n\r\n if (cf.checkExists().forPath(remotePath) == null)\r\n return null;\r\n\r\n byte[] data = cf.getData().forPath(remotePath);\r\n if(data==null)\r\n return null;\r\n else\r\n return data;\r\n }",
"public com.google.protobuf.ByteString\n getPathBytes(int index) {\n return path_.getByteString(index);\n }",
"public com.google.protobuf.ByteString\n getPathBytes(int index) {\n return path_.getByteString(index);\n }",
"public byte[] Img2Bin (String path){\t \n\t\tByteArrayOutputStream bin = new ByteArrayOutputStream();\n\t\t\n\t\ttry {\n\t\t\tBufferedImage image = ImageIO.read(new File(path));\n\t\t\tImageIO.write(image, \"jpg\", bin);\n\t\t} catch (IOException e) {\n\t\t\tLOG.error(\"Img2Bin didn't succeed. Error: {}\",e);\n\t\t\treturn null;\n\t\t}\n\n\t return bin.toByteArray();\n\t}",
"public TypedFile getTypedFile(String path) {\r\n\tTypedFile f = new TypedFile(path);\r\n\tdeduceAndSetTypeOfFile(f);\r\n\treturn f;\r\n }",
"@Override\n public Blob getBlob(String bucketName, String objectPath) {\n Blob result = storageProvider.get().get(bucketName, objectPath);\n if (result == null) {\n throw new NotFoundException(String.format(\"Bucket %s, Object %s\", bucketName, objectPath));\n }\n return result;\n }",
"@Override\n public Ini read(Path path) throws IOException {\n try (Reader reader = Files.newBufferedReader(path)) {\n return read(reader);\n }\n }",
"public Entry getEntry(String aPath)\n {\n if(getRepo()==null) return null;\n \n // Handle root special\n if(aPath.equals(\"/\")) return new Entry(null, aPath);\n \n // Get repository index and entry for path\n DirCache index = getIndex(); String path = aPath.substring(1);\n DirCacheEntry entry = index.getEntry(aPath.substring(1));\n boolean isDir = entry==null && index.getEntriesWithin(path).length>0;\n if(entry==null && !isDir) return null;\n \n // Create file for path and index entry\n return new Entry(entry, aPath);\n }",
"public byte[] getFile(final String file) throws RemoteException;",
"protected Resource getBinaryDataResource(SlingHttpServletRequest request) {\n return request.getResource();\n }",
"private static IRubyObject read19(ThreadContext context, IRubyObject recv, IRubyObject path, IRubyObject length, IRubyObject offset, RubyHash options) {\n // FIXME: process options\n \n RubyString pathStr = RubyFile.get_path(context, path);\n Ruby runtime = context.getRuntime();\n failIfDirectory(runtime, pathStr);\n RubyIO file = newFile(context, recv, pathStr);\n \n try {\n if (!offset.isNil()) file.seek(context, offset);\n return !length.isNil() ? file.read(context, length) : file.read(context);\n } finally {\n file.close();\n }\n }",
"protected File getFile(Bitstream bitstream) throws IOException {\n // Check that bitstream is not null\n if (bitstream == null) {\n return null;\n }\n\n // turn the internal_id into a file path relative to the assetstore\n // directory\n String sInternalId = bitstream.getInternalId();\n\n // there are 4 cases:\n // -conventional bitstream, conventional storage\n // -conventional bitstream, srb storage\n // -registered bitstream, conventional storage\n // -registered bitstream, srb storage\n // conventional bitstream - dspace ingested, dspace random name/path\n // registered bitstream - registered to dspace, any name/path\n String sIntermediatePath = null;\n if (isRegisteredBitstream(sInternalId)) {\n sInternalId = sInternalId.substring(REGISTERED_FLAG.length());\n sIntermediatePath = \"\";\n } else {\n\n // Sanity Check: If the internal ID contains a\n // pathname separator, it's probably an attempt to\n // make a path traversal attack, so ignore the path\n // prefix. The internal-ID is supposed to be just a\n // filename, so this will not affect normal operation.\n sInternalId = this.sanitizeIdentifier(sInternalId);\n sIntermediatePath = getIntermediatePath(sInternalId);\n }\n\n StringBuilder bufFilename = new StringBuilder();\n bufFilename.append(baseDir.getCanonicalFile());\n bufFilename.append(File.separator);\n bufFilename.append(sIntermediatePath);\n bufFilename.append(sInternalId);\n if (log.isDebugEnabled()) {\n log.debug(\"Local filename for \" + sInternalId + \" is \"\n + bufFilename.toString());\n }\n return new File(bufFilename.toString());\n }",
"public byte[] getResource(String name) {\r\n /*\r\n * if (classNameReplacementChar == '\\u0000') { // '/' is used to map the\r\n * package to the path name= name.replace('.', '/') ; } else {\r\n * Replace '.' with custom char, such as '_' name= name.replace('.',\r\n * classNameReplacementChar) ; }\r\n */\r\n if (htJarContents.get(name) == null) {\r\n return null;\r\n }\r\n System.out.println(\">> Cached jar resource name \" + name + \" size is \"\r\n + ((byte[]) htJarContents.get(name)).length + \" bytes\");\r\n\r\n return (byte[]) htJarContents.get(name);\r\n }",
"public abstract Blob readBlob(User user);",
"@Override\n\tpublic File getById(long id) {\n\t\treturn getSession().find(File.class, id);\n\t}",
"public static String getBinaryFile(){\r\n return Input.getString(\"What is the name of the binary file? Please add .dat file extension: \");\r\n }",
"private byte[] leeFicheroCompleto(String path) throws WebRequestException {\n\t\tFileInputStream file;\n\t\tbyte[] b;\n\t\ttry {\n\t\t\tfile = new FileInputStream(\"htdocs\" + path);\n\n\t\t\tDataInputStream in = new DataInputStream(file);\n\n\t\t\tb = new byte[in.available()];\n\t\t\tin.readFully(b);\n\t\t\tin.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new WebRequestException(\n\t\t\t\t\tWebRequestException.CODE_ERROR_NOT_FOUND,\n\t\t\t\t\tWebRequestException.MESSAGE_ERROR_NOT_FOUND);\n\t\t} catch (IOException e) {\n\t\t\tthrow new WebRequestException(\n\t\t\t\t\tWebRequestException.CODE_ERROR_INTERNAL_SERVER_ERROR,\n\t\t\t\t\tWebRequestException.MESSAGE_ERROR_INTERNAL_SERVER_ERROR);\n\t\t}\n\n\t\treturn b;\n\t}",
"private String getAFileFromSegment(Value segment, Repository repository)\n {\n \n RepositoryConnection con = null;\n try\n {\n con = getRepositoryConnection(repository);\n \n String adaptorQuery = \"SELECT ?fileName WHERE { <\" + segment + \"> <http://toif/contains> ?file . \"\n + \"?file <http://toif/type> \\\"toif:File\\\" .\" + \"?file <http://toif/name> ?fileName . }\";\n \n TupleQuery adaptorTupleQuery = con.prepareTupleQuery(QueryLanguage.SPARQL, adaptorQuery);\n \n TupleQueryResult queryResult = adaptorTupleQuery.evaluate();\n \n while (queryResult.hasNext())\n {\n BindingSet adaptorSet = queryResult.next();\n Value name = adaptorSet.getValue(\"fileName\");\n \n return name.stringValue();\n }\n \n queryResult.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n catch (MalformedQueryException e)\n {\n e.printStackTrace();\n }\n catch (QueryEvaluationException e)\n {\n e.printStackTrace();\n }\n finally\n {\n try\n {\n con.close();\n }\n catch (RepositoryException e)\n {\n e.printStackTrace();\n }\n }\n return null;\n }",
"public static byte[] toByteArray(Path path) {\n\t\tvalidateFile(path);\n\t\ttry {\n\t\t\treturn Files.readAllBytes(path);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public String fileReadBlock(String path) throws IOException, FileNotFoundException{\n FileInputStream in = new FileInputStream(new File(path));\n int size = in.available();\n byte[] buffer = new byte[size];\n in.read(buffer);\n in.close();\n String block = new String(buffer);\n return block;\n }",
"@Override\n\tpublic byte[] fetchFile(String fileName) throws RemoteException {\n return null;\n\n\t}",
"abstract public InputStream retrieveContent( String path )\r\n throws Exception;",
"public T load(String ServerID)\r\n\t{\r\n\t\tFile f = new File(root,ServerID+\"/\"+instances.get(ServerID).path());\r\n\t\tT obj = instances.get(ServerID);\r\n\t\tif(f.exists() && obj != null)\r\n\t\t{\r\n\t\t\ttry {\r\n\t\t\t\tScanner s = new Scanner(f,\"UTF-8\");\r\n\t\t\t\tString txt=\"\";\r\n\t\t\t\twhile(s.hasNextLine())\r\n\t\t\t\t{\r\n\t\t\t\t\ttxt = txt+s.nextLine();\r\n\t\t\t\t}\r\n\t\t\t\ts.close();\r\n\t\t\t\treturn (T) obj.fromText(txt, gson);\r\n\t\t\t} catch (FileNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn null;\r\n\r\n\t}",
"public static String getBMPfromAny(String path) {\r\n\r\n\t\tFile oldfile = new File(path);\r\n\t\tString filename = oldfile.getName();\r\n\t\tString newfile = \"\";\r\n\t\t\r\n\t\tfor (int i = 0; i < filename.length(); i++) {\r\n\t\t\tnewfile += filename.charAt(i);\r\n\t\t\tif (filename.charAt(i) == '.') {\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\tnewfile += \"bmp\";\r\n\t\tFile file2 = new File(\"./images/\"+ newfile);\r\n\t\tboolean success = oldfile.renameTo(file2);\r\n\t\tif (!success) {\r\n\t\t\tMessages.failedPhase1_3(oldfile);\r\n\t\t}else{\r\n\t\t\tMessages.succeedPhase1_3(oldfile, newfile);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn newfile;\r\n\r\n\t}",
"public Branch branchFromFile(String name) {\n File branchFile = Utils.join(_branch, name);\n if (!branchFile.exists()) {\n throw new IllegalArgumentException(\n \"No branch file with that name found.\");\n }\n return Utils.readObject(branchFile, Branch.class);\n }",
"public static <T> T load(String pathOrExp) throws IOException {\n return builder().location(pathOrExp).build().load();\n }",
"public static BufferedSound getSound(String path, int type) {\n\t\tif (sounds.containsKey(path)) {\n\t\t\treturn sounds.get(path);\n\t\t}\n\t\ttry (InputStream is = Assets.class.getResourceAsStream(path)) {\n\t\t\tif (is != null) {\n\t\t\t\tBufferedSound sound = new BufferedSound(is, type);\n\t\t\t\tsounds.putIfAbsent(path, sound);\n\t\t\t\treturn sound;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}",
"public static native String readlink(String path) throws IOException;",
"public Model getModel(String path) {\n Model model = modelCache.get(path);\n if (model != null) {\n return model;\n }\n\n model = this.loadModel(path);\n if (model == null) {\n model = this.createPlaceholderModel(BlockData.AIR.getDefaultRenderOptions()); // failed to load or find\n model.name = path;\n }\n modelCache.put(path, model);\n return model;\n }",
"public byte[] getApplicationBinaryFile() {\r\n return applicationBinaryFile;\r\n }",
"public static RouteFinder load(String s) {\n try (FileInputStream routeFile = new FileInputStream(s);\n ObjectInputStream routeStream = new ObjectInputStream(routeFile);) {\n RouteFinder rfTemp = (RouteFinder) routeStream.readObject();\n return rfTemp;\n } catch (FileNotFoundException e) {\n System.out.println(\"\\nNo file was read\");\n } catch (ClassNotFoundException e) {\n System.out.println(\"\\nTrying to read an object of an unknown class\");\n } catch (StreamCorruptedException e) {\n System.out.println(\"\\nUnreadable file format\");\n } catch (IOException e) {\n System.out.println(e);\n }\n return null;\n }",
"BInformation findOne(Long id);",
"public VicarBinaryLabel getBinaryHeader() throws IOException;",
"byte[] load(String bucket, String file) throws IOException;",
"Path getPath();",
"private static File getFile(String pathFile) {\n\t\tif(!pathFile.isEmpty()){\n\t\t\treturn new File(pathFile);\n\t\t}\n\t\treturn null;\n\t}",
"@Override\n\tpublic Object getObject(String key) {\n\t\tif (mInternalCache.contains(key)) {\n\t\t\ttry {\n\t\t\t\treturn Base64.fromString(mInternalCache.getString(key, null));\n\t\t\t} catch (Exception e) {\n\t\t\t\tLog.e(TAG, \"Failed to get the object from cache !\");\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}",
"public GridFSDBFile find(ObjectId id) {\n\treturn findOne(id);\n }",
"public InputStream get(Bitstream bitstream) throws IOException {\n try {\n return new FileInputStream(getFile(bitstream));\n } catch (Exception e) {\n log.error(\"get(\" + bitstream.getInternalId() + \")\", e);\n throw new IOException(e);\n }\n }",
"public default InputStream getBinaryStream() throws JdbxException\n\t{\n\t\treturn get(GetAccessors.BINARYTREAM);\n\t}",
"@Override\n public Object get(String key) {\n final String fileName = Util.MD5(key);\n CacheModel model = container.get(fileName);\n if (model == null) {\n String name = Util.formatFileName(fileName, \"\");\n mWriter.deleteFileStartWith(name);\n return null;\n }\n if (model.data instanceof byte[]) {\n return model.data;\n }\n File file = (File) model.data;\n if (!file.exists()) {\n return null;\n }\n for (CachePolicy p : policies) {\n if (!p.modelCheck(model, container)) {\n file.delete();\n return null;\n }\n }\n model.accessUpdate();\n file.setLastModified(model.lastAccessTime);\n return file2ByteArray(file);\n }",
"public byte[] getPhoto(String rpiId, String time) throws SQLException, IOException;",
"public IPathItem getPath(String path){\r\n return pathsMap.get(path);\r\n }",
"private boolean readBin(String filePath) throws FileNotFoundException, IOException {\n try {\n BufferedReader dataIn = new BufferedReader(new FileReader(filePath + \".bin\"));\n\n String next = dataIn.readLine();\n int length = Integer.parseInt(next);\n next = dataIn.readLine();\n start = Integer.parseInt(next);\n for (int i = 0; i < memory.length; i++) {\n next = dataIn.readLine();\n if (next == null) {\n break;\n }\n memory[i] = Integer.parseInt(next);\n }\n dataIn.close();\n } catch (IOException ex) {\n print(\"File error: \" + ex.toString());\n return true;\n }\n return false;\n\n }",
"public Sound load(String path)\n\t{\n\t//\tSystem.out.println(\"Loading sound: \" + path);\n\t\t\t\n\t\tSound newSound;\n\t\t\n\t\tif(sounds.containsKey(path))\n\t\t{\n\t\t\tnewSound = sounds.get(path);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tnewSound = new Sound(path);\n\t\t\tsounds.put(path,newSound);\n\t\t}\n\t\treturn newSound;\n\t}",
"public String blobFromFile(String sha1) {\n File blobFile = Utils.join(_objects, sha1);\n if (!blobFile.exists()) {\n throw new IllegalArgumentException(\n \"No blob file with that name found.\");\n }\n return Utils.readContentsAsString(blobFile);\n }",
"public Object readObject() throws ClassNotFoundException, IOException;"
] |
[
"0.6611962",
"0.6579388",
"0.65744126",
"0.61269146",
"0.60890585",
"0.593598",
"0.59024364",
"0.58183795",
"0.5775687",
"0.56530416",
"0.5513144",
"0.5472172",
"0.54716617",
"0.54521704",
"0.53812784",
"0.53793114",
"0.5357823",
"0.53467387",
"0.5343651",
"0.5338878",
"0.5313713",
"0.53007066",
"0.52699625",
"0.5263853",
"0.5250464",
"0.51791006",
"0.51790446",
"0.5169406",
"0.515608",
"0.51532507",
"0.51464844",
"0.51289696",
"0.5110712",
"0.51010704",
"0.5095723",
"0.5095312",
"0.5091575",
"0.505856",
"0.5013545",
"0.5009598",
"0.50068736",
"0.4990651",
"0.4982019",
"0.4976532",
"0.49719247",
"0.4946069",
"0.49426425",
"0.49385074",
"0.4932208",
"0.49290422",
"0.49247932",
"0.49148822",
"0.4890428",
"0.4885041",
"0.48784027",
"0.48760888",
"0.48588777",
"0.48505786",
"0.48492545",
"0.48483828",
"0.48427093",
"0.4838005",
"0.48355606",
"0.48314655",
"0.48225144",
"0.48190093",
"0.4818926",
"0.48141947",
"0.48101315",
"0.4801056",
"0.4797145",
"0.47965512",
"0.47811335",
"0.47758138",
"0.47651365",
"0.4752914",
"0.47484118",
"0.47447294",
"0.47429726",
"0.474088",
"0.47408587",
"0.47330534",
"0.47295243",
"0.47291544",
"0.4728181",
"0.47194543",
"0.47184184",
"0.47170225",
"0.4715508",
"0.47147968",
"0.47147372",
"0.4712531",
"0.47091037",
"0.47062144",
"0.47026202",
"0.46984872",
"0.46935043",
"0.46922392",
"0.46918204",
"0.46877658"
] |
0.7344875
|
0
|
Retrieve a Datastream instance by pid and dsid
|
Datastream asDatastream(Node node) throws ResourceTypeException;
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List<String> listDatastreams(String pid) throws FedoraException, IOException {\r\n GetMethod get = new GetMethod(this.fedoraBaseUrl + \"/objects/\" + pid + \"/datastreams?format=xml\");\r\n try {\r\n client.executeMethod(get);\r\n try {\r\n InputStream is = get.getResponseBodyAsStream();\r\n Document dsDoc = null;\r\n try {\r\n DocumentBuilder parser = getDocumentBuilder();\r\n synchronized (parser) {\r\n dsDoc = parser.parse(is);\r\n }\r\n } finally {\r\n is.close();\r\n }\r\n NodeList elements = dsDoc.getDocumentElement().getChildNodes();\r\n List<String> dsNames = new ArrayList<String>(elements.getLength());\r\n for (int i = 0; i < elements.getLength(); i ++) {\r\n if (elements.item(i) instanceof Element) {\r\n Element el = (Element) elements.item(i);\r\n if (el.getNodeName().equals(\"datastream\")) {\r\n dsNames.add(el.getAttribute(\"dsid\"));\r\n }\r\n }\r\n }\r\n return dsNames;\r\n } catch (SAXException ex) {\r\n throw new FedoraResponseParsingException(ex);\r\n } catch (ParserConfigurationException ex) {\r\n throw new FedoraResponseParsingException(ex);\r\n }\r\n } finally {\r\n get.releaseConnection();\r\n }\r\n }",
"public boolean hasDatastream(String pid, String dsName) throws IOException, FedoraException {\r\n GetMethod get = new GetMethod(this.fedoraBaseUrl + \"/objects/\" + pid + \"/datastreams?format=xml\");\r\n try {\r\n client.executeMethod(get);\r\n InputStream is = get.getResponseBodyAsStream();\r\n boolean hasDs = (readStream(is, get.getResponseCharSet()).indexOf(\"dsid=\\\"\" + dsName + \"\\\"\") != -1);\r\n is.close();\r\n return hasDs;\r\n } finally {\r\n get.releaseConnection();\r\n }\r\n }",
"Datastream findOrCreateDatastream(Session session, String path);",
"public String getDatastreamProperty(String pid, String dsName, DatastreamProfile.DatastreamProperty prop) throws HttpException, IOException, SAXException, ParserConfigurationException, FedoraException, XPathExpressionException {\r\n String url = this.fedoraBaseUrl + \"/objects/\" + pid + \"/datastreams/\" + dsName + \"?format=xml\";\r\n GetMethod get = new GetMethod(url);\r\n try {\r\n client.executeMethod(get);\r\n if (get.getStatusCode() == 200) {\r\n InputStream is = get.getResponseBodyAsStream();\r\n Document xml = null;\r\n DocumentBuilder parser = getDocumentBuilder();\r\n try {\r\n synchronized (parser) {\r\n xml = parser.parse(is);\r\n }\r\n } finally {\r\n is.close();\r\n }\r\n \r\n // compatible with fedora 3.4\r\n String value = (String) this.getXPath().evaluate(\"/fedora-management:datastreamProfile/fedora-management:\" + prop.getPropertyName(), xml, XPathConstants.STRING);\r\n if (value != null) {\r\n return value;\r\n } else {\r\n // compatible with fedora 3.2\r\n return (String) this.getXPath().evaluate(\"/datastreamProfile/\" + prop.getPropertyName(), xml, XPathConstants.STRING);\r\n }\r\n \r\n } else {\r\n throw new FedoraException(\"REST action \\\"\" + url + \"\\\" failed: \" + get.getStatusLine());\r\n }\r\n } finally {\r\n get.releaseConnection();\r\n }\r\n }",
"@Override\n public Optional<SensingDevice> findByIdWithObservationsFromDatastreamOnly(String deviceId, Datastream datastream) {\n return null;\n }",
"public Stream getStream(String streamId) {\n\t\tserverLock.lock();\n\t\ttry {\n\t\t\twhile (lookupStreamIds.contains(streamId)) {\n\t\t\t\t// Another thread is looking up this stream - wait for them to get back\n\t\t\t\ttry {\n\t\t\t\t\treturnedFromServer.await();\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tStream s = getRobonobo().getDbService().getStream(streamId);\n\t\t\tif (s != null)\n\t\t\t\treturn s;\n\n\t\t\tlookupStreamIds.add(streamId);\n\t\t} finally {\n\t\t\tserverLock.unlock();\n\t\t}\n\n\t\ttry {\n\t\t\tString streamUrl = metadataServer.getStreamUrl(streamId);\n\t\t\ttry {\n\t\t\t\tStreamMsg.Builder sb = StreamMsg.newBuilder();\n\t\t\t\tgetRobonobo().getSerializationManager().getObjectFromUrl(sb, streamUrl);\n\t\t\t\tStream s = new Stream(sb.build());\n\t\t\t\tgetRobonobo().getDbService().putStream(s);\n\t\t\t\treturn s;\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RobonoboException(e);\n\t\t\t} finally {\n\t\t\t\tserverLock.lock();\n\t\t\t\tlookupStreamIds.remove(streamId);\n\t\t\t\treturnedFromServer.signalAll();\n\t\t\t\tserverLock.unlock();\n\t\t\t}\n\t\t} catch (RobonoboException e) {\n\t\t\tlog.error(\"Exception getting stream\", e);\n\t\t\treturn null;\n\t\t}\n\t}",
"DataStreamApi getDataStreamApi();",
"public static DataGrabber getInstance(String conexusID) {\n Bundle args = new Bundle();\n args.putString(ID_KEY, conexusID);\n\n DataGrabber grabber = new DataGrabber();\n grabber.setArguments(args);\n return grabber;\n }",
"public Map<String, String> getDeviceInfo(String dpidStr)\n\t\t\tthrows DPIDNotFound;",
"public DcSquadDO loadById(long id) throws DataAccessException;",
"@Override\n\tprotected void readDataStream(DataInputStream dataInStream) throws IOException {\n\t\tid = dataInStream.readLong();\n\t\tsuper.read(dataInStream);\n\t}",
"OutputStream read(String id);",
"public static FlowMap getSubFlowMap(long dpid) {\n\t\t// assumes that new OFMatch() matches everything\n\t\tsynchronized (FVConfig.class) {\n\t\t\treturn FlowSpaceUtil.getSubFlowMap(FVConfig.getFlowSpaceFlowMap(),\n\t\t\t\t\tdpid, new OFMatch());\n\t\t}\n\t}",
"public Patient getPatientByID(int pid) {\r\n\t\tPatient patient=null;\r\n\t\ttry {\r\n\t\t\tString query= \"SELECT * FROM patients WHERE id = ? \";\r\n\t\t\tPreparedStatement pStatement= super.getConnection().prepareStatement(query);\r\n\t\t\tpStatement.setInt(1, pid);\r\n\t\t\tResultSet results= pStatement.executeQuery();\r\n\t\t\twhile(results.next()) {\r\n\t\t\t\t//Patient table\r\n\t\t\t\tint idPatient= results.getInt(1);\r\n\t\t\t\tString fname= results.getString(2);\r\n\t\t\t\tString lname= results.getString(3);\r\n\t\t\t\tString gender= results.getString(4);\r\n\t\t\t\tint age= results.getInt(5);\r\n\t\t\t\tString phone= results.getString(6);\r\n\t\t\t\tString villege= results.getString(7);\r\n\t\t\t\tString commune= results.getString(8);\r\n\t\t\t\tString city= results.getString(9);\r\n\t\t\t\tString province= results.getString(10);\r\n\t\t\t\tString country= results.getString(11);\r\n\t\t\t\tAddress address= new Address(villege, commune, city, province, country);\r\n\t\t\t\tString type= results.getString(12);\r\n\t\t\t\t\r\n\t\t\t\tpatient= new Patient(idPatient, fname, lname, gender, age, phone, address, type);\r\n\t\t\t\tSystem.out.println(\"Get Patients succeed From DatabasePatient\");\r\n\t\t\t}\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\t\r\n\t\treturn patient;\r\n\t}",
"public Patient getPatientByPatientId(long pid) throws PatientExn {\n\t\tTypedQuery<Patient> query = \n\t\t\t\tem.createNamedQuery(\"SearchPatientByPatientID\", Patient.class)\n\t\t\t\t.setParameter(\"pid\", pihhd);\n\t\tList<Patient> patients = query.getResultList();\n\t\tif(patients.size() > 1)\n\t\t\tthrow new PatientExn(\"Duplicate patient records: patient id = \" +pid);\n\t\telse if (patients.size() < 1)\n\t\t\tthrow new PatientExn(\"Patient not found: patient id = \" +pid);\n\t\telse {\n\t\t\tPatient p = patients.get(0);\n\t\t\tp.setTreatmentDAO(this.treatmentDAO);\n\t\t\treturn p;\n\t\t}\n\t}",
"DataStreams createDataStreams();",
"public Session findSession(String id) throws IOException;",
"T read(int id);",
"T read(int id);",
"@GET\n @Path(\"get/{id}\")\n @Produces(\"application/xml\")\n public SEHRDataObject getSEHRDataObject(@PathParam(\"id\") int id) {\n //TODO return proper object, selcted by a list the client receives before\n //throw new UnsupportedOperationException();\n SEHRDataObjectTxHandler sdoTxHandler = SEHRDataObjectTxHandler.getInstance();\n SEHRDataObject sdo = sdoTxHandler.getSDO(id);\n //SEHRDataObject sdo = new SEHRDataObject();\n //sdo.setObjID(IDGenerator.generateID());\n return sdo;\n }",
"OutputStream read(String id, OutputStream output);",
"D getById(K id);",
"public abstract I_SessionInfo getSessionByPublicId(long publicSessionId);",
"public Record readRecord(Long id);",
"public SsoAuthDO query(Integer id) throws DataAccessException;",
"public Performer get(String spid) throws EVDBRuntimeException, EVDBAPIException {\n\t\t\n\t\tMap<String, String> params = new HashMap();\n\t\tparams.put(\"id\", spid);\n\t\t\n\t\tInputStream is = serverCommunication.invokeMethod(PERFORMERS_GET, params);\n\t\t\n\t\tPerformer v = (Performer)unmarshallRequest(Performer.class, is);\n\t\t\n\t\treturn v;\n\t}",
"public synchronized ServerDesc get(short sid) {\n ServerDescEntry tab[] = table;\n int index = (sid & 0x7FFF) % tab.length;\n for (ServerDescEntry e = tab[index] ; e != null ; e = e.next) {\n if (e.desc.sid == sid) return e.desc;\n }\n return null;\n }",
"@Override\n public SharingProduct getSharingProduct(int PID, String email) {\n \n SharingProduct sharingProduct = null;\n Connection connection = null;\n PreparedStatement preparedStatement = null;\n ResultSet result = null;\n \n try {\n connection = MySQLDAOFactory.createConnection();\n preparedStatement = connection.prepareStatement(Read_Query);\n preparedStatement.setString(1, email);\n preparedStatement.setInt(2, PID);\n preparedStatement.execute();\n result = preparedStatement.getResultSet();\n \n while (result.next()) {\n sharingProduct = new SharingProduct(result.getString(1), result.getInt(2) );\n }\n } catch (SQLException e) {\n e.printStackTrace();\n } finally {\n try {\n result.close();\n } catch (Exception rse) {\n rse.printStackTrace();\n }\n try {\n preparedStatement.close();\n } catch (Exception sse) {\n sse.printStackTrace();\n }\n try {\n connection.close();\n } catch (Exception cse) {\n cse.printStackTrace();\n }\n }\n \n return sharingProduct;\n }",
"public DVDDetails getDetails(String dvdID);",
"public Collection<Map<String, String>> getSwitchFlowDB(String dpidstr)\n\t\t\tthrows DPIDNotFound;",
"public abstract StreamUser getStreamUser(String uid);",
"public DcSquadDO loadByName(String squadName) throws DataAccessException;",
"public void setPdid(Long pdid) {\n this.pdid = pdid;\n }",
"Log getHarvestLog(String dsID) throws RepoxException;",
"@GET\n @Path(\"read/{queue}/{msgid}\")\n @Produces(\"application/xml\")\n public SEHRDataObject readMessage(\n @PathParam(\"queue\") String queue,\n @PathParam(\"msgid\") String msgid) {\n ActiveMQConnection amqcon = (ActiveMQConnection) sctx.getAttribute(\"ActiveMQConnection\");\n //SEHRDataObjectTxHandler sdoTxHandler = SEHRDataObjectTxHandler.getInstance();\n SEHRDataObject sdo = new SEHRDataObject();\n try {\n QueueSession sess = amqcon.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);\n //ActiveMQQueue q = new ActiveMQQueue(queue);\n //QueueBrowser queueBrowser = sess.createBrowser((Queue) q);\n Destination q = sess.createQueue(queue);\n MessageConsumer consumer = sess.createConsumer(q, \"JMSMessageID='\" + msgid + \"'\");\n //get specified message\n amqcon.start();\n Message message = consumer.receiveNoWait();\n if (message == null) {\n Logger.getLogger(SDOTxResource.class.getName()).warning(\"No message wit ID \" + msgid);\n consumer.close();\n sess.close();\n return null;\n }\n if (message instanceof MapMessage) {\n MapMessage mm = (MapMessage) message;\n Map<String, Object> msgProperties = txMsgHeader2SDOHeader(message);\n //'param' is part of data / body...\n //TODO check specification\n Object oParam = mm.getObject(\"param\");\n if (oParam != null) {\n msgProperties.put(\"param\", oParam);\n }\n sdo.setSDOProperties(msgProperties);\n //TODO process data / body / content\n Object oData = mm.getObject(\"data\");\n// if (oData instanceof Map){\n// try {\n// //WebService does not accept a Map\n// byte[] b = DeSerializer.serialize(oData);\n// sdo.setDataobject(b);\n// } catch (ObjectHandlerException ex) {\n// Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex);\n// }\n// }else{\n// sdo.setDataobject(oData);\n// }\n //always serialize...\n try {\n //WebService does not accept some types (like Map)\n byte[] b = DeSerializer.serialize(oData);\n sdo.setDataobject(b);\n } catch (ObjectHandlerException ex) {\n Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex.getMessage());\n }\n //System.out.println(\"Received and marshalled: \" + message.toString());\n Logger.getLogger(SDOTxResource.class.getName()).info(\"Received and marshalled: \" + message.toString());\n } else if (message instanceof ObjectMessage) {\n Logger.getLogger(SDOTxResource.class.getName()).info(\"ObjectMessage received. byte[] transforming of message: \" + message.toString());\n try {\n //WebService does not accept some types (like Map)\n byte[] b = DeSerializer.serialize(((ObjectMessage) message).getObject());\n sdo.setDataobject(b);\n } catch (ObjectHandlerException ex) {\n Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex.getMessage());\n }\n //System.out.println(\"Received but not marshalled, not a MapMessage: \" + message.toString());\n } else if (message instanceof TextMessage) {\n Logger.getLogger(SDOTxResource.class.getName()).info(\"ObjectMessage received. byte[] transforming of message: \" + message.toString());\n sdo.setDataobject(((TextMessage) message).getText());\n } else {\n Logger.getLogger(SDOTxResource.class.getName()).warning(\"No processor for message: \" + message.toString());\n }\n consumer.close();\n sess.close();\n } catch (JMSException ex) {\n Logger.getLogger(SDOTxResource.class.getName()).log(Level.SEVERE, null, ex.getMessage());\n return null;\n }\n return sdo;\n }",
"public Question getQuestionbyId(int sid,int qid);",
"public Long getPdid() {\n return pdid;\n }",
"@Override\n public PWsdTaskdataDomain findByKey(PWsdTaskdataDomain pWsdTaskdataDomain) {\n return getPersistanceManager().load(getNamespace() + \".findByKey\", pWsdTaskdataDomain);\n }",
"InternalSession findSession(String id);",
"M getById(Serializable id) throws DataAccessException;",
"public Patient getPatientBySsn(String ssn) {\n Patient pat = null;\n for (int i = 0; i < patients.size(); i++) {\n if (patients.get(i).getSsn().equals(ssn)) {\n pat = patients.get(i);\n }\n }\n return pat;\n }",
"synchronized Session getSession(long id) {\n return (Session) sessionMap.get(id);\n }",
"public Page readPage(PageId pid) {\n // some code goes here\n int offset = pid.pageNumber() * BufferPool.PAGE_SIZE;\n byte[] pageData = new byte[BufferPool.PAGE_SIZE];\n Page page = null;\n try {\n RandomAccessFile accessor = new RandomAccessFile(f, \"r\");\n accessor.seek(offset);\n accessor.read(pageData, 0, BufferPool.PAGE_SIZE);\n page = new HeapPage((HeapPageId) pid, pageData);\n accessor.close();\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return page;\n }",
"Object get(ID id) throws Exception;",
"public DataRecord getQuestionRecord(String questionId)\r\n throws ProcessManagerException {\r\n Question question = getQuestion(questionId);\r\n return new QuestionRecord(question.getQuestionText());\r\n }",
"public FFileInputDO findById(long inputId) throws DataAccessException;",
"public DBFileInfo getStreamInfo(FileState parent, String[] paths, DBDeviceContext dbCtx) {\n\n // Check if the file is in the cache\n\n String streamPath = paths[0] + paths[1] + paths[2]; \n FileState state = getFileState(streamPath, dbCtx, true);\n \n if ( state != null && state.getFileId() != -1) {\n \n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"@@ Cache hit - getStreamInfo() path=\" + streamPath);\n \n // Return the file information\n \n DBFileInfo finfo = (DBFileInfo) state.findAttribute(FileState.FileInformation);\n if ( finfo != null)\n return finfo;\n }\n\n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DBDiskDriver getStreamInfo parent=\" + parent.getPath() + \", stream=\" + paths[2]);\n \n // Get a list of the streams for the parent file\n \n DBFileInfo finfo = null;\n \n try {\n \n // Get the list of streams\n\n StreamInfoList sList = (StreamInfoList) parent.findAttribute(DBStreamList);\n \n if ( sList == null) {\n \n // No cached stream information, get the list from the database\n\n sList = dbCtx.getDBInterface().getStreamsList(parent.getFileId(), DBInterface.StreamAll);\n \n // Cache the information\n \n parent.addAttribute(DBStreamList, sList);\n }\n\n // Find the required stream information\n \n if ( sList != null) {\n \n // Find the required stream information\n \n StreamInfo sInfo = sList.findStream(paths[2]);\n \n // Convert the stream information to file information\n \n if ( sInfo != null) {\n \n // Load the stream information\n \n finfo = new DBFileInfo();\n finfo.setFileId(parent.getFileId());\n \n // Copy the stream information\n \n finfo.setFileName(sInfo.getName());\n finfo.setSize(sInfo.getSize());\n \n // Get the file creation date, or use the current date/time\n\n if ( sInfo.hasCreationDateTime())\n finfo.setCreationDateTime(sInfo.getCreationDateTime());\n \n // Get the modification date, or use the current date/time\n \n if ( sInfo.hasModifyDateTime())\n finfo.setModifyDateTime(sInfo.getModifyDateTime());\n else if ( sInfo.hasCreationDateTime())\n finfo.setModifyDateTime(sInfo.getCreationDateTime());\n \n // Get the last access date, or use the current date/time\n \n if ( sInfo.hasAccessDateTime())\n finfo.setAccessDateTime(sInfo.getAccessDateTime());\n else if ( sInfo.hasCreationDateTime())\n finfo.setAccessDateTime(sInfo.getCreationDateTime());\n }\n }\n }\n catch ( DBException ex) {\n Debug.println(ex);\n finfo = null;\n }\n\n // Set the full path for the file\n \n if ( finfo != null)\n finfo.setFullName(streamPath);\n \n // Update the cached information, if available\n \n if ( state != null && finfo != null) {\n state.addAttribute(FileState.FileInformation, finfo);\n state.setFileStatus( FileStatus.FileExists);\n }\n \n // Return the file information for the stream\n\n return finfo;\n }",
"SerializableState getData(Long id) throws RemoteException;",
"Session get(int id);",
"T readOne(int id);",
"@Override\n public Optional<SensingDevice> findByIdWithObservationsFromDatastreamsOnly(String deviceId,\n Collection<Datastream> datastreams) {\n return null;\n }",
"Instance getInstance(String id);",
"SIEntry(final Context<BTree, BTreeLeaf> context, java.nio.ByteBuffer stream)\n\t\tthrows\n\t\t\tjava.io.IOException\n\t\t{\n\t\t\tDataContainer dc = new DataContainer();\n\t\t\tdc.read(stream, context.unicode() ? unicode_fields : ansi_fields);\n\n\t\t\tnid = (NID)dc.get(nm_nid);\n\t\t\tbid = (BID)dc.get(nm_bid);\n\t\t}",
"public interface IStreamFactory{\n Closeable getStream(Query q);\n }",
"ScheduleTasks getScheduledHarvestingSessions(String dsID) throws RepoxException;",
"public Object get(Class cl, Serializable id) throws HibException;",
"public static DataOutputStream getData(OutputStream out) {\n return new DataOutputStream(get(out));\n }",
"public static SiteSMD findById (Session session, long id)\n {\n SiteSMD out = (SiteSMD) session.createCriteria (SiteSMD.class).add (Restrictions.eq (\"id\", id)).uniqueResult ();\n return out;\n }",
"public StreamDefinition getStreamDefinitionFromStore(Credentials credentials, String streamId) {\n try {\n return StreamDefnCache.getStreamDefinition(credentials, streamId);\n } catch (ExecutionException e) {\n return null;\n }\n }",
"@Override\n\tpublic RecordableRecord findRecordableRecordByPid(String id) {\n\t\treturn recordableRecordRepository.findRecordableRecordByPid(id);\n\t}",
"public SDOInterface _createSDOProcObject(String procName)\n throws Open4GLException\n {\n return (m_QuarixProgressOOConnectorImpl._createSDOProcObject(procName));\n }",
"public boolean wasDatastreamChanged(String dsId);",
"private ParseInterface getParser(String sid) {\n if (parseMap.containsKey(sid)) {\n return parseMap.get(sid);\n } else {\n Log.d(TAG, \"Could not instantiate \" + sid + \"parser\");\n }\n return null;\n }",
"public Survey getSurveybySid(int sid);",
"@Override\n\tpublic Subject get(Session sess, int id) {\n\t\treturn (Subject) sess.load(Subject.class, id);\n\t}",
"private DataOutputStream getDataStream(int keyLength)\n throws IOException {\n // Resize array if necessary\n if (dataStreams.length <= keyLength) {\n var copyOfDataStreams = Arrays.copyOf(dataStreams, keyLength + 1);\n Arrays.fill(dataStreams, null);\n dataStreams = null;\n dataStreams = copyOfDataStreams;\n dataFiles = Arrays.copyOf(dataFiles, keyLength + 1);\n }\n\n DataOutputStream dos = dataStreams[keyLength];\n if (dos == null) {\n File file = new File(tempFolder, \"data\" + keyLength + \".dat\");\n file.deleteOnExit();\n dataFiles[keyLength] = file;\n\n dos = new DataOutputStream(new BufferedOutputStream(new FileOutputStream(file)));\n dataStreams[keyLength] = dos;\n\n // Write one byte so the zero offset is reserved\n dos.writeByte(0);\n }\n return dos;\n }",
"public static Map<String, Object> read(String sid, InetAddress address, int port, int timeout)\n throws IOException {\n Map<String, Object> message = new LinkedHashMap<>();\n message.put(\"cmd\", \"read\");\n message.put(\"sid\", sid);\n SocketAddress remote = new InetSocketAddress(address, port);\n return unicast(message, remote, timeout);\n }",
"public Request<LogStream> get(String logStreamId) {\n Asserts.assertNotNull(logStreamId, \"log stream id\");\n\n String url = baseUrl\n .newBuilder()\n .addPathSegments(LOG_STREAMS_PATH)\n .addPathSegment(logStreamId)\n .build()\n .toString();\n\n CustomRequest<LogStream> request = new CustomRequest<>(client, url, \"GET\", new TypeReference<LogStream>() {\n });\n request.addHeader(AUTHORIZATION_HEADER, \"Bearer \" + apiToken);\n return request;\n }",
"public abstract long getSdiId();",
"public PoBean getPoById(int pid) throws Exception {\n String query = \"SELECT * FROM PO WHERE id = ?\";\n try (\n Connection con = this.ds.getConnection();\n PreparedStatement p = con.prepareStatement(query)) {\n p.setInt(1, pid);\n ResultSet r = p.executeQuery();\n PoBean po = null;\n if (r.next()) {\n int id = r.getInt(\"id\");\n PoBean.Status status = PoBean.Status.getStatus(r.getString(\"status\"));\n int addressId = r.getInt(\"address\");\n int uid = r.getInt(\"uid\");\n AddressDAO addressDAO = new AddressDAO();\n UserDAO userDAO = new UserDAO();\n po = new PoBean(id, userDAO.getUserById(uid), status, addressDAO.getAddressById(addressId));\n }\n r.close();\n p.close();\n con.close();\n return po;\n }\n }",
"private Sink getSink(int node_id, int dvn) {\n\n\t\t// address of Mote\n\t\tString addr = new MoteAddrStrategy().execute(new int[] { node_id }, 0);\n\t\treturn dao.getSinkDAO().mergeSink(addr, dvn);\n\n\t}",
"public EscherRecord findFirstWithId(short id) {\n \treturn findFirstWithId(id, getEscherRecords());\n }",
"public StreamInfo getStreamInformation(SrvSession sess, TreeConnection tree, StreamInfo streamInfo)\n throws IOException {\n\n // DEBUG\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"### getStreamInformation() called ###\");\n \n // TODO Auto-generated method stub\n return null;\n }",
"@Override\r\n\tpublic Policy getById(Integer pid) {\n\t\tPolicy policy =dao.getById(pid);\r\n return policy;\r\n\t}",
"@SuppressWarnings(\"unchecked\")\r\n public DomainObject getRecordByPrimaryKey(KeyType id) {\r\n Session session = getSession();\r\n try {\r\n return (DomainObject) session.get(getPersistentClass(), id);\r\n } catch (HibernateException e) {\r\n LOG.error(MODULE + \"Exception in getRecordByPrimaryKey Method:\" + e, e);\r\n throw e;\r\n } finally {\r\n if (session.isOpen()) {\r\n session.close();\r\n }\r\n }\r\n }",
"public Page readPage(PageId pid) {\n // some code goes here\n \t\n \tHeapPage pg = null;\n \tbyte[] pageBytes = new byte[BufferPool.PAGE_SIZE];\n \t\n \ttry {\n\t \tRandomAccessFile raf = new RandomAccessFile(m_f, \"r\");\n\t \traf.seek(pid.pageNumber() * BufferPool.PAGE_SIZE);\n\t \traf.read(pageBytes, 0, BufferPool.PAGE_SIZE);\n\t \traf.close();\n\t \tpg = new HeapPage((HeapPageId) pid, pageBytes);\n \t} catch (IOException e){\n \t\te.printStackTrace();\n \t}\n \t\n \treturn pg;\n }",
"public VinDevices getDevice(String id_device)\n\t\t{\n\t\t\tList<?> dataAux;\n\t\t\tVinDevices Arecord = new VinDevices();\n\t\t\ttry{\n\t\t\t\tdataAux =\tthis.getListaBaseTable(\"id_device='\"+id_device+\"'\");\n\t\t\t\tArecord = (VinDevices)dataAux.get(0);\n\t\t\t}\n\t\t\tcatch(Exception e){}\n\t\t\tfinally\n\t\t\t{\n\t\t\t\tdataAux = null;\n\t\t\t}\n\t\t\treturn Arecord;\t\t\t\t\n\t\t\t\n\t\t}",
"public String getStreamId() {\n return this.streamId;\n }",
"@Override\n\tpublic Factory get(Serializable id) {\n\t\treturn mapper.get(id);\n\t}",
"public Data findById(Object id);",
"public SDB getDB(String dbid) throws SqlJetException,IOException {\r\n\t\t//if (getPrimaryDBID().equals(dbid)) return getPrimaryDB();\r\n\t\tSFile db=singleDBHome(dbid);\r\n\t\tif (!db.exists()) return null;\r\n\t\tSFile f=db.rel(MAIN_DB);\r\n\t\treturn dbFromFile(f);\r\n\t}",
"E read(K id);",
"public So_cdVO getById(String so_cd);",
"synchronized void setDeviceID(String deviceID)\r\n throws IOException {\n if (this.deviceID != null) {\r\n /*\r\n * Just to be on the safe side, make sure #read(Buffer) is not\r\n * currently executing.\r\n */\r\n waitWhileStreamIsBusy();\r\n\r\n if (stream != 0) {\r\n /*\r\n * For the sake of completeness, attempt to stop this instance\r\n * before disconnecting it.\r\n */\r\n if (started) {\r\n try {\r\n stop();\r\n } catch (IOException ioe) {\r\n /*\r\n * The exception should have already been logged by the\r\n * method #stop(). Additionally and as said above, we\r\n * attempted it out of courtesy.\r\n */\r\n }\r\n }\r\n\r\n boolean closed = false;\r\n\r\n try {\r\n Pa.CloseStream(stream);\r\n closed = true;\r\n } catch (PortAudioException pae) {\r\n /*\r\n * The function Pa_CloseStream is not supposed to time out\r\n * under normal execution. However, we have modified it to\r\n * do so under exceptional circumstances on Windows at least\r\n * in order to overcome endless loops related to\r\n * hotplugging. In such a case, presume the native PortAudio\r\n * stream closed in order to maybe avoid a crash at the risk\r\n * of a memory leak.\r\n */\r\n long errorCode = pae.getErrorCode();\r\n\r\n if ((errorCode == Pa.paTimedOut)\r\n || (Pa.HostApiTypeId.paMME.equals(\r\n pae.getHostApiType())\r\n && (errorCode == Pa.MMSYSERR_NODRIVER))) {\r\n closed = true;\r\n }\r\n\r\n if (!closed) {\r\n// logger.error(\r\n// \"Failed to close \" + getClass().getSimpleName(),\r\n// pae);\r\n System.err.println(\"Failed to close \" + getClass().getSimpleName() + pae);\r\n IOException ioe\r\n = new IOException(pae.getLocalizedMessage());\r\n\r\n ioe.initCause(pae);\r\n throw ioe;\r\n }\r\n } finally {\r\n if (closed) {\r\n stream = 0;\r\n\r\n if (inputParameters != 0) {\r\n Pa.StreamParameters_free(inputParameters);\r\n inputParameters = 0;\r\n }\r\n\r\n /*\r\n * Make sure this AbstractPullBufferStream asks its\r\n * DataSource for the Format in which it is supposed to\r\n * output audio data the next time it is opened instead\r\n * of using its Format from a previous open.\r\n */\r\n this.format = null;\r\n\r\n if (readIsMalfunctioningSince != NEVER) {\r\n setReadIsMalfunctioning(false);\r\n }\r\n }\r\n }\r\n }\r\n }\r\n\r\n this.deviceID = deviceID;\r\n this.started = false;\r\n\r\n // DataSource#connect\r\n if (this.deviceID != null) {\r\n AudioSystem2 audioSystem\r\n = (AudioSystem2) AudioSystem.getAudioSystem(\r\n AudioSystem.LOCATOR_PROTOCOL_PORTAUDIO);\r\n\r\n if (audioSystem != null) {\r\n audioSystem.willOpenStream();\r\n }\r\n try {\r\n connect();\r\n } finally {\r\n if (audioSystem != null) {\r\n audioSystem.didOpenStream();\r\n }\r\n }\r\n }\r\n }",
"public final double get\r\n ( DataID dID // input\r\n )\r\n {\r\n return dataArray[dID.ordinal()];\r\n }",
"public abstract I_SessionInfoProtector getSessionByPubSessionId(\n\t\t\tlong pubSessionId);",
"@Override\n public Optional<Seq> getbyid(int id) {\n \tConnection conn = null;\n \tPreparedStatement pstmt=null;\n \tResultSet rs;\n \tSeq seq=null;\n ProcessesDAO pdao = new ProcessesDAO();\n \ttry {\n \t\tString url = \"jdbc:sqlite:src\\\\database\\\\AT2_Mobile.db\";\n \t\tconn = DriverManager.getConnection(url);\n\t \tpstmt = conn.prepareStatement(\n\t \t \"select * from seq where id =?\");\n\t \t \n\t \tpstmt.setInt(1,id); \n\t\n\t \trs = pstmt.executeQuery();\n\t \twhile (rs.next()) {\n\t \t\tseq = new Seq(rs.getInt(\"id\"), pdao.getbyidentifier(rs.getString(\"identifier\")), rs.getInt(\"seq_number\"));\n\t \t}\n\t \trs.close(); \n\t \tpstmt.close();\n\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n } finally {\n \ttry {\n if (conn != null) {\n conn.close();\n }\n } catch (SQLException ex) {\n System.out.println(ex.getMessage());\n }\n\n }\n return Optional.of(seq);\n }",
"public Data getData(String repository,String id) {\n\n Data result = null;\n\n //Check if the repository is there\n if(doesDataExist(repository,id)){\n //Fetch the data\n result = storage.get(repository).get(id);\n }\n\n return result;\n }",
"public ObjectProfile getObjectProfile(String pid) throws SAXException, IOException, ParserConfigurationException, FedoraException {\r\n String url = fedoraBaseUrl + \"/objects/\" + pid + \"?format=xml\";\r\n GetMethod get = new GetMethod(url);\r\n try {\r\n client.executeMethod(get);\r\n if (get.getStatusCode() == 200) {\r\n InputStream response = get.getResponseBodyAsStream();\r\n Document xml = null;\r\n DocumentBuilder parser = getDocumentBuilder();\r\n synchronized (parser) {\r\n xml = parser.parse(response);\r\n }\r\n response.close();\r\n return new ObjectProfile(xml, getXPath());\r\n } else {\r\n throw new FedoraException(\"REST action \\\"\" + url + \"\\\" failed: \" + get.getStatusLine());\r\n }\r\n } finally {\r\n get.releaseConnection();\r\n }\r\n }",
"public IncomingReport find(Integer id) throws DAOException;",
"protected abstract InputStream openPrivateKeyStream(String id)\n throws FileNotFoundException, KeyStorageException, IOException;",
"@Override\n\tpublic List<StreamDTO> getStreamList() throws DataNotFoundException, DatabaseException {\n\t\tConnection con = DbUtil.getConnection();\n\t\tStudentRegistrationValidationDaoi studentRegistrationValidationDaoi=new StudentRegistrationValidationDaoimpl();\n\t\tList<StreamDTO> sttreamDTOs=studentRegistrationValidationDaoi.getStreamList(con);\n\t\tDbUtil.closeConnection(con);\n\t\treturn sttreamDTOs;\n\t}",
"private Session getSession (String sessionID) {\n\t\tSession session;\n\t\tif (get(sessionID) != null) {\n\t\t\tsession = get(sessionID);\n\t\t} else {\n\t\t\tsession = new Session();\n\t\t\tput(session.getId(), session);\n\t\t}\n\t\treturn session;\n\t}",
"public AsxDataVO findOne(String id) {\n\t\t return (AsxDataVO) mongoTemplate.findOne(new Query(Criteria.where(\"id\").is(id)), AsxDataVO.class); \r\n\t}",
"public static long readStream(final DataInputStream dis, final ByteBuffer towrite, final long byteCount) throws IOException {\n // return readStream(new ByteBufferDiscrim(), dis, towrite, byteCount);\n\n return readStream(dis,\n\n (buf, offset, numBytes) -> towrite.put(buf, offset, numBytes)\n\n , byteCount);\n\n }",
"public InputStream createPullStream(String fname) throws IOException {\n\t\tSocket socket = null;\n\t\ttry {\n\t\t\tsocket = new Socket(host, port);\n\t\t\tInputStream in = socket.getInputStream();\n\t\t\tOutputStream out = socket.getOutputStream();\n\t\t\tDataOutputStream output = new DataOutputStream(socket.getOutputStream());\n\t\t\tProtocolSupport.send(\"host:transport:\" + serial, in, out);\n\n\t\t\tProtocolSupport.send(\"sync:\", in, out);\n\t\t\toutput.writeBytes(\"RECV\");\n\t\t\toutput.writeInt(Integer.reverseBytes(fname.length()));\n\t\t\toutput.writeBytes(fname);\n\t\t\toutput.flush();\n\t\t\treturn new PullStream(in);\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\ttry {\n\t\t\t\tsocket.close();\n\t\t\t}\n\t\t\tcatch (IOException e1) {\n\t\t\t}\n\t\t\tthrow e;\n\t\t}\n\t}",
"ExpDataClass getDataClass(@NotNull String lsid);",
"public TSLDataCacheObject getTSLDataCacheObject(long tslDataId) throws TSLManagingException {\n\n\t\ttry {\n\t\t\treturn ConfigurationCacheFacade.tslGetTSLDataCacheObject(tslDataId);\n\t\t} catch (TSLCacheException e) {\n\t\t\tthrow new TSLManagingException(IValetException.COD_187, Language.getFormatResCoreTsl(ICoreTslMessages.LOGMTSL174, new Object[ ] { tslDataId }), e);\n\t\t}\n\n\t}",
"protected abstract InputStream openCertificateStream(String id)\n throws FileNotFoundException, KeyStorageException, IOException;",
"public DataInputStream openDataInputStream() throws IOException {\n return new DataInputStream(openInputStream());\n }"
] |
[
"0.6217389",
"0.62168545",
"0.60853827",
"0.6032628",
"0.53957826",
"0.5382563",
"0.52641773",
"0.5233345",
"0.5189101",
"0.5177266",
"0.51523614",
"0.5131215",
"0.51240003",
"0.5120813",
"0.50812113",
"0.5074957",
"0.49506164",
"0.4939274",
"0.4939274",
"0.4934822",
"0.49258038",
"0.49242508",
"0.48777834",
"0.4859711",
"0.4829954",
"0.4810809",
"0.48098704",
"0.4809367",
"0.47990805",
"0.47930002",
"0.47844306",
"0.4749816",
"0.47365567",
"0.47300947",
"0.4685125",
"0.46690762",
"0.46683115",
"0.4655609",
"0.4637991",
"0.46289638",
"0.46278006",
"0.46251154",
"0.4606135",
"0.46021277",
"0.4599476",
"0.45913354",
"0.4571594",
"0.45698836",
"0.45680448",
"0.45674714",
"0.45423478",
"0.4541859",
"0.4539629",
"0.45387626",
"0.4520707",
"0.45202142",
"0.4516528",
"0.45164433",
"0.45154545",
"0.45133612",
"0.45120806",
"0.45060387",
"0.4493566",
"0.44908118",
"0.44841543",
"0.44833905",
"0.4475459",
"0.44746658",
"0.44735757",
"0.44732368",
"0.44658506",
"0.44568783",
"0.44512302",
"0.44508404",
"0.4449398",
"0.44490466",
"0.44469503",
"0.44466853",
"0.44382358",
"0.44273096",
"0.44206396",
"0.44133464",
"0.44094697",
"0.4404626",
"0.44044235",
"0.43934423",
"0.43900412",
"0.43890476",
"0.43857732",
"0.43849123",
"0.4380388",
"0.43740883",
"0.43693888",
"0.43559426",
"0.4355158",
"0.4352414",
"0.43516546",
"0.4350389",
"0.43446222",
"0.43414366"
] |
0.4643118
|
38
|
Retrieve a Binary instance from a node
|
FedoraBinary asBinary(Node node);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Object get(Node node);",
"@Override\n public BinaryType asBinary() {\n return TypeFactory.getBinaryType(this.getValue());\n }",
"public interface BinaryNode<T> { }",
"public BinaryNode() {\n\t\tthis(null);\t\t\t// Call next constructor\n\t}",
"public interface BinNode<T> {\n\n /**\n * Returns the element in the node\n * @return the element in the node\n */\n public T getElement();\n \n /**\n * Changes the element of the node to the element provided\n * @param newvalue\n */\n public void setElement(T newvalue);\n \n /**\n * Returns the left child of the node\n * @return the left child\n */\n public BinNode<T> getLeft();\n \n /**\n * Returns the right child of the node\n * @return the right child\n */\n public BinNode<T> getRight();\n \n /**\n * Returns whether or not the node has any non-null children\n * @return whether the node is a leaf\n */\n public boolean isLeaf();\n \n}",
"@Override\n public Binary getBinary() throws ValueFormatException, RepositoryException {\n return null;\n }",
"public myBinaryNode<T> my_root();",
"public ByteArray getBin() {\n return bin;\n }",
"FedoraBinary getBinary(Session session, String path);",
"Node getNode();",
"N getNode(int id);",
"BTNode<T> getRoot();",
"public Binary createBinary(Position pos, Expr left, polyglot.ast.Binary.Operator op, Expr right) {\n try {\n return (Binary) xnf.Binary(pos, left, op, right).typeCheck(this);\n } catch (SemanticException e) { \n throw new InternalCompilerError(\"Attempting to synthesize a Binary that cannot be typed\", pos, e);\n }\n }",
"entities.Torrent.NodeId getNode();",
"entities.Torrent.NodeId getNode();",
"public static Node buildBNode(final String id) {\n\t\treturn NodeFactory.createAnon(AnonId.create(id));\n\t}",
"public BinaryNode<T> find(T v);",
"public final Object getObject() \n\t{\n\tif (fTop > 0)\n\t\t{\n\t\tfTop--;\n\t\tObject result = fBin[fTop];\n\t\tfBin[fTop] = null;\n\t\treturn result;\n\t\t}\n\n\tfUnderflowCounter++;\n\tif (fHasOverflowed && (fBin.length < MAX_BIN_SIZE))\n\t\t{\n\t\tcreateBin(fBin.length + BIN_GROW_SIZE);\n\t\tfHasOverflowed = false;\n\t\t}\n\t\t\n\ttry\n\t\t{\n\t\treturn fClass.newInstance();\n\t\t}\n\tcatch (Exception e)\n\t\t{\n\t\treturn null;\n\t\t}\n\t}",
"OperationNode getNode();",
"abstract public Node load();",
"public MyBinNode<Type> getRoot(){\n return this.root;\n }",
"public byte[] getBinaryValue() {\n throw new OurBadException(\" Item '\" + this.serialize() + \"' is not a hexBinary.\");\n }",
"public Node getNode();",
"public BinNode<T> getRight();",
"public AnnisBinary getBinary(Long id)\r\n \t{\r\n \t\tlogger.debug(\"Looking for binary file with id = \" + id);\r\n \t\t\r\n \t\ttry\r\n \t\t{\r\n \t\t\tExtFileObjectCom extFile= this.getExtFileObj(id);\r\n \t\t\tAnnisBinary aBin= new AnnisBinaryImpl(); \r\n \t\t\t\r\n \t\t\t//Bytes setzen\r\n \t\t\tFile file = extFile.getFile();\r\n \t\t\tlong length = file.length();\r\n \t\t\tFileInputStream fis = new FileInputStream(file);\r\n \t\t\tbyte[] bytes = new byte[(int)length];\r\n \t\t int offset = 0;\r\n \t\t int numRead = 0;\r\n \t\t while (offset < bytes.length\r\n \t\t && (numRead=fis.read(bytes, offset, bytes.length-offset)) >= 0) \r\n \t\t {\r\n \t\t \toffset += numRead;\r\n \t\t }\r\n \t\r\n \t\t \r\n \t\t // Ensure all the bytes have been read in\r\n \t\t if (offset < bytes.length) {\r\n \t\t \tthrow new IOException(\"Could not completely read file \"+file.getName());\r\n \t\t }\r\n \t\t\tfis.close();\r\n \t\t\taBin.setBytes(bytes);\r\n \t\t\taBin.setId(extFile.getID());\r\n \t\t\taBin.setFileName(extFile.getFileName());\r\n \t\t\taBin.setMimeType(extFile.getMime());\r\n \t\t\t\r\n \t\t\treturn(aBin);\r\n \t\t}\r\n \t\tcatch (Exception e)\r\n \t\t{\r\n \t\t\tlogger.error(\"Could not read binary file\", e);\r\n \t\t\tthrow new ExternalFileMgrException(e);\r\n \t\t}\r\n \t}",
"public abstract Node getNode();",
"entities.Torrent.NodeIdOrBuilder getNodeOrBuilder();",
"entities.Torrent.NodeIdOrBuilder getNodeOrBuilder();",
"MIBObject get(String oid);",
"Node get(URI uri);",
"public BinaryTree(){}",
"public Node read_node2(String MAC, String port_number) throws HibernateException\r\n\t\t\t\t{ \r\n\t\t\t\t\tNode node = null; \r\n\t\t\t\t\tString i=null;\r\n\t\t\t\t\tlong id_node=0;\r\n\t\t\t\t try \r\n\t\t\t\t { \r\n\t\t\t\t iniciaOperacion(); //unique result me devuelve el objeto encontrado con dicho correo electronico\r\n\t\t\t\t \r\n\t\t\t\t i= sesion.createQuery(\"SELECT u.id_node FROM Node u WHERE u.MAC_address ='\"+MAC+\"' and u.port_number ='\"+port_number+\"'\").uniqueResult().toString();\r\n\t\t\t\t //una vez encontrado el id del user puedo buscarlo\r\n\t\t\t\t id_node= Integer.parseInt(i);\r\n\t\t\t\t node = (Node) sesion.get(Node.class, id_node); \r\n\t\t\t\t \r\n\t\t\t\t } finally \r\n\t\t\t\t { \r\n\t\t\t\t sesion.close(); \r\n\t\t\t\t } \r\n\t\t\t\t return node; \r\n\t\t\t\t}",
"public BinaryNode(String dataPortion) {\n\t\tthis(dataPortion, null, null);\t\t\t// Call next constructor\n\t}",
"Node<K, V> getRoot(BTree<K, V> btree) throws IOException;",
"RenderedOp getNode(Long id) throws RemoteException;",
"public BinaryNode(AnyType element,BinaryNode<AnyType> left,BinaryNode<AnyType> right) {\n this.element=element;\n this.left=left;\n this.right=right;\n }",
"public Object visitBinaryExpr(GoIRBinaryExprNode node){\n\t\tString l = node.getType();\n\t\tif(l!= null) {//already discovered type of children\n\t\t\treturn l;\n\t\t}\n\t\tl = (String) node.getLeft().accept(this);\n\t\tString r = (String) node.getRight().accept(this);\n\t\tGoException error = Compare(l,r,\"visitbinary\");\n\t\tif(error != null) {\n\t\t\tthrow error;\n\t\t}\n\t\tnode.setType(l);//so it doesnt have to repeatedly check\n\t\t// like 3+3+3+3+3... would make a big tree and we dont need to repeatedly check\n\t\treturn l;\n\t}",
"protected abstract B getElement(Long id);",
"public BiType getType() {\n return BiType.NODE;\n }",
"private OpBinary getOpBinary(int opType) {\n switch(opType) {\n case napLexer.ADD: return OpBinary.ADD;\n case napLexer.SUB: return OpBinary.SUB;\n case napLexer.MUL: return OpBinary.MUL;\n case napLexer.DIV: return OpBinary.DIV;\n case napLexer.MOD: return OpBinary.MOD;\n case napLexer.AND: return OpBinary.AND;\n case napLexer.OR: return OpBinary.OR;\n case napLexer.NEQ: return OpBinary.NEQ;\n case napLexer.LT: return OpBinary.LT;\n case napLexer.LE: return OpBinary.LE;\n case napLexer.GT: return OpBinary.GT;\n case napLexer.GE: return OpBinary.GE;\n default: return OpBinary.EQ;\n }\n }",
"Node getNode(String path);",
"public BinNode<T> getLeft();",
"public Object read();",
"public Node getNode (){\n if (_node == null){\n Label label = new Label(_value);\n label.setFont(DEFAULT_FONT);\n _node = label;\n }\n return _node;\n }",
"protected O bytesToObject(byte[] data) throws OBException,\r\n InstantiationException, IllegalAccessException, IllegalIdException {\r\n O res = type.newInstance();\r\n try {\r\n res.load(data);\r\n } catch (IOException e) {\r\n throw new OBException(e);\r\n }\r\n return res;\r\n }",
"public final IRNode getNode() {\r\n return f_node;\r\n }",
"public static BinaryExpression makeBinary(ExpressionType binaryType, Expression expression0, Expression expression1, boolean liftToNull, Method method) { throw Extensions.todo(); }",
"public String getNodeValue ();",
"public java.lang.String getBin() {\r\n return bin;\r\n }",
"public IBTreeNode loadNodeById(Object id) {\n\t\tOID oid = (OID) id;\n\n\t\t// Check if node is in memory\n\t\tIBTreeNode node = (IBTreeNode) oids.get(oid);\n\n\t\tif (node != null) {\n\t\t\tnbLoadNodesFromCache++;\n\t\t\treturn node;\n\t\t}\n\t\tnbLoadNodes++;\n\n\t\t// else load from odb\n\t\ttry {\n\t\t\tif (OdbConfiguration.isDebugEnabled(LOG_ID)) {\n\t\t\t\tDLogger.debug(\"Loading node with id \" + oid);\n\t\t\t}\n\t\t\tif (oid == null) {\n\t\t\t\tthrow new ODBRuntimeException(BTreeError.INVALID_ID_FOR_BTREE\n\t\t\t\t\t\t.addParameter(oid));\n\t\t\t}\n\t\t\tIBTreeNode pn = (IBTreeNode) engine.getObjectFromOid(oid);\n\t\t\tpn.setId(oid);\n\n\t\t\tif (tree != null) {\n\t\t\t\tpn.setBTree(tree);\n\t\t\t}\n\t\t\t// Keep the node in memory\n\t\t\toids.put(oid, pn);\n\t\t\treturn pn;\n\t\t} catch (Exception e) {\n\t\t\tthrow new ODBRuntimeException(BTreeError.INTERNAL_ERROR, e);\n\t\t}\n\t}",
"com.google.protobuf.ByteString\n getFromBytes();",
"com.google.protobuf.ByteString\n getFromBytes();",
"public NetworkNode getNetworkNode(Integer id);",
"void loadNodeData(byte[] data) throws Exception;",
"@Override\n public Node getNode() throws ItemNotFoundException, ValueFormatException,\n RepositoryException {\n return null;\n }",
"public Object get(Class cl, Serializable id) throws HibException;",
"int getBaseNode();",
"public BinNode (E data)\n {\n this.data = data;\n left = null;\n right = null;\n }",
"public BaseBinaryDependencyElements getBaseBinaryDependencyAccess() {\n\t\treturn pBaseBinaryDependency;\n\t}",
"private RealDecisionTree deserialize(byte[] bytes){\n try {\n ObjectInputStream stream = new ObjectInputStream(new ByteArrayInputStream(bytes));\n RealDecisionTree tree = (RealDecisionTree)stream.readObject();\n return tree;\n } catch (IOException e) {\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n e.printStackTrace();\n }\n\n return null;\n }",
"public MyNode() {\r\n\t\tdefine(\"load\",new Integer(getID()),true);\r\n }",
"com.google.protobuf.ByteString\n getMemberOfBytes();",
"public Binary operator(Operator op) {\n\tBinary_c n = (Binary_c) copy();\n\tn.op = op;\n\treturn n;\n }",
"private BinaryTree() {\n root = new Node(0);\n }",
"public Byte getByteAttribute();",
"public Node readTree() {\n boolean totuusarvo = b.readBoolean();\n if (totuusarvo == true) {\n return new Node(b.readShort(), -1, null, null);\n } else {\n return new Node(\"9000\", -1, readTree(), readTree());\n }\n }",
"@Override\n\t\t\t\t\tpublic Node deserialize(InputStream input, Get get) {\n\t\t\t\t\t\treturn null;\n\t\t\t\t\t}",
"BType createBType();",
"private Node getChildById(String identifier)\r\n {\r\n Node result = null;\r\n\r\n result = convertNode(cmisSession.getObject(identifier));\r\n\r\n return result;\r\n }",
"Node(Byte value, int weight) {\n this.value = value;\n leftChild = null;\n rightChild = null;\n this.weight = weight;\n }",
"protected Bnet getBnet(int id) {\n\t\treturn bnetMap.get(id);\n\t}",
"public static BinaryExpression makeBinary(ExpressionType binaryType, Expression expression0, Expression expression1) { throw Extensions.todo(); }",
"public /*byte[]*/String BinaryCaster(Object item){\n String Sitem = Integer.toBinaryString((int)item);\n //byte[] b = new byte[Sitem.length()];\n //for(int i=0;i<Sitem.length();i++){\n // b[i] = (byte)Sitem.charAt(i);\n //}\n //return b;\n return Sitem;\n }",
"public CatalogNode getNode(String node);",
"public BPM getNode() {\n return BPMNode;\n }",
"public Node getNode(String name) {\n Node result = super.getNode(name);\n\n if (result == null) {\n byte type = gateClass.getPinType(name);\n int index = gateClass.getPinNumber(name);\n if (type == CompositeGateClass.INTERNAL_PIN_TYPE)\n result = internalPins[index];\n }\n\n return result;\n }",
"private BTNode createNode() {\n BTNode btNode;\n btNode = new <DataPair>BTNode ();\n btNode.mIsLeaf = true;\n btNode.mCurrentKeyNum = 0;\n return btNode;\n }",
"public BPGNode get(int in) {\n return in == 0 ? n1 : (in == 1 ? n2 : null);\n }",
"public Binary right(Expr right) {\n\tBinary_c n = (Binary_c) copy();\n\tn.right = right;\n\treturn n;\n }",
"public BrickStructure loadStructureFromBinaryFile(File file) {\n\t\tthrow new NullPointerException();\n\t}",
"public abstract byte getSubtype();",
"protected abstract T getValue(ByteBuffer b);",
"public NodeT getNode(String key) {\n return nodeTable.get(key);\n }",
"@Schema(description = \"target node of the connection\")\n public String getNodeB() {\n return nodeB;\n }",
"public Node getNode(Reference ref, Presentation presentation);",
"BInformation findOne(Long id);",
"private NodoBin<T> clonarAS(NodoBin<T> r){\t\t\t\t\n if(r==null)\n return r;\n else\n {\n NodoBin<T> aux=new NodoBin<T>(r.getInfo(), clonarAS(r.getIzq()), clonarAS(r.getDer()));\n return aux;\n }\n }",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public Node() {}",
"public Mass getFiberContent() throws ClassCastException;",
"public abstract byte read_octet();",
"public Log_Expr_BinaryElements getLog_Expr_BinaryAccess() {\n\t\treturn (pLog_Expr_Binary != null) ? pLog_Expr_Binary : (pLog_Expr_Binary = new Log_Expr_BinaryElements());\n\t}",
"Node getChild(String childID) throws IllegalAccessException;",
"public BinaryTreeNode(final E data) {\n this.data = data;\n }",
"public static BinaryExpression makeBinary(ExpressionType binaryType, Expression expression0, Expression expression1, boolean liftToNull, Method method, LambdaExpression lambdaExpression) { throw Extensions.todo(); }",
"public NetObject getObject();",
"public GraphicsNodeRable8Bit(GraphicsNode node) {\n/* 115 */ if (node == null) {\n/* 116 */ throw new IllegalArgumentException();\n/* */ }\n/* 118 */ this.node = node;\n/* 119 */ this.usePrimitivePaint = true;\n/* */ }",
"@Override\r\n\tpublic BinaryNodeInterface<E> copy() {\n\t\treturn null;\r\n\t}"
] |
[
"0.62943983",
"0.6072358",
"0.5974639",
"0.5888561",
"0.5798131",
"0.57963353",
"0.57962966",
"0.5790144",
"0.5763341",
"0.5758473",
"0.5724907",
"0.56284106",
"0.56013685",
"0.5585519",
"0.5585519",
"0.5558305",
"0.5552185",
"0.5549718",
"0.55393904",
"0.5537973",
"0.55149305",
"0.54912144",
"0.5472911",
"0.5469556",
"0.54289234",
"0.53637344",
"0.53621036",
"0.53621036",
"0.53575873",
"0.53046465",
"0.53045064",
"0.52663183",
"0.52537894",
"0.5243313",
"0.52295846",
"0.5203334",
"0.5191419",
"0.5183211",
"0.5177473",
"0.5175618",
"0.5138515",
"0.51173866",
"0.51120514",
"0.50925857",
"0.50789636",
"0.50679326",
"0.5064788",
"0.50606173",
"0.5040379",
"0.50348455",
"0.5028055",
"0.5028055",
"0.5021799",
"0.5018516",
"0.50174886",
"0.5011851",
"0.50028723",
"0.5001856",
"0.5001801",
"0.4987213",
"0.4986348",
"0.4985842",
"0.49839592",
"0.49799982",
"0.49793923",
"0.4976001",
"0.49743804",
"0.49725994",
"0.49622583",
"0.49594602",
"0.49567032",
"0.49544322",
"0.4945233",
"0.49432376",
"0.49429393",
"0.49403572",
"0.49388897",
"0.49348718",
"0.49300995",
"0.49268448",
"0.49264368",
"0.49194044",
"0.49179918",
"0.491518",
"0.49143243",
"0.49125656",
"0.49083585",
"0.49073982",
"0.49073982",
"0.49073982",
"0.49073982",
"0.49007297",
"0.49001235",
"0.4897778",
"0.4894575",
"0.48943108",
"0.4891543",
"0.48878512",
"0.48829144",
"0.4879004"
] |
0.7660368
|
0
|
Get the fixity results for the datastream as a RDF Dataset
|
RdfStream getFixityResultsModel(IdentifierTranslator subjects, FedoraBinary datastream);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void gerarRDF(Dataset dataset) throws SenseRDFException;",
"private static List<Supplier> createSupplierData(ConsumerQuery query, boolean testing) {\n\t\tRepository repository;\n\t\t\n\t\t//use name of processes in query to retrieve subset of relevant supplier data from semantic infrastructure\n\t\tList<String> processNames = new ArrayList<String>();\t\n\n\t\tif (query.getProcesses() == null || query.getProcesses().isEmpty()) {\n\t\t\tSystem.err.println(\"There are no processes specified!\");\n\t\t} else {\n\t\t\n\t\tfor (Process process : query.getProcesses()) {\n\t\t\tprocessNames.add(process.getName());\n\t\t}\n\t\t}\n\t\t\t\n\t\t\n\t\tlong startTime = System.currentTimeMillis();\n\n\t\tif (testing == false) {\n\n\t\t\tMap<String, String> headers = new HashMap<String, String>();\n\t\t\theaders.put(\"Authorization\", AUTHORISATION_TOKEN);\n\t\t\theaders.put(\"accept\", \"application/JSON\");\n\n\t\t\trepository = new SPARQLRepository(SPARQL_ENDPOINT );\n\n\t\t\trepository.initialize();\n\t\t\t((SPARQLRepository) repository).setAdditionalHttpHeaders(headers);\n\n\t\t} else {\n\n\t\t\t//connect to GraphDB\n\t\t\trepository = new HTTPRepository(GRAPHDB_SERVER, REPOSITORY_ID);\n\t\t\trepository.initialize();\n\t\t}\n\t\t\n\t\t//creates a SPARQL query that is run against the Semantic Infrastructure\n\t\tString strQuery = SparqlQuery.createQueryMVP(processNames);\n\t\t\n\t\t//System.out.println(strQuery);\n\n\t\t//open connection to GraphDB and run SPARQL query\n\t\tSet<SparqlRecord> recordSet = new HashSet<SparqlRecord>();\n\t\tSparqlRecord record;\n\t\ttry(RepositoryConnection conn = repository.getConnection()) {\n\n\t\t\tTupleQuery tupleQuery = conn.prepareTupleQuery(QueryLanguage.SPARQL, strQuery);\t\t\n\n\t\t\t//if querying the local KB, we need to set setIncludeInferred to false, otherwise inference will include irrelevant results.\n\t\t\t//when querying the Semantic Infrastructure the non-inference is set in the http parameters.\n\t\t\tif (testing == true) {\n\t\t\t\t//do not include inferred statements from the KB\n\t\t\t\ttupleQuery.setIncludeInferred(false);\n\t\t\t}\n\n\t\t\ttry (TupleQueryResult result = tupleQuery.evaluate()) {\t\t\t\n\n\t\t\t\twhile (result.hasNext()) {\n\n\t\t\t\t\tBindingSet solution = result.next();\n\n\t\t\t\t\t//omit the NamedIndividual types from the query result\n\t\t\t\t\tif (!solution.getValue(\"processType\").stringValue().equals(\"http://www.w3.org/2002/07/owl#NamedIndividual\")\n\t\t\t\t\t\t\t&& !solution.getValue(\"certificationType\").stringValue().equals(\"http://www.w3.org/2002/07/owl#NamedIndividual\")\n\t\t\t\t\t\t\t&& !solution.getValue(\"materialType\").stringValue().equals(\"http://www.w3.org/2002/07/owl#NamedIndividual\")) {\n\n\t\t\t\t\t\trecord = new SparqlRecord();\n\t\t\t\t\t\trecord.setSupplierId(solution.getValue(\"supplierId\").stringValue().replaceAll(\"\\\\s+\",\"\"));\n\t\t\t\t\t\trecord.setProcess(stripIRI(solution.getValue(\"processType\").stringValue().replaceAll(\"\\\\s+\",\"\")));\n\t\t\t\t\t\trecord.setMaterial(stripIRI(solution.getValue(\"materialType\").stringValue().replaceAll(\"\\\\s+\",\"\")));\n\t\t\t\t\t\trecord.setCertification(stripIRI(solution.getValue(\"certificationType\").stringValue().replaceAll(\"\\\\s+\",\"\")));\n\n\t\t\t\t\t\trecordSet.add(record);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\n\t\t\t}\tcatch (Exception e) {\n\t\t\t\tSystem.err.println(e.getMessage());\n\t\t\t\tSystem.err.println(\"Wrong test data!\");\n\t\t\t}\n\t\t\t\n\n\t\t\t\n\n\t\t}\n\n\t\t//close connection to KB repository\n\t\trepository.shutDown();\n\n\t\tlong stopTime = System.currentTimeMillis();\n\t\tlong elapsedTime = stopTime - startTime;\n\n\t\tif (testing == true ) {\n\t\tSystem.out.println(\"The SPARQL querying process took \" + elapsedTime/1000 + \" seconds.\");\n\t\t}\n\n\t\t//get unique supplier ids used for constructing the supplier structure below\n\t\tSet<String> supplierIds = new HashSet<String>();\n\t\tfor (SparqlRecord sr : recordSet) {\n\t\t\tsupplierIds.add(sr.getSupplierId());\n\t\t}\n\n\t\tCertification certification = null;\n\t\tSupplier supplier = null;\n\t\tList<Supplier> suppliersList = new ArrayList<Supplier>();\n\n\t\t//create a map of processes and materials relevant for each supplier\n\t\tMap<String, SetMultimap<Object, Object>> multimap = new HashMap<String, SetMultimap<Object, Object>>();\n\n\t\tfor (String id : supplierIds) {\n\t\t\tSetMultimap<Object, Object> map = HashMultimap.create();\n\n\t\t\tString supplierID = null;\n\n\t\t\tfor (SparqlRecord sr : recordSet) {\n\n\t\t\t\tif (sr.getSupplierId().equals(id)) {\n\n\t\t\t\t\tmap.put(sr.getProcess(), sr.getMaterial());\n\n\t\t\t\t\tsupplierID = sr.getSupplierId();\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tmultimap.put(supplierID, map);\n\t\t}\t\t\n\n\t\tProcess process = null;\n\n\t\t//create supplier objects (supplier id, processes (including materials) and certifications) based on the multimap created in the previous step\n\t\tfor (String id : supplierIds) {\n\t\t\tSetMultimap<Object, Object> processAndMaterialMap = null;\n\n\t\t\tList<Certification> certifications = new ArrayList<Certification>();\n\t\t\tList<Process> processes = new ArrayList<Process>();\t\t\n\n\t\t\tfor (SparqlRecord sr : recordSet) {\n\n\t\t\t\tif (sr.getSupplierId().equals(id)) {\n\n\t\t\t\t\t//add certifications\n\t\t\t\t\tcertification = new Certification(sr.getCertification());\n\t\t\t\t\tif (!certifications.contains(certification)) {\n\t\t\t\t\t\tcertifications.add(certification);\n\t\t\t\t\t}\n\n\t\t\t\t\t//add processes and associated materials\n\t\t\t\t\tprocessAndMaterialMap = multimap.get(sr.getSupplierId());\n\n\t\t\t\t\tString processName = null;\n\n\t\t\t\t\tSet<Object> list = new HashSet<Object>();\n\n\t\t\t\t\t//iterate processAndMaterialMap and extract process and relevant materials for that process\n\t\t\t\t\tfor (Entry<Object, Collection<Object>> e : processAndMaterialMap.asMap().entrySet()) {\n\n\t\t\t\t\t\tSet<Material> materialsSet = new HashSet<Material>();\n\n\t\t\t\t\t\t//get list/set of materials\n\t\t\t\t\t\tlist = new HashSet<>(e.getValue());\n\n\t\t\t\t\t\t//transform to Set<Material>\n\t\t\t\t\t\tfor (Object o : list) {\n\t\t\t\t\t\t\tmaterialsSet.add(new Material((String)o));\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tprocessName = (String) e.getKey();\n\n\t\t\t\t\t\t//add relevant set of materials together with process name\n\t\t\t\t\t\tprocess = new Process(processName, materialsSet);\n\n\t\t\t\t\t\t//add processes\n\t\t\t\t\t\tif (!processes.contains(process)) {\n\t\t\t\t\t\t\tprocesses.add(process);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\n\t\t\t\t\tsupplier = new Supplier(id, processes, certifications );\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tsuppliersList.add(supplier);\n\t\t}\n\n\t\treturn suppliersList;\n\n\t}",
"public String getDataONERDF(){\n\t\tString rdfString = \"\";\n\n\t\t// should be getting this from headerStrings ... but would\n\t\t// have to consolidate dups\n\t\t/////////////////////////////////////////////////////////////\n\t\tfor(Iterator<DryadDataSet> i = _datasets.iterator(); i.hasNext();){\n\t\t\tDryadDataSet d = (DryadDataSet)i.next();\n\t\t\trdfString+= d.getRDFString();\n\t\t}\n\t\t\n\t\treturn rdfString;\n\t}",
"public void extrairMetadados(Dataset dataset) throws SenseRDFException;",
"public Resolution rdf() {\r\n try {\r\n vocabularyFolder = vocabularyService.getVocabularyFolder(vocabularyFolder.getIdentifier(), false);\r\n initFilter();\r\n filter.setUsePaging(false);\r\n List<? extends VocabularyConcept> concepts = null;\r\n if (vocabularyFolder.isSiteCodeType()) {\r\n SiteCodeFilter siteCodeFilter = new SiteCodeFilter();\r\n siteCodeFilter.setUsePaging(false);\r\n concepts = siteCodeService.searchSiteCodes(siteCodeFilter).getList();\r\n } else {\r\n concepts = vocabularyService.searchVocabularyConcepts(filter).getList();\r\n }\r\n \r\n final List<? extends VocabularyConcept> finalConcepts = concepts;\r\n \r\n if (vocabularyFolder.isDraftStatus()) {\r\n throw new RuntimeException(\"Vocabulary is not in released or public draft status.\");\r\n }\r\n \r\n final String contextRoot =\r\n StringUtils.isNotEmpty(vocabularyFolder.getBaseUri()) ? vocabularyFolder.getBaseUri() : Props\r\n .getRequiredProperty(PropsIF.DD_URL) + \"/vocabularies/\" + vocabularyFolder.getIdentifier() + \"/\";\r\n \r\n StreamingResolution result = new StreamingResolution(\"application/rdf+xml\") {\r\n @Override\r\n public void stream(HttpServletResponse response) throws Exception {\r\n VocabularyXmlWriter xmlWriter =\r\n new VocabularyXmlWriter(response.getOutputStream(), contextRoot, vocabularyFolder, finalConcepts);\r\n xmlWriter.writeManifestXml();\r\n }\r\n };\r\n return result;\r\n } catch (Exception e) {\r\n LOGGER.error(\"Failed to output vocabulary RDF data\", e);\r\n ErrorResolution error = new ErrorResolution(HttpURLConnection.HTTP_INTERNAL_ERROR);\r\n error.setErrorMessage(e.getMessage());\r\n return error;\r\n }\r\n }",
"public String getDryadCloudRDF(){\n\t\tString rdfString = _RDF_HEADER + \"\\n\";\n\n\t\t// should be getting this from headerStrings ... but would\n\t\t// have to consolidate dups\n\t\t/////////////////////////////////////////////////////////////\n\t\tfor(Iterator<DryadDataSet> i = _datasets.iterator(); i.hasNext();){\n\t\t\tDryadDataSet d = (DryadDataSet)i.next();\n\t\t\trdfString+= d.getRDFString();\n\t\t}\n\t\trdfString+=\"</rdf:RDF>\\n\";\n\t\t\n\t\treturn rdfString;\n\t}",
"public void gerarRDF() throws SenseRDFException;",
"public org.eclipse.stardust.engine.api.runtime.DataQueryResult\n getAllData(org.eclipse.stardust.engine.api.query.DataQuery query)\n throws org.eclipse.stardust.common.error.WorkflowException;",
"Datastream asDatastream(Node node) throws ResourceTypeException;",
"DataFactory getDataFactory();",
"@org.junit.Test\n\tpublic void testRDF_NOTOX() throws Exception {\n\t\tString file = \"D:/src-toxbank/isa-tab-files/NOTOX-APAP-Tx 12-nov-2013/NOTOX-APAP-Tx\";\n\t\t//String file = \"D:/src-toxbank/isa-tab-files/NOTOX-APAP-Ex 12-nov-2013/NOTOX-APAP-Ex\";\n\t\t//String file = \"D:/src-toxbank/isa-tab-files/NOTOX-APAP-Px 12-nov-2013/NOTOX-APAP-Px\";\n\t\t//String file = \"D:/src-toxbank/isa-tab-files/NOTOX-APAP-Ex_archive 6-dec-2013\";\n\t\t//String file = \"D:/src-toxbank/isa-tab-files/TG-GATES_archive\";\n\t\t//String file = \"D:/src-toxbank/isa-tab-files/D-IMU-1_archive\";\n\t\t\n\t\tModel model = testRDF(new File(file));\n\t\t\n\t\t\n\t\t//Model model = testRDF(\"toxbank//LCMSMS_archive\");\n\t\ttestKeywords(model, 4);\n\t\t//testTitleAndAbstract(model);\n\t\t//testToxBankResources(model,1);\n\t\t//testRetrieveAllToxbankProtocols(model);\n\t\t//testRetrieveAllProtocols(model,10);\n\t\t//testRetrieveAllStudiesAndProtocols(model);\n\t\t//testToxbankHasProtocol(model,11);\n\t\t//testToxbankHasAuthor(model,1);\n\t\t//testToxbankHasProject(model,1);\n\t\t//JsonNode root = testGraph(model, 14,\"toxbank//NOTOX-APAP-Tx\");\n\t\t//model.write(System.out,\"N3\");\n\t\tmodel.close();\n\t}",
"@java.lang.Override\n public com.clarifai.grpc.api.Dataset getDataset() {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }",
"public String asDublinCore(ApplicationConfiguration cfg, HttpClientRequest http) throws Exception {\n\n String url = this.getResourceUrl();\n\n String tmp;\n StringBuilder sb = new StringBuilder();\n sb.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n sb.append(\"\\r<rdf:RDF\");\n sb.append(\" xmlns:rdf=\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"\");\n sb.append(\" xmlns:dc=\\\"http://purl.org/dc/elements/1.1/\\\"\");\n sb.append(\" xmlns:dct=\\\"http://purl.org/dc/terms/\\\"\");\n sb.append(\" xmlns:dcmiBox=\\\"http://dublincore.org/documents/2000/07/11/dcmi-box/\\\"\");\n sb.append(\" xmlns:ows=\\\"http://www.opengis.net/ows\\\"\");\n sb.append(\">\");\n sb.append(\"\\r<rdf:Description\");\n if (url.length() > 0) {\n sb.append(\" rdf:about=\\\"\").append(Val.escapeXml(url)).append(\"\\\"\");\n }\n sb.append(\">\");\n\n // identifier\n if (url.length() > 0) {\n sb.append(\"\\r<dc:identifier>\").append(Val.escapeXml(url)).append(\"</dc:identifier>\");\n }\n\n // title, description, creator\n tmp = Val.chkStr(this.getName());\n if (tmp.length() > 0) {\n sb.append(\"\\r<dc:title>\").append(Val.escapeXml(tmp)).append(\"</dc:title>\");\n }\n tmp = Val.chkStr(this.getDescription());\n if (tmp.length() > 0) {\n sb.append(\"\\r<dc:description>\").append(Val.escapeXml(tmp)).append(\"</dc:description>\");\n }\n tmp = Val.chkStr(this.getCreator());\n if (tmp.length() > 0) {\n sb.append(\"\\r<dc:creator>\").append(Val.escapeXml(tmp)).append(\"</dc:creator>\");\n }\n\n // dc:format (mime-type)\n // dc:type ??\n // dc:date ??\n // dct:alternative alternative name for the resource\n // resource url\n if (url.length() > 0) {\n //scheme = \"urn:x-esri:specification:ServiceType:ArcIMS:Metadata:Server\";\n String scheme = \"urn:x-esri:specification:ServiceType:ArcGIS\";\n tmp = Val.chkStr(this.getParentType());\n if (tmp.length() > 0) {\n scheme += \":\" + tmp;\n }\n tmp = Val.chkStr(this.getType());\n if (tmp.length() > 0) {\n scheme += \":\" + tmp;\n }\n sb.append(\"\\r<dct:references\");\n sb.append(\" scheme=\\\"\").append(Val.escapeXml(scheme)).append(\"\\\">\");\n sb.append(Val.escapeXml(url)).append(\"</dct:references>\");\n }\n\n // thumbnail url\n tmp = Val.chkStr(this.getThumbnailUrl());\n if (tmp.length() > 0) {\n String scheme = \"urn:x-esri:specification:ServiceType:ArcIMS:Metadata:Thumbnail\";\n sb.append(\"\\r<dct:references\");\n sb.append(\" scheme=\\\"\").append(Val.escapeXml(scheme)).append(\"\\\">\");\n sb.append(Val.escapeXml(tmp)).append(\"</dct:references>\");\n }\n\n // keywords\n for (String keyword : this.getKeywords()) {\n sb.append(\"\\r<dc:subject>\").append(Val.escapeXml(keyword)).append(\"</dc:subject>\");\n }\n\n // envelope\n EnvelopeValidator validator = new EnvelopeValidator();\n double[] env = validator.validateEnvelope(cfg, http, this.getEnvelope());\n if (env != null) {\n String lower = env[0] + \" \" + env[1];\n String upper = env[2] + \" \" + env[3];\n sb.append(\"\\r<ows:WGS84BoundingBox>\");\n sb.append(\"\\r<ows:LowerCorner>\").append(Val.escapeXml(lower)).append(\"</ows:LowerCorner>\");\n sb.append(\"\\r<ows:UpperCorner>\").append(Val.escapeXml(upper)).append(\"</ows:UpperCorner>\");\n sb.append(\"\\r</ows:WGS84BoundingBox>\");\n }\n\n // RDF pairs\n if (this.getRDFPairs().size() > 0) {\n sb.append(\"\\r<dct:abstract>\");\n for (Map.Entry<String, RDFPair> entry : this.getRDFPairs().entrySet()) {\n RDFPair rdfPair = entry.getValue();\n for (String rdfValue : rdfPair.getValues()) {\n sb.append(\"\\r<rdf:value\");\n sb.append(\" rdf:resource=\\\"\").append(rdfPair.getPredicate()).append(\"\\\">\");\n sb.append(Val.escapeXml(rdfValue));\n sb.append(\"\\r</rdf:value>\");\n }\n }\n sb.append(\"\\r</dct:abstract>\");\n }\n sb.append(\"\\r</rdf:Description>\");\n sb.append(\"\\r</rdf:RDF>\");\n\n // TODO : logging here?\n //System.err.println(sb.toString());\n return sb.toString();\n\n }",
"private RDFPairs getRDFPairs() {\n return this.rdfPairs;\n }",
"@Test\n public void testRun() {\n System.out.println(\"run\");\n FluorescenceImporter importer = null;\n try {\n FluorescenceFixture tf = new FluorescenceFixture();\n importer = new FluorescenceImporter(tf.testData());\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Importing dataset\");\n importer.setProgressHandle(ph);\n \n importer.run();\n } catch (IOException ex) {\n Exceptions.printStackTrace(ex);\n }\n \n //FluorescenceDataset dataset = importer.getDataset();\n Dataset<? extends Instance> plate = importer.getDataset();\n System.out.println(\"inst A1 \"+ plate.instance(0).toString());\n System.out.println(\"plate \"+plate.toString());\n Dataset<Instance> output = new SampleDataset<Instance>();\n output.setParent((Dataset<Instance>) plate);\n ProgressHandle ph = ProgressHandleFactory.createHandle(\"Analyzing dataset\");\n // AnalyzeRunner instance = new AnalyzeRunner((Timeseries<ContinuousInstance>) plate, output, ph);\n // instance.run();\n \n }",
"private InputStream runSparqlQuery(String query) throws IOException {\n\t\ttry {\n\t\t\tString queryString = \"query=\" + URLEncoder.encode(query, \"UTF-8\")\n\t\t\t\t\t+ \"&format=json\";\n\t\t\tURL url = new URL(\"https://query.wikidata.org/sparql?\"\n\t\t\t\t\t+ queryString);\n\t\t\tHttpURLConnection connection = (HttpURLConnection) url\n\t\t\t\t\t.openConnection();\n\t\t\tconnection.setRequestMethod(\"GET\");\n\n\t\t\treturn connection.getInputStream();\n\t\t} catch (UnsupportedEncodingException | MalformedURLException e) {\n\t\t\tthrow new RuntimeException(e.getMessage(), e);\n\t\t}\n\t}",
"@Test\n\tpublic void testSparqlQuery() throws OWLOntologyCreationException,\n\t\t\tIOException {\n\t\tInputStream ontStream = LDLPReasonerTest.class\n\t\t\t\t.getResourceAsStream(\"/data/university0-0.owl\");\n\t\tOWLOntologyManager manager = OWLManager.createOWLOntologyManager();\n\t\tOWLOntology ontology = manager\n\t\t\t\t.loadOntologyFromOntologyDocument(ontStream);\n\n\t\tInputStream queryStream = LDLPReasonerTest.class\n\t\t\t\t.getResourceAsStream(\"/data/lubm-query4.sparql\");\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tqueryStream));\n\t\tString line;\n\t\tString queryText = \"\";\n\t\twhile ((line = reader.readLine()) != null) {\n\t\t\tqueryText = queryText + line + \"\\n\";\n\t\t}\n\n\t\tQuery query = QueryFactory.create(queryText, Syntax.syntaxARQ);\n\t\tLDLPReasoner reasoner = new LDLPReasoner(ontology);\n\t\tList<Literal> results = reasoner.executeQuery(query);\n\t\tSystem.out.println(results.size() + \" answers :\");\n\t\tfor (Literal result : results) {\n\t\t\tSystem.out.println(result);\n\t\t}\n\t\tLDLPCompilerManager m = LDLPCompilerManager.getInstance();\n\n\t\t// m.dump();\n\n\t}",
"public List<Dataset> getDatasets();",
"private void readResultSet() throws IOException {\n\n\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\t(new InputStreamReader(new FileInputStream(new File(\"./thrash/\" + fileName)), \"ISO-8859-1\")));\n\n\t\tString line = reader.readLine();\n\n\t\twhile (line != null) {\n\n\t\t\tString rate = line.split(\"rate=\")[1].trim();\n\t\t\tString label = line.split(\"[0-9]\\\\.[0-9]\")[0].trim();\n//\t\t\tString googleDescription = line.split(\"googleDescription=\")[1].split(\"score\")[0].trim();\n\t\t\tString score = line.split(\"score=\")[1].split(\"rate=\")[0].trim();\n\n\t\t\tSpatialObject obj = new SpatialObject(label, Double.parseDouble(rate), Double.parseDouble(score));\n//\t\t\tSystem.out.println(\"Label: \" + label);\n//\t\t\tSystem.out.println(\"Rate: \" + rate);\n//\t\t\tSystem.out.println(\"Score: \" + score);\n//\t\t\tSpatialObject idealObj = new SpatialObject(googleDescription, Double.parseDouble(rate), Double.parseDouble(rate));\n\t\t\tSpatialObject idealObj = new SpatialObject(label, Double.parseDouble(rate), Double.parseDouble(rate));\n\n\t\t\tresults.add(obj);\n\t\t\tidealResults.add(idealObj);\n\n\t\t\tline = reader.readLine();\n\t\t}\n\n\t\treader.close();\n\t}",
"public SPARQL() {\n initComponents();\n \n model = ModelFactory.createOntologyModel(OntModelSpec.OWL_LITE_MEM_RDFS_INF);\n model.setDynamicImports(true);\n model.read(\"file:\"+\"data/ontologies/Papers_Ready.owl\", \"http://www.l3g.pl/ontologies/OntoBeef/Papers.owl\", \"N-TRIPLE\");\n model.loadImports();\n \n for (Individual i : model.listIndividuals(model.getOntClass(\"http://www.l3g.pl/ontologies/OntoBeef/Conceptualisation.owl#Category\")).toSet())\n {\n System.out.println(i.listLabels(null).toSet());\n }\n }",
"@Test\n public void singleFilterEnsuresUniqueResults() {\n final Dataset dataset = new Dataset(\"TEST1\", \"sql\", new Filter(\"test-filter\"));\n\n List<String> entry1 = new ArrayList<>();\n entry1.add(\"abcd\");\n entry1.add(\"123\");\n\n List<String> entry2 = new ArrayList<>();\n entry2.add(\"wxyz\");\n entry2.add(\"789\");\n\n List<String> entry3 = new ArrayList<>();\n entry3.add(\"wxyz\"); // same key as entry2\n entry3.add(\"456\");\n\n List<String> entry4 = new ArrayList<>();\n entry4.add(\"efgh\");\n entry4.add(\"001\");\n\n List<List<String>> queryResults = new ArrayList<>();\n queryResults.add(entry1);\n queryResults.add(entry2);\n queryResults.add(entry3);\n queryResults.add(entry4);\n\n // given\n dataset.populateCache(queryResults, 100L);\n\n // when\n List<String> result1 = dataset.getCachedResult();\n List<String> result2 = dataset.getCachedResult();\n List<String> result3 = dataset.getCachedResult();\n\n // then\n assertEquals(\"Wrong result 1\", entry1, result1);\n assertEquals(\"Wrong result 2\", entry2, result2);\n assertEquals(\"Wrong result 3\", entry4, result3); // ignores entry 3, returns entry 4\n\n // and\n try {\n dataset.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST1\", ex.getMessage());\n }\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(100L), dataset.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(4), dataset.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.of(1), dataset.getMetrics().getFilteredOut());\n }",
"public void testWriteRDF() {\n\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.is_a(),NEURON), \"subclass\");\n\n\t\trunQuery(new LinkQueryTerm(MELANOCYTE),\"any link\");\n\t\t\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.part_of(),MELANOCYTE),\"part_of (class)\");\n\t\t\n\t\trunQuery(new LinkQueryTerm(relationVocabulary.inheres_in(),\tnew LinkQueryTerm(relationVocabulary.part_of(),HUMAN_EYE)),\"phenotype in some part of the eye\");\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(MELANOCYTE),\"anything annotated to melanocyte\");\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(new LinkQueryTerm(relationVocabulary.inheres_in(),\tMELANOCYTE)),\"anything annotated to a melanocyte phenotype\");\n\t\t\n\t\tQueryTerm classQt =\tnew BooleanQueryTerm(new LinkQueryTerm(relationVocabulary.inheres_in(),NEURON),\tnew LinkQueryTerm(relationVocabulary.inheres_in(),BEHAVIOR));\n\t\t\n\t\trunQuery(new AnnotationLinkQueryTerm(classQt),\"boolean query\");\n\n\n\t}",
"@Test\n public void sharedFilterEnsuresUniqueResults() {\n Filter filter = new Filter(\"test-filter\");\n final Dataset dataset1 = new Dataset(\"TEST1\", \"sql\", filter);\n final Dataset dataset2 = new Dataset(\"TEST2\", \"sql2\", filter); // shared same filter\n\n List<String> entry1 = new ArrayList<>();\n entry1.add(\"001\");\n entry1.add(\"aaa\");\n\n List<String> entry2 = new ArrayList<>();\n entry2.add(\"002\");\n entry2.add(\"bbb\");\n\n List<String> entry3 = new ArrayList<>();\n entry3.add(\"003\");\n entry3.add(\"ccc\");\n\n List<String> entry4 = new ArrayList<>();\n entry4.add(\"004\");\n entry4.add(\"ddd\");\n\n List<List<String>> queryResults1 = new ArrayList<>();\n queryResults1.add(entry1);\n queryResults1.add(entry2);\n queryResults1.add(entry3);\n queryResults1.add(entry4);\n\n List<String> entry5 = new ArrayList<>();\n entry5.add(\"005\"); // different\n entry5.add(\"eee\");\n\n List<String> entry6 = new ArrayList<>();\n entry6.add(\"002\"); // same\n entry6.add(\"bbb\");\n\n List<String> entry7 = new ArrayList<>();\n entry7.add(\"007\"); // different\n entry7.add(\"fff\");\n\n List<String> entry8 = new ArrayList<>();\n entry8.add(\"004\"); // same\n entry8.add(\"ddd\");\n\n List<List<String>> queryResults2 = new ArrayList<>();\n queryResults2.add(entry5);\n queryResults2.add(entry6);\n queryResults2.add(entry7);\n queryResults2.add(entry8);\n\n // given\n dataset1.populateCache(queryResults1, 200L);\n dataset2.populateCache(queryResults2, 300L);\n\n // when\n final List<String> result1 = dataset1.getCachedResult();\n final List<String> result2 = dataset1.getCachedResult();\n final List<String> result3 = dataset1.getCachedResult();\n final List<String> result4 = dataset1.getCachedResult();\n final List<String> result5 = dataset2.getCachedResult();\n final List<String> result6 = dataset2.getCachedResult();\n\n // then\n assertEquals(\"Wrong result 1\", entry1, result1); // first datset is as-is\n assertEquals(\"Wrong result 2\", entry2, result2); // first datset is as-is\n assertEquals(\"Wrong result 3\", entry3, result3); // first datset is as-is\n assertEquals(\"Wrong result 4\", entry4, result4); // first datset is as-is\n assertEquals(\"Wrong result 3\", entry5, result5); // second datset, not filtered out\n assertEquals(\"Wrong result 3\", entry7, result6); // second dataset, entry6 is filtered out\n\n // and\n try {\n dataset1.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST1\", ex.getMessage());\n }\n\n try {\n // entry7 should be filtered out, resulting in no more data\n dataset2.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST2\", ex.getMessage());\n }\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset1.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(200L), dataset1.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(5), dataset1.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.empty(), dataset1.getMetrics().getFilteredOut());\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset2.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(300L), dataset2.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(3), dataset2.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.of(2), dataset2.getMetrics().getFilteredOut());\n }",
"private IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\tFile file = new File(\"src/test/resources/tipo_identificacion.xml\");\r\n\t\tIDataSet dataSet = new FlatXmlDataSet(file);\r\n\t\treturn dataSet;\r\n\t}",
"@java.lang.Override\n public com.clarifai.grpc.api.Dataset getDataset() {\n if (datasetBuilder_ == null) {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n } else {\n if (inputSourceCase_ == 11) {\n return datasetBuilder_.getMessage();\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }\n }",
"public static ParsedData arffFileReader(File file) throws Exception {\n\n ParsedData data;\n String line = null;\n BufferedReader br = new BufferedReader(new FileReader(file));\n\n ArrayList<Attribute> attributes = new ArrayList<>();\n boolean attributeTest = true;\n int attributeNumber = 0;\n ArrayList<String> datasetList = new ArrayList<>();\n String relName = \"\";\n\n int rows = 0;\n int columns = 0;\n\n while ((line = br.readLine()) != null) {\n\n line = line.trim();\n\n if (attributeTest) {\n if(line.startsWith(\"@relation\")){\n relName = line.split(\" \")[1];\n }\n\n if (line.startsWith(\"@attribute\")) {\n attributes.add(parseAttribute(line, attributeNumber));\n attributeNumber++;\n }\n } else {\n String[] instance = parseInstance(line);\n if(instance.length != attributes.size()) {\n System.out.println(\"Skip illegal line: \" + Utils.concatStringArray(instance));\n continue;\n }\n for (int i = 0; i < instance.length; i++) {\n datasetList.add(instance[i]);\n }\n rows++;\n }\n if (line.startsWith(\"@data\")) {\n attributeTest = false;\n }\n\n }\n columns = attributes.size();\n\n String[] datasetArray = new String[datasetList.size()];\n for (int i = 0; i < datasetList.size(); i++) {\n datasetArray[i] = datasetList.get(i);\n }\n\n DataSet dataset = new DataSet(datasetArray, rows, columns);\n data = new ParsedData(dataset, attributes, relName);\n return data;\n\n }",
"double ComputeRF(individual st){\n\t\tdouble sum = 0.0,t;\n\t\tdouble[] tm;\n\t\tint i;\n\t\tint tp, tn, fp, fn;\n\n\t\t\n\t\ttp=0;\n\t\ttn=0;\n\t\tfp=0;\n\t\tfn=0;\n\t\t\n\t\ttm=ComputeNew(st.chrom);\n\t\tst.semanticTraining=tm;\n\t\tfor(i = 0; i < NUMFITCASE; i++) {\t\t\n\t\t\tt = PVAL(tm[i]);\t\n//\t\t\tSystem.out.println(\"T: \"+t);\n\t\t\tif(t<0) {\n\t\t\t\t\n\t\t\t\tif(fitcase[i].y<=0) {\n\t\t\t\t\ttn++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfn++;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tif(fitcase[i].y<=0) {\n\t\t\t\t\tfp++;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\ttp++;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\t\n\t\t}\n\t\tif((tn+tp) == NUMFITCASE) SuccPredicate = TRUE;\n\t\tsum=fn+fp;\n\t\tsum=sum/NUMFITCASE;\n\t\t\n\t\t\n\t\treturn sum;\n\t}",
"DataStreamApi getDataStreamApi();",
"public static void DatasetAndQueryToFiles(double d, double e) throws IOException {\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch1.dat\");\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch2.dat\");\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch3.dat\");\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch4.dat\");\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch5.dat\");\r\n\t\tReadInDataset.readDATFile(\"C:/Users/pigko/Downloads/driftdataset/batch6.dat\");\r\n\t\tReadInDataset.findMinAndMax();\r\n\t\tReadInDataset.finalizeDataset();\r\n\t\tReadInDataset.writeToFile2(\"FinalDataset\"+\".arff\",ReadInDataset.finalDataset); //write down the used dataset\r\n\t\tquery=assignScoreToQueries(); //assign the scores to queries\r\n\t\ttrainQueries=takeTrainingQuerySet(query,d);\r\n\t\ttestQueries=takeTestingQuerySet(query,e,d);\r\n\t\tscoreToFile(Queries.NumberOfDimensions, trainQueries, \"TrainScoreSet.arff\"); //write down the queries with the scores\r\n\t\tscoreToFile(Queries.NumberOfDimensions, testQueries, \"TestScoreSet.arff\"); //write down the queries with the scores\r\n\t//\tqueryAndDataToCSV(); // this produces a graph with both queries and the dataset, not needded right now\r\n\t\twriteQueriesToCSV(testQueries, \"test\"); \r\n\t\twriteQueriesToCSV(trainQueries, \"train\"); \r\n\t}",
"@Override\n\tpublic Double metricValue() {\n\t\tthis.totalSampleSize = (int) Math.min(MAX_FQURIS_PER_TLD, (Math.round((double) totalURIs * POPULATION_PERCENTAGE)));\n\t\tList<String> lstUrisToDeref = new ArrayList<String>(totalSampleSize);\t\n\n\t\t\n\t\tfor(Tld tld : this.tldsReservoir.getItems()){\n\t\t\t//Work out ratio for the number of maximum TLDs in Reservior\n//\t\t\tdouble totalRatio = ((double) tldCount.get(tld.getUri())) * POPULATION_PERCENTAGE; // ratio between the total number of URIs of a TLD in a dataset against the overall total number of URIs\n//\t\t\tdouble representativeRatio = totalRatio / ((double) totalURIs * POPULATION_PERCENTAGE); // the ratio of the URIs of a TLD against the population sample for all URIs in a dataset\n//\t\t\tlong maxRepresentativeSample = Math.round(representativeRatio * (double) MAX_FQURIS_PER_TLD); // how big should the final reservior for a TLD be wrt the representative ratio\n\t\t\t\n\t\t\tlong maxRepresentativeSample = Math.round(((double) this.totalSampleSize / (double) totalURIs) * ((double) tldCount.get(tld.getUri())));\n\t\t\t// Re-sample the sample to have the final representative sample\n\t\t\tif (maxRepresentativeSample > 0){\n\t\t\t\tReservoirSampler<String> _tmpRes = new ReservoirSampler<String>((int)maxRepresentativeSample, true);\n\t\t\t\n\t\t\t\tfor(String uri : tld.getfqUris().getItems()){\n\t\t\t\t\t_tmpRes.add(uri);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tlstUrisToDeref.addAll(_tmpRes.getItems());\n\t\t\t}\n\t\t}\n\t\tdouble metricValue = 0.0;\n\t\t\n\t\tthis.totalNumberOfURIs = (lstUrisToDeref.size() + this.nonSemanticResources);\n\t\t\n\t\tthis.totalCorrectReportedTypes = this.checkForMisreportedContentType(lstUrisToDeref);\n\t\tmetricValue = (double)this.totalCorrectReportedTypes / this.totalNumberOfURIs;\n\t\t\n\t\treturn metricValue;\n\t}",
"private IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\tFile file = new File(\"src/test/resources/lote.xml\");\r\n\t\tIDataSet dataSet = new FlatXmlDataSet(file);\r\n\t\treturn dataSet;\r\n\t}",
"public void getData(fyiReporting.RDL.Report rpt, String xmlData, Fields flds, Filters f) throws Exception {\n Rows uData = this.getMyUserData(rpt);\n if (uData != null)\n {\n this.setMyData(rpt,uData);\n return ;\n }\n \n int fieldCount = flds.getItems().Count;\n XmlDocument doc = new XmlDocument();\n doc.PreserveWhitespace = false;\n doc.LoadXml(xmlData);\n XmlNode xNode = new XmlNode();\n xNode = doc.LastChild;\n if (xNode == null || !(StringSupport.equals(xNode.Name, \"Rows\") || StringSupport.equals(xNode.Name, \"fyi:Rows\")))\n {\n throw new Exception(\"Error: XML Data must contain top level rows.\");\n }\n \n Rows _Data = new Rows(rpt,null,null,null);\n List<Row> ar = new List<Row>();\n _Data.setData(ar);\n int rowCount = 0;\n for (Object __dummyForeachVar4 : xNode.ChildNodes)\n {\n XmlNode xNodeRow = (XmlNode)__dummyForeachVar4;\n if (xNodeRow.NodeType != XmlNodeType.Element)\n continue;\n \n if (!StringSupport.equals(xNodeRow.Name, \"Row\"))\n continue;\n \n Row or = new Row(_Data,fieldCount);\n for (Object __dummyForeachVar3 : xNodeRow.ChildNodes)\n {\n XmlNode xNodeColumn = (XmlNode)__dummyForeachVar3;\n Field fld = (Field)(flds.getItems()[xNodeColumn.Name]);\n // Find the column\n if (fld == null)\n continue;\n \n // Extraneous data is ignored\n TypeCode tc = fld.getqColumn() != null ? fld.getqColumn().getcolType() : fld.getType();\n if (xNodeColumn.InnerText == null || xNodeColumn.InnerText.Length == 0)\n or.getData()[fld.getColumnNumber()] = null;\n else if (tc == TypeCode.String)\n or.getData()[fld.getColumnNumber()] = xNodeColumn.InnerText;\n else\n {\n try\n {\n or.getData()[fld.getColumnNumber()] = Convert.ChangeType(xNodeColumn.InnerText, tc, NumberFormatInfo.InvariantInfo);\n }\n catch (Exception __dummyCatchVar2)\n {\n // all conversion errors result in a null value\n or.getData()[fld.getColumnNumber()] = null;\n }\n \n } \n }\n // Apply the filters\n if (f == null || f.apply(rpt,or))\n {\n or.setRowNumber(rowCount);\n //\n rowCount++;\n ar.Add(or);\n }\n \n }\n ar.TrimExcess();\n // free up any extraneous space; can be sizeable for large # rows\n if (f != null)\n f.applyFinalFilters(rpt,_Data,false);\n \n setMyData(rpt,_Data);\n }",
"public List<DataSet> findDataSetEntities() {\n return findDataSetEntities(true, -1, -1);\n }",
"private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }",
"public void testUnfoldingWithOneSuccessfulResolutions() {\n\t\t\t\n\t\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\tCQIE query = fac.getCQIE(head, lj);\n\t\t\tqueryProgram.appendRule(query);\n\n\t\t\t// Mapping program\n\t\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule1);\n\n\t\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule2);\n\n\t\t\t// A rule 3 R(uri(x),y) :- T3(x,y)\n\t\t\t\n\t\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\t\tp.appendRule(rule3);\n\n\t\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t\t// Only one rule should be returned where y is null\n\t\t\tSystem.out.println(result);\n\t\t\tassertEquals(1, result.getRules().size());\n\t\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"T3(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"uri(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\tassertTrue(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\t\tassertFalse(result.getRules().toString().contains(\"T2(\"));\n\t\t\t\n\t\t\tassertFalse(result.getRules().toString().contains(\"null\"));\n\t\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t\t\n\t}",
"InputStream getDataStream();",
"private void getDataFromFacilitySoup(File fileName, Facility curFac){\n\t\tString linkChartsWithViolations=null;\n\t\tArrayList<String> qtrDurList=null;\n\t\tArrayList<String> NCBoolList=null;\n\t\t\n\t\tString curLine;\n\t\tFileInputStream fIn = null;\n\t\tBufferedReader reader = null;\n\t\tint httpIndex = -1;\n\n\t\t\n\t\ttry {\n\t\t\tfIn = new FileInputStream(fileName);\n\t\t\treader = new BufferedReader(new InputStreamReader(fIn));\n\t\t\t\n\t\t\tcurLine = reader.readLine();\n\t\t\tif(curLine==null){\n\t\t\t\t//System.err.println(\"Facility \"+curFac.ID+\" has No Soup Data\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif(curLine.indexOf(\"No CWA\")!=-1){\n\t\t\t\t//System.err.println(\"Facility \"+curFac.ID+\" has No CWA\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\tif(curLine.indexOf(\"effluents.cgi\")!=-1){\n\t\t\t\thttpIndex = curLine.indexOf(\"http:\");\n\t\t\t\tlinkChartsWithViolations = curLine.substring(httpIndex,\n\t\t\t\t\t\tcurLine.indexOf('\\'', httpIndex));\n\t\t\t\tcurFac.setOCVLink(linkChartsWithViolations);\n\t\t\t\t//for test\n\t\t\t\t//System.out.println(\"linkChartsWithViolations: \"+linkChartsWithViolations);\n\t\t\t}\n\t\t\telse if(curLine.compareTo(\"No Only Charts with Violations\")==0){\n\t\t\t\tlinkChartsWithViolations = null;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t//System.err.println(\"In getDataFromFacilitySoup, err in reading link\");\n\t\t\t\t//System.err.println(\"linkChartsWithViolations: \"+linkChartsWithViolations);\n\t\t\t\t//System.err.println(\"Current Facility:\");\n\t\t\t\t//curFac.printFacility();\n\t\t\t\t//System.exit(0);\n\t\t\t\treturn;\n\t\t\t}\n\t\t\t\n\t\t\twhile ((curLine = reader.readLine()) != null) { \n\t\t\t\tif(curLine.compareTo(\"qtr Duration List\")==0){\n\t\t\t\t\tqtrDurList = new ArrayList<String>(numQtr);\n\t\t\t\t\tfor(int i=0;i<numQtr;i++){\n\t\t\t\t\t\tcurLine = reader.readLine();\n\t\t\t\t\t\tqtrDurList.add(i, curLine.substring(0, curLine.length()-1));\n\t\t\t\t\t}\t\n\t\t\t\t\tcurFac.setQtrDurList(qtrDurList);\n\t\t\t\t}//end of if\n\t\t\t\tif(curLine.compareTo(\"NC Boolean List\")==0){\n\t\t\t\t\tNCBoolList = new ArrayList<String>(numQtr);\n\t\t\t\t\tfor(int i=0;i<numQtr;i++){\n\t\t\t\t\t\tcurLine = reader.readLine();\n\t\t\t\t\t\tNCBoolList.add(i, curLine.substring(1));\n\t\t\t\t\t}\n\t\t\t\t\tcurFac.setNCBoolList(NCBoolList);\n\t\t\t\t\t//break from the while, since we don't need other data for now\n\t\t\t\t\tbreak;\n\t\t\t\t}//end of if\t\t\t\t\n\t\t\t}//end of while\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"In getDataFromFacilitySoup, err in reading file\");\n\t\t\tSystem.err.println(\"linkChartsWithViolations: \"+linkChartsWithViolations);\n\t\t\tSystem.err.println(\"Current Facility:\");\n\t\t\tcurFac.printFacility();\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\n\t}",
"public void test_afs_01() {\n String sourceT =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#'\"\n + \" xmlns:owl=\\\"http://www.w3.org/2002/07/owl#\\\">\"\n + \" <owl:Class rdf:about='http://example.org/foo#A'>\"\n + \" </owl:Class>\"\n + \"</rdf:RDF>\";\n \n String sourceA =\n \"<rdf:RDF \"\n + \" xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'\"\n + \" xmlns:rdfs='http://www.w3.org/2000/01/rdf-schema#' \"\n + \" xmlns:owl=\\\"http://www.w3.org/2002/07/owl#\\\">\"\n + \" <rdf:Description rdf:about='http://example.org/foo#x'>\"\n + \" <rdf:type rdf:resource='http://example.org/foo#A' />\"\n + \" </rdf:Description>\"\n + \"</rdf:RDF>\";\n \n Model tBox = ModelFactory.createDefaultModel();\n tBox.read(new ByteArrayInputStream(sourceT.getBytes()), \"http://example.org/foo\");\n \n Model aBox = ModelFactory.createDefaultModel();\n aBox.read(new ByteArrayInputStream(sourceA.getBytes()), \"http://example.org/foo\");\n \n Reasoner reasoner = ReasonerRegistry.getOWLReasoner();\n reasoner = reasoner.bindSchema(tBox);\n \n OntModelSpec spec = new OntModelSpec(OntModelSpec.OWL_MEM_RULE_INF);\n spec.setReasoner(reasoner);\n \n OntModel m = ModelFactory.createOntologyModel(spec, aBox);\n \n List inds = new ArrayList();\n for (Iterator i = m.listIndividuals(); i.hasNext();) {\n inds.add(i.next());\n }\n \n assertTrue(\"x should be an individual\", inds.contains(m.getResource(\"http://example.org/foo#x\")));\n \n }",
"public void satisfiabilityChecked(Query query, IRDFDataset targetDataset, boolean satisfiable);",
"public void testUnfoldingWithNoSuccessfulResolutions() {\n\t\t\n\t\tDatalogProgram queryProgram = fac.getDatalogProgram();\n\t\tFunction a = fac.getFunction(fac.getClassPredicate(\"A\"), fac.getVariable(\"x\"));\n\t\tFunction R = fac.getFunction(fac.getObjectPropertyPredicate(\"R\"), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tFunction lj = fac.getSPARQLLeftJoin(a, R);\n\t\tFunction head = fac.getFunction(fac.getPredicate(\"q\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\tCQIE query = fac.getCQIE(head, lj);\n\t\tqueryProgram.appendRule(query);\n\n\t\t// Mapping program\n\t\tDatalogProgram p = fac.getDatalogProgram();\n\t\t// A rule 1 A(uri(x)) :- T1(x,y)\n\t\tFunction body = fac.getFunction(fac.getPredicate(\"T1\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"A\", 1), fac.getFunction(fac.getPredicate(\"uri\", 1), fac.getVariable(\"x\")));\n\t\tCQIE rule1 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule1);\n\n\t\t// A rule 2 R(f(x),y) :- T2(x,y)\n\t\tbody = fac.getFunction(fac.getPredicate(\"T2\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"f\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule2 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule2);\n\n\t\t// A rule 3 R(g(x),y) :- T3(x,y)\n\t\t\n\t\tbody = fac.getFunction(fac.getPredicate(\"T3\", 2), fac.getVariable(\"x\"), fac.getVariable(\"y\"));\n\t\thead = fac.getFunction(fac.getPredicate(\"R\", 2), fac.getFunction(fac.getPredicate(\"g\", 1), fac.getVariable(\"x\")), fac.getVariable(\"y\"));\n\t\tCQIE rule3 = fac.getCQIE(head, body);\n\t\tp.appendRule(rule3);\n\n\t\tDatalogUnfolder unfolder = new DatalogUnfolder(p.getRules());\n\t\tDatalogProgram result = unfolder.unfold(queryProgram, \"q\");\n\n\t\t// Only one rule should be returned where y is null\n\t\tSystem.out.println(result);\n\t\tassertEquals(1, result.getRules().size());\n\t\tassertTrue(result.getRules().toString().contains(\"null\"));\n\t\tassertTrue(result.getRules().toString().contains(\"T1(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"A(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"R(\"));\n\t\tassertFalse(result.getRules().toString().contains(\"LeftJoin(\"));\n\t\tassertTrue(result.getRules().get(0).getBody().size() == 1);\n\t}",
"protected IDataSet getDataSet() throws IOException, DataSetException {\r\n\t\treturn new FlatXmlDataSet(this.getClass().getResourceAsStream(\"dataset_report.xml\"));\r\n\t}",
"public Dataset from(Iri... iris) {\n\t\taddElements(SparqlBuilder::from, iris);\n\n\t\treturn this;\n\t}",
"public void readFactors() {\n //Obtencion de la base todos los factores dto para este study\n// Factor factorFilter = new Factor(true);\n// factorFilter.setStudyid(this.study.getStudyid());\n// this.factorsDto = this.servicioApp.getListFactor(factorFilter, 0, 0, false);\n\n\n long startTime = System.nanoTime();\n HelperContentEffectidAndFactors hceaf = HelperEffect.getEffectidForMeasurementEffectAndFactors(\n this.servicioApp,\n this.study.getStudyid(),\n this.factorStudy,\n this.factorTrial,\n this.factorEntry,\n this.factorPlot);\n System.out.println(\"Elapsed Time for effectAndFactors: \" + ((double) ((System.nanoTime()-startTime)/1000000000)) + \" sec\");\n startTime = System.nanoTime();\n this.effectid = hceaf.getEffectid();\n //this.factorsDto = HelperFactor.getFactorsByEffectid(this.effectid, this.servicioApp);\n this.factorsDto = servicioApp.getFactorsByStudyId(this.study.getStudyid());\n System.out.println(\"Elapsed Time for readfactors: \" + ((double) ((System.nanoTime()-startTime)/1000000000)) + \" sec\");\n \n startTime = System.nanoTime();\n this.factorStudy = hceaf.getFactorStudy();\n this.factorTrial = hceaf.getFactorTrial();\n this.factorEntry = hceaf.getFactorEntry();\n this.factorPlot = hceaf.getFactorPlot();\n\n this.factorIdStudy = this.factorStudy.getLabelid();\n this.factorIdTrial = this.factorTrial.getLabelid();\n this.factorIdEntry = this.factorEntry.getLabelid();\n this.factorIdPlot = this.factorPlot.getLabelid();\n\n this.workbookStudy.setTrialLabel(this.factorTrial.getFname());\n this.workbookStudy.setEntryLabel(this.factorEntry.getFname());\n this.workbookStudy.setPlotLabel(this.factorPlot.getFname());\n //Obteniendo de la base todos los dto relacionados con el factor\n// List<Factor> factorsRemove = new ArrayList<Factor>();\n for (Factor factorDto : this.factorsDto) {\n if (factorDto.getLabelid().equals(factorDto.getFactorid())) {\n this.mapaLabes.put(factorDto.getLabelid(), factorDto);\n }\n Factor temp = HelperFactor.getFactorFillingFull(\n factorDto,\n this.servicioApp,\n 801);\n\n if (factorDto.getFactorid() == null && factorDto.getLabel() != null) {\n factorDto.setIsTreatmentFactor(true);\n this.mapFactorsDtoOthers.put(factorDto.getFname(), factorDto);\n this.factorsDtoOthers.add(factorDto);\n this.mapFactorsDtoAllFactorsView.put(factorDto.getFname(), factorDto);\n this.factorsDtoAllFactorsView.add(factorDto);\n } else if (factorDto.getFactorid().equals(this.factorIdStudy)) {\n this.mapFactorsDtoStudy.put(factorDto.getFname(), factorDto);\n this.factorsDtoStudy.add(factorDto);\n } else if (factorDto.getFactorid().equals(this.factorIdTrial)) {\n this.mapFactorsDtoTrial.put(factorDto.getFname(), factorDto);\n this.factorsDtoTrial.add(factorDto);\n } else if (factorDto.getFactorid().equals(this.factorIdEntry)) {\n this.mapFactorsDtoEntrys.put(factorDto.getFname(), factorDto);\n this.factorsDtoEntrys.add(factorDto);\n this.mapFactorsDtoAllFactorsView.put(factorDto.getFname(), factorDto);\n this.factorsDtoAllFactorsView.add(factorDto);\n } else if (factorDto.getFactorid().equals(this.factorIdPlot)) {\n if (factorDto.getLabel() != null) {\n factorDto.setIsTreatmentFactor(true);\n this.mapFactorsDtoOthers.put(factorDto.getFname(), factorDto);\n this.factorsDtoOthers.add(factorDto);\n this.mapFactorsDtoAllFactorsView.put(factorDto.getFname(), factorDto);\n this.factorsDtoAllFactorsView.add(factorDto);\n } else {\n this.mapFactorsDtoPlot.put(factorDto.getFname(), factorDto);\n this.factorsDtoPlot.add(factorDto);\n this.mapFactorsDtoAllFactorsView.put(factorDto.getFname(), factorDto);\n this.factorsDtoAllFactorsView.add(factorDto);\n }\n } else if (factorDto.getLabel() != null) {\n factorDto.setIsTreatmentFactor(true);\n this.mapFactorsDtoOthers.put(factorDto.getFname(), factorDto);\n this.factorsDtoOthers.add(factorDto);\n this.mapFactorsDtoAllFactorsView.put(factorDto.getFname(), factorDto);\n this.factorsDtoAllFactorsView.add(factorDto);\n }\n }\n System.out.println(\"Elapsed Time for factor filling: \" + ((double) ((System.nanoTime()-startTime)/1000000000)) + \" sec\");\n }",
"public static void main(String[] args) throws Exception {\n TDB.setOptimizerWarningFlag(false);\n\n final String DATASET_DIR_NAME = \"data0\";\n final Dataset data0 = TDBFactory.createDataset( DATASET_DIR_NAME );\n\n // show the currently registered names\n for (Iterator<String> it = data0.listNames(); it.hasNext(); ) {\n out.println(\"NAME=\"+it.next());\n }\n\n out.println(\"getting named model...\");\n /// this is the OWL portion\n final Model model = data0.getNamedModel( MY_NS );\n out.println(\"Model := \"+model);\n\n out.println(\"getting graph...\");\n /// this is the DATA in that MODEL\n final Graph graph = model.getGraph();\n out.println(\"Graph := \"+graph);\n\n if (graph.isEmpty()) {\n final Resource product1 = model.createResource( MY_NS +\"product/1\");\n final Property hasName = model.createProperty( MY_NS, \"#hasName\");\n final Statement stmt = model.createStatement(\n product1, hasName, model.createLiteral(\"Beach Ball\",\"en\") );\n out.println(\"Statement = \" + stmt);\n\n model.add(stmt);\n\n // just for fun\n out.println(\"Triple := \" + stmt.asTriple().toString());\n } else {\n out.println(\"Graph is not Empty; it has \"+graph.size()+\" Statements\");\n long t0, t1;\n t0 = System.currentTimeMillis();\n final Query q = QueryFactory.create(\n \"PREFIX exns: <\"+MY_NS+\"#>\\n\"+\n \"PREFIX exprod: <\"+MY_NS+\"product/>\\n\"+\n \" SELECT * \"\n // if you don't provide the Model to the\n // QueryExecutionFactory below, then you'll need\n // to specify the FROM;\n // you *can* always specify it, if you want\n // +\" FROM <\"+MY_NS+\">\\n\"\n // +\" WHERE { ?node <\"+MY_NS+\"#hasName> ?name }\"\n // +\" WHERE { ?node exns:hasName ?name }\"\n // +\" WHERE { exprod:1 exns:hasName ?name }\"\n +\" WHERE { ?res ?pred ?obj }\"\n );\n out.println(\"Query := \"+q);\n t1 = System.currentTimeMillis();\n out.println(\"QueryFactory.TIME=\"+(t1 - t0));\n\n t0 = System.currentTimeMillis();\n try ( QueryExecution qExec = QueryExecutionFactory\n // if you query the whole DataSet,\n // you have to provide a FROM in the SparQL\n //.create(q, data0);\n .create(q, model) ) {\n t1 = System.currentTimeMillis();\n out.println(\"QueryExecutionFactory.TIME=\"+(t1 - t0));\n\n t0 = System.currentTimeMillis();\n ResultSet rs = qExec.execSelect();\n t1 = System.currentTimeMillis();\n out.println(\"executeSelect.TIME=\"+(t1 - t0));\n while (rs.hasNext()) {\n QuerySolution sol = rs.next();\n out.println(\"Solution := \"+sol);\n for (Iterator<String> names = sol.varNames(); names.hasNext(); ) {\n final String name = names.next();\n out.println(\"\\t\"+name+\" := \"+sol.get(name));\n }\n }\n }\n }\n out.println(\"closing graph\");\n graph.close();\n out.println(\"closing model\");\n model.close();\n //out.println(\"closing DataSetGraph\");\n //dsg.close();\n out.println(\"closing DataSet\");\n data0.close();\n }",
"public XYMultipleSeriesDataset getDataset() {\n\t\tEnvironmentTrackerOpenHelper openhelper = new EnvironmentTrackerOpenHelper(ResultsContent.context);\n\t\tSQLiteDatabase database = openhelper.getReadableDatabase();\n\t\tString[] columns = new String[2];\n\t\tcolumns[0] = \"MOOD\";\n\t\tcolumns[1] = \"HUE_CATEGORY\";\n\t\tCursor results = database.query(true, \"Observation\", columns, null, null, null, null, null, null);\n\t\t\n\t\t// Make sure the cursor is at the start.\n\t\tresults.moveToFirst();\n\t\t\n\t\tint[] meanMoodCategoryHue = new int[4];\n\t\tint[] nrMoodCategoryHue = new int[4];\n\t\t\n\t\t// Overloop de verschillende observaties.\n\t\twhile (!results.isAfterLast()) {\n\t\t\tint mood = results.getInt(0);\n\t\t\tint hue = results.getInt(1);\n\t\t\t\n\t\t\t// Tel de mood erbij en verhoog het aantal met 1 in de juiste categorie.\n\t\t\tmeanMoodCategoryHue[hue-1] = meanMoodCategoryHue[hue-1] + mood;\n\t\t\tnrMoodCategoryHue[hue-1]++;\n\t\t\tresults.moveToNext();\n\t\t}\n\t\t\n\t\t// Bereken voor elke hue categorie de gemiddelde mood.\n\t\tfor (int i=1;i<=4;i++) {\n\t\t\tif (nrMoodCategoryHue[i-1] == 0) {\n\t\t\t\tmeanMoodCategoryHue[i-1] = 0;\n\t\t\t} else {\n\t\t\t\tmeanMoodCategoryHue[i-1] = meanMoodCategoryHue[i-1]/nrMoodCategoryHue[i-1];\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Plaats de gegevens samen in een dataset voor de grafiek.\n\t\tXYMultipleSeriesDataset myData = new XYMultipleSeriesDataset();\n\t XYSeries dataSeries = new XYSeries(\"data\");\n\t dataSeries.add(1,meanMoodCategoryHue[0]);\n\t dataSeries.add(2,meanMoodCategoryHue[1]);\n\t dataSeries.add(3,meanMoodCategoryHue[2]);\n\t dataSeries.add(4,meanMoodCategoryHue[3]);\n\t myData.addSeries(dataSeries);\n\t return myData;\n\t}",
"DataStreams createDataStreams();",
"@Test public void testWithExternalDataSet() throws IOException\n {\n final String homeDir = System.getProperty(\"user.home\");\n assumeNotNull(null != homeDir);\n final File inDir = new File(new File(homeDir), fixedDataSetDir);\n assumeTrue(inDir.isDirectory());\n final File outDir = new File(new File(homeDir), fixedDataSetOutDir);\n assertTrue(outDir.isDirectory());\n assertTrue(outDir.canWrite());\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 // 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 System.out.println(\"Written to \" + outDir);\n }",
"String getDataSet();",
"public AlignmentI getSequenceRecords(String queries) throws Exception\n {\n startQuery();\n // TODO: trap HTTP 404 exceptions and return null\n AlignmentI rcds = new jalview.io.FormatAdapter().readFile(getXFAMURL()\n + queries.trim().toUpperCase(), jalview.io.FormatAdapter.URL,\n \"STH\");\n for (int s = 0, sNum = rcds.getHeight(); s < sNum; s++)\n {\n rcds.getSequenceAt(s).addDBRef(new DBRefEntry(getXfamSource(),\n // getDbSource(),\n getDbVersion(), queries.trim().toUpperCase()));\n if (!getDbSource().equals(getXfamSource()))\n { // add the specific ref too\n rcds.getSequenceAt(s).addDBRef(\n new DBRefEntry(getDbSource(), getDbVersion(), queries\n .trim().toUpperCase()));\n }\n }\n stopQuery();\n return rcds;\n }",
"public void test_0020() {\n int nFactors = 2;\n FactorAnalysis instance = new FactorAnalysis(data, nFactors);\n\n assertEquals(instance.nObs(), 18., 1e-15);\n assertEquals(instance.nVariables(), 6., 1e-15);\n assertEquals(instance.nFactors(), 2., 1e-15);\n\n FAEstimator estimators = instance.getEstimators(400);\n\n Vector uniqueness = estimators.psi();\n assertArrayEquals(\n new double[]{0.005, 0.114, 0.642, 0.742, 0.005, 0.097},\n uniqueness.toArray(),\n 2e-2);\n\n int dof = estimators.dof();\n assertEquals(dof, 4);\n\n double fitted = estimators.logLikelihood();\n assertEquals(fitted, 1.803, 1e-3);\n\n Matrix loadings = estimators.loadings();\n assertTrue(AreMatrices.equal(\n new DenseMatrix(new double[][]{\n {0.971, 0.228},\n {0.917, 0.213},\n {0.429, 0.418},\n {0.363, 0.355},\n {0.254, 0.965},\n {0.205, 0.928}\n }),\n loadings,\n 1e-3));\n\n double testStats = estimators.statistics();\n assertEquals(testStats, 23.14, 1e-2);\n\n double pValue = estimators.pValue();\n assertEquals(pValue, 0.000119, 1e-6);//R: 1-pchisq(23.14, df=4) = 0.0001187266\n\n// System.out.println(uniqueness.toString());\n// System.out.println(fitted);\n// System.out.println(loadings.toString());\n }",
"private void getAlignedRdf(String uri, StringWriter outStr, String outFile)\n\t throws MediatorException, IOException {\n\n\tlogger.info(\"Get aligned RDF for: \" + uri);\n\n\tString tableName = RDFUtil.getTableName(uri);\n\tdbName = RDFUtil.getDatabaseName(uri);\n\tpropertyNamespace = JenaUtil.getNamespace(model, uri, tableName);\n\n\t// get and parse the SD\n\tString sourceDesc = getSourceDescription(tableName);\n\tDomainParser sp = new DomainParser();\n\tRDFDomainModel dm = (RDFDomainModel) sp.parseDomain(sourceDesc);\n\n\tif (dm.getGAVRules().size() != dm.getLAVRules().size())\n\t throw new MediatorException(\n\t\t \"Number of GAV and LAV rules should be the same.\"\n\t\t\t + \"There should be a GAV rule that corresponds to every LAV Rule.\");\n\n\t// create the output writer\n\tPrintWriter outWriter = getOutWriter(outStr, outFile);\n\n\tint maxNumberOfTriples = MAX_NUMBER_OF_TRIPLES;\n\tboolean setNamespace = true;\n\t// for each rule (LAV and GLAV)\n\tfor (int i = 0; i < dm.getAllRules().size(); i++) {\n\t Rule rule = dm.getAllRules().get(i);\n\n\t // clear the query related structures\n\t objectURI.clear();\n\n\t // get values generated by executing SPARQL queries defined by\n\t // queryRule.\n\t List<Map<String, String>> rowValues = getValues(rule, tableName,\n\t\t uri);\n\n\t /*\n\t * //count number of empty results if(rowValues.isEmpty())\n\t * noResult++; System.out.println(\"No Result \" + noResult);\n\t */\n\n\t logger.info(\"Generate aligned RDF ...\");\n\t // construct a rule mapper\n\t RuleRDFMapper gen = new RuleRDFMapper(rule,\n\t\t dm.getSourceNamespaces(), dm.getOntologyNamespaces(),\n\t\t outWriter);\n\t // write namespaces only once\n\t if (setNamespace) {\n\t\tRDFUtil.setNamespace(dm.getSourceNamespaces(),\n\t\t\tdm.getOntologyNamespaces(), outWriter);\n\t\tsetNamespace = false;\n\t }\n\t // set the maximum number of triples to be generated by this rule\n\t // mapper\n\t gen.setMaxNumberOfTriples(maxNumberOfTriples);\n\t boolean allTriplesAdded = gen.generateTriples(rowValues, uri,\n\t\t objectURI);\n\t if (!allTriplesAdded) {\n\t\t// abort the process\n\t\t// outWriter.print(\"# Maximum number of triples was reached:\" +\n\t\t// MAX_NUMBER_OF_TRIPLES);\n\t\tbreak;\n\t }\n\t // if more than one rule mapper is needed (we have more than one\n\t // rule for the inputURI)\n\t // we have to sure that the maxNumberOfTriples is counted over all\n\t // the mappers\n\t int triplesGenerated = gen.getNumberOfGeneratedTriples();\n\t maxNumberOfTriples = maxNumberOfTriples - triplesGenerated + 1;\n\t}\n\toutWriter.close();\n\tlogger.info(\"DONE.\");\n }",
"public static void relprecision() throws IOException \n\t{\n\t \n\t\t\n\t\tMap<String,Map<String,List<String>>> trainset = null ; \n\t\t//Map<String, List<String>> titles = ReadXMLFile.ReadCDR_TestSet_BioC() ;\n\t File fFile = new File(\"F:\\\\eclipse64\\\\data\\\\labeled_titles.txt\");\n\t // File fFile = new File(\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelation\");\n\t List<String> sents = readfiles.readLinesbylines(fFile.toURL());\n\t\t\n\t\tSentinfo sentInfo = new Sentinfo() ; \n\t\t\n\t\t//trainset = ReadXMLFile.DeserializeT(\"F:\\\\eclipse64\\\\eclipse\\\\TrainsetTest\") ;\n\t\tLinkedHashMap<String, Integer> TripleDict = new LinkedHashMap<String, Integer>();\n\t\tMap<String,List<Integer>> Labeling= new HashMap<String,List<Integer>>() ;\n\t\t\n\t\tMetaMapApi api = new MetaMapApiImpl();\n\t\tList<String> theOptions = new ArrayList<String>();\n\t theOptions.add(\"-y\"); // turn on Word Sense Disambiguation\n\t theOptions.add(\"-u\"); // unique abrevation \n\t theOptions.add(\"--negex\"); \n\t theOptions.add(\"-v\");\n\t theOptions.add(\"-c\"); // use relaxed model that containing internal syntactic structure, such as conjunction.\n\t if (theOptions.size() > 0) {\n\t api.setOptions(theOptions);\n\t }\n\t \n\t\t\n\t\t\n\t\t\n\t\tint count = 0 ;\n\t\tint count1 = 0 ;\n\t\tModel candidategraph = ModelFactory.createDefaultModel(); \n\t\tMap<String,List<String>> TripleCandidates = new HashMap<String, List<String>>();\n\t\tList<String> statements= new ArrayList<String>() ;\n\t\tList<String> notstatements= new ArrayList<String>() ;\n\t\tDouble TPcount = 0.0 ; \n\t\tDouble FPcount = 0.0 ;\n\t\tDouble NonTPcount = 0.0 ;\n\t\tDouble TPcountTot = 0.0 ; \n\t\tDouble NonTPcountTot = 0.0 ;\n\t\tfor(String title : sents)\n\t\t{\n\t\t\t\n\t\t\tif (title.contains(\"<YES>\") || title.contains(\"<TREAT>\") || title.contains(\"<DIS>\") || title.contains(\"</\"))\n\t\t\t{\n\t\t\t\n\t\t\t\tBoolean TP = false ; \n\t\t\t\tBoolean NonTP = false ;\n\t if (title.contains(\"<YES>\") && title.contains(\"</YES>\"))\n\t {\n\t \t TP = true ; \n\t \t TPcountTot++ ; \n\t \t \n\t }\n\t else\n\t {\n\t \t NonTP = true ; \n\t \t NonTPcountTot++ ; \n\t }\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\ttitle = title.replaceAll(\"<YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</YES>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</TREAT>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"<DIS>\", \" \") ;\n\t\t\t\ttitle = title.replaceAll(\"</DIS>\", \" \") ;\n\t\t\t\ttitle = title.toLowerCase() ;\n\t\n\t\t\t\tcount++ ; \n\t\n\t\t\t\t// get the goldstandard concepts for current title \n\t\t\t\tList<String> GoldSndconcepts = new ArrayList<String> () ;\n\t\t\t\tMap<String, Integer> allconcepts = null ; \n\t\t\t\t\n\t\t\t\t// this is optional and not needed here , it used to measure the concepts recall \n\t\t\t\tMap<String, List<String>> temptitles = new HashMap<String, List<String>>(); \n\t\t\t\ttemptitles.put(title,GoldSndconcepts) ;\n\t\t\t\t\t\t\t\n\t\t\t\t// get the concepts \n\t\t\t\tallconcepts = ConceptsDiscovery.getconcepts(temptitles,api);\n\t\t\t\t\n\t\t\t\tArrayList<String> RelInstances1 = SyntaticPattern.getSyntaticPattern(title,allconcepts,dataset.FILE_NAME_Patterns) ;\n\t\t\t\t//Methylated-CpG island recovery assay: a new technique for the rapid detection of methylated-CpG islands in cancer\n\t\t\t\tif (RelInstances1 != null && RelInstances1.size() > 0 )\n\t\t\t\t{\n\t\t\t\t\tTripleCandidates.put(title, RelInstances1) ;\n\t\t\t\t\tReadXMLFile.Serialized(TripleCandidates,\"F:\\\\eclipse64\\\\eclipse\\\\TreatRelationdisc\") ;\n\t\t\t\t\t\n\t\t\t if (TP )\n\t\t\t {\n\t\t\t \t TPcount++ ; \n\t\t\t \t \n\t\t\t }\n\t\t\t else\n\t\t\t {\n\t\t\t \t FPcount++ ; \n\t\t\t }\n\t\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t notstatements.add(title) ;\n\t\t\t\t}\n\t\t\t}\n \n\t\t}\n\t\tint i = 0 ;\n\t\ti++ ; \n\t}",
"private static void writeDimesnions() throws IOException {\r\n\t\tDate date = new Date();\r\n\t\t bw.write( \"<> a owl:Ontology ; \\n\"\r\n\t\t \t+ \" rdfs:label \\\"GeoKnow Spatical Data Qaluty DataCube Knowledge Base\\\" ;\\n\"\r\n\t\t \t+ \" dc:description \\\"This knowledgebase contains 3 different DataCubes with different dimensions and measures.\\\" .\\n\\n\"\r\n\t//-----------------------Dataset----------------------------\r\n\t\t \t+ \"#\\n #Data Set \\n # \\n\"\r\n\t\t \t+ \"<http://www.geoknow.eu/dataset/ds1> a qb:DataSet ;\\n\"\r\n\t\t\t+ \"\t dcterms:publisher \\\"AKSW, GeoKnow\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:label \\\" Dataset Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:comment \\\"Dataset Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t qb:structure <http://www.geoknow.eu/data-cube/dsd1> ;\\n\"\r\n\t\t\t+ \"\t dcterms:date \\\"\"+date+\"\\\". \\n\\n\"\r\n\t\t \t+ \"<http://www.geoknow.eu/dataset/ds2> a qb:DataSet ;\\n\"\r\n\t\t\t+ \"\t dcterms:publisher \\\"AKSW, GeoKnow\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:label \\\"Dataset Weighted Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:comment \\\"Dataset Weighted Class Coverage\\\" ; \\n\"\r\n\t\t\t+ \"\t qb:structure <http://www.geoknow.eu/data-cube/dsd2> ;\\n\"\r\n\t\t\t+ \"\t dcterms:date \\\"\"+date+\"\\\". \\n\\n\"\t\t\r\n\t\t \t+ \"<http://www.geoknow.eu/dataset/ds3> a qb:DataSet ;\\n\"\r\n\t\t\t+ \"\t dcterms:publisher \\\"AKSW, GeoKnow\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:label \\\"Dataset Structuredness\\\" ; \\n\"\r\n\t\t\t+ \"\t rdfs:comment \\\"Dataset Structuredness\\\" ; \\n\"\r\n\t\t\t+ \"\t qb:structure <http://www.geoknow.eu/data-cube/dsd3> ;\\n\"\r\n\t\t\t+ \"\t dcterms:date \\\"\"+date+\"\\\". \\n\\n\"\t\r\n //-----------------Data Cube 1 Structure Definitions-----------------------------------------\r\n\t\t\t+ \"# \\n# Data Structure Definitions \\n # \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1> a qb:DataStructureDefinition ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"A Data Structure Definition\\\"@en ;\\n\"\r\n\t\t\t+ \" rdfs:comment \\\"A Data Structure Definition for DataCube1\\\" ;\\n\"\r\n\t\t\t+ \" qb:component <http://www.geoknow.eu/data-cube/dsd1/c1>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd1/c2>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd1/c3> . \\n\\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2> a qb:DataStructureDefinition ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"A Data Structure Definition\\\"@en ;\\n\"\r\n\t\t\t+ \" rdfs:comment \\\"A Data Structure Definition for DataCube2\\\" ;\\n\"\r\n\t\t\t+ \" qb:component <http://www.geoknow.eu/data-cube/dsd2/c1>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd2/c2>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd2/c3> . \\n\\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3> a qb:DataStructureDefinition ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"A Data Structure Definition\\\"@en ;\\n\"\r\n\t\t\t+ \" rdfs:comment \\\"A Data Structure Definition for DataCube3\\\" ;\\n\"\r\n\t\t\t+ \" qb:component <http://www.geoknow.eu/data-cube/dsd3/c1>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd3/c2>, \\n\"\r\n\t\t\t+ \" <http://www.geoknow.eu/data-cube/dsd3/c3> . \\n\\n\"\r\n\t\r\n\t//-----------------------Component Specifications-------------------------------------------------------------------\r\n\t\t\t+ \" # \\n #Componenet Specifications\\n #\\n \"\t\t\r\n\t\t\t//-------------DataCube1------------------------------------\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1/c1> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Class \\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:Class . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1/c2> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Time Stamp\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:TimeStamp . \\n\"\t\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd1/c3> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Coverage\\\" ;\\n\"\r\n\t\t\t+ \" qb:measure sdmx-measure:Coverage . \\n\\n\"\t\t\t\t\r\n\t\t\t//-------------DataCube2------------------------------------\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2/c1> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Class\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:Class . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2/c2> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Time Stamp\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:TimeStamp . \\n\"\t\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd2/c3> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Weighted Coverage\\\" ;\\n\"\r\n\t\t\t+ \" qb:measure sdmx-measure:WeightedCoverage . \\n\\n\"\t\r\n\t\t\t//-------------DataCube3------------------------------------\t\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3/c1> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Dataset\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:Dataset . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3/c2> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Time Stamp\\\" ;\\n\"\r\n\t\t\t+ \" qb:dimension gk-dim:TimeStamp . \\n\"\r\n\t\t\t+ \"<http://www.geoknow.eu/data-cube/dsd3/c3> a qb:ComponentSpecification ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Component Specification of Structuredness\\\" ;\\n\"\r\n\t\t\t+ \" qb:measure sdmx-measure:Structuredness . \\n\\n\"\t\t\t\t\r\n\t//-----------------------Dimensions, Unit and Measure ---------------------------------------------------------\t\t\r\n\t\t\t+ \"### \\n ## Dimensions, Unit, and Measure\\n##\\n\"\r\n\t\t\t+ \"gk-dim:Class a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Class of a dataset\\\"@en .\\n\"\r\n\t\t\t+ \"gk-dim:TimeStamp a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Time Stamp\\\"@en .\\n\"\r\n\t\t\t+ \"gk-dim:Dataset a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Dataset name\\\"@en .\\n\"\r\n\t\t\t+ \"sdmx-measure:Coverage a qb:MeasureProperty ; \\n\"\t\r\n\t\t\t+ \" rdfs:label \\\"Class Coverage\\\"@en .\\n\"\r\n\t\t\t+ \"sdmx-measure:WeightedCoverage a qb:MeasureProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Class Weighted Coverage\\\"@en .\\n\"\r\n\t\t\t+ \"sdmx-measure:Structuredness a qb:DimensionProperty ; \\n\"\r\n\t\t\t+ \" rdfs:label \\\"Dataset Structuredness\\\"@en .\\n\\n\"\r\n\t\t\t\t );\r\n\t\t\r\n\t}",
"static DataSource[] _getDataSources () throws Exception {\n SearchOptions opts = new SearchOptions (null, 1, 0, 1000); \n TextIndexer.SearchResult results = _textIndexer.search(opts, null);\n Set<String> labels = new TreeSet<String>();\n for (TextIndexer.Facet f : results.getFacets()) {\n if (f.getName().equals(SOURCE)) {\n for (TextIndexer.FV fv : f.getValues())\n labels.add(fv.getLabel());\n }\n }\n\n Class[] entities = new Class[]{\n Disease.class, Target.class, Ligand.class\n };\n\n List<DataSource> sources = new ArrayList<DataSource>();\n for (String la : labels ) {\n DataSource ds = new DataSource (la);\n for (Class cls : entities) {\n opts = new SearchOptions (cls, 1, 0, 100);\n results = _textIndexer.search(opts, null);\n for (TextIndexer.Facet f : results.getFacets()) {\n if (f.getName().equals(SOURCE)) {\n for (TextIndexer.FV fv : f.getValues())\n if (la.equals(fv.getLabel())) {\n if (cls == Target.class)\n ds.targets = fv.getCount();\n else if (cls == Disease.class)\n ds.diseases = fv.getCount();\n else\n ds.ligands = fv.getCount();\n }\n }\n }\n }\n Logger.debug(\"DataSource: \"+la);\n Logger.debug(\" + targets: \"+ds.targets);\n Logger.debug(\" + ligands: \"+ds.ligands);\n Logger.debug(\" + diseases: \"+ds.diseases);\n \n sources.add(ds);\n }\n\n return sources.toArray(new DataSource[0]);\n }",
"public static void main(String[] args)throws Exception {\n\t\tInstances\t dataset = new Instances(new BufferedReader(new FileReader(\"C:/autos.arff\"))); //pristupanje podacima\n\t\tNonSparseToSparse sp = new NonSparseToSparse();\n\t\tsp.setInputFormat(dataset);\n\t\t\n\t\tInstances newData = Filter.useFilter(dataset, sp);\n\t\t\n\t\tArffSaver saver = new ArffSaver();\n\t\tsaver.setInstances(newData);\n\t\tsaver.setFile(new File(\"..\"));\n\t\tsaver.writeBatch();\n\t}",
"public static void main(String[] args) throws IOException {\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"FilmTrust Dataset Testing.\");\n System.out.println(\"------------------------------------------------\");\n\n double duration = System.currentTimeMillis();\n filmTrust = new Network(new File(\"src//data//ratings.txt\"),\n new File(\"src//data//trust.txt\"));\n\n filmTrust.connect();\n duration = System.currentTimeMillis() - duration;\n System.out.println(\"FilmTrust connected in \" + duration / 1000 + \" seconds.\");\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"Data Statistics:\");\n filmTrust.showStatistics();\n System.out.println(\"------------------------------------------------\");\n\n duration = System.currentTimeMillis();\n\n if (metaPath.equals(\"TrTeTr\")) {\n System.out.println(\"PathSim using Trustor -> Trustee -> Trustor :\");\n String predictionFileName = similaritMatrixFileName+metaPath+ \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n \n\n Set<Integer> trustorUsers = filmTrust.getTrustorUsers(); \n \n for (int userId : trustorUsers) { \n ArrayList<TrustorUser> similarTrustors = filmTrust.PathSimTrustor(userId, metaPath); \n writeSimilarityToFile(similarTrustors, userId, pFile);\n \n }// for trustor users \n \n pFile.close();\n System.out.println(\"\"); \n System.out.println(\"End of TrTeTr path\");\n } // if TrTeTr\n \n else if (metaPath.equals(\"TrTeTrTeTr\")) {\n System.out.println(\"PathSim using Trustor -> Trustee -> Trustor -> Trustee -> Trustor :\");\n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> trustorUsers = filmTrust.getTrustorUsers(); \n\n int counter = 0,processStatus=0, size = trustorUsers.size();\n for (int userId : trustorUsers) {\n \n ArrayList<TrustorUser> similarTrustors = filmTrust.PathSimTrustor(userId, metaPath);\n writeSimilarityToFile(similarTrustors, userId, pFile); \n \n }// for \n\n pFile.close();\n System.out.println(\"End of TrTeTrTeTr path\");\n } // if TrTeTrTeTr\n \n else if (metaPath.equals(\"TrTrTeTrTr\")) {\n System.out.println(\"PathSim using Trustor -> Trustor -> Trustee -> Trustor -> Trustor :\");\n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName)); \n \n Set<Integer> trustorUsers = filmTrust.getTrustorUsers();\n\n\n for (int userId : trustorUsers) { \n ArrayList<TrustorUser> similarTrustors = filmTrust.PathSimTrustor(userId, metaPath);\n writeSimilarityToFile(similarTrustors, userId, pFile);\n }\n pFile.close();\n System.out.println(\"End of TrTrTeTrTr path\");\n } // if TrTrTeTrTr\n \n else if (metaPath.equals(\"TeTrTe\")) {\n System.out.println(\"PathSim using Trustee -> Trustor -> Trustee :\");\n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> trusteeUsers = filmTrust.getTrusteeUsers();\n\n for (int userId : trusteeUsers) { \n ArrayList<TrusteeUser> similarTrustees = filmTrust.PathSimTrustee(userId, metaPath);\n writeSimilarityToFile(similarTrustees, userId, pFile); \n }\n pFile.close();\n System.out.println(\"End of TeTrTe path\");\n } // if TeTrTe\n \n else if (metaPath.equals(\"TeTrTeTrTe\")) {\n System.out.println(\"PathSim using Trustee -> Trustor -> Trustee -> Trustor -> Trustee:\"); \n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> trusteeUsers = filmTrust.getTrusteeUsers();\n for (int userId : trusteeUsers) { \n ArrayList<TrusteeUser> similarTrustees = filmTrust.PathSimTrustee(userId, metaPath);\n writeSimilarityToFile(similarTrustees, userId, pFile);\n }\n\n pFile.close();\n System.out.println(\"End of TeTrTeTrTe path\");\n } // if TeTrTeTrTe \n \n else if (metaPath.equals(\"TeTeTrTeTe\")) {\n System.out.println(\"PathSim using Trustee -> Trustee -> Trustor -> Trustee -> Trustee:\"); \n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> trusteeUsers = filmTrust.getTrusteeUsers();\n\n for (int userId : trusteeUsers) { \n ArrayList<TrusteeUser> similarTrustees = filmTrust.PathSimTrustee(userId, metaPath);\n writeSimilarityToFile(similarTrustees, userId, pFile);\n }\n\n pFile.close();\n System.out.println(\"End of TeTeTrTeTe path\");\n } // if TeTeTrTeTe\n \n else if (metaPath.equals(\"UrImUr\")) {\n System.out.println(\"PathSim using User -> Item -> User :\");\n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> ratingUsers = filmTrust.getRatingUsers();\n \n for (int userId : ratingUsers) {\n filmTrust.resetDataOfUsers();\n ArrayList<RatingUser> similarRatingUsers = filmTrust.PathSimRatingUser(userId, metaPath);\n writeSimilarityToFile(similarRatingUsers, userId, pFile);\n }\n pFile.close();\n System.out.println(\"End of UrImUr path\");\n }// if UrImUr\n else if (metaPath.equals(\"TrImTr\")) {\n System.out.println(\"PathSim using Trustor -> Item -> Trustor :\"); \n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n \n Set<Integer> trustorUsers = filmTrust.getTrustorUsers();\n\n for (int userId : trustorUsers) { \n ArrayList<TrustorUser> similarTrustors = filmTrust.PathSimTrustor(userId, metaPath);\n writeSimilarityToFile(similarTrustors, userId, pFile);\n }\n pFile.close();\n System.out.println(\"End of TrImTr path\");\n }// if TrImTr\n \n else if (metaPath.equals(\"TeImTe\")) {\n System.out.println(\"PathSim using Trustee -> Item -> Trustee :\"); \n String predictionFileName = similaritMatrixFileName+metaPath + \".csv\";\n FileWriter pFile = new FileWriter(new File(predictionFileName));\n\n Set<Integer> trusteeUsers = filmTrust.getTrusteeUsers();\n\n for (int userId : trusteeUsers) { \n ArrayList<TrusteeUser> similarTrustees = filmTrust.PathSimTrustee(userId, metaPath);\n writeSimilarityToFile(similarTrustees, userId, pFile);\n }\n pFile.close();\n System.out.println(\"End of TeImTe path\");\n }// if TrImTr\n else if(metaPath.equals(\"Test\")){\n System.out.println(\"sperating users:\");\n HashMap<Integer, RatingUser> ratingUsersItems = filmTrust.getRatingUsersItems(); \n HashMap<Integer, RatedItem> ratedItemsUsers = filmTrust.getRatedItemsUsers();\n \n System.out.println(\"cold users...\");\n String seperatedUsers = \"filmtrust-coldusers\";\n String seperatedFileName = seperatedUsers + \".txt\";\n FileWriter pFile = new FileWriter(new File(seperatedFileName));\n \n writeColdUsersToFile(ratingUsersItems, pFile); \n pFile.close();\n \n System.out.println(\"heavy users...\");\n seperatedUsers = \"filmtrust-heavyusers\";\n seperatedFileName = seperatedUsers + \".txt\";\n pFile = new FileWriter(new File(seperatedFileName)); \n writeHeavyUsersToFile(ratingUsersItems, pFile); \n pFile.close(); \n \n System.out.println(\"opinionated users...\");\n seperatedUsers = \"filmtrust-opinionatedusers\";\n seperatedFileName = seperatedUsers + \".txt\";\n pFile = new FileWriter(new File(seperatedFileName)); \n writeOpinionatedUsersToFile(ratingUsersItems, pFile); \n pFile.close(); \n \n System.out.println(\"niche items...\"); \n seperatedUsers = \"filmtrust-nicheitems\";\n seperatedFileName = seperatedUsers + \".txt\";\n pFile = new FileWriter(new File(seperatedFileName)); \n writeNicheItemsToFile(ratedItemsUsers, pFile); \n pFile.close();\n \n System.out.println(\"controversial items...\"); \n seperatedUsers = \"filmtrust-controversialitems\";\n seperatedFileName = seperatedUsers + \".txt\";\n pFile = new FileWriter(new File(seperatedFileName)); \n writeControversialItemsToFile(ratedItemsUsers, pFile); \n pFile.close();\n \n System.out.println(\"End of seperation\");\n }//test\n\n duration = System.currentTimeMillis() - duration;\n\n System.out.println(\"------------------------------------------------\");\n System.out.println(\"calculations done in \" + duration / 1000 + \" seconds.\");\n\n }",
"@Test\n public void noFilteringAllowsRepeatedResults() {\n final Dataset dataset = new Dataset(\"TEST1\", \"sql\");\n\n List<String> entry1 = new ArrayList<>();\n entry1.add(\"abcd\");\n entry1.add(\"123\");\n\n List<String> entry2 = new ArrayList<>();\n entry2.add(\"wxyz\");\n entry2.add(\"789\");\n\n List<String> entry3 = new ArrayList<>();\n entry3.add(\"wxyz\"); // same key as entry2\n entry3.add(\"456\");\n\n List<String> entry4 = new ArrayList<>();\n entry4.add(\"efgh\");\n entry4.add(\"001\");\n\n List<List<String>> queryResults = new ArrayList<>();\n queryResults.add(entry1);\n queryResults.add(entry2);\n queryResults.add(entry3);\n queryResults.add(entry4);\n\n // given\n dataset.populateCache(queryResults, 100L);\n\n // when\n final List<String> result1 = dataset.getCachedResult();\n final List<String> result2 = dataset.getCachedResult();\n final List<String> result3 = dataset.getCachedResult();\n final List<String> result4 = dataset.getCachedResult();\n\n // then\n assertEquals(\"Wrong result 1\", entry1, result1);\n assertEquals(\"Wrong result 2\", entry2, result2);\n assertEquals(\"Wrong result 3\", entry3, result3);\n assertEquals(\"Wrong result 4\", entry4, result4);\n\n // and\n try {\n dataset.getCachedResult();\n fail(\"Expected to run out of data\");\n\n } catch (IllegalStateException ex) {\n assertEquals(\"Wrong error\", \"No more data available for dataset: TEST1\", ex.getMessage());\n }\n\n // and\n assertEquals(\"Wrong cache size\", Optional.of(4), dataset.getMetrics().getCacheSize());\n assertEquals(\"Wrong timing\", Optional.of(100L), dataset.getMetrics().getTimingMilliseconds());\n assertEquals(\"Wrong cache requested\", Optional.of(5), dataset.getMetrics().getCacheRequested());\n assertEquals(\"Wrong filtered out\", Optional.empty(), dataset.getMetrics().getFilteredOut());\n }",
"void fetchFactFeeds();",
"void fit(DataSetIterator iterator);",
"@Nonnull\n @Override\n public DoiData resolve(DOI doi) throws DoiException {\n Objects.requireNonNull(doi);\n Response<JSONAPIDocument<Datacite42Schema>> doiResponse;\n\n doiResponse = dataCiteClient.getDoi(doi.getDoiName());\n throwExceptionOnBadResponseExcept404(doiResponse);\n\n if (doiResponse.code() == 404) {\n return new DoiData(DoiStatus.NEW);\n }\n\n JSONAPIDocument<Datacite42Schema> bodyJsonApiWrapper = doiResponse.body();\n\n if (!doiResponse.isSuccessful() || bodyJsonApiWrapper == null) {\n return new DoiData(DoiStatus.FAILED);\n }\n\n Datacite42Schema body = bodyJsonApiWrapper.get();\n String doiState = body.getState();\n\n if (DRAFT.equals(doiState)) {\n return new DoiData(\n DoiStatus.RESERVED, body.getUrl() != null ? URI.create(body.getUrl()) : null);\n }\n\n if (REGISTERED.equals(doiState)) {\n return new DoiData(DoiStatus.DELETED, URI.create(body.getUrl()));\n }\n\n if (FINDABLE.equals(doiState)) {\n return new DoiData(DoiStatus.REGISTERED, URI.create(body.getUrl()));\n }\n\n return new DoiData(DoiStatus.FAILED);\n }",
"@Test\n\tpublic void testMeasureSimilarity() {\n\t\tList<TimeSeriesSimilarityCollection> res;\n\t\tTimeSeriesSimilarityCollection r;\n\n\t\t// we are interested in measure now\n\t\tevaluator.setSimilarity(true, false, false);\n\n\t\t// add some data\n\t\t// @formatter:off\n\t\t// 01.01.15: (00:00) ++++++++++++ (02:00) Philipp (5)\n\t\t// 31.12.15: (00:00) ++++++++++++ (02:00) Tobias (5)\n\t\t// @formatter:on\n\t\tloadData(\"Philipp\", 5, \"01.01.2015 00:00:00\", \"01.01.2015 02:00:00\");\n\t\tloadData(\"Tobias\", 5, \"31.12.2015 00:00:00\", \"31.12.2015 02:00:00\");\n\n\t\t// get the similar once on a global measure level\n\t\tres = evaluator.evaluateSimilarity(\n\t\t\t\tgetQuery(\"SUM(IDEAS) AS IDEAS\", null), 1);\n\n\t\tassertEquals(1, res.size());\n\t\tr = res.get(0);\n\t\tassertEquals(0.0, r.getMeasureDistance(), 0.0);\n\t\tassertEquals(0.0, r.getTotalDistance(), 0.0);\n\t\t// 1451520000000l == 31 Dec 2015 00:00:00 UTC\n\t\tassertEquals(1451520000000l, ((Date) r.getLabelValue(0)).getTime());\n\n\t\t// add another data package\n\t\t// @formatter:off\n\t\t// 01.01.15: (00:00) ++++++++++++ (02:00) Philipp (5)\n\t\t// 30.11.15: (00:10) +++++ (01:00) Philipp (5)\n\t\t// 31.12.15: (00:00) ++++++++++++ (02:00) Tobias (5)\n\t\t// @formatter:on\n\t\tloadData(\"Philipp\", 5, \"30.11.2015 00:10:00\", \"30.11.2015 01:00:00\");\n\n\t\t// get the similar once on a filtered measure level\n\t\tres = evaluator.evaluateSimilarity(\n\t\t\t\tgetQuery(\"SUM(IDEAS) AS IDEAS\", \"NAME='Philipp'\"), 1);\n\t\tr = res.get(0);\n\t\t// 70 minutes (00:00 - 00:09 and 01:01 - 02:00), each 5 => 350\n\t\tassertEquals(350.0, r.getMeasureDistance(), 0.0);\n\t\tassertEquals(350.0, r.getTotalDistance(), 0.0);\n\t\t// 1448841600000l == 30 Nov 2015 00:00:00 UTC\n\t\tassertEquals(1448841600000l, ((Date) r.getLabelValue(0)).getTime());\n\n\t\t// add another data package\n\t\t// @formatter:off\n\t\t// 01.01.15: (00:00) ++++++++++++ (02:00) Philipp (5)\n\t\t// (00:10) ++++ (00:50) Edison (5)\n\t\t// 30.11.15: (00:00) +++++ (00:50) Edison (5) \n\t\t// (00:10) +++++ (01:00) Philipp (5)\n\t\t// (01:00) ++++++ (02:00) Philipp (5)\n\t\t// 31.12.15: (00:00) ++++++++++++ (02:00) Tobias (5)\n\t\t// @formatter:on\n\t\tloadData(\"Edison\", 5, \"30.11.2015 00:00:00\", \"30.11.2015 00:50:00\");\n\t\tloadData(\"Philipp\", 5, \"30.11.2015 01:00:00\", \"30.11.2015 02:00:00\");\n\t\tloadData(\"Edison\", 5, \"01.01.2015 00:10:00\", \"01.01.2015 00:50:00\");\n\n\t\t// get the similar once on a filtered measure level\n\t\tres = evaluator.evaluateSimilarity(\n\t\t\t\tgetQuery(\"SUM(IDEAS) AS IDEAS\", null), 1);\n\t\tr = res.get(0);\n\t\t// 1 minute (01:00:00), each 5 as value => 5\n\t\tassertEquals(5.0, r.getMeasureDistance(), 0.0);\n\t\tassertEquals(5.0, r.getTotalDistance(), 0.0);\n\t\t// 1448841600000l == 30 Nov 2015 00:00:00 UTC\n\t\tassertEquals(1448841600000l, ((Date) r.getLabelValue(0)).getTime());\n\n\t\t// fire one with dimensions\n\t\t// @formatter:off\n\t\t// 01.01.15: (00:00) ++++++++++++ (02:00) Philipp (5)\n\t\t// (00:10) ++++ (00:50) Edison (5)\n\t\t// 30.11.15: (00:00) +++++ (00:50) Edison (5) \n\t\t// (00:10) +++++ (01:00) Philipp (5)\n\t\t// (01:00) ++++++ (02:00) Philipp (5)\n\t\t// 31.12.15: (00:00) ++++++++++++ (02:00) Tobias (5)\n\t\t// @formatter:on\n\t\tres = evaluator.evaluateSimilarity(\n\t\t\t\tgetQuery(\"MAX(SUM(IDEAS)) AS IDEAS ON TIME.DEF.HOUR\", null), 1);\n\n\t\tassertEquals(1, res.size());\n\t\tr = res.get(0);\n\t\t// 1 minute (01:00:00), each 5 for the whole hour (* 60) as value => 300\n\t\tassertEquals(300.0, r.getMeasureDistance(), 0.0);\n\t\tassertEquals(300.0, r.getTotalDistance(), 0.0);\n\t\tassertEquals(\"R20151130_0000_0059\", r.getLabelValue(0));\n\t}",
"public void test_sf_948995() {\n OntModel m = ModelFactory.createOntologyModel( OntModelSpec.OWL_DL_MEM ); // OWL dl\n DatatypeProperty dp = m.createDatatypeProperty( NS + \"dp\" );\n dp.addRDFType( OWL.InverseFunctionalProperty );\n \n boolean ex = false;\n try {\n dp.as( InverseFunctionalProperty.class );\n }\n catch (ConversionException e) {\n ex = true;\n }\n assertTrue( \"Should have been a conversion exception\", ex );\n \n m = ModelFactory.createOntologyModel( OntModelSpec.OWL_MEM ); // OWL full\n dp = m.createDatatypeProperty( NS + \"dp\" );\n dp.addRDFType( OWL.InverseFunctionalProperty );\n \n ex = false;\n try {\n dp.as( InverseFunctionalProperty.class );\n }\n catch (ConversionException e) {\n ex = true;\n }\n assertFalse( \"Should not have been a conversion exception\", ex );\n }",
"public JenaDataSource(InputStream stream) \n\t{\n\t\tOntModel model = null;\n\t\t\n\t\tmodel = ModelFactory.createOntologyModel(OntModelSpec.OWL_DL_MEM);\n\t\tmodel.read(stream, null, \"TTL\");\n\t\tthis.populatePrefixMappings(model);\n\t\t\n\t\tsetModel(model);\n\t}",
"public void test_dn_0() {\n OntModel schema = ModelFactory.createOntologyModel( OntModelSpec.OWL_LITE_MEM_RULES_INF, null );\n \n schema.read( \"file:doc/inference/data/owlDemoSchema.xml\", null );\n \n int count = 0;\n for (Iterator i = schema.listIndividuals(); i.hasNext(); ) {\n //Resource r = (Resource) i.next();\n i.next();\n count++;\n /* Debugging * /\n for (StmtIterator j = r.listProperties(RDF.type); j.hasNext(); ) {\n System.out.println( \"ind - \" + r + \" rdf:type = \" + j.nextStatement().getObject() );\n }\n System.out.println(\"----------\"); /**/\n }\n \n assertEquals( \"Expecting 6 individuals\", 6, count );\n }",
"@RequestMapping(value = \"/queryrdf\", method = {RequestMethod.GET, RequestMethod.POST})\n public void queryRdf(@RequestParam(\"query\") final String query,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_QUERY_AUTH, required = false) String auth,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_CV, required = false) final String vis,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_INFER, required = false) final String infer,\n @RequestParam(value = \"nullout\", required = false) final String nullout,\n @RequestParam(value = RdfCloudTripleStoreConfiguration.CONF_RESULT_FORMAT, required = false) final String emit,\n @RequestParam(value = \"padding\", required = false) final String padding,\n @RequestParam(value = \"callback\", required = false) final String callback,\n final HttpServletRequest request,\n final HttpServletResponse response) {\n SailRepositoryConnection conn = null;\n final Thread queryThread = Thread.currentThread();\n auth = StringUtils.arrayToCommaDelimitedString(provider.getUserAuths(request));\n final Timer timer = new Timer();\n timer.schedule(new TimerTask() {\n\n @Override\n public void run() {\n log.debug(\"interrupting\");\n queryThread.interrupt();\n\n }\n }, QUERY_TIME_OUT_SECONDS * 1000);\n\n try {\n final ServletOutputStream os = response.getOutputStream();\n conn = repository.getConnection();\n\n final Boolean isBlankQuery = StringUtils.isEmpty(query);\n final ParsedOperation operation = QueryParserUtil.parseOperation(QueryLanguage.SPARQL, query, null);\n\n final Boolean requestedCallback = !StringUtils.isEmpty(callback);\n final Boolean requestedFormat = !StringUtils.isEmpty(emit);\n\n if (!isBlankQuery) {\n if (operation instanceof ParsedGraphQuery) {\n // Perform Graph Query\n final RDFHandler handler = new RDFXMLWriter(os);\n response.setContentType(\"text/xml\");\n performGraphQuery(query, conn, auth, infer, nullout, handler);\n } else if (operation instanceof ParsedTupleQuery) {\n // Perform Tuple Query\n TupleQueryResultHandler handler;\n\n if (requestedFormat && emit.equalsIgnoreCase(\"json\")) {\n handler = new SPARQLResultsJSONWriter(os);\n response.setContentType(\"application/json\");\n } else {\n handler = new SPARQLResultsXMLWriter(os);\n response.setContentType(\"text/xml\");\n }\n\n performQuery(query, conn, auth, infer, nullout, handler);\n } else if (operation instanceof ParsedUpdate) {\n // Perform Update Query\n performUpdate(query, conn, os, infer, vis);\n } else {\n throw new MalformedQueryException(\"Cannot process query. Query type not supported.\");\n }\n }\n\n if (requestedCallback) {\n os.print(\")\");\n }\n } catch (final Exception e) {\n log.error(\"Error running query\", e);\n throw new RuntimeException(e);\n } finally {\n if (conn != null) {\n try {\n conn.close();\n } catch (final RepositoryException e) {\n log.error(\"Error closing connection\", e);\n }\n }\n }\n\n timer.cancel();\n }",
"protected abstract Graph generateRdf(HttpRequestEntity entity) throws IOException;",
"public List<TimeseriesData> getTimeSeriesData(String query, long startTimeInEpocMillis, long endTimeInEpochMillis,\n String granularity) {\n List<TimeseriesData> timeSeriesData = new ArrayList<>();\n WavefrontMetricQueryResponse queryResponse =\n queryMetric(query, startTimeInEpocMillis, endTimeInEpochMillis, granularity);\n if (null != queryResponse && null != queryResponse.getTimeseries()) {\n for (Timeseries timeseries : queryResponse.getTimeseries()) {\n TimeseriesData data = new TimeseriesData();\n if (CollectionUtils.isEmpty(timeseries.getTags())) {\n data.setTags(new HashMap<>());\n } else {\n data.setTags(timeseries.getTags());\n }\n data.setData(timeseries.getData());\n data.getTags().put(\"host\", timeseries.getHost());\n timeSeriesData.add(data);\n }\n return timeSeriesData;\n }\n return timeSeriesData;\n }",
"public String asDublinCore(ApplicationConfiguration cfg, HttpClientRequest http) throws Exception {\n\n String url = this.getResourceUrl();\n\n String tmp;\n StringBuilder sb = new StringBuilder();\n sb.append(\"<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\");\n sb.append(\"\\r<rdf:RDF\");\n sb.append(\" xmlns:rdf=\\\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\\\"\");\n sb.append(\" xmlns:dc=\\\"http://purl.org/dc/elements/1.1/\\\"\");\n sb.append(\" xmlns:dct=\\\"http://purl.org/dc/terms/\\\"\");\n sb.append(\" xmlns:dcmiBox=\\\"http://dublincore.org/documents/2000/07/11/dcmi-box/\\\"\");\n sb.append(\" xmlns:ows=\\\"http://www.opengis.net/ows\\\"\");\n sb.append(\">\");\n sb.append(\"\\r<rdf:Description\");\n\n if (url.length() > 0) {\n sb.append(\" rdf:about=\\\"\").append(Val.escapeXml(url)).append(\"\\\"\");\n }\n sb.append(\">\");\n\n // identifier\n if (url.length() > 0) {\n sb.append(\"\\r<dc:identifier>\").append(Val.escapeXml(url)).append(\"</dc:identifier>\");\n }\n\n // title, description\n tmp = Val.chkStr(this.getTitle());\n if (tmp.length() > 0) {\n sb.append(\"\\r<dc:title>\").append(Val.escapeXml(tmp)).append(\"</dc:title>\");\n }\n \n tmp = Val.chkStr(this.getDescription());\n if (tmp.length() > 0) {\n sb.append(\"\\r<dc:description>\").append(Val.escapeXml(tmp)).append(\"</dc:description>\");\n }\n\n if (url.length() > 0) {\n String scheme = \"urn:x-esri:specification:ServiceType:ArcGIS\";\n tmp = \"MapService\"; // parent type\n if (tmp.length() > 0) {\n scheme += \":\" + tmp;\n }\n tmp = \"Layer\"; // type\n if (tmp.length() > 0) {\n scheme += \":\" + tmp;\n }\n sb.append(\"\\r<dct:references\");\n sb.append(\" scheme=\\\"\").append(Val.escapeXml(scheme)).append(\"\\\">\");\n sb.append(Val.escapeXml(url)).append(\"</dct:references>\");\n }\n\n // envelope\n EnvelopeValidator validator = new EnvelopeValidator();\n double[] env = validator.validateEnvelope(cfg, http, this.getExtent());\n if (env != null) {\n String lower = env[0] + \" \" + env[1];\n String upper = env[2] + \" \" + env[3];\n sb.append(\"\\r<ows:WGS84BoundingBox>\");\n sb.append(\"\\r<ows:LowerCorner>\").append(Val.escapeXml(lower)).append(\"</ows:LowerCorner>\");\n sb.append(\"\\r<ows:UpperCorner>\").append(Val.escapeXml(upper)).append(\"</ows:UpperCorner>\");\n sb.append(\"\\r</ows:WGS84BoundingBox>\");\n }\n\n sb.append(\"\\r</rdf:Description>\");\n sb.append(\"\\r</rdf:RDF>\");\n\n return sb.toString();\n\n }",
"@Override\n\tpublic Instances dataset() {\n\t\treturn null;\n\t}",
"public String getDataFalg() {\n return dataFalg;\n }",
"private List<GeneralResultRow> getData(FeatureSource<?, ?> featureSource)\n\t\t\tthrows Exception {\n\t\tif (featureSource == null) {\n\t\t\tException mple = new Exception(\"featureSource is null\");\n\t\t\tmple.printStackTrace();\n\t\t\tthrow mple;\n\t\t}\n\t\tthis.crs=featureSource.getSchema()\n\t\t\t\t.getCoordinateReferenceSystem();\n\t\tString crs = org.geotools.gml2.bindings.GML2EncodingUtils\n\t\t\t\t.epsgCode(this.crs);\n\t\tif (crs == null) {\n\t\t\tcrs = \"\" + Config.EPSG_CODE + \"\";\n\t\t}else{\n\t\t\ttry {\n\t\t\t\tint code=CRS.lookupEpsgCode(featureSource.getSchema().getCoordinateReferenceSystem(), true);\n\t\t\t\t//System.out.println(\"the code is: \"+code);\n\t\t\t\tcrs = String.valueOf(code);\n\t\t\t} catch (FactoryException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t//e1.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tthis.crsstring=crs;\n\t\t\n\t\tFeatureCollection<?, ?> collection = featureSource.getFeatures();\n\t\tFeatureIterator<?> iterator = collection.features();\n\t\tList<GeneralResultRow> resultlist = new ArrayList<GeneralResultRow>();\n\t\ttry {\n\t\t\tdouble total_thematic_duration=0.0;\n\t\t\tdouble total_duration_geom=0.0;\n\t\t\twhile (iterator.hasNext()) {\n\t\t\t\t\n\t\t\t\tlong startTime = System.nanoTime();\n\t\t\t\tFeature feature = iterator.next();\n\t\t\t\tGeneralResultRow newrow = new GeneralResultRow(); // new row\n\t\t\t\tfor (Property p : feature.getProperties()) {\n\t\t\t\t\tnewrow.addPair(p.getName().getLocalPart(), p.getValue());\n\t\t\t\t}\n\t\t\t\tlong endTime = System.nanoTime();\n\t\t\t\tdouble duration = (endTime - startTime) / 1000000; // divide by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1000000 to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// get\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// milliseconds.\n\t\t\t\ttotal_thematic_duration += duration;\n\t\t\t\tPrintTimeStats.printTime(\"Read Thematic from file\", duration);\n\t\t\t\t\n\t\t\t\tnewrow.addPair(primarykey, KeyGenerator.Generate()); // Add\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// primary\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// key\n\t\t\t\tstartTime = System.nanoTime();\n\t\t\t\tGeometryAttribute sourceGeometryAttribute = feature\n\t\t\t\t\t\t.getDefaultGeometryProperty();\n\t\t\t\tendTime = System.nanoTime();\n\t\t\t\tduration = (endTime - startTime) ; // divide by\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// 1000000 to\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// get\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// milliseconds.\n\t\t\t\ttotal_duration_geom+= duration;\n\t\t\t\tPrintTimeStats.printTime(\"Read Geometry from file\", duration);\n\t\t\t\t\n\n\t\t\t\t//RowHandler.handleGeometry(newrow, (Geometry)sourceGeometryAttribute.getValue(), crs);\n\t\t\t\tresultlist.add(newrow);\n\t\t\t}\n\t\t\tPrintTimeStats.printTime(\"Read Thematic data (total) from file\", total_thematic_duration);\n\t\t\tPrintTimeStats.printTime(\"Read Geometries (total) from file\", total_duration_geom);\n\t\t} finally {\n\t\t\titerator.close();\n\t\t}\n\n\t\treturn resultlist;\n\t}",
"protected Dataset readDatasetX(Reader datasetReader) throws IOException {\n List<Clause> clauses = new ArrayList<Clause>();\n List<String> classifications = new ArrayList<String>();\n readExamples(datasetReader, clauses, classifications);\n MemoryBasedDataset dataset = new MemoryBasedDataset();\n for (int i = 0; i < clauses.size(); i++){\n dataset.addExample(new Example(clauses.get(i)), classifications.get(i));\n }\n return dataset;\n }",
"public String domainStatisticsForQuery(String query, List<String> fq) throws Exception {\n SolrQuery solrQuery = new SolrQuery();\n solrQuery.setQuery(query);\n solrQuery.setRows(0);\n solrQuery.set(\"facet\", \"false\");\n \n // default scale (by year)\n int startYear = PropertiesLoaderWeb.ARCHIVE_START_YEAR;\n int endYear = LocalDate.now().getYear() + 1; // add one since it is not incluced\n\n solrQuery.setParam(\"json.facet\",\n \"{domains:{type:terms,field:domain,limit:30,facet:{years:{type:range,field:crawl_year,start:\" + startYear + \",end:\" + endYear + \",gap:1}}}}\");\n\n for (String filter : fq) {\n solrQuery.addFilterQuery(filter);\n }\n SolrUtils.setSolrParams(solrQuery); //TODO not sure about this one\n NoOpResponseParser rawJsonResponseParser = new NoOpResponseParser();\n rawJsonResponseParser.setWriterType(\"json\");\n\n QueryRequest req = new QueryRequest(solrQuery);\n req.setResponseParser(rawJsonResponseParser);\n\n NamedList<Object> resp = solrServer.request(req);\n String jsonResponse = (String) resp.get(\"response\");\n return jsonResponse;\n }",
"@java.lang.Override\n public com.clarifai.grpc.api.DatasetOrBuilder getDatasetOrBuilder() {\n if (inputSourceCase_ == 11) {\n return (com.clarifai.grpc.api.Dataset) inputSource_;\n }\n return com.clarifai.grpc.api.Dataset.getDefaultInstance();\n }",
"public XYDataset getDataset() {\n\n // Initialize some variables\n XYSeriesCollection dataset = new XYSeriesCollection();\n XYSeries series[][][] = new XYSeries[rois.length][images.length][stats.length];\n String seriesname[][][] = new String[rois.length][images.length][stats.length];\n int currentSlice = ui.getOpenMassImages()[0].getCurrentSlice();\n ArrayList<String> seriesNames = new ArrayList<String>();\n String tempName = \"\";\n double stat;\n\n // Image loop\n for (int j = 0; j < images.length; j++) {\n MimsPlus image;\n if (images[j].getMimsType() == MimsPlus.HSI_IMAGE || images[j].getMimsType() == MimsPlus.RATIO_IMAGE) {\n image = images[j].internalRatio;\n } else {\n image = images[j];\n }\n\n // Plane loop\n for (int ii = 0; ii < planes.size(); ii++) {\n int plane = (Integer) planes.get(ii);\n if (image.getMimsType() == MimsPlus.MASS_IMAGE) {\n ui.getOpenMassImages()[0].setSlice(plane, false);\n } else if (image.getMimsType() == MimsPlus.RATIO_IMAGE) {\n ui.getOpenMassImages()[0].setSlice(plane, image);\n }\n\n // Roi loop\n for (int i = 0; i < rois.length; i++) {\n\n // Set the Roi to the image.\n Integer[] xy = ui.getRoiManager().getRoiLocation(rois[i].getName(), plane);\n rois[i].setLocation(xy[0], xy[1]);\n image.setRoi(rois[i]);\n\n // Stat loop\n for (int k = 0; k < stats.length; k++) {\n\n // Generate a name for the dataset.\n String prefix = \"\";\n if (image.getType() == MimsPlus.MASS_IMAGE || image.getType() == MimsPlus.RATIO_IMAGE) {\n prefix = \"_m\";\n }\n if (seriesname[i][j][k] == null) {\n tempName = stats[k] + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName();\n int dup = 1;\n while (seriesNames.contains(tempName)) {\n tempName = stats[k] + prefix + image.getRoundedTitle(true) + \"_r\" + rois[i].getName() + \" (\" + dup + \")\";\n dup++;\n }\n seriesNames.add(tempName);\n seriesname[i][j][k] = tempName;\n }\n\n // Add data to the series.\n if (series[i][j][k] == null) {\n series[i][j][k] = new XYSeries(seriesname[i][j][k]);\n }\n\n // Get the statistic.\n stat = getSingleStat(image, stats[k], ui);\n if (stat > Double.MAX_VALUE || stat < (-1.0) * Double.MAX_VALUE) {\n stat = Double.NaN;\n }\n series[i][j][k].add(((Integer) planes.get(ii)).intValue(), stat);\n\n } // End of Stat\n } // End of Roi\n } // End of Plane\n } // End of Image\n\n // Populate the final data structure.\n for (int i = 0; i < rois.length; i++) {\n for (int j = 0; j < images.length; j++) {\n for (int k = 0; k < stats.length; k++) {\n dataset.addSeries(series[i][j][k]);\n }\n }\n }\n\n ui.getOpenMassImages()[0].setSlice(currentSlice);\n\n return dataset;\n }",
"private void generateRDFTriplesFromPredicateObjectMap(\n \t\t\tSesameDataSet sesameDataSet, TriplesMap triplesMap,\n \t\t\tResource subject, Set<URI> subjectGraphs,\n \t\t\tPredicateObjectMap predicateObjectMap) throws SQLException,\n \t\t\tR2RMLDataError, UnsupportedEncodingException {\n \t\tSet<URI> predicates = new HashSet<URI>();\n \t\tfor (PredicateMap pm : predicateObjectMap.getPredicateMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> pmFromRow = applyValueToRow(pm);\n \t\t\tboolean nullFound = false;\n \t\t\tfor (ColumnIdentifier value : pmFromRow.keySet())\n \t\t\t\tif (pmFromRow.get(value) == null) {\n \t\t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\t\tnullFound = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\tif (nullFound)\n \t\t\t\tcontinue;\n \t\t\tURI predicate = (URI) extractValueFromTermMap(pm, pmFromRow,\n \t\t\t\t\ttriplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate predicate : \"\n \t\t\t\t\t+ predicate);\n \t\t\tpredicates.add(predicate);\n \t\t}\n \t\t// 2. Let objects be the set of generated RDF terms that result from\n \t\t// applying each of\n \t\t// the predicate-object map's object maps (but not referencing object\n \t\t// maps) to row\n \t\tSet<Value> objects = new HashSet<Value>();\n \t\tfor (ObjectMap om : predicateObjectMap.getObjectMaps()) {\n \t\t\tMap<ColumnIdentifier, byte[]> omFromRow = applyValueToRow(om);\n \t\t\tboolean nullFound = false;\n \t\t\tfor (ColumnIdentifier value : omFromRow.keySet())\n \t\t\t\tif (omFromRow.get(value) == null) {\n \t\t\t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] NULL found, this object will be ignored.\");\n \t\t\t\t\tnullFound = true;\n \t\t\t\t\tbreak;\n \t\t\t\t}\n \t\t\tif (nullFound)\n \t\t\t\tcontinue;\n \t\t\tValue object = extractValueFromTermMap(om, omFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate object : \"\n \t\t\t\t\t+ object);\n \t\t\tobjects.add(object);\n \t\t}\n \t\t// 3. Let pogm be the set of graph maps of the predicate-object map\n \t\tSet<GraphMap> pogm = predicateObjectMap.getGraphMaps();\n \t\t// 4. Let predicate-object_graphs be the set of generated RDF\n \t\t// terms that result from applying each graph map in pogm to row\n \t\tSet<URI> predicate_object_graphs = new HashSet<URI>();\n \t\t// 4+. Add graph of subject graphs set\n \t\tif (subjectGraphs != null)\n \t\t\tpredicate_object_graphs.addAll(subjectGraphs);\n \t\tfor (GraphMap graphMap : pogm) {\n \t\t\tMap<ColumnIdentifier, byte[]> pogmFromRow = applyValueToRow(graphMap);\n \t\t\tURI predicate_object_graph = (URI) extractValueFromTermMap(\n \t\t\t\t\tgraphMap, pogmFromRow, triplesMap);\n \t\t\tlog.debug(\"[R2RMLEngine:genereateRDFTriplesFromRow] Generate predicate object graph : \"\n \t\t\t\t\t+ predicate_object_graph);\n \t\t\tpredicate_object_graphs.add(predicate_object_graph);\n \t\t}\n \t\t// 5. For each possible combination <predicate, object> where predicate\n \t\t// is a member\n \t\t// of predicates and object is a member of objects,\n \t\t// add triples to the output dataset\n \t\tfor (URI predicate : predicates) {\n \t\t\tfor (Value object : objects) {\n \t\t\t\taddTriplesToTheOutputDataset(sesameDataSet, subject, predicate,\n \t\t\t\t\t\tobject, predicate_object_graphs);\n \t\t\t}\n \t\t}\n \t}",
"public void testDynamizePredicate() {\n part.insertPredicate(\"<http://dbpedia.org/ontology/deathPlace>\", 100);\n\n part.setInsDyn(0.5);\n part.setDelDyn(0.1);\n \n part.dynamizePredicate(\"<http://dbpedia.org/ontology/deathPlace>\");\n\n WebResource endpoint = part.getService();\n String checkquery= \"SELECT (COUNT(*) as ?no) \"\n + \"{?s <http://dbpedia.org/ontology/deathPlace> ?o }\";\n\n assertEquals(140,\n Integer.parseInt(\n endpoint.path(\"sparql\").queryParam(\"query\", checkquery)\n\t\t\t .accept(\"application/sparql-results+csv\")\n\t\t\t .get(String.class).replace(\"no\\n\", \"\").trim()));\n }",
"public static List<QSL> loadQsl(String fileSorgente) throws IOException {\r\n\t\tTimestamp t1 = new Timestamp(System.currentTimeMillis());\r\n\t\tFile reportFile = new File(fileSorgente);\r\n\t\tFileInputStream fis = new FileInputStream(reportFile);\r\n\t\tbyte[] data = new byte[(int) reportFile.length()];\r\n\t\tfis.read(data);\r\n\t\tfis.close();\r\n\t\t\r\n\t\tDate fileDate = new Date(reportFile.lastModified());\r\n\t\tDate now = new Date();\r\n\t\tlong diff = now.getTime() - fileDate.getTime();\r\n\t int age = (int) TimeUnit.DAYS.convert(diff, TimeUnit.MILLISECONDS);\r\n\t List<QSL> conferme = new ArrayList<QSL>();\r\n\r\n\t\tString[] report = new String(data, \"UTF-8\").split(\"<eoh>\");\r\n\t\tString header = report[0].split(\"\\n\")[1];\r\n\t\tSystem.out.format(\"Report di %d giorni, %s\", age, header);\r\n\r\n\t\treport = report[1].split(\"<eor>\");\r\n\r\n\t\tfor (String record : report) {\r\n\t\t\tif (!record.contains(\"<DXCC:\"))\r\n\t\t\t\tcontinue;\r\n\t\t\tQSL qsl = new QSL(record);\r\n\t\t\tconferme.add(qsl);\r\n\t\t}\r\n\t\tTimestamp t2 = new Timestamp(System.currentTimeMillis());\r\n\t\tfloat tt = t2.getTime() - t1.getTime();\r\n\t\tSystem.out.format(\"Ho elaborato il file: %s in %dms.\\n\", fileSorgente, (int)tt);\r\n\t\treturn conferme;\r\n\t}",
"public DataIterator getDefinedData(boolean forward);",
"public static void createSimple() throws Exception {\n\t\t// create a sesame memory sail\n\t\tMemoryStore memoryStore = new MemoryStore();\n\n\t\t// create a lucenesail to wrap the memorystore\n\t\tLuceneSail lucenesail = new LuceneSail();\t\t\n\t\t// set this parameter to let the lucene index store its data in ram\n\t\tlucenesail.setParameter(LuceneSail.LUCENE_RAMDIR_KEY, \"true\");\n\t\t// set this parameter to store the lucene index on disk\n\t\t// lucenesail.setParameter(LuceneSail.LUCENE_DIR_KEY, \"./data/mydirectory\");\n\t\t\n\t\t// wrap memorystore in a lucenesail\n\t\tlucenesail.setDelegate(memoryStore);\n\t\t\n\t\t// create a Repository to access the sails\n\t\tSailRepository repository = new SailRepository(lucenesail);\n\t\trepository.initialize();\n\t\t\n\t\t// add some test data, the FOAF ont\n\t\tSailRepositoryConnection connection = repository.getConnection();\n\t\tconnection.begin();\n\t\ttry {\n//\t\t\tconnection.setAutoCommit(false);\n\t\t\tFile file = new File(\"/Users/sschenk/Downloads/foaf.rdfs\");\n\t\t\tSystem.out.println(file.exists());\n\t\t\tconnection.add(\n\t\t\t\t\tfile,\n\t\t\t\t\t\"\", \n\t\t\t\t\tRDFFormat.RDFXML);\n\t\t\tconnection.commit();\n\t\t\t\n\t\t\t// search for all resources that mention \"person\"\n\t\t\tString queryString = \"PREFIX search: <\"+LuceneSailSchema.NAMESPACE+\"> \\n\" +\n\t\t\t\t\t\"SELECT ?x ?score ?snippet WHERE {?x search:matches ?match. \\n\" +\n\t\t\t\t\t\"?match search:query \\\"person\\\"; \\n\" +\n\t\t\t\t\t\"search:score ?score; \\n\" +\n\t\t\t\t\t\"search:snippet ?snippet. }\" ;\n\t\t\tSystem.out.println(\"Running query: \\n\"+queryString);\n\t\t\tTupleQuery query = connection.prepareTupleQuery(QueryLanguage.SPARQL, queryString);\n\t\t\tTupleResult result = query.evaluate();\n\t\t\ttry { \n\t\t\t\t// print the results\n\t\t\t\twhile (result.hasNext()){\n\t\t\t\t\tBindingSet bindings = result.next();\n\t\t\t\t\tSystem.out.println(\"found match: \");\n\t\t\t\t\tfor (Binding binding : bindings) {\n\t\t\t\t\t\tSystem.out.println(\" \"+binding.getName()+\": \"+binding.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} finally {\n\t\t\t\tresult.close();\n\t\t\t}\n\t\t} finally {\n\t\t\tconnection.close();\n\t\t\trepository.shutDown();\n\t\t}\n\t\t\n\t}",
"private Map rdf2map(RdfRDF rdf) {\n \n \t\tHashMap map = new HashMap();\n \t\tRdfDescription dc = (RdfDescription) rdf.getDescription().get(0);\n \n \t\tIterator it = dc.getDcmes().iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tObject entry = it.next();\n \t\t\t// This is a hack: extract label from class name\n \t\t\tString className = entry.getClass().toString();\n \t\t\tString[] parts = className.split(\"\\\\.\");\n \t\t\tparts = parts[parts.length - 1].split(\"Impl\");\n \n \t\t\tfinal String label = parts[0];\n \t\t\tif (label.startsWith(\"Date\")) {\n \t\t\t\tmap.put(label, ((Date) entry).getContent().get(0).toString());\n \t\t\t} else if (label.startsWith(\"Title\")) {\n \t\t\t\tTitle title = (Title) entry;\n \t\t\t\tmap.put(label, title.getContent().get(0).toString());\n \t\t\t} else if (label.startsWith(\"Identifier\")) {\n \t\t\t\tmap.put(label, ((Identifier) entry).getContent().get(0)\n \t\t\t\t\t\t.toString());\n \t\t\t} else if (label.startsWith(\"Description\")) {\n \t\t\t\tmap.put(label, ((Description) entry).getContent().get(0)\n \t\t\t\t\t\t.toString());\n \t\t\t} else if (label.startsWith(\"Source\")) {\n \t\t\t\tmap.put(label, ((Source) entry).getContent().get(0).toString());\n \t\t\t} else if (label.startsWith(\"Type\")) {\n \t\t\t\tmap.put(label, ((Type) entry).getContent().get(0).toString());\n \t\t\t} else if (label.startsWith(\"Format\")) {\n \t\t\t\tmap.put(label, ((Format) entry).getContent().get(0).toString());\n \t\t\t} else {\n \t\t\t\t//\n \t\t\t}\n \n \t\t}\n \t\treturn map;\n \t}",
"IStreamList<T> transform(IStreamList<T> dataset);",
"public void queryData() throws SolrServerException {\n\t\tfinal SolrQuery query = new SolrQuery(\"*:*\");\r\n\t\tquery.setRows(2000);\r\n\t\t// 5. Executes the query\r\n\t\tfinal QueryResponse response = client.query(query);\r\n\r\n\t\t/*\t\tassertEquals(1, response.getResults().getNumFound());*/\r\n\r\n\t\t// 6. Gets the (output) Data Transfer Object.\r\n\t\t\r\n\t\t\r\n\t\r\n\t\tif (response.getResults().iterator().hasNext())\r\n\t\t{\r\n\t\t\tfinal SolrDocument output = response.getResults().iterator().next();\r\n\t\t\tfinal String from = (String) output.getFieldValue(\"from\");\r\n\t\t\tfinal String to = (String) output.getFieldValue(\"to\");\r\n\t\t\tfinal String body = (String) output.getFieldValue(\"body\");\r\n\t\t\t// 7.1 In case we are running as a Java application print out the query results.\r\n\t\t\tSystem.out.println(\"It works! I found the following book: \");\r\n\t\t\tSystem.out.println(\"--------------------------------------\");\r\n\t\t\tSystem.out.println(\"ID: \" + from);\r\n\t\t\tSystem.out.println(\"Title: \" + to);\r\n\t\t\tSystem.out.println(\"Author: \" + body);\r\n\t\t}\r\n\t\t\r\n\t\tSolrDocumentList list = response.getResults();\r\n\t\tSystem.out.println(\"list size is: \" + list.size());\r\n\r\n\r\n\r\n\t\t/*\t\t// 7. Otherwise asserts the query results using standard JUnit procedures.\r\n\t\tassertEquals(\"1\", id);\r\n\t\tassertEquals(\"Apache SOLR Essentials\", title);\r\n\t\tassertEquals(\"Andrea Gazzarini\", author);\r\n\t\tassertEquals(\"972-2-5A619-12A-X\", isbn);*/\r\n\t}",
"private FechaCierreXModulo queryData() {\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Los filtros son \"\n\t\t\t\t\t+ this.filterBI.getBean().toString());\n\n\t\t\t// Notification.show(\"Los filtros son \"\n\t\t\t// + this.filterBI.getBean().toString());\n\n\t\t\tFechaCierreXModulo item = mockData(this.filterBI.getBean());\n\n\t\t\treturn item;\n\n\t\t} catch (Exception e) {\n\t\t\tLogAndNotification.print(e);\n\t\t}\n\n\t\treturn new FechaCierreXModulo();\n\t}",
"public static void main(String[] args) throws IOException, ParserConfigurationException, SAXException {\n\t\tif(args[1].contains(\".xml\")){\n\t\t\tXMLBIFParser parser=new XMLBIFParser();\n\t\t\tBayesianNetwork bn=parser.readNetworkFromFile(args[1]);\n\t\t\tAssignment asgm=new Assignment();\n\t\t\tfor(int i=3;i<args.length;i=i+2){\n\t\t\t\tRandomVariable r=bn.getVariableByName(args[i]);\n\t\t\t\tasgm.put(r,args[i+1]);\n\t\t\t}\n\t\t\tbn.getVariableListTopologicallySorted();\n\t\t\tRandomVariable query=bn.getVariableByName(args[2]);\n\t\t\tRejectionSampling rejection=new RejectionSampling();\n\t\t\tDistribution output=new Distribution();\n\t\t\tfor(Object x:query.getDomain()){\n\t\t\t\toutput.put(x, 0);\n\t\t\t}\n\t\t\tlong startTime = System.currentTimeMillis();\n\t\t\tint count=Integer.valueOf(args[0]);\n\t\t\tSystem.out.println(rejection.rejection(query, bn, asgm, output, count).toString());\n\t\t\tlong endtime = System.currentTimeMillis();\n\t\t\tSystem.out.println(\"Runtime:\" + (endtime-startTime) + \"ms\");\n\t\t}\n\n\t}",
"private Dataset createDataset1() {\n final RDF factory1 = createFactory();\n\n final IRI name = factory1.createIRI(\"http://xmlns.com/foaf/0.1/name\");\n final Dataset g1 = factory1.createDataset();\n final BlankNode b1 = createOwnBlankNode(\"b1\", \"0240eaaa-d33e-4fc0-a4f1-169d6ced3680\");\n g1.add(b1, b1, name, factory1.createLiteral(\"Alice\"));\n\n final BlankNode b2 = createOwnBlankNode(\"b2\", \"9de7db45-0ce7-4b0f-a1ce-c9680ffcfd9f\");\n g1.add(b2, b2, name, factory1.createLiteral(\"Bob\"));\n\n final IRI hasChild = factory1.createIRI(\"http://example.com/hasChild\");\n g1.add(null, b1, hasChild, b2);\n\n return g1;\n }",
"@Override\n\tpublic QanaryMessage process(QanaryMessage myQanaryMessage) throws SparqlQueryFailed, Exception {\n\t\tlogger.info(\"cacheFile location: {}\", cacheFile);\n//\t\tlong startTime = System.currentTimeMillis();\n\t\torg.apache.log4j.Logger.getRootLogger().setLevel(org.apache.log4j.Level.OFF);\n\t\tMap<String, Map<String, Double>> allProperties = new HashMap<String, Map<String, Double>>();\n\t\tlogger.info(\"process: {}\", myQanaryMessage);\n\t\t// TODO: implement processing of question\n\n\t\tQanaryUtils myQanaryUtils = this.getUtils(myQanaryMessage);\n\t\tQanaryQuestion<String> myQanaryQuestion = new QanaryQuestion(myQanaryMessage);\n\t\tString question = myQanaryQuestion.getTextualRepresentation();\n\n\t\tboolean hasCacheResult = false;\n\n\t\tif (cacheEnabled) {\n\t\t\tFileCacheResult cacheResult = readFromCache(question);\n\t\t\tlogger.info(\"cached Result: {}\", cacheResult.links);\n\t\t\thasCacheResult = cacheResult.hasCacheResult;\n\t\t\tallProperties.putAll(cacheResult.links);\n\t\t\tlogger.info(\"allProperties MAP after adding results: {}\\n\", allProperties);\n\t\t}\n\n\t\t\n\t\t// STEP1: Retrieve the named graph and the endpoint\n\t\tString endpoint = myQanaryMessage.getEndpoint().toASCIIString();\n\t\tString namedGraph = myQanaryMessage.getInGraph().toASCIIString();\n\t\tlogger.info(\"Graph: {}\", namedGraph);\n\t\tlogger.info(\"Endpoint: {}\", endpoint);\n\t\tlogger.info(\"InGraph: {}\", namedGraph);\n\n\t\tif (!hasCacheResult) {\n\n\t\t\t// STEP2: Retrieve information that are needed for the computations\n\t\t\t// Here, we need two parameters as input to be fetched from triplestore-\n\t\t\t// question and language of the question.\n\t\t\t// So first, Retrieve the uri where the question is exposed\n//\t\tString sparql = \"PREFIX qa:<http://www.wdaqua.eu/qa#> \" + \"SELECT ?questionuri \" + \"FROM <\" + namedGraph + \"> \"\n//\t\t\t\t+ \"WHERE {?questionuri a qa:Question}\";\n\n//\t\tResultSet result = myQanaryUtils.selectFromTripleStore(sparql, endpoint);\n//\t\tString uriQuestion = result.next().getResource(\"questionuri\").toString();\n//\t\tlogger.info(\"Uri of the question: {}\", uriQuestion);\n\t\t\t// Retrieve the question itself\n//\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\t// TODO: pay attention to \"/raw\" maybe change that\n//\t\tResponseEntity<String> responseEntity = restTemplate.getForEntity(uriQuestion + \"/raw\", String.class);\n//\t\tString question = responseEntity.getBody();\n//\t\tlogger.info(\"Question: {}\", question);\n\n\t\t\t// the below mentioned SPARQL query to fetch annotation of language from\n\t\t\t// triplestore\n\t\t/*\n\t\tString questionlang = \"PREFIX qa: <http://www.wdaqua.eu/qa#> \" //\n\t\t\t\t+ \"SELECT ?lang \" + \"FROM <\" + namedGraph + \"> \" //\n\t\t\t\t+ \"WHERE {?q a qa:Question .\" //\n\t\t\t\t+ \" ?anno <http://www.w3.org/ns/openannotation/core/hasTarget> ?q .\" //\n\t\t\t\t+ \" ?anno <http://www.w3.org/ns/openannotation/core/hasBody> ?lang .\" //\n\t\t\t\t+ \" ?anno a qa:AnnotationOfQuestionLanguage }\";\n\t\t// Now fetch the language, in our case it is \"en\".\n\t\tResultSet result1 = myQanaryUtils.selectFromTripleStore(questionlang, endpoint);\n\t\t */\n\t\t\tString language1 = \"en\";\n//\t\tlogger.info(\"Language of the Question: {}\", language1);\n\n\t\t\tString url = \"\";\n\t\t\tString data = \"\";\n\t\t\tString contentType = \"application/json\";\n\n\t\t\t// http://repository.okbqa.org/components/21 is the template generator URL\n\t\t\t// Sample input for this is mentioned below.\n\t\t\t/*\n\t\t\t * { \"string\": \"Which river flows through Seoul?\", \"language\": \"en\" }\n\t\t\t * http://ws.okbqa.org:1515/templategeneration/rocknrole\n\t\t\t */\n\n\t\t\t// now arrange the Web service and input parameters in the way, which is needed\n\t\t\t// for CURL command\n\t\t\turl = \"http://ws.okbqa.org:1515/templategeneration/rocknrole\"; // @TODO: move to application.properties\n\t\t\tdata = \"{ \\\"string\\\":\\\"\" + question + \"\\\",\\\"language\\\":\\\"\" + language1 + \"\\\"}\";// \"{ \\\"string\\\": \\\"Which river\n\t\t\t// flows through Seoul?\\\",\n\t\t\t// \\\"language\\\": \\\"en\\\"}\";\n\t\t\tlogger.info(\"Component: 21; data: {}\", data);\n\t\t\tString output1 = \"\";\n\t\t\t// pass the input in CURL command and call the function.\n\n\t\t\ttry {\n\t\t\t\toutput1 = DiambiguationProperty.runCurlPOSTWithParam(url, data, contentType);\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tlogger.info(\"The output template is: {}\", output1);\n\n\t\t\t/*\n\t\t\t * once output is received, now the task is to parse the generated template, and\n\t\t\t * store the needed information which is Resource, Property, Resource Literal,\n\t\t\t * and Class. Then push this information back to triplestore. The below code\n\t\t\t * before step 4 does parse the template. For parsing PropertyRetrival.java file\n\t\t\t * is used, which is in the same package.\n\t\t\t *\n\t\t\t * for this, we create a new object property of Property class.\n\t\t\t *\n\t\t\t */\n\n\t\t\turl = \"http://ws.okbqa.org:2357/agdistis/run?\"; // @TODO: move to application.properties\n\t\t\tdata = output1.substring(1, output1.length() - 1);\n\t\t\tcontentType = \"application/json\";\n\n\t\t\tlogger.info(\"Component: 7; data: {}\", data);\n\t\t\toutput1 = \"\";\n\t\t\ttry {\n\t\t\t\toutput1 = DiambiguationProperty.runCurlGetWithParam(url, data, contentType);\n\t\t\t} catch (Exception e) {\n\t\t\t}\n\t\t\tlogger.info(\"The output template is: {}\", output1);\n\n\t\t\tJSONParser parser = new JSONParser();\n\n\t\t\ttry {\n\n\t\t\t\tJSONObject json = (JSONObject) parser.parse(output1);\n\n\t\t\t\tJSONArray characters = (JSONArray) json.get(\"ned\");\n\t\t\t\tIterator i = characters.iterator();\n\n\t\t\t\twhile (i.hasNext()) {\n\t\t\t\t\tJSONObject mainObject = (JSONObject) i.next();\n\t\t\t\t\tJSONArray types = (JSONArray) mainObject.get(\"properties\");\n\t\t\t\t\tIterator iTypes = types.iterator();\n\t\t\t\t\tString var = \"\";\n\n\t\t\t\t\twhile (iTypes.hasNext()) {\n\t\t\t\t\t\tMap<String, Double> urlsAndScore = new HashMap<String, Double>();\n\t\t\t\t\t\tJSONObject tempObject = (JSONObject) iTypes.next();\n\t\t\t\t\t\tString urls = (String) tempObject.get(\"value\");\n\t\t\t\t\t\tdouble score = (double) tempObject.get(\"score\");\n\t\t\t\t\t\tvar = (String) tempObject.get(\"var\");\n\t\t\t\t\t\tif (allProperties.size() > 0 && allProperties.containsKey(var)) {\n\n\t\t\t\t\t\t\tdouble tScore = (double) allProperties.get(var).entrySet().iterator().next().getValue();\n\t\t\t\t\t\t\tif (tScore < score) {\n\n\t\t\t\t\t\t\t\tallProperties.get(var).remove(allProperties.get(var).entrySet().iterator().next().getKey());\n\t\t\t\t\t\t\t\tallProperties.get(var).put(urls, score);\n\t\t\t\t\t\t\t\tlogger.info(\"var: {}, urls: {}, score: {}\", var, urls, score);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\turlsAndScore.put(urls, score);\n\t\t\t\t\t\t\tlogger.info(\"var: {}, urls: {}, score: {}\", var, urls, score);\n\t\t\t\t\t\t\t// allUrls.put(\"classes\", urlsAndScore);\n\t\t\t\t\t\t\tallProperties.put(var, urlsAndScore);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (cacheEnabled) {\n\t\t\t\t\tthis.writeToCache(question, allProperties);\n\t\t\t\t}\n\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tfor (String vars : allProperties.keySet()) {\n\t\t\tMap<String, Double> allUrls = allProperties.get(vars);\n\t\t\tint count = 0;\n\t\t\tfor (String urls : allUrls.keySet()) {\n\t\t\t\tlogger.info(\"Inside : Literal: {}\", urls);\n\t\t\t\tString sparql = \"PREFIX qa: <http://www.wdaqua.eu/qa#> \" //\n\t\t\t\t\t\t+ \"PREFIX oa: <http://www.w3.org/ns/openannotation/core/> \" //\n\t\t\t\t\t\t+ \"PREFIX xsd: <http://www.w3.org/2001/XMLSchema#> \" //\n\t\t\t\t\t\t+ \"INSERT { \" + \"GRAPH <\" + namedGraph+ \"> { \" //\n\t\t\t\t\t\t+ \" ?a a qa:AnnotationOfRelation . \" + \" ?a oa:hasTarget [ \" + \" a oa:SpecificResource; \" // \n\t\t\t\t\t\t+ \" oa:hasSource <\" + myQanaryQuestion.getUri() + \">; \" + \" ] . \" //\n\t\t\t\t\t\t+ \" ?a oa:hasBody <\" + urls + \"> ;\" // \n\t\t\t\t\t\t+ \" oa:annotatedBy <urn:qanary:\"+this.applicationName+\"> ; \" //\n\t\t\t\t\t\t+ \" oa:annotatedAt ?time \"\n\t\t\t\t\t\t+ \"}} \" //\n\t\t\t\t\t\t+ \"WHERE { \" //\n\t\t\t\t\t\t+ \"BIND (IRI(str(RAND())) AS ?a) .\" //\n\t\t\t\t\t\t+ \"BIND (now() as ?time) \" //\n\t\t\t\t\t\t+ \"}\";\n\t\t\t\tlogger.info(\"Sparql query: {}\", sparql);\n\t\t\t\tmyQanaryUtils.updateTripleStore(sparql, endpoint);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tlogger.info(\"Count is: {}\",count);\n\t\t}\n\n\t\treturn myQanaryMessage;\n\t}",
"public interface IDataset extends Serializable{\n\t\n\t/**\n\t * Retrieve the data of the data set.\n\t * \n\t * @return an iterator over all data set items in the data set.\n\t */\n\tpublic Iterator<IDatasetItem> iterateOverDatasetItems();\n\t\n\t/**\n\t * Gets a normalizer for the data set.\n\t * \n\t * @return the corresponding normalizer.\n\t */\n\tpublic INormalizer getNormalizer();\n\t\n\t/**\n\t * Gets a immutable map that indicates for each attribute (-tag) if it should be used for clustering.\n\t * @return map of attribute-tags to boolean values \n\t */\n\tpublic ImmutableMap<String, Boolean> getAttributeClusteringConfig();\n\t\n\t/**\n\t * Scales the passed value to the range defined in the data set property files.\n\t * @param value a normalized value\n\t * @param attributeTag the identifier of the attribute\n\t * @return the attribute value in the original scale\n\t */\n\tpublic double denormalize(double value, String attributeTag);\n\t\n}",
"private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}",
"private static Data getDataObject(final String dataset) throws IOException {\n \n final Data data = Data.create(dataset, StandardCharsets.UTF_8, ';');\n \n // Read generalization hierachies\n final FilenameFilter hierarchyFilter = new FilenameFilter() {\n @Override\n public boolean accept(final File dir, final String name) {\n if (name.matches(dataset.substring(dataset.lastIndexOf(\"/\") + 1, dataset.length() - 4) + \"_hierarchy_(.)+.csv\")) {\n return true;\n } else {\n return false;\n }\n }\n };\n \n final File testDir = new File(dataset.substring(0, dataset.lastIndexOf(\"/\")));\n final File[] genHierFiles = testDir.listFiles(hierarchyFilter);\n final Pattern pattern = Pattern.compile(\"_hierarchy_(.*?).csv\");\n \n for (final File file : genHierFiles) {\n final Matcher matcher = pattern.matcher(file.getName());\n if (matcher.find()) {\n \n final CSVHierarchyInput hier = new CSVHierarchyInput(file, StandardCharsets.UTF_8, ';');\n final String attributeName = matcher.group(1);\n \n // use all found attribute hierarchies as qis\n data.getDefinition().setAttributeType(attributeName, Hierarchy.create(hier.getHierarchy()));\n \n }\n }\n \n return data;\n }",
"private void findRdf(String comment) {\n int rdfPosition = comment.indexOf(\"RDF\");\n if (rdfPosition < 0)\n return; // no RDF, abort\n int nsPosition = comment.indexOf(CC_NS);\n if (nsPosition < 0)\n return; // no RDF, abort\n\n // try to parse the XML\n Document doc;\n try {\n DocumentBuilder parser = FACTORY.newDocumentBuilder();\n doc = parser.parse(new InputSource(new StringReader(comment)));\n } catch (Exception e) {\n if (LOG.isWarnEnabled()) {\n LOG.warn(\"CC: Failed to parse RDF in \" + base + \": \" + e);\n }\n return;\n }\n\n // check that root is rdf:RDF\n NodeList roots = doc.getElementsByTagNameNS(RDF_NS, \"RDF\");\n if (roots.getLength() != 1) {\n if (LOG.isWarnEnabled()) {\n LOG.warn(\"CC: No RDF root in \" + base);\n }\n return;\n }\n Element rdf = (Element) roots.item(0);\n\n // get cc:License nodes inside rdf:RDF\n NodeList licenses = rdf.getElementsByTagNameNS(CC_NS, \"License\");\n for (int i = 0; i < licenses.getLength(); i++) {\n\n Element l = (Element) licenses.item(i);\n\n // license is rdf:about= attribute from cc:License\n this.rdfLicense = l.getAttributeNodeNS(RDF_NS, \"about\").getValue();\n\n // walk predicates of cc:License\n NodeList predicates = l.getChildNodes();\n for (int j = 0; j < predicates.getLength(); j++) {\n Node predicateNode = predicates.item(j);\n if (!(predicateNode instanceof Element))\n continue;\n Element predicateElement = (Element) predicateNode;\n\n // extract predicates of cc:xxx predicates\n if (!CC_NS.equals(predicateElement.getNamespaceURI())) {\n continue;\n }\n }\n }\n\n // get cc:Work nodes from rdf:RDF\n NodeList works = rdf.getElementsByTagNameNS(CC_NS, \"Work\");\n for (int i = 0; i < works.getLength(); i++) {\n // get dc:type nodes from cc:Work\n NodeList types = rdf.getElementsByTagNameNS(DC_NS, \"type\");\n\n for (int j = 0; j < types.getLength(); j++) {\n Element type = (Element) types.item(j);\n String workUri = type.getAttributeNodeNS(RDF_NS, \"resource\")\n .getValue();\n this.workType = WORK_TYPE_NAMES.get(workUri);\n }\n }\n }",
"public static Dataset<Quad> broadcastSearch(Dataset<Quad> nantes, Dataset<Quad> quads ){\n\t\tObject[] nodeIDs = nantes\n\t\t\t\t.map(q -> q.getUniqueObject(), Encoders.STRING())\n\t\t\t\t.collectAsList()\n\t\t\t\t.toArray();\n\t\t\n\t\t\n\t\tDataset<Quad> nantes_1 = quads\n\t\t\t\t.except(nantes)\n\t\t\t\t//.withColumn(\"subid\", concat(col(\"graph\"),col(\"subject\")))\n\t\t\t\t.filter(concat(col(\"graph\"),col(\"subject\")).isin(nodeIDs))\n\t\t\t\t.orderBy(\"graph\",\"subject\")\n\t\t\t\t.cache();\n\t\t\t\t\n\t\tnantes_1.select(\"graph\",\"subject\",\"predicate\",\"object\").show(500, false);\n\t\tSystem.out.println(\"Nantes_1 : \" + nantes_1.count());\n\t\t//Object[] newNodeIDs = nantes.collectAsList().stream().map(q-> q.getUniqueSubject()).toArray();\n\t\treturn nantes_1;\n\t}",
"public double[] ds() {\n double rval[] = new double[size()];\n for (int i = 0; i < rval.length; i++) {\n rval[i] = get(i) == null ? Double.NaN : get(i).doubleValue();\n }\n\n return rval;\n }",
"private static List<Dataset> convert(InvCatalogImpl catalog) throws IOException\r\n {\r\n List unconvertedDatasets = catalog.getDatasets();\r\n \r\n System.out.println(\"Number of datasets found in catalog: \" + unconvertedDatasets.size());\r\n \r\n List<Dataset> ncwmsDatasets = new ArrayList<Dataset>();\r\n \r\n for(int i = 0; i < unconvertedDatasets.size(); i++)\r\n {\r\n InvDatasetImpl ds = (InvDatasetImpl) unconvertedDatasets.get(i);\r\n \r\n if(ds instanceof InvDatasetScan)\r\n {\r\n InvDatasetScan scan = (InvDatasetScan)ds;\r\n CrawlableDataset cd = scan.requestCrawlableDataset(scan.getPath());\r\n handleDirectory(scan, cd, ncwmsDatasets);\r\n }\r\n else if(ds instanceof InvCatalogRef)\r\n {\r\n InvCatalogRef catref = (InvCatalogRef) ds;\r\n String href = catref.getXlinkHref();\r\n \r\n URI hrefUri = catalog.getBaseURI().resolve(href);\r\n href = hrefUri.toString();\r\n \r\n try\r\n {\r\n //this is so not tested\r\n System.out.println(\"encountered catalogRef\");\r\n URI newURI = new URI(href);\r\n InvCatalogImpl newCatalog = makeCatalog(newURI);\r\n convert(catalog);\r\n }\r\n catch(URISyntaxException uriException)\r\n {\r\n logger.debug(\"Cannot make URL from catalog location: \" + href);\r\n }\r\n }\r\n else\r\n {\r\n System.out.println(\"have found something else...\");\r\n if(ds.hasNestedDatasets())\r\n {\r\n //do the catalog thing again\r\n }\r\n else\r\n {\r\n \r\n }\r\n }\r\n }\r\n return ncwmsDatasets;\r\n }",
"@Test\n public void DataSmoothTest72() {\n\t LinkedList<Double> runtimes7 = D2.dataSmooth(shows7);\n\t \n\t for(int i = 0; i < runtimes7.size(); i++) {\n\t\t assertEquals(runtimes7.get(i), showResults7.get(i), 0.01);\n\t }\n }",
"public DataIterator getDefinedData(Address addr, boolean forward);",
"public static void calcuTFIDF() throws IOException {\n\n\t\tHashtable<String, Double> idf = new Hashtable<String, Double>();\n\t\tArrayList<String> terms = new ArrayList<String>();\n\t\tdouble fileCount = 0.0;\n\t\tString featurePath = \"./corpus/features\";\n\t\tString featureWeight = \"./corpus/featureWeight\";\n\t\tString trainPath = \"./corpus/trainData\";\n\t\tString testPath = \"./corpus/testData\";\n\t\tString stopPath = \"./corpus/english.stop\";\n\t\tString trainOutPath = \"./corpus/trainVectors\";\n\t\tString testOutPath = \"./corpus/testVectors\";\n\t\tBufferedReader br = new BufferedReader(new FileReader(featurePath));\n\t\tBufferedWriter featureWriter = new BufferedWriter(new FileWriter(\n\t\t\t\tfeatureWeight));\n\t\tBufferedReader trainReader = new BufferedReader(new FileReader(\n\t\t\t\ttrainPath));\n\t\tBufferedReader testReader = new BufferedReader(new FileReader(testPath));\n\t\tBufferedReader br2 = new BufferedReader(new FileReader(stopPath));\n\t\tBufferedWriter writer = new BufferedWriter(new FileWriter(trainOutPath));\n\t\tBufferedWriter testWriter = new BufferedWriter(new FileWriter(\n\t\t\t\ttestOutPath));\n\t\tString oneline;\n\t\tArrayList<String> as = new ArrayList<String>();\n\t\twhile ((oneline = br2.readLine()) != null) {\n\t\t\tas.add(oneline);\n\t\t}\n\t\tString[] stopWords = new String[as.size()];\n\t\tas.toArray(stopWords);\n\t\tAnalyzer analyzer = new SnowballAnalyzer(\"English\", stopWords);\n\n\t\twhile ((oneline = br.readLine()) != null) {\n\t\t\tidf.put(oneline, 0.0);\n\t\t\tterms.add(oneline);\n\t\t}\n\n\t\twhile ((oneline = trainReader.readLine()) != null) {\n\n\t\t\tint pos = oneline.indexOf(\"\\t\");\n\t\t\tString topic = oneline.substring(0, pos);\n\t\t\tString content = oneline.substring(pos + 1);\n\t\t\tfileCount++;\n\t\t\tHashtable<String, Integer> termList = new Hashtable<String, Integer>();\n\t\t\tTokenStream stream = analyzer.tokenStream(\"\", new StringReader(\n\t\t\t\t\tcontent));\n\t\t\twhile (true) {\n\t\t\t\tToken token = stream.next();\n\t\t\t\tif (token == null)\n\t\t\t\t\tbreak;\n\t\t\t\tString tmp = token.termText();\n\t\t\t\tif (!termList.containsKey(tmp))\n\t\t\t\t\ttermList.put(tmp, new Integer(1));\n\t\t\t}\n\t\t\tSet<String> keys = termList.keySet();\n\t\t\tfor (String tmp : keys) {\n\t\t\t\tif (idf.containsKey(tmp)) {\n\t\t\t\t\tDouble num = idf.get(tmp);\n\t\t\t\t\tidf.put(tmp, num + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (String term : terms) {\n\n\t\t\tdouble weightOfTerm = Math.log((double) fileCount / idf.get(term)\n\t\t\t\t\t+ 0.01);\n\t\t\tfeatureWriter.write(term + \" \" + weightOfTerm);\n\t\t\tfeatureWriter.newLine();\n\t\t\tidf.put(term, weightOfTerm);\n\n\t\t}\n\t\tfeatureWriter.flush();\n\t\tfeatureWriter.close();\n\n\t\ttrainReader = new BufferedReader(new FileReader(trainPath));\n\t\twhile ((oneline = trainReader.readLine()) != null) {\n\n\t\t\tint pos = oneline.indexOf(\"\\t\");\n\t\t\tString topic = oneline.substring(0, pos);\n\t\t\tString content = oneline.substring(pos + 1);\n\t\t\tHashtable<String, Integer> termFrequent = new Hashtable<String, Integer>();\n\t\t\tTokenStream stream = analyzer.tokenStream(\"\", new StringReader(\n\t\t\t\t\tcontent));\n\t\t\twhile (true) {\n\t\t\t\tToken token = stream.next();\n\t\t\t\tif (token == null)\n\t\t\t\t\tbreak;\n\t\t\t\tString tmp = token.termText();\n\t\t\t\tif (!termFrequent.containsKey(tmp))\n\t\t\t\t\ttermFrequent.put(tmp, new Integer(1));\n\t\t\t\telse {\n\t\t\t\t\tInteger num = termFrequent.get(tmp);\n\t\t\t\t\ttermFrequent.put(tmp, num + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdouble weights[] = new double[terms.size()];\n\t\t\tdouble denominator = 0.0;\n\t\t\tint i = 0;\n\t\t\tfor (String term : terms) {\n\t\t\t\tdouble count;\n\t\t\t\tif (termFrequent.containsKey(term)) {\n\t\t\t\t\tcount = termFrequent.get(term);\n\t\t\t\t} else {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\n\t\t\t\tdouble tmp = count * idf.get(term);\n\t\t\t\tdenominator += tmp;\n\t\t\t\tweights[i++] = tmp;\n\t\t\t}\n\t\t\tdenominator = Math.sqrt(denominator);\n\t\t\twriter.write(topic);\n\t\t\tfor (int j = 1; j <= weights.length; j++) {\n\t\t\t\tdouble tmp = weights[j - 1];\n\t\t\t\tif (tmp > 0.0) {\n\t\t\t\t\ttmp = Math.sqrt(tmp) / denominator;\n\t\t\t\t\twriter.write(\" \" + j + \":\" + tmp);\n\t\t\t\t}\n\t\t\t}\n\t\t\twriter.newLine();\n\t\t}\n\n\t\twhile ((oneline = testReader.readLine()) != null) {\n\n\t\t\tint pos = oneline.indexOf(\"\\t\");\n\t\t\tString topic = oneline.substring(0, pos);\n\t\t\tString content = oneline.substring(pos + 1);\n\t\t\tHashtable<String, Integer> termFrequent = new Hashtable<String, Integer>();\n\t\t\tTokenStream stream = analyzer.tokenStream(\"\", new StringReader(\n\t\t\t\t\tcontent));\n\t\t\twhile (true) {\n\t\t\t\tToken token = stream.next();\n\t\t\t\tif (token == null)\n\t\t\t\t\tbreak;\n\t\t\t\tString tmp = token.termText();\n\t\t\t\tif (!termFrequent.containsKey(tmp))\n\t\t\t\t\ttermFrequent.put(tmp, new Integer(1));\n\t\t\t\telse {\n\t\t\t\t\tInteger num = termFrequent.get(tmp);\n\t\t\t\t\ttermFrequent.put(tmp, num + 1);\n\t\t\t\t}\n\t\t\t}\n\t\t\tdouble weights[] = new double[terms.size()];\n\t\t\tdouble denominator = 0.0;\n\t\t\tint i = 0;\n\t\t\tfor (String term : terms) {\n\t\t\t\tdouble count;\n\t\t\t\tif (termFrequent.containsKey(term)) {\n\t\t\t\t\tcount = termFrequent.get(term);\n\t\t\t\t} else {\n\t\t\t\t\tcount = 0;\n\t\t\t\t}\n\t\t\t\tdouble tmp = count * idf.get(term);\n\t\t\t\tdenominator += tmp;\n\t\t\t\tweights[i++] = tmp;\n\t\t\t}\n\t\t\tdenominator = Math.sqrt(denominator);\n\t\t\ttestWriter.write(topic);\n\t\t\tfor (int j = 1; j <= weights.length; j++) {\n\t\t\t\tdouble tmp = weights[j - 1];\n\t\t\t\tif (tmp > 0.0) {\n\t\t\t\t\ttmp = Math.sqrt(tmp) / denominator;\n\t\t\t\t\ttestWriter.write(\" \" + j + \":\" + tmp);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttestWriter.newLine();\n\t\t}\n\t\twriter.close();\n\t\ttestWriter.close();\n\t}",
"Stream<DataFrameValue<R,C>> values();",
"public Iterable<DataFeed> feeds() {\n return data_feeds.values();\n }",
"public TestData getMixedLinkedSetTestData() {\n\t\tString dataName = \"MixedLinkedSet\";\n\t\tString xml = getJavaTestXml(dataName);\n\t\tObject obj = new LinkedHashSet<>(Arrays.asList(getColletionData()));\n\t\treturn new TestData(xml, obj);\n\t}"
] |
[
"0.5768562",
"0.5286467",
"0.5243185",
"0.51957244",
"0.51365423",
"0.50192016",
"0.50128824",
"0.5011788",
"0.4953762",
"0.47972643",
"0.47740206",
"0.4767505",
"0.476051",
"0.47018617",
"0.46940947",
"0.46912843",
"0.46875578",
"0.4654656",
"0.46421015",
"0.463008",
"0.45781732",
"0.45758957",
"0.45698562",
"0.45568463",
"0.454995",
"0.45385158",
"0.45347783",
"0.45252535",
"0.45191708",
"0.45048594",
"0.4495601",
"0.44938654",
"0.44856927",
"0.44822368",
"0.44803196",
"0.44684613",
"0.4467833",
"0.4465692",
"0.4463451",
"0.44438463",
"0.4422702",
"0.4422331",
"0.44142655",
"0.44125345",
"0.43994334",
"0.43967485",
"0.43960103",
"0.43949637",
"0.43906355",
"0.43852875",
"0.43821168",
"0.43727332",
"0.43680498",
"0.43604562",
"0.43493736",
"0.43457615",
"0.4344818",
"0.4341108",
"0.43398365",
"0.43353328",
"0.43339548",
"0.4328107",
"0.4327513",
"0.43258855",
"0.43220723",
"0.43202376",
"0.43166012",
"0.43151996",
"0.4312335",
"0.43083745",
"0.43059453",
"0.43004096",
"0.42968634",
"0.4292054",
"0.4282742",
"0.4282307",
"0.4280021",
"0.42723987",
"0.4268087",
"0.426668",
"0.42606238",
"0.4258061",
"0.4251612",
"0.42494795",
"0.42429665",
"0.4239965",
"0.42385072",
"0.42379373",
"0.42369658",
"0.42344397",
"0.42220175",
"0.42209208",
"0.4211593",
"0.4209531",
"0.42088982",
"0.42083704",
"0.42047164",
"0.4197763",
"0.41958162",
"0.41954255"
] |
0.7405247
|
0
|
Get the active storage policy decision point TODO: this should move to a different service?
|
StoragePolicyDecisionPoint getStoragePolicyDecisionPoint();
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Policy _get_policy(int policy_type);",
"protected java.security.Policy getPolicy(){\n\tif (stateIs(INSERVICE_STATE)) {\n\t return this.policy;\n\t} \n\tif (logger.isLoggable(Level.FINEST)) {\n\t logger.finest(\"JACC Policy Provider: getPolicy (\"+CONTEXT_ID+\") is NOT in service\");\n\t}\n\treturn null;\n }",
"public java.lang.Boolean getStoragePolicySupported() {\r\n return storagePolicySupported;\r\n }",
"PolicyDecision getDecision();",
"public Element getSelectedPolicyElement() {\n Element selectedPolicyElement = null;\n IStructuredSelection categoriesCompositeSelection =\n (IStructuredSelection) getTreeViewer().getSelection();\n\n if (!categoriesCompositeSelection.isEmpty()) {\n Element selectedElement = (Element)\n categoriesCompositeSelection.getFirstElement();\n\n if (selectedElement.getName().\n equals(DeviceRepositorySchemaConstants.\n POLICY_ELEMENT_NAME)) {\n selectedPolicyElement = selectedElement;\n }\n }\n return selectedPolicyElement;\n }",
"public com.vmware.converter.DVSPolicy getPolicy() {\r\n return policy;\r\n }",
"private Resource getPolicyResource(String policyId) throws EntitlementException {\n String path = null;\n\n if (log.isDebugEnabled()) {\n log.debug(\"Retrieving entitlement policy\");\n }\n\n try {\n path = policyStorePath + policyId;\n\n if (!registry.resourceExists(path)) {\n if (log.isDebugEnabled()) {\n log.debug(\"Trying to access an entitlement policy which does not exist\");\n }\n return null;\n }\n return registry.get(path);\n } catch (RegistryException e) {\n log.error(\"Error while retrieving entitlement policy : \" + policyId, e);\n throw new EntitlementException(\"Error while retrieving entitlement policy : \" + policyId, e);\n }\n }",
"ServiceEndpointPolicy getById(String id);",
"public String getAbyssPolicy()\n {\n return m_AbyssPolicy;\n }",
"com.google.api.servicecontrol.v1.QuotaOperation.QuotaMode getQuotaMode();",
"String getBlockPolicy();",
"public ScalePolicy getScalePolicy() {\n\t\treturn null;\n\t}",
"int getQuotaModeValue();",
"public PolicyMap getPolicyMap();",
"public PolicyPermission getPolicyPermission()\n {\n return this.perm;\n }",
"public Policy _get_policy(int policy_type) {\n throw new NO_IMPLEMENT(reason);\n }",
"public MicrosoftGraphStoragePlanInformation storagePlanInformation() {\n return this.storagePlanInformation;\n }",
"private RoutingPolicy getExportPolicy() {\n\t String exportPolicyName = null;\n switch(this.getType()) {\n case BGP:\n // String constant from\n // org.batfish.representation.cisco.CiscoConfiguration.toBgpProcess\n exportPolicyName = \"~BGP_COMMON_EXPORT_POLICY:\" \n + this.getVrf().getName() + \"~\";\n break;\n case OSPF:\n exportPolicyName = this.ospfConfig.getExportPolicy();\n break;\n default:\n return null;\n }\n\n return this.getDevice().getRoutingPolicy(exportPolicyName);\n\t}",
"@NotNull private PageMemoryImpl.ThrottlingPolicy resolveThrottlingPolicy() {\n PageMemoryImpl.ThrottlingPolicy plc = persistenceCfg.isWriteThrottlingEnabled()\n ? PageMemoryImpl.ThrottlingPolicy.SPEED_BASED\n : PageMemoryImpl.ThrottlingPolicy.CHECKPOINT_BUFFER_ONLY;\n\n if (throttlingPolicyOverride != null) {\n try {\n plc = PageMemoryImpl.ThrottlingPolicy.valueOf(throttlingPolicyOverride.toUpperCase());\n }\n catch (IllegalArgumentException e) {\n log.error(\"Incorrect value of IGNITE_OVERRIDE_WRITE_THROTTLING_ENABLED property. \" +\n \"The default throttling policy will be used [plc=\" + throttlingPolicyOverride +\n \", defaultPlc=\" + plc + ']');\n }\n }\n return plc;\n }",
"boolean needsStoragePermission();",
"public StorageProfile storageProfile() {\n return this.storageProfile;\n }",
"public NatPolicy getNatPolicy();",
"int getTcfPolicyVersion();",
"@NonnullAfterInit public Function<ProfileRequestContext, String> getStorageContextLookupStrategy() {\n return storageContextLookupStrategy;\n }",
"PolicyStatsManager getStats();",
"public String getRuntimePolicyFile(IPath configPath);",
"PolicyRecord findOne(Long id);",
"AccessPoliciesStatus getAccessPoliciesStatus();",
"public void setStoragePolicySupported(java.lang.Boolean storagePolicySupported) {\r\n this.storagePolicySupported = storagePolicySupported;\r\n }",
"@Override\n public Response throttlingPoliciesApplicationPolicyIdGet(String policyId, MessageContext messageContext) {\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();\n String username = RestApiCommonUtil.getLoggedInUsername();\n\n //This will give PolicyNotFoundException if there's no policy exists with UUID\n ApplicationPolicy appPolicy = apiProvider.getApplicationPolicyByUUID(policyId);\n if (!RestApiAdminUtils.isPolicyAccessibleToUser(username, appPolicy)) {\n RestApiUtil.handleAuthorizationFailure(RestApiConstants.RESOURCE_APP_POLICY, policyId, log);\n }\n ApplicationThrottlePolicyDTO policyDTO =\n ApplicationThrottlePolicyMappingUtil.fromApplicationThrottlePolicyToDTO(appPolicy);\n return Response.ok().entity(policyDTO).build();\n } catch (APIManagementException e) {\n if (RestApiUtil.isDueToResourceNotFound(e)) {\n RestApiUtil.handleResourceNotFoundError(RestApiConstants.RESOURCE_APP_POLICY, policyId, e, log);\n } else {\n String errorMessage = \"Error while retrieving Application level policy: \" + policyId;\n RestApiUtil.handleInternalServerError(errorMessage, e, log);\n }\n }\n return null;\n }",
"public interface PolicyService {\n\tpublic Policy findPolicy(String id);\n\n\t// Find policies by what role they have\n\tpublic Set<Policy> findPolicyByPerson(String id);\n\tpublic Set<Policy> findPolicyByPersons(Set<String> ids);\n\tpublic Set<Policy> findPolicyByPersonRole(String id, Class<? extends AbstractPolicyRole> role);\n\tpublic Set<Policy> findPolicyByPersonsRole(Set<String> ids, Class<? extends AbstractPolicyRole> role);\n}",
"@NonnullAfterInit public Function<ProfileRequestContext, String> getStorageKeyLookupStrategy() {\n return storageKeyLookupStrategy;\n }",
"public int getPolicy(String appName, String apiName, Object... parameterType) {\n\n int policy = defaultPolicy;\n\n /** global rules */\n\n if (currentPolicy.containsKey(\"* \" + apiName)) {\n policy = currentPolicy.get(\"* \" + apiName).ctrlPolicy;\n }\n\n /** specific rules overwrites global ones */\n\n if (currentPolicy.containsKey(appName + \" \" + apiName)) {\n policy = currentPolicy.get(appName + \" \" + apiName).ctrlPolicy;\n }\n\n /** if no rules are defined, adopt default ones */\n\n return policy;\n }",
"String currentProduct() {\n if (PageFlowContext.getPolicy() != null && PageFlowContext.getPolicy().getProductTypeId() != null) {\n return PageFlowContext.getPolicy().getProductTypeId();\n } else {\n return \"\";\n }\n }",
"public Storage getStorage() {\n return this.storage;\n }",
"public static Policy getServiceEffectivePolicy(Definitions wsdl, QName serviceQName) throws PolicyException {\n Service srv = wsdl.getService(serviceQName);\n if (srv == null) {\n throw new IllegalArgumentException(\"Cannot find service with qname \" + serviceQName);\n }\n \n Element srvEl = srv.getDomElement();\n Element defsEl = (Element) srvEl.getParentNode();\n \n Policy res = ConfigurationBuilder.loadPolicies(srv, defsEl);\n return res;\n }",
"@Override\n public Exp getBasePolicyCode() {\n return null;\n }",
"public com.hps.july.persistence.StoragePlaceAccessBean getStorage() {\n\treturn storage;\n}",
"String getStorageVendor();",
"public interface IContextPreferenceProvider {\n\n\t/**\n\t * Returns a specific storage. \n\t * @return\n\t */\n\tpublic IPreferenceStore getPreferenceStore(String name);\n\t\n}",
"public ContainerPolicy getContainerPolicy() {\n return containerPolicy;\n }",
"com.google.privacy.dlp.v2.CloudStorageOptions getCloudStorageOptions();",
"public short getStorageType() {\n\treturn storageType;\n }",
"OStorage getStorage();",
"@Override\n public int getStorageEncryptionStatus(@Nullable String callerPackage, int userHandle) {\n if (!mHasFeature) {\n // Ok to return current status.\n }\n Preconditions.checkArgumentNonnegative(userHandle, \"Invalid userId\");\n\n final CallerIdentity caller = getCallerIdentity(callerPackage);\n Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHandle));\n\n\n final ApplicationInfo ai;\n try {\n ai = mIPackageManager.getApplicationInfo(callerPackage, 0, userHandle);\n } catch (RemoteException e) {\n throw new SecurityException(e);\n }\n\n boolean legacyApp = false;\n if (ai.targetSdkVersion <= Build.VERSION_CODES.M) {\n legacyApp = true;\n }\n\n final int rawStatus = getEncryptionStatus();\n if ((rawStatus == DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE_PER_USER) && legacyApp) {\n return DevicePolicyManager.ENCRYPTION_STATUS_ACTIVE;\n }\n return rawStatus;\n }",
"public AccountStorage getStore() {\n\t\t@SuppressWarnings(\"resource\")\n\t\tApplicationContext springContext = new AnnotationConfigApplicationContext(AccountServerConfig.class);\n return (AccountStorage) springContext.getBean(\"getStorage\");\n\t}",
"List<StorageResourceUsage> getStorageResourceUsage();",
"private MetadataCheckpointPolicy getNoOpCheckpointPolicy() {\n DurableLogConfig dlConfig = DurableLogConfig\n .builder()\n .with(DurableLogConfig.CHECKPOINT_COMMIT_COUNT, Integer.MAX_VALUE)\n .with(DurableLogConfig.CHECKPOINT_TOTAL_COMMIT_LENGTH, Long.MAX_VALUE)\n .build();\n\n return new MetadataCheckpointPolicy(dlConfig, Runnables.doNothing(), executorService());\n }",
"@GetMapping(\"/view-policies/{id}\")\n @Timed\n public ResponseEntity<ViewPolicyDTO> getViewPolicy(@PathVariable Long id) {\n log.debug(\"REST request to get ViewPolicy : {}\", id);\n ViewPolicyDTO viewPolicyDTO = viewPolicyService.findOne(id);\n return ResponseUtil.wrapOrNotFound(Optional.ofNullable(viewPolicyDTO));\n }",
"PolicyEngineFeatureApi getFeatureProvider(String featureName);",
"@Override\n public Response throttlingPoliciesSubscriptionPolicyIdGet(String policyId, MessageContext messageContext) {\n try {\n APIProvider apiProvider = RestApiCommonUtil.getLoggedInUserProvider();\n String username = RestApiCommonUtil.getLoggedInUsername();\n\n //This will give PolicyNotFoundException if there's no policy exists with UUID\n SubscriptionPolicy subscriptionPolicy = apiProvider.getSubscriptionPolicyByUUID(policyId);\n if (!RestApiAdminUtils.isPolicyAccessibleToUser(username, subscriptionPolicy)) {\n RestApiUtil.handleAuthorizationFailure(RestApiConstants.RESOURCE_SUBSCRIPTION_POLICY, policyId, log);\n }\n SubscriptionThrottlePolicyDTO policyDTO =\n SubscriptionThrottlePolicyMappingUtil.fromSubscriptionThrottlePolicyToDTO(subscriptionPolicy);\n\n //setting policy permissions\n setPolicyPermissionsToDTO(policyDTO);\n return Response.ok().entity(policyDTO).build();\n } catch (APIManagementException | ParseException e) {\n if (RestApiUtil.isDueToResourceNotFound(e)) {\n RestApiUtil.handleResourceNotFoundError(RestApiConstants.RESOURCE_SUBSCRIPTION_POLICY, policyId, e,\n log);\n } else {\n String errorMessage = \"Error while retrieving Subscription level policy: \" + policyId;\n RestApiUtil.handleInternalServerError(errorMessage, e, log);\n }\n }\n return null;\n }",
"int getPokeStorage();",
"DomainArtifactsTabPanel.ArtifactRetrievalStatus getCurrentTabStatus() {\n if (jTabbedPane1.getSelectedComponent() instanceof MiniTimelinePanel) {\n return ((MiniTimelinePanel) jTabbedPane1.getSelectedComponent()).getStatus();\n } else if (jTabbedPane1.getSelectedComponent() instanceof DomainArtifactsTabPanel) {\n return ((DomainArtifactsTabPanel) jTabbedPane1.getSelectedComponent()).getStatus();\n }\n return null;\n }",
"private void requestStoragePermission(){\n requestPermissions(storagePermissions, STORAGE_REQUESTED_CODE);\n }",
"public TRetentionPolicyInfo getTRetentionPolicyInfo() {\n\n\t\treturn this.retentionPolicyInfo;\n\t}",
"@Nullable public String getStorageContext() {\n return storageContext;\n }",
"public abstract boolean checkPolicy(User user);",
"private URI getSourceBackingVolumeStorageSystem(Volume vplexVolume) {\n // Get the backing volume associated with the source side only\n Volume localVolume = VPlexUtil.getVPLEXBackendVolume(vplexVolume,\n true, _dbClient);\n\n return localVolume.getStorageController();\n }",
"LockStorage getLockStorage();",
"@JsonIgnore public BoardingPolicyType getBoardingPolicy() {\n return (BoardingPolicyType) getValue(\"boardingPolicy\");\n }",
"public abstract List<AbstractPolicy> getPolicies();",
"void requestStoragePermission();",
"public static profile getActive(){\n return active;\n }",
"PolicyDetail findPolicyDetail(int policyId, Lender lender);",
"private PolicyDocument getGlueAthenaS3AccessPolicy()\n {\n List<String> statementActionsPolicy = new ArrayList<>();\n statementActionsPolicy.add(\"glue:GetTableVersions\");\n statementActionsPolicy.add(\"glue:GetPartitions\");\n statementActionsPolicy.add(\"glue:GetTables\");\n statementActionsPolicy.add(\"glue:GetTableVersion\");\n statementActionsPolicy.add(\"glue:GetDatabases\");\n statementActionsPolicy.add(\"glue:GetTable\");\n statementActionsPolicy.add(\"glue:GetPartition\");\n statementActionsPolicy.add(\"glue:GetDatabase\");\n statementActionsPolicy.add(\"athena:GetQueryExecution\");\n statementActionsPolicy.add(\"s3:ListAllMyBuckets\");\n\n return PolicyDocument.Builder.create()\n .statements(ImmutableList.of(PolicyStatement.Builder.create()\n .actions(statementActionsPolicy)\n .resources(ImmutableList.of(\"*\"))\n .effect(Effect.ALLOW)\n .build()))\n .build();\n }",
"@Override\r\n\tpublic Policy getById(Integer pid) {\n\t\tPolicy policy =dao.getById(pid);\r\n return policy;\r\n\t}",
"@ApiModelProperty(value = \"Boolean indicating whether OpenAM considers the policy active for evaluation purposes, defaults to false\")\n public Boolean isActive() {\n return active;\n }",
"public String readPolicyCombiningAlgorithm() throws EntitlementException {\n try {\n Collection policyCollection = null;\n if(registry.resourceExists(policyStorePath)){\n policyCollection = (Collection) registry.get(policyStorePath);\n }\n if(policyCollection != null){\n return policyCollection.getProperty(\"globalPolicyCombiningAlgorithm\");\n }\n return null;\n } catch (RegistryException e) {\n log.error(\"Error while reading policy combining algorithm\", e);\n throw new EntitlementException(\"Error while reading policy combining algorithm\", e);\n }\n }",
"com.google.cloud.gkebackup.v1.BackupPlan.RetentionPolicy getRetentionPolicy();",
"public java.lang.String getPolicyURL() {\n return policyURL;\n }",
"public RegistryKeyProperty getPolicyKey();",
"public VPlexStorageVolumeInfo getStorageVolumeInfo() {\n return storageVolumeInfo;\n }",
"StorageResourceUsage getStorageResourceUsage(String resourceName);",
"@NonNull\n public StorageReference getStorage() {\n return getTask().getStorage();\n }",
"public DisplayPolicy getDisplayPolicy() {\n return this.mDisplayPolicy;\n }",
"Map<String, Object> getPermStorage();",
"String getLbPolicy() {\n return lbPolicy;\n }",
"boolean policyDetailExist(PolicyDetail policyDetail);",
"@XmlElement(name = \"source_policy\")\r\n public ProtectionSourcePolicy getSourcePolicy() {\r\n return sourcePolicy;\r\n }",
"public static short[] getPolicies() {\n\t\treturn POLICIES;\n\t}",
"boolean hasPokeStorage();",
"private String getActiveProfile() {\r\n String[] profiles = env.getActiveProfiles();\r\n String activeProfile = \"add\";\r\n if (profiles != null && profiles.length > 0) {\r\n activeProfile = profiles[0];\r\n }\r\n System.out.println(\"===== The active profile is \" + activeProfile + \" =====\");\r\n return(activeProfile);\r\n }",
"ContentStorage getContentStorage(TypeStorageMode mode) throws FxNotFoundException;",
"public int getEdgePolicy() {\n if (edgePolicy.equals(\"KLEINBOTTLE\")) {\n return 2;\n }\n if (edgePolicy.equals(\"TOROIDAL\")) {\n return 1;\n }\n if (edgePolicy.equals(\"BOUNDED\")) {\n return 0;\n }\n else {\n throw new IllegalArgumentException(\"Edge policy given is invalid\");\n }\n }",
"public interface TilePolicy {\n\n\tpublic boolean getEnterableAt(Pair xy);\n\tpublic boolean getPassableAt(Pair xy);\n\tpublic boolean getJumpableAt(Pair xy);\n\t\n\tpublic boolean getWalkableAt(Pair xy, Player player);\n\tpublic boolean getEnterableAt(Pair xy, CellLogic ignore);\n\t\n\t/**\n\t * All policies must return a name so they can be enumerated\n\t * and a group of grunts all moving at once can share policies\n\t * if they have the same movement. Comparing getName is\n\t * equivalent to an equality test between policies.\n\t * \n\t * @return The name of the Policy\n\t */\n\tpublic String getName();\n\t\n}",
"public String storageAccount() {\n return this.storageAccount;\n }",
"@Nullable\n public ManagedAppPolicy get() throws ClientException {\n return send(HttpMethod.GET, null);\n }",
"public StorageAccount storageAccount() {\n return this.storageAccount;\n }",
"public StorageAccount storageAccount() {\n return this.storageAccount;\n }",
"public String getSecurityPolicyFile()\n\t{\n\t\treturn securityPolicyFile;\n\t}",
"public java.lang.Boolean getVStorageCapable() {\r\n return vStorageCapable;\r\n }",
"public interface BenefitAvailabilityPolicy {\n\n\t/**\n\t * Calculates if an account is eligible to receive benefits for a dining.\n\t * @param account the account of the member who dined\n\t * @param dining the dining event\n\t * @return benefit availability status\n\t */\n\tpublic boolean isBenefitAvailableFor(Account account, Dining dining);\n}",
"public StaticApplicablePolicyView getStaticApplicablePolicies()\n\t{\n\t\treturn this.rootPolicyEvaluator.getStaticApplicablePolicies();\n\t}",
"public static ProphetQueuing getInstance() {\r\n\t\tif (instance_ == null) {\r\n\t\t\tswitch (policy) {\r\n\t\t\tcase FIFO:\r\n\t\t\t\tinstance_ = (ProphetQueuing) new Fifo();\r\n\t\t\t\tbreak;\r\n\t\t\tcase MOFO:\r\n\t\t\t\tinstance_ = (ProphetQueuing) new Mofo();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tBPF.getInstance().getBPFLogger()\r\n\t\t\t\t\t\t.error(TAG, \"Wrong policy in prophet routing type\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn instance_;\r\n\t}",
"@Test\n\tpublic void testGetPolicy() throws Exception {\n\t\tfail(\"testGetPolicy not implemented\");\n\t}",
"String privacyPolicy();",
"public StorageLocation getStorageLocation() {\n return this.storageLocation;\n }",
"public void setScalePolicy(ScalePolicy policy) {\n\n\t}",
"public ExceptionPolicyEntry GetPolicyEntry(Class<?> exceptionType)\n {\n if (policyEntries.containsKey(exceptionType))\n {\n return policyEntries.get(exceptionType);\n }\n return null;\n }",
"@Override\r\n\tpublic List<PolicyQuestions> viewPolicyDetails(String business_segment)\r\n\t\t\tthrows QGSException {\n\t\treturn dao.viewPolicyDetails(business_segment);\r\n\t}"
] |
[
"0.65210235",
"0.614282",
"0.5773685",
"0.5649503",
"0.55926317",
"0.5543461",
"0.54589635",
"0.53969145",
"0.5387199",
"0.5367772",
"0.53379935",
"0.5266967",
"0.5237102",
"0.5221821",
"0.5199284",
"0.5185751",
"0.5142194",
"0.5137338",
"0.5127293",
"0.5125698",
"0.51075107",
"0.5104065",
"0.51003796",
"0.5098041",
"0.5089524",
"0.5063078",
"0.5041586",
"0.5039205",
"0.500975",
"0.49829447",
"0.49726734",
"0.49684924",
"0.49518862",
"0.49395627",
"0.49342835",
"0.492945",
"0.4914134",
"0.49050248",
"0.48884025",
"0.48800874",
"0.48711956",
"0.4867508",
"0.48476136",
"0.48437637",
"0.48400375",
"0.48394832",
"0.48350835",
"0.48320666",
"0.4827427",
"0.48251495",
"0.4824999",
"0.48167837",
"0.48117533",
"0.48115057",
"0.48053464",
"0.48038283",
"0.47909665",
"0.4788246",
"0.47837618",
"0.47713366",
"0.4755226",
"0.47452304",
"0.47329828",
"0.47258526",
"0.47232226",
"0.47137356",
"0.4710666",
"0.47091353",
"0.47089618",
"0.47057736",
"0.47051477",
"0.47048894",
"0.4703671",
"0.46879232",
"0.4687773",
"0.46869305",
"0.4683517",
"0.46776724",
"0.4653001",
"0.46460184",
"0.46413285",
"0.46407685",
"0.4634701",
"0.46336296",
"0.46331927",
"0.46316448",
"0.46256983",
"0.46238452",
"0.46238452",
"0.46193486",
"0.46187004",
"0.4611868",
"0.46020362",
"0.45983645",
"0.4595242",
"0.45934597",
"0.4592746",
"0.4592184",
"0.45883152",
"0.45730725"
] |
0.8054564
|
0
|
The mapper extracts from the 'value' the page and its (in/out)degree and then it prints as 'key' the degree and as 'value' the 1 as LongWritable
|
public void map(Object key, Text value, Context context) throws IOException, InterruptedException{
val = value.toString();
arr = val.split("\\s+");
prova.set(Long.parseLong(arr[1]));
context.write(prova,one);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String test = value.toString();\n test = test.replaceAll(\"\\t\", \" \").replaceFirst(\" \", \"\\t\");\n\n double basePageRank = 0;\n boolean hasPageRank = false;\n double pageRank = 0;\n /**\n * Pattern to distinguish our inserted numbers from numbers in titles\n * is: _!(numbers.numbers)\n */\n Pattern pt = Pattern.compile(\"(_!\\\\d+.\\\\S+)\");\n Matcher mt = pt.matcher(test);\n if (mt.find()) {\n pageRank = Double.parseDouble(mt.group(1).substring(2));\n hasPageRank = true;\n }\n /**\n * If it's the first iteration, distribute 1/N among outLinks\n */\n if (!hasPageRank) {\n try {\n pageRank = 1d / (context.getConfiguration().getInt(\"N\", 0));\n } catch (ArithmeticException ae) {\n /**\n * Catch division by zero (if 'N' was not set)\n */\n Logger.getLogger(PageRankMapper.class.getName()).log(Level.SEVERE, ae.getMessage(), ae);\n }\n }\n /**\n * Split input line into key,value\n */\n String[] split = test.split(\"\\t\");\n /**\n * Emit this node's (1-d)/N and it's adjacency outGraph if not empty\n */\n // d = 0.85\n basePageRank = (1 - 0.85) / (context.getConfiguration().getInt(\"N\", 0));\n String output = \"\";\n output += \"_!\" + basePageRank;\n if (split.length > 1) {\n //split[1] => outlinks string \n String[] outlinks = split[1].split(\" \");\n for (int i = hasPageRank ? 1 : 0; i < outlinks.length; i++) {\n output += \" \" + outlinks[i];\n }\n }\n context.write(new Text(split[0]), new Text(output.trim()));\n /**\n * Emit pageRank/|outLinks| to all outLinks if not empty: Split on \\t to\n * get separate key(index 0) from values(index 1), Split values on space\n * to separate out links(ignore the first(index 0),the pageRank, unless\n * hasPageRank=false)\n */\n if (split.length > 1) {\n String[] outlinks = split[1].split(\" \");\n /**\n * Input has no outLinks, only has basePageRank, already taken care\n * of in previous emit, return\n */\n if (hasPageRank && outlinks.length == 1) {\n return;\n }\n /**\n * d = 0.85\n */\n pageRank *= 0.85;\n /**\n * Divide pageRank over number of outLinks\n */\n pageRank /= hasPageRank ? (outlinks.length - 1) : outlinks.length;\n for (int i = hasPageRank ? 1 : 0; i < outlinks.length; i++) {\n context.write(new Text(outlinks[i]), new Text(\"_!\" + pageRank));\n }\n }\n }",
"@Override\r\n\t\tprotected void map(LongWritable key, Text value,\r\n\t\t\t\tMapper<LongWritable, Text, PageCount_myself, NullWritable>.Context context)\r\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString line = value.toString();\r\n\t\t\tString[] split = line.split(\"\\t\");\r\n\t\t\t\r\n\t\t\tcontext.write(new PageCount_myself(split[0], Integer.parseInt(split[1])), NullWritable.get());\r\n\t\t\t\r\n\t\t}",
"@Override\n protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {\n int runCount = context.getConfiguration().getInt(\"runCount\", 1);\n\n String page = key.toString();\n\n Node node = null;\n if (runCount == 1) {\n node = Node.formatNode(\"1.0\" , value.toString());\n } else {\n node = Node.formatNode(value.toString());\n }\n context.write(new Text(page), new Text(node.toString()));\n if(node.constainsAdjances()){\n double outValue = node.getPageRank() / node.getAdjacentNodeNames().length;\n\n for (String adjacentNodeName : node.getAdjacentNodeNames()) {\n// System.out.println(\"--------------------\"+ adjacentNodeName +\"------\" +outValue);\n\n context.write(new Text(adjacentNodeName),new Text(outValue + \"\"));\n }\n }\n }",
"public void map(LongWritable key, Text value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString valueStr = value.toString();\n\t\t\tString EMPTY_STRING = \"\", DATATYPE = \"f\";\n\t\t\tfloat dampingFactorValue = 1.0f - PageRankDampingFactor;\n\n\t\t\tif (! EMPTY_STRING.equals(valueStr)) {\n\t\t\t\tStringTokenizer tokenizer = new StringTokenizer(valueStr);\n\t\t\t\t\n\t\t\t\t// Three tokens are taken up for identifier, previous pagerank, current pagerank\n\t\t\t\tfloat nodeOutDegree = tokenizer.countTokens() - 3;\n\t\t\t\t\n\t\t\t\t// Node ID\n\t\t\t\tString currentNode = tokenizer.nextToken();\n\t\t\t\t\n\t\t\t\t// Previous pagerank value\n\t\t\t\tFloat parentPageRank = Float.parseFloat(\n\t\t\t\t\t\tcleanupFloatStr(tokenizer.nextToken()));\n\t\t\t\tString rhsString = \" [Old:\" + parentPageRank + \"] \";\n\t\t\t\t\n\t\t\t\t// Grandparent pagerank\n\t\t\t\tFloat grandParentPageRank = Float.parseFloat(cleanupFloatStr(tokenizer.nextToken()));\n\t\t\t\t\n\t\t\t\t// Check if difference crossed the threshold\n\t\t\t\tif ((Math.abs(parentPageRank - grandParentPageRank) > THRESHOLD)) {\n\t\t\t\t\tSystem.out.println(currentNode);\n\t\t\t\t\t\n\t\t\t\t\t// Mark this node as converged for our tracking purposes\n\t\t\t\t\tcontext.getCounter(ProcessData.Unconverged).increment(1);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Calculate the new pagerank if any links are available\n\t\t\t\twhile (nodeOutDegree > 0\n\t\t\t\t\t\t&& tokenizer.hasMoreTokens()) {\n\t\t\t\t\tString nextAdjacentNode = tokenizer.nextToken();\n\t\t\t\t\t\n\t\t\t\t\t// Calculate next pagerank value\n\t\t\t\t\tString partialPageRankUpdated = Float.toString((1-dampingFactorValue) * (parentPageRank/nodeOutDegree)) + DATATYPE;\n\n\t\t\t\t\tidentifier.set(nextAdjacentNode);\n\t\t\t\t\tpartialPageRankValue.set(partialPageRankUpdated);\n\t\t\t\t\t\n\t\t\t\t\t// Write out the partial pagerank value for the adjacent node\n\t\t\t\t\trhsString += nextAdjacentNode + \" \";\n\t\t\t\t\tcontext.write(identifier, partialPageRankValue);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Write out the list of adjacent nodes to this one\n\t\t\t\tidentifier.set(currentNode);\n\t\t\t\tadjacentNodesList.set(rhsString);\n\t\t\t\tcontext.write(identifier, adjacentNodesList);\n\n\t\t\t\t// Write out the partial pagerank for this page\n\t\t\t\tpartialPageRankValue.set(\n\t\t\t\t\t\tFloat.toString(dampingFactorValue)\n\t\t\t\t\t\t+ DATATYPE\n\t\t\t\t\t);\n\t\t\t\tcontext.write(identifier, partialPageRankValue);\n\t\t\t}\n\t\t}",
"@Override\n protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n String[] pageRank = value.toString().trim().split(\"\\t\");\n context.write(new Text(pageRank[0]), new Text(pageRank[1]));\n }",
"public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String line = value.toString();\r\n\r\n double minPmi = Double.parseDouble(context.getConfiguration().get(\"minPmi\", \"-1\"));\r\n double relMinPmi = Double.parseDouble(context.getConfiguration().get(\"relMinPmi\",\r\n \"-1\"));\r\n\r\n String[] split = line.split(\"\\\\s+\");\r\n double npmi = Double.parseDouble(split[3]);\r\n double relnpmi = Double.parseDouble(split[4]);\r\n\r\n if (isCollocation(npmi, relnpmi, minPmi, relMinPmi)) {\r\n // key: [decade] [npmi]; value: [w1] [w2]\r\n context.write(new Text(split[0] + \" \" + split[3]), new Text(split[1] + \" \" + split[2]));\r\n }\r\n }",
"@Override\n protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n String inputLine = value.toString().trim();\n String[] fromPageToPages = inputLine.split(\"\\t\");\n if (fromPageToPages.length == 1 || fromPageToPages[1].trim().equals(\"\")) {\n return;\n }\n String from = fromPageToPages[0];\n String[] tos = fromPageToPages[1].split(\",\");\n for (String to : tos) {\n context.write(new Text(from), new Text(to + \"=\" + (double)1/tos.length));\n }\n }",
"public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException\n {\n String line = value.toString().toLowerCase();\n\n // Splitting into doc number and its text\n String document_split[] = line.split(\"\\t\",2);\n Text document_number = new Text(document_split[0]);\n\n // Replace all non alphabetic characters and non spaces with a space\n String document_content=document_split[1].replaceAll(\"[^ a-z]+\", \" \");\n\n String bigram_word_1=null;\n String bigram_word_2=null;\n // Tokenize into words\n StringTokenizer tokenizer = new StringTokenizer(document_content);\n int x=0;\n while(tokenizer.hasMoreTokens())\n {\n x+=1;\n if(x==1)\n {\n bigram_word_1=tokenizer.nextToken();\n }\n else\n {\n bigram_word_2=tokenizer.nextToken();\n String bigram_pair_string=bigram_word_1+\" \"+bigram_word_2;\n bigram_pair.set(bigram_pair_string);\n context.write(bigram_pair, document_number);\n break;\n }\n }\n while(tokenizer.hasMoreTokens())\n {\n bigram_word_1=bigram_word_2;\n bigram_word_2=tokenizer.nextToken();\n String bigram_pair_string=bigram_word_1+\" \"+bigram_word_2;\n bigram_pair.set(bigram_pair_string);\n context.write(bigram_pair, document_number);\n }\n }",
"@Override\n protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n\t\tString[] raw = value.toString().split(\"\\t\");\n\t\tcontext.write(new Text(raw[0]), new Text(raw[1]));\n\t}",
"@Override\n public void map(LongWritable key, Text value, Context context)\n throws IOException, InterruptedException {\n \tString filename = ((FileSplit) context.getInputSplit())\n\t\t\t\t.getPath().getName();\n\n if (!value.toString().isEmpty()) {\n \tString line = value.toString().toLowerCase().replaceAll(\"[\\\\p{Punct}&&[^']&&[^-]]|(?<![a-zA-Z])'|'(?![a-zA-Z])|--|(?<![a-zA-Z])-|-(?![a-zA-Z])|\\\\d+\",\" \"); \t\n \tfor (String token : line.split(\"\\\\s+\")) {\n \t\tif (!token.isEmpty()) { \n \t\t\tcontext.write(new Text(token+\"#\"),new Text(\"1\")); // write # words and 1\n \t\tcontext.write(new Text(token + \",\" + filename),new Text(\"1\"));\t// write key and id\t\n \t\tcontext.write(new Text(token+\"%\"),new Text(filename));\t// write key and id\t\n \t\tcontext.write(new Text(\":\"+filename),new Text(\"1\"));\n \t\t\n \t\t//if (frequencyDoc.containsKey(filename)) {\n \t\t\t//frequencyDoc.put(filename, frequencyDoc.get(filename) + 1);\n \t\t//}\n \t//else {\n \t\t//frequencyDoc.put(filename, 1);\n \t\t//}\n \t\t}\n \t}\n \t}\n }",
"public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n int RecordsCount = Integer.parseInt(context.getConfiguration().get(\"recordCount\"));\n\n String[] valStr = value.toString().split(\"\\n\");\n\n //Getting the delta from the counter\n double del = Double.parseDouble(context.getConfiguration().get(\"delta\"));\n\n for (String val : valStr) {\n\n //parsing pageName,linkPageNames and pageRank for each value\n String pageName = \"\";\n pageName = val.substring(0, val.indexOf(\"[\") - 1);\n String pageLinks = val.substring(val.indexOf(\"[\") + 1, val.indexOf(\"]\"));\n String rank = val.substring(val.indexOf(\"{\") + 1, val.indexOf(\"}\"));\n String[] pages = pageLinks.split(\", \");\n\n double pageRank = Double.parseDouble(rank);\n\n //updating pageRAnk with delta\n if (del != 0.0) {\n pageRank += (1 - d) * (del / RecordsCount);\n }\n\n pageData pd = new pageData(Arrays.asList(pages), pageRank);\n context.write(new Text(pageName), new Text(pd.toString()));\n\n }\n }",
"@Override\n\tprotected void map(LongWritable key, Text value,Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString line=value.toString();\n\t\t//String[] words=line.split(\" \");\n\t\tStringTokenizer tokenizer=new StringTokenizer(line); //another way better datastructure\n\t\twhile(tokenizer.hasMoreTokens()){\n\t\t\tString word = tokenizer.nextToken();\n\t\t\t\n\t\t\toutkey.set(word); //outkey value reset\n\t\t\tcontext.write(outkey,outvalue);\n\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t}",
"public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n\t\t\tText gxy = new Text();\n\t\t\tText ij = new Text();\n\t\t\tgxy.clear();\n\t\t\tij.clear();\n\t\t\tString line = value.toString();\n\t\t\tString[] w = line.split(\":\");\n\t\t\tString[] IJ = w[0].split(\",\");\n\t\t\tint i = Integer.parseInt(IJ[0]);\n\t\t\tint j = Integer.parseInt(IJ[1]);\n\t\t\tint k = Integer.parseInt(w[1]);\n\t\t\t//int d = Integer.parseInt(w[2]);\n\t\t\tif (i==k || j==k){\n\t\t\t\tfor (int l=1; l<=4; l++){\n\t\t\t\t\tif (j==k){\n\t\t\t\t\t\tij.set(IJtoString(i, l));\n\t\t\t\t\t\tgxy.set(GXYtoString(i, j, k, w[2]));\n\t\t\t\t\t System.out.println(\"Mapper emitting\"+\" \"+ij+\" \"+gxy);\n\t\t\t\t\t\tcontext.write(ij, gxy);\n\t\t\t\t\t}\n\t\t\t\t\tif (i==k){\n\t\t\t\t\t\tij.set(IJtoString(l, j));\n\t\t\t\t\t\tgxy.set(GXYtoString(i, j, k, w[2]));\n\t\t\t\t\t\tSystem.out.println(\"Mapper emitting\"+\" \"+ij+\" \"+gxy);\n\t\t\t\t\t\tcontext.write(ij, gxy);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tij.set(IJtoString(i, j));\n\t\t\t\tgxy.set(GXYtoString(i, j, k, w[2]));\n\t\t\t\tSystem.out.println(\"Mapper emitting\"+\" \"+ij+\" \"+gxy);\n\t\t\t\tcontext.write(ij, gxy);\n\t\t\t}\n\n\t\t}",
"@Override\n\tprotected void map(LongWritable key, Text value,\n\t\t\tContext context)\n\t\t\tthrows IOException, InterruptedException {\n\t\t\n\t\tString line = value.toString();\n\t\tStringTokenizer st = new StringTokenizer(line,\" \");\n\t\t\n\t\twhile(st.hasMoreTokens()){\n\t\t\tSystem.out.println(\"in\");\n\t\t\tword.set(st.nextToken().toString());\n\t\t\tcontext.write(new Text(\"kk\"),word);\n\t\t\t \n\t\t\t//System.out.println(\"mapper\"+st.nextToken());\n\t\t}\n\t\t\n\t}",
"@Override\n\t\tprotected void map(Text key, Text value, Context context)throws IOException, InterruptedException {\n\t\t\tString val = value.toString();\n\t\t\t//String word = line.split(\",\")[0];\n\t\t\t//String docname = line.split(\",\")[1];\n\t\t\tdouble n = Double.parseDouble(val.split(\",\")[0]);\n\t\t\tdouble max = Double.parseDouble(val.split(\",\")[1]);\n\t\t\tdouble N = Double.parseDouble(val.split(\",\")[2]);\n\t\t\tdouble m = Double.parseDouble(val.split(\",\")[3]);\n\t\t\t//System.out.println(\"n is:\"+n+\"max is:\"+max+\" N is:\"+N+\" m is:\"+m+\" D is:\"+D);\n\t\t\tdouble tf = n/max;\n\t\t\t//System.out.println(\"TF is:\"+tf);\n\t\t\t//String TF = \"tf: \"+tf;\n\t\t\tdouble idf = (Math.log(D/m)/Math.log(2));\n\t\t\tdouble tfidf = tf*idf;\n\t\t\t//System.out.println(\"IDF is:\"+idf);\n\t\t\t//String IDF = \"idf: \"+idf;\n\t\t\tString word = key.toString().split(\",\")[0];\n\t\t\tString article = key.toString().split(\",\")[1];\n\t\t\tString new_val = word+\",\"+tf+\",\"+idf+\",\"+tfidf;\n\t\t\tcontext.write(new Text(article),new Text(new_val));\n\t\t}",
"public void map(LongWritable key, Text value, Context context)\n\t\t\tthrows InterruptedException, IOException {\n\t\tString line = value.toString();\n\n\t\tHashMap<String, String> fields = parseXml.getXmlTags(line);\n \n String fileName = ((FileSplit) context.getInputSplit()).getPath().getName();\n String shortName = fileName.substring(fileName.length()-7, fileName.length()-4);\n \n\t\thKey.set(shortName.getBytes());\n\n\t\tSet set = fields.entrySet();\n\t \n\t Iterator i = set.iterator();\n\t \n\t while(i.hasNext()) {\n\t Map.Entry me = (Map.Entry)i.next();\n\t \n\t\t if (me.getKey().equals(\"0\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_JAN.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"1\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_FEB.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"2\")) {\n\t\t \tkv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_MAR.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t \tif (me.getKey().equals(\"3\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_APR.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"4\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_MAY.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"5\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_JUN.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"6\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_JUL.getColumnName(), \n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\n\t\t if (me.getKey().equals(\"7\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_AUG.getColumnName(), \n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\t\t if (me.getKey().equals(\"8\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_SEP.getColumnName(), \n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\t\t if (me.getKey().equals(\"9\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_OCT.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\t\t if (me.getKey().equals(\"10\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_NOV.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n\t\t }\n\t\t if (me.getKey().equals(\"11\")) {\n\t\t\t kv = new KeyValue(hKey.get(), COL_FAMILY,\n\t\t\t\t\t HColumnEnum.COL_DEC.getColumnName(),\n\t\t\t\t\t me.getValue().toString().getBytes());\n\t\t\t context.write(hKey, kv);\n }\n\t }\n\t}",
"@Override\n\tprotected void map(LongWritable key, LogWritable value, Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\t \n\t\t context.write(value, mapValue);\n\t\t\n\t}",
"@Override\n protected void map(Text key, Text value, Context context) throws IOException, InterruptedException {\n PageWritable page = new PageWritable(1.0, new ArrayList<Text>());\n String[] outlinks = value.toString().split(\"\\\\s\");\n for (String outlink : outlinks) {\n page.getOutlinks().add(new Text(outlink));\n }\n context.write(new Text(key), page);\n }",
"@Override\n public void map(Object key, Text value, Context context\n ) throws IOException, InterruptedException {\n String line = value.toString();\n\n String[] data = line.split(\"\\t\");\n // label \"0\" stands for matrix M\n // label \"1\" stands for matrix N\n Text commonKey = new Text();\n Text diffValue = new Text();\n if (data[3].equals(\"0\")){\n // commonKey is <j>\n commonKey.set(data[1]);\n // diffValue is <i><,><mij><,><0>\n diffValue.set(data[0]+\",\"+data[2]+\",\"+data[3]);\n }else if(data[3].equals(\"1\")){\n // commonKey is <j>\n commonKey.set(data[0]);\n // diffValue is <k><,><njk><,><1>\n diffValue.set(data[1]+\",\"+data[2]+\",\"+data[3]);\n }\n context.write(commonKey,diffValue);\n }",
"@Override\n protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n\n String[] split = value.toString().split(\"\\t\");\n int length = split.length;\n\n String dateTime = split[0];\n String userId = split[1];\n String searchkwd = split[2];\n String retorder = split[3];\n String cliorder = split[4];\n String cliurl = split[5];\n\n\n logBean.setDateTime(Long.parseLong(dateTime));\n logBean.setUserId(userId);\n logBean.setSearchkwd(searchkwd);\n logBean.setRetorder(Integer.parseInt(retorder));\n logBean.setCliorder(Integer.parseInt(cliorder));\n logBean.setCliurl(cliurl);\n\n context.write(logBean, NullWritable.get());\n }",
"@Override\r\n\t//Mapper Method\r\n\tpublic void map(LongWritable key, Text value, Context c) throws IOException, InterruptedException\r\n\t{\n\tString line = value.toString();\r\n\t//Split them into tokens \r\n\tString [] tokens = line.split(\"\\\\;\");\r\n\t//Store the year of the movie title\r\n\tString year = tokens[3];\r\n\t//Check if the data is present or not(\\N)\r\n\t//If it is present then check if it is a movie after 2000\r\n\tif(year.startsWith(\"2\"))\r\n\t{\r\n\t//Take the various genres of the movie \r\n\t\tString genre=tokens[4];\r\n\t\t//Split and store each genre seperately\r\n\t\tString [] tokens_genre=genre.split(\"\\\\,\");\r\n\t\t//For each genre in the genre list of the movie run the loop\r\n\t\tfor(int i=0;i<tokens_genre.length;i++)\r\n\t\t{\t\r\n\t\t//Check if the data is provided in the genre list(not \\N)\r\n\tif(!tokens_genre[i].startsWith(\"\\\\N\"))\r\n\t{\r\n\t//For each genre set the mapper key\r\n\t//Here each key is the year of the movie and its genre connected with a '_'\r\n\t\tmapperKey.set(new Text(year) + \"_\" + new Text(tokens_genre[i]));\r\n\t\t//Create the key value pair\r\n\t\tc.write(mapperKey, new Text(\"1\"));\r\n\t}\r\n\t\t}\r\n\t\r\n\t}\r\n\t\r\n\t}",
"public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n // Get the current line\n \n String line = value.toString();\n String[] linevalues = line.split(\"\\t\");\n IntWritable movieId = new IntWritable(Integer.parseInt(linevalues[1]));\n Text userId = new Text(linevalues[0]);\n context.write(movieId, userId);\n // for (String v : linevalues) {\n // System.out.println(\"Value: \" + v);\n // }\n // context.write(new IntWritable(Integer.parseInt(linevalues[0])), new Text(linevalues[1] + \",\" + linevalues[2]));\n }",
"@Override\n public void map(LongWritable kin, Text datin, Context context) throws IOException, InterruptedException {\n this.map(datin.toString()).forEach((k, v) -> {\n try {\n context.write(new IntWritable(k), new LongWritable(v));\n }catch (Exception e){\n throw new RuntimeException(e);\n }\n });\n }",
"@Override\r\n protected void map(LongWritable key, Text value, Context context)\r\n throws IOException, InterruptedException {\n\r\n String line = value.toString();\r\n String[] fields = line.split(\"\\t\");\r\n if (fields.length > BrowserComRunEnum.STRATERY.ordinal()) {\r\n StringBuilder valueSB = new StringBuilder();\r\n String timeStampStr = fields[BrowserComRunEnum.TIME.ordinal()];\r\n String versionInfo = fields[BrowserComRunEnum.VERSION.ordinal()];\r\n String categoryInfo = fields[BrowserComRunEnum.CATEGORY\r\n .ordinal()];\r\n String sucInfo = fields[BrowserComRunEnum.SUC.ordinal()];\r\n String typeInfo = fields[BrowserComRunEnum.TYPE.ordinal()];\r\n String macInfo = MACFormatUtil\r\n .macFormatToCorrectStr(fields[BrowserComRunEnum.MAC\r\n .ordinal()]);\r\n String stratery = fields[BrowserComRunEnum.STRATERY.ordinal()];\r\n this.pattern.matcher(categoryInfo);\r\n\r\n if (this.pattern.matcher(categoryInfo).matches()\r\n && this.pattern.matcher(sucInfo).matches()\r\n && this.pattern.matcher(typeInfo).matches()) {\r\n // 日期id\r\n String dateIdStr = TimestampFormatUtil.formatTimestamp(\r\n timeStampStr).get(ConstantEnum.DATE_ID);\r\n valueSB.append(categoryInfo);\r\n valueSB.append(\"\\t\");\r\n // versionId\r\n long versionId = -0l;\r\n versionId = IPFormatUtil.ip2long(versionInfo);\r\n valueSB.append(versionId);\r\n valueSB.append(\"\\t\");\r\n valueSB.append(macInfo);\r\n valueSB.append(\"\\t\");\r\n valueSB.append(sucInfo);\r\n valueSB.append(\"\\t\");\r\n valueSB.append(typeInfo);\r\n valueSB.append(\"\\t\");\r\n valueSB.append(stratery);\r\n context.write(new Text(dateIdStr),\r\n new Text(valueSB.toString()));\r\n }\r\n\r\n }\r\n }",
"@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] words = value.toString().replaceAll(\" \", \"\").split(\",\");\n\n // Valid input\n if (words.length == 3) {\n // Get words\n String w1 = words[0];\n String w2 = words[1];\n String w3 = words[2];\n\n // Get word lengths\n int first = words[0].length();\n int second = words[1].length();\n int third = words[2].length();\n String lineNum = key.toString();\n\n // Conditions 1,2,4\n\n // One longest word\n // Longest word at front\n if (first > second && first > third) {\n context.write(new Text(w2), new Text(lineNum + \",\" + w1));\n context.write(new Text(w3), new Text(lineNum + \",\" + w1));\n }\n // Longest word in middle\n else if (second > first && second > third) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w2));\n context.write(new Text(w3), new Text(lineNum + \",\" + w2));\n }\n // Longest word at end\n else if (third > first && third > second) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w3));\n context.write(new Text(w2), new Text(lineNum + \",\" + w3));\n }\n\n // Two longest words\n // 1st and 2nd are the same length and longest\n if (first == second && first > third) {\n context.write(new Text(w3), new Text(lineNum + \",\" + w1));\n context.write(new Text(w3), new Text(lineNum + \",\" + w2));\n }\n // 1st and 3rd are the same length and longest\n else if (first == third && first > second) {\n context.write(new Text(w2), new Text(lineNum + \",\" + w1));\n context.write(new Text(w2), new Text(lineNum + \",\" + w3));\n }\n // 2nd and 3rd are same length and longest\n else if (second == third && second > first) {\n context.write(new Text(w1), new Text(lineNum + \",\" + w2));\n context.write(new Text(w1), new Text(lineNum + \",\" + w3));\n }\n } \n }",
"public void map(LongWritable key, Text value, OutputCollector <Text, Text> output, Reporter reporter) throws IOException {\n\n\t\tString valueString1 = value.toString();\n\t\tString valueString=valueString1.replaceAll(\"[\\\\n]\",\" \");\n\t\tString[] Data_raw = valueString.split(\"\\t\");\n\t\tif(Data_raw.length > 4)\n\t\t{\n\t\t\n\t\tString[] Data = Data_raw[4].split(\" |\\\\,|\\\\.|!|\\\\?|\\\\:|\\\\;|\\\\\\\"|\\\\(|\\\\)|\\\\<|\\\\>|\\\\[|\\\\]|\\\\#|\\\\$|\\\\=|\\\\-|\\\\/\");\n\t\tfor(String s: Data)\n\t\t{\n\t\t\toutput.collect(new Text(s.toString().toLowerCase()), new Text(Data_raw[0].toString()));\n\t\t}\n\t\t}\n\t}",
"@Override\n\t protected void map(Object key, Text value, \n\t Context context) throws IOException, InterruptedException {\n\t String[] strs = value.toString().split(\"\\\\s\");\n\t String label = strs[1];\n\t int id = Integer.parseInt(strs[0]);\n\t if(\"u\".equals(label)) {\n\t \tcontext.write(new VIntWritable(id), new Text(\"u\\t\"+strs[2]));\n\t } else if(\"d\".equals(label)) {\n\t \tcontext.write(new VIntWritable(id), new Text(\"d\\t\"+strs[2]));\n\t } else if(\"c\".equals(label)) {\n\t \tcontext.write(new VIntWritable(id), new Text(\"c\\t\"+strs[2]));\n\t } else {//±ß±í\n\t \tcontext.write(new VIntWritable(id), new Text(\"e\\t\"+strs[1]));\n\t }\n\t }",
"public void map(LongWritable key, Text value, OutputCollector<Text, Text> output, Reporter reporter) throws IOException\n {\n \t // get filename to send it as key for sorting.\n \t FileSplit fileSplit = (FileSplit)reporter.getInputSplit();\n String k = fileSplit.getPath().getName();\n\n //taking one line at a time \n String line = value.toString();\n // get the position of the meaningful character\n int pos = lineno % 40;\n // get the character from the string\n String character = Character.toString(line.charAt(pos));\n // convert pipe symbol to next line \n if(character.charAt(0) == '|')\n \tcharacter = \"\\n\";\n // sending to output collector which in turn passes the same to reducer\n output.collect(new Text(k), new Text(character)); \n lineno++;\n }",
"@Override\n\tprotected void map(LongWritable key, Text text, Context context) throws IOException, InterruptedException {\n\n\t\t// Set log-level to debugging\n\t\tLOG.setLevel(Level.DEBUG);\n\t\tLOG.debug(\"The mapper task of Nischay Bikram Thapa, s3819491\");\n\t\tText word = new Text();\n\t\tStringTokenizer itr = new StringTokenizer(text.toString());\n\t\ttry {\n\t\t\t// Log every line\n\t\t\tLOG.debug(text);\n\t\t\t\n\t\t\twhile (itr.hasMoreTokens()) {\n\t\t\t\t\n\t\t\t\tString token = itr.nextToken();\n\t\t\t\t\n\t\t\t\tif(token.length() > 10 ) {\n\n\t\t\t\t\tword.set(\"Extra Long\"); \n\n\t\t\t\t} else if (token.length() >= 8 && token.length() <= 10) {\n\n\t\t\t\t\tword.set(\"Long\");\n\n\t\t\t\t} else if (token.length() >= 5 && token.length() <= 7) {\n\n\t\t\t\t\tword.set(\"Medium\");\n\n\t\t\t\t} else if (token.length() >= 1 && token.length() <= 4) {\n\n\t\t\t\t\tword.set(\"Short\");\n\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tword.set(\"UnKnown\");\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t\tcontext.write(word, new LongWritable(1));\n\n\t\t\t}\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tLOG.error(\"Caught Exception\", ex);\n\t\t}\n\t}",
"@Override\n protected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n StringTokenizer tokenizer = new StringTokenizer(value.toString());\n while (tokenizer.hasMoreTokens()) {\n String word = tokenizer.nextToken();\n if (buffer.containsKey(word)) {\n buffer.put(word, buffer.get(word) + 1);\n } else {\n buffer.put(word, 1);\n }\n }\n }",
"@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] array = value.toString().split(DELIMITER);\n Text year = new Text();\n year.set(array[1].trim());\n String word = array[0].trim();\n int number_of_syllables = Syllable.syllable(word);\n context.write(year, new IntWritable(number_of_syllables));\n }",
"@Override\n\t\tprotected void map(Object key, Text value,\n\t\t\t\tMapper<Object, Text, MyKey, Text>.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString line[] = value.toString().split(\"\\t\");\n\t\t\tif(line.length<2)return;\n\t\t\tk.setK(new Text(line[0]));\n\t\t\tk.setV(new Text(line[1]));\n\t\t\tcontext.write(k,new Text(line[1]));\n\t\t}",
"public void map(Long key, Text value, MapContext<LongWritable, Text, Text, Text> context) throws IOException, InterruptedException{\n//\t\t String line = value.toString();\n//\t\t String[] tokens = line.split(\" \");\n//\t\t ip.set(tokens[0]);\n\t\t context.write(new Text(String.valueOf(key)), value);\t\n\t }",
"@Test\n\tpublic void testMapper() {\n\n\t\t/*\n\t\t * For this test, the mapper's input will be \"1 cat cat dog\" \n\t\t */\n\t\tmapDriver.withInput(new LongWritable(1), new Text(swedenHealth));\n\n\t\t/*\n\t\t * The expected output is \"cat 1\", \"cat 1\", and \"dog 1\".\n\t\t */\n\t\tmapDriver.withOutput(new Text(\"Sweden\"), new Text(\"1745.09564282 5218.86073424\"));\n\t\t/*\n\t\t * Run the test.\n\t\t */\n\t\tmapDriver.runTest();\n\t}",
"@Override\n\t\tpublic void map(LongWritable key, Text value, Context context) \n\t\t\t\tthrows IOException, InterruptedException \n\t\t{\n\t\t\tString[] lines = value.toString().split(\"\\\\r?\\\\n\"); /* Split input block on new line*/\n\t\t\tfor (String line : lines) /*For each line, search article.*/\n\t\t\t{\n\t\t\t\tif (line == null || line.trim().equals(\"\")) {continue;} //Skip over bank or null lines\n\t\t\t\tString[] elements = line.split(\"\\\\t\"); /*Split line over tabs*/\n\t\t\t\t\n\t\t\t\tif (elements[1].contains(Searchword) || elements[3].contains(Searchword))\n\t\t\t\t{\n\t\t\t\t\t// If the keyword is found in the string write the output the articleID and 1\n\t\t\t\t\tcontext.write(new Text(elements[0].toString()), one); \n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {\n\n\t\tString line = value.toString();\n\n\t\t// 1. Get The Values From The Input File\n\t\tString year = line.substring(15, 19);\n\t\t\n\t\tint airTemperature;\n\t\tif (line.charAt(87) == '+') {\n\t\t\tairTemperature = Integer.parseInt(line.substring(88, 92));\n\t\t} else {\n\t\t\tairTemperature = Integer.parseInt(line.substring(87, 92));\n\t\t}\n\n\t\t// 2. Output To the <key,value> pair\n\t\tString quality = line.substring(92, 93);\n\t\tif (airTemperature != MISSING && quality.matches(\"[01459]\")) {\n\t\t\toutput.collect(new Text(year), new IntWritable(airTemperature));\n\t\t}\n\t}",
"public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] splitLine = value.toString().replace(\"\\\"\", \"\").split(\",\");\n //header data and bad data will throw an exception\n try {\n String year = splitLine[11].substring(0, 4);\n //SO2 quality\n double quality = Double.parseDouble(splitLine[13]);\n\n //System.out.printf(\"Year: %s, quality: %f%n\", year, quality);\n //organize by year, list of quality values for that year\n context.write(new Text(year), new DoubleWritable(quality));\n\n } catch (NumberFormatException ignored) {\n //System.out.println(\"FOUND EXCEPTION: \" + splitLine[12]);\n //System.out.println(\"IGNORING: \" + splitLine[13] + \", \" + splitLine[0]);\n }\n }",
"public void map(Object key, Text value, Context context\n ) throws IOException, InterruptedException {\n\n String pointID = value.toString().split(\",\")[0];\n double xCord = Double.parseDouble(value.toString().split(\",\")[1]);\n double yCord = Double.parseDouble(value.toString().split(\",\")[2]);\n double distance;\n //compute distance\n distance=Math.sqrt(Math.pow((xCord-xVal),2)+Math.pow((yCord-yVal),2));\n\n outKey=new DoubleWritable(distance);\n outVal=new Text(String.valueOf(pointID));\n //emit key and values\n context.write(outKey,outVal);\n\n }",
"private void writeMapFileOutput(RecordWriter<WritableComparable<?>, Writable> writer,\n TaskAttemptContext context) throws IOException, InterruptedException {\n describe(\"\\nWrite map output\");\n try (DurationInfo d = new DurationInfo(LOG,\n \"Writing Text output for task %s\", context.getTaskAttemptID());\n ManifestCommitterTestSupport.CloseWriter<WritableComparable<?>, Writable> cw =\n new ManifestCommitterTestSupport.CloseWriter<>(writer, context)) {\n for (int i = 0; i < 10; ++i) {\n Text val = ((i & 1) == 1) ? VAL_1 : VAL_2;\n writer.write(new LongWritable(i), val);\n }\n LOG.debug(\"Closing writer {}\", writer);\n writer.close(context);\n }\n }",
"public void map(LongWritable docID, Text value, OutputCollector<Text, Text> output, Reporter reporter) throws IOException {\n FileSplit fileSplit = (FileSplit) reporter.getInputSplit();\n String filename = \"\" + fileSplit.getPath().getName();\n\n int argc = Integer.parseInt(conf.get(\"argc\"));\n java.util.Map<String, Integer> keywords = new HashMap<String, Integer>();\n\n for (int i = 0; i < argc; i++) {\n String inputString = conf.get(\"keyword\" + i);\n\n keywords.put(inputString, 0);\n\n\n }\n\n String line = value.toString();\n StringTokenizer tokenizer = new StringTokenizer(line);\n while (tokenizer.hasMoreTokens()) {\n\n String token = tokenizer.nextToken();\n for (java.util.Map.Entry<String, Integer> me : keywords.entrySet()) {\n if (token.equalsIgnoreCase(me.getKey())) {\n\n keywords.put(me.getKey(), me.getValue() + 1);\n\n }\n }\n }\n\n for (java.util.Map.Entry<String, Integer> me : keywords.entrySet()) {\n\n keyword.set(me.getKey());\n filenameCount.set(filename + \"_\" + me.getValue());\n\n output.collect(keyword, filenameCount);\n }\n }",
"@Override\n\t\tpublic void flatMap(String value, Collector<Tuple2<Cell, Integer>> out) {\n\t\t\tString[] tokens = value.split(\"\\\\s+\");\n//\t\t\tSystem.out.println(\"token0 \" + tokens[0]);\n//\t\t\tSystem.out.println(\"token1 \" + tokens[1]);\n\t\t\tout.collect(new Tuple2<Cell, Integer>( new Cell(Long.parseLong(tokens[0]),Long.parseLong(tokens[1])), 0));\n\t\t}",
"@Override\n protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n \n String[] inputArray = value.toString().split(\"::\");\n inputKey.set(Integer.parseInt(inputArray[1]));\n intValue.set(Integer.parseInt(inputArray[2]));\n SortedMapWritable inputValue = new SortedMapWritable();\n inputValue.put(intValue, count);\n context.write(inputKey, inputValue);\n }",
"@Override \n public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException \n {\n\t String[] line2 = value.toString().split(\";\");\n String ISBN_Rating = trimQuotes(line2[1].trim()); \n\t String Rating = trimQuotes(line2[2].trim()); \n \n \n if (!ISBN_Rating.equals(\"ISBN\") && !Rating.equals(\"Book-Rating\")) \n { \t \n \t\n \t int RTNG_CD = Integer.parseInt(Rating);\n \t System.out.println(\"output from b mapper:\"+ISBN_Rating+\"\\t\"+RTNG_CD);\n \t context.write(new TextPair(new Text(ISBN_Rating), new Text(\"b\")), new IntWritable(RTNG_CD));\n } \n \n }",
"public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n StringTokenizer itr = new StringTokenizer(value.toString());\n while (itr.hasMoreTokens()) {\n word = itr.nextToken().toLowerCase();\n for(String word2 : WordMap){\n\n Double similarity = calculateJaccardSimilarity(word, word2);\n\n // which have Jaccard similarity not 0 and no larger than 0.15?\n if ((similarity > 0.0) && (similarity <= 0.15)) {\n DoubleWritable result = new DoubleWritable(similarity);\n context.write(new Text(word+\"\\t\"+word2), result);\n }\n }\n }\n }",
"public void map(LongWritable key, Text value,\n\t\t\tOutputCollector<Text, IntWritable> output, Reporter reporter)\n\t\t\tthrows IOException {\n\t\t// taking one line at a time from input file and tokenizing the same\n\t\tString line = value.toString();\n\t\tStringTokenizer tokenizer = new StringTokenizer(line);\n\n\t\t// combiner part\n\t\t// iterating through all the words available in that line and forming\n\t\t// the key value pair\n\t\twords.clear();\n\t\twhile (tokenizer.hasMoreTokens()) {\n\t\t\tString match = tokenizer.nextToken();\n\t\t\tif (match.equals(WordSearch.find)) {\n\t\t\t\tif (words.containsKey(match)) {\n\t\t\t\t\tcount = (int) words.get(match);\n\t\t\t\t\twords.put(match, count + 1);\n\t\t\t\t} else {\n\t\t\t\t\twords.put(match, 1);\n\t\t\t\t\tcount = 1;\n\t\t\t\t}\n\n\t\t\t\tString fileName = ((FileSplit) reporter.getInputSplit())\n\t\t\t\t\t\t.getPath().getName();\n\t\t\t\tSystem.out.println(fileName);\n\n\t\t\t\tfile.set(fileName);\n\t\t\t\toutput.collect(file, fileDetector);\n\t\t\t}\n\t\t}\n\t\tfor(String keys: words.keySet())\n\t\t{\n\t\t\tcount = words.get(keys);\n\t\t\tSystem.out.println(\"Total :\"+count);\n\t\t\tfinal IntWritable values = new IntWritable(count);\n\t\t\tword.set(keys);\n\t\t\toutput.collect(word, values);\n\t\t}\n\t}",
"@Override\r\n\tprotected void map(LongWritable key, Text value, Context context)\r\n\t\t\tthrows IOException, InterruptedException {\n\r\n\t\tString[] userUserAndCount = value.toString().split(\r\n\t\t\t\tProtocols.USER_USER_COUNT_SEPARATOR);\r\n\t\tString[] users = userUserAndCount[0]\r\n\t\t\t\t.split(Protocols.USER_USER_SEPARATOR);\r\n\r\n\t\tcontext.write(new IntWritable(Integer.parseInt(users[0])), new Text(\r\n\t\t\t\tusers[1] + Protocols.USER_WEIGHT + userUserAndCount[1]));\r\n\t\tcontext.write(new IntWritable(Integer.parseInt(users[1])), new Text(\r\n\t\t\t\tusers[0] + Protocols.USER_WEIGHT + userUserAndCount[1]));\r\n\r\n\t}",
"public void map(LongWritable key, Text value, OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException \n\t{\n\t\tString line = value.toString();\n\t\tStringTokenizer tokenizer = new StringTokenizer(line, \",\");\t\t\t\n\t\tif (tokenizer.hasMoreTokens() && tokenizer.nextToken().equals(\"2012\")) \n\t\t{\n\t\t\tcaller.set(tokenizer.nextToken());\n\t\t\toutput.collect(caller, one);\n\t\t}\n\t}",
"@Override\n\tprotected void map(Text key, Text value,\n\t\t\torg.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString[] values=value.toString().split(\" \");\n\t\tIntWritable mapkey=new IntWritable();\n\t\tText mapvalue=new Text();\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor(int i=0;i<values.length;i++)\n\t\t{\n\t\t\tmapkey.set(i);\n\t\t\tsb.append(key.toString());\n\t\t\tsb.append(\",\");\n\t\t\tsb.append(values[i]);\n\t\t\tmapvalue.set(sb.toString());\n\t\t//\tsb=null;\n\t\t\tsb=new StringBuilder();\n\t\t\tcontext.write(mapkey, mapvalue);\n\t\t}\n\t}",
"@Override\n\tpublic void map(LongWritable key, Text value, OutputCollector<Text, Text> output, Reporter reporter)\n\t\t\tthrows IOException {\n\t\tString val = value.toString();\n\t\tString[] Data = val.split(\", \");\n\t\toutput.collect(new Text(Data[1]), new Text(val));\n\t}",
"@Override\n\t\tprotected void map(LongWritable key, Text value,\n\t\t\t\tMapper<LongWritable, Text, Text, MapWritable>.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\t if( !ArilineDataUtil.isHeader(value) ){\n\t\t\t\t // extrait les champs de la ligne\n\t\t\t\t String[] champs = ArilineDataUtil.getSelectedColumnsB(value);\n\t\t\t\t String month = champs[0];\n\t\t\t\t int delayArrival = ArilineDataUtil.parseMinutes(champs[9],0);\n\t\t\t\t int delayDeparture = ArilineDataUtil.parseMinutes(champs[8],0);\n\t\t\t\t boolean isCancelled = ArilineDataUtil.parseBoolean(champs[10],false) ;\n\t\t\t\t boolean isDIverted = ArilineDataUtil.parseBoolean(champs[11],false) ;\n\t\t\t\t \n\t\t\t\t // compter un vol\n\t\t\t\t context.write(new Text(month), getMapWritable(FLIGHT, new IntWritable(1)));\n\t\t\t\t \n\t\t\t\t // verifie sil est annuler dabord comme sa sa sert a rien de faire le reste\n\t\t\t\t if (isCancelled) context.write(new Text(month), getMapWritable(CANCELLED, new IntWritable(1)));\n\t\t\t\t else if (isDIverted) context.write(new Text(month), getMapWritable(DIVERTED, new IntWritable(1)));\n\t\t\t\t else{\n\t\t\t\t\t // retard ou a lheure\n\t\t\t\t\t if (delayArrival >= 10 ) context.write(new Text(month), getMapWritable(ARRIVAL_DELAY, new IntWritable(1)));\n\t\t\t\t\t else context.write(new Text(month), getMapWritable(ARRIVAL_ONTIME, new IntWritable(1)));\n\t\t\t\t\t \n\t\t\t\t\t if (delayDeparture >= 10 ) context.write(new Text(month), getMapWritable(DEPARTURE_DELAY, new IntWritable(1)));\n\t\t\t\t\t else context.write(new Text(month), getMapWritable(DEPARTURE_ONTIME, new IntWritable(1)));\n\t\t\t\t } \n\t\t\t }\n\t\t}",
"@Override\n\tprotected void map(LongWritable key, Text value, Mapper<LongWritable, Text, Text, LongWritable>.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\t\n\t\tif(value !=null && StringUtils.isNotEmpty(value.toString())){\n\t\t\tString line = value.toString();\n\t\t\tcontext.write(new Text(line.split(\"\\\\s+\")[2]), ONE);\n\t\t}\t\t\n\t}",
"private List<Integer> printTopValue() throws IOException {\n\t\t lines++;\r\n\t\t Iterator<Entry<String, MergeClass>> it = t_map.entrySet().iterator();\r\n\t\t Entry<String, MergeClass> me = it.next();\r\n content.append(me.getKey() + \":\");\r\n content.append(me.getValue().getCounter() + \":\");\r\n //System.out.print(me.getKey()+\":\");\r\n int previd = 0;\r\n MergeClass mc = me.getValue();\r\n List<FrequencyCount> fc = mc.listfc;\r\n List<Integer> filefc = mc.file;\r\n for(FrequencyCount f : fc){\r\n \t content.append(Integer.parseInt(f.getId())-previd);\r\n \t previd = Integer.parseInt(f.getId());\r\n \t if(f.getTitle() != 0){\r\n \t\t content.append(\"#t\"+f.getTitle());\r\n \t }\r\n \t if(f.getInfo() != 0){\r\n \t\t content.append(\"#i\"+f.getInfo());\r\n \t }\r\n \t if(f.getBody() != 0){\r\n \t\t content.append(\"#b\"+f.getBody());\r\n \t }\r\n \t if(f.getreferences() != 0){\r\n \t\t content.append(\"#r\"+f.getreferences());\r\n \t }\r\n \t if(f.getLink() != 0){\r\n \t\t content.append(\"#L\"+f.getLink());\r\n \t }\r\n \t if(f.getCategory() != 0){\r\n \t\t content.append(\"#c\"+f.getCategory());\r\n \t }\r\n \t if(f.getinlinks() != 0){\r\n \t\t content.append(\"#l\"+f.getinlinks());\r\n \t }\r\n \t content.append(\"|\");\r\n \t if(content.length() > 500){\r\n \t bw.write(content.toString());\r\n \t content = new StringBuilder(\"\");\r\n \t \r\n }\r\n \t \r\n \t //System.out.print(f.getId() + \" - T \" + f.getTitle() + \" | I \" + f.getInfo()+\" | B \" + f.getBody()+\" | R \" + f.getreferences()\r\n \t//\t\t +\" | L \" + f.getLink() +\" | C \" + f.getCategory() + \" #### \");\t\t\t\t \t\r\n }\r\n content.append(\"\\n\");\r\n //System.out.println();\r\n if(content.length() > 500){\r\n \t bw.write(content.toString());\r\n \t content = new StringBuilder(\"\");\r\n \t \r\n }\t\r\n t_map.remove(me.getKey());\r\n return filefc;\r\n\t}",
"public void write(KEYOUT key, VALUEOUT value\n ) throws IOException, InterruptedException {\n\t \n\t int disableHashing_flag=0;\n\t \n\t disableHashing_flag = this.getConfiguration().getInt(\"mapred.job.disableHashing\", 0);\n\t \n//\t System.out.println(\"___________inside write() in TaskInputOutputContextImpl.java_______________Thread.currentThread().getStackTrace() = \");\n//\t for (StackTraceElement ste : Thread.currentThread().getStackTrace()) {System.out.println(\"ste = \"+ste);}\n\t \n\t String reducerORmapper = this.local_taskID.split(\"_\")[3];\n\t \n\t //System.out.println(\"\\n\\n\\n\\nENTERED write\\n\\n\\n\\n\\n\");\n\t \n//\t if(key !=null)\n//\t {\n//\t\t System.out.println(\"key = \"+key); \n//\t }\n//\t if(value !=null)\n//\t {\n//\t\t System.out.println(\"value = \"+value); \n//\t }\n\t \n\t \n\t if(reducerORmapper.equals(\"r\") && disableHashing_flag==0) //&& key !=null && value !=null )\n\t {\n\t\t //KV=key.toString()+value.toString();\n\t\t if(key !=null && value!=null)\n\t\t {\n\t\t\t KV=key.toString()+value.toString();\n\t\t }else\n\t\t if(value !=null)\n\t\t {\n\t\t\t KV=value.toString();\n\t\t }\n\t\t //total_hash+=KV.hashCode();//This was the old way of doing the hashes and it worked perfectly\n\t\t //This old hash value was an integer, now it is becoming a String\n\t\t //Reducer.external_total_hash=total_hash;\n\t\t MessageDigest messageDigest;\n\t\ttry {\n\t\t\tmessageDigest = MessageDigest.getInstance(\"SHA-256\");\n\t\t\tbyte[] hash = messageDigest.digest(KV.getBytes(\"UTF-8\"));\n\t\t\t\n\t\t\t//System.out.println(\"firstKey = \"+firstKey);\n\t\t\t\n\t\t\tif(firstKey==0)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"1 ENTERED firstKey==0\");\n\t\t\t\tReducer.external_total_hash_byteArray=new byte[hash.length];\t\t\t\t\n\t\t\t}\n\t\t\t//messageDigest.update(KV.getBytes());\n\t\t\t//String encryptedString = new String(messageDigest.digest());\n\t\t\t//total_hash_string+=encryptedString;\n\t\t\t//Reducer.external_total_hash_string=total_hash_string;\n\t\t for(int i=0; i< hash.length;i++){//(byte b : hash) {\n\t\t \tif(firstKey==0)\n\t\t \t{\t\t \t\t\n\t\t \t\tSystem.out.println(\"2 ENTERED firstKey==0\");\n\t\t \t\tReducer.external_total_hash_byteArray[i]=hash[i];//Integer.toHexString(hash[i] & 0xff);\n\t\t \t}\n\t\t \telse\n\t\t \t{\n\t\t \t\tReducer.external_total_hash_byteArray[i]=(byte)(Reducer.external_total_hash_byteArray[i]+hash[i]);\n\t\t \t}\n\t\t }\n\t\t\t//Reducer.external_total_hash_byteArray+=hash;\n\t\t\t \n\t\t} catch (NoSuchAlgorithmException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\t\n\t\tfirstKey++;\n\t\t \n//\t\t System.out.println(\"this.local_taskID = \"+this.local_taskID);\n//\t\t System.out.println(\"++++++ inside write in TaskInputOutputContextImpl key.toString() = \"\n//\t\t +key.toString()+\" value.toString() = \"+value.toString()+\" KV.hashCode() = \"+KV.hashCode()\n//\t\t + \" total_hash = \"+total_hash + \" Reducer.external_total_hash = \"+Reducer.external_total_hash);\n\t }\n\t \n\t //System.out.println(\"Reducer.finalValue = \"+Reducer.finalValue);\n output.write(key, value);\n \n// if(conf.getInt(MRJobConfig.BFT_FLAG, 1)==3)//TODO NEED TO ADD CASE 2\n// {\n//\t\t\n// \t int local_NUM_REPLICAS = conf.getInt(MRJobConfig.NUM_REPLICAS,4); \n// \t String reducerORmapper = this.local_taskID.split(\"_\")[3];\n// \t int reducerNumber = Integer.parseInt(this.local_taskID.split(\"_\")[4]);\n// \t int unreplicatedReducerNumber = (int) Math.floor(reducerNumber/local_NUM_REPLICAS);\n// \t \n// \t \n// \t \n// \n// try {\n// \tString KV=\"\"; int i=0; long totalHash=0; String stringToSend=\"\"; String stringReceived=\"\";\n// \t//System.out.println(\"+++ entered try\");\n// \twhile (context.nextKey()) {\n// reduce(context.getCurrentKey(), context.getValues(), context);\n// \n// if(reducerORmapper.equals(\"r\"))\n// {\n// \t //KV+=context.getCurrentKey().toString()+context.getCurrentValue().toString();// first hashing method\n// \t KV=context.getCurrentKey().toString()+context.getCurrentValue().toString();\n// \t totalHash+=KV.hashCode();\n// \t //System.out.println(\"key = \"+context.getCurrentKey()+\" value = \"+context.getCurrentValue()+\n// \t //\t\t\" KV.hashCode() = \"+KV.hashCode()+\" totalHash = \"+totalHash);\n// \t //KV=\"p\";\n// }\n// \n// // If a back up store is used, reset it\n// Iterator<VALUEIN> iter = context.getValues().iterator();\n// if(iter instanceof ReduceContext.ValueIterator) {((ReduceContext.ValueIterator<VALUEIN>)iter).resetBackupStore();} \n// \n// \n// i++;\n// }\n// \n// \n// \n// if(reducerORmapper.equals(\"r\"))\n// {\n// \t \n// \t System.out.println(\"ENTERED if(reducerORmapper.equals(\\\"r\\\"))\");\n// \t \n// \t totalHash=0;//just for now for testing \t \n// \t stringToSend=reducerNumber+\" \"+this.local_taskID+\" \"+totalHash;\n// \t \n// \t \n// \t try {\n// \t\t\tclientSocket = new Socket(\"mc07.cs.purdue.edu\", 2222);//(\"mc07.cs.purdue.edu\", 2222);\n// \t\t\tinputLine = new BufferedReader(new InputStreamReader(System.in));\n// \t\t\tos = new PrintStream(clientSocket.getOutputStream());\n// \t\t\tis = new DataInputStream(clientSocket.getInputStream());\n// \t\t} catch (UnknownHostException e) {\n// \t\t\tSystem.err.println(\"Don't know about host mc07.cs.purdue.edu\");\n// \t\t} catch (IOException e) {\n// \t\t\tSystem.err.println(\"Couldn't get I/O for the connection to the host mc07.cs.purdue.edu\");\n// \t\t\tSystem.out.println(\"e.getMessage() = \"+e.getMessage());\n// \t\t\tSystem.out.println(\"e.toString() = \"+e.toString());\n// \t\t\tSystem.out.println(\"e.getCause() = \"+e.getCause()); \t\t\t\n// \t\t}\n//\n// \t\t\n// \t\tif (clientSocket != null && os != null && is != null) {\n// \t\t\ttry {\n//\n// \t\t\t\tos.println(stringToSend);\n// \t\t\t\tString responseLine;\n// \t\t\t\tSystem.out.println(\"Before while\");\n// \t\t\t\twhile(true){\n// \t\t\t\t\tSystem.out.println(\"Entered while\");\n// \t\t\t\t\tresponseLine = is.readLine();\n// \t\t\t\t\tSystem.out.println(\"responseLine = \"+responseLine);\n// \t\t\t\t\tif(responseLine!=null && !responseLine.isEmpty())\n// \t\t\t\t\t{\n// \t\t\t\t\t\t//add if stmt for checking the server address, but first open a socket here for each Reducer for accepting server address\n// \t\t\t\t\t\t//clientSocket = serverSocket.accept();(put it above)\n// \t\t\t\t\t\tif (Integer.parseInt(responseLine)==unreplicatedReducerNumber)\n// \t\t\t\t\t\t{\t\n// \t\t\t\t\t\t\tSystem.out.println(\"Entered XXX------\");\n// \t\t\t\t\t\t\tbreak;\n// \t\t\t\t\t\t}\n// \t\t\t\t\t}\n// \t\t\t\t} \t\t\t\t\n// \t\t\t\t/* WORKING PERFECTLY .... need to uncomment class MultiThreadChatClient\n// \t\t\t\t // Create a thread to read from the server\n// \t\t\t\tnew Thread(new MultiThreadChatClient(unreplicatedReducerNumber)).start();//try sending is,closed if this didn't work\n// \t\t\t\tos.println(stringToSend);\n// \t\t\t\t\n// \t\t\t\t while (true) {\n// \t\t\t\t\tsynchronized(lock){//CHECK IF THIS CAUSES AN OVERHEAD\n// \t\t\t\t\tif(closed)\n// \t\t\t\t\t\t{\n// \t\t\t\t\t\t\tSystem.out.println(\"ENTERED if(closed)\");\n// \t\t\t\t\t\t\tbreak;\n// \t\t\t\t\t\t}\n// \t\t\t\t\t}\n// \t\t\t\t}*/\n// \t\t\t\t//os.println(\"ok\");\n// \t\t\t\tSystem.out.println(\"AFTER THE TWO WHILES\");\n// \t\t\t\tos.close();\n// \t\t\t\tis.close();\n// \t\t\t\tclientSocket.close();\n// \t\t\t} \n// \t\t\tcatch (IOException e) {\n// \t\t\t\tSystem.err.println(\"IOException: \" + e);\n// \t\t\t}\n// \t\t}\n// \t\t \n// \t\t \t \n// \t\t KV=\"\";stringToSend=\"\";totalHash=0;\n// }\n// \n// \n// \n// } \n// \n// }\n \n }",
"@Override\n\t\tprotected void map(Text key, Text value,\n\t\t\t\torg.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString[] array=value.toString().split(\" \");\n\t\t\tfor(int i=0;i<clist.size();i++)\n\t\t\t{\n\t\t\t\tString s=clist.get(i);\n\t\t\t//\tSystem.out.println(\"距离点为\"+s+\" \"+key.toString());\n\t\t\t\tdouble res=getDistance(s,key.toString());\n\t\t//\t\tSystem.out.println(\"距离为\"+res);\n\t\t\t\tmapvalue.set(res);\n\t\t\t\tcontext.write(key, mapvalue);\n\t\t\t}\n\t\t}",
"public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException \n {\n \t\n \tStringTokenizer st_11;\n \tStringBuilder str_build;\n \tConfiguration conf1=context.getConfiguration();\n \tinput1=conf1.get(\"input1\").toString();\n \tinput2=conf1.get(\"input2\").toString();\n \t\n \tint a1=Integer.parseInt(input1);\n \tint b1=Integer.parseInt(input2);\n \t \t\n \tString[] mydata = value.toString().split(\"\\t\");\n \t\n \tif(mydata.length==2)\n \t{\n \t\tif((Integer.parseInt(mydata[0])==a1)||(Integer.parseInt(mydata[0])==b1))\n \t\t{\n \t\t\t str_build = new StringBuilder();\n \t\t\t st_11= new StringTokenizer(mydata[1].toString(),\",\");\n \t\t\t \n \t\t\t while(st_11.hasMoreElements())\n \t\t {\n \t\t\t\tString temporary=st_11.nextElement().toString();\n \t\t\t\tstr_build.append(temporary);\n \t\t\t\tstr_build.append(\"-\");\n \t\t\t\tstr_build.append(usersMap.get(temporary));\n \t\t\t\tstr_build.append(\",\");\n \t\t }\n \t\t\t str_build.deleteCharAt(str_build.length()-1);\n \t\t\t context.write(new Text(\"1\"),new Text(str_build.toString()));\n \t\t}\n \t}\n \tif(mydata.length==1)\n \t{\n \t\tif((Integer.parseInt(mydata[0])==a1)||(Integer.parseInt(mydata[0])==b1))\n \t\t{\n \t\t\tcontext.write(new Text(\"1\"),new Text(\"NULL\"));\n \t\t}\n \t\t\n \t}\n \t\n }",
"void outputPage(int i) throws IOException {\n byte[] page = compressors[i].getPage();\n\n int pageLen = compressors[i].getPageLen();\n\n if (page == null || pageLen <= 0) {\n return;\n }\n out.reset();\n out.writeInt(pageLen);\n out.write(page, 0, pageLen);\n\n // 2) write page meta\n backupVps[i].data = backups[i].serialize(maxs[i], tmpLength);\n\n backupVps[i].offset = 0;\n backupVps[i].length = tmpLength[0];\n backupVps[i].write(out);\n\n backupVps[i].data = backups[i].serialize(mins[i], tmpLength);\n backupVps[i].length = tmpLength[0];\n\n // write min row\n backupVps[i].write(out);\n out.writeInt(pms[i].startPos);\n out.writeInt(pms[i].numPairs);\n\n // set max & min row of current segment\n if (segMaxs[i] == null || segMins[i] == null) {\n segMaxs[i] = maxs[i];\n segMins[i] = mins[i];\n\n } else {\n\n // Row.updateMaxMins(segMaxs[i], segMins[i], maxs[i], mins[i]);\n updateMaxMins(segMaxs[i], segMins[i], maxs[i], mins[i]);\n\n\n }\n\n // 3) output the page\n segId.setPageId(pageIds[i]);\n segId.setClusterId(i);\n\n\n if(!isInit){\n isInit=true ;\n clusterValue=new ArrayList<List<BytesWritable>>(SerializeUtil.desc.clusterTypes.size());\n for (int b = 0; b < numClusters; b++) {\n clusterValue.add(new ArrayList<BytesWritable>(512));\n }\n\n }\n clusterValue.get(i).add(new BytesWritable());\n clusterValue.get(i).get(clusterValue.get(i).size() - 1)\n .set(out.getData(), 0, out.getLength());\n sgementSize = sgementSize + cluster_pages[i];\n\n // 4) reset\n pageIds[i]++;\n pms[i].startPos += pms[i].numPairs;\n pms[i].numPairs = 0;\n maxs[i] = mins[i] = null;\n compressors[i].reset();\n\n\n }",
"public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n String[] token = value.toString().split(\"\\t\");\n String[] pair = new String[2];\n if(token.length < 2) return;\n String[] data = token[1].split(\",\");\n\n for (String d : data) {\n pair[0] = token[0];\n pair[1] = d;\n if(Integer.parseInt(pair[0])<Integer.parseInt(pair[1]))\n keyPair.set(\"<\"+pair[0]+\",\"+pair[1]+\">\");\n else\n keyPair.set(\"<\"+pair[1]+\",\"+pair[0]+\">\");\n\n friend.set(token[1]); // set word as each input keyword\n context.write(keyPair, friend); // create a pair <keyword, 1>\n }\n }",
"@Override\n public void map(LongWritable key, Text value, Context context)\n throws IOException, InterruptedException {\n String[] words = value.toString().split(Utils.delim);\n String decade = words[0],\n w1 = words[1],\n w2 = words[2],\n cW1 = words[3],\n cW2 = words[4],\n cW1W2 = words[5],\n cDecade = cDecades[Integer.parseInt(decade) - Utils.minDecade],\n pmi;\n\n if (cDecade.equals(\"-1\")) {\n logger.severe(\"Unsupported decade: \" + decade);\n return;\n }\n\n pmi = calculatePMI(\n Double.parseDouble(cW1),\n Double.parseDouble(cW2),\n Double.parseDouble(cW1W2),\n Double.parseDouble(cDecade));\n\n decadePmi.set(decade, pmi);\n newValue.set(w1 + Utils.delim + w2);\n context.write(decadePmi, newValue);\n }",
"@Override\n\t\tpublic void map(Key key, Value value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tSortedMap<Key,Value> entries = WholeRowIterator.decodeRow(key, value);\n\t\t\t\n\t\t\t// If we have counts for the given ngram for both time periods, we will have 2 Entrys that look like\n\t\t\t// RowId: ngram\n\t\t\t// CQ: Date Granularity (ex. DAY, HOUR)\n\t\t\t// CF: Date Value (ex. 20120102, 2012010221)\n\t\t\t// Value: count\n\t\t\t// We know the entries are sorted by Key, so the first entry will have the earlier date value \n\t\t\tif ( entries.size() == 2 ) {\n\t\t\t\t\n\t\t\t\t// Read the Entrys and pull out the two counts\n\t\t\t\tlong [] counts = new long[2];\n\t\t\t\tint index = 0;\n\t\t\t\tfor ( Entry<Key,Value> entry : entries.entrySet() ) {\n\t\t\t\t\tcounts[index++] = LongCombiner.VAR_LEN_ENCODER.decode( entry.getValue().get());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Generate a trending score for this ngram\n\t\t\t\tint score = calculateTrendingScore( counts, context );\n\t\t\t\t\n\t\t\t\t// If we have a valid score, write out the score to Accumulo\n\t\t\t\tif ( score > 0 ) {\n\t\t\t\t\t\n\t\t\t\t\tint sortableScore = Integer.MAX_VALUE - score;\n\t\t\t\t\t\n\t\t\t\t\t// RowId is the time we are calculating trends for, i.e. DAY:20120102\n\t\t\t\t\t// CF is Integer.MAX_VALUE - trending score so that we sort the highest scores first\n\t\t\t\t\t// CQ is the ngram\n\t\t\t\t\t// Value is empty\n\t\t\t\t\tString rowId = context.getConfiguration().get(\"rowId\");\n\t\t\t\t\tMutation mutation = new Mutation( rowId );\n\t\t\t\t\tmutation.put( new Text( String.valueOf(sortableScore)), entries.firstKey().getRow(), emptyValue );\n\t\t\t\t\tcontext.write( null, mutation );\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"public void map(LongWritable key, Text string, Context context\n ) throws IOException, InterruptedException {\n\t\t\t\n\t\t\tSystem.out.println(string.toString());\n\t\t\t\n\t\t\tString[] value = string.toString().split(\",\");\n\n\t\t\tString value1 =value[1].replaceAll(\"[\\\\n\\\\t]\", \"\");\n\t\t\toutputkey.setKeyword(value[0]);\n\t\t\toutputkey.setSum(Integer.parseInt(value1));\n\t\t\tcontext.write(outputkey, new IntWritable(outputkey.getSum()));\n\t\t}",
"public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n\t\t\tStringTokenizer tok = new StringTokenizer(value.toString(), \",\"); \n\t\t\t\n\t\t\ttry{\n\t\t\t\tif(tok.hasMoreTokens())\n\t\t\t\t\ttok.nextToken();\n\t\t\t\tif(tok.hasMoreTokens())\n\t\t\t\t\tlocation.set(tok.nextToken());\n\t\t\t\tif(tok.hasMoreTokens())\n\t\t\t\t\tnew_cases.set(Long.parseLong(tok.nextToken()));\n\n\t\t\t\tcontext.write(location, new_cases);\n\t\t\t\n\t\t\t}catch(Exception e){\n\t\t\t\t\n\t\t\t}\n\t\t}",
"@Override\n\tprotected void map(LongWritable key, Text value,Context context) throws IOException, \n\tInterruptedException {\n\t\t\n\t\tfinal String inputValue=value.toString();\n\t\t\n\t\tfinal IntWritable ONE = new IntWritable(1);\n\t\t\n\t\tif(!StringUtils.isEmpty(inputValue))\n\t\t{\n\t\t\tfinal String[] words = StringUtils.splitPreserveAllTokens(inputValue, \n\t\t\t\t\tMRConstants.EMPTY.getValue());\n\t\t\tfor (String word : words) {\n\t\t\t\tcontext.write(new Text(word), ONE);\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"@Override\n\t\tprotected void map(Object key, Text value, Mapper<Object, Text, Text, NullWritable>.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString[] infos = value.toString().split(\"\\t\");\n\t\t\tapplication_no = infos[PatentStructure.application_no];\n\t\t\tif(typeSet.contains(application_no.charAt(6))){\n\t\t\t\ttype = String.valueOf(application_no.charAt(6));\n\t\t\t}else {\n\t\t\t\ttype = \"4\";\n\t\t\t}\n\t\t\tinfos[0] = \"null\";\n\t\t\tinfos[PatentStructure.url] = infos[PatentStructure.url] + \"\\t\" + type + \"\\t\" + infos[PatentStructure.url+3];\n\t\t\toutKey.set(StringUtils.join(infos, \"\\t\"));\n\t\t\tcontext.write(outKey, NullWritable.get());\n\t\t}",
"@Override\n\tprotected void map(Text key, Text value,\n\t\t\torg.apache.hadoop.mapreduce.Mapper.Context context)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString[] array=value.toString().split(\" \");\n\t\tfor(int i=0;i<clist.size();i++)\n\t\t{\n\t\t\tString s=clist.get(i);\n\t\t//\tSystem.out.println(\"距离点为\"+s+\" \"+key.toString());\n\t\t\tdouble res=getDistance(s,key.toString());\n\t\t//\tSystem.out.println(\"距离为\"+res);\n\t\t\tmapvalue.set(res*Double.parseDouble(array[i]));\n\t\t\tcontext.write(mapkey, mapvalue);\n\t\t}\n\t}",
"@Override\r\n\t\tprotected void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\r\n\r\n\t\t\tString[] split = value.toString().split(\",\");\r\n\r\n\t\t\toutKey.set(split);\r\n\r\n\t\t\tcontext.write(outKey, NullWritable.get());\r\n\t\t}",
"@Override\n\tpublic void map(LongWritable key, Text values, \n\t\t\tMapper<LongWritable, Text, HadoopSecondSortKey, HadoopSecondSortKey>.Context context) throws IOException, InterruptedException{\n\t\t//解析类进行初始化\n\t\tparse.ncdcParse(values);\t\t\n\t\tif (parse.isValidTemprature()){\t\n\t\t\tString yearMonth = parse.getYear()+parse.getMonth();\n\t\t\tString day = parse.getDay();\n\t\t\tsortKey.set(yearMonth,day);\t\n\t\t\tString keyDay = day;\n\t\t\tLong temperature = parse.getTemprature();\n\t\t\tsortKey1.set(keyDay,temperature.toString());\t\n\t\t\tcontext.write(sortKey,sortKey1);\n\t\t}\n\t}",
"@Override\n\t\tprotected void map(LongWritable key, Text value, Context context) \n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tArrayList<MRVertex> vertices = verticesFromInputValue(value, context.getConfiguration());\n\t\t\tfor (MRVertex vertex : vertices) {\n\t\t\t\tcontext.write(new IntWritable(vertex.getId()), \n\t\t\t\t\t\t\t vertex.toWritable(MRVertex.EdgeFormat.EDGES_TO));\n\t\t\t\t\n\t\t\t\tMRVertex.AdjacencyIterator itTo = vertex.createToAdjacencyIterator();\n\t\t\t\tfor (int toId = itTo.begin(); !itTo.done(); toId = itTo.next()) {\n\t\t\t\t\tMREdge edge = new MREdge(vertex.getId(), toId);\n\t\t\t\t\tcontext.write(new IntWritable(toId), edge.toWritable());\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"@Override\n\t\tpublic void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n\t\t\tString elems[] = value.toString().split(\",\");\n\t\t\tint custID = Integer.parseInt(elems[0]);\n\t\t\tText result = new Text(filetag+elems[1]+\",\"+elems[4]);\n\t\t\tcontext.write(new IntWritable(custID), result); \n\t\t}",
"@Override\n\t\tprotected void map(ImmutableBytesWritable key, Result value,\n\t\t\t\tMapper<ImmutableBytesWritable, Result, DoubleWritable, Text>.Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tString strValue = new String(value.getValue(FAMILY.getBytes(), QUALIFIER.getBytes()));\n\n\t\t\tdw.set(Double.valueOf(strValue));\n\t\t\ttext.set(new String(key.get()));\n\n\t\t\tcontext.write(dw, text);\n\t\t}",
"@Override\n protected void map(LongWritable kin, Text datin, Context context)\n throws IOException, InterruptedException {\n try {\n Map<String, Object> f = this.parser.parseLine(datin.toString());\n if (!isValidateRecord(f)) return;\n context.write(new IntWritable((int) ((float) f.get(\"YEAR\"))), datin);\n } catch (Exception e) {\n context.getCounter(\"Exception\",\"EMap4\").increment(1);\n }\n }",
"@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, \n InterruptedException {\n \tString text = value.toString();\n \n // declare and initialize variables for tokens of each of 3 reading frames\n \tStringTokenizer st1 = new StringTokenizer(text, \"\\n\");\n \tStringTokenizer st2 = new StringTokenizer(text.substring(1), \"\\n\");\n \tStringTokenizer st3 = new StringTokenizer(text.substring(2), \"\\n\");\n \t\n \n // read, process, and write reading frame 1\n // TCA GCC TTT TCT TTG ACC TCT TCT TTC TGT TCA TGT GTA TTT GCT GTC TCT TAG CCC AGA\n // does TCA exist in codon2aaMap?\n // if so, write (key, value) pair to context \n \tsetup(context);\n \tString frame1;\n \t\n \twhile(st1.hasMoreTokens())\n \t{\n \t\tframe1 = st1.nextToken().toString();\n \t\t\n \t\tfor (int i=0; i< frame1.length()-1; i+=3)\n \t\t{\n \t\t\tif(codon2aaMap.containsKey(frame1.substring(i, i+3)))\n \t\t\t{\n \t\t\t\tString ProteinFound = codon2aaMap.get(frame1.substring(i, i+3));\n \t\t\t\tcontext.write(new Text(ProteinFound), new Text(\"Frame1_1\"));\n \t\t\t}\n \t\t}\n \t}\n \t\n\n // read, process, and write reading frame 2\n // T CAG CCT TTT CTT TGA CCT CTT CTT TCT GTT CAT GTG TAT TTG CTG TCT CTT AGC CCA GA\n // does CAG exist in codon2aaMap?\n // if so, write (key, value) pair to context \n \tString frame2;\n \twhile(st2.hasMoreTokens())\n \t{\n \t\tframe2 = st2.nextToken().toString();\n \t\t\n \t\tfor (int i=0; i< frame2.length()-3; i+=3)\n \t\t{\n \t\t\tif(codon2aaMap.containsKey(frame2.substring(i, i+3)))\n \t\t\t{\n \t\t\t\tString ProteinFound = codon2aaMap.get(frame2.substring(i, i+3));\n \t\t\t\tcontext.write(new Text(ProteinFound), new Text(\"Frame2_1\"));\n \t\t\t}\n \t\t}\n \t}\n \n // read, process, and write reading frame 3\n // TC AGC CTT TTC TTT GAC CTC TTC TTT CTG TTC ATG TGT ATT TGC TGT CTC TTA GCC CAG A\n // does AGC exist in codon2aaMap?\n // if so, write (key, value) pair to context \n \t\n \tString frame3;\n \twhile(st3.hasMoreTokens())\n \t{\n \t\tframe3 = st3.nextToken().toString();\n \t\t\n \t\tfor (int i=0; i< frame3.length()-2; i+=3)\n \t\t{\n \t\t\tif(codon2aaMap.containsKey(frame3.substring(i, i+3)))\n \t\t\t{\n \t\t\t\tString ProteinFound = codon2aaMap.get(frame3.substring(i, i+3));\n \t\t\t\tcontext.write(new Text(ProteinFound), new Text(\"Frame3_1\"));\n \t\t\t}\n \t\t}\n \t}\n \n }",
"@Override\n\t public void map(Object key, Text value, Context context\n\t \n\t ) throws IOException, InterruptedException {\n\t\t// read line by line, with each transaction, verify if a candidate is all in this transaction, if yes, write candiate, one\n\t\t// value is a line\n\t\t \n\t\tString line = value.toString();\n\t\t\n\t\t// convert transaction to List<Integer>\n\t\tString[] s = line.split(\"\\\\s+\");\n\t\tList<Integer> t = new ArrayList<Integer>();\n\t\t\n\t\t\n\t\t// count how many frequent items appear in this transaction\n\t\tint count = 0;\n\t\tfor(int i=0; i<s.length; i++) {\n\t\t t.add(Integer.parseInt(s[i]));\n\t\t if (hashItems.containsKey(Integer.parseInt(s[i])))\n\t\t\t\tcount++;\n\t\t}\n\t\t\n\n\t\tif (count >= 2) {\n\t\t\t Text word = new Text();\n\t\t\t String newT = new String();\n\n\t\t\t // we sort transaction t:\n\t\t\t Collections.sort(t);\n\t\t\t \n\t\t\t // convert transaction to List<Integer>\n\t\t\t for (Integer x: t)\n\t\t\t\t if (hashItems.containsKey(x)) {\n\t\t\t\t\tnewT = newT + x.toString() + \" \";\t\t\t\t\t\n\t\t\t\t }\n\t\t\t // now newT is the transaction with only frequent items, we will output it\n\t\t\t \n\t\t\t \n\t\t\t word.set(newT);\n\n\t\t\t context.write(word, new Text(\"1 1\")); // 1 support, 1 for data (to avoid error)\n\t\t\t\n\t\t}\n\t\t \n\t\t\n\t\t\n\t\t\t\n\n\t\t\n\n\t }",
"@Override\n\t\tpublic void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n\t\t\tString elems[] = value.toString().split(\",\");\n\t\t\tint custID = Integer.parseInt(elems[1]);\n\t\t\tText result = new Text(filetag+elems[2]+\",\"+elems[3]);\n\t\t\tcontext.write(new IntWritable(custID), result);\n\t\t}",
"public void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n word.set(value);\n String line = word.toString();\n String[] col_vals = line.split(\",\");\n\n Text total_Passenger_key = new Text(\"_Passenger\");\n Text total_Trip_key = new Text(\"_Trip\");\n\n if (!col_vals[0].trim().isEmpty()) {\n DateTimeFormatter format = DateTimeFormatter.ofPattern(\"yyyy-MM-dd HH:mm:ss\");\n\n try {\n \n // changing the type of first column to date value\n LocalDateTime date = LocalDateTime.parse(col_vals[1], format);\n\n // getting week days\n DayOfWeek days_of_week = date.getDayOfWeek();\n\n // For weekend - mention weekend\n if (days_of_week.toString() == \"SATURDAY\" || days_of_week.toString() == \"SUNDAY\") {\n\n context.write(new Text(date.getHour() + \"Weekend_\" + total_Passenger_key),\n new IntWritable(Integer.parseInt(col_vals[3])));\n context.write(new Text(date.getHour() + \"Weekend_\" + total_Trip_key), one);\n }\n // For weekday - mention weekday\n else {\n\n context.write(new Text(date.getHour() + \"Weekday_\" + total_Passenger_key),\n new IntWritable(Integer.parseInt(col_vals[3])));\n context.write(new Text(date.getHour() + \"Weekday_\" + total_Trip_key), one);\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }",
"@Override\n public void accLongitudinal(int value, int timestamp) {\n }",
"public void map(LongWritable key, WritableArchiveRecord value, Context context) throws IOException {\n ArchiveRecord rec = value.getRecord();\n indexer.parseRecord(rec);\n }",
"public void map(Document value,\n OutputCollector<String, Pair> output) {\n String content = value.content;\n int count = value.count;\n for (int i = 1; i <= content.length(); i++){\n String subContent = content.substring(0, i);\n output.collect(subContent, new Pair(content, count));\n }\n }",
"public void map(Object key, Text value, Context context\n ) throws IOException, InterruptedException {\n StringTokenizer itr = new StringTokenizer(value.toString(), \"\\n\");\n\n // Loop through all lines\n while (itr.hasMoreTokens()) {\n String filteredSentence;\n String sentence = itr.nextToken().toLowerCase(Locale.ROOT);\n\n // Remove all special characters from the word and replace them with *\n filteredSentence = sentence.replaceAll(\"[^a-zA-Z ]\", \"*\");\n // Add a space at the end of every line to also represent the end of the last word in the sentence in the bigrams\n filteredSentence += \" \";\n\n // Write every lineCount + a map of the bigram and frequency of 1 to the context\n for(int i = 0; i < filteredSentence.length() - 1; i++){\n String pair = filteredSentence.substring(i, i + 2);\n context.write(new IntWritable(lineCount), new StringDoubleWritable(pair, 1.0));\n }\n lineCount++;\n }\n }",
"public void map(Object key, Text value, Context context\n\t\t ) throws IOException, InterruptedException {\n\n\t\t\t\n\t\t\t\n\t\t\t \n\t\t\t String curr_string=value.toString();\n\t\t\t /// splitting based on \"*\" as a delimiter...\n\t\t\t String [] parts=curr_string.split(\"\\\\*\");\n\t\t\t String curr_key=parts[0];\n\t\t\t // Removing spaces from both left and right part of the string..\n\t\t\t String curr_value=parts[1].trim();\n\t\t\t String [] small_parts=curr_value.split(\",\");\n\t\t\t // Taking the count of unique files which are present in the input given to tfidf\n\t\t\t int no_of_unique_files=Integer.parseInt(small_parts[small_parts.length-1]);\n\t\t\t /// The formula to compute idf is log((1+no_of_files)/no_of_unique_files))....\n\t\t\t Configuration conf=context.getConfiguration();\n\t\t\t String value_count=conf.get(\"test\");\n\t\t\t if(!value_count.isEmpty())\n\t\t\t {\n\t\t\t int total_no_files=Integer.parseInt(value_count);\n\t\t\t double x=(total_no_files/no_of_unique_files);\n\t\t\t // Formula fo rcomputing the idf value....\n\t\t\t double idf_value=Math.log10(1+x);\n\t\t\t for(int i=0;i<small_parts.length-1;i++)\n\t\t\t {\n\t\t\t\t String [] waste=small_parts[i].split(\"=\");\n\t\t\t\t String file_name=waste[0];\n\t\t\t\t // Computing the tfidf on the fly...\n\t\t\t\t double tf_idf=idf_value*Double.parseDouble(waste[1]);\n\t\t\t\t Text word3 = new Text();\n\t\t\t\t Text word4 = new Text();\n\t\t\t\t word3.set(curr_key+\"#####\"+file_name+\",\");\n\t\t\t\t word4.set(tf_idf+\"\");\n\t\t\t\t context.write(word3,word4);\n\t\t\t\t \n\t\t\t }\n\t\t\t //word1.set(curr_key);\n\t\t\t //word2.set(idf_value+\"\");\n\t\t\t //context.write(word1,word2); \n\t\t\t} \n\t\t}",
"@Override\n\tpublic void map(Object key, Text value, Context context)\n\tthrows IOException, InterruptedException {\n\tString[] words = value.toString().split(\"[ \\t]+\");\n\tfor(String originalWord:words)\n\t{\n\t\t//Remove all alphanumeric characters\n\t\toriginalWord = originalWord.replaceAll(\"[^a-zA-Z0-9]\",\"\");\n\t\t\n\t\t//Convert the words to lower case\n\t\t//word = word.toLowerCase();\n\t\n\t\tchar[] chars = originalWord.toCharArray();\n\t\tArrays.sort(chars);\n\t\tString sortedWord= new String(chars);\n\t\tcontext.write(new Text(sortedWord), new Text(originalWord));\n\t\tSystem.err.println(\"RKUMLOG:This is a mapper.\");\n\t}\n\t}",
"public void map(String _, Document value,\n OutputCollector<String, Integer> output) {\n }",
"@Override\n\tpublic void serializeTo(DataOutputStream output) throws IOException\n\t{\n\t\toutput.writeLong(value);\n\t}",
"@Override\n public void map(LongWritable key, Text value, Context context) throws IOException, InterruptedException {\n\n if (!skip(key, value)) {\n /* Date,Open,High,Low,Close,Adj Close,Volume\n */\n String line = value.toString();\n String[] splits = line.split(getSeparator());\n // if the line ends with separators, they are ignored and consequently the num of splits doesn't match\n // num of columns in csv file\n if (splits.length > maxIndex) {\n Pair<Boolean, LocalDate> filterRes = getDateAndFilter(splits[indices.get(DATE_PROP)]);\n\n if (filterRes.getLeft()) {\n LocalDate date = filterRes.getRight();\n\n AbstractBaseWritable<?> entry = mapperHelper.generateEntry(date, splits, indices);\n\n counter.increment();\n\n writeOutput(context, entry, keyOut, id, keyOutType);\n }\n } else {\n getLogger().warn(\"Line \" + key.get() + \" ignored, insufficient columns: \" + splits.length);\n }\n }\n }",
"void writeLong(long value);",
"@Override\r\n\t\tprotected void reduce(PageCount_myself key, Iterable<NullWritable> value,\r\n\t\t\t\tReducer<PageCount_myself, NullWritable, PageCount_myself, NullWritable>.Context context)\r\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\t\r\n\t\t\t\r\n\t\t\tcontext.write(key, NullWritable.get());\r\n\t\t}",
"void readWriteFile() throws IOException{\n\t\t\t\t\n\t\t// Sorting before writing it to the file\n\t Map<String, Double> sortedRank = sortByValues(PageRank); \n\t\t\n // below code is used for finding the inlinks count, Comment the probablity sum in below iterator if uncommenting this line\n\t\t//Map<String, Integer> sortedRank = sortByinlinks(inlinks_count);\n\t\t\n\n\t\t//Writing it to the file\n\t\tFile file = new File(\"C:/output.txt\");\n\t\tBufferedWriter output = new BufferedWriter(new FileWriter(file,true));\n\t\tIterator iterator = sortedRank.entrySet().iterator();\n\t\tdouble s = 0.0;\n\t\t\twhile(iterator.hasNext()){\n\t\t\t\tMap.Entry val = (Map.Entry)iterator.next();\n\t\t\t\toutput.write(val.getKey() +\"\\t\"+ val.getValue()+ \"\\n\");\t\t\t\t\n\t\t\t\ts= s+ (double)val.getValue(); //Adding the Probablity ; Comment this line if using Inlink calculation\n\t\t\t}\n\t\t\tSystem.out.println(\"Probablity Sum : \"+s); //After convergence should be 1; ; Comment this line if using Inlink calculation\n\t\t\toutput.flush();\n\t\t\toutput.close();\n\t}",
"Astro leafLong(long data, SourceSpan optSpan);",
"@Override\n\tpublic void map(LongWritable key, Text value, Context output)\n\t\t\tthrows IOException, InterruptedException {\n\n if (data.setParams(value.toString(), false)) {\n output.write(new Text(data.concatenateKeys()), new IntWritable(data.arrivalDelay));\n }\n\t}",
"public void map(Object key, Text value, Context context)\n\t\t\t\t\tthrows IOException, InterruptedException\n\t\t\t\t\t{\n\t//Passing the string and splitting it by comma separated and storing it in string array\n\t\t\t\tString[] arr_new = value.toString().split(\",\");\n //Inserting the value at the 2nd position of the string array\n\t\t\t\tspeed.set(arr_new[14]);\n\t//Inserting the value at the 4th position of the string array and parsing it to integer\n\t\t\t\taccidents.set(Integer.parseInt(arr_new[6]));\n\t//Passing the key and value to context buffer of the Map output \n\t\t\t\tcontext.write(speed, accidents);\n\t\t\t\t\n\t\t\t\t\n\t\t}",
"public void reduce(IntWritable key, Iterable<Text> values, Context context) throws IOException, InterruptedException {\n HashMap<String, ArrayList<String>> hm = new HashMap<String, ArrayList<String>>();\n\n //ArrayList<String> tableS = new ArrayList<String>(); Trying to reduce memory\n ArrayList<String> tableT = new ArrayList<String>();\n\n //group the records in the iterator into table S and table T\n for(Text val : values){\n String record = val.toString();\n int i = record.indexOf(\" \");\n String tag = record.substring(0,i);\n String value = record.substring(i+1);\n\n if (tag.contentEquals(\"S\")) {\n //get the key-value information\n int j = value.indexOf(\" \");\n String tagKey = value.substring(0,j);\n String mapValue = value.substring(j+1);\n\n //if the key doesn't exist\n if (!hm.containsKey(tagKey)) {\n ArrayList<String> list = new ArrayList<String>();\n list.add(mapValue);\n hm.put(tagKey, list);\n } else {\n //same key exists, then add it to the array list\n hm.get(tagKey).add(mapValue);\n }\n } else if(tag.contentEquals(\"T\")) {\n tableT.add(value);\n }\n }\n\n// for (String s : tableS){\n// int i = s.indexOf(\" \");\n// String keyValue = s.substring(0, i);\n// //if the key doesn't exist\n// if (!hm.containsKey(keyValue)) {\n// ArrayList<String> list = new ArrayList<String>();\n// list.add(s.substring(i+1));\n// hm.put(keyValue, list);\n// } else {\n// //same key exists, then add it to the array list\n// hm.get(keyValue).add(s.substring(i+1));\n// }\n// }\n\n //then iterate through the other table to produce the result\n for (String t : tableT) {\n //check to see if there's a match\n int i = t.indexOf(\" \");\n String hashKey = t.substring(0, i);\n if (!hm.containsKey(hashKey)) {\n //no match and don't do anything\n } else {\n //match\n for (String s : hm.get(hashKey)) {\n String result = s + \" \" + hashKey + \":\" + t;\n context.write(key, new Text(result));\n }\n }\n }\n }",
"public void mapContext(Long source, Long page, MapReduceInterface mapper, ChordMessageInterface context) throws IOException, RemoteException {\n //TODO: read the page line by line, but do we need a file name here\n Thread threadOut = new Thread(new Runnable() {\n @Override\n public void run() {\n String content = \"\";\n String fileName = \"./\" + guid + \"/repository/\" + page;\n System.out.println(\"Processing \" + fileName);\n\n //get the file name\n FileReader fileReader;\n Long counter = 0L;\n try {\n fileReader = new FileReader(fileName);\n // Always wrap FileReader in BufferedReader.\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n while ((content = bufferedReader.readLine()) != null) {\n counter ++;\n String split[] = content.split(\";\");\n String key = split[0];\n String value = split[1];\n\n try {\n BigInteger bgInt = new BigInteger(key);\n mapper.map(bgInt.longValue(), value, c);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n } catch (Exception e1) {\n e1.printStackTrace();\n }\n\n try {\n context.completePeer(page, counter);\n } catch (RemoteException e) {\n e.printStackTrace();\n }\n }\n });\n\n threadOut.run();\n }",
"protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\n String[] line_author = value.toString().split(\"\\t\");\n id_author.set(Integer.parseInt(line_author[1]));\n context.write(id_author, new IntWritable(1));\n }",
"protected void map(Object key, Text value, Context context) throws IOException, InterruptedException {\r\n\r\n\t\tif (value.toString().contains(\"Marque\")){ // pour ne pas prendre en compte la première ligne (en-tête)\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tString line = value.toString(); \r\n\t\tline = line.replaceAll(\"\\\\u00a0\",\" \");\r\n\t\t\r\n\t\tString[] splitted_line = line.split(\",\"); \r\n\r\n\t\t// Gestion colonne marque\r\n\t\tString marque;\r\n\t\tString[] splitted_space = splitted_line[1].split(\"\\\\s+\"); \r\n\t\tmarque = splitted_space[0];\r\n\r\n\t\tmarque = marque.replace(\"\\\"\", \"\");\r\n\r\n\t\t// Gestion colonne Malus/Bonus\r\n String malus_bonus = splitted_line[2];\r\n\r\n\t\tmalus_bonus = malus_bonus.replaceAll(\" \", \"\").replace(\"€1\", \"\").replace(\"€\", \"\").replace(\"\\\"\", \"\");\r\n\r\n\t\tif (malus_bonus.equals(\"150kW(204ch)\") || malus_bonus.equals(\"100kW(136ch)\"))\r\n\t\t{\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tif (malus_bonus.length() == 1){\r\n\t\t\tmalus_bonus=\"0\"; \r\n\t\t} \r\n\r\n\t\t// Gestion colonne cout energie\r\n String cout;\r\n \t cout = splitted_line[4];\r\n\t\tString[] cout_splitted = cout.split(\" \");\r\n\t\tif(cout_splitted.length == 2){ // ex : |967,€]\r\n\t\t\tcout = cout_splitted[0];\r\n\t\t} else if(cout_splitted.length == 3){ // ex : [1,005,€]\r\n\t\t\tcout= cout_splitted[0] + cout_splitted[1];\r\n\t\t}\r\n\r\n\t\t// Gestion colonne Rejet CO2\r\n\t\tString rejet = splitted_line[3];\r\n\r\n\t\tint malus_bonus_int = Integer.parseInt(malus_bonus);\r\n\t\tint rejet_int = Integer.parseInt(rejet);\r\n\t\tint cout_int = Integer.parseInt(cout);\r\n\t\r\n\t\t// couple clé/valeurs\r\n\t\tString new_value = String.valueOf(malus_bonus_int) + \"|\" + String.valueOf(rejet_int) + \"|\" + String.valueOf(cout_int);\r\n\t\t\r\n context.write(new Text(marque), new Text(new_value));\r\n\t}",
"@Override\n\tprotected void reduce(IntWritable arg0, Iterable<Text> arg1,Context arg2)\n\t\t\tthrows IOException, InterruptedException {\n\t\tString fenzi=null;\n\t\tdouble fenmu=0;\n\t\tText reducevalue=new Text();\n\t\tfor(Text value:arg1)\n\t\t{\n\t\t\tString[] array=value.toString().split(\",\");\n\t\t\tdouble m=Double.parseDouble(array[1]);\n\t\t\tfenmu=fenmu+m;\n\t\t\tString[] points=array[0].split(\" \");\n\t\t\tString[] temps=null;\n\t\t\tStringBuilder sb=new StringBuilder();\n\t\t\tif(fenzi==null)\n\t\t\t{\n\t\t\t\t temps=new String[points.length];\n\t\t\t\t for(int i=0;i<temps.length;i++)\n\t\t\t\t {\n\t\t\t\t\t temps[i]=\"0\";\n\t\t\t\t }\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttemps=fenzi.split(\" \");\n\t\t\t}\n\t\t\tfor(int i=0;i<points.length;i++)\n\t\t\t{\n\t\t\t\tpoints[i]=(Double.parseDouble(temps[i])+Double.parseDouble(points[i]) * m)+\"\";\n\t\t\t}\n\t\t\t\n\t\t\tfor(int i=0;i<points.length;i++)\n\t\t\t{\n\t\t\t\tsb.append(points[i]+\" \");\n\t\t\t}\n\t\t\tfenzi=sb.toString().substring(0,sb.length()-1);\n\t\t\tsb=null;\n\t\t//\tSystem.out.println(value.toString());\n\t\t}\n\t\tString[] res=fenzi.split(\" \");\n\t//\tSystem.out.println(\"fenmu=\"+fenmu);\n\t\tfor(int i=0;i<res.length;i++)\n\t\t{\n\t\t//\tSystem.out.println(\"res=\"+res[i]);\n\t\t\tres[i]=Double.parseDouble(res[i])/fenmu+\"\";\n\t\t}\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor(int i=0;i<res.length;i++)\n\t\t{\n\t\t//\tSystem.out.println(\"res=\"+res[i]);\n\t\t\tsb.append(res[i]+\" \");\n\t\t}\n\t\tfenzi=sb.toString().substring(0,sb.length()-1);\n\t\treducevalue.set(fenzi);\n\t\targ2.write(arg0, reducevalue);\n\t}",
"@Override\n public Map<String,Object> run(Map<String,Object> args) throws Exception {\n Path tmpFolder = new Path(getConf().get(\"mapred.temp.dir\", \".\")\n + \"stat_tmp\" + System.currentTimeMillis());\n\n numJobs = 1;\n currentJob = new NutchJob(getConf(), \"db_stats\");\n\n currentJob.getConfiguration().setBoolean(\"mapreduce.fileoutputcommitter.marksuccessfuljobs\", false);\n \n Boolean sort = (Boolean)args.get(Nutch.ARG_SORT);\n if (sort == null) sort = Boolean.FALSE;\n currentJob.getConfiguration().setBoolean(\"db.reader.stats.sort\", sort);\n\n DataStore<String, WebPage> store = StorageUtils.createStore(currentJob\n .getConfiguration(), String.class, WebPage.class);\n Query<String, WebPage> query = store.newQuery();\n\n //remove the __g__dirty field since it is not stored\n String[] fields = Arrays.copyOfRange(WebPage._ALL_FIELDS, 1,\n WebPage._ALL_FIELDS.length);\n query.setFields(fields);\n\n GoraMapper.initMapperJob(currentJob, query, store, Text.class, LongWritable.class,\n WebTableStatMapper.class, null, true);\n\n currentJob.setCombinerClass(WebTableStatCombiner.class);\n currentJob.setReducerClass(WebTableStatReducer.class);\n\n FileOutputFormat.setOutputPath(currentJob, tmpFolder);\n\n currentJob.setOutputFormatClass(SequenceFileOutputFormat.class);\n\n currentJob.setOutputKeyClass(Text.class);\n currentJob.setOutputValueClass(LongWritable.class);\n FileSystem fileSystem = FileSystem.get(getConf());\n\n try {\n currentJob.waitForCompletion(true);\n } finally {\n ToolUtil.recordJobStatus(null, currentJob, results);\n if (!currentJob.isSuccessful()) {\n fileSystem.delete(tmpFolder, true);\n return results;\n }\n }\n\n Text key = new Text();\n LongWritable value = new LongWritable();\n\n SequenceFile.Reader[] readers = org.apache.hadoop.mapred.SequenceFileOutputFormat\n .getReaders(getConf(), tmpFolder);\n\n TreeMap<String, LongWritable> stats = new TreeMap<String, LongWritable>();\n for (int i = 0; i < readers.length; i++) {\n SequenceFile.Reader reader = readers[i];\n while (reader.next(key, value)) {\n String k = key.toString();\n LongWritable val = stats.get(k);\n if (val == null) {\n val = new LongWritable();\n if (k.equals(\"scx\"))\n val.set(Long.MIN_VALUE);\n if (k.equals(\"scn\"))\n val.set(Long.MAX_VALUE);\n stats.put(k, val);\n }\n if (k.equals(\"scx\")) {\n if (val.get() < value.get())\n val.set(value.get());\n } else if (k.equals(\"scn\")) {\n if (val.get() > value.get())\n val.set(value.get());\n } else {\n val.set(val.get() + value.get());\n }\n }\n reader.close();\n }\n\n LongWritable totalCnt = stats.get(\"T\");\n if (totalCnt==null)totalCnt=new LongWritable(0);\n stats.remove(\"T\");\n results.put(\"total pages\", totalCnt.get());\n for (Map.Entry<String, LongWritable> entry : stats.entrySet()) {\n String k = entry.getKey();\n LongWritable val = entry.getValue();\n if (k.equals(\"scn\")) {\n results.put(\"min score\", (val.get() / 1000.0f));\n } else if (k.equals(\"scx\")) {\n results.put(\"max score\", (val.get() / 1000.0f));\n } else if (k.equals(\"sct\")) {\n results.put(\"avg score\",\n (float) ((((double) val.get()) / totalCnt.get()) / 1000.0));\n } else if (k.startsWith(\"status\")) {\n String[] st = k.split(\" \");\n int code = Integer.parseInt(st[1]);\n if (st.length > 2)\n results.put(st[2], val.get());\n else\n results.put(st[0] + \" \" + code + \" (\"\n + CrawlStatus.getName((byte) code) + \")\", val.get());\n } else\n results.put(k, val.get());\n }\n // removing the tmp folder\n fileSystem.delete(tmpFolder, true);\n \n return results;\n }",
"@Override\n\t\tprotected void map(Object key, Text value, Context context)\n\t\t\t\tthrows IOException, InterruptedException {\n\t\t\tStringTokenizer str=new StringTokenizer(value.toString());\n//\t\t\tString[]str=new String(value.toString()).split(\"a\");\n\t\t\twhile(str.hasMoreTokens()){\n\t\t\t\tword.set(str.nextToken());\n\t\t\t\tcontext.write(word, one);\n\t\t\t\t}\n//\t\t\tfor(String b:str){\n//\t\t\t\tword.set(b);\n//\t\t\t\tcontext.write(word, one);\n//\t\t\t\t\n//\t\t\t}\n\t\t\t\n\t\t}",
"MapType map(List<ReferenceOrderedDatum> rodData, char ref, LocusContext context);",
"@Override\r\n protected IntermediateData generateTaggedMapOutput(Object o)\r\n {\n TaggedWritable value = new TaggedWritable((Text) o);\r\n value.setTag(inputTag);\r\n return value;\r\n }",
"@Override\n protected void reduce(Text key, Iterable<Text> values, Context context) throws IOException, InterruptedException {\n StringBuffer sb1 = new StringBuffer();\n Map<String, Integer> map1 = new HashMap<String, Integer>();\n for(Text value:values){\n sb1 = new StringBuffer();\n String[] temp = sb1.append(value.toString()).reverse().toString().split(\":\"); // 倒转 防止前面有冒号\n String path = new StringBuffer(temp[1].split(\"/\")[0]).reverse().toString();\n int count = Integer.valueOf(temp[0]);\n System.out.println(\"readucepath!!!\"+path);\n System.out.println(count);\n if (map1.containsKey(path)){\n map1.put(path, map1.get(path) + count);\n }else{\n map1.put(path, count);\n }\n }\n sb1.delete(0, sb1.length() - 1);\n for(Map.Entry<String,Integer> entry :map1.entrySet()){\n sb1.append(entry.getKey()).append(\":\").append(entry.getValue());\n }\n outvalue.set(new Text(sb1.toString()));\n context.write(key,outvalue);\n }",
"public void map(Object key, Text lineText, Context context) throws IOException, InterruptedException {\r\n\t\t\tString line = lineText.toString();\r\n\t\t\tString country = line.split(\",\")[1];\r\n\t\t\tString cases = line.split(\",\")[2];\r\n\t\t\tif(line.split(\",\")[0].equals(\"date\")) {}\r\n\t\t\telse{\r\n\t\t\t\tcontext.write(new Text(country), new LongWritable(Integer.parseInt(cases)));\r\n\t\t\t}\r\n\t\t}"
] |
[
"0.72322446",
"0.6353006",
"0.6160881",
"0.60780454",
"0.5978735",
"0.59355813",
"0.5924812",
"0.5782261",
"0.57758695",
"0.5731586",
"0.5721134",
"0.5693542",
"0.5690509",
"0.56534785",
"0.56310606",
"0.5570198",
"0.55691206",
"0.55667025",
"0.55576974",
"0.5526164",
"0.55045015",
"0.5457142",
"0.54244804",
"0.5403347",
"0.5402062",
"0.54019755",
"0.53906375",
"0.5373081",
"0.5358062",
"0.53571486",
"0.5316875",
"0.530195",
"0.5296956",
"0.5286881",
"0.5277217",
"0.52768266",
"0.5260583",
"0.52369934",
"0.52327406",
"0.5221702",
"0.5218956",
"0.521828",
"0.52109814",
"0.5208359",
"0.51945776",
"0.5171119",
"0.5169294",
"0.5148679",
"0.51455575",
"0.51437616",
"0.51306075",
"0.5122686",
"0.50955576",
"0.50755864",
"0.50578076",
"0.50566816",
"0.50400156",
"0.5037861",
"0.49987096",
"0.49888352",
"0.49856198",
"0.49610785",
"0.49533278",
"0.49437666",
"0.49339572",
"0.49058872",
"0.49019173",
"0.48965234",
"0.48963037",
"0.48947275",
"0.48779124",
"0.4852456",
"0.48075926",
"0.480505",
"0.47913763",
"0.47890458",
"0.4784359",
"0.47767282",
"0.47656587",
"0.4741011",
"0.473309",
"0.47234893",
"0.4721071",
"0.4698932",
"0.46951962",
"0.4690659",
"0.46816248",
"0.4680899",
"0.46548265",
"0.46478093",
"0.4643826",
"0.46417904",
"0.46400416",
"0.46312308",
"0.46086174",
"0.4606226",
"0.4595236",
"0.45895073",
"0.45795813",
"0.45613712"
] |
0.5215845
|
42
|
System.out.println("start:"+start + " end:"+end);
|
private static Circuit buildCircuit(String s, int start, int end){
int middle = findMiddle(s, start, end);
if (middle == -1)
return new SingleResistor(Double.parseDouble(s.substring(start, end)));
else {
int aStart = findNextComma(s, start, middle)+1;
int aEnd = s.charAt(middle-1) == ')'?middle-1:middle;
Circuit a = buildCircuit(s, aStart, aEnd);
int bStart = middle+1;
int bEnd = s.charAt(end-1) == ')'?end-1:end;
Circuit b = buildCircuit(s, bStart, bEnd);
if (s.charAt(start+1) == '-')
return new SeriesNetwork(a, b);
else
return new ParallelNetwork(a, b);
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"String getEndRange();",
"@Override\r\n public String toString() \r\n {\n return \"[\" + getStart() + \", \" + getEnd() + \"]\";\r\n }",
"public int start() { return _start; }",
"public int end() { return _end; }",
"public static void main(String[] args) {\n\t\tint start = 100;\r\n\t\tint end = 1;\r\n\t\t//int add = 1;\r\n\t\twhile (start>=end) {\r\n\t\t\tSystem.out.println(start);\r\n\t\t\t//start = start - add;\r\n\t\t\tstart--;\r\n\t\t}\r\n\t}",
"int getEnd();",
"String getBeginRange();",
"ButEnd getStart();",
"private static void passoutNum(int start, int end) {\n\t\tlindOfNum(0, start);\n\n\t\tif(start == end) {\n\t\t\t//System.out.println(end);\n\t\t\treturn;\n\t\t}\n\t\t//System.out.print(start);\n\t\tpassoutNum(start + 1, end);\n\t\tlindOfNum(0, start);\n\n\t}",
"public int getStart ()\n {\n\n return this.start;\n\n }",
"int getStart();",
"public int getEnd()\n {\n return end;\n }",
"public void getRange()\n\t{\n\t\tint start = randInt(0, 9);\n\t\tint end = randInt(0, 9);\t\t\n\t\tint startNode = start<=end?start:end;\n\t\tint endNode = start>end?start:end;\n\t\tSystem.out.println(\"Start : \"+startNode+\" End : \"+endNode);\n\t}",
"protected void end() {\n \tSystem.out.println(\"end ReturnToStart\");\n }",
"public int getStart()\n {\n return start;\n }",
"String getEnd();",
"public int length() { return _end - _start; }",
"public String toString()\n {\n return \"(\" + start + \"->\"+ (start+size-1) + \")\";\n }",
"public String getEnd(){\n\t\treturn end;\n\t}",
"public String getStart(){\n\t\treturn start;\n\t}",
"public int getEnd() {\r\n return end;\r\n }",
"public void setEnd(int end)\n {\n this.end = end;\n this.endSpecified = true;\n }",
"public double getEnd();",
"public void setEnd(int end) {\r\n this.end = end;\r\n }",
"public int getStart() {\r\n return start;\r\n }",
"public int getStart() {\n return start;\n }",
"int getEndPosition();",
"public int getEnd() {\n return end;\n }",
"public static void main(String[] args) {\n\t\tint start,end;\r\n\t\tint sum=0;\r\n\t\tScanner scan = new Scanner(System.in);\r\n\t\t\r\n\t\tSystem.out.println(\"enter the start number\");\r\n\t\tstart = scan.nextInt();\r\n\t\t\r\n\t\tSystem.out.println(\"enter the end number\");\r\n\t\tend = scan.nextInt();\r\nfor(int i=start;i<=end;i++)\r\n\t{\r\n\t\tfor(int j=1;j<i;j++)\r\n\t\t{\r\n\t\tsum = sum+j;\r\n\t\t}\r\n\t\t\r\n\t}\r\n\tif (sum==start)\r\n\t\r\n\t\tSystem.out.println(sum);\r\n\t\r\n\t\r\n}",
"public void setEnd(int end) {\n\t\tthis.end = end;\n\t}",
"public double getEnd() {\n return end;\n }",
"public int getEnd() {\r\n\t\treturn end;\r\n\t}",
"public void setStart(int start) {\n this.start=start;\n }",
"public void setStart(long start) { this.start = start; }",
"public String getEnd() {\n return end;\n }",
"public GeoPoint getEnd(){\n return end;\n }",
"public int getEnd() {\n\t\treturn end;\n\t}",
"public int start() {\n return start;\n }",
"public static void main(String[] args) {\n\t\ttry {\r\n\t\t\t//int start = Integer.parseInt(args[0]);//larger number\r\n\t\t\t//int end = Integer.parseInt(args[1]);\r\n\t\t\tint start=20,end=10;\r\n\t\t\t\tfor(int j=start;j>=end;j--) {\r\n\t\t\t\t\tSystem.out.println(j+\" \");\r\n\t\t\t\t}\r\n\t\t\t\tSystem.out.println();\r\n\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tSystem.out.println(\"Error\");\r\n\t\t}\r\n\t}",
"@Override\n public String toString() {\n StringBuilder builder = new StringBuilder();\n builder.append(super.toString());\n builder.append(\",end=\" + end.toString());\n\n return builder.toString();\n }",
"int getRange();",
"public Point end() {\r\n return this.end;\r\n }",
"public int getStart() {\n return start;\n }",
"public String get_start() {\n\t\treturn start;\n\t}",
"public int getStart() {\r\n\t\treturn start;\r\n\t}",
"public String getStart() {\n return start;\n }",
"public long size() {\n\treturn end - start + 1;\n }",
"@Override\r\n\tpublic String getActivity_range() {\n\t\treturn super.getActivity_range();\r\n\t}",
"public int getStart() {\n\t\treturn start;\n\t}",
"int getEndSegment();",
"public Integer oneToThis(int start, int ending){\n\t\tSystem.out.println(\"Print 1-255\");\n\t\twhile(start <= ending){\n\t\t\tSystem.out.println(start);\n\t\t\tstart++;\n\t\t}\n\t\treturn 0;\n\t}",
"@Override\n\tpublic String toString(){\n\t\treturn \"START=\"+startDate+\", END=\"+endDate+\",\"+label+\",\"+notes+\",\"+locationAddress+\",\"+startPlaceAddress+\",\"+actStatus.name();\n\t}",
"private void setBeginAndEnd() {\n for (int i=1;i<keyframes.size();i++){\n if (curTime <= ((PointInTime)keyframes.get(i)).time){\n beginPointTime=(PointInTime)keyframes.get(i-1);\n endPointTime=(PointInTime)keyframes.get(i);\n return;\n }\n }\n beginPointTime=(PointInTime)keyframes.get(0);\n if (keyframes.size()==1)\n endPointTime=beginPointTime;\n else\n endPointTime=(PointInTime)keyframes.get(1);\n curTime=((PointInTime)keyframes.get(0)).time;\n }",
"public int getEnd() {\n return this.end;\n }",
"public double getStart();",
"public int getStart() {\n return this.start;\n }",
"@Override\r\n\tpublic String toString()\r\n\t{\r\n\t\treturn this.getIndentation() + \"(in-subrange \" + this.getPosition1().getCoordX() + \", \" + this.getPosition1().getCoordY() + \", \"\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t + this.getPosition2().getCoordX() + \", \" + this.getPosition2().getCoordY() + \")\";\r\n\t}",
"public String findFromToEnd(int end) {\n StringBuilder sb = new StringBuilder() ;\n ArrayList paths = new ArrayList() ;\n while (end != start) {\n\n paths.add(\"From \" + pred[end] + \" go to \" + end + \"\\n\") ;\n end = pred[end] ;\n\n }\n int count = paths.size() ;\n while (count > 0) {\n sb.append(paths.get(count-1)) ;\n count-- ;\n }\n return sb.toString() ;\n\n }",
"public double getStart() {\n return start;\n }",
"public void setStart(int start) {\r\n this.start = start;\r\n }",
"public int getEndIndex() {\n return start + length - 1;\n }",
"Instant getEnd();",
"public M csseStartEnd(Object end){this.put(\"csseStartEnd\", end);return this;}",
"public Point start() {\r\n return this.start;\r\n }",
"public Vector2 getEndLoc( ) { return endLoc; }",
"public int end() {\n return end;\n }",
"@Override\n public String toString() {\n if (timeEnd == null) {\n stop();\n }\n return task + \" in \" + (timeEnd - timeStart) + \"ms\";\n }",
"public String generateOperationalProfile(String start, String end)\r\n\t{\r\n\t return start;\r\n\t}",
"private String select(int start, int end) {\n this.selection = null;\n\n if (start >= end) {\n //return sb.toString();\n return printList();\n }\n if (start < 0 || start > sb.length()) {\n //return sb.toString();\n return printList();\n }\n this.selection = new Selection(start, Math.min(end, sb.length()));\n\n //return sb.toString();\n return printList();\n }",
"public int getResultLength() { return i_end; }",
"public long getStart() {\n return start;\n }",
"public int getBegin() {\n\t\treturn begin;\n\t}",
"protected void end() {\n \tclimber.ascend(0, 0);\n }",
"@Override\n\t\tpublic String toString() {\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tif (existStart)\n\t\t\t\tsb.append(getAbsStart());\n\t\t\tsb.append('-');\n\t\t\tif (existEnd)\n\t\t\t\tsb.append(getAbsEnd());\n\t\t\treturn sb.toString();\n\t\t}",
"public int getEndx(){\n\t\treturn endx;\n\t}",
"@Override\r\n public String toString() {\r\n return \"Range [\" + \"min=\" + min + \", max=\" + max + \"]\";\r\n }",
"public synchronized boolean getEnd(){\n\treturn end;\n }",
"String getBegin();",
"public Point getStart(){\n\t\treturn bigstart;\n\t}",
"public String getStart() {\r\n\t\treturn this.start;\r\n\t}",
"boolean isEndInclusive();",
"String toStringEndValues();",
"public abstract int getEndIndex();",
"public void setStart(int start) {\n\t\tthis.start = start;\n\t}",
"public abstract int end(int i);",
"public Node getStart(){\n return start;\n }",
"public void setEnd(int end)\n {\n if(end >= 0)\n {\n this.end = end;\n }\n else\n {\n System.out.println(\"Cannot be negative.\");\n }\n }",
"public void startPosition();",
"public Position getStart() {\r\n return start;\r\n }",
"@Override\n\tprotected void end() {\n\t\t//System.out.println(this.getClass().getSimpleName() + \" end\");\n\t}",
"public int query(int start, int end) {\n return prefixSum[end][1] - prefixSum[start][0];\n }",
"public HBox answerIntervalLine(String begin, String end)\n {\n HBox answerIntervalLine = new HBox(5);\n answerIntervalLine.getChildren().addAll(new Label(\"Esteve entre \"), new Text(begin), new Label(\" e \"), new Text(end));\n answerIntervalLine.setAlignment(Pos.BASELINE_LEFT);\n\n return answerIntervalLine; \n }",
"public int getStart() {\n\t\t\treturn start;\n\t\t}",
"public Point getStart() {\n\t\treturn _start;\n\t}",
"double getStaEnd();",
"public String getStart(){\n\t\treturn mStart;\n\t}",
"MinmaxEntity getEnd();",
"Integer getPortRangeEnd();",
"void setEndRange( String endRange );",
"void print(){\n\t\tSystem.out.println(\"[\"+x+\",\"+y+\"]\");\n\t}",
"@Override\r\n\t\t\t\t\tpublic void end(int sx, int sy) {\n\t\t\t\t\t}"
] |
[
"0.68431437",
"0.6834988",
"0.6704215",
"0.6688512",
"0.66193545",
"0.65986145",
"0.6593829",
"0.6532633",
"0.64711237",
"0.6453838",
"0.6405497",
"0.6394845",
"0.6367081",
"0.6346786",
"0.6322935",
"0.62452376",
"0.6216573",
"0.620299",
"0.6162832",
"0.61476934",
"0.6144553",
"0.61396784",
"0.6137653",
"0.6053179",
"0.60518265",
"0.6048781",
"0.60356826",
"0.60228914",
"0.5997085",
"0.59970754",
"0.599699",
"0.5993653",
"0.5991117",
"0.5986015",
"0.598432",
"0.59663856",
"0.59597754",
"0.594267",
"0.5935027",
"0.59227586",
"0.59145766",
"0.5908811",
"0.59078825",
"0.5894504",
"0.58927757",
"0.58778214",
"0.5860174",
"0.5841605",
"0.5829136",
"0.5817528",
"0.58127207",
"0.58054554",
"0.5798044",
"0.5796213",
"0.5782048",
"0.5777411",
"0.5771341",
"0.57638097",
"0.5730723",
"0.57204974",
"0.571007",
"0.5694553",
"0.5692886",
"0.56885886",
"0.56832564",
"0.568008",
"0.5676983",
"0.5671927",
"0.56698096",
"0.56671417",
"0.5665579",
"0.5656094",
"0.56435853",
"0.56415534",
"0.5638722",
"0.56271493",
"0.56268686",
"0.56190467",
"0.56166506",
"0.5608706",
"0.5604765",
"0.5601681",
"0.5584672",
"0.5583488",
"0.55773",
"0.5567916",
"0.555774",
"0.55523974",
"0.55465823",
"0.5539453",
"0.5508366",
"0.55006945",
"0.54882383",
"0.54851466",
"0.54843277",
"0.54796195",
"0.54778093",
"0.5477512",
"0.54736996",
"0.5471357",
"0.5470705"
] |
0.0
|
-1
|
Creates new form CGPA
|
public CGPA() {
initComponents();
this.setTitle("CGPA/SGPA");
cgpa_tf.requestFocus();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"FORM createFORM();",
"public CreateAccout() {\n initComponents();\n showCT();\n ProcessCtr(true);\n }",
"public void onCreate() {\r\n Session session = sessionService.getCurrentSession();\r\n Map<String, Region> items = ControlUtility.createForm(Pc.class);\r\n\r\n ControlUtility.fillComboBox((ComboBox<Kind>) items.get(\"Kind\"), session.getCampaign().getCampaignVariant().getKinds());\r\n ControlUtility.fillComboBox((ComboBox<Race>) items.get(\"Race\"), session.getCampaign().getCampaignVariant().getRaces());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Ability>) items.get(\"SavingThrows\"), Arrays.asList(Ability.values()));\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Proficiency>) items.get(\"Proficiencies\"), session.getCampaign().getCampaignVariant().getProficiencies());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Feature>) items.get(\"Features\"), session.getCampaign().getCampaignVariant().getFeatures());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Trait>) items.get(\"Traits\"), session.getCampaign().getCampaignVariant().getTraits());\r\n ControlUtility.fillCheckComboBox((CheckComboBox<Equipment>) items.get(\"Equipment\"), session.getCampaign().getCampaignVariant().getEquipments());\r\n\r\n Campaign campaign = session.getCampaign();\r\n\r\n Dialog<String> dialog = ControlUtility.createDialog(\"Create Playable Character\", items);\r\n dialog.show();\r\n\r\n dialog.setResultConverter(buttonType -> {\r\n if (buttonType != null) {\r\n Pc pc = null;\r\n try {\r\n pc = ControlUtility.controlsToValues(Pc.class, items);\r\n } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException | InstantiationException | ClassNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n if (pc != null) {\r\n try {\r\n characterService.createPlayerCharacter(pc);\r\n } catch (SessionAlreadyExists | IndexAlreadyExistsException sessionAlreadyExists) {\r\n sessionAlreadyExists.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n Player player = playerManagementService.getRegisteredPlayer();\r\n campaign.addPlayer(player);\r\n campaign.addCharacter(pc);\r\n if (campaignListingService.campaignExists(campaign.getId())) {\r\n manipulationService.updateCampaign(campaign);\r\n } else {\r\n manipulationService.createCampaign(campaign);\r\n }\r\n } catch (MultiplePlayersException | EntityNotFoundException | SessionAlreadyExists | IndexAlreadyExistsException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n playerManagementService.addOrUpdatePcForRegisteredPlayer(pc);\r\n } catch (MultiplePlayersException | EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n try {\r\n sessionService.updateParticipant(playerManagementService.getRegisteredPlayer().getId(), pc.getId());\r\n sessionService.updateCampaign(campaign);\r\n } catch (EntityNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n render();\r\n return pc.toString();\r\n }\r\n }\r\n return null;\r\n });\r\n }",
"Compleja createCompleja();",
"Compuesta createCompuesta();",
"public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }",
"public void createAd(/*Should be a form*/){\n Ad ad = new Ad();\n User owner = this.user;\n Vehicle vehicle = this.vehicle;\n String \n// //ADICIONAR\n ad.setOwner();\n ad.setVehicle();\n ad.setDescription();\n ad.setPics();\n ad.setMain_pic();\n }",
"public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }",
"public CadastroProdutoNew() {\n initComponents();\n }",
"@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }",
"public creacionempresa() {\n initComponents();\n mostrardatos();\n }",
"public static AssessmentCreationForm openFillCreationForm(Assessment assm) {\n openCreationSearchForm(Roles.STAFF, WingsTopMenu.WingsStaffMenuItem.P_ASSESSMENTS, Popup.Create);\n\n Logger.getInstance().info(\"Fill out the required fields with valid data\");\n AssessmentCreationForm creationForm = new AssessmentCreationForm();\n creationForm.fillAssessmentInformation(new User(Roles.STAFF), assm);\n\n return new AssessmentCreationForm();\n }",
"private void btn_cadActionPerformed(java.awt.event.ActionEvent evt) {\n \n CDs_dao c = new CDs_dao();\n TabelaCDsBean p = new TabelaCDsBean();\n \n TabelaGeneroBean ge = (TabelaGeneroBean) g_box.getSelectedItem();\n TabelaArtistaBean au = (TabelaArtistaBean) g_box2.getSelectedItem();\n\n //p.setId(Integer.parseInt(id_txt.getText()));\n p.setTitulo(nm_txt.getText());\n p.setPreco(Double.parseDouble(vr_txt.getText()));\n p.setGenero(ge);\n p.setArtista(au);\n c.create(p);\n\n nm_txt.setText(\"\");\n //isqn_txt.setText(\"\");\n vr_txt.setText(\"\");\n cd_txt.setText(\"\");\n g_box.setSelectedIndex(0);\n g_box2.setSelectedIndex(0);\n \n }",
"@Override\n\tpublic void createCpteEpargne(CompteEpargne cpt) {\n\t\t\n\t}",
"Paper addNewPaper(PaperForm form, Long courseId)throws Exception;",
"@Override\n\tpublic void create(CreateCoinForm form) throws Exception {\n\t}",
"private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}",
"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}",
"@Command\n\tpublic void nuevoAnalista(){\n\t\tMap<String, Object> parametros = new HashMap<String, Object>();\n\n\t\t//parametros.put(\"recordMode\", \"NEW\");\n\t\tllamarFormulario(\"formularioAnalistas.zul\", null);\n\t}",
"@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}",
"public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}",
"public Project_Create() {\n initComponents();\n }",
"public CreateAccount() {\n initComponents();\n selectionall();\n }",
"protected void creaPagine() {\n Pagina pag;\n Pannello pan;\n\n try { // prova ad eseguire il codice\n\n /* crea la pagina e aggiunge campi e pannelli */\n pag = this.addPagina(\"generale\");\n\n pan = PannelloFactory.orizzontale(this);\n pan.add(Cam.data);\n pan.add(Cam.importo.get());\n pan.add(Cam.note.get());\n pag.add(pan);\n\n } catch (Exception unErrore) { // intercetta l'errore\n Errore.crea(unErrore);\n }// fine del blocco try-catch\n\n }",
"void crearCampania(GestionPrecioDTO campania);",
"private void azzeraInsertForm() {\n\t\tviewInserimento.getCmbbxTipologia().setSelectedIndex(-1);\n\t\tviewInserimento.getTxtFieldDataI().setText(\"\");\n\t\tviewInserimento.getTxtFieldValore().setText(\"\");\n\t\tviewInserimento.getTxtFieldDataI().setBackground(Color.white);\n\t\tviewInserimento.getTxtFieldValore().setBackground(Color.white);\n\t}",
"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}",
"public frm_tutor_subida_prueba() {\n }",
"@Override\n\tpublic void createCpteCourant(CompteCourant cpt) {\n\t\t\n\t}",
"@_esCocinero\n public Result crearPaso() {\n Form<Paso> frm = frmFactory.form(Paso.class).bindFromRequest();\n\n // Comprobación de errores\n if (frm.hasErrors()) {\n return status(409, frm.errorsAsJson());\n }\n\n Paso nuevoPaso = frm.get();\n\n // Comprobar autor\n String key = request().getQueryString(\"apikey\");\n if (!SeguridadFunctions.esAutorReceta(nuevoPaso.p_receta.getId(), key))\n return Results.badRequest();\n\n // Checkeamos y guardamos\n if (nuevoPaso.checkAndCreate()) {\n Cachefunctions.vaciarCacheListas(\"pasos\", Paso.numPasos(), cache);\n Cachefunctions.vaciarCacheListas(\"recetas\", Receta.numRecetas(), cache);\n return Results.created();\n } else {\n return Results.badRequest();\n }\n\n }",
"public FormInserir() {\n initComponents();\n }",
"public void onClick(ClickEvent event) {\n\t \t\r\n\t \tdynFormCT1.addChild(canvasCT);\r\n\t \tSC.say(\"Clicou\");\r\n\t }",
"public Create_Course() {\n initComponents();\n comboBoxLec();\n comboBoxDep();\n }",
"public void createCompte(Compte compte);",
"@Override\r\n protected void createDbContentCreateEdit() {\n DbContentCreateEdit dbContentCreateEdit = new DbContentCreateEdit();\r\n dbContentCreateEdit.init(null);\r\n form.getModelObject().setDbContentCreateEdit(dbContentCreateEdit);\r\n dbContentCreateEdit.setParent(form.getModelObject());\r\n ruServiceHelper.updateDbEntity(form.getModelObject()); \r\n }",
"public Crear() {\n initComponents();\n \n \n this.getContentPane().setBackground(Color.WHITE);\n txtaPR.setEnabled(false); \n txtFNocmbre.requestFocus();\n \n \n }",
"public void create(PessoasEspacosDeCafe pec) {\n\n Connection con = ConnectionFactory.getConnection();\n PreparedStatement stmt = null;\n\n try {\n stmt = con.prepareStatement(\"INSERT INTO PessoasEspacosDeCafe (pessoasIdPessoas, espacosDeCafeIdEspacosDeCafe)VALUES(?, ?)\");\n\n stmt.setInt(1, pec.getPessoasIdPessoas());\n stmt.setInt(2, pec.getEspacosDeCafeIdEspacosDeCafe());\n\n stmt.executeUpdate();\n\n JOptionPane.showMessageDialog(null, \"Salvo com Sucesso!\");\n } catch (SQLException ex) {\n JOptionPane.showMessageDialog(null, \"Erro ao Salvar: \" + ex);\n } finally {\n ConnectionFactory.closeConnection(con, stmt);\n }\n }",
"private void butNew_Click(Object sender, System.EventArgs e) throws Exception {\n FormProcCodeNew FormPCN = new FormProcCodeNew();\n FormPCN.ShowDialog();\n if (FormPCN.Changed)\n {\n changed = true;\n ProcedureCodes.refreshCache();\n fillGrid();\n }\n \n }",
"public void clickCreate() {\n\t\tbtnCreate.click();\n\t}",
"public CrearGrupos() throws SQLException {\n initComponents();\n setTitle(\"Crear Grupos\");\n setSize(643, 450);\n setLocationRelativeTo(this);\n cargarModelo();\n }",
"public static void create(Formulario form){\n daoFormulario.create(form);\n }",
"public void onClick(ClickEvent event) {\n\t \t\r\n\t \tdynFormCT1.addChild(canvas4);\r\n\t \tSC.say(\"Clicou\");\r\n\t \t\r\n\t }",
"public ViewCreatePagamento() {\n initComponents();\n clientesDAO cDAO = DaoFactory.createClientesDao(); \n matriculaDAO mDAO = DaoFactory.createMatriculaDao();\n \n cmbIDClientes.addItem(null);\n cDAO.findAll().forEach((p) -> {\n cmbIDClientes.addItem(p.getNome());\n });\n \n \n txtDataAtual.setText(DateFormat.getDateInstance().format(new Date()));\n }",
"public ProductCreate() {\n initComponents();\n }",
"public String crea() {\n c.setId(0);\n clienteDAO.crea(c); \n //Post-Redirect-Get\n return \"visualiza?faces-redirect=true&id=\"+c.getId();\n }",
"public CrearPedidos() {\n initComponents();\n }",
"public FGlavna() {\n initComponents();\n pripremiFormu();\n }",
"public void createButtonClicked() {\n clearInputFieldStyle();\n setAllFieldsAndSliderDisabled(false);\n setButtonsDisabled(false, true, true);\n setDefaultValues();\n Storage.setSelectedRaceCar(null);\n }",
"@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}",
"public void CrearNew(ActionEvent e) {\n List<Pensum> R = ejbFacade.existePensumID(super.getSelected().getIdpensum());\n if(R.isEmpty()){\n super.saveNew(e);\n }else{\n new Auxiliares().setMsj(3,\"PENSUM ID YA EXISTE\");\n }\n }",
"public InvoiceCreate() {\n initComponents();\n }",
"public void crearDisco( ){\r\n boolean parameter = true;\r\n String artista = panelDatos.darArtista( );\r\n String titulo = panelDatos.darTitulo( );\r\n String genero = panelDatos.darGenero( );\r\n String imagen = panelDatos.darImagen( );\r\n\r\n if( ( artista.equals( \"\" ) || titulo.equals( \"\" ) ) || ( genero.equals( \"\" ) || imagen.equals( \"\" ) ) ) {\r\n parameter = false;\r\n JOptionPane.showMessageDialog( this, \"Todos los campos deben ser llenados para crear el disco\" );\r\n }\r\n if( parameter){\r\n boolean ok = principal.crearDisco( titulo, artista, genero, imagen );\r\n if( ok )\r\n dispose( );\r\n }\r\n }",
"public abstract void creationGrille();",
"public ProcedureFormPanel() {\n initComponents();\n }",
"public Project_Create_Process() {\n initComponents();\n }",
"public DisciplinaForm() {\n initComponents();\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 CrearProductos() {\n initComponents();\n }",
"@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }",
"private void criaCabecalho() {\r\n\t\tJLabel cabecalho = new JLabel(\"Cadastro de Homem\");\r\n\t\tcabecalho.setHorizontalAlignment(SwingConstants.CENTER);\r\n\t\tcabecalho.setFont(new Font(\"Arial\", Font.PLAIN, 16));\r\n\t\tcabecalho.setForeground(Color.BLACK);\r\n\t\tcabecalho.setBounds(111, 41, 241, 33);\r\n\t\tpainelPrincipal.add(cabecalho);\r\n\t}",
"public void createActionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\n\t}",
"public FrmCadastro() {\n initComponents();\n \n lblNumeroConta.setText(\"Número da conta: \" + Agencia.getProximaConta());\n \n List<Integer> agencias = Principal.banco.retornarNumeroAgencias();\n for(int i : agencias){\n cmbAgencias.addItem(\"Agência \" + i);\n }\n }",
"@OnClick (R.id.create_course_btn)\n public void createCourse()\n {\n\n CourseData courseData = new CourseData();\n courseData.CreateCourse( getView() ,UserData.user.getId() ,courseName.getText().toString() , placeName.getText().toString() , instructor.getText().toString() , Integer.parseInt(price.getText().toString()), date.getText().toString() , descreption.getText().toString() ,location.getText().toString() , subField.getSelectedItem().toString() , field.getSelectedItem().toString());\n }",
"public void crearPersona(){\r\n persona = new Persona();\r\n persona.setNombre(\"Jose\");\r\n persona.setCedula(12345678);\r\n }",
"private void gravarPromocao() {\n\t\tString nome = textFieldNome.getText();\n\t\tString descricao = textFieldDescricao.getText();\n\t\tboolean ativo = true;\n\n\t\tPromocao promocao = null;\n\n\t\tif (modoEditar) {\n\t\t\tpromocao = promocaoAntiga;\n\n\t\t\tpromocao.setNome(nome);\n\t\t\tpromocao.setDescricao(descricao);\t\t\t\n\t\t\tpromocao.setAtiva(ativo);\n\n\t\t} else {\n\t\t\tpromocao = new Promocao( nome, descricao, ativo);\n\t\t}\n\n\t\ttry {\n\t\t\tif (modoEditar) {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().editarPromocao(promocao);\n\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção editada com sucesso!\", \"Promoção Editada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t} else {\n\t\t\t\tGestorDeDAO.getGestorDeDAO().criarPromocao(promocao);\n\t\t\t\tpromocaoPesquisaApp.refreshPromocaoTable();\n\t\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\t\"Promoção criada com sucesso!\", \"Promoção Criada\",\n\t\t\t\t\t\tJOptionPane.INFORMATION_MESSAGE);\n\t\t\t}\n\n\t\t\tsetVisible(false);\n\t\t\tdispose();\n\n\n\t\t} catch (Exception exc) {\n\t\t\tJOptionPane.showMessageDialog(promocaoPesquisaApp,\n\t\t\t\t\t\"Error a criar a Promoção \" + exc.getMessage(), \"Error\",\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t}\n\n\t}",
"public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}",
"public PDMRelationshipForm() {\r\n initComponents();\r\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}",
"public void createAgendamento() {\n\n if (tbagendamento.getTmdataagendamento().after(TimeControl.getDateIni())) {\n if (agendamentoLogic.createTbagendamento(tbagendamento)) {\n AbstractFacesContextUtils.redirectPage(PagesUrl.URL_AGENDAMENTO_LIST);\n AbstractFacesContextUtils.addMessageInfo(\"Agendamento cadastrado com sucesso.\");\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"Falhar ao realizado cadastro do agendamento.\");\n }\n } else {\n AbstractFacesContextUtils.addMessageWarn(\"verifique se a data de agendamento esta correta.\");\n }\n }",
"public frmPessoa() {\n initComponents();\n }",
"public frmAfiliado() {\n initComponents();\n \n }",
"@Override\n\tpublic Oglas createNewOglas(NewOglasForm oglasForm) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\t\n\t\tOglas oglas = new Oglas();\n\t\tSystem.out.println(oglas.getId());\n\t\toglas.setNaziv(oglasForm.getNaziv());\n\t\toglas.setOpis(oglasForm.getOpis());\n\t\ttry {\n\t\t\toglas.setDatum(formatter.parse(oglasForm.getDatum()));\n\t\t\tSystem.out.println(oglas.getDatum());\n System.out.println(formatter.format(oglas.getDatum()));\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn repository.save(oglas);\n\t}",
"public void onClick(ClickEvent event) {\n\t \t\r\n\t \tdynFormCT1.addChild(canvas3);\r\n\t \tSC.say(\"Clicou\");\r\n\t }",
"public JDialogParticleAnalysisNew() { }",
"private PersonCtr createCustomer()\n {\n\n // String name, String addres, int phone, int customerID\n PersonCtr c = new PersonCtr();\n String name = jTextField3.getText();\n String address = jTextPane1.getText();\n int phone = Integer.parseInt(jTextField2.getText());\n int customerID = phone;\n Customer cu = new Customer();\n cu = c.addCustomer(name, address, phone, customerID);\n JOptionPane.showMessageDialog(null, cu.getName() + \", \" + cu.getAddress()\n + \", tlf.nr.: \" + cu.getPhone() + \" er oprettet med ID nummer: \" + cu.getCustomerID()\n , \"Kunde opretttet\", JOptionPane.INFORMATION_MESSAGE);\n return c;\n\n\n }",
"public FormularioP() {\n initComponents();\n }",
"@RequestMapping(value=\"/formpaciente\")\r\n\tpublic String crearPaciente(Map<String, Object> model) {\t\t\r\n\t\t\r\n\t\tPaciente paciente = new Paciente();\r\n\t\tmodel.put(\"paciente\", paciente);\r\n\t\tmodel.put(\"obrasociales\",obraSocialService.findAll());\r\n\t\t//model.put(\"obrasPlanesForm\", new ObrasPlanesForm());\r\n\t\t//model.put(\"planes\", planService.findAll());\r\n\t\tmodel.put(\"titulo\", \"Formulario de Alta de Paciente\");\r\n\t\t\r\n\t\treturn \"formpaciente\";\r\n\t}",
"public FormPpal() {\n initComponents();\n setIconImage(Toolkit.getDefaultToolkit().getImage(this.getClass().getResource(\"Imagenes/icon.png\")));\n setLocationRelativeTo(null);\n setTitle(\"Men\\372 principal\");\n setResizable(false);\n formBackUp = null;\n formBuscador = null;\n fb1 = null;\n fb2 = null;\n formListado = null;\n conn = new Conn();\n pacientesCumpleanos = new LinkedList();\n pacientesControl = new LinkedList();\n cargarCumpleanos();\n cargarControlesHoy();\n }",
"public static void newUAV(){\n GridPane gp = new GridPane();\n Text title = new Text(\"Create a UAV:\\nUAV Settings\");\n title.setTextAlignment(TextAlignment.CENTER);\n title.setId(\"title\"); // Set CSS style for the title\n GridPane.setColumnSpan(title,3);\n GridPane.setHalignment(title, HPos.CENTER);\n\n gp.setId(\"gridpane\"); // Set CSS style ID for the gridpane\n gp.getStyleClass().add(\"grid\");\n\n // Create the labels for the menu\n Label nameLabel = new Label(\"Name:\");\n Label weightLabel = new Label(\"Weight (g):\");\n Label turnRadiusLabel = new Label(\"Turn Radius (m):\");\n Label maxInclineLabel = new Label(\"Max incline angle (deg):\");\n Label batteryLabel = new Label(\"Battery Type:\");\n Label batteryCapacityLabel = new Label(\"Battery Capacity (mAh):\");\n\n name.setPromptText(\"Name of craft\");\n weight.setPromptText(\"Weight of craft\");\n turnRadius.setPromptText(\"Min turn radius of craft\");\n maxIncline.setPromptText(\"Max incline/decline angle\");\n battery.setPromptText(\"Battery used in craft (Lipo, NiMH, Li-ion...)\");\n batteryCapacity.setPromptText(\"Battery capacity in mAh\");\n\n // Create the buttons for the menu\n Button save = new Button(\"Save\");\n Button cancel = new Button(\"Cancel\");\n Button clear = new Button(\"Clear\");\n\n // Add all elements to the menu gridpane\n gp.add(title,0,0);\n\n // Add the components to the menu gridpane\n gp.add(nameLabel,0,1);\n gp.add(weightLabel,0,2);\n gp.add(turnRadiusLabel,0,3);\n gp.add(maxInclineLabel,0,4);\n gp.add(batteryLabel,0,5);\n gp.add(batteryCapacityLabel,0,6);\n\n gp.add(name,1,1);\n gp.add(weight,1,2);\n gp.add(turnRadius,1,3);\n gp.add(maxIncline,1,4);\n gp.add(battery,1,5);\n gp.add(batteryCapacity,1,6);\n\n // Add the buttons to the menu\n gp.add(save,0,7);\n gp.add(cancel,2,7);\n gp.add(clear,1,7);\n\n gp.setHgap(10);\n gp.setVgap(20);\n gp.setAlignment(Pos.CENTER);\n\n // If the save button is pressed\n save.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n // If a name has not been set\n if(name.getText().isEmpty()){\n System.out.println(\"Missing name for UAV\");\n }else {\n File file = new File(\"src/uavs/\"+name.getText()+\".uav\");\n if(file.exists()){\n dialogMessage.setText(\"The filename \"+ name.getText() +\n \".uav already exists in \"+path+\".\\n Would you like to overwrite?\");\n dialog.show();\n }else {\n writeUAV(); // Write the UAV settings\n createStage.close();\n }\n }\n }\n });\n\n // Close the menu\n cancel.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n createStage.close();\n }\n });\n\n // Clear all text fields\n clear.setOnMouseClicked(new EventHandler<MouseEvent>() {\n @Override\n public void handle(MouseEvent event) {\n name.clear();\n weight.clear();\n turnRadius.clear();\n maxIncline.clear();\n battery.clear();\n batteryCapacity.clear();\n }\n });\n\n createScene = new Scene(gp,500,700);\n createScene.setUserAgentStylesheet(\"style/menus.css\"); // Set the style of the menu\n createStage.setScene(createScene);\n createStage.show();\n }",
"@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 }",
"public Pantalla_Registro_Platos() {\n initComponents();\n }",
"public New_appointment() {\n initComponents();\n }",
"public String create() {\n\n if (log.isDebugEnabled()) {\n log.debug(\"create()\");\n }\n FacesContext context = FacesContext.getCurrentInstance();\n StringBuffer sb = registration(context);\n sb.append(\"?action=Create\");\n forward(context, sb.toString());\n return (null);\n\n }",
"public FormCadastroAutomovel() {\n initComponents();\n }",
"public NewProjectDialog(String pt) {\n\t\t\t\n\t\t\tsuper(frame, \"Add new project\");\n\t\t\tresetFields();\n\t\t\tpType = pt;\n\t\t\t\n\t\t\tfinal JDialog npd = this;\n\t\t\t\n\t\t\tpSDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpDeadline.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpEndDate.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpBudget.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpTotalCost.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\tpCompletion.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\t\t\n\t\t\tint x = frame.getLocation().x;\n\t\t\tint y = frame.getLocation().y;\n\t\t\t\n\t\t\tint pWidth = frame.getSize().width;\n\t\t\tint pHeight = frame.getSize().height;\n\t\t\t\n\t\t\tgetContentPane().setLayout(new BorderLayout());\n\t\t\t\n\t\t\tfinal JPanel fieldPanel = new JPanel();\n\t\t\t\n\t\t\tpCode.setText(portfolio.getNewCode());\n\t\t\tpCode.setEditable(false);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(7,3));\n\t\t\t\tSystem.out.println(\"ongoing\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,230));\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.setLayout(new GridLayout(6,3));\n\t\t\t\tSystem.out.println(\"finished\");\n\t\t\t\tthis.setPreferredSize(new Dimension(600,200));\n\t\t\t}\n\t\t\tfieldPanel.add(new JLabel(\"Project Code :\"));\n\t\t\tfieldPanel.add(pCode);\n\t\t\tfieldPanel.add(msgCode);\t\t\n\t\t\tfieldPanel.add(new JLabel(\"Project Name :\"));\n\t\t\tfieldPanel.add(pName);\n\t\t\tfieldPanel.add(msgName);\n\t\t\tfieldPanel.add(new JLabel(\"Client :\"));\n\t\t\tfieldPanel.add(pClient);\n\t\t\tfieldPanel.add(msgClient);\n\t\t\tfieldPanel.add(new JLabel(\"Start date: \"));\n\t\t\tfieldPanel.add(pSDate);\n\t\t\tfieldPanel.add(msgSDate);\n\t\t\tmsgSDate.setText(DATE_FORMAT);\n\t\t\t\n\t\t\tif(pType.equals(\"o\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"Deadline :\"));\n\t\t\t\tfieldPanel.add(pDeadline);\n\t\t\t\tfieldPanel.add(msgDeadline);\n\t\t\t\tmsgDeadline.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Budget :\"));\n\t\t\t\tfieldPanel.add(pBudget);\n\t\t\t\tfieldPanel.add(msgBudget);\n\t\t\t\tfieldPanel.add(new JLabel(\"Completion :\"));\n\t\t\t\tfieldPanel.add(pCompletion);\t\t\t\n\t\t\t\tfieldPanel.add(msgCompletion);\n\t\t\t\t\n\t\t\t} else if(pType.equals(\"f\")) {\n\t\t\t\tfieldPanel.add(new JLabel(\"End Date :\"));\n\t\t\t\tfieldPanel.add(pEndDate);\n\t\t\t\tfieldPanel.add(msgEndDate);\n\t\t\t\tmsgEndDate.setText(DATE_FORMAT);\n\t\t\t\tfieldPanel.add(new JLabel(\"Total Cost :\"));\n\t\t\t\tfieldPanel.add(pTotalCost);\n\t\t\t\tfieldPanel.add(msgTotalCost);\n\t\t\t}\n\t\t\t\n\t\t\tJPanel optionButtons = new JPanel();\n\t\t\toptionButtons.setLayout(new FlowLayout());\n\t\t\t\n\t\t\tJButton btnAdd = new JButton(\"Add\");\n\t\t\tbtnAdd.addActionListener(new ActionListener() {\n\n\t\t\t\t/**\n\t\t\t\t * Validates the information entered by the user and adds the project to the\n\t\t\t\t * Portfolio object if data is valid.\n\t\t\t\t */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\t\n\t\t\t\t\tif(validateForm()) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tProject prj = compileProject();\n\t\t\t\t\t\tportfolio.add(prj,config.isUpdateDB());\n\t\t\t\t\t\tif(prj instanceof OngoingProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) opTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\topTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t} else if (prj instanceof FinishedProject) {\n\t\t\t\t\t\t\tProjectTableModel tm = (ProjectTableModel) fpTable.getModel();\n\t\t\t\t\t\t\ttm.addRow(prj.toTable());\n\t\t\t\t\t\t\tfpTable.setModel(tm);\n\t\t\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\t\ttoggleSaved(false);\n\t\t\t\t\t\t\tsel.add(pCode.getText());\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnpd.dispose();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\toptionButtons.add(btnAdd);\n\t\t\t\n\t\t\tJButton btnClose = new JButton(\"Close\");\n\t\t\tbtnClose.addActionListener(new ActionListener() {\n\n\t\t\t\t/* Closes the NewProjectDialog window. */\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tnpd.dispose();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t});\n\t\t\t\n\t\t\toptionButtons.add(btnClose);\n\t\t\tgetContentPane().add(new JLabel(\"Enter the data for your new \" + getPType(pType) + \" project:\"), BorderLayout.PAGE_START);\n\t\t\tthis.add(fieldPanel, BorderLayout.CENTER);\n\t\t\tthis.add(optionButtons, BorderLayout.PAGE_END);\n\n\t\t\tthis.pack();\n\t\t\t\t\t\n\t\t\tint width = this.getSize().width;\n\t\t\tint height = this.getSize().height;\n\t\t\t\n\t\t\tthis.setLocation(new Point((x+pWidth/2-width/2),(y+pHeight/2-height/2)));\n\t\t\tthis.setVisible(true);\n\t\t}",
"public static Result postAddPaper() {\n Form<PaperFormData> formData = Form.form(PaperFormData.class).bindFromRequest();\n Paper info1 = new Paper(formData.get().title, formData.get().authors, formData.get().pages,\n formData.get().channel);\n info1.save();\n return redirect(routes.PaperController.listProject());\n }",
"public Casa() { \n \n /* Cuando se crea la casa, tambien se debe crear la puerta */\n \n laPuerta = new Puerta();\n \n /* se pone la letra F por que son de tipo float */\n laPuerta.setAncho(2.3F);\n laPuerta.setAlto(1.5F);\n \n }",
"public StavkaFaktureInsert() {\n initComponents();\n CBFakture();\n CBProizvod();\n }",
"public Form_soal() {\n initComponents();\n tampil_soal();\n }",
"public void crear() {\n con = new Conexion();\n con.setInsertar(\"insert into lenguajes_programacion (nombre, fecha_creacion, estado) values ('\"+this.getNombre()+\"', '\"+this.getFecha_creacion()+\"', 'activo')\");\n }",
"public Form getCreationForm() throws ProcessManagerException {\r\n try {\r\n Action creation = processModel.getCreateAction();\r\n return processModel.getPublicationForm(creation.getName(), currentRole,\r\n getLanguage());\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.ERR_NO_CREATION_FORM\", e);\r\n }\r\n }",
"public PnNewCustomer() {\n initComponents();\n }",
"private void crearComponentes(){\n\tjdpFondo.setSize(942,592);\n\t\n\tjtpcContenedor.setSize(230,592);\n\t\n\tjtpPanel.setTitle(\"Opciones\");\n\tjtpPanel2.setTitle(\"Volver\");\n \n jpnlPanelPrincilal.setBounds(240, 10 ,685, 540);\n \n }",
"public Giocatore(String nome, Casella c, Pedina p) {\r\n\t\tsetNome(nome);\r\n\t\tsetPedina(p);\r\n\t\tcasella = c;\r\n\t\tdado = new Dado();\r\n\t\t\r\n\t\tpunt_carta = punteggioIniziale;\r\n\t\tpunt_plastica = punteggioIniziale;\r\n\t\tpunt_vetro = punteggioIniziale;\r\n\t\tpunt_metallo = punteggioIniziale;\r\n\t\tpunt_indifferenziata = punteggioIniziale;\r\n\t\tpunt_organica = punteggioIniziale;\r\n\t}",
"public pInsertar() {\n initComponents();\n }",
"public ProposalSpecialReviewForm() {\r\n }",
"public AnadirCompra() {\n\t\tsetLayout(null);\n\t\t\n\t\tJPanel pCompra = new JPanel();\n\t\tpCompra.setBackground(SystemColor.text);\n\t\tpCompra.setBounds(0, 0, 772, 643);\n\t\tadd(pCompra);\n\t\tpCompra.setLayout(null);\n\t\t\n\t\tlblNewLabel = new JLabel(\"Compras\");\n\t\tlblNewLabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tlblNewLabel.setBounds(684, 13, 76, 16);\n\t\tpCompra.add(lblNewLabel);\n\t\t\n\t\tlblNewLabel_1 = new JLabel(\"Personal\");\n\t\tlblNewLabel_1.setBounds(142, 130, 56, 16);\n\t\tpCompra.add(lblNewLabel_1);\n\t\t\n\t\tcmbPersonal = new JComboBox();\n\t\tcmbPersonal.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tcargaPersonal();\n\t\t\t}\n\t\t});\n\t\tcmbPersonal.setBounds(291, 127, 409, 22);\n\t\tpCompra.add(cmbPersonal);\n\t\t\n\t\tlblFechaSolicitado = new JLabel(\"Fecha solicitado\");\n\t\tlblFechaSolicitado.setBounds(142, 184, 91, 16);\n\t\tpCompra.add(lblFechaSolicitado);\n\t\t\n\t\ttextField = new JTextField();\n\t\ttextField.setBounds(291, 181, 409, 22);\n\t\tpCompra.add(textField);\n\t\ttextField.setColumns(10);\n\t\t\n\t\tlblEstado = new JLabel(\"Estado\");\n\t\tlblEstado.setBounds(142, 231, 91, 16);\n\t\tpCompra.add(lblEstado);\n\t\t\n\t\ttextField_1 = new JTextField();\n\t\ttextField_1.setBounds(291, 228, 409, 22);\n\t\tpCompra.add(textField_1);\n\t\ttextField_1.setColumns(10);\n\t\t\n\t\tlblFechaEntrega = new JLabel(\"Fecha entrega\");\n\t\tlblFechaEntrega.setBounds(142, 276, 91, 16);\n\t\tpCompra.add(lblFechaEntrega);\n\t\t\n\t\tlblFechaRequerido = new JLabel(\"Fecha requerido\");\n\t\tlblFechaRequerido.setBounds(142, 318, 108, 16);\n\t\tpCompra.add(lblFechaRequerido);\n\t\t\n\t\ttextField_2 = new JTextField();\n\t\ttextField_2.setColumns(10);\n\t\ttextField_2.setBounds(291, 273, 409, 22);\n\t\tpCompra.add(textField_2);\n\t\t\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setColumns(10);\n\t\ttextField_3.setBounds(291, 315, 409, 22);\n\t\tpCompra.add(textField_3);\n\t\t\n\t\tlblFechaAnulado = new JLabel(\"Fecha anulado\");\n\t\tlblFechaAnulado.setBounds(142, 364, 91, 16);\n\t\tpCompra.add(lblFechaAnulado);\n\t\t\n\t\ttextField_4 = new JTextField();\n\t\ttextField_4.setColumns(10);\n\t\ttextField_4.setBounds(291, 361, 409, 22);\n\t\tpCompra.add(textField_4);\n\t\t\n\t\ttextField_5 = new JTextField();\n\t\ttextField_5.setColumns(10);\n\t\ttextField_5.setBounds(291, 405, 409, 22);\n\t\tpCompra.add(textField_5);\n\t\t\n\t\tlblValor = new JLabel(\"Valor\");\n\t\tlblValor.setBounds(142, 408, 91, 16);\n\t\tpCompra.add(lblValor);\n\t\t\n\t\tlabel = new JLabel(\"Productos\");\n\t\tlabel.setBounds(142, 453, 56, 16);\n\t\tpCompra.add(label);\n\t\t\n\t\tbtnAadirCompra = new JButton(\"A\\u00F1adir Compra\");\n\t\tbtnAadirCompra.setBackground(SystemColor.textHighlight);\n\t\tbtnAadirCompra.setBounds(216, 605, 388, 25);\n\t\tpCompra.add(btnAadirCompra);\n\t\t\n\t\tlist = new JList();\n\t\tlist.addListSelectionListener(new ListSelectionListener() {\n\t\t\tpublic void valueChanged(ListSelectionEvent arg0) {\n\t\t\t\tcargaProducto();\n\t\t\t}\n\t\t});\n\t\tlist.setBackground(SystemColor.controlHighlight);\n\t\tlist.setBounds(291, 452, 409, 84);\n\t\tpCompra.add(list);\n\t\tlist.setModel(jList);\n\t\t\n\t\tbutton = new JButton(\"< ATR\\u00C1S\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t//scrollPaneles.setViewportView(pgCompra);\n\t\t\t\thacerInvisible();\n\t\t\t}\n\t\t});\n\t\tbutton.setBackground(SystemColor.textHighlight);\n\t\tbutton.setBounds(12, 11, 106, 25);\n\t\tpCompra.add(button);\n\t\t\n\t\tscrollPaneles = new JScrollPane();\n\t\tscrollPaneles.setBounds(0, 0, 773, 643);\n\t\tadd(scrollPaneles);\n\n\t}",
"@RequestMapping(value = \"/report.create\", method = RequestMethod.GET)\n @ResponseBody public ModelAndView newreportForm(HttpSession session) throws Exception {\n ModelAndView mav = new ModelAndView();\n mav.setViewName(\"/sysAdmin/reports/details\");\n\n //Create a new blank provider.\n reports report = new reports();\n \n mav.addObject(\"btnValue\", \"Create\");\n mav.addObject(\"reportdetails\", report);\n\n return mav;\n }",
"protected void nuevo(){\n wp = new frmEspacioTrabajo();\n System.runFinalization();\n inicializar();\n }",
"public formPrincipal() {\n initComponents();\n }"
] |
[
"0.65705466",
"0.61499983",
"0.60706",
"0.604951",
"0.5968367",
"0.5957332",
"0.59008884",
"0.58909774",
"0.5874517",
"0.5830487",
"0.5787833",
"0.5765553",
"0.57601964",
"0.575486",
"0.57542676",
"0.570196",
"0.5665178",
"0.56321824",
"0.5615603",
"0.56064254",
"0.55866086",
"0.55773824",
"0.5557434",
"0.55529726",
"0.5537656",
"0.55339324",
"0.55249935",
"0.5517966",
"0.5512952",
"0.54983085",
"0.5484706",
"0.5482882",
"0.5469833",
"0.5461327",
"0.54598546",
"0.5457612",
"0.5456449",
"0.5455272",
"0.5450366",
"0.54443234",
"0.5438091",
"0.54247135",
"0.5416775",
"0.54136795",
"0.5410551",
"0.5395945",
"0.5394259",
"0.53922915",
"0.538837",
"0.53862774",
"0.5385509",
"0.5373847",
"0.5367376",
"0.5360026",
"0.5357174",
"0.5350552",
"0.53502995",
"0.5346336",
"0.534328",
"0.5340698",
"0.53383553",
"0.53382754",
"0.5334358",
"0.53318214",
"0.5319711",
"0.53169125",
"0.5310622",
"0.53065056",
"0.5303343",
"0.52985567",
"0.5288458",
"0.52821153",
"0.5279154",
"0.52767944",
"0.527625",
"0.5273449",
"0.526887",
"0.5266599",
"0.52639437",
"0.5263017",
"0.5255968",
"0.52436185",
"0.5236098",
"0.52350885",
"0.5229821",
"0.52275145",
"0.522712",
"0.52144575",
"0.52132446",
"0.5213128",
"0.5206947",
"0.52021384",
"0.5201978",
"0.52000684",
"0.5194605",
"0.51938635",
"0.5188763",
"0.5186136",
"0.5179725",
"0.5179421"
] |
0.6618055
|
0
|
TODO Autogenerated method stub
|
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
PrintWriter out = response.getWriter();
try {
Connection con = null;
String url = "jdbc:postgresql://localhost:5432/elec_management"; //PostgreSQL URL and followed by the database name
String username = "postgres"; //PostgreSQL username
String password = "123"; //PostgreSQL password
Class.forName("org.postgresql.Driver");
con = DriverManager.getConnection(url, username, password); //attempting to connect to PostgreSQL database
HttpSession session = request.getSession();
String club= (String) session.getAttribute("voteforclub");
String user_id = (String) session.getAttribute("user_id");
String cand_id = request.getParameter("voteto");
if(cand_id==null) {
out = response.getWriter();
out.println("<meta http-equiv = 'refresh' content='3; URL= showlist.jsp'>");
out.println("<p style = 'color: red;'> you have not selected anything !!!</p>");
}
String sql= "insert into votes values(?,?,?,?)";
PreparedStatement st = con.prepareStatement(sql);
st.setString(1, user_id);
st.setString(2, club);
st.setString(3, cand_id);
st.setString(4, club);
int i= st.executeUpdate();
if(i>0) {
String sql1 = "update candidate set vote_count = vote_count + 1 where s_id = ?";
PreparedStatement st1 = con.prepareStatement(sql1);
st1.setString(1, cand_id);
int i1 = st1.executeUpdate();
if(i1>0) {
out.println("<meta http-equiv = 'refresh' content='3; URL= dashboard.jsp'>");
out.println("<p><h3 style = 'color: green;'> your response has been saved successfully !!!</h3></p>");
}
}
}
catch(Exception e) {
e.printStackTrace();
}
}
|
{
"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
|
Called when our Activity is first created.
|
@Override
protected void onCreate(@Nullable Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.first_page);
final FloatingActionButton start_button = findViewById(R.id.start_button);
final FloatingActionButton participate_button = findViewById(R.id.participate_button);
final FloatingActionButton start_quiz_button = findViewById(R.id.start_quiz_button);
final FloatingActionButton participate_quiz_button = findViewById(R.id.participate_quiz_button);
final TextView mText = findViewById(R.id.disc_text);
final View divider = findViewById(R.id.mid_divider);
final TextView t1 = findViewById(R.id.textView2);
final TextView t2 = findViewById(R.id.textView3);
final TextView t3 = findViewById(R.id.textView2_quiz);
final TextView t4 = findViewById(R.id.textView3_quiz);
participate_button.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View view) {
QUIZ = false;
startDiscovering();
mText.setVisibility(View.VISIBLE);
start_button.hide();
participate_button.hide();
start_quiz_button.hide();
participate_quiz_button.hide();
divider.setVisibility(View.GONE);
t1.setVisibility(View.GONE);
t2.setVisibility(View.GONE);
t3.setVisibility(View.GONE);
t4.setVisibility(View.GONE);
}
}
);
start_button.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent myIntent = new Intent(connections_activity.this,
start_poll_2_activity.class);
connections_activity.this.startActivity(myIntent);
}
}
);
start_quiz_button.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View view) {
Intent myIntent = new Intent(connections_activity.this,
start_quiz_activity.class);
connections_activity.this.startActivity(myIntent);
}
}
);
participate_quiz_button.setOnClickListener(
new View.OnClickListener() {
@Override
public void onClick(View view) {
QUIZ = true;
startDiscovering_quiz();
mText.setVisibility(View.VISIBLE);
start_button.hide();
participate_button.hide();
start_quiz_button.hide();
participate_quiz_button.hide();
divider.setVisibility(View.GONE);
t1.setVisibility(View.GONE);
t2.setVisibility(View.GONE);
t3.setVisibility(View.GONE);
t4.setVisibility(View.GONE);
}
}
);
mConnectionsClient = Nearby.getConnectionsClient(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}",
"protected void onCreate() {\n }",
"@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\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 }",
"@Override\n public void onActivityCreated(Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n }",
"@Override\n public void onCreate()\n {\n\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@Override\n public void onCreate() {\n super.onCreate();\n }",
"@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\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n initData();\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\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\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tLog.e(TAG, \"onActivityCreated-------\");\r\n\t}",
"@Override\n public void onCreate() {\n L.d(\"onCreate is called\");\n super.onCreate();\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t}",
"@Override\n\tpublic void onActivityCreated(Activity activity, Bundle savedInstanceState)\n\t{\n\t}",
"@Override\n public void 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\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 onCreate() {\n initData();\n }",
"@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\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tinitData(savedInstanceState);\r\n\t}",
"@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\n }",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"public void onCreate() {\n }",
"@Override\n\tprotected void onCreate() {\n\t}",
"@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 protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n init();\n }",
"@Override\n public void onCreate()\n {\n\n\n }",
"@Override\n\tpublic void onCreate() {\n\n\t}",
"@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\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}",
"@Override\n\tpublic void onCreate() {\n\t\tLog.i(TAG, \"onCreate\");\n\t\tsuper.onCreate();\n\t}",
"@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 public void onActivityCreated(@Nullable Bundle savedInstanceState) {\n super.onActivityCreated(savedInstanceState);\n initData(savedInstanceState);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(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}",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n\n }",
"@Override\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\n\n\t\tgetLocation();\n\n\t\tregisterReceiver();\n\n\t}",
"@Override\n public void onCreate() {\n Log.d(TAG, TAG + \" onCreate\");\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\r\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tinit();\r\n\t}",
"@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}",
"public void onCreate();",
"public void onCreate();",
"@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 protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.activity_main);\n\n setupAddPotLaunch();\n setupListView();\n setupPotClick();\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n Utility.setStatusBarColor(this);\n setContentView(R.layout.activity_get_user_info);\n initViews();\n\n\n // handleClickEvent();\n\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n }",
"@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\r\n protected void onCreate(Bundle savedInstanceState) {\r\n super.onCreate(savedInstanceState);\r\n setContentView(R.layout.activity_contact);\r\n\r\n setToolbar();\r\n initializeReferencesAndListeners();\r\n initializeViewAndControls();\r\n }",
"@Override\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\r\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 }",
"protected void onFirstTimeLaunched() {\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);\n\n\t\tinitView();\n\n\t\tinitData();\n\n\t\tinitEvent();\n\n\t\tinitAnimation();\n\n\t\tshowUp();\n\t}",
"@Override\n protected void onStart() {\n Log.i(\"G53MDP\", \"Main onStart\");\n super.onStart();\n }",
"@Override\n protected void onCreate(@Nullable Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n BusProvider.register(this);\n findViews();\n init();\n getData();\n //customizeActionBar();\n\n loadContact();\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 }",
"@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);\t\t\n\t\tappManager = AppManager.getAppManager();\n\t\tappManager.addActivity(this);\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\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t}",
"@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\tmInflater = LayoutInflater.from(getActivity());\r\n\t\tmApplication = PushApplication.getInstance();\r\n\t\tmUserDB = mApplication.getUserDB();\r\n\t\tmSpUtil = mApplication.getSpUtil();\r\n\r\n\t\tinitAcountSetView();\r\n\t\tinitFaceEffectView();\r\n\t\tinitExitView();\r\n\t\tinitFeedBackView();\r\n\t\tinitAboutView();\r\n\r\n\t}",
"@Override\n public void onCreate(Bundle savedInstanceState) {\n\tsuper.onCreate(savedInstanceState);\n }",
"@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 protected void onCreate(Bundle savedInstanceState)\n {\n super.onCreate(savedInstanceState);\n setContentView(R.layout.senior_activity);\n init();\n initEvent();\n }",
"@Override\n public void onCreate(Bundle savedInstanceState) \n {\n\t\tsuper.onCreate(savedInstanceState);\n\t\tm_Activity = this;\n\t\tm_Handler = new Handler();\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\r\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t\t\r\n\t}",
"@Override\n public void onCreate() {\n super.onCreate();\n setUSDK();\n }",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}",
"@Override\r\n\tpublic void onCreate(Bundle savedInstanceState) {\n\t\tsuper.onCreate(savedInstanceState);\r\n\t}"
] |
[
"0.78546554",
"0.77293247",
"0.7728436",
"0.7703858",
"0.7703858",
"0.7703858",
"0.7703858",
"0.7703858",
"0.7703858",
"0.7669909",
"0.7669909",
"0.7669579",
"0.7669579",
"0.7605328",
"0.7582951",
"0.7582951",
"0.7582401",
"0.75801456",
"0.7560536",
"0.75583714",
"0.7545819",
"0.7545819",
"0.7498876",
"0.74826264",
"0.7459933",
"0.74432355",
"0.7432213",
"0.7431083",
"0.7431083",
"0.742167",
"0.7407329",
"0.7406981",
"0.7406981",
"0.7404728",
"0.73934305",
"0.73923993",
"0.73648757",
"0.7302681",
"0.73003966",
"0.7297293",
"0.7295945",
"0.72803533",
"0.7277048",
"0.72564334",
"0.725293",
"0.7248199",
"0.72350615",
"0.72344005",
"0.7200481",
"0.7199318",
"0.71978647",
"0.7179734",
"0.7179118",
"0.71789455",
"0.71664125",
"0.7159554",
"0.7156519",
"0.7156519",
"0.715592",
"0.715592",
"0.715592",
"0.715592",
"0.715592",
"0.715592",
"0.715592",
"0.715592",
"0.715592",
"0.715592",
"0.715592",
"0.715592",
"0.715592",
"0.7147724",
"0.7144863",
"0.7143461",
"0.71198815",
"0.7119333",
"0.71188176",
"0.7117625",
"0.71073",
"0.7101293",
"0.70980203",
"0.70924103",
"0.7091673",
"0.70786524",
"0.7076501",
"0.70753396",
"0.7072836",
"0.70607966",
"0.70589656",
"0.7057907",
"0.7056237",
"0.70544493",
"0.7054121",
"0.7047505",
"0.70453435",
"0.7044171",
"0.7040447",
"0.7040186",
"0.7035574",
"0.703298",
"0.703298"
] |
0.0
|
-1
|
Called when our Activity has been made visible to the user.
|
@Override
protected void onStart() {
super.onStart();
if (!hasPermissions(this, getRequiredPermissions())) {
if (!hasPermissions(this, getRequiredPermissions())) {
if (Build.VERSION.SDK_INT < 23) {
ActivityCompat.requestPermissions(
this, getRequiredPermissions(), REQUEST_CODE_REQUIRED_PERMISSIONS);
} else {
requestPermissions(getRequiredPermissions(), REQUEST_CODE_REQUIRED_PERMISSIONS);
}
}
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract void onFirstUserVisible();",
"@Override\n protected void onResume() {\n super.onResume();\n isVisible = true; //the app is visible\n }",
"@Override\n protected void onFirstUserVisible() {\n }",
"public void onVisible() {\r\n System.out.println(\"toolkit.AbstractDemo.onVisible()\");\r\n }",
"public void onActivityViewReady() {\n if (Logging.DEBUG_LIFECYCLE && Email.DEBUG) {\n Log.d(Logging.LOG_TAG, this + \" onActivityViewReady\");\n }\n }",
"public void onShow() {\n this.controller.notifyAdEvent(\"adsWillShow\");\n }",
"protected void onScreenActivate() {\r\n }",
"void onShowAchievementsRequested();",
"@Override\n public void setUserVisibleHint(boolean isVisibleToUser) {\n super.setUserVisibleHint(isVisibleToUser);\n if (isVisibleToUser && !alreadyMadeApplicationsApiCall) {\n alreadyMadeApplicationsApiCall = true;\n fetchItemsWithUrl(getActivity(), ApiManager.getApprovedApplicationsUrl());\n }\n }",
"void onActivityReady();",
"abstract void onShown();",
"public void onResume() {\n super.onResume();\n MiStatInterface.recordPageStart((Activity) this, \"SetMyOtherInfoActivity\");\n }",
"@Override\r\n\tpublic void onShow() {\n\t\t\r\n\t}",
"public void onDisplay() {\n }",
"public void onDashboardAppear() \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"On Dashboard appear\");\n\t\t\tdashboardDidAppear();\n\t\t}",
"public void onDashboardAppear() \n\t\t{\n\t\t\tLog.i(\"OpenFeint\", \"On Dashboard appear\");\n\t\t\tdashboardDidAppear();\n\t\t}",
"private void showViewToursActivity() {\n//\t\tIntent intent = new intent(this, ActivityViewTours.class);\n System.out.println(\"Not Yet Implemented\");\n }",
"public void onShow(Context context);",
"@Override\r\n\tpublic void aboutToBeShown() {\n\t\tsuper.aboutToBeShown();\r\n\t}",
"public void onActivation() { }",
"public void infoProgressOn (){\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n if (tabTourInfoBinding.tourInfoProgress.getVisibility() != View.VISIBLE) {\n tabTourInfoBinding.tourInfoProgress.setVisibility(View.VISIBLE);\n }\n if (tabTourInfoBinding.tourInfoLayout.getVisibility() != View.GONE) {\n tabTourInfoBinding.tourInfoLayout.setVisibility(View.GONE);\n }\n }\n });\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t\tsetview();\r\n\t}",
"protected void onViewReady(Bundle savedInstanceState, Intent intent) {\n }",
"@Override\n\t\t\tpublic void setUserVisibleHint(boolean isVisibleToUser) {\n\t\t\t\tsuper.setUserVisibleHint(isVisibleToUser);\n\t\t\t\tisonshow=isVisibleToUser;\n\t\t\t\t//Log.i(\"isonshow\", isVisibleToUser+\"\");\n\n\t\t\t}",
"private void makeDeviceVisible() {\r\n final Intent becomeDiscoverable = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\r\n becomeDiscoverable.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 0);\r\n this.startActivityForResult(becomeDiscoverable, BECOME_DISCOVERABLE_REQUEST_ID);\r\n }",
"@Override\n public void onFragmentVisible() {\n db = LegendsDatabase.getInstance(getContext());\n\n refreshCursor();\n\n if (emptyView.isShown()) {\n Crossfader.crossfadeView(emptyView, loadingView);\n }\n else {\n Crossfader.crossfadeView(listView, loadingView);\n }\n }",
"@Override\n\tprotected void onAttachedToActivity() {\n\t\tsuper.onAttachedToActivity();\n\t}",
"public void onDisplay() {\n\n\t}",
"private void videoVisible() {\n }",
"@Override\n public void onStart()\n {\n if (mProgressView != null)\n {\n mProgressView.setVisibility(View.VISIBLE);\n }\n }",
"@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n//\t\tGeneralActivity.isHide = false;\r\n\t}",
"@Override\n public void setUserVisibleHint(boolean isVisibleToUser) {\n if (isVisibleToUser) {\n // fragment可见时加载数据 onResume\n } else {\n // 不可见时不执行操作 onPause\n }\n super.setUserVisibleHint(isVisibleToUser);\n }",
"@Override\n public void onAdOpened() {\n mAdView.setVisibility(View.VISIBLE);\n }",
"protected void activeActivity() {\n\t\tLog.i(STARTUP, \"active activity\");\n\t\tcheckActiveActivity();\n\t}",
"public void setUserVisibleHint(boolean isVisibleToUser) {\n\t super.setUserVisibleHint(isVisibleToUser);\n\t // Make sure that we are currently visible\n\t if (this.isVisible()) {\n\t\t\tif (MainActivity.currentPlaylist.getCount() != 0) {\n\t\t\t\tif (youtubeFragment.videoId != MainActivity.currentPlaylist.returnVideoIds().get(0)) {\n\t\t\t\t\ttextView1 = (TextView) getView().findViewById(R.id.nowPlayingTextView);\n textView1.setText(\"Now Playing: \" + MainActivity.currentPlaylist.returnVideoTitles().get(0));\n\t\t\t\t\tyoutubeFragment.playNewVideo();\n\t\t\t\t}\n\t\t\t}\n\t }\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 }",
"@Override\n public void onResume() {\n view.get().onDataUpdated(state);\n view.get().activateButton();\n\n }",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {}",
"@Override\n public boolean isVisible()\n {\n return true;\n }",
"@Override\n public void onOpened(AdColonyInterstitial ad) {\n notifyShown();\n notifyStarted();\n }",
"void onFadingViewVisibilityChanged(boolean visible);",
"public void notifyOnDisplayed() {\n if (this.mListeners != null) {\n for (IShowcaseListener listener : this.mListeners) {\n listener.onShowcaseDisplayed(this);\n }\n }\n }",
"@Override\n\tpublic void onCreate(Bundle savedInstanceState)\n\t{\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.set_visibility);\n\n\t\tClientAppApplication app = (ClientAppApplication) getApplication();\n\t\tclientApp = app.getClientApp();\n\t\treturnMessage = new Intent();\n\t}",
"@Override\n\tpublic void onHiddenChanged(boolean hidden) {\n\t\tif (!hidden) {\n\t\t\tchangeviewbylogin();\n\t\t\tStatService.onPageStart(getActivity(),\t\"会员卡模块\");\n\t\t}else{\n\t\t\tStatService.onPageEnd(getActivity(),\"会员卡模块\");\n\t\t}\n\t\tsuper.onHiddenChanged(hidden);\n\t}",
"abstract void onHidden();",
"public boolean getIsVisible();",
"@Override\n\tpublic void onResume() {\n\t\tsuper.onResume();\n\t\tCanPopWind.sIsAirActivityShow = true;\n\t}",
"void onShowLeaderboardsRequested();",
"public void showView(){\n this.addObserver(GameView.GameViewNewGame(this));\n }",
"@Override\n public void onAdLoaded() {\n Log.i(\"Ads\", \"xxx Banner onAdLoaded; isShow==\" + view.isShown());\n }",
"public void onResume() {\n super.onResume();\n RecentsEventBus.getDefault().send(new FsGestureShowStateEvent(true));\n }",
"@Override\n public void onResume() {\n super.onResume();\n\n mTracker.setScreenName(TAG);\n mTracker.send(new HitBuilders.ScreenViewBuilder().build());\n }",
"@Override\n\t\t\tpublic void onShow(DialogInterface dialog) {\n\t\t\t\tsetActivityInvisible();\n\t\t\t}",
"public boolean onForwardingStarted() {\n ActivityChooserView.this.showPopup();\n return true;\n }",
"@Override\n\tpublic void onInvisible() {\n\n\t}",
"@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }",
"@Override\n public void onStart() {\n super.onStart();\n\n /*\n * If call is initiated then we have to reset the timer to initial time.\n * Also inform the user that Authorities have been alerted and video has benn sent.\n */\n if (isCallInitiated) {\n //reset timer to normal recording time\n timeCounter = UserPreferences.sharedInstance().recordTime() * 1000;\n\n mFiveSecondsScreen.setVisibility(View.GONE);\n enableAuthorityAlertedText();\n enableRecordVideoImages();\n } else {\n disableAuthorityAlertedText();\n }\n\n enableCenterText();\n\n if (!isCameraRecording) {\n disableAuthorityAlertedText();\n }\n\n // Keep screen on when on this view\n getActivity().getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);\n }",
"@Override\n public void userPageViewConcerts() {\n Intent intent = new Intent(userPageModel.this, viewConcertsPageModel.class);\n startActivity(intent);\n }",
"@Subscribe\n public void onUserInfosSucceededEventReceived(LoginSucceededEvent event) {\n Log.d(TAG,\"onuserinfosucceeded\");\n if (view != null) {\n view.hideLoader();\n view.goListScreen(event.getUserName());\n }\n }",
"void onCheckViewedComplete(boolean isViewed);",
"@Override\n\tpublic void onActivityCreated(Bundle arg0) {\n\t\tsuper.onActivityCreated(arg0);\n\t}",
"@Override\n public void onActivate() {\n }",
"@Override\n public void performAction(View view) {\n startActivity(new Intent(MainActivity.this, MyInfoActivity.class));\n }",
"@Override\n public void showSignInScreen() {\n Toast.makeText(this, \"Taking user to the sign in screen\", Toast.LENGTH_SHORT).show();\n }",
"@Override\n\tpublic void onResume() {\n\t\tif (!isHidden()) {\n\t\t\tchangeviewbylogin();\n\t\t}\n\t\tsuper.onResume();\n\t\tif(ShopApplication.mainflag==3)\n\t\tStatService.onPageStart(getActivity(),\t\"会员卡模块\");\n\t}",
"@Override\n public void startingScreen(Home.ToHome presenter) {\n presenter.onScreenStarted();\n }",
"@Override public void showSuccessfulLogin() {\n //Set the view state\n LoginViewState vs = (LoginViewState) viewState;\n vs.setShowSuccessfulLogin();\n\n getActivity().finish();\n //Ici qu'on fait la redirection pour la prochaine View\n Intent homepage = new Intent(getActivity(), DashboardActivity.class);\n startActivity(homepage);\n }",
"@Override\n public void onActivityCreated(Activity activity, Bundle bundle) {\n }",
"@Override\n public void setMenuVisibility(boolean menuVisible) {\n super.setMenuVisibility(menuVisible);\n if (menuVisible && isResumed()) {\n if (viewPager.getCurrentItem() == 0) {\n Log.i(\"BookmarkFragment\", \"onMenuVisibility\");\n HistoryFragment historyFragment = (HistoryFragment)adapter.getItem(0);\n if (historyFragment.isAdded()) {\n // After configuration changes the fragment will be not added yet,\n // so we don't need to initialize its presenter\n // (presenter already initialized)\n historyFragment.onBecomeVisible();\n }\n }\n }\n }",
"@Override\r\n\tpublic void aboutToBeHidden() {\n\t\tsuper.aboutToBeHidden();\r\n\t}",
"public void onAttachedToWindow() {\n super.onAttachedToWindow();\n ActivityChooserModel e2 = this.a.e();\n if (e2 != null) {\n e2.registerObserver(this.e);\n }\n this.q = true;\n }",
"public void showAchievements () {\n\t\tGPGAchievementController achController = new GPGAchievementController();\n\t\tachController.setAchievementDelegate(this);\n\t\tviewController.presentViewController(achController, true, null);\n\t}",
"@Override\n public void onAuthenticated(AuthData authData) {\n Intent intent = new Intent(getApplicationContext(), ActiveUserActivity.class);\n startActivity(intent);\n }",
"public void willBeDisplayed() {\n\t\t// Do what you want here, for example animate the content\n\t\tif (fragmentContainer != null) {\n\t\t\tAnimation fadeIn = AnimationUtils.loadAnimation(getActivity(), R.anim.fade_in);\n\t\t\tfragmentContainer.startAnimation(fadeIn);\n\t\t}\n\t}",
"@Override\n public void onStart() {\n Log.d(LOG, \"Started in EditProfileActivity\");\n mColorRelativeLayout.setVisibility(View.GONE);\n mCancel.setVisibility(View.GONE);\n mSave.setVisibility(View.GONE);\n mProgresBar.setVisibility(View.VISIBLE);\n }",
"public void setVisible()\n\t{\n\t\tMainController.getInstance().setVisible(name, true);\n\t}",
"public void onResume() {\r\n\t\tLog.w(LOG_TAG, \"Simple iMeeting base view = \" + this\r\n\t\t\t\t+ \" onResume method not implement\");\r\n\t}",
"@Override\n public void onResume()\n {\n super.onResume();\n\n showThing();\n \n blue_jay_animation.start();\n }",
"@Override\n public void onClick(View view) {\n presentActivity(view);\n\n\n\n }",
"@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }",
"@Override\n public void setUserVisibleHint(boolean isVisibleToUser) {\n super.setUserVisibleHint(isVisibleToUser);\n if (isVisibleToUser) {\n setupFab();\n }\n }",
"@Override\n public void makeVisible(Player viewer) {\n \n }",
"public java.lang.Boolean getIsVisible();",
"public void setIsVisible(boolean isVisible);",
"@Override\n\tprotected void onStart() {\n\t\tsuper.onStart();\n\t\ttActivityDisplay.setText(\"on Start called\");\n\t}",
"public void start() {\r\n view.addListener(this);\r\n view.makeVisible();\r\n view.display();\r\n }",
"@Override\n public void onViewResume() {\n }",
"public final void mo91937B() {\n if (isViewValid()) {\n C6907h.onEvent(MobClick.obtain().setEventName(\"click_fans_count\").setLabelName(\"personal_homepage\"));\n C6907h.m21524a(\"click_fans_count\", (Map) new C22984d().mo59973a(\"enter_from\", \"personal_homepage\").f60753a);\n FollowRelationTabActivity.m97191a(getActivity(), this.f94531Q, \"follower_relation\");\n }\n }",
"@Override\n public void setVisible(boolean arg0)\n {\n \n }",
"public void onActive() {\n Methods.showMessage(\"Warning\", \"Welcome Back!\", \"Please Continue Filling Out Your Questionanire!\");\n }",
"public boolean isVisible() {\n return true;\n }",
"@Override\r\n\tpublic void onActivityCreated(Bundle savedInstanceState) {\n\t\tsuper.onActivityCreated(savedInstanceState);\r\n\t}",
"public final void mo91936A() {\n if (isViewValid()) {\n C6907h.onEvent(MobClick.obtain().setEventName(\"click_follow_count\").setLabelName(\"personal_homepage\"));\n C6907h.m21524a(\"click_follow_count\", (Map) new C22984d().mo59973a(\"enter_from\", \"personal_homepage\").f60753a);\n FollowRelationTabActivity.m97191a(getActivity(), this.f94531Q, \"following_relation\");\n }\n }",
"@Override\n public void run() {\n ActionBar actionBar = getSupportActionBar();\n if (actionBar != null) {\n actionBar.show();\n }\n // mControlsView.setVisibility(View.VISIBLE);\n }",
"@Override\n public void onAdAvailable(Intent intent) {\n offerwallIntent = intent;\n Log.d(TAG, \"OW: Offers are available\");\n Toast.makeText(MainActivity.this, \"OW: Offers are available\", Toast.LENGTH_SHORT).show();\n showOW.setEnabled(true);\n }",
"public boolean isVisible() { return _visible; }",
"@Override\n public void onSignInSucceeded() {\n\n if (ACCESS_ACHIEVEMENT) {\n\n //if we just came from achievements button and are now signed in, display ui\n displayAchievementUI();\n\n //flag back false\n ACCESS_ACHIEVEMENT = false;\n }\n\n //don't bypass auto login\n BYPASS_LOGIN = false;\n }",
"public void show() {\n visible=true;\n }",
"@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tshowPoints();\n\t}",
"public boolean isVisible() {\n return true;\n }",
"public void onActive() {\n super.onActive();\n this.f5335l.registerOnSharedPreferenceChangeListener(this);\n }"
] |
[
"0.7241629",
"0.6974701",
"0.69372064",
"0.67805254",
"0.66588104",
"0.6278271",
"0.6263543",
"0.6263225",
"0.62142634",
"0.6209547",
"0.6196481",
"0.6100237",
"0.60961664",
"0.6012919",
"0.5987817",
"0.5987817",
"0.5986068",
"0.59707826",
"0.59540385",
"0.5940077",
"0.5939248",
"0.5920709",
"0.5915839",
"0.5906395",
"0.58875984",
"0.588479",
"0.58568335",
"0.58554703",
"0.58407617",
"0.5838324",
"0.58260715",
"0.58146304",
"0.58132815",
"0.5808405",
"0.57997125",
"0.5797814",
"0.579121",
"0.5786541",
"0.57862884",
"0.57614917",
"0.5750042",
"0.5739145",
"0.5736547",
"0.5736076",
"0.5723998",
"0.57233137",
"0.57078695",
"0.56967086",
"0.56957424",
"0.5695713",
"0.56923074",
"0.5691533",
"0.56789684",
"0.5667994",
"0.5663195",
"0.5661549",
"0.56606025",
"0.5651756",
"0.56441075",
"0.5642963",
"0.56416625",
"0.5640503",
"0.5639538",
"0.56379193",
"0.5636206",
"0.56319857",
"0.5628952",
"0.56271315",
"0.56228155",
"0.56074584",
"0.56059813",
"0.5592546",
"0.5589109",
"0.5588273",
"0.55852556",
"0.5573698",
"0.557244",
"0.55698574",
"0.55684084",
"0.55679244",
"0.55530244",
"0.55515015",
"0.55512166",
"0.5543208",
"0.5534733",
"0.55345213",
"0.5534342",
"0.55288893",
"0.5526893",
"0.55253434",
"0.5519369",
"0.55191946",
"0.5514769",
"0.5513283",
"0.5510827",
"0.5504681",
"0.5502349",
"0.55003214",
"0.5495068",
"0.5491175",
"0.5488974"
] |
0.0
|
-1
|
Called when the user has accepted (or denied) our permission request.
|
@CallSuper
@Override
public void onRequestPermissionsResult(
int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {
if (requestCode == REQUEST_CODE_REQUIRED_PERMISSIONS) {
for (int grantResult : grantResults) {
if (grantResult == PackageManager.PERMISSION_DENIED) {
Toast.makeText(this, "error: missing permissions", Toast.LENGTH_LONG).show();
finish();
return;
}
}
recreate();
}
super.onRequestPermissionsResult(requestCode, permissions, grantResults);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void permissionGranted(int requestCode);",
"@Override\n public void onDenied(String permission) {\n }",
"@Override\n public void onDenied(String permission) {\n }",
"@Override\n public void onGranted() {\n }",
"void permissionDenied(int requestCode, boolean willShowCheckBoxNextTime);",
"@Override\n public void onPermissionGranted() {\n }",
"@Override\n public void onGranted() {\n }",
"@Override\n public void onGranted() {\n }",
"@Override\n public void onRequestAllow(String permissionName) {\n }",
"@Override\n public void onPermissionGranted() {\n }",
"void askForPermissions();",
"private void permissionsDenied() {\n Log.w(\"TAG\", \"permissionsDenied()\");\n }",
"public void onPermissionGranted() {\n\n }",
"void requestNeededPermissions(int requestCode);",
"@Override\n public void onRequestNoAsk(String permissionName) {\n }",
"@Override\n public void onRequestRefuse(String permissionName) {\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }",
"@Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n getPermissions();\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }",
"private void permissionsDenied() {\n Log.w(TAG, \"permissionsDenied()\");\n // TODO close app and warn user\n }",
"@Override\r\n public void onPermissionsDenied(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }",
"@Override\r\n public void onPermissionDenied(PermissionDeniedResponse response) {\n if (response.isPermanentlyDenied()) {\r\n showSettingsDialog();\r\n }\r\n }",
"@Override\r\n public void onPermissionDenied(PermissionDeniedResponse response) {\n if (response.isPermanentlyDenied()) {\r\n showSettingsDialog();\r\n }\r\n }",
"@Override\n public void onPermissionDenied() {\n Log.d(TAG, \"onPermissionDenied() called\");\n }",
"@Override\r\n public void onPermissionsGranted(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }",
"@Override\n public void onPermissionDenied(PermissionDeniedResponse response) {\n if (response.isPermanentlyDenied()) {\n showSettingsDialog();\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 }",
"@Override\n public void onPermissionGranted(PermissionGrantedResponse permissionGrantedResponse) {\n\n }",
"protected void handlePermissionResult() {\n for (String permission : Constants.PERMISSIONS_NEEDED) {\n if (mUtils.hasPermission(permission)) {\n // User granted this permission, check for next one\n continue;\n }\n // User not granted permission\n if (SpyState.Listeners.permissionsListener != null) // Let app handle this\n {\n SpyState.Listeners.permissionsListener.onPermissionDenied(!mActivity.shouldShowRequestPermissionRationale(permission));\n return;\n }\n\n AlertDialog.Builder permissionRequestDialog = new AlertDialog.Builder(mActivity)\n .setTitle(R.string.dialog_permission_title)\n .setMessage(R.string.dialog_permission_message)\n .setCancelable(false)\n .setNegativeButton(R.string.exit,\n (dialog, whichButton) -> {\n mUtils.showToast(R.string.closing_app);\n mActivity.finish();\n });\n if (!mActivity.shouldShowRequestPermissionRationale(permission)) {\n // User clicked on \"Don't ask again\", show dialog to navigate him to\n // settings\n permissionRequestDialog\n .setPositiveButton(R.string.go_to_settings,\n (dialog, whichButton) -> {\n Intent intent =\n new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri =\n Uri.fromParts(\"package\", mActivity.getPackageName(), null);\n intent.setData(uri);\n mActivity.startActivityForResult(intent,\n OPEN_SETTINGS_REQUEST_CODE);\n })\n .show();\n } else {\n // User clicked on 'deny', prompt again for permissions\n permissionRequestDialog\n .setPositiveButton(R.string.try_again,\n (dialog, whichButton) -> grantPermissions())\n .show();\n }\n return;\n }\n Log.i(TAG, \"All required permissions have been granted!\");\n }",
"@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n public void onPermissionsDenied(int requestCode, List<String> list) {\n // Do nothing.\n }",
"public interface PermissionListener {\n\n void onGranted(); //授权\n\n void onDenied(List<String> deniedPermission); //拒绝 ,并传入被拒绝的权限\n}",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n\tprotected boolean onAccessDenied(ServletRequest arg0, ServletResponse arg1) throws Exception {\n\t\treturn false;\n\t}",
"public void onPermissionError(CommandEvent e);",
"private void manageDeniedPacket(MeetingPacket packet) {\n Console.comment(\"=> Denied packet from \" + packet.getSourceAddress()) ;\n\n if(this.callbackOnDenied != null) {\n this.callbackOnDenied.denied() ;\n }\n }",
"@PermissionSuccess(requestCode = 100)\n public void onPermissionSuccess(){\n }",
"public interface PermissionFailDefaultCallBack {\r\n void onRequestRefuse(int requestCode, String refuseTip);\r\n void onRequestForbid(int requestCode, String forbidTip);\r\n}",
"@Override\n public void onPermissionsDenied(@NonNull String[] grantedPermissions,\n @NonNull String[] deniedPermissions, @NonNull String[] declinedPermissions) {\n }",
"@Override\n\tpublic boolean isDenied();",
"@Override\n public void onPermissionRequest(final PermissionRequest request) {\n Log.i(TAG, \"onPermissionRequest\");\n mPermissionRequest = request;\n final String[] requestedResources = request.getResources();\n for (String r : requestedResources) {\n if (r.equals(PermissionRequest.RESOURCE_VIDEO_CAPTURE)) {\n // In this sample, we only accept video capture request.\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(TestActivity.this)\n .setTitle(\"Allow Permission to camera\")\n .setPositiveButton(\"Allow\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n mPermissionRequest.grant(new String[]{PermissionRequest.RESOURCE_VIDEO_CAPTURE});\n Log.d(TAG,\"Granted\");\n }\n })\n .setNegativeButton(\"Deny\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n mPermissionRequest.deny();\n Log.d(TAG,\"Denied\");\n }\n });\n AlertDialog alertDialog = alertDialogBuilder.create();\n alertDialog.show();\n\n break;\n }\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 onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n boolean flag = true;\n switch (requestCode) {\n case RESULT_PERMISSION: {\n if (grantResults.length == 0)\n flag = false;\n else {\n for (int grantResult : grantResults) {\n if (grantResult == PackageManager.PERMISSION_DENIED) {\n flag = false;\n break;\n }\n }\n }\n close(flag);\n }\n }\n }",
"@Override\n public void onPermissionDenied(ArrayList<String> deniedPermissions) {\n Toast.makeText(HomeView.this, \"Permission Denied\\n\" + deniedPermissions.toString(), Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n getSharedPreferences(\"karvaanSharedPref\", MODE_PRIVATE).edit().putBoolean(\"storagePermissionGranted\", false).apply();\n }",
"@Override\r\n protected boolean onAccessDenied(ServletRequest request, ServletResponse response) throws IOException {\n \tboolean b = WebUtil.isAjax((HttpServletRequest)request);\r\n \tif(b){//ajax請求,没有权限操作的\r\n JSONObject js = new JSONObject();\r\n js.put(\"isDenied\", true);\r\n js.put(\"message\", \"沒有权限执行该操作\");\r\n WebUtil.printJson(response, js);\r\n return false;\r\n \t}\r\n \treturn super.onAccessDenied(request, response);\r\n }",
"@Override\n public void checkPermission(Permission perm, Object context) {\n }",
"public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n permissionHelper.onActivityForResult(requestCode);\n }",
"Boolean acceptRequest(User user);",
"@Override\n public void onClick(View view) {\n CheckUserPermsions();\n }",
"public interface IPermissionCallback {\n /**\n * Gets called if the permission/permissions you requested are granted successfully by the user.\n * @param requestCode - same integer is returned that you have passed when you called requestPermission();\n */\n void permissionGranted(int requestCode);\n\n /**\n * Gets called if the permission/permissions you requested are denied by the user.\n * If user denies a permission once, next time that permission comes with a check box(never ask again).\n * If user check that box and denies again, no permission dialog is shown to the user next time and permission will be denied automatically.\n * @param requestCode - same integer is returned that you have passed when you called requestPermission();\n * @param willShowCheckBoxNextTime - For a request of multiple permissions at the same time, you will always receive false.\n */\n void permissionDenied(int requestCode, boolean willShowCheckBoxNextTime);\n}",
"@Override\n public void onPermissionsDenied(int requestCode, List<String> perms) {\n if (EasyPermissions.somePermissionPermanentlyDenied(this, perms)) {\n new AppSettingsDialog.Builder(this, \"拍照权限已被拒绝,但是拍照需要拍照权限才能拍照哦~,请在设置里开启\")\n .setTitle(\"提示\")\n .setPositiveButton(\"确定\")\n .setNegativeButton(\"取消\", null /* click listener */)\n .setRequestCode(RC_CAMERA_PERM)\n .build()\n .show();\n }\n\n }",
"boolean requestIfNeeded(Activity activity, Permission permission);",
"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 onFailed(int requestCode, List<String> deniedPermissions) {\n AndPermission.defaultSettingDialog(MainActivity.this, PERMISSION_CODE_WRITE_EXTERNAL_STORAGE)\n .setTitle(\"Failure of permission application\")\n .setMessage(\"Some of the permissions we need have been rejected by you or the system failed to apply for errors. Please go to the settings page to authorize manually, otherwise the function will not work properly!\")\n .setPositiveButton(\"Okay, go ahead and set it up\")\n .show();\n }",
"@Override\n public void checkPermission(Permission perm) {\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 manageAcceptedPacket(MeetingPacket packet) {\n Console.comment(\"=> Meeting response packet accepted from \" + packet.getSourceAddress()) ;\n\n if(this.callbackOnAccepted != null) {\n this.callbackOnAccepted.handle(packet.getSourceUser()) ;\n }\n }",
"public void confirmPermission(String objectId, User user) throws UserManagementException;",
"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 }",
"@Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n Dialog deleteDialog = new Dialog(SettingsActivity.this, R.style.Theme_Dialog);\n // Include dialog.xml file\n deleteDialog.setContentView(R.layout.dialog_delete_confirmation);\n deleteDialog.setTitle(null);\n\n TextView agree, disagree, title, content;\n agree = deleteDialog.findViewById(R.id.agree);\n disagree = deleteDialog.findViewById(R.id.disagree);\n title = deleteDialog.findViewById(R.id.title);\n content = deleteDialog.findViewById(R.id.textContent);\n\n title.setText(\"Import Notes?\");\n content.setText(\"Existing backup notes will be replaced by latest imported notes.\");\n\n agree.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n importDB();\n check = 1;\n }\n });\n\n disagree.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n deleteDialog.dismiss();\n }\n });\n\n deleteDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n deleteDialog.show();\n }",
"private static void showPrompt(Activity activity, PermissionHandler permissionHandler,\n String permission, int requestCode, boolean isDeniedPermanently) {\n AlertDialog alertDialog = new AlertDialog.Builder(activity).create();\n alertDialog.setMessage(activity.getString(R.string.permissionPromptMsg));\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, activity.getString(R.string.denyBtnText),\n (dialogInterface, i) -> alertDialog.dismiss());\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE,\n isDeniedPermanently ? activity.getString(R.string.settingsBtnTxt)\n : activity.getString(R.string.allowBtnTxt),\n (dialog, which) -> {\n if (isDeniedPermanently) {\n Intent intent = new Intent();\n intent.setAction(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri = Uri.fromParts(\"package\", activity.getPackageName(), null);\n intent.setData(uri);\n activity.startActivity(intent);\n } else {\n permissionHandler.firstTimeAsking(permission, false);\n ActivityCompat.requestPermissions(activity, new String[]{permission},\n requestCode);\n }\n\n });\n alertDialog.show();\n }",
"public void OnConfHostRequest(BoUserInfoBase user, int permission);",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n // Either way, check log in again\n checkAccessAndLoggIn();\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_CODE) {\n /** if so check once again if we have permission */\n if (Settings.canDrawOverlays(this)) {\n // continue here - permission was granted\n }\n }\n }",
"@SuppressWarnings(\"BooleanMethodIsAlwaysInverted\")\n public boolean handlePermissionsResult(int requestCode,\n @NonNull int[] grantResults)\n {\n if (requestCode == itsPermsRequestCode) {\n if ((grantResults.length > 0) &&\n (grantResults[0] == PackageManager.PERMISSION_GRANTED)) {\n restart();\n }\n return true;\n }\n return false;\n }",
"public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }",
"public void setDenied() {\r\n\t\tstatus = \"Denied\";\r\n\t}",
"private void authorize() {\r\n\r\n\t}",
"private void proceedAfterPermission() {\n Toast.makeText(getBaseContext(), \"We got the contacts Permission\", Toast.LENGTH_LONG).show();\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 onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n int length = grantResults.length;\n if(length > 0)\n {\n int grantResult = grantResults[0];\n\n if(grantResult == PackageManager.PERMISSION_GRANTED) {\n\n Toast.makeText(getApplicationContext(), \"You allowed permission.\", Toast.LENGTH_LONG).show();\n }else\n {\n Toast.makeText(getApplicationContext(), \"You denied permission.\", Toast.LENGTH_LONG).show();\n }\n }\n }",
"public abstract boolean authorize(int requestCode, int resultCode, @Nullable Intent intent);",
"@Override\n\tprotected void doIsPermitted(String arg0, Handler<AsyncResult<Boolean>> arg1) {\n\t\t\n\t}",
"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 }",
"@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults) {\n switch (requestCode) {\n case 1: {\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n\n } else {\n }\n return;\n }\n }\n }",
"public void isAllowed(String user) {\n \r\n }",
"@TargetApi(Build.VERSION_CODES.M)\n @Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == RESULT_MANAGE_OVERLAY_PERMISSION) {\n if (Settings.canDrawOverlays(this))\n requestPermissions(PermissionInfo.getList(getApplicationContext()), RESULT_PERMISSION);\n else\n close(false);\n }\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n switch (requestCode) {\n case RequestPermissionCode:\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n //Permission was granted\n Log.d(TAG, \"onRequestPermissionsResult: Permission Granted\");\n Toast.makeText(MainActivity.this, \"Permission Granted\", Toast.LENGTH_SHORT).show();\n } else {\n //Permission Denied\n Log.d(TAG, \"onRequestPermissionsResult: Permission Denied\");\n Toast.makeText(MainActivity.this, \"Permission Denied\", Toast.LENGTH_SHORT).show();\n }\n return;\n }\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 }",
"private void showRequestPermissionRationaleDialog(){\n new AlertDialog.Builder(this)\n .setMessage(\"Permissions needed to use application features.\")\n .setPositiveButton(\"Allow\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n startAppSettingsConfigActivity();\n }\n })\n .setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n })\n .setCancelable(false)\n .create()\n .show();\n }",
"public interface PermissionResult {\n\n void permissionGranted();\n\n void permissionDenied();\n\n void permissionForeverDenied();\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 }",
"@Override\n public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults)\n {\n switch (requestCode)\n {\n case 0:\n {\n // If request is cancelled, the result arrays are empty.\n if (grantResults.length > 0 && grantResults[0] == PackageManager.PERMISSION_GRANTED)\n {\n }\n else\n {\n }\n return;\n }\n }\n }",
"@Override\n public void onErrorResponse(VolleyError error) {\n SSLog.e(TAG, \"sendUserAccess :- \", error.getMessage());\n }",
"@Override\n public void onClick(View v) {\n requestPermissions((SireController) view.getContext(),false);\n }",
"private void onRequireCalendarPermissionsDenied() {\r\n showToast(getString(R.string.event_require_calendar_permission), Toast.LENGTH_LONG);\r\n }",
"void checkPermission(T request) throws AuthorizationException;",
"@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 }",
"void acceptRequest(Friend pendingRequest);",
"@Test\n public void testCancelledPermissionRequest() 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 cancel the request\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\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(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {false});\n }",
"boolean ignoresPermission();",
"public boolean isPermissionGranted(String permission){\n return true;\n// else\n// return false;\n }",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(a,\n new String[]{permission},\n b);\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 }",
"default void testIamPermissions(\n com.google.iam.v1.TestIamPermissionsRequest request,\n io.grpc.stub.StreamObserver<com.google.iam.v1.TestIamPermissionsResponse>\n responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getTestIamPermissionsMethod(), responseObserver);\n }",
"@Override\n public void onPermissionGranted(PermissionGrantedResponse response) {\n Dialog deleteDialog = new Dialog(SettingsActivity.this, R.style.Theme_Dialog);\n // Include dialog.xml file\n deleteDialog.setContentView(R.layout.dialog_delete_confirmation);\n deleteDialog.setTitle(null);\n\n TextView agree, disagree, title, content;\n agree = deleteDialog.findViewById(R.id.agree);\n disagree = deleteDialog.findViewById(R.id.disagree);\n title = deleteDialog.findViewById(R.id.title);\n content = deleteDialog.findViewById(R.id.textContent);\n\n title.setText(\"Export Notes?\");\n content.setText(\"Existing backup notes will be replaced by latest exported notes.\");\n\n agree.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n //creating a new folder for the database to be backuped to\n File direct = new File(Environment.getExternalStorageDirectory() + \"/Scrittor_Backup\");\n\n if (!direct.exists()) {\n if (direct.mkdir()) {\n exportDB();\n } else {\n direct.mkdir();\n exportDB();\n }\n }\n exportDB();\n }\n });\n\n disagree.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n deleteDialog.dismiss();\n }\n });\n\n deleteDialog.getWindow().setBackgroundDrawable(new ColorDrawable(Color.TRANSPARENT));\n deleteDialog.show();\n }"
] |
[
"0.74218625",
"0.71066207",
"0.70507276",
"0.67481154",
"0.67138386",
"0.66923887",
"0.6686057",
"0.6686057",
"0.66441184",
"0.6625593",
"0.6557279",
"0.6548108",
"0.65458083",
"0.6492914",
"0.64421856",
"0.6438608",
"0.64361435",
"0.64361435",
"0.6422184",
"0.6406362",
"0.63992983",
"0.63487536",
"0.63304365",
"0.63304365",
"0.6319466",
"0.6314758",
"0.62943864",
"0.62935776",
"0.62852156",
"0.62847793",
"0.62837386",
"0.62837386",
"0.62837386",
"0.6272691",
"0.6245599",
"0.6245599",
"0.6245599",
"0.61995775",
"0.6195641",
"0.6174069",
"0.6090659",
"0.6069448",
"0.6046624",
"0.5960309",
"0.5912301",
"0.5911844",
"0.58933985",
"0.58795863",
"0.58700013",
"0.585994",
"0.5821502",
"0.5806422",
"0.580452",
"0.579471",
"0.579262",
"0.5776575",
"0.5748862",
"0.5729851",
"0.57106966",
"0.5707695",
"0.57069576",
"0.56949043",
"0.5694107",
"0.5689121",
"0.5685008",
"0.566742",
"0.5658582",
"0.565082",
"0.5648598",
"0.5642707",
"0.5635944",
"0.5633163",
"0.5630318",
"0.5616178",
"0.5601719",
"0.5596185",
"0.5591397",
"0.559034",
"0.5590021",
"0.5587906",
"0.5557985",
"0.55450547",
"0.5542719",
"0.55368435",
"0.55295306",
"0.5522494",
"0.5521785",
"0.5503818",
"0.5494206",
"0.5489993",
"0.5487208",
"0.5486561",
"0.5476331",
"0.5469126",
"0.5468115",
"0.5467827",
"0.5463044",
"0.54627293",
"0.54593205",
"0.545637",
"0.54560137"
] |
0.0
|
-1
|
Accepts a connection request.
|
protected void acceptConnection(final Endpoint endpoint) {
mConnectionsClient
.acceptConnection(endpoint.getId(), mPayloadCallback)
.addOnFailureListener(
new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception e) {
logW("acceptConnection() failed.", e);
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void acceptConnection(SystemServiceConnection connection);",
"void requestReceived( C conn ) ;",
"private void treatAccept(SelectionKey key) throws IOException\n {\n ServerSocketChannel ssc = (ServerSocketChannel) key.channel();\n SocketChannel sc = ssc.accept();\n sc.configureBlocking(false);\n SelectionKey clientKey = sc.register(selector, SelectionKey.OP_READ,\n new RequestCommandHandler(root));\n\n System.out\n .println(\"New connection accepted for : \"\n + sc.socket().getRemoteSocketAddress() + \", key : \"\n + clientKey);\n }",
"private void handleAccept(SelectionKey sk) throws IOException {\n\t\t\tSocketChannel accepted_channel = server_socket_channel.accept();\n\t\t\tif (accepted_channel != null) {\n\t\t\t\taccepted_channel.configureBlocking(false);\n\t\t\t\t\n\t\t\t\t//Create an SSL engine for this connection\n\t\t\t\tssl_engine = ssl_context.createSSLEngine(\"localhost\", accepted_channel.socket().getPort());\n\t\t\t\tssl_engine.setUseClientMode(false);\n\t\t\t\t\n\t\t\t\t// Create a SSL Socket Channel for the channel & engine\n\t\t\t\tSSLSocketChannel ssl_socket_channel = new SSLSocketChannel(accepted_channel, ssl_engine);\n\t\t\t\t\n\t\t\t\t// Create a new session class for the user\n\t\t\t\tSSLClientSession session = new SSLClientSession(ssl_socket_channel);\n\t\t\t\t\n\t\t\t\t// Register for OP_READ with ssl_socket_channel as attachment\n\t\t\t\tSelectionKey key = accepted_channel.register(server_selector, SelectionKey.OP_READ, session);\n\t\t\t\t\n\t\t\t\tsession.setSelectionKey(key);\n\t\t\t\t\n\t\t\t\tnum_players_connected++;\n\n\t\t\t\t// Add client to open channels map\n\t\t\t\topen_client_channels.put(ssl_socket_channel, session);\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"Thread with ID - \" + this.getName() + \" - accepted a connection.\");\n\t\t\t}\n\t\t}",
"void handleConnectionOpened();",
"private void handleAcceptable(@NotNull SelectionKey selectionKey) throws IOException {\n logger.debug(\"handling acceptable\");\n ServerSocketChannel serverChannel = (ServerSocketChannel) selectionKey.channel();\n SocketChannel socketChannel = serverChannel.accept();\n logger.debug(\"got client socket channel :\" + socketChannel.toString());\n\n socketChannel.configureBlocking(false);\n SelectionKey clientKey = socketChannel.register(selector, SelectionKey.OP_READ);\n MessageReader reader = new MessageReader((SocketChannel) clientKey.channel());\n clientKey.attach(reader);\n }",
"public void sessionRequested(final JingleSessionRequest request) {\n incCounter();\n System.out.println(\"Session request detected, from \" + request.getFrom() + \": accepting.\");\n\n // We accept the request\n try {\n JingleSession session1 = request.accept();\n session1.startIncoming();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"private void accept(SelectionKey key) throws IOException {\n\t\tServerSocketChannel serverSocketChannel = (ServerSocketChannel) key\n\t\t\t\t.channel();\n\n\t\tSocketChannel socketChannel = serverSocketChannel.accept();\n\t\t// as usual, non blocking fashion here\n\t\tsocketChannel.configureBlocking(false);\n\n\t\t// after registering, this socket channel goes to READ state\n\t\t// since we expect some request from it\n\t\tsocketChannel.register(this.selector, SelectionKey.OP_READ);\n\t}",
"ClientConnection connection();",
"private void accept(SelectionKey key) throws IOException {\n ServerSocketChannel serverSocketChannel = (ServerSocketChannel) key.channel();\n\n // Accept the connection and make it non-blocking\n SocketChannel socketChannel = serverSocketChannel.accept();\n Socket socket = socketChannel.socket();\n // ABHIGYAN:\n socketChannel.socket().setKeepAlive(true);\n socketChannel.configureBlocking(false);\n // lookup ID for this hostIP and port.\n//\t\tincludeSocketChannelInConnectedList(socketChannel);\n\n // Register the new SocketChannel with our Selector, indicating\n // we'd like to be notified when there's data waiting to be read\n socketChannel.register(this.selector, SelectionKey.OP_READ);\n }",
"public void sessionRequested(final JingleSessionRequest request) {\n System.out.println(\"Session request detected, from \" + request.getFrom() + \": accepting.\");\n try {\n // We accept the request\n JingleSession session1 = request.accept();\n\n session1.addListener(new JingleSessionListener() {\n public void sessionClosed(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionClosed().\");\n }\n\n public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {\n System.out.println(\"sessionClosedOnError().\");\n }\n\n public void sessionDeclined(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionDeclined().\");\n }\n\n public void sessionEstablished(PayloadType pt, TransportCandidate rc, final TransportCandidate lc,\n JingleSession jingleSession) {\n incCounter();\n System.out.println(\"Responder: the session is fully established.\");\n System.out.println(\"+ Payload Type: \" + pt.getId());\n System.out.println(\"+ Local IP/port: \" + lc.getIp() + \":\" + lc.getPort());\n System.out.println(\"+ Remote IP/port: \" + rc.getIp() + \":\" + rc.getPort());\n }\n\n public void sessionMediaReceived(JingleSession jingleSession, String participant) {\n // Do Nothing\n }\n\n public void sessionRedirected(String redirection, JingleSession jingleSession) {\n }\n });\n\n session1.startIncoming();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void sessionRequested(final JingleSessionRequest request) {\n System.out.println(\"Session request detected, from \" + request.getFrom() + \": accepting.\");\n try {\n // We accept the request\n JingleSession session1 = request.accept();\n\n session1.addListener(new JingleSessionListener() {\n public void sessionClosed(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionClosed().\");\n }\n\n public void sessionClosedOnError(XMPPException e, JingleSession jingleSession) {\n System.out.println(\"sessionClosedOnError().\");\n }\n\n public void sessionDeclined(String reason, JingleSession jingleSession) {\n System.out.println(\"sessionDeclined().\");\n }\n\n public void sessionEstablished(PayloadType pt, TransportCandidate rc, TransportCandidate lc,\n JingleSession jingleSession) {\n incCounter();\n System.out.println(\"Responder: the session is fully established.\");\n System.out.println(\"+ Payload Type: \" + pt.getId());\n System.out.println(\"+ Local IP/port: \" + lc.getIp() + \":\" + lc.getPort());\n System.out.println(\"+ Remote IP/port: \" + rc.getIp() + \":\" + rc.getPort());\n }\n\n public void sessionMediaReceived(JingleSession jingleSession, String participant) {\n // Do Nothing\n }\n\n public void sessionRedirected(String redirection, JingleSession jingleSession) {\n }\n });\n\n session1.startIncoming();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"void startListening()\n {\n if (outstanding_accept != null || open_connection != null) {\n return;\n }\n \n outstanding_accept = new AcceptThread(bt_adapter, handler);\n outstanding_accept.start();\n }",
"private void accept(final SelectionKey key) throws IOException {\n\t\tfinal ServerSocketChannel serverSocketChannel = (ServerSocketChannel) key\n\t\t\t\t.channel();\n\n\t\t// Accept the connection and make it non-blocking\n\t\tfinal SocketChannel socketChannel = serverSocketChannel.accept();\n\n\t\tLOG.info(String.format(\"%s connected\", socketChannel.socket()\n\t\t\t\t.getRemoteSocketAddress()));\n\n\t\tthis.worker.addClient(new SocketConnectedClientImpl(socketChannel));\n\n\t\tsocketChannel.configureBlocking(false);\n\n\t\t// Register the new SocketChannel with our Selector, indicating\n\t\t// we'd like to be notified when there's data waiting to be read\n\t\tsocketChannel.register(this.selector, SelectionKey.OP_READ);\n\t}",
"private void listenForConnection() throws IOException {\n\twhile(true) {\n System.out.println(\"Waiting for connection...\");\n // Wait for client to connect\n Socket cli = server.accept();\n if(connlist.size() < MAX_CONN) {\n\t\t// if numCli is less then 100\n initConnection(cli);\n }\n\t}\n }",
"public static boolean isConnect(HttpServletRequest argRequest) {\r\n\t\treturn HttpConstants.CONNECT.equalsIgnoreCase(argRequest.getMethod());\r\n\t}",
"private void handleConnection(Socket socket) throws IOException{\n \n if (isMonitoringEnabled()) {\n getGlobalRequestProcessor().increaseCountOpenConnections();\n getPipelineStat().incrementTotalAcceptCount();\n }\n\n getReadBlockingTask(socket).execute();\n }",
"private boolean processRequest(Connection conn)\n {\n String line = null;\n URL url;\n String path;\n\n /*\n * Read the request line.\n */\n try {\n line = DataInputStreamUtil.readLineIntr(conn.getInputStream());\n }\n catch(InterruptedException e) {\n logError(\"Cannot read request line: connection timeout\");\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST, \"connection timeout\");\n return false;\n }\n catch(IOException e) {\n logError(\"Cannot read request line: I/O error\"\n + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.SRVCE_NOT_AVAILABLE,\n \"I/O error\" + getExceptionMessage(e));\n return false;\n }\n\n /*\n * Parse the request line, and read the request headers.\n */\n try {\n _req.read(line);\n }\n catch(MalformedURLException e) {\n logError(\"Malformed URI in HTTP request\" + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Invalid URI in HTTP request\"\n + getExceptionMessage(e));\n return false;\n }\n catch(MalformedHTTPReqException e) {\n logError(\"Malformed HTTP request\" + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Invalid HTTP request\" + getExceptionMessage(e));\n return false;\n }\n catch(InterruptedException e) {\n logError(\"Cannot read request: connection timeout\");\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST, \"connection timeout\");\n return false;\n }\n catch(IOException e) {\n logError(\"Cannot read request: I/O error\" + getExceptionMessage(e));\n _req.sendHtmlErrorPage(HTTPStatusCode.SRVCE_NOT_AVAILABLE,\n \"I/O error\" + getExceptionMessage(e));\n return false;\n }\n\n if (DEBUG && _debugLevel > 1) {\n debugPrintLn(\"Request: '\" + _req.getReqLine() + \"'\");\n }\n\n /*\n * Process the request based on the request-URI type. The asterisk\n * option (RFC2068, sec. 5.1.2) is not supported.\n */\n if ( (path = _req.getPath()) != null) {\n return redirectClient(path);\n }\n else {\n if ( (url = _req.getURL()) != null) {\n // The redirector is being accessed as a proxy.\n\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"Cannot retrieve URL \" + url\n + \"\\n<P>\\n\"\n + \"Invalid URL: unexpected access protocol \"\n + \"(e.g., `http://')\\n\");\n }\n else {\n logError(\"unsupported request-URI: \" + _req.getReqLine());\n _req.sendHtmlErrorPage(HTTPStatusCode.BAD_REQUEST,\n \"unsupported request-URI\");\n }\n return false;\n }\n }",
"void handleRequest();",
"public void handleClientRequest() {\n System.out.println(\"... new ConnectionHandler constructed ...\");\n try {\n while (true) {\n // Get input data from client over socket\n String line = br.readLine();\n String[] lineArray = line.split(\" \");\n String requestType = lineArray[0];\n String resourceName = lineArray[1];\n // Log this request\n log.append(\"\\nRequest at \").append(fldt).append(\":\\n\").append(line);\n log.newLine();\n File f = new File(path + resourceName);\n String contentLength = String.valueOf(f.length());\n\n // Interpret request and respond accordingly\n if (!f.isFile()) {\n byte[] response = getHeader(404, contentLength, resourceName);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n404 Not Found\");\n log.newLine();\n break;\n } else if (requestType.contains(\"GET\")) {\n byte[] header = getHeader(200, contentLength, resourceName);\n byte[] content = getContent(f);\n byte[] response = new byte[header.length + content.length];\n System.arraycopy(header, 0, response, 0, header.length);\n System.arraycopy(content, 0, response, header.length, content.length);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n200 OK\");\n log.newLine();\n break;\n } else if (requestType.equals(\"HEAD\")) {\n byte[] response = getHeader(200, contentLength, resourceName);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n200 OK\");\n log.newLine();\n break;\n } else if (requestType.equals(\"DELETE\")) {\n f.delete();\n break;\n } else {\n byte[] response = getHeader(501, contentLength, resourceName);\n\n os.write(response);\n // Log this response\n log.append(\"Response code:\\n501 Not Implemented\");\n log.newLine();\n break;\n }\n }\n cleanUp();\n } catch (IOException | IndexOutOfBoundsException e) {\n System.err.println(\"ConnectionHandler:handleClientRequest (error): \" + e.getMessage());\n cleanUp();\n }\n }",
"public void accept()\n { ua.accept();\n changeStatus(UA_ONCALL);\n if (ua_profile.hangup_time>0) automaticHangup(ua_profile.hangup_time); \n printOut(\"press 'enter' to hangup\"); \n }",
"public void acceptClient() {\n if (mBluetoothAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, DISCOVERABLE_DURATION);\n mContext.startActivity(discoverableIntent);\n }\n\n stop();\n\n mAcceptThread = new AcceptThread();\n mAcceptThread.start();\n }",
"protected abstract boolean accept(InputStream inputStream) throws IOException;",
"@Override\n\tpublic void run() {\n\t\tSocket connect_port = null;\n\t\twhile (true) {\t\t\t\n\t\t\ttry {\n\t\t\t\tconnect_port = this.listen_port.accept();\n\t\t\t\tRequest req = new Request(connect_port);\n\t\t\t\tthis.pool.submit(req);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"void acceptArtist(UUID requestId) throws\n CantAcceptRequestException,\n ConnectionRequestNotFoundException;",
"@Override\n protected void handleRequest(final Message request, final ConnectionKey connkey, final Peer peer) {\n final Message answer = new Message();\n answer.prepareResponse(request);\n AVP avp;\n avp = request.find(ProtocolConstants.DI_SESSION_ID);\n if (avp != null) {\n answer.add(avp);\n }\n node().addOurHostAndRealm(answer);\n avp = request.find(ProtocolConstants.DI_CC_REQUEST_TYPE);\n if (avp == null) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_MISSING_AVP,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP,\n new AVP[]{new AVP(ProtocolConstants.DI_CC_REQUEST_TYPE, new byte[]{})})});\n return;\n }\n final int ccRequestType; // = -1;\n try {\n ccRequestType = new AVP_Unsigned32(avp).queryValue();\n } catch (final InvalidAVPLengthException ex) {\n throw new AssertionError(\"Unexpected exception: \" + ex, ex);\n }\n if (ccRequestType != ProtocolConstants.DI_CC_REQUEST_TYPE_INITIAL_REQUEST\n && ccRequestType != ProtocolConstants.DI_CC_REQUEST_TYPE_UPDATE_REQUEST\n && ccRequestType != ProtocolConstants.DI_CC_REQUEST_TYPE_TERMINATION_REQUEST\n && ccRequestType != ProtocolConstants.DI_CC_REQUEST_TYPE_EVENT_REQUEST) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n\n //This test server does not support multiple-services-cc\n avp = request.find(ProtocolConstants.DI_MULTIPLE_SERVICES_CREDIT_CONTROL);\n if (avp != null) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n avp = request.find(ProtocolConstants.DI_MULTIPLE_SERVICES_INDICATOR);\n if (avp != null) {\n int indicator = -1;\n try {\n indicator = new AVP_Unsigned32(avp).queryValue();\n } catch (final InvalidAVPLengthException ex) {\n throw new AssertionError(\"Unexpected exception: \" + ex, ex);\n }\n if (indicator != ProtocolConstants.DI_MULTIPLE_SERVICES_INDICATOR_MULTIPLE_SERVICES_NOT_SUPPORTED) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n }\n\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_SUCCESS));\n avp = request.find(ProtocolConstants.DI_AUTH_APPLICATION_ID);\n if (avp != null) {\n answer.add(avp);\n }\n avp = request.find(ProtocolConstants.DI_CC_REQUEST_TYPE);\n if (avp != null) {\n answer.add(avp);\n }\n avp = request.find(ProtocolConstants.DI_CC_REQUEST_NUMBER);\n if (avp != null) {\n answer.add(avp);\n }\n\n switch (ccRequestType) {\n case ProtocolConstants.DI_CC_REQUEST_TYPE_INITIAL_REQUEST:\n case ProtocolConstants.DI_CC_REQUEST_TYPE_UPDATE_REQUEST:\n case ProtocolConstants.DI_CC_REQUEST_TYPE_TERMINATION_REQUEST:\n //grant whatever is requested\n avp = request.find(ProtocolConstants.DI_REQUESTED_SERVICE_UNIT);\n if (avp != null) {\n final AVP g = new AVP(avp);\n g.code = ProtocolConstants.DI_GRANTED_SERVICE_UNIT;\n answer.add(avp);\n }\n break;\n case ProtocolConstants.DI_CC_REQUEST_TYPE_EVENT_REQUEST:\n //examine requested-action\n avp = request.find(ProtocolConstants.DI_REQUESTED_ACTION);\n if (avp == null) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_MISSING_AVP,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP,\n new AVP[]{new AVP(ProtocolConstants.DI_REQUESTED_ACTION, new byte[]{})})});\n return;\n }\n int requestedAction = -1;\n try {\n requestedAction = new AVP_Unsigned32(avp).queryValue();\n } catch (final InvalidAVPLengthException ex) {\n throw new AssertionError(\"Unexpected exception: \" + ex, ex);\n }\n switch (requestedAction) {\n case ProtocolConstants.DI_REQUESTED_ACTION_DIRECT_DEBITING:\n //nothing. just indicate success\n break;\n case ProtocolConstants.DI_REQUESTED_ACTION_REFUND_ACCOUNT:\n //nothing. just indicate success\n break;\n case ProtocolConstants.DI_REQUESTED_ACTION_CHECK_BALANCE:\n //report back that the user has sufficient balance\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_CHECK_BALANCE_RESULT,\n ProtocolConstants.DI_DI_CHECK_BALANCE_RESULT_ENOUGH_CREDIT));\n break;\n case ProtocolConstants.DI_REQUESTED_ACTION_PRICE_ENQUIRY:\n //report back a price of DKK42.17 per kanelsnegl\n answer.add(new AVP_Grouped(ProtocolConstants.DI_COST_INFORMATION,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_UNIT_VALUE,\n new AVP[]{new AVP_Integer64(ProtocolConstants.DI_VALUE_DIGITS, 4217),\n new AVP_Integer32(ProtocolConstants.DI_EXPONENT, -2)\n }),\n new AVP_Unsigned32(ProtocolConstants.DI_CURRENCY_CODE, 208),\n new AVP_UTF8String(ProtocolConstants.DI_COST_UNIT, \"kanelsnegl\")\n }));\n break;\n default: {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n\n }\n break;\n default:\n throw new AssertionError(\"Unexpected value:\" + ccRequestType);\n }\n\n Utils.setMandatory_RFC3588(answer);\n\n try {\n answer(answer, connkey);\n } catch (final NotAnAnswerException ex) {\n throw new AssertionError(\"Unexpected exception: \" + ex, ex);\n }\n }",
"public final boolean accept() {\n boolean result = false;\n\n try {\n result = accept(inputStream);\n }\n catch (IOException e) {\n // translate into a runtime exception.\n throw new IllegalStateException(e);\n }\n\n return result;\n }",
"public abstract void handleClient(Client conn);",
"public Socket AcceptIncomingConnections() {\n try {\n return welcomeSocket.accept();\n } catch (IOException e) {\n System.out.println(\"Welcome Socket could not accept incoming connection. Maybe restart the server\");\n return null;\n }\n }",
"@Override\n public void onConnectionInitiated(@NonNull String endpointId, @NonNull ConnectionInfo connectionInfo) {\n Log.e(TAG, SUB_TAG+\"Accepted: \" + endpointId + \"\\n\\t\" + connectionHandler.getDeviceName());\n\n endPointNames.put(endpointId, connectionInfo.getEndpointName());\n// connectedUsers.put(endpointId, connectionInfo.getEndpointName());\n MainActivity.makeLog(\"Accepting connection with \"+endpointId+\"/\"+connectionInfo.getEndpointName());\n connectionHandler.getClient().acceptConnection(endpointId, payloadCallback);\n }",
"protected void handleConnection(Socket socket) {\n try {\n PrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n BufferedReader in = new BufferedReader(\n new InputStreamReader(socket.getInputStream()\n ));\n \n new Thread(new RequestHandler(in, out)).start();\n }\n catch (IOException e) {\n\n }\n\n }",
"private void acceptConnection() throws Exception {\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \"TcpConnectionListener.acceptConnection()\");\n\n Socket sock = proxyService.getServerSocket().accept();\n String inaddr = sock.getInetAddress().getHostAddress();\n\n connectionCount++;\n\n if (logger.isLoggable(BasicLevel.INFO))\n logger.log(BasicLevel.INFO, \" -> accept connection from \" + inaddr);\n\n try {\n sock.setTcpNoDelay(true);\n\n // Fix bug when the client doesn't use the right protocol (e.g. Telnet)\n // and blocks this listener.\n sock.setSoTimeout(timeout);\n\n InputStream is = sock.getInputStream();\n NetOutputStream nos = new NetOutputStream(sock);\n\n byte[] magic = StreamUtil.readByteArrayFrom(is, 8);\n for (int i = 0; i < 5; i++) {\n if (magic.length == i || magic[i] != MetaData.joramMagic[i] && magic[i] > 0) {\n String errorMsg = \"Bad magic number. Client is not compatible with JORAM.\";\n protocolErrorCount++;\n throw new IllegalAccessException(errorMsg);\n }\n }\n if (magic[7] != MetaData.joramMagic[7]) {\n if (magic[7] > 0 && MetaData.joramMagic[7] > 0) {\n String errorMsg = \"Bad protocol version number \" + magic[7] + \" != \" + MetaData.joramMagic[7];\n protocolErrorCount++;\n throw new IllegalAccessException(errorMsg);\n }\n \n logger.log(BasicLevel.WARN,\n \"Wildcard protocol version number: from stream = \" + magic[7] + \", from MetaData = \" + MetaData.joramMagic[7]);\n }\n\n //read the ack mode(noAckedQueue)\n boolean noAckedQueue = StreamUtil.readBooleanFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read noAckedQueue = \" + noAckedQueue);\n if (noAckedQueue)\n TcpProxyService.createExecutors();\n \n long dt = Math.abs(StreamUtil.readLongFrom(is) - System.currentTimeMillis());\n if (dt > clockSynchroThreshold)\n logger.log(BasicLevel.WARN, \" -> bad clock synchronization between client and server: \" + dt);\n StreamUtil.writeTo(dt, nos);\n\n Identity identity = Identity.read(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read identity = \" + identity);\n\n int key = StreamUtil.readIntFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read key = \" + key);\n\n int heartBeat = 0;\n if (key == -1) {\n heartBeat = StreamUtil.readIntFrom(is);\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> read heartBeat = \" + heartBeat);\n }\n \n if (logger.isLoggable(BasicLevel.INFO))\n logger.log(BasicLevel.INFO, \" -> open connection \" + identity + \"/\" + key + \" - \" + heartBeat);\n \n GetProxyIdNot gpin = new GetProxyIdNot(identity, inaddr);\n AgentId proxyId;\n try {\n gpin.invoke(AdminTopic.getDefault());\n proxyId = gpin.getProxyId();\n } catch (Exception exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \" -> login failed\", exc);\n failedLoginCount++;\n StreamUtil.writeTo(1, nos);\n StreamUtil.writeTo(exc.getMessage(), nos);\n nos.send();\n return;\n }\n\n if (logger.isLoggable(BasicLevel.DEBUG))\n logger.log(BasicLevel.DEBUG, \" -> open connection, proxyId=\" + proxyId);\n \n IOControl ioctrl;\n ReliableConnectionContext ctx;\n if (key == -1) {\n OpenConnectionNot ocn = new OpenConnectionNot(Type.RELIABLE, heartBeat, noAckedQueue);\n ocn.invoke(proxyId);\n StreamUtil.writeTo(0, nos);\n ctx = (ReliableConnectionContext) ocn.getConnectionContext();\n key = ctx.getKey();\n StreamUtil.writeTo(key, nos);\n nos.send();\n ioctrl = new IOControl(sock);\n } else {\n GetConnectionNot gcn = new GetConnectionNot(key);\n try {\n gcn.invoke(proxyId);\n } catch (Exception exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \"TcpConnectionListener: reconnection failed\", exc);\n StreamUtil.writeTo(1, nos);\n StreamUtil.writeTo(exc.getMessage(), nos);\n nos.send();\n return;\n }\n ctx = (ReliableConnectionContext) gcn.getConnectionContext();\n StreamUtil.writeTo(0, nos);\n nos.send();\n ioctrl = new IOControl(sock, ctx.getInputCounter());\n\n // Close the remaining connection if it exists\n TcpConnection tcpConnection = proxyService.getConnection(proxyId, key);\n if (tcpConnection != null) {\n tcpConnection.close();\n }\n }\n\n // Reset the timeout in order to enable the server to indefinitely\n // wait for requests.\n sock.setSoTimeout(0);\n\n TcpConnection tcpConnection = new TcpConnection(ioctrl, ctx, proxyId, proxyService, identity);\n tcpConnection.start();\n } catch (IllegalAccessException exc) {\n if (logger.isLoggable(BasicLevel.ERROR))\n logger.log(BasicLevel.ERROR, \"TcpConnectionListener: close connection\", exc);\n sock.close();\n throw exc;\n } catch (IOException exc) {\n if (logger.isLoggable(BasicLevel.WARN))\n logger.log(BasicLevel.WARN, \"TcpConnectionListener: close socket\", exc);\n sock.close();\n throw exc;\n }\n }",
"@Override\n public synchronized void requestReceived(final C conn ) {\n if (debug())\n dprint( \"->requestReceived: connection \" + conn ) ;\n\n try {\n ConnectionState<C> cs = getConnectionState( conn ) ;\n\n final int totalConnections = totalBusy + totalIdle ;\n if (totalConnections > highWaterMark())\n reclaim() ;\n\n ConcurrentQueue.Handle<C> reclaimHandle = cs.reclaimableHandle ;\n if (reclaimHandle != null) {\n if (debug())\n dprint( \".requestReceived: \" + conn\n + \" removed from reclaimableQueue\" ) ;\n reclaimHandle.remove() ;\n }\n\n int count = cs.busyCount++ ;\n if (count == 0) {\n if (debug())\n dprint( \".requestReceived: \" + conn\n + \" transition from idle to busy\" ) ;\n\n totalIdle-- ;\n totalBusy++ ;\n }\n } finally {\n if (debug())\n dprint( \"<-requestReceived: connection \" + conn ) ;\n }\n }",
"public void sessionRequested(final JingleSessionRequest request) {\n System.out.println(\"Session request detected, from \" + request.getFrom());\n\n // We reject the request\n try {\n JingleSession session = request.accept();\n //session.setInitialSessionRequest(request);\n session.startIncoming();\n session.terminate();\n } catch (XMPPException e) {\n e.printStackTrace();\n }\n\n }",
"void acceptRequest(Friend pendingRequest);",
"public STAFResult acceptRequest(STAFServiceInterfaceLevel3.RequestInfo requestInfo)\n\t{\n\t\tInfoInterface.RequestInfo info = new InfoInterface.RequestInfo(requestInfo.request);\n\t\treturn super.acceptRequest(info);\n\t}",
"public SocketChannel accept(SelectionKey key, Selector selector, Pool<String, RequestWorker> clientReqPool, Server parentThread) throws IOException{\r\n\t\t// Step 1- Get the SocketChannel of Server.\r\n\t\tServerSocketChannel serverSocketChannel = (ServerSocketChannel) key.channel();\r\n\r\n\t\t/*\r\n\t\t * Accept the connection and make it non-blocking\r\n\t\t * Socket can be achieved from client's socketchannel\r\n\t\t * as well as Server Socket channel.\r\n\t\t */\r\n\t\tSocketChannel clientSocketChannel = serverSocketChannel.accept();\r\n\t\tSocket socket = clientSocketChannel.socket();\r\n\t\tclientSocketChannel.configureBlocking(false);\r\n\t\t/*\r\n\t\t * Register the Client's Socket Channel with selector and Key as 'READ'.\r\n\t\t */\t\t\r\n\t\tclientSocketChannel.register(selector, SelectionKey.OP_READ);\t\t\t\t\r\n\r\n\t\tlogger.info(\"Check Point 2 :CLIENT CONNECTED : \"+socket.getRemoteSocketAddress() + \" -- PASS\");\r\n\t\tparentThread.getReqPool().add(socket.getRemoteSocketAddress().toString(), new RequestWorker(key, socket.getRemoteSocketAddress()+\"\",parentThread));\t\t\r\n\t\treturn clientSocketChannel;\r\n\t}",
"void responseSent( C conn ) ;",
"public final ConnectionRequest requestConnection(final HttpRoute route, final Object state) {\n/* 193 */ Args.notNull(route, \"Route\");\n/* 194 */ return new ConnectionRequest()\n/* */ {\n/* */ \n/* */ public boolean cancel()\n/* */ {\n/* 199 */ return false;\n/* */ }\n/* */ \n/* */ \n/* */ public HttpClientConnection get(long timeout, TimeUnit timeUnit) {\n/* 204 */ return BasicHttpClientConnectionManager.this.getConnection(route, state);\n/* */ }\n/* */ };\n/* */ }",
"private ISocket acceptISocket() throws IOException {\n // Manage client depending the connection\n if (serverSocket instanceof AdHocServerSocketBluetooth) {\n return new AdHocSocketBluetooth((BluetoothSocket) serverSocket.accept());\n } else {\n return new AdHocSocketWifi((Socket) serverSocket.accept());\n }\n }",
"interface Connect extends RconConnectionEvent, Cancellable {}",
"public void acceptSocket(AsynchronousSocketChannel arg0) {\n\r\n\t\tnew TCPClient(arg0);\r\n\t}",
"public void run() {\n try {\n // accepts the connection request.\n SelectableChannel peerHandle = this._handle.accept();\n if (peerHandle != null) {\n // now, create a service handler object to serve the\n // the client.\n ServiceHandler handler =\n this._factory.createServiceHandler(\n this._reactor,\n peerHandle);\n if (handler != null)\n // give the service handler object a chance to initialize itself.\n handler.open();\n }\n } catch (IOException ex) {\n MDMS.ERROR(ex.getMessage());\n }\n }",
"public void listenInitialValuesRequest()\n\t{\n\t\ttry \n\t\t{\n\t\t\tconnectionWindow = CentralSystem.getCentralSystem().getControllerConnectionWindow().getConnectionWindow();\n\t\t\t\n\t\t\tSystem.out.println(\"-----------------------------\");\n\t\t\tSystem.out.println(\"Waiting initial values request...\");\n\t\t\t\n\t\t\tconnectionWindow.addInformationText(\"-----------------------------\");\n\t\t\tconnectionWindow.addInformationText(\"Waiting initial values request...\");\n\t\t\t\n\t\t\tconnection = serverSocket.accept();\n\t\t\tSystem.out.println(\"Request acepted.\");\n\t\t\tconnectionWindow.addInformationText(\"Request acepted.\");\n\t\t\t\n\t\t\tObjectOutputStream sendData = new ObjectOutputStream(connection.getOutputStream());\n\t\t\tObjectInputStream clientRequest = new ObjectInputStream(connection.getInputStream());\n\t\t\t\n\t\t\tsendData.writeObject(PublicTransportCenter.getPublicTransportCenter());\n\t\t\t\n\t\t\tif(clientRequest.readObject().equals(\"true\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Data could sent successfully.\");\n\t\t\t\tconnectionWindow.addInformationText(\"Data could sent successfully.\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Error sending Data, false answer.\");\n\t\t\t\tconnectionWindow.addInformationText(\"Error sending Data, false answer.\");\n\t\t\t}\n\t\t} \n\t\tcatch (IOException e)\n\t\t{\n\t\t\tSystem.err.println(\"Error I/O ServerSocket.\");\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (ClassNotFoundException e) {\n\t\t\tSystem.err.println(\"Answer isn't recognized.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\n public void onConnectionRequest(Socket socket) {\n ConnectionHandler connectionHandler = makeConnection(socket);\n if(connectionHandler != null){\n readOnlyConnections.add(connectionHandler);\n onConnectionEstablished(connectionHandler);\n }\n }",
"public abstract void handleServer(ServerConnection conn);",
"private boolean read (SocketChannel chan, SelectionKey key) {\n HttpTransaction msg;\n boolean res;\n try {\n InputStream is = new BufferedInputStream (new NioInputStream (chan));\n String requestline = readLine (is);\n MessageHeader mhead = new MessageHeader (is);\n String clen = mhead.findValue (\"Content-Length\");\n String trferenc = mhead.findValue (\"Transfer-Encoding\");\n String data = null;\n if (trferenc != null && trferenc.equals (\"chunked\"))\n data = new String (readChunkedData (is));\n else if (clen != null)\n data = new String (readNormalData (is, Integer.parseInt (clen)));\n String[] req = requestline.split (\" \");\n if (req.length < 2) {\n /* invalid request line */\n return false;\n }\n String cmd = req[0];\n URI uri = null;\n try {\n uri = new URI (req[1]);\n msg = new HttpTransaction (this, cmd, uri, mhead, data, null, key);\n cb.request (msg);\n } catch (URISyntaxException e) {\n System.err.println (\"Invalid URI: \" + e);\n msg = new HttpTransaction (this, cmd, null, null, null, null, key);\n msg.sendResponse (501, \"Whatever\");\n }\n res = false;\n } catch (IOException e) {\n res = true;\n }\n return res;\n }",
"public MySocket accept(){\n\t\ttry{\r\n\t\t\treturn new MySocket(sSocket.accept());\r\n\t\t}catch(IOException e){\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn null;\r\n\t}",
"private void handleClient() {\n\t\t//Socket link = null;\n\t\tRequestRecord reqRec = new RequestRecord();\n\t\tResponder respondR = new Responder();\n\t\t\n\t\ttry {\n\t\t\t// STEP 1 : accepting client request in client socket\n\t\t\t//link = servSock.accept(); //-----> already done in *ThreadExecutor*\n\t\t\t\n\t\t\t// STEP 2 : creating i/o stream for socket\n\t\t\tScanner input = new Scanner(link.getInputStream());\n\t\t\tdo{\n\t\t\t\t//PrintWriter output = new PrintWriter(link.getOutputStream(),true);\n\t\t\t\t//DataOutputStream ds = new DataOutputStream(link.getOutputStream());\n\t\t\t\tint numMsg = 0;\n\t\t\t\tString msg = input.nextLine();\n\t\t\t\t\n\t\t\t\t//to write all requests to a File\n\t\t\t\tFileOutputStream reqFile = new FileOutputStream(\"reqFile.txt\");\n\t\t\t\tDataOutputStream dat = new DataOutputStream(reqFile);\n\t\t\t\t\n\t\t\t\t// STEP 4 : listening iteratively till close string send\n\t\t\t\twhile(msg.length()>0){\n\t\t\t\t\tnumMsg++;\n\t\t\t\t\tdat.writeChars(msg + \"\\n\");\n\t\t\t\t\tSystem.out.println(\"\\nNew Message Received\");\n\t\t\t\t\tif(reqRec.setRecord(msg)==false)\n\t\t\t\t\t\tSystem.out.println(\"\\n-----\\nMsg#\"+numMsg+\": \"+msg+\":Error with Request Header Parsing\\n-----\\n\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.println(\"Msg#\" + numMsg + \": \" + msg);\n\t\t\t\t\tmsg = input.nextLine();\n\t\t\t\t};\n\t\t\t\tdat.writeChars(\"\\n-*-*-*-*-*-*-*-*-*-*-*-*-*-\\n\\n\");\n\t\t\t\tdat.close();\n\t\t\t\treqFile.close();\n\t\t\t\tSystem.out.println(\"---newEST : \" + reqRec.getResource());\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"\\n==========Send HTTP Response for Get Request of\\n\"+reqRec.getResource()+\"\\n***********\\n\");\n\t\t\t\tif(respondR.sendHTTPResponseGET(reqRec.getResource(), link)==true)//RES, ds)==true)\n\t\t\t\t\tSystem.out.println(\"-----------Resource Read\");\n\t\t\t\tSystem.out.println(\"Total Messages Transferred: \" + numMsg);\n\t\t\t\t//link.close();\n\t\t\t\tif(reqRec.getConnection().equalsIgnoreCase(\"Keep-Alive\")==true && respondR.isResourceExisting(reqRec.getResource())==true)\n\t\t\t\t\tlink.setKeepAlive(true);\n\t\t\t\telse\n\t\t\t\t\tbreak;\n\t\t\t}while(true);\n\t\t\tSystem.out.print(\"Request Link Over as Connection: \" + reqRec.getConnection());\n\t\t} catch (IOException e) {\n\t\t\tif(link.isClosed())\n\t\t\t\tSystem.out.print(\"\\n\\nCritical(report it to developer):: link closed at exception\\n\\n\");\n\t\t\tSystem.out.println(\"Error in listening.\\n {Error may be here or with RespondR}\\nTraceString: \");\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// STEP 5 : closing the connection\n\t\t\tSystem.out.println(\"\\nClosing Connection\\n\");\n\t\t\ttry {\t\t\t\t\n\t\t\t\tlink.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"Unable to disconnect.\\nTraceString: \");\n\t\t\t\te.printStackTrace();\n\t\t\t\tSystem.exit(1);\n\t\t\t}\n\t\t}/*ends :: try...catch...finally*/\n\t\t\n\t}",
"private void manageAcceptedPacket(MeetingPacket packet) {\n Console.comment(\"=> Meeting response packet accepted from \" + packet.getSourceAddress()) ;\n\n if(this.callbackOnAccepted != null) {\n this.callbackOnAccepted.handle(packet.getSourceUser()) ;\n }\n }",
"public boolean isAccept(){\n return isAccept; \n }",
"@Override\r\n\tpublic void handleRequest(){\r\n\r\n\t\ttry {\r\n\t\t\t_inFromClient = new ObjectInputStream(_socket.getInputStream());\r\n\t\t\t_outToClient = new ObjectOutputStream(_socket.getOutputStream());\r\n\t\t _humanQuery = (String) _inFromClient.readObject();\r\n\t\t _outToClient.writeObject(manageCommunication());\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t}",
"Notification createConnectionRequestNotification(Connection conn );",
"public void acceptTimeout();",
"protected abstract void processConnection(Socket socket);",
"private void manageConnectedSocket(BluetoothSocket acceptSocket) {\n\n }",
"private static void accept(SelectionKey key) throws IOException {\n\t\tServerSocketChannel ssc = (ServerSocketChannel) key.channel();\r\n\t\t\r\n\t\t// We use the original SSC to NON-BLOCKINGLY accept the new Socket (Channel)\r\n\t\tSocketChannel sc = ssc.accept(); // nonblocking and never null (we know it has a client socket waiting)\r\n\t\t\r\n\t\t// We similarly set the SocketChannel to be non-blocking\r\n\t\tsc.configureBlocking(false);\r\n\t\t\r\n\t\t// now that we have the new SocketChannel, we must register it with the Selector.\r\n\t\t// -- The SAME Selector That the original ServerSocketChannel is using.\r\n\t\t// -- We can get this Selector from key.selector()\r\n\t\t//\r\n\t\t// We register it for READs Only at this point\r\n\t\t// -- For this socket, we want to know if anything is ready for reading\r\n\t\t// -- E.g.: The moment anybody writes something to this socket, we want to be ready to read it\r\n\t\t// Q: Why not reg it for reads AND writes?\r\n // A: Because we don't care about whether the SocketChannel is ready for WRITEs until after\r\n // we have actually READ something\r\n\t\tsc.register(key.selector(), SelectionKey.OP_READ);\r\n\t\t\r\n\t\t// recall: LinkedList implements Queue\r\n\t\t\r\n\t\t// Here, we prepare the new socket with a place to write pending data to\r\n // E.q.: We create a LinkedList that can hold ByteBuffers, keyed by the SocketChannel\r\n\t\t//\r\n\t\t// pendingData is a Map<SocketChannel, java.util.Queue<ByteBuffer>>\r\n\t\tpendingData.put(sc, new LinkedList<>());\t\t\t// recall: LinkedList implements Queue\r\n\t}",
"private void openConnection(){}",
"public void startListeningForConnection() {\n startInsecureListeningThread();\n }",
"@Override\n public void run() {\n try {\n this.in = new BufferedReader(new InputStreamReader(\n clientSocket.getInputStream()));\n this.out = clientSocket.getOutputStream();\n\n\n String str = \"\";\n while (!(str != null && !str.equals(\"\"))) {\n str = in.readLine();\n }\n\n handleRequest(str);\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n e.printStackTrace();\n }\n }",
"public synchronized void listen() {\n// synchronized (this) {\n try {\n String input;\n if ((input = in.readLine()) != null) {\n parseCommand(input);\n }\n } catch (IOException ex) {\n Logger.getLogger(ClientIO.class.getName()).log(Level.SEVERE, null, ex);\n }\n// }\n }",
"public AcceptThread() throws IOException {\n setName(\"TcpHarvester AcceptThread\");\n setDaemon(true);\n selector = Selector.open();\n for (ServerSocketChannel channel : serverSocketChannels) {\n channel.configureBlocking(false);\n channel.register(selector, SelectionKey.OP_ACCEPT);\n }\n }",
"public boolean request() {\n if (connection == null) {\n return false;\n }\n String json = new JsonBuilder(getRequestMessage()).getJson();\n if (UtilHelper.isEmptyStr(json)) {\n return false;\n }\n return connection.sendMessage(json);\n }",
"@Override\n public void run() {\n handleClientRequest();\n }",
"protected void connectionEstablished() {}",
"Boolean acceptRequest(User user);",
"boolean hasAvailableConnection();",
"@Override\n\tpublic void run() {\n\t\tif (FrameworkHandler.DEBUG_MODE){\n\t\t\tString strType = \"\";\n\t\t\tif (type == RULE_CONNECTION) strType = \"New RemoteRule Listener\";\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println(strType + \" LISTENING on port: \" + listeningSocket.getLocalPort());\n\t\t}\n\t\ttry {\n\t\t\twhile (running) {\n\t\t\t\tSocket newSocket = listeningSocket.accept();\n\t\t\t\t\n\t\t\t\tif (FrameworkHandler.DEBUG_MODE)\n\t\t\t\t\tSystem.out.println(\"New request obtained on \" + newSocket.getPort() + \"|\" + newSocket.getLocalPort());\n\t\t\t\t\n\t\t\t\tcreateNewConnection(newSocket);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tFrameworkHandler.exceptionLog(FrameworkHandler.LOG_ERROR, this, e);\n\t\t}\n\t}",
"@Override\n protected void handleConnection(final Socket sock) throws IOException {\n sock.getInputStream().read();\n\n stopAcceptingConnections();\n }",
"public void onConnection();",
"@Ignore\n\t@Test\n\tpublic void testAgentAccepts() {\n\t\tparty.connect(connection);\n\t\tparty.notifyChange(settings);\n\n\t\tBid bid = makeBid(\"1\", \"1\");// best pssible\n\t\tparty.notifyChange(new ActionDone(new Offer(otherparty, bid)));\n\t\tparty.notifyChange(new YourTurn());\n\t\tassertEquals(1, connection.getActions().size());\n\t\tassertTrue(connection.getActions().get(0) instanceof Accept);\n\n\t}",
"@Override\n public void run() {\n super.run(); // obtain connection\n if (connection == null)\n return; // problem obtaining connection\n\n try {\n request_spec.context.setAttribute\n (ExecutionContext.HTTP_CONNECTION, connection);\n\n doOpenConnection();\n\n HttpRequest request = (HttpRequest) request_spec.context.\n getAttribute(ExecutionContext.HTTP_REQUEST);\n request_spec.executor.preProcess\n (request, request_spec.processor, request_spec.context);\n\n response = request_spec.executor.execute\n (request, connection, request_spec.context);\n\n request_spec.executor.postProcess\n (response, request_spec.processor, request_spec.context);\n\n doConsumeResponse();\n\n } catch (Exception ex) {\n if (exception != null)\n exception = ex;\n\n } finally {\n conn_manager.releaseConnection(connection, -1, null);\n }\n }",
"public void awaitConnection(){\n System.out.println(\"Waiting for connection from client\");\n\n try {\n socket = server.accept();\n System.out.println(\"Client Connected!\");\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }",
"public void listen() {\n\t\tthread(\"NetworkClientInput\", () -> {\n\t\t\twhile (true) {\n\t\t\t\ttry {\n\t\t\t\t\tString str = in.readLine();\n\t\t\t\t\t\n\t\t\t\t\tif (str == null)\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\t\tSystem.out.println(\"[CLIENT] Received: \" + str);\n\t\t\t\t\ttry {\n\t\t\t\t\t\thandle(str);\n\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\tSystem.err.println(\"[Client] Error handling input\");\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(\"[Client] Disconnected.\");\n\t\t\t\t\tconnected = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tconnected = false;\n\t\t\texecutor.shutdown();\n\t\t\tsocket.close();\n\t\t});\n\t}",
"public void accept() {\n try {\n BufferedReader fromConsole = new BufferedReader(new InputStreamReader(System.in));\n String message;\n\n // loops infinitely, until #quit command is called, which sets run = false, and\n // stops the loop\n while (run) {\n message = fromConsole.readLine();\n if (message != null) {\n if (message.charAt(0) == '#') {\n command(message.substring(1));\n } else {\n client.handleMessageFromClientUI(message);\n }\n } else {\n client.handleMessageFromClientUI(message);\n }\n }\n }\n\n // Exceptions where the reader encounters an error\n catch (Exception ex) {\n System.out.println(\"Unexpected error while reading from console!\");\n System.out.println(ex.getMessage());\n }\n }",
"private void askForNumberOfRequests() {\n\t\tconnectToServer();\n\t\tout.println(\"How many requests have you handled ?\");\n\t\tout.flush();\n\t\tint count = 0;\n\t\ttry {\n\t\t\tcount = Integer.parseInt(in.readLine());\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot receive num requests from server\");\n\t\t}\n\t\tSystem.out.println(\"CLIENT: The number of requests are \" + count);\n\t\tdisconnectFromServer();\n\t}",
"public void handleRequest(Request req) {\n\n }",
"private void listen() {\n\t\tString message;\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tmessage = input.readLine();\n\t\t\t\tif (message == null) continue;\n\n\t\t\t\tif(message.equals(\"disconnect\")){\n\t\t\t\t\tThread t = new Thread(this::disconnect);\n\t\t\t\t\tt.start();\n\t\t\t\t\treturn;\n\t\t\t\t} else if(message.contains(\"PUSH\")) {\n\t\t\t\t\tparseMessage(message);\n\t\t\t\t} else if (message.equals(\"pong\")){\n\t\t\t\t\tponged = true;\n\t\t\t\t} else if(!validResponse) {\n\t\t\t\t\tsynchronized (this) {\n\t\t\t\t\t\tresponse = message;\n\t\t\t\t\t\tvalidResponse = true;\n\t\t\t\t\t\tnotifyAll();\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t} catch (IOException e) {\n\t\t\t\tThread t = new Thread(this::disconnect);\n\t\t\t\tt.start();\n\t\t\t\ttry {\n\t\t\t\t\tt.join();\n\t\t\t\t} catch (InterruptedException e1) {\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tresponse = null;\n\t\t\t\t\tvalidResponse = true;\n\t\t\t\t\tnotifyAll();\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}",
"public void acceptedSocket(long socketId) {}",
"boolean supportsAccepts();",
"public void acceptConversationInput ( String input ) {\n\t\texecute ( handle -> handle.acceptConversationInput ( input ) );\n\t}",
"private void acceptCall() {\n\t\ttry {\n\t\t\tupdateText(\"Pratar med \", call.getPeerProfile().getUserName());\n\t\t\tcall.answerCall(30);\n\t\t\tcall.startAudio();\n\t\t\tif (call.isMuted()) {\n\t\t\t\tcall.toggleMute();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tif (call != null) {\n\t\t\t\tcall.close();\n\t\t\t}\n\n\t\t}\n\t}",
"@Override\n\tpublic void receiveRequest() {\n\n\t}",
"void connectionActivity(ConnectionEvent ce);",
"public void startListening() {\n if (Util.isDebugBuild()) {\n Log.d(TAG, \"mAcceptThread: \" + mAcceptThread);\n }\n\n // Start the AcceptThread which listens for incoming connection requests\n if (mAcceptThread == null) {\n mAcceptThread = new AcceptThread(mContext, mHandler, services, this);\n }\n\n if (Util.isDebugBuild()) {\n Log.d(TAG, \"mAcceptThread.isAlive(): \" + mAcceptThread.isAlive());\n }\n\n if (!mAcceptThread.isAlive()) {\n mAcceptThread.start();\n }\n }",
"protected void handleRequest(dk.i1.diameter.Message request, ConnectionKey connkey, Peer peer) {\n\n String log = \"\";\n Message answer = new Message();\n answer.prepareResponse(request);\n AVP avp;\n avp = request.find(ProtocolConstants.DI_SESSION_ID);\n if (avp != null)\n answer.add(avp);\n node().addOurHostAndRealm(answer);\n //avp = request.find(ProtocolConstants.DI_CC_REQUEST_TYPE); DIAMETER_COMMAND_AA\n avp = request.find(ProtocolConstants.DI_AUTH_REQUEST_TYPE);\n if (avp == null) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_MISSING_AVP,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{new AVP(ProtocolConstants.DI_AUTH_REQUEST_TYPE, new byte[]{})})});\n return;\n }\n\n\n int aa_request_type = -1;\n try {\n aa_request_type = new AVP_Unsigned32(avp).queryValue();\n } catch (InvalidAVPLengthException ex) {\n }\n if (aa_request_type != ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE &&\n aa_request_type != ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE_ONLY &&\n aa_request_type != ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHORIZE_ONLY) {\n answerError(answer, connkey, ProtocolConstants.DIAMETER_RESULT_INVALID_AVP_VALUE,\n new AVP[]{new AVP_Grouped(ProtocolConstants.DI_FAILED_AVP, new AVP[]{avp})});\n return;\n }\n\n\n\n avp = request.find(ProtocolConstants.DI_AUTH_APPLICATION_ID);\n if (avp != null)\n answer.add(avp);\n avp = request.find(ProtocolConstants.DI_AUTH_REQUEST_TYPE);\n if (avp != null)\n answer.add(avp);\n\n\n switch (aa_request_type) {\n case ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE_ONLY:\n case ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHENTICATE:\n //grant whatever is requested\n avp = request.find(ProtocolConstants.DI_USER_NAME);\n answer.add(avp);\n String userName = new AVP_UTF8String(avp).queryValue();\n avp = request.find(ProtocolConstants.DI_USER_PASSWORD);\n String userPassword = new AVP_UTF8String(avp).queryValue();\n\n\n synchronized (PrintedStrings.stringsToPrint) {\n System.out.println(log = \"UserName: \" + userName);\n PrintedStrings.stringsToPrint.add(log);\n System.out.println(log = \"password: \" + userPassword);\n PrintedStrings.stringsToPrint.add(log);\n\n //TODO Sprawdzic to jesli nie ma z w slowniku\n String pass = userToPasswordDict.get(userName);\n if (pass == null) {\n System.out.println(log=\"nie ma takiego uzytkownika\");\n\n PrintedStrings.stringsToPrint.add(log);\n }\n if (userPassword.equals(pass)) {\n\n avp = request.find(ProtocolConstants.DI_CHAP_AUTH);\n if (avp != null) {\n try {\n AVP_Grouped chapAuth = new AVP_Grouped(avp);\n AVP[] elements = chapAuth.queryAVPs();\n byte[] idBytes = new AVP_OctetString(elements[1]).queryValue();\n char id = (char) idBytes[0];\n System.out.println(log = \"id: \" + id);\n PrintedStrings.stringsToPrint.add(log);\n\n byte[] chapResponseBytes = new AVP_OctetString(elements[2]).queryValue();\n printBytesAsString(chapResponseBytes, \"odebrane rozwiazanie \");\n log = getBytesAsString(chapResponseBytes, \"odebrane rozwiazanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n byte[] chapChallengeBytes = new AVP_OctetString(elements[3]).queryValue();\n printBytesAsString(chapChallengeBytes, \"odebrane zadanie \");\n log = getBytesAsString(chapResponseBytes, \"odebrane zadanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n //sprawdzenie czy nie ma ataku przez odtwarzanie\n ServicingUserEntry sessionEntry = curentlyServicing.get(userName);\n if (sessionEntry == null) {\n System.out.println(log = \"Atak/ pakiet dotarl po upłynieciu czasu oczekiwania/ pakiet został powtórzony\");\n //w takiej sytuacji nie odpowiadamy wcale\n PrintedStrings.stringsToPrint.add(log);\n return;\n }\n Date now = new Date();\n if (id != sessionEntry.getId() ||\n !Arrays.equals(chapChallengeBytes, sessionEntry.getChallenge()) ||\n (now.getTime() - sessionEntry.getTime().getTime()) > 5000) {\n\n System.out.println(log = \"Atak/ pakiet dotarl po upłynieciu czasu oczekiwania/ przekłamanie pakietu\");\n //w takiej sytuacji nie odpowiadamy wcale\n PrintedStrings.stringsToPrint.add(log);\n return;\n }\n curentlyServicing.remove(userName);\n byte[] md5 = caluculateMD5(idBytes, userToSecretDict.get(userName).getBytes(\"ASCII\"), chapChallengeBytes);\n printBytesAsString(chapResponseBytes, \"obliczone rozwiazanie \");\n log = getBytesAsString(chapResponseBytes, \"obliczone rozwiazanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n if (Arrays.equals(chapResponseBytes, md5)) {\n\n answer.add(new AVP_OctetString(ProtocolConstants.DI_FRAMED_IP_ADDRESS, clusterAddress.getBytes()));\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_SUCCESS));\n System.out.println(log = \"Uwierzytelnionio, pozwalam na dołaczenie do klastra\");\n PrintedStrings.stringsToPrint.add(log);\n } else {\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_AUTHENTICATION_REJECTED));\n System.out.println(log = \"Błędnie rozwiązane zadanie\");\n PrintedStrings.stringsToPrint.add(log);\n }\n } catch (InvalidAVPLengthException e) {\n e.printStackTrace();\n } catch (UnsupportedEncodingException e) {\n e.printStackTrace();\n }\n\n } else {\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_MULTI_ROUND_AUTH));\n //zwiekszamy ostatnio uzywany index o 1 i korzystamy z niego\n incrementIndex();\n byte[] ind = new byte[]{(byte) lastId};\n byte[] challenge = generateChallenge();\n printBytesAsString(challenge, \"wygenerowane zadanie \");\n log = getBytesAsString(challenge, \"wygenerowane zadanie \");\n PrintedStrings.stringsToPrint.add(log);\n\n\n curentlyServicing.put(userName, new ServicingUserEntry(userName, challenge, lastId));\n //System.out.println(\"generated chalenge : \" + challenge.toString());\n answer.add(new AVP_Grouped(ProtocolConstants.DI_CHAP_AUTH,\n new AVP_Integer32(ProtocolConstants.DI_CHAP_ALGORITHM, 5),\n new AVP_OctetString(ProtocolConstants.DI_CHAP_IDENT, ind),\n new AVP_OctetString(ProtocolConstants.DI_CHAP_CHALLENGE, challenge)));\n\n\n if(lastId==34)\n serverGUIController.firstInClaster = true; //TODO obsluz wszsytkich\n if(lastId==35)\n serverGUIController.secondInClaster = true;\n if(lastId==36)\n serverGUIController.thirdInClaster = true;\n if(lastId==37)\n serverGUIController.fourthInClaster = true;\n }\n } else {\n answer.add(new AVP_Unsigned32(ProtocolConstants.DI_RESULT_CODE, ProtocolConstants.DIAMETER_RESULT_AUTHENTICATION_REJECTED));\n log=\"podane hasło jest niepoprawne\";\n PrintedStrings.stringsToPrint.add(log);\n }\n }\n case ProtocolConstants.DI_AUTH_REQUEST_TYPE_AUTHORIZE_ONLY:\n break;\n }\n\n Utils.setMandatory_RFC3588(answer);\n\n try {\n answer(answer, connkey);\n } catch (dk.i1.diameter.node.NotAnAnswerException ex) {\n }\n\n switch (lastId) {\n case 34: {\n serverGUIController.firstConnected = true;\n serverGUIController.firstTextClear = true;\n break;\n }\n case 35:{\n serverGUIController.secondConnected = true;\n serverGUIController.secondTextClear = true;\n break;\n }\n case 36:{\n serverGUIController.thirdConnected = true;\n serverGUIController.thirdTextClear = true;\n break;\n }\n case 37:{\n serverGUIController.fourthCOnnected = true;\n serverGUIController.fourthTextClear = true;\n break;\n }\n\n }\n\n }",
"public boolean acceptChatRequest(String nickToAccept) {\r\n\t\t\r\n\t\t//ENTER YOUR CODE TO ACCEPT A CHAT REQUEST\r\n\t\tthis.chatReceiver=new User();\r\n\t\tthis.chatReceiver.setNick(nickToAccept);\r\n\t\tString message= \"103&\"+this.chatReceiver.getNick();\r\n\t\tsendDatagramPacket(message);\r\n\t\treturn true;\r\n\t}",
"public void processRequest(String request) {\r\n // Request for closing connection\r\n if (request.equals(\"CLOSE\")) {\r\n isOpen = false;\r\n\r\n // Request for getting all of the text on the Server's text areas\r\n } else if (request.equals(\"GET ALL TEXT\")) {\r\n String [] array = FileIOFunctions.getAllTexts();\r\n\r\n sendMessage(\"GET ALL TEXT\");\r\n sendMessage(array[0]);\r\n sendMessage(array[1]);\r\n } else {}\r\n }",
"void requestProcessed( C conn, int numResponseExpected ) ;",
"public void serve() throws IOException {\n int req = 0;\n while (req<maxreq) {\n //block intil a client connects\n final Socket socket = serversocket.accept();\n //create a new thread to handle the client\n\n Thread handler = new Thread(new Runnable() {\n public void run() {\n try {\n try {\n handle(socket);\n } finally {\n socket.close();\n }\n } catch (IOException ioe) {\n // this exception wouldn't terminate serve(),\n // since we're now on a different thread, but\n // we still need to handle it\n ioe.printStackTrace();\n }\n }\n });\n // start the thread\n handler.start();\n req++;\n }\n\n }",
"public abstract void handleCurrentConnection(Socket socket) throws IOException;",
"public void run() {\n // Initial connect request comes in\n Request request = getRequest();\n\n if (request == null) {\n closeConnection();\n return;\n }\n\n if (request.getConnectRequest() == null) {\n closeConnection();\n System.err.println(\"Received invalid initial request from Remote Client.\");\n return;\n }\n\n ObjectFactory objectFactory = new ObjectFactory();\n Response responseWrapper = objectFactory.createResponse();\n responseWrapper.setId(request.getId());\n responseWrapper.setSuccess(true);\n responseWrapper.setConnectResponse(objectFactory.createConnectResponse());\n responseWrapper.getConnectResponse().setId(id);\n\n // Return connect response with our (statistically) unique ID.\n if (!sendMessage(responseWrapper)) {\n closeConnection();\n System.err.println(\"Unable to respond to connect Request from remote Client.\");\n return;\n }\n\n // register our thread with the server\n Server.register(id, this);\n\n // have handler manage the protocol until it decides it is done.\n while ((request = getRequest()) != null) {\n\n Response response = handler.process(this, request);\n\n if (response == null) {\n continue;\n }\n\n if (!sendMessage(response)) {\n break;\n }\n }\n\n // client is done so thread can be de-registered\n if (handler instanceof IShutdownHandler) {\n ((IShutdownHandler) handler).logout(Server.getState(id));\n }\n Server.unregister(id);\n\n // close communication to client.\n closeConnection();\n }",
"@Override\n protected void startListener(){\n Socket socket = null;\n while (isRunning()){\n socket = acceptSocket();\n if (socket == null) {\n continue;\n }\n \n try {\n handleConnection(socket);\n } catch (Throwable ex) {\n getLogger().log(Level.FINE, \n \"selectorThread.handleConnectionException\",\n ex);\n try {\n socket.close(); \n } catch (IOException ioe){\n // Do nothing\n }\n continue;\n }\n } \n }",
"protected void checkForFirstRequest() throws IOException {\n if(firstRequest) {\n while (!connected || (serveResponse = in.readLine()).isEmpty());\n firstRequest = false;\n }\n }",
"boolean hasClientRequest();",
"protected void doOpenConnection() throws Exception {\n connection.open\n (conn_route, request_spec.context, request_spec.params);\n }",
"@Override\n public void run() {\n String inMessage;\n String GET = null;\n String cookie = null;\n try {\n boolean coockieCheck = false;\n boolean validURL = false;\n boolean getRequest = false;\n this.in = new BufferedReader(new InputStreamReader(this.connectionSocket.getInputStream()));\n this.out = new PrintWriter(connectionSocket.getOutputStream());\n protocol = new netProtocol();\n //parses incomming header data, pass that to netProtocol to extract information about headers\n while (true) {\n inMessage = in.readLine();\n //System.out.println(inMessage);\n if(inMessage == null){\n break;\n }\n\n String response = protocol.parseHeaderInfo(inMessage);\n //System.out.println(\"READ...\" + inMessage + \" RESPONSE...\" + response);\n\n if(response.equals(VALID)){ //check if hostname valid\n validURL = true;\n } else if(response.equals(INVALID)){\n postErrorPage();\n break;\n }\n\n if(response.equals(\"GET\")){\n getRequest = true;\n GET = inMessage;\n }\n\n if(response.equals(\"CookieFound\")){\n cookie = inMessage;\n }\n\n if(inMessage.length() == 0){ //when all headers have been parsed, we need to come up with an appropriate response to POST back\n if(validURL && getRequest){\n processRequest(GET, cookie);\n } else{\n postErrorPage();\n }\n out.close();\n in.close();\n connectionSocket.close();\n break;\n }\n }\n\n\n } catch (IOException e) {\n e.printStackTrace();\n System.out.println(\"Client closed.\");\n }\n }",
"private void listen() {\n\t\ttry {\n\t\t\tServerSocket servSocket = new ServerSocket(PORT);\n\t\t\tSocket clientSocket;\n\t\t\twhile(true) {\n\t\t\t\tclientSocket = servSocket.accept();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error - Could not open connection\");\n\t\t}\n\t\t\n\t}",
"public void readyToReceive()\n { ua.printLog(\"WAITING FOR INCOMING CALL\");\n if (!ua.ua_profile.audio && !ua.ua_profile.video) ua.printLog(\"ONLY SIGNALING, NO MEDIA\"); \n //ua.listen();\n changeStatus(UA_IDLE);\n printOut(\"digit the callee's URL to make a call or press 'enter' to exit\");\n }",
"private void handleHttpRequest(ChannelHandlerContext ctx, FullHttpRequest req) throws Exception {\n if (!req.decoderResult().isSuccess()) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, BAD_REQUEST));\n return;\n }\n\n // Allow only GET methods.\n if (req.method() != GET) {\n sendHttpResponse(ctx, req, new DefaultFullHttpResponse(HTTP_1_1, FORBIDDEN));\n return;\n }\n\n // route handler\n if (\"/ws\".equals(req.uri())) {\n WebSocketServerHandshakerFactory wsFactory = new WebSocketServerHandshakerFactory(\n \"ws://\" + req.headers().get(HOST) + \"/ws\", null, false);\n handshaker = wsFactory.newHandshaker(req);\n if (handshaker == null) {\n WebSocketServerHandshakerFactory.sendUnsupportedVersionResponse(ctx.channel());\n } else {\n handshaker.handshake(ctx.channel(), req);\n addCtx(ctx, req.headers());\n }\n } else {\n handleFileRequest(ctx, req);\n }\n }"
] |
[
"0.66811985",
"0.6501563",
"0.6155708",
"0.600723",
"0.59921765",
"0.58719677",
"0.58605856",
"0.5756027",
"0.5754207",
"0.57502896",
"0.574133",
"0.5739993",
"0.5738661",
"0.5732735",
"0.5719979",
"0.57196444",
"0.5704501",
"0.56706905",
"0.56231403",
"0.5611659",
"0.5594416",
"0.5581945",
"0.556807",
"0.55583733",
"0.55330294",
"0.55215764",
"0.5494708",
"0.5484674",
"0.5480906",
"0.5479665",
"0.54773694",
"0.54696476",
"0.54644835",
"0.5462582",
"0.5459065",
"0.5454598",
"0.5453224",
"0.5448412",
"0.54451704",
"0.5429498",
"0.5408635",
"0.53975636",
"0.539201",
"0.5382508",
"0.5376737",
"0.53694904",
"0.5358428",
"0.53508115",
"0.5337932",
"0.5332871",
"0.53283393",
"0.53213936",
"0.53193974",
"0.5296894",
"0.52668774",
"0.52650124",
"0.5255466",
"0.5234977",
"0.52326214",
"0.52325565",
"0.5227427",
"0.52192587",
"0.5216111",
"0.5197894",
"0.5196015",
"0.5194271",
"0.5193968",
"0.5187824",
"0.5183876",
"0.5182084",
"0.51772815",
"0.5174867",
"0.51742953",
"0.5165937",
"0.5159711",
"0.5155202",
"0.5153601",
"0.51447654",
"0.51423395",
"0.5125768",
"0.51243585",
"0.51169527",
"0.5116138",
"0.5110436",
"0.51080805",
"0.5094894",
"0.50868785",
"0.50846165",
"0.5076925",
"0.50766",
"0.50761366",
"0.5075662",
"0.50738674",
"0.5060339",
"0.5059615",
"0.5057367",
"0.5049775",
"0.5046169",
"0.50453514",
"0.5044337"
] |
0.57249624
|
14
|
Rejects a connection request.
|
protected void rejectConnection(Endpoint endpoint) {
mConnectionsClient
.rejectConnection(endpoint.getId())
.addOnFailureListener(
new OnFailureListener() {
@Override
public void onFailure(@NonNull Exception e) {
logW("rejectConnection() failed.", e);
}
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void onConnectToNetByIPReject();",
"void reject();",
"public void cancel() {\n request.disconnect();\n }",
"void denyConnection(UUID requestId) throws\n ArtistConnectionDenialFailedException,\n ConnectionRequestNotFoundException;",
"public void disconnect()\r\n\t{\r\n\t\ttry {\r\n\t\t\tconnection_.close();\r\n\t\t} catch (IOException e) {} // How can closing a connection fail?\r\n\t\t\r\n\t}",
"void reject(int errorCode) throws ImsException;",
"public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t//pass\r\n\t\t\t}\r\n\t\t}",
"public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}",
"HrDocumentRequest reject(HrDocumentRequest hrDocumentRequest);",
"public void cancel() {\r\n try {\r\n blueSocket.close();\r\n } catch (IOException e) { }\r\n }",
"public void disconnect() {\n if (this.mIsConnected) {\n disconnectCallAppAbility();\n this.mRemote = null;\n this.mIsConnected = false;\n return;\n }\n HiLog.error(LOG_LABEL, \"Already disconnected, ignoring request.\", new Object[0]);\n }",
"public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) {\n Log.e(TAG, \"Could not close the connect socket\", e);\n }\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) {\n Log.e(TAG, \"Could not close the connect socket\", e);\n }\n }",
"public void cancel() {\n try {\n mSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) {\n Log.e(\"TEST\", \"Could not close the connect socket\", e);\n }\n\n }",
"private void connectionClosed() {\n if (this.state != SessionState.DISCONNECTING) {\n // this came unexpected\n connectionClosed(new VertxException(\"Connection closed\"));\n }\n }",
"public void cancel() {\n try {\n mSocket.close();\n } catch (IOException e) {\n Log.e(TAG, \" failed to close socket\" + e.getMessage());\n }\n }",
"@Override\n public Publisher<MutableHttpResponse<?>> reject(HttpRequest<?> request, boolean forbidden) {\n return Flowable.fromPublisher(super.reject(request, forbidden))\n .map(response -> response.header(\"X-Reason\", \"Example Header\"));\n }",
"void rejectRequest(@NonNull final Long id) throws ReviewReportNotFoundException;",
"Boolean rejectRequest(User user, AsyncResultHandler handler);",
"public void cancel() {\r\n try {\r\n btSocket.close();\r\n isConnected = false;\r\n SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);\r\n SharedPreferences.Editor edit = preferences.edit();\r\n edit.putBoolean(\"Connection\", isConnected);\r\n edit.apply();\r\n } catch (IOException e) {\r\n Log.d(\"TAG\", \"Could not close the client socket\");\r\n }\r\n }",
"public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }",
"default void reject(String errorCode) {\n\t\treject(errorCode, null, null);\n\t}",
"public void cancel() {\n try {\n btSocket.close();\n } catch (IOException e) {\n Log.e(TAG, \"Could not close the client socket\", e);\n }\n }",
"public void cancel() {\n try {\n mConnectedSocket.close();\n } catch (IOException e) {\n showToast(\"Could not close the connected socket.\");\n }\n }",
"public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) {\n\n }\n }",
"public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) { }\n }",
"public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) { }\n }",
"public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) { }\n }",
"public void cancel() {\n try {\n bluetoothServerSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }",
"public void cancelDisconnect() {\n if (manager != null) {\n if (device == null\n || device.status == WifiP2pDevice.CONNECTED) {\n disconnect();\n } else if (device.status == WifiP2pDevice.AVAILABLE\n || device.status == WifiP2pDevice.INVITED) {\n manager.cancelConnect(channel, new WifiP2pManager.ActionListener() {\n\n @Override\n public void onSuccess() {\n }\n\n @Override\n public void onFailure(int reasonCode) {\n }\n });\n }\n }\n }",
"public void cancel() {\n try {\n mmOutStream.close();\n mmInStream.close();\n mmSocket.close();\n } catch (IOException e) {\n Log.e(TAG, \"Could not close the connect socket\", e);\n }\n }",
"public void disconnect() {\n\t\tif (_connection != null) {\n\t\t\ttry {\n\t\t\t\twhile (!_connection.isClosed()) {\n\t\t\t\t\t_connection.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) { /* ignore close errors */\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void cancel() {\n\t\t\ttry {\n\t\t\t\tmmSocket.close();\n\t\t\t} catch (IOException e) { }\n\t\t}",
"public void cancel() {\n\t\t\ttry {\n\t\t\t\tmmSocket.close();\n\t\t\t} catch (IOException e) { }\n\t\t}",
"private void connectionFailed() {\n if (debugging)\n Log.d(TAG, \"connection Failed\");\n setState(EBluetoothStates.DISCONNECTED);\n if (mConnectionManager != null) {\n mConnectionManager.closeSocket();\n }\n }",
"public CompletionStage<Void> disconnect() {\n\t\treturn this.finConnection.sendMessage(\"disconnect-from-channel\", FinBeanUtils.toJsonObject(this.routingInfo)).thenAccept(ack->{\n\t\t\tif (!ack.isSuccess()) {\n\t\t\t\tthrow new RuntimeException(\"error disconnecting channel client, reason: \" + ack.getReason());\n\t\t\t}\n\t\t});\n\t}",
"public synchronized void onRequestRejected(String reason) {\r\n\t\tallRequestsTracker.onRequestRejected(reason);\r\n\t\trecentRequestsTracker.onRequestRejected(reason);\r\n\t\tmeter.mark();\r\n\t}",
"public void disconnected(XMPPConnection connection) {}",
"void disconnect(String reason);",
"public void cancel() {\n try {\n mmSocket.close();\n } catch (IOException e) {\n showToast(\"Could not close the client socket.\");\n }\n }",
"RequestResult[] rejectRequests(String[] requestIds,\n String reason) throws SAXException, IOException;",
"protected void connectionClosed() {}",
"PrefixRegistrationSessionEventReject rejectRequest(PrefixRegistrationSession prefixRegistrationSession,\n String rejectionReason,\n String actor,\n String additionalInformation) throws PrefixRegistrationRequestManagementServiceException;",
"protected void processDisconnectRequest(Message msg) {\r\n\r\n try {\r\n if (LOG.isEnabledFor(Priority.DEBUG)) {\r\n LOG.debug(\"Processing a disconnect request\");\r\n }\r\n MessageElement elem = msg.getMessageElement(\"jxta\", DisconnectRequest);\r\n if (null != elem) {\r\n InputStream is = elem.getStream();\r\n PeerAdvertisement adv = (PeerAdvertisement) AdvertisementFactory.newAdvertisement(elem.getMimeType(), is);\r\n\r\n RdvConnection rdvConnection = (RdvConnection) rendezVous.get(adv.getPeerID());\r\n\r\n if (null != rdvConnection) {\r\n rdvConnection.setConnected(false);\r\n removeRdv(adv.getPeerID(), true);\r\n } else {\r\n if (LOG.isEnabledFor(Priority.DEBUG)) {\r\n LOG.debug(\"Ignoring disconnect request from \" + adv.getPeerID());\r\n }\r\n }\r\n }\r\n } catch (Exception failure) {\r\n if (LOG.isEnabledFor(Priority.WARN)) {\r\n LOG.warn(\"Failure processing disconnect request\", failure);\r\n }\r\n }\r\n }",
"protected void processDisconnection(){}",
"public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}",
"public void setReject(String reject) {\n this.reject = reject;\n }",
"@Override\n protected void connectionClosed(Peer.CloseReason reason)\n {\n Stream.concat(sendQueue.stream(), blockRequests.stream())\n .filter(pm -> pm.type == StdPeerMessage.REQUEST)\n .forEach(pm -> {\n torrent.cancelBlockRequest(pm.index, pm.begin);\n });\n\n // release messages\n sendQueue.forEach( pmCache::release);\n sendQueue.clear();\n // and active requests\n blockRequests.forEach( pmCache::release);\n blockRequests.clear();\n // peerRequests\n peerBlockRequests.forEach( pmCache::release);\n peerBlockRequests.clear();\n\n peer.setConnectionClosed(reason);\n\n // incoming connections could be not linked yet\n if (torrent != null) {\n torrent.onPeerDisconnect(this);\n }\n\n // todo: release caches via connectionFactory\n }",
"public void disconnected(String reason) {}",
"public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tmmServerSocket.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}",
"@SuppressWarnings(\"unused\")\n\t\t\tpublic void cancel() {\n\t try {\n\t mmSocket.close();\n\t } catch (IOException e) { }\n\t }",
"abstract protected void onDisconnection();",
"private void disconnectFromServer() {\n\t\ttry {\n\t\t\tsocket.close();\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot disconnect from server\");\n\t\t}\n\t}",
"private void handleFailedPeerRequest(String request) {\r\n\t\tString[] commandFragments = Utils.getKeyAndValuefromFragment(request);\r\n\t\tif (commandFragments.length > 0) {\r\n\t\t\tremoveFailedPeers(commandFragments[1]);\r\n\t\t}\r\n\r\n\t}",
"public void cancel() {\n try {\n\n mServerSocket.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"public void rejectProduct() {\n self.increaseRejectCount();\n env.updateMachine(self);\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException ignored) { }\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) {\n showToast(\"Could not close the server socket.\");\n }\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) { }\n }",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) { }\n }",
"protected void handleFailMessage(Request request, IOException e) {\n\t\tonRequestFailure(request, e);\n\t}",
"public void rejectInvite(UserBean possibleOpponent)\n\t{\n\t\tSocket controlSocket;\n\t\ttry {\n\t\t\tcontrolSocket = new Socket(possibleOpponent.getIpAddress(), Model.controlDataSocketNumber);\n\t\t\tObjectOutputStream toPeer = new ObjectOutputStream(controlSocket.getOutputStream());\n\t\t\tClientMessage c = new ClientMessage();\n\t\t\tc.setCommand(\"REJECT\");\n\t\t\tc.setUser(new UserBean(this.hostName, this.userName, this.ipAddress));\n\t\t\tSystem.out.println(\"Rejecting invite\");\n\t\t\t\n\t\t\ttoPeer.writeObject(c);\n\t\t\n\t\t\tcontrolSocket.close();\n\t\t\t\n\t\t} catch (IOException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t}",
"void handleConnectionClosed();",
"public void cancel() {\n try {\n mmServerSocket.close();\n } catch (IOException e) { }\n }",
"@Override\n\tpublic boolean rejectIt() {\n\t\treturn false;\n\t}",
"@Override\n public void denyConnection(String intraUserLoggedPublicKey, String intraUserToRejectPublicKey) throws IntraUserConnectionDenialFailedException {\n try {\n /**\n *Call Actor Intra User to denied request connection\n */\n\n this.intraWalletUserManager.denyConnection(intraUserLoggedPublicKey, intraUserToRejectPublicKey);\n\n /**\n *Call Network Service Intra User to denied request connection\n */\n this.intraUserNertwokServiceManager.denyConnection(intraUserLoggedPublicKey, intraUserToRejectPublicKey);\n\n } catch (CantDenyConnectionException e) {\n throw new IntraUserConnectionDenialFailedException(\"CAN'T DENY INTRA USER CONNECTION - KEY:\" + intraUserToRejectPublicKey, e, \"\", \"\");\n } catch (Exception e) {\n throw new IntraUserConnectionDenialFailedException(\"CAN'T DENY INTRA USER CONNECTION - KEY:\" + intraUserToRejectPublicKey, FermatException.wrapException(e), \"\", \"unknown exception\");\n }\n }",
"private void disconnect() {\n\t\ttry { \n\t\t\tif(sInput != null) sInput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\ttry {\n\t\t\tif(sOutput != null) sOutput.close();\n\t\t}\n\t\tcatch(Exception e) {}\n try{\n\t\t\tif(socket != null) socket.close();\n\t\t}\n\t\tcatch(Exception e) {}\n\t\t\n\t\t// Notify the GUI\n \n\t\tif(cg != null)\n\t\t\tcg.connectionFailed();\n\t\t\t\n\t}",
"public LoanApplicationResponse rejectLoanRequest() {\n return new LoanApplicationResponse(this, false);\n }",
"public void disconnect() throws Exception\n {\n if(!connected)\n return;\n connectionSocket.close();\n reader.close();\n writer.close();\n listenerTimer.cancel();\n connected = false;\n\n }",
"public void disconnect() {\n\t\ttry { \n\t\t\tif(loginInput != null) loginInput.close();\n\t\t\tif(registerInput != null) registerInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(loginOutput != null) loginOutput.close();\n\t\t\tif(registerOutput != null) registerOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(loginSocket != null) loginSocket.close();\n\t\t\tif(registerSocket != null) registerSocket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\t\tcg.connectionFailed();\n\t\t\t\n }",
"void onDisconnectFailure();",
"public void cancel() {\r\n mStopped = true;\r\n try {\r\n mSocket.close();\r\n } catch (IOException ioe) {\r\n Log.e(Common.TAG, \"Error closing the socket: \" + ioe.getMessage());\r\n }\r\n }",
"public void cancelGetResponse() {\n impl.cancelGetResponse();\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n return;\n }",
"void notifyReject(final TradeInstruction instruction);",
"protected abstract void sendCancel(Status reason);",
"public void cancel() {\n try {\n mmServerSocket.close();\n mmServerSocket=null;\n } catch (IOException e) { }\n }",
"private void signalError() {\n Connection connection = connectionRef.get();\n if (connection != null && connection.isDefunct()) {\n Host host = cluster.metadata.getHost(connection.address);\n // Host might be null in the case the host has been removed, but it means this has\n // been reported already so it's fine.\n if (host != null) {\n cluster.signalConnectionFailure(host, connection.lastException());\n return;\n }\n }\n\n // If the connection is not defunct, or the host has left, just reconnect manually\n reconnect();\n }",
"public void disconnect() {\n watchDog.terminate();\n synchronized (sync) {\n if (!connections.isEmpty()) {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n try {\n tconn.conn.rollback();\n tconn.conn.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n this.setChanged();\n this.notifyObservers(\"disconnect\");\n }",
"void disconnect() throws TransportException;",
"public lnrpc.Rpc.DisconnectPeerResponse disconnectPeer(lnrpc.Rpc.DisconnectPeerRequest request) {\n return blockingUnaryCall(\n getChannel(), getDisconnectPeerMethod(), getCallOptions(), request);\n }",
"public void cancel() {\n try {mmInStream.close();\n mmOutStream.close();\n mmSocket.close();\n } catch (IOException e) { }\n }",
"@Implementation\n protected void cancelConnection(BluetoothDevice device) {\n this.bluetoothGattServerReflector.cancelConnection(device);\n this.cancelledDevices.add(device);\n }",
"public LWTRTPdu disConnectReq() throws IncorrectTransitionException;",
"interface Disconnect extends RconConnectionEvent {}",
"public void disconnect() {\n SocketWrapper.getInstance(mContext).disConnect();\n }",
"public void cancel( String reason );",
"public void onDisconnect(HeaderSet req, HeaderSet resp) {\r\n if(req == null)\r\n return;\r\n try {\r\n //clientBluetoothAddress = req.getHeader(HeaderSet.NAME).toString();\r\n Object reqType = req.getHeader(HeaderSets.REQUEST_TYPE);\r\n if(reqType == null)\r\n return;\r\n if (reqType.toString().equals(Types.REQUEST_DISCONNECT)) {\r\n parent.removeClient(clientBluetoothAddress);\r\n //AlertDisplayer.showAlert(\"Disconnected\", \"btADDR : \" +clientBluetoothAddress,parent.gui.getDisplay(),parent.gui.getList());\r\n }\r\n \r\n } catch (IOException e) {\r\n System.err.println(\"Exception in DataTransaction.onConnect()\");\r\n \r\n }\r\n }",
"private void stopRequest(){ Remove the clause synchronized of the stopRequest method.\n // Synchronization is isolated as possible to avoid thread lock.\n // Note: the method removeRequest from SendQ is synchronized.\n // fix bug jaw.00392.B\n //\n synchronized(this){\n setRequestStatus(stAborted);\n }\n informSession.getSnmpQManager().removeRequest(this);\n synchronized(this){\n requestId=0;\n }\n }",
"public void socketDisconnected(PacketChannel pc, boolean failed);",
"public void reject() {\n rejectBus.add(applicantQueue.dequeue());\n }",
"private void connectionLost() {\n Log.d(TAG, \"BluetoothManager :: connectionLost()\");\n setState(STATE_LISTEN); //추가됨\n\n // Send a failure message back to the Activity\n // WARNING: This makes too many toast.\n //이것도 어차피 연결잃었다고하는거 알려주는거라 안해도 상관 없다.\n /*\n Message msg = mHandler.obtainMessage(MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(SERVICE_HANDLER_MSG_KEY_TOAST, \"연결되있던장치와 연결을 잃었어요\");\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n */\n // Reserve re-connect timer\n reserveRetryConnect(); //수정됨\n }",
"public void disconnectedFrom(ServerDescriptor desc);",
"@Disconnect\n public void disconnected(AtmosphereResourceEvent event){\n if (event.isCancelled()) {\n logger.info(\"User:\" + event.getResource().uuid() + \" unexpectedly disconnected\");\n } else if (event.isClosedByClient()) {\n logger.info(\"User:\" + event.getResource().uuid() + \" closed the connection\");\n }\n }",
"void disconnect() throws Exception;",
"public synchronized void connectionClosed(Connection con) {\n if (!term) connections.remove(con);\n }",
"synchronized void cancel()\n {\n state = DNSState.CANCELED;\n notifyAll();\n }",
"public void disconnect() {\n\t\tif (con.isConnected()) {\n\t\t\tcon.disconnect();\n\t\t}\n\t}"
] |
[
"0.67999345",
"0.66897076",
"0.65399647",
"0.63951474",
"0.6205875",
"0.6083377",
"0.6063402",
"0.6016344",
"0.59963757",
"0.5915339",
"0.5867422",
"0.58486843",
"0.57963455",
"0.57656735",
"0.57481176",
"0.571719",
"0.5709291",
"0.56712466",
"0.5664862",
"0.5654233",
"0.5637266",
"0.5618801",
"0.56169796",
"0.5615007",
"0.56110984",
"0.5596796",
"0.55613655",
"0.55613655",
"0.55613655",
"0.5560439",
"0.55567056",
"0.55562574",
"0.55287737",
"0.551996",
"0.5515062",
"0.5515062",
"0.5495341",
"0.5492173",
"0.54651505",
"0.54494786",
"0.54273844",
"0.54154736",
"0.5415295",
"0.5414114",
"0.5408686",
"0.5400331",
"0.53994125",
"0.5395884",
"0.5389019",
"0.5385908",
"0.5366351",
"0.5351382",
"0.5350937",
"0.5345146",
"0.5344974",
"0.5344683",
"0.5334056",
"0.5331632",
"0.53220844",
"0.5316517",
"0.53093183",
"0.53093183",
"0.5298784",
"0.5278807",
"0.5278472",
"0.52719",
"0.5257584",
"0.5252687",
"0.52501756",
"0.52438706",
"0.5236888",
"0.51946306",
"0.51940817",
"0.51932436",
"0.5140681",
"0.5119315",
"0.5118371",
"0.5112227",
"0.51061505",
"0.5103916",
"0.51015556",
"0.5095349",
"0.50953424",
"0.5085477",
"0.50820804",
"0.5081733",
"0.5073753",
"0.5071905",
"0.5071018",
"0.5066983",
"0.5065896",
"0.5054344",
"0.50514185",
"0.5049116",
"0.5046879",
"0.5040907",
"0.50386935",
"0.50324756",
"0.50316614",
"0.50254667"
] |
0.68915814
|
0
|
Called when discovery successfully starts. Override this method to act on the event.
|
protected void onDiscoveryStarted() {
logAndShowSnackbar("Subscription Started");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onDiscoveryComplete() {\n BusProvider.getInstance().post(new DiscoveryCompleteEvent());\n }",
"private void startDiscovery() {\n client.startDiscovery(getResources().getString(R.string.service_id), endpointDiscoveryCallback, new DiscoveryOptions(STRATEGY));\n }",
"@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryCompleteEvent event) {\n enableManualDiscoveryButton(true);\n if(event.isComplete()) {\n Toast.makeText(getApplicationContext(), \"Manual device discovery is complete\" , Toast.LENGTH_SHORT).show();\n }\n }",
"private void startDiscovery() {\n\t\tbtAdapter.cancelDiscovery();\n\t\tbtAdapter.startDiscovery();\n\t}",
"@Override\n protected void onStarted() {\n\n super.onStarted();\n\n // No need for discovery services in Archive mode\n if (mIsArchive) return; //TODO: maybe remove this line - should be caught by the NETWORK_NONE case\n\n\n switch (mNetworkType) {\n case BabbleService.NETWORK_NONE:\n Log.i(TAG, \"NONE / Archive\");\n return;\n case BabbleService.NETWORK_WIFI:\n Log.i(TAG, \"WIFI / MDNS\");\n mAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n break;\n case BabbleService.NETWORK_P2P:\n Log.i(TAG, \"P2P\");\n mAdvertiser = P2PService.getInstance(mAppContext);\n break;\n }\n\n // mMdnsAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n\n Log.i(TAG, \"onStarted: Port \"+sDiscoveryPort);\n\n mHttpPeerDiscoveryServer = new HttpPeerDiscoveryServer(sDiscoveryPort, mBabbleNode); //TODO: use next available port?\n try {\n mHttpPeerDiscoveryServer.start();\n mAdvertiser.advertise(); // start mDNS advertising if server started\n mAdvertising = true;\n } catch (IOException ex) {\n //Probably the port is in use, we'll continue without the discovery service\n }\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n Discoverer.this.eventListener.trigger(\n EVENT_LOG, \"Fail to run discovery: \" + e.getMessage()\n );\n }",
"protected void onDiscoveryFailed() {\n logAndShowSnackbar(\"Could not subscribe.\");\n }",
"void discoverFinished();",
"public void startDiscovery() {\n if (mApiClient != null) {\n Weave.DEVICE_API.startLoading(mApiClient, mDiscoveryListener);\n }\n }",
"@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryEvent event) {\n Log.d(TAG, \"DeviceDiscoveryEvent received \");\n enableManualDiscoveryButton(true);\n DiscoveredDevice device = event.getDiscoveredDevice();\n if(device != null) {\n Log.d(TAG, \"name \" + device.getName());\n Log.d(TAG, \"unique id \" + device.getUniqueIdentifier());\n\n updateFavoriteSpinner(device.getUniqueIdentifier(), device.getName());\n }\n }",
"public void startDiscovery(View view){\n willUpdateDeviceList = true;\n peerDiscoveryController = new PeerDiscoveryController(this, this);\n }",
"private void doDiscovery() {\n\t\t// Indicate scanning in the title\n\t\t// setProgressBarIndeterminateVisibility(true);\n\t\tsetTitle(R.string.scanning);\n\n\t\t// Turn on sub-title for new devices\n\t\tfindViewById(R.id.title_new_devices).setVisibility(View.VISIBLE);\n\n\t\t// If we're already discovering, stop it\n\t\tif (m_BtAdapter.isDiscovering()) {\n\t\t\tm_BtAdapter.cancelDiscovery();\n\t\t}\n\n\t\t// Request discover from BluetoothAdapter\n\t\tm_BtAdapter.startDiscovery();\n\t}",
"private void doDiscovery() {\n if (D) Log.d(TAG, \"doDiscovery()\");\n\n // Indicate scanning in the title\n setProgressBarIndeterminateVisibility(true);\n setTitle(R.string.scanning);\n\n // Turn on sub-title for new devices\n findViewById(R.id.title_new_devices).setVisibility(View.VISIBLE);\n\n // If we're already discovering, stop it\n if (mBtAdapter.isDiscovering()) {\n mBtAdapter.cancelDiscovery();\n }\n\n // Request discover from BluetoothAdapter\n mBtAdapter.startDiscovery();\n }",
"@Override\r\n\tpublic void onDiscoverySelected() {\n\t\tLog.d(TAG, \"onDiscoverySelected()\");\r\n\t\tmManager.discoverPeers(mChannel, new WifiP2pManager.ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccess() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tLog.d(TAG, \"onSucess()\");\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"Peers Avaliable!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onFailure(int reason) {\r\n\t\t\t\tLog.d(TAG, \"onFailure()\");\r\n\t\t\t\tString message = reason == WifiP2pManager.P2P_UNSUPPORTED ? \"P2P_UNSUPORTED\" : \"BUSY\" ;\r\n\t\t\t\t\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"No Peers Avaliable, reason: \"+message, Toast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\n\tpublic void StartListening()\n\t{\n\t\t\n\t}",
"@Override\n public void onEnabled() {\n mDiscovery.startDiscovery(mEvents, mWifiStateManager.getWifiManager());\n updateList();\n }",
"private void continueAfterDiscovery(Boolean success){\n stopDiscovery();\n //Open website of node to continue installation of node\n if (success) {\n //open webview with node ip\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://\" + mNodeIP));\n startActivity(browserIntent);\n //Returning from Async call, check if view is still active\n //If not working check if setting a destroyed tag in onDetach() is a solution\n if (getView() == null) {\n //Has to be tested if a simple return produces no errors\n return;\n }\n mListener.onAfterShowNode(success);\n } else {\n mListener.onAfterShowNode(success);\n }\n }",
"void onListeningStarted();",
"public void startLocationDiscovery() {\n\t\t/*CountDownTimer gpsDelay = new CountDownTimer(\n\t\t\t\tcalculateNextInteraction(failedInteractions) * 60 * 1000, 1000) {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onTick(long arg0) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onFinish() {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\t\n\t\t\t}\n\t\t};*/\n\t\tregisterLocationListener(locationListener);\n\t}",
"private void doDiscovery() {\n Log.d(TAG, \"doDiscovery()\");\n\n // If we're already discovering, stop it\n if (mBtAdapter.isDiscovering()) {\n mBtAdapter.cancelDiscovery();\n }\n\n // Request discover from BluetoothAdapter\n mBtAdapter.startDiscovery();\n }",
"void onSuccessfulStarted();",
"public void onStart() {\n Configuration curatorDiscoveryConf = Configuration.root().getConfig(\"curator.service.discovery\");\n\n if (curatorDiscoveryConf == null) {\n Logger.info(\"Curator Discovery settings not found.\");\n } else {\n serviceName = curatorDiscoveryConf.getString(\"name\", \"Play2CuratorService\");\n serviceDescription = curatorDiscoveryConf.getString(\"description\", \"Play2 Curator Service\");\n servicePath = curatorDiscoveryConf.getString(\"path\", \"/play2-curator-service-discovery-plugin\");\n autoRegister = curatorDiscoveryConf.getBoolean(\"autoregister\", Boolean.TRUE);\n uriSpecParam = curatorDiscoveryConf.getString(\"uri.spec\", \"{scheme}://{address}:{port}\");\n uriSpecSslParam = curatorDiscoveryConf.getString(\"ssl.uri.spec\", \"{scheme}://{address}:{ssl-port}\");\n\n Logger.info(\"CuratorServiceDiscoveryPlugin Settings:\");\n Logger.info(\" * serviceName: \" + serviceName);\n Logger.info(\" * serviceDescription: \" + serviceDescription);\n Logger.info(\" * servicePath: \" + servicePath);\n Logger.info(\" * autoRegister: \" + autoRegister);\n Logger.info(\" * uriSpec: \" + uriSpecParam);\n Logger.info(\" * uriSpecSsl: \" + uriSpecSslParam);\n\n zooServers = curatorDiscoveryConf.getString(\"zooServers\", \"localhost:2181\");\n Logger.info(\" * zooKeeper servers: \" + zooServers);\n\n if (zooServers.toLowerCase().contains(\"mock\")) {\n try {\n mockZooKeeper = new TestingServer(2181);\n zooServers = mockZooKeeper.getConnectString();\n Logger.info(\"Mock ZooKeeper started at: \" + zooServers);\n } catch (Exception e) {\n Logger.error(\"Could not start mock ZooKeeper server on port 2181: \" + e.getMessage());\n return;\n }\n }\n\n Logger.info(\"Curator Discovery settings found. ZooKeeper servers: \" + zooServers);\n if (autoRegister) {\n int port = 0;\n String sPort = Configuration.root().getString(\"http.port\");\n if (sPort != null) {\n try {\n port = Integer.parseInt(sPort);\n Logger.info(\" * port: \" + port);\n } catch (NumberFormatException nfe) {\n Logger.debug(\"port is not valid\");\n }\n }\n\n sPort = Configuration.root().getString(\"https.port\");\n int sslPort = 0;\n if (sPort != null) {\n try {\n sslPort = Integer.parseInt(sPort);\n Logger.info(\" * sslPort: \" + sslPort);\n } catch (NumberFormatException nfe) {\n Logger.debug(\"ssl-port is not valid\");\n }\n }\n if (port == 0 && sslPort == 0) {\n Logger.error(\"Can't register service. Port / sslPort not set\");\n } else {\n register(serviceName, serviceDescription, port, sslPort);\n }\n }\n }\n }",
"@SubscribeEvent\n public void onClientStarting(final FMLClientSetupEvent event) {\n LOGGER.info(\"client setting up\");\n }",
"public void run() throws Exception {\n logger.log(Level.FINE, \"run()\");\n /* Start the discovery prcess by creating a LookupDiscovery\n * instance configured to discover BOTH the initial and additional\n * lookup services to be started.\n */\n String[] groupsToDiscover = toGroupsArray(getAllLookupsToStart());\n logger.log(Level.FINE,\n \"starting discovery by creating a \"\n +\"LookupDiscovery to discover -- \");\n for(int i=0;i<groupsToDiscover.length;i++) {\n logger.log(Level.FINE, \" \"+groupsToDiscover[i]);\n }//end loop\n LookupDiscovery ld = new LookupDiscovery(groupsToDiscover,\n getConfig().getConfiguration());\n lookupDiscoveryList.add(ld);\n\n /* Verify that the lookup discovery utility created above is\n * operational by verifying that the INITIIAL lookups are\n * discovered.\n */\n mainListener.setLookupsToDiscover(getInitLookupsToStart());\n ld.addDiscoveryListener(mainListener);\n waitForDiscovery(mainListener);\n\n /* Terminate the lookup discovery utility */\n ld.terminate();\n logger.log(Level.FINE, \"terminated lookup discovery\");\n\n\n /* Since the lookup discovery utility was terminated, the listener\n * should receive no more events when new lookups are started that\n * belong to groups the utility is configured to discover. Thus,\n * reset the listener to expect no more events.\n */\n mainListener.clearAllEventInfo();\n /* Verify that the lookup discovery utility created above is no\n * longer operational by starting the additional lookups, and\n * verifying that the listener receives no more discovered events.\n */\n logger.log(Level.FINE,\n \"starting additional lookup services ...\");\n startAddLookups();\n /* Wait a nominal amount of time to allow any un-expected events\n * to arrive.\n */\n waitForDiscovery(mainListener);\n }",
"@Override\r\n protected void onStart() {\r\n super.onStart();\r\n adapter.startListening();\r\n }",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void startEvent() {\n\t\t\r\n\t}",
"@Override\n\tpublic void notifyStartup(StartupEvent event) {\n\t\t\n\t\tthis.withinDayControlerListener.notifyStartup(event);\n\t\t\t\t\n\t\tcheckNetwork();\n\t\t\n\t\tthis.lookupNetwork = new LookupNetworkFactory().createLookupNetwork(this.scenario.getNetwork());\n\t\tthis.lookupTravelTime = new LookupTravelTime(lookupNetwork, this.withinDayControlerListener.getTravelTimeCollector(), \n\t\t\t\tthis.scenario.getConfig().global().getNumberOfThreads());\n\t\tthis.lookupTravelTime.setUpdateInterval(this.updateLookupTravelTimeInterval);\n\t\tthis.withinDayControlerListener.getFixedOrderSimulationListener().addSimulationListener(this.lookupTravelTime);\n\t\t\n\t\tif (agentsLearn) {\n\t\t\tcostNavigationTravelTimeLogger = new CostNavigationTravelTimeLogger(this.scenario.getPopulation(), this.lookupNetwork, this.lookupTravelTime,\n\t\t\t\t\tfollowedAndAccepted, followedAndNotAccepted, notFollowedAndAccepted, notFollowedAndNotAccepted);\t\t\t\n\t\t} else {\n\t\t\tcostNavigationTravelTimeLogger = new NonLearningCostNavigationTravelTimeLogger(this.scenario.getPopulation(), this.lookupNetwork, this.lookupTravelTime, this.gamma);\n\t\t\tlog.info(\"Agents learning is disabled - using constant gamma of \" + this.gamma + \"!\");\n\t\t}\n\t\tcostNavigationTravelTimeLogger.toleranceSlower = tauminus;\n\t\tcostNavigationTravelTimeLogger.toleranceFaster = tauplus;\n\t\tcostNavigationTravelTimeLogger.toleranceAlternativeRoute = tau;\n\t\t\n\t\tevent.getControler().getEvents().addHandler(costNavigationTravelTimeLogger);\n\t\t\n\t\tthis.selector = new SelectHandledAgentsByProbability();\n\t\t\n\t\tthis.initReplanners();\n\t}",
"@Override\n public void onDnsSdServiceAvailable(String instanceName, String registrationType, WifiP2pDevice sourceDevice) {\n Log.i(TAG, \"BonjourServiceAvailable: \\ninstanceName: \" + instanceName + \"\\n \" + sourceDevice.toString());\n }",
"@Override\n public void onCreate() {\n HandlerThread thread = new HandlerThread(\"ServiceStartArguments\", THREAD_PRIORITY_BACKGROUND);\n thread.start();\n Log.d(\"LOG19\", \"DiscoveryService onCreate\");\n\n this.mLocalBroadCastManager = LocalBroadcastManager.getInstance(this);\n // Get the HandlerThread's Looper and use it for our Handler\n mServiceLooper = thread.getLooper();\n\n mServiceHandler = new ServiceHandler(mServiceLooper);\n }",
"@Override protected void onStart()\n {\n super.onStart();\n adapter.startListening();\n }",
"public void onCreate() {\n\t\tSystem.out.println(\"This service is called!\");\n\t\tmyBluetoothAdapter= BluetoothAdapter.getDefaultAdapter();\n\t\tmyBluetoothAdapter.enable();\n\t\tSystemClock.sleep(5000);\n\t\tif (myBluetoothAdapter.isEnabled()){\n\t\t\tSystem.out.println(\"BT is enabled...\");\n\t\t\tdiscover = myBluetoothAdapter.startDiscovery();\n\t\t}\n\t\tSystem.out.println(myBluetoothAdapter.getScanMode());\n\t\t\n\t\tSystem.out.println(\"Discovering: \"+myBluetoothAdapter.isDiscovering());\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothDevice.ACTION_FOUND));\n\t\tIntentFilter filter1 = new IntentFilter(BluetoothDevice.ACTION_FOUND);\n\t\tIntentFilter filter2 = new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);\n\t\tthis.registerReceiver(bReceiver, filter1);\n\t\tthis.registerReceiver(bReceiver, filter2);\n\t\t//registerReceiver(bReceiver, new IntentFilter(BluetoothAdapter.ACTION_DISCOVERY_FINISHED));\n\t}",
"@Override\n public void onSuccess(Void unusedResult) {\n Discoverer.this.eventListener.trigger(EVENT_LOG, \"Connection requested with: \" + endpointId);\n }",
"@Override\n protected void onStart() {\n super.onStart();\n adapter.startListening();\n }",
"public void onResume() {\n mMediaRouter.addCallback(mMediaRouteSelector, mMediaRouterCallback,\n MediaRouter.CALLBACK_FLAG_REQUEST_DISCOVERY);\n }",
"protected abstract void startListener();",
"public void startDetect(){\n\n EventHandle[] start = ECAAgent.getEventHandles(startDetectEventName);\n ECAAgent.raiseEndEvent(start,this);\n }",
"void changed(DiscoveryEvent e);",
"@Override\n public void onEndpointDiscovered(String id, String name) {\n Log.d(TAG, \"endpoint discovered: \" + id + \" \" + name);\n }",
"@Override\n public void serviceResolved(ServiceEvent serviceEvent) {\n // Test service info is resolved.\n String[] serviceUrls = serviceEvent.getInfo().getURLs();\n\n logger.info(\"Found kinect service \" + serviceEvent.getInfo().getURLs()[0].toString());\n\n if (serviceUrls.length > 0) {\n logger.info(\"Connecting to kinect service 2\");\n\n try {\n final URL url = new URL(serviceUrls[0]);\n logger.info(\"Connecting to kinect service \" + url.getHost() + \":\" + url.getPort());\n final KinectConnector connector = new KinectConnector(url.getHost(), url.getPort());\n connector.setDeviceListCallback(new DeviceCallback() {\n @Override\n public void onItemsChanged(List<KinectItem> devices) {\n logger.info(\"Found kinect objects\");\n for (KinectItem item : devices) {\n createDevice(url.getHost(), url.getPort(), item.getName().replace(\" \", \"\"));\n }\n connector.stop();\n }\n });\n connector.start();\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n\n }\n }",
"public void onPluginStart()\n\t{\n\t\tfor (Integer event : this.getNetworkCommands())\n\t\t\tCalicoEventHandler.getInstance().addListener(event.intValue(), this, CalicoEventHandler.ACTION_PERFORMER_LISTENER);\n\t\t\n\t\tCanvasStatusBar.addMenuButtonRightAligned(CreateCustomScrapButton.class);\n\t\t\n\t\t//Add an additional voice to the bubble menu\n\t\t//CGroup.registerPieMenuButton(SaveToPaletteButton.class);\n\t\t\n\t\t//Register to the events I am interested in from Calico's core events\n\t\t//Example: CalicoEventHandler.getInstance().addListener(NetworkCommand.VIEWING_SINGLE_CANVAS, this, CalicoEventHandler.PASSIVE_LISTENER);\n\n\t}",
"public void startManualDiscovery(View view) {\n if(mDeviceManager == null) return;\n\n enableManualDiscoveryButton(false);\n setFavoriteSpinner();\n int discoveryDuration = 10000;\n Property property = Property.create(Property.START_DISCOVERY, discoveryDuration);\n mDeviceManager.setProperty(property, propertyCallback);\n }",
"void onStarted();",
"@Override\n protected void initializeEventList()\n {\n }",
"@Override\n\t\t\tpublic void contectStarted() {\n\n\t\t\t}",
"@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}",
"@Override\n protected void preClientStart() {\n client.registerListener(new BuddycloudLocationChannelListener(\n getContentResolver()\n ));\n client.registerListener(new BuddycloudChannelMetadataListener(\n getContentResolver()\n ));\n BCConnectionAtomListener atomListener = new BCConnectionAtomListener(\n getContentResolver(), this);\n registerListener(atomListener);\n }",
"void onDiscoverPeersSuccess();",
"@Override\r\n\tpublic void run() {\n\t\tIntent intent = new Intent(\"android.intent.action.BOOT_COMPLETED\"); \r\n\t\tresolveInfo = context.getPackageManager().queryBroadcastReceivers(intent, 0);\r\n\t}",
"@Override\n public void run() {\n UpnpService upnpService = new UpnpServiceImpl(listener);\n\n // Send a search message to all devices and services, they should respond soon\n upnpService.getControlPoint().search(new STAllHeader());\n\n // Let's wait 10 seconds for them to respond\n// System.out.println(\"Waiting 10 seconds before shutting down...\");\n try {\n Thread.sleep(10000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n // Release all resources and advertise BYEBYE to other UPnP devices\n// System.out.println(\"Stopping Cling...\");\n upnpService.shutdown();\n\n\n }",
"@Override\n public void startup() {\n }",
"private void eventLookupStarted() {\n\t\tsynchronized(lookupCounterMutex) {\n\t\t\tlookupCounter++;\n\t\t}\n\t}",
"@Override\n protected void onStart() {\n super.onStart();\n mFetchChatRoomListUseCase.registerListener(this);\n }",
"@Override\r\n\t\t\tpublic void recognizerStarted() {\n\r\n\t\t\t}",
"@Override\n\tpublic void onStart() {\n\n\t\tsuper.onStart();\n\n\t\t/*\n\t\t * Connect the client. Don't re-start any requests here;\n\t\t * instead, wait for onResume()\n\t\t */\n\t\tmLocationClient.connect();\n\t}",
"protected void onConnect() {}",
"public void initialiseCRISTDiscovery() {\n\t}",
"@Override\n public void preStart() {\n //#subscribe\n cluster.subscribe(getSelf(), ClusterEvent.initialStateAsEvents(),\n ClusterEvent.MemberEvent.class, ClusterEvent.UnreachableMember.class);\n //#subscribe\n }",
"public void run()\n {\n parentProvider.getConnection()\n .removeAsyncStanzaListener(this);\n\n // init ssList\n ssContactList.init(contactChangesListener);\n\n // as we have dispatched the contact list and Roster is ready\n // lets start the jingle nodes discovery\n parentProvider.startJingleNodesDiscovery();\n }",
"public void run() {\n sendServerRegistrationMessage();\n if (serviceConnectedListener != null) {\n serviceConnectedListener.onServiceConnected(serviceDevice);\n }\n\n isRegistered = true;\n }",
"public void startListening();",
"protected void notifyStart(\n )\n {\n for(IListener listener : listeners)\n {listener.onStart(this);}\n }",
"@Override\n\t\t\t\tpublic void onStart() {\n\t\t\t\t}",
"public void discoverable()\n {\n if(mEnable) {\n Log.d(LOGTAG, \"Make discoverable\");\n if(mBluetoothAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n listen(false); // Stop listening if were listening\n Intent i = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);\n i.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n mContext.startActivity(i);\n listen(true); // Start again\n }\n }\n }",
"@Override\n\t\t\tpublic void onStart() {\n\t\t\t\tSystem.out.println(\"onStart\");\n\t\t\t\tif(listener!=null) listener.onMessage(\"onStart\");\n\t\t\t\tisRun = true;\n\t\t\t}",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tregistReciver();\n\t}",
"public void onEnable()\n\t{\n\t\t//Tells the user that the plugin is starting up.\n\t\tlog.info(\"Started up.\");\n\t}",
"@SubscribeEvent\n public void onServerStarting(final FMLServerStartingEvent event) {\n LOGGER.info(\"server starting...\");\n }",
"public void onStart() {\n super.onStart();\n this.eventDelegate.onStart();\n }",
"public void notifyStartup();",
"@Override\n public void processDiscoverEventBefore(final Long dcid, final Long podId, final Long clusterId, final URI uri, final String username, final String password, final\n List<String> hostTags) {\n\n }",
"@Override\n protected void onPreExecute() {\n callbackListener.onScanStart(\"Running a deep scan... this will take awhile...\");\n super.onPreExecute();\n }",
"public void startListening() {\r\n\t\tlisten.startListening();\r\n\t}",
"void onListeningFinished();",
"public void start() {\n logger.info(\"LeaderSelector start racing for leadership\");\n leaderElection();\n }",
"public void onSearchStarted();",
"public void scan()\n {\n if (mEnable) {\n // TODO: Listener only gets new devices. Somehow callback him with already paired devices\n if(!mScanning) {\n mScanning = true;\n mBluetoothAdapter.startDiscovery();\n }\n }\n }",
"public void deviceDiscovered(IDiscoverer _discoverer, IDevice _device);",
"@Override\r\n\tpublic void startup()\r\n\t{\n\t\tif (LOG.isDebugEnabled())\r\n\t\t{\r\n\t\t\tLOG.debug(\"starting broker by plugging configured engines\");\r\n\t\t}\r\n\t\tconfigure(broker);\r\n\t\t\r\n\t\t// register this engine for handling new (Un)PlugEvents\r\n\t\tProcessingEngine processing = broker.getEngine(ProcessingEngine.class);\r\n\t\tif (processing == null)\r\n\t\t{\r\n\t\t\tLOG.error(\"no processing engine available for registering event \"\r\n\t\t\t\t\t+ \"handlers\");\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tprocessing.registerEventClass(PlugEvent.class, this);\r\n\t}",
"@Override\n\tpublic void onStart() {\n\t\tsuper.onStart();\n\t\tdisplayEvent();\n\t}",
"@Override\n public void preStart() {\n cluster.subscribe(self(), ClusterEvent.MemberUp.class);\n }",
"public void mockDiscovered(IBlaubotDevice device, State deviceState) {\n\t\tif(this.discoveryEventListener != null) {\n\t\t\tAbstractBlaubotDeviceDiscoveryEvent discoveryEvent = deviceState.createDiscoveryEventForDevice(device);\n\t\t\tthis.discoveryEventListener.onDeviceDiscoveryEvent(discoveryEvent);\n\t\t}\n\t}",
"public void initializeResolveListener() {\n mResolveListener = new NsdManager.ResolveListener() {\n\n @Override\n public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) {\n Log.e(TAG, \"Resolve failed\" + errorCode);\n }\n\n @Override\n public void onServiceResolved(NsdServiceInfo serviceInfo) {\n Log.e(TAG, \"Resolve Succeeded. \" + serviceInfo);\n\n if (serviceInfo.getServiceName().equals(mServiceName)) {\n Log.d(TAG, \"Same IP.\");\n return;\n }\n mService = serviceInfo;\n receivedServices = serviceInfo.toString();\n\n }\n };\n }",
"@Override\n\tpublic void onNetStart(String id) {\n\t\t\n\t}",
"@Override\n public void start() {\n // get the SpotifyInteractor for connect to the internet\n mSpotifyInteractor = mSearchChildView.getSpotifyInteractor();\n // start search bar anim in view and setup searchbar\n setupSearchBar();\n // setup recyclerview and setup adapter\n setupList();\n }",
"@Override\n public void onResume()\n {\n super.onResume();\n mReceiver = new WiFiServerBroadCastReciever(mManager, mChannel, this);\n registerReceiver(mReceiver, mIntentFilter);\n\n searchDevices();\n\n }",
"public void run()\n {\n myBt.cancelDiscovery();\n Log.d(TAG,\"stopping discovery\");\n\n try\n {\n Log.d(TAG,\"connecting!\");\n mmSocket.connect();\n }\n catch (IOException connectException)\n {\n Log.e(TAG,\"failed to connect\");\n try\n {\n Log.e(TAG,\"close-ah-da-socket\");\n mmSocket.close();\n } catch (IOException closeException) {\n Log.e(TAG,\"failed to close hte socket\");\n closeException.printStackTrace();\n }\n Log.e(TAG,\"returning..\");\n\n return;\n }\n\n Log.d(TAG, \"connection established\");\n manageConnectedSocket(mmSocket);\n }",
"@Override public void start() {\n }",
"@Override\n public void onStart() {\n \n }",
"@Override\n public void onStart() {\n \n }",
"@Override\n public void onApplicationEvent(HeartbeatEvent event) {\n\n final Collection<String> discoveryUrls = config.getServiceUrl().values();\n\n logger.info(\"discovery URLS\" + discoveryUrls);\n\n int serverCount = 0;\n String defaultZone = \"\";\n\n for (final String discoveryUrl : discoveryUrls) {\n defaultZone += (serverCount > 0 ? (\",\" + discoveryUrl) : discoveryUrl);\n serverCount++;\n if (serverCount == DISCOVERY_SERVER_URL_MAX_COUNT) {\n break;\n }\n }\n\n config.getServiceUrl().put(DISCOVERY_CLIENT_ZONE, defaultZone);\n\n }",
"public DefaultDeviceDiscovererListener()\r\n {\r\n }",
"@Override\n\t\t\t\t\tpublic void onReqStart() {\n\t\t\t\t\t}",
"@Override\n public void start() {\n }",
"@Override // com.oculus.deviceconfigclient.DeviceConfigCallback\n public void onSuccess() {\n DeviceConfigHelper.sHasSubscribed.set(true);\n DeviceConfigHelper.sDidSubscribeComplete.set(true);\n while (DeviceConfigHelper.sOnSubscribeCompleteCallbacks.peek() != null) {\n ((DeviceConfigHelperSubscribeCompletedCallback) DeviceConfigHelper.sOnSubscribeCompleteCallbacks.remove()).call();\n }\n }",
"@Override\r\n\tprotected void onServiceConnected() {\n\t\taccessibilityServiceInfo.eventTypes = AccessibilityEvent.TYPE_NOTIFICATION_STATE_CHANGED;\r\n \r\n // If you only want this service to work with specific applications, set their\r\n // package names here. Otherwise, when the service is activated, it will listen\r\n // to events from all applications.\r\n //info.packageNames = new String[]\r\n //{\"com.appone.totest.accessibility\", \"com.apptwo.totest.accessibility\"};\r\n \r\n // Set the type of feedback your service will provide.\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.ICE_CREAM_SANDWICH) {\r\n \taccessibilityServiceInfo.feedbackType = AccessibilityServiceInfo.FEEDBACK_ALL_MASK;\r\n } else {\r\n \taccessibilityServiceInfo.feedbackType = AccessibilityServiceInfo.FEEDBACK_GENERIC;\r\n } \r\n \r\n // Default services are invoked only if no package-specific ones are present\r\n // for the type of AccessibilityEvent generated. This service *is*\r\n // application-specific, so the flag isn't necessary. If this was a\r\n // general-purpose service, it would be worth considering setting the\r\n // DEFAULT flag.\r\n \r\n // info.flags = AccessibilityServiceInfo.DEFAULT;\r\n \r\n accessibilityServiceInfo.notificationTimeout = 100;\r\n \r\n this.setServiceInfo(accessibilityServiceInfo);\r\n\t}",
"private void startAdvertising() {\n client.startAdvertising(codeName,getResources().getString(R.string.service_id), connectionLifecycleCallback, new AdvertisingOptions(STRATEGY));\n }",
"@Override\n\t\t\t\t\tpublic void onStart() {\n\n\t\t\t\t\t}",
"public void onServiceRegistered() {\r\n \t// Nothing to do here\r\n }",
"@Override\n synchronized public void onTaskCompletionResult() {\n if (DataContainer.getInstance().pullValueBoolean(DataKeys.PLAY_REFERRER_FETCHED, context) && DataContainer.getInstance().pullValueBoolean(DataKeys.GOOGLE_AAID_FETCHED, context)) {\n deviceInformationUtils.prepareInformations();\n deviceInformationUtils.debugData();\n long lastLaunch = pullValueLong(ITrackingConstants.CONF_LAST_LAUNCH_INTERNAL, context);\n trackLaunchHandler(lastLaunch);\n }\n }"
] |
[
"0.7314827",
"0.712138",
"0.675114",
"0.67125005",
"0.66238916",
"0.6609715",
"0.65389526",
"0.65196574",
"0.6512539",
"0.650346",
"0.64203566",
"0.6329384",
"0.63253635",
"0.6275413",
"0.61848974",
"0.6144632",
"0.6113422",
"0.6077913",
"0.60510314",
"0.6035684",
"0.60328",
"0.60260755",
"0.60022396",
"0.5999915",
"0.599978",
"0.5979229",
"0.5979229",
"0.5978367",
"0.59549826",
"0.59277004",
"0.5913282",
"0.5908276",
"0.590447",
"0.5873546",
"0.58552676",
"0.58376694",
"0.5837509",
"0.58160776",
"0.58159906",
"0.5815671",
"0.58154947",
"0.5804523",
"0.5787201",
"0.5786918",
"0.5781045",
"0.5760869",
"0.5755977",
"0.57542396",
"0.57518584",
"0.5727474",
"0.5721525",
"0.56841356",
"0.5678052",
"0.56745523",
"0.56653696",
"0.56644344",
"0.56588644",
"0.5651289",
"0.5637941",
"0.5618492",
"0.56096953",
"0.55965275",
"0.55875665",
"0.5584233",
"0.55775005",
"0.5571118",
"0.5564091",
"0.55613434",
"0.55508214",
"0.55480504",
"0.55391234",
"0.55367684",
"0.553078",
"0.55306786",
"0.55242944",
"0.5521732",
"0.55203",
"0.5515802",
"0.55156124",
"0.5505205",
"0.5501624",
"0.55014884",
"0.54877245",
"0.548091",
"0.5480638",
"0.5480221",
"0.54791605",
"0.54789937",
"0.5478608",
"0.5478608",
"0.5477156",
"0.54770803",
"0.5474614",
"0.54731655",
"0.5472291",
"0.5471265",
"0.54709625",
"0.5464263",
"0.54604334",
"0.5459678"
] |
0.787661
|
0
|
Called when discovery fails to start. Override this method to act on the event.
|
protected void onDiscoveryFailed() {
logAndShowSnackbar("Could not subscribe.");
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public void onFailure(@NonNull Exception e) {\n Discoverer.this.eventListener.trigger(\n EVENT_LOG, \"Fail to run discovery: \" + e.getMessage()\n );\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n Discoverer.this.eventListener.trigger(EVENT_LOG, \"Fail to request connection: \" + e.getMessage());\n }",
"protected void onDiscoveryStarted() {\n logAndShowSnackbar(\"Subscription Started\");\n }",
"@Override\n public void onFailure(int code) {\n Log.e(TAG, \"discoverServices Failure \" + code);\n\n if (code == WifiP2pManager.BUSY && mDeviceRegistering != null) {\n discoverServices();\n } else {\n mService.stopSelf();\n }\n }",
"private void connectionFailed() {\n // Send a failure message back to the Activity\n Message msg = handler.obtainMessage(SdlRouterService.MESSAGE_LOG);\n Bundle bundle = new Bundle();\n bundle.putString(LOG, \"Unable to connect device\");\n msg.setData(bundle);\n handler.sendMessage(msg);\n\n // Start the service over to restart listening mode\n // BluetoothSerialServer.this.start();\n }",
"private void onUnavailable() {\n // TODO: broadcast\n }",
"void onDiscoverPeersFailure(final int reasonCode);",
"@Override\n public void onFailure(int i) {\n discoverPeersTillSuccess();\n }",
"@Override\n public void onDiscoveryComplete() {\n BusProvider.getInstance().post(new DiscoveryCompleteEvent());\n }",
"private void signalError() {\n Connection connection = connectionRef.get();\n if (connection != null && connection.isDefunct()) {\n Host host = cluster.metadata.getHost(connection.address);\n // Host might be null in the case the host has been removed, but it means this has\n // been reported already so it's fine.\n if (host != null) {\n cluster.signalConnectionFailure(host, connection.lastException());\n return;\n }\n }\n\n // If the connection is not defunct, or the host has left, just reconnect manually\n reconnect();\n }",
"private void startDiscovery() {\n client.startDiscovery(getResources().getString(R.string.service_id), endpointDiscoveryCallback, new DiscoveryOptions(STRATEGY));\n }",
"private void startDiscovery() {\n\t\tbtAdapter.cancelDiscovery();\n\t\tbtAdapter.startDiscovery();\n\t}",
"@Override\n\t\t\t\tpublic void onException(Exception e) {\n\t\t\t\t\tLog.d(\"SD_TRACE\", \"load api exception\" + e.toString());\n\t\t\t\t\tmLoadSuccess = false;\n\t\t\t\t}",
"void nodeFailedToStart(Exception e);",
"@Override\n public void onConnectionFailed(Die die, Exception e) {\n Log.d(TAG, \"Connection failed\", e);\n dicePlus = null;\n BluetoothManipulator.startScan();\n }",
"protected void onConnectionError() {\n\t}",
"@Override // com.oculus.deviceconfigclient.DeviceConfigCallback\n public void onFailure(String str) {\n Log.e(DeviceConfigHelper.TAG, String.format(\"Error while connecting to Mobile Config Service: %s\", str));\n DeviceConfigHelper.sDidSubscribeComplete.set(true);\n while (DeviceConfigHelper.sOnSubscribeCompleteCallbacks.peek() != null) {\n ((DeviceConfigHelperSubscribeCompletedCallback) DeviceConfigHelper.sOnSubscribeCompleteCallbacks.remove()).call();\n }\n }",
"@Override\n protected void onStarted() {\n\n super.onStarted();\n\n // No need for discovery services in Archive mode\n if (mIsArchive) return; //TODO: maybe remove this line - should be caught by the NETWORK_NONE case\n\n\n switch (mNetworkType) {\n case BabbleService.NETWORK_NONE:\n Log.i(TAG, \"NONE / Archive\");\n return;\n case BabbleService.NETWORK_WIFI:\n Log.i(TAG, \"WIFI / MDNS\");\n mAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n break;\n case BabbleService.NETWORK_P2P:\n Log.i(TAG, \"P2P\");\n mAdvertiser = P2PService.getInstance(mAppContext);\n break;\n }\n\n // mMdnsAdvertiser = new MdnsAdvertiser(mGroupDescriptor, sDiscoveryPort, mAppContext);\n\n Log.i(TAG, \"onStarted: Port \"+sDiscoveryPort);\n\n mHttpPeerDiscoveryServer = new HttpPeerDiscoveryServer(sDiscoveryPort, mBabbleNode); //TODO: use next available port?\n try {\n mHttpPeerDiscoveryServer.start();\n mAdvertiser.advertise(); // start mDNS advertising if server started\n mAdvertising = true;\n } catch (IOException ex) {\n //Probably the port is in use, we'll continue without the discovery service\n }\n }",
"@Override\n\t\t\t\t\tpublic void onConnectionFailed(Robot arg0) {\n\n\t\t\t\t\t}",
"public void errorGettingEvent() {\n hideProgressBar();\n Log.e(Tag.FIREBASE_ERROR, \"Error getting the events\");\n// Toast.makeText(this, getText(R.string.can_not_load_event), Toast.LENGTH_SHORT).show();\n launchAndClose(new Intent(this, MainActivity.class));\n }",
"public void onConnectionError()\n\t\t{\n\t\t}",
"@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}",
"@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\ttopicStateChanged.publish(State.OFFLINE);\n\t\t\t\t}",
"public void run() throws Exception {\n logger.log(Level.FINE, \"run()\");\n /* Start the discovery prcess by creating a LookupDiscovery\n * instance configured to discover BOTH the initial and additional\n * lookup services to be started.\n */\n String[] groupsToDiscover = toGroupsArray(getAllLookupsToStart());\n logger.log(Level.FINE,\n \"starting discovery by creating a \"\n +\"LookupDiscovery to discover -- \");\n for(int i=0;i<groupsToDiscover.length;i++) {\n logger.log(Level.FINE, \" \"+groupsToDiscover[i]);\n }//end loop\n LookupDiscovery ld = new LookupDiscovery(groupsToDiscover,\n getConfig().getConfiguration());\n lookupDiscoveryList.add(ld);\n\n /* Verify that the lookup discovery utility created above is\n * operational by verifying that the INITIIAL lookups are\n * discovered.\n */\n mainListener.setLookupsToDiscover(getInitLookupsToStart());\n ld.addDiscoveryListener(mainListener);\n waitForDiscovery(mainListener);\n\n /* Terminate the lookup discovery utility */\n ld.terminate();\n logger.log(Level.FINE, \"terminated lookup discovery\");\n\n\n /* Since the lookup discovery utility was terminated, the listener\n * should receive no more events when new lookups are started that\n * belong to groups the utility is configured to discover. Thus,\n * reset the listener to expect no more events.\n */\n mainListener.clearAllEventInfo();\n /* Verify that the lookup discovery utility created above is no\n * longer operational by starting the additional lookups, and\n * verifying that the listener receives no more discovered events.\n */\n logger.log(Level.FINE,\n \"starting additional lookup services ...\");\n startAddLookups();\n /* Wait a nominal amount of time to allow any un-expected events\n * to arrive.\n */\n waitForDiscovery(mainListener);\n }",
"@Override\r\n\t\t\t\t\t\tpublic void onFailed(String failReason) {\n\t\t\t\t\t\t\tTypeSDKLogger.e(\"initSDK_Failed\");\r\n\t\t\t\t\t\t\tTypeSDKLogger.e(\"failReason:\" + failReason);\r\n\t\t\t\t\t\t}",
"void onErrorOccurred() {\n mUserAwarenessListener.onErrorOccurred(Errors.UNDEFINED);\n\n //start light sensor because eye tracking is not running we don't need light sensor now\n mLightIntensityManager.stopLightMonitoring();\n }",
"public void hidFailure(HidServicesEvent event);",
"private void gestioneDisconnessione(Exception e) {\n\t\tLOG.info(\"Client disconnesso\");\n\t\tthis.completeWithError(e);\n\t\tthis.running=false;\n\t}",
"void onCreateNewNetFailure();",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n\n /*\n * Google Play services can resolve some errors it detects.\n * If the error has a resolution, try sending an Intent to\n * start a Google Play services activity that can resolve\n * error.\n */\n if (connectionResult.hasResolution()) {\n\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(activity,\n \t\tLocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n\n /*\n * If no resolution is available, put the error code in\n * an error Intent and broadcast it back to the main Activity.\n * The Activity then displays an error dialog.\n * is out of date.\n */\n } else {\n\n Intent errorBroadcastIntent = new Intent(LocationUtils.ACTION_CONNECTION_ERROR);\n errorBroadcastIntent.addCategory(LocationUtils.CATEGORY_LOCATION_SERVICES)\n .putExtra(LocationUtils.EXTRA_CONNECTION_ERROR_CODE,\n connectionResult.getErrorCode());\n LocalBroadcastManager.getInstance(activity).sendBroadcast(errorBroadcastIntent);\n }\n }",
"@Override public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\",\n \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }",
"@Override\n public void onMachineBroken()\n {\n \n }",
"private void continueAfterDiscovery(Boolean success){\n stopDiscovery();\n //Open website of node to continue installation of node\n if (success) {\n //open webview with node ip\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"http://\" + mNodeIP));\n startActivity(browserIntent);\n //Returning from Async call, check if view is still active\n //If not working check if setting a destroyed tag in onDetach() is a solution\n if (getView() == null) {\n //Has to be tested if a simple return produces no errors\n return;\n }\n mListener.onAfterShowNode(success);\n } else {\n mListener.onAfterShowNode(success);\n }\n }",
"private void doDiscovery() {\n\t\t// Indicate scanning in the title\n\t\t// setProgressBarIndeterminateVisibility(true);\n\t\tsetTitle(R.string.scanning);\n\n\t\t// Turn on sub-title for new devices\n\t\tfindViewById(R.id.title_new_devices).setVisibility(View.VISIBLE);\n\n\t\t// If we're already discovering, stop it\n\t\tif (m_BtAdapter.isDiscovering()) {\n\t\t\tm_BtAdapter.cancelDiscovery();\n\t\t}\n\n\t\t// Request discover from BluetoothAdapter\n\t\tm_BtAdapter.startDiscovery();\n\t}",
"@Override\n public void onScanFailed() {\n Log.d(TAG, \"Scan Failed\");\n BluetoothManipulator.startScan();\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\t/*\n\t\t * Google Play services can resolve some errors it detects. If the error\n\t\t * has a resolution, try sending an Intent to start a Google Play\n\t\t * services activity that can resolve error.\n\t\t */\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(this,\n\t\t\t\t\t\tCONNECTION_FAILURE_RESOLUTION_REQUEST);\n\t\t\t\t/*\n\t\t\t\t * Thrown if Google Play services canceled the original\n\t\t\t\t * PendingIntent\n\t\t\t\t */\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\tToast.makeText(getApplicationContext(),\n\t\t\t\t\t\"Sorry. Location services not available to you\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}",
"private void stopDiscovery() {\n if (mDisposable != null) {\n mDisposable.dispose();\n }\n }",
"void onConnectToNetByIPFailure();",
"@Override\n public void onConnectFailed()\n {\n Log.e(\"Dudu_SDK\",\n \"获取NS 业务服务器失败...onConnectFailed ... reconnect()...5 seconds later ...\");\n reconnect();\n if (connectCallBack != null)\n connectCallBack.onConnectFailed();\n }",
"@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryCompleteEvent event) {\n enableManualDiscoveryButton(true);\n if(event.isComplete()) {\n Toast.makeText(getApplicationContext(), \"Manual device discovery is complete\" , Toast.LENGTH_SHORT).show();\n }\n }",
"@Override\n\tpublic void onNewsReceiveError() {\n\t\tsetProgressBarIndeterminateVisibility(false);\n\t\t// reset fetcher task\n\t\tmFetcherTask = null;\n\t}",
"private void doDiscovery() {\n if (D) Log.d(TAG, \"doDiscovery()\");\n\n // Indicate scanning in the title\n setProgressBarIndeterminateVisibility(true);\n setTitle(R.string.scanning);\n\n // Turn on sub-title for new devices\n findViewById(R.id.title_new_devices).setVisibility(View.VISIBLE);\n\n // If we're already discovering, stop it\n if (mBtAdapter.isDiscovering()) {\n mBtAdapter.cancelDiscovery();\n }\n\n // Request discover from BluetoothAdapter\n mBtAdapter.startDiscovery();\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(\n this,\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n //Do nothing, no location available so use default default in server spinner\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n // Thrown if Google Play services canceled the original PendingIntent\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /* If no resolution is available, display a dialog to the\n * user with the error. */\n Log.i(LOG_TAG, \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }",
"private void considerUnavailable() {\n host.makeUnavailable(this::tryReconnect);\n\n // if the host is unavailable then we should release the connections\n connections.forEach(this::definitelyDestroyConnection);\n\n // let the load-balancer know that the host is acting poorly\n this.cluster.loadBalancingStrategy().onUnavailable(host);\n\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n }",
"private void ensureDiscoverable() {\n\t\tif (D)\n\t\t\tLog.d(TAG, \"ensure discoverable\");\n\t\tif (mBluetoothAdapter.getScanMode() != BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n\t\t\tIntent discoverableIntent = new Intent(\n\t\t\t\t\tBluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n\t\t\tdiscoverableIntent.putExtra(\n\t\t\t\t\tBluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n\t\t\tstartActivity(discoverableIntent);\n\t\t}\n\t}",
"@Override\n\t\t\t\tpublic void onAddFail() {\n\t\t\t\t\tif (addListener != null) {\n\t\t\t\t\t\taddListener.onAddFail();\n\t\t\t\t\t}\n\t\t\t\t}",
"@Override\n\tpublic void onNetWorkError() {\n\t\t\n\t}",
"private void handleRegistrationBackoffOnError(String error) {\n Log.e(TAG, \"Registration error \" + error);\n onRegistrationError(error);\n if (C2DMessaging.ERR_SERVICE_NOT_AVAILABLE.equals(error)) {\n long backoffTimeMs = C2DMSettings.getBackoff(context);\n createAlarm(backoffTimeMs);\n increaseBackoff(backoffTimeMs);\n }\n }",
"private void connectionFailed(String e) {\n setState(STATE_LISTEN);\n\n // Send a failure message back to the Activity\n Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(RemoteBluetooth.TOAST, e);\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n }",
"@Override\n\t\t\tpublic void onNetworkError() {\n\n\t\t\t}",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(this, 9000);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n\t\t\tLog.i(\"LOCATION\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n\t\t}\n\t}",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n // Can it be resolved, for example by installing a new version?\n log(\"Connection failed\");\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n log(\"Trying to resolve the error...\");\n connectionResult.startResolutionForResult(\n this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n } catch (IntentSender.SendIntentException e) {\n log(\"Exception during resolution: \" + e.toString());\n }\n } else {\n // No resolution is available\n showErrorDialog(connectionResult.getErrorCode());\n }\n }",
"@Override\r\n\tpublic void onFailedToReceiveAd(Ad arg0, ErrorCode arg1) {\n\t\tLog.d(\"AdMob\", \"失敗\");\r\n\t arg0.stopLoading();\r\n\t arg0.loadAd(new AdRequest());\r\n\t}",
"@Override\n \tpublic void reconnectionFailed(Exception arg0) {\n \t}",
"@Override\n public void errorReceived(Exception ex) {\n }",
"@Override\n public void errorReceived(Exception ex) {\n }",
"public void startDiscovery() {\n if (mApiClient != null) {\n Weave.DEVICE_API.startLoading(mApiClient, mDiscoveryListener);\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 }",
"@Override\r\n\tpublic void onDiscoverySelected() {\n\t\tLog.d(TAG, \"onDiscoverySelected()\");\r\n\t\tmManager.discoverPeers(mChannel, new WifiP2pManager.ActionListener() {\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onSuccess() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tLog.d(TAG, \"onSucess()\");\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"Peers Avaliable!\", Toast.LENGTH_SHORT).show();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t@Override\r\n\t\t\tpublic void onFailure(int reason) {\r\n\t\t\t\tLog.d(TAG, \"onFailure()\");\r\n\t\t\t\tString message = reason == WifiP2pManager.P2P_UNSUPPORTED ? \"P2P_UNSUPORTED\" : \"BUSY\" ;\r\n\t\t\t\t\r\n\t\t\t\tToast.makeText(getApplicationContext(), \"No Peers Avaliable, reason: \"+message, Toast.LENGTH_SHORT).show();\r\n\t\t\t}\r\n\t\t});\r\n\t}",
"@Override\n public void onFailure(Call<List<DeviceStateResponse>> call, Throwable t) {\n callback.onDataNotAvailable();\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n return;\n }",
"@Override\r\n\tpublic void networkErrorHappened() {\r\n\t\t//Tracker\r\n\t\tTracker.getInstance().trackPageView(\"directory/searchView/network_error\");\r\n\t\t\r\n\t\tInputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE);\r\n\t\timm.hideSoftInputFromWindow(mInputBar.getWindowToken(), 0);\r\n\t\t\r\n\t\tmLayout.setText(getString(R.string.directory_network_error));\r\n\t\t\r\n\t\tmAdapter = new ArrayAdapter<String>(getApplicationContext(), R.layout.sdk_list_entry, R.id.sdk_list_entry_text, new ArrayList<String>());\r\n\r\n\t\tmListView.setAdapter(mAdapter);\r\n\t\tmListView.invalidate();\r\n\t}",
"public void inquiryError() {\n\t\t\n\t}",
"public void run()\n {\n myBt.cancelDiscovery();\n Log.d(TAG,\"stopping discovery\");\n\n try\n {\n Log.d(TAG,\"connecting!\");\n mmSocket.connect();\n }\n catch (IOException connectException)\n {\n Log.e(TAG,\"failed to connect\");\n try\n {\n Log.e(TAG,\"close-ah-da-socket\");\n mmSocket.close();\n } catch (IOException closeException) {\n Log.e(TAG,\"failed to close hte socket\");\n closeException.printStackTrace();\n }\n Log.e(TAG,\"returning..\");\n\n return;\n }\n\n Log.d(TAG, \"connection established\");\n manageConnectedSocket(mmSocket);\n }",
"public void requestFailed(RequestFailureEvent e);",
"void discoverFinished();",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (IntentSender.SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n } else {\n /*\n * If no resolution is available, display a dialog to the\n * user with the error.\n */\n Log.e(\"Error\", \"Location services connection failed with code \" + connectionResult.getErrorCode());\n }\n\n }",
"private void doDiscovery() {\n Log.d(TAG, \"doDiscovery()\");\n\n // If we're already discovering, stop it\n if (mBtAdapter.isDiscovering()) {\n mBtAdapter.cancelDiscovery();\n }\n\n // Request discover from BluetoothAdapter\n mBtAdapter.startDiscovery();\n }",
"void onDisconnectFailure();",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\n\t\t/*\n\t\t * Google Play services can resolve some errors it detects.\n\t\t * If the error has a resolution, try sending an Intent to\n\t\t * start a Google Play services activity that can resolve\n\t\t * error.\n\t\t */\n\t\tif (connectionResult.hasResolution()) {\n\t\t\ttry {\n\n\t\t\t\t// Start an Activity that tries to resolve the error\n\t\t\t\tconnectionResult.startResolutionForResult(\n\t\t\t\t\t\tthis,\n\t\t\t\t\t\tLocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n\t\t\t\t/*\n\t\t\t\t * Thrown if Google Play services canceled the original\n\t\t\t\t * PendingIntent\n\t\t\t\t */\n\n\t\t\t} catch (IntentSender.SendIntentException e) {\n\n\t\t\t\t// Log the error\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\n\t\t\t// If no resolution is available, display a dialog to the user with the error.\n\t\t\tshowErrorDialog(connectionResult.getErrorCode());\n\t\t}\n\t}",
"@Override\n\t\t\t\t\tpublic void onNotifyWifiConnectFailed()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected failed!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}",
"@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}",
"@Override\n\t\t\tpublic void onFailed(String message, int code) {\n\t\t\t\t\n\t\t\t}",
"void failure(ServiceExecutionEvent e) {\n\n }",
"@Override\n\tpublic void serviceConnectionError(WorkoutServiceConnectionErrorType errorType) {\n\t\tswitch (errorType) {\n\n\t\t// If there's a Bioharness error, show a dialog prompting the user to retry the Bioharness connection. If they\n\t\t// accept, launch the device discovery activity. If not, quit.\n\t\tcase BioharnessError:\n\t\t\tlogger.warn(\"serviceConnectionError(): Error reported of type BioharnessError. Prompting the user to check their Bluetooth settings.\");\n\t\t\tBioharnessPreferences.BioharnessDescription.clearValue(WorkoutActivity.this);\n\t\t\tAlertDialog.Builder builder = new AlertDialog.Builder(WorkoutActivity.this);\n\t\t\tbuilder.setTitle(string.workoutscreen_dialog_nobioharness)\n\t\t\t\t\t.setMessage(string.workoutscreen_dialog_nobioharness_message)\n\t\t\t\t\t.setPositiveButton(string.workoutscreen_dialog_nobioharness_retry,\n\t\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\n\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\t\t\tIntent i = new Intent(WorkoutActivity.this, DeviceListActivity.class);\n\t\t\t\t\t\t\t\t\tstartActivityForResult(i, REQUEST_DISCOVER_DEVICE);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}).setNegativeButton(string.cancel, new DialogInterface.OnClickListener() {\n\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\tfinish();\n\t\t\t\t\t\t}\n\t\t\t\t\t}).show();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tlogger.error(\"serviceConnectionError(): Error reported of type \" + errorType\n\t\t\t\t\t+ \", which cannot be handled by the user. Activity will now finish.\");\n\t\t\tfinish();\n\t\t\tbreak;\n\t\t}\n\t}",
"@Override\n public void fetchNewsFail() {\n }",
"@Override\n\t\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t if (connectionResult.hasResolution()) {\n\t try {\n\t // Start an Activity that tries to resolve the error\n\t connectionResult.startResolutionForResult(activity, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\t } catch (IntentSender.SendIntentException e) {\n\t // Log the error\n\t e.printStackTrace();\n\t }\n\t } else {\n\t /*\n\t * If no resolution is available, display a dialog to the\n\t * user with the error.\n\t */\n\n\t }\n\t\t\t\n\t\t}",
"private void ensureDiscoverable() {\n if (mBluetoothAdapter.getScanMode() !=\n BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n startActivity(discoverableIntent);\n }\n }",
"private void ensureDiscoverable() {\n if (mBluetoothAdapter.getScanMode() !=\n BluetoothAdapter.SCAN_MODE_CONNECTABLE_DISCOVERABLE) {\n Intent discoverableIntent = new Intent(BluetoothAdapter.ACTION_REQUEST_DISCOVERABLE);\n discoverableIntent.putExtra(BluetoothAdapter.EXTRA_DISCOVERABLE_DURATION, 300);\n startActivity(discoverableIntent);\n }\n }",
"private void retry() {\n if (catalog == null) {\n if (--retries < 0) {\n inactive = true;\n pendingRequests.clear();\n log.error(\"Maximum retries exceeded while attempting to load catalog for endpoint \" + discoveryEndpoint\n + \".\\nThis service will be unavailabe.\");\n } else {\n try {\n sleep(RETRY_INTERVAL * 1000);\n _loadCatalog();\n } catch (InterruptedException e) {\n log.warn(\"Thread for loading CDS Hooks catalog for \" + discoveryEndpoint + \"has been interrupted\"\n + \".\\nThis service will be unavailable.\");\n }\n }\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(\n this,\n LocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n\n } catch (IntentSender.SendIntentException e) {\n\n // Log the error\n e.printStackTrace();\n }\n } else {\n\n // If no resolution is available, display a dialog to the user with the error.\n showErrorDialog(connectionResult.getErrorCode());\n }\n }",
"@Override\n\t\t\t\t\t\tpublic void onSyncErr() {\n\t\t\t\t\t\t\tnotifyLoginEvent(true);\n\t\t\t\t\t\t}",
"@Override\n public void start() throws Throwable\n {\n if ( recoveredLog )\n {\n monitor.recoveryCompleted();\n }\n }",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\n\t\t\t}",
"public void onConnectionFailed(ConnectionResult connectionResult) {\r\n /*\r\n * Google Play services can resolve some errors it detects.\r\n * If the error has a resolution, try sending an Intent to\r\n * start a Google Play services activity that can resolve\r\n * error.\r\n */\r\n if (connectionResult.hasResolution()) {\r\n try {\r\n // Start an Activity that tries to resolve the error\r\n connectionResult.startResolutionForResult(\r\n this,\r\n CONNECTION_FAILURE_RESOLUTION_REQUEST);\r\n /*\r\n * Thrown if Google Play services canceled the original\r\n * PendingIntent\r\n */\r\n } catch (IntentSender.SendIntentException e) {\r\n // Log the error\r\n e.printStackTrace();\r\n }\r\n } else {\r\n Toast.makeText(getApplicationContext(), \"Sorry. Location services not available to you\", Toast.LENGTH_LONG).show();\r\n }\r\n }",
"@Override\n boolean isFailed() {\n return false;\n }",
"@Subscribe(threadMode = ThreadMode.MAIN, sticky = true)\n public void onCaptureDeviceDiscoveryChange(DeviceDiscoveryEvent event) {\n Log.d(TAG, \"DeviceDiscoveryEvent received \");\n enableManualDiscoveryButton(true);\n DiscoveredDevice device = event.getDiscoveredDevice();\n if(device != null) {\n Log.d(TAG, \"name \" + device.getName());\n Log.d(TAG, \"unique id \" + device.getUniqueIdentifier());\n\n updateFavoriteSpinner(device.getUniqueIdentifier(), device.getName());\n }\n }",
"@Override\r\n public void connectFailed() {\n super.connectFailed();\r\n Commons.showToast(act, \"连接失败\");\r\n act.dismissLoadDialog();\r\n }",
"@Override\n\t\t\tpublic void onFail(int code) {\n\t\t\t\t\t\n\t\t\t}",
"@Override\n public void onCreateFailure(String s) {\n }",
"@Override\n public void onCreateFailure(String s) {\n }",
"public void initializeResolveListener() {\n mResolveListener = new NsdManager.ResolveListener() {\n\n @Override\n public void onResolveFailed(NsdServiceInfo serviceInfo, int errorCode) {\n Log.e(TAG, \"Resolve failed\" + errorCode);\n }\n\n @Override\n public void onServiceResolved(NsdServiceInfo serviceInfo) {\n Log.e(TAG, \"Resolve Succeeded. \" + serviceInfo);\n\n if (serviceInfo.getServiceName().equals(mServiceName)) {\n Log.d(TAG, \"Same IP.\");\n return;\n }\n mService = serviceInfo;\n receivedServices = serviceInfo.toString();\n\n }\n };\n }",
"@Override\n public void onFailure() {\n }",
"private void error() {\n this.error = true;\n this.clients[0].error();\n this.clients[1].error();\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\n\t}"
] |
[
"0.776737",
"0.6768654",
"0.6353968",
"0.6314961",
"0.6281765",
"0.6275291",
"0.62634784",
"0.62222266",
"0.6172283",
"0.61643463",
"0.61126107",
"0.60927016",
"0.6035283",
"0.60212487",
"0.60029685",
"0.5992991",
"0.5833554",
"0.58253217",
"0.57891446",
"0.57674205",
"0.57591033",
"0.57448614",
"0.57395464",
"0.5720019",
"0.5655828",
"0.5645387",
"0.5641631",
"0.5615019",
"0.5594332",
"0.5582736",
"0.55789626",
"0.5574459",
"0.55645394",
"0.5552383",
"0.5547585",
"0.5540315",
"0.55365294",
"0.55310374",
"0.55263865",
"0.5516979",
"0.55164087",
"0.550883",
"0.5498738",
"0.5491525",
"0.54827297",
"0.54823244",
"0.5481359",
"0.5481359",
"0.5477769",
"0.546781",
"0.54644847",
"0.54622483",
"0.5460863",
"0.54596657",
"0.5458053",
"0.54577184",
"0.5448671",
"0.5447755",
"0.5442469",
"0.5442469",
"0.5440509",
"0.54319036",
"0.5428824",
"0.5425111",
"0.5424564",
"0.54233056",
"0.5421035",
"0.54138416",
"0.5408434",
"0.54060394",
"0.54014474",
"0.53990394",
"0.53883576",
"0.53845406",
"0.53830516",
"0.5379623",
"0.5379623",
"0.5379623",
"0.5377385",
"0.5375128",
"0.5373514",
"0.5367985",
"0.5367143",
"0.5367143",
"0.536279",
"0.53522444",
"0.534762",
"0.5345",
"0.53387696",
"0.5338274",
"0.53343827",
"0.5333785",
"0.53309184",
"0.5330557",
"0.5329323",
"0.5329323",
"0.5328577",
"0.5326274",
"0.5323397",
"0.5322323"
] |
0.8096631
|
0
|
Disconnects from the given endpoint.
|
protected void disconnect(Endpoint endpoint) {
mConnectionsClient.disconnectFromEndpoint(endpoint.getId());
mEstablishedConnections.remove(endpoint.getId());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void disconnect() throws TransportException;",
"protected void onEndpointDisconnected(Endpoint endpoint) {}",
"void disconnectArtist(UUID requestId) throws\n ArtistDisconnectingFailedException,\n ConnectionRequestNotFoundException;",
"public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }",
"public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }",
"protected void rejectConnection(Endpoint endpoint) {\n mConnectionsClient\n .rejectConnection(endpoint.getId())\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n logW(\"rejectConnection() failed.\", e);\n }\n });\n }",
"@Override\n public DeleteEndpointResult deleteEndpoint(DeleteEndpointRequest request) {\n request = beforeClientExecution(request);\n return executeDeleteEndpoint(request);\n }",
"public void disconnect(ClientAddress clientAddress);",
"public void removeEndpoint(Endpoint endpoint)\r\n {\r\n getEndpoints().remove(endpoint);\r\n }",
"public Reply\tdisconnect() throws ThingsException, InterruptedException ;",
"public void deactivate() throws JBIException {\n count--;\n if(count != 0)\n return;\n _ode.getContext().deactivateEndpoint(_internal);\n __log.debug(\"Dectivated endpoint \" + _endpoint);\n }",
"Completable deletePrivateEndpointConnectionAsync(String resourceGroupName, String serviceName, String peConnectionName);",
"Completable deletePrivateEndpointConnectionAsync(String resourceGroupName, String serviceName, String peConnectionName);",
"public void disconnect() {\n\t\tfinal String METHOD = \"disconnect\";\n\t\tLoggerUtility.fine(CLASS_NAME, METHOD, \"Disconnecting from the IBM Watson IoT Platform ...\");\n\t\ttry {\n\t\t\tthis.disconnectRequested = true;\n\t\t\tmqttAsyncClient.disconnect();\n\t\t\tLoggerUtility.info(CLASS_NAME, METHOD, \"Successfully disconnected \"\n\t\t\t\t\t+ \"from the IBM Watson IoT Platform\");\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"void disconnect() throws Exception;",
"public void disconnect() {}",
"public static void disconnect() {\n \t\tconnPool.stop();\n \t}",
"public CompletionStage<Void> disconnect() {\n\t\treturn this.finConnection.sendMessage(\"disconnect-from-channel\", FinBeanUtils.toJsonObject(this.routingInfo)).thenAccept(ack->{\n\t\t\tif (!ack.isSuccess()) {\n\t\t\t\tthrow new RuntimeException(\"error disconnecting channel client, reason: \" + ack.getReason());\n\t\t\t}\n\t\t});\n\t}",
"@Override\n\tpublic void disconnect(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {\n\t\tLog.i(\"MySocketHandler\", \"disconnect\");\n\t\tsuper.disconnect(ctx, promise);\n\t}",
"public void disconnect() {\n if (logger.isActivated()) {\n logger.info(\"Network access disconnected\");\n }\n ipAddress = null;\n }",
"public void disconnect() {\n if (connectCount.decrementAndGet() == 0) {\n LOG.trace(\"Disconnecting JGroupsraft Channel {}\", getEndpointUri());\n resolvedRaftHandle.channel().disconnect();\n }\n }",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"public void disconnect() {\n\t\tdisconnect(null);\n\t}",
"public void disconnect() {\n SocketWrapper.getInstance(mContext).disConnect();\n }",
"public void disconnect()\n\t{\n\t\tif (isConnected)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvimPort.logout(serviceContent.getSessionManager());\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tlogger.trace(\"Failed to logout esx: \" + host, e);\n\t\t\t}\n\t\t}\n\t\tisConnected = false;\n\t}",
"public void disconnect()\n {\n isConnected = false;\n }",
"public void disconnect() {\r\n\t\tif (connected.get()) {\r\n\t\t\tserverConnection.getConnection().requestDestToDisconnect(true);\r\n\t\t\tconnected.set(false);\r\n\t\t}\r\n\t}",
"public void disconnect() {\n\t\tdisconnect(true);\n\t}",
"public void disconnect()\r\n\t{\r\n\t\ttry {\r\n\t\t\tconnection_.close();\r\n\t\t} catch (IOException e) {} // How can closing a connection fail?\r\n\t\t\r\n\t}",
"public void disconnect() {\n try {\n if (socket != null)\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n isConnected = false;\n }",
"void disconnect( String name )\n throws Exception;",
"public static void disconnect()\n\t{\n\t\tTASK_LIST.add(ArduinoComms::disconnectInternal);\n\t\tTASK_LIST.add(ArduinoComms::notifyDisconnected);\n\t\t//TODO if waiting at socket.connect from connect() notify the tread\n\t}",
"void disconnect(String reason);",
"public com.google.common.util.concurrent.ListenableFuture<lnrpc.Rpc.DisconnectPeerResponse> disconnectPeer(\n lnrpc.Rpc.DisconnectPeerRequest request) {\n return futureUnaryCall(\n getChannel().newCall(getDisconnectPeerMethod(), getCallOptions()), request);\n }",
"@Override\n public void onDisconnected(String endpointId) {\n Discoverer.this.eventListener.trigger(EVENT_LOG, \"Disconnected \" + endpointId);\n }",
"public void disconnect()\n {\n \tLog.d(TAG, \"disconnect\");\n\n \tif(this.isConnected) {\n \t\t// Disable the client connection if have service\n \t\tif(mLedService != null) {\n \t\t\tthis.disable();\n \t\t}\n \t\t\n \t\t// Unbind service\n mContext.unbindService(mServiceConnection);\n \n this.isConnected = false;\n \t}\n }",
"public void removeEndpoint(String endpointGUID) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n connectionManagerClient.removeEndpoint(userId, apiManagerGUID, apiManagerName, endpointGUID);\n }",
"public void disconnectPeer(lnrpc.Rpc.DisconnectPeerRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.DisconnectPeerResponse> responseObserver) {\n asyncUnimplementedUnaryCall(getDisconnectPeerMethod(), responseObserver);\n }",
"public lnrpc.Rpc.DisconnectPeerResponse disconnectPeer(lnrpc.Rpc.DisconnectPeerRequest request) {\n return blockingUnaryCall(\n getChannel(), getDisconnectPeerMethod(), getCallOptions(), request);\n }",
"public void disconnect() {\n\t\tif (con.isConnected()) {\n\t\t\tcon.disconnect();\n\t\t}\n\t}",
"public void disconnect() {\n\t\tif (sock != null) {\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t} finally {\n\t\t\t\tsock = null;\n\t\t\t}\n\t\t}\n\t\toutStream.reset();\n\t\tdisconnected();\n\t}",
"protected void disconnectFromAllEndpoints() {\n for (Endpoint endpoint : mEstablishedConnections.values()) {\n mConnectionsClient.disconnectFromEndpoint(endpoint.getId());\n }\n mEstablishedConnections.clear();\n }",
"public void disconnect( ) {\n disconnect( \"\" );\n }",
"public void disconnectSensor() {\n try {\n resultConnection.releaseAccess();\n } catch (NullPointerException ignored) {\n }\n }",
"public void disconnect(ClientAddress clientAddress, InetSocketAddress reconnect, Integer delay);",
"public void removeEndpoint(String endpoint) {\n\t\tsessionMap.remove(endpoint);\n\t\tLOG.info(\"Removed endpoint {} with all its sessions\", endpoint);\n\t}",
"public void disconnectPeer(lnrpc.Rpc.DisconnectPeerRequest request,\n io.grpc.stub.StreamObserver<lnrpc.Rpc.DisconnectPeerResponse> responseObserver) {\n asyncUnaryCall(\n getChannel().newCall(getDisconnectPeerMethod(), getCallOptions()), request, responseObserver);\n }",
"public void disconnect() {\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n Debug.logError(e, MODULE);\n }\n }",
"private void disconnect() {\n\n if (inStream != null) {\n try {inStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (outStream != null) {\n try {outStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (socket != null) {\n try {socket.close();} catch (Exception e) { e.printStackTrace(); }\n }\n }",
"@Override\n public void stopEndpoint() {\n if (!isRunning()) {\n return;\n }\n\n setRunning(false);\n\n try {\n try{\n if ( getServerSocket() != null ) {\n getServerSocket().close();\n }\n } catch (Throwable t){\n getLogger().log(Level.SEVERE,\n \"selectorThread.closeSocketException\", t);\n }\n\n unregisterComponents();\n\n clearTasks();\n } catch (Throwable t) {\n getLogger().log(Level.SEVERE,\"selectorThread.stopException\", t);\n }\n }",
"public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}",
"public void disconnect(String message);",
"public void disconnected(Service service, String localConnectorName, int peerId) {\n \n }",
"public void disconnect() throws OOBException {\n \t\tsession.disconnect();\n \t}",
"static void disconnect(FlowGraph graph, Outlet outlet) {\n if (!(outlet instanceof OutPort)) {\n throw new IllegalArgumentException(\"Invalid outlet passed to graph\");\n }\n\n OutPort outPort = (OutPort) outlet;\n\n if (!graph.equals(outPort.getGraph())) {\n throw new IllegalArgumentException(\"Outlet or inlet does not belong to graph\");\n }\n\n outPort.cancel(null);\n outPort.complete();\n }",
"public void disconnectedFromHost();",
"public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}",
"public void disconnect() {\n\t\t\n\t}",
"final public void disconnect() {\n \n _input.removeInputConnection();\n _output.removeConnection(this);\n\n \n }",
"public void disconnect() {\n\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n\n if (outputStream != null) {\n outputStream.close();\n }\n\n if (socket != null ) {\n socket.close();\n connected = socket.isClosed();\n }\n } catch (IOException e) {\n logger.error(\"S7Client error [disconnect]: \" + e);\n }\n }",
"void disconnect();",
"void disconnect();",
"@Override\n public abstract void disconnect();",
"public void disconnect()\n {\n this.uri = null;\n this.userAddress = null;\n this.password = null;\n connected = false;\n }",
"public synchronized void disconnect()\r\n\t\t{\r\n\t\tif (state == RUNNING)\r\n\t\t stop();\r\n\t\tif (state == CLOSING_DOWN)\r\n\t\t {\r\n // Close the server socket\t\t \r\n try {\r\n \t\tserverSocket.close();\r\n \t}\r\n catch (IOException e)\r\n {\r\n }\r\n \r\n \t\t// flag the server as stopped\r\n \t\tstate = STOPPED;\r\n\t\t }\r\n\t\t}",
"public void disconnect() {\n\t\tif (_connection != null) {\n\t\t\ttry {\n\t\t\t\twhile (!_connection.isClosed()) {\n\t\t\t\t\t_connection.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) { /* ignore close errors */\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"protected void doDisconnect() throws Exception {\n/* 696 */ if (!this.metadata.hasDisconnect()) {\n/* 697 */ doClose();\n/* */ }\n/* */ }",
"public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}",
"public void disconnect() throws Exception\n {\n if(!connected)\n return;\n connectionSocket.close();\n reader.close();\n writer.close();\n listenerTimer.cancel();\n connected = false;\n\n }",
"protected final void disconnect() {\n\t\trunning = false;\n\t\ttry {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t\tif (in != null)\n\t\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t}",
"public void disconnect() {\n\t\ttry {\n\t\t\tconn.close();\n\t\t\tSystem.out.println(\"切断された/Disconnected\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(\"接続エラーが発生しました/Connection Close Error Occured\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"@Override\r\n\tpublic void disconnect();",
"private void handleRemoteDisconnect(ProtonConnection connection) {\n\n LOG.info(\"AMQP disconnection with {}\", connection.getRemoteContainer());\n connection.disconnect();\n\n try {\n this.mqttEndpoint.close();\n } catch (IllegalStateException e) {\n LOG.warn(\"MQTT endpoint for client {} already closed\", this.mqttEndpoint.clientIdentifier());\n }\n }",
"public void disconnectFromRemoteDevice() {\n if (debugging)\n Log.d(TAG, \"disconnect FromRemote Device\");\n if (mConnectionManager != null && mConnectionManager.socketStillAlive()) {\n mConnectionManager.closeSocket();\n setState(EBluetoothStates.DISCONNECTED);\n }\n }",
"void removePeerEndpoint(String key);",
"public void disconnect() throws IOException {\r\n socket.close();\r\n System.out.println(\"Disconnected\");\r\n }",
"public void disconnect(){\n\t\tfor (NodeInfo peerInfo : peerList) {\r\n\t\t\t// send leave to peer\r\n\t\t\tsend(\"0114 LEAVE \" + ip + \" \" + port, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\r\n\t\t\tfor (NodeInfo peerInfo2 : peerList) {\r\n\t\t\t\tif (!peerInfo.equals(peerInfo2)) {\r\n\t\t\t\t\tString joinString = \"0114 JOIN \" + peerInfo2.getIp() + \" \" + peerInfo2.getPort();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsend(joinString, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tunRegisterBootstrapServer(serverIp, serverPort, ip, port, username);\r\n\t\t\tapp.printInfo(\"Node disconnected from server....\");\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\t\t\r\n\t\t//socket = null;\r\n\t}",
"public void disconnect()\n\t\tthrows Exception\n\t{\n\t\tif (dcsConnector == null)\n\t\t\treturn;\n\t\t\t\n\t\tString bl = getBeamline();\n\n\t\t// Remove this client as listener\n\t\tdcsConnector.removeListener(this);\n\t\tdcsConnector = null;\n\t\tWebiceLogger.info(\"Client \" + getUser() + \" disconnected from beamline \" + bl);\n\t}",
"public void disconnect() throws IOException;",
"void disconnect() throws IOException;",
"@Override\n public synchronized CompletableFuture<Void> disconnect() {\n CompletableFuture<Void> disconnectFuture = new CompletableFuture<>();\n\n // block any further consumers on this subscription\n IS_FENCED_UPDATER.set(this, TRUE);\n\n (dispatcher != null ? dispatcher.close() : CompletableFuture.completedFuture(null)).thenCompose(v -> close())\n .thenRun(() -> {\n log.info(\"[{}][{}] Successfully disconnected and closed subscription\", topicName, subName);\n disconnectFuture.complete(null);\n }).exceptionally(exception -> {\n IS_FENCED_UPDATER.set(this, FALSE);\n if (dispatcher != null) {\n dispatcher.reset();\n }\n log.error(\"[{}][{}] Error disconnecting consumers from subscription\", topicName, subName,\n exception);\n disconnectFuture.completeExceptionally(exception);\n return null;\n });\n\n return disconnectFuture;\n }",
"void disconnect_pull_consumer ();",
"public void disconnect() {\n if (serverSocket != null) {\n try {\n serverSocket.close();\n Log.i(TAG, \"ServerSocket closed\");\n } catch (IOException e) {\n Log.e(TAG, \"Error closing the serverSocket\");\n }\n }\n\n sendDisconnectionMessage();\n\n // FIXME - Change this into a message sent it listener\n // Wait 2 seconds to disconnection message was sent\n Handler handler = new Handler();\n handler.postDelayed(new Runnable() {\n public void run() {\n WiFiDirectUtils.clearServiceRequest(wiFiP2PInstance);\n WiFiDirectUtils.stopPeerDiscovering(wiFiP2PInstance);\n WiFiDirectUtils.removeGroup(wiFiP2PInstance);\n\n serverSocket = null;\n isRegistered = false;\n clientsConnected.clear();\n }\n }, 2000);\n }",
"private void disconnectFromServer() {\n\t\ttry {\n\t\t\tsocket.close();\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"CLIENT: Cannot disconnect from server\");\n\t\t}\n\t}",
"protected void handleDisconnect()\n {\n RemotingRMIClientSocketFactory.removeLocalConfiguration(locator);\n }",
"@Override\n\tpublic void stop() throws ConnectException {\n\t\tSystem.out.print(\"Stopping\");\n\t}",
"public void disconnect() {\t\n\t\t\n\t\ttry {\n\t\t\tconnection.close();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Disconnected\");\n\t}",
"public void doDisconnect() {\n Debug.logInfo(\"MQTT Disconnecting clientId[\" + client.getClientId() + \"] of [\" + client.getServerURI() + \"] ... \", MODULE);\n\n IMqttActionListener discListener = new IMqttActionListener() {\n public void onSuccess(IMqttToken asyncActionToken) {\n Debug.logInfo(\"Disconnect Completed\", MODULE);\n state = DISCONNECTED;\n carryOn();\n }\n\n public void onFailure(IMqttToken asyncActionToken, Throwable exception) {\n ex = exception;\n state = ERROR;\n Debug.logError(\"Disconnect failed\" + exception, MODULE);\n carryOn();\n }\n\n public void carryOn() {\n synchronized (caller) {\n donext = true;\n caller.notifyAll();\n }\n }\n };\n\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n state = ERROR;\n donext = true;\n ex = e;\n }\n }",
"public void disconnect()\t{\n try {\n doStream.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n try {\n diStream.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n try {\n sServidor.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n }",
"private void disconnectHandler(Void v) {\n\n LOG.info(\"DISCONNECT from MQTT client {}\", this.mqttEndpoint.clientIdentifier());\n this.detachForced = false;\n }",
"public void receiveResultDisconnect(\r\n\t\t\tcom.autometrics.analytics.v9.j2ee.webservices.v1_0.DisconnectResponse result) {\r\n\t}",
"public LWTRTPdu disConnectRsp() throws IncorrectTransitionException;",
"public void disconnect() throws Exception {\n\t\tif (mqttClient == null) {\n\t\t\tthrow new Exception(\"Client is not created yet\");\n\t\t}\n\t\tif (connected == true) {\n\t\t\ttry {\n\t\t\t\tmqttClient.disconnect();\n\t\t\t\tconnected = false;\n\t\t\t} catch (MqttException e) {\n\t\t\t\tthrow new Exception(\"Could not disconnect from broker\");\n\t\t\t}\n\t\t}\n\t}",
"void disconnect() throws CCommException, IllegalStateException;",
"private void disconnect(String deviceAddress)\n {\n if (mBleServiceBound)\n {\n mBleService.disconnect(deviceAddress);\n\n } else {\n Log.w(TAG,\"Could not Disconnect - BLE Connection Service is not bound!\");\n }\n }",
"default void disconnect() { }",
"public void disconnect() {\n watchDog.terminate();\n synchronized (sync) {\n if (!connections.isEmpty()) {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n try {\n tconn.conn.rollback();\n tconn.conn.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n this.setChanged();\n this.notifyObservers(\"disconnect\");\n }"
] |
[
"0.65199363",
"0.65009916",
"0.6146424",
"0.60723114",
"0.6069495",
"0.60548365",
"0.6046672",
"0.6037778",
"0.59505993",
"0.5898417",
"0.58740616",
"0.5871425",
"0.5871425",
"0.5835308",
"0.5796328",
"0.5773714",
"0.57242036",
"0.5685775",
"0.5682077",
"0.5676455",
"0.5669243",
"0.56523603",
"0.56523603",
"0.56523603",
"0.56523603",
"0.5651851",
"0.56442493",
"0.5638027",
"0.56200665",
"0.55921924",
"0.557603",
"0.5572973",
"0.5568955",
"0.5568694",
"0.55545604",
"0.55316883",
"0.55286235",
"0.5526436",
"0.5519634",
"0.5518638",
"0.55181944",
"0.55181533",
"0.5516738",
"0.5516285",
"0.55150115",
"0.55143416",
"0.5499894",
"0.54912096",
"0.5490028",
"0.54880685",
"0.54836565",
"0.54801583",
"0.5461972",
"0.54520273",
"0.5441922",
"0.54278797",
"0.5418006",
"0.54033935",
"0.54007685",
"0.5379972",
"0.5379462",
"0.53780895",
"0.5376982",
"0.5365058",
"0.5365058",
"0.53634036",
"0.5362537",
"0.53512114",
"0.534733",
"0.5346441",
"0.53420216",
"0.5322607",
"0.53196824",
"0.5316646",
"0.5303225",
"0.53012955",
"0.5295105",
"0.5294469",
"0.529375",
"0.52553535",
"0.52463263",
"0.5243033",
"0.5233091",
"0.5186652",
"0.5162061",
"0.5154706",
"0.5149799",
"0.5131796",
"0.5126803",
"0.5124908",
"0.5113201",
"0.51050705",
"0.50904197",
"0.5089334",
"0.5084809",
"0.5078178",
"0.50704426",
"0.50694734",
"0.50609964",
"0.50581276"
] |
0.75992465
|
0
|
Disconnects from all currently connected endpoints.
|
protected void disconnectFromAllEndpoints() {
for (Endpoint endpoint : mEstablishedConnections.values()) {
mConnectionsClient.disconnectFromEndpoint(endpoint.getId());
}
mEstablishedConnections.clear();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void stopAllEndpoints() {\n mConnectionsClient.stopAllEndpoints();\n mIsAdvertising = false;\n mIsDiscovering = false;\n mIsConnecting = false;\n mDiscoveredEndpoints.clear();\n mPendingConnections.clear();\n mEstablishedConnections.clear();\n }",
"public void removeAllEndpoints() {\r\n for(int i = 0; i < getEndpoints().size(); i++)\r\n {\r\n removeEndpoint(getEndpoints().get(i));\r\n }\r\n }",
"public void disconnect(){\n\t\tfor (NodeInfo peerInfo : peerList) {\r\n\t\t\t// send leave to peer\r\n\t\t\tsend(\"0114 LEAVE \" + ip + \" \" + port, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\r\n\t\t\tfor (NodeInfo peerInfo2 : peerList) {\r\n\t\t\t\tif (!peerInfo.equals(peerInfo2)) {\r\n\t\t\t\t\tString joinString = \"0114 JOIN \" + peerInfo2.getIp() + \" \" + peerInfo2.getPort();\r\n\t\t\t\t\t\r\n\t\t\t\t\tsend(joinString, peerInfo.getIp(), peerInfo.getPort());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\ttry {\r\n\t\t\tunRegisterBootstrapServer(serverIp, serverPort, ip, port, username);\r\n\t\t\tapp.printInfo(\"Node disconnected from server....\");\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\t\t\r\n\t\t//socket = null;\r\n\t}",
"public synchronized void closeAllConnections() {\n\t\tstop();\n\t}",
"public static void disconnect() {\n \t\tconnPool.stop();\n \t}",
"public void disconnect() {\n \ttry {\n \t\tctx.unbindService(apiConnection);\n } catch(IllegalArgumentException e) {\n \t// Nothing to do\n }\n }",
"public void shutdown() {\n for (Connection connection : connections) { //Try closing all connections\n closeConnection(connection);\n }\n }",
"public void doDisconnect() {\n synchronized (getStreamSyncRoot()) {\n Object[] streams = streams();\n if (!(streams == null || streams.length == 0)) {\n for (Object stream : streams) {\n if (stream instanceof PulseAudioStream) {\n try {\n ((PulseAudioStream) stream).disconnect();\n } catch (IOException e) {\n }\n }\n }\n }\n }\n super.doDisconnect();\n }",
"private void deleteConnections() {\n for (int i = 0; !this.sourceConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.sourceConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n\n for (int i = 0; !this.targetConnections.isEmpty(); ) {\n LinkElement wire = (LinkElement) this.targetConnections.get(i);\n wire.detachSource();\n wire.detachTarget();\n this.graphElement.removeEdge(wire.getEdgeId(), wire);\n }\n }",
"public void disconnect() {\n\t\tdisconnect(true);\n\t}",
"public void shutdown() {\n\t\t//We call peers.values() and put into Array to create an unchanging copy, one that\n\t\t//does not shrink even as the sockets remove themselves from the peers list\n\t\t//this prevents a ConcurrentModificationException\n\t\tonline = false;\n\t\tArrayList<DecentSocket> connections = new ArrayList<DecentSocket>(peers.values());\n\t\tfor(DecentSocket socket: connections) {\n\t\t\tsocket.stop();\n\t\t}\n\t\tlistener.stop();\n\t\tchecker.stop();\n\t}",
"public synchronized void closeAllConnections() {\n closeConnections(availableConnections);\n availableConnections = new Vector();\n closeConnections(busyConnections);\n busyConnections = new Vector();\n }",
"public synchronized void closeAllConnections() {\n closeConnections(availableConnections);\n availableConnections = new Vector();\n closeConnections(busyConnections);\n busyConnections = new Vector();\n }",
"public void closeConnections() {\n for (Object i : connections.keySet().toArray()) {\n connections.get(i).closeConnection();\n }\n\n }",
"public void disconnect() {\n\t\tdisconnect(null);\n\t}",
"public static void disconnect()\n\t{\n\t\tTASK_LIST.add(ArduinoComms::disconnectInternal);\n\t\tTASK_LIST.add(ArduinoComms::notifyDisconnected);\n\t\t//TODO if waiting at socket.connect from connect() notify the tread\n\t}",
"final public void disconnect() {\n \n _input.removeInputConnection();\n _output.removeConnection(this);\n\n \n }",
"protected void stopAll() {\n\t\tif (this.udpServer!=null)\n\t\t\tthis.udpServer.interrupt();\n\t\tif (this.connectionServer!=null)\n\t\t\tthis.connectionServer.interrupt();\n\t\tthis.connectionServer=null; // supprime le TCPServer et les Sockets associés\n\t\tthis.udpServer=null; // supprime l'UDPServer et les Sockets associés\n\t\tif (this.agent.getUserStatusManager()!=null)\n\t\t\tfor (String u : this.agent.getUserStatusManager().getActiveUsers())\n\t\t\t\tthis.removeSocket(u);; // interrompt tous les UserSockets\n\t\tthis.mapSockets.clear();\n\t}",
"public void disconnect() {\n SocketWrapper.getInstance(mContext).disConnect();\n }",
"void disconnect() throws TransportException;",
"public void disconnect()\n {\n isConnected = false;\n }",
"public void disconnect() {\n\t\tif (con.isConnected()) {\n\t\t\tcon.disconnect();\n\t\t}\n\t}",
"public void disconnect() {\n if (logger.isActivated()) {\n logger.info(\"Network access disconnected\");\n }\n ipAddress = null;\n }",
"public void disconnect() {}",
"public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}",
"public void clearAllConnections() {\r\n clearAllConnections(false);\r\n }",
"public Reply\tdisconnect() throws ThingsException, InterruptedException ;",
"public void disconnect() {\n if (connectCount.decrementAndGet() == 0) {\n LOG.trace(\"Disconnecting JGroupsraft Channel {}\", getEndpointUri());\n resolvedRaftHandle.channel().disconnect();\n }\n }",
"public void disconnect() {\n\n try {\n if (inputStream != null) {\n inputStream.close();\n }\n\n if (outputStream != null) {\n outputStream.close();\n }\n\n if (socket != null ) {\n socket.close();\n connected = socket.isClosed();\n }\n } catch (IOException e) {\n logger.error(\"S7Client error [disconnect]: \" + e);\n }\n }",
"public void disconnect()\n {\n \tLog.d(TAG, \"disconnect\");\n\n \tif(this.isConnected) {\n \t\t// Disable the client connection if have service\n \t\tif(mLedService != null) {\n \t\t\tthis.disable();\n \t\t}\n \t\t\n \t\t// Unbind service\n mContext.unbindService(mServiceConnection);\n \n this.isConnected = false;\n \t}\n }",
"public static void disconnectAll(ServerInfo info) {\n for (ProxiedPlayer player : info.getPlayers()) {\n player.disconnect(\"The server is currently unavailable, please try again soon!\");\n }\n }",
"public void shutdownAll() throws IOException {\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif (this.get(i).getClient() != null) {\n\t\t\t\tthis.get(i).sendOkay(\"SHUTDOWN\");\n\t\t\t}\n\t\t}\n\t}",
"public void disconnectLiveCalls() {\n if (!this.mCallMapById.isEmpty()) {\n for (Integer num : this.mCallMapById.keySet()) {\n Call callById = getCallById(num);\n if (!(callById == null || callById.getState() == 10 || callById.getState() == 7)) {\n HiLog.info(LOG_LABEL, \"disconnectLiveCalls: %{public}s.\", new Object[]{callById.toString()});\n callById.disconnect();\n }\n }\n this.mCallMapById.clear();\n }\n }",
"public void disconnect() {\n watchDog.terminate();\n synchronized (sync) {\n if (!connections.isEmpty()) {\n while (connections.size() > 0) {\n ThreadConnection tconn = connections.pop();\n try {\n tconn.conn.rollback();\n tconn.conn.close();\n } catch (SQLException e) {\n }\n }\n }\n }\n this.setChanged();\n this.notifyObservers(\"disconnect\");\n }",
"private void terminateAllClientConnections() {\n log.info(\"Terminate command received; Closing sockets..\");\n log.info(\"Attempting closing client sockets..\");\n this.socketList.forEach(socket -> {\n try {\n socket.close();\n } catch (Exception e) {\n log.error(\"Error closing client socket address\", socket.getRemoteSocketAddress().toString());\n }\n });\n log.info(\"Attempting closing server listening socket\");\n try {\n this.serverSocket.close();\n this.running.set(false);\n } catch (Exception e) {\n log.error(\"Error closing server socket port\", port);\n }\n }",
"void removeOfflineEndpointsCompleted();",
"public void cancelAllClients(){\n clientsPool.shutdownNow();\n }",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"public void disconnect();",
"public void disconnect ()\n {\n org.omg.CORBA.portable.InputStream $in = null;\n try {\n org.omg.CORBA.portable.OutputStream $out = _request (\"disconnect\", true);\n $in = _invoke ($out);\n return;\n } catch (org.omg.CORBA.portable.ApplicationException $ex) {\n $in = $ex.getInputStream ();\n String _id = $ex.getId ();\n throw new org.omg.CORBA.MARSHAL (_id);\n } catch (org.omg.CORBA.portable.RemarshalException $rm) {\n disconnect ( );\n } finally {\n _releaseReply ($in);\n }\n }",
"public void disconnect() {\r\n\t\tif (connected.get()) {\r\n\t\t\tserverConnection.getConnection().requestDestToDisconnect(true);\r\n\t\t\tconnected.set(false);\r\n\t\t}\r\n\t}",
"public void disconnectedFromHost();",
"private void cleanPeerList() {\n\t\tfor (int i = 0; i < peers.size(); i++) {\n\t\t\tPeer p = peers.get(i);\n\t\t\tif (p == null)\n\t\t\t\tcontinue;\n\t\t\tif (p.closed()) {\n\t\t\t\tp.cancelAllPieces();\n\t\t\t\tsynchronized (this) {\n\t\t\t\t\tpeers.remove(i--);\n\t\t\t\t}\n\t\t\t\tcontinue;\n\t\t\t} else {\n\t\t\t\tp.checkDisconnect();\n\t\t\t}\n\t\t}\n\t}",
"public void deactivate() throws JBIException {\n count--;\n if(count != 0)\n return;\n _ode.getContext().deactivateEndpoint(_internal);\n __log.debug(\"Dectivated endpoint \" + _endpoint);\n }",
"private void disconnect() {\n\n if (inStream != null) {\n try {inStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (outStream != null) {\n try {outStream.close();} catch (Exception e) { e.printStackTrace(); }\n }\n\n if (socket != null) {\n try {socket.close();} catch (Exception e) { e.printStackTrace(); }\n }\n }",
"public void disconnect() {\n\t\tif (_connection != null) {\n\t\t\ttry {\n\t\t\t\twhile (!_connection.isClosed()) {\n\t\t\t\t\t_connection.close();\n\t\t\t\t}\n\t\t\t} catch (Exception e) { /* ignore close errors */\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}",
"public void disconnect(){\n\n\t\tserverConnection.disconnect();\n\t}",
"public void disconnect()\n\t{\n\t\tif (isConnected)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tvimPort.logout(serviceContent.getSessionManager());\n\t\t\t}\n\t\t\tcatch (Exception e)\n\t\t\t{\n\t\t\t\tlogger.trace(\"Failed to logout esx: \" + host, e);\n\t\t\t}\n\t\t}\n\t\tisConnected = false;\n\t}",
"public void disconnect()\n {\n this.uri = null;\n this.userAddress = null;\n this.password = null;\n connected = false;\n }",
"public void disconnect() {\n\t\t\n\t}",
"public void clearAllClientConnections(String clientName) {\n for(int io = 0; io < 2; io++) {\n List<String> inputs = ports.get(clientName)[io];\n for (String input : inputs) {\n String thisPort = clientName + \":\" + input;\n //get all connections\n String cmd = \"/usr/local/bin/jack_lsp -c \" + thisPort;\n String connections = EZShell.call(cmd.split(\"[ ]\"));\n String[] lines = connections.split(\"[\\n]\");\n //connections start on line 1\n for (int i = 1; i < lines.length; i++) {\n String thatPort = lines[i].trim();\n String[] cmd2 = {\"/usr/local/bin/jack_disconnect\", thisPort, thatPort};\n EZShell.callNoResult(cmd2);\n System.out.println(\"disconnected: \" + thisPort + \" \" + thatPort);\n }\n }\n }\n\t}",
"void disconnect() {\n connector.disconnect();\n // Unregister from activity lifecycle tracking\n application.unregisterActivityLifecycleCallbacks(activityLifecycleTracker);\n getEcologyLooper().quit();\n }",
"public void disconnectFromClientAndServer() {\n //sends disconnect message to server\n this.sendMessages(Arrays.asList(\"DISCONNECT\"));\n \n //disconnect self\n this.isConnectedToClientServer = false;\n board.disconnectFromClientServer();\n this.inputQueue = null;\n this.outputQueue = null;\n \n //make all boundaries visible\n for (Boundary boundary : board.boundaries){\n boundary.makeVisible();\n }\n board.neighbors.changeDown(\"\");\n board.neighbors.changeLeft(\"\");\n board.neighbors.changeRight(\"\");\n board.neighbors.changeUp(\"\");\n \n //remove all balls\n board.clearBalls();\n }",
"public void unsetEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n get_store().remove_element(ENDPOINTS$0, 0);\r\n }\r\n }",
"protected void disconnect(Endpoint endpoint) {\n mConnectionsClient.disconnectFromEndpoint(endpoint.getId());\n mEstablishedConnections.remove(endpoint.getId());\n }",
"void disconnect() throws Exception;",
"public void shutdown() {\n for (Entry<String,Session> entry : _sessions.entrySet())\n entry.getValue().disconnect();\n \n writeLine(\"\\nDebugServer shutting down.\");\n close();\n }",
"protected void handleDisconnect()\n {\n RemotingRMIClientSocketFactory.removeLocalConfiguration(locator);\n }",
"private void removeConnections(String name_agent) {\n JConnector c;\n int i = 0;\n while (i < connections.size()) {\n c = connections.get(i);\n if(c.isConnection()){\n if(c.getSourceConnectionName().equals(name_agent) || c.getDestConnectionName().equals(name_agent)){\n connections.remove(i);\n i=0;\n }\n i++;\n }else{\n if(c.getAgentName().equals(name_agent)){\n connections.remove(i);\n i=0;\n }\n i++;\n }\n }\n }",
"public void closeConnections() throws MessagingException;",
"@Deprecated\n public static void deleteAllConnections() {\n synchronized (HBASE_INSTANCES) {\n Set<HConnectionKey> connectionKeys = new HashSet<HConnectionKey>();\n connectionKeys.addAll(HBASE_INSTANCES.keySet());\n for (HConnectionKey connectionKey : connectionKeys) {\n deleteConnection(connectionKey, false);\n }\n HBASE_INSTANCES.clear();\n }\n }",
"public void disconnect() {\n if (this.mIsConnected) {\n disconnectCallAppAbility();\n this.mRemote = null;\n this.mIsConnected = false;\n return;\n }\n HiLog.error(LOG_LABEL, \"Already disconnected, ignoring request.\", new Object[0]);\n }",
"public void disconnect() {\n try {\n client.disconnect(null, null);\n } catch (MqttException e) {\n Debug.logError(e, MODULE);\n }\n }",
"public void disconnect()\t{\n try {\n doStream.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n try {\n diStream.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n try {\n sServidor.close();\n }\tcatch (IOException\t|\tNullPointerException\te)\t{\n System.err.println(\"[DISCONNECT]\t\" + e.getMessage());\n }\n }",
"protected synchronized void stopClients() throws Exception {\r\n if (this.clients != null) {\r\n for (Client client : this.clients) {\r\n client.stop();\r\n }\r\n }\r\n }",
"public CompletionStage<Void> disconnect() {\n\t\treturn this.finConnection.sendMessage(\"disconnect-from-channel\", FinBeanUtils.toJsonObject(this.routingInfo)).thenAccept(ack->{\n\t\t\tif (!ack.isSuccess()) {\n\t\t\t\tthrow new RuntimeException(\"error disconnecting channel client, reason: \" + ack.getReason());\n\t\t\t}\n\t\t});\n\t}",
"public void disconnect() {\n\t\tfinal String METHOD = \"disconnect\";\n\t\tLoggerUtility.fine(CLASS_NAME, METHOD, \"Disconnecting from the IBM Watson IoT Platform ...\");\n\t\ttry {\n\t\t\tthis.disconnectRequested = true;\n\t\t\tmqttAsyncClient.disconnect();\n\t\t\tLoggerUtility.info(CLASS_NAME, METHOD, \"Successfully disconnected \"\n\t\t\t\t\t+ \"from the IBM Watson IoT Platform\");\n\t\t} catch (MqttException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"private void closeConnections() throws IOException {\n\t\twhile(Server.clients != null && !Server.clients.isEmpty()){\n\t\t\tServerThread client = (Server.clients.removeFirst());\n\t\t\tclient.sendMessage(new Message(Message.CLOSE_CONNECTION));\n\t\t\t//client.close();\n\t\t}\n\t}",
"protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}",
"void unsubscribeAll();",
"public void closeConnections() {\r\n\t\t\ttry {\r\n\t\t\t\toutStream.close();\r\n\t\t\t\tinStream.close();\r\n\t\t\t\tpeerToPeerSocket.close();\r\n\t\t\t\t//System.out.println(\"Connection closing...\");\r\n\t\t\t}\r\n\t\t\tcatch(Exception e) {\r\n\t\t\t\tSystem.out.println(\"Couldn't close connections...\");\r\n\t\t\t}\r\n\t\t}",
"public void stop() {\n executor.shutdownNow();\n\n Collection<NodeRegistrationContext> allRegistrations = nodeRegistrations.values();\n for (NodeRegistrationContext registration : allRegistrations) {\n sendUnregistrationEvent(registration.resolvedDeployment);\n }\n }",
"public static void disconnect() {\n if (AppSettings.bluetoothConnection != null) \n \tAppSettings.bluetoothConnection.stop();\n\t}",
"public void disconnect() throws Exception\n {\n if(!connected)\n return;\n connectionSocket.close();\n reader.close();\n writer.close();\n listenerTimer.cancel();\n connected = false;\n\n }",
"private void disconnect() {\n if (mServiceConnection != null) {\n mContext.unbindService(mServiceConnection);\n }\n mServiceConnection = null;\n }",
"protected void onEndpointDisconnected(Endpoint endpoint) {}",
"public void disconnect() {\n\t\tif (sock != null) {\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t} catch (IOException ioe) {\n\t\t\t} finally {\n\t\t\t\tsock = null;\n\t\t\t}\n\t\t}\n\t\toutStream.reset();\n\t\tdisconnected();\n\t}",
"private void onPeersCleared()\n {\n for (PeerListener listener : getListeners()) {\n listener.onPeersCleared();\n }\n }",
"protected void disconnect() {\n try {\n if (connection != null) {\n connection.close();\n }\n connection = null;\n queryRunner = null;\n thread = null;\n queries = null;\n } catch (SQLException ex) {\n Logger.getGlobal().log(Level.WARNING, ex.getMessage(), ex);\n }\n }",
"private void closeConnections() {\r\n for (Iterator<Connection> it = connections.values().iterator(); it.hasNext();) {\r\n TransConnection conn = (TransConnection) it.next();\r\n try {\r\n conn.setCloseAllowed(true);\r\n conn.close();\r\n } catch (SQLException ex) {\r\n log.severe(\"Connection close failure: \" + ex.getMessage());\r\n }\r\n }\r\n connections.clear();\r\n }",
"void disconnect( String name )\n throws Exception;",
"protected final void disconnect() {\n\t\trunning = false;\n\t\ttry {\n\t\t\tif (out != null)\n\t\t\t\tout.close();\n\t\t\tif (in != null)\n\t\t\t\tin.close();\n\t\t\tsocket.close();\n\t\t} catch (IOException e) {e.printStackTrace();}\n\t}",
"public void disconnect(ClientAddress clientAddress);",
"@Override\n public abstract void disconnect();",
"protected void doDisconnect() throws Exception {\n/* 696 */ if (!this.metadata.hasDisconnect()) {\n/* 697 */ doClose();\n/* */ }\n/* */ }",
"@Override\n public void stop() {\n try {\n serverSocket.close();\n }\n catch (IOException e) {\n getExceptionHandler().receivedException(e);\n }\n\n // Close all open connections.\n synchronized (listConnections) {\n for (TcpConnectionHandler tch : listConnections)\n tch.kill();\n listConnections.clear();\n }\n\n // Now close the executor service.\n executorService.shutdown();\n try {\n executorService.awaitTermination(3, TimeUnit.SECONDS);\n }\n catch (InterruptedException e) {\n getExceptionHandler().receivedException(e);\n }\n }",
"void disconnect();",
"void disconnect();",
"public void disconnect() {\n if (this.elasticClient != null) {\n this.elasticClient.close();\n }\n }",
"public void disconnectListeners(){\n for(int i=0; i<3; i++){\n for(int j=0; j<3; j++){\n grid[i][j].removeActionListener(this);\n }\n }\n }",
"public void disconnect() {\r\n\ttry {\r\n\r\n\t if (isConnected() && conn != null) {\r\n\t\tconn.close();\r\n\r\n\t\tif (countTables() <= 0 && conn.isClosed()) {\r\n\t\t setConnected(false);\r\n\t\t}\r\n\t }\r\n\t} catch (Exception e) {\r\n\t // nothing todo here\r\n\t}\r\n }",
"public void disconnect()\n {\n try\n {\n if ( m_wagon != null )\n {\n m_wagon.disconnect();\n }\n }\n catch ( ConnectionException e )\n {\n m_log.error( \"Error disconnecting Wagon\", e );\n }\n }",
"public void disconnect() {\n\t\ttry { \n\t\t\tif(loginInput != null) loginInput.close();\n\t\t\tif(registerInput != null) registerInput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\t\ttry {\n\t\t\tif(loginOutput != null) loginOutput.close();\n\t\t\tif(registerOutput != null) registerOutput.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n try{\n\t\t\tif(loginSocket != null) loginSocket.close();\n\t\t\tif(registerSocket != null) registerSocket.close();\n\t\t}\n\t\tcatch(Exception e) {} // not much else I can do\n\n\t\tcg.connectionFailed();\n\t\t\t\n }",
"public void unsubscribeAll() {\n \t\tint failCount = 0;\n \t\t// Make a copy of the collection because it will be modified in #unsubscribe()\n \t\tSet<String> removal = new HashSet<String>(subscriptions.keySet());\n \t\tfor (String subscriptionID : removal) {\n \t\t\tunsubscribe(subscriptionID);\n \t\t}\n \t\tif (failCount > 0) {\n \t\t\tlogger.warn(\n \t\t\t\t\t\"Problem while unsubcribing from all subscriptions: \"\n \t\t\t\t\t\t\t+ failCount\n \t\t\t\t\t\t\t+ \" unsubscriptions failed at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t} else {\n \t\t\tlogger.info(\n \t\t\t\t\t\"Successfully unsubcribed from all subscriptions at DSB endpoint '\"\n \t\t\t\t\t\t\t+ subscriptionsTarget.getUri() + \"'\");\n \t\t}\n \t}",
"public void disconnectSensor() {\n try {\n resultConnection.releaseAccess();\n } catch (NullPointerException ignored) {\n }\n }",
"public void disconnect() {\n try {\n if (socket != null)\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n isConnected = false;\n }",
"public void disconnect() throws IOException {\r\n socket.close();\r\n System.out.println(\"Disconnected\");\r\n }",
"public void exit() {\n\t\tJWebSocketTokenClient lClient;\n\t\tfor (int lIdx = 0; lIdx < mFinished; lIdx++) {\n\t\t\tlClient = mClients[lIdx];\n\t\t\tlClient.removeTokenClientListener(this);\n\t\t\ttry {\n\t\t\t\tmLog(\"Closing client #\" + lIdx + \" on thread: \" + Thread.currentThread().hashCode() + \"...\");\n\t\t\t\tlClient.close();\n\t\t\t\tThread.sleep(20);\n\t\t\t} catch (Exception lEx) {\n\t\t\t\tmLog(\"Exception: \" + lEx.getMessage() + \". Closing client #\" + lIdx + \"...\");\n\t\t\t}\n\t\t}\n\t}"
] |
[
"0.73928076",
"0.6925585",
"0.6640633",
"0.65288174",
"0.64059716",
"0.635313",
"0.6272169",
"0.6253165",
"0.62375224",
"0.6192167",
"0.61717373",
"0.6154849",
"0.6154849",
"0.614416",
"0.6129265",
"0.6118405",
"0.6048089",
"0.6030977",
"0.60098153",
"0.59849846",
"0.5960871",
"0.59607816",
"0.5957864",
"0.5953717",
"0.59347296",
"0.59228677",
"0.59006983",
"0.5889919",
"0.5885481",
"0.5883333",
"0.5848921",
"0.5821565",
"0.5815476",
"0.58020383",
"0.5773949",
"0.57563573",
"0.57557774",
"0.57515895",
"0.57515895",
"0.57515895",
"0.57515895",
"0.57389224",
"0.57315856",
"0.57301325",
"0.57211655",
"0.57190204",
"0.57178146",
"0.5717127",
"0.57140356",
"0.57125854",
"0.5704565",
"0.5704312",
"0.5700141",
"0.5698398",
"0.56810373",
"0.5673991",
"0.56709564",
"0.5665123",
"0.56561375",
"0.5655538",
"0.56399745",
"0.5636932",
"0.561778",
"0.56090534",
"0.5604132",
"0.5590662",
"0.5585125",
"0.5575122",
"0.55740505",
"0.556573",
"0.5565117",
"0.55544937",
"0.55542207",
"0.5554112",
"0.55484056",
"0.5513873",
"0.5512332",
"0.5509503",
"0.5500419",
"0.5499983",
"0.5496035",
"0.54938364",
"0.54876125",
"0.54843074",
"0.547998",
"0.5474464",
"0.54711807",
"0.5467782",
"0.5464495",
"0.5464495",
"0.5454395",
"0.5443334",
"0.54324406",
"0.5425393",
"0.5420603",
"0.54161566",
"0.5415941",
"0.5409567",
"0.54093635",
"0.5407315"
] |
0.83761126
|
0
|
Resets and clears all state in Nearby Connections.
|
protected void stopAllEndpoints() {
mConnectionsClient.stopAllEndpoints();
mIsAdvertising = false;
mIsDiscovering = false;
mIsConnecting = false;
mDiscoveredEndpoints.clear();
mPendingConnections.clear();
mEstablishedConnections.clear();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void clearAllConnections() {\r\n clearAllConnections(false);\r\n }",
"public void resetConnection() {\n connected = new ArrayList<>(50);\n }",
"protected void reset() {\n\t\tresetChannel();\n\t\tthis.connection = null;\n\t}",
"public void resetAll() {\n reset(getAll());\n }",
"public void clearNeighborhoods()\n\t{\n\t\tfor (int i=0; i<numberOfNeighborhoods; i++)\n\t\t{\n\t\t\t(listOfNeighborhoods.get(i)).clear();\n\t\t}\n\t}",
"public void clearConnection()\n\t{\n\t\tcloseConnection();\n\t\tsetupConnection();\n\t}",
"public void reset()\n {\n reset(this.map, this.heuristic, this.neighborSelector);\n }",
"public void clearAll() {\n mNetworkCapabilities = mTransportTypes = mUnwantedNetworkCapabilities = 0;\n mLinkUpBandwidthKbps = mLinkDownBandwidthKbps = LINK_BANDWIDTH_UNSPECIFIED;\n mNetworkSpecifier = null;\n mTransportInfo = null;\n mSignalStrength = SIGNAL_STRENGTH_UNSPECIFIED;\n mUids = null;\n mEstablishingVpnAppUid = INVALID_UID;\n mSSID = null;\n }",
"private void reEstablishConnections() {\n// System.out.println(\"Impossible to create overlay, starting over...\");\n for (NodeRecord node : registeredNodes.values()) {\n node.getNodesToConnectToList().clear();\n node.resetNumberOfConnections();\n }\n createOverlay();\n }",
"public void clearPeers() {\n peers_.clear();\n ((PeersAdapter)adapter_).update();\n }",
"public void reset() {\n\t\tmDistanceMap.clear();\n\t\tmIncomingEdgeMap.clear();\n\t}",
"public void resetAll() {\n Random random = new Random();\r\n for (int layer = 0; layer < neurons.length; layer++) {\r\n for (int index = 0; index < neurons[layer].length; index++) {\r\n neurons[layer][index] = new Neuron(random.nextDouble());\r\n }\r\n }\r\n for (int layer = 0; layer < connections.length; layer++) {\r\n for (int startIndex = 0; startIndex < connections[layer].length; startIndex++) {\r\n for (int endIndex = 0; endIndex < connections[layer][startIndex].length; endIndex++) {\r\n connections[layer][startIndex][endIndex] = new Connection(random.nextDouble()*10-5, random.nextDouble()*10-5);\r\n }\r\n }\r\n }\r\n }",
"void reset() {\n\t\t\t_orderID = UNMARKED;\n\t\t\t_outgoingEdges.clear();\n\t\t\t//TODO when do we call this? when should we mark all edges as received?\n\t\t\tfor(Edge e : _neighborEdges.keySet()) {\n\t\t\t\t_neighborEdges.put(e, false);\n\t\t\t}\n\t\t}",
"public static void reset(){\n\t\t\n\t\t// clear hashmap\n\t\tvisitorListMap.clear();\n\t\t\n\t\t// clear visitor list model\n\t\tvisitorListModel.clear();\n\t\t\n\t\t// clear server info\n\t\tlblServerInfoIP.setText(\"IP address: Not connected.\");\n\t\tlblServerInfoPort.setText(\"Port: \");\n\t\t\n\t\t// disable leave room\n\t\tlblLeave.setVisible(false);\n\t\t\n\t}",
"public void clear() {\n synchronized (mLock) {\n mNumStartRangingCalls = 0;\n mOverallStatusHistogram.clear();\n mPerPeerTypeInfo[PEER_AP] = new PerPeerTypeInfo();\n mPerPeerTypeInfo[PEER_AWARE] = new PerPeerTypeInfo();\n }\n }",
"public void clear() {\n\t\tthis.currentBestNearestNeighbors.clear();\n\t\tthis.currentWorstNearestNeighbors.clear();\n\t}",
"public void resetAll() throws ConnectionLostException, InterruptedException {\n\t\t\t\tstateLedOff = false;\n\t\t\t\tServoSettings sett = RoboTarPC.this.getServoSettings();\n\t\t\t\tfor (int servo = 0; servo < 12; servo++) {\n\t\t\t\t\tsetServo(servo, sett.getInitial(servo));\n\t\t\t\t}\n\t\t\t\tturnOffFretLEDs();\n\t\t\t\tLOG.info(\"Servos in neutral position default\");\n\t\t\t}",
"public void clearConnection() {\n serverSock = null;\n in = null;\n out = null;\n }",
"private void setAllUnvisited(){\n\t\tfor(int i = 0; i < this.getDimension(); i++)\n\t\t\tthis.getGraph().setUnvisited(i);\n\t\tthis.visited = 0;\n\t}",
"public void resetBalls() {\n\t\tBALL_LIST.clear();\n\t}",
"@Override\r\n\tpublic void reset() {\n\t\tthis.dcn = null;\r\n\t\tthis.pairs.clear();\r\n\t\tthis.successfulCount = 0;\r\n\t\tthis.failedCount = 0;\r\n\t\tthis.metrics.clear();\r\n\t}",
"public synchronized void closeAllConnections() {\n closeConnections(availableConnections);\n availableConnections = new Vector();\n closeConnections(busyConnections);\n busyConnections = new Vector();\n }",
"public synchronized void closeAllConnections() {\n closeConnections(availableConnections);\n availableConnections = new Vector();\n closeConnections(busyConnections);\n busyConnections = new Vector();\n }",
"public void resetCenters(){\n\tsynchroCenters.clear();\n }",
"public void reset(){\r\n barn.setVisited(Boolean.FALSE);\r\n turkeyTalk.setVisited(Boolean.FALSE);\r\n pigginOut.setVisited(Boolean.FALSE);\r\n seeTheLight.setVisited(Boolean.FALSE);\r\n theGobbling.setVisited(Boolean.FALSE);\r\n youDied1.setVisited(Boolean.FALSE);\r\n threeLittlePigs.setVisited(Boolean.FALSE);\r\n forTheGreaterGood.setVisited(Boolean.FALSE);\r\n farmHouseTurkey.setVisited(Boolean.FALSE);\r\n youWin.setVisited(Boolean.FALSE);\r\n }",
"private static void _reset() {\n // clear metrics\n HystrixCommandMetrics.reset();\n HystrixThreadPoolMetrics.reset();\n HystrixCollapserMetrics.reset();\n // clear collapsers\n HystrixCollapser.reset();\n // clear circuit breakers\n HystrixCircuitBreaker.Factory.reset();\n HystrixPlugins.reset();\n HystrixPropertiesFactory.reset();\n currentCommand.set(new LinkedList<HystrixCommandKey>());\n }",
"public void removeAll() {\n/* 105 */ this.connectionToTimes.clear();\n/* */ }",
"public void clearAll();",
"public void clearAll();",
"private void clearAll( )\n {\n for( Vertex v : vertexMap.values( ) )\n v.reset( );\n }",
"public void clearAll() {\n\t\tlog.info(\"Clear map tree bid card\");\n\t\tcacheTree.clearAllTreeBidCard();\n\t\tlog.info(\"Clear map tree bid info\");\n\t\tcacheTree.clearAllTreeBidInfo();\n\t}",
"@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void clearAll() {\n\t\t\r\n\t}",
"private void resetClient()\n\t{\n\t\tSystem.out.println(\"\\n---Resetting client...\");\n\t\tSystem.out.println(\"\\n\");\n\t\tinitialize();\n\t}",
"protected void reset() {\r\n super.reset();\r\n this.ring = null;\r\n }",
"public void clear() {\n this.atoms.clear();\n this.bonds.clear();\n this.finished = false;\n }",
"public void clear()\t{nodes.clear(); allLinks.clear();}",
"public void clearAllData() {\n atoms.clear();\n connections.clear();\n lines.clear();\n radical = null;\n }",
"public void reset() {\n bb.clear();\n cb.clear();\n found = false;\n }",
"public void disconnect()\n {\n this.uri = null;\n this.userAddress = null;\n this.password = null;\n connected = false;\n }",
"private void reset() {\n PlayerPanel.reset();\n playersAgentsMap.clear();\n agentList.clear();\n playerCount = 0;\n playerList.removeAll();\n iPlayerList.clear();\n dominator = \"\";\n firstBlood = false;\n }",
"private void clearCache() {\r\n for (int i = 1; i < neurons.length; i++) {\r\n for (int j = 0; j < neurons[i].length; j++) {\r\n neurons[i][j].clearCache();\r\n }\r\n }\r\n }",
"public void resetArboles()\r\n {\r\n this.arboles = null;\r\n }",
"@Override\n\tpublic void clearAll() {\n\t\t\n\t}",
"public void clearAll()\n\t{\n\t\t// add code to clear all names from the graphArray \n\t\t// and call repaint() to update the graph\n\t}",
"public void reset() {\n\t\tfor (Entry<TileCoordinate, DijkstraNode> entry: this.cache.entrySet()) {\n\t\t\tentry.getValue().reset();\n\t\t}\n\t}",
"@Override\n\tpublic void clear()\n\t{\n\t\t/*\n\t\t * TODO This doesn't actually notify GraphChangeListeners, is that a\n\t\t * problem? - probably is ... thpr, 6/27/07\n\t\t */\n\t\tnodeEdgeMap.clear();\n\t\tnodeList.clear();\n\t\tedgeList.clear();\n\t}",
"void clearAll();",
"void clearAll();",
"public void resetLocation()\r\n {\r\n locations.clear();\r\n }",
"protected abstract void clearAll();",
"@Override\n public void reset() {\n cancelAll();\n }",
"public void reset() {\r\n\t\t\titerator = listHostPort.iterator();\r\n\t\t\tcurrHostPort = null;\r\n\t\t}",
"public final void resetAll() {\r\n this._queue = null;\r\n this._delayed = null;\r\n }",
"private void restoreNetworks() {\n // unregister receivers\n mScanReceiver.unregister(mBeaconingManager.mContext);\n mNetManager.unregisterForConnectivityChanges(this);\n\n // rollback\n mNetManager.rollback();\n\n // NOTE: Don't re-register the beaconing manager for connectivity changes. This is done by\n // the beaconing manager himself, as it depends on certain other factors which this handler\n // does not (need to/want to) know.\n }",
"public void reset() {\n this.state = null;\n }",
"public void reset() {\r\n\t\t//begin\r\n\t\tproducerList.clear();\r\n\t\tretailerList.clear();\r\n\t\tBroker.resetLists();\r\n\t\t//end\r\n\t}",
"private void reset() {\n //todo test it !\n longitude = 0.0;\n latitude = 0.0;\n IDToday = 0L;\n venVolToday = 0L;\n PM25Today = 0;\n PM25Source = 0;\n DBCanRun = true;\n DBRunTime = 0;\n isPMSearchRunning = false;\n isLocationChanged = false;\n isUploadRunning = false;\n refreshAll();\n locationInitial();\n DBInitial();\n sensorInitial();\n }",
"public void reset() {\n serverReset(game.generateUIDs(data.getObjectCount()));\n }",
"public void resetAll() {\n this.mEntryAlias = null;\n this.mEntryUid = -1;\n this.mKeymasterAlgorithm = -1;\n this.mKeymasterPurposes = null;\n this.mKeymasterBlockModes = null;\n this.mKeymasterEncryptionPaddings = null;\n this.mKeymasterSignaturePaddings = null;\n this.mKeymasterDigests = null;\n this.mKeySizeBits = 0;\n this.mSpec = null;\n this.mRSAPublicExponent = null;\n this.mEncryptionAtRestRequired = false;\n this.mRng = null;\n this.mKeyStore = null;\n }",
"public void clear() {\n\t\tstate = null;\n\t}",
"public synchronized void reset() {\n }",
"public void reset () {}",
"public static void resetConnectionCounts() {\n CREATED_TCP_CONNECTIONS.set(0);\n CREATED_UDP_CONNECTIONS.set(0);\n }",
"public void reset() {\n noIndex= false;\n noFollow= false;\n noCache= false;\n baseHref= null;\n }",
"public void reset()\r\n {\n if_list.removeAllElements();\r\n ls_db.reset();\r\n spf_root = null;\r\n vertex_list.removeAllElements();\r\n router_lsa_self = null;\r\n floodLastTime = Double.NaN;\r\n delayFlood = false;\r\n spf_calculation = 0;\r\n lsa_refresh_timer = null;\r\n }",
"private void clearOffline() {\n \n offline_ = false;\n }",
"public void cleanUpConnections()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\tfor (int i = 0; i < this.electricityNetworks.size(); i++)\r\n\t\t\t{\r\n\t\t\t\tthis.electricityNetworks.get(i).cleanUpArray();\r\n\r\n\t\t\t\tif (this.electricityNetworks.get(i).conductors.size() == 0)\r\n\t\t\t\t{\r\n\t\t\t\t\tthis.electricityNetworks.remove(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tFMLLog.severe(\"Failed to clean up wire connections!\");\r\n\t\t}\r\n\t}",
"public final synchronized void reset() {\r\n\t\tunblocked = false;\r\n\t\tcancelled = null;\r\n\t\terror = null;\r\n\t\tlistenersInline = null;\r\n\t}",
"public void clearLocusLocus() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }",
"public void clearLociLocus() {\n // Override in proxy if lazily loaded; otherwise does nothing\n }",
"public void reset(){\n star.clear();\n planet.clear();\n }",
"protected void disconnectFromAllEndpoints() {\n for (Endpoint endpoint : mEstablishedConnections.values()) {\n mConnectionsClient.disconnectFromEndpoint(endpoint.getId());\n }\n mEstablishedConnections.clear();\n }",
"public void reset() {\r\n for (int i = 0, tot = buckets.length; i < tot; i++) {\r\n CacheData<K, V> pair = getCacheData(i);\r\n if (pair != null) {\r\n pair.reset();\r\n }\r\n }\r\n }",
"private void clearAllState() {\n // Clear all layout records and views\n mLayoutRecords.clear();\n removeAllViews();\n\n // Reset to the top of the grid\n resetStateForGridTop();\n\n // Clear recycler because there could be different view types now\n mRecycler.clear();\n }",
"private void reset() {\r\n\t\t\tref.set(new CountDownLatch(parties));\r\n\t\t}",
"public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.H = l10 = 512L;\n }\n this.requestRebind();\n }",
"public void clearUpLanes () {\r\n\t\tupLanes = null;\r\n\t}",
"void reset() {\n synchronized (instances) {\n instances.clear();\n }\n }",
"public void resetDecoyRouter() {\n this.hostsDecoyRouter = false;\n }",
"public void resetAll(boolean sendPackets) {\n if(sendPackets) {\n swapHiddenEntities(new HashSet<>());\n swapReplicatedEntities(new HashSet<>(), null);\n } else {\n hiddenEntities = new HashSet<>();\n replicatedEntites = new HashMap<>();\n }\n }",
"public void ClearAll()\r\n {\r\n balls.clear();\r\n board.SetMissedBall(0);\r\n }",
"public void reset() {\n cancelTaskLoadOIFits();\n\n userCollection = new OiDataCollection();\n oiFitsCollection = new OIFitsCollection();\n oiFitsCollectionFile = null;\n selectedDataPointer = null;\n\n fireOIFitsCollectionChanged();\n }",
"public void reset() {\r\n bop.reset();\r\n gzipOp = null;\r\n }",
"public void clear() {\n oredCriteria.clear();\n orderByClause = null;\n distinct = false;\n this.offset= 0;\n this.limit= Integer.MAX_VALUE;\n this.sumCol=null;\n this.groupSelClause=null;\n this.groupByClause=null;\n this.forUpdate=false;\n }",
"public void resetPingCount() {\n\t\tpingCount = 0;\n\t}",
"private void clearAlive() {\n \n alive_ = false;\n }",
"private void clearLinks() {\n links_ = emptyProtobufList();\n }",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();",
"public void reset();"
] |
[
"0.7037885",
"0.68737274",
"0.6617373",
"0.6404892",
"0.6358415",
"0.6351217",
"0.63337344",
"0.6332741",
"0.6325009",
"0.6310906",
"0.6302174",
"0.62806714",
"0.62606514",
"0.62459654",
"0.6176784",
"0.617469",
"0.6173128",
"0.61380917",
"0.6126006",
"0.60804176",
"0.60687375",
"0.60641843",
"0.60641843",
"0.6052452",
"0.60056967",
"0.6004853",
"0.5956017",
"0.59369034",
"0.59369034",
"0.5858553",
"0.58535635",
"0.58507323",
"0.58507323",
"0.5847969",
"0.5845627",
"0.58354557",
"0.58299524",
"0.58266646",
"0.58201426",
"0.5813788",
"0.5811108",
"0.5795897",
"0.57924163",
"0.57865846",
"0.5780755",
"0.5778403",
"0.5764028",
"0.5761068",
"0.5761068",
"0.57596207",
"0.57457954",
"0.57282275",
"0.5726698",
"0.57243615",
"0.57239664",
"0.5718485",
"0.57153547",
"0.57146376",
"0.5700417",
"0.5698425",
"0.569835",
"0.5697286",
"0.5689316",
"0.5683986",
"0.568073",
"0.56756806",
"0.56755626",
"0.5670473",
"0.56463814",
"0.56448627",
"0.56447893",
"0.5638787",
"0.5638128",
"0.5636666",
"0.5636404",
"0.5634839",
"0.5628827",
"0.56273913",
"0.5626352",
"0.562551",
"0.56223637",
"0.5609213",
"0.5606017",
"0.55912066",
"0.5586807",
"0.5581576",
"0.5579572",
"0.557951",
"0.55739695",
"0.55739695",
"0.55739695",
"0.55739695",
"0.55739695",
"0.55739695",
"0.55739695",
"0.55739695",
"0.55739695",
"0.55739695",
"0.55739695",
"0.55739695",
"0.55739695"
] |
0.0
|
-1
|
Called when a connection with this endpoint has failed. Override this method to act on the event.
|
protected void onConnectionFailed(Endpoint endpoint) {}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void onConnectionError() {\n\t}",
"public void onConnectionError()\n\t\t{\n\t\t}",
"private void connectionFailed() {\n if (debugging)\n Log.d(TAG, \"connection Failed\");\n setState(EBluetoothStates.DISCONNECTED);\n if (mConnectionManager != null) {\n mConnectionManager.closeSocket();\n }\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n return;\n }",
"private void connectionFailed() {\n // Send a failure message back to the Activity\n Message msg = handler.obtainMessage(SdlRouterService.MESSAGE_LOG);\n Bundle bundle = new Bundle();\n bundle.putString(LOG, \"Unable to connect device\");\n msg.setData(bundle);\n handler.sendMessage(msg);\n\n // Start the service over to restart listening mode\n // BluetoothSerialServer.this.start();\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {}",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\n\t}",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\t\t// TODO Auto-generated method stub\n\n\t}",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Log.d(LCAT, \"onConnectionFailed:\" + connectionResult);\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\t\t\n\t}",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\t\t\n\t}",
"@Override\n public void onConnectionFailed(ConnectionResult conRes) {}",
"@Override public void onConnectionFailed(ConnectionResult connectionResult) {\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult result) {\n Fog.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \"\n + result.getErrorCode());\n }",
"@Override\n public void onConnectionFailed(ConnectionResult arg0) {\n }",
"@Override\n public void onFailure(@NonNull Exception e) {\n Discoverer.this.eventListener.trigger(EVENT_LOG, \"Fail to request connection: \" + e.getMessage());\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult result) {\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Log.e(TAG, \"onConnectionFailed: ConnectionResult.getErrorCode() = \" + connectionResult.getErrorCode());\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n\n }",
"public void OnConnectionError();",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(\"Feelknit\", \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }",
"@Override\n public void onConnectionFailed(ConnectionResult arg0) {\n\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(\"mainActivity\", \"onConnectionFailed:\" + connectionResult);\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \"\n + result.getErrorCode());\n }",
"private void signalError() {\n Connection connection = connectionRef.get();\n if (connection != null && connection.isDefunct()) {\n Host host = cluster.metadata.getHost(connection.address);\n // Host might be null in the case the host has been removed, but it means this has\n // been reported already so it's fine.\n if (host != null) {\n cluster.signalConnectionFailure(host, connection.lastException());\n return;\n }\n }\n\n // If the connection is not defunct, or the host has left, just reconnect manually\n reconnect();\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t\tLog.e(TAG, \"onConnectionFailed: ConnectionResult.getErrorCode() = \"\n\t\t\t\t+ connectionResult.getErrorCode());\n\t\t// TODO(Developer): Check error code and notify the user of error state and resolution.\n\t\tToast.makeText(this,\n\t\t\t\t\"Could not connect to Google API Client: Error \" + connectionResult.getErrorCode(),\n\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t}",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(TAG, \"Connection failed. Error: \" + result.getErrorCode());\n }",
"private void connectionLost() {\n setState(EBluetoothStates.CONNECTING);\n // Send a failure message back to the Activity\n // updateActivity(General.MessageType.ERROR, General.OnDeviceConnectionLost);\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.e(TAG, \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n // Refer to the reference doc for ConnectionResult to see what error codes might\n // be returned in onConnectionFailed.\n Log.d(TAG, \"Play services connection failed: ConnectionResult.getErrorCode() = \"\n + connectionResult.getErrorCode());\n }",
"@Override\n\t\t\tpublic void onNetworkError() {\n\n\t\t\t}",
"@Override\r\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(\"onConnectionFailed \", \"Connection failed: ConnectionResult.getErrorCode() = \" + result.getErrorCode());\r\n }",
"@Override\r\n public void connectFailed() {\n super.connectFailed();\r\n Commons.showToast(act, \"连接失败\");\r\n act.dismissLoadDialog();\r\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.i(\"Connection failed:\", \" ConnectionResult.getErrorCode() = \"\n + result.getErrorCode());\n }",
"private void connectionFailed(String e) {\n setState(STATE_LISTEN);\n\n // Send a failure message back to the Activity\n Message msg = mHandler.obtainMessage(RemoteBluetooth.MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(RemoteBluetooth.TOAST, e);\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n }",
"void connectFailed();",
"@Override\n\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\tSC.say(\"服务器连接已中断,请重新登录!\");\n\t\t\t}",
"@Override\n \tpublic void reconnectionFailed(Exception arg0) {\n \t}",
"void onConnectToNetByIPFailure();",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n // An unresolvable error has occurred and a connection to Google APIs\n // could not be established. Display an error message, or handle\n // the failure silently\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult arg0) {\n\t\tToast.makeText(context, \"Connection Failed\", Toast.LENGTH_SHORT).show();\n\t}",
"@Override\r\n\tpublic void connectionLost(Throwable cause) {\n\t\t\r\n\t}",
"@Override\n\t\t\t\t\tpublic void onConnectionFailed(Robot arg0) {\n\n\t\t\t\t\t}",
"@Override\n public void afterConnectionAcquisitionFailed(InstrumentedConnectionProvider connectionProvider, Throwable exc) {\n connectionMetricReporter.recordAcquisitionFailure(connectionAcquisitionDepth.getValue() == 0, exc);\n }",
"@Override\n protected void onFailureComponentConnectionRequest(PlatformComponentProfile remoteParticipant) {\n System.out.println(\"************ Crypto Addresses -> FAILURE CONNECTION.\");\n checkFailedDeliveryTime(remoteParticipant.getIdentityPublicKey());\n }",
"@Override\n public void onConnectFailed()\n {\n Log.e(\"Dudu_SDK\",\n \"获取NS 业务服务器失败...onConnectFailed ... reconnect()...5 seconds later ...\");\n reconnect();\n if (connectCallBack != null)\n connectCallBack.onConnectFailed();\n }",
"@Override\r\n\tpublic void connectionLost(Throwable t) {\n\t}",
"@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 }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n hideProgressDialog();\n Log.d(TAG, \"onConnectionFailed:\" + connectionResult);\n }",
"protected void connectionException(Exception exception) {}",
"private void failTheWebSocketConnection() {\n failed = true;\n }",
"@Override\n public void onConnectionFailed(ConnectionResult result) {\n Log.d(\"SCXTT\", \" onConnectionFailed \" + result.toString());\n\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n\n Log.e(TAG, \"onConnectionFailed: ConnectionResult.getErrorCode() = \"\n + connectionResult.getErrorCode());\n\n Toast.makeText(this,\n \"Could not connect to Google API Client: Error \" + connectionResult.getErrorCode(),\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void connectionLost(Throwable cause) {\n Log.d(TAG, \"Connection lost\");\n }",
"@Override\n\tpublic void connectionFailed(String message) {\n\t\tToast.makeText(this, \"Connection Failed !\", Toast.LENGTH_SHORT).show();\n\t}",
"protected void rejectConnection(Endpoint endpoint) {\n mConnectionsClient\n .rejectConnection(endpoint.getId())\n .addOnFailureListener(\n new OnFailureListener() {\n @Override\n public void onFailure(@NonNull Exception e) {\n logW(\"rejectConnection() failed.\", e);\n }\n });\n }",
"@Override\n\t\t\tpublic void connectionLost(Throwable throwable) {\n\t\t\t\tSystem.out.println(\"connectionLost\");\n\t\t\t}",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(getActivity(), CONNECTION_FAILURE_RESOLUTION_REQUEST);\n }\n catch (IntentSender.SendIntentException e) {\n e.printStackTrace();\n }\n }\n else {\n Log.i(TAG, \"Connection Failed: Error Code = \" + connectionResult.getErrorCode());\n }\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.e(TAG, \"location service connection lost\");\n Toast.makeText(this, R.string.conn_failed, Toast.LENGTH_LONG).show();\n }",
"@Override\n public boolean onError(Throwable t) {\n connected.completeExceptionally(t);\n return true; //hints at handler to disconnect due to this error\n }",
"@Override\n public void connectionLost(Throwable cause) {\n\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult result) {\n // Refer to the reference doc for ConnectionResult to see what error codes might\n // be returned in onConnectionFailed.\n Log.d(TAG, \"Play services connection failed: ConnectionResult.getErrorCode() = \"\n + result.getErrorCode());\n }",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult result) {\n // Refer to the reference doc for ConnectionResult to see what error codes might\n // be returned in onConnectionFailed.\n Log.d(TAG, \"Play services connection failed: ConnectionResult.getErrorCode() = \"\n + result.getErrorCode());\n }",
"@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}",
"@Override\n public void connectionLost(Throwable cause) {\n }",
"void onDisconnectFailure();",
"@Override\n public void connectionLost(Throwable arg0) {\n\n }",
"private void connectionLost() {\n // Send a failure message back to the Activity\n Message msg = handler.obtainMessage(SdlRouterService.MESSAGE_LOG);\n Bundle bundle = new Bundle();\n bundle.putString(LOG, \"Device connection was lost\");\n msg.setData(bundle);\n handler.sendMessage(msg);\n handler.postDelayed(new Runnable() { //sends this stop back to the main thread to exit the reader thread\n @Override\n public void run() {\n stop();\n }\n }, 250);\n }",
"@Override\n public void connectionLost(Throwable thrwbl) {\n System.out.println(\"服务器的连接丢失\");\n }",
"@Override\n\tpublic void onConnectionFailed(ConnectionResult result) {\n\t\tLog.d(\"ANDROID\", \"faild contected\");\n\t}",
"@Override\n\tpublic void connectionLost(Throwable cause) {\n\t\t\n\t}",
"@Override\npublic void onConnectionFailed(ConnectionResult arg0) {\n\t\n}",
"public void connectionLost(Throwable cause) {\n\t}",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n // Can it be resolved, for example by installing a new version?\n log(\"Connection failed\");\n if (connectionResult.hasResolution()) {\n try {\n // Start an Activity that tries to resolve the error\n log(\"Trying to resolve the error...\");\n connectionResult.startResolutionForResult(\n this, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n } catch (IntentSender.SendIntentException e) {\n log(\"Exception during resolution: \" + e.toString());\n }\n } else {\n // No resolution is available\n showErrorDialog(connectionResult.getErrorCode());\n }\n }",
"@Override\n public void connectionLost(Throwable t) {\n System.out.println(\"Connection lost!\");\n }",
"private void connectionFailed(ContextImpl context, Channel ch, Handler<Throwable> connectionExceptionHandler,\n Throwable t) {\n Handler<Throwable> exHandler =\n connectionExceptionHandler == null ? log::error : connectionExceptionHandler;\n\n context.executeFromIO(() -> {\n connectionClosed();\n try {\n ch.close();\n } catch (Exception ignore) {\n }\n if (exHandler != null) {\n exHandler.handle(t);\n } else {\n log.error(t);\n }\n });\n }",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n Toast.makeText(this,\n \"Could not connect to Google API Client: Error \" + connectionResult.getErrorCode(),\n Toast.LENGTH_SHORT).show();\n }",
"@Override\n public void onError(Throwable t, SelectableChannel channel) {\n endpointHandler.onError(t, channel);\n }",
"protected void onDiscoveryFailed() {\n logAndShowSnackbar(\"Could not subscribe.\");\n }",
"@Override\n\t\tpublic void onConnectionFailed(ConnectionResult connectionResult) {\n\t if (connectionResult.hasResolution()) {\n\t try {\n\t // Start an Activity that tries to resolve the error\n\t connectionResult.startResolutionForResult(activity, CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\t } catch (IntentSender.SendIntentException e) {\n\t // Log the error\n\t e.printStackTrace();\n\t }\n\t } else {\n\t /*\n\t * If no resolution is available, display a dialog to the\n\t * user with the error.\n\t */\n\n\t }\n\t\t\t\n\t\t}",
"@Override\n public void onConnectionFailed(ConnectionResult connectionResult) {\n\n /*\n * Google Play services can resolve some errors it detects.\n * If the error has a resolution, try sending an Intent to\n * start a Google Play services activity that can resolve\n * error.\n */\n if (connectionResult.hasResolution()) {\n\n try {\n // Start an Activity that tries to resolve the error\n connectionResult.startResolutionForResult(activity,\n \t\tLocationUtils.CONNECTION_FAILURE_RESOLUTION_REQUEST);\n\n /*\n * Thrown if Google Play services canceled the original\n * PendingIntent\n */\n } catch (SendIntentException e) {\n // Log the error\n e.printStackTrace();\n }\n\n /*\n * If no resolution is available, put the error code in\n * an error Intent and broadcast it back to the main Activity.\n * The Activity then displays an error dialog.\n * is out of date.\n */\n } else {\n\n Intent errorBroadcastIntent = new Intent(LocationUtils.ACTION_CONNECTION_ERROR);\n errorBroadcastIntent.addCategory(LocationUtils.CATEGORY_LOCATION_SERVICES)\n .putExtra(LocationUtils.EXTRA_CONNECTION_ERROR_CODE,\n connectionResult.getErrorCode());\n LocalBroadcastManager.getInstance(activity).sendBroadcast(errorBroadcastIntent);\n }\n }",
"public void connectCallAppAbilityFail() {\n if (needTryAgain()) {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: retry.\", new Object[0]);\n if (this.mHandler == null) {\n this.mHandler = createHandler();\n }\n if (this.mHandler != null) {\n try {\n this.mHandler.sendEvent(InnerEvent.get(1000, 0, null), DELAYED_TIME_RETRY_CONNECT_INCALL_ABILITY, EventHandler.Priority.IMMEDIATE);\n } catch (IllegalArgumentException unused) {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: got IllegalArgumentException.\", new Object[0]);\n }\n }\n } else {\n HiLog.error(LOG_LABEL, \"connectCallAppAbilityFail: reached max retry counts.\", new Object[0]);\n disconnectLiveCalls();\n this.mRetryConnectCallAppAbilityCount = 0;\n releaseResource();\n }\n }",
"public void nodeConnectionFailure(String hostname) \n\t{\n\t\tthis.failureManager.nodeConnectionFailure(hostname);\n\t}",
"@Override\n public void onConnectionFailed(@NonNull ConnectionResult connectionResult) {\n Log.d(Constants.GOOGLE_MAP_ERROR_TAG, Constants.GOOGLE_MAP_ERROR);\n }",
"@Override\n\t\t\t\t\t\t\t\t\t\tpublic void onRequestFail() {\n\n\t\t\t\t\t\t\t\t\t\t}",
"private void connectionLost() {\n Log.d(TAG, \"BluetoothManager :: connectionLost()\");\n setState(STATE_LISTEN); //추가됨\n\n // Send a failure message back to the Activity\n // WARNING: This makes too many toast.\n //이것도 어차피 연결잃었다고하는거 알려주는거라 안해도 상관 없다.\n /*\n Message msg = mHandler.obtainMessage(MESSAGE_TOAST);\n Bundle bundle = new Bundle();\n bundle.putString(SERVICE_HANDLER_MSG_KEY_TOAST, \"연결되있던장치와 연결을 잃었어요\");\n msg.setData(bundle);\n mHandler.sendMessage(msg);\n */\n // Reserve re-connect timer\n reserveRetryConnect(); //수정됨\n }",
"@Override\n public void connectionLost(Throwable t) {\n System.out.println(\"Connection lost!\");\n // code to reconnect to the broker would go here if desired\n }"
] |
[
"0.77666014",
"0.77609885",
"0.7529768",
"0.74403673",
"0.73864704",
"0.72815573",
"0.723949",
"0.7230205",
"0.71777",
"0.7166377",
"0.71416754",
"0.7138564",
"0.7138564",
"0.7134678",
"0.71143484",
"0.70663595",
"0.70610744",
"0.70394874",
"0.7034078",
"0.7025005",
"0.70152146",
"0.70152146",
"0.70152146",
"0.70029175",
"0.69893986",
"0.69893986",
"0.69592416",
"0.69141084",
"0.68358934",
"0.6783218",
"0.6781463",
"0.67713845",
"0.6768878",
"0.676745",
"0.6745396",
"0.6745396",
"0.6745396",
"0.6724747",
"0.6720292",
"0.67193896",
"0.6700427",
"0.6697914",
"0.6693078",
"0.66614485",
"0.66329193",
"0.6631277",
"0.66258377",
"0.662569",
"0.6590022",
"0.65892553",
"0.6540724",
"0.65359247",
"0.6527268",
"0.6505827",
"0.6500952",
"0.64907396",
"0.6489238",
"0.647588",
"0.64750886",
"0.6472089",
"0.6457645",
"0.64476454",
"0.64438975",
"0.6430711",
"0.64286053",
"0.6408236",
"0.64019006",
"0.6401505",
"0.6396724",
"0.63930166",
"0.6391679",
"0.6390704",
"0.6389493",
"0.6386994",
"0.6380478",
"0.6380478",
"0.636916",
"0.6367534",
"0.63662255",
"0.6357353",
"0.6339883",
"0.63375425",
"0.63249177",
"0.63215923",
"0.6317312",
"0.6314192",
"0.630487",
"0.62881535",
"0.6264729",
"0.62573135",
"0.6255587",
"0.62532973",
"0.6247774",
"0.62280625",
"0.62161726",
"0.62059224",
"0.61993945",
"0.61922103",
"0.61802506",
"0.61578655"
] |
0.7850921
|
0
|
Called when someone has connected to us. Override this method to act on the event.
|
protected void onEndpointConnected(Endpoint endpoint) {}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"protected void onConnect() {}",
"public void onConnected() {\n userName = conn.getUsername();\n tellManagers(\"I have arrived.\");\n tellManagers(\"Running {0} version {1} built on {2}\", BOT_RELEASE_NAME, BOT_RELEASE_NUMBER, BOT_RELEASE_DATE);\n command.sendCommand(\"set noautologout 1\");\n command.sendCommand(\"set style 13\");\n command.sendCommand(\"-notify *\");\n Collection<Player> players = tournamentService.findScheduledPlayers();\n for (Player p : players) {\n command.sendCommand(\"+notify {0}\", p);\n }\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_ARRIVED);\n conn.addDatagramListener(conn, Datagram.DG_NOTIFY_LEFT);\n\n Runnable task = new SafeRunnable() {\n\n @Override\n public void safeRun() {\n onConnectSpamDone();\n }\n };\n //In 2 seconds, call onConnectSpamDone().\n scheduler.schedule(task, 4, TimeUnit.SECONDS);\n System.out.println();\n }",
"protected abstract void onConnect();",
"@Override\n public void onPeerConnected(Node peer) {\n Log.i(TAG, \"Connected: \" + peer.getDisplayName() + \" (\" + peer.getId() + \")\");\n super.onPeerConnected(peer);\n SmartWatch.getInstance().sendConnectedWear();\n }",
"public abstract void onConnect();",
"public void onConnect()\n\t{\n\t\tString welcomeMessage = \"Hello! My name is BreenBot. Here's a list of things I can do for you:\";\n\n\t\tsendMessageAndAppend(this.channel, welcomeMessage);\n\n\t\tsendHelpOperations();\n\n\t\tsendMessageAndAppend(this.channel, \"Please use !help to get this list of operations again.\");\n\t}",
"abstract void onConnect();",
"void onConnected() {\n closeFab();\n\n if (pendingConnection != null) {\n // it'd be null for dummy connection\n historian.connect(pendingConnection);\n }\n\n connections.animate().alpha(1);\n ButterKnife.apply(allViews, ENABLED, true);\n startActivity(new Intent(this, ControlsActivity.class));\n }",
"private void uponInConnectionUp(InConnectionUp event, int channelId) {\n }",
"void firePeerConnected(ConnectionKey connectionKey);",
"@Override\n public void onConnected(Bundle arg0) {\n\n Toast.makeText(getContext(),\"Connected\",Toast.LENGTH_LONG);\n }",
"void onConnect();",
"@Override\r\n protected void onConnected() {\n \r\n }",
"void onConnect( );",
"@Override\n public void onConnect() {\n connected.complete(null);\n }",
"@Override\n public void onConnected(Bundle bundle) {\n\n }",
"@Override\n public void channelActive(final ChannelHandlerContext ctx) throws UnknownHostException {\n System.err.println(\"处于活连接\");\n //ctx.writeAndFlush(\"Welcome to secure chat service!\\n\");\n }",
"@Override\n public void onConnected(Bundle connectionHint) {\n\n Toast.makeText(getApplicationContext(), \"Connected\", Toast.LENGTH_LONG).show();\n }",
"@Override\n\t\tpublic void onConnect(Myo myo, long timestamp) {\n\t\t\t// Set the text color of the text view to cyan when a Myo connects.\n\t\t\t// mTextView.setTextColor(Color.CYAN);\n\t\t\tconnectedMyo = myo;\n\t\t\tmyos.add(new MyMyo(myo));\n\t\t\tmyo.vibrate(VibrationType.LONG);\n\t\t}",
"@Override\n public void gattConnected() {\n mConnected = true;\n updateConnectionState(R.string.connected);\n getActivity().invalidateOptionsMenu();\n }",
"protected void onJoin(String channel, String sender, String login, String hostname) {}",
"@Override\n\tprotected void onConnect() {\n\t\tLogUtil.debug(\"server connect\");\n\n\t}",
"public void handleConnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(true);\n setMessageText(\"Connected to \" + tallyDeviceName);\n\n // Waits for 2 seconds so that the user\n // can see the message and then exits the\n // activity\n timerHandler.postDelayed(new Runnable() {\n\n @Override\n public void run() {\n\n exitActivity();\n\n }\n\n }, 2000);\n\n }",
"@Override\n public void onConnected(Bundle bundle) {\n Wearable.DataApi.addListener(googleApiClient, this);\n }",
"private void connected() {\n m_connectionLabel.setBackground(Color.GREEN);\n m_connectionLabel.setText(\"Connected\");\n }",
"@Override\n\tpublic void onConnected(Bundle arg0) {\n\t\t\n\t}",
"public void onConnected(ComponentName componentName, IBinder iBinder) {\n HiLog.info(LOG_LABEL, \"onConnected.\", new Object[0]);\n addPendingCallToProxy(iBinder);\n Listener listener = this.mListener;\n if (listener != null) {\n listener.onConnected(this);\n }\n }",
"@Override\n\tpublic void onConnected(Bundle arg0) {\n\n\t}",
"@Override\n\tpublic void onConnected(Bundle arg0) {\n\n\t}",
"public void onServiceConnected() {\r\n \t// Display the list of sessions\r\n\t\tupdateList();\r\n }",
"public void process(WatchedEvent event) {\n if(event.getState() == Event.KeeperState.SyncConnected) {\n connectedSignal.countDown();\n }\n }",
"void connectionActivity(ConnectionEvent ce);",
"@FXML\n\tprivate void connectEventHandler(ActionEvent event) {\n\t\tif (loggedInUser != null) {\n\t\t\talert(\"You are logged in!\");\n\t\t\treturn;\n\t\t}\n\t\tloggedInUser = model.logIn(userNameField.getText());\n\t\tif (loggedInUser == null) {\n\t\t\talert(\"Wrong user name!\");\n\t\t\treturn;\n\t\t}\n\t\t// Checking the password\n\t\tif (!loggedInUser.getPasswordHash().equals(hashPassword(passwordField.getText(), SALT))) {\n\t\t\talert(\"Wrong password!\");\n\t\t\tloggedInUser = null;\n\t\t\treturn;\n\t\t}\n//\t\tloggedInUser = new User(\"Bence\", \"\", KnowledgeLevel.EXPERT, 100, false);\n\t\t// Connection succeeded\n\t\tprintUserData();\n\t}",
"void onIceConnectionChange(boolean connected);",
"public void clientConnected(WonderlandClientSender sender, \n \t WonderlandClientID clientID, Properties properties) {\n \tlogger.fine(\"client connected...\");\n }",
"@Override\n\tpublic void listenerStarted(ConnectionListenerEvent evt) {\n\t\t\n\t}",
"@Override\n public void Connected() {\n if (strClientSerial != null) {\n LoginInfo_Req();\n }\n }",
"private void notifyUserLoggedInListener(UserLoggedInEvent event) {\r\n \t\tfor (IUserLoggedInListener listener : this.userConnectedListener) {\r\n \t\t\tlistener.userLoggedIn(event);\r\n \t\t}\r\n \t}",
"@Override\n public void onConnected(Bundle arg0) {\n displayLocation();\n }",
"public void connected() {\n \t\t\tLog.v(TAG, \"connected(): \"+currentId);\n \t\t\tif(mCallback != null){\n \t\t\t\tmCallback.onServiceConnected();\n \t\t\t}\n \t\t\tloadPage(false, null);\n \t\t}",
"public void handleConnectingState() {\n\n setProgressBarVisible(true);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Connecting to \" + tallyDeviceName);\n\n }",
"protected void notifyConnection() {\n connectionListeners.forEach(listener-> listener.connectionChange(this, isConnected()));\n }",
"@Override\n public void onGuildMemberJoin(@NotNull GuildMemberJoinEvent event) {\n super.onGuildMemberJoin(event);\n event.getMember().getUser().openPrivateChannel().queue((channel) -> {\n channel.sendMessage(Settings.WELCOME_MESSAGE).queue();\n });\n }",
"@Override\n public void onConnected(Bundle connectionHint) {\n //Requires a new thread to avoid blocking the UI\n new SendToDataLayerThread(\"/message_path\", message + \" \" + Calendar.getInstance()).start();\n Log.i(TAG, \"sent, onConnected\" + message);\n Toast.makeText(getApplicationContext(),message,Toast.LENGTH_SHORT).show();\n }",
"protected void onRobotConnect (boolean bbUserNotify)\r\n\t{\r\n\t\tsetCOMStatus (true);\r\n\t\tUI_RefreshConnStatus ();\r\n\t}",
"private void uponOutConnectionUp(OutConnectionUp event, int channelId) {\n }",
"@Override\n public void onConnected(@Nullable Bundle bundle) {\n Log.d(TAG, \"onConnected\");\n }",
"protected void onConnected(String topic, long hconv)\n {\n }",
"@Override\n public void onConnected(Bundle bundle) {\n\n }",
"@Override\n public void onConnected(Bundle bundle) {\n\n }",
"default void onConnect(SessionID sessionID) {\n }",
"public void onConnection();",
"@Override\n\t\t\tpublic void onMessage(Connect connect, MessageEvent event){\n\t\t\t\tif(!event.getChannel().equalsIgnoreCase(\"AdminChat\")){\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Get the message */\n\t\t\t\tString message = null;\n\t\t\t\t\n\t\t\t\ttry {\n\t\t\t\t\tmessage = event.getMessageAsString();\n\t\t\t\t} catch (UnsupportedEncodingException e) {\n\t\t\t\t\t/* Something went wrong, don't broadcast */\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t/* Broadcast it! */\n\t\t\t\tfor(Player player : plugin.getServer().getOnlinePlayers()){\n\t\t\t\t\tif(player.hasPermission(\"adminchat.use\")) player.sendMessage(message);\n\t\t\t\t}\n\t\t\t}",
"@Override\n public void onConnect(Myo myo, long timestamp) {\n // Set the text color of the text view to cyan when a Myo connects.\n }",
"@Override\n\tpublic void onConnectDone(ConnectEvent event) {\n\t\tif(WarpResponseResultCode.SUCCESS==event.getResult()){\n\t\t\tmyGame.getLiveUserInfo(challenged);\n\t\t}\n\t}",
"@Override\n public void onConnected() {\n getLogger().log(Level.FINE,\n \"Connected to {0} and pre-writing\",\n remoteAddress);\n try {\n if (!onChannelPreWrite()) {\n channelExecutor.registerReadWrite(socketChannel, this);\n }\n } catch (IOException e) {\n if (getLogger().isLoggable(Level.FINE)) {\n getLogger().log(Level.FINE,\n // CRC: Update wording?\n \"Error registering for read/write after pre-write: \" +\n \"remoteAddress={0}, error={1}\",\n new Object[] {\n remoteAddress,\n CommonLoggerUtils.getStackTrace(e)});\n }\n shutdown(e.getMessage(), true);\n }\n }",
"protected void onConnectionChanged() {\n mConnectionChangedListener.didChange(mConnection);\n }",
"public void onIceConnected();",
"@EventHandler(priority = EventPriority.MONITOR, ignoreCancelled = true)\n public void onPlayerJoin(PlayerJoinEvent ev) {\n ObjectiveSender.handleLogin(ev.getPlayer().getUniqueId());\n }",
"@Override\r\n\t\t\tpublic void connectedComponentStarted(ConnectedComponentTraversalEvent e) {\n\t\t\t\t\r\n\t\t\t}",
"@Override\n public void trigger() {\n output.addNewEvent(\"Assinante \" + subscriberReconnect.getId() + \" deseja reconectar sua última ligação\");\n if (this.subscriberReconnect.isFree()) {\n takePhone();\n reestablishConnection();\n }\n }",
"@Override\r\n\t\tpublic void onConnect(Connection connection) {\n\r\n\t\t}",
"@Override\n\tpublic void onDisconnectDone(ConnectEvent arg0) {\n\t\t\n\t}",
"@Override\n public void connected() {\n jLabel5.setText(\"已连接\");\n }",
"@Override\n public void onConnectionEstablished(Die die) {\n Log.d(TAG, \"DICE+ Connected\");\n convertTextToSpeech(\"Dice+ Connected\");\n DiceController.subscribeRolls(dicePlus);\n }",
"@Override public void onConnected() {\n new LostApiClientImpl(application, new TestConnectionCallbacks(),\n new LostClientManager(clock, handlerFactory)).connect();\n }",
"@Override\n\tpublic void connectionStateChanged(boolean connected, boolean connectionLost) {\n\t\t\n\t}",
"@Override\n\tpublic void onUserJoinedLobby(LobbyData arg0, String arg1) {\n\t\t\n\t}",
"@Override\r\n\t\t\t\t\tpublic void onLoginedNotify() {\n\t\t\t\t\t\tTypeSDKLogger.d( \"onLoginedNotify\");\r\n\t\t\t\t\t\thaimaLogout();\r\n\t\t\t\t\t\thaimaLogin();\r\n\t\t\t\t\t}",
"private void onConnected() {\n \tmMeshHandler.removeCallbacks(connectTimeout);\n hideProgress();\n\n mConnectTime = SystemClock.elapsedRealtime();\n mConnected = true;\n\n mNavListener = new SimpleNavigationListener(stActivity.getFragmentManager(), stActivity);\n if (mDeviceStore.getSetting() == null || mDeviceStore.getSetting().getNetworkKey() == null) {\n Log.d(\"TEST\", \"TEST\");\n }\n startPeriodicColorTransmit();\n }",
"public void onConnect(ConnectMsg msg, Connection connection) {\n\n\t\tString user = msg.getUser();\n\t\t\n\t\tLogger.log(\"onConnect:\" + msg.toString());\n\n\t\tstorage.addClientSession(user, connection);\n\t\t\n\t\tClientSession clientSession = storage.getSession(user);\n\t\t\n\t\tSet<Message> msgs = storage.messageBuff.get(user);\n\t\t\n\t\tif(msgs != null) {\n\t\t\tfor(Message message : msgs) {\n\t\t\t\tclientSession.send(message);\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\tClientSessionThread cliantThread = new ClientSessionThread(user, clientSession, this);\n\t\tstorage.addThread(user, cliantThread);\n\t\t\n\t\tcliantThread.start();\n\t\ttry {\n\t\t\tcliantThread.join();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\n\t}",
"void connected();",
"public void onPlayerLoggedIn() {\n\t\tshowPlayerButtons();\n\t}",
"protected void onDisconnect() {}",
"private void UserJoinChannel(ClientData d)\n\t{\n\t\tApplicationManager.textChat.writeLog(d.ClientName + \" Join to \" + currentChannel.ChannelName);\n\t\tSendMessage(null, MessageType.channelInfo);\n\n\t}",
"private void onEcologyConnected() {\n for (Room room : rooms.values()) {\n room.onEcologyConnected();\n }\n }",
"@Override\n\t\tpublic void actionPerformed(final ActionEvent arg0)\n\t\t{\n\t\t\tfinal String ipString = serverIPTextField.getText();\n\t\t\tfinal String userNameString = userNameTextField.getText();\n\t\t\tfinal String port = serverPortTextField.getText();\n\t\t\tsetConnected(true);\n\t\t\tmessageTextArea.setEnabled(false);\n\t\t\tsendMessageButton.setEnabled(false);\n\t\t\tlogoutButton.setEnabled(false);\n\t\t\tprint(\"\\nWaiting for answer from server...\\n\");\n\t\t\ttry\n\t\t\t{\n\t\t\t\teventsBlockingQueue.put(\n\t\t\t\t\t\tnew LogInEvent(userNameString, ipString, port));\n\t\t\t}\n\t\t\tcatch (final InterruptedException e)\n\t\t\t{\n\t\t\t\tsetConnected(false);\n\t\t\t}\n\t\t}",
"@Override\n\tprotected void handleServiceConnected()\n\t{\n\t\t\n\t}",
"void onConnectedAsServer(String deviceName);",
"private void execHandlerConnected( Message msg ) {\t\n\t\t// save Device Address\n\t\tif ( mBluetoothService != null ) {\n\t\t\tString address = mBluetoothService.getDeviceAddress();\n\t\t\tsetPrefAddress( address );\n\t\t}\t\n\t\tshowTitleConnected( getDeviceName() );\n\t\thideButtonConnect();\n\t}",
"public void onUserOnline(RpcProxyBase proxy,Object cookie){\n\t}",
"@OnConnect\r\n\tpublic void onConnect(SocketIOClient client) {\n\t\tlogger.info(\"新用户连接:{}\", client.getRemoteAddress());\r\n\t}",
"public void setConnectionEstablishedListener()\r\n\t{\r\n\t\tchatModel.getConnectionEstablishedProperty().addListener(\r\n\t\t\t\tnew ChangeListener<Object>()\r\n\t\t\t\t{\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void changed(\r\n\t\t\t\t\t\t\tObservableValue<? extends Object> observable,\r\n\t\t\t\t\t\t\tObject oldValue, Object newValue)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tif (chatModel.isConnectionEstablished())\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tenableChat();\r\n\t\t\t\t\t\t\tdeconnecterButton.setDisable(false);\r\n\t\t\t\t\t\t\tbuttonConnexion.setDisable(true);\r\n\t\t\t\t\t\t} else\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tdisableChat();\r\n\t\t\t\t\t\t\tbuttonConnexion.setDisable(false);\r\n\t\t\t\t\t\t\tdeconnecterButton.setDisable(true);\r\n\t\t\t\t\t\t\tserver.closeServerSockets();\r\n\t\t\t\t\t\t\tserver.startOpenSocketThread();\r\n\t\t\t\t\t\t\tserver.startReceiveMessageThread();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t}",
"public abstract void onClientConnect(ClientWrapper client);",
"public void handleInUse() {\n InternalSubchannel.this.callback.onInUse(InternalSubchannel.this);\n }",
"public void handleEvent(PlayerEntered event) {\r\n if( isEnabled )\r\n m_botAction.sendPrivateMessage(event.getPlayerName(), \"Autopilot is engaged. PM !info to me to see how *YOU* can control me. (Type :\" + m_botAction.getBotName() + \":!info)\" );\r\n }",
"public void onXMPPMsg(XMPPMsg xmppMsg) {\n\t\tlog.info(String.format(\"XMPP - %s %s\", xmppMsg.msg.getFrom(), xmppMsg.msg.getBody()));\n\n\t\t// not exactly the same model as onConnect - so we try to add each time\n\t\tString user = xmpp.getEntry(xmppMsg.msg.getFrom()).getName();\n\t\tconns.addConnection(xmppMsg.msg.getFrom(), user);\n\n\t\tShout shout = createShout(TYPE_USER, xmppMsg.msg.getBody());\n\t\tshout.from = user;\n\n\t\t// shouts.add(shout);\n\t\tMessage out = createMessage(\"shoutclient\", \"onShout\", Encoder.toJson(shout));\n\n\t\tonShout(xmppMsg.msg.getFrom(), out);\n\n\t\t/*\n\t\t * Shout shout = createShout(TYPE_USER, xmppMsg.msg.getBody());\n\t\t * shout.user = user;\n\t\t * \n\t\t * shouts.add(shout); Message out = createMessage(\"shoutclient\",\n\t\t * \"onShout\", Encoder.toJson(shout)); webgui.sendToAll(out); if (xmpp !=\n\t\t * null){ for (int i = 0; i < xmppRelays.size(); ++i){\n\t\t * log.info(String.format(\"sending xmpp client %s %s\",shout.user,\n\t\t * shout.msg)); xmpp.sendMessage(String.format(\"%s:%s\", shout.user,\n\t\t * shout.msg), xmppRelays.get(i)); } } archive(shout);\n\t\t */\n\t}",
"@FXML\n\tprivate void handleConnection() {\n\t\tString pseudo = this.nickName.getText();\n\t\tif (pseudo != null && !pseudo.equals(\"\")) {\n\t\t\tUser user = new User(pseudo);\n\t\t\tthis.mainApp.setUser(user);\n\t\t\t//Un fois que l'utilisateur a été créé dans la main ap, on peut appeler la méthode de connection\n\t\t\tthis.mainApp.connect();\n\t\t}\n\t\telse {\n\t\t\t\n\t\t}\n\t}",
"@Override\n\t\t\t\t\tpublic void onNotifyWifiConnected()\n\t\t\t\t\t{\n\t\t\t\t\t\tLog.v(TAG, \"have connected success!\");\n\t\t\t\t\t\tLog.v(TAG, \"###############################\");\n\t\t\t\t\t}",
"public void onConnect(WebSocket ws) {\n\t\ttry {\n\t\t\tif (ws == null || ws.getRemoteSocketAddress() == null) {\n\t\t\t\terror(\"ws or getRemoteSocketAddress() == null\");\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tlog.info(ws.getRemoteSocketAddress().toString());\n\n\t\t\t// set javascript user object for this connection\n\t\t\tConnection conn = conns.addConnection(ws);\n\t\t\tMessage onConnect = createMessage(\"shoutclient\", \"onConnect\", Encoder.toJson(conn));\n\t\t\tws.send(Encoder.toJson(onConnect));\n\n\t\t\t// BROADCAST ARRIVAL\n\t\t\t// TODO - broadcast to others new connection of user - (this mean's\n\t\t\t// user\n\t\t\t// has established new connection,\n\t\t\t// this could be refreshing the page, going to a different page,\n\t\t\t// opening\n\t\t\t// a new tab or\n\t\t\t// actually arriving on the site - how to tell the difference\n\t\t\t// between\n\t\t\t// all these activities?\n\t\t\tsystemBroadcast(String.format(\"[%s]@[%s] is in the haus !\", conn.user, conn.ip));\n\n\t\t\t// FIXME onShout which takes ARRAY of shouts !!! - send the whole\n\t\t\t// thing\n\t\t\t// in one shot\n\t\t\t// UPDATE NEW CONNECTION'S DISPLAY\n\t\t\tfor (int i = 0; i < shouts.size(); ++i) {\n\t\t\t\tShout s = shouts.get(i);\n\t\t\t\tString ss = Encoder.toJson(s);\n\t\t\t\tMessage catchup = createMessage(\"shoutclient\", \"onShout\", ss);\n\t\t\t\tws.send(Encoder.toJson(catchup));\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLogging.logError(e);\n\t\t}\n\t}",
"protected void beforeDisconnect() {\n // Empty implementation.\n }",
"protected void connectionEstablished() {}",
"@Override\n\tpublic void onSubscribeLobbyDone(LobbyEvent arg0) {\n\t\tMain.log(getClass(), \"onSubscribeLobbyDone\");\n\t}",
"public void connectionOpened(NIOSocket nioSocket)\n {\n m_disconnectEvent = m_server.getEventMachine().executeLater(new Runnable()\n {\n public void run()\n {\n m_socket.write(\"Disconnecting due to inactivity\".getBytes());\n m_socket.closeAfterWrite();\n }\n }, LOGIN_TIMEOUT);\n\n // Send the request to log in.\n nioSocket.write(\"Please enter your name:\".getBytes());\n }",
"public void joinChannel() {\n String userId = AuthenticationSingleton.getAdaptedInstance().getUid();\n String token1 = generateToken(userId);\n mRtcEngine.setAudioProfile(Constants.AUDIO_SCENARIO_SHOWROOM, Constants.AUDIO_SCENARIO_GAME_STREAMING);\n int joinStatus = mRtcEngine.joinChannelWithUserAccount(token1, appointment.getId(), userId);\n if (joinStatus == SUCCESS_CODE) {\n appointment.addInCallUser(new DatabaseUser(userId));\n }\n }",
"@Override\n\t\tpublic void onDeviceConnected() {\n\t\t\tDFUManager.log(TAG, \"onDeviceConnected()\");\n\t\t\tisDeviceConnected = true;\n\t\t\t\n\t\t\t\n\t\t}",
"@Override\n\tpublic void channelConnected(final ChannelHandlerContext ctx, final ChannelStateEvent channelEvent)\n\t\t\tthrows Exception {\n\t\tLOGGER.debug(\"Channel connected OK\");\n\n\t\t// Add channel to group so later we will close the group\n\t\tchannelGroup.add(channelEvent.getChannel());\n\t}",
"public void consulterEvent() {\n\t\t\n\t}",
"protected void onDiscoveryStarted() {\n logAndShowSnackbar(\"Subscription Started\");\n }",
"private void sendToMyself(ProxyEvent event) throws AppiaEventException {\n \t\ttry {\n \t\t\tProxyEvent clone = (ProxyEvent) event.cloneEvent();\n \t\t\tclone.storeMessage();\n \t\t\tclone.setDir(Direction.DOWN);\n \t\t\tclone.setChannel(vsChannel);\n \t\t\tclone.setSourceSession(this);\n \t\t\tclone.init();\n \n \t\t\tEchoEvent echo = new EchoEvent(clone, this.vsChannel, Direction.UP, this);\n \t\t\techo.init();\n \t\t\techo.go();\n \t\t} catch (CloneNotSupportedException e) {\n \t\t\te.printStackTrace();\n \t\t}\n \t}",
"@Override\r\n public void onConnected() {\r\n Log.d(TAG, \"onConnected: CALLED\");\r\n try {\r\n // Get a MediaController for the MediaSession.\r\n mMediaController =\r\n new MediaControllerCompat(mContext, mMediaBrowser.getSessionToken());\r\n mMediaController.registerCallback(mMediaControllerCallback);\r\n\r\n\r\n } catch (RemoteException e) {\r\n Log.d(TAG, String.format(\"onConnected: Problem: %s\", e.toString()));\r\n throw new RuntimeException(e);\r\n }\r\n\r\n mMediaBrowser.subscribe(mMediaBrowser.getRoot(), mMediaBrowserSubscriptionCallback);\r\n Log.d(TAG, \"onConnected: CALLED: subscribing to: \" + mMediaBrowser.getRoot());\r\n\r\n mMediaBrowserCallback.onMediaControllerConnected(mMediaController);\r\n }"
] |
[
"0.70146",
"0.6844352",
"0.68249285",
"0.67913955",
"0.6706218",
"0.6590572",
"0.6578396",
"0.65735596",
"0.6566638",
"0.6486793",
"0.64855045",
"0.64803624",
"0.6468019",
"0.64638007",
"0.6399765",
"0.639725",
"0.63933253",
"0.6387154",
"0.6383233",
"0.6363792",
"0.63523465",
"0.6342597",
"0.63284445",
"0.63231415",
"0.6283568",
"0.62829137",
"0.627848",
"0.62677324",
"0.62677324",
"0.6263081",
"0.6258239",
"0.6229606",
"0.62232643",
"0.6219731",
"0.62175626",
"0.6211777",
"0.6187768",
"0.617772",
"0.6167828",
"0.61660045",
"0.61640817",
"0.61376303",
"0.61328745",
"0.6120302",
"0.6120241",
"0.611993",
"0.61168283",
"0.61133105",
"0.6102789",
"0.6102789",
"0.60951364",
"0.6083736",
"0.60743827",
"0.606416",
"0.60608035",
"0.60598797",
"0.6051194",
"0.60451466",
"0.60439754",
"0.6040127",
"0.60274506",
"0.6022519",
"0.6007824",
"0.60030615",
"0.60012406",
"0.59945774",
"0.5992834",
"0.59703135",
"0.59700185",
"0.59673476",
"0.5953633",
"0.5943314",
"0.59371006",
"0.59358203",
"0.59343785",
"0.5927666",
"0.59240687",
"0.59141093",
"0.59132445",
"0.5911159",
"0.5906908",
"0.59017485",
"0.5900433",
"0.58886504",
"0.58639437",
"0.5861754",
"0.586047",
"0.5859825",
"0.58417815",
"0.5841395",
"0.58400977",
"0.58285415",
"0.58196735",
"0.58190536",
"0.58148015",
"0.58005077",
"0.5786691",
"0.5784418",
"0.57823765",
"0.57734185",
"0.5768614"
] |
0.0
|
-1
|
Called when someone has disconnected. Override this method to act on the event.
|
protected void onEndpointDisconnected(Endpoint endpoint) {}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n\t\tpublic void disconnected() {\n\t\t\tsuper.disconnected();\n\t\t}",
"public void onDisconnected() {\n\t\t\r\n\t}",
"protected void onDisconnect() {}",
"@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\t\t\n\t}",
"void onDisconnected();",
"@Override\n\tpublic void onDisconnected() {\n\n\t}",
"@Override public void onDisconnected() {\n }",
"@Override\n public void onDisconnected() {\n }",
"protected void afterDisconnect() {\n // Empty implementation.\n }",
"void onDisconnect();",
"void onDisconnect();",
"protected void processDisconnect() {\n\t\tconnected.set(false);\n\t\tsenderChannel = null;\n\t}",
"public void onDisconnected() {\n\n }",
"public void onDisconnected() {\n\n }",
"@Override\n public void onDisconnected() {\n }",
"protected void onDisconnected(long hconv)\n {\n }",
"abstract protected void onDisconnection();",
"@Override\n\tpublic void onDisconnectDone(ConnectEvent arg0) {\n\t\t\n\t}",
"@Override\n\t\t\tpublic void disconnected() {\n\t\t\t\ttoast(\"IOIO disconnected\");\n\t\t\t}",
"public DeviceDisconnectedEvent(Device device) {\n super(device);\n }",
"@Override\n\tpublic void playerDisconnected(String playerID, DisconnectReason reason) {\n\t}",
"@Override\n public void onChannelDisconnected() {\n ConnectionManager.getInstance().setDisconnectNow(true);\n ((P2PListener)activity).onAfterDisconnect();\n }",
"public void handleDisconnect(){\r\n consoleAppend(this.getName() + \" disconnected.\");\r\n clientThreads.remove(getIndex(this.getName()));\r\n sendToAll(this.getName() + \" disconnected.\");\r\n sendCTToAll(new ControlToken(ControlToken.REMOVECODE, this.getName()));\r\n }",
"public void onDisconnected() {\r\n // Display the connection status\r\n Toast.makeText(this, \"Disconnected. Please re-connect.\",\r\n Toast.LENGTH_SHORT).show();\r\n }",
"@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\n\t\t\t\t\tSystem.out.println(\"CONNECTION HAS BEEN LOST.\");\r\n\t\t\t\t}",
"public void disconnected(String reason) {}",
"public void disconnect() {\r\n\t\tsuper.disconnect();\r\n\t}",
"private void disconnected() {\n m_connectionLabel.setBackground(Color.RED);\n m_connectionLabel.setText(\"Disconnected\");\n }",
"@Override\r\n\t\tpublic void onDisconnect(Connection connection) {\n\r\n\t\t}",
"@Override\n\tpublic void disconnect() {\n\t\t\n\t}",
"@Override\n\tpublic void disconnect() {\n\t\t\n\t}",
"@Disconnect\n public void disconnected(AtmosphereResourceEvent event){\n if (event.isCancelled()) {\n logger.info(\"User:\" + event.getResource().uuid() + \" unexpectedly disconnected\");\n } else if (event.isClosedByClient()) {\n logger.info(\"User:\" + event.getResource().uuid() + \" closed the connection\");\n }\n }",
"@Override\n\tpublic void onDisconnected() {\n\t\tToast.makeText(context, \"Disconnected. Please re-connect.\",Toast.LENGTH_SHORT).show();\n\t}",
"@Override\n\tpublic void onApplicationEvent(SessionDisconnectEvent event) {\n\t\tLOGGER.info(\"offline: {}\",\"SessionDisconnectEvent\");\n\t}",
"@Override\n\tpublic void onDisconnected() {\n\t\t// Display the connection status\n\t\tToast.makeText(this, \"Disconnected. Please re-connect.\", Toast.LENGTH_SHORT).show();\n\t}",
"@Override\r\n\t\t\t\tpublic void onServerDisconnect() {\n\t\t\t\t}",
"@Override\n\tpublic void disconnect() {\n\n\t}",
"@Override\n\tpublic void disconnect() {\n\n\t}",
"void onDisconnect(DisconnectReason reason, String errorMessage);",
"@Override\n\tpublic void onDisconnected() {\n\t\tmConnectionStatus.setText(R.string.disconnected);\n\t}",
"@Override\n public void disconnect() {\n\n }",
"default void onDisconnect(SessionID sessionID) {\n }",
"public void onDisconnect(Controller controller) {\n\t\tSystem.out.println(\"Disconnected\");\r\n\t}",
"public void onDisconnect(Controller controller) {\n\t\tSystem.out.println(\"Disconnected\");\r\n\t}",
"protected void beforeDisconnect() {\n // Empty implementation.\n }",
"@Override\n public void disconnected(final OfficeConnectionEvent event) {\n\n // Make the task executor unavailable.\n taskExecutor.setAvailable(false);\n\n // When it comes from an expected behavior (we have put\n // the field to true before calling a function), just reset\n // the disconnectExpected value to false. When we didn't expect\n // the disconnection, we must restart the office process, which\n // will cancel any task that may be running.\n if (!disconnectExpected.compareAndSet(true, false)) {\n\n // Here, we didn't expect this disconnection. We must restart\n // the office process, canceling any task that may be running.\n LOGGER.warn(\"Connection lost unexpectedly; attempting restart\");\n if (currentFuture != null) {\n currentFuture.cancel(true);\n }\n officeProcessManager.restartDueToLostConnection();\n }\n }",
"public void onDisconnected(ComponentName componentName) {\n disconnect();\n HiLog.info(LOG_LABEL, \"onDisconnected.\", new Object[0]);\n this.mRemote = null;\n processLiveCallWhenServiceDisconnected(componentName);\n Listener listener = this.mListener;\n if (listener != null) {\n listener.onDisconnected(this);\n }\n }",
"@Override\n\t\t\tpublic void onNetworkDisconnected() {\n\t\t\t\t\n\t\t\t}",
"@Override\r\n\tpublic void disconnect();",
"public void disconnect() {\n\t\t\n\t}",
"@Override\n public void gattDisconnected() {\n mConnected = false;\n updateConnectionState(R.string.disconnected);\n mDataField.setText(R.string.no_data);\n getActivity().invalidateOptionsMenu();\n sCapSwitch.setChecked(false);\n sCapSwitch.setEnabled(false);\n }",
"public void onDeviceDisconnected() {\n btButton.setText(\"Disconnnected\");\n }",
"public void disconnect() {}",
"@Override\n\tpublic void disconnected(String text) {\n\t\t\n\t}",
"void firePeerDisconnected(ConnectionKey connectionKey);",
"protected void processDisconnection(){}",
"public void disconnect() {\n\t\tdisconnect(true);\n\t}",
"public void onClientDisconnected(Channel channel);",
"@Override\n public void onDisconnected(String endpointId) {\n Discoverer.this.eventListener.trigger(EVENT_LOG, \"Disconnected \" + endpointId);\n }",
"public void onDisconnect(DisconnectMsg msg) {\n\n\t\tString user = msg.getUser();\n\n\t\tLogger.log(\"onDisconnect:\" + msg.toString());\n\n\t\tstorage.removeClientSession(user);\n\n\t\tstorage.addBuffer(user);\n\t\t\n\t\tstorage.getThread(user).doStop();\n\t\t\n\t\t\n\t}",
"public void handleDisconnectedState() {\n\n setProgressBarVisible(false);\n setGreenCheckMarkVisible(false);\n setMessageText(\"Failed to connect to \" + tallyDeviceName);\n\n }",
"@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t}",
"@Override\n\tpublic void channelInactive(ChannelHandlerContext ctx) throws Exception {\n\t\tsuper.channelInactive(ctx);\n\t\tif(connectListener != null) {\n\t\t\tconnectListener.onDisconnect(ctx.channel());\n\t\t}\n\t}",
"public void onDisconnect(IChatComponent reason) {\n\t\tlogger.info(this.getConnectionInfo() + \" lost connection: \" + reason.getUnformattedText());\n\t}",
"@Override\n public void disconnect() {\n super.disconnect();\n if (playStateSubscription != null) {\n playStateSubscription.unsubscribe();\n playStateSubscription = null;\n }\n connected = false;\n }",
"private void onLost() {\n // TODO: broadcast\n }",
"@Override\n\t\tpublic void onDisconnect(Myo myo, long timestamp) {\n\t\t\t// Set the text color of the text view to red when a Myo\n\t\t\t// disconnects.\n\t\t\t// mTextView.setTextColor(Color.RED);\n\t\t\tmyos.remove(myo);\n\t\t\tconnectedMyo = null;\n\t\t}",
"@Override\n public void onPeerDisconnected(Node peer) {\n Log.i(TAG, \"Disconnected: \" + peer.getDisplayName() + \" (\" + peer.getId() + \")\");\n super.onPeerDisconnected(peer);\n SmartWatch.getInstance().sendDisconnectedWear();\n }",
"@Override\n\tpublic void listenerClosed(ConnectionListenerEvent evt) {\n\t\t\n\t}",
"@Override\n public void onDisconnect(BinaryLogClient client) {\n }",
"public void onIceDisconnected();",
"void onDisconnect( String errorMsg );",
"@Override\n public void modelDisconnected(ModelEvent event)\n {\n _model.removeListener(this);\n }",
"@Override\n public abstract void disconnect();",
"protected void disconnect() {\n\t\tif (false == DOM.getElementPropertyBoolean(this.getFrame(), \"__connected\")) {\r\n\t\t\tthis.onUnableToConnect();\r\n\t\t} else {\r\n\t\t\tthis.restart();\r\n\t\t}\r\n\t}",
"@Override\n public void Disconnect() {\n bReConnect = true;\n }",
"public void disconnect(){\n\t\tif(player!=null){\n\t\t\tplayer.getConnection().close();\n\t\t\t\n\t\t\t// we get no disconnect signal if we close the connection ourself\n\t\t\tnotifyHandlers(MessageFlag.DISCONNECTED);\n\t\t}\n\t}",
"@Override\n public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) throws Exception {\n ctx.getChannel().getRemoteAddress();\n System.out.println(ctx.getChannel().getRemoteAddress()+\" Disconnected..\");\n Client user = ServerTools.getClientByChannel(ctx.getChannel());\n if(Server.live_clients.contains(user)){\n Server.live_clients.remove(user);\n System.out.println(\"User removed\");\n }\n }",
"@Override\r\n\t\t\t\tpublic void onClientDisconnect(ServerConnection sc) {\n\t\t\t\t\tSystem.out.println(\"CLIENT DISCONNECTED FROM SERVER.\");\r\n\t\t\t\t}",
"@Override\r\n\t\t\tpublic void onServiceDisconnected(ComponentName name)\r\n\t\t\t{\n\t\t\t\tSystem.out.println(\"disconnect\");\r\n\t\t\t}",
"@Override\n\tpublic boolean disconnect() {\n\t\treturn false;\n\t}",
"public void disconnect() {\n\t\tdisconnect(null);\n\t}",
"public void disconnect()\n {\n isConnected = false;\n }",
"@Override\n public void channelDisconnected(ChannelHandlerContext ctx, ChannelStateEvent e) {\n log.error(\"Input Stream {} : Channel Disconnected - Stream Engine RTS process!\", name);\n channelAtomicReference.set(null);\n }",
"@Override\n public void onServerDisconnectedListener() {\n disconnect();\n\n if (serviceDisconnectedListener != null) {\n serviceDisconnectedListener.onServerDisconnectedListener();\n }\n }",
"protected void disconnected() {\n\t\tthis.model.setClient(null);\n\t}",
"@FXML\n\tprivate void disconnectEventHandler(ActionEvent event) {\n\t\tif (!startButtonBox.isVisible()) {\n\t\t\talert(\"You cannot disconnect during a lesson!\");\n\t\t\treturn;\n\t\t}\n\t\t// Disconnecting the user\n\t\tloggedInUser = null;\n\t\t// Changing the login view\n\t\tconnectionLayout.setVisible(true);\n\t\tconnectionInfoLayout.setVisible(false);\n\n\t\tuserInfoLabel.setText(\"\");\n\t}",
"protected void connectionClosed() {}",
"@Override\n public void onDisconnect(Myo myo, long timestamp) {\n // Set the text color of the text view to red when a Myo disconnects.\n }",
"void disconnectedPlayerMessage(String name);",
"interface Disconnect extends RconConnectionEvent {}",
"@Override\n public void onAgentDisconnect(long agentId, Status state) {\n }",
"void onDisconnect(User user);",
"@Override\n public void disconnect() {\n getMvpView().showLoading();\n getDataManager().setSetupStatus(false);\n getDataManager().setIpAddress(\"\");\n getMvpView().setIpDetails(\"\", \"Disconnected\");\n\n new Handler().postDelayed(() -> {\n getMvpView().hideLoading();\n getMvpView().toSetupActivity();\n }, 1000);\n }",
"public void connectionLost(String channelID);",
"void clientDisconnected(Client client, DisconnectInfo info);",
"@Override\r\n \tpublic void clientDisconnectedCallback(RoMClient client) {\r\n \t\tthis.disconnectClient(client);\r\n \t}",
"@Override\n public boolean disconnectFromSensor() {\n return false;\n }"
] |
[
"0.800041",
"0.79313165",
"0.78896487",
"0.7624909",
"0.7624909",
"0.7624909",
"0.7593268",
"0.75435126",
"0.75026566",
"0.7491129",
"0.74112326",
"0.7353239",
"0.7353239",
"0.7346625",
"0.7343709",
"0.7343709",
"0.734254",
"0.7334833",
"0.73333204",
"0.7256933",
"0.72402406",
"0.72013324",
"0.7160088",
"0.7150532",
"0.713523",
"0.710802",
"0.71043766",
"0.71022516",
"0.70945925",
"0.70932597",
"0.7079852",
"0.70758045",
"0.70758045",
"0.7074374",
"0.7060007",
"0.70542884",
"0.7049215",
"0.7005506",
"0.69984585",
"0.69984585",
"0.6965989",
"0.69437337",
"0.6924765",
"0.691207",
"0.6881407",
"0.6881407",
"0.68671584",
"0.6841203",
"0.6827453",
"0.6825891",
"0.68242866",
"0.68205047",
"0.6796139",
"0.67724204",
"0.6765763",
"0.6763937",
"0.6757055",
"0.6751487",
"0.6739156",
"0.6734507",
"0.67338884",
"0.67270935",
"0.672667",
"0.6723821",
"0.6697032",
"0.6695828",
"0.6693921",
"0.6683716",
"0.6678734",
"0.6678441",
"0.6652522",
"0.66428155",
"0.6627721",
"0.66192585",
"0.66105956",
"0.65952766",
"0.6592629",
"0.65724707",
"0.6571138",
"0.6563952",
"0.6563386",
"0.6562616",
"0.65510523",
"0.6537123",
"0.65356606",
"0.64934456",
"0.6491447",
"0.64846504",
"0.6479946",
"0.64732593",
"0.6463764",
"0.64424527",
"0.6438065",
"0.6433625",
"0.64273065",
"0.64267606",
"0.6414288",
"0.6410648",
"0.6409831",
"0.63934433"
] |
0.654941
|
83
|
Returns a list of currently discovered endpoints.
|
protected Set<Endpoint> getDiscoveredEndpoints() {
return new HashSet<>(mDiscoveredEndpoints.values());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List<Endpoint> getEndpoints()\n\t\t{\n\t\t\treturn endpointsList;\n\t\t}",
"private Future<List<Record>> getAllEndpoints() {\n Future<List<Record>> future = Future.future();\n discovery.getRecords(record -> record.getType().equals(HttpEndpoint.TYPE),\n future.completer());\n return future;\n }",
"@Override\n public List<ServiceEndpoint> listServiceEndpoints() {\n return new ArrayList<>(serviceEndpoints.values());\n }",
"@GET\n @Path(\"/endpoints\")\n @Produces(ApiOverviewRestEndpoint.MEDIA_TYPE_JSON_V1)\n @Cache\n Response getAvailableEndpoints(@Context final Dispatcher dispatcher);",
"List<ManagedEndpoint> all();",
"java.util.List<com.google.cloud.aiplatform.v1beta1.IndexEndpoint> \n getIndexEndpointsList();",
"protected Set<Endpoint> getConnectedEndpoints() {\n return new HashSet<>(mEstablishedConnections.values());\n }",
"public Set<EndpointInterface> getEndpointInterfaces() {\n return endpointInterfaces;\n }",
"public com.microsoft.schemas.xrm._2014.contracts.EndpointCollection getEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2014.contracts.EndpointCollection target = null;\r\n target = (com.microsoft.schemas.xrm._2014.contracts.EndpointCollection)get_store().find_element_user(ENDPOINTS$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"@Override\n public ListEndpointsResult listEndpoints(ListEndpointsRequest request) {\n request = beforeClientExecution(request);\n return executeListEndpoints(request);\n }",
"java.util.List<? extends com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder> \n getIndexEndpointsOrBuilderList();",
"public Vertex<V>[] getEndpoints() { return endpoints; }",
"public List<Neighbour> getAvailableHosts() {\n return new ArrayList<>(routes.keySet());\n }",
"public Map<Range, List<EndPoint>> getRangeToEndpointMap()\n {\n return ssProxy.getRangeToEndPointMap();\n }",
"List<String> getHosts();",
"private static List<MonitoredEndpoint> initMonitoredEndpoints(final Properties props, final Logger logger) throws Exception {\n\n File sampledEndpointDir = getSystemFile(\"sampledEndpointDir\", props, false);\n\n List<MonitoredEndpoint> monitoredEndpoints = Lists.newArrayListWithExpectedSize(16);\n\n if(sampledEndpointDir != null) {\n File[] propFiles = sampledEndpointDir.listFiles();\n if(propFiles != null) {\n for(File propFile : propFiles) {\n if(propFile.isDirectory()) continue;\n Properties endpointProps = new Properties();\n try {\n byte[] propBytes = Files.toByteArray(propFile);\n endpointProps.load(new ByteArrayInputStream(propBytes));\n if(endpointProps.getProperty(\"url\") != null) {\n monitoredEndpoints.add(new MonitoredEndpoint(endpointProps));\n }\n } catch(IOException ioe) {\n logger.warn(\"Problem loading sampled endpoint '\" + propFile.getAbsolutePath() + \"'\", ioe);\n }\n }\n }\n }\n\n return monitoredEndpoints;\n }",
"public Object getTarget() {\n return this.endpoints;\n }",
"public ArrayList<String> getWebserverUrl() {\n\n if (webListener.isServiceFound()) {\n return webListener.getServiceURLs();\n }\n return new ArrayList<>();\n }",
"java.util.List<java.lang.String>\n getPeerURLsList();",
"Map<String, String> getEndpointMap();",
"public static void loadEndpoints(){\n\t\tStart.loadEndpoints();\n\t\t//add\t\t\n\t\t//e.g.: get(\"/my-endpoint\", (request, response) ->\t\tmyEndpointGet(request, response));\n\t\t//e.g.: post(\"/my-endpoint\", (request, response) ->\t\tmyEndpointPost(request, response));\n\t}",
"@RequestMapping(value = \"urls\", method = RequestMethod.GET)\n @ResponseBody\n @ResponseStatus(HttpStatus.OK)\n public List<MonitoredUrl> getUrls()\n {\n System.out.println(\"geturls\");\n return urlChecker.getMonitoredUrls();\n }",
"private List<String> getApiEndpointUrls(final OperationHolder operationHolder, final List<Server> servers) {\r\n\t\tList<String> endpointUrls = null;\r\n\t\tif(!CollectionUtils.isEmpty(servers)) {\r\n\t\t\tendpointUrls = servers.stream().map(s -> s.getUrl() + operationHolder.getUrlPath()).collect(Collectors.toList());\r\n\t\t}\r\n\t\treturn endpointUrls;\r\n\t}",
"public List<EndpointElement> findEndpoints(String searchString,\n int startFrom,\n int pageSize) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n return connectionManagerClient.findEndpoints(userId, searchString, startFrom, pageSize);\n }",
"public List<String> getHosts() {\n return getProperty(HOSTS);\n }",
"public List<EndpointElement> getEndpointsByName(String name,\n int startFrom,\n int pageSize) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException\n {\n return connectionManagerClient.getEndpointsByName(userId, name, startFrom, pageSize);\n }",
"public ArrayList<String> getNameServerUrl() {\n\n if (nameListener.isServiceFound()) {\n return nameListener.getServiceURLs();\n }\n return new ArrayList<>();\n }",
"public List<MhsmPrivateEndpointConnectionItem> privateEndpointConnections() {\n return this.privateEndpointConnections;\n }",
"org.jacorb.imr.HostInfo[] list_hosts();",
"public URL[] getUrls() {\n\t\treturn urls.toArray(new URL[urls.size()]);\n\t}",
"public List<Connection> getConnections() {\n\t\treturn new ArrayList<Connection>(connectionsByUri.values());\n\t}",
"java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();",
"public ProxyConfig[] getProxyConfigList();",
"@Override\n\tpublic List<EndpointEntity> getAllChild() {\n\t\treturn null;\n\t}",
"public String getDiscoveryEndpoint() {\n return discoveryEndpoint;\n }",
"public List<String> getUrls() {\n\t\treturn urls;\n\t}",
"public List<String> getHosts() {\n\t\treturn hosts;\n\t}",
"public com.google.protobuf.ProtocolStringList\n getHotelImageURLsList() {\n return hotelImageURLs_.getUnmodifiableView();\n }",
"PagedIterable<ServiceEndpointPolicy> list(Context context);",
"public List<Map<String,Object>> getURLs() {\n return urls;\n }",
"public URL getEndPoint();",
"@java.lang.Override\n public io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList() {\n if (endpointConfigCase_ == 3) {\n return (io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList) endpointConfig_;\n }\n return io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList.getDefaultInstance();\n }",
"public LookupLocator[] getLookupLocators() throws RemoteException {\n\t\treturn disco.getLocators();\n\t}",
"public List<Route> getRoutes() {\n // use Optional to prevent returning a null list.\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(Arrays.asList(MediaType.APPLICATION_JSON));\n HttpEntity<String> entity = new HttpEntity<String>(headers);\n String response =\n restTemplate.exchange(BASE_URL_ROUTES, HttpMethod.GET, entity, String.class).getBody();\n\n List<Route> results = new ArrayList<>();\n try {\n results = parse(response);\n } catch (IOException e) {\n e.printStackTrace();\n }\n final List<Route> finalResults = Optional.ofNullable(results).orElseGet(ArrayList::new);\n return finalResults;\n }",
"public List<Address> getWatchedAddresses() {\n try {\n List<Address> addresses = new LinkedList<Address>();\n for (Script script : watchedScripts)\n if (script.isSentToAddress())\n addresses.add(script.getToAddress(params));\n return addresses;\n } finally {\n }\n }",
"Collection<? extends Service> getHost();",
"public String[] getRoutes() {\n\t\treturn routes;\r\n\t}",
"String endpoint();",
"List<IConnector> getConnectors();",
"private Set<Map.Entry<String, Integer>> getEndpointFrequencyEntrySet() {\n return endpointVisitFrequency.entrySet();\n }",
"public com.google.protobuf.ProtocolStringList\n getHotelImageURLsList() {\n return hotelImageURLs_;\n }",
"public List<String> getAddresses() {\n return mIPs;\n }",
"public List<String> getAddresses() throws RemoteException {\n\t\tList<String> addresses = new ArrayList<String>();\n\t\tif (this.registry != null) {\n\t\t\tfor (IServer server : this.serverList.getServers()) {\n\t\t\t\taddresses.add(server.getFullAddress());\n\t\t\t}\n\t\t}\n\t\treturn addresses;\n\t}",
"public void removeAllEndpoints() {\r\n for(int i = 0; i < getEndpoints().size(); i++)\r\n {\r\n removeEndpoint(getEndpoints().get(i));\r\n }\r\n }",
"@java.lang.Override\n @java.lang.Deprecated public java.util.List<io.envoyproxy.envoy.config.core.v3.Address> getListeningAddressesList() {\n return listeningAddresses_;\n }",
"public List<URL> getUrlsForCurrentClasspath() {\r\n ClassLoader loader = Thread.currentThread().getContextClassLoader();\r\n\r\n //is URLClassLoader?\r\n if (loader instanceof URLClassLoader) {\r\n return ImmutableList.of(((URLClassLoader) loader).getURLs());\r\n }\r\n\r\n List<URL> urls = Lists.newArrayList();\r\n\r\n //get from java.class.path\r\n String javaClassPath = System.getProperty(\"java.class.path\");\r\n if (javaClassPath != null) {\r\n\r\n for (String path : javaClassPath.split(File.pathSeparator)) {\r\n try {\r\n urls.add(new File(path).toURI().toURL());\r\n } catch (Exception e) {\r\n throw new ReflectionsException(\"could not create url from \" + path, e);\r\n }\r\n }\r\n }\r\n\r\n return urls;\r\n }",
"public String getEndpoint() {\n return this.endpoint;\n }",
"public String getEndpoint() {\n return this.endpoint;\n }",
"public String endpoint() {\n return this.endpoint;\n }",
"public boolean hasEndpoint() { return true; }",
"List<Service> services();",
"public ArrayList<InetAddress> getPeers() {\n\t\treturn new ArrayList<InetAddress>(peers.keySet());\n\t}",
"public List<arc> getIncomingLinks() {\r\n\t\treturn incoming;\r\n\t}",
"EndpointDetails getEndpointDetails();",
"@Override\n\tpublic Set<ServerEndpointConfig> getEndpointConfigs(Set<Class<? extends Endpoint>> arg0) {\n\t\tSet<ServerEndpointConfig> result = new HashSet<>();\n//\t\tif (arg0.contains(EchoEndpoint.class)) {\n//\t\t\tresult.add(ServerEndpointConfig.Builder.create(\n//\t\t\t\t\tEchoEndpoint.class,\n//\t\t\t\t\t\"/websocket/echoProgrammatic\").build());\n//\t\t}\n\n\t\treturn result;\t\n\t}",
"@Override\n public String toString() {\n return endpoint;\n }",
"com.google.protobuf.ProtocolStringList\n getHotelImageURLsList();",
"public List<ServiceInstance> getAllInstances();",
"public List<String> getRouteList();",
"ImmutableList<T> getServices();",
"public java.util.List getWaypoints();",
"public RangesByEndpoint getAddressReplicas(TokenMetadata metadata)\n {\n RangesByEndpoint.Builder map = new RangesByEndpoint.Builder();\n\n for (Token token : metadata.sortedTokens())\n {\n Range<Token> range = metadata.getPrimaryRangeFor(token);\n for (Replica replica : calculateNaturalReplicas(token, metadata))\n {\n // LocalStrategy always returns (min, min] ranges for it's replicas, so we skip the check here\n Preconditions.checkState(range.equals(replica.range()) || this instanceof LocalStrategy);\n map.put(replica.endpoint(), replica);\n }\n }\n\n return map.build();\n }",
"private List<Route> getRoutesFromContext() {\n Set<RequestMappingInfo> requestMappingInfos = requestMappingHandlerMapping.getHandlerMethods().keySet();\n List<Route> routes = new LinkedList<>();\n for (RequestMappingInfo handlerMethod : requestMappingInfos) {\n Set<String> patterns = handlerMethod.getPatternsCondition().getPatterns();\n for (String pattern : patterns) {\n Method method = requestMappingHandlerMapping.getHandlerMethods().get(handlerMethod).getMethod();\n routes.add(new Route(pattern, method));\n }\n }\n return routes;\n }",
"List<Uuid> getActivePeers() throws RemoteException;",
"List<IInboundAdapter> getInboundAdapterList();",
"int getIndexEndpointsCount();",
"public boolean isSetEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n return get_store().count_elements(ENDPOINTS$0) != 0;\r\n }\r\n }",
"@Override\n public List<Address> getInterfaceAddresses() {\n List<Address> output = new ArrayList<>();\n\n Enumeration<NetworkInterface> ifaces;\n try {\n ifaces = NetworkInterface.getNetworkInterfaces();\n } catch (SocketException e) {\n // If we could not retrieve the network interface list, we\n // probably can't bind to any interface addresses either.\n return Collections.emptyList();\n }\n\n for (NetworkInterface iface : Collections.list(ifaces)) {\n // List the addresses associated with each interface.\n Enumeration<InetAddress> addresses = iface.getInetAddresses();\n for (InetAddress address : Collections.list(addresses)) {\n try {\n // Make an address object from each interface address, and\n // add it to the output list.\n output.add(Address.make(\"zmq://\" + address.getHostAddress() + \":\" + port));\n } catch (MalformedAddressException ignored) {\n // Should not be reachable.\n }\n }\n }\n\n return output;\n }",
"io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsServiceList getServiceList();",
"@java.lang.Deprecated public java.util.List<io.envoyproxy.envoy.config.core.v3.Address> getListeningAddressesList() {\n if (listeningAddressesBuilder_ == null) {\n return java.util.Collections.unmodifiableList(listeningAddresses_);\n } else {\n return listeningAddressesBuilder_.getMessageList();\n }\n }",
"Set<URI> fetchAllUris(ServicePath service);",
"List<Transport> getTransports();",
"public static String[] getHttpExportURLs() {\n\t\tif (xml == null) return new String[0];\n\t\treturn httpExportURLs;\n\t}",
"PagedIterable<ServiceEndpointPolicy> list();",
"public void setEndpoints(String... endpoints) {\n this.endpoints = endpoints;\n }",
"public Iterable<Origin> origins() {\n return backendServices.stream()\n .map(BackendService::origins)\n .flatMap(Collection::stream)\n .collect(toList());\n }",
"@Override\n\t@Transactional\n\tpublic List<Route> getRoutes() {\n\t\treturn routeDAO.getRoutes();\n\t}",
"@Override\n public String getServiceEndpoint(String serviceName) {\n return serviceEndpoints.get(serviceName);\n }",
"public Set<URLPair> getVisited() { return this.pool.getVisitedKeys(); }",
"public List<String> listeners();",
"public HdfsLeDescriptors findEndpoint() {\n try {\n// return em.createNamedQuery(\"HdfsLeDescriptors.findEndpoint\", HdfsLeDescriptors.class).getSingleResult();\n List<HdfsLeDescriptors> res = em.createNamedQuery(\n \"HdfsLeDescriptors.findEndpoint\", HdfsLeDescriptors.class).\n getResultList();\n if (res.isEmpty()) {\n return null;\n } else {\n return res.get(0);\n }\n } catch (NoResultException e) {\n return null;\n }\n }",
"Collection<TcpIpConnection> getActiveConnections();",
"public String[] getUrls() {\n\t\tif (results == null)\n\t\t\treturn null;\n\t\tWebSearchResult[] resultsArray = results.listResults();\n\t\tString[] urls = new String[resultsArray.length];\n\t\tfor (int i = 0; i < urls.length; i++) {\n\t\t\turls[i] = resultsArray[i].getUrl();\n\t\t}\n\t\treturn urls;\n\t}",
"List<EndpointElement> findEndpoints(String userId,\n String assetManagerGUID,\n String assetManagerName,\n String searchString,\n int startFrom,\n int pageSize,\n Date effectiveTime,\n boolean forLineage,\n boolean forDuplicateProcessing) throws InvalidParameterException,\n UserNotAuthorizedException,\n PropertyServerException;",
"io.envoyproxy.envoy.data.dns.v3.DnsTable.DnsEndpoint getEndpoint();",
"public List<arc> getOutcomingLinks() {\r\n\t\treturn outcoming;\r\n\t}",
"public String getLocators() {\n return agentConfig.getLocators();\n }",
"List<String> getListPaths();",
"public Connections getConnections();",
"public EndpointService endpointService() {\n return this.endpointService;\n }"
] |
[
"0.7764422",
"0.760887",
"0.753091",
"0.7207259",
"0.7127071",
"0.6828526",
"0.6738926",
"0.6697399",
"0.66626394",
"0.64919555",
"0.63337773",
"0.6187087",
"0.61595684",
"0.61466074",
"0.6100368",
"0.5988527",
"0.5923531",
"0.5880783",
"0.585357",
"0.58289814",
"0.582041",
"0.57899106",
"0.57410914",
"0.57090753",
"0.56653976",
"0.5649884",
"0.56306356",
"0.560209",
"0.5583204",
"0.55724114",
"0.55677325",
"0.55490863",
"0.5518791",
"0.55012125",
"0.549204",
"0.54769146",
"0.54712266",
"0.54562986",
"0.5448516",
"0.5445934",
"0.5438881",
"0.54355216",
"0.5434463",
"0.5425397",
"0.5411654",
"0.53953135",
"0.5390213",
"0.5384704",
"0.53771955",
"0.53722274",
"0.5366096",
"0.5364779",
"0.5363176",
"0.5341031",
"0.5338975",
"0.5338654",
"0.5334268",
"0.5334268",
"0.533303",
"0.5332882",
"0.53233975",
"0.5320242",
"0.53176475",
"0.53176135",
"0.53162795",
"0.5315343",
"0.53150123",
"0.5314534",
"0.5314129",
"0.5302699",
"0.52987885",
"0.5290585",
"0.5289322",
"0.52858794",
"0.5268545",
"0.5266674",
"0.5266386",
"0.5265431",
"0.5264278",
"0.5261479",
"0.5260475",
"0.52560306",
"0.52540314",
"0.52521586",
"0.5250945",
"0.5243994",
"0.5227633",
"0.52263385",
"0.52061933",
"0.5200455",
"0.51951444",
"0.5192265",
"0.5178206",
"0.5175972",
"0.5173981",
"0.5171756",
"0.51704544",
"0.5162185",
"0.5161079",
"0.5159605"
] |
0.70965964
|
5
|
Returns a list of currently connected endpoints.
|
protected Set<Endpoint> getConnectedEndpoints() {
return new HashSet<>(mEstablishedConnections.values());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public List<Endpoint> getEndpoints()\n\t\t{\n\t\t\treturn endpointsList;\n\t\t}",
"java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionsList();",
"List<ManagedEndpoint> all();",
"Collection<TcpIpConnection> getActiveConnections();",
"@Override\n public List<ServiceEndpoint> listServiceEndpoints() {\n return new ArrayList<>(serviceEndpoints.values());\n }",
"public List<Connection> getConnections() {\n\t\treturn new ArrayList<Connection>(connectionsByUri.values());\n\t}",
"public ArrayList<AStarNode> getConnections() {\n return connected;\n }",
"public Set<EndpointInterface> getEndpointInterfaces() {\n return endpointInterfaces;\n }",
"private Future<List<Record>> getAllEndpoints() {\n Future<List<Record>> future = Future.future();\n discovery.getRecords(record -> record.getType().equals(HttpEndpoint.TYPE),\n future.completer());\n return future;\n }",
"public Connections getConnections();",
"public Vertex<V>[] getEndpoints() { return endpoints; }",
"protected Set<Endpoint> getDiscoveredEndpoints() {\n return new HashSet<>(mDiscoveredEndpoints.values());\n }",
"public List<String> getConnectedDevices() {\n if (services.size() == 0) {\n return new ArrayList<String>();\n }\n\n HashSet<String> toRet = new HashSet<String>();\n\n for (String s : services.keySet()) {\n ConnectionService service = services.get(s);\n\n if (service.getState() == ConnectionConstants.STATE_CONNECTED) {\n toRet.add(s);\n }\n }\n\n return new ArrayList<String>(toRet);\n }",
"Collection<TcpIpConnection> getConnections();",
"public ArrayList<Connection> getConnections(){\n\t\treturn manager.getConnectionsWith(this);\n\t}",
"public ArrayList<Integer> getConnections(){\n return connectedKeys;\n }",
"List<Uuid> getActivePeers() throws RemoteException;",
"public ArrayList<ServerSocket> getConnectedClients() {\n return connectedClients;\n }",
"public com.microsoft.schemas.xrm._2014.contracts.EndpointCollection getEndpoints()\r\n {\r\n synchronized (monitor())\r\n {\r\n check_orphaned();\r\n com.microsoft.schemas.xrm._2014.contracts.EndpointCollection target = null;\r\n target = (com.microsoft.schemas.xrm._2014.contracts.EndpointCollection)get_store().find_element_user(ENDPOINTS$0, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target;\r\n }\r\n }",
"public ArrayList<Integer> getConnections() {\n\t\treturn connections;\n\t}",
"java.util.List<com.google.cloud.aiplatform.v1beta1.IndexEndpoint> \n getIndexEndpointsList();",
"Vector<JPPFClientConnection> getAvailableConnections();",
"@GET\n @Path(\"/endpoints\")\n @Produces(ApiOverviewRestEndpoint.MEDIA_TYPE_JSON_V1)\n @Cache\n Response getAvailableEndpoints(@Context final Dispatcher dispatcher);",
"public String[] listConnections() {\n\t\t\tString[] conns = new String[keyToConn.entrySet().size()];\n\t\t\tint i = 0;\n\n\t\t\tfor (Map.Entry<String, Connection> entry : keyToConn.entrySet()) {\n\t\t\t\t// WebSocket ws = entry.getKey();\n\t\t\t\tConnection conn = entry.getValue();\n\t\t\t\tconns[i] = String.format(\"%s@%s\", conn.user, entry.getKey());\n\t\t\t\t++i;\n\t\t\t}\n\t\t\tArrays.sort(conns);\n\t\t\treturn conns;\n\t\t}",
"public List<MhsmPrivateEndpointConnectionItem> privateEndpointConnections() {\n return this.privateEndpointConnections;\n }",
"public List<Neighbour> getAvailableHosts() {\n return new ArrayList<>(routes.keySet());\n }",
"List<IConnector> getConnectors();",
"public List<ConnectionHandler> getClientConnections() {\r\n return clientConnections;\r\n }",
"public ConnInfo[] getConnections() {\n return connInfo;\n }",
"public static List<Connection> getLoggedInUserConnections() {\n List<Connection> userConnections = new ArrayList<Connection>();\n for (User user : UserManager.getLoggedInUsers()) {\n if (user.getConnection() != null) {\n userConnections.add(user.getConnection());\n }\n }\n return userConnections;\n }",
"public List getTargetConnections() {\n return new ArrayList(targetConnections);\n }",
"public List getSourceConnections() {\n return new ArrayList(sourceConnections);\n }",
"@Override\n public List<Link> getConnectionList()\n {\n return connections;\n }",
"public Connections getConnections() {\r\n return connections;\r\n }",
"public ArrayList<Integer> getConnections() {\n\t\tArrayList<Integer> connections = new ArrayList<Integer>();\n\t\tfor (Link l : links) {\n\t\t\tconnections.add(l.getDestination());\n\t\t}\n\t\treturn connections;\n\n\t}",
"public ConcurrentHashMap<String, SocketManager> getActiveConnections() {\n return threadListen.getActiveConnexion();\n }",
"java.util.List<? extends io.netifi.proteus.admin.om.ConnectionOrBuilder> \n getConnectionsOrBuilderList();",
"public List<Edge> getNeighbors() {\n\t\treturn neighbors;\n\t}",
"public Collection<SendenDevice> getClientsConnected() {\n return clientsConnected.values();\n }",
"java.util.List<io.netifi.proteus.admin.om.Connection> \n getConnectionList();",
"public ArrayList<Connector> getConnectors() {\n\t\treturn this.connectors;\n\t}",
"@Override\n\tpublic List<Socket> GetConnectedClients() {\n\t\t\n\t\tArrayList<Socket> list = new ArrayList<Socket>();\n\t\t\n\t\tif(clients == null)return list;\n\t\t\n\t\tfor(Socket s : clients)\n\t\t{\n\t\t\tlist.add(s);\n\t\t}\n\t\t\n\t\treturn list;\n\t}",
"List<String> getHosts();",
"public ArrayList<Node> getNeighbors(){\n ArrayList<Node> result = new ArrayList<Node>();\n for(Edge edge: edges){\n result.add(edge.end());\n }\n return result;\n }",
"java.util.List<? extends com.google.cloud.aiplatform.v1beta1.IndexEndpointOrBuilder> \n getIndexEndpointsOrBuilderList();",
"public Map<Range, List<EndPoint>> getRangeToEndpointMap()\n {\n return ssProxy.getRangeToEndPointMap();\n }",
"public ChannelGroup getConnections();",
"public static Collection<? extends ActiveHTTPConnection> getOpenConnections() {\n return openConnections.values();\n }",
"public ArrayList<InetAddress> getPeers() {\n\t\treturn new ArrayList<InetAddress>(peers.keySet());\n\t}",
"public List<Connection> getConnections(int fromNode) {\r\n\t\tList<Connection> list = new ArrayList<Connection>();\r\n\t\tif (connectionLists.containsKey(fromNode))\r\n\t\t\tlist = connectionLists.get(fromNode);\r\n\t\treturn list;\r\n\t}",
"public Room[] getConnections() {\n return connections;\n }",
"@Override\n public ListEndpointsResult listEndpoints(ListEndpointsRequest request) {\n request = beforeClientExecution(request);\n return executeListEndpoints(request);\n }",
"public Map<UUID, IExecutorDescriptor> getConnectedExecutors() throws RemoteException;",
"@Override\n\tpublic List<String> getConnectorIds() {\n\t\treturn connectorIds;\n\t}",
"public List<String> getHosts() {\n return getProperty(HOSTS);\n }",
"public ArrayList<String> getConnectedUsers() {\r\n\t\tArrayList<String> connectedUsers = new ArrayList<>();\r\n\t\tString message=\"107\";\r\n\t\tsendDatagramPacket(message);\r\n\t\t\r\n\t\t//connectedUsers.add(\"Default\");\r\n\t\t\r\n\t\treturn connectedUsers;\r\n\t}",
"public static List<Connection> getAllUserConnections() {\n List<Connection> userConnections = new ArrayList<Connection>();\n for (User user : UserManager.getUserStore()) {\n if (user.getConnection()!=null) {\n userConnections.add(user.getConnection());\n }\n }\n return userConnections;\n }",
"java.util.List<java.lang.String>\n getPeerURLsList();",
"public List<UserConnection> getUserConnections() {\n return jdbi.withHandle(handle -> {\n handle.registerRowMapper(ConstructorMapper.factory(UserConnection.class));\n return handle.createQuery(UserConnection.extractQuery)\n .mapTo(UserConnection.class)\n .list();\n });\n }",
"public Object getTarget() {\n return this.endpoints;\n }",
"public List<arc> getIncomingLinks() {\r\n\t\treturn incoming;\r\n\t}",
"List<GroupUser> getConnectedClients();",
"public synchronized List<ServerThread> getConnectionArray() {\r\n return connectionArray;\r\n }",
"public List<IEdge> getAllEdges();",
"io.netifi.proteus.admin.om.Connection getConnections(int index);",
"public List<String> getHosts() {\n\t\treturn hosts;\n\t}",
"protected int[] GetConnectedJunctions() {\n\t\tint Size = this.JunctionsConnectedList.length;\n\t\tint[] ReturnArray = new int[Size];\n\n\t\tfor(int i=0; i<Size; i++) {\n\t\t\tReturnArray[i] = this.JunctionsConnectedList[i][0];\n\t\t}\n\n\t\treturn ReturnArray;\n\t}",
"@Override\r\n\tpublic int getConnectionsCount() {\r\n\t\treturn currentConnections.get();\r\n\t}",
"public static long getConnections() {\n return connections;\n }",
"public List<String> allRequiredConnectionIdsPresent() {\n return this.allRequiredConnectionIdsPresent;\n }",
"public Set<URLPair> getVisited() { return this.pool.getVisitedKeys(); }",
"java.util.List<lightpay.lnd.grpc.Peer> \n getPeersList();",
"public Set<SwitchId> getEndpointSwitchIds() {\n Set<SwitchId> result = getSubFlowSwitchIds();\n result.add(getSharedSwitchId());\n return result;\n }",
"Map<String, Collection<String>> getConnectedEntities();",
"List<IEdge> getAllEdges();",
"public Connector[] getConnectors() {\n Enumeration connectorsEnum = elements();\n Connector[] connectorsArray = new Connector[size()];\n for (int i = 0; i < size(); i++) {\n connectorsArray[i] = (Connector) connectorsEnum.nextElement();\n }\n return connectorsArray;\n }",
"public static void viewConnections(){\n\t\tfor(int i=0; i<Server.clients.size();i++){\n\t\t\tServerThread cliente = Server.clients.get(i);\n\t\t\tlogger.logdate(cliente.getConnection().getInetAddress().getHostName());\n\t\t}\n\t}",
"@Override\n public List<Address> getInterfaceAddresses() {\n List<Address> output = new ArrayList<>();\n\n Enumeration<NetworkInterface> ifaces;\n try {\n ifaces = NetworkInterface.getNetworkInterfaces();\n } catch (SocketException e) {\n // If we could not retrieve the network interface list, we\n // probably can't bind to any interface addresses either.\n return Collections.emptyList();\n }\n\n for (NetworkInterface iface : Collections.list(ifaces)) {\n // List the addresses associated with each interface.\n Enumeration<InetAddress> addresses = iface.getInetAddresses();\n for (InetAddress address : Collections.list(addresses)) {\n try {\n // Make an address object from each interface address, and\n // add it to the output list.\n output.add(Address.make(\"zmq://\" + address.getHostAddress() + \":\" + port));\n } catch (MalformedAddressException ignored) {\n // Should not be reachable.\n }\n }\n }\n\n return output;\n }",
"public DSALinkedList<DSAGraphEdge<E>> getAdjacentEdges()\n {\n return edgeList;\n }",
"public String connectedHost()\n {\n return connectedHost;\n }",
"public DSALinkedList getAdjacent()\n\t\t{\n\t\t\treturn links;\n\t\t}",
"org.jacorb.imr.HostInfo[] list_hosts();",
"public List<Device> getRunningDevices();",
"public Collection<MyNode> getNeighbors(){\r\n return new ArrayList<>(this.neighbors);\r\n }",
"List <Connector.Type> getConnectors();",
"public List<Edge> segments() {\n return segments;\n }",
"public ArrayList<Integer> getNeighbors() {\n\t\treturn neighbors;\n\t}",
"List<CommunicationLink> getAllNodes()\n {\n return new ArrayList<>(allNodes.values());\n }",
"public ConnectionDefinition[] getConnectionDefinition() {\n return instances;\n }",
"public List<Link> getTargetConnections() {\n\t\treturn inputLinks;\n\t}",
"public Set<Integer> getNeighbors() {\n HashSet<Integer> retSet = new HashSet<Integer>();\n retSet.addAll(this.getActiveNeighbors());\n retSet.addAll(this.purgedNeighbors);\n\n return retSet;\n }",
"public List<Address> getWatchedAddresses() {\n try {\n List<Address> addresses = new LinkedList<Address>();\n for (Script script : watchedScripts)\n if (script.isSentToAddress())\n addresses.add(script.getToAddress(params));\n return addresses;\n } finally {\n }\n }",
"@Override\n\tpublic List<EndpointEntity> getAllChild() {\n\t\treturn null;\n\t}",
"public Set<String> peersAlive() {\n return peerLastHeartbeatTime.keySet();\n }",
"public ArrayList<String> getWebserverUrl() {\n\n if (webListener.isServiceFound()) {\n return webListener.getServiceURLs();\n }\n return new ArrayList<>();\n }",
"public SortedSet<WIpLink> getIncomingIpLinks () { return n.getIncomingLinks(getNet().getIpLayer().getNe()).stream().map(ee->new WIpLink(ee)).filter(e->!e.isVirtualLink()).collect(Collectors.toCollection(TreeSet::new)); }",
"@Override\n public List<ConsumerMember> listClients() {\n return this.soapClient.listClients(this.getTargetUrl());\n }",
"public List<NavArc> listOutgoing() {\r\n List<NavArc> result = new ArrayList<>(outgoing);\r\n return result;\r\n }",
"public java.util.List getWaypoints();",
"Optional<List<ConnectionResponse>> retrieveConnections();"
] |
[
"0.7450428",
"0.69059104",
"0.68805057",
"0.6836079",
"0.6799727",
"0.67151546",
"0.6706109",
"0.66840756",
"0.66554713",
"0.66348565",
"0.65895426",
"0.65754336",
"0.65453786",
"0.6507745",
"0.650771",
"0.6493062",
"0.64153314",
"0.6397065",
"0.63838416",
"0.633409",
"0.63212913",
"0.63101846",
"0.62677145",
"0.6253807",
"0.6233462",
"0.62182873",
"0.62081426",
"0.62025154",
"0.61922115",
"0.6189132",
"0.61787724",
"0.61765635",
"0.6165343",
"0.61360306",
"0.6129695",
"0.60880643",
"0.60800666",
"0.60689896",
"0.6039859",
"0.6015914",
"0.59948957",
"0.5991026",
"0.5983793",
"0.591203",
"0.58944374",
"0.589048",
"0.58880126",
"0.58867186",
"0.58815014",
"0.58370304",
"0.5830228",
"0.5790368",
"0.5763887",
"0.5761896",
"0.5732095",
"0.5708113",
"0.57051986",
"0.56851614",
"0.5668332",
"0.56674665",
"0.56568253",
"0.56420463",
"0.56404966",
"0.5619794",
"0.56156754",
"0.5604046",
"0.56004745",
"0.5598631",
"0.5588583",
"0.5587542",
"0.5583852",
"0.5579531",
"0.5572562",
"0.55678403",
"0.5565352",
"0.55639917",
"0.5542255",
"0.5519579",
"0.55078405",
"0.55043316",
"0.5500523",
"0.54827946",
"0.54826885",
"0.54821056",
"0.5481541",
"0.54618526",
"0.5460432",
"0.546017",
"0.5458332",
"0.5456018",
"0.54544526",
"0.5453181",
"0.54467386",
"0.54350907",
"0.54312474",
"0.54299116",
"0.5426235",
"0.5422341",
"0.5419455",
"0.54063565"
] |
0.7813282
|
0
|
An optional hook to pool any permissions the app needs with the permissions ConnectionsActivity will request.
|
protected String[] getRequiredPermissions() {
return REQUIRED_PERMISSIONS;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"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 }",
"public void requestAllManifestPermissionsIfNecessary(Activity paramActivity, PermissionsResultAction paramPermissionsResultAction) {\n }",
"void askForPermissions();",
"public void onPermissionGranted() {\n\n }",
"@Override\n public void onPermissionGranted() {\n }",
"@Override\n public void onPermissionGranted() {\n }",
"public interface PermissionsManager {\n /**\n * @param permission for which to enquire\n *\n * @return whether the permission is granted.\n */\n boolean isPermissionGranted(Permission permission);\n\n /**\n * Checks whether the permission was already granted, and if it was not, then it requests.\n *\n * @param activity to provide mContext\n * @param permission for which to enquire\n *\n * @return whether the permission was already granted.\n */\n boolean requestIfNeeded(Activity activity, Permission permission);\n}",
"@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 }",
"void requestNeededPermissions(int requestCode);",
"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 }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> perms) {\n }",
"private void requestPermissions() {\n mWaiting4Permission = Boolean.TRUE;\n\n ActivityCompat.requestPermissions(this, permissionsToAsk(), PERMISSIONS_REQUEST_CODE);\n }",
"@Override\n public void onRequestAllow(String permissionName) {\n }",
"public static void disablePackageNamePermissionCache() {\n sPackageNamePermissionCache.disableLocal();\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 }",
"private PermissionHelper() {}",
"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 }",
"public void requestPermissionsIfNecessaryForResult(Activity paramActivity, Set<String> paramSet, PermissionsResultAction paramPermissionsResultAction) {\n }",
"@Override\n public void onRequestRefuse(String permissionName) {\n }",
"boolean requestIfNeeded(Activity activity, Permission permission);",
"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 }",
"public interface PermissionCallbacks {\n /**\n * request successful list\n * @param requestCode\n * @param perms\n */\n void onPermissionsGranted(int requestCode, List<String> perms);\n\n /**\n * request denied list\n * @param requestCode\n * @param perms\n */\n void onPermissionsDenied(int requestCode, List<String> perms);\n}",
"private void requestPermissions() {\r\n ActivityCompat.requestPermissions(ContactActivity.this,new String[]{Manifest.permission.CALL_PHONE},1);\r\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 }",
"private void getPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.WRITE_EXTERNAL_STORAGE)) {\n\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 } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_CONTACTS);\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 }",
"void permissionGranted(int requestCode);",
"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 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 }",
"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 }",
"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 }",
"@Override\n public void onGranted() {\n }",
"private void checkBluetoothPermissions() {\n if (Build.VERSION.SDK_INT > Build.VERSION_CODES.LOLLIPOP) {\n int permissionCheck = activity.checkSelfPermission(\"Manifest.permission.ACCESS_FINE_LOCATION\");\n permissionCheck += activity.checkSelfPermission(\"Manifest.permission.ACCESS_COARSE_LOCATION\");\n if (permissionCheck != 0) {\n\n ((Activity) activity).requestPermissions(new String[]{Manifest.permission.ACCESS_FINE_LOCATION,\n Manifest.permission.ACCESS_COARSE_LOCATION},\n 1001); //Any number\n }\n } else {\n Log.d(TAG, \"checkBluetoothPermissions: No need to check permissions. SDK version < LOLLIPOP.\");\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 }",
"private void fetchPermissionsFromUser() {\n Log.d(TAG, \"in fetch permisssion s\");\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_COARSE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_CONTACTS)) {\n\n // Show an expanation 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 Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION show request\");\n\n } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_COARSE_LOCATION with return request\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_COARSE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_COARSE_LOCATION);\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\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION\");\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.ACCESS_FINE_LOCATION)) {\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION erequest\");\n // Show an expanation 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 } else {\n\n // No explanation needed, we can request the permission.\n Log.d(TAG, \"in fetch permisssion s ACCESS_FINE_LOCATION with return requet\");\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.ACCESS_FINE_LOCATION},\n MY_PERMISSIONS_REQUEST_ACCESS_FINE_LOCATION);\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\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 }",
"public void requestPermissionsForMIUI7(Activity paramActivity, Set<String> paramSet, PermissionsResultAction paramPermissionsResultAction) {\n }",
"public void verifyAppPermissions() {\n boolean hasAll = true;\n mHasBluetoothPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH) == PackageManager.PERMISSION_GRANTED;\n mHasBluetoothAdminPermissions = ActivityCompat.checkSelfPermission(this, Manifest.permission.BLUETOOTH_ADMIN) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n hasAll &= ActivityCompat.checkSelfPermission(this, Manifest.permission.ACCESS_COARSE_LOCATION) == PackageManager.PERMISSION_GRANTED;\n\n if (!hasAll) {\n // We don't have permission so prompt the user\n ActivityCompat.requestPermissions(\n this,\n APP_PERMISSIONS,\n REQUEST_PERMISSIONS\n );\n }\n }",
"@Override\n public void checkPermission(Permission perm, Object context) {\n }",
"void requestStoragePermission();",
"@Override\n public void onGranted() {\n }",
"@Override\n public void onGranted() {\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) {\n super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n\n // Checking run time permission status\n if(requestCode == AllKeys.REQUEST_PERMISSION){\n\n // When all required permission is granted\n if (hasPermissions(this, permissions)){\n // Permission is granted so we can retrieve call list\n getCallList();\n }else{\n Toast.makeText(getApplicationContext(),this.getResources().getString(R.string.permission_denied),Toast.LENGTH_SHORT).show();\n }\n }\n }",
"public boolean isAllGranted(){\n //PackageManager.PERMISSION_GRANTED\n return false;\n }",
"public void runtimePermission() {\r\n if (ButtonClickedChecked == 111) {\r\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_CONTACTS) == PackageManager.PERMISSION_GRANTED) {\r\n selectContact();\r\n } else {\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\r\n if (shouldShowRequestPermissionRationale(Manifest.permission.READ_CONTACTS)) {\r\n Toast.makeText(this, \"Permission required\", Toast.LENGTH_SHORT).show();\r\n }\r\n requestPermissions(new String[]{Manifest.permission.READ_CONTACTS}, REQUEST_CODE_READ_CONTACT);\r\n } else {\r\n selectContact();\r\n }\r\n }\r\n } else if (ButtonClickedChecked == 222) {\r\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.SEND_SMS) == PackageManager.PERMISSION_GRANTED) {\r\n sendSms(phoneNumberForSms, msgBodyForSms);\r\n } else {\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\r\n if (shouldShowRequestPermissionRationale(Manifest.permission.SEND_SMS)) {\r\n Toast.makeText(this, \"Permission required\", Toast.LENGTH_SHORT).show();\r\n }\r\n requestPermissions(new String[]{Manifest.permission.SEND_SMS}, REQUEST_CODE_SEND_SMS);\r\n } else {\r\n sendSms(phoneNumberForSms, msgBodyForSms);\r\n }\r\n }\r\n } else if (ButtonClickedChecked == 333){\r\n if (ContextCompat.checkSelfPermission(getApplicationContext(), Manifest.permission.CALL_PHONE) == PackageManager.PERMISSION_GRANTED) {\r\n makeCall(phoneNumber);\r\n }else {\r\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\r\n if (shouldShowRequestPermissionRationale(Manifest.permission.CALL_PHONE)){\r\n Toast.makeText(getApplicationContext(), \"Permission required\", Toast.LENGTH_SHORT).show();\r\n }\r\n requestPermissions(new String[]{Manifest.permission.CALL_PHONE}, REQUEST_CODE_CALL);\r\n }else{\r\n makeCall(phoneNumber);\r\n }\r\n }\r\n }\r\n }",
"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 }",
"public interface PermissionManagerServiceInternal extends PermissionManagerInternal,\n LegacyPermissionDataProvider {\n /**\n * Check whether a particular package has been granted a particular permission.\n *\n * @param packageName the name of the package you are checking against\n * @param permissionName the name of the permission you are checking for\n * @param userId the user ID\n * @return {@code PERMISSION_GRANTED} if the permission is granted, or {@code PERMISSION_DENIED}\n * otherwise\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n int checkPermission(@NonNull String packageName, @NonNull String permissionName,\n @UserIdInt int userId);\n\n /**\n * Check whether a particular UID has been granted a particular permission.\n *\n * @param uid the UID\n * @param permissionName the name of the permission you are checking for\n * @return {@code PERMISSION_GRANTED} if the permission is granted, or {@code PERMISSION_DENIED}\n * otherwise\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n int checkUidPermission(int uid, @NonNull String permissionName);\n\n /**\n * Adds a listener for runtime permission state (permissions or flags) changes.\n *\n * @param listener The listener.\n */\n void addOnRuntimePermissionStateChangedListener(\n @NonNull OnRuntimePermissionStateChangedListener listener);\n\n /**\n * Removes a listener for runtime permission state (permissions or flags) changes.\n *\n * @param listener The listener.\n */\n void removeOnRuntimePermissionStateChangedListener(\n @NonNull OnRuntimePermissionStateChangedListener listener);\n\n /**\n * Get whether permission review is required for a package.\n *\n * @param packageName the name of the package\n * @param userId the user ID\n * @return whether permission review is required\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n boolean isPermissionsReviewRequired(@NonNull String packageName,\n @UserIdInt int userId);\n\n /**\n * Reset the runtime permission state changes for a package.\n *\n * TODO(zhanghai): Turn this into package change callback?\n *\n * @param pkg the package\n * @param userId the user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void resetRuntimePermissions(@NonNull AndroidPackage pkg,\n @UserIdInt int userId);\n\n /**\n * Read legacy permission state from package settings.\n *\n * TODO(zhanghai): This is a temporary method because we should not expose\n * {@code PackageSetting} which is a implementation detail that permission should not know.\n * Instead, it should retrieve the legacy state via a defined API.\n */\n void readLegacyPermissionStateTEMP();\n\n /**\n * Write legacy permission state to package settings.\n *\n * TODO(zhanghai): This is a temporary method and should be removed once we migrated persistence\n * for permission.\n */\n void writeLegacyPermissionStateTEMP();\n\n /**\n * Get all the permissions granted to a package.\n *\n * @param packageName the name of the package\n * @param userId the user ID\n * @return the names of the granted permissions\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n Set<String> getGrantedPermissions(@NonNull String packageName, @UserIdInt int userId);\n\n /**\n * Get the GIDs of a permission.\n *\n * @param permissionName the name of the permission\n * @param userId the user ID\n * @return the GIDs of the permission\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n int[] getPermissionGids(@NonNull String permissionName, @UserIdInt int userId);\n\n /**\n * Get the packages that have requested an app op permission.\n *\n * @param permissionName the name of the app op permission\n * @return the names of the packages that have requested the app op permission\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n @NonNull\n String[] getAppOpPermissionPackages(@NonNull String permissionName);\n\n /** HACK HACK methods to allow for partial migration of data to the PermissionManager class */\n @Nullable\n Permission getPermissionTEMP(@NonNull String permName);\n\n /** Get all permissions that have a certain protection */\n @NonNull\n ArrayList<PermissionInfo> getAllPermissionsWithProtection(\n @PermissionInfo.Protection int protection);\n\n /** Get all permissions that have certain protection flags */\n @NonNull ArrayList<PermissionInfo> getAllPermissionsWithProtectionFlags(\n @PermissionInfo.ProtectionFlags int protectionFlags);\n\n /**\n * Start delegate the permission identity of the shell UID to the given UID.\n *\n * @param uid the UID to delegate shell permission identity to\n * @param packageName the name of the package to delegate shell permission identity to\n * @param permissionNames the names of the permissions to delegate shell permission identity\n * for, or {@code null} for all permissions\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void startShellPermissionIdentityDelegation(int uid,\n @NonNull String packageName, @Nullable List<String> permissionNames);\n\n /**\n * Stop delegating the permission identity of the shell UID.\n *\n * @see #startShellPermissionIdentityDelegation(int, String, List)\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void stopShellPermissionIdentityDelegation();\n\n /**\n * Get all delegated shell permissions.\n */\n @NonNull List<String> getDelegatedShellPermissions();\n\n /**\n * Read legacy permissions from legacy permission settings.\n *\n * TODO(zhanghai): This is a temporary method because we should not expose\n * {@code LegacyPermissionSettings} which is a implementation detail that permission should not\n * know. Instead, it should retrieve the legacy permissions via a defined API.\n */\n void readLegacyPermissionsTEMP(@NonNull LegacyPermissionSettings legacyPermissionSettings);\n\n /**\n * Write legacy permissions to legacy permission settings.\n *\n * TODO(zhanghai): This is a temporary method and should be removed once we migrated persistence\n * for permission.\n */\n void writeLegacyPermissionsTEMP(@NonNull LegacyPermissionSettings legacyPermissionSettings);\n\n /**\n * Callback when the system is ready.\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onSystemReady();\n\n /**\n * Callback when a storage volume is mounted, so that all packages on it become available.\n *\n * @param volumeUuid the UUID of the storage volume\n * @param fingerprintChanged whether the current build fingerprint is different from what it was\n * when this volume was last mounted\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onStorageVolumeMounted(@NonNull String volumeUuid, boolean fingerprintChanged);\n\n /**\n * Callback when a user has been created.\n *\n * @param userId the created user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onUserCreated(@UserIdInt int userId);\n\n /**\n * Callback when a user has been removed.\n *\n * @param userId the removed user ID\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onUserRemoved(@UserIdInt int userId);\n\n /**\n * Callback when a package has been added.\n *\n * @param pkg the added package\n * @param isInstantApp whether the added package is an instant app\n * @param oldPkg the old package, or {@code null} if none\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageAdded(@NonNull AndroidPackage pkg, boolean isInstantApp,\n @Nullable AndroidPackage oldPkg);\n\n /**\n * Callback when a package has been installed for a user.\n *\n * @param pkg the installed package\n * @param previousAppId the previous app ID if the package is leaving a shared UID,\n * or Process.INVALID_UID\n * @param params the parameters passed in for package installation\n * @param userId the user ID this package is installed for\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageInstalled(@NonNull AndroidPackage pkg, int previousAppId,\n @NonNull PackageInstalledParams params,\n @UserIdInt int userId);\n\n /**\n * Callback when a package has been removed.\n *\n * @param pkg the removed package\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageRemoved(@NonNull AndroidPackage pkg);\n\n /**\n * Callback when a package has been uninstalled.\n * <p>\n * The package may have been fully removed from the system, or only marked as uninstalled for\n * this user but still instlaled for other users.\n *\n * TODO: Pass PackageState instead.\n *\n * @param packageName the name of the uninstalled package\n * @param appId the app ID of the uninstalled package\n * @param pkg the uninstalled package, or {@code null} if unavailable\n * @param sharedUserPkgs the packages that are in the same shared user\n * @param userId the user ID the package is uninstalled for\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n void onPackageUninstalled(@NonNull String packageName, int appId, @Nullable AndroidPackage pkg,\n @NonNull List<AndroidPackage> sharedUserPkgs, @UserIdInt int userId);\n\n /**\n * Listener for package permission state (permissions or flags) changes.\n */\n interface OnRuntimePermissionStateChangedListener {\n\n /**\n * Called when the runtime permission state (permissions or flags) changed.\n *\n * @param packageName The package for which the change happened.\n * @param userId the user id for which the change happened.\n */\n @Nullable\n void onRuntimePermissionStateChanged(@NonNull String packageName,\n @UserIdInt int userId);\n }\n\n /**\n * The permission-related parameters passed in for package installation.\n *\n * @see android.content.pm.PackageInstaller.SessionParams\n */\n //@SystemApi(client = SystemApi.Client.SYSTEM_SERVER)\n final class PackageInstalledParams {\n /**\n * A static instance whose parameters are all in their default state.\n */\n public static final PackageInstalledParams DEFAULT = new Builder().build();\n\n @NonNull\n private final List<String> mGrantedPermissions;\n @NonNull\n private final List<String> mAllowlistedRestrictedPermissions;\n @NonNull\n private final int mAutoRevokePermissionsMode;\n\n private PackageInstalledParams(@NonNull List<String> grantedPermissions,\n @NonNull List<String> allowlistedRestrictedPermissions,\n int autoRevokePermissionsMode) {\n mGrantedPermissions = grantedPermissions;\n mAllowlistedRestrictedPermissions = allowlistedRestrictedPermissions;\n mAutoRevokePermissionsMode = autoRevokePermissionsMode;\n }\n\n /**\n * Get the permissions to be granted.\n *\n * @return the permissions to be granted\n */\n @NonNull\n public List<String> getGrantedPermissions() {\n return mGrantedPermissions;\n }\n\n /**\n * Get the restricted permissions to be allowlisted.\n *\n * @return the restricted permissions to be allowlisted\n */\n @NonNull\n public List<String> getAllowlistedRestrictedPermissions() {\n return mAllowlistedRestrictedPermissions;\n }\n\n /**\n * Get the mode for auto revoking permissions.\n *\n * @return the mode for auto revoking permissions\n */\n public int getAutoRevokePermissionsMode() {\n return mAutoRevokePermissionsMode;\n }\n\n /**\n * Builder class for {@link PackageInstalledParams}.\n */\n public static final class Builder {\n @NonNull\n private List<String> mGrantedPermissions = Collections.emptyList();\n @NonNull\n private List<String> mAllowlistedRestrictedPermissions = Collections.emptyList();\n @NonNull\n private int mAutoRevokePermissionsMode = AppOpsManager.MODE_DEFAULT;\n\n /**\n * Set the permissions to be granted.\n *\n * @param grantedPermissions the permissions to be granted\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setGrantedRuntimePermissions(\n * java.lang.String[])\n */\n public void setGrantedPermissions(@NonNull List<String> grantedPermissions) {\n Objects.requireNonNull(grantedPermissions);\n mGrantedPermissions = new ArrayList<>(grantedPermissions);\n }\n\n /**\n * Set the restricted permissions to be allowlisted.\n * <p>\n * Permissions that are not restricted are ignored, so one can just pass in all\n * requested permissions of a package to get all its restricted permissions allowlisted.\n *\n * @param allowlistedRestrictedPermissions the restricted permissions to be allowlisted\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setWhitelistedRestrictedPermissions(Set)\n */\n public void setAllowlistedRestrictedPermissions(\n @NonNull List<String> allowlistedRestrictedPermissions) {\n Objects.requireNonNull(mGrantedPermissions);\n mAllowlistedRestrictedPermissions = new ArrayList<>(\n allowlistedRestrictedPermissions);\n }\n\n /**\n * Set the mode for auto revoking permissions.\n * <p>\n * {@link AppOpsManager#MODE_ALLOWED} means the system is allowed to auto revoke\n * permissions from this package, and {@link AppOpsManager#MODE_IGNORED} means this\n * package should be ignored when auto revoking permissions.\n * {@link AppOpsManager#MODE_DEFAULT} means no changes will be made to the auto revoke\n * mode of this package.\n *\n * @param autoRevokePermissionsMode the mode for auto revoking permissions\n *\n * @see android.content.pm.PackageInstaller.SessionParams#setAutoRevokePermissionsMode(\n * boolean)\n */\n public void setAutoRevokePermissionsMode(int autoRevokePermissionsMode) {\n mAutoRevokePermissionsMode = autoRevokePermissionsMode;\n }\n\n /**\n * Build a new instance of {@link PackageInstalledParams}.\n *\n * @return the {@link PackageInstalledParams} built\n */\n @NonNull\n public PackageInstalledParams build() {\n return new PackageInstalledParams(mGrantedPermissions,\n mAllowlistedRestrictedPermissions, mAutoRevokePermissionsMode);\n }\n }\n }\n\n /**\n * Sets the provider of the currently active HotwordDetectionService.\n *\n * @see HotwordDetectionServiceProvider\n */\n void setHotwordDetectionServiceProvider(@Nullable HotwordDetectionServiceProvider provider);\n\n /**\n * Gets the provider of the currently active HotwordDetectionService.\n *\n * @see HotwordDetectionServiceProvider\n */\n @Nullable\n HotwordDetectionServiceProvider getHotwordDetectionServiceProvider();\n\n /**\n * Provides the uid of the currently active\n * {@link android.service.voice.HotwordDetectionService}, which should be granted RECORD_AUDIO,\n * CAPTURE_AUDIO_HOTWORD and CAPTURE_AUDIO_OUTPUT permissions.\n */\n interface HotwordDetectionServiceProvider {\n int getUid();\n }\n}",
"public void OnConfHostRequest(BoUserInfoBase user, int permission);",
"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 }",
"private void requestPermissions() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.CAMERA)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Permission is not granted\n // Should we show an explanation?\n if (!ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.CAMERA)) {\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 } else {\n // No explanation needed; request the permission\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.CAMERA},\n 1);\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 }\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 }",
"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 }",
"public interface IPermissionCommunicator {\n public void onRequestForPermission();\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 String[] getManifestPermissions(Activity paramActivity) {\n }",
"abstract public void getPermission();",
"@Override\n public void onPermissionGranted(PermissionGrantedResponse permissionGrantedResponse) {\n\n }",
"void mo26168a(Activity activity, String[] strArr, IPermissionCallback nVar);",
"@Override\r\n public void onPermissionsGranted(int requestCode, List<String> list) {\r\n // Do nothing.\r\n }",
"public void getPermissiontoAccessInternet() {\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.INTERNET)\n != PackageManager.PERMISSION_GRANTED) {\n\n // The permission is NOT already granted.\n // Check if the user has been asked about this permission already and denied\n // it. If so, we want to give more explanation about why the permission is needed.\n if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.INTERNET)) {\n // Show our own UI to explain to the user why we need to read the contacts\n // before actually requesting the permission and showing the default UI\n }\n\n // Fire off an async request to actually get the permission\n // This will show the standard permission request dialog UI\n ActivityCompat.requestPermissions(this,new String[]{Manifest.permission.INTERNET},\n INTERNET_PERMISSIONS_REQUEST);\n }\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\n }",
"@Override\n public void onPermissionsGranted(int requestCode, List<String> list) {\n // Do nothing.\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 }",
"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 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 public void onDenied(Context context, ArrayList<String> deniedPermissions) {\n getPermissions();\n }",
"void configure_permissions() {\n if (ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED && ActivityCompat.checkSelfPermission(this, Manifest.permission.CAMERA) != PackageManager.PERMISSION_GRANTED) {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(new String[]{Manifest.permission.CAMERA, Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permission.WRITE_EXTERNAL_STORAGE}\n , 10);\n }\n return;\n }\n }",
"private void requestPermissions(Activity activity, int requestCode) {\n String[] permissions = getRequiredAndroidPermissions();\n handler.requestPermissions(activity, permissions, requestCode);\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 boolean permisos() {\n for(String permission : PERMISSION_REQUIRED) {\n if(ContextCompat.checkSelfPermission(getContext(), permission) != PackageManager.PERMISSION_GRANTED) {\n return false;\n }\n }\n return true;\n }",
"@TargetApi(Build.VERSION_CODES.M)\n @Override\n public void onActivityResult(int requestCode, int resultCode, Intent data) {\n super.onActivityResult(requestCode, resultCode, data);\n if (requestCode == RESULT_MANAGE_OVERLAY_PERMISSION) {\n if (Settings.canDrawOverlays(this))\n requestPermissions(PermissionInfo.getList(getApplicationContext()), RESULT_PERMISSION);\n else\n close(false);\n }\n }",
"private void initializePermissionsMap() {\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 boolean checkAndRequestPermissions() {\n List<String> listPermissionsNeeded = new ArrayList<>();\n for (String pem : appPermissions){\n if (ContextCompat.checkSelfPermission(this, pem) != PackageManager.PERMISSION_GRANTED){\n listPermissionsNeeded.add(pem);\n }\n }\n\n //ask for non-granted permissions\n if (!listPermissionsNeeded.isEmpty()) {\n ActivityCompat.requestPermissions(this, listPermissionsNeeded.toArray(new String[listPermissionsNeeded.size()]), PERMISSION_REQUEST_CODE);\n return false;\n }\n return true;\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 }",
"public boolean accesspermission()\n {\n AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE);\n int mode = 0;\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {\n mode = appOps.checkOpNoThrow(AppOpsManager.OPSTR_GET_USAGE_STATS,\n Process.myUid(),context.getPackageName());\n }\n if (mode == AppOpsManager.MODE_ALLOWED) {\n\n return true;\n }\n return false;\n\n }",
"private void RequestMultiplePermission() {\n ActivityCompat.requestPermissions(MainActivity.this, new String[]\n {\n READ_EXTERNAL_STORAGE,\n WRITE_EXTERNAL_STORAGE,\n }, 999);\n\n }",
"@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (requestCode == REQUEST_PERMISSION_SETTING) {\n checkPermission();\n }\n }",
"private void requestPermission() {\n\n ActivityCompat.requestPermissions(CalltoVendor.this, new String[]\n {\n CALL_PHONE\n }, RequestPermissionCode);\n }",
"protected void handlePermissionResult() {\n for (String permission : Constants.PERMISSIONS_NEEDED) {\n if (mUtils.hasPermission(permission)) {\n // User granted this permission, check for next one\n continue;\n }\n // User not granted permission\n if (SpyState.Listeners.permissionsListener != null) // Let app handle this\n {\n SpyState.Listeners.permissionsListener.onPermissionDenied(!mActivity.shouldShowRequestPermissionRationale(permission));\n return;\n }\n\n AlertDialog.Builder permissionRequestDialog = new AlertDialog.Builder(mActivity)\n .setTitle(R.string.dialog_permission_title)\n .setMessage(R.string.dialog_permission_message)\n .setCancelable(false)\n .setNegativeButton(R.string.exit,\n (dialog, whichButton) -> {\n mUtils.showToast(R.string.closing_app);\n mActivity.finish();\n });\n if (!mActivity.shouldShowRequestPermissionRationale(permission)) {\n // User clicked on \"Don't ask again\", show dialog to navigate him to\n // settings\n permissionRequestDialog\n .setPositiveButton(R.string.go_to_settings,\n (dialog, whichButton) -> {\n Intent intent =\n new Intent(Settings.ACTION_APPLICATION_DETAILS_SETTINGS);\n Uri uri =\n Uri.fromParts(\"package\", mActivity.getPackageName(), null);\n intent.setData(uri);\n mActivity.startActivityForResult(intent,\n OPEN_SETTINGS_REQUEST_CODE);\n })\n .show();\n } else {\n // User clicked on 'deny', prompt again for permissions\n permissionRequestDialog\n .setPositiveButton(R.string.try_again,\n (dialog, whichButton) -> grantPermissions())\n .show();\n }\n return;\n }\n Log.i(TAG, \"All required permissions have been granted!\");\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 }",
"public void requestPermissions(){\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n\n // Should we show an explanation?\n if (ActivityCompat.shouldShowRequestPermissionRationale(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)) {\n\n // Show an expanation 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 } else {\n\n // No explanation needed, we can request the permission.\n\n ActivityCompat.requestPermissions(this,\n new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},\n MY_PERMISSIONS_REQUEST_READ_EXTERNAL_STORAGE);\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 }",
"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 }",
"private void checkPermissions() {\n List<String> permissions = new ArrayList<>();\n String message = \"osmdroid permissions:\";\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.ACCESS_FINE_LOCATION);\n message += \"\\nLocation to show user location.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.WRITE_EXTERNAL_STORAGE);\n message += \"\\nStorage access to store map tiles.\";\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.READ_PHONE_STATE) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.READ_PHONE_STATE);\n message += \"\\n access to read phone state.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.RECEIVE_SMS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.RECEIVE_SMS);\n message += \"\\n access to receive sms.\";\n //requestReadPhoneStatePermission();\n }\n if (ContextCompat.checkSelfPermission(this, Manifest.permission.GET_ACCOUNTS) != PackageManager.PERMISSION_GRANTED) {\n permissions.add(Manifest.permission.GET_ACCOUNTS);\n message += \"\\n access to read sms.\";\n //requestReadPhoneStatePermission();\n }\n if (!permissions.isEmpty()) {\n // Toast.makeText(this, message, Toast.LENGTH_LONG).show();\n String[] params = permissions.toArray(new String[permissions.size()]);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n requestPermissions(params, REQUEST_CODE_ASK_MULTIPLE_PERMISSIONS);\n }\n } // else: We already have permissions, so handle as normal\n }",
"private boolean addPermission(List<String> permissionsList, String permission) {\n if (ContextCompat.checkSelfPermission(BecomeHostActivity.this, permission) != PackageManager.PERMISSION_GRANTED) {\n permissionsList.add(permission);\n // Check for Rationale Option\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\n if (!shouldShowRequestPermissionRationale(permission))\n return false;\n }\n }\n return true;\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 enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm\", e);\n\t\t\tthrow e;\n\t\t}\n\t}",
"public static void disablePermissionCache() {\n sPermissionCache.disableLocal();\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 }",
"public interface PermissionFailDefaultCallBack {\r\n void onRequestRefuse(int requestCode, String refuseTip);\r\n void onRequestForbid(int requestCode, String forbidTip);\r\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 }",
"public interface PermissionListener {\n\n void onGranted(); //授权\n\n void onDenied(List<String> deniedPermission); //拒绝 ,并传入被拒绝的权限\n}",
"@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n ActivityCompat.requestPermissions(a,\n new String[]{permission},\n b);\n }",
"@Override\n public void onRequestPermissionsResult(int requestCode,\n @NonNull String permissions[],\n @NonNull int[] grantResults) {\n // Make sure it's our original READ_CONTACTS request\n if (requestCode == READ_CONTACTS_PERMISSIONS_REQUEST) {\n if (grantResults.length == 1 &&\n grantResults[0] == PackageManager.PERMISSION_GRANTED) {\n Toast.makeText (this, \"Read Contacts permission granted\", Toast.LENGTH_SHORT).show ();\n } else {\n // showRationale = false if user clicks Never Ask Again, otherwise true\n// boolean showRationale = shouldShowRequestPermissionRationale( this, Manifest.permission.READ_CONTACTS);\n\n// if (showRationale) {\n // do something here to handle degraded mode\n// } else {\n// Toast.makeText(this, \"Read Contacts permission denied\", Toast.LENGTH_SHORT).show();\n// }\n// }\n// } else {\n// super.onRequestPermissionsResult(requestCode, permissions, grantResults);\n// }\n// }\n\n // private boolean shouldShowRequestPermissionRationale(MainActivity mainActivity, String readContacts) {\n// }\n////}\n//\n }\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 interface PermissionHandlerConstants {\n\n //Permissions code\n public static final int STORAGE_PERMISSION_CODE = 1;\n public static final int CAMERA_PERMISSION_CODE = 2;\n public static final int ACCOUNTS_PERMISSION_CODE = 3;\n public static final int STORAGE_CAMERA_PERMISSION_CODE = 4; //ONE CODE CAN BE USED TO REQUEST MULTIPLE PERMISSIONS\n public static final int READ_CALENDAR_PERMISSION_CODE = 5;\n public static final int WRITE_CALENDAR_PERMISSION_CODE = 6;\n public static final int READ_CONTACTS_PERMISSION_CODE = 7;\n public static final int WRITE_CONTACTS_PERMISSION_CODE = 8;\n public static final int FINE_LOCATION_PERMISSION_CODE = 9;\n public static final int COURSE_LOCATION_PERMISSION_CODE = 10;\n public static final int RECORD_AUDIO_PERMISSION_CODE = 11;\n public static final int READ_PHONE_STATE_PERMISSION_CODE = 12;\n public static final int CALL_PHONE_PERMISSION_CODE = 13;\n public static final int READ_CALL_LOG_PERMISSION_CODE = 14;\n public static final int WRITE_CALL_LOG_PERMISSION_CODE = 15;\n public static final int ADD_VOICEMAIL_PERMISSION_CODE = 16;\n public static final int USE_SIP_PERMISSION_CODE = 17;\n public static final int PROCESS_OUTGOING_CALLS_PERMISSION_CODE = 18;\n public static final int BODY_SENSORS_PERMISSION_CODE = 19;\n public static final int SEND_SMS_PERMISSION_CODE = 20;\n public static final int RECEIVE_SMS_PERMISSION_CODE = 21;\n public static final int READ_SMS_PERMISSION_CODE = 22;\n public static final int RECEIVE_WAP_PUSH_PERMISSION_CODE = 23;\n public static final int RECEIVE_MMS_PERMISSION_CODE = 24;\n //*******************************************************************\n}",
"private void requestStoragePermission(){\n requestPermissions(storagePermissions, STORAGE_REQUESTED_CODE);\n }",
"@Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) {\n close(true);\n } else {\n String list[] = PermissionInfo.getList(this);\n if (list != null)\n requestPermissions(list, RESULT_PERMISSION);\n else\n close(true);\n }\n }",
"@Test\n public void testRuntimeGroupGrantSpecificity() throws Exception {\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.WRITE_CONTACTS));\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n\n String[] permissions = new String[] {Manifest.permission.WRITE_CONTACTS};\n\n // request only one permission from the 'contacts' permission group\n BasePermissionActivity.Result result = requestPermissions(permissions,\n REQUEST_CODE_PERMISSIONS,\n BasePermissionActivity.class,\n () -> {\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(result, REQUEST_CODE_PERMISSIONS,\n permissions, new boolean[] {true});\n\n // Make sure no undeclared as used permissions are granted\n assertEquals(PackageManager.PERMISSION_DENIED, getInstrumentation().getContext()\n .checkSelfPermission(Manifest.permission.READ_CONTACTS));\n }"
] |
[
"0.66082424",
"0.6504382",
"0.6204757",
"0.6170651",
"0.61525184",
"0.6130608",
"0.61220586",
"0.61135495",
"0.60980654",
"0.6048218",
"0.59851545",
"0.59851545",
"0.59774774",
"0.59698874",
"0.5897774",
"0.5873105",
"0.5866814",
"0.5865148",
"0.5859492",
"0.58460766",
"0.58262146",
"0.5819418",
"0.5818046",
"0.58027685",
"0.58022034",
"0.57462853",
"0.57388085",
"0.56881845",
"0.56750876",
"0.5644294",
"0.5637642",
"0.56352067",
"0.56291723",
"0.5624674",
"0.56227785",
"0.5618445",
"0.56163555",
"0.56065345",
"0.56046796",
"0.5596438",
"0.55948776",
"0.55948776",
"0.55934614",
"0.55897474",
"0.5574541",
"0.55719244",
"0.5562205",
"0.5561165",
"0.5560774",
"0.55594",
"0.5557152",
"0.55504155",
"0.55499494",
"0.55434227",
"0.55365634",
"0.5528179",
"0.55252236",
"0.5525049",
"0.5523431",
"0.5522824",
"0.55207443",
"0.55207443",
"0.55207443",
"0.5500872",
"0.5500865",
"0.5491767",
"0.5489861",
"0.5478137",
"0.5477123",
"0.54683846",
"0.5466109",
"0.54532117",
"0.54496527",
"0.54496485",
"0.54496485",
"0.5444371",
"0.54442465",
"0.5439245",
"0.543723",
"0.5432693",
"0.5425265",
"0.54247093",
"0.54192436",
"0.5417764",
"0.54146343",
"0.54134935",
"0.5413017",
"0.54071695",
"0.54067785",
"0.54051137",
"0.54036117",
"0.53999627",
"0.53995514",
"0.5392003",
"0.5374863",
"0.5373126",
"0.5371319",
"0.53637254",
"0.5356672",
"0.53562266",
"0.53508043"
] |
0.0
|
-1
|
Returns the client's name. Visible to others when connecting.
|
protected String getName(){
return "Chinmay Garg";
//TODO return roll number obtained from the app's shared preference
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getClientName ()\n\t{\n\t\treturn clientName;\n\t}",
"public String getClientName() {\r\n return clientName;\r\n }",
"public String getClientName() {\n return clientName;\n }",
"public String getClientName() {\n return (String)getAttributeInternal(CLIENTNAME);\n }",
"public String getClientName() {\n\t\treturn name;\n\t}",
"interface ClientName {\n\t\tString getName();\n\t}",
"private void requestClientNameFromServer() {\n writeToServer(ServerAction.GET_NAME + \"\");\n }",
"public String tagname()\n\t{\n\t\treturn mClient.toString();\n\t}",
"private void giveClientName()\n\t{\n\t\trandomClientId = new Random().nextInt();\n\t\tif ( randomClientId < 0 )\n\t\t\trandomClientId = -randomClientId;\n\t\t\n\t\tthis.playerName += Integer.toString(randomClientId);\n\t}",
"@Override\r\n\tpublic String[] getClientNames() {\r\n\t\treturn initData.clientNames;\r\n\t}",
"public String[] getClientNames() {\n return clientNames;\n }",
"private String getClientName(DynamicClient dynamicClient, JwtClaims softwareStatementClaims)\n {\n StringBuilder clientName = new StringBuilder();\n appendClaimValue(clientName, softwareStatementClaims, Constants.ORG_NAME);\n appendClaimValue(clientName, softwareStatementClaims, Constants.SOFTWARE_CLIENT_NAME);\n appendClaimValue(clientName, softwareStatementClaims, Constants.SOFTWARE_VERSION);\n clientName.append(dynamicClient.getClientId());\n\n return clientName.toString();\n }",
"public String getClientId() {\n Object ref = clientId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n clientId_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }",
"public String getClientId() {\n Object ref = clientId_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n clientId_ = s;\n }\n return s;\n }\n }",
"public java.lang.String getClientIdAsString()\n {\n return getClientId().toString();\n }",
"public java.lang.StringBuilder getClientId()\n {\n return client_id_;\n }",
"public String getClientAlias() {\n return clientAlias;\n }",
"public static String getClientHost() throws ServerNotActiveException {\n return sun.rmi.transport.tcp.TCPTransport.getClientHost();\n }",
"private String getClientId()\n {\n String clientId = null;\n try {\n clientId = IdentificationLoader.usingDefault().getClientId();\n } catch (IOException e) {\n System.out.println(\"Could not load client ID\");\n e.printStackTrace();\n System.exit(1);\n }\n return clientId;\n }",
"public void setClientName(String value) {\n setAttributeInternal(CLIENTNAME, value);\n }",
"public String getServername() {\r\n return servername;\r\n }",
"public String clientId() {\n return clientId;\n }",
"java.lang.String getClientId();",
"public String getName() {\n return chatRoom.getName();\n }",
"public static server getNameServer(){\n return nameServer;\n }",
"public String getClient() throws Exception \n\t{\n\t\tString c=\"null\";\n\t\ttry(Connection connection = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/usersdb?useTimezone=true&serverTimezone=UTC\", \"root\", \"123\");\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(\"SELECT clients_username FROM usersdb.bills;\"))\n\t\t{\n\t\t\tResultSet result = preparedStatement.executeQuery();\n\t\t\t\n\t\t\twhile(result.next()) \n\t\t\t{\n\t\t\t\tif(username.equals(result.getString(\"clients_username\"))) \n\t\t\t\t{\n\t\t\t\t\tc = result.getString(\"clients_username\");\n\t\t\t\t\tclient = result.getString(\"clients_username\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(SQLException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn c;\n\t}",
"String getTargetClient();",
"public final String getClientId() {\n return clientId;\n }",
"String getServerConnectionChannelName();",
"public String getName() {\r\n\t\treturn username;\r\n\t}",
"public String getClient()\n {\n return \"DOE\";\n }",
"public String getName() {\n\t\treturn this.username;\n\t}",
"public String getLoggedPlayerName() {\r\n return ctrlDomain.getLoggedPlayerName();\r\n }",
"public String getClientHost() {\n return clientHost;\n }",
"public String getName() {\n return (String) getObject(\"username\");\n }",
"public String getClientId() {\n\t\treturn clientId;\n\t}",
"public String getNick() {\n return this.session.sessionPersona().getUserName();\n }",
"public java.lang.String getClienteID() {\n return clienteID;\n }",
"public java.lang.String getClienteID() {\n return clienteID;\n }",
"public static String getPcNombreCliente(){\n\t\tString host=\"\";\n\t\ttry{\n\t\t\tString ips[] = getIPCliente().split(\"\\\\.\");\n\t\t\tbyte[] ipAddr = new byte[]{(byte)Integer.parseInt(ips[0]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[1]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[2]),\n\t\t\t\t\t(byte)Integer.parseInt(ips[3])};\n\t\t\tInetAddress inet = InetAddress.getByAddress(ipAddr);\n\t\t\thost = inet.getHostName();\n\t\t}catch(Exception ex){\n\t\t\t//Log.error(ex, \"Utiles :: getPcNombreCliente :: controlado\");\n\t\t}\n\t\treturn host;\n\t}",
"public io.emqx.exhook.ClientInfo getClientinfo() {\n if (clientinfoBuilder_ == null) {\n return clientinfo_ == null ? io.emqx.exhook.ClientInfo.getDefaultInstance() : clientinfo_;\n } else {\n return clientinfoBuilder_.getMessage();\n }\n }",
"public String getName() {\n\t\t\n\t\tString name = \"\";\n\t\t\n\t\tif (securityContext != null) {\n\t\t\tname = securityContext.getIdToken().getPreferredUsername();\n\t\t}\n\t\t\n\t\treturn name;\n\t}",
"public String getName() {\n return (NAME_PREFIX + _applicationId + DELIM + _endpointId);\n }",
"public String getPlayerName() {\n\t\tString name = super.getPlayerName();\n\t\treturn name;\n\t}",
"public String getName() {\n/* 872 */ return CraftChatMessage.fromComponent(getHandle().getDisplayName());\n/* */ }",
"public String getUsuarioClienteNome() {\n return nomeUsuarioCliente;\n }",
"@Override\n public String getServerDisplayName() {\n return serverDisplayName;\n }",
"@Override\n public io.emqx.exhook.ClientInfo getClientinfo() {\n return clientinfo_ == null ? io.emqx.exhook.ClientInfo.getDefaultInstance() : clientinfo_;\n }",
"public String getClientId() {\n \treturn clientId;\n }",
"public String sayHiFromClientOne(String name) {\n\t\treturn \"sorry \"+name;\n\t}",
"public String getClientMachine();",
"String getClientId();",
"String getClientId();",
"public String getFriendlyName() {\n return this.bluetoothStack.getLocalDeviceName();\n }",
"public Object clientId() {\n return this.clientId;\n }",
"@ApiModelProperty(value = \"Software Statement client name\")\n\n@Size(max=40) \n public String getClientName() {\n return clientName;\n }",
"public String getName() {\r\n\t\treturn this.userName;\r\n\t}",
"public String getName() {\n\t\tSharedPreferences settings = parentContext.getSharedPreferences(PREFERENCE_FILE,\n\t\t\t\tContext.MODE_PRIVATE);\n\t\treturn settings.getString(USERNAME_KEY, null);\n\t}",
"public String getClientId() {\n return clientId;\n }",
"public String getConnectionName() {\n return this.connectionName;\n }",
"public int getIdClient() {\r\n return idClient;\r\n }",
"java.lang.String getClusterName();",
"public String getConnectionName() {\n return connectionName;\r\n }",
"public UUID clientId() {\n return clientId;\n }",
"public String getDisplayName() {\n return chatRoom.getName();\n }",
"String getName() {\n\t\treturn customer.getName();\n\t}",
"public String getClientId() {\n return clientId;\n }",
"public static String getUsername() {\n\t\treturn General.getTRiBotUsername();\n\t}",
"public static String getUserDisplayName() {\r\n return getUsername();\r\n }",
"public String generateClientId() {\n return clientIdGenerator.generate().toString();\n }",
"public String getCurrentNickname() {\n return currentPlayer.getNickName();\n }",
"public String getHostName() {\n return FxSharedUtils.getHostName();\n }",
"public ClientID getClientID() {\n return clientID;\n }",
"public String getClientId() {\n return clientId;\n }",
"public String ChatName() {\n return \"\";\n }",
"java.lang.String getChannelName();",
"private String getClientKey(Channel channel) {\n InetSocketAddress socketAddress = (InetSocketAddress) channel.remoteAddress();\n String hostName = socketAddress.getHostName();\n int port = socketAddress.getPort();\n return hostName + port;\n }",
"public String getNickname() {\r\n return insertMode ? \"\" : stringValue(CONTACTS_NICKNAME);\r\n }",
"public String getNomeCurso()\n\t{\n\t\t// Retorna o nome do Curso\n\t\treturn cursoNome;\n\t}",
"public String getName() {\n\t\treturn ((name != null) && !name.isEmpty()) ? name\n\t\t\t\t: (\"[\" + Long.toString(dciId) + \"]\"); //$NON-NLS-1$ //$NON-NLS-2$\n\t}",
"protected static String getUsername() {\n if (username == null || username.isEmpty()) {\n Console console = System.console();\n if (console != null) {\n username = console.readLine(\"Username:\");\n } else {\n throw new UnsupportedOperationException(\n \"Username must be specified\");\n }\n }\n return username;\n }",
"public String getName() {\n return user.getName();\n }",
"protected String getDisplayName(final ChannelClientInfo channelClient) {\n return getDisplayName(channelClient, \"\");\n }",
"@Override\n public String returnName(){\n return this.nickName;\n }",
"public String getUserNickname()\n {\n if (nickName == null)\n nickName =\n provider.getInfoRetreiver().getNickName(\n provider.getAccountID().getUserID());\n\n return nickName;\n }",
"public static String getName()\n {\n read_if_needed_();\n \n return _get_name;\n }",
"public int getClientID() {\r\n\t\treturn this.clientID;\r\n\t}",
"String clientTypeName(final int index);",
"public String getnick() {\n return nickname;\n }",
"public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }",
"public String getPeerName() {\n return peerAddress.getHostName();\n }",
"public String getPeerName() {\n return peerAddress.getHostName();\n }",
"public Client getClientCode() {\r\n\t\treturn this.client;\r\n\t}",
"public String getName() {\n if (name == null && !nameExplicitlySet) {\n synchronized(this) {\n if (name == null && !nameExplicitlySet)\n name = constructComponentName();\n }\n }\n return name;\n }",
"public ClientIdentity getClientIdentity() {\n\t\treturn this.clientIdentity;\n\t}",
"@Override\n\tpublic String getName() throws RemoteException {\n\t\t\n\t\treturn name;\n\t}",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }",
"public String getNickname() {\n return nickname;\n }"
] |
[
"0.8579414",
"0.84466255",
"0.84029216",
"0.82275236",
"0.8162787",
"0.7564923",
"0.7271281",
"0.7026452",
"0.6941954",
"0.6892313",
"0.68608135",
"0.6816497",
"0.67337805",
"0.6702235",
"0.6686341",
"0.66270816",
"0.65509194",
"0.65215313",
"0.6510672",
"0.6488421",
"0.64724404",
"0.64557016",
"0.6441797",
"0.6375938",
"0.6364558",
"0.6341111",
"0.63302034",
"0.6329608",
"0.6318471",
"0.6317923",
"0.6305783",
"0.63018733",
"0.6286996",
"0.6275106",
"0.62744385",
"0.6260635",
"0.625064",
"0.624741",
"0.624741",
"0.6231782",
"0.6227827",
"0.61994886",
"0.61898905",
"0.6187429",
"0.6170171",
"0.6165779",
"0.6146641",
"0.61458087",
"0.6141662",
"0.61376536",
"0.61300725",
"0.6128114",
"0.6128114",
"0.61255896",
"0.6125339",
"0.61180896",
"0.61006904",
"0.6100661",
"0.6084251",
"0.60762256",
"0.6071038",
"0.60566264",
"0.6056573",
"0.6049785",
"0.6049432",
"0.60430574",
"0.60403293",
"0.6034364",
"0.60274196",
"0.6026434",
"0.6022503",
"0.60196644",
"0.6014313",
"0.6006843",
"0.6002893",
"0.59990495",
"0.5997236",
"0.59971464",
"0.5985186",
"0.5980243",
"0.597678",
"0.59709543",
"0.596566",
"0.5964038",
"0.5960179",
"0.5955704",
"0.59521407",
"0.5947692",
"0.5945999",
"0.59440094",
"0.5939475",
"0.5939475",
"0.5932439",
"0.5926831",
"0.5924096",
"0.5923201",
"0.5920159",
"0.59185696",
"0.59185696",
"0.59185696",
"0.59185696"
] |
0.0
|
-1
|
Returns the service id. This represents the action this connection is for. When discovering, we'll verify that the advertiser has the same service id before we consider connecting to them.
|
protected String getServiceId(){
return "com.google.android.gms.nearby.messages.samples.nearbydevices";
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"java.lang.String getServiceId();",
"String getServiceId();",
"public int getServiceID() {\n return serviceID;\n }",
"String getService_id();",
"public java.lang.Long getServiceId() {\n return serviceId;\n }",
"public java.lang.Long getServiceId() {\n return serviceId;\n }",
"public String getServiceID();",
"public Integer getServiceid() {\r\n return serviceid;\r\n }",
"public long getId() {\n return mServiceId;\n }",
"public ID getServiceID() {\n\treturn serviceID;\n }",
"String serviceId(RequestContext ctx) {\n\n String serviceId = (String) ctx.get(SERVICE_ID);\n if (serviceId == null) {\n log.info(\"No service id found in request context {}\", ctx);\n }\n return serviceId;\n }",
"public ServiceID getServiceID() {\n\t\treturn null;\n\t}",
"public ServiceID getServiceID() {\n return null;\n }",
"@Override\n public ServiceID getServiceID() {\n\treturn servID;\n }",
"@Transient\n\tpublic String getServiceId()\t{\n\t\treturn mServiceId;\n\t\t//else return \"N/A\";\n\t}",
"public java.lang.String getServiceID()\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(SERVICEID$6, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }",
"public abstract String getServiceId() throws RcsServiceException;",
"public long getServiceTypeId() {\r\n\t\treturn serviceTypeId;\r\n\t}",
"public java.lang.String getServiceId(){\r\n return localServiceId;\r\n }",
"int getServiceNum();",
"public String getId() {\n return (String) getValue(ACTION_ID);\n }",
"public org.apache.xmlbeans.XmlString xgetServiceID()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SERVICEID$6, 0);\n return target;\n }\n }",
"public int getId_serviceMethod() {\r\n\t\treturn id_serviceMethod;\r\n\t}",
"public String toString() {\n return getServiceId();\n }",
"public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifier();\n\t}",
"public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifier();\n\t}",
"public static String getOSGiServiceIdentifier() {\n\t\treturn getService().getOSGiServiceIdentifier();\n\t}",
"com.microsoft.schemas._2003._10.serialization.Guid xgetServiceId();",
"public void setServiceID(int value) {\n this.serviceID = value;\n }",
"@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _autoDetailsService.getOSGiServiceIdentifier();\n\t}",
"String targetServiceTopologyId();",
"public String getTokenServiceId() {\n return tokenServiceId;\n }",
"java.lang.String getConnectionId();",
"java.lang.String getConnectionId();",
"java.lang.String getConnectionId();",
"public final String getIdentifier() {\n return ServerUtils.getIdentifier(name, ip, port);\n }",
"public String getEndpointId();",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service consulterService(Integer idService) {\n\t\tService service= (Service) serviceRepository.findOne(idService);\r\n\t\tif(service==null) throw new RuntimeException(\"Service introuvable\");\r\n\t\treturn (sn.ucad.master.assurance.bo.Service) service;\r\n\t}",
"public String getServiceInstanceId(GrpcOperation operation) {\n var serviceInstance =\n (ServiceInstance) operation.getRequiredProperty(OperationProperties.AAI_SERVICE,\n \"Target service instance\");\n return serviceInstance.getServiceInstanceId();\n }",
"java.lang.String getOperationId();",
"public ID getMainService() { \r\n\t\tID retVal = this.getTypedField(46, 0);\r\n\t\treturn retVal;\r\n }",
"@Override\n\tpublic String getOSGiServiceIdentifier() {\n\t\treturn _participationLocalService.getOSGiServiceIdentifier();\n\t}",
"public java.lang.String getOSGiServiceIdentifier();",
"public int getIdServicio() {\n return idServicio;\n }",
"@Override\r\n\tpublic sn.ucad.master.assurance.bo.Service findServiceById(int Idservice) {\n\t\treturn serviceRepository.findOne(Idservice);\r\n\t}",
"public String getOSGiServiceIdentifier();",
"@Override\n\tpublic String serviceTypeId() throws Exception{\n\t\treturn \"121\";\n\t}",
"public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"public String getService() {\n return service;\n }",
"OperationIdT getOperationId();",
"UUID getConnectorId();",
"public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n }\n }",
"public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n }\n }",
"public java.lang.String getConnectionId() {\n java.lang.Object ref = connectionId_;\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 connectionId_ = s;\n return s;\n }\n }",
"@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _vcmsPortionLocalService.getOSGiServiceIdentifier();\n\t}",
"@ApiModelProperty(value = \"ID of the service desk.\")\n public String getId() {\n return id;\n }",
"@Override\n public void doService(AdaptrisMessage msg) throws ServiceException {\n String serviceKey = createServiceKey(msg);\n String nextServiceId = valueMatcher.getNextServiceId(serviceKey, getMetadataToServiceIdMappings());\n\n if (nextServiceId == null) {\n if (isEmpty(getDefaultServiceId())) {\n throw new ServiceException(\"no ServiceId configured against key [\" + serviceKey + \"] and no default ServiceId configured\");\n }\n nextServiceId = getDefaultServiceId();\n log.debug(\"Using default ServiceId : {}\", getDefaultServiceId());\n }\n msg.setNextServiceId(nextServiceId);\n // logging is in BranchingServiceCollection\n }",
"@Override\n\tpublic java.lang.String getOSGiServiceIdentifier() {\n\t\treturn _clipLocalService.getOSGiServiceIdentifier();\n\t}",
"public int getIdClient() {\r\n return idClient;\r\n }",
"String getSecId();",
"public Long getActionId() {\n return actionId;\n }",
"public String getCallId();",
"public String getServiceSn() {\n return serviceSn;\n }",
"int getReceiverid();",
"public Integer getServiceType() {\r\n return serviceType;\r\n }",
"public final String mo6463a() {\n return \"com.google.android.gms.ads.identifier.service.EVENT_ATTESTATION\";\n }",
"@Override\r\n\t\t\tpublic Object getKey() {\n\t\t\t\treturn service;\r\n\t\t\t}",
"@Override\n public long getConnID() {\n return endpointHandler.getConnID();\n }",
"public abstract String getConnectionId();",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"public String getService() {\n return this.service;\n }",
"int getClientSessionID();",
"void setServiceId(java.lang.String serviceId);",
"public String getActionId() {\n\t\treturn actionId;\n\t}",
"static String readSenderIdFromMetaData(Context context) {\n List<ResolveInfo> resolveInfos = context.getPackageManager().queryIntentServices(\n new Intent(context, C2DMManager.class), PackageManager.GET_META_DATA);\n Preconditions.checkState(!resolveInfos.isEmpty(), \"Cannot find service metadata\");\n ServiceInfo serviceInfo = resolveInfos.get(0).serviceInfo;\n String senderId = null;\n if (serviceInfo.metaData != null) {\n senderId = serviceInfo.metaData.getString(SENDER_ID_METADATA_FIELD);\n if (senderId == null) {\n Log.e(TAG, \"No meta-data element with the name \" + SENDER_ID_METADATA_FIELD\n + \" found on the service declaration. An element with this name \"\n + \"must have a value that is the server side account in use for C2DM\");\n }\n } else {\n Log.e(TAG, \"No meta-data elements found on the service declaration. One with a name of \"\n + SENDER_ID_METADATA_FIELD\n + \" must have a value that is the server side account in use for C2DM\");\n }\n return senderId;\n }",
"public static long getIdConnected(Context ctx) {\n\t\tSharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(ctx);\n\t\treturn preferences.getLong(PreferenceConstants.ACCOUNT_ID, 0L);\n\t}",
"UUID getApnsId();",
"@Override\n\tpublic int getActionId() {\n\t\treturn actionId;\n\t}",
"public SvcIdent getSvcIdent() {\r\n\t\treturn svcIdent;\r\n\t}",
"public int getId() throws android.os.RemoteException;",
"public void setServiceid(Integer serviceid) {\r\n this.serviceid = serviceid;\r\n }",
"int getServerId();",
"public String getServiceName();",
"@AutoEscape\n\tpublic String getIdPtoServicio();",
"java.lang.String getProtocolId();",
"public boolean hasServiceId() {\n return fieldSetFlags()[2];\n }",
"public String getService() {\n\t\treturn service.get();\n\t}",
"public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}",
"public Observable<String> getGooglePlayServiceAdId() {\n return Observable.just(null)\n .subscribeOn(Schedulers.io())\n .flatMap(aVoid -> {\n String adId = null;\n GoogleApiAvailability apiAvailability = GoogleApiAvailability.getInstance();\n if (ConnectionResult.SUCCESS == apiAvailability.isGooglePlayServicesAvailable(context)) {\n try{\n AdvertisingIdClient.Info info = new AdvertisingIdClient(context).getInfo();\n if (!info.isLimitAdTrackingEnabled()) {\n adId = new AdvertisingIdClient(context).getInfo().getId();\n } else {\n return Observable.error(new Error(\"google play service ad tracking is disable\"));\n }\n } catch (IOException e) {\n return Observable.error(e);\n }\n } else {\n return Observable.error(new Error(\"google play service is not connected\"));\n }\n return Observable.just(adId);\n });\n }",
"public String getConnectionId() {\n return connectionId;\n }",
"public int getId_servico() {\n return id_servico;\n }",
"public String getId() {\n\t\treturn _sessionId;\n\t}",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"public static String getServiceName() {\n\t\treturn serviceName;\n\t}",
"public java.lang.Integer getServicecode() {\n\treturn servicecode;\n}"
] |
[
"0.7150674",
"0.70753807",
"0.6981135",
"0.6925296",
"0.69112873",
"0.6862107",
"0.67753047",
"0.6759988",
"0.6759176",
"0.6695613",
"0.64548",
"0.6399311",
"0.63157916",
"0.62255347",
"0.61532104",
"0.6108014",
"0.60685563",
"0.598199",
"0.58785903",
"0.5832056",
"0.5753459",
"0.57058185",
"0.56609905",
"0.56564325",
"0.5636212",
"0.5636212",
"0.5636212",
"0.56253827",
"0.5559889",
"0.5554916",
"0.552732",
"0.5520711",
"0.55012226",
"0.55012226",
"0.55012226",
"0.5498889",
"0.54890025",
"0.544943",
"0.5442206",
"0.5429423",
"0.5388126",
"0.5385213",
"0.5380566",
"0.5367442",
"0.5359983",
"0.5358654",
"0.5337707",
"0.5294577",
"0.5294577",
"0.5294577",
"0.5289251",
"0.5289251",
"0.5289251",
"0.52789754",
"0.5255475",
"0.52299345",
"0.52299345",
"0.52299345",
"0.52098614",
"0.52006775",
"0.51882905",
"0.51806194",
"0.5175648",
"0.5171118",
"0.51586825",
"0.51534927",
"0.514984",
"0.5145415",
"0.51434815",
"0.5138411",
"0.51179934",
"0.511639",
"0.5115572",
"0.5114375",
"0.5114375",
"0.5114375",
"0.51120144",
"0.5112",
"0.51107115",
"0.51063085",
"0.5101844",
"0.50923413",
"0.50886285",
"0.50864595",
"0.50844204",
"0.50803685",
"0.5079538",
"0.5058662",
"0.5058364",
"0.50468475",
"0.5042467",
"0.5042195",
"0.5042169",
"0.503811",
"0.50242674",
"0.5022794",
"0.50046784",
"0.50043714",
"0.50043714",
"0.4995354"
] |
0.54586214
|
37
|
Returns the strategy we use to connect to other devices. Only devices using the same strategy and service id will appear when discovering. Stragies determine how many incoming and outgoing connections are possible at the same time, as well as how much bandwidth is available for use.
|
protected Strategy getStrategy(){
return Strategy.P2P_STAR;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public int getStrategy() {\n\t\t \n\t\t return strategyInt;\n\t}",
"public CrawlerReportStrategy getStrategy(String inputURL, String strategyKey) {\n\n CrawlerReportStrategy strategy = null;\n\n if (\"S\".equals(strategyKey) && inputURL != null) {\n strategy = specificURLStrategy;\n ((SpecificURLStrategy) specificURLStrategy).setInputURL(inputURL);\n } else if (\"C\".equals(strategyKey)) {\n strategy = topComplexityCountStrategy;\n } else {\n strategy = allURLStrategy;\n }\n\n return strategy;\n }",
"public interface IStrategyInstance {\n void forceRefreshStrategy(String str);\n\n String getCNameByHost(String str);\n\n String getClientIp();\n\n List<IConnStrategy> getConnStrategyListByHost(String str);\n\n String getFormalizeUrl(String str);\n\n @Deprecated\n String getFormalizeUrl(String str, String str2);\n\n @Deprecated\n String getSchemeByHost(String str);\n\n String getSchemeByHost(String str, String str2);\n\n String getUnitPrefix(String str, String str2);\n\n void initialize(Context context);\n\n void notifyConnEvent(String str, IConnStrategy iConnStrategy, ConnEvent connEvent);\n\n void registerListener(IStrategyListener iStrategyListener);\n\n void saveData();\n\n void setUnitPrefix(String str, String str2, String str3);\n\n void switchEnv();\n\n void unregisterListener(IStrategyListener iStrategyListener);\n}",
"public static int getStrategyChoice() {\r\n\t\tint strategy = -1;\r\n\t\tgetStrategyScanner = new Scanner(System.in);\r\n\t\tSystem.out.println(\"Choose the strategy of your opponent:\" +\r\n\t\t\t\t\"\\n\\t(\" + RANDOM + \") - Random player\" +\r\n\t\t\t\t\"\\n\\t(\" + DEFENSIVE + \") - Defensive player\" +\r\n\t\t\t\t\"\\n\\t(\" + SIDES + \") - To-the-Sides player player\");\r\n\t\twhile (strategy != RANDOM & strategy != DEFENSIVE\r\n\t\t\t\t& strategy != SIDES) {\r\n\t\t\tstrategy=getStrategyScanner.nextInt();\r\n\t\t}\r\n\t\treturn strategy;\r\n\t}",
"public static final TypeDescriptor<?> strategyType() {\n return INSTANCE.getType(Constants.TYPE_STRATEGY);\n }",
"public java.util.List<CapacityProviderStrategyItem> getCapacityProviderStrategy() {\n if (capacityProviderStrategy == null) {\n capacityProviderStrategy = new com.amazonaws.internal.SdkInternalList<CapacityProviderStrategyItem>();\n }\n return capacityProviderStrategy;\n }",
"public java.util.List<CapacityProviderStrategyItem> getCapacityProviderStrategy() {\n if (capacityProviderStrategy == null) {\n capacityProviderStrategy = new com.amazonaws.internal.SdkInternalList<CapacityProviderStrategyItem>();\n }\n return capacityProviderStrategy;\n }",
"public AbstractDispatcherStrategy strategy()\n {\n return strategy_;\n }",
"public static Strategy getOptimalStrategy(StrategyPool sp)\r\n\t{\r\n\t\tStrategy optimalStrat = null;\r\n\t\tfor(int i = 0; i< sp.pool.size(); i++)\r\n\t\t{\r\n\t\t\tStrategy temp = sp.pool.get(i);\r\n\t\t\tif(temp.lostCount <= threshhold)\r\n\t\t\t{\r\n\t\t\t\toptimalStrat = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn optimalStrat;\r\n\t}",
"public String getBuyStrategy() {\r\n return buyStrategy;\r\n }",
"public interface ConnectionSelectStrategy {\n /**\n * select strategy\n * \n * @param conns\n * @return\n */\n Connection select(List<Connection> conns);\n}",
"Strategy createStrategy();",
"public Optional<TrafficStrategyRule> findMatchedStrategyRule(final LogicSQL logicSQL) {\n for (TrafficStrategyRule each : trafficStrategyRules) {\n TrafficAlgorithm trafficAlgorithm = trafficAlgorithms.get(each.getAlgorithmName());\n Preconditions.checkState(null != trafficAlgorithm, \"Traffic strategy rule configuration must match traffic algorithm.\");\n if (match(trafficAlgorithm, logicSQL.getSqlStatementContext())) {\n return Optional.of(each);\n }\n }\n return Optional.empty();\n }",
"boolean supportsStrategy(String strategy);",
"public Map getConnectionUsage();",
"@Override\n public Class<? extends DiscoveryStrategy> getDiscoveryStrategyType() {\n return MyLocalWANDiscoveryStrategy.class;\n }",
"public String getAdaptiveRateAlgorithm();",
"public LockingStrategy getLockingStrategy(Lockable lockable, LockMode lockMode) {\n switch ( lockMode ) {\n case PESSIMISTIC_FORCE_INCREMENT:\n return new PessimisticForceIncrementLockingStrategy( lockable, lockMode );\n case PESSIMISTIC_WRITE:\n return new PessimisticWriteSelectLockingStrategy( lockable, lockMode );\n case PESSIMISTIC_READ:\n return new PessimisticReadSelectLockingStrategy( lockable, lockMode );\n case OPTIMISTIC:\n return new OptimisticLockingStrategy( lockable, lockMode );\n case OPTIMISTIC_FORCE_INCREMENT:\n return new OptimisticForceIncrementLockingStrategy( lockable, lockMode );\n default:\n return new SelectLockingStrategy( lockable, lockMode );\n }\n \t}",
"private Strategy getStrategyInstance() {\n if (strategyInstances.containsKey(strategy)) {\n return strategyInstances.get(strategy);\n } else {\n try {\n Strategy strategyInstance = strategy.getConstructor(Board.class).newInstance(board);\n strategyInstances.put(strategy, strategyInstance);\n return strategyInstance;\n } catch (Exception e) {\n System.err.println(\"Exception when intiating strategy with only board argument\");\n e.printStackTrace();\n return null;\n }\n }\n }",
"private int getPreferredHub(){\n SharedPreferences settings = getSharedPreferences(PREFS_NAME,\n Context.MODE_PRIVATE);\n return Integer.parseInt(settings.getString(PREF_HUB, DEFAULT_HUB));\n }",
"public static String getConnetionType(Context context) {\n NetworkInfo info = Connectivity.getNetworkInfo(context);\n int type = info.getType();\n int subType = info.getSubtype();\n\n\n\n if (type == ConnectivityManager.TYPE_WIFI) {\n return \"WIFI\";\n } else if (type == ConnectivityManager.TYPE_MOBILE) {\n switch (subType) {\n case TelephonyManager.NETWORK_TYPE_1xRTT:\n return \"1xRTT ()\"; // ~ 50-100 kbps\n case TelephonyManager.NETWORK_TYPE_CDMA:\n return \"CDMA\"; // ~ 14-64 kbps\n case TelephonyManager.NETWORK_TYPE_EDGE:\n return \"EDGE\"; // ~ 50-100 kbps\n case TelephonyManager.NETWORK_TYPE_EVDO_0:\n return \"EVDO 0\"; // ~ 400-1000 kbps\n case TelephonyManager.NETWORK_TYPE_EVDO_A:\n return \"EVDO A\"; // ~ 600-1400 kbps\n case TelephonyManager.NETWORK_TYPE_GPRS:\n return \"GPRS\"; // ~ 100 kbps\n case TelephonyManager.NETWORK_TYPE_HSDPA:\n return \"HSDPA\"; // ~ 2-14 Mbps\n case TelephonyManager.NETWORK_TYPE_HSPA:\n return \"HSPA\"; // ~ 700-1700 kbps\n case TelephonyManager.NETWORK_TYPE_HSUPA:\n return \"HSUPA\"; // ~ 1-23 Mbps\n case TelephonyManager.NETWORK_TYPE_UMTS:\n return \"UMTS\"; // ~ 400-7000 kbps\n /*\n * Above API level 7, make sure to set android:targetSdkVersion\n * to appropriate level to use these\n */\n case TelephonyManager.NETWORK_TYPE_EHRPD: // API level 11\n return \"EHRPD\"; // ~ 1-2 Mbps\n case TelephonyManager.NETWORK_TYPE_EVDO_B: // API level 9\n return \"EVDO B\"; // ~ 5 Mbps\n case TelephonyManager.NETWORK_TYPE_HSPAP: // API level 13\n return \"HSPAP\"; // ~ 10-20 Mbps\n case TelephonyManager.NETWORK_TYPE_IDEN: // API level 8\n return \"IDEN\"; // ~25 kbps\n case TelephonyManager.NETWORK_TYPE_LTE: // API level 11\n return \"LTE\"; // ~ 10+ Mbps\n // Unknown\n case TelephonyManager.NETWORK_TYPE_UNKNOWN:\n default:\n return \"unknown connection type\";\n }\n } else {\n return \"unknown connection type\";\n }\n }",
"public ScoringStrategy getScoringStrategy() {\n return scoringStrategy;\n }",
"StrategyType type();",
"private RouteMode getCommMode(MacAddress src, MacAddress dst) {\n\t\tif ((src.equals(H1) && dst.equals(H2)) || (src.equals(H2) && dst.equals(H1))) {\n\t\t\tlog.info(\"pair: H1 <--> H2 : Direct\");\n\t\t\treturn RouteMode.ROUTE_DIRECT;\n\t\t}\n\n\t\t// H1 <--> PX : Drop\n\t\telse if ((src.equals(H1) && dst.equals(PX)) || (src.equals(PX) && dst.equals(H1))) {\n\t\t\tlog.info(\"pair: H1 <--> PX : Drop\");\n\t\t\treturn RouteMode.ROUTE_DROP;\n\t\t}\n\n\t\t// H1 <--> H3 : Proxy\n\t\telse if ((src.equals(H1) && dst.equals(H3)) || (src.equals(H3) && dst.equals(H1))) {\n\t\t\tlog.info(\"pair: H1 <--> H3 : Proxy\");\n\t\t\treturn RouteMode.ROUTE_PROXY;\n\t\t}\n\n\t\t// H2 <--> PX : Drop\n\t\telse if ((src.equals(H2) && dst.equals(PX)) || (src.equals(PX) && dst.equals(H2))) {\n\t\t\tlog.info(\"pair: H2 <--> PX : Drop\");\n\t\t\treturn RouteMode.ROUTE_DROP;\n\t\t}\n\n\t\t// H2 <--> H3 : Proxy\n\t\telse if ((src.equals(H2) && dst.equals(H3)) || (src.equals(H3) && dst.equals(H2))) {\n\t\t\tlog.info(\"pair: H2 <--> H3 : Proxy\");\n\t\t\treturn RouteMode.ROUTE_PROXY;\n\t\t}\n\n\t\t// H3 <--> PX : Drop\n\t\telse if ((src.equals(H3) && dst.equals(PX)) || (src.equals(PX) && dst.equals(H3))) {\n\t\t\tlog.info(\"pair: H3 <--> PX : Drop\");\n\t\t\treturn RouteMode.ROUTE_DROP;\n\t\t} else {\n\t\t\treturn RouteMode.ROUTE_DROP;\n\t\t}\n\t}",
"public static String getCurrentConnectionType(Context context) {\n ConnectivityManager cm = (ConnectivityManager) context.getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo info = cm.getActiveNetworkInfo();\n\n if (info == null || !info.isConnected()) return \"-\"; //not connected\n if (info.getType() == ConnectivityManager.TYPE_WIFI) return \"WIFI\";\n\n if (info.getType() == ConnectivityManager.TYPE_MOBILE) {\n int networkType = info.getSubtype();\n switch (networkType) {\n case TelephonyManager.NETWORK_TYPE_GPRS:\n case TelephonyManager.NETWORK_TYPE_EDGE:\n case TelephonyManager.NETWORK_TYPE_CDMA:\n case TelephonyManager.NETWORK_TYPE_1xRTT:\n case TelephonyManager.NETWORK_TYPE_IDEN: //api<8 : replace by 11\n return \"2G\";\n case TelephonyManager.NETWORK_TYPE_UMTS:\n case TelephonyManager.NETWORK_TYPE_EVDO_0:\n case TelephonyManager.NETWORK_TYPE_EVDO_A:\n case TelephonyManager.NETWORK_TYPE_HSDPA:\n case TelephonyManager.NETWORK_TYPE_HSUPA:\n case TelephonyManager.NETWORK_TYPE_HSPA:\n case TelephonyManager.NETWORK_TYPE_EVDO_B: //api<9 : replace by 14\n case TelephonyManager.NETWORK_TYPE_EHRPD: //api<11 : replace by 12\n case TelephonyManager.NETWORK_TYPE_HSPAP: //api<13 : replace by 15\n return \"3G\";\n case TelephonyManager.NETWORK_TYPE_LTE: //api<11 : replace by 13\n return \"4G\";\n default:\n return \"Unknown\";\n }\n }\n return \"Unknown\";\n }",
"public void mo33185a(SocketChannel socketChannel, StrategyItem strategyItem) {\n C7001a aVar;\n StringBuilder sb = new StringBuilder();\n sb.append(\"ICreateSocketChannelCallback onSuccess(\");\n sb.append(socketChannel);\n sb.append(StorageInterface.KEY_SPLITER);\n sb.append(socketChannel);\n sb.append(\")\");\n C6864a.m29286a(\"TpnsChannel\", sb.toString());\n C7005b.f23270e++;\n synchronized (C7005b.this) {\n C7005b.this.f23298y = false;\n C7005b.f23283r = 0;\n try {\n if (!C7005b.f23265G.equals(strategyItem.getServerIp())) {\n byte networkType = DeviceInfos.getNetworkType(C6973b.m29776f());\n if (networkType == 1) {\n C7005b.f23279n = C7005b.f23277l;\n } else if (networkType == 2) {\n C7005b.f23279n = C7005b.f23276k;\n } else if (networkType == 3) {\n C7005b.f23279n = C7005b.f23276k;\n } else if (networkType == 4) {\n C7005b.f23279n = C7005b.f23276k;\n }\n C7005b.f23265G = strategyItem.getServerIp();\n }\n C7005b.f23266a = 0;\n C7005b bVar = C7005b.this;\n if (!strategyItem.isHttp()) {\n aVar = new C7001a(socketChannel, C7005b.m29964a());\n } else if (strategyItem.isWap()) {\n aVar = new C7004c(socketChannel, C7005b.m29964a(), strategyItem.getServerIp(), strategyItem.getServerPort());\n } else {\n aVar = new C7003b(socketChannel, C7005b.m29964a());\n }\n bVar.f23297x = aVar;\n C7005b.this.mo33390a(true);\n C7005b.this.f23295v.clear();\n C7005b.this.f23295v.put(C7005b.this.f23297x, new ConcurrentHashMap());\n C7005b.this.f23287C = true;\n C7005b.this.f23297x.start();\n } catch (Exception e) {\n C6864a.m29302d(Constants.ServiceLogTag, \"\", e);\n }\n }\n }",
"public static EmailNotificationStrategy getStrategy() {\n switch ( activeServiceProviderSetting) {\n case \"gmail\":\n return new GmailNotificationStrategy();\n case \"hotmail\":\n return new HotmailNotificationStrategy();\n default:\n return new GmailNotificationStrategy();\n }\n }",
"public interface Strategy {\n /**\n * suggest next bid value according to current action status\n * @param auction - current auction status, must not be null\n * @return non-negative bid value according implementation less or equal than {@link Auction#getOwnCache()}\n */\n int nextBid(Auction auction);\n}",
"private StrategyType getStrategyType(String type) throws Exception {\n switch (type) {\n case \"greedy\":\n return StrategyType.GREEDY;\n case \"careful\":\n return StrategyType.CAREFUL;\n case \"tactical\":\n return StrategyType.TACTICAL;\n default:\n throw new Exception(\"Not supported type: \" + type);\n }\n }",
"public interface RecommendationStrategy {\n\tRecommendationResultsHolder getRecommendationResults(Product product, String type);\n\n}",
"public static int getConnectedType(Context context) {\n if (context != null) {\n ConnectivityManager mConnectivityManager = (ConnectivityManager) context\n .getSystemService(Context.CONNECTIVITY_SERVICE);\n NetworkInfo mNetworkInfo = mConnectivityManager.getActiveNetworkInfo();\n if (mNetworkInfo != null && mNetworkInfo.isAvailable()) {\n return mNetworkInfo.getType();\n }\n }\n return -1;\n }",
"public interface SumStrategy {\n\n\tpublic double getSpecifiedValue(Property p);\n\t\n\tpublic String getStrategyType();\n\n}",
"public void setStrategy(int j){\n\t\tstrategyInt=j;\n\t}",
"public Decision bestFor(Context context);",
"com.google.ads.googleads.v6.resources.BiddingStrategy getBiddingStrategy();",
"public int getDiscoverable() {\n return this.bluetoothStack.getLocalDeviceDiscoverable();\n }",
"public int g() {\n try {\n if (this.h == null) {\n this.h = (ConnectivityManager) this.b.getApplicationContext().getSystemService(\"connectivity\");\n }\n NetworkInfo activeNetworkInfo = this.h.getActiveNetworkInfo();\n if (activeNetworkInfo != null) {\n if (activeNetworkInfo.isConnected()) {\n return activeNetworkInfo.getType() == 1 ? 2 : 1;\n }\n }\n } catch (Exception unused) {\n }\n return 0;\n }",
"private void computeStrategy(int player) {\n strategy = new MixedStrategy(nActs[player], 0d);\n double[] stratPayoffs = SolverUtils.computePureStrategyPayoffs(eGame, player, predictedOutcome, false);\n strategy.setBestResponse(stratPayoffs);\n }",
"public GameStrategy getGameStrategy() {\n return gameStrategy;\n }",
"public interface Strategy {\n\n void info();\n\n}",
"public int getUseCount() {\n\t\tint useCount=0;\n\t\tsynchronized(connStatus) {\n\t\t\tfor(int i=0; i < currConnections; i++) {\n\t\t\t\tif(connStatus[i] > 0) { // In use\n\t\t\t\t\tuseCount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn useCount;\n\t}",
"public Strategy<S, Integer> buildStrategy() {\n\t\tStrategy<S, Integer> result = new Strategy<S, Integer>();\n\n\t\tSet<S> winningStates = this.getWinningStates();\n\n\t\tfor (S state : losingStates) {\n\t\t\tStrategyState<S, Integer> source = new StrategyState<S, Integer>(\n\t\t\t\t\tstate, DUMMY_GOAL);\n\t\t\tSet<StrategyState<S, Integer>> successors = new HashSet<StrategyState<S, Integer>>();\n\t\t\t// if its uncontrollable and winning it must have winning succesors\n\t\t\tfor (S succ : this.game.getSuccessors(state)) {\n\t\t\t\tif (!winningStates.contains(succ)) {\n\t\t\t\t\tStrategyState<S, Integer> target = new StrategyState<S, Integer>(\n\t\t\t\t\t\t\tsucc, DUMMY_GOAL);\n\t\t\t\t\tsuccessors.add(target);\n\t\t\t\t}\n\t\t\t}\n\t\t\tresult.addSuccessors(source, successors);\n\t\t}\n\t\treturn result;\n\t}",
"public interface Strategy {\n\n /**\n * This method is used to fetch the strategy percent for given two files\n * @return strategy percent for given two files\n */\n int calcPlagiarismPercent() throws ParserException;\n}",
"public Integer getTraffic() {\n return traffic;\n }",
"public Integer getTraffic() {\n return traffic;\n }",
"int getPreferredSmsSubscription();",
"Integer getConnectorCount();",
"int getConnectionCount();",
"public double getValueHash(Strategy strategy) {\r\n\t\tif(strategy == Strategy.BFS || strategy == Strategy.DFS || strategy == Strategy.DLS || strategy == Strategy.IDS)\r\n\t\t\treturn cost;\r\n\t\telse \r\n\t\t\treturn value;\r\n\t}",
"public double getProviderBestPathDistance()\n\t{\n\t\treturn providerBestPathDistance;\n\t}",
"public interface TravelStrategy {\r\n\t/**\r\n\t * Returns the floor number of the passenger's current destination, so that other strategies can base their\r\n\t * decisions on where the passenger is trying to get to.\r\n\t */\r\n\tint getDestination();\r\n\t\r\n\t/**\r\n\t * Called when it is time to schedule a PassengerNextDestinationEvent according to the rules of this travel strategy.\r\n\t * Typically this occurs when the passenger departs the elevator on the correct floor, but that is not guaranteed.\r\n\t * @param currentFloor the floor that the passenger got off.\r\n\t */\r\n\tvoid scheduleNextDestination(Passenger passenger, Floor currentFloor);\r\n}",
"public int getTrafficClass()\r\n/* 135: */ {\r\n/* 136: */ try\r\n/* 137: */ {\r\n/* 138:158 */ return this.javaSocket.getTrafficClass();\r\n/* 139: */ }\r\n/* 140: */ catch (SocketException e)\r\n/* 141: */ {\r\n/* 142:160 */ throw new ChannelException(e);\r\n/* 143: */ }\r\n/* 144: */ }",
"private int getPoolSize() {\n\t\tint numberOfTasks = SpectralDescriptionType.values().length;\n\t\tint procs = Runtime.getRuntime().availableProcessors();\n\t\treturn numberOfTasks < procs ? numberOfTasks : procs > 1 ? procs - 1\n\t\t\t\t: 1;\n\t}",
"public static ArrayList<Strategy> getTwoBestStrategies(StrategyPool sp)\r\n\t{\r\n\t\tArrayList <Strategy> twoBest = new ArrayList<Strategy>();\r\n\t\tStrategy best = null;\r\n\t\tStrategy secondBest = null;\r\n\t\t\r\n\t\tint minLost = Integer.MAX_VALUE;\r\n\t\tint minSecondLost = Integer.MAX_VALUE;\r\n\t\t\r\n\t\tfor(int i = 0; i<sp.pool.size(); i++)\r\n\t\t{\r\n\t\t\tStrategy temp = sp.pool.get(i);\r\n\t\t\tif(temp.lostCount < minLost)\r\n\t\t\t{\r\n\t\t\t\tminLost = temp.lostCount;\r\n\t\t\t\tbest = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tfor(int i = 0; i< sp.pool.size(); i++)\r\n\t\t{\r\n\t\t\tStrategy temp = sp.pool.get(i);\r\n\t\t\tif(temp.lostCount < minSecondLost && temp.lostCount > minLost)\r\n\t\t\t{\r\n\t\t\t\tminSecondLost = temp.lostCount;\r\n\t\t\t\tsecondBest = temp;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tif(best != null)\r\n\t\t{\r\n\t\t\ttwoBest.add(best);\r\n\t\t}\r\n\t\tif(best != null)\r\n\t\t{\r\n\t\t\ttwoBest.add(secondBest);\r\n\t\t}\r\n\t\t\r\n\t\treturn twoBest;\r\n\t}",
"public double getAlgBestPathDistance()\n\t{\n\t\treturn algBestPathDistance;\n\t}",
"public int numofConnections() {\n\t\tint numberofconnection = 0;\n\t\tString node;\n\t\tfor (String key : Nodeswithconnect.keySet()) {\n\t\t\tfor (int i = 0; i < Nodeswithconnect.get(key).length; i++) {\n\t\t\t\tnode = Nodeswithconnect.get(key)[i];\n\t\t\t\tif (!node.equals(\"null\")) {\n\t\t\t\t\tnumberofconnection++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn numberofconnection;\n\t}",
"private long getChampConnectionCount(Node series) {\n\t\tNode chrom = getSolutionChrom(series);\n\t\tif (chrom != null) {\n\t\t\tNode attribute = chrom.getFirstChild();\n\t\t\twhile (attribute != null) {\n\t\t\t\tif (attribute.getNodeName().equals(CONNECTION_COUNT_TAG)) {\n\t\t\t\t\treturn Util.getLong(attribute);\n\t\t\t\t}\n\t\t\t\tattribute = attribute.getNextSibling();\n\t\t\t}\n\t\t}\n\t\treturn 0;\n\t}",
"public interface AdvertisingInfoStrategy {\n AdvertisingInfo m21a();\n}",
"int getConnectionsCount();",
"public Object getAlgorithm() {\n return graphConfig.getAlgorithm();\n }",
"int getHealSnPort();",
"private IGhostStrategy findStrategy(Integer level) {\n\t\tIGhostStrategy strategy = null;\n\t\tint index = 0;\n\t\tboolean found = false;\n\n\t\twhile (index < this.strategies.size() && !found) {\n\t\t\tIGhostStrategy dict = this.strategies.get(index);\n\t\t\tif (dict.isStrategyForLevel(level)) {\n\t\t\t\tstrategy = dict;\n\t\t\t\tfound = true;\n\t\t\t}\n\n\t\t\tindex++;\n\t\t}\n\n\t\tif (!found) {\n\t\t\tLOG.warn(String.format(\"Strategy with level %s not found!\", level));\n\t\t}\n\n\t\treturn strategy;\n\t}",
"public static void calculateFitness(StrategyPool sp)\r\n\t{\r\n\t\tfor(int i = 0; i<sp.pool.size() ; i++)\r\n\t\t{\r\n\t\t\tfor(int j = 0; j <sp.pool.size() ; j++)\r\n\t\t\t{\r\n\t\t\t\tif(i == j)\r\n\t\t\t\t\t; //do nothing\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n//\t\t\t\t\tSystem.out.println(\"Playing Strategy \" +i +\" against \" +j );\r\n\t\t\t\t\tStrategy p1 = sp.pool.get(i);\r\n\t\t\t\t\tStrategy p2 = sp.pool.get(j);\r\n\t\t\t\t\tint winner = 0;\r\n\t\t\t\t\tfor(int k = 0; k<1000 ; k++)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\twinner = new Game().play(p1,p2);\r\n\t\t\t\t\t\t\tif(winner == 0)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addDrawCount();\r\n\t\t\t\t\t\t\t\tp2.addDrawCount();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(winner == 1)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addWinCount();\r\n\t\t\t\t\t\t\t\tp2.addLostCount();\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\telse if(winner ==2)\r\n\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\tp1.addLostCount();\r\n\t\t\t\t\t\t\t\tp2.addWinCount();\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\t//switch positions\r\n\t\t\t\t\tp2 = sp.pool.get(i);\r\n\t\t\t\t\tp1 = sp.pool.get(j);\r\n\r\n//\t\t\t\t\tSystem.out.println(\"Playing Strategy \" +j +\" against \" +i );\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor(int k = 0; k<1000 ; k++)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\twinner = new Game().play(p1,p2);\r\n\t\t\t\t\t\tif(winner == 0)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addDrawCount();\r\n\t\t\t\t\t\t\tp2.addDrawCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(winner == 1)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addWinCount();\r\n\t\t\t\t\t\t\tp2.addLostCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse if(winner ==2)\r\n\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\tp1.addLostCount();\r\n\t\t\t\t\t\t\tp2.addWinCount();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public Long getTraffic() {\n\t\treturn traffic;\n\t}",
"public CacheStrategy getCacheStrategy();",
"public Strategy getWinner(Board board) {\n\t\treturn this.strategies.get(board.getWinner());\n\t}",
"interface OptimizationStrategy<L, T extends Number> {\n\n /** Returns what the concrete strategy finds to be the shortest Hamiltonian Cycle.\n *\n * Note, this may differ from the actual best cycle.\n */\n Cycle getOptimalCycle(Graph<L, T> graph);\n}",
"public interface PathCalculationStrategy {\n\t\n\t/**\n\t * Returns the shortest path for a Journey.\n\t * \n\t * @param grid the traffic grid.\n\t * @param src the source location.\n\t * @param dest the destination location.\n\t * \n\t * @return a List containing the path for the Journey.\n\t */\n\tList<Point> getPath(int grid[][], Point src, Point dest);\n}",
"public interface Strategy {\n public Integer pick_card( List<Card> hand, Suit trump, Suit round );\n}",
"public interface DiscountStrategy {\n /**\n * 会员折扣策略\n * @param level\n * @param money\n * @return\n */\n double getDiscountPrice(int level,double money);\n}",
"@Override\r\n public BidDetails determineNextBid() {\r\n\r\n double time = negotiationSession.getTime();\r\n\r\n // for the first 20% of the time, offer the bid which gives max utility\r\n if(time < Offer_Max_Util_Time){\r\n BidDetails maxBid = null;\r\n try {\r\n maxBid = this.outcomespace.getMaxBidPossible();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n System.out.println(\"Exception: cannot generate max utility bid\");\r\n }\r\n return maxBid;\r\n\r\n }else {\r\n //compute the target utility based on time\r\n double utilityGoal = p(time);\r\n // if there is no opponent model available\r\n if (opponentModel instanceof NoModel) {\r\n // generate a Bid near the Utility we wish to have\r\n nextBid = negotiationSession.getOutcomeSpace().getBidNearUtility(utilityGoal);\r\n } else {\r\n // get the best Bid for the Opponent among a list of similarly preferred bids for our Agent\r\n // Then, make an offer with that bid\r\n nextBid = omStrategy.getBid(outcomespace, utilityGoal);\r\n }\r\n }\r\n return nextBid;\r\n }",
"public Transports getTransportsUsed();",
"public static int m21418u(Context context) {\n ConnectivityManager connectivityManager = (ConnectivityManager) context.getSystemService(\"connectivity\");\n if (connectivityManager == null) {\n return 0;\n }\n NetworkInfo activeNetworkInfo = connectivityManager.getActiveNetworkInfo();\n if (activeNetworkInfo != null && activeNetworkInfo.isAvailable()) {\n NetworkInfo networkInfo = connectivityManager.getNetworkInfo(1);\n if (networkInfo != null) {\n State state = networkInfo.getState();\n if (state != null && (state == State.CONNECTED || state == State.CONNECTING)) {\n return 1;\n }\n }\n NetworkInfo networkInfo2 = connectivityManager.getNetworkInfo(0);\n if (networkInfo2 != null) {\n State state2 = networkInfo2.getState();\n String subtypeName = networkInfo2.getSubtypeName();\n if (state2 != null && (state2 == State.CONNECTED || state2 == State.CONNECTING)) {\n switch (activeNetworkInfo.getSubtype()) {\n case 1:\n case 2:\n case 4:\n case 7:\n case 11:\n return 2;\n case 3:\n case 5:\n case 6:\n case 8:\n case 9:\n case 10:\n case 12:\n case 14:\n case 15:\n return 3;\n case 13:\n return 4;\n default:\n return (subtypeName.equalsIgnoreCase(\"TD-SCDMA\") || subtypeName.equalsIgnoreCase(\"WCDMA\") || subtypeName.equalsIgnoreCase(\"CDMA2000\")) ? 3 : 5;\n }\n }\n }\n }\n return 0;\n }",
"public int getMaxConnections()\n {\n return _maxConnections;\n }",
"private int getAuthenticators() {\n return (android.os.Build.VERSION.SDK_INT >= Build.VERSION_CODES.R)\n ? BIOMETRIC_STRONG | DEVICE_CREDENTIAL\n : BIOMETRIC_WEAK | DEVICE_CREDENTIAL;\n }",
"public int manyConnections() {\n\t\tint ammound = 0;\n\t\tfor (int i = 0; i < this.size(); i++) {\n\t\t\tif(this.get(i).clientAlive) {\n\t\t\t\tammound++;\n\t\t\t}\n\t\t\tSystem.out.println(\"Ist Client Nr. \" + i + \" frei? \" + !this.get(i).isAlive());\n\t\t}\n\t\treturn ammound;\n\t\t\n\t}",
"public static int getConnectionCount()\r\n {\r\n return count_; \r\n }",
"private int getConnectionLimit(String businessId) {\n\t\tString schema = getCustomSchema();\n\t\tString sql = StringUtil.join(\"select quota_no as value from \", schema, \"rezdox_connection_quota_view where business_id=?\");\n\n\t\tDBProcessor db = new DBProcessor(getDBConnection(), schema);\n\t\tdb.setGenerateExecutedSQL(log.isDebugEnabled());\n\t\tList<GenericVO> data = db.executeSelect(sql, Arrays.asList(businessId), new GenericVO());\n\t\treturn !data.isEmpty() ? Convert.formatInteger(\"\"+data.get(0).getValue()) : 0;\n\t}",
"public static AtlantisProductionStrategy getProductionStrategy() {\n return AtlantisConfig.getProductionStrategy();\n }",
"@Override\n public int getRatePerSqFeet() {\n if (hasWifi == true)\n return ratePerSqFeet + 2;\n else\n return ratePerSqFeet;\n }",
"public int getDegree() {\n return this.customers.size() + this.peers.size() + this.providers.size();\n }",
"public static interface PredictorSelectionStrategy {\n /**\n * Injects kernel to kernel-MA according to predictor internal data.\n */\n public void injectKernel(final Predictor predictor);\n\n /**\n * Maximum size of kernels\n */\n public int kernelSize();\n\n /**\n * Creates a brand new predictor.\n */\n public PredictorListener buildPredictor();\n }",
"private IDrawingStrategy getDrawingStrategy(Annotation annotation) {\n \t\tString type= annotation.getType();\n \t\tIDrawingStrategy strategy = (IDrawingStrategy) fRegisteredDrawingStrategies.get(fAnnotationType2DrawingStrategyId.get(type));\n \t\tif (strategy != null)\n \t\t\treturn strategy;\n \n \t\tif (fAnnotationAccess instanceof IAnnotationAccessExtension) {\n \t\t\tIAnnotationAccessExtension ext = (IAnnotationAccessExtension) fAnnotationAccess;\n \t\t\tObject[] sts = ext.getSupertypes(type);\n \t\t\tfor (int i= 0; i < sts.length; i++) {\n \t\t\t\tstrategy= (IDrawingStrategy) fRegisteredDrawingStrategies.get(fAnnotationType2DrawingStrategyId.get(sts[i]));\n \t\t\t\tif (strategy != null)\n \t\t\t\t\treturn strategy;\n \t\t\t}\n \t\t}\n \n \t\treturn fgNullDrawer;\n \n \t}",
"public interface Strategy {\n\n StrategySolution solve(List<Item> items, int weight);\n}",
"@Override\r\n\tpublic int getConnectionsCount() {\r\n\t\treturn currentConnections.get();\r\n\t}",
"com.google.appengine.v1.TrafficSplit getSplit();",
"public int getNeighborPolicy() {\n if (neighborPolicy.equals(\"DIAGONAL\")) {\n return 2;\n }\n if (neighborPolicy.equals(\"CARDINAL\")) {\n return 1;\n }\n if (neighborPolicy.equals(\"COMPLETE\")) {\n return 0;\n }\n else {\n throw new IllegalArgumentException(\"Neighbor policy given is invalid\");\n }\n }",
"public Optimizer getOptimizedCriteria() {\r\n\r\n\t\tLog.d(\"Criteria\", \"Inside getOC:\" + isIntelligenceOverridden);\r\n\r\n\t\tif (!isIntelligenceOverridden) {\r\n\r\n\t\t\t/* BATTERY LEVEL - \"HIGH\" */\r\n\t\t\tif (batteryLevel > Constants.BATTERY_LEVEL.HIGH) {\r\n\t\t\t\tLog.d(\"Test\", \"Entered High\");\r\n\t\t\t\toptimizer.setFrequency(Constants.FREQUENCY_LEVEL.HIGH);\r\n\t\t\t\toptimizer.setPriority(Constants.PRIORITY_LEVEL.HIGH);\r\n\t\t\t}\r\n\r\n\t\t\t/* BATTERY LEVEL - \"MEDIUM\" */\r\n\t\t\telse if (batteryLevel > Constants.BATTERY_LEVEL.MEDIUM\r\n\t\t\t\t\t&& batteryLevel <= Constants.BATTERY_LEVEL.HIGH) {\r\n\t\t\t\tLog.d(\"Criteria\", \"Entered Medium\");\r\n\t\t\t\toptimizer.setFrequency(Constants.FREQUENCY_LEVEL.MEDIUM);\r\n\t\t\t\toptimizer.setPriority(Constants.PRIORITY_LEVEL.MEDIUM);\r\n\t\t\t}\r\n\r\n\t\t\t/* BATTERY LEVEL - \"LOW\" */\r\n\t\t\telse if (batteryLevel <= Constants.BATTERY_LEVEL.MEDIUM) {\r\n\t\t\t\tLog.d(\"Criteria\", \"Checking Moderate Mode\");\r\n\t\t\t\tmModerateMode();\r\n\t\t\t}\r\n\t\t\tLog.d(\"Criteria\", \"Returning Op obj\");\r\n\t\t\treturn optimizer;\r\n\t\t}\r\n\r\n\t\tLog.d(\"Criteria\", \"Then continuing\");\r\n\t\tswitch (userScheme) {\r\n\t\tcase \"moderate\":\r\n\t\t\tLog.d(\"Test\", \"Entered Moderate\");\r\n\t\t\tmModerateMode();\r\n\t\t\tbreak;\r\n\t\tcase \"lazy\":\r\n\t\t\tLog.d(\"Test\", \"Lazy\");\r\n\t\t\tmLazyMode();\r\n\t\t\tbreak;\r\n\t\tdefault:\r\n\t\t\tmModerateMode();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn optimizer;\r\n\t}",
"public String findBestMatch()\n\t{\t\t\n\t\tif (robot.containsUserAgent(\"cis455crawler\"))\n\t\t{\n\t\t\tbest_match = \"cis455crawler\";\n\t\t}\n\t\telse if (robot.containsUserAgent(\"*\"))\n\t\t{\n\t\t\tbest_match = \"*\";\n\t\t}\n\t\treturn best_match;\n\t}",
"public static int getSize() {\n\n\t\treturn strategyChain.size();\n\t}",
"final int getDriverNum() {\n return device.getDriverNum(this);\n }",
"public static String getNetworkType(Context context) {\n try {\n TelephonyManager mTelephonyManager = (TelephonyManager)\n context.getSystemService(Context.TELEPHONY_SERVICE);\n int networkType = mTelephonyManager.getNetworkType();\n switch (networkType) {\n case TelephonyManager.NETWORK_TYPE_GPRS:\n case TelephonyManager.NETWORK_TYPE_EDGE:\n case TelephonyManager.NETWORK_TYPE_CDMA:\n case TelephonyManager.NETWORK_TYPE_1xRTT:\n case TelephonyManager.NETWORK_TYPE_IDEN:\n return \"2g\";\n case TelephonyManager.NETWORK_TYPE_UMTS:\n case TelephonyManager.NETWORK_TYPE_EVDO_0:\n case TelephonyManager.NETWORK_TYPE_EVDO_A:\n /**\n From this link https://en.wikipedia.org/wiki/Evolution-Data_Optimized ..NETWORK_TYPE_EVDO_0 & NETWORK_TYPE_EVDO_A\n EV-DO is an evolution of the CDMA2000 (IS-2000) standard that supports high data rates.\n\n Where CDMA2000 https://en.wikipedia.org/wiki/CDMA2000 .CDMA2000 is a family of 3G[1] mobile technology standards for sending voice,\n data, and signaling data between mobile phones and cell sites.\n */\n case TelephonyManager.NETWORK_TYPE_HSDPA:\n case TelephonyManager.NETWORK_TYPE_HSUPA:\n case TelephonyManager.NETWORK_TYPE_HSPA:\n case TelephonyManager.NETWORK_TYPE_EVDO_B:\n case TelephonyManager.NETWORK_TYPE_EHRPD:\n case TelephonyManager.NETWORK_TYPE_HSPAP:\n //Log.d(\"Type\", \"3g\");\n //For 3g HSDPA , HSPAP(HSPA+) are main networktype which are under 3g Network\n //But from other constants also it will 3g like HSPA,HSDPA etc which are in 3g case.\n //Some cases are added after testing(real) in device with 3g enable data\n //and speed also matters to decide 3g network type\n //https://en.wikipedia.org/wiki/4G#Data_rate_comparison\n return \"3g\";\n case TelephonyManager.NETWORK_TYPE_LTE:\n //No specification for the 4g but from wiki\n //I found(LTE (Long-Term Evolution, commonly marketed as 4G LTE))\n //https://en.wikipedia.org/wiki/LTE_(telecommunication)\n return \"4g\";\n default:\n return \"Unknown\";\n }\n } catch (Exception e) {\n e.printStackTrace();\n return \"Unknown\";\n }\n }",
"ConnectionDescriptorRetriever(final String url,\r\n final ConnectionFactory factory, final int[] preferredTransports) {\r\n if (factory == null) {\r\n throw new IllegalArgumentException();\r\n }\r\n\r\n _url = url;\r\n _factory = factory;\r\n _preferredTransports = preferredTransports;\r\n }",
"public Object getNumberOfConnectedComponents() {\r\n\t\tConnectivityInspector<Country, DefaultEdge> inspector=new ConnectivityInspector<Country, DefaultEdge>(graph);\r\n\t\treturn inspector.connectedSets().size();\r\n\t}",
"public int getConnectionCount() {\n int i;\n synchronized (this.bindings) {\n i = 0;\n for (IntentBindRecord intentBindRecord : this.bindings) {\n i += intentBindRecord.connections.size();\n }\n }\n return i;\n }",
"public final int getConnectionType()\n\t{\n\t\treturn connType;\n\t}",
"BrokerAlgo getBrokerAlgo();",
"protected String getConnectivityType(Context context) {\n NetworkInfo info = Connectivity.getNetworkInfo(context);\n int type = info.getType();\n int subType = info.getSubtype();\n\n if(type == ConnectivityManager.TYPE_WIFI)\n return \"WIFI\";\n else\n return mobileTypeToString.get(subType);\n }",
"public int\ngetAlgorithm() {\n\treturn alg;\n}",
"public static int findChannelWeight()\n {\n for (int i = 0; i < DCService.wifiScanList.size(); i++) {\n\n allFrequency.add(convertFrequencyToChannel(DCService.wifiScanList.get(i).frequency));\n Log.v(\"Channel + AP: \", String.valueOf(convertFrequencyToChannel(DCService.wifiScanList.get(i).frequency)) + \"->\" + String.valueOf(DCService.wifiScanList.get(i).SSID));\n }\n Log.v(\"All frequency:\",allFrequency.toString());\n\n double channelArray[] = new double[13];\n\n // Fill all the elements with 0\n Arrays.fill(channelArray,0);\n\n double factor = 0.20;\n\n for (int band:allFrequency)\n {\n for (int i=band-5 ;i<= band+6 ;i++)\n {\n if (i<1 || i>13)\n continue;\n channelArray[i-1] = (channelArray[i-1] + (6-Math.abs(i-band))*factor);\n }\n }\n Log.v(\"Channel Array:\",Arrays.toString(channelArray));\n\n // Minimum value of channel array\n int bestFoundChannel;\n\n // Find minimum value from the channel array\n double small = channelArray[0];\n int index = 0;\n for (int i = 0; i < channelArray.length; i++) {\n if (channelArray[i] < small) {\n small = channelArray[i];\n index = i;\n }\n }\n\n // Find in channel array the elements with minimum channel value\n ArrayList<Integer> bestFoundAvailableChannels = new ArrayList();\n for(int items = 0;items < channelArray.length;items++)\n {\n if(channelArray[items] == small)\n {\n bestFoundAvailableChannels.add(items);\n }\n }\n if(channelArray[6] < channelArray[0] && channelArray[6] <channelArray[11] )\n return 6;\n if(channelArray[11] < channelArray[0] && channelArray[11] < channelArray[6])\n return 11;\n //Log.v(\"Minimum Channel Value,Best Found Channel:\", String.valueOf(small) + \",\" + String.valueOf(bestFoundChannel));\n // Find a random available channel from best found available channels\n /* Random rand = new Random();\n Integer randGeneratedBestFoundChannel = (Integer) bestFoundAvailableChannels.get(rand.nextInt(bestFoundAvailableChannels.size())) + 1;\n Log.v(\"Generated Random Available Channel:\" ,randGeneratedBestFoundChannel.toString());\n *///return (randGeneratedBestFoundChannel + 1);\n\n return 1;\n\n }"
] |
[
"0.67393386",
"0.58402544",
"0.56274503",
"0.5597024",
"0.547843",
"0.54297274",
"0.54297274",
"0.53540516",
"0.529497",
"0.5265638",
"0.5120711",
"0.5109511",
"0.51052845",
"0.5095147",
"0.50662386",
"0.5043359",
"0.5025849",
"0.49500173",
"0.4914931",
"0.48749426",
"0.48292273",
"0.48256648",
"0.48248047",
"0.48137313",
"0.47872874",
"0.47815162",
"0.47809482",
"0.4766378",
"0.4744936",
"0.47348934",
"0.4728471",
"0.47096163",
"0.47068498",
"0.46981463",
"0.46865228",
"0.46517217",
"0.46440414",
"0.46172643",
"0.4592976",
"0.45901906",
"0.4579822",
"0.45757183",
"0.45701644",
"0.45462215",
"0.45462215",
"0.4541636",
"0.45407188",
"0.45398527",
"0.45392472",
"0.4537716",
"0.45279297",
"0.45229927",
"0.45182866",
"0.45154405",
"0.45134395",
"0.4505469",
"0.45010066",
"0.4500517",
"0.4498582",
"0.4497411",
"0.44765073",
"0.44620425",
"0.4458314",
"0.44571874",
"0.44446054",
"0.44423246",
"0.4439762",
"0.44355813",
"0.44248357",
"0.4423152",
"0.44158494",
"0.44057712",
"0.4400938",
"0.43968353",
"0.43928242",
"0.4392035",
"0.43901289",
"0.4389489",
"0.4382001",
"0.43692338",
"0.43685848",
"0.43682608",
"0.43681827",
"0.43658918",
"0.43644452",
"0.43639442",
"0.43599266",
"0.43465948",
"0.4344552",
"0.4335881",
"0.43305457",
"0.43299174",
"0.43292108",
"0.43266538",
"0.4325189",
"0.4323541",
"0.43131983",
"0.43092418",
"0.43051884",
"0.42978516"
] |
0.5713378
|
2
|
The method recorded the local date and time in the task object at the moment of create
|
@PostMapping
public Task create(@RequestBody Task task){
task.setCreateDate(LocalDateTime.now());
return taskRepository.save(task);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public LocalDateTime getCreateTime() \n {\n return createTime;\n }",
"public TimedTask(String task) {\n this.task = task;\n timeStart = System.currentTimeMillis();\n }",
"public LocalDateTime getCreateTime() {\n return createTime;\n }",
"public LocalDateTime getCreateTime() {\n return createTime;\n }",
"public LocalDateTime getCreateTime() {\n return createTime;\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"public Date getCreate_time() {\n return create_time;\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getCreatetime() {\r\n return createtime;\r\n }",
"public Date getTimeCreate() {\n return timeCreate;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public Date getCreatetime() {\n return createtime;\n }",
"public TimeStamp(){\n\t\tdateTime = LocalDateTime.now();\n\t}",
"public LocalDateTime getCreateDateTime() {\n\t\treturn createDateTime;\n\t}",
"public void setCreateTime(LocalDateTime timestamp) \n {\n createTime = timestamp;\n }",
"public LocalDateTime getCreateDate() {\n return createDate;\n }",
"@Override\r\n\tpublic LocalDateTime getCreated() {\n\t\treturn this.created;\r\n\t}",
"public void creatTask(int uid,String title,String detail,int money,String type,int total_num,Timestamp end_time,String state);",
"public static void main(String[] args) {\n Task a = new Task(\"s\", new Date(0), new Date(1000*3600*24*7), 3600);\n a.setActive(true);\n System.out.println(a.getStartTime());\n System.out.println(a.getEndTime());\n System.out.println(a.nextTimeAfter(new Date(0)));\n\n\n\n }",
"public LocalDateTime getDateCreated() {\n return dateCreated;\n }",
"public LocalDateTime getCreatedDate() {\n return createdDate;\n }",
"public void AddTaskToDB(View view){\n\t\tif (TASK_CREATED == true){\n\t\t\tString name = taskName.getText().toString();\n\t\t\tString desc = taskDescription.getText().toString();\n//\t\t\tlong millisecondsToReminder = 0;\n\t\t\tlong millisecondsToCreated = 0;\n//\t\t\tyear = taskDatePicker.getYear();\n//\t\t\tmonth = taskDatePicker.getMonth() + 1;\n//\t\t\tday = taskDatePicker.getDayOfMonth();\n//\t\t\thour = taskTimePicker.getCurrentHour();\n//\t\t\tminute = taskTimePicker.getCurrentMinute();\n\t\t\ttry {\n\t\t\t\tCalendar cal = Calendar.getInstance();\n\t\t\t\tDate dateCreated = cal.getTime();\n\t\t\t\tmillisecondsToCreated = dateCreated.getTime();\n//\t\t\t\tString dateToParse = day + \"-\" + month + \"-\" + year + \" \" + hour + \":\" + minute;\n//\t\t\t\tSimpleDateFormat dateFormatter = new SimpleDateFormat(\"d-M-yyyy hh:mm\");\n//\t\t\t\tDate date = dateFormatter.parse(dateToParse);\n//\t\t\t\tmillisecondsToReminder = date.getTime();\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} // You will need try/catch around this\n\n\t\t\tBujoDbHandler taskHandler = new BujoDbHandler(view.getContext());\n\t\t\tcurrentTask = new Task(name, desc, millisecondsToCreated);\n\t\t\ttaskHandler.addTask(currentTask);\n\t\t}\n\t}",
"public interface Recordable \n{\n\t/**\n\t * Returns the date that the work was created.\n\t * @return The task creation date\n\t */\n\tLocalDateTime getCreationDate();\n\t\n\t/**\n\t * Returns the date the work was completed.\n\t * @return The task completion date\n\t */\n\tLocalDateTime getCompletionDate();\n}",
"Instant getCreated();",
"private void saveTask(){\n \tZadatakApp app = (ZadatakApp)getApplicationContext();\n \t\n \tTask task = new Task();\n \ttask.set(Task.Attributes.Name, nameText);\n \ttask.set(Task.Attributes.Duedate, datePicker);\n \ttask.set(Task.Attributes.Hours, lengthText);\n \ttask.set(Task.Attributes.Progress, progressBar);\n \ttask.set(Task.Attributes.Priority, priorityBox);\n \t\n \t// Save it to the database either as a new task or over an old task\n \tif (editmode) { app.dbman.editTask(id, task); }\n \telse { app.dbman.insertTask(task); }\n \t\n \t// A task has been added or changed, rescedule\n \tapp.schedule();\n \t\n \tapp.toaster(\"NEW / EDITED TASK\");\n \t\n \t// Quit the activity\n \tfinish();\n }",
"public LocalDateTime getStartTime() {\n return startTime;\n }",
"public String getCreatetime() {\r\n return createtime;\r\n }",
"public String getCreateStartTime() {\n return createStartTime;\n }",
"public Date getCreatTime() {\n return creatTime;\n }",
"public Date getCreatTime() {\n return creatTime;\n }",
"LocalDateTime getCreationDate();",
"public Date getFcreatetime() {\n return fcreatetime;\n }",
"public String getCreatetime() {\n return createtime;\n }",
"public String getCreatetime() {\n return createtime;\n }",
"public LocalDateTime getCreationTime() {\n\t\treturn creationTime;\n\t}",
"public void setCreatedTime(LocalDateTime value) {\n set(5, value);\n }",
"public abstract Date getStartTime();",
"public Time getTime() {\n return this.time; // returns the time associated with the task\n }",
"@Override\r\n\tpublic void setCreated(LocalDateTime created) {\n\t\tthis.created = created;\t\t\r\n\t}",
"public String getStartTime();",
"public String getStartTime();",
"@Override\n protected LocalDateTime CalculateNextFeedTime() {\n return LocalDateTime.now();\n }",
"public void createTask() {\n \tSystem.out.println(\"Inside createTask()\");\n \tTask task = Helper.inputTask(\"Please enter task details\");\n \t\n \ttoDoList.add(task);\n \tSystem.out.println(toDoList);\n }",
"public Date getCreateTime()\n/* */ {\n/* 177 */ return this.createTime;\n/* */ }",
"public Date getCreatedTime() {\n return createdTime;\n }",
"public Date getCreatedTime() {\n return createdTime;\n }",
"public Date getCreatedTime() {\n return createdTime;\n }",
"public long timeOfCreation() {\n\t\treturn timeOfCreation ;\n\t}",
"public LocalDateTime getCreatedTime() {\n return (LocalDateTime) get(5);\n }",
"private static void addTask() {\n Task task = new Task();\n System.out.println(\"Podaj tytuł zadania\");\n task.setTitle(scanner.nextLine());\n System.out.println(\"Podaj datę wykonania zadania (yyyy-mm-dd)\");\n\n while (true) {\n try {\n LocalDate parse = LocalDate.parse(scanner.nextLine(), DateTimeFormatter.ISO_LOCAL_DATE);\n task.setExecuteDate(parse);\n break;\n } catch (DateTimeParseException e) {\n System.out.println(\"Nieprawidłowy format daty. Spróbuj YYYY-MM-DD\");\n }\n }\n\n task.setCreationDate(LocalDate.now());\n\n queue.offer(task);\n System.out.println(\"tutuaj\");\n }",
"public void setTimeCreate(Date timeCreate) {\n this.timeCreate = timeCreate;\n }",
"public void setProvisionTime(java.util.Calendar param){\n localProvisionTimeTracker = true;\n \n this.localProvisionTime=param;\n \n\n }",
"public java.lang.String getActTime() {\r\n return localActTime;\r\n }",
"public Task(String taskName, String dueDate)\r\n {\r\n this.dueDate=dueDate;\r\n this.taskName=taskName;\r\n }",
"public Long getCreatetime() {\n return createtime;\n }",
"public CompletedTask(Task task, String date)\r\n\t{\r\n\t\tsuper(task.ID, task.description, task.priority, task.order, STATUS_COMPLETE);\r\n\t\tthis.date = date;\r\n\t}",
"public TaskCurrent() {\n\t}",
"@EventListener(condition = \"#event.domainObject.new\")\n\tpublic void onApplicationEventNewTaskStartline(DomainObjectStoreEvent<Task> event) {\n\t\tfinal Authentication authentication = SecurityContextHolder.getContext().getAuthentication();\n\t\tfinal CustomUserDetails principal = ((CustomUserDetails) authentication.getPrincipal());\n\t\tTask domainObject = event.getDomainObject();\n\t\tLocalDateTime lDT = LocalDateTime.now();\n\t\tdomainObject.setStartline(lDT);\n\t\tdomainObject.setChangedDate(lDT);\n\t\tdomainObject.setAuthor(principal.getUser());\n\t\tdomainObject.setLastEditor(principal.getUser());\n\t\tif (domainObject.getDeadline().isBefore(lDT))\n\t\t\tthrow new IllegalArgumentException(\"Дата дедлайна должна быть позднее сегодняшнего дня\");\n\t}",
"public void now() {\n localDate = LocalDate.now();\n localDateTime = LocalDateTime.now();\n javaUtilDate = new Date();\n auditEntry = \"NOW\";\n instant = Instant.now();\n }",
"public OffsetDateTime createTime() {\n return this.createTime;\n }",
"public void saveTask() {\r\n if (validateTask(textFieldName, textFieldDescription, textFieldDueDate, comboPriority)) {\r\n if (myTask == null) {\r\n myTask = new Task(textFieldName.getText(), textFieldDescription.getText(),\r\n LocalDate.parse(textFieldDueDate.getText()),\r\n Priority.valueOf(Objects.requireNonNull(comboPriority.getSelectedItem()).toString()));\r\n } else {\r\n myTask.setName(textFieldName.getText());\r\n myTask.setDescription(textFieldDescription.getText());\r\n myTask.setDueDate(LocalDate.parse(textFieldDueDate.getText()));\r\n myTask.setPriority(Priority.valueOf(Objects.requireNonNull(\r\n comboPriority.getSelectedItem()).toString()));\r\n }\r\n myTodo.getTodo().put(myTask.getHashKey(), myTask);\r\n todoListGui();\r\n }\r\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public User(){\n registerDate = new LocalDateTime();\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"public Date getCreateTime() {\r\n return createTime;\r\n }",
"long getStartTime();",
"public Visit() {\n\t\t//dateTime = LocalDateTime.now();\n\t}",
"public TaskDefinition() {\n\t\tthis.started = Boolean.FALSE; // default\n\t\tthis.startTime = new Date(); // makes it easier during task creation\n\t\t// as we have a default date populated\n\t\tthis.properties = new HashMap<>();\n\t}",
"public LocalDateTime getStartTime() {\n\t\treturn startTime;\n\t}",
"@Override\n\tpublic Long updateStartTime() {\n\t\treturn null;\n\t}",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }",
"public Date getCreateTime() {\n return createTime;\n }"
] |
[
"0.6566991",
"0.6455194",
"0.64305013",
"0.64305013",
"0.64305013",
"0.6429566",
"0.6429566",
"0.6354915",
"0.6354915",
"0.6354915",
"0.63391346",
"0.63304627",
"0.63304627",
"0.63304627",
"0.63304627",
"0.63304627",
"0.63304627",
"0.63304627",
"0.63304627",
"0.63173306",
"0.62819034",
"0.6235337",
"0.6232864",
"0.62312245",
"0.62296844",
"0.6198489",
"0.6180372",
"0.6179005",
"0.61673355",
"0.616642",
"0.6161132",
"0.61564565",
"0.6148504",
"0.61433256",
"0.61122274",
"0.61108434",
"0.61108434",
"0.6109407",
"0.61029214",
"0.6088254",
"0.6088254",
"0.60832363",
"0.6074247",
"0.6070104",
"0.6050151",
"0.6027813",
"0.6017577",
"0.6017577",
"0.60153514",
"0.60115534",
"0.5992755",
"0.5985497",
"0.5985497",
"0.5985497",
"0.597128",
"0.5954582",
"0.59458405",
"0.5938348",
"0.5924809",
"0.59210145",
"0.591053",
"0.5908882",
"0.590801",
"0.59064627",
"0.5904024",
"0.5896375",
"0.58955824",
"0.58945686",
"0.5892701",
"0.58799326",
"0.5876939",
"0.5876939",
"0.5876939",
"0.5876939",
"0.5876939",
"0.5876939",
"0.58632374",
"0.58629405",
"0.5861583",
"0.5855454",
"0.58492696",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638",
"0.5844638"
] |
0.64254713
|
7
|
todo contenido panel iniciar
|
public void PanelPrincipalDos() {
panelInicializarDos = new JPanel();
panelInicializarDos.setBackground(myColorHeaderTitulo);
panelInicializarDos.setBounds(0, 0, 1000, 400);
panelInicializarDos.setLayout(null);
panelInicializarDos.setVisible(false);
botonIniciaizarDos = new JButton("Inicializar");
botonIniciaizarDos.setBackground(myColorBotonHeader);
botonIniciaizarDos.setForeground(myColorBotonLetraHeader);
botonIniciaizarDos.setBounds(200, 160, 220, 60);
textoSaldoInicial = new JLabel("Saldo Inicial:");
textoSaldoInicial.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoSaldoInicial.setBounds(20, 60, 200, 40);
textoSaldoInicial.setForeground(Color.WHITE);
TextoSaldoInicial = new JTextField();
TextoSaldoInicial.setBounds(130, 60, 130, 40);
textoFechaInicial = new JLabel("Fecha Actual Agregada Automaticamente");
textoFechaInicial.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoFechaInicial.setBounds(20, 10, 450, 40);
textoFechaInicial.setForeground(Color.WHITE);
textoMostrarInicial = new JLabel("Inicializar.in Generado:");
textoMostrarInicial.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoMostrarInicial.setBounds(500, 5, 450, 40);
textoMostrarInicial.setForeground(Color.WHITE);
textoPisos = new JLabel("Número Pisos:");
textoPisos.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoPisos.setBounds(20, 110, 200, 40);
textoPisos.setForeground(Color.WHITE);
CampoTextoPisos = new JTextField();
CampoTextoPisos.setBounds(140, 110, 120, 40);
botonIngresarInicializar = new JButton("Ingresar");
botonIngresarInicializar.setBackground(myColorBotonHeader);
botonIngresarInicializar.setForeground(myColorBotonLetraHeader);
botonIngresarInicializar.setBounds(50, 180, 100, 40);
textArea2 = new JTextArea();
String texto;
textArea2.setEditable(false);
scroll2 = new JScrollPane(textArea2);
scroll2.setBounds(450, 40, 300, 400);
panelInicializarDos.add(scroll2);
//===============================
//todo contenido panel precio
panelPreciosDos = new JPanel();
panelPreciosDos.setBackground(myColorHeaderTitulo);
panelPreciosDos.setBounds(0, 0, 1000, 400);
panelPreciosDos.setLayout(null);
panelPreciosDos.setVisible(false);
botonPreciosDos = new JButton("Precios");
botonPreciosDos.setBackground(myColorBotonHeader);
botonPreciosDos.setForeground(myColorBotonLetraHeader);
botonPreciosDos.setBounds(530, 160, 220, 60);
//inicializar precios habitaciones
TextoHabitaciones = new JLabel("-> Precios Habitaciones <-");
TextoHabitaciones.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
TextoHabitaciones.setBounds(20, 5, 230, 40);
TextoHabitaciones.setForeground(Color.WHITE);
textoIndv = new JLabel("Individual: ");
textoIndv.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoIndv.setBounds(20, 40, 200, 30);
textoIndv.setForeground(Color.WHITE);
CampoTextoIndv = new JTextField();
CampoTextoIndv.setBounds(110, 40, 120, 30);
textoDoble = new JLabel("Doble: ");
textoDoble.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoDoble.setBounds(20, 70, 200, 30);
textoDoble.setForeground(Color.WHITE);
CampoTextoDoble = new JTextField();
CampoTextoDoble.setBounds(110, 70, 120, 30);
textoMatri = new JLabel("Matri: ");
textoMatri.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoMatri.setBounds(20, 100, 200, 30);
textoMatri.setForeground(Color.WHITE);
CampoTextoMatri = new JTextField();
CampoTextoMatri.setBounds(110, 100, 120, 30);
textoCuadruple = new JLabel("Cuadruple: ");
textoCuadruple.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoCuadruple.setBounds(20, 130, 200, 30);
textoCuadruple.setForeground(Color.WHITE);
CampoTextoCuadruple = new JTextField();
CampoTextoCuadruple.setBounds(110, 130, 120, 30);
textoSuite = new JLabel("Suite: ");
textoSuite.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoSuite.setBounds(20, 160, 200, 30);
textoSuite.setForeground(Color.WHITE);
CampoTextoSuite = new JTextField();
CampoTextoSuite.setBounds(110, 160, 120, 30);
//inicializar precio servicios
TextoHabitaciones2 = new JLabel("-> Precios Servicios <-");
TextoHabitaciones2.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
TextoHabitaciones2.setBounds(20, 210, 200, 40);
TextoHabitaciones2.setForeground(Color.WHITE);
textoCam_A = new JLabel("Cama Adicional: ");//CAM_A
textoCam_A.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoCam_A.setBounds(20, 260, 200, 30);
textoCam_A.setForeground(Color.WHITE);
comboCam_A = new JTextField();
comboCam_A.setBounds(160, 260, 100, 40);
textoCaj_F = new JLabel("Caja fuerte: ");//CAJ_F
textoCaj_F.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoCaj_F.setBounds(20, 290, 200, 30);
textoCaj_F.setForeground(Color.WHITE);
comboCaj_F = new JTextField();
comboCaj_F.setBounds(160, 290, 100, 40);
//inicializar precios restaurant
TextoHabitaciones3 = new JLabel("-> Precios Restaurant <-");
TextoHabitaciones3.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
TextoHabitaciones3.setBounds(280, 5, 230, 40);
TextoHabitaciones3.setForeground(Color.WHITE);
textoEsp_C = new JLabel("Esp_C: ");//ESP_C
textoEsp_C.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoEsp_C.setBounds(260, 40, 200, 30);
textoEsp_C.setForeground(Color.WHITE);
CampoTextoEsp_C = new JTextField();
CampoTextoEsp_C.setBounds(360, 40, 120, 30);
textoLom_M = new JLabel("LOM_M: ");//
textoLom_M.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoLom_M.setBounds(260, 70, 200, 30);
textoLom_M.setForeground(Color.WHITE);
CampoTextoLom_M = new JTextField();
CampoTextoLom_M.setBounds(360, 70, 120, 30);
textoJug_L = new JLabel("JUG_L: ");//JUG_L
textoJug_L.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoJug_L.setBounds(260, 100, 200, 30);
textoJug_L.setForeground(Color.WHITE);
CampoTextoJug_L = new JTextField();
CampoTextoJug_L.setBounds(360, 100, 120, 30);
textoMalta = new JLabel("MALTA: ");//MALTA
textoMalta.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoMalta.setBounds(260, 130, 200, 30);
textoMalta.setForeground(Color.WHITE);
CampoTextoMalta = new JTextField();
CampoTextoMalta.setBounds(360, 130, 120, 30);
botonIngresarPrecios = new JButton("Ingresar"); //boton ingresar precios
botonIngresarPrecios.setBackground(myColorBotonHeader);
botonIngresarPrecios.setForeground(myColorBotonLetraHeader);
botonIngresarPrecios.setBounds(330, 250, 150, 70);
textoMostrarInicial2 = new JLabel("");
textoMostrarInicial2.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 17));
textoMostrarInicial2.setBounds(680, 5, 450, 40);
textoMostrarInicial2.setForeground(Color.WHITE);
//panel extra
panelDosExtra = new JPanel();
panelDosExtra.setBackground(myColorHeaderTitulo);
panelDosExtra.setBounds(0, 0, 1000, 400);
panelDosExtra.setLayout(null);
panelDosExtra.setVisible(false);
//===============================
//texto menu principal 2
textoAbrirArchivoInicializar = new JLabel("Abrir Archivos Inicializar.in");
textoAbrirArchivoInicializar.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 20));
textoAbrirArchivoInicializar.setBounds(10, 14, 281, 51);
textoAbrirArchivoInicializar.setForeground(Color.WHITE);
textoAbrirArchivoPrecio = new JLabel("Abrir Archivos Precio.in");
textoAbrirArchivoPrecio.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 20));
textoAbrirArchivoPrecio.setBounds(10, 65, 281, 51);
textoAbrirArchivoPrecio.setForeground(Color.WHITE);
//- - - - - //botones menu principal 2
botonAbrirArchivoInicializar = new JButton("Abrir Archivo");
botonAbrirArchivoInicializar.setBounds(300, 25, 150, 40);
botonAbrirArchivoInicializar.setForeground(myColorBotonLetraHeader);
botonAbrirArchivoInicializar.setBackground(myColorBotonHeader);
botonAbrirArchivoPrecio = new JButton("Abrir Archivo");
botonAbrirArchivoPrecio.setBounds(300, 75, 150, 40);
botonAbrirArchivoPrecio.setForeground(myColorBotonLetraHeader);
botonAbrirArchivoPrecio.setBackground(myColorBotonHeader);
//- - - - -
textoCargaInteractiva = new JLabel("Carga Interactiva");
textoCargaInteractiva.setFont(new Font("Yu Gothic UI Semilight", Font.PLAIN, 20));
textoCargaInteractiva.setBounds(10, 150, 221, 51);
textoCargaInteractiva.setForeground(Color.WHITE);
//===============================
//panel extra
panelDosExtra.add(botonAbrirArchivoInicializar);
panelDosExtra.add(botonAbrirArchivoPrecio);
panelDosExtra.add(textoAbrirArchivoInicializar);
panelDosExtra.add(textoAbrirArchivoPrecio);
panelDosExtra.add(textoCargaInteractiva);
panelDosExtra.add(botonIniciaizarDos);
panelDosExtra.add(botonPreciosDos);
panelDos.add(panelDosExtra);
//===============================
//agregar a panel inicializar
panelInicializarDos.add(textoSaldoInicial);
panelInicializarDos.add(TextoSaldoInicial);
panelInicializarDos.add(textoFechaInicial);
panelInicializarDos.add(textoPisos);
panelInicializarDos.add(CampoTextoPisos);
panelInicializarDos.add(botonIngresarInicializar);
panelInicializarDos.add(textoMostrarInicial);
//===============================
//agregar a panel precios
panelPreciosDos.add(TextoHabitaciones);
panelPreciosDos.add(textoIndv);
panelPreciosDos.add(CampoTextoIndv);
panelPreciosDos.add(textoDoble);
panelPreciosDos.add(CampoTextoDoble);
panelPreciosDos.add(textoMatri);
panelPreciosDos.add(CampoTextoMatri);
panelPreciosDos.add(textoCuadruple);
panelPreciosDos.add(CampoTextoCuadruple);
panelPreciosDos.add(textoSuite);
panelPreciosDos.add(CampoTextoSuite);
panelPreciosDos.add(TextoHabitaciones2);
panelPreciosDos.add(TextoHabitaciones3);
panelPreciosDos.add(textoEsp_C);
panelPreciosDos.add(CampoTextoEsp_C);
panelPreciosDos.add(textoLom_M);
panelPreciosDos.add(CampoTextoLom_M);
panelPreciosDos.add(textoJug_L);
panelPreciosDos.add(CampoTextoJug_L);
panelPreciosDos.add(textoMalta);
panelPreciosDos.add(CampoTextoMalta);
panelPreciosDos.add(textoCam_A);
panelPreciosDos.add(comboCam_A);
panelPreciosDos.add(textoCaj_F);
panelPreciosDos.add(comboCaj_F);
panelPreciosDos.add(botonIngresarPrecios);
panelPreciosDos.add(botonIngresarPrecios);
panelPreciosDos.add(textoMostrarInicial2);
panelDos.add(panelInicializarDos);
panelDos.add(panelPreciosDos);
add(panelDos);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public PanelIniciarSesion() {\n initComponents();\n }",
"public void iniciarComponentes(){\n\n crearPanel();\n colocarBotones();\n \n }",
"@Override\n public void actionPerformed(ActionEvent e) {\n controladorUsuario.getControladorVistaInicial().limpiarPaneles();\n \n //Información del usuario\n if(e.getSource() == panelMenus.jbtnInfoPer){\n //CambiarVisibilidad\n controladorUsuario.getControladorVistaInicial().cambiarVisibilidad(1);\n //Se actualiza el panel\n panelDatosPersonal.actualizarInfo(controladorUsuario.getMiUsuario());\n controladorUsuario.getControladorVistaInicial().getVistaInicial().getJpCentral().add(panelDatosPersonal);\n //Se muestran los cambios\n controladorUsuario.getControladorVistaInicial().actualizarPaneles();\n \n //------------------------------------------------------------------\n //Catálogo de ibros\n }else if(e.getSource()==panelMenus.jbtnCatalogoLibros){\n \n //CambiarVisibilidad\n controladorUsuario.getControladorVistaInicial().cambiarVisibilidad(1);\n controladorUsuario.getControladorVistaInicial().getVistaInicial().getJpCentral().add(controladorUsuario.getPanelLibro());\n controladorUsuario.getControladorVistaInicial().getVistaInicial().getJpDerecha().add(controladorUsuario.getPanelBusqueda());\n //Se muestran los cambios\n controladorUsuario.getControladorVistaInicial().actualizarPaneles();\n //------------------------------------------------------------------\n //Salir del aplicativo\n }else if(e.getSource()==panelMenus.jbtnPrestamos){\n //------------------------------------------------------------------\n //Se obtiene toda la lista de prestamos con base en la consulta sql\n listaPrestamos = bdAcceso.getBdConsulta().consultarPrestamo(controladorUsuario.getMiUsuario().getID_Documento());\n \n //Se limpia las filas de la tabla\n acumulador = 0;\n filas = panelRegistroPrestamoControlador.getModeloTabla().getRowCount();\n while(filas>acumulador){\n panelRegistroPrestamoControlador.getModeloTabla().removeRow(0);\n acumulador++;\n }\n //Se renderiza la tabla para poder agregar botones\n panelRegistroPrestamoControlador.panelRegistroPrestamo.tablaPrestamo.setDefaultRenderer(Object.class, this);\n \n acumulador=0; \n //Se actualiza la información de la tabla\n while(acumulador<listaPrestamos.size()){\n prestamo = listaPrestamos.get(acumulador);\n //Se agregan los elementos a la fila\n if(prestamo.isAmpliarPrestamo()==false){ \n panelRegistroPrestamoControlador.getModeloTabla().addRow(new Object[]{prestamo.getId_Prestamo(),prestamo.getId_Libro(),prestamo.getId_Ejemplar(),prestamo.getTitulo_libro(),\n prestamo.getFecha_prestamo(),prestamo.getFecha_devolucion(),prestamo.isEstado(),prestamo.isAmpliarPrestamo(),panelRegistroPrestamoControlador.retornaJbtn()});\n }else{\n panelRegistroPrestamoControlador.getModeloTabla().addRow(new Object[]{prestamo.getId_Prestamo(),prestamo.getId_Libro(),prestamo.getId_Ejemplar(),prestamo.getTitulo_libro(),\n prestamo.getFecha_prestamo(),prestamo.getFecha_devolucion(),prestamo.isEstado(),prestamo.isAmpliarPrestamo()});\n }\n acumulador++;\n }\n filas = acumulador;\n //CambiarVisibilidad\n controladorUsuario.getControladorVistaInicial().cambiarVisibilidad(2);\n //Se agrega el panel\n controladorUsuario.getControladorVistaInicial().getVistaInicial().getJpCentralGeneral().add(panelRegistroPrestamoControlador.panelRegistroPrestamo);\n //Se muestran los cambios\n controladorUsuario.getControladorVistaInicial().actualizarPaneles();\n \n }else if(e.getSource() == panelMenus.jbtnSalir){\n //CambiarVisibilidad\n controladorUsuario.getControladorVistaInicial().cambiarVisibilidad(1);\n controladorUsuario.getControladorVistaInicial().reestablecerInfo();\n controladorUsuario.getControladorVistaInicial().agregarPaneles();\n }\n }",
"public PanelAmigo() {\n initComponents();\n \n }",
"public PanelSobre() {\n initComponents();\n }",
"public PanelSobre() {\n initComponents();\n }",
"public PanelAdministrarMarcas() {\n initComponents();\n cargarTabla();\n }",
"public ControladorPanel() { }",
"public PanelCicloEscolar() {\n initComponents();\n }",
"public vistaPanelPelicula() {\r\n initComponents();\r\n }",
"public PanelControl() {\r\n initComponents();\r\n VersionEImageIcon versionEImageIcon = new VersionEImageIcon();\r\n versionEImageIcon.newColorFromPanel(panelColor);\r\n jLabel1.setText(INFO_LABEL);\r\n Usuario usuarioTipo = Login.getUsuario();\r\n this.administrador = usuarioTipo.isAdmin();\r\n if (!administrador)\r\n {\r\n rangos.setEnabled(false);\r\n controles.setEnabled(false);\r\n alta_usuarios.setEnabled(false);\r\n verificacion.setEnabled(false);\r\n }\r\n }",
"public PanelCompra() {\n initComponents();\n lblNick.setText(PanelCuenta.cuenta.getNickName());\n lblNombre.setText(PanelCuenta.cuenta.getUsuario().getNombre());\n lblDireccion.setText(PanelCuenta.cuenta.getUsuario().getDireccion());\n llenarTabla();\n }",
"private MenuServicios(){\n super(\"Gym Manager Servicios a Socios\");\n setBackground(Color.WHITE);\n\tgetContentPane().setLayout(null);\n setResizable(false);\n\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n pack();\n\tsetSize(942,592);\n\tsetLocationRelativeTo(null);\n image_path = \"jar:\" + getClass().getProtectionDomain().getCodeSource().\n getLocation().toString() + \"!/imagenes/\";\n \n jdpFondo = new JDesktopPane();\n jdpFondo.setBackground(Color.WHITE);\n jtpcContenedor = new JXTaskPaneContainer();\n jtpPanel = new JXTaskPane();\n jtpPanel2 = new JXTaskPane();\n jpnlPanelPrincilal = new JPanel();\n jpnlPanelPrincilal.setBackground(Color.WHITE);\n jtpcContenedor.setBackground(Color.LIGHT_GRAY);\n \n paginaInicio();\n crearComponentes();\n addToPanel();\n accionComponentes();\n \n }",
"private void modificarComponentesPanelPadre() {\n panelCrearArticuloClienteDistribuidor_labelTitulo.setText(panelCrearArticuloClienteDistribuidor_labelTitulo.getText() + \"Distribuidor\");\n }",
"protected void inicializar(){\n kr = new CreadorHojas(wp);\n jPanel1.add(wp,0); // inserta el workspace en el panel principal\n wp.insertarHoja(\"Hoja 1\");\n //wp.insertarHoja(\"Hoja 2\");\n //wp.insertarHoja(\"Hoja 3\");\n }",
"private void panelSISC(String panel) {\n\n this.dispose();\n new InterfazPlantillaPestanas(panel).setVisible(true);\n }",
"public void preparePanelPoder(){\n\t\tpanelNombrePoder = new JPanel();\n\t\tpanelNombrePoder.setLayout( new GridLayout(3,1,0,0 ));\n\t\t\n\t\tString name = ( game.getCurrentSorpresa() == null )?\" No hay sorpresa\":\" \"+game.getCurrentSorpresa().getClass().getName();\n\t\tn1 = new JLabel(\"Sorpresa actual:\"); \n\t\tn1.setForeground(Color.WHITE);\n\t\t\n\t\tn2 = new JLabel();\n\t\tn2.setText(name.replace(\"aplicacion.\",\"\"));\n\t\tn2.setForeground(Color.WHITE);\n\t\t\n\t\tpanelNombrePoder.add(n1);\n\t\tpanelNombrePoder.add(n2);\n\t\tpanelNombrePoder.setBounds( 34,200 ,110,50);\n\t\tpanelNombrePoder.setOpaque(false);\n\t\tthis.add( panelNombrePoder);\n\t\t\n\t\t\n\t\t\n\t\t\n\t}",
"public void mostrar() {\n\t\t\n\t\tdibujarFondo();\n\t\tdibujarMarcador();\n\t\t\n\t\tScene escena = new Scene(panel, panel.getPrefWidth(), panel.getPrefHeight());\n\n\t\tescenario.setScene(escena);\n\t\tescenario.setResizable(false);\n\t\tescenario.setTitle(Aplicacion.TITULO);\n\t\t\n\t\tdibujar();\n\n\t\tescenario.show();\n\t}",
"public TemporizadorPanel() {\n initComponents();\n }",
"public void inhabilitaPanel() {\n\n\t\t//comboNombreCarta.setEnabled(false);\n\t\tjScrollPane1.setEnabled(false);\n\t\tjScrollPane1.getVerticalScrollBar().setEnabled(false);\n\t\tjScrollPane1.getHorizontalScrollBar().setEnabled(false);\n\t\tjScrollPane2.setEnabled(false);\n\t\tjScrollPane2.getVerticalScrollBar().setEnabled(false);\n\t\tjScrollPane2.getHorizontalScrollBar().setEnabled(false);\n\t\tlistaSeleccionadas.setEnabled(false);\n\t\tlistaDisponibles.setEnabled(false);\n\t\tlabelFondo.setEnabled(false);\n\t\ttextoNumeroCartas.setEnabled(false);\n\t\ttextoRaza.setEnabled(false);\n\t\tbotCargar.setEnabled(false);\n\t\tbotGuardar.setEnabled(false);\n\t\tbotGuardarComo.setEnabled(false);\n\t\tbotSalir.setEnabled(false);\n\t\tbotAyuda.setEnabled(false);\n\t\tbotNuevaBaraja.setEnabled(false);\n\t\ttextoBarajaCargada.setEnabled(false);\n\t\tthis.panelFondo.setEnabled(false);\n\t\tlabelImagen.setEnabled(false);\n this.NumeroPuntos.setEnabled(false);\n\n\t}",
"public Controlador(){\n\t\tcuadricula = new Cuadricula();\n\t\tpanel = new Panel();\n\t\t\n\t\tnew JPanel();\n\t\t\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\tadd(cuadricula, BorderLayout.CENTER);\n\t\tadd(panel, BorderLayout.SOUTH);\n\t\t\n\t\tgetDensidad().addActionListener(new Oyente());\n\t\tgetBotonColor().addActionListener(new Oyente());\n\t\tgetBotonEmpezar().addActionListener(new Oyente());\n\t\tgetBotonFinalizar().addActionListener(new Oyente());\n\t\tgetBotonTodo().addActionListener(new Oyente());\n\t\tgetBotonPausar().addActionListener(new Oyente());\n\t\tgetBotonReanudar().addActionListener(new Oyente());\n\t\tgetBotonPausar().addActionListener(new Oyente());\n\t\tgetBotonPaso().addActionListener(new Oyente());\n\t}",
"public void run() {\n\t\t\t\tVerticalPanel panelCompteRendu = new VerticalPanel();\r\n\t\t\t\thtmlCompteRendu = new HTML();\r\n\t\t\t\tpanelCompteRendu.add(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"compteRendu\").add(panelCompteRendu);\r\n\t\t\t\t\r\n\t\t\t\tVerticalPanel panelLegende = new VerticalPanel();\r\n\t\t\t\thtmlLegende = new HTML();\r\n\t\t\t\tpanelLegende.add(htmlLegende);\r\n\t\t\t\tRootPanel.get(\"legende\").add(htmlLegende);\r\n\t\t\t\t\r\n\t\t\t\t// temps d'intˇgration restant\r\n\t\t\t\tLabel tempsDIntegrationRestant = new Label();\r\n\t\t\t\tRootPanel.get(\"tempsDIntegrationRestant\").add(tempsDIntegrationRestant);\r\n\t\t\t\t\r\n\t\t\t\t// ajout de la carte\r\n\t\t\t\twMap = new MapFaWidget2(htmlCompteRendu);\r\n\t\t\t\tRootPanel.get(\"carte\").add(wMap);\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t// ajout du bouton reset\r\n\t\t\t\tButton boutonReset = new Button(\"Nettoyer la carte\");\r\n\t\t\t\tboutonReset.addClickHandler(actionBoutonReset());\r\n\t\t\t\tRootPanel.get(\"boutonReset\").add(boutonReset);\r\n\r\n\t\t\t\t// ajout du formulaire d'intˇgration\r\n\t\t\t\tnew FileUploadView(wMap,htmlLegende, htmlCompteRendu,tempsDIntegrationRestant);\r\n\r\n\t\t\t}",
"public JPanel menu(){\n principal = new JPanel();\r\n principal.setSize(PANEL_WIDTH,PANEL_HEIGHT);\r\n principal.setLayout(null);\r\n JLabel fondo = new JLabel(new ImageIcon(\"fondo_menu.png\"));\r\n fondo.setBounds(-10,-30,PANEL_WIDTH+15,PANEL_HEIGHT);\r\n \r\n juego = new JButton(\"Jugar\");\r\n juego.setBounds(530,250,290,50);\r\n butJugar = new ImageIcon(\"jugar.png\");\r\n juego.setIcon(butJugar);\r\n records = new JButton(\"Records\");\r\n records.setBounds(530,320,290,50); \r\n butRecord = new ImageIcon(\"records.png\");\r\n records.setIcon(butRecord);\r\n \r\n creditos = new JButton(\"Creditos\");\r\n creditos.setBounds(530,390,290,50);\r\n butCreditos = new ImageIcon(\"creditos.png\");\r\n creditos.setIcon(butCreditos);\r\n \r\n juego.addMouseListener(new MouseAdapter(){\r\n @Override\r\n public void mouseClicked(MouseEvent e) {\r\n menuMusic.stop();\r\n jugar.initJugar();\r\n frameOfGame.setVisible(true);\r\n// setVisible(false);\r\n } \r\n });\r\n \r\n records.addMouseListener(new MouseAdapter(){\r\n @Override\r\n public void mouseClicked(MouseEvent e) {\r\n regresar.setVisible(true);\r\n RegCreditos.setVisible(false); \r\n mugrillo_baile.setVisible(false); \r\n principal.setVisible(false);\r\n mostrarCreditos.setVisible(false); \r\n mostrarRecords.setVisible(true);\r\n String[] todo,nombres,stringRecord;\r\n int[] record = new int[100];\r\n int aux1;\r\n String auxRecord=\"\",auxNombres=\"\",aux,aux2 = \"\";\r\n aA = new AccesoArchivos(); \r\n aux = aA.leerRecords(); \r\n todo = aux.split(\"\\n\");\r\n int ban = 0;\r\n for(int x=0;x<todo.length;x++){\r\n String[] datos = todo[x].split(\",\");\r\n auxNombres += datos[0] +\"\\n\";\r\n auxRecord += datos[1] +\"\\n\";\r\n }\r\n \r\n nombres = auxNombres.split(\"\\n\");\r\n stringRecord = auxRecord.split(\"\\n\");\r\n \r\n for(int x=0;x<stringRecord.length;x++){\r\n record[x] = Integer.parseInt(stringRecord[x]);\r\n }\r\n \r\n for(int x=1;x<nombres.length;x++){\r\n for(int y=0;y<nombres.length-x;y++){\r\n if(record[y]<record[y+1]){\r\n aux1 = record[y];\r\n record[y] = record[y+1];\r\n record[y+1] = aux1;\r\n aux2 = nombres[y];\r\n nombres[y] = nombres[y+1];\r\n nombres[y+1] = aux2;\r\n }\r\n }\r\n }\r\n String records = \"\";\r\n for(int x=0;x<todo.length;x++){\r\n records += nombres[x]+\"----\"+record[x]+\"\\n\";\r\n }\r\n \r\n puntajes.setText(null);\r\n puntajes.append(records);\r\n } \r\n });\r\n \r\n \r\n creditos.addActionListener(new ActionListener() {\r\n @Override\r\n public void actionPerformed(ActionEvent e) {\r\n regresar.setVisible(false);\r\n RegCreditos.setVisible(true); \r\n mugrillo_baile.setVisible(true);\r\n principal.setVisible(false);\r\n mostrarRecords.setVisible(false);\r\n mostrarCreditos.setVisible(true);\r\n }\r\n });\r\n \r\n principal.add(juego);\r\n principal.add(creditos);\r\n principal.add(records);\r\n principal.add(fondo); \r\n principal.setVisible(true); \r\n return principal;\r\n }",
"public void habilitaPanel() {\n\n\t\tthis.panelFondo.setEnabled(true);\n\t\tlabelImagen.setEnabled(true);\n\t\t//comboNombreCarta.setEnabled(true);\n\t\tthis.jScrollPane1.setEnabled(true);\n\t\tthis.jScrollPane1.getVerticalScrollBar().setEnabled(true);\n\t\tjScrollPane1.getHorizontalScrollBar().setEnabled(true);\n\t\tthis.jScrollPane2.setEnabled(true);\n\t\tthis.jScrollPane2.getVerticalScrollBar().setEnabled(true);\n\t\tjScrollPane2.getHorizontalScrollBar().setEnabled(true);\n\t\tlistaSeleccionadas.setEnabled(true);\n\t\tlistaDisponibles.setEnabled(true);\n\t\tthis.labelFondo.setEnabled(true);\n\t\ttextoNumeroCartas.setEnabled(true);\n\t\ttextoRaza.setEnabled(true);\n\t\tbotCargar.setEnabled(true);\n\t\tbotGuardar.setEnabled(true);\n\t\tbotGuardarComo.setEnabled(true);\n\t\tbotSalir.setEnabled(true);\n\t\tbotAyuda.setEnabled(true);\n\t\tbotNuevaBaraja.setEnabled(true);\n\t\ttextoBarajaCargada.setEnabled(true);\n\t\tthis.setEnabled(true);\n this.NumeroPuntos.setEnabled(true);\n\n\t}",
"@Override\r\n\tpublic void createContents(Panel mainPanel) {\n\t\t\r\n\t\t\r\nsetTitle(\"¿Dónde invierto?\");\r\n\t\t\r\n\t\tmainPanel.setLayout(new VerticalLayout());\r\n\t\tnew Label(mainPanel).setText(\"Menú Principal\").setFontSize(15).setForeground(Color.RED);\r\n\t\tnew Label(mainPanel).setText(\"Seleccionar la opción deseada\").setFontSize(13).setForeground(Color.BLACK);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Carga Correcta de las Empresas!\").setFontSize(9).setForeground(Color.GREEN).bindVisibleToProperty(\"bloq\");\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Mostrar el valor de una cuenta predefinida\");\r\n\t\tButton bot_MostrarCuentas= new Button(mainPanel);\r\n\t\t\r\n\t\tbot_MostrarCuentas.setCaption(\"Mostrar valores de la Empresa\");//.bindEnabledToProperty(\"bloq\");\r\n\t\tbot_MostrarCuentas.onClick(() -> new mostrarValoresDeEmpresas(this,new mostrarValoresDeEmpresasViewModel()).open());\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Crear un nuevo indicador\");\r\n\t\tnew Button(mainPanel).setCaption(\"Escribir formula\").onClick(() -> new crearIndicadores(this,new crearIndicadoresViewModel()).open());\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Menu de Metodologias\");\r\n\t\t\r\n\t\tPanel parte1 =new Panel(mainPanel);\r\n\t\tparte1.setLayout(new ColumnLayout(2));\t\r\n\t\tButton bot_evaluarEmpresas= new Button(parte1);\r\n\t\tbot_evaluarEmpresas.setCaption(\"Evaluar una empresa\");\r\n\t\tbot_evaluarEmpresas.setWidth(125);\r\n\t\tbot_evaluarEmpresas.onClick(() -> new evaluarEmpresas(this, new evaluarEmpresasViewModel()).open());\r\n\t\r\n\t\tButton bot_configurarMetodologia= new Button(parte1);\r\n\t\tbot_configurarMetodologia.setCaption(\"Crear Metodologia\");\r\n\t\tbot_configurarMetodologia.setWidth(125);\r\n\t\tbot_configurarMetodologia.onClick(() ->crearNuevaMetodologia());\t\r\n\t\t\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t/*\tnew Label(mainPanel).setText(\"Importar/Exportar archivos\");\r\n\t\t\r\n\t\tButton bot_impExpArchivos = new Button(mainPanel);\r\n\t\tbot_impExpArchivos.setCaption(\"Importar Archivos o exportar\");\r\n\t\tbot_impExpArchivos.setWidth(125);\r\n\t\tbot_impExpArchivos.onClick(() -> new importarExportarArchivos(this, new importarExportarArchivosViewModel()).open());\r\n\t\t\r\n\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\" \").setFontSize(2);\r\n\t\tnew Label(mainPanel).setText(\"Desde aca abajo vuela todo y va a otra ventana \\\\|/\").setFontSize(8);\r\n\t */\r\n\t\t\r\n\t\tnew Label(mainPanel).setText(\"Cargar un archivo de empresas\");\r\n\t\tPanel panel2 = new Panel(mainPanel);\r\n\t\tpanel2.setLayout(new ColumnLayout(2));\r\n\t\t\r\n\t\tFileSelector fileSelector = new FileSelector(panel2);\r\n\t\tfileSelector.extensions(\"*.txt\");\r\n\t\tfileSelector.setCaption(\"Seleccionar archivo\");\r\n\t\tfileSelector.setWidth(125);\r\n\t\tfileSelector.bindValueToProperty(\"rutaArchivo\");\r\n\t\tfileSelector.onClick(() -> this.cargarArchivo());\r\n\t\t\r\n\t\tnew TextBox(panel2).setWidth(125).bindValueToProperty(\"rutaArchivo\");\r\n\t\t\r\n\t\t\r\n\t\tnew Button(mainPanel).setCaption(\"Procesar archivo\").onClick(() -> this.cargarArchivo());\r\n\r\n\t\tIOs.leerIndicadoresDeArchivo(\"archivoIndicadores.txt\");\r\n\t\t\r\n\t\tRepositorioDeEmpresas.traerEmpresasDeLaDB();\r\n\t}",
"private void init(){\n panel_principal = new JPanel();\r\n panel_principal.setLayout(new BorderLayout());\r\n //EN EL NORTE IRA LA CAJA DE TEXTO\r\n caja = new JTextField();\r\n panel_principal.add(\"North\",caja);\r\n //EN EL CENTRO IRA EL PANEL DE BOTONES\r\n panel_botones = new JPanel();\r\n //El GRIDLAYOUT RECIBE COMO PARAMETROS:\r\n //FILAS,COLUMNAS ESPACIADO ENTRE FILAS,\r\n //ESPACIADO ENTRE COLUMNAS\r\n panel_botones.setLayout(new GridLayout(5,4,8,8));\r\n agregarBotones();\r\n panel_principal.add(\"Center\",panel_botones);\r\n //AGREGAMOS TODO EL CONTENIDO QUE ACABAMOS DE HACER EN\r\n //PANEL_PRINCIPAL A EL PANEL DEL FORMULARIO\r\n getContentPane().add(panel_principal);\r\n\r\n }",
"public InicioJPanel(Principal principal) {\n this.principal = principal;\n\n initComponents();\n\n iniciarBotones(true);\n\n }",
"private void crearPanel() {\r\n\t\tJLabel lbl_Empresa = new JLabel(\"Empresa:\");\r\n\t\tlbl_Empresa.setBounds(10, 52, 72, 14);\r\n\t\tadd(lbl_Empresa);\r\n\r\n\t\ttxField_Empresa = new JTextField();\r\n\t\ttxField_Empresa.setBounds(116, 49, 204, 20);\r\n\t\tadd(txField_Empresa);\r\n\t\ttxField_Empresa.setColumns(10);\r\n\r\n\t\tlbl_Oferta = new JLabel(\" \");\r\n\t\tlbl_Oferta.setFont(new Font(\"Tahoma\", Font.PLAIN, 20));\r\n\t\tlbl_Oferta.setBounds(10, 11, 742, 20);\r\n\t\tadd(lbl_Oferta);\r\n\r\n\t\tJLabel lbl_sueldoMin = new JLabel(\"Sueldo Minimo:\");\r\n\t\tlbl_sueldoMin.setBounds(10, 83, 96, 14);\r\n\t\tadd(lbl_sueldoMin);\r\n\r\n\t\ttxField_sueldoMin = new JTextField();\r\n\t\ttxField_sueldoMin.setColumns(10);\r\n\t\ttxField_sueldoMin.setBounds(116, 80, 93, 20);\r\n\t\tadd(txField_sueldoMin);\r\n\r\n\t\tJLabel lbl_sueldoMax = new JLabel(\"Sueldo Maximo:\");\r\n\t\tlbl_sueldoMax.setBounds(10, 115, 96, 14);\r\n\t\tadd(lbl_sueldoMax);\r\n\r\n\t\ttxField_sueldoMax = new JTextField();\r\n\t\ttxField_sueldoMax.setColumns(10);\r\n\t\ttxField_sueldoMax.setBounds(116, 112, 93, 20);\r\n\t\tadd(txField_sueldoMax);\r\n\r\n\t\tJLabel lbl_experiencia = new JLabel(\"A\\u00F1os de experiencia minimos:\");\r\n\t\tlbl_experiencia.setBounds(10, 143, 185, 14);\r\n\t\tadd(lbl_experiencia);\r\n\r\n\t\ttxField_experiencia = new JTextField();\r\n\t\ttxField_experiencia.setColumns(10);\r\n\t\ttxField_experiencia.setBounds(205, 140, 93, 20);\r\n\t\tadd(txField_experiencia);\r\n\r\n\t\tJLabel lbl_aspectosValorar = new JLabel(\"Aspectos a valorar:\");\r\n\t\tlbl_aspectosValorar.setBounds(10, 178, 137, 14);\r\n\t\tadd(lbl_aspectosValorar);\r\n\r\n\t\ttxArea_aspectosValorar = new JTextArea();\r\n\t\ttxArea_aspectosValorar.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosValorar.setBounds(157, 172, 253, 41);\r\n\t\tadd(txArea_aspectosValorar);\r\n\r\n\t\tJLabel lbl_aspectosImpres = new JLabel(\"Aspectos imprescindibles:\");\r\n\t\tlbl_aspectosImpres.setBounds(10, 238, 133, 14);\r\n\t\tadd(lbl_aspectosImpres);\r\n\r\n\t\ttxArea_aspectosImpres = new JTextArea();\r\n\t\ttxArea_aspectosImpres.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_aspectosImpres.setBounds(157, 232, 253, 41);\r\n\t\tadd(txArea_aspectosImpres);\r\n\r\n\t\tJLabel lbl_descripcion = new JLabel(\"Descripcion:\");\r\n\t\tlbl_descripcion.setBounds(10, 302, 107, 14);\r\n\t\tadd(lbl_descripcion);\r\n\r\n\t\ttxArea_descripcion = new JTextArea();\r\n\t\ttxArea_descripcion.setBorder(UIManager.getBorder(\"TextField.border\"));\r\n\t\ttxArea_descripcion.setBounds(10, 328, 465, 149);\r\n\t\tadd(txArea_descripcion);\r\n\r\n\t\tJLabel lbl_conocimientos = new JLabel(\"Conocimientos requeridos:\");\r\n\t\tlbl_conocimientos.setBounds(537, 125, 169, 14);\r\n\t\tadd(lbl_conocimientos);\r\n\r\n\t\tpa_conocimientos = new PanelListaDoble(Usuario.getConocimientosTotales(), miOferta.getConocimientos());\r\n\t\tpa_conocimientos.setBounds(537, 174, 215, 180);\r\n\t\tadd(pa_conocimientos);\r\n\r\n\t\ttxField_buscarCono = new JTextField();\r\n\t\ttxField_buscarCono.setBounds(537, 140, 135, 20);\r\n\t\tadd(txField_buscarCono);\r\n\t\ttxField_buscarCono.setColumns(10);\r\n\r\n\t\tJButton btn_buscar = new JButton(\"\");\r\n\t\tbtn_buscar.setBounds(682, 138, 24, 23);\r\n\t\tadd(btn_buscar);\r\n\r\n\t\tbtn_crear = new JButton(\"\");\r\n\t\tbtn_crear.setBounds(716, 138, 24, 23);\r\n\t\tadd(btn_crear);\r\n\r\n\t\ttxField_lugar = new JTextField();\r\n\t\ttxField_lugar.setEditable(false);\r\n\t\ttxField_lugar.setColumns(10);\r\n\t\ttxField_lugar.setBounds(506, 49, 234, 20);\r\n\t\tadd(txField_lugar);\r\n\r\n\t\tJLabel lbl_lugar = new JLabel(\"Lugar de trabajo:\");\r\n\t\tlbl_lugar.setBounds(392, 52, 104, 14);\r\n\t\tadd(lbl_lugar);\r\n\r\n\t\tJLabel lbl_contrato = new JLabel(\"Tipo de contrato:\");\r\n\t\tlbl_contrato.setBounds(392, 83, 104, 14);\r\n\t\tadd(lbl_contrato);\r\n\r\n\t\tcombo_contrato = new JComboBox<Contrato>();\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.INDEFINIDO_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORAL_TIEMPO_COMPLETO);\r\n\t\tcombo_contrato.addItem(Contrato.TEMPORTAL_TIEMPO_PARCIAL);\r\n\t\tcombo_contrato.setBounds(506, 83, 159, 20);\r\n\t\tadd(combo_contrato);\r\n\t\t// d\r\n\t\tinicializar(miOferta);\r\n\t\tdesHabCampos(false);\r\n\t\tif (miOferta.getEmpresa().getNumID().compareToIgnoreCase(Aplicacion.getUsuario().getNumID()) == 0) {\r\n\t\t\tbtnEliminar = new JButton(\"Eliminar\");\r\n\t\t\tbtnEliminar.setToolTipText(\"Eliminar\");\r\n\t\t\tbtnEliminar.setBounds(492, 384, 125, 41);\r\n\t\t\tadd(btnEliminar);\r\n\r\n\t\t\tbtnRetirar = new JButton(\"\\uD83D\\uDC40\");\r\n\t\t\tbtnRetirar.setToolTipText(\"Retirar Oferta\");\r\n\t\t\tbtnRetirar.setBounds(627, 384, 125, 41);\r\n\t\t\tadd(btnRetirar);\r\n\r\n\t\t\tbutton_Editar = new JButton(\"Editar\");\r\n\t\t\tbutton_Editar.setToolTipText(\"Editar\");\r\n\t\t\tbutton_Editar.setBounds(627, 436, 125, 41);\r\n\t\t\tadd(button_Editar);\r\n\r\n\t\t\tbutton_Editar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\tdesHabCampos(true);\r\n\t\t\t\t\tbutton_Editar.setVisible(false);\r\n\t\t\t\t\tbtnEliminar.setVisible(false);\r\n\t\t\t\t\tbtnRetirar.setVisible(false);\r\n\t\t\t\t\tbtn_crear.setVisible(false);\r\n\r\n\t\t\t\t\tbtn_guardar = new JButton(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setToolTipText(\"Guardar\");\r\n\t\t\t\t\tbtn_guardar.setBounds(627, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_guardar);\r\n\r\n\t\t\t\t\tbtn_cancelar = new JButton(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setToolTipText(\"Cancelar\");\r\n\t\t\t\t\tbtn_cancelar.setBounds(492, 436, 125, 41);\r\n\t\t\t\t\tadd(btn_cancelar);\r\n\r\n\t\t\t\t\tbtn_cancelar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tbtn_guardar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.removeAll();\r\n\t\t\t\t\t\t\tbtn_cancelar.setVisible(false);\r\n\t\t\t\t\t\t\tbtn_guardar.setVisible(false);\r\n\t\t\t\t\t\t\tbtnEliminar.setVisible(true);\r\n\t\t\t\t\t\t\tbutton_Editar.setVisible(true);\r\n\t\t\t\t\t\t\tbtnRetirar.setVisible(true);\r\n\t\t\t\t\t\t\tbtn_crear.setVisible(true);\r\n\t\t\t\t\t\t\tinicializar(miOferta);\r\n\t\t\t\t\t\t\tdesHabCampos(false);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\r\n\t\t\t\t\tbtn_guardar.addMouseListener(new MouseAdapter() {\r\n\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\tpublic void mouseClicked(MouseEvent e) {\r\n\t\t\t\t\t\t\tEmergenteCambios.createWindow(\"┐Desea guardar los cambios?\", (TieneEmergente) padre);\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}\r\n\t}",
"public Mostrar() {\n initComponents();\n mostrar();\n }",
"protected final void setPanelDatos(){\n panel_datos.setBackground(fondo);\n panel_datos.setBorder(BorderFactory.createTitledBorder(null,\"Datos\",TitledBorder.CENTER,TitledBorder.DEFAULT_POSITION, titulo, titulos));\n\n titulo_funcion.setFont(titulo); \n titulo_funcion.setForeground(titulos);\n titulo_h.setFont(titulo); \n titulo_h.setForeground(titulos);\n titulo_x.setFont(titulo); \n titulo_x.setForeground(titulos);\n titulo_n.setFont(titulo); \n titulo_n.setForeground(titulos);\n titulo_condiciones.setFont(titulo); \n titulo_condiciones.setForeground(titulos);\n titulo_y.setFont(titulo); \n titulo_y.setForeground(titulos);\n titulo_val.setFont(titulo); \n titulo_val.setForeground(titulos);\n titulo_metodo.setFont(titulo); \n titulo_metodo.setForeground(titulos);\n\n calcular.setBackground(titulos);\n calcular.setBorder(BorderFactory.createLineBorder(fondo,2));\n\n limpiar.setBackground(titulos);\n limpiar.setBorder(BorderFactory.createLineBorder(fondo,2));\n\n agregar.setBackground(titulos);\n agregar.setBorder(BorderFactory.createLineBorder(fondo,2));\n\n funcion.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n h.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n x.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n n.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n y.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n val.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n variables.setBorder(BorderFactory.createLineBorder(Color.BLACK));\n\n GroupLayout panel_datosLayout = new GroupLayout(panel_datos);\n panel_datos.setLayout(panel_datosLayout);\n\n panel_datosLayout.setHorizontalGroup(\n panel_datosLayout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addGroup(panel_datosLayout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(titulo_funcion))\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(titulo_metodo)\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(metodo, GroupLayout.PREFERRED_SIZE, 95, GroupLayout.PREFERRED_SIZE))\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(titulo_n)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(n, GroupLayout.PREFERRED_SIZE, 63, GroupLayout.PREFERRED_SIZE))\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(titulo_x)\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(x, GroupLayout.PREFERRED_SIZE, 79, GroupLayout.PREFERRED_SIZE))\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(titulo_h)\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(h, GroupLayout.PREFERRED_SIZE, 58, GroupLayout.PREFERRED_SIZE))\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addGap(56, 56, 56)\n .addComponent(calcular, GroupLayout.PREFERRED_SIZE, 81, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(limpiar, GroupLayout.PREFERRED_SIZE, 89, GroupLayout.PREFERRED_SIZE))\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addGap(99, 99, 99)\n .addComponent(agregar,GroupLayout.PREFERRED_SIZE, 89, GroupLayout.PREFERRED_SIZE))\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(titulo_y)\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(y, GroupLayout.PREFERRED_SIZE, 70, GroupLayout.PREFERRED_SIZE)\n .addGap(11, 11, 11)\n .addComponent(titulo_val)\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(val, GroupLayout.PREFERRED_SIZE,50, GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(panel_datosLayout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addComponent(funcion)\n .addContainerGap())\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addComponent(titulo_condiciones)\n .addGap(0, 0, Short.MAX_VALUE))\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addComponent(titulo_variables, GroupLayout.DEFAULT_SIZE, GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(variables, GroupLayout.PREFERRED_SIZE, 63, GroupLayout.PREFERRED_SIZE)\n .addGap(16, 16, 16))))\n );\n\n panel_datosLayout.setVerticalGroup(\n panel_datosLayout.createParallelGroup(GroupLayout.Alignment.LEADING)\n .addGroup(panel_datosLayout.createSequentialGroup()\n .addGroup(panel_datosLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(titulo_variables)\n .addComponent(variables, GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE))\n .addGap(5, 5, 5)\n .addComponent(titulo_funcion)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(funcion, GroupLayout.PREFERRED_SIZE, 26, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(titulo_condiciones)\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(panel_datosLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(titulo_y)\n .addGroup(panel_datosLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(y, GroupLayout.PREFERRED_SIZE, 22, GroupLayout.PREFERRED_SIZE)\n .addComponent(titulo_val)\n .addComponent(val, GroupLayout.DEFAULT_SIZE, 24, Short.MAX_VALUE)))\n .addGap(11,11,11)\n .addComponent(agregar,GroupLayout.PREFERRED_SIZE, 28, GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(LayoutStyle.ComponentPlacement.RELATED, 16, Short.MAX_VALUE)\n .addGroup(panel_datosLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(titulo_h)\n .addComponent(h, GroupLayout.PREFERRED_SIZE,22, GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(panel_datosLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(titulo_x)\n .addComponent(x, GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(panel_datosLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(titulo_n)\n .addComponent(n, GroupLayout.PREFERRED_SIZE, 24, GroupLayout.PREFERRED_SIZE))\n .addGap(18, 18, 18)\n .addGroup(panel_datosLayout.createParallelGroup(GroupLayout.Alignment.TRAILING)\n .addComponent(titulo_metodo)\n .addComponent(metodo, GroupLayout.PREFERRED_SIZE,24, GroupLayout.PREFERRED_SIZE))\n .addGap(28, 28, 28)\n .addGroup(panel_datosLayout.createParallelGroup(GroupLayout.Alignment.BASELINE)\n .addComponent(calcular, GroupLayout.PREFERRED_SIZE, 28, GroupLayout.PREFERRED_SIZE)\n .addComponent(limpiar, GroupLayout.PREFERRED_SIZE, 28, GroupLayout.PREFERRED_SIZE))\n .addGap(11, 11, 11))\n );\n }",
"public Inicio() {\n initComponents();\n setVisible(true);\n \n }",
"public void initPanel(){\r\n\t \r\n\t\t//Titre\r\n\t\tlabel.setFont(new Font(\"Verdana\",1,40));\r\n\t label.setForeground(Color.black);\r\n\t label.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label.setBounds(110,0,575,50);\r\n\t\tthis.panel.setLayout(null);\t \r\n\t this.panel.add(label);\r\n\t \r\n\t //dc\r\n\t this.panel.add(label1, BorderLayout.CENTER);\r\n\t label1.setFont(new Font(\"Verdana\",1,40));\r\n\t label1.setForeground(Color.black);\r\n\t label1.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label1.setBounds(150,500,100,50);\r\n\t //ab\r\n\t this.panel.add(label2);\r\n\t label2.setFont(new Font(\"Verdana\",1,40));\r\n\t label2.setForeground(Color.black);\r\n\t label2.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label2.setBounds(550,500,100,50);\r\n\t //Button dc\r\n\t\tdc.setBounds(50,200,300,250);\r\n\t\tthis.panel.add(dc);\r\n\t\tdc.addActionListener(this);\r\n\t\t//Button ab\r\n\t\tab.setBounds(450,200,300,250);\r\n\t\tthis.panel.add(ab);\r\n\t\tab.addActionListener(this);\r\n\t\t\r\n\t\tthis.panel.add(label3);\r\n\t label3.setFont(new Font(\"Verdana\",1,20));\r\n\t label3.setForeground(Color.black);\r\n\t label3.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label3.setBounds(90,575,220,30);\r\n\t \r\n\t this.panel.add(label4);\r\n\t label4.setFont(new Font(\"Verdana\",1,20));\r\n\t label4.setForeground(Color.black);\r\n\t label4.setBorder(BorderFactory.createLineBorder(Color.BLACK, 2));\r\n\t label4.setBounds(490,575,220,30);\r\n\t}",
"public AccueilPanel() {\n initComponents();\n resetError();\n }",
"private void iniciarComponentesInterface() {\n\t\tPanelchildren panelchildren = new Panelchildren();\r\n\t\tpanelchildren.setParent(this);\r\n\t\tlistBox = new Listbox();\r\n\t\tlistBox.setHeight(\"300px\");\r\n\t\tlistBox.setCheckmark(true);\r\n\t\tlistBox.setMultiple(false);\r\n\t\tlistBox.setParent(panelchildren);\r\n\t\tListhead listHead = new Listhead();\r\n\t\tlistHead.setParent(listBox);\r\n\t\tListheader listHeader = new Listheader(\"Projeto\");\r\n\t\tlistHeader.setParent(listHead);\r\n\r\n\t\t// Botões OK e Cancelar\r\n\t\tDiv div = new Div();\r\n\t\tdiv.setParent(panelchildren);\r\n\t\tdiv.setStyle(\"float: right;\");\r\n\t\tSeparator separator = new Separator();\r\n\t\tseparator.setParent(div);\r\n\t\tButton botaoOK = new Button(\"OK\");\r\n\t\tbotaoOK.addEventListener(\"onClick\", new EventListenerOK());\r\n\t\tbotaoOK.setWidth(\"100px\");\r\n\t\tbotaoOK.setStyle(\"margin-right: 5px\");\r\n\t\tbotaoOK.setParent(div);\r\n\t\tButton botaoCancelar = new Button(\"Cancelar\");\r\n\t\tbotaoCancelar.addEventListener(\"onClick\", new EventListenerCancelar());\r\n\t\tbotaoCancelar.setWidth(\"100px\");\r\n\t\tbotaoCancelar.setParent(div);\r\n\t}",
"public IntegracionMenu() {\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tsetBounds(100, 100, 1123, 633);\r\n\t\t\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tmenuBar.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\tsetJMenuBar(menuBar);\r\n\t\t\r\n\t\tJMenu mnInicio = new JMenu(\"Inicio\");\r\n\t\tmnInicio.setForeground(Color.BLACK);\r\n\t\tmnInicio.setFont(new Font(\"Segoe UI\", Font.PLAIN, 15));\r\n\t\tmenuBar.add(mnInicio);\r\n\t\t\r\n\t\tJMenu mnArchivo = new JMenu(\"Archivo\");\r\n\t\tmnArchivo.setForeground(Color.BLACK);\r\n\t\tmnArchivo.setFont(new Font(\"Segoe UI\", Font.PLAIN, 15));\r\n\t\tmenuBar.add(mnArchivo);\r\n\t\t\r\n\t\tJMenu mnAyuda = new JMenu(\"Ayuda\");\r\n\t\tmnAyuda.setForeground(Color.BLACK);\r\n\t\tmnAyuda.setFont(new Font(\"Segoe UI\", Font.PLAIN, 15));\r\n\t\tmenuBar.add(mnAyuda);\r\n\t\tcontentPane = new JPanel();\r\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\r\n\t\tsetContentPane(contentPane);\r\n\t\tcontentPane.setLayout(new BorderLayout(0, 0));\r\n\t\t\r\n\t\tJPanel panel = new JPanel();\r\n\t\tcontentPane.add(panel, BorderLayout.WEST);\r\n\t\tGridBagLayout gbl_panel = new GridBagLayout();\r\n\t\tgbl_panel.columnWidths = new int[]{209, 0};\r\n\t\tgbl_panel.rowHeights = new int[]{150, 45, 45, 45, 45, 45, 0, 0, 0, 0};\r\n\t\tgbl_panel.columnWeights = new double[]{1.0, Double.MIN_VALUE};\r\n\t\tgbl_panel.rowWeights = new double[]{0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, Double.MIN_VALUE};\r\n\t\tpanel.setLayout(gbl_panel);\r\n\t\t\r\n\t\tJButton button = new JButton(\"Panel Principal\");\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tCardLayout cl = (CardLayout)(panelCardLayout.getLayout());\r\n\t\t\t\tcl.show(panelCardLayout, \"panel inicio\"); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tJPanel panel_1 = new JPanel();\r\n\t\tpanel_1.setLayout(null);\r\n\t\tGridBagConstraints gbc_panel_1 = new GridBagConstraints();\r\n\t\tgbc_panel_1.insets = new Insets(0, 0, 5, 0);\r\n\t\tgbc_panel_1.fill = GridBagConstraints.BOTH;\r\n\t\tgbc_panel_1.gridx = 0;\r\n\t\tgbc_panel_1.gridy = 0;\r\n\t\tpanel.add(panel_1, gbc_panel_1);\r\n\t\t\r\n\t\tlblID = new JLabel(\"\");\r\n\t\tlblID.setBounds(74, 59, 107, 14);\r\n\t\tpanel_1.add(lblID);\r\n\t\t\r\n\t\t\r\n\t\tlblNombre= new JLabel(\"\");\r\n\t\tlblNombre.setBounds(74, 96, 125, 14);\r\n\t\tpanel_1.add(lblNombre);\r\n\t\t\r\n\t\tJLabel lblNewLabel = new JLabel(\"ID:\");\r\n\t\tlblNewLabel.setBounds(10, 59, 46, 14);\r\n\t\tpanel_1.add(lblNewLabel);\r\n\t\t\r\n\t\tJLabel lblNombre_1 = new JLabel(\"Nombre:\");\r\n\t\tlblNombre_1.setBounds(10, 96, 54, 14);\r\n\t\tpanel_1.add(lblNombre_1);\r\n\t\t\r\n\t\tJLabel lblDatosDelLogin = new JLabel(\"Datos del login\");\r\n\t\tlblDatosDelLogin.setBounds(74, 11, 125, 14);\r\n\t\tpanel_1.add(lblDatosDelLogin);\r\n\t\tbutton.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tbutton.setPreferredSize(new Dimension(209, 45));\r\n\t\tbutton.setHorizontalTextPosition(SwingConstants.CENTER);\r\n\t\tbutton.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n\t\tbutton.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\tGridBagConstraints gbc_button = new GridBagConstraints();\r\n\t\tgbc_button.insets = new Insets(0, 0, 5, 0);\r\n\t\tgbc_button.anchor = GridBagConstraints.NORTH;\r\n\t\tgbc_button.gridx = 0;\r\n\t\tgbc_button.gridy = 1;\r\n\t\tpanel.add(button, gbc_button);\r\n\t\t\r\n\t\tJButton btnGestionUsuarios = new JButton(\"Gestión De Usuarios\");\r\n\t\tbtnGestionUsuarios.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tCardLayout cl = (CardLayout)(panelCardLayout.getLayout());\r\n\t\t\t\tcl.show(panelCardLayout, \"Gestion de usuarios\");\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnGestionUsuarios.setPreferredSize(new Dimension(209, 45));\r\n\t\tbtnGestionUsuarios.setHorizontalTextPosition(SwingConstants.LEADING);\r\n\t\tbtnGestionUsuarios.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tbtnGestionUsuarios.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n\t\tbtnGestionUsuarios.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\tGridBagConstraints gbc_btnGestionUsuarios = new GridBagConstraints();\r\n\t\tgbc_btnGestionUsuarios.insets = new Insets(0, 0, 5, 0);\r\n\t\tgbc_btnGestionUsuarios.gridx = 0;\r\n\t\tgbc_btnGestionUsuarios.gridy = 2;\r\n\t\tpanel.add(btnGestionUsuarios, gbc_btnGestionUsuarios);\r\n\t\t\r\n\t\tJButton btnCreacinDeUsuarios = new JButton(\"Creación de Usuarios\");\r\n\t\tbtnCreacinDeUsuarios.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\r\n\t\t\t\tCardLayout cl = (CardLayout)(panelCardLayout.getLayout());\r\n\t\t\t\tcl.show(panelCardLayout, \"panel creacion users\"); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnCreacinDeUsuarios.setPreferredSize(new Dimension(209, 45));\r\n\t\tbtnCreacinDeUsuarios.setHorizontalTextPosition(SwingConstants.LEADING);\r\n\t\tbtnCreacinDeUsuarios.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tbtnCreacinDeUsuarios.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n\t\tbtnCreacinDeUsuarios.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\tGridBagConstraints gbc_btnCreacinDeUsuarios = new GridBagConstraints();\r\n\t\tgbc_btnCreacinDeUsuarios.insets = new Insets(0, 0, 5, 0);\r\n\t\tgbc_btnCreacinDeUsuarios.gridx = 0;\r\n\t\tgbc_btnCreacinDeUsuarios.gridy = 3;\r\n\t\tpanel.add(btnCreacinDeUsuarios, gbc_btnCreacinDeUsuarios);\r\n\t\t\r\n\t\tJButton btnModificarProductos = new JButton(\"Modificar Productos\");\r\n\t\tbtnModificarProductos.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\tbtnModificarProductos.setHorizontalTextPosition(SwingConstants.LEADING);\r\n\t\tbtnModificarProductos.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tbtnModificarProductos.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n\t\tbtnModificarProductos.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tCardLayout cl = (CardLayout)(panelCardLayout.getLayout());\r\n\t\t\t\tcl.show(panelCardLayout, \"modificar producto\"); //$NON-NLS-1$\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnModificarProductos.setPreferredSize(new Dimension(209, 45));\r\n\t\tGridBagConstraints gbc_btnModificarProductos = new GridBagConstraints();\r\n\t\tgbc_btnModificarProductos.insets = new Insets(0, 0, 5, 0);\r\n\t\tgbc_btnModificarProductos.gridx = 0;\r\n\t\tgbc_btnModificarProductos.gridy = 4;\r\n\t\tpanel.add(btnModificarProductos, gbc_btnModificarProductos);\r\n\t\t\r\n\t\tJButton btnListadoDeCompradores = new JButton(\"Listado de compradores\");\r\n\t\tbtnListadoDeCompradores.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tCardLayout cl = (CardLayout)(panelCardLayout.getLayout());\r\n\t\t\t\tcl.show(panelCardLayout,\"panel Compradores\"\t); //$NON-NLS-1$\r\n\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnListadoDeCompradores.setPreferredSize(new Dimension(209, 45));\r\n\t\tbtnListadoDeCompradores.setHorizontalTextPosition(SwingConstants.LEADING);\r\n\t\tbtnListadoDeCompradores.setHorizontalAlignment(SwingConstants.LEFT);\r\n\t\tbtnListadoDeCompradores.setFont(new Font(\"Verdana\", Font.BOLD, 13));\r\n\t\tbtnListadoDeCompradores.setBorder(new TitledBorder(null, \"\", TitledBorder.LEADING, TitledBorder.TOP, null, null));\r\n\t\tGridBagConstraints gbc_btnListadoDeCompradores = new GridBagConstraints();\r\n\t\tgbc_btnListadoDeCompradores.insets = new Insets(0, 0, 5, 0);\r\n\t\tgbc_btnListadoDeCompradores.gridx = 0;\r\n\t\tgbc_btnListadoDeCompradores.gridy = 5;\r\n\t\tpanel.add(btnListadoDeCompradores, gbc_btnListadoDeCompradores);\r\n\t\t\r\n\t\tpanelCardLayout= new JPanel();\r\n\t\tpanelCardLayout.setPreferredSize(new Dimension(104, 18));\r\n\t\tcontentPane.add(panelCardLayout, BorderLayout.CENTER);\r\n\t\tpanelCardLayout.setLayout(new CardLayout(0, 0));\r\n\t\t\r\n\t\tJPanel panelInicio = new PanelPrincipal();\r\n\t \r\n\t\tpanelCardLayout.add(panelInicio, \"panel inicio\");\r\n\t\t\r\n\t\tJPanel panelCreacionDeUsers = new PanelUsuarios(null);\r\n\t\tpanelCardLayout.add(panelCreacionDeUsers, \"panel creacion users\");\r\n\t\t\r\n\t\tJPanel panelModificarProductos = new ModificarProducto();\r\n\t\tpanelCardLayout.add(panelModificarProductos, \"modificar producto\");\r\n\t\t\r\n\t\tJPanel panelListadoCompradores = new ListadoCompradores();\r\n\t\tpanelCardLayout.add(panelListadoCompradores, \"panel Compradores\"); //$NON-NLS-1$\r\n\t\t\t\r\n\t\tJPanel panelGestionUsuarios = new GestionDeUsuarios();\r\n\t\tpanelCardLayout.add(panelGestionUsuarios, \"Gestion de usuarios\");\r\n\t\t\r\n\t\t\r\n\t}",
"private void inicialize() {\n\t\t\n\t\t/**\n\t\t * Labels e textField of the page:\n\t\t * Nome\n\t\t * Descrição\n\t\t */\n\n\t\tJLabel lblNome = new JLabel(\"Nome\");\n\t\tlblNome.setBounds(5, 48, 86, 28);\n\t\tlblNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblNome);\n\t\t\n\t\tJLabel lblDescricao = new JLabel(\"Descrição\");\n\t\tlblDescricao.setBounds(5, 117, 86, 51);\n\t\tlblDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\tcontentPanel.add(lblDescricao);\n\t\t\n\t\ttextFieldNome = new JTextField();\n\t\ttextFieldNome.setBounds(103, 45, 290, 35);\n\t\ttextFieldNome.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldNome.setColumns(10);\n\t\tcontentPanel.add(textFieldNome);\n\t\t\n\t\ttextFieldDescricao = new JTextArea();\n\t\ttextFieldDescricao.setBackground(Color.WHITE);\n\t\ttextFieldDescricao.setLineWrap(true);\n\t\ttextFieldDescricao.setBounds(101, 118, 290, 193);\n\t\ttextFieldDescricao.setFont(new Font(\"Dubai Light\", Font.PLAIN, 13));\n\t\ttextFieldDescricao.setColumns(10);\n\t\tcontentPanel.add(textFieldDescricao);\n\n\t\t/**\n\t\t * Confirmation panel\n\t\t * Confirmation button\n\t\t * Cancellation button\n\t\t */\n\n\t\tpainelConfirmacaoSetup();\n\t}",
"public void habilitaPanel() {\n\t\t// contentPane.setEnabled(true);\n\t\tpanelPrincipal.setEnabled(true);\n\t\tpanelBotones.setEnabled(true);\n\t\tboton1Jugador.setEnabled(true);\n\t\tbotonJuegoRed.setEnabled(true);\n\t\tbotonEditar.setEnabled(true);\n\t\tbotonDemo.setEnabled(true);\n\t\tbotonReglas.setEnabled(true);\n\t\tbotonAyuda.setEnabled(true);\n\t\tbotonRecibir.setEnabled(true);\n\t\tbotonEnviar.setEnabled(true);\n\t\tbotonDescargaSobre.setEnabled(true);\n\t\tbotonSalir.setEnabled(true);\n\t\tlabelFondo.setEnabled(true);\n\t\tlabelDibujo.setEnabled(true);\n\n\t}",
"private void addToPanel(){\n getContentPane().add(jdpFondo);\n jtpcContenedor.add(jtpPanel);\n\tjtpcContenedor.add(jtpPanel2);\n jdpFondo.add(jtpcContenedor, BorderLayout.CENTER);\n jdpFondo.add(jpnlPanelPrincilal);\n }",
"public void irAPanelAbierto() {\r\n //Seleccionar PerfilPanel\r\n itemClicked(jpanePerfil, jpaneActivePerfil, jlblPerfil, 1);\r\n }",
"public PanelAdmin() {\n initComponents();\n tfUsuario.setText(DatosList[0]);\n tfNombre.setText(DatosList[1]);\n tfApellido.setText(DatosList[2]);\n if (DatosList[4].equals(\"1\"))\n {\n jlRol2.setText(\"Administrador\");\n }\n else\n {\n jlRol2.setText(\"común\");\n }\n tfFecha.setText(DatosList[5]);\n tfCorreo.setText(DatosList[6]);\n tfTeléfono.setText(DatosList[7]);\n Image img = new ImageIcon(DatosList[8]).getImage();\n ImageIcon Profile = new ImageIcon(img.getScaledInstance(100, 100, Image.SCALE_SMOOTH));\n tfFoto.setIcon(Profile);\n taDescripción.setText(DatosList[9]);\n if (DatosList[10].equals(\"1\"))\n {\n jlEstado2.setText(\"Activo\");\n }\n else\n {\n jlEstado2.setText(\"Inactivo\");\n }\n }",
"public Gui_lectura_consumo() {\n initComponents();\n centrarform();\n consumo_capturado.setEditable(false);\n limpiarCajas();\n \n \n }",
"public void iniciarPartida() {\n\t\tJuego juegoActual = controladorJuego.getJuego();\n\t\t// Recuperamos Tablero de juego para obtener las dimensiones\n\t\tTablero tableroActual = juegoActual.getTablero();\n\n\t\t// Creamos el layout para introducir la matriz con las casillas\n\t\tthis.setLayout(new BorderLayout());\n\t\tpaneltablero = new JPanel(new GridLayout(tableroActual.getNumFilas(), tableroActual.getNumCols()));\n\t\tthis.add(paneltablero);\n\n\t\t// Creamos la matriz de JButton que nos permetira interacctuar\n\t\ttablero = new JButton[tableroActual.getNumFilas()][tableroActual.getNumCols()];\n\t\tfor (int x = 0; x < tableroActual.getNumFilas(); x++) {\n\t\t\tfor (int y = 0; y < tableroActual.getNumCols(); y++) {\n\t\t\t\ttablero[x][y] = new JButton();\n\t\t\t\ttablero[x][y].setName(\"Casilla\");\n\t\t\t\ttablero[x][y].setPreferredSize(new Dimension(32, 32));\n\t\t\t\ttablero[x][y].addMouseListener((MouseListener) this.getControladorJuego());\n\t\t\t\tpaneltablero.add(tablero[x][y]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tbarraMenu();\n\n\t\tventana.setContentPane(this);\n\t\tventana.setResizable(false);\n\t\tventana.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tventana.pack();\n\t\tventana.setVisible(true);\n\t}",
"private void inicioButtonActionPerformed(java.awt.event.ActionEvent evt) {\n this.contenedorPanel.setVisible(false);\n this.contenedorPanel.removeAll();\n this.contenedorPanel.add(mainPanel); \n this.contenedorPanel.setVisible(true);\n }",
"public HoaDonJPanel() {\n initComponents(); \n this.init();\n }",
"public PanelConBoton() {\n initComponents();\n }",
"public void cambiarPanel(String panel) {\n\n cambiarPanel.show(panelContenedor, panel);\n }",
"public PanelSubMenuMedico() {\n initComponents();\n pnForm = null;\n pnViewer = null;\n observadores = new ArrayList<>();\n nombre = \"medico\";\n }",
"public Principal() {\n\n initComponents();\n this.panel1.setContentType(\"text/html\");\n this.panel2.setContentType(\"text/html\");\n this.panel3.setContentType(\"text/html\");\n llenarListaArchivos(1);\n llenarListaArchivos(2);\n }",
"public MantenimientoReserva() {\n initComponents();\n PanelFondo panel=new PanelFondo(this.screenSize.width,this.screenSize.height);\n this.add(panel,BorderLayout.CENTER);\n }",
"private void paginaAddAluno(JPanel quadroAddAluno){\n\t\t\tJLabel lblAdcionandoUmAluno = new JLabel(\"ADICIONANDO UM ALUNO\");\n\t\t\tlblAdcionandoUmAluno.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 26));\n\t\t\tlblAdcionandoUmAluno.setBounds(215, 135, 334, 32);\n\t\t\tquadroAddAluno.add(lblAdcionandoUmAluno);\n\t\t\t\n\t\t\tJLabel lblParaAdiconarUm = new JLabel(\"PARA ADICONAR UM ALUNO AO SISTEMA, BASTA COLOCAR O NOME, SOBRENOME DO NOVO ALUNO\");\n\t\t\tlblParaAdiconarUm.setBounds(73, 226, 648, 16);\n\t\t\tquadroAddAluno.add(lblParaAdiconarUm);\n\t\t\t\n\t\t\tJLabel lblNome = new JLabel(\"NOME:\");\n\t\t\tlblNome.setBounds(138, 341, 61, 16);\n\t\t\tquadroAddAluno.add(lblNome);\n\t\t\t\n\t\t\taddNome = new JFormattedTextField();\n\t\t\taddNome.setBounds(187, 336, 477, 26);\n\t\t\tquadroAddAluno.add(addNome);\n\t\t\taddNome.setColumns(10);\n\t\t\t\n\t\t\tJLabel lblSobrenome = new JLabel(\"SOBRENOME:\");\n\t\t\tlblSobrenome.setBounds(138, 434, 81, 16);\n\t\t\tquadroAddAluno.add(lblSobrenome);\n\t\t\t\n\t\t\taddSobrenome = new JFormattedTextField();\n\t\t\taddSobrenome.setBounds(231, 429, 433, 26);\n\t\t\tquadroAddAluno.add(addSobrenome);\n\t\t\taddSobrenome.setColumns(10);\n\t\t\t\n\t\t\tJButton btnNewButton = new JButton(\"ADICIONAR\");\n\t\t\tbtnNewButton.setBounds(336, 619, 117, 29);\n\t\t\tquadroAddAluno.add(btnNewButton);\n\t\t\t\n\t\t\tJLabel lblAoClicarEm = new JLabel(\"AO CLICAR EM ADICIONAR, UMA MENSAGEM SERÁ EXIBIDA INFORMANDO SE O ALUNO FOI ADIOCIONADO COM SUCESSO\");\n\t\t\tlblAoClicarEm.setBounds(20, 531, 763, 32);\n\t\t\tquadroAddAluno.add(lblAoClicarEm);\n\t\t}",
"public ComandaPanel() {\n\n initComponents();\n // comanda = new Comanda();\n }",
"public ventanaServidor () { //Constructor\n setBounds(500,200,400,300); //define ubicacion en x, y , ancho, alto del cuadro\n JPanel lamina2 = new JPanel ();\n lamina2.setLayout(new BorderLayout());\n setResizable(false); //evitar que la ventana se redimencione\n setTitle(\"Servidor\");\n setVisible(true); //mostrar en pantalla\n \n \n }",
"public void inhabilitaPanel() {\n\t\t// contentPane.setEnabled(false);\n\t\tpanelPrincipal.setEnabled(false);\n\t\tpanelBotones.setEnabled(false);\n\t\tboton1Jugador.setEnabled(false);\n\t\tbotonJuegoRed.setEnabled(false);\n\t\tbotonEditar.setEnabled(false);\n\t\tbotonDemo.setEnabled(false);\n\t\tbotonReglas.setEnabled(false);\n\t\tbotonAyuda.setEnabled(false);\n\t\tbotonRecibir.setEnabled(false);\n\t\tbotonEnviar.setEnabled(false);\n\t\tbotonDescargaSobre.setEnabled(false);\n\t\tbotonSalir.setEnabled(false);\n\t\tlabelFondo.setEnabled(false);\n\t\tlabelDibujo.setEnabled(false);\n\n\t}",
"public kinpanel() {\n initComponents();\n }",
"private void accionComponentes(){\n try{\n this.jtpPanel.add(new AbstractAction() {\n {\n putValue(Action.NAME, \"Registrar Asistencia\");\n putValue(Action.SHORT_DESCRIPTION, \"Registra la asistencia diaria de un socio\");\n putValue(Action.SMALL_ICON, new ImageIcon(new URL(image_path +\"final-asistencia.png\")));\n }\n @Override\n public void actionPerformed(ActionEvent e){\n jpnlPanelPrincilal.setLayout(null);\n jpnlPanelPrincilal.removeAll();\n jpnlPanelPrincilal.add(RegistrarAsistencia.getInstance(),BorderLayout.CENTER);\n jpnlPanelPrincilal.validate();\n repaint();\n }\n });\n \n this.jtpPanel.add(new AbstractAction() {\n {\n putValue(Action.NAME, \"Incribir Socio a Clase\");\n putValue(Action.SHORT_DESCRIPTION, \"Incribe a un Socio en una de las Clases disponibles en el gimnasio\");\n putValue(Action.SMALL_ICON, new ImageIcon(new URL(image_path +\"add.png\")));\n }\n @Override\n public void actionPerformed(ActionEvent e){\n jpnlPanelPrincilal.setLayout(null);\n jpnlPanelPrincilal.removeAll();\n jpnlPanelPrincilal.add(InscribirSocio.getInstance(),BorderLayout.CENTER);\n jpnlPanelPrincilal.validate();\n repaint();\n }\n });\n \n this.jtpPanel.add(new AbstractAction() {\n {\n putValue(Action.NAME, \"Retirar Socio de Clase\");\n putValue(Action.SHORT_DESCRIPTION, \"Retira a un Socio de una de sus Clases inscritas\");\n putValue(Action.SMALL_ICON, new ImageIcon(new URL(image_path +\"del.png\")));\n }\n @Override\n public void actionPerformed(ActionEvent e){\n jpnlPanelPrincilal.setLayout(null);\n jpnlPanelPrincilal.removeAll();\n jpnlPanelPrincilal.add(RetirarSocio.getInstance(),BorderLayout.CENTER);\n jpnlPanelPrincilal.validate();\n repaint();\n \n }\n });\n \n this.jtpPanel2.add(new AbstractAction() {\n {\n putValue(Action.NAME, \"Pagina Principal\");\n putValue(Action.SHORT_DESCRIPTION, \"Accesa a pagina principal de Servicios\");\n putValue(Action.SMALL_ICON, new ImageIcon(new URL(image_path +\"menu.png\")));\n }\n @Override\n public void actionPerformed(ActionEvent e){\n jpnlPanelPrincilal.setLayout(null);\n jpnlPanelPrincilal.removeAll();\n jpnlPanelPrincilal.add(PaginaPrincipal.getInstance(),BorderLayout.CENTER);\n jpnlPanelPrincilal.validate();\n repaint();\n }\n });\n }catch(Exception ex){\n JOptionPane.showMessageDialog(instance, ex.getMessage());\n }\n }",
"private void cambiaPanelAnterior() {\r\n\t\tCardLayout cl = (CardLayout) VentanaPrincipal.getInstance().getContentPane().getLayout();// obtenemos el card layout\r\n\t\tcl.show(VentanaPrincipal.getInstance().getContentPane(), VentanaPrincipal.getInstance().getPanelEquipo().getName());// mostramos el pael Equipos\r\n\t}",
"private void getBaseDatos() {\r\n java.awt.EventQueue.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n new IngresoBaseDeDatos(isAdministrador()).setVisible(true);\r\n }\r\n });\r\n }",
"private void paginaInicio(){\n jpnlPanelPrincilal.setLayout(null);\n jpnlPanelPrincilal.removeAll();\n jpnlPanelPrincilal.add(PaginaPrincipal.getInstance(),BorderLayout.CENTER);\n jpnlPanelPrincilal.validate();\n repaint();\n }",
"void iniciaPanel() {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tinfo[i][j] = new JLabel(\"\");\n\t\t\t\tinfo[i][j].setBorder(new LineBorder(new Color(0, 0, 0), 1, true));\n\t\t\t\tinfo[i][j].setOpaque(true);\n\t\t\t\tif(i==0) {\n\t\t\t\t\tinfo[i][j].setBackground(UIManager.getColor(\"List.selectionBackground\"));\n\t\t\t\t}\n\t\t\t\tif(i==1) {\n\t\t\t\t\tinfo[i][j].setBackground(Color.yellow);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(i==2) {\n\t\t\t\t\tinfo[i][j].setBackground(Color.blue);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(i==3) {\n\t\t\t\t\tinfo[i][j].setBackground(Color.red);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tif(i==4) {\n\t\t\t\t\tinfo[i][j].setBackground(Color.gray);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tpanel.add(info[i][j]);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\t\n\t\tinfo[0][0].setText(\"PROCESOS\");\n\t\tinfo[1][0].setText(\"P1\");\n\t\tinfo[2][0].setText(\"P2\");\n\t\tinfo[3][0].setText(\"P3\");\n\t\tinfo[4][0].setText(\"P4\");\n\t\tinfo[0][1].setText(\"TIEMPO DE ARRIBO/LLEGADA\");\n\t\tinfo[0][2].setText(\"RAFAGAS DE USO DEL CPU\");\n\t\t\n\t\t//llenado donde estara la simulacion\t\t\n\t\tfor (int i = 0; i < ns; i++) {\n\t\t\tfor (int j = 0; j < ms; j++) {\n\t\t\t\tsimulacion[i][j] = new JLabel(\"\");\n\t\t\t\tsimulacion[i][j].setBorder(new LineBorder(new Color(0, 0, 0), 1, true));\n\t\t\t\tsimulacion[i][j].setOpaque(true);\n\t\t\t\tsimulacion[i][j].setBackground(Color.WHITE);\n\t\t\t\tsimulacion[i][j].setVisible(false);\n\t\t\t\tsimulacion[i][j].setFont(fuente2);\n\t\t\t\tpanel_2.add(simulacion[i][j]);\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tllenainfo();\n\t\t\n\t}",
"public Inicio() {\n initComponents();\n iniciarModelos();\n }",
"public GUIPanelInicio() {\n initComponents();\n \n imagenP.setIcon(new ImageIcon(this.getClass().getResource(\"/img/principal2.png\")));\n }",
"@Override\n public void actionPerformed( ActionEvent e ) {\n setContentPanel( about2 );\n }",
"public pnl_Gestionar_info_laboratorio() {\n initComponents();\n listar_info_lab.setSelected(true);\n new CambiaPanel(panel_contenedor, new paneles_de_paneles.de_gestionar_info_laboratorio_listar());\n pnl_Gestionar_contrato.color_performed(listar_info_lab,add_info_lab);\n }",
"@Override\n public void setupPanel()\n {\n\n }",
"public Accueil() {\n initComponents();\n setLocationRelativeTo(null);\n desk.setLayout(new FlowLayout());\n jPanel1.setBackground(Color.white);\n //pane_search.setVisible(false);\n }",
"public ComprarJuego() {\n initComponents();\n setLocationRelativeTo(null);\n try {\n cargarNickJuegos();\n precio.setVisible(false);\n \n } catch (SQLException ex) {\n Logger.getLogger(ComprarJuego.class.getName()).log(Level.SEVERE, null, ex);\n }\n }",
"public Pantalla() {\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetBounds(100, 100, 600, 600);\n\t\tcontentPane = new JPanel();\n\t\tcontentPane.setBorder(new EmptyBorder(5, 5, 5, 5));\n\t\tsetContentPane(contentPane);\n\t\tcontentPane.setLayout(null);\n\n\t\t// creacion del MENU PANEL\n\t\tmenuPanel = new JPanel();\n\t\tmenuPanel.setBounds(10, 11, 221, 158);\n\t\tcontentPane.add(menuPanel);\n\t\tmenuPanel.setLayout(null);\n\n\t\t// Creacion del MENU Archivo\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\tsetJMenuBar(menuBar);\n\n\t\t// Creacion del MENU JUEGO\n\t\tJMenu NewMenuJuego = new JMenu(\"Juego\");\n\t\tmenuBar.add(NewMenuJuego);\n\n\t\t// Accion del MENU ITEM SALIR\n\t\tJMenuItem MenuItemSalir = new JMenuItem(\"Salir\");\n\t\tMenuItemSalir.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// Preguntamos al usuario se realmente desea salir de la partida\n\t\t\t\tint salir = JOptionPane.showConfirmDialog(null, \"Deseas finalizar el Juego? \", \"Salir\",\n\t\t\t\t\t\tJOptionPane.YES_NO_OPTION, JOptionPane.WARNING_MESSAGE);\n\n\t\t\t\tif (salir == 0) {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t} else\n\t\t\t\t\t;\n\t\t\t}\n\t\t});\n\t\tNewMenuJuego.add(MenuItemSalir);\n\n\t\t// Accion del NUEVO JUEGO ITEM\n\t\tJMenuItem MenuItemNuevoJuego = new JMenuItem(\"Nuevo Juego\");\n\t\tMenuItemNuevoJuego.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// llamamos al metodo de iniciar el juego\n\t\t\t\tMetodos.iniciarJuego();\n\n\t\t\t}\n\t\t});\n\t\tNewMenuJuego.add(MenuItemNuevoJuego);\n\n\t\t// Creacion del menu AYUDA\n\t\tJMenu NewMenuAyuda1 = new JMenu(\"Ayuda\");\n\t\tmenuBar.add(NewMenuAyuda1);\n\n\t\t// Creacion del MENU ITEM COMO JUGAR\n\t\tJMenuItem MenuItemComoJugar = new JMenuItem(\"Como jugar\");\n\t\tMenuItemComoJugar.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// indicamos las instrucciones del juego\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Instrucciones: \" + \"\\n1. Has de darle al boton iniciar juego \"\n\t\t\t\t\t\t+ \"\\n2. Aparecen los espacios de las letras de una palabra oculta \"\n\t\t\t\t\t\t+ \"\\n3. Has de adivinar la palabra pulsando en el teclado de palabras que hay abajo \"\n\t\t\t\t\t\t+ \"\\n4. Si te equivocas, el ahorcado se ira completando \"\n\t\t\t\t\t\t+ \"\\n5. Tienes 10 intentos antes de que se complete el ahorcado \"\n\t\t\t\t\t\t+ \"\\n6. Puedes usar las pistas las cuales te descubriran una letra, tienes una pista por partida\"\n\t\t\t\t\t\t+ \"\\n7. al principio del juego puedes elegir hasta 5 vidas, cada vez que solicitas una pista perderas una vida \"\n\t\t\t\t\t\t+ \"\\n8. cada vez que pierdes la partida, perderas una vida \");\n\n\t\t\t}\n\t\t});\n\t\tNewMenuAyuda1.add(MenuItemComoJugar);\n\n\t\t// Creacion del MENU ITEM ACERCA DE\n\t\tJMenuItem MenuItemAcercaDe = new JMenuItem(\"Acerca de \");\n\t\tMenuItemAcercaDe.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t// indicamos los creditos del juego\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Juego del Ahorcado creado en Java con Swing y AWT \"\n\t\t\t\t\t\t+ \"\\n \\nCreadores: \\nVictor Lozano, Cesar Torrelles, Giovanny Rodriguez\" + \"\\n Version 1.0\");\n\n\t\t\t}\n\t\t});\n\t\tNewMenuAyuda1.add(MenuItemAcercaDe);\n\n\t\t// Creacion del MENU ITEM PALABRAS, para poder introducir palabras en el\n\t\t// diccionario\n\t\tJMenuItem menuItemAñadirPalabras = new JMenuItem(\"Añadir palabras\");\n\t\tmenuItemAñadirPalabras.addActionListener(new ActionListener() {\n\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString palabra = JOptionPane.showInputDialog(null, \"Introduce una palabra nueva al diccionario\");\n\t\t\t\tlistaDiez.addElement(palabra.toUpperCase());\n\n\t\t\t\t// imprimimos la lista para poder verla\n\t\t\t\tSystem.out.println(listaDiez);\n\t\t\t}\n\t\t});\n\t\tNewMenuJuego.add(menuItemAñadirPalabras);\n\n\t\t// Creacion del BOTON para INICIAR EL JUEGO\n\t\t//\n\t\tbtnIniciarJuego = new JButton(\"Iniciar juego\");\n\t\tbtnIniciarJuego.setBounds(10, 11, 201, 55);\n\t\tmenuPanel.add(btnIniciarJuego);\n\n\t\t// creacion del BOTON PISTA\n\t\tbtnPista = new JButton(\"Pista\");\n\t\tbtnPista.setBounds(10, 77, 201, 55);\n\t\tmenuPanel.add(btnPista);\n\t\tbtnPista.setVisible(false);\n\n\t\t// evento click que da accion al boton\n\t\tbtnPista.addMouseListener(new MouseAdapter() {\n\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\n\t\t\t\tif (pista == 0) {\n\t\t\t\t\t// Pregunta si desea la pista a cambio de una vida\n\t\t\t\t\tpista = Metodos.darOpciones(eleccionPista,\n\t\t\t\t\t\t\t\"ADVERTENCIA: ¿Deseas perder una vida a cambio de una pista? \");\n\n\t\t\t\t\t// En caso de que si la desee sucede el codigo siguiente\n\t\t\t\t\tif (pista == 1) {\n\t\t\t\t\t\tfoto = foto + pista;\n\t\t\t\t\t\tMetodos.elegirImagen(foto);\n\n\t\t\t\t\t\t// Da la pista\n\t\t\t\t\t\tint i = 0;\n\t\t\t\t\t\tString pistaLetra;\n\n\t\t\t\t\t\tdo {\n\t\t\t\t\t\t\tpistaLetra = (palabraSecreta.getText().contains(palabra.substring(i, i + 1))) ? \"n\"\n\t\t\t\t\t\t\t\t\t: palabra.substring(i, i + 1);\n\t\t\t\t\t\t\ti++;\n\t\t\t\t\t\t} while (palabraSecreta.getText().contains(palabra.substring(i - 1, i - 1 + 1)));\n\t\t\t\t\t\tMetodos.compruebaLetra(pistaLetra);\n\n\t\t\t\t\t\t// Al dar la pista se consume una vida\n\t\t\t\t\t\tnumeroVidasElegido -= 1;\n\n\t\t\t\t\t\t// desaparece esa vida mediante el metodo \"numeroDeVidas\"\n\t\t\t\t\t\tMetodos.numeroDeVidas(numeroVidasElegido);\n\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\t// Si ya se ha consumido las ayudas de la partida aparecera el siguiente\n\t\t\t\t\t// mensaje:\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"No hay mas ayudas disponibles\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\t// Creacion de JPANELS TECLADO Y BOTONES\n\t\ttecladoPanel = new JPanel();\n\t\ttecladoPanel.setBounds(10, 361, 221, 189);\n\t\ttecladoPanel.setToolTipText(\"Teclado\");\n\t\tcontentPane.add(tecladoPanel);\n\t\ttecladoPanel.setLayout(null);\n\t\ttecladoPanel.setVisible(false);\n\n\t\tbtnA = new JButton(\"A\");\n\t\tbtnA.setBounds(0, 0, 39, 39);\n\t\ttecladoPanel.add(btnA);\n\n\t\tbtnB = new JButton(\"B\");\n\t\tbtnB.setBounds(38, 0, 39, 39);\n\t\ttecladoPanel.add(btnB);\n\n\t\tbtnC = new JButton(\"C\");\n\t\tbtnC.setBounds(74, 0, 39, 39);\n\t\ttecladoPanel.add(btnC);\n\n\t\tbtnD = new JButton(\"D\");\n\t\tbtnD.setBounds(110, 0, 39, 39);\n\t\ttecladoPanel.add(btnD);\n\n\t\tbtnE = new JButton(\"E\");\n\t\tbtnE.setBounds(147, 0, 39, 39);\n\t\ttecladoPanel.add(btnE);\n\n\t\tbtnF = new JButton(\"F\");\n\t\tbtnF.setBounds(183, 0, 39, 39);\n\t\ttecladoPanel.add(btnF);\n\n\t\tbtnG = new JButton(\"G\");\n\t\tbtnG.setBounds(0, 40, 39, 39);\n\t\ttecladoPanel.add(btnG);\n\n\t\tbtnH = new JButton(\"H\");\n\t\tbtnH.setBounds(38, 40, 39, 39);\n\t\ttecladoPanel.add(btnH);\n\n\t\tbtnI = new JButton(\"I\");\n\t\tbtnI.setBounds(74, 40, 39, 39);\n\t\ttecladoPanel.add(btnI);\n\n\t\tbtnJ = new JButton(\"J\");\n\t\tbtnJ.setBounds(110, 40, 39, 39);\n\t\ttecladoPanel.add(btnJ);\n\n\t\tbtnK = new JButton(\"K\");\n\t\tbtnK.setBounds(147, 40, 39, 39);\n\t\ttecladoPanel.add(btnK);\n\n\t\tbtnL = new JButton(\"L\");\n\t\tbtnL.setBounds(183, 40, 39, 39);\n\t\ttecladoPanel.add(btnL);\n\n\t\tbtnM = new JButton(\"M\");\n\t\tbtnM.setBounds(0, 78, 39, 39);\n\t\ttecladoPanel.add(btnM);\n\n\t\tbtnN = new JButton(\"N\");\n\t\tbtnN.setBounds(38, 78, 39, 39);\n\t\ttecladoPanel.add(btnN);\n\n\t\tbtnÑ = new JButton(\"Ñ \");\n\t\tbtnÑ.setBounds(74, 78, 39, 39);\n\t\ttecladoPanel.add(btnÑ);\n\n\t\tbtnO = new JButton(\"O\");\n\t\tbtnO.setBounds(110, 78, 39, 39);\n\t\ttecladoPanel.add(btnO);\n\n\t\tbtnP = new JButton(\"P\");\n\t\tbtnP.setBounds(147, 78, 39, 39);\n\t\ttecladoPanel.add(btnP);\n\n\t\tbtnQ = new JButton(\"Q\");\n\t\tbtnQ.setBounds(183, 78, 39, 39);\n\t\ttecladoPanel.add(btnQ);\n\n\t\tbtnR = new JButton(\"R\");\n\t\tbtnR.setBounds(0, 116, 39, 39);\n\t\ttecladoPanel.add(btnR);\n\n\t\tbtnS = new JButton(\"S\");\n\t\tbtnS.setBounds(38, 116, 39, 39);\n\t\ttecladoPanel.add(btnS);\n\n\t\tbtnT = new JButton(\"T\");\n\t\tbtnT.setBounds(74, 116, 39, 39);\n\t\ttecladoPanel.add(btnT);\n\n\t\tbtnU = new JButton(\"U\");\n\t\tbtnU.setBounds(110, 116, 39, 39);\n\t\ttecladoPanel.add(btnU);\n\n\t\tbtnV = new JButton(\"V\");\n\t\tbtnV.setBounds(147, 116, 39, 39);\n\t\ttecladoPanel.add(btnV);\n\n\t\tbtnW = new JButton(\"W\");\n\t\tbtnW.setBounds(183, 116, 39, 39);\n\t\ttecladoPanel.add(btnW);\n\n\t\tbtnX = new JButton(\"X\");\n\t\tbtnX.setBounds(61, 150, 39, 39);\n\t\ttecladoPanel.add(btnX);\n\n\t\tbtnY = new JButton(\"Y\");\n\t\tbtnY.setBounds(98, 150, 39, 39);\n\t\ttecladoPanel.add(btnY);\n\n\t\tbtnZ = new JButton(\"Z\");\n\t\tbtnZ.setBounds(134, 150, 39, 39);\n\t\ttecladoPanel.add(btnZ);\n\n\t\tbtnA.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnB.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnC.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnD.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnE.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnF.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnG.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnH.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnI.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnJ.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnK.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnL.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnM.setFont(new Font(\"Calibri\", Font.PLAIN, 6));\n\t\tbtnN.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnÑ.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnO.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnP.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnQ.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnR.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnS.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnT.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnU.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnV.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnW.setFont(new Font(\"Calibri\", Font.PLAIN, 6));\n\t\tbtnX.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnY.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\t\tbtnZ.setFont(new Font(\"Calibri\", Font.PLAIN, 8));\n\n\t\t// creacion del Panel donde va el boton PISTA\n\t\tpistasPanel = new JPanel();\n\t\tpistasPanel.setBounds(10, 182, 221, 158);\n\t\tcontentPane.add(pistasPanel);\n\t\tpistasPanel.setLayout(null);\n\n\t\t// creacion del Panel donde va la PALABRA SECRETA\n\t\tpalabraSecretaPanel = new JPanel();\n\t\tpalabraSecretaPanel.setBounds(10, 93, 201, 54);\n\t\tpistasPanel.add(palabraSecretaPanel);\n\t\tpalabraSecretaPanel.setLayout(null);\n\n\t\t// creacion de la etiqueta donde va la PALABRA SECRETA\n\t\tpalabraSecreta = new JLabel();\n\t\tpalabraSecreta.setFont(new Font(\"Tahoma\", Font.PLAIN, 18));\n\t\tpalabraSecreta.setBounds(10, 11, 181, 32);\n\t\tpalabraSecretaPanel.add(palabraSecreta);\n\n\t\t// creacion del panel de las VIDAS\n\t\tvidasPanel = new JPanel();\n\t\tvidasPanel.setBounds(10, 6, 205, 90);\n\t\tpistasPanel.add(vidasPanel);\n\t\tvidasPanel.setLayout(null);\n\t\tvidasPanel.setVisible(false);\n\n\t\t// creacion de la etiqueta de Intentos Fallidos\n\t\tintentosFallidos = new JLabel();\n\t\tintentosFallidos.setBounds(6, 2, 144, 22);\n\t\tvidasPanel.add(intentosFallidos);\n\n\t\t// Creacion de los Botones donde van las VIDAS\n\t\tvida1 = new JToggleButton(\"1\");\n\t\tvida1.setForeground(Color.RED);\n\t\tvida1.setBackground(Color.RED);\n\t\tvida1.setBounds(6, 26, 44, 22);\n\t\tvidasPanel.add(vida1);\n\n\t\tvida2 = new JToggleButton(\"2\");\n\t\tvida2.setBounds(76, 26, 44, 22);\n\t\tvidasPanel.add(vida2);\n\t\tvida2.setForeground(Color.RED);\n\t\tvida2.setBackground(Color.RED);\n\n\t\tvida3 = new JToggleButton(\"3\");\n\t\tvida3.setForeground(Color.RED);\n\t\tvida3.setBackground(Color.RED);\n\t\tvida3.setBounds(155, 26, 44, 22);\n\t\tvidasPanel.add(vida3);\n\n\t\tvida4 = new JToggleButton(\"4\");\n\t\tvida4.setForeground(Color.RED);\n\t\tvida4.setBackground(Color.RED);\n\t\tvida4.setBounds(41, 67, 44, 22);\n\t\tvidasPanel.add(vida4);\n\n\t\tvida5 = new JToggleButton(\"5\");\n\t\tvida5.setForeground(Color.RED);\n\t\tvida5.setBackground(Color.RED);\n\t\tvida5.setBounds(118, 67, 44, 22);\n\t\tvidasPanel.add(vida5);\n\n\t\t// creacion del PANEL DE LAS IMAGENES\n\t\timagenesPanel = new JPanel();\n\t\timagenesPanel.setBounds(241, 11, 333, 539);\n\t\tcontentPane.add(imagenesPanel);\n\t\timagenesPanel.setLayout(null);\n\t\timagenesPanel.setVisible(false);\n\n\t\t// creacion de la etiqueta de las IMAGENES\n\t\timagenLabel = new JLabel();\n\t\timagenLabel.setBounds(10, 11, 313, 517);\n\t\timagenesPanel.add(imagenLabel);\n\n\t\t// Creacion de un JLIST de palabras que el jugador debe acertar (NO ES VISIBLE)\n\t\tlist = new JList<String>();\n\t\tlistaDiez = new DefaultListModel<String>();\n\t\tlistaDiez.addElement(\"TARRAGONA\");\n\t\tlistaDiez.addElement(\"BARCELONA\");\n\t\tlistaDiez.addElement(\"LLEIDA\");\n\t\tlistaDiez.addElement(\"GIRONA\");\n\t\tlistaDiez.addElement(\"FUTBOL\");\n\t\tlistaDiez.addElement(\"BALONCESTO\");\n\t\tlistaDiez.addElement(\"MACARRONES\");\n\t\tlistaDiez.addElement(\"ALBONDIGAS\");\n\t\tlistaDiez.addElement(\"TECLADO\");\n\t\tlist.setModel(listaDiez);\n\t\tlist.setVisible(false);\n\t\tlist.setBounds(10, 170, 1, 1);\n\t\tcontentPane.add(list);\n\n\t}",
"public DividirConta() {\n initComponents();\n }",
"public void dibujar(JPanel panel);",
"public MundoJuego( JPanel panel ) {\r\n\t\tthis.panel = panel;\r\n\t}",
"public void controlInterfazPrincipal() {\n this.interfazPrincipal.setLocationRelativeTo(null);\n this.interfazPrincipal.setResizable(false);\n this.interfazPrincipal.setVisible(true);\n interfazPrincipal.btnClientes().addActionListener((ActionEvent ae) -> {\n pintarPanelPrincipal(panelClientes);\n });\n interfazPrincipal.btnUsuario().addActionListener((ActionEvent ae) -> {\n pintarPanelPrincipal(panelUsuarios);\n });\n interfazPrincipal.btnEquipos().addActionListener((ActionEvent ae) -> {\n pintarPanelPrincipal(panelEquipos);\n });\n\n }",
"public EjemplarUI() {\n initComponents();\n controlador = Controladores.peliculaController;\n }",
"public Component getPanelControl() {\n\t\tTableSorter sorterOperaciones = new TableSorter(modeloOperaciones);\n\t\tJTable tablaOperaciones = new JTable(sorterOperaciones);\n\t\tsorterOperaciones.setTableHeader(tablaOperaciones.getTableHeader());\n\t\tJScrollPane panelScrollDerecha = new JScrollPane(tablaOperaciones);\n\t\tpanelScrollDerecha.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelDerecha = new FakeInternalFrame(\"Log de Operaciones\", panelScrollDerecha);\n\n\t\tTableSorter sorterPrecios = new TableSorter(modeloPrecios);\n\t\tJTable tablaPrecios = new JTable(sorterPrecios);\n\t\tsorterPrecios.setTableHeader(tablaPrecios.getTableHeader());\n\t\ttablaPrecios.getColumn(tablaPrecios.getColumnName(1)).setCellRenderer(modeloPrecios.getRenderer());\n\n\t\tJScrollPane panelScrollIzqAbajo = new JScrollPane(tablaPrecios);\n\t\tpanelScrollIzqAbajo.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tpanelIzqAbajo = new FakeInternalFrame(\"Precios en bolsa\", panelScrollIzqAbajo);\n\n\t\t//panelSecundario = new JSplitPane(JSplitPane.VERTICAL_SPLIT, panelIzqAbajo, panelIzqArriba);\n\t\tpanelPrincipal = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, panelIzqAbajo, panelDerecha);\n\n\t\tpanelPrincipal.setDividerLocation(300);\n\t\t//panelSecundario.setDividerLocation(300);\n\n\t\tpanelIzqAbajo.setPreferredSize(new Dimension(250, 300));\n\t\tpanelDerecha.setPreferredSize(new Dimension(550, 600));\n\n\t\treturn panelPrincipal;\n\t}",
"public void iniciarPantalla() {\n actualizarCampos();\n _presentacion.setVisible(false);\n _opcionMultiple.setVisible(true);\n }",
"public MenuUtama() { \n initComponents();\n // setIconImage(new javax.swing.ImageIcon(getClass().getResource(\"/image/palito.jpg\")).getImage());\n getContentPane().add(deskPane,java.awt.BorderLayout.CENTER);\n \n ctrlAlert = new ctrlAlert(this);\n animasiStatusBar();\n setMenu(true);\n LoginUser();\n }",
"void zeigeFenster() {\r\n\t\t_panel.setVisible(true);\r\n\t}",
"public JPanelRegistro() {\n initComponents();\n jfcImagen.setFileFilter(filtro);\n jfcImagen.setDialogTitle(\"Seleccione una imagen\");\n jfcImagen.setAcceptAllFileFilterUsed(false);\n jlImagen.setBackground(Color.white);\n \n \n }",
"MenuPrincipal(String pLogin, String pUsuario)\t\r\n\t{\r\n\t\tsetTitle(\"Sistema de Gerenciamento de Estoque e Frente de Caixa - Não Fiscal\");\r\n\t\tsetSize(1100,700);\r\n\t\tsetLocationRelativeTo(null);\r\n\t\t\r\n\t\t// painel\r\n\t\t\r\n\t\tp1 = new JPanel();\r\n\t\tp1.setLayout(null);\r\n\t\tp1.setBackground(new Color(192,192,192));\r\n\t\tgetContentPane().add(p1);\r\n\t\t\r\n\t\t//recebendo parametro\r\n\t\t\r\n\t\tlogin = pLogin;\r\n\t\tusuario = pUsuario;\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//icone\r\n\t\ticone = new ImageIcon(\"Imagens/icon_sge.jpg\");\r\n\t\tsetIconImage(icone.getImage());\r\n\r\n\t\t\r\n\t\t//definindo imagem em JLabel\r\n\r\n\t\t\r\n\t\tiImagem = new ImageIcon(\"Imagens/logo_sge.png\");\r\n\r\n\t\tlImagem = new JLabel(iImagem);\r\n\t\t\r\n\t\tlImagem.setBounds(20,78,1040,526);\r\n\t\tp1.add(lImagem);\r\n\t\t\r\n\t\t\r\n\t\t// Data\r\n\t\t\r\n\t\tagora = new Date();\r\n\t\tdf = DateFormat.getDateInstance(DateFormat.FULL);\r\n\t\tdata = df.format(agora);\r\n\t\t\r\n\t\tlData = new JLabel(data);\r\n\t\t\r\n\t\tlData.setBounds(5,615,310,30);\r\n\t\tlData.setForeground(Color.white);\r\n\t\tlData.setFont(new Font(\"Arial\",Font.PLAIN,16));\r\n\t\tp1.add(lData);\r\n\t\t\r\n\t\t// usuario\r\n\t\t\r\n\t\tlUsuario = new JLabel(\"Usuário: \"+usuario);\r\n\t\tlUsuario.setFont(new Font(\"Arial\",Font.BOLD,16));\r\n\t\tlUsuario.setBounds(315,615,200,30);\r\n\t\tp1.add(lUsuario);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t// Estoque crítico e produtos indisponiveis\r\n\t\t\r\n\t\tlQuantidadeProdutosEstoqueCritico = new JLabel(\"Quantidade de Produtos em Estoque Crítico\");\r\n\t\tlQuantidadeProdutosEstoqueCritico.setBounds(10,10,250,20);\r\n\t\tp1.add(lQuantidadeProdutosEstoqueCritico);\r\n\t\t\r\n\t\t\r\n\t\ttQuantidadeProdutosEstoqueCritico = new JTextField();\t\r\n\t\ttQuantidadeProdutosEstoqueCritico.setBounds(10,30,100,30);\r\n\t\ttQuantidadeProdutosEstoqueCritico.setEditable(false);\r\n\t\tp1.add(tQuantidadeProdutosEstoqueCritico);\r\n\t\t\r\n\t\t\r\n\t\t// indisponiveis\r\n\t\tlQuantidadeProdutosIndisponiveis = new JLabel(\"Quantidade de Produtos Indisponíveis\");\r\n\t\tlQuantidadeProdutosIndisponiveis.setBounds(280,10,250,20);\r\n\t\tp1.add(lQuantidadeProdutosIndisponiveis);\r\n\t\t\r\n\t\t\r\n\t\ttQuantidadeProdutosIndisponiveis = new JTextField();\r\n\t\ttQuantidadeProdutosIndisponiveis.setBounds(280,30,100,30);\r\n\t\ttQuantidadeProdutosIndisponiveis.setEditable(false);\r\n\t\tp1.add(tQuantidadeProdutosIndisponiveis);\r\n\t\t\r\n\t\tbAtualizar = new JButton(\"Atualizar\");\r\n\t\tbAtualizar.addActionListener(this);\r\n\t\tbAtualizar.setBounds(515,30,100,30);\r\n\t\tp1.add(bAtualizar);\r\n\t\t\r\n\t\t\r\n\t\t// menu\r\n\t\t\r\n\t\tbarraMenu = new JMenuBar();\r\n\t\t\r\n\t\t\r\n\t\t//Instanciando JMenu e declarando Mnemonics\r\n\t\tcadastros = new JMenu(\"Cadastros\");\r\n\t\tcadastros.setMnemonic(KeyEvent.VK_C);\r\n\t\t\t\t\r\n\t\tvendas = new JMenu(\"Vendas\");\r\n\t\tvendas.setMnemonic(KeyEvent.VK_V);\r\n\t\t\r\n\t\tfinanceiro = new JMenu(\"Financeiro\");\r\n\t\tfinanceiro.setMnemonic(KeyEvent.VK_F);\r\n\t\t\r\n\t\trelatorios = new JMenu(\"Relatórios\");\r\n\t\trelatorios.setMnemonic(KeyEvent.VK_R);\r\n\t\t\r\n\t\tusuarios = new JMenu(\"Usuários\");\r\n\t\tusuarios.setMnemonic(KeyEvent.VK_U);\r\n\t\t\r\n\t\tmSair = new JMenu(\"Sair\");\r\n\t\tmSair.setMnemonic(KeyEvent.VK_S);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\t//Inserindo icones\r\n\t\t//Instanciando menuItens e declarando os ActionListener para esta classe\r\n\t\t//Declarando accelerator e mnemonic\r\n\t\tprodutos = new JMenuItem(\"Produtos\", new ImageIcon(\"Imagens/cad_pro.png\"));\r\n\t\tprodutos.addActionListener(this);\r\n\t\tprodutos.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_P, ActionEvent.ALT_MASK));\r\n\t\tprodutos.setMnemonic(KeyEvent.VK_P);\r\n\t\t\r\n\t\tclientes = new JMenuItem(\"Clientes\", new ImageIcon(\"Imagens/cad_cli.png\"));\r\n\t\tclientes.addActionListener(this);\r\n\t\tclientes.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_L, ActionEvent.ALT_MASK));\r\n\t\tclientes.setMnemonic(KeyEvent.VK_L);\r\n\t\t\r\n\t\tfornecedores = new JMenuItem(\"Fornecedores\", new ImageIcon(\"Imagens/cad_for.png\"));\r\n\t\tfornecedores.addActionListener(this);\r\n\t\tfornecedores.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F, ActionEvent.CTRL_MASK));\r\n\t\tfornecedores.setMnemonic(KeyEvent.VK_F);\r\n\t\t\r\n\t\tfuncionarios = new JMenuItem(\"Funcionários\", new ImageIcon(\"Imagens/cad_fun.png\"));\r\n\t\tfuncionarios.addActionListener(this);\r\n\t\tfuncionarios.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_U, ActionEvent.CTRL_MASK));\r\n\t\tfuncionarios.setMnemonic(KeyEvent.VK_U);\r\n\t\t\r\n\t\t\t\t\r\n\t\tvender = new JMenuItem(\"Vender\", new ImageIcon(\"Imagens/vender.png\"));\r\n\t\tvender.addActionListener(this);\r\n\t\tvender.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0));\r\n\t\t\r\n\t\tcaixaDoDia = new JMenuItem(\"Caixa do Dia\", new ImageIcon(\"Imagens/cx_dia.png\"));\r\n\t\tcaixaDoDia.addActionListener(this);\r\n\t\tcaixaDoDia.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_A, ActionEvent.ALT_MASK));\r\n\t\tcaixaDoDia.setMnemonic(KeyEvent.VK_A);\r\n\t\t\r\n\t\thistoricoVendas = new JMenuItem(\"Histórico de Vendas\", new ImageIcon(\"Imagens/historico.png\"));\r\n\t\thistoricoVendas.addActionListener(this);\r\n\t\thistoricoVendas.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_H, ActionEvent.ALT_MASK));\r\n\t\thistoricoVendas.setMnemonic(KeyEvent.VK_H);\r\n\t\t\r\n\t\tanaliticoVendas = new JMenuItem(\"Analítico de Vendas\", new ImageIcon(\"Imagens/analitico.png\"));\r\n\t\tanaliticoVendas.addActionListener(this);\r\n\t\tanaliticoVendas.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ActionEvent.ALT_MASK));\r\n\t\tanaliticoVendas.setMnemonic(KeyEvent.VK_N);\r\n\t\t\r\n\t\tcadastroUsuario = new JMenuItem(\"Cadastro de Usuário\", new ImageIcon(\"Imagens/cad_usu.png\"));\r\n\t\tcadastroUsuario.addActionListener(this);\r\n\t\tcadastroUsuario.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_D, ActionEvent.ALT_MASK));\r\n\t\tcadastroUsuario.setMnemonic(KeyEvent.VK_D);\r\n\t\t\r\n\t\ttrocarUsuario = new JMenuItem(\"Trocar Usuário\", new ImageIcon(\"Imagens/troca_usu.png\"));\r\n\t\ttrocarUsuario.addActionListener(this);\r\n\t\ttrocarUsuario.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_T, ActionEvent.ALT_MASK));\r\n\t\ttrocarUsuario.setMnemonic(KeyEvent.VK_T);\r\n\t\t\r\n\t\ttrocarSenha = new JMenuItem(\"Trocar Senha\", new ImageIcon(\"Imagens/troca_usu.png\"));\r\n\t\ttrocarSenha.addActionListener(this);\r\n\t\ttrocarSenha.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ActionEvent.ALT_MASK));\r\n\t\ttrocarSenha.setMnemonic(KeyEvent.VK_O);\r\n\t\t\r\n\t\tiSair = new JMenuItem(\"Sair\", new ImageIcon(\"Imagens/sair.png\"));\r\n\t\tiSair.addActionListener(this);\r\n\t\tiSair.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE,0));\r\n\t\tiSair.setMnemonic(KeyEvent.VK_ESCAPE);\r\n\t\t\r\n\t\t\r\n\t\t//Adicionando JMenuItem aos JMenu\r\n\t\tcadastros.add(produtos);\r\n\t\tcadastros.add(clientes);\r\n\t\tcadastros.add(fornecedores);\r\n\t\tcadastros.add(funcionarios);\r\n\t\t\r\n\t\t\r\n\t\tvendas.add(vender);\r\n\t\t\r\n\t\tfinanceiro.add(caixaDoDia);\r\n\r\n\t\t\r\n\t\r\n\t\trelatorios.add(historicoVendas);\r\n\t\trelatorios.add(analiticoVendas);\r\n\t\t\r\n\t\tusuarios.add(cadastroUsuario);\r\n\t\tusuarios.add(trocarUsuario);\r\n\t\tusuarios.add(trocarSenha);\r\n\t\t\r\n\t\tmSair.add(iSair);\r\n\t\t\r\n\t\t//Adicionando JMenu ao JMenuBar\r\n\t\tbarraMenu.add(cadastros);\r\n\t\tbarraMenu.add(vendas);\r\n\t\tbarraMenu.add(financeiro);\r\n\t\tbarraMenu.add(relatorios);\r\n\t\tbarraMenu.add(usuarios);\r\n\t\tbarraMenu.add(mSair);\r\n\t\t\r\n\t\t//Setando JMenuBAr\r\n\t\tsetJMenuBar(barraMenu);\r\n\t\t\r\n\t\tcarregaResultSet();\r\n\t\tsetandoAcessos();\r\n\t\t\r\n\t\tcarregarTextField();\r\n\t\t\r\n\t\t\r\n\t}",
"public JPanelStartMafiaGame() {\n initComponents();\n\n }",
"public PanelRadSaFakturom() {\n initComponents();\n srediFormu();\n }",
"public PanEditarCliente() {\r\n initComponents();\r\n }",
"private void initCom() {\n lbNome = new JLabel(\"Nome: \");\n lbSenha = new JLabel(\"Senha: \");\n txNome = new JTextField();\n txSenha = new JTextField();\n layout = new GridBagLayout();\n panelFormulario = new JPanel(layout);\n\n }",
"public void limpaFrameOperacoes ()\n {\n jPanelOperacoes.setVisible(true);\n jPanelPolinomios.setVisible(false);\n this.repaint();\n }",
"public CadastrarSabor() {\n\n initComponents();\n \n }",
"public LoginInicialJPanel() {\n initComponents();\n }",
"public MovimientoPantallaCocina() {\n initComponents();\n \n //COLOCAR FONOD EN LA PANTALLA PARA LA COCINA\n try{\n pnlOrdenes.setBorder(new ImagenCocina());\n } catch (IOException e){\n Logger.getLogger(MovimientoPantallaCocina.class.getName()).log(Level.SEVERE, null, e);\n }\n \n //VISUALIZAR TODAS LAS ORDENES ACTIVAS\n hilo p = new hilo(\"ordenes\");\n p.start();\n }",
"public void mostrar() {\n\t\tlimpiarCampos();\n\t\tthis.setVisible(true);\n\t}",
"public VehiculoMod(Controlador controlador) {\n\t\tsuper(controlador);\n\t\t\n\t\tinitPanelBajaModVehiculo();\n\t\t\n\t\tthis.setVisible(true);\n\t\tfixButtons();\n\t}",
"private void initProcess(){\n this.getScPanelFriends().getViewport().setOpaque(false);\n this.getScPanelTopics().getViewport().setOpaque(false);\n this.getCenterPanel().setSize(0,0);\n this.getEastPanel().setSize(1700,800);\n //Administrador inhabilitado por defecto hasta implementación\n this.getBtnAdmin().setEnabled(false);\n this.getMenuOption().setLocationRelativeTo(this);\n }",
"public AppoinmentPanel() {\n initComponents();\n }",
"public JPanelChuyen() {\n initComponents();\n thoiGianDao = new ThoiGianHoatDongDao();\n tbmChuyen = (DefaultTableModel) jtbChuyen.getModel();\n dpNgayBatDau.setEnabled(false);\n ChuyenDao.loadDSChuyenVaoBang(LopKetNoi.select(\"select * from Chuyen\"), tbmChuyen);\n }",
"public FrameNuevaCategoria() {\n initComponents();\n limpiar();\n }",
"public Main() {\n initComponents();\n//\tjMenu2.setVisible(false);\n fungsi.loncatCard(jPanel1, \"login\");\n\thmHari.clear();\n\thmHari.put(\"Senin\", \"Monday\");\n\thmHari.put(\"Selasa\", \"Tuesday\");\n\thmHari.put(\"Rabu\", \"Wednesday\");\n\thmHari.put(\"Kamis\", \"Thursday\");\n\thmHari.put(\"Jumat\", \"Friday\");\n\thmHari.put(\"Sabtu\", \"Saturday\");\n\thmHari.put(\"Minggu\", \"Sunday\");\n\thmHariK.clear();\n\thmHariK.put(\"Monday\", \"Senin\");\n\thmHariK.put(\"Tuesday\", \"Selasa\");\n\thmHariK.put(\"Wednesday\", \"Rabu\");\n\thmHariK.put(\"Thursday\", \"Kamis\");\n\thmHariK.put(\"Friday\", \"Jumat\");\n\thmHariK.put(\"Saturday\", \"Sabtu\");\n\thmHariK.put(\"Sunday\", \"Minggu\");\n }",
"public Principal() {\r\n initComponents();\r\n setLocationRelativeTo(null); \r\n panel_Compras = new Compras();\r\n panel_Ventas = new Ventas();\r\n }",
"public mainpagee() {\n initComponents();\n }",
"@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n PrincipalPanel = new javax.swing.JPanel();\n Titulo = new javax.swing.JLabel();\n Botão1 = new javax.swing.JButton();\n Botão2 = new javax.swing.JButton();\n EstatisticaPanel = new javax.swing.JPanel();\n Finalizar1 = new javax.swing.JButton();\n NivelPanel = new javax.swing.JPanel();\n TituloNivel = new javax.swing.JLabel();\n Nivel1 = new javax.swing.JRadioButton();\n Nivel2 = new javax.swing.JRadioButton();\n Nivel3 = new javax.swing.JRadioButton();\n SairButton = new javax.swing.JButton();\n ResultadoPanel = new javax.swing.JPanel();\n Sair = new javax.swing.JButton();\n RodadaPanel = new javax.swing.JPanel();\n Finalizar = new javax.swing.JButton();\n MostrarResultados = new javax.swing.JButton();\n AdicionarRespostas = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setLocationByPlatform(true);\n setSize(new java.awt.Dimension(1000, 1000));\n getContentPane().setLayout(new java.awt.CardLayout());\n\n PrincipalPanel.setOpaque(false);\n PrincipalPanel.setPreferredSize(new java.awt.Dimension(597, 349));\n\n Titulo.setFont(new java.awt.Font(\"augie\", 1, 26)); // NOI18N\n Titulo.setForeground(new java.awt.Color(255, 255, 255));\n Titulo.setText(\"Termo Desconhecido\");\n\n Botão1.setBackground(new java.awt.Color(255, 0, 51));\n Botão1.setFont(new java.awt.Font(\"Hobo Std\", 0, 16)); // NOI18N\n Botão1.setForeground(new java.awt.Color(255, 255, 255));\n Botão1.setActionCommand(\"Começar\");\n Botão1.setLabel(\"Começar\");\n Botão1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Botão1ActionPerformed(evt);\n }\n });\n\n Botão2.setBackground(new java.awt.Color(255, 0, 51));\n Botão2.setFont(new java.awt.Font(\"Hobo Std\", 0, 16)); // NOI18N\n Botão2.setForeground(new java.awt.Color(255, 255, 255));\n Botão2.setLabel(\"Histórico\");\n Botão2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Botão2ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout PrincipalPanelLayout = new javax.swing.GroupLayout(PrincipalPanel);\n PrincipalPanel.setLayout(PrincipalPanelLayout);\n PrincipalPanelLayout.setHorizontalGroup(\n PrincipalPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PrincipalPanelLayout.createSequentialGroup()\n .addGroup(PrincipalPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PrincipalPanelLayout.createSequentialGroup()\n .addGap(151, 151, 151)\n .addComponent(Botão1)\n .addGap(49, 49, 49)\n .addComponent(Botão2))\n .addGroup(PrincipalPanelLayout.createSequentialGroup()\n .addGap(132, 132, 132)\n .addComponent(Titulo)))\n .addContainerGap(178, Short.MAX_VALUE))\n );\n PrincipalPanelLayout.setVerticalGroup(\n PrincipalPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(PrincipalPanelLayout.createSequentialGroup()\n .addContainerGap(144, Short.MAX_VALUE)\n .addComponent(Titulo)\n .addGap(84, 84, 84)\n .addGroup(PrincipalPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Botão2, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(Botão1, javax.swing.GroupLayout.PREFERRED_SIZE, 40, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(46, 46, 46))\n );\n\n getContentPane().add(PrincipalPanel, \"card2\");\n\n EstatisticaPanel.setOpaque(false);\n EstatisticaPanel.setPreferredSize(new java.awt.Dimension(597, 349));\n\n Finalizar1.setBackground(new java.awt.Color(255, 0, 51));\n Finalizar1.setFont(new java.awt.Font(\"Hobo Std\", 0, 16)); // NOI18N\n Finalizar1.setForeground(new java.awt.Color(255, 255, 255));\n Finalizar1.setText(\"Menu\");\n Finalizar1.setToolTipText(\"\");\n Finalizar1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Finalizar1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout EstatisticaPanelLayout = new javax.swing.GroupLayout(EstatisticaPanel);\n EstatisticaPanel.setLayout(EstatisticaPanelLayout);\n EstatisticaPanelLayout.setHorizontalGroup(\n EstatisticaPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, EstatisticaPanelLayout.createSequentialGroup()\n .addContainerGap(343, Short.MAX_VALUE)\n .addComponent(Finalizar1)\n .addGap(181, 181, 181))\n );\n EstatisticaPanelLayout.setVerticalGroup(\n EstatisticaPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, EstatisticaPanelLayout.createSequentialGroup()\n .addContainerGap(277, Short.MAX_VALUE)\n .addComponent(Finalizar1)\n .addGap(47, 47, 47))\n );\n\n getContentPane().add(EstatisticaPanel, \"card5\");\n\n NivelPanel.setOpaque(false);\n NivelPanel.setPreferredSize(new java.awt.Dimension(597, 349));\n\n TituloNivel.setFont(new java.awt.Font(\"augie\", 1, 24)); // NOI18N\n TituloNivel.setForeground(new java.awt.Color(255, 255, 255));\n TituloNivel.setText(\"Escolher o nivel\");\n\n Nivel1.setFont(new java.awt.Font(\"augie\", 1, 18)); // NOI18N\n Nivel1.setForeground(new java.awt.Color(255, 255, 255));\n Nivel1.setText(\"Nivel 1\");\n Nivel1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Nivel1ActionPerformed(evt);\n }\n });\n\n Nivel2.setFont(new java.awt.Font(\"augie\", 1, 18)); // NOI18N\n Nivel2.setForeground(new java.awt.Color(255, 255, 255));\n Nivel2.setText(\"Nivel 2\");\n Nivel2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Nivel2ActionPerformed(evt);\n }\n });\n\n Nivel3.setFont(new java.awt.Font(\"augie\", 1, 18)); // NOI18N\n Nivel3.setForeground(new java.awt.Color(255, 255, 255));\n Nivel3.setText(\"Nivel 3\");\n Nivel3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n Nivel3ActionPerformed(evt);\n }\n });\n\n SairButton.setBackground(new java.awt.Color(255, 0, 51));\n SairButton.setFont(new java.awt.Font(\"Hobo Std\", 0, 16)); // NOI18N\n SairButton.setForeground(new java.awt.Color(255, 255, 255));\n SairButton.setLabel(\"Menu\");\n SairButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SairButtonActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout NivelPanelLayout = new javax.swing.GroupLayout(NivelPanel);\n NivelPanel.setLayout(NivelPanelLayout);\n NivelPanelLayout.setHorizontalGroup(\n NivelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(NivelPanelLayout.createSequentialGroup()\n .addGroup(NivelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(NivelPanelLayout.createSequentialGroup()\n .addGap(170, 170, 170)\n .addComponent(TituloNivel))\n .addGroup(NivelPanelLayout.createSequentialGroup()\n .addGap(229, 229, 229)\n .addGroup(NivelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(Nivel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(Nivel1)\n .addComponent(Nivel2))))\n .addContainerGap(224, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, NivelPanelLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(SairButton)\n .addGap(181, 181, 181))\n );\n NivelPanelLayout.setVerticalGroup(\n NivelPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(NivelPanelLayout.createSequentialGroup()\n .addGap(95, 95, 95)\n .addComponent(TituloNivel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(Nivel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Nivel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(Nivel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)\n .addComponent(SairButton)\n .addGap(47, 47, 47))\n );\n\n getContentPane().add(NivelPanel, \"card3\");\n\n ResultadoPanel.setOpaque(false);\n\n Sair.setBackground(new java.awt.Color(255, 0, 51));\n Sair.setFont(new java.awt.Font(\"Hobo Std\", 0, 16)); // NOI18N\n Sair.setForeground(new java.awt.Color(255, 255, 255));\n Sair.setLabel(\"Menu\");\n Sair.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n SairActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout ResultadoPanelLayout = new javax.swing.GroupLayout(ResultadoPanel);\n ResultadoPanel.setLayout(ResultadoPanelLayout);\n ResultadoPanelLayout.setHorizontalGroup(\n ResultadoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ResultadoPanelLayout.createSequentialGroup()\n .addContainerGap(343, Short.MAX_VALUE)\n .addComponent(Sair)\n .addGap(181, 181, 181))\n );\n ResultadoPanelLayout.setVerticalGroup(\n ResultadoPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, ResultadoPanelLayout.createSequentialGroup()\n .addContainerGap(277, Short.MAX_VALUE)\n .addComponent(Sair)\n .addGap(47, 47, 47))\n );\n\n getContentPane().add(ResultadoPanel, \"card6\");\n\n RodadaPanel.setOpaque(false);\n RodadaPanel.setPreferredSize(new java.awt.Dimension(597, 349));\n\n Finalizar.setBackground(new java.awt.Color(255, 0, 51));\n Finalizar.setFont(new java.awt.Font(\"Hobo Std\", 0, 16)); // NOI18N\n Finalizar.setForeground(new java.awt.Color(255, 255, 255));\n Finalizar.setLabel(\"Menu\");\n Finalizar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n FinalizarActionPerformed(evt);\n }\n });\n\n MostrarResultados.setBackground(new java.awt.Color(255, 0, 51));\n MostrarResultados.setFont(new java.awt.Font(\"Hobo Std\", 0, 16)); // NOI18N\n MostrarResultados.setForeground(new java.awt.Color(255, 255, 255));\n MostrarResultados.setToolTipText(\"\");\n MostrarResultados.setEnabled(false);\n MostrarResultados.setLabel(\"Resultado\");\n MostrarResultados.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n MostrarResultadosActionPerformed(evt);\n }\n });\n\n AdicionarRespostas.setBackground(new java.awt.Color(255, 0, 51));\n AdicionarRespostas.setFont(new java.awt.Font(\"Hobo Std\", 0, 16)); // NOI18N\n AdicionarRespostas.setForeground(new java.awt.Color(255, 255, 255));\n AdicionarRespostas.setText(\"Responder\");\n AdicionarRespostas.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n AdicionarRespostasActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout RodadaPanelLayout = new javax.swing.GroupLayout(RodadaPanel);\n RodadaPanel.setLayout(RodadaPanelLayout);\n RodadaPanelLayout.setHorizontalGroup(\n RodadaPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(RodadaPanelLayout.createSequentialGroup()\n .addGap(109, 109, 109)\n .addComponent(AdicionarRespostas)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(MostrarResultados)\n .addGap(18, 18, 18)\n .addComponent(Finalizar)\n .addContainerGap(181, Short.MAX_VALUE))\n );\n RodadaPanelLayout.setVerticalGroup(\n RodadaPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(RodadaPanelLayout.createSequentialGroup()\n .addGap(282, 282, 282)\n .addGroup(RodadaPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Finalizar)\n .addComponent(MostrarResultados, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(AdicionarRespostas))\n .addGap(47, 47, 47))\n );\n\n AdicionarRespostas.getAccessibleContext().setAccessibleParent(RodadaPanel);\n\n getContentPane().add(RodadaPanel, \"card4\");\n\n setSize(new java.awt.Dimension(613, 388));\n setLocationRelativeTo(null);\n }",
"public CadastrarNota() {\n initComponents();\n setLocationRelativeTo(this);\n setTitle(\"Cadastro de Alunos\");\n setResizable(false);\n Atualizar();\n }",
"public asignatura() {\n initComponents();\n }",
"public void updateInicioAdmin(PanelInicioAdmin panel) {\n \tcontentPane.remove(inicioAdmin);\n \tinicioAdmin = panel;\n \tcontroladorAdmin(contMain);\n \tcontroladorHome(contMain);\n \tinicioAdmin.setProyectosButton();\n \tinicioAdmin.getTabla().clearSelection();\n \tcontentPane.add(inicioAdmin, \"inicioAdmin\");\n }",
"public Conteo() {\n initComponents();\n }"
] |
[
"0.7956113",
"0.76696116",
"0.7519152",
"0.75176",
"0.74727714",
"0.74727714",
"0.7443971",
"0.74399316",
"0.741614",
"0.73915064",
"0.720729",
"0.7192507",
"0.717896",
"0.71559256",
"0.71317524",
"0.71291876",
"0.7116179",
"0.7112433",
"0.71052504",
"0.7093934",
"0.7078762",
"0.70778584",
"0.7055412",
"0.70531124",
"0.7038288",
"0.7030511",
"0.7025822",
"0.70011026",
"0.6998721",
"0.699214",
"0.6988098",
"0.6944509",
"0.69405824",
"0.69383955",
"0.6935504",
"0.6927756",
"0.6921336",
"0.69040024",
"0.6902976",
"0.68912816",
"0.6890206",
"0.68886715",
"0.6887379",
"0.6886937",
"0.68733364",
"0.68732804",
"0.6869336",
"0.68646085",
"0.6863221",
"0.6853673",
"0.6832605",
"0.68288124",
"0.6812694",
"0.6810937",
"0.68107873",
"0.6808462",
"0.6797664",
"0.6795596",
"0.67810845",
"0.67769647",
"0.67765605",
"0.6772512",
"0.67708564",
"0.67640907",
"0.67601347",
"0.6759205",
"0.6754774",
"0.6752152",
"0.6742046",
"0.6741314",
"0.6739664",
"0.6733302",
"0.6729033",
"0.6723175",
"0.67222464",
"0.67215264",
"0.6718899",
"0.6718315",
"0.67028326",
"0.6701855",
"0.67008376",
"0.6697932",
"0.66965705",
"0.6694263",
"0.66852945",
"0.66831666",
"0.6678951",
"0.6676852",
"0.6673495",
"0.6672287",
"0.6669947",
"0.6665988",
"0.6664154",
"0.66584677",
"0.6657657",
"0.6657131",
"0.66547316",
"0.66410536",
"0.6640867",
"0.66342354"
] |
0.7416306
|
8
|
static int i = 1;
|
@Override
public Productor getProductor() {
return new ProductorImp1();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"StaticVariable(){\n count++;//incrementing the value of static variable\n System.out.println(count);\n }",
"static void m1(int a){\n\t\ta=Static11.a;\nSystem.out.println(a);\n\t}",
"extern(int i) {\n var = i;\n }",
"p3(){ \n cnt++; // Increment the static variable by 1 for each object creation. \n }",
"public int i() {\n \treturn i; \n }",
"static int getInt(){\n return j;\n }",
"static void dosomething(Integer i) {\n i = 500;\n }",
"private static void staticFun()\n {\n }",
"void mo88773a(int i);",
"static void doCount(){\n\t\tStaticDemo st=new StaticDemo();\n\t\t st.count++;\n\t\t System.out.println(\"Count is:\"+st.count);\n\t }",
"private static void setCounter() {++counter;}",
"public int geti(){\r\n return i;\r\n}",
"public static void main(String[] args) {\n\t\t\n\t\tMyStatic.x += 5;\n\t\tMyStatic.x += 5;\n\t\tSystem.out.println(MyStatic.x);//block static only run one time\n\t\t\t\n\t}",
"public void setStatic() {\r\n\t\tthis.isStatic = true;\r\n\t}",
"void m15858a(int i);",
"public void someMethod() {\n\t\tint localInt = ExampleDriver.counter;\n\t\t//int localInt2 = ExampleDriver.nonStaticCounter;\n\t\tExampleDriver exampleDriver = new ExampleDriver();\n\t\tint localInt2 = exampleDriver.nonStaticCounter;\n\t}",
"private final void i() {\n }",
"static int test()\n\t{\n\n\t\treturn 20;\n\t}",
"void mo1747a(int i);",
"public static int getCounter() {return counter;}",
"void mo26876a(int i);",
"public void mo5332a(int i) {\n }",
"public int nonStatic( int x ) {\n return x * 3;\n }",
"void mo66998a(int i);",
"public static void main(String[] args) {\n\tThree4 t4 = new Three4();\n\tSystem.out.println(t4.i); //static var can be accessed by ref var but warn, when run <t4> is replaced by <class-name>\n\tSystem.out.println(i);\n\tSystem.out.println(Three4.i);\n\t\n}",
"void mo54447l(int i);",
"public final void mo31283a(int i) {\n this.f13976a.lock();\n try {\n this.f13977b = i;\n } finally {\n this.f13976a.unlock();\n }\n }",
"void mo3767a(int i);",
"public static int nextInt() {\n\treturn 0;\r\n}",
"public void foo() {\n\tint j;\n\tint jj = 0;\n\t// System.out.println(i); Will not compile; local variables must be initialized\n\tSystem.out.println(jj);\n }",
"public static void isStatic() {\n\n }",
"final public boolean isStatic ()\n {\n\treturn myIsStatic;\n }",
"void mo62991a(int i);",
"public void mo3350a(int i) {\n }",
"void mo38565a(int i);",
"void mo17022c(int i);",
"public static void main(String[] args) {\n\t\tStaticMethodTest obj3 = new StaticMethodTest();\n\t\t//obj1.i = 2;\n\t\tSystem.out.println(obj3.i);\n\n\t}",
"void mo17016a(int i);",
"void mo6247nm(int i);",
"void m(int i) {\r\n\t}",
"private static int m39634a(C13460a aVar, int i) {\n return (aVar.hashCode() * 31) + i;\n }",
"void mo17007a(int i);",
"private void m80391a(int i) {\n if (i == 3) {\n UnreadCountRepository.m111937l().mo101892c();\n }\n }",
"public interface AbstractC4464qo0 extends AbstractC3313k30 {\n public static final /* synthetic */ int v = 0;\n}",
"void mo37668e(int i);",
"public static void bi() {\n\t}",
"public final void mo74760a(C29296g gVar, int i) {\n }",
"private SingletonClass() {\n x = 10;\n }",
"public int mo4307b(int i) {\n return 1;\n }",
"public final void mo5394iy(int i) {\n }",
"void mo1761g(int i);",
"public TestMe()\r\n/* 11: */ {\r\n/* 12:10 */ this.myNumber = (instanceCounter++);\r\n/* 13: */ }",
"void mo32046rn(int i);",
"static void init() {}",
"public void mo44231a(int i) {\n }",
"void mo54452q(int i);",
"private final int initializeInt() {\n\t\treturn 0;\r\n\t}",
"public void whoAmI(int i) {\n crossOrZero = i;\n }",
"void mo1753b(int i);",
"void mo54406a(int i);",
"static void test1(){\n\t\n\t}",
"@SuppressWarnings(\"UnusedDeclaration\")\n public static void __staticInitializer__() {\n }",
"public static void setInsta(boolean i) {\n insta = i;\n }",
"public void mo32111rr(int i) {\n }",
"void mo1494c(int i);",
"public void a(i iVar) {\n }",
"public default boolean isStatic() {\n\t\treturn false;\n\t}",
"public void test(int i) {\n\t\tSystem.out.println(\"int primitive\");\n\t}",
"void mo122221a(int i);",
"private static long getGlobalId() {\n return globalId++;\n }",
"public final void mo91947k(int i) {\n }",
"static void checkPrime(){\n\t\tint n1=78;\r\n\t}",
"void mo1485a(int i);",
"private static void m119221d(int i) {\n if (m119219c(i)) {\n File a = m119211a(i);\n if (a != null && a.exists()) {\n C1592h.m7853a((Callable<TResult>) new C37078h<TResult>(a));\n }\n }\n }",
"public final void mo91727g(int i) {\n }",
"void mo1754c(int i);",
"public myCounter() {\n\t\tcounter = 1;\n\t}",
"public abstract long i();",
"public long getI() {\n return i;\n }",
"interface I1 {\n long NOW = TestInterfaceSetOne.writableStaticField = getTime();\n DefaultInterfaceMethodWithStaticInitializer C = RECORDER.register(I1.class);\n\n default int defaultM1() {\n return 1;\n }\n }",
"public void mo3835s(int i) {\n this.f1452aa = i;\n }",
"void mo25956a(int i);",
"void mo54436d(int i);",
"private Index(int i) {\r\n _value = i;\r\n }",
"void mo1755d(int i);",
"public static int getIdcounter() {\n return idcounter;\n }",
"void mo27576a(int i);",
"private static int testOne(){\n var var = 10;\n return var;\n }",
"public void set(int i) {\n }",
"public synchronized float i() {\n return this.i;\n }",
"private SchedulerThreadCounter()\n\t{\n\t\tii_counter = 100;\n\t}",
"void mo3796b(int i);",
"public int g()\r\n {\r\n return 1;\r\n }",
"public static void main(String[] args) {\n int i=12;\n i=i++;\n System.out.println(i);\n }",
"void mo54437e(int i);",
"void mo54446k(int i);",
"public boolean isStatic() {\n return isStatic;\n }",
"public static void t(){\n\n\n }",
"public IntToIntMap getStaticMap() {\n return staticMap;\n }",
"public boolean isStatic() {\n\t\treturn (access & Opcodes.ACC_STATIC) != 0;\n\t}",
"long getI();"
] |
[
"0.6917549",
"0.65570295",
"0.65340894",
"0.6532999",
"0.64245045",
"0.6331412",
"0.6326155",
"0.5970205",
"0.59431094",
"0.5932222",
"0.5924848",
"0.5906525",
"0.5879794",
"0.5813857",
"0.58075416",
"0.5802136",
"0.5793288",
"0.5761332",
"0.5729236",
"0.5724516",
"0.56835455",
"0.5670426",
"0.5653344",
"0.5653237",
"0.5645955",
"0.56149435",
"0.5595047",
"0.5590454",
"0.55832654",
"0.55801517",
"0.55791515",
"0.5568946",
"0.5554085",
"0.5533683",
"0.5533428",
"0.5533159",
"0.5532967",
"0.55227476",
"0.55212235",
"0.54962003",
"0.54693043",
"0.5462016",
"0.546201",
"0.54578",
"0.5442031",
"0.5441586",
"0.54380447",
"0.5430019",
"0.5428419",
"0.54157466",
"0.5408658",
"0.53989923",
"0.5392305",
"0.53920895",
"0.5391553",
"0.53877956",
"0.537967",
"0.53793836",
"0.5379324",
"0.5376703",
"0.5373058",
"0.5364438",
"0.53629285",
"0.5351642",
"0.53395283",
"0.5336224",
"0.5327402",
"0.53136027",
"0.5312373",
"0.53112185",
"0.5307667",
"0.53027946",
"0.52974474",
"0.52906376",
"0.5278612",
"0.5268896",
"0.52658105",
"0.52645177",
"0.5261166",
"0.52549124",
"0.52539784",
"0.52532166",
"0.52482224",
"0.5242148",
"0.52375484",
"0.5227826",
"0.5225473",
"0.5221963",
"0.52140903",
"0.5214077",
"0.5212278",
"0.5212252",
"0.52114105",
"0.5205865",
"0.51979655",
"0.5196024",
"0.5194447",
"0.51935005",
"0.5190165",
"0.51852083",
"0.5185023"
] |
0.0
|
-1
|
method to categorize method of class into proper blocks
|
public void categorizeMethods(Map<String, ContainerClassCU> containerClassCUMap, String block) {
logger.info("starts to categorize methods into block with " + block + "...");
containerClassCUMap.entrySet()
.stream().
filter(y -> !y.getValue().getBelongToBlocks().equals(""))
.forEach(y -> {
List<MethodDeclaration> methodClassList;
methodClassList = y.getValue().getMethodDeclarations();
methodClassList.forEach(z -> categorizeMethod(z, y.getValue(), block, containerClassCUMap));
});
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Snippet visit(MethodDeclaration n, Snippet argu) {\n\t\t Snippet _ret=null;\n\t\t\ttPlasmaCode = \"\";\n\t n.nodeToken.accept(this, argu);\n\t n.nodeToken1.accept(this, argu);\n\t Snippet f2 = n.returnType.accept(this, argu);\n\t String tempString = \"\";\n\t\t\tif(f2 != null){\n\t\t\t\t//System.out.println(\" \"+f2.expType+\" \"+f2.returnTemp);\n\t\t\t\ttempString = f2.expType.typeName;\n\t\t\t}else{\n\t\t\t\ttempString = \"void \";\n\t\t\t}\n\t Snippet f3 = n.identifier.accept(this, argu);\n\t String methodName = f3.expType.getTypeName();\n\t memberSig = new MethodSignature();\n\t\t\tmemberSig.methodName = methodName;\n\t\t\tcurrentMethod = currentClass.methods.get(methodName);\n\t\t\t\n\t\t\t\n\t\t\ttempCounter = tempZero;\n\t\t\tblockId = 1;\n\t\t\tcurrentBlock = 1;\n\t n.nodeToken2.accept(this, argu);\n\t Snippet f5 = n.nodeOptional.accept(this, argu);\n\t // n.nodeToken3.accept(this, argu);\n\t memberSig = null;\n\t\t\tblockId = 0;\n\t\t\tcurrentBlock = 0;\n\t\t\t\n\t\t\tString tempFormal = \"\";\n\t\t\tif(f5 != null){\n\t\t\t\ttempFormal = f5.returnTemp+\",\";\n\t\t\t}else{\n\t\t\t\ttempFormal = \"\";\n\t\t\t}\n\t\t\t\n\t\t\ttempString+=\" \"+methodName+\" \"+\"( \"+tempFormal+\" int myUniquePlacePoint)\";\n\t\t\t\n\t\t\ttPlasmaCode += \"public static \"+tempString+\"\\n\";\n\t\t\t//String placeCheckString = \"final HashMap<Integer, HashSet<Integer>> globalPointerHashMap = new final HashMap<Integer, HashSet<Integer>>(4)\";\n\t\t\t//placeCheckString += \"final int maxPlaces = 4; \\n for(int i =0; i <maxPlaces; ++i){globalPointerHashMap.put(i, new HashSet<Integer>());}\";\n\t\t\tn.block.accept(this, argu);\n\t currentClassBody.methods += tPlasmaCode;\n\t\t\ttPlasmaCode = \"\";\n\t return _ret;\n\t }",
"public void smell() {\n\t\t\n\t}",
"@Override\r\n\tpublic void visit(BlockExpression blockExpression) {\n\r\n\t}",
"@Override\r\n\tpublic void visit(InstrumentBlock instrumentBlock) {\n\t\t\r\n\t}",
"public Snippet visit(MethodCallInConstructor n, Snippet argu) {\n\t Snippet _ret= new Snippet(\"\",\"\",null,false);\n\t String className = \"NEED TO PUT CLASS NAME\";\n\t n.nodeToken.accept(this, argu);\n\t String methodName = n.identifier.accept(this, argu).expType.getTypeName();\n\t this.identifierList = new ArrayList<String>(0);\n\t\t\tidentifierList.add(\"this\");\n\t n.nodeToken1.accept(this, argu);\n\t n.nodeToken2.accept(this, argu);\n\t n.nodeOptional.accept(this, argu);\n\t n.nodeToken3.accept(this, argu);\n\t SymbolTableClassEntry stce = classSymbolTable.get(className);\n\t\t\tSymbolTableMethodEntry stme = stce.methods.get(methodName);\n\t\t\tSnippet retExp = new Snippet(\"\", \"\", stme.returnType, false);\n\t\t\tretExp.returnTemp = className + \".\" + methodName + \"(\";\n\t\t\tint i = 0;\n\t\t\tfor(String str : identifierList)\n\t\t\t{\n\t\t\t\tif(i==0)\n\t\t\t\t\tretExp.returnTemp += str;\n\t\t\t\telse\n\t\t\t\t\tretExp.returnTemp += \", \" + str;\n\t\t\t\ti++;\n\t\t\t}\n\t\t\tString toAdd =\"\";\n\t\t\t//if(!classes.containsKey(className)){\n\t\t\tif(!inAsync){\n\t\t\t\tif(i>0){\n\t\t\t\t\ttoAdd+=\",\";\n\t\t\t\t}\n\t\t\t\ttoAdd+=\"myUniquePlacePoint\";\n\t\t\t}else{\n\t\t\t\t\n\t\t\t\tif(i>0){\n\t\t\t\t\ttoAdd+=\",\";\n\t\t\t\t}\n\t\t\t\ttoAdd+=asyncPoint+\"\";\n\t\t\t}\n\t\t\t//}\n\t\t\tretExp.returnTemp +=toAdd+ \")\";\n\t return retExp;\n\t }",
"@Override\n\tpublic Void visit(Block block) {\n\t\tprintIndent(\"block\");\n\t\tindent++;\n\t\tfor (var v : block.content) \n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}",
"@Test\n public void parseMethodsAtMethodLevelExtractInnerMethodAsSeparateMethod() {\n // given\n Python3MethodParser python3MethodParser = new Python3MethodParser();\n URL url = getClass().getClassLoader().getResource(\"crest/siamese/language/python3/renderer_human.py\");\n if (url == null) {\n fail(\"Resource not found, please check input to getResource().\");\n }\n String filePath = url.getPath();\n python3MethodParser.configure(filePath, \"\", \"METHOD-LEVEL\", false);\n\n // when\n ArrayList<Method> methods = python3MethodParser.parseMethods();\n Method method = methods.get(1);\n String expectedName = \"decorator\";\n String expectedSourceCode = \"def decorator ( func ) :\\n\" +\n \"\\treturn _with_lock\\n\";\n int expectedStartLine = 58;\n int expectedEndLine = 63;\n List<Parameter> expectedParams = Collections.singletonList(new Parameter(StringUtils.EMPTY, \"func\"));\n String expectedHeader = \"def decorator(func):\";\n\n // then\n assertThat(method.getFile(), is(filePath));\n assertThat(method.getMethodPackage(), is(emptyString()));\n assertThat(method.getClassName(), is(emptyString()));\n assertThat(method.getName(), is(expectedName));\n assertThat(method.getComment(), is(emptyString()));\n assertThat(method.getSrc(), is(expectedSourceCode));\n assertThat(method.getStartLine(), is(expectedStartLine));\n assertThat(method.getEndLine(), is(expectedEndLine));\n assertThat(method.getParams(), is(expectedParams));\n assertThat(method.getHeader(), is(expectedHeader));\n }",
"public static BlockExpression block(Class clazz, Iterable<Expression> expressions) { throw Extensions.todo(); }",
"public static BlockExpression block(Class clazz, Expression[] expressions) { throw Extensions.todo(); }",
"@Override\n\tpublic Void visit(OwnMethodCall method) {\n\t\tprintIndent(\"implicit dispatch\");\n\t\tindent++;\n\t\tmethod.methodName.accept(this);\n\t\tfor (var v : method.args) \n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}",
"public interface Block5<A, B, C, D, E, R> {\n\n /**\n * Invokes this block.\n * \n * @param a block argument number 1.\n * @param b block argument number 2.\n * @param c block argument number 3.\n * @param e block argument number 5.\n * @return the block return value.\n */\n @Mapping(\"run:param:param:param:param:\")\n R run(A a, B b, C c, D d, E e);\n}",
"public void visitHelper(Statement stmt, List<Breakpoints> collector) {\n\t\tString className = stmt.findAncestor(ClassOrInterfaceDeclaration.class).get().getNameAsString();\n\t\tString methodName = stmt.findAncestor(MethodDeclaration.class).get().getNameAsString();\n\t\tint begin = stmt.getRange().get().begin.line;\n\t\tint end = stmt.getRange().get().end.line;\n\t\t// add features to collector\n\t\tcollector.add(new Breakpoints(begin, end, className, methodName));\n\t}",
"@Override\n\tpublic Void visit(MethodCall method) {\n\t\tprintIndent(\".\");\n\t\tindent++;\n\t\tmethod.caller.accept(this);\n\t\tmethod.type.accept(this);\n\t\tmethod.methodName.accept(this);\n\t\tfor (var v : method.args) \n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}",
"protected void checkMethods(DetailAST aAST)\n {\n final DetailAST objBlock = aAST.findFirstToken(TokenTypes.OBJBLOCK);\n if (objBlock != null) {\n DetailAST child = (DetailAST) objBlock.getFirstChild();\n while (child != null) {\n if (child.getType() == TokenTypes.METHOD_DEF) {\n checkMethod(child, \"create\", \"javax.ejb.CreateException\");\n checkMethod(child, \"find\", \"javax.ejb.FinderException\");\n }\n child = (DetailAST) child.getNextSibling();\n }\n }\n }",
"public void wrap(CtClass clazz, Collection methodInfos) throws Exception\n {\n for (Iterator iterator = methodInfos.iterator(); iterator.hasNext();)\n {\n org.jboss.aop.MethodInfo methodInfo = (org.jboss.aop.MethodInfo) iterator.next();\n Method method = methodInfo.getAdvisedMethod();\n AOPClassPool classPool = (AOPClassPool) clazz.getClassPool();\n Class[] parameterTypes = method.getParameterTypes();\n CtClass[] javassistParameterTypes = new CtClass[parameterTypes.length];\n for (int i = 0; i < parameterTypes.length; i++)\n {\n classPool.getLocally(parameterTypes[i].getName());\n }\n if (method.getName().indexOf(\"access$\") >= 0)\n {\n continue;\n }\n \n String wrappedName = ClassAdvisor.notAdvisedMethodName(clazz.getName(), method.getName());\n CtMethod wmethod = clazz.getDeclaredMethod(method.getName(), javassistParameterTypes);\n if (wrapper.isNotPrepared(wmethod, WrapperTransformer.SINGLE_TRANSFORMATION_INDEX))\n {\n continue;\n }\n MethodTransformation trans = new MethodTransformation(\n instrumentor,\n clazz,\n clazz.getDeclaredMethod(wrappedName, javassistParameterTypes),\n method.getName(),\n clazz.getDeclaredMethod(method.getName(), javassistParameterTypes),\n wrappedName);\n \n // wrap\n wrapper.wrap(trans.getWMethod(), WrapperTransformer.SINGLE_TRANSFORMATION_INDEX);\n // executeWrapping\n String methodInfoFieldName = getMethodInfoFieldName(trans.getOriginalName(), trans.getHash());\n doWrap(trans, methodInfoFieldName);\n }\n }",
"@Override\n\tpublic void visitTryCatchBlock(Label start, Label end, Label handler, String type) {\n\t\tif (!classAdapter.ignoredClasses.contains(\"L\" + type + \";\") && (type != null)) {\n\t\t\tclassAdapter.dependencies.add(new Dependency(\"L\"+type+\";\", modifier, Dependency.methodBodyDependency));\n\t\t}\n\t\tmv.visitTryCatchBlock(start, end, handler, type);\n\t}",
"public void testMethodInfo888() throws Exception {\n\t\tClassInfo var2785 = instantiateClassInfo430();\n\t\tFieldInfo var2786 = instantiateFieldInfo429();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2787 = new MethodInfo(var2785, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2785.getSetters();\n\t\tvar2787.isSetter();\n\t\tvar2787.isSetter();\n\t}",
"@Override\n\tpublic Void visit(Method method) {\n\t\tprintIndent(\"method\");\n\t\tindent++;\n\t\tmethod.id.accept(this);\n\t\tfor (var v : method.formals)\n\t\t\tv.accept(this);\n\t\tmethod.type.accept(this);\n\t\tmethod.body.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}",
"void emitMethod (ClassMember m) {\r\n Emitter.emitln ();\r\n\t\r\n MethodType mt = (MethodType) m.getType ();\r\n ExpressionList args = mt.getArguments ();\r\n\t\r\n /* emit variable for arguments */\r\n \r\n for (int j = 0, arg_size = args.size (); j < arg_size; j++) {\r\n Identifier a = (Identifier) args.get (j);\r\n Emitter.emit (a.getType () + \" \");\r\n emitArg (method_number, j, a);\r\n Emitter.emitln (\";\");\r\n }\r\n Emitter.emitln ();\r\n \r\n /* emit methods */\r\n Emitter.emit (m.modifiers ());\r\n Emitter.emit (mt);\r\n \r\n /* emit method body */\r\n Emitter.emit (\"{\");\r\n Emitter.indentPush ();\r\n \r\n Emitter.emitln ();\r\n Emitter.emitln (\"enter ();\");\r\n\r\n Emitter.emit (\"try {\");\r\n Emitter.indentPush ();\r\n \r\n if (m.isOnce ()) \r\n mt.emitOnceBefore (method_number);\r\n\r\n Emitter.emitln ();\r\n Emitter.emitln (\"part = \" + part_no + \";\");\r\n Emitter.emitln (\"selector = \" + method_number + \";\");\r\n \r\n /* emit arguments copy */\r\n for (int j = 0, arg_size = args.size (); j < arg_size; j++) {\r\n Identifier a = (Identifier) args.get (j);\r\n emitArg (method_number, j, a);\r\n Emitter.emitln (\" = \" + a + \";\");\r\n }\r\n \r\n Emitter.emit (\"fork ();\");\r\n Emitter.indentPop ();\r\n Emitter.emitln ();\r\n Emitter.emit (\"} catch (Exception e) {\");\r\n Emitter.indentPush ();\r\n Emitter.emitln ();\r\n /* Emitter.emitln (\"JP.go.ipa.oz.system.OzSystem.debug (\\\"\" + class_id\r\n\t\t + \"\\\", \\\"\" + m + \"\\\", e);\"); */\r\n Emitter.emit (\"throw e;\");\r\n Emitter.indentPop ();\r\n Emitter.emitln ();\r\n Emitter.emit (\"} finally {\");\r\n Emitter.indentPush ();\r\n Emitter.emitln ();\r\n/* Emitter.emitln (\"arguments = null;\"); */\r\n \r\n /* emit argument clear */\r\n for (int j = 0, arg_size = args.size (); j < arg_size; j++) {\r\n Identifier a = (Identifier) args.get (j);\r\n emitArg (method_number, j, a);\r\n\r\n if (a.type.isClass ())\r\n\tEmitter.emitln (\" = null;\");\r\n else if (a.type.isBool ())\r\n\tEmitter.emitln (\" = false;\");\r\n else\r\n\tEmitter.emitln (\" = 0;\");\r\n }\r\n method_number++;\r\n \r\n Emitter.emit (\"leave ();\");\r\n Emitter.indentPop ();\r\n Emitter.emitln ();\r\n Emitter.emit (\"}\");\r\n \r\n Emitter.emitln ();\r\n Type rt = mt.getReturnType ();\r\n if (rt.isClass ()) \r\n Emitter.emit (\"return (\" + rt + \") join ();\");\r\n else if (rt.isVoid ()) {\r\n Emitter.emit (\"join ();\");\r\n if (m.isNew ()) {\r\n\tEmitter.emitln ();\r\n\tEmitter.emit (\"return this;\");\r\n }\r\n } else {\r\n emitType (rt);\r\n Emitter.emit (\" result = (\");\r\n emitType (rt);\r\n Emitter.emitln (\") join ();\");\r\n Emitter.emit (\"return result.\" + rt + \"Value ();\");\r\n }\r\n \r\n Emitter.indentPop ();\r\n Emitter.emitln ();\r\n Emitter.emit (\"}\");\r\n }",
"private void visitAdditionalEntrypoints() {\n\tLinkedHashSet<jq_Class> extraClasses = new LinkedHashSet<jq_Class>();\n\tfor(jq_Method m: publicMethods) {\n\t extraClasses.add(m.getDeclaringClass());\n\t}\n\t\n\tfor(jq_Class cl: extraClasses) {\n\t visitClass(cl);\n\t\t\tjq_Method ctor = cl.getInitializer(new jq_NameAndDesc(\"<init>\", \"()V\"));\n\t\t\tif (ctor != null)\n\t\t\t\tvisitMethod(ctor);\n\t}\n\n\tfor(jq_Method m: publicMethods) {\n\t visitMethod(m);\n\t}\n }",
"public void build() throws HelperCodeException {\n MethodNode constructorNode = null;\n if(!TypeUtil.isAccess(methodNode.access, Opcodes.ACC_STATIC) && !methodNode.name.contains(\"<init>\")) {\n //1. make instance for the instance of the class\n //ClassNode classNode = TypeTableBuilder.getMethodClassNode(methodNode);\n if(!ClassNodeUtil.isClassNodeBuilderable(classNode))\n throw new HelperCodeException(\"not able to build classNode\");\n constructorNode = ClassNodeUtil.getSimpleConstructor(classNode);\n if(constructorNode != null) {\n String classname = classNode.name.substring(classNode.name.lastIndexOf(\".\") + 1);\n classname = classname.substring(classname.lastIndexOf(\"/\") + 1);\n String stmt = makeNewVoidConstructorStmt(classname, \"c\");//fixme\n if(!TypeUtil.isAccess(constructorNode.access, Opcodes.ACC_PUBLIC))\n throw new HelperCodeException(\"classnode is non-public\");\n addImport(classNode.name);\n stmts.add(stmt);\n } else\n throw new HelperCodeException(\"unable to found a classnode constructor\");\n } else {\n //what if the method is static\n\n //what if it\n }\n\n for (Type pt : Type.getMethodType(methodNode.desc).getArgumentTypes()) {\n //fixme, only support primitive and string object now.\n int sort = pt.getSort();\n if (sort > Type.DOUBLE) {\n if (sort == Type.OBJECT) {\n //if it is in standard library\n HelperMethod item = null;\n if(TypeUtil.isStandardLibrary(pt.getClassName())) {\n item = StandardLibraryClasses.getHelper(pt);\n //fixme for instance helper\n } else {\n item = InstanceHelperClasses.getInstanceHelper(pt);\n }\n\n if (item != null) {\n Type methodType = Type.getMethodType(item.desc);\n methodArguments.add(methodType);\n methods.add(item);\n continue;\n }\n }\n //fixme\n InstanceHelperBuilder.addunsuported(pt);\n throw new HelperCodeException(\"doesn't support this type now\");\n } else\n methodArguments.add(pt);\n }\n\n int number_of_string_arg = 0;\n for(Type t: methodArguments) {\n if(t.getSort() == Type.METHOD) {\n for(Type mt: t.getArgumentTypes()) {\n if(mt.getSort() == Type.OBJECT)\n number_of_string_arg += 1;\n }\n }\n if(t.getSort() == Type.OBJECT)\n number_of_string_arg += 1;\n }\n if(number_of_string_arg > 1) {\n //is_args_valid_for_building = false;\n throw new HelperCodeException(\"fail to build argument\");\n }\n\n if(number_of_string_arg == 1) {\n this.isFileString = true;\n }\n\n System.out.println(\"The size of the stmts in build, before methodArgument: \" + stmts.size());\n makeMethodBody(methodArguments);\n }",
"CommandBlock getCaseSharp();",
"public void andThisIsAMethodName(){}",
"abstract protected Set<Method> createMethods();",
"void method25()\n {\n }",
"private void generalFeatureExtraction () {\n Logger.log(\"Counting how many calls each method does\");\n Chain<SootClass> classes = Scene.v().getApplicationClasses();\n try {\n for (SootClass sclass : classes) {\n if (!isLibraryClass(sclass)) {\n System.out.println(ConsoleColors.RED_UNDERLINED + \"\\n\\n 🔍🔍 Checking invocations in \" +\n sclass.getName() + \" 🔍🔍 \" + ConsoleColors.RESET);\n List<SootMethod> methods = sclass.getMethods();\n for (SootMethod method : methods) {\n featuresMap.put(method, new Features(method));\n }\n }\n }\n } catch (Exception e) { \n }\n System.out.println(\"\\n\");\n }",
"public void testMethodInfo885() throws Exception {\n\t\tClassInfo var2769 = instantiateClassInfo424();\n\t\tLocalVariableInfo var2770 = instantiateLocalVariableInfo423();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2772 = new MethodInfo(var2769, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2769.getSetters();\n\t\tvar2772.isSetter();\n\t\tvar2772.isSetter();\n\t}",
"public void doClass(String callerName) throws LexemeException {\n\t\tlogMessage(\"<class>--> class ID [extends ID]{{<member>}}\");\n\t\tfunctionStack.push(\"<class>\");\n\t\tconsumeToken(); // consume class token\n\t\t// check ID token\n\t\tif (ifPeekThenConsume(\"ID_\")) {\n\t\t\t// check for optional EXTENDS_ token\n\t\t\tif (ifPeek(\"EXTENDS_\")) {\n\t\t\t\tconsumeToken();\n\t\t\t\tifPeekThenConsume(\"ID_\");\n\t\t\t}\n\t\t\t// check for left curly\n\t\t\tif (ifPeekThenConsume(\"L_CURLY_\")) {\n\n\t\t\t\twhile (ifPeek(\"PUBLIC_\") || ifPeek(\"STATIC_\") || ifPeekIsType()) {\n\t\t\t\t\t// check for optional PUBLIC_ & STATIC_ tokens\n\t\t\t\t\tif (ifPeek(\"PUBLIC_\") || ifPeek(\"STATIC_\")) {\n\t\t\t\t\t\tdoMember(\"<class>\");\n\t\t\t\t\t} else if (ifPeekIsType()) {\n\t\t\t\t\t\tdoMember(\"<class>\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// TODO check for arraytype!!\n\t\t\t\t// CHECK ClOSING CURLY\n\n\t\t\t\t// TODO uncomment line\n\t\t\t\tifPeekThenConsume(\"R_CURLY_\");\n\t\t\t}\n\n\t\t}\n\t\tlogVerboseMessage(callerName);\n\t\tfunctionStack.pop();\n\t}",
"public void testMethodInfo889() throws Exception {\n\t\tClassInfo var2788 = instantiateClassInfo431();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2789 = new MethodInfo(var2788, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2788.getSetters();\n\t\tvar2789.isSetter();\n\t\tvar2789.isSetter();\n\t}",
"@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}",
"@Override\r\n\tpublic void visitClassContext(ClassContext classContext) {\r\n\t\t// Obtain BCEL class object\r\n\t\tJavaClass javaClass = classContext.getJavaClass();\r\n\t\t\r\n\t\t// Check BCEL method objects\r\n\t\tfor (Method method : javaClass.getMethods()) {\r\n\t\t\tString methodName = method.getName();\r\n\t\t\t\r\n\t\t\tif (\"foo\".equals(methodName) || \"bar\".equals(methodName)) {\r\n\t\t\t\r\n\t\t\t\tBugInstance bug = new BugInstance(\"LJCU_BUG_2\", Priorities.HIGH_PRIORITY)\r\n\t\t\t\t\t.addClass(classContext.getClassDescriptor())\r\n\t\t\t\t\t.addMethod(javaClass, method)\r\n\t\t\t\t\t.addSourceLine(\r\n\t\t\t\t\t\t\tSourceLineAnnotation.forFirstLineOfMethod(\r\n\t\t\t\t\t\t\t\t\tDescriptorFactory.instance()\r\n\t\t\t\t\t\t\t\t\t\t.getMethodDescriptor(javaClass, method)\r\n\t\t\t\t\t\t\t));\r\n\t\t\t\t\r\n\t\t\t\treporter.reportBug(bug);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\r\n\t}",
"@Override\n\tpublic void buildMethods(JDefinedClass cls) {\n\n\t}",
"private void breakupMethodChain(Stack<RegularMethodInvocation> callStack, Stack<Variable> variables, Block block, Element methodChain, Statement statement) throws LookupException {\n while (!callStack.isEmpty()) {\n // Add the statement to the new block so that it can do lookups using the new block\n // Do so in the loop to be able to use the newly defined variables (otherwise they are defined after this\n // statement)\n block.addStatement(statement);\n RegularMethodInvocation call = callStack.pop();\n fixNestedMethod(call);\n\n // Make certain to call surround methods on the right targets\n for (NeioMethodInvocation n : call.descendants(NeioMethodInvocation.class)) {\n if (n.metadata(Constants.SURROUND) != null) {\n if (n.getTarget() == null) {\n NeioNameExpression expr = eFactory().createNeioNameExpression(lastElement);\n n.setTarget(expr);\n setThis(n, expr, variables);\n }\n }\n }\n\n // Substitute 'this' by the last element\n for (ThisLiteral t : call.descendants(ThisLiteral.class)) {\n NeioNameExpression expr = eFactory().createNeioNameExpression(lastElement);\n t.replaceWith(expr);\n // Check if we're a parameter, if so fix 'this'\n if (isParameter(expr)) {\n String prefix = getPrefix(((RegularMethodInvocation) expr.parent()), variables);\n if (prefix != null) {\n expr.replaceWith(eFactory().createNeioNameExpression(prefix));\n }\n }\n }\n\n fixStringConcats(call);\n\n String prefix = getPrefix(call, variables);\n RegularMethodInvocation clone = (RegularMethodInvocation) call.clone();\n clone.setTarget(prefix == null ? null : eFactory().createNeioNameExpression(prefix));\n\n String varName;\n VariableDeclaration var;\n if ((var = getVarDeclaration(methodChain)) != null) {\n // Use the variable name defined in the statement\n varName = var.name();\n } else {\n // Create a new variable name\n varName = getVarName();\n }\n\n NormalMethod method = call.getElement();\n // Type instead of TypeReference as TypeReference does not return a TypeReference with fqn\n Type returnType = method.returnType();\n createAndAddLocalVar(returnType.name(), varName, clone, variables, block);\n // Don't forget to remove the old (non broken up) statement\n block.removeStatement(statement);\n }\n }",
"public static BlockExpression block(Class clazz, Iterable<ParameterExpression> variables, Iterable<Expression> expressions) { throw Extensions.todo(); }",
"public void methodIdentifier( int variableIdentifier1\n , char variableIdentifier2\n , boolean variableIdentifier3\n , ClassIdentifier3 variableIdentifier4\n )\n {\n //<block statements>\n }",
"private void demoInnerClass2() {\n }",
"@Override\n\tprotected void buildBlockClass(String uvmBlockClassName, Boolean hasCallback) {\n\t\t// create text name and description if null\n\t\tString id = regSetProperties.getId();\n\t\tString refId = regSetProperties.getBaseName(); // ref used for block structure lookup\n\t\t\n\t\tString textName = regSetProperties.getTextName();\n\t\tif (textName == null) textName = \"Block \" + id;\n\n\t\t// generate register header \n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\toutputList.add(new OutputLine(indentLvl, \"// \" + textName));\n\t\toutputList.add(new OutputLine(indentLvl++, \"class \" + uvmBlockClassName + \"#(type ALTPBLOCK_T = \" + altModelRootType + \", type ALTBLOCK_T = \" + altModelRootType + \") extends uvm_block_translate;\")); \n\n\t\t// create field definitions \n\t\tbuildBlockDefines(refId);\n\t\t\n\t\t// create new function\n\t\t//buildBlockNewDefine(uvmBlockClassName); \n\t\t\n\t\t// create build function \n\t\tbuildBlockBuildFunction(refId);\n\t\t\n\t\t// get_alt_block - return alternate model regset struct corresponding to this block\n\t\tString escRegSetId = escapeReservedString(regSetProperties.getId());\n\t\tSystemVerilogFunction func = new SystemVerilogFunction(\"ALTBLOCK_T\", \"get_alt_block\"); \n\t\tif (regSetProperties.isRootInstance())\n\t\t\t func.addStatement(\"return \" + escRegSetId + \";\");\n\t\telse {\n\t\t\tfunc.addStatement(\"ALTPBLOCK_T alt_parent = m_parent.get_alt_block();\");\n\t\t\tif (regSetProperties.isReplicated())\n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \"[m_rep];\");\n\t\t\telse \n\t\t\t func.addStatement(\"return alt_parent.\" + escRegSetId + \";\"); \n\t\t}\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t// close out the class definition\n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\t//outputList.add(new OutputLine(indentLvl, \"`uvm_object_utils(\" + uvmBlockClassName + \")\")); \n\t\toutputList.add(new OutputLine(--indentLvl, \"endclass : \" + uvmBlockClassName));\n\t}",
"public T caseBlock(Block object) {\r\n\t\treturn null;\r\n\t}",
"public static void transform(ClassNode classNode) {\n if (!ModuleEntryPoint.enabled) return;\n try {\n if (classNode.name.equals(ServerChunkManager) && FabricLoader.getInstance().isModLoaded(\"lithium\")) {\n for (MethodNode method : classNode.methods) {\n if (method.name.equals(\"c2me$getChunkOffThread\") && method.desc.equals(ASMUtils.remapMethodDescriptor(\"(IILnet/minecraft/class_2806;Z)Lnet/minecraft/class_2791;\"))) {\n LOGGER.debug(\"Replacing lithium chunk_access method getChunkOffThread to apply non-blocking async chunk request\");\n final Optional<MethodNode> getChunkOffThread = classNode.methods.stream().filter(methodNode -> methodNode.name.equals(\"getChunkOffThread\")).findAny();\n getChunkOffThread.ifPresentOrElse(oldMethodNode -> {\n final MethodNode newMethodNode = new MethodNode();\n method.accept(newMethodNode);\n newMethodNode.name = oldMethodNode.name;\n newMethodNode.access = method.access;\n newMethodNode.desc = method.desc;\n newMethodNode.signature = method.signature;\n newMethodNode.exceptions = new ArrayList<>(method.exceptions);\n if (method.attrs != null) newMethodNode.attrs = new ArrayList<>(method.attrs);\n newMethodNode.tryCatchBlocks = new ArrayList<>(method.tryCatchBlocks);\n classNode.methods.remove(oldMethodNode);\n classNode.methods.add(newMethodNode);\n }, () -> LOGGER.warn(\"lithium getChunkOffThread not found\"));\n break;\n }\n }\n\n }\n } catch (Throwable t) {\n throw new RuntimeException(t);\n }\n }",
"public static void writeBlocks(Element element, PrintWriter writer){\n int concl = 0;\n String type = element.getElementsByTag(\"h3\").first().text().split(\" \")[0];\n System.out.print(\" Parsing \" + type + \"s: \");\n for (Element block: element.select(\"ul.blockList,ul.blockListLast > li.blockList\")){\n if (type.equals(\"Field\")) concl += writeField(block, writer);\n else concl += writeMethod(block, writer);\n }\n if (concl == 0) System.out.println(\"Success\");\n else System.out.println(\"Failure\");\n }",
"private static void processClass(File file_name, final Histogram class_use, final Histogram method_use) {\n try {\n final InputStream object_stream=new FileInputStream(file_name);\n MethodCallEnumerator.analyzeClass(object_stream,class_use,method_use);\n object_stream.close();\n } catch (Exception e) {\n throw new IllegalStateException(\"while processing: \" + e);\n }\n }",
"public interface BlockInt {\n\t\n\t/**\n\t * Execute a block.\n\t * \n\t * Parse arguments, init, run, and check the results.\n\t * @param arg The arguments\n\t * @return true if everything goes well\n\t */\n\tpublic boolean execute(String[] args);\n\t\n\t/**\n\t * Initialises the block.\n\t * \n\t * @return true if the initialisation is ok\n\t */\n\tpublic boolean init();\n\t\n\t/**\n\t * Gives a description of the class\n\t * \n\t * @return a description\n\t */\n\tpublic String getDescription();\n}",
"@Override\n public void visitEnd() {\n// fv = super.visitField(ACC_PRIVATE, \"returnMethods\", \"Ljava/util/Map;\",\n// \"Ljava/util/Map<Ljava/lang/String;Lru/mousecray/mousecore/api/asm/methods/MouseExecutor;>;\", null);\n// fv.visitEnd();\n MethodVisitor mv;\n// = super.visitMethod(ACC_PUBLIC, \"<init>\", \"()V\", null, null);\n\n// mv.visitVarInsn(ALOAD, 0);\n// mv.visitTypeInsn(NEW, \"java/util/HashMap\");\n// mv.visitInsn(DUP);\n// mv.visitMethodInsn(INVOKESPECIAL, \"java/util/HashMap\", \"<init>\", \"()V\", false);\n// mv.visitFieldInsn(PUTFIELD, \"ru/mousecray/mousecore/Get\", \"voidMethods\", \"Ljava/util/Map;\");\n//\n//\n// mv.visitVarInsn(ALOAD, 0);\n// mv.visitTypeInsn(NEW, \"java/util/HashMap\");\n// mv.visitInsn(DUP);\n// mv.visitMethodInsn(INVOKESPECIAL, \"java/util/HashMap\", \"<init>\", \"()V\", false);\n// mv.visitFieldInsn(PUTFIELD, \"ru/mousecray/mousecore/Get\", \"returnMethods\", \"Ljava/util/Map;\");\n//\n// mv.visitEnd();\n\n for (Map.Entry<String, MouseMethod> entry : methods.entrySet()) {\n MouseMethod method = entry.getValue();\n mv = super.visitMethod(ACC_PUBLIC, method.);\n }\n// for (int count = 0; count < methods.size(); ++count) {\n// Method method = methods.get(count);\n\n\n Type.getMethodDescriptor(method.getReturnType(), method.getParameterTypes()), null, null);\n mv.visitCode();\n mv.visitVarInsn(ALOAD, 0);\n //TODO:\n// mv.visitFieldInsn(GETFIELD, \"ru/mousecray/mousecore/Get\", \"transformer\",\n// \"Lru/mousecray/mousecore/api/asm/transformers/CoreClassHookWithAddInterface;\");\n// }\n\n// super.visitEnd();\n }",
"@Test\n public void testBlock() {\n System.out.println(\"block\");\n //instance.block();\n }",
"public void testMethodInfo886() throws Exception {\n\t\tClassInfo var2776 = instantiateClassInfo426();\n\t\tLocalField var2777 = instantiateLocalField425();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tMethodInfo var2778 = new MethodInfo(var2776, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2777.getDescription();\n\t\tvar2777.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2776.getSetters();\n\t\tvar2778.isSetter();\n\t\tvar2778.isSetter();\n\t}",
"@Pointcut(\"within(sprint.aop.javabrains.model.Circle)\")\n\tpublic void allMethodsInCircle(){\n\t\tSystem.out.println(\"Advice run. all methode in Circle\");\n\t}",
"@Override\r\n\tpublic Node visitBlock(BlockContext ctx) {\n\t\treturn super.visitBlock(ctx);\r\n\t}",
"public static BlockExpression block(Class clazz, Iterable<ParameterExpression> variables, Expression[] expressions) { throw Extensions.todo(); }",
"private void addClassOrMethod(String methodOrClass) {\n\t\t//System.out.println(\"###addClassOrMethod [\" + methodOrClass + \"]\");\n\t\tSimpleMethod method = new SimpleMethod();\n\t\t\n\t\tList<SimpleMethod> allMethods = null;\n\t\t\n\t\tString[] parts = methodOrClass.split(CLASS_METHOD_DELIMITER);\n\t\tif (parts.length >= 1 && parts[0]!=null) {\n\t\t\tallMethods = this.myInstrCriteria.get(parts[0]);\n\t\t\tif (allMethods == null) {\n\t\t\t\tallMethods = new ArrayList<SimpleMethod>();\n\t\t\t\t//this.logVerbose(\"in addClassOrMethod just created allMethods hash[\" + allMethods.hashCode() + \"]myInstrCriteriaHash[\" + myInstrCriteria.hashCode() + \"]\");\n\t\t\t\tthis.myInstrCriteria.put(parts[0], allMethods);\n\t\t\t}\n\t\t\t\n\t\t\tswitch (parts.length) {\n\t\t\t\tcase 1: //just the package and class name were specified, meaning that all methods should be instrumented.\n\t\t\t\t\tmethod.ynAllMethods = true;\n\t\t\t\t\tbreak;\n\t\t\t\tcase 2: //a method was specified after a # sign...only instrument this specific method.\n\t\t\t\t\tmethod.setNameAndArgs(parts[1]);\n\t\t\t\t\tbreak;\n\t\t\t\tdefault:\n\t\t\t\t\tthrow new RuntimeException(\"Was expecting to find either zero or one of the [\" + this.CLASS_METHOD_DELIMITER + \"] character inside of [\" + methodOrClass + \"]\");\n\t\t\t}\n\t\t} else {\n\t\t\tthrow new RuntimeException(\"Error adding this method/class [\" + methodOrClass + \"]\");\n\t\t}\n\t\tallMethods.add(method);\n//\t\tSystem.out.println(\"## Just added methodName[\" + method.name + \"] methodArg [\" + method.args + \"]methodArgGetter [\" + method.getArgs() + \"]\");\n//\t\tSystem.out.println(\"@@@@@@@Class count [\" + myInstrCriteria.size() + \"] for class[\" + parts[0] + \"] count is [\" + allMethods.size() + \"]\");\n\t}",
"@Override\r\n\tpublic void Method3() {\n\t\t\r\n\t}",
"public void visit(MyClassDecl myClassDecl) {\n\t\tif (regularClassExtendsAbstractClass == 1) { \t\t\t\r\n\t\t\tArrayList<Struct> nadklase = new ArrayList<>();\r\n\t\t\t\r\n//\t\t\tMyExtendsClass extClass = (MyExtendsClass) myClassDecl.getExtendsClass();\r\n//\t\t\tStruct parentClassNode = extClass.getType().struct;\r\n\t\t\t\r\n\t\t\tStruct parentClassNode = currentClass.getElemType();\r\n\t\t\t\r\n\t\t\twhile (parentClassNode != null && parentClassNode.getKind() == Struct.Interface ) { \r\n\t\t\t\tnadklase.add(0, parentClassNode);\r\n\t\t\t\tparentClassNode = parentClassNode.getElemType();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tArrayList<Obj> finalMemebrs = new ArrayList<>();\r\n\t\t\tif (nadklase.size() > 0) {\r\n\t\t\t\tCollection<Obj> membersAbsClass = nadklase.get(0).getMembers();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\tfor (Iterator<Obj> iter = membersAbsClass.iterator();iter.hasNext();) {\r\n\t\t\t\t\tObj elem = iter.next();\r\n\t\t\t\t\tif (elem.getKind() == Obj.Meth && elem.getFpPos() < 0) { // only abstract methods\r\n\t\t\t\t\t\tfinalMemebrs.add(elem);\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}\r\n\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tfor (int i = 1; i < nadklase.size(); i++) {\r\n\t\t\t\tCollection<Obj> membersSubClass = nadklase.get(i).getMembers();\r\n\t\t\t\tfor(Iterator<Obj> iter = membersSubClass.iterator(); iter.hasNext();) {\r\n\t\t\t\t\tObj elem = iter.next();\r\n\t\t\t\t\tif (elem.getKind() == Obj.Meth && elem.getFpPos() < 0 ) { // abs method\r\n\t\t\t\t\t\tfinalMemebrs.add(elem); // da li treba da proveravam ako ga vec ima u nizu da ga ne ubacujem, mada mi sustinski ne smeta ako se ponovi?\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse if(elem.getKind() == Obj.Meth && elem.getFpPos() >= 0) { // ne abs method\r\n\t\t\t\t\t\tfor(int j = 0;j <finalMemebrs.size() ; j++) {\r\n\t\t\t\t\t\t\tif (mojeEquals(elem, finalMemebrs.get(j))) {\r\n\t\t\t\t\t\t\t\tfinalMemebrs.remove(j);\r\n\t\t\t\t\t\t\t\tj--;\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\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t//22.6.2020 ako klasa nema ni jedno polje preskoci\r\n\t\t\tif (Tab.currentScope.getLocals() != null) {\r\n\t\t\t\r\n\t\t\t\tCollection<Obj> myMembers = Tab.currentScope.getLocals().symbols();\r\n\t\t\t\t\r\n\t\t\t\tint allImplemented = 1;\r\n\t\t\t\tfor (int i = 0 ; i < finalMemebrs.size();i++) {\r\n\t\t\t\t\tObj elem = finalMemebrs.get(i);\r\n\t\t\t\t\tif (elem.getKind() == Obj.Meth && elem.getFpPos() < 0) {//abstract method\r\n\t\t\t\t\t\tint nasao = 0;\r\n\t\t\t\t\t\tfor(Iterator<Obj> iterator2 = myMembers.iterator();iterator2.hasNext();) {\r\n\t\t\t\t\t\t\tObj meth = iterator2.next();\r\n\t\t\t\t\t\t\tif (mojeEquals(meth, elem)) {\r\n\t\t\t\t\t\t\t\tnasao = 1;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\r\n\t\t\t\t\t\tif (nasao == 0) {\r\n\t\t\t\t\t\t\tallImplemented = 0;\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (allImplemented == 0) {\r\n\t\t\t\t\treport_error (\"Semanticka greska na liniji \" + myClassDecl.getLine() + \": klasa izvedena iz apstraktne klase mora implementirati sve njene apstraktne metode!\", null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t//22.6.2020 ako klasa nema ni jedno polje a ima abstraktnih metoda koje treba da implementira greska\r\n\t\t\telse {\r\n\t\t\t\tif (finalMemebrs.size()>0) {\r\n\t\t\t\t\treport_error (\"Semanticka greska na liniji \" + myClassDecl.getLine() +\r\n\t\t\t\t\t\t\t\": klasa izvedena iz apstraktne klase mora implementirati sve njene apstraktne metode!\", null );\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\r\n\r\n\t\tStruct pred = currentClass.getElemType();\r\n\t\tint predNum = 0;\r\n\t\tif (pred != null) {\r\n\t\t\t\r\n\t\t\twhile(pred != null) {\r\n\t\t\t\tpredNum += pred.getNumberOfFields();\r\n\t\t\t\tpred = pred.getElemType();\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// 22.6.2020 ako je klasa prazna preskoci\r\n\t\t\tif (Tab.currentScope.getLocals() != null) {\r\n\t\t\t\tfor(Iterator<Obj> iter = Tab.currentScope().getLocals().symbols().iterator();iter.hasNext();) {\r\n\t\t\t\t\tObj elem = iter.next();\r\n\t\t\t\t\telem.setAdr(elem.getAdr() + predNum);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t// 22.6.2020 ako je klasa prazna preskoci\r\n\t\tif (Tab.currentScope.getLocals() != null) {\r\n\t\t\tfor(Iterator<Obj> iter = Tab.currentScope().getLocals().symbols().iterator();iter.hasNext();) {\r\n\t\t\t\tObj elem = iter.next();\r\n\t\t\t\telem.setAdr(elem.getAdr() + 1); // sacuvaj mesto za pok. na tabelu virtuelnih f-ja\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tTab.chainLocalSymbols(currentClass);\r\n \tTab.closeScope();\r\n \tcurrentClass = null;\r\n\t}",
"public void testMethodInfo887() throws Exception {\n\t\tClassInfo var2782 = instantiateClassInfo428();\n\t\tLocalField var2783 = instantiateLocalField427();\n\t\tList<ClassInfo> var2764 = Collections.emptyList();\n\t\tList<ParameterInfo> var2766 = Collections.emptyList();\n\t\tList<LocalVariableInfo> var2767 = Collections.emptyList();\n\t\tList<Operation> var2768 = Collections.emptyList();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tMethodInfo var2784 = new MethodInfo(var2782, \"voidX()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList());\n\t\tvar2783.getDescription();\n\t\tvar2783.getDescription();\n\t\tClassInfo var2765 = new ClassInfo(\"super\", false, null, var2764, null);\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tClassInfo var2771 = new ClassInfo(\"super\", false, var2765, var2764,\n\t\t\t\tnull);\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setD()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2771.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2771, \"void setC()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.getSetters();\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setB()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PUBLIC, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"void setA()\", -1, null,\n\t\t\t\tvar2766, var2767, Visibility.PRIVATE, var2768, false, false,\n\t\t\t\tCollections.<Integer> emptyList()));\n\t\tvar2765.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2782.addMethod(new MethodInfo(var2765, \"voidX()\", -1, null, var2766,\n\t\t\t\tvar2767, Visibility.PUBLIC, var2768, false, false, Collections\n\t\t\t\t\t\t.<Integer> emptyList()));\n\t\tvar2784.isSetter();\n\t\tvar2784.isSetter();\n\t}",
"@Override\n public void visitBlockStmt(BlockStmt stmt) {\n enterBlockStmt(stmt);\n super.visitBlockStmt(stmt);\n leaveBlockStmt(stmt);\n }",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\r\n\t}",
"protected void method_1144(bcb var1) {\r\n if(var1 instanceof class_157) {\r\n this.method_865(var1);\r\n }\r\n\r\n }",
"@Override\n\tpublic Void visit(ClassDef classDef) {\n\t\tprintIndent(\"class\");\n\t\tindent++;\n\t\tclassDef.self_type.accept(this);\n\t\tclassDef.base_type.accept(this);\n\t\tfor (var v : classDef.body)\n\t\t\tv.accept(this);\n\t\tindent--;\n\t\treturn null;\n\t}",
"@Override\n\tpublic void visitMethodInsn(int opcode, String owner, String name, String desc) {\n\t\tif (!classAdapter.ignoredClasses.contains(\"L\" + owner + \";\")) {\n\t\t\tclassAdapter.dependencies.add(new Dependency(\"L\"+owner+\";\", modifier, Dependency.methodBodyDependency));\n\t\t}\n\t\tclassAdapter.dependencies.addAll(Utils.getClassNamesFromMethodDesc(desc, classAdapter.ignoredClasses, modifier, Dependency.methodBodyDependency));\n\t\tmv.visitMethodInsn(opcode, owner, name, desc);\n\t}",
"@Override\n\tpublic String visitClassDeclaration(ClassDeclarationContext ctx){\n\t\ttable.enterScope();\t\t\n\t\tvisit(ctx.getChild(4)); //visit methodList. \n\t\ttable.exitScope();\n\t\treturn null;\n\t}",
"@Override\n\tvoid populateMethodImplBlock(Block block) {\n\t\tfinal DataConstructorExp newLocExp = new DataConstructorExp();\n\t\tnewLocExp.setConstructor(LOCATION_CONSTRUCTOR);\n\t\tfinal FnApp memExp = new FnApp();\n\t\tmemExp.setName(MEMORY_SELECTOR);\n\t\tmemExp.addParamNoTransform(arrayArg.getVarUse());\n\t\tnewLocExp.addParamNoTransform(memExp);\n\t\tfinal FnApp offsetExp = new FnApp();\n\t\toffsetExp.setName(OFFSET_SELECTOR);\n\t\toffsetExp.addParamNoTransform(arrayArg.getVarUse());\n\t\tnewLocExp.addParamNoTransform(new AddAddExp(offsetExp, new MultMultExp(sizeArg.getVarUse(), indexArg.getInnerExp())));\n\t\tfinal ReturnStmt returnStmt = new ReturnStmt();\n\t\treturnStmt.setRetExp(newLocExp);\n\t\tblock.addStmt(returnStmt);\n\t}",
"public void visit(SendBlock sb);",
"public void method3() {\n }",
"void block(Directions dir);",
"private void emitInvoke () {\r\n Emitter.emit (\"protected Object invoke (\" + School.CELL + \" o) \");\r\n Emitter.emit (\"throws Exception {\");\r\n Emitter.indentPush ();\r\n Emitter.emitln ();\r\n Emitter.emitln (\"if (part != \" + part_no + \") return super.invoke (o);\");\r\n Emitter.emitln ();\r\n\r\n String global_class_id = global_class.getFullyQualifiedClassID ();\r\n Emitter.emitln (global_class_id + \" g = (\" + global_class_id + \") o;\");\r\n Emitter.emitln (\"Object result;\");\r\n Emitter.emitln ();\r\n Emitter.emit (\"switch (selector) {\");\r\n\r\n /* each public method */\r\n int i = 0;\r\n MethodTable mtable = method_table;\r\n\r\n for (java.util.Enumeration ms = mtable.elements ();\r\n\t ms.hasMoreElements (); i++) {\r\n ClassMember m = (ClassMember) ms.nextElement ();\r\n if (!m.isPublic () && !m.isNew ()) continue;\r\n\t\r\n Emitter.emitln ();\r\n Emitter.emit (\"case \" + i + \":\");\r\n Emitter.indentPush ();\r\n Emitter.emitln ();\r\n\t\r\n MethodType mt = (MethodType) m.getType ();\r\n Type rt = mt.getReturnType ();\r\n\t\r\n if (rt.isClass ())\r\n\tEmitter.emit (\"return \");\r\n else if (!rt.isVoid ()) \r\n\tEmitter.emit (rt + \" rval$\" + i + \" = \");\r\n Emitter.emit (\"g.\" + m + \"(\");\r\n\t\r\n /* emit arguements */\r\n ExpressionList args = mt.getArguments ();\r\n for (int j = 0, arg_size = args.size (); j < arg_size; j++) {\r\n\tIdentifier a = (Identifier) args.get (j);\r\n\temitArg (i, j, a);\r\n\tif (j + 1 < arg_size)\r\n\t Emitter.emit (\", \");\r\n }\r\n\t\r\n Emitter.emitln (\");\");\r\n if (!rt.isClass () && !rt.isVoid ()) {\r\n\tEmitter.emit (\"return new \");\r\n\temitType (rt);\r\n\tEmitter.emit (\"(rval$\" + i +\");\");\r\n } else if (rt.isVoid ())\r\n\tEmitter.emit (\"return null;\");\r\n Emitter.indentPop ();\r\n }\r\n\r\n Emitter.emitln ();\r\n Emitter.emit (\"default:\");\r\n Emitter.indentPush ();\r\n Emitter.emitln ();\r\n Emitter.emit (\"throw new Exception (\\\"\" + class_id \r\n\t\t + \": invalid selector = \\\" + selector);\");\r\n Emitter.indentPop ();\r\n Emitter.emitln ();\r\n Emitter.emit (\"}\");\r\n Emitter.indentPop ();\r\n Emitter.emitln ();\r\n Emitter.emitln (\"}\");\r\n }",
"public class_4 method_9() {\n return this.method_17();\n }",
"public Object visit(Class_ node){\n currentClass = node.getName();\n ClassTreeNode treeNode = classMap.get(currentClass);\n\n treeNode.getMethodSymbolTable().enterScope();\n treeNode.getVarSymbolTable().enterScope();\n\n super.visit(node);\n //treeNode.getMethodSymbolTable().exitScope();\n treeNode.getVarSymbolTable().exitScope();\n return null;\n }",
"boolean supportsAnonymousBlocks();",
"private B() {\n void var2_-1;\n void var1_-1;\n }",
"public static LinkedList<String> trackMethod(Class<?> myClass,Integer year,Integer month,Integer day){\n LinkedList<String> result = null;//array with result\n\n /*\n * Map stores methods and their annotations\n * Data are store sorted by MethodNoteBook,\n * because this annotation is describe\n * the queue of executions of methods and\n * descriptions\n */\n Map<MethodNoteBook, Method> map = new TreeMap<MethodNoteBook, Method>(\n new Comparator<MethodNoteBook>() {\n\n @Override\n public int compare(MethodNoteBook o1, MethodNoteBook o2) {\n return o1.name() - (o2.name());\n }\n\n });\n\n try {\n Class classNoteBook = NoteBook.class;\n\n /* Create instance of class */\n NoteBook newInstance = (NoteBook) classNoteBook.getConstructor().newInstance();\n\n /* Put all methods of class to map*/\n for (Method methodNoteBook : myClass.getDeclaredMethods()){\n MethodNoteBook methodClass = methodNoteBook.getAnnotation(MethodNoteBook.class);\n map.put(methodClass,methodNoteBook);\n }\n\n result = new LinkedList<String>();\n\n /* Invoke methods */\n for (Map.Entry<MethodNoteBook, Method> el : map.entrySet()) {\n if (el.getKey().description().compareTo(\"set\") == 0) {\n switch (el.getKey().name()) {\n case 1: //name() of annotation return 1 , so, the first, execute this method\n result.add(\"1 \" + el.getValue().getName() + \" : \" + el.getKey().description());\n el.getValue().invoke(newInstance, new String(\"lastName\"));\n continue;\n case 2://name() of annotation return 2 , so ,the second, execute this method\n result.add(\"2 \" + el.getValue().getName() + \" : \" + el.getKey().description());\n el.getValue().invoke(newInstance, new String(\"firstName\"));\n continue;\n case 3:\n result.add(\"3 \" + el.getValue().getName() + \" : \" + el.getKey().description());\n el.getValue().invoke(newInstance, new String(\"middleName\"));\n continue;\n case 4:\n result.add(\"4 \" + el.getValue().getName() + \" : \" + el.getKey().description());\n el.getValue().invoke(newInstance, new String(\"telephone\"));\n continue;\n case 5:\n result.add(\"5 \" + el.getValue().getName() + \" : \" + el.getKey().description());\n el.getValue().invoke(newInstance, new Integer(year), new Integer(month), new Integer(day));\n continue;\n }\n } else if (el.getKey().name() == 6 && el.getKey().description().compareTo(\"Count days to birthday\") == 0) {\n result.add(\"6 \" + el.getValue().getName() + \" : \" + el.getKey().description());\n el.getValue().invoke(newInstance);\n }\n }\n } catch (NoSuchMethodException e1) {\n e1.printStackTrace();\n } catch (InstantiationException e1) {\n e1.printStackTrace();\n } catch (IllegalAccessException e1) {\n e1.printStackTrace();\n } catch (InvocationTargetException e1) {\n e1.printStackTrace();\n }\n return result;\n }",
"public interface BlockInterceptor {\n\n void onBlock(Context context, BlockInfo info);\n}",
"@Override\n\tpublic void process(CtClass<?> invok) {\n\t\tfor (CtMethod<?> method : invok.getAllMethods()){\n\t\t\t// Detect no empty method\n\t\t\tif (method.getBody() != null && method.getBody().toString().length() > 4){\n\t\t\t\t\n\t\t\t\t// Split method for detect HashMap initialization and save variable name\n\t\t\t\tString[] methodSplit = method.toString().split(\";\");\n\t\t\t\tList<String> hashMapInit = new ArrayList<String>();\n\t\t\t\tfor (int i = 0; i < methodSplit.length ; i++)\n\t\t\t\t\tif (methodSplit[i].indexOf(\"new HashMap\") != -1)\n\t\t\t\t\t\tif (methodSplit[i].indexOf(\"=\") != -1)\n\t\t\t\t\t\t\thashMapInit.add(methodSplit[i].split(\" =\")[0].split(\" \")[methodSplit[i].split(\" =\")[0].split(\" \").length-1]);\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\thashMapInit.add(null);\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t// Get all HashMap constructor\n\t\t\t\tList<CtConstructorCall<?>> listConstrCall = method.getElements(new\n\t\t \t\t\tTypeFilter<CtConstructorCall<?>>(CtConstructorCall.class) {\n\t\t \t\t\t@Override\n\t\t \t\t\tpublic boolean matches(CtConstructorCall<?> element) {\n\t\t \t\t\t\treturn element.getType().getSimpleName().equals(\"HashMap\");\n\t\t \t\t}\n\t\t \t});\n\t\t\t\t\n\t\t\t\tfor(int i = 0; i < listConstrCall.size(); i++){\n\t\t\t\t\tlistConstrCall.get(i).replace(getFactory().Code().createCodeSnippetExpression(listConstrCall.get(i).toString().split(\" \\\\{\")[0]));\n\t\t\t\t\t\n\t\t\t\t\tString constructorCleaned = listConstrCall.get(i).toString().replace(\" \", \"\").replace(\"\\r\", \"\").replace(\"\\n\", \"\");\n\t\t\t\t\tif (constructorCleaned.indexOf(\"{{\") != -1)\n\t\t\t\t\t\tfor (String element : constructorCleaned.substring(constructorCleaned.toString().indexOf(\"{{\"), constructorCleaned.toString().indexOf(\"}}\")-1)\n\t\t\t\t\t\t\t\t.replace(\"{{\", \"\").replace(\"}}\", \"\").split(\";\")){\n\t\t\t\t\t\t\tlistConstrCall.get(i).insertAfter(getFactory().Code().createCodeSnippetStatement(hashMapInit.get(i)+ \".\" + element + \";\"));\n\t\t\t\t\t\t\tSystem.out.println(hashMapInit.get(i)+ \".\" + element + \";\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"public hk a(String s, a a1)\n {\n class c {}\n\n c c1 = new c(null);\n /* block-local class not found */\n class b {}\n\n b.a(new b(s, a1, c1));\n return c1;\n }",
"public void method3() {\n\t}",
"public static PlsqlBlock getMethodBlock(List blockHier, String name, String packageName, boolean isDef) {\n for (int i = 0; i\n < blockHier.size(); i++) {\n PlsqlBlock temp = (PlsqlBlock) blockHier.get(i);\n //if this is not a procedure look at the children and return\n if (isDef && (temp.getName().equalsIgnoreCase(name)) && (temp.getType() == PROCEDURE_DEF\n || temp.getType() == FUNCTION_DEF)) {\n return temp;\n } else if (!isDef && (temp.getName().equalsIgnoreCase(name)) && (temp.getType() == PROCEDURE_IMPL\n || temp.getType() == FUNCTION_IMPL)) {\n return temp;\n } else if ((temp.getType() == PACKAGE_BODY\n || temp.getType() == PACKAGE) && temp.getName().equalsIgnoreCase(packageName)) {\n return getMethodBlock(temp.getChildBlocks(), name, packageName, isDef);\n }\n }\n return null;\n }",
"private static boolean checkForMethod1() {\n\n \t\tif( easyTag1.size() < 3 || mediumTag2.size() < 3 || hardTag3.size() < 3 || easyTag4.size() < 3 || mediumTag5.size() < 3 || hardTag6.size() < 3 ) {\n \t\t\treturn true;\n \t\t}else {\n \t\t\treturn false;\n \t\t}\n\t}",
"private void openTryCatchBlocks(MethodNode method) {\n\t\ttry {\n\t\t\tdisplay.addWindow(new TryCatchBox(method));\n\t\t} catch (Exception e) {\n\t\t\tdisplay.exception(e);\n\t\t}\n\t}",
"private void scan() {\n if (classRefs != null)\n return;\n // Store ids rather than names to avoid multiple name building.\n Set classIDs = new HashSet();\n Set methodIDs = new HashSet();\n\n codePaths = 1; // there has to be at least one...\n\n offset = 0;\n int max = codeBytes.length;\n\twhile (offset < max) {\n\t int bcode = at(0);\n\t if (bcode == bc_wide) {\n\t\tbcode = at(1);\n\t\tint arg = shortAt(2);\n\t\tswitch (bcode) {\n\t\t case bc_aload: case bc_astore:\n\t\t case bc_fload: case bc_fstore:\n\t\t case bc_iload: case bc_istore:\n\t\t case bc_lload: case bc_lstore:\n\t\t case bc_dload: case bc_dstore:\n\t\t case bc_ret:\n\t\t\toffset += 4;\n\t\t\tbreak;\n\n\t\t case bc_iinc:\n\t\t\toffset += 6;\n\t\t\tbreak;\n\t\t default:\n\t\t\toffset++;\n\t\t\tbreak;\n\t\t}\n\t } else {\n\t\tswitch (bcode) {\n // These bcodes have CONSTANT_Class arguments\n case bc_instanceof: \n case bc_checkcast: case bc_new:\n {\n\t\t\tint index = shortAt(1);\n classIDs.add(new Integer(index));\n\t\t\toffset += 3;\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_putstatic: case bc_getstatic:\n case bc_putfield: case bc_getfield: {\n\t\t\tint index = shortAt(1);\n CPFieldInfo fi = (CPFieldInfo)cpool.get(index);\n classIDs.add(new Integer(fi.getClassID()));\n\t\t\toffset += 3;\n\t\t\tbreak;\n }\n\n // These bcodes have CONSTANT_MethodRef_info arguments\n\t\t case bc_invokevirtual: case bc_invokespecial:\n case bc_invokestatic:\n methodIDs.add(new Integer(shortAt(1)));\n messageSends++;\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n\t\t case bc_jsr_w:\n\t\t case bc_invokeinterface:\n methodIDs.add(new Integer(shortAt(1)));\n messageSends++;\n\t\t\toffset += 5;\n\t\t\tbreak;\n\n // Branch instructions\n\t\t case bc_ifeq: case bc_ifge: case bc_ifgt:\n\t\t case bc_ifle: case bc_iflt: case bc_ifne:\n\t\t case bc_if_icmpeq: case bc_if_icmpne: case bc_if_icmpge:\n\t\t case bc_if_icmpgt: case bc_if_icmple: case bc_if_icmplt:\n\t\t case bc_if_acmpeq: case bc_if_acmpne:\n\t\t case bc_ifnull: case bc_ifnonnull:\n\t\t case bc_jsr:\n codePaths++;\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n case bc_lcmp: case bc_fcmpl: case bc_fcmpg:\n case bc_dcmpl: case bc_dcmpg:\n codePaths++;\n\t\t\toffset++;\n break;\n\n\t\t case bc_tableswitch:{\n\t\t\tint tbl = (offset+1+3) & (~3);\t// four byte boundry\n\t\t\tlong low = intAt(tbl, 1);\n\t\t\tlong high = intAt(tbl, 2);\n\t\t\ttbl += 3 << 2; \t\t\t// three int header\n\n // Find number of unique table addresses.\n // The default path is skipped so we find the\n // number of alternative paths here.\n Set set = new HashSet();\n int length = (int)(high - low + 1);\n for (int i = 0; i < length; i++) {\n int jumpAddr = (int)intAt (tbl, i) + offset;\n set.add(new Integer(jumpAddr));\n }\n codePaths += set.size();\n\n\t\t\toffset = tbl + (int)((high - low + 1) << 2);\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_lookupswitch:{\n\t\t\tint tbl = (offset+1+3) & (~3);\t// four byte boundry\n\t\t\tint npairs = (int)intAt(tbl, 1);\n\t\t\tint nints = npairs * 2;\n\t\t\ttbl += 2 << 2; \t\t\t// two int header\n\n // Find number of unique table addresses\n Set set = new HashSet();\n for (int i = 0; i < nints; i += 2) {\n // use the address half of each pair\n int jumpAddr = (int)intAt (tbl, i + 1) + offset;\n set.add(new Integer(jumpAddr));\n }\n codePaths += set.size();\n \n\t\t\toffset = tbl + (nints << 2);\n\t\t\tbreak;\n\t\t }\n\n // Ignore other bcodes.\n\t\t case bc_anewarray: \n offset += 3;\n break;\n\n\t\t case bc_multianewarray: {\n\t\t\toffset += 4;\n\t\t\tbreak;\n\t\t }\n\n\t\t case bc_aload: case bc_astore:\n\t\t case bc_fload: case bc_fstore:\n\t\t case bc_iload: case bc_istore:\n\t\t case bc_lload: case bc_lstore:\n\t\t case bc_dload: case bc_dstore:\n\t\t case bc_ret: case bc_newarray:\n\t\t case bc_bipush: case bc_ldc:\n\t\t\toffset += 2;\n\t\t\tbreak;\n\t\t \n\t\t case bc_iinc: case bc_sipush:\n\t\t case bc_ldc_w: case bc_ldc2_w:\n\t\t case bc_goto:\n\t\t\toffset += 3;\n\t\t\tbreak;\n\n\t\t case bc_goto_w:\n\t\t\toffset += 5;\n\t\t\tbreak;\n\n\t\t default:\n\t\t\toffset++;\n\t\t\tbreak;\n\t\t}\n\t }\n\t}\n classRefs = expandClassNames(classIDs);\n methodRefs = expandMethodNames(methodIDs);\n }",
"public Object visit(Method node){\n ClassTreeNode treeNode = classMap.get(currentClass);\n treeNode.getMethodSymbolTable().add(node.getName(), node);\n //System.out.println(\"Adding method \" + node.getName() + \" to \" + currentClass);\n treeNode.getVarSymbolTable().enterScope();\n super.visit(node);\n return null;\n }",
"TeststepBlock createTeststepBlock();",
"@Override\r\n\t\t\tpublic void buscar() {\n\r\n\t\t\t}",
"void parkingMethod(){\n nearingTheCrater();\n parkingTheArm();\n }",
"private void proxyBeforeAfterMethod(ClassWriterTracker ct, Class type, Method meth, Class[] helperParams,\n Method before, Method after, Class[] afterParams) {\n\n MethodVisitor mv = ct.visitMethod(meth.getModifiers() & ~Modifier.SYNCHRONIZED, meth.getName(),\n Type.getMethodDescriptor(meth), null, null);\n mv.visitCode();\n\n int beforeRetPos = -1;\n int variableNr = helperParams.length;;\n\n // invoke before\n if (before != null) {\n // push all the method params to the stack\n // we only start at param[1] as param[0] of the helper method is the instance itself\n // and will get loaded with ALOAD_0 (this)\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n for (int i = 1; i < helperParams.length; i++)\n {\n mv.visitVarInsn(AsmHelper.getLoadInsn(helperParams[i]), i);\n }\n\n mv.visitMethodInsn(Opcodes.INVOKESTATIC, Type.getInternalName(before.getDeclaringClass()), before.getName(),\n Type.getMethodDescriptor(before), false);\n\n if (after != null && before.getReturnType() != void.class) {\n // this is always a boolean and 1 after the\n beforeRetPos = variableNr++;\n mv.visitVarInsn(AsmHelper.getStoreInsn(before.getReturnType()), beforeRetPos);\n }\n }\n\n // invoke super\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n for (int i = 1; i < helperParams.length; i++)\n {\n mv.visitVarInsn(AsmHelper.getLoadInsn(helperParams[i]), i);\n }\n mv.visitMethodInsn(Opcodes.INVOKESPECIAL, Type.getInternalName(type), meth.getName(),\n Type.getMethodDescriptor(meth), false);\n\n // invoke after\n if (after != null) {\n int retPos = -1;\n if (meth.getReturnType() != void.class) {\n retPos = variableNr++;\n mv.visitVarInsn(AsmHelper.getStoreInsn(meth.getReturnType()), retPos);\n }\n\n // push all the method params to the stack\n // we only start at param[1] as param[0] of the helper method is the instance itself\n // and will get loaded with ALOAD_0 (this)\n mv.visitVarInsn(Opcodes.ALOAD, 0);\n for (int i = 1; i < helperParams.length; i++)\n {\n mv.visitVarInsn(AsmHelper.getLoadInsn(helperParams[i]), i);\n }\n\n if (retPos != -1) {\n mv.visitVarInsn(AsmHelper.getLoadInsn(meth.getReturnType()),retPos);\n }\n if (beforeRetPos != -1) {\n mv.visitVarInsn(AsmHelper.getLoadInsn(before.getReturnType()),beforeRetPos);\n }\n mv.visitMethodInsn(Opcodes.INVOKESTATIC, Type.getInternalName(after.getDeclaringClass()), after.getName(),\n Type.getMethodDescriptor(after), false);\n }\n\n mv.visitInsn(AsmHelper.getReturnInsn(meth.getReturnType()));\n mv.visitMaxs(-1, -1);\n mv.visitEnd();\n }",
"interface Group\n{\n\n public abstract LabelMap getElements(Context context)\n throws Exception;\n\n public abstract Label getLabel(Class class1);\n\n public abstract boolean isInline();\n}",
"private java.lang.reflect.Method m16124a(java.lang.Class r3, java.lang.String r4, java.lang.Class[] r5) {\n /*\n r2 = this;\n r0 = 0\n if (r3 == 0) goto L_0x0028\n boolean r1 = r2.m16125a((java.lang.Object) r4)\n if (r1 == 0) goto L_0x000a\n goto L_0x0028\n L_0x000a:\n r3.getMethods() // Catch:{ Exception -> 0x0015 }\n r3.getDeclaredMethods() // Catch:{ Exception -> 0x0015 }\n java.lang.reflect.Method r3 = r3.getDeclaredMethod(r4, r5) // Catch:{ Exception -> 0x0015 }\n return r3\n L_0x0015:\n java.lang.reflect.Method r3 = r3.getMethod(r4, r5) // Catch:{ Exception -> 0x001a }\n return r3\n L_0x001a:\n java.lang.Class r1 = r3.getSuperclass()\n if (r1 == 0) goto L_0x0028\n java.lang.Class r3 = r3.getSuperclass()\n java.lang.reflect.Method r0 = r2.m16124a((java.lang.Class) r3, (java.lang.String) r4, (java.lang.Class[]) r5)\n L_0x0028:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.shortcutbadger.impl.OPPOHomeBader.m16124a(java.lang.Class, java.lang.String, java.lang.Class[]):java.lang.reflect.Method\");\n }",
"void check () {\r\n OzcError.setLineNumber (body.line_no);\r\n\r\n check_constructor:\r\n\r\n if (method.isNew () && !method.wasCalledSuper ()) {\r\n ClassType c = method.getDefinedClass ();\r\n ClassImplementation ci;\r\n if (c.isClassInterface ()) \r\n\tci = ((ClassInterface) c).getImplementation ();\r\n else \r\n\tci = (ClassImplementation) c;\r\n do {\r\n\tci = ci.getSuperClass ();\r\n\tif (ci == null || School.isSystem (ci)) break check_constructor;\r\n } while (!ci.hasConstructor ());\r\n\r\n OzcError.constructorMustCallSuper (method);\r\n }\r\n\r\n /* need return statement as last statement */\r\n try {\r\n body.check (this);\r\n } catch (Unreachable e) {\r\n Statement st = e.getStatement ();\r\n if (st != null) \r\n\tOzcError.unreachableSt (st);\r\n else if (method.isNew () && need_return)\r\n\tOzcError.unreachableLastSt (body.line_no);\r\n }\r\n }",
"@Override\n\tprotected void buildMemWrapperBlockClass(String uvmBlockClassName, String nameSuffix, Integer mapWidthOverride) {\n\t\t// create block name + id with suffix\n\t\tString refId = ((regSetProperties == null) || regSetProperties.getBaseName().isEmpty()) ? nameSuffix : regSetProperties.getBaseName() + \"_\" + nameSuffix; // id used for structure lookup\n\t\t//System.out.println(\"UVMRegsTranslate1Builder buildMemWrapperBlockClass: fullId=\" + uvmBlockClassName + \", refId=\" + refId);\n\t\t\n\t\t// generate register header \n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\toutputList.add(new OutputLine(indentLvl, \"// Uvm_mem wrapper block \" + refId));\n\t\toutputList.add(new OutputLine(indentLvl++, \"class \" + uvmBlockClassName + \"#(type ALTPBLOCK_T = \" + altModelRootType + \", type ALTBLOCK_T = \" + altModelRootType + \") extends uvm_block_translate;\")); \n\n\t\t// create field definitions \n\t\tbuildBlockDefines(refId);\n\t\t\n\t\t// create new function\n\t\t//buildBlockNewDefine(uvmBlockClassName);\n\t\t\n\t\t// create build function ising width of underlying virtual regs/mem\n\t\tbuildBlockBuildFunction(refId);\n\t\t\n\t\t// get_alt_block - return alternate model regset struct corresponding to this block\n\t\tSystemVerilogFunction func = new SystemVerilogFunction(\"ALTBLOCK_T\", \"get_alt_block\"); \n\t func.addStatement(\"return m_parent.get_alt_block();\"); // wrapper block, so just return parent alt block\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t\n\t\t// close out the class definition\n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\t//outputList.add(new OutputLine(indentLvl, \"`uvm_object_utils(\" + uvmBlockClassName + \")\"));\n\t\toutputList.add(new OutputLine(--indentLvl, \"endclass : \" + uvmBlockClassName));\n\t}",
"void visitProducer(MethodHandle handle);",
"List method_111(class_922 var1, int var2, int var3, int var4);",
"public void doMethod(String callerName) throws LexemeException {\n\t\tlogMessage(\"<method>-->([<formals>]) [throws ID] <block>\");\n\t\tfunctionStack.push(\"<method>\");\n\t\tconsumeToken();\n\t\tif (ifPeekIsType()) {\n\t\t\tdoFormals(\"<method>\");\n\t\t}\n\t\tifPeekThenConsume(\"R_PAREN_\");\n\t\tif (ifPeek(\"THROWS_\")) {\n\t\t\tconsumeToken();\n\t\t\tifPeekThenConsume(\"ID_\");\n\t\t}\n\t\tif (ifPeek(\"L_CURLY_\")) {\n\t\t\tdoBlock(\"<method>\");\n\t\t}\n\t\tlogVerboseMessage(callerName);\n\t\tfunctionStack.pop();\n\t}",
"public void method_115() {}",
"TestFirstBlock createTestFirstBlock();",
"@Pointcut(\"within(com.osgo.model.Circle)\")\t\t\t\t\t\t\n\tpublic void allCircleMethods()\n\t{\n\t}",
"public void testSpecificBody(){\n $method $m = $method.of().$body(new Object(){ void m(Object $any$) { \n System.out.println($any$); \n }});\n \n class C {\n public void g(){\n System.out.println(1);\n } \n public void t(){\n // A comment is ignored when matching\n System.out.println( \"Some text \"); \n } \n } \n assertNotNull($m.firstIn(C.class));\n assertNotNull($m.selectFirstIn(C.class).is(\"any\", 1));\n assertEquals(2, $m.listIn(C.class).size()); \n }",
"public interface MethodSpecGenerator<T extends MethodSpec> {\n\tpublic Collection<T> findMethods(CtClass theKlass, Set<CtClass> taintClasses);\n}",
"@Override\n\tprotected void buildBaseBlockClass(String uvmBlockClassName, Boolean hasCallback) {\n\t\t//System.out.println(\"UVMRegsBuilder buildBaseBlockClass: fullId=\" + uvmBlockClassName + \", getUVMBlockID()=\" + getUVMBlockID());\n\t\tString refId = \"\"; // ref used for base block structure lookup\n\t\t\n\t\t// generate register header \n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\toutputList.add(new OutputLine(indentLvl, \"// Base block\"));\n\t\toutputList.add(new OutputLine(indentLvl++, \"class \" + uvmBlockClassName + \"#(type ALTPBLOCK_T = \" + altModelRootType + \", type ALTBLOCK_T = \" + altModelRootType + \") extends uvm_block_translate;\"));\n\t\t\n\t\toutputList.add(new OutputLine(indentLvl, \"local ALTBLOCK_T m_alt_root_instance;\")); \n\t\t\n\t\t//String uvmBlockClassName, \n\t\t// create field definitions \n\t\tbuildBlockDefines(refId);\n\t\t\n\t\t// create new function\n\t\t//buildBlockNewDefine(uvmBlockClassName);\n\t\t\n\t\t// create build function \n\t\tbuildBlockBuildFunction(refId);\n\t\t\n\t\t// get_alt_block - return alternate model regset struct corresponding to this block (special for base block)\n\t\tSystemVerilogFunction func = new SystemVerilogFunction(\"ALTBLOCK_T\", \"get_alt_block\"); \n\t func.addStatement(\"return m_alt_root_instance;\");\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t// set_alt_root_instance - return alternate model regset struct corresponding to this block (special for base block)\n\t\tfunc = new SystemVerilogFunction(null, \"set_alt_root_instance\"); \n\t\tfunc.addIO(\"input\", \"ALTBLOCK_T\", \"alt_root_instance\", null);\n\t func.addStatement(\"m_alt_root_instance = alt_root_instance;\");\n\t\toutputList.addAll(func.genOutputLines(indentLvl));\t\n\t\t\n\t\t// close out the class definition\n\t\toutputList.add(new OutputLine(indentLvl, \"\"));\t\n\t\t//outputList.add(new OutputLine(indentLvl, \"`uvm_object_utils(\" + uvmBlockClassName + \")\"));\n\t\toutputList.add(new OutputLine(--indentLvl, \"endclass : \" + uvmBlockClassName));\n\t}",
"public void performAnalysis (Launcher launcher) {\n //Iterates through each class and method the program was supplied with\n for (CtClass<?> classObject : Query.getElements(launcher.getFactory(), new TypeFilter<CtClass<?>>(CtClass.class))) {\n for (CtMethod<?> methodObject : Query.getElements(classObject, new TypeFilter<CtMethod<?>>(CtMethod.class))) {\n //Counts the number of various types of decision points that calculate cyclomatic complexity\n int ifCount = 0, conditionCount = 0, forCount = 0, whileCount = 0, caseCount = 0;\n ifCount = countIfs(methodObject);\n conditionCount = countConditions(methodObject);\n forCount = countFors(methodObject);\n whileCount = countWhiles(methodObject);\n caseCount = countCases(methodObject);\n localresults.put(\"IF\", ifCount);\n localresults.put(\"CONDITIONS\", conditionCount);\n localresults.put(\"FOR\", forCount);\n localresults.put(\"WHILE\", whileCount);\n localresults.put(\"CASE\", caseCount);\n //Totals the values per method and adds them to the hashmap\n int total = ifCount + conditionCount + forCount + whileCount + caseCount;\n total += 1;\n totalCMCValue += total;\n classCMCScores.put(classObject.getQualifiedName()+\".\"+methodObject.getSimpleName(), total);\n }\n }\n }",
"private void setMethods(Class<?> token) {\n List<Method> newMethods = new ArrayList<>();\n for (Method method : token.getDeclaredMethods()) {\n if (methods.add(new MethodWithHash(method)) && !method.isDefault()) {\n newMethods.add(method);\n }\n }\n for (Method method : newMethods) {\n Type returnType = method.getReturnType();\n StringBuilder body = new StringBuilder(\"return\");\n if (((Class) returnType).isPrimitive()) {\n if (returnType.equals(boolean.class)) {\n body.append(\" false\");\n } else if (!returnType.equals(void.class)) {\n body.append(\" 0\");\n }\n } else {\n body.append(\" null\");\n }\n body.append(\";\");\n setExecutable(method, ((Class) returnType).getCanonicalName(), body, false);\n }\n }",
"public interface CoverCreationMethod {\n\n}",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}",
"@Override\r\n\tpublic void onBlockHit(Block block) {\n\t\t\r\n\t}"
] |
[
"0.53441703",
"0.52957994",
"0.52868176",
"0.52768344",
"0.5256956",
"0.52545935",
"0.5237733",
"0.5217948",
"0.521352",
"0.51990527",
"0.5195992",
"0.5156336",
"0.5144992",
"0.51352894",
"0.5124856",
"0.5115691",
"0.51105875",
"0.51083916",
"0.50826794",
"0.5066032",
"0.5059885",
"0.50577885",
"0.5053622",
"0.5033599",
"0.502915",
"0.50216407",
"0.50180894",
"0.50044537",
"0.49849865",
"0.4962329",
"0.49498168",
"0.49483737",
"0.49476856",
"0.49456447",
"0.49352446",
"0.49326998",
"0.49232963",
"0.49178848",
"0.4910469",
"0.49025476",
"0.49006584",
"0.4892102",
"0.48912734",
"0.48888087",
"0.48800915",
"0.4873774",
"0.48650235",
"0.48628885",
"0.48607075",
"0.48519656",
"0.48451543",
"0.4834533",
"0.4826795",
"0.48243156",
"0.48178783",
"0.48168308",
"0.48162374",
"0.48075652",
"0.4803398",
"0.47983572",
"0.4796962",
"0.4795864",
"0.47957423",
"0.4784971",
"0.47821644",
"0.47803837",
"0.47803047",
"0.47779247",
"0.47739035",
"0.47691938",
"0.4764915",
"0.4761088",
"0.4760781",
"0.47582066",
"0.47564933",
"0.47471273",
"0.4745959",
"0.4744786",
"0.4736302",
"0.47355196",
"0.4735357",
"0.47344586",
"0.47281364",
"0.4727962",
"0.47266462",
"0.47190347",
"0.47153527",
"0.47129303",
"0.47123986",
"0.47119576",
"0.470659",
"0.47044462",
"0.4701067",
"0.47007203",
"0.46917975",
"0.4687957",
"0.4687307",
"0.468657",
"0.468657",
"0.468657"
] |
0.6269368
|
0
|
Method called when the 'Save' button is clicked.
|
public void SaveButtonOnClickListener(View view) {
String defaultObjectOwner = ((EditText)findViewById(R.id.settings_default_object_owner_field)).getText().toString().trim();
presenter.SaveSettings(defaultObjectOwner);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"void onSaveClicked();",
"void handleSaveClicked(ActionEvent event);",
"public void saveData(){\n reporter.info(\"Save edited form\");\n clickOnElement(LOCATORS.getBy(COMPONENT_NAME,\"SAVE_BUTTON\"));\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tSave();\n\t\t\t}",
"private void saveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveActionPerformed\n toSave();\n }",
"public void save() {\n }",
"public void onSaveButtonClick(ActionEvent e){\n\t\tsaveFile(false);\n\t}",
"public void clickOnSave() {\r\n\t\telement(saveButton).waitUntilVisible();\r\n\t\tsaveButton.click();\r\n\t}",
"private void saveButtonActionPerformed(java.awt.event.ActionEvent evt) {\n }",
"public void save() {\t\n\t\n\t\n\t}",
"public void saveAction() {\n\t\tresult.setValue(convertPairsToText());\n\t\tcloseDialog();\n\t}",
"public void save();",
"public void save();",
"public void save();",
"public void save();",
"public void clickOnSaveButton() {\r\n\t\tsafeJavaScriptClick(manageVehiclesSideBar.replace(\"Manage Vehicles\", \"Save\"));\r\n\t}",
"@UiHandler(\"save\")\n\tvoid onSaveClicked(ClickEvent evt) {\n\t\tScheduler.get().scheduleDeferred(new ScheduledCommand() {\n\t\t\t@Override\n\t\t\tpublic void execute() {\n\t\t\t\tpresenter.save();\n\t\t\t}\n\t\t});\n\t}",
"private void onClickSaveButton() {\n // Validate and save form\n if (mDynamicForm.validate()) {\n triggerSubmitForm(mDynamicForm.getForm().getAction(), mDynamicForm.save());\n }\n }",
"private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveActionPerformed\n boolean flag = this.cutiController.save(txtCutiID.getText(), (txtTglAwal.getText()), (txtTglAkhir.getText()),\n txtKet.getText(), cmbCutiKhususID.getSelectedIndex());\n String message = \"Failed to save data...\";\n if (flag){\n message = \"Success to save data...\";\n }\n JOptionPane.showMessageDialog(this, message, \"Allert / Notification\", \n JOptionPane.INFORMATION_MESSAGE);\n \n bindingTable();\n reset();\n }",
"@Override\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tsaveChanges();\r\n\t\t\t\t\t\r\n\t\t\t\t}",
"public void save() throws Exception {\n\t\tgetControl(\"saveButton\").click();\n\t\tVoodooUtils.pause(3000);\n\t}",
"void save();",
"void save();",
"void save();",
"@Override\n\tpublic void save() throws Exception {\n\t\tVoodooUtils.focusFrame(\"bwc-frame\");\n\t\tgetControl(\"save\").click();\n\t\tVoodooUtils.waitForReady();\n\t\tVoodooUtils.focusDefault();\n\t}",
"@Override\n public void Save() {\n\t \n }",
"@Override\n\tpublic void save() {\n\t\tSystem.out.println(\"save method\");\n\t}",
"HasClickHandlers getSaveButton();",
"public HasClickHandlers getSaveButton() {\n\t\treturn btnSave;\r\n\t}",
"public void onSaveClicked(View view) {\n\n if (mInterest != 0.0f) {\n\n ContentValues values = new ContentValues();\n values.put(SavingsItemEntry.COLUMN_NAME_BANK_NAME, bankInput.getText().toString());\n values.put(SavingsItemEntry.COLUMN_NAME_AMOUNT, mAmount);\n values.put(SavingsItemEntry.COLUMN_NAME_YIELD, mYield);\n values.put(SavingsItemEntry.COLUMN_NAME_START_DATE, mStartDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_END_DATE, mEndDate.getTime());\n values.put(SavingsItemEntry.COLUMN_NAME_INTEREST, mInterest);\n\n if (mEditMode){\n //Update the data into database by ContentProvider\n getContentResolver().update(SavingsContentProvider.CONTENT_URI, values,\n SavingsItemEntry._ID + \"=\" + mSavingsBean.getId(), null);\n Log.d(Constants.LOG_TAG, \"Edit mode, updated existing savings item: \" + mSavingsBean.getId());\n }else {\n // Save the data into database by ContentProvider\n getContentResolver().insert(\n SavingsContentProvider.CONTENT_URI,\n values\n );\n }\n // Go back to dashboard\n //Intent intent = new Intent(this, DashboardActivity.class);\n //startActivity(intent);\n Utils.gotoDashBoard(this);\n finish();\n } else {\n Toast.makeText(this, R.string.missing_savings_information, Toast.LENGTH_LONG).show();\n }\n\n }",
"@Override\n public void save()\n {\n \n }",
"@Override\n public void save() {\n \n }",
"public void clickOnSave_Changes()\n\t{\n\t\twaitForVisibility(save_Changes);\n\t\tsave_Changes.click();\n\t}",
"@Override\n\tpublic void save() {\n\t\t\n\t}",
"@Override\n\tpublic void save() {\n\t\t\n\t}",
"public void saveButtonClicked() {\n clearInputFieldStyle();\n boolean minOneError = false;\n HashMap<JFXTextField, Boolean> errors = validateFields();\n\n for(Map.Entry<JFXTextField, Boolean> entry : errors.entrySet()) {\n JFXTextField textField = entry.getKey();\n Boolean value = entry.getValue();\n\n if(value){\n textField.styleProperty().setValue(\"-fx-text-fill: #e15f50;\");\n minOneError = true;\n }\n }\n\n if(!minOneError){\n saveRaceCar();\n updateRaceCarList();\n selectRaceCarInListView();\n setButtonsDisabled(true, false, false);\n setAllFieldsAndSliderDisabled(true);\n ViewHelper.updateCarData();\n }\n }",
"protected void save() {\n close();\n if(saveAction != null) {\n saveAction.accept(getObject());\n }\n }",
"@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tsaveFile();\n\t\t\t}",
"private void saveListener() {\n buttonPanel.getSave().addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n toDoList.saveAll(fileLocation);\n }\n });\n }",
"private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {\n rom.save(obstacle, frog);\n isSaved = true;\n }",
"@FXML private void doSave(ActionEvent event) {\n\t\tmodel.save();\n\t}",
"private void savePressed(){\n\t\t\n\t\tJFileChooser fileChooser = new JFileChooser(System.getProperty(\"user.dir\"));\n\t\tFileNameExtensionFilter extentions = new FileNameExtensionFilter(\"SuperCalcSave\", \"scalcsave\");\n\t\tfileChooser.setFileFilter(extentions);\n\t\tint retunedVal = fileChooser.showSaveDialog(this);\n\t\tFile file = null;\n\t\tif(retunedVal == JFileChooser.APPROVE_OPTION){\n\t\t\tfile = fileChooser.getSelectedFile();\n\t\t\t//make sure file has the right extention\n\t\t\tif(file.getAbsolutePath().contains(\".scalcsave\"))\n\t\t\t\tfile = new File(file.getAbsolutePath());\n\t\t\telse\n\t\t\t\tfile = new File(file.getAbsolutePath()+\".scalcsave\");\n\t\t}\n\t\t//only continue if a file is selected\n\t\tif(file != null){\t\n\t\t\ttry {\n\t\t\t\t//read in file\n\t\t\t\tObjectOutputStream output = new ObjectOutputStream(new FileOutputStream(file));\n\t\t\t\toutput.writeObject(SaveFile.getSaveFile());\n\t\t\t\toutput.close();\n\t\t\t\tSystem.out.println(\"Save Success\");\n\t\t\t\t\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t}",
"@OnClick(R.id.btn_save_event)\n public void saveChanges() {\n if (isNewEvent) {\n createEvent();\n } else {\n updateEvent();\n }\n }",
"@Override\n public void save() {\n\n }",
"public void clickOnSaveChanges()\n\t{\n\t\twaitForVisibility(saveChanges);\n\t\tsaveChanges.click();\n\t}",
"@Override\r\n\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\tSaveAction();\r\n\t\t\t\r\n\t\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t}",
"private void saveAsButton(){\n SaveAsLabNameTextField.setText(\"\");\n SaveAsErrorLabel.setVisible(false);\n SaveAsDialog.setVisible(true);\n }",
"public String Save()\n\t{\n\t\tif (this.actionString == \"Create\")\n\t\t{\n\t\t\tSystem.out.println(\"CREATE NEW CAR: \" + this.modifyCar.toString());\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"UPDATE CAR: \" + this.modifyCar.toString());\n\t\t}\n\n\t\treturn \"home\";\n\t}",
"public void operationSave() {\n\r\n\t\tstatusFeldSave();\r\n\t}",
"void doSaveAs() {\r\n\t\tMapOpenSaveDialog dlg = new MapOpenSaveDialog(true, labels, saveSettings);\r\n\t\tdlg.setLocationRelativeTo(this);\r\n\t\tdlg.setVisible(true);\r\n\t\tif (dlg.saveSettings != null) {\r\n\t\t\tsaveSettings = dlg.saveSettings;\r\n\t\t\tfinal String fn = dlg.saveSettings.fileName.getPath();\r\n\t\t\taddRecentEntry(fn);\r\n\t\t\tdoSave();\r\n\t\t}\r\n\t}",
"public void save(){\r\n if (inputValidation()) {\r\n if (modifyingPart) {\r\n saveExisting();\r\n } else {\r\n saveNew();\r\n }\r\n closeWindow();\r\n }\r\n\r\n }",
"public void onSaveButtonClicked() {\n String description = mEditText.getText().toString();\n Date date = new Date();\n\n final DiaryEntry entry = new DiaryEntry(description, date);\n AppExecutors.getInstance().diskIO().execute(new Runnable() {\n @Override\n public void run() {\n if (mEntryId == DEFAULT_ENTRY_ID) {\n // insert new task\n mDb.entryDao().insertEntry(entry);\n } else {\n //update task\n entry.setId(mEntryId);\n mDb.entryDao().updateEntry(entry);\n }\n finish();\n }\n });\n }",
"@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsave();\n\t\t\t}",
"public void saveClicked()\n {\n String name = nameText.getText().toString();\n if(name.length() == 0)\n {\n showMessage(\"Name cannot be empty!\");\n return;\n }\n // create a new record;\n Record r = new Record(name, timeUsed, shapeMissed);\n Intent intent = new Intent(this, RankScore.class);\n intent.putExtra(\"record\", r);\n startActivityForResult(intent, 1, null);\n }",
"private void save() {\r\n\t\tif (Store.save()) {\r\n\t\t\tSystem.out.println(\" > The store has been successfully saved in the file StoreData.\\n\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\" > An error occurred during saving.\\n\");\r\n\t\t}\r\n\t}",
"public void save(){\r\n\t\t//System.out.println(\"call save\");\r\n\t\tmodel.printDoc();\r\n\t}",
"private void savedDialog() {\n\t\tTextView tv = new TextView(this);\n\t\ttv.setText(\"Changes to the current recipe have been saved.\");\n\t\tAlertDialog.Builder alert = new AlertDialog.Builder(this);\n\t\talert.setTitle(\"Success\");\n\t\talert.setView(tv);\n\t\talert.setNegativeButton(\"OK\", new DialogInterface.OnClickListener() {\n\t\t\tpublic void onClick(DialogInterface dialog, int whichButton) {\n\t\t\t\tfinish();\n\t\t\t}\n\t\t});\n\t\talert.show();\n\t}",
"@Override\r\n\tpublic void save() throws SaveException {\n\t\t\r\n\t}",
"public void save(){\r\n\t\tmanager.save(this);\r\n\t}",
"public void clickOnSaveChangesButton() {\r\n\t\tprint(\"Click on Save Changes Button\");\r\n\t\tlocator = Locator.MyTrader.Save_Changes_Button.value;\r\n\t\tclickOn(locator);\r\n\t}",
"private void menuSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menuSaveActionPerformed\n saveDataToFile();\n }",
"private void saveButtonActionPerformed(java.awt.event.ActionEvent evt)\n {\n if (validationIsOK()) {\n \tsaveSettings();\n autosave.saveSettings();\n if (this.autosaveListener != null\n ) {\n \tthis.autosaveListener.reloadSettings();\n }\n dispose();\n }\n }",
"public boolean save();",
"private void saveData() {\n try {\n Student student = new Student(firstName.getText(), lastName.getText(),\n form.getText(), stream.getText(), birth.getText(),\n gender.getText(), Integer.parseInt(admission.getText()),\n Integer.parseInt(age.getText()));\n\n\n if (action.equalsIgnoreCase(\"new\") && !assist.checkIfNull(student)) {\n\n dao.insertNew(student);\n JOptionPane.showMessageDialog(null, \"Student saved !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n\n } else if (action.equalsIgnoreCase(\"update\") && !assist.checkIfNull(student)) {\n dao.updateStudent(student, getSelected());\n JOptionPane.showMessageDialog(null, \"Student Updated !\", \"Success\", JOptionPane.INFORMATION_MESSAGE);\n }\n\n prepareTable();\n prepareHistory();\n buttonSave.setVisible(false);\n admission.setEditable(true);\n }catch (Exception e)\n {}\n }",
"public void onSaveClick() {\n Log.d(\"database\", \"onSaveClick invoked.\");\n Prediction p = new Prediction(0, resultStringToSave, byteArrayToSave);\n Log.d(\"database\", \"Prediction before adding to db... id: ? prediction string: \" + resultStringToSave + \" bytearr: \" + byteArrayToSave);\n PredictionDatabase.insert(p);\n // save to db\n }",
"public void onSaveClicked(View view) {\n if (isAllInputValid()) {\n saveValues();\n showToast(R.string.toast_changes_applied);\n finish();\n }\n else {\n new AlertDialog.Builder(this).\n setTitle(R.string.dialog_error_title).\n setMessage(R.string.dialog_error_msg).\n setPositiveButton(R.string.dialog_error_pos, (dialog, which) -> {}).\n create().show();\n }\n }",
"public void saveButtonPressed(ActionEvent actionEvent) throws IOException{\n validateInputs(actionEvent);\n\n if (isInputValid) {\n //creates a new Product object with identifier currentProduct\n currentProduct = new Product(productNameInput, productInventoryLevel, productPriceInput, maxInventoryLevelInput, minInventoryLevelInput);\n\n //passes currentProduct as the argument for the .addMethod.\n Inventory.getAllProducts().add(currentProduct);\n\n //utilizes the associatedPartsTableviewHolder wiht a for loop to pass each element as an argument\n //for the .addAssociatedPart method.\n for (Part part : associatedPartTableViewHolder) {\n currentProduct.addAssociatedPart(part);\n }\n\n //calls the returnToMainMen() method.\n mainMenuWindow.returnToMainMenu(actionEvent);\n }\n else {\n isInputValid = true;\n }\n\n }",
"protected void actionPerformedSave ()\n {\n Preferences rootPreferences = Preferences.systemRoot ();\n PreferencesTableModel rootPrefTableModel = new PreferencesTableModel (rootPreferences);\n rootPrefTableModel.syncSave ();\n Preferences userPreferences = Preferences.userRoot ();\n PreferencesTableModel userPrefTableModel = new PreferencesTableModel (userPreferences);\n userPrefTableModel.syncSave ();\n this.setVisible (false);\n this.dispose ();\n }",
"@Override\n\tpublic void save() {\n\t\t\n\t\tFile savingDirectory = new File(savingFolder());\n\t\t\n\t\tif( !savingDirectory.isDirectory() ) {\n\t\t\tsavingDirectory.mkdirs();\n\t\t}\n\t\t\n\t\t\n\t\t//Create the file if it's necessary. The file is based on the name of the item. two items in the same directory shouldn't have the same name.\n\t\t\n\t\tFile savingFile = new File(savingDirectory, getIdentifier());\n\t\t\n\t\tif( !savingFile.exists() ) {\n\t\t\t\n\t\t\ttry {\n\t\t\t\tsavingFile.createNewFile();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"the following item couldn't be saved: \" + getIdentifier());\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n\n\t\t\n\t\t//generate the savingTextLine and print it in the savingFile. the previous content is erased when the PrintWriter is created.\n\t\t\n\t\tString text = generateSavingTextLine();\n\n\t\ttry {\n\t\t\tPrintWriter printer = new PrintWriter(savingFile);\n\t\t\tprinter.write(text);\t\t\t\n\t\t\tprinter.close();\n\t\t\t\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t\tsave();\n\t\t} \n\t}",
"@Override\r\n\tpublic void save() {\n\r\n\t\ts.save();\r\n\r\n\t}",
"public Component saveButton() {\n saveButton = new JButton(\"Save\");\n setFocusable(false);\n return saveButton;\n }",
"@Override\r\n\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\tsaveFields();\r\n\t\t\t\t}",
"private void handleMenuSave() {\n String initialDirectory = getInitialDirectory();\n String initialFileName = getInitialFilename(Constants.APP_FILEEXTENSION_SPV);\n File file = FileChooserHelper.showSaveDialog(initialDirectory, initialFileName, this);\n\n if (file == null) {\n return;\n }\n\n handleFileStorageFactoryResult(controller.saveFile(file.getAbsolutePath()));\n }",
"public void onSaveClicked(View v) {\n\n\t\tString mValue = (String) ((EditText) findViewById(R.id.editName))\n\t\t\t\t.getText().toString();\n\n\t\tif (mValue.equals(\"\")) {\n\t\t\tToast.makeText(getApplicationContext(), \"Please enter your name\",\n\t\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t} else {\n\t\t\tGlobals.USER_COLOR = CalendarUtils.generateRandomColor();\n\t\t\tsaveUserData();\n\t\t\t// Make a Toast informing the user their information is saved.\n\t\t\tToast.makeText(getApplicationContext(), \"Saved\", Toast.LENGTH_SHORT)\n\t\t\t\t\t.show();\n\t\t\t\n\t\t\tint size = Globals.drawingMatrix.size();\n\t\t\tfor (int i = 0; i < size; i++) {\n\t\t\t\tGlobals.drawingMatrix.get(i).clear();\n\t\t\t}\n\t\t\tGlobals.drawingMatrix.clear();\n\t\t\t\n\t\t\tfinish();\n\t\t}\n\n\t}",
"void save(final Widget widget);",
"private void onClickButtonSaveAndCreateAnother() {\n if (onClickButtonSave()) {\n startActivity(getIntent());\n }\n }",
"public void onSaveFile(){\n\n\t\t\n\t\tFormUtil.dlg.setText(\"Saving...\");\n\t\tFormUtil.dlg.show();\n\t\tGWT.runAsync(new RunAsyncCallback() {\n\t public void onFailure(Throwable caught) {}\n\t public void onSuccess() {\t \n\t\t\t\t//DeferredCommand.addCommand(new Command() {\n\t \t Scheduler scheduler = Scheduler.get();\n\t \t scheduler.scheduleDeferred(new Command() {\n\t\t\t\t\tpublic void execute() {\n\t\t\t\t\t FormDef form = controller.getSelectedForm();\t\t\t\t \t\t\t\t\n\t\t\t\t\t\ttry{\n\t\t\t\t\t\t\tif(form != null){\n\t\t\t\t\t\t\t\tsaveFile(false);\n\t\t\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\n\t\t\t\t\t\t\t\tString fileName = \"filename\";\n\t\t\t\t\t\t\t\tfileName = form.getName();\n\t\t\t\t\t\t\t\tString xmlFormStr = FormHandler.writeToXML(form);\n\t\t\t\t\t\t\t\tSaveToFileDialog dlg = SaveToFileDialog.getInstnace(xmlFormStr, fileName);\n\t\t\t\t\t\t\t\tdlg.center();\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tFormUtil.dlg.hide();\n\t\t\t\t\t\t\t\tWindow.alert(\"No form to save\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch(Exception ex){\n\t\t\t\t\t\t\tFormUtil.displayException(ex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t});\n\t }\n\t\t});\n\t}",
"@FXML\n private void handleSaveButton(MouseEvent event) throws IOException {\n\n Date date = new Date(LocalDate.now(), false, absenceText.getText());\n appModel.toBeAttending(activeStudent.getId(), date);\n activeStudent.setDays(appModel.getStudentDays(activeStudent.getId()));\n dates.clear();\n dates.addAll(activeStudent.getDays());\n\n updateThread.start();\n\n Stage stage = (Stage) saveButton.getScene().getWindow();\n stage.close();\n }",
"public void saveClicked(View actionView)\n {\n \t//If ID is empty it is a new Task\n \tif( taskId.getText().length() > 0 )\n \t{\n \t\tupdateTask();\n \t}\n \t//If ID exists it is updating an existing task\n \telse\n \t{\n \t\tnewTask();\n \t}\n }",
"private void save(){\n\n this.title = mAssessmentTitle.getText().toString();\n String assessmentDueDate = dueDate != null ? dueDate.toString():\"\";\n Intent intent = new Intent();\n if (update){\n assessment.setTitle(this.title);\n assessment.setDueDate(assessmentDueDate);\n assessment.setType(mAssessmentType);\n intent.putExtra(MOD_ASSESSMENT,assessment);\n } else {\n intent.putExtra(NEW_ASSESSMENT, new Assessment(course.getId(),this.title,mAssessmentType,assessmentDueDate));\n }\n setResult(RESULT_OK,intent);\n finish();\n }",
"public final void saveAction(){\r\n\t\ttestReqmtService.saveAction(uiTestReqEditModel);\r\n\t\tgeteditDetails(uiTestReqEditModel.getObjId());\r\n\t\taddInfoMessage(SAVETR, \"save.TRsuccess\"); \r\n\t\tfor (UITestReqModel reqmnt : uiTestReqModel.getResultList()) {\r\n\t\t\tif(reqmnt.isTrLink()){\r\n\t\t\t\treqmnt.setTrLink(false);\r\n\t\t\t}\r\n\t\t}\r\n\t}",
"public void onMenuSave() {\n String lastSavedPath = controller.getLastSavePath();\n\n if (lastSavedPath == null) {\n onMenuSaveAs();\n return;\n }\n\n handleFileStorageFactoryResult(controller.saveFile(lastSavedPath));\n }",
"public void actionPerformed(ActionEvent e)\n {\n MapArchitect.save();\n }",
"private void saveData() {\n\t\tthis.dh = new DataHelper(this);\n\t\tthis.dh.updateData(String.valueOf(mData.getText()), i.getId());\n\t\tthis.dh.close();\n\t\tToast\n\t\t\t\t.makeText(ctx, \"Changes saved successfully...\",\n\t\t\t\t\t\tToast.LENGTH_SHORT).show();\n\n\t\tIntent myIntent = new Intent(EditActivity.this, StartActivity.class);\n\t\tEditActivity.this.startActivity(myIntent);\n\t\tfinish();\n\t}",
"private void saveForm() {\n\n if (reportWithCurrentDateExists()) {\n // Can't save this case\n return;\n }\n\n boolean isNewReport = (mRowId == null);\n\n // Get field values from the form elements\n\n // Date\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n String date = df.format(mCalendar.getTime());\n\n // Value\n Double value;\n try {\n value = Double.valueOf(mValueText.getText().toString());\n } catch (NumberFormatException e) {\n value = 0.0;\n }\n\n // Create/update report\n boolean isSaved;\n if (isNewReport) {\n mRowId = mDbHelper.getReportPeer().createReport(mTaskId, date, value);\n isSaved = (mRowId != 0);\n } else {\n isSaved = mDbHelper.getReportPeer().updateReport(mRowId, date, value);\n }\n\n // Show toast notification\n if (isSaved) {\n int toastMessageId = isNewReport ?\n R.string.message_report_created :\n R.string.message_report_updated;\n Toast toast = Toast.makeText(getApplicationContext(), toastMessageId, Toast.LENGTH_SHORT);\n toast.show();\n }\n }",
"protected abstract void doSave();",
"@Override\n\tprotected void cmdSaveWidgetSelected() {\n\n\t\tif (fieldsOk()) {\n\t\t\tif(fieldsChanged) {\n\t\t\t\tTransaction tx = null;\n\t\t\t\ttry {\n\n\t\t\t\t\tMessageBox mSave = new MessageBox(getShell(), SWT.ICON_QUESTION\n\t\t\t\t\t\t\t| SWT.YES | SWT.NO);\n\n\t\t\t\t\tif(currentScreenMode.equalsIgnoreCase(screenModes[0])) {\n\t\t\t\t\t\tmSave.setText(\"iDART: Add New Pharmacy?\");\n\t\t\t\t\t\tmSave.setMessage(\"Are you sure you want to add Pharmacy '\"\n\t\t\t\t\t\t\t\t+ txtStockCenterName.getText() + \"'?\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentScreenMode.equalsIgnoreCase(screenModes[1])) {\n\t\t\t\t\t\tmSave.setText(\"iDART: Update Pharmacy?\");\n\t\t\t\t\t\tmSave.setMessage(\"Are you sure you want to update the Pharmacy '\"\n\t\t\t\t\t\t\t\t+ txtStockCenterName.getText() + \"'?\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(currentScreenMode.equalsIgnoreCase(screenModes[2])) {\n\t\t\t\t\t\tmSave.setText(\"iDART: Update Facility Details?\");\n\t\t\t\t\t\tmSave.setMessage(\"Are you sure you want to update the Facility Details?\");\n\t\t\t\t\t}\n\t\t\t\t\tswitch (mSave.open()) {\n\n\t\t\t\t\tcase SWT.YES:\n\t\t\t\t\t\ttx = getHSession().beginTransaction();\n\n\t\t\t\t\t\tsaveModeInformation();\n\t\t\t\t\t\tgetHSession().flush();\n\t\t\t\t\t\ttx.commit();\n\t\t\t\t\t\tMessageBox confirmUpdate = new MessageBox(getShell(),\n\t\t\t\t\t\t\t\tSWT.OK | SWT.ICON_INFORMATION);\n\t\t\t\t\t\tconfirmUpdate.setText(\"iDART: Database Updated\");\n\t\t\t\t\t\tconfirmUpdate.setMessage(\"The changes have been updated.\");\n\t\t\t\t\t\tconfirmUpdate.open();\n\t\t\t\t\t\tclearMode();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SWT.NO:\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t// else, there was a problem saving the PharmacyDetails details to the\n\t\t\t\t// database\n\t\t\t\tcatch (HibernateException he) {\n\t\t\t\t\tMessageBox confirmUpdate = new MessageBox(getShell(), SWT.OK\n\t\t\t\t\t\t\t| SWT.ICON_INFORMATION);\n\t\t\t\t\tconfirmUpdate.setText(\"iDART: Database Error\");\n\t\t\t\t\tconfirmUpdate\n\t\t\t\t\t.setMessage(\"There was a problem saving the PharmacyDetails \"\n\t\t\t\t\t\t\t+ \"information to the database - sorry! \\n\\nPlease \"\n\t\t\t\t\t\t\t+ \"try again later.\");\n\t\t\t\t\tconfirmUpdate.open();\n\t\t\t\t\tif (tx != null) {\n\t\t\t\t\t\ttx.rollback();\n\t\t\t\t\t}\n\t\t\t\t\tgetLog().error(\n\t\t\t\t\t\t\t\"Hibernate Exception while adding/updating PharmacyDetails\",\n\t\t\t\t\t\t\the);\n\t\t\t\t\tcmdCancelWidgetSelected();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse {\n\t\t\t\tMessageBox mSave = new MessageBox(getShell(), SWT.OK\n\t\t\t\t\t\t| SWT.ICON_INFORMATION);\n\t\t\t\tmSave.setText(\"iDART: Changes Not Made\");\n\t\t\t\tmSave.setMessage(\"No changes were made\");\n\t\t\t\tmSave.open();\n\n\t\t\t}\n\n\t\t}\n\n\t}",
"public void saveData(){\r\n file.executeAction(modelStore);\r\n }",
"public void alertSaveSuccess() {\n\t\tthis.alert(\"Saved\",\"Game saved\",AlertType.INFORMATION);\n\t}",
"private void saveData() {\n }",
"public void save(){\n\tif(currentFile == null){\n\t // TODO: add popup to select where to save file and file name\n\t // currentFile = new TextFile(os, title, null);\n\t}else{\n\t currentFile.setBody(textArea.getText());\n\t}\n }",
"private void save(ActionEvent e){\r\n // Make sure all required fields are filled out before saving\r\n if (formIsValid()){\r\n // Check if client currently exists. If so, modify. Otherwise create new entry.\r\n if (existingClient){\r\n // Modify the existing currentClient holder -- Change the variable to global currentClient cache holder\r\n currClient.setName(NAME_FIELD.getText());\r\n currClient.setAddress1(ADDRESS_1_FIELD.getText());\r\n currClient.setAddress2(ADDRESS_2_FIELD.getText());\r\n currClient.setCity(CITY_FIELD.getText());\r\n currClient.setZip(ZIP_FIELD.getText());\r\n currClient.setCountry(COUNTRY_FIELD.getText());\r\n currClient.setPhone(PHONE_FIELD.getText());\r\n // Update client in database\r\n Client.modifyClient(currClient, currClient.getClientID());\r\n }\r\n // Create new client entry\r\n else { \r\n Client c = new Client (NAME_FIELD.getText(),ADDRESS_1_FIELD.getText(),\r\n ADDRESS_2_FIELD.getText(),CITY_FIELD.getText(),\r\n ZIP_FIELD.getText(),COUNTRY_FIELD.getText(),PHONE_FIELD.getText());\r\n Client.addNewClient(c);\r\n }\r\n\r\n existingClient = false; // reset existing client flag\r\n clearFields(); // remove data from fields\r\n // Return to Appt Mgmt Screen if we came from there\r\n if (fromAppt){\r\n goToManageApptScreen();\r\n }\r\n }\r\n // If forms are not complete throw an alert\r\n else {\r\n AlertBox.display(\"Invalid Submission\", \"Form is missing required information or has invalid input.\"\r\n + \" The following information is required:\\n\"\r\n + \"Name\\nAddress 1\\nCity, State, Country, Zipcode\\nPhoneNumber\"\r\n + \"\\nPlease complete form with valid input and submit again.\");\r\n }\r\n }",
"public void SaveBtn(MouseEvent event) {\n\t}",
"void save() {\n gameModelPoDao.saveToFile(file.getAbsolutePath(), gameModelPo);\n }",
"private void btnSaveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnSaveActionPerformed\r\n\r\n int returnVal = getOutChooser().showOpenDialog(this);\r\n \r\n if(returnVal == JFileChooser.APPROVE_OPTION) {\r\n try {\r\n Utils.saveFile(blackWords.getText(), getOutChooser().getSelectedFile());\r\n \r\n } catch (FileNotFoundException ex) {\r\n ex.printStackTrace();\r\n } catch (IOException ex) {\r\n ex.printStackTrace();\r\n }\r\n }\r\n \r\n putWizardData(\"blacksaved\", \"false\");\r\n }",
"public void saveAs() {\n editorManager.currentFileManager().saveAs();\n mimaUI.fileChanged();\n }",
"private void completeSave() {\n colorBar.updateRevertToCurrent();\n colorBar.revertColorBar();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n cmapParams.setColorMapName(seldCmapName);\n saveBtn.setEnabled(true);\n }",
"public void saveModel() {\n\t}"
] |
[
"0.82174736",
"0.7993568",
"0.79688466",
"0.7934442",
"0.76906127",
"0.7619666",
"0.76005054",
"0.75997084",
"0.7593264",
"0.7528069",
"0.74805343",
"0.74779516",
"0.74779516",
"0.74779516",
"0.74779516",
"0.74469537",
"0.7442084",
"0.7441896",
"0.74028015",
"0.7390886",
"0.7379315",
"0.73777956",
"0.73777956",
"0.73777956",
"0.7374724",
"0.73596454",
"0.73540604",
"0.73049265",
"0.7270869",
"0.7265735",
"0.7261172",
"0.7252282",
"0.72476107",
"0.7243465",
"0.7243465",
"0.7224332",
"0.72185713",
"0.7215144",
"0.7187901",
"0.7183012",
"0.71719486",
"0.71709037",
"0.7169049",
"0.71474457",
"0.7128301",
"0.71221554",
"0.7114469",
"0.7114469",
"0.7101685",
"0.70948344",
"0.7091643",
"0.70658123",
"0.7057178",
"0.70570076",
"0.7055384",
"0.7045031",
"0.70404834",
"0.70353717",
"0.7034104",
"0.7032104",
"0.6981279",
"0.69619",
"0.6945655",
"0.6937555",
"0.6930295",
"0.69203",
"0.69150585",
"0.6888248",
"0.6886755",
"0.6883051",
"0.68649703",
"0.68553483",
"0.68383163",
"0.6836752",
"0.68289226",
"0.68148637",
"0.68097794",
"0.6808902",
"0.68038976",
"0.6803883",
"0.678568",
"0.67851585",
"0.677284",
"0.67662746",
"0.6755764",
"0.67427427",
"0.6734859",
"0.6731323",
"0.6721293",
"0.66953415",
"0.66945285",
"0.6684992",
"0.6681457",
"0.6679646",
"0.66792285",
"0.66748565",
"0.6671866",
"0.66459197",
"0.6639407",
"0.66251373"
] |
0.6953056
|
62
|
Two members with the same identity fields
|
@Test
public void resetData_withDuplicateMembers_throwsDuplicateMemberException() {
Member editedAlice =
new MemberBuilder(ALICE).withAddress(VALID_ADDRESS_BOB).withPositions(VALID_POSITION_HUSBAND)
.build();
List<Member> newMembers = Arrays.asList(ALICE, editedAlice);
AddressBookStub newData = new AddressBookStub(newMembers);
assertThrows(DuplicateMemberException.class, () -> addressBook.resetData(newData));
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean hasIdentity() { return true; }",
"public boolean hasIdentity() { return true; }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Identity)) {\r\n return false;\r\n }\r\n Identity other = (Identity) object;\r\n if ((this.userid == null && other.userid != null) || (this.userid != null && !this.userid.equals(other.userid))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n\tpublic boolean sameIdentityAs(Device other) {\n\t\treturn false;\r\n\t}",
"@Override\n public int hashCode() {\n \tif (member == null) {\n \t\treturn base.hashCode();\n \t}\n return (base.hashCode() ^ member.hashCode());\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof User)) {\n return false;\n }\n User that = (User) other;\n if (this.getIduser() != that.getIduser()) {\n return false;\n }\n return true;\n }",
"public FieldDescriptor getIdentity() {\n return _identity;\n }",
"private boolean checkIdentity(Order otherOrder) {\n\t\treturn getId() != otherOrder.getId();\n\t}",
"public int getIdentity(){\r\n\t\treturn identity;\r\n\t}",
"public static int classMember(final Number160 id1, final Number160 id2) {\n return distance(id1, id2).bitLength() - 1;\n }",
"@Test\n public void testRecordsWithDifferentIDsProduceDifferentHashCodes() throws Exception {\n setRecordFieldValue(otherRecord, \"id\", 42L);\n int hashcodeA = record.hashCode();\n int hashcodeB = otherRecord.hashCode();\n\n assertThat(hashcodeA == hashcodeB, is(false));\n }",
"@Test\n public void testSetId() {\n System.out.println(\"setId\");\n Member instance = member;\n \n String id = \"new Id\";\n instance.setId(id);\n \n String expResult = id;\n String result = instance.getId();\n \n assertEquals(expResult,result);\n }",
"id(int id, id id, int id) {}",
"public String getIdentity();",
"public org.exolab.castor.mapping.FieldDescriptor getIdentity()\n {\n return identity;\n }",
"public org.exolab.castor.mapping.FieldDescriptor getIdentity()\n {\n return identity;\n }",
"public org.exolab.castor.mapping.FieldDescriptor getIdentity()\n {\n return identity;\n }",
"boolean hasIdentity();",
"public String Identity();",
"@Override\n\tpublic int hashCode() {\n\t\tfinal int prime = 31;\n\t\tint result = 1;\n\t\tresult = prime * result + ((getId() == null) ? 0 : getId().hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((getMemberId() == null) ? 0 : getMemberId().hashCode());\n\t\tresult = prime * result\n\t\t\t\t+ ((getActivityId() == null) ? 0 : getActivityId().hashCode());\n\t\treturn result;\n\t}",
"@Test\n public void testIdentity(){\n assertSame(testing2, testing3);\n }",
"private static boolean identityEqual(final I_GameState state1, final I_GameState state2) {\n if (state1 == state2)\n return true;\n\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 .allMatch(pair -> pair.getKey() == pair.getValue());\n }",
"@Test\n public void testTwoIDs() throws Exception {\n // Get a set of keys.\n UserMultiID umk = createUMK();\n\n User user = newUser();\n UserMultiID newUmk = new UserMultiID(umk.getEppn(), umk.getEptid());\n user.setUserMultiKey(newUmk);\n getUserStore().save(user);\n Collection<User> users = getUserStore().get(newUmk, user.getIdP());\n assert users.size() == 1 : \"Incorrect number of users found. Expected one and got \" + users.size();\n assert user.equals(users.iterator().next());\n // Now reget with just EPTID. Since that is globally unique, this should always work.\n UserMultiID newUmk2 = new UserMultiID(umk.getEptid());\n users = getUserStore().get(newUmk2, user.getIdP());\n assert users.size() == 1 : \"Incorrect number of users found. Expected one and got \" + users.size();\n assert user.equals(users.iterator().next());\n\n XMLMap userMap = getDBSClient().getUser(user.getIdentifier());\n checkUserAgainstMap(userMap, user);\n }",
"private boolean equalKeys(Object other) {\r\n if (this == other) {\r\n return true;\r\n }\r\n if (!(other instanceof Contacto)) {\r\n return false;\r\n }\r\n Contacto that = (Contacto) other;\r\n if (this.getIdContacto() != that.getIdContacto()) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Snm)) {\r\n return false;\r\n }\r\n Snm other = (Snm) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof MemMemberShipMaster)) {\n return false;\n }\n MemMemberShipMaster other = (MemMemberShipMaster) object;\n if ((this.nMemberID == null && other.nMemberID != null) || (this.nMemberID != null && !this.nMemberID.equals(other.nMemberID))) {\n return false;\n }\n return true;\n }",
"@Override\n @Transient\n public boolean isIdSet() {\n return getId() != null && getId().areFieldsSet();\n }",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Member1)) {\r\n return false;\r\n }\r\n Member1 other = (Member1) object;\r\n if ((this.username == null && other.username != null) || (this.username != null && !this.username.equals(other.username))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Test\n public void noEqualsID() {\n final CourseType courseType1 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType1.setId(\"ID\");\n courseType1.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType1.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseType2 = new CourseType(\"N\", \"Pic\", 5, 1);\n courseType2.setId(\"ID2\");\n courseType2.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseType2.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n final CourseType courseTypeNull = new CourseType(\"N\", \"Pic\", 5, 1);\n courseTypeNull.setId(null);\n courseTypeNull.setCourses(List.of(new Course(\"C1\"), new Course(\"C2\")));\n courseTypeNull.setAllowedDishes(List.of(new Dish(\"D1\"), new Dish(\"D2\")));\n\n assertNotEquals(courseType1, courseType2);\n assertNotEquals(courseType1, courseTypeNull);\n assertNotEquals(courseTypeNull, courseType1);\n }",
"@ConstructorProperties({\"fieldDeclaration\"})\n public Identity( Fields fieldDeclaration )\n {\n super( fieldDeclaration ); // don't need to set size, default is ANY\n\n this.types = fieldDeclaration.getTypes();\n }",
"private boolean comparePersistentIdEntrys(@Nonnull PairwiseId one, @Nonnull PairwiseId other)\n {\n // Do not compare times\n //\n return Objects.equals(one.getPairwiseId(), other.getPairwiseId()) &&\n Objects.equals(one.getIssuerEntityID(), other.getIssuerEntityID()) &&\n Objects.equals(one.getRecipientEntityID(), other.getRecipientEntityID()) &&\n Objects.equals(one.getSourceSystemId(), other.getSourceSystemId()) &&\n Objects.equals(one.getPrincipalName(), other.getPrincipalName()) &&\n Objects.equals(one.getPeerProvidedId(), other.getPeerProvidedId());\n }",
"@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsUserInfo) {\n BsUserInfo other = (BsUserInfo)obj;\n if (!xSV(_id, other._id)) { return false; }\n return true;\n } else {\n return false;\n }\n }",
"public interface Identifiable {\n\n\t/**\n\t * Generate a String that uniquely identifies this object. This String can\n\t * be created from class data/state, and will be used to determine compare\n\t * with other objects of the same type to determine equivalence.\n\t * \n\t * @return the String identifying the state of the object to compare\n\t */\n\tpublic String id();\n}",
"@Override\n protected boolean doEquals(Object obj) {\n if (obj instanceof BsMemberFollowing) {\n BsMemberFollowing other = (BsMemberFollowing)obj;\n if (!xSV(_memberFollowingId, other._memberFollowingId)) { return false; }\n return true;\n } else {\n return false;\n }\n }",
"public abstract Member mo23408O();",
"public boolean equals(Object other) {\r\n if (other == null || !(other instanceof BsMemberAddress)) { return false; }\r\n BsMemberAddress otherEntity = (BsMemberAddress)other;\r\n if (!xSV(getMemberAddressId(), otherEntity.getMemberAddressId())) { return false; }\r\n return true;\r\n }",
"boolean isIdentity(final S e);",
"public int getMemberId1() {\n return memberId1_;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Field)) {\n return false;\n }\n Field other = (Field) object;\n if ((this.fieldId == null && other.fieldId != null) || (this.fieldId != null && !this.fieldId.equals(other.fieldId))) {\n return false;\n }\n return true;\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 }",
"public boolean sameAs(UserBaseModel u){\n\t\treturn u.getId() == this.getId();\n\t}",
"protected void setIdentity(long identity)\n\t{\n\t\tthis.identity=new Long(identity);\n\t}",
"@Override\n\tpublic long getFooId() {\n\t\treturn _second.getFooId();\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Mmuser)) {\n return false;\n }\n Mmuser other = (Mmuser) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public int hashCode() {\n final int prime = 31;\n int result = 1;\n result = prime * result + ((getId() == null) ? 0 : getId().hashCode());\n result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());\n result = prime * result + ((getIdentityType() == null) ? 0 : getIdentityType().hashCode());\n result = prime * result + ((getIdentifier() == null) ? 0 : getIdentifier().hashCode());\n return result;\n }",
"@Test\n public void testEqualsIdentical() {\n int userID = 0;\n int[] pref = new int[11];\n int[] health = new int[9];\n int[] diet = new int[5];\n int[] meal = new int[3];\n UserProfile up2 = new UserProfile(userID, pref, health, diet, meal);\n assertEquals(up, up2);\n }",
"@Test\n public void testEqualsReturnsFalseOnDifferentIdVal() throws Exception {\n setRecordFieldValue(otherRecord, \"id\", 42L);\n\n boolean equals = record.equals(otherRecord);\n\n assertThat(equals, is(false));\n }",
"public Identity()\n {\n super( Fields.ARGS );\n }",
"protected void NewIdentity()\n\t{\n\t\tthis.identity=0L;\n\t\tNodeReference nodeRef = getNodeReference();\n\t\tnodeRef.appendSubscript(0L);\n\t\tnodeRef.appendSubscript(\"id\");\n\t\tthis.identity=nodeRef.increment(1);\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof User)) {\n return false;\n }\n User other = (User) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n\n\n\n return true;\n }",
"void id(int id, id id, int id) {}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof PersonType)) {\n return false;\n }\n PersonType other = (PersonType) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\r\n public int hashCode() {\r\n return (id != null) \r\n ? (this.getClass().hashCode() + id.hashCode()) \r\n : super.hashCode();\r\n }",
"@Test\r\n\tpublic void testsetMembers() {\r\n\t\tSet<Person> persons1 = new HashSet<Person>();\r\n\t\tmeetingu1.setMembers(persons1);\r\n\t\tassertTrue(meetingu1.getMembers().equals(persons1));\r\n\t}",
"public int getMemberId1() {\n return memberId1_;\n }",
"@Override\n public Long call() {\n long id0 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.hashCode();\n long id1 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.toString();\n long id2 = InstanceIdentifier.INSTANCE.getId(ref);\n ref.equals(ref);\n long id3 = InstanceIdentifier.INSTANCE.getId(ref);\n if (!(id0 == id1 && id1 == id2 && id2 == id3)) {\n\n return (long) -1;\n }\n\n return Long.valueOf(id0);\n }",
"@Test\n public void testEquals_differentParameters() {\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 + 1,\n ALPHAL, ALPHAS, Collections.emptyList());\n\n // THEN this two objects are different\n assertThat(cellIdentityNr).isNotEqualTo(anotherCellIdentityNr);\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Acquirente)) {\n return false;\n }\n Acquirente that = (Acquirente) other;\n if (this.getIdacquirente() != that.getIdacquirente()) {\n return false;\n }\n return true;\n }",
"@ConstructorProperties({\"fieldDeclaration\", \"types\"})\n public Identity( Fields fieldDeclaration, Class... types )\n {\n super( fieldDeclaration );\n this.types = Arrays.copyOf( types, types.length );\n\n if( !fieldDeclaration.isSubstitution() && fieldDeclaration.size() != types.length )\n throw new IllegalArgumentException( \"fieldDeclaration and types must be the same size\" );\n }",
"private long getOwnID(){\n return authenticationController.getMember() == null ? -1 :authenticationController.getMember().getID();\n }",
"@Test\n public void testGetOtherPersonTestId() throws ParsingException, ParseException, NoSuchFieldException, IllegalAccessException {\n //Init\n Person person = new Person(null);\n Person partner = new Person(null);\n Union union = new Union(person, partner, new FullDate(\"05 MAR 2020\"), new Town(\"Saintes\", \"Charente-Maritime\"), UnionType.HETERO_MAR);\n\n //Reflection init\n Field idField = person.getClass().getDeclaredField(\"id\");\n idField.setAccessible(true);\n\n //Reflection set\n idField.set(person, \"1\");\n idField.set(partner, \"2\");\n\n //Verification\n assertEquals(partner, union.getOtherPerson(\"1\"));\n assertEquals(person, union.getOtherPerson(\"2\"));\n assertNull(union.getOtherPerson(\"3\"));\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Person)) {\n return false;\n }\n Person other = (Person) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Person)) {\n return false;\n }\n Person other = (Person) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Person)) {\n return false;\n }\n Person other = (Person) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"public long getPersonId();",
"@Test\n public void testUserIdIsCreatedFromConstructor() {\n\n assertEquals(owner1.getUserId(), \"harry.louis\");\n assertEquals(owner2.getUserId(), \"mary.louis\");\n\n }",
"@Test\n\tpublic void hashCodeDifferentId() {\n\t\tProductScanImageURIKey key1 = this.getDefaultKey();\n\t\tProductScanImageURIKey key2 = this.getDefaultKey();\n\t\tkey1.setId(2);\n\t\tAssert.assertNotEquals(key1.hashCode(), key2.hashCode());\n\t}",
"public Identity(){\n setLabel(\"I\");\n }",
"public void setMemberID(String memberID){ this.memberID=memberID; }",
"@Override\r\n\tpublic boolean equals(Object o) {\n\t\tboolean res= false;\r\n\t\t\r\n\t\tif (o instanceof Member) {\r\n\t\t\tMember other = (Member) o;\t\t\t\t\t\r\n\t\t\tres= _name.equals(other._name);\t\r\n\t\t}\t\t\r\n\t\treturn res;\r\n\t}",
"public static Mapper<Parser.ParseTree> identity() {\n return IDENTITY;\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof RegistrationItems)) {\n return false;\n }\n RegistrationItems that = (RegistrationItems) other;\n Object myRegItemUid = this.getRegItemUid();\n Object yourRegItemUid = that.getRegItemUid();\n if (myRegItemUid==null ? yourRegItemUid!=null : !myRegItemUid.equals(yourRegItemUid)) {\n return false;\n }\n return true;\n }",
"public int getMemberId2() {\n return memberId2_;\n }",
"@Override\r\n\tpublic boolean equals(Object arg0) {\n\t\t Student s=(Student)arg0;\r\n\t\treturn this.id==s.id;\r\n\t}",
"public abstract\n ImmutableUniqueMemberConstraint getUniqueMemberConstraint();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Membre)) {\n return false;\n }\n Membre other = (Membre) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"protected IntHashSet getMemberHashSet() {\n\t\treturn memberHashSet;\n\t}",
"public int getId(){\r\n return localId;\r\n }",
"@Override\n\tpublic boolean equals(Object o) {\n\t\tMemberInfo g = (MemberInfo) o;\n\t\treturn g.getUserId().equals(getUserId());\n\t}",
"public abstract long getId();",
"public abstract long getId();",
"@Test\n\tpublic void testSetValueMult1to1OverwriteInverse() {\n\n\t\t// set up\n\t\tPerson martin = new Person(\"\\\"Bl�mel\\\" \\\"Martin\\\" \\\"19641014\\\"\");\n\t\tPerson jojo = new Person(\"\\\"Bl�mel\\\" \\\"Johannes\\\" \\\"19641014\\\"\");\n\t\tTestUser user = new TestUser(\"admin\");\n\t\tuser.setPerson(jojo);\n\t\tAssert.assertSame(jojo, user.getPerson());\n\t\tAssert.assertSame(user, jojo.getUser());\n\t\tAssert.assertNull(martin.getUser());\n\n\t\t// test: relink martin to user (other way round)\n\t\tmartin.setUser(user);\n\t\tAssert.assertSame(martin, user.getPerson());\n\t\tAssert.assertSame(user, martin.getUser());\n\t\tAssert.assertNull(jojo.getUser());\n\t}",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Membre)) {\n return false;\n }\n Membre other = (Membre) object;\n if ((this.membrePK == null && other.membrePK != null) || (this.membrePK != null && !this.membrePK.equals(other.membrePK))) {\n return false;\n }\n return true;\n }",
"@Override\n public int hashCode() {\n return (first != null ? 41 * first.hashCode() : 0) + (second != null ? second.hashCode() : 0);\n }",
"int getOtherId();",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Mes)) {\n return false;\n }\n Mes other = (Mes) object;\n if ((super.id == null && other.id != null) || (super.id != null && !super.id.equals(super.id))) {\n return false;\n }\n return true;\n }",
"@Test\n\tpublic void testDifferentID() {\n\t\tMainDish dessertTest = new MainDish(\"quiche\");\n\t\tMainDish dessertTest2 = new MainDish(\"quiche\");\n\t\tassertTrue(dessertTest.getId()!=dessertTest2.getId());\n\t}",
"public abstract Long getId();",
"@Test\n\tpublic void SubclassEqualIdEqualTest() {\n\t\tone = new ConcreteEntity(1);\n\t\ttwo = new ConcreteEntitySubclass(1);\n\t\tassertTrue(one.equals(two));\n\t\tassertTrue(two.equals(one));\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Semaineannee)) {\r\n return false;\r\n }\r\n Semaineannee other = (Semaineannee) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"public boolean supportsIdentityColumns() {\n \t\treturn false;\n \t}",
"private ImmutablePerson(ImmutablePerson other) {\n firstName = other.firstName;\n middleName = other.middleName;\n lastName = other.lastName;\n nickNames = new ArrayList<>(other.nickNames);\n }",
"private boolean equalKeys(Object other) {\n if (this==other) {\n return true;\n }\n if (!(other instanceof Sanpham)) {\n return false;\n }\n Sanpham that = (Sanpham) other;\n Object myMasp = this.getMasp();\n Object yourMasp = that.getMasp();\n if (myMasp==null ? yourMasp!=null : !myMasp.equals(yourMasp)) {\n return false;\n }\n return true;\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof Tmproyecto)) {\n return false;\n }\n Tmproyecto other = (Tmproyecto) object;\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\n return false;\n }\n return true;\n }",
"@Test\n public void testHashcodeReturnsSameValueForIdenticalRecords() {\n int hashcodeA = record.hashCode();\n int hashcodeB = otherRecord.hashCode();\n\n assertThat(hashcodeA == hashcodeB, is(true));\n }",
"@Test\n public void testGetId() {\n System.out.println(\"getId\");\n Member instance = member;\n \n String expResult = \"myId\";\n String result = instance.getId();\n \n assertEquals(expResult, result);\n }",
"@Override\n @PersistField(id = true, name = \"id\", readonly = true)\n public int hashCode()\n {\n int positionHash = position == null ? 0 : position.hashCode();\n int worldHash = worldData == null ? 0 : worldData.getName().hashCode();\n return positionHash ^ worldHash << 14;\n }",
"@Override\r\n\tpublic boolean equals(Object obj) {\n\t\tif(!(obj instanceof User)){\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\tUser obj2 = (User)obj;\r\n\t\tif(this.id>0){\r\n\t\t\treturn this.id==obj2.getId();\r\n\t\t}else{\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}",
"@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Surenchere)) {\r\n return false;\r\n }\r\n Surenchere other = (Surenchere) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }",
"@Override\n public boolean equals(Object object) {\n if (!(object instanceof EUser)) {\n return false;\n }\n EUser other = (EUser) object;\n if ((this.getId() == null && other.getId() != null) || (this.getId() != null && !this.getId().equals(other.getId()))) {\n return false;\n }\n return true;\n }",
"default Member saveMember(Member member) {\n return new Member();\n }"
] |
[
"0.6105634",
"0.6105634",
"0.58976245",
"0.582586",
"0.58120096",
"0.5794683",
"0.57626194",
"0.5704955",
"0.5702495",
"0.5663677",
"0.565567",
"0.56370306",
"0.5607487",
"0.5607132",
"0.55667454",
"0.55667454",
"0.55667454",
"0.5534039",
"0.5530364",
"0.55240905",
"0.5514071",
"0.5507751",
"0.54853046",
"0.5444358",
"0.5439447",
"0.5434747",
"0.5426791",
"0.5424739",
"0.54243034",
"0.54136634",
"0.5407115",
"0.5391096",
"0.53797054",
"0.53732765",
"0.5356417",
"0.5355734",
"0.5340266",
"0.5329622",
"0.53147703",
"0.53126955",
"0.5305939",
"0.52993083",
"0.5297303",
"0.5296665",
"0.529367",
"0.52904767",
"0.5258074",
"0.52358246",
"0.5234455",
"0.5226697",
"0.52158046",
"0.5213909",
"0.5212253",
"0.5208575",
"0.5208176",
"0.52077186",
"0.51938534",
"0.51878285",
"0.518152",
"0.51783735",
"0.5175713",
"0.5167833",
"0.5167833",
"0.5167833",
"0.516767",
"0.5167287",
"0.5155468",
"0.51486206",
"0.51483154",
"0.51467454",
"0.5142348",
"0.5129166",
"0.5128219",
"0.5127163",
"0.51260376",
"0.5123625",
"0.51206917",
"0.51179814",
"0.51124084",
"0.5107341",
"0.5107341",
"0.5105827",
"0.51044285",
"0.510322",
"0.5102412",
"0.50984234",
"0.50903547",
"0.5086266",
"0.5083833",
"0.5078834",
"0.5077721",
"0.50728923",
"0.5064312",
"0.5063541",
"0.5062901",
"0.5054236",
"0.5051458",
"0.5045169",
"0.50364935",
"0.5032743",
"0.5025391"
] |
0.0
|
-1
|
A specialized Collection class which keeps Parameters and can return the correct Parameter that is in the collection and has a given reference. The collection must not allow for the same ParameterReference (except ParameterReference.UNREFERENCABLE) to refer to two different Parameters in the collection. ParameterCollection takes a type parameter which is constrained to be a subtype of Parameter. This is so ParameterCollections can be declared to hold more specific Parameter types. Note that order for the Parameters in the collection may matter. So, where possible, Parameters should be used in the order returned by the Collection's iterator. If order does matter, the implementer should also implement List. ParameterCollections may or may not be unmodifiable. As stated by the Collections framework, modifying methods should throw UnsupportedOperationException. Unreferencable Parameters (those that return ParameterReference.UNREFERENCABLE as their reference) must not be able to be returned through get(ParameterReference) nor be able to referred to through any method which uses a ParameterReference argument to refer to an actual Parameter (e.g., containsByReference should return false for ParameterReference.UNREFERENCABLE). Unreferencable Parameters can be dealt with by using the actual Parameter object rather than the reference (e.g., the contains(Object) method from Collection should return true if the argument is an Unreferencable Parameter in the Collection). Unreferencable Parameters should be returned by the Iterator for the collection.
|
public interface ParameterCollection<T extends Parameter> extends Collection<T> {
/**
* Determines if a Parameter with the given ParameterReference is in the collection.
* Always returns false for ParameterReference.UNREFERENCABLE.
*
* @param ref The ParameterReference to check.
* @return Returns true iff a Parameter with the given ParameterReference is in the
* collection and the reference is not equal to ParameterReference.UNREFERENCABLE.
*/
public boolean containsByReference(ParameterReference ref);
/**
* @param reference The ParameterReference to find a Parameter for.
* @return Returns the Parameter that's being referenced. Returns null if no
* Parameter is in the collection with the given reference (i.e., reference is not in
* the set returned by getParameterReferences()). If reference is equal to
* ParameterReference.UNREFERENCABLE, the ParameterCollection must return
* null, and not any unreferencable Parameter it may contain.
*/
public T get(ParameterReference reference);
/**
* @return Returns a Set containing all possible ParameterReferences for which a
* non-null Parameter will be returned when called as an argument to getParameter().
* ParameterReference.UNREFERENCABLE must not be in the returned set as a Parameter
* can never be returned for it with getParameter().
*/
public Set<ParameterReference> getParameterReferences();
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"CollectionParameter createCollectionParameter();",
"IParameterCollection getParameters();",
"public interface Parameter {\n\n\t/**\n\t * Returns the actual parameter value given the inputs provided as arguments.\n\t * If the actual value cannot be retrieved (missing information), throws \n\t * an exception.\n\t * \n\t * @param input the input assignment\n\t * @return the actual parameter value\n\t */\n\tpublic double getParameterValue (Assignment input) ;\n\t\n\t\n\t/**\n\t * Returns the (possibly empty) set of parameter identifiers used in the \n\t * parameter object.\n\t * \n\t * @return the collection of parameter labels \n\t */\n\tpublic Collection<String> getParameterIds();\n\n\t\n\t\n\t/**\n\t * Adds the value of the two parameters and returns the result\n\t * \n\t * @param otherPram the parameter to add\n\t * @return the result of the addition\n\t */\n\tpublic Parameter sumParameter(Parameter otherPram); \n\t\n\t/**\n\t * Multiplies the value of the two parameters and returns the result\n\t * \n\t * @param otherPram the parameter to multiply\n\t * @return the result of the multiplication\n\t */\n\tpublic Parameter multiplyParameter(Parameter otherPram); \n\t\n}",
"Collection<Parameter> getTypedParameters();",
"void setParameters(IParameterCollection parameters);",
"public Collection getRefParameters(ParameterModel model) throws AAException, RemoteException;",
"public interface DependentParameterAPI<E> extends ParameterAPI<E> {\n\n public static final String XML_INDEPENDENT_PARAMS_NAME =\n \"IndependentParameters\";\n\n /**\n * Returns an iterator of all indepenedent parameters this parameter depends\n * upon. Returns the parametes in the order they were added.\n */\n public ListIterator getIndependentParametersIterator();\n\n /**\n * Locates and returns an independent parameter from the list if it exists.\n * Throws a parameter excpetion if the requested parameter is not one of the\n * independent parameters.\n * \n * @param name\n * Parameter name to lookup.\n * @return The found independent Parameter.\n * @throws ParameterException\n * Thrown if not one of the independent parameters.\n */\n public ParameterAPI getIndependentParameter(String name)\n throws ParameterException;\n\n /** Set's a complete list of independent parameters this parameter requires */\n public void setIndependentParameters(ParameterList list);\n\n /** Adds the parameter if it doesn't exist, else throws exception */\n public void addIndependentParameter(ParameterAPI parameter)\n throws ParameterException;\n\n /** Returns true if this parameter is one of the independent ones */\n public boolean containsIndependentParameter(String name);\n\n /** Removes the parameter if it exist, else throws exception */\n public void removeIndependentParameter(String name)\n throws ParameterException;\n\n /** Returns all the names of the independent parameters concatenated */\n public String getIndependentParametersKey();\n\n /** see implementation in the DependentParameter class for information */\n public String getDependentParamMetadataString();\n\n /** see implementation in the DependentParameter class for information */\n public int getNumIndependentParameters();\n\n}",
"public void setParameterList(String parName,\n Collection<?> parVal) throws HibException ;",
"ParameterList getParameters();",
"@Override // kotlin.jvm.functions.Function1\n public Sequence<? extends TypeParameterDescriptor> invoke(DeclarationDescriptor declarationDescriptor) {\n DeclarationDescriptor declarationDescriptor2 = declarationDescriptor;\n Intrinsics.checkNotNullParameter(declarationDescriptor2, \"it\");\n List<TypeParameterDescriptor> typeParameters = ((CallableDescriptor) declarationDescriptor2).getTypeParameters();\n Intrinsics.checkNotNullExpressionValue(typeParameters, \"it as CallableDescriptor).typeParameters\");\n return CollectionsKt___CollectionsKt.asSequence(typeParameters);\n }",
"@Override\n\tpublic Collection<Parameter<?>> getParameters() {\n\t\treturn null;\n\t}",
"public void setParameter( List<Parameter> parameter )\n {\n _parameter = parameter;\n }",
"public Collection<SPParameter> getParameters(){\n return mapOfParameters.values();\n }",
"public Collection<ParameterClass> getAllParameters()\n\t{\n\t\tif( this.parent == null )\n\t\t{\n\t\t\treturn this.getDeclaredParameters();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tCollection<ParameterClass> inherited = new HashSet<>( this.parameters.values() );\n\t\t\t\n\t\t\t// loop through each parent and get their parameters - creates many fewer collections\n\t\t\t// doing it this way compared to recursing up\n\t\t\tInteractionClass currentParent = this.parent;\n\t\t\twhile( currentParent != null )\n\t\t\t{\n\t\t\t\tinherited.addAll( currentParent.parameters.values() );\n\t\t\t\tcurrentParent = currentParent.parent;\n\t\t\t}\n\t\t\t\n\t\t\t// return the complete set\n\t\t\treturn inherited;\n\t\t}\n\t}",
"public ParameterList getParameters() {\n\t\treturn _parameters;\n\t}",
"public interface Collection<E> {\n\n /**\n * 获取迭代器.\n * @return 迭代器\n */\n Iterator<E> iterator();\n\n /**\n * 获取集合容量.\n * @return The size of collection\n */\n int size();\n\n /**\n * 根据索引获取该位置上的值.\n * @param index 位置索引\n * @return 索引位置的值\n */\n E get(int index);\n\n}",
"CollectionReferenceElement createCollectionReferenceElement();",
"java.util.List<? extends com.google.cloud.commerce.consumer.procurement.v1.ParameterOrBuilder>\n getParametersOrBuilderList();",
"public void setParameters(ArrayList parameters) {\n this.parameters = parameters;\n }",
"public List<Parameter> getParameter( )\n {\n return _parameter;\n }",
"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}",
"public List<Parameter> parameters() {\n if (_params != null && !_params.isEmpty()) {\n return new ArrayList<Parameter>(_params.values());\n }\n return null;\n }",
"public Parameters getParameters() {\n return parametersReference.get();\n }",
"public interface List extends Collection{\r\n\t/**\r\n\t * Returns the object that is stored in backing \r\n\t * list at position index.\r\n\t * @param index position of the element\r\n\t * @return element\r\n\t */\r\n\tObject get(int index);\r\n\t/**\r\n\t * Inserts (does not overwrite) the given value \r\n\t * at the given position in list.\r\n\t * @param value\r\n\t * @param position\r\n\t */\r\n\tvoid insert(Object value, int position);\r\n\t/**\r\n\t * Searches the collection and returns the index \r\n\t * of the first occurrence of the given value or -1 \r\n\t * if the value is not found.\r\n\t * @param value list element\r\n\t * @return index\r\n\t */\r\n\tint indexOf(Object value);\r\n\t/**\r\n\t * Removes element at specified \r\n\t * index from collection.\r\n\t * @param index specified position\r\n\t */\r\n\tvoid remove(int index);\r\n\r\n}",
"public ListIterator<Parameter<?>> getAdjustableParamsIterator();",
"public interface ParameterConstraint\n{\n /**\n * Gets the unique name of the constraint\n * \n * @return String constraint name\n */\n String getName();\n \n /**\n * Indicates whether the provided value satisfies the constraint. True if it does, false otherwise.\n * \n * @return boolean true if valid, false otherwise\n */\n boolean isValidValue(String value);\n \n /**\n * \n * @param value\n * @return\n */\n String getValueDisplayLabel(String value);\n \n /**\n * \n */\n Map<String, String> getAllowableValues();\n}",
"public interface Set<Type> {\r\n\r\n\t/**\r\n\t * Ensures that this set contains the specified item.\r\n\t * \r\n\t * @param item\r\n\t * - the item whose presence is ensured in this set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if the input item was actually inserted); otherwise, returns\r\n\t * false\r\n\t */\r\n\tpublic boolean add(Type item);\r\n\r\n\t/**\r\n\t * Ensures that this set contains all items in the specified collection.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items whose presence is ensured in this\r\n\t * set\r\n\t * @return true if this set changed as a result of this method call (that\r\n\t * is, if any item in the input collection was actually inserted);\r\n\t * otherwise, returns false\r\n\t */\r\n\tpublic boolean addAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Removes all items from this set. The set will be empty after this method\r\n\t * call.\r\n\t */\r\n\tpublic void clear();\r\n\r\n\t/**\r\n\t * Determines if there is an item in this set that is equal to the specified\r\n\t * item.\r\n\t * \r\n\t * @param item\r\n\t * - the item sought in this set\r\n\t * @return true if there is an item in this set that is equal to the input\r\n\t * item; otherwise, returns false\r\n\t */\r\n\tpublic boolean contains(Type item);\r\n\r\n\t/**\r\n\t * Determines if for each item in the specified collection, there is an item\r\n\t * in this set that is equal to it.\r\n\t * \r\n\t * @param items\r\n\t * - the collection of items sought in this set\r\n\t * @return true if for each item in the specified collection, there is an\r\n\t * item in this set that is equal to it; otherwise, returns false\r\n\t */\r\n\tpublic boolean containsAll(Collection<? extends Type> items);\r\n\r\n\t/**\r\n\t * Returns true if this set contains no items.\r\n\t */\r\n\tpublic boolean isEmpty();\r\n\r\n\t/**\r\n\t * Returns the number of items in this set.\r\n\t */\r\n\tpublic int size();\r\n}",
"public interface IParameterizable <V extends IResolvable> {\r\n\r\n /**\r\n * Get the number of parameters of this rule.\r\n * \r\n * @return The number of parameters of this rule.\r\n */\r\n public int getParameterCount();\r\n \r\n /**\r\n * Get the parameter of this rule at the specified index.\r\n * \r\n * @param index The 0-based index of the rule parameter to be returned.\r\n * @return The rule parameter at the given index.\r\n * @throws IndexOutOfBoundsException if <code>index < 0 || index >={@link #getParameterCount()}</code>\r\n */\r\n public V getParameter(int index);\r\n\r\n}",
"default List<Parameter<?>> getMethodParameters()\n {\n return Collections.unmodifiableList(Collections.emptyList());\n }",
"@Override\n public List<ParameterAssignment> getParameters()\n {\n return parameters;\n }",
"public Collection<Reference> getReferences();",
"public boolean containsByReference(ParameterReference ref);",
"public OBDParamCollection() {\n\t\tparser = new OBDParamFormulaParser();\n\t}",
"public java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList() {\n return java.util.Collections.unmodifiableList(parameters_);\n }",
"public interface ParameterService\r\n{\r\n\r\n\t/**\r\n\t * Get a parameter by parameter name, including parameter values.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param parameterName\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic ParameterModel getParameter(String serviceProviderCode, String parameterName, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all parameters of an agency.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getParametersBySPC(String serviceProviderCode, String callerID) throws AAException,\r\n\t\t\tRemoteException;\r\n\r\n\t/**\r\n\t * Get all parameters of an agency, returned one page by one page.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param queryFormat\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic AADataPage getParametersBySPC(String serviceProviderCode, QueryFormat queryFormat, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get reference parameters by agency, paramName,tableName and fieldName.\r\n\t * \r\n\t * @param model\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getRefParameters(ParameterModel model) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all available reference parameters of the theme name.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param themeName\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getAvailableRefParameters(String serviceProviderCode, String themeName, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all available reference parameters of the theme name, by\r\n\t * paramName,tableName and fieldName.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param themeName\r\n\t * @param model\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getAvailableRefParameters(String serviceProviderCode, String themeName, ParameterModel model,\r\n\t\t\tString callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Create a parameter.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param parameter\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic ParameterModel createParameter(String serviceProviderCode, ParameterModel parameter, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Update a parameter with underlying parameter value list.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param parameter\r\n\t * @param callerID\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic void updateParameter(String serviceProviderCode, ParameterModel parameter, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Create a parameter value.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param parameterName\r\n\t * @param parameterValue\r\n\t * @param callerID\r\n\t * @return @throws\r\n\t * AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic ParameterValueModel createParameterValue(String serviceProviderCode, String parameterName,\r\n\t\t\tString parameterValue, String callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Remove a parameter value by PK.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param parameterName\r\n\t * @param parameterValue\r\n\t * @param callerID\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic void removeParameterValue(String serviceProviderCode, String parameterName, String parameterValue,\r\n\t\t\tString callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all tables in the database schema, listed alphabetically.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param callerID\r\n\t * @return Collection of String (table name)\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getTables(String serviceProviderCode, String callerID) throws AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all tables in the database schema, listed alphabetically, returned\r\n\t * one page by one page.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param queryFormat\r\n\t * @param callerID\r\n\t * @return Collection of String (table name)\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic AADataPage getTables(String serviceProviderCode, QueryFormat queryFormat, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n\t/**\r\n\t * Get all fields associated to the table, listed alphabetically.\r\n\t * \r\n\t * @param serviceProviderCode\r\n\t * @param tableName\r\n\t * @param callerID\r\n\t * @return Collection of String (field name)\r\n\t * @throws AAException\r\n\t * @throws RemoteException\r\n\t */\r\n\tpublic Collection getFieldsByTable(String serviceProviderCode, String tableName, String callerID)\r\n\t\t\tthrows AAException, RemoteException;\r\n\r\n}",
"private ParameterInformation processParameterReference(Parameter parameter,\n List<NameDescriptionType> parmTypeSet,\n SequenceEntryType seqEntry,\n int seqIndex)\n {\n ParameterInformation parameterInfo = null;\n String matchParmType = null;\n\n // Initialize the array information, assuming the parameter isn't an array\n int numArrayMembers = 0;\n\n // Initialize the parameter attributes\n String variableName = null;\n String dataType = null;\n String arraySize = null;\n String bitLength = null;\n String enumeration = null;\n String minimum = null;\n String maximum = null;\n String description = null;\n String units = null;\n\n // Get the variable name, which is the parameter set entry's name field\n variableName = parameter.getName();\n\n // Check if this is a non-array parameter\n if (seqEntry instanceof ParameterRefEntryType)\n {\n // Store the parameter type name for this parameter\n matchParmType = parameter.getParameterTypeRef();\n }\n // This is an array parameter\n else\n {\n arraySize = \"\";\n\n // Step through each dimension for the array variable\n for (Dimension dim : ((ArrayParameterRefEntryType) seqEntry).getDimensionList().getDimension())\n {\n // Check if the fixed value exists\n if (dim.getEndingIndex().getFixedValue() != null)\n {\n // Build the array size string\n arraySize += String.valueOf(Integer.valueOf(dim.getEndingIndex().getFixedValue()) + 1) + \",\";\n }\n }\n\n arraySize = CcddUtilities.removeTrailer(arraySize, \",\");\n\n // Store the total number of array members. This causes a row of data to be added for\n // each member of the array\n numArrayMembers = ArrayVariable.getNumMembersFromArraySize(arraySize);\n\n // The array parameter type entry references a non-array parameter type that describes\n // the individual array members' data type. Step through each parameter type in the\n // parameter type set in order to locate this data type entry\n for (NameDescriptionType type : parmTypeSet)\n {\n // Check if the array parameter's array type reference matches the parameter type\n // set entry name\n if (parameter.getParameterTypeRef().equals(type.getName()))\n {\n // Store the name of the array parameter's type and stop searching\n matchParmType = ((ArrayDataTypeType) type).getArrayTypeRef();\n break;\n }\n }\n }\n\n // Check if a parameter type set entry name for the parameter is set (note that if the\n // parameter is an array the steps above locate the data type entry for the individual\n // array members)\n if (matchParmType != null)\n {\n boolean isInteger = false;\n boolean isUnsigned = false;\n boolean isFloat = false;\n boolean isString = false;\n\n // Step through each entry in the parameter type set\n for (NameDescriptionType parmType : parmTypeSet)\n {\n // Check if the parameters type set entry's name matches the parameter type name\n // being searched\n if (matchParmType.equals(parmType.getName()))\n {\n long dataTypeBitSize = 0;\n BigInteger parmBitSize = null;\n UnitSet unitSet = null;\n\n // Store the parameter's description\n description = parmType.getLongDescription();\n\n // Check if the parameter is an integer data type\n if (parmType instanceof IntegerParameterType)\n {\n // The 'sizeInBits' references are the integer size for non-bit-wise\n // parameters, but equal the number of bits assigned to the parameter for a\n // bit-wise parameter. It doens't appear that the size of the integer used\n // to contain the parameter is stored. The assumption is made that the\n // smallest integer required to store the bits is used. However, this can\n // alter the originally intended bit-packing (e.g., a 3-bit and a 9-bit fit\n // within a single 16-bit integer, but the code below assigns the first to\n // an 8-bit integer and the second to a 16-bit integer)\n\n IntegerParameterType itlm = (IntegerParameterType) parmType;\n\n // Get the number of bits occupied by the parameter\n parmBitSize = itlm.getSizeInBits();\n\n // Get the parameter units reference\n unitSet = itlm.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (itlm.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the parameter\n dataTypeBitSize = 8;\n\n while (parmBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n // Get the parameter range\n IntegerRangeType range = itlm.getValidRange();\n\n // Check if the parameter has a range\n if (range != null)\n {\n // Check if the minimum value exists\n if (range.getMinInclusive() != null)\n {\n // Store the minimum\n minimum = range.getMinInclusive();\n }\n\n // Check if the maximum value exists\n if (range.getMaxInclusive() != null)\n {\n // Store the maximum\n maximum = range.getMaxInclusive();\n }\n }\n\n isInteger = true;\n }\n // Check if the parameter is a floating point data type\n else if (parmType instanceof FloatParameterType)\n {\n // Get the float parameter attributes\n FloatParameterType ftlm = (FloatParameterType) parmType;\n dataTypeBitSize = ftlm.getSizeInBits().longValue();\n unitSet = ftlm.getUnitSet();\n\n // Get the parameter range\n FloatRangeType range = ftlm.getValidRange();\n\n // Check if the parameter has a range\n if (range != null)\n {\n // Check if the minimum value exists\n if (range.getMinInclusive() != null)\n {\n // Store the minimum\n minimum = String.valueOf(range.getMinInclusive());\n }\n\n // Check if the maximum exists\n if (range.getMaxInclusive() != null)\n {\n // Store the maximum\n maximum = String.valueOf(range.getMaxInclusive());\n }\n }\n\n isFloat = true;\n }\n // Check if the parameter is a string data type\n else if (parmType instanceof StringParameterType)\n {\n // Get the string parameter attributes\n StringParameterType stlm = (StringParameterType) parmType;\n dataTypeBitSize = Integer.valueOf(stlm.getStringDataEncoding().getSizeInBits().getFixed().getFixedValue());\n unitSet = stlm.getUnitSet();\n isString = true;\n }\n // Check if the parameter is an enumerated data type\n else if (parmType instanceof EnumeratedParameterType)\n {\n // Get the enumeration parameters\n EnumeratedParameterType etlm = (EnumeratedParameterType) parmType;\n EnumerationList enumList = etlm.getEnumerationList();\n\n // Check if any enumeration parameters are defined\n if (enumList != null)\n {\n // Step through each enumeration parameter\n for (ValueEnumerationType enumType : enumList.getEnumeration())\n {\n // Check if this is the first parameter\n if (enumeration == null)\n {\n // Initialize the enumeration string\n enumeration = \"\";\n }\n // Not the first parameter\n else\n {\n // Add the separator for the enumerations\n enumeration += \",\";\n }\n\n // Begin building this enumeration\n enumeration += enumType.getValue() + \" | \" + enumType.getLabel();\n }\n\n parmBitSize = etlm.getIntegerDataEncoding().getSizeInBits();\n unitSet = etlm.getUnitSet();\n\n // Check if integer encoding is set to 'unsigned'\n if (etlm.getIntegerDataEncoding().getEncoding().equalsIgnoreCase(\"unsigned\"))\n {\n isUnsigned = true;\n }\n\n // Determine the smallest integer size that contains the number of bits\n // occupied by the parameter\n dataTypeBitSize = 8;\n\n while (parmBitSize.longValue() > dataTypeBitSize)\n {\n dataTypeBitSize *= 2;\n }\n\n isInteger = true;\n }\n }\n\n // Get the name of the primitive data type from the data type table that\n // matches the base type and size of the parameter\n dataType = getMatchingDataType(dataTypeBitSize / 8,\n isInteger,\n isUnsigned,\n isFloat,\n isString,\n dataTypeHandler);\n\n // Check if the parameter bit size exists\n if (parmBitSize != null && parmBitSize.longValue() != dataTypeBitSize)\n {\n // Store the bit length\n bitLength = parmBitSize.toString();\n }\n\n // Check if the units exists\n if (unitSet != null && !unitSet.getUnit().isEmpty())\n {\n // Store the units\n units = unitSet.getUnit().get(0).getContent();\n }\n\n // Store the parameter information\n parameterInfo = new ParameterInformation(variableName,\n dataType,\n arraySize,\n bitLength,\n enumeration,\n units,\n minimum,\n maximum,\n description,\n numArrayMembers,\n seqIndex);\n\n // Stop searching since a matching parameter type entry was found\n break;\n }\n }\n }\n\n return parameterInfo;\n }",
"java.util.List<? extends gen.grpc.hospital.examinations.ParameterOrBuilder> \n getParameterOrBuilderList();",
"public ListParameter()\r\n\t{\r\n\t}",
"java.util.List<com.google.cloud.commerce.consumer.procurement.v1.Parameter> getParametersList();",
"public interface IParamContainer {\n\n Object get(String key);\n\n void set(String key, Object object);\n}",
"private CollectionType() {}",
"@Override\n protected void collectParameters(Consumer<Parameter<?>> parameterCollector) {\n }",
"java.util.List<datawave.webservice.query.QueryMessages.QueryImpl.Parameter> getParametersList();",
"public Parameters getParameters();",
"public interface Set extends TraversableCollection\r\n{\r\n\t\r\n\t/**\r\n\t *\tremove the specified item from the Set\r\n\t *\r\n\t *\treturns true if removal was successful, false otherwise\r\n\t */\r\n\tpublic boolean remove(Object obj);\r\n}",
"public interface Parameter {\n\n boolean isAssignableTo(Type<?> type);\n\n}",
"@ApiModelProperty(example = \"null\", value = \"Set of possible parameters for this classifier\")\n public java.util.List<VbParameterDefinition> getParameters() {\n return parameters;\n }",
"public List<String> getReferencedParameters() {\n Preconditions.checkState(prepared);\n Preconditions.checkState(!closed);\n return referencedParameters;\n }",
"public Return insertCollectionCreator(Parameter _parameter) {\n\n Instance instance = (Instance) _parameter.get(ParameterValues.INSTANCE);\n String abstractlink = ((Long) instance.getId()).toString();\n\n String accessSet =\n (String) ((Map) _parameter.get(ParameterValues.PROPERTIES))\n .get(\"AccessSet\");\n\n try {\n\n Insert insert;\n insert = new Insert(\"TeamWork_Member\");\n insert.add(\"AbstractLink\", abstractlink);\n insert.add(\"AccessSetLink\", getAccessSetID(accessSet));\n insert.add(\"UserAbstractLink\", ((Long) Context.getThreadContext()\n .getPerson().getId()).toString());\n insert.execute();\n\n } catch (EFapsException e) {\n\n LOG.error(\"insertCollectionCreator(Map<TriggerKeys4Values,Object>)\", e);\n }\n return null;\n\n }",
"@Override\n public boolean isReferenceParameter(int index) {\n return false;\n }",
"public interface CollectionRecord {\n\n\t/**\n\t * Gets the id attribute of the CollectionRecord object\n\t *\n\t * @return The id value\n\t */\n\tpublic String getId();\n\n\n\t/**\n\t * Gets the setSpec attribute of the CollectionRecord object\n\t *\n\t * @return The setSpec value\n\t */\n\tpublic String getSetSpec();\n\n\n\t/**\n\t * Gets the metadataHandle attribute of the CollectionRecord object\n\t *\n\t * @param collectionSetSpec setSpec (e.g., \"dcc\")\n\t * @return The metadataHandle value\n\t * @exception Exception if there is a webservice error\n\t */\n\tpublic String getMetadataHandle(String collectionSetSpec) throws Exception;\n\n\n\t/**\n\t * Gets the handleServiceBaseUrl attribute of the CollectionRecord object\n\t *\n\t * @return The handleServiceBaseUrl value\n\t */\n\tpublic String getHandleServiceBaseUrl();\n\n\t/* \tpublic String getNativeFormat();\n\tpublic DcsDataRecord getDcsDataRecord();\n\tpublic MetaDataFramework getMetaDataFramework();\n\tpublic Document getLocalizedDocument(); */\n}",
"protected abstract Collection createCollection();",
"public Set<Parameter> getSearchedParameters() {\n\t\treturn new HashSet<Parameter>(parameterEntries.keySet());\n\t}",
"public List getParameterValues() {\r\n\t\treturn parameterValues;\r\n\t}",
"public interface List<T> extends Collection<T> {\n\t\n\t/**\n\t * Returns the object that is stored in the list at position <code>index</code>.\n\t * @param index position from which the object will be returned\n\t * @return the object that is stored at position <code>index</code>\n\t * @throws IndexOutOfBoundsException index must be between 0 and size-1\n\t */\n\tT get(int index);\n\t\n\t/**\n\t * Inserts the object at the specified position. It does not overwrite the given value at the given position, \n\t * it shifts the elements at greater positions one place toward the end.\n\t * @param value object to be inserted\n\t * @param position index where the object should be inserted\n\t * @throws NullPointerException <code>null</code> object will not be inserted into the list\n\t * @throws IndexOutOfBoundsException index must be between 0 and size\n\t */\n\tvoid insert(T value, int position);\n\t\n\t/**\n\t * Searches the collection and returns the index of the first occurrence of the given value\n\t * or -1 if the value is not found.\n\t * @param value object that will be searched\n\t * @return index of the first occurrence of the given object or -1 if the value is not found\n\t */\n\tint indexOf(Object value);\n\t\n\t/**\n\t * Removes element at specified index from collection. \n\t * Element that was previously at location index+1 after this operation is on location index , etc.\n\t * @param index index at which the element should be removed\n\t * @throws IndexOutOfBoundsException index must be between 0 and size-1\n\t */\n\tvoid remove(int index);\n}",
"public interface List<E> extends Collection<E> {\n\n E get(int index);\n\n E set(int index, E element);\n\n E remove(int index);\n\n @Override\n int size();\n\n @Override\n boolean isEmpty();\n\n @Override\n boolean contains(Object o);\n\n @Override\n boolean add(E element);\n\n void add(int index, E element);\n\n @Override\n boolean addAll(Collection<? extends E> c);\n\n @Override\n boolean remove(Object o);\n\n @Override\n void clear();\n\n @Override\n Iterator<E> iterator();\n\n @Override\n int hashCode();\n\n @Override\n boolean equals(Object o);\n}",
"public MergedParameterSet(Iterator<ParameterSetREF> it) throws ResultException {\n\t\tparams = new TreeMap<>();\n\n\t\tif (it != null) {\n\t\t\twhile(it.hasNext()) {\n\t\t\t\tParameterSetREF ref = it.next();\n\t\t\t\tParameterSet ps = (ParameterSet) ref.getObject().getContainer();\n\t\t\t\t\n\t\t\t\tmergeParameters(ps);\n\t\t\t}\n\t\t}\n\t}",
"public interface OperationParameter {\n\n\t/**\n\t * Returns the parameter name.\n\t * @return the name\n\t */\n\tString getName();\n\n\t/**\n\t * Returns the parameter type.\n\t * @return the type\n\t */\n\tClass<?> getType();\n\n\t/**\n\t * Return if the parameter is mandatory (does not accept null values).\n\t * @return if the parameter is mandatory\n\t */\n\tboolean isMandatory();\n\n}",
"@Deprecated public List<TypeParamDef> getParameters(){\n return build(parameters);\n }",
"public void setParameters(List<ConstraintParameter> parameters) {\n\t\tif (parameters != null) {\n\t\t\tm_parameters = parameters;\n\t\t}\n\t\telse {\n\t\t\tm_parameters = new ArrayList<ConstraintParameter>();\n\t\t}\n\t\t\n\t\t// rebuild the parameter string based on the new list\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (ConstraintParameter param : m_parameters) {\n\t\t\tsb.append(\" :\").append(param.toString());\n\t\t}\n\t\tm_parameterString = sb.toString();\n\t}",
"public List<ParameterObject> getParameterList() {\n return parameterList;\n }",
"public abstract ImmutableSet<String> getExplicitlyPassedParameters();",
"public java.util.List<? extends datawave.webservice.query.QueryMessages.QueryImpl.ParameterOrBuilder> getParametersOrBuilderList() {\n return parameters_;\n }",
"@Override\n protected ReferenceArgumentCollection makeReferenceArgumentCollection() {\n return new ReferenceArgumentCollection() {\n @Argument(doc = \"The reference sequence file.\", optional=true, common=false)\n public File REFERENCE_SEQUENCE;\n\n @Override\n public File getReferenceFile() {\n return REFERENCE_SEQUENCE;\n }\n };\n }",
"private void removeCommentsFromParameters(final Collection<String> collection) {\n final List<String> itemsToRemove = new ArrayList<String>();\n\n for (final String parameter : collection) {\n if (parameter.indexOf(\"#\") == 0) {\n itemsToRemove.add(parameter);\n }\n }\n collection.removeAll(itemsToRemove);\n }",
"interface MyCollection{\n\n boolean\tadd(Object o); // Ensures that this collection contains the specified element (optional operation).\n void\tclear(); // Removes all of the elements from this collection (optional operation).\n boolean\tcontains(Object o); // Returns true if this collection contains the specified element.\n boolean\tequals(Object o); // Compares the specified object with this collection for equality.\n boolean\tremove(Object o); // Removes a single instance of the specified element from this collection, if it is present (optional operation).\n boolean\tisEmpty(); // Returns true if this collection contains no elements.\n int\tsize(); // Returns the number of elements in this collection.\n //Object[] toArray(); // Returns an array containing all of the elements in this collection.\n\n/*\n boolean\tcontainsAll(Collection<?> c); Returns true if this collection contains all of the elements in the specified collection.\n int\thashCode(); Returns the hash code value for this collection.\n Iterator<E>\titerator(); Returns an iterator over the elements in this collection.\n boolean\tremoveAll(Collection<?> c); Removes all of this collection's elements that are also contained in the specified collection (optional operation).\n boolean\tretainAll(Collection<?> c); Retains only the elements in this collection that are contained in the specified collection (optional operation).\n <T> T[]\ttoArray(T[] a); Returns an array containing all of the elements in this collection; the runtime type of the returned array is that of the specified array.\n*/\n\n\n\n\n}",
"public interface IAgreementAcceptanceCollectionReferenceRequest {\n\n void post(final AgreementAcceptance newAgreementAcceptance, final ICallback<? super AgreementAcceptance> callback);\n\n AgreementAcceptance post(final AgreementAcceptance newAgreementAcceptance) throws ClientException;\n\n IAgreementAcceptanceCollectionReferenceRequest select(final String value);\n\n IAgreementAcceptanceCollectionReferenceRequest top(final int value);\n\n}",
"public List<GroupParameter> getParameters();",
"public MergedParameterSet(ParameterSet baseps, Iterator<ParameterSetREF> it) throws ResultException {\n\t\tparams = new TreeMap<>();\n\t\t\n\t\tmergeParameters(baseps);\n\n\t\tif (it != null) {\n\t\t\twhile(it.hasNext()) {\n\t\t\t\tParameterSetREF ref = it.next();\n\t\t\t\tParameterSet ps = (ParameterSet) ref.getObject().getContainer();\n\t\t\t\t\n\t\t\t\tmergeParameters(ps);\n\t\t\t}\n\t\t}\n\t}",
"public boolean contains(CParamImpl param);",
"public void getParameters(Parameters parameters) {\n\n\t}",
"public Collection() {\n this.collection = new ArrayList<>();\n }",
"public void getParameters(Parameters parameters) {\n\n }",
"public List<IParam> getParams();",
"public List<IParam> getParams();",
"private List<ParameterMetaData> findParameterMetaData()\n/* */ {\n/* 402 */ List<ParameterMetaData.Builder> parameterBuilders = null;\n/* */ \n/* 404 */ for (Iterator localIterator1 = this.constrainedExecutables.iterator(); localIterator1.hasNext();) { oneExecutable = (ConstrainedExecutable)localIterator1.next();\n/* 405 */ Iterator localIterator2; if (parameterBuilders == null) {\n/* 406 */ parameterBuilders = CollectionHelper.newArrayList();\n/* */ \n/* 408 */ for (localIterator2 = oneExecutable.getAllParameterMetaData().iterator(); localIterator2.hasNext();) { oneParameter = (ConstrainedParameter)localIterator2.next();\n/* 409 */ parameterBuilders.add(new ParameterMetaData.Builder(this.executable\n/* */ \n/* 411 */ .getMember().getDeclaringClass(), oneParameter, this.constraintHelper));\n/* */ }\n/* */ \n/* */ \n/* */ }\n/* */ else\n/* */ {\n/* */ \n/* 419 */ i = 0;\n/* 420 */ for (ConstrainedParameter oneParameter : oneExecutable.getAllParameterMetaData()) {\n/* 421 */ ((ParameterMetaData.Builder)parameterBuilders.get(i)).add(oneParameter);\n/* 422 */ i++;\n/* */ } } }\n/* */ ConstrainedExecutable oneExecutable;\n/* */ ConstrainedParameter oneParameter;\n/* */ int i;\n/* 427 */ Object parameterMetaDatas = CollectionHelper.newArrayList();\n/* */ \n/* 429 */ for (ParameterMetaData.Builder oneBuilder : parameterBuilders) {\n/* 430 */ ((List)parameterMetaDatas).add(oneBuilder.build());\n/* */ }\n/* */ \n/* 433 */ return (List<ParameterMetaData>)parameterMetaDatas;\n/* */ }",
"public Collection<String> getParameterIds();",
"public ArrayList getParameters() {\n return parameters;\n }",
"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 List<ParameterDescriptor> parametersAsDescriptors(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)\n/* */ {\n/* 199 */ List<ParameterDescriptor> parameterDescriptorList = CollectionHelper.newArrayList();\n/* */ \n/* 201 */ for (ParameterMetaData parameterMetaData : this.parameterMetaDataList) {\n/* 202 */ parameterDescriptorList.add(parameterMetaData\n/* 203 */ .asDescriptor(defaultGroupSequenceRedefined, defaultGroupSequence));\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 210 */ return parameterDescriptorList;\n/* */ }",
"private static Collection<ServiceReference> asCollection(ServiceReference[] references) {\n return references != null ? Arrays.asList(references) : Collections.<ServiceReference>emptyList();\n }",
"@WebMethod()\n @Override\n public Collection searchByParameter(String sessionId, ParameterSearch... parameters) throws SessionException, ParameterSearchException, RestrictionException {\n String userId = user.getUserIdFromSessionId(sessionId);\n\n List<ParameterSearch> list = new ArrayList<ParameterSearch>();\n for (ParameterSearch p : parameters)\n list.add(p);\n\n return DatasetSearch.searchByParameterList(userId, list, Queries.NO_RESTRICTION, DatasetInclude.NONE, manager);\n }",
"public <P extends Parameter> P parameter(Class<P> kind, int index);",
"java.util.List<? extends com.lesen.rpc.protobuf.LesenRPCProto.LesenRPCParameterOrBuilder> \n getParamsOrBuilderList();",
"public interface List<T> extends Collection<T> {\n\n public void insert(T element, int index);\n public T replace(T element, int index);\n public T remove(int index);\n public T removeFirst();\n public T removeLast();\n public int indexOf(T element);\n public T get(int index);\n public T first();\n public T last();\n \n}",
"static List<SubstantiveParametersParameterItem> createSubstantiveParametersParameterItem(List<String> collectionOfItems) {\n List<SubstantiveParametersParameterItem> substantiveParametersParameterItemList = new ArrayList<>();\n for (String item: collectionOfItems) {\n substantiveParametersParameterItemList.add(new SubstantiveParametersParameterItem(item));\n }\n return substantiveParametersParameterItemList;\n }",
"List<Parameter> uriParameters();",
"public List<TypeDefinition> getParameters() {\n\t\treturn parameters;\n\t}",
"protected CollectionLikeType(TypeBase base, JavaType elemT)\n/* */ {\n/* 44 */ super(base);\n/* 45 */ this._elementType = elemT;\n/* */ }",
"public Parameterized() {\n setParameters(null);\n }",
"public interface IFormalParameter {\r\n\t/*\r\n\t * Fills in the given actual parameters in the formal parameters and declare\r\n\t * them in the given context\r\n\t */\r\n\tpublic void fillIn(Context context, Iterator<IReferable> _actualParams);\r\n\r\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 }",
"IParameter getParameter();",
"public AbstractComponentParameterElements getAbstractComponentParameterAccess() {\n\t\treturn pAbstractComponentParameter;\n\t}",
"public abstract ParameterVector searchVector();",
"public static void AddToCollection(Collection<? extends Person> c)\r\n\t{\r\n\t\t//c.add(new Person(\"abc\"));\r\n\t\t//c.add(new Worker(\"a\", \"b\"));\r\n\t\t//c.add(new Object());\r\n\t\t//Collection<? extends Object> c1 = new ArrayList<Person>();\r\n\t\t//c1.add(new Object());\r\n\t}",
"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 }",
"protected boolean onlyUsesTheseParameters(Set<TypeParameter> parameters) {\n if (isParameterized()) {\n if (isFullyInstantiated()) return true;\n\n for (ModifiedType modifiedType : getTypeParameters()) {\n Type parameter = modifiedType.getType();\n if (parameter instanceof TypeParameter typeParameter) {\n if (!parameters.contains(typeParameter)) return false;\n } else if (!parameter.onlyUsesTheseParameters(parameters)) return false;\n }\n }\n\n return true;\n }",
"public TPS_ParameterClass getParameters() {\n return this.parameterClass;\n }",
"public Parameters getParameters() {\n \treturn parameters;\n }"
] |
[
"0.7289678",
"0.61770314",
"0.5889326",
"0.5873202",
"0.58360493",
"0.5705199",
"0.56982464",
"0.556147",
"0.55603814",
"0.54240334",
"0.5418067",
"0.5402583",
"0.5380461",
"0.52309096",
"0.5213527",
"0.51952225",
"0.51869935",
"0.5172077",
"0.5167678",
"0.51608443",
"0.5123337",
"0.511444",
"0.51133496",
"0.51094687",
"0.51065177",
"0.5106013",
"0.5101833",
"0.50898546",
"0.5085612",
"0.5083551",
"0.5071786",
"0.50634104",
"0.5048368",
"0.5041268",
"0.5023367",
"0.5021677",
"0.502044",
"0.5017344",
"0.5016501",
"0.5013999",
"0.5001765",
"0.4973596",
"0.4967911",
"0.49644783",
"0.49641442",
"0.49591082",
"0.4954779",
"0.49404022",
"0.49402073",
"0.49334604",
"0.49313453",
"0.49220362",
"0.4916363",
"0.49145916",
"0.4893193",
"0.4891338",
"0.4875963",
"0.48720875",
"0.4870528",
"0.4860915",
"0.4836646",
"0.4829721",
"0.4827701",
"0.4798409",
"0.47978708",
"0.4793176",
"0.47917384",
"0.47789094",
"0.47773227",
"0.47766986",
"0.47621652",
"0.47614256",
"0.4758988",
"0.47494397",
"0.47494397",
"0.47468808",
"0.4741872",
"0.4741656",
"0.47408918",
"0.47385255",
"0.47333694",
"0.47291315",
"0.47142893",
"0.47128206",
"0.47033522",
"0.46964267",
"0.46917817",
"0.46835688",
"0.46782455",
"0.4677827",
"0.46762198",
"0.46740076",
"0.46736795",
"0.46644625",
"0.4663229",
"0.4659274",
"0.4658663",
"0.46580788",
"0.46566403",
"0.46563673"
] |
0.87793654
|
0
|
Determines if a Parameter with the given ParameterReference is in the collection. Always returns false for ParameterReference.UNREFERENCABLE.
|
public boolean containsByReference(ParameterReference ref);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public boolean contains(CParamImpl param);",
"public boolean involvesTypeParameter(TypeReference tref) throws LookupException {\n\t\treturn ! involvedTypeParameters(tref).isEmpty();\n\t}",
"public interface ParameterCollection<T extends Parameter> extends Collection<T> {\r\n\t\r\n\t/**\r\n\t * Determines if a Parameter with the given ParameterReference is in the collection.\r\n\t * Always returns false for ParameterReference.UNREFERENCABLE.\r\n\t * \r\n\t * @param ref The ParameterReference to check.\r\n\t * @return Returns true iff a Parameter with the given ParameterReference is in the\r\n\t * collection and the reference is not equal to ParameterReference.UNREFERENCABLE.\r\n\t */\r\n\tpublic boolean containsByReference(ParameterReference ref);\r\n\t\r\n\t/**\r\n\t * @param reference The ParameterReference to find a Parameter for.\r\n\t * @return Returns the Parameter that's being referenced. Returns null if no\r\n\t * Parameter is in the collection with the given reference (i.e., reference is not in \r\n\t * the set returned by getParameterReferences()). If reference is equal to \r\n\t * ParameterReference.UNREFERENCABLE, the ParameterCollection must return\r\n\t * null, and not any unreferencable Parameter it may contain.\r\n\t */\r\n\tpublic T get(ParameterReference reference);\r\n\r\n\t/**\r\n\t * @return Returns a Set containing all possible ParameterReferences for which a\r\n\t * non-null Parameter will be returned when called as an argument to getParameter(). \r\n\t * ParameterReference.UNREFERENCABLE must not be in the returned set as a Parameter\r\n\t * can never be returned for it with getParameter().\r\n\t */\r\n\tpublic Set<ParameterReference> getParameterReferences();\r\n}",
"public boolean hasParameter(){\n\t\tif (parameterType==null)\n\t\t\treturn false;\n\t\telse{\n\t\t\treturn true;\n\t\t}\n\t}",
"@Override\n public boolean isReferenceParameter(int index) {\n return false;\n }",
"boolean containsTypedParameter(Parameter typedParameter);",
"public boolean containsIndependentParameter(String name);",
"boolean hasParameterValue();",
"boolean hasReference();",
"public boolean canAddParameters() {\n final PluginWrapper plugin = Hudson.getInstance().getPluginManager().getPlugin(\"parameterized-trigger\"); //$NON-NLS-1$\n return plugin != null && plugin.isActive();\n }",
"public boolean isParameterProvided();",
"public boolean hasParam(String name)\r\n {\r\n try {\r\n return lookup.get(name) != null;\r\n } catch(Exception e) {}\r\n \r\n return false;\r\n }",
"boolean hasParameters();",
"boolean hasAdParameter();",
"@Override\n\tpublic boolean isHaveParam() {\n\t\treturn param !=null;\n\t}",
"public boolean isParameter() {\n\t\treturn isWholeOperationParameter;\n\t}",
"private boolean paramCanBeInjected(Parameter parameter, Injector injector) {\n\t\treturn parameter.isBound(injector);\n\t}",
"public boolean validateParameter(Parameter oParameter) {\r\n boolean bRet = true;\r\n for (Parameter cat : this.lstParameters) {\r\n if (cat.getDescriptionP().equalsIgnoreCase(oParameter.getDescriptionP())) {\r\n bRet = false;\r\n }\r\n }\r\n return bRet;\r\n }",
"public boolean hasParameterValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean hasParameterName()\n {\n return this.paramName != null;\n }",
"public boolean isSetParam() {\n return this.param != null;\n }",
"public boolean hasParameterValue() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }",
"public boolean isFieldReference() {\n\t\treturn expression != null && !expression.startsWith(\"param.\") && !isLiteral();\n\t}",
"private boolean isParameter() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameterDeclaration())\n\t\t{\n\t\t\tupdateToken();\n\t\t\tif(isParameterMark())\n\t\t\t{\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"public boolean hasParam(String paramName);",
"public boolean isParameterOffset(int offset);",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public final boolean getHasErasedValueParametersInJava(@NotNull CallableMemberDescriptor callableMemberDescriptor) {\n return CollectionsKt.contains(ERASED_VALUE_PARAMETERS_SIGNATURES, MethodSignatureMappingKt.computeJvmSignature(callableMemberDescriptor));\n }",
"public boolean contains(Point p);",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean isSetParams() {\n return this.params != null;\n }",
"public boolean hasParameter(String name) throws IllegalArgumentException {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameter() \");\n Via via=(Via)sipHeader;\n \n if(name == null) throw new IllegalArgumentException\n (\"JAIN-EXCEPTION: null parameter\");\n return via.hasParameter(name);\n }",
"protected boolean isReferenced() {\r\n return mReferenced || mUsers.size() > 0;\r\n }",
"public boolean hasParameter(String parameter) {\r\n\t\tString regexp = \".*:\"+parameter+\"\\b.*\";\r\n\t\tfor (String whereCondition : whereConditions) {\r\n\t\t\tif (whereCondition.matches(regexp)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tfor (String havingCondition : havingConditions) {\r\n\t\t\tif (havingCondition.matches(regexp)) {\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}",
"@Override\n\tpublic boolean hasParameter(String id) {\n\t\treturn false;\n\t}",
"public boolean containsPointList(final PointListPanel plp) {\n\t\tfinal Component[] c = panel.getComponents();\n\t\tfor (int i = 0; i < c.length; i++) {\n\t\t\tif (c[i] == plp) return true;\n\t\t}\n\t\treturn false;\n\t}",
"public boolean isReference() {\n AnnotatedBase comp = m_item.getSchemaComponent();\n return comp instanceof IReference && ((IReference)comp).getRef() != null;\n }",
"public boolean registerParameter(Parameter oParameter) {\r\n if (this.validateParameter(oParameter)) {\r\n return this.lstParameters.add(oParameter);\r\n } else {\r\n out.println(\"Parameter \" + oParameter.toString() + \" already exists\");\r\n return false;\r\n }\r\n }",
"boolean hasParameterName();",
"public boolean contains(Point2D p) {\n return pointSet.contains(p);\n }",
"public boolean contains(Vector pt) {\r\n final double x = pt.getX();\r\n final double y = pt.getY();\r\n final double z = pt.getZ();\r\n return x >= this.getMinimumPoint().getBlockX() && x < this.getMaximumPoint().getBlockX() + 1\r\n && y >= this.getMinimumPoint().getBlockY() && y < this.getMaximumPoint().getBlockY() + 1\r\n && z >= this.getMinimumPoint().getBlockZ() && z < this.getMaximumPoint().getBlockZ() + 1;\r\n }",
"public boolean contains(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException(\"cannot query null pt\");\n }\n return pointsSet.contains(p);\n\n }",
"public boolean containsItem(int par1)\n {\n return this.lookupEntry(par1) != null;\n }",
"private boolean hasBindValue(Command command) {\n if (!CollectorVisitor.collectObjects(Parameter.class, command).isEmpty()) {\n return true;\n }\n for (Literal l : CollectorVisitor.collectObjects(Literal.class, command)) {\n if (isBindEligible(l)) {\n return true;\n }\n }\n return false;\n }",
"public boolean isSetParamMap() {\n return this.paramMap != null;\n }",
"private boolean isParameterDeclaration() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isTypeMark()) \n\t\t{\n\t\t\ttheSymbolTable.CURR_SYMBOL.addParameterTypes(theCurrentToken.TokenType);\n\t\t\tupdateToken();\n\t\t\t\n\t\t\tif(theCurrentToken.TokenType == TokenType.IDENTITY)\n\t\t\t{\n\t\t\t\ttheSymbolTable.CURR_SYMBOL.addParameters(theCurrentToken.TokenValue);\n\t\t\t\n\t\t\t\tif(theNextToken.TokenType == TokenType.LEFT_BRACKET)\n\t\t\t\t{\n\t\t\t\t\tupdateToken();\n\t\t\t\t\tif(isBoundStatement())\n\t\t\t\t\t{\n\t\t\t\t\t\tisValid = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\t\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"boolean hasPrerequisiteId();",
"private boolean hasParameterCheckAnnotations(Annotation annotation) {\n\t\tfor (Annotation anno : annotation.annotationType().getAnnotations()) {\n\t\t\tClass<? extends Annotation> annotationType = anno.annotationType();\n\t\t\tif (annotationType.isAnnotationPresent(ParameterCheck.class)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}",
"private boolean isReferenced(String item) {\n\t\tif (varReferences.contains(item)) return true;\n\t\telse return false;\n\t}",
"public boolean hasAtLeastOneReference(Project project);",
"public boolean boundsContains(double[] pt){\n return bounds.contains(pt);\n }",
"private boolean hasParam(SearchCriteria sc, final String param) {\n final Object obj = sc.getParam(param);\n return obj != null && !obj.toString().isEmpty();\n }",
"protected boolean isValid() {\n return COLLECTION.getList().contains(this);\n }",
"public boolean isInList();",
"protected boolean onlyUsesTheseParameters(Set<TypeParameter> parameters) {\n if (isParameterized()) {\n if (isFullyInstantiated()) return true;\n\n for (ModifiedType modifiedType : getTypeParameters()) {\n Type parameter = modifiedType.getType();\n if (parameter instanceof TypeParameter typeParameter) {\n if (!parameters.contains(typeParameter)) return false;\n } else if (!parameter.onlyUsesTheseParameters(parameters)) return false;\n }\n }\n\n return true;\n }",
"public boolean hasParameters() {\n LogWriter.logMessage(LogWriter.TRACE_DEBUG, \"hasParameters()\");\n Via via=(Via)sipHeader;\n \n return via.hasParameters();\n }",
"@Override\n\tpublic boolean hasParameterGuard() {\n\t\treturn true;\n\t}",
"public boolean satisfyingReferences() {\n\t\tfor (DependencyElement refEl : references) {\n\t\t\tif (!refEl.after(this)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}",
"public boolean contains(Point2D p) \r\n\t{\r\n\t\treturn get(root, p) != null;\r\n\t}",
"@Override\n\tpublic boolean contains(Vec2f pnt) {\n\t\tboolean isIn = false;\n\t\tif (_shape != null) {\n\t\t\tisIn = _shape.contains(pnt);\n\t\t}\n\t\treturn isIn;\n\t}",
"private boolean containsPosition(Collection<Item> c, Position p) {\n return getItem(c, p) != null;\n }",
"public boolean has(String propertyName) {\n return this.propertyBag.has(propertyName);\n }",
"public boolean isSetBindingParams() {\n return this.bindingParams != null;\n }",
"private boolean contains(String searchedVariable){\r\n\t\treturn scopeVariables.containsKey(searchedVariable);\r\n\t}",
"boolean hasRef();",
"private boolean isReference()\n {\n return countAttributes(REFERENCE_ATTRS) > 0;\n }",
"public boolean isSet(String name) {\n\t\treturn paramElem.getElementsByTagName(name).getLength() > 0;\n\t}",
"public boolean contains(Point2D p) {\n\n\t\tif (p == null)\n\t\t\tthrow new IllegalArgumentException(\"arguemnt to contains() is null\");\n\t\treturn get(p) != null;\n\n\t}",
"boolean isSetRef();",
"@Override\n\tpublic boolean contains(Point pPtrRelPrnt, Point pCmpRelPrnt) {\n\t\tPoint loc = this.getLocation();\n\t\tint px = (int) pPtrRelPrnt.getX();\n\t\tint py = (int) pPtrRelPrnt.getY();\n\t\tint xLoc = (int) (pCmpRelPrnt.getX() + loc.getX());\n\t\tint yLoc = (int) (pCmpRelPrnt.getY() + loc.getY());\n\t\t\n\t\tif ((px >= xLoc) && (px <= xLoc + width) && (py >= yLoc) && (py <= yLoc + height)) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}",
"boolean hasContains();",
"boolean contains();",
"public static boolean hasSideEffectOnParameter(FunctionCall fcall) {\n if (!contains(fcall)) {\n return false;\n }\n return (modIdxMap.get(fcall.getName().toString()) != null);\n }",
"public boolean hasQueryParameter(String name) {\n\t\tcheckArgument(name != null && !name.isEmpty(), \"Invalid parameter name\");\n\t\treturn query.containsKey(name);\n\t}",
"boolean hasList();",
"@Override\n public boolean isReferenceTo(PsiElement element) {\n if (isLocalScope(element)) {\n return false;\n }\n\n if (resolve() == element) {\n return true;\n }\n final String referencedName = myElement.getReferencedName();\n if (element instanceof PyFunction && Comparing.equal(referencedName, ((PyFunction)element).getName()) &&\n ((PyFunction)element).getContainingClass() != null && !PyNames.INIT.equals(referencedName)) {\n final PyExpression qualifier = myElement.getQualifier();\n if (qualifier != null) {\n final TypeEvalContext context = TypeEvalContext.fast();\n PyType qualifierType = qualifier.getType(context);\n if (qualifierType == null || qualifierType instanceof PyTypeReference) {\n return true;\n }\n }\n }\n return false;\n }",
"@Override\n public boolean equals(Object other)\n {\n if (!(other instanceof ParameterDefn))\n return false;\n return ( ((ParameterDefn)other).paramName.equalsIgnoreCase(paramName) && ((ParameterDefn)other).len == len &&\n ((ParameterDefn)other).lowerBound == lowerBound && ((ParameterDefn)other).upperBound == upperBound );\n }",
"public boolean inside(final Point p)\n\t\t{\n\t\t\tif(obj.contains(p))\n\t\t\t\treturn true;\n\t\t\treturn false;\n\t\t}",
"public boolean contains(Point2D p) {\n if (p == null) {\n throw new IllegalArgumentException();\n }\n return points.contains(p);\n }",
"public boolean contains(Point2D p) {\n if (p == null) throw new IllegalArgumentException(\"Point is null or invalid\");\n return get(p) != null;\n }",
"public boolean contains(Point2D p) {\n return mPoints.contains(p);\n }",
"private boolean isParameterList() throws IOException\n\t{\n\t\tboolean isValid = false;\n\t\t\n\t\tif(isParameter())\n\t\t{\n\t\t\tif(theNextToken.TokenType == TokenType.COMMA)\n\t\t\t{\n\t\t\t\tupdateToken();\n\t\t\t\tupdateToken();\n\t\t\t\t\n\t\t\t\tif(isParameterList())\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\t\tisValid = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Parameter list!\");\n\t\t\t\tisValid = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn isValid;\n\t}",
"public boolean hasProperty(String name) {\n for(Pp property : properties){\n if(property.getId().equals(name))\n return true;\n }\n return false;\n }",
"public boolean contains(Point2D p) {\n\n if (p == null)\n throw new IllegalArgumentException(\"Got null object in contains()\");\n\n return point2DSET.contains(p);\n }",
"default boolean contains(Vector3 point) {\r\n return contains(point.getX(), point.getY(), point.getZ());\r\n }",
"private boolean contains(List<PointList> list, PointList pList){\n\t\n\t\tfor (PointList p : list){\n\t\t\tif (p.equals(pList)) return true;\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public boolean contains(Preference toCheck) {\n requireNonNull(toCheck);\n return internalList.contains(toCheck);\n }",
"@MethodContract(\n post = @Expression(\"_pe != null && elementExceptions[pe.propertyName] != null && \" +\n \"exists(PropertyException pe : elementExceptions[pe.propertyName]) {pe.like(_pe)}\")\n )\n public final boolean contains(PropertyException pe) {\n if (pe == null) {\n return false;\n }\n Set<PropertyException> pes = $elementExceptions.get(pe.getPropertyName());\n if (pes == null) {\n return false;\n }\n for (PropertyException candidate : pes) {\n if (candidate.like(pe)) {\n return true;\n }\n }\n return false;\n }",
"@Override\n public boolean isSubroutineParameter(int index) {\n return false;\n }",
"public boolean isSetBelongs_to_collection() {\n return this.belongs_to_collection != null;\n }",
"private boolean isXClickParametersValid(InvoiceXClickParametersVO parameters) {\n if (parameters == null) {\n return false;\n } else if (parameters.getCounterpartyAliasType() == null) {\n return false;\n } else if (parameters.getShippingAddressId() == null) {\n return false;\n }\n\n return true;\n }",
"public boolean isWholeOperationParameter() {\n\t\treturn isWholeOperationParameter;\n\t}",
"public boolean validateParameters(IGetParameterDefinitionTask task,\n\t\t\tMap parameters)\n\t{\n\t\tassert task != null;\n\t\tassert parameters != null;\n\n\t\tboolean missingParameter = false;\n\n\t\tCollection parameterList = task.getParameterDefns(false);\n\t\tfor (Iterator iter = parameterList.iterator(); iter.hasNext();)\n\t\t{\n\t\t\tIScalarParameterDefn parameterObj = (IScalarParameterDefn) iter.next();\n\t\t\t// ScalarParameterHandle paramHandle = (ScalarParameterHandle)\n\t\t\t// parameterObj\n\t\t\t// .getHandle();\n\n\t\t\tString parameterName = parameterObj.getName();\n\t\t\tObject parameterValue = parameters.get(parameterName);\n\n\t\t\tif (parameterObj.isHidden())\n\t\t\t{\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (parameterValue == null && !parameterObj.allowNull())\n\t\t\t{\n\t\t\t\tmissingParameter = true;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (IScalarParameterDefn.TYPE_STRING == parameterObj.getDataType())\n\t\t\t{\n\t\t\t\tString parameterStringValue = (String) parameterValue;\n\t\t\t\tif (parameterStringValue != null\n\t\t\t\t\t\t&& parameterStringValue.length() <= 0\n\t\t\t\t\t\t&& !parameterObj.allowBlank())\n\t\t\t\t{\n\t\t\t\t\tmissingParameter = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn missingParameter;\n\t}",
"boolean hasConditionList();",
"public boolean hasProperty(Pp property) {\n return properties.contains(property);\n }",
"boolean contains(Polygon p);",
"public static boolean isAQuantificationParam(String accession) {\n for (QuantitationCVParam p : values()) {\n if (p.getAccession().equals(accession))\n return true;\n }\n\n return false;\n }"
] |
[
"0.63811415",
"0.6368058",
"0.63032246",
"0.62303466",
"0.620721",
"0.61350834",
"0.61262274",
"0.5958303",
"0.57601863",
"0.5742021",
"0.5725358",
"0.5678475",
"0.56276816",
"0.5620154",
"0.55837315",
"0.5556657",
"0.55561954",
"0.5514392",
"0.5456783",
"0.5450074",
"0.5441327",
"0.5387042",
"0.5340544",
"0.533597",
"0.5325719",
"0.5297862",
"0.5267752",
"0.52668446",
"0.5260387",
"0.52563894",
"0.52563894",
"0.52563894",
"0.52563894",
"0.52563894",
"0.5251064",
"0.5237424",
"0.5232476",
"0.5228054",
"0.52277076",
"0.52003646",
"0.51882344",
"0.5188032",
"0.5186162",
"0.51856405",
"0.5177091",
"0.5149829",
"0.5139678",
"0.5128093",
"0.5126307",
"0.51166993",
"0.5096791",
"0.5079362",
"0.5058374",
"0.5058342",
"0.505108",
"0.50486034",
"0.5048278",
"0.50293285",
"0.50210196",
"0.50184715",
"0.5016489",
"0.5016236",
"0.501572",
"0.50154847",
"0.50153625",
"0.5015205",
"0.4991723",
"0.49910012",
"0.49882245",
"0.49872613",
"0.49833196",
"0.4978696",
"0.4975972",
"0.49704856",
"0.49673107",
"0.4965572",
"0.4965282",
"0.49631986",
"0.49628693",
"0.49589658",
"0.49580482",
"0.49525028",
"0.4950512",
"0.49496692",
"0.49417108",
"0.493649",
"0.49317783",
"0.49281034",
"0.49104786",
"0.49090803",
"0.48996982",
"0.48959565",
"0.48814368",
"0.4878806",
"0.48743272",
"0.48649052",
"0.4861488",
"0.48599786",
"0.48568255",
"0.48535004"
] |
0.7324454
|
0
|
Inflate the menu; this adds items to the action bar if it is present.
|
@Override
public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(R.menu.main_easy_paint, menu);
return true;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}",
"public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}",
"public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }",
"@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.add__listing, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actmain, menu);\r\n return true;\r\n }",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.buat_menu, menu);\n\t\treturn true;\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.layout.menu, menu);\n\t\treturn true;\n\t}",
"@Override\npublic boolean onCreateOptionsMenu(Menu menu) {\n\n\t\n\t\n\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\n\treturn super.onCreateOptionsMenu(menu);\n}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ichat, menu);\n\t\treturn true;\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater)\n\t{\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\tinflater.inflate(R.menu.expenses_menu, menu);\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}",
"@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}",
"@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }",
"@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }"
] |
[
"0.7247427",
"0.720267",
"0.7196145",
"0.7178052",
"0.71080035",
"0.7040695",
"0.7039065",
"0.7012457",
"0.7011027",
"0.6980861",
"0.69456106",
"0.69392735",
"0.6934666",
"0.691844",
"0.691844",
"0.6891824",
"0.6884514",
"0.6875728",
"0.6875644",
"0.6862535",
"0.6862535",
"0.6862535",
"0.6862535",
"0.6853197",
"0.68470424",
"0.681965",
"0.6817786",
"0.6813462",
"0.68134135",
"0.68134135",
"0.68061316",
"0.6801325",
"0.6798238",
"0.6791593",
"0.67900455",
"0.6788608",
"0.6784089",
"0.6760256",
"0.67577696",
"0.6748367",
"0.67445564",
"0.67445564",
"0.6741421",
"0.6740377",
"0.67264265",
"0.6724471",
"0.67230386",
"0.67230386",
"0.6721279",
"0.67125106",
"0.6708213",
"0.67049414",
"0.6699535",
"0.6699266",
"0.669693",
"0.6695199",
"0.66867507",
"0.66839963",
"0.66839963",
"0.6683506",
"0.66805595",
"0.6679765",
"0.6677659",
"0.66691315",
"0.66676474",
"0.66629726",
"0.66579926",
"0.66579926",
"0.66579926",
"0.6657206",
"0.665479",
"0.665479",
"0.665479",
"0.66530275",
"0.66525495",
"0.6650577",
"0.6649072",
"0.66473264",
"0.66473204",
"0.6646837",
"0.66467345",
"0.6645803",
"0.6645064",
"0.66436726",
"0.6642964",
"0.6642522",
"0.66388524",
"0.66350853",
"0.6634306",
"0.66330856",
"0.6632399",
"0.6632399",
"0.6632399",
"0.6629516",
"0.66283673",
"0.66280276",
"0.66266316",
"0.6624691",
"0.662099",
"0.6619313",
"0.6619313"
] |
0.0
|
-1
|
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
|
@Override
public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();
//noinspection SimplifiableIfStatement
if (id == R.id.action_settings) {
return true;
}
return super.onOptionsItemSelected(item);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }",
"@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }",
"@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }",
"@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}",
"@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }"
] |
[
"0.7905288",
"0.7806507",
"0.7767581",
"0.7728288",
"0.76327986",
"0.7622734",
"0.75856835",
"0.7531844",
"0.74890584",
"0.74584335",
"0.74584335",
"0.7439769",
"0.7422939",
"0.7404292",
"0.7392902",
"0.7388083",
"0.73805684",
"0.7371689",
"0.7363277",
"0.73572534",
"0.7346885",
"0.7342883",
"0.73314273",
"0.73297995",
"0.73268855",
"0.73201936",
"0.73177755",
"0.73149055",
"0.73053724",
"0.73053724",
"0.730291",
"0.7299442",
"0.7294618",
"0.72880965",
"0.7284496",
"0.728212",
"0.72798574",
"0.72611254",
"0.72611254",
"0.72611254",
"0.7260998",
"0.7260716",
"0.72512007",
"0.72250247",
"0.7220824",
"0.721851",
"0.72057116",
"0.7201987",
"0.72011137",
"0.7194394",
"0.7186605",
"0.7178953",
"0.7169934",
"0.71687484",
"0.71550834",
"0.7154791",
"0.7137151",
"0.71361125",
"0.71361125",
"0.7130695",
"0.7130134",
"0.7125464",
"0.71246445",
"0.7124545",
"0.7123362",
"0.71184117",
"0.71183425",
"0.71183425",
"0.71183425",
"0.71183425",
"0.71182",
"0.7117654",
"0.7116174",
"0.71136016",
"0.71110356",
"0.71100533",
"0.71068156",
"0.7101081",
"0.7099488",
"0.7096844",
"0.7094867",
"0.7094867",
"0.708774",
"0.70838696",
"0.7082184",
"0.7081503",
"0.7074928",
"0.7069543",
"0.70631075",
"0.7061777",
"0.70614165",
"0.7052532",
"0.70387715",
"0.70387715",
"0.703725",
"0.70366216",
"0.70366216",
"0.7033842",
"0.703188",
"0.7030853",
"0.70202804"
] |
0.0
|
-1
|
constructor of Event task.
|
public Event(String description, String at) throws DukeException {
super(description);
this.at = at;
try {
String[] dateTimeUnformattedArr = at.substring(1).split(" ");
String dateUnformatted = dateTimeUnformattedArr[0];
String timeUnformatted = dateTimeUnformattedArr[1];
this.date = extractDate(dateUnformatted);
this.time = extractTime(timeUnformatted);
} catch (StringIndexOutOfBoundsException | ArrayIndexOutOfBoundsException | DateTimeException a) {
throw new DukeException("Date / time not formatted correctly, please follow format: yyyy/mm/dd hh:mm");
}
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public Task() {\n\t}",
"public Event() {}",
"public ScheduleEvent()\n\t{\n\n\t}",
"public Task() {\r\n }",
"public Event() {\n }",
"public Event() {\n }",
"public Event() {\r\n\r\n\t}",
"public EventQueue(){}",
"public Event() {\n\n }",
"public Task(){}",
"public Event() {\n\t}",
"public BuildEvent(Task task) {\n super(task);\n this.workspace = task.getProject().getWorkspace();\n this.project = task.getProject();\n this.target = task.getTarget();\n this.task = task;\n }",
"public Task(){\n super();\n }",
"public Task() { }",
"public Task() {\n }",
"public Event(){\n \n }",
"public Eventd() {\n }",
"public Event(){\n\n }",
"public Tasks() {\n }",
"public ServiceTask() {\n\t}",
"public TimedEvent() {\n this(DEFAULT_LABEL + nextTaskID, DEFAULT_DATE, DEFAULT_TIME); // assigning default values\n }",
"protected ICEvent() {}",
"public WorkTimeEvent() {\r\n super();\r\n }",
"public\n CreateEvent()\n {}",
"public Task(Task source) {\n if (source.Application != null) {\n this.Application = new Application(source.Application);\n }\n if (source.TaskName != null) {\n this.TaskName = new String(source.TaskName);\n }\n if (source.TaskInstanceNum != null) {\n this.TaskInstanceNum = new Long(source.TaskInstanceNum);\n }\n if (source.ComputeEnv != null) {\n this.ComputeEnv = new AnonymousComputeEnv(source.ComputeEnv);\n }\n if (source.EnvId != null) {\n this.EnvId = new String(source.EnvId);\n }\n if (source.RedirectInfo != null) {\n this.RedirectInfo = new RedirectInfo(source.RedirectInfo);\n }\n if (source.RedirectLocalInfo != null) {\n this.RedirectLocalInfo = new RedirectLocalInfo(source.RedirectLocalInfo);\n }\n if (source.InputMappings != null) {\n this.InputMappings = new InputMapping[source.InputMappings.length];\n for (int i = 0; i < source.InputMappings.length; i++) {\n this.InputMappings[i] = new InputMapping(source.InputMappings[i]);\n }\n }\n if (source.OutputMappings != null) {\n this.OutputMappings = new OutputMapping[source.OutputMappings.length];\n for (int i = 0; i < source.OutputMappings.length; i++) {\n this.OutputMappings[i] = new OutputMapping(source.OutputMappings[i]);\n }\n }\n if (source.OutputMappingConfigs != null) {\n this.OutputMappingConfigs = new OutputMappingConfig[source.OutputMappingConfigs.length];\n for (int i = 0; i < source.OutputMappingConfigs.length; i++) {\n this.OutputMappingConfigs[i] = new OutputMappingConfig(source.OutputMappingConfigs[i]);\n }\n }\n if (source.EnvVars != null) {\n this.EnvVars = new EnvVar[source.EnvVars.length];\n for (int i = 0; i < source.EnvVars.length; i++) {\n this.EnvVars[i] = new EnvVar(source.EnvVars[i]);\n }\n }\n if (source.Authentications != null) {\n this.Authentications = new Authentication[source.Authentications.length];\n for (int i = 0; i < source.Authentications.length; i++) {\n this.Authentications[i] = new Authentication(source.Authentications[i]);\n }\n }\n if (source.FailedAction != null) {\n this.FailedAction = new String(source.FailedAction);\n }\n if (source.MaxRetryCount != null) {\n this.MaxRetryCount = new Long(source.MaxRetryCount);\n }\n if (source.Timeout != null) {\n this.Timeout = new Long(source.Timeout);\n }\n if (source.MaxConcurrentNum != null) {\n this.MaxConcurrentNum = new Long(source.MaxConcurrentNum);\n }\n if (source.RestartComputeNode != null) {\n this.RestartComputeNode = new Boolean(source.RestartComputeNode);\n }\n if (source.ResourceMaxRetryCount != null) {\n this.ResourceMaxRetryCount = new Long(source.ResourceMaxRetryCount);\n }\n }",
"protected TaskFlow( ) { }",
"public StudentTask() {\n\t\tthis(\"student_task\", null);\n\t}",
"public TaskEventData(TaskEventData source) {\n if (source.Code != null) {\n this.Code = new Long(source.Code);\n }\n if (source.Message != null) {\n this.Message = new String(source.Message);\n }\n if (source.TaskId != null) {\n this.TaskId = new Long(source.TaskId);\n }\n if (source.TaskOrderId != null) {\n this.TaskOrderId = new String(source.TaskOrderId);\n }\n if (source.TaskCode != null) {\n this.TaskCode = new Long(source.TaskCode);\n }\n if (source.TaskCoinNumber != null) {\n this.TaskCoinNumber = new Long(source.TaskCoinNumber);\n }\n if (source.TaskType != null) {\n this.TaskType = new Long(source.TaskType);\n }\n if (source.TotalCoin != null) {\n this.TotalCoin = new Long(source.TotalCoin);\n }\n if (source.Attach != null) {\n this.Attach = new String(source.Attach);\n }\n if (source.DoneTimes != null) {\n this.DoneTimes = new Long(source.DoneTimes);\n }\n if (source.TotalTimes != null) {\n this.TotalTimes = new Long(source.TotalTimes);\n }\n if (source.TaskName != null) {\n this.TaskName = new String(source.TaskName);\n }\n if (source.GrowScore != null) {\n this.GrowScore = new Long(source.GrowScore);\n }\n }",
"public Task(Task task) {\n id = task.id;\n taskType = task.taskType;\n title = task.title;\n period = task.period;\n deadline = task.deadline;\n wcet = task.wcet;\n //execTime = task.execTime;\n priority = task.priority;\n initialOffset = task.initialOffset;\n nextReleaseTime = task.nextReleaseTime;\n isSporadicTask = task.isSporadicTask;\n }",
"public BuildEvent(Project project) {\n super(project);\n this.workspace = project.getWorkspace();\n this.project = project;\n this.target = null;\n this.task = null;\n }",
"public EventTimeline() {\n this(0, 0, 91, 9);\n }",
"public ServiceEvent() {\n // eventSenderID and eventSenderClass are initialized by the OperatingSystem! \n }",
"public AnemoCheckTask() {\n }",
"public TaskList() {\n }",
"Task(String name) {\n this.name = name;\n }",
"public Task(String name, int number) {\r\n this.name = name;\r\n this.id = number;\r\n this.timer = new Timer();\r\n }",
"public TaskList(){}",
"public Task(Task T){\n\n\t\tcmd = T.cmd;\n\t\ttasknum = T.tasknum;\n\t\tterminated = T.terminated;\n\t\tcycle_term = T.cycle_term;\n\t\taborted = T.aborted;\n\t\twaiting = T.waiting;\n\t\ttime_wait = T.time_wait;\n\t\trunning = T.running;\n\n\t\tfor (int i = 0; i < T.actions.size(); i++){\n\n\t\t\tactions.add(T.actions.get(i));\n\t\t\tres_needed.add(T.res_needed.get(i));\n\t\t\treq_num.add(T.req_num.get(i));\n\t\t}\n\n\t\tfor(int i = 0; i < T.claims.size(); i++){\n\n\t\t\tclaims.add(T.claims.get(i));\n\t\t\tallocation.add(T.allocation.get(i));\n\t\t}\n\n\t}",
"@Inject\n public EventService(BackgroundTaskRunnerService taskRunner) {\n this.taskRunner = taskRunner;\n final ConcurrentMap<EventType, List<EventListener<? extends Event>>> tmp = new ConcurrentHashMap<>();\n for (EventType eventType : EventType.values()) {\n tmp.put(eventType, new CopyOnWriteArrayList<>());\n }\n this.eventListeners = tmp;\n }",
"private LogEvent()\n\t{\n\t\tsuper();\n\t}",
"public Task(String name) {\r\n this(name, false);\r\n }",
"public TaskDefinition() {\n\t\tthis.started = Boolean.FALSE; // default\n\t\tthis.startTime = new Date(); // makes it easier during task creation\n\t\t// as we have a default date populated\n\t\tthis.properties = new HashMap<>();\n\t}",
"public QPEvent() {}",
"public void taskStarted(BuildEvent event) {\n }",
"public TaskCurrent() {\n\t}",
"public WatchListMonitorTask()\r\n {\r\n debug(\"WatchListMonitorTask() - Constructor \");\r\n }",
"public Task(String name) {\n\t\tthis.name=name;\n\t}",
"public Event() {\n this.name = null;\n this.description = null;\n this.date = new GregorianCalendar();\n }",
"public EventBarrier() {\n // empty\n }",
"public Todo(String task) {\n super(task);\n }",
"Event createEvent();",
"Event createEvent();",
"public AutoEvents() {\n super();\n _autoEventList = new ArrayList();\n }",
"public TimedTask(String task) {\n this.task = task;\n timeStart = System.currentTimeMillis();\n }",
"ServiceTest(T options) {\n super(options);\n\n final InputStream randomInputStream = TestDataCreationHelper.createRandomInputStream(options.getSize());\n final ByteArrayOutputStream buffer = new ByteArrayOutputStream();\n byte[] eventBytes;\n try {\n int bytesRead;\n final byte[] data = new byte[4096];\n\n while ((bytesRead = randomInputStream.read(data, 0, data.length)) != -1) {\n buffer.write(data, 0, bytesRead);\n }\n\n eventBytes = buffer.toByteArray();\n } catch (IOException e) {\n System.err.println(\"Unable to read input bytes.\" + e);\n final int size = Long.valueOf(options.getSize()).intValue();\n eventBytes = new byte[size];\n Arrays.fill(eventBytes, Integer.valueOf(95).byteValue());\n } finally {\n try {\n buffer.close();\n } catch (IOException e) {\n System.err.println(\"Unable to close bytebuffer. Error:\" + e);\n }\n }\n\n final ArrayList<EventData> eventsList = new ArrayList<>();\n for (int number = 0; number < options.getCount(); number++) {\n final EventData eventData = EventData.create(eventBytes);\n eventData.getProperties().put(\"index\", number);\n eventsList.add(eventData);\n }\n\n this.events = Collections.unmodifiableList(eventsList);\n this.scheduler = Executors.newScheduledThreadPool(Runtime.getRuntime().availableProcessors() * 4);\n }",
"public Task(String url) {\n this.url = url;\n logger.debug(\"Created task for \" + url);\n }",
"public Task(String name, String category, Date start, Date end, Time s, Time e) throws Exception{\n\t\tthis.setName(name);\n\t\tthis.setCategory(category);\n\t\tthis.setEndDate(end);\n\t\tthis.setStartDate(start);\n\t\tthis.setStartTime(s);\n\t\tthis.setEndTime(e);\n\t\tsetIfOverdue();\n\t}",
"public AddTasks() {\n }",
"private TaskItem()\n {\n }",
"public XmlAdaptedTask() {\n\t}",
"public Task(Task task) {\r\n\t\tthis.id = task.id;\r\n\t\tthis.description = task.description;\r\n\t\tthis.processor = task.processor;\r\n\t\tthis.status = task.status;\r\n\r\n\t\tthis.dueDate = new GregorianCalendar(task.dueDate.get(GregorianCalendar.YEAR), \r\n\t\t\t\ttask.dueDate.get(GregorianCalendar.MONTH), \r\n\t\t\t\ttask.dueDate.get(GregorianCalendar.DAY_OF_MONTH));\r\n\r\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"dd.MM.yyyy\");\r\n\t\tthis.formatedDueDate = sdf.format(dueDate.getTime());\r\n\t\tthis.next = task.next;\r\n\t}",
"protected TaskChain() {\n\t}",
"protected Event(Parcel in) {\n id = in.readInt();\n date = in.readInt();\n event = in.readString();\n location = in.readString();\n startTime = in.readString();\n endTime = in.readString();\n notes = in.readString();\n byte tmpAllDay = in.readByte();\n allDay = tmpAllDay == 0 ? null : tmpAllDay == 1;\n bigId = in.readInt();\n alarm = in.readInt();\n }",
"protected AbstractEvent(long t, EventEngine eng) {\n // this sets the public final variables: time and engine\n time = t;\n engine = eng;\n parameters = null;\n }",
"public EventDispatcher() {\n }",
"public XmlAdaptedTask() {}",
"public XmlAdaptedTask() {}",
"public BuildEvent(Target target) {\n super(target);\n this.workspace = target.getProject().getWorkspace();\n this.project = target.getProject();\n this.target = target;\n this.task = null;\n }",
"private void createEvents() {\n\t}",
"protected AbstractEvent(long t, EventEngine eng, String p) {\n // this sets the public final variables: time and engine\n time = t;\n engine = eng;\n parameters = p;\n }",
"public Event() {\n // Unique random UID number for each event\n UID = UUID.randomUUID().toString().toUpperCase();\n TimeZone tz = TimeZone.getTimeZone(\"UTC\");\n Calendar cal = Calendar.getInstance(tz);\n\n /* get time stamp */\n int hour = cal.get(Calendar.HOUR);\n int minute = cal.get(Calendar.MINUTE);\n int second = cal.get(Calendar.SECOND);\n\n /* check current time */\n currentTime = \"\";\n if (hour < 10) {\n currentTime += \"0\" + hour;\n }\n else {\n currentTime += \"\" + hour;\n }\n if (minute < 10) {\n currentTime += \"0\" + minute;\n }\n else {\n currentTime += \"\" + minute;\n }\n if (second < 10) {\n currentTime += \"0\" + second;\n }\n else {\n currentTime += \"\" + second;\n }\n\n /* get date stamp */\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH);\n int day = cal.get(Calendar.DAY_OF_MONTH);\n\n /* check date */\n currentDate = \"\";\n if (year < 10) {\n currentDate += \"0\" + year;\n }\n else {\n currentDate += \"\" + year;\n }\n\n if (month < 10) {\n currentDate += \"0\" + month;\n }\n else {\n currentDate += \"\" + month;\n }\n if (day < 10) {\n currentDate += \"0\" + day;\n }\n else {\n currentDate += \"\" + day;\n }\n }",
"public Task(String msg) {\n this.msg = msg;\n completed = false;\n }",
"public Task(String description){\n this.description = description;\n this.isDone = false;\n }",
"public Task(String description){\n this.description = description;\n this.isDone = false;\n }",
"Task createTask();",
"Task createTask();",
"Task createTask();",
"public EventQueue() {\n\t\tqueue = new LinkedList<Event>();\n\t}",
"public Task(String description) {\n this.description = description;\n this.isDone = false;\n this.tag = \"\";\n }",
"public AddCommand(Task task){\r\n this.task = task;\r\n }",
"public PersistentLogEventListener() {\n\t\tthis(new EventDAO());\n\t}",
"public EventException() {\n super(\"OOPS!!! The description or time of an event cannot be empty.\");\n }",
"public EventMessage(Event event)\r\n {\r\n //super(\"EventMessage\");\r\n super(TYPE_IDENT, event);\r\n }",
"public Task(String name) {\n this.name = name;\n this.isDone = false;\n }",
"public Task(String taskDescription) {\n this.taskDescription = taskDescription;\n this.isDone = false;\n this.completed = \"0\";\n }",
"public TaskList() {\n tasks = new ArrayList<>();\n }",
"public TaskList() {\n tasks = new ArrayList<>();\n }",
"public TaskList() {\n tasks = new ArrayList<>();\n }",
"public TaskServiceImpl() {}",
"public TaskList() {\n recordedTask = new ArrayList<>();\n }",
"public ArticleSearchDoneEvent() {\n\n }",
"public NodeEvent() {\n\t\tthis(new Note(), DEFAULT_LIKELIHOOD);\n\t}",
"public VertexEvent() {\n\t\tsuper();\n\n\t\tthis.jobVertexID = new JobVertexID();\n\t\tthis.jobVertexName = null;\n\t\tthis.totalNumberOfSubtasks = -1;\n\t\tthis.indexOfSubtask = -1;\n\t\tthis.currentExecutionState = ExecutionState.CREATED;\n\t\tthis.description = null;\n\t}",
"public Task(String description) {\n this.description = description;\n this.isDone = false;\n this.taskType = \"\";\n }",
"public Task(String taskDescription) {\n this.taskDescription = taskDescription;\n this.isDone = false;\n }",
"public Task(String description) {\n this.description = description;\n this.isDone = false;\n }",
"public Task(String description) {\n this.description = description;\n this.isDone = false;\n }",
"public Task(String description) {\n this.description = description;\n this.isDone = false;\n this.logo = \"N\";\n }",
"public Event(int type) {\n this.type=type;\n this.arg=null;\n }",
"public SftpDownloadTask() {\n\n\t}",
"private EventsCollector() {\n\t\tsuper();\n\t}"
] |
[
"0.74514383",
"0.74321854",
"0.74093723",
"0.7380782",
"0.7335735",
"0.7335735",
"0.733551",
"0.7331184",
"0.7316698",
"0.72991383",
"0.7289583",
"0.7269113",
"0.72462",
"0.72325116",
"0.722916",
"0.7227218",
"0.72132784",
"0.7186727",
"0.6885067",
"0.68745065",
"0.67231876",
"0.6714318",
"0.6693912",
"0.667158",
"0.6654578",
"0.665033",
"0.6645106",
"0.65813327",
"0.6579883",
"0.6567908",
"0.6522275",
"0.65003437",
"0.64438486",
"0.64110446",
"0.6393235",
"0.6390656",
"0.6384987",
"0.6375131",
"0.6352112",
"0.63433737",
"0.6337139",
"0.6328587",
"0.63201946",
"0.63196844",
"0.6314344",
"0.6314051",
"0.6285971",
"0.6252007",
"0.6247153",
"0.6246686",
"0.6246549",
"0.6246549",
"0.6246063",
"0.6243038",
"0.62417597",
"0.6236634",
"0.62262326",
"0.61983216",
"0.6191718",
"0.6186457",
"0.6183479",
"0.61791754",
"0.6172871",
"0.6163078",
"0.61494833",
"0.6144486",
"0.6144486",
"0.61425817",
"0.61310697",
"0.61301947",
"0.6128131",
"0.6123718",
"0.611181",
"0.611181",
"0.6099432",
"0.6099432",
"0.6099432",
"0.6097281",
"0.60932076",
"0.60834074",
"0.60828084",
"0.6059925",
"0.6050662",
"0.6044794",
"0.60376894",
"0.6028633",
"0.6028633",
"0.6028633",
"0.6027378",
"0.6012482",
"0.60057336",
"0.6004529",
"0.60002875",
"0.59900564",
"0.59842503",
"0.5983919",
"0.5983919",
"0.5980354",
"0.5975002",
"0.59706646",
"0.59670407"
] |
0.0
|
-1
|
returns string of task to be printed out and shown to user.
|
@Override
public String toString() {
DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern("MMM dd yyyy");
DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME;
assert dtfDate instanceof DateTimeFormatter : "date formatter has to be of type DateTimeFormatter";
assert dtfTime instanceof DateTimeFormatter : "time formatter has to be of type DateTimeFormatter";
final String EVENT_STRING_SHOWED_TO_USER =
"[E]" + super.toString() + this.stringOfTags + " " + "(at: " + this.date.format(dtfDate) +
" " + this.time.format(dtfTime) + ")";
return EVENT_STRING_SHOWED_TO_USER;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public abstract String taskToText();",
"public void printTask() {\r\n\t\tSystem.out.println(\"ID: \" + this.id + \" | Description: \" + this.description + \" | Processor: \" + this.processor);\r\n\t\tSystem.out.println(\"Status: \" + this.status + \" | Fälligkeitsdatum: \" + this.formatedDueDate);\r\n\t\tSystem.out.println(\"----------\");\r\n\t}",
"public String GiveTask(){\n return \"[\" + getStatusIcon() + \"] \" + this.description;\n }",
"@Override\n public String toString()\n {\n\n // IF TASK IS MARKED AS COMPLETE\n if(task_completion_boolean)\n {\n // IF THERE'S NO TASK DESCRIPTION\n if(task_description.isBlank() || task_description.equals(null))\n {\n return \"*** \" + String.format(\"[%s] %s\", task_due_date, task_title);\n } // END if\n\n return \"*** \" + String.format(\"[%s] %s | %s\", task_due_date, task_title, task_description);\n } // END if\n\n /***********************************************************/\n\n // OTHERWISE, TASK IS NOT COMPLETE\n else\n {\n // IF THERE'S NO TASK DESCRIPTION\n if(task_description.isBlank() || task_description.equals(null))\n {\n return String.format(\"[%s] %s\", task_due_date, task_title);\n } // END if\n\n return String.format(\"[%s] %s | %s\", task_due_date, task_title, task_description);\n } // END else\n\n }",
"public void tostring(){\n\t\tfor(int i=0;i<taskList.size();i++){\n\t\t\tSystem.out.println(taskList.get(i).getPrint()); \n\t\t}\n\t}",
"@Override\n public String toString()\n {\n if(!isActive()) return \"Task \" + title + \" is inactive\";\n else\n {\n if(!isRepeated()) return \"Task \" + title + \" at \" + time;\n else return \"Task \" + title + \" from \" + start + \" to \" + end + \" every \" + repeat + \" seconds\";\n }\n }",
"public String showDone(Task t) {\n String doneMessage = \"YEEEEE-HAW!!! You've completed this task!\\n\" + t;\n return doneMessage;\n }",
"public String toString() {\n\n\t\tString output = \"\";\n\n\t\tfor (Task i : tasks) {\n\t\t\toutput += i.toString() + \"\\n \\n\";\n\t\t}\n\n\t\treturn output;\n\t}",
"public String printDone(Task task) {\n return \"´ ▽ ` )ノ Nice! I've marked this task as done:\\n\"\n + \"[\" + task.getStatusIcon() + \"]\" + task.getDescription() + \"\\n\";\n }",
"String getTaskName();",
"String getTaskName();",
"public String getTaskName();",
"private String getTaskName() {\n \n \t\treturn this.environment.getTaskName() + \" (\" + (this.environment.getIndexInSubtaskGroup() + 1) + \"/\"\n \t\t\t+ this.environment.getCurrentNumberOfSubtasks() + \")\";\n \t}",
"public String toString() {\n String str = \"\";\n for (int i = 0; i < size; i++) {\n str += tasks[i].toString() + \"\\n\";\n }\n return str;\n }",
"public String showDone(Task task) {\n String response = \"\";\n response += showLine();\n response += \"Nice! I've marked this task as done:\" + System.lineSeparator();\n response += \" \" + task + System.lineSeparator();\n response += showLine();\n return response;\n }",
"public String toString() {\n String s = \"\";\n for (int i = 0; i < size; i++) {\n s += taskarr[i].gettitle() + \", \" + taskarr[i].getassignedTo()\n + \", \" + taskarr[i].gettimetocomplete()\n + \", \" + taskarr[i].getImportant() + \", \" + taskarr[i].getUrgent()\n + \", \" + taskarr[i].getStatus() + \"\\n\";\n }\n return s;\n }",
"@Override\n public String toString() {\n if (timeEnd == null) {\n stop();\n }\n return task + \" in \" + (timeEnd - timeStart) + \"ms\";\n }",
"public String pendingToString() {\n InterruptibleTask interruptibleTask = this.task;\n if (interruptibleTask == null) {\n return super.pendingToString();\n }\n StringBuilder stringBuilder = new StringBuilder(\"task=[\");\n stringBuilder.append(interruptibleTask);\n stringBuilder.append(\"]\");\n return stringBuilder.toString();\n }",
"public String getString() {\n assert tasks != null : \"tasks cannot be null\";\n StringBuilder str = new StringBuilder();\n for (int i = 1; i < parts.length; i++) {\n str.append(\" \");\n str.append(parts[i]);\n }\n String taskString = str.toString();\n Todo todo = new Todo(taskString);\n tasks.add(todo);\n return Ui.showAddText() + todo.toString() + tasks.getSizeString();\n }",
"@Override\n\tpublic void show() {\n\t\tsuper.show();\n\t\tSystem.out.println(\"task: \"+ task);\n\t}",
"public abstract String[] formatTask();",
"public String printList(TaskList tasks) {\n String taskList = \"\";\n for (int i = 0; i < tasks.size(); i++) {\n Task t = tasks.get(i);\n assert t != null;\n taskList = taskList + (i + 1) + \".\" + t.toString() + \"\\n\";\n }\n return \"(ノ◕ヮ◕)ノ*:・゚✧ Here are the task(s) in your list:\\n\"\n + taskList;\n }",
"public String getTasks() {\n StringJoiner result = new StringJoiner(\"\\n\");\n for (int i = 0; i < tasks.size(); i++) {\n Task t = tasks.get(i);\n result.add(String.format(\"%d.%s\", i + 1, t));\n }\n\n return result.toString();\n }",
"@Override\n public String toString() {\n return \"Task no \"+id ;\n }",
"public abstract String getTaskName();",
"public String getDescription()\r\n {\r\n return \"Approver of the task \"+taskName();\r\n }",
"public String executeToString(TaskList tasks, Ui ui, Storage storage) {\n String result = \"Here are the tasks in your list:\";\n for (int i = 0; i < tasks.size(); i++) {\n result += \"\\n\" + (i + 1) + \". \" + tasks.get(i);\n\n }\n return result;\n }",
"public String getTaskWithoutType() {\n String out = \"\";\n for (int i = 1; i < commandSeparate.length; i++) {\n out += i == commandSeparate.length - 1\n ? commandSeparate[i] : commandSeparate[i] + \" \";\n }\n return out;\n }",
"public void printTask(int workerNumber)\n\t{\n\t\t// string representation of the task the customer is asking to do\n\t\tString taskString = \"\";\n\t\tif(task == 1)\n\t\t{\n\t\t\ttaskString = \"buy stamps\";\n\t\t}\n\t\telse if(task == 2)\n\t\t{\n\t\t\ttaskString = \"mail a letter\";\n\t\t}\n\t\telse\n\t\t{\n\t\t\ttaskString = \"mail a package\";\n\t\t}\n\t\t\n\t\t// print what task the customer is asking to do\n\t\tSystem.out.println(\"Customer \" + customerNumber + \" asks postal worker \" + workerNumber + \" to \" + taskString);\n\t}",
"public String toString()\n {\n\treturn \"Completed: \" + completed + \"\\n\" + \"To Do: \" + toDo;\n }",
"public String getName()\r\n {\r\n return taskName;\r\n }",
"@Override\n public String toString() {\n return \"[\" + this.getStatusIcon() + \"] \" + this.taskDescription;\n }",
"@Override\n public String toString() {\n return \"[\" + this.getStatusIcon() + \"] \" + this.taskDescription;\n }",
"public String getTaskName() {\n return this.taskDescription;\n }",
"@Override\r\n public String toString()\r\n {\r\n return taskName + \",\" + dueDate + \"\";\r\n }",
"public String getTask() {\n return task;\n }",
"public String getTask() {\n return task;\n }",
"public String getPlayerTaskProgressText(int task) {\n\t\tString questtype = taskType.get(task);\n\t\tint taskprogress = getPlayerTaskProgress(task);\n\t\tint taskmax = getTaskAmount(task);\n\t\tString taskID = getTaskID(task);\n\t\tString message = null;\n\t\t\n\t\t//Convert stuff to task specifics\n\t\t//Quest types: Collect, Kill, Killplayer, Killanyplayer, Destroy, Place, Levelup, Enchant, Tame, Goto\n\t\tif(questtype.equalsIgnoreCase(\"killplayer\")){ questtype = \"Kill\"; }\n\t\tif(questtype.equalsIgnoreCase(\"killanyplayer\")){ questtype = \"Kill\"; }\n\t\tif(questtype.equalsIgnoreCase(\"levelup\")){ questtype = \"Level up\"; }\n\t\tif(questtype.equalsIgnoreCase(\"goto\")){ questtype = \"Go to\"; }\n\t\t\n\t\tif(questtype.equalsIgnoreCase(\"level up\")){ taskID = \"times\"; }\n\t\tif(questtype.equalsIgnoreCase(\"Go to\")){ taskID = getTaskID(task).split(\"=\")[2]; }\n\t\tif(questtype.equalsIgnoreCase(\"collect\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"destroy\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"place\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"enchant\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"craft\")||\n\t\t\t\tquesttype.equalsIgnoreCase(\"smelt\")){ \n\t\t\ttaskID = taskID.toLowerCase().replace(\"_\", \" \");\n\t\t}\n\t\t\n\t\t//Capitalize first letter (questtype)\n\t\tquesttype = WordUtils.capitalize(questtype);\n\t\t\n\t\t//Change certain types around for grammatical purposes\n\t\tif(getPlayerTaskCompleted(task)){\n\t\t\tif(questtype.equalsIgnoreCase(\"collect\")){ questtype = \"Collected\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"kill\")){ questtype = \"Killed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"killplayer\")){ questtype = \"Killed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"killanyplayer\")){ questtype = \"Killed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"destroy\")){ questtype = \"Destroyed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"place\")){ questtype = \"Placed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"levelup\")){ questtype = \"Leveled up\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"enchant\")){ questtype = \"Enchant\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"tame\")){ questtype = \"Tamed\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"craft\")){ questtype = \"Crafted\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"smelt\")){ questtype = \"Smelted\"; }\n\t\t\tif(questtype.equalsIgnoreCase(\"goto\")){ questtype = \"Went to\"; }\n\t\t\t\n\t\t\t//Create the message if the task is finished\n\t\t\tif(!questtype.equalsIgnoreCase(\"go to\")){\n\t\t\t\tmessage = ChatColor.GREEN + questtype + \" \" + taskmax + \" \" + taskID + \".\";\n\t\t\t} else {\n\t\t\t\tmessage = ChatColor.GREEN + questtype + \" \" + taskID + \".\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(!questtype.equalsIgnoreCase(\"go to\")){\n\t\t\t\tmessage = ChatColor.RED + questtype + \" \" + taskprogress + \"/\" + taskmax + \" \" + taskID + \".\";\n\t\t\t}else{\n\t\t\t\tmessage = ChatColor.RED + questtype + \" \" + taskID + \".\";\n\t\t\t}\n\t\t}\n\t\t\n\t\t//Return message\n\t\treturn message;\n\t}",
"public String get_task_title()\n {\n return task_title;\n }",
"public String showUpdate(Task t) {\n String updateMessage = \"Got it! I'm updatin' this task to:\\n\" + t;\n return updateMessage;\n }",
"public String get_task_description()\n {\n return task_description;\n }",
"public String doPrint() {\n\t\t// Get the event title.\n\t\tString event = \"\";\n\t\tswitch (eventType) {\n\t\t\tcase \"IND\": event = \"Individual\";\n\t\t\t\t\t\tbreak;\n\t\t\tcase \"GRP\": event = \"Group\";\n\t\t\t\t\t\tbreak;\n\t\t\tcase \"PARIND\": event = \"Parallel Individual\";\n\t\t\t\t\t\t break;\n\t\t\tcase \"PARGRP\": event = \"Parallel Group\";\n\t\t\t\t\t\t break;\n\t\t default:\tevent = \"\";\n\t\t \t\t\tbreak;\n\t\t}\n\t\t\n\t\tString out = \"RUN BIB TIME\t \" + event +\"\\n\";\n\t\t\n\t\t// Print completed runs.\n\t\tfor ( Run run : completedRuns ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\t// Print inProgress runs.\n\t\tfor ( Run run : finishQueue ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\t// Print waiting runs.\n\t\tfor ( Run run : startQueue ) {\n\t\t\tout += run.print() + \"\\n\";\n\t\t}\n\t\t\n\t\treturn out;\n\t}",
"private static void task43() {\n System.out.println(\"Twinkle, twinkle, little star,\");\n System.out.println(\"\\tHow I wonder what you are!\");\n System.out.println(\"\\t\\tUp above the world so high,\");\n System.out.println(\"\\t\\tLike a diamond in the sky!\");\n System.out.println(\"Twinkle, twinkle, little star,\");\n System.out.println(\"How I wonder what you are.\");\n }",
"public void printTasks() {\n int i = 0;\n for (Task task : tasks) {\n StringBuilder message = new StringBuilder()\n .append(\"Task \").append(i++).append(\": \").append(task);\n\n for (Task blocker : task.firstToFinish) {\n message.append(\"\\n depends on completed task: \").append(blocker);\n }\n\n for (Task blocker : task.firstToSuccessfullyFinish) {\n message.append(\"\\n depends on successful task: \").append(blocker);\n }\n\n stdout.println(message.toString());\n }\n }",
"public String taskName() {\n return this.taskName;\n }",
"private String formatTask(Task task, int done, String activity, String timing, String tag) {\n String type = task.getType() == TaskType.DEADLINE ? \"D\" : \"E\";\n return String.format(\"%s---%d---%s---%s---%s\", type, done, activity, timing, tag);\n }",
"public String printAddTask(Task task, int sizeOfTaskList) {\n return \"ಥ◡ಥ Got it. I've added this task:\\n\" + task.toString() + \"\\n\"\n + \"Now you have \" + sizeOfTaskList + \" tasks in the list.\\n\";\n }",
"public static void printTaskList(ArrayList<Task> taskList){\n if (taskList.size() != 0) {\n Task task; // declaring the temporary Task variable\n System.out.printf(\"%-11s%-5s%-22s%s\\n\", \"Completed\", \"No.\", \"Task\", \"Date\"); // printing the column headers\n for (int i = 0; i < taskList.size(); i++) { // iterating over each task in the user's task list\n task = taskList.get(i); // getting the current task in the list\n System.out.print(\" [ \"); // formatting \n if (task.getIsComplete()) { // if the task is complete\n System.out.print(\"✓\"); // marking the task as complete\n } else {\n System.out.print(\" \"); // marking the task as incomplete\n }\n System.out.print(\" ] \"); // formatting\n System.out.printf(\"%-5d\", i + 1); // printing the task number\n System.out.printf(\"%-22s\", task.getLabel()); // printing the label of the task\n System.out.printf(\"%s\", task.getDate()); // printing the date of the task\n System.out.print(\"\\n\"); // printing a newline for formatting\n }\n } else {\n System.out.println(\"You do not have any tasks. Be sure to check your task list and add a task.\"); // telling the user they do not have any tasks\n }\n System.out.print(\"\\n\"); // printing a newline for formatting\n pause(); // pauses the screen\n }",
"public String addTask(Task t) {\n tasks.add(t);\n return tasks.get(tasks.size() - 1).toString();\n }",
"public String goalToString() {\r\n return priority + \" - \" + task + \" - \" + date;\r\n }",
"public String getTaskName(){\r\n\t\treturn this.taskName;\r\n\t}",
"public static void printTaskAdded(){\n ui.showToUser(\n ui.DIVIDER,\n \" Got it. I've added this task:\\n\" + Tasks.get(Tasks.size()-1).toString(),\n \"Now you have \" + Tasks.size() + \" tasks in the list.\",\n ui.DIVIDER);\n }",
"public String listOfTasks() {\n String listOfTasks = Messages.LIST_TASKS_MESSAGE;\n for (int i = 0; i < Parser.getOrderAdded(); i++) {\n listOfTasks += recordedTask.get(i).getTaskNum() + DOT_OPEN_SQUARE_BRACKET\n + recordedTask.get(i).getCurrentTaskType() + CLOSE_SQUARE_BRACKET + OPEN_SQUARE_BRACKET\n + recordedTask.get(i).taskStatus() + CLOSE_SQUARE_BRACKET + Messages.BLANK_SPACE\n + recordedTask.get(i).getTaskName()\n + ((i == Parser.getOrderAdded() - 1) ? Messages.EMPTY_STRING : Messages.NEW_LINE);\n }\n return listOfTasks;\n }",
"String getTaskId();",
"public String getTaskName() {\n return taskName;\n }",
"public String getTaskName() {\n return taskName;\n }",
"public String getTaskName() {\n return taskName;\n }",
"public String getTaskName() {\n return taskName;\n }",
"public String getTaskName() {\n Object ref = taskName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskName_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"@Override\n public void showActionsInformation() {\n System.out.println(\"\");\n System.out.println(\"To add a new task, please follow the instructions and press ENTER:\");\n System.out.println(\"IP.TodoListApplication.App.Task ID, IP.TodoListApplication.App.Task Title, Due Date (format: dd-mm-yyyy), IP.TodoListApplication.App.Task Status, Project Name\");\n System.out.println(\"\");\n System.out.println(\"Enter 0 to RETURN\");\n }",
"private String formatTask(Task task) {\n String identifier = task.getType();\n String completionStatus = task.isComplete() ? \"1\" : \"0\";\n String dateString = \"\";\n if (task instanceof Deadline) {\n Deadline d = (Deadline) task;\n LocalDateTime date = d.getDate();\n dateString = date.format(FORMATTER);\n }\n if (task instanceof Event) {\n Event e = (Event) task;\n LocalDateTime date = e.getDate();\n dateString = date.format(FORMATTER);\n }\n return String.join(\"|\", identifier, completionStatus, task.getName(), dateString);\n }",
"java.lang.String getOutput();",
"public static String getInstruction() {\n return \"Adds a todo task to the tasks list\\n\"\n + \"Format: todo [desc]\\n\"\n + \"desc: The description of the todo task\\n\";\n }",
"@Override\n public String execute(ArrayList<Task> tasks, Layout layout) {\n return layout.printTaskList(false, tasks);\n }",
"public String updateTaskToFile() {\n String updatedText = Messages.EMPTY_STRING;\n for (int i = 0; i < Parser.getOrderAdded(); i++) {\n updatedText = updatedText.concat(recordedTask.get(i).getCurrentTaskType()\n + Messages.SEPARATOR + recordedTask.get(i).taskStatus()\n + Messages.SEPARATOR + recordedTask.get(i).getTaskName()) + Messages.NEW_LINE;\n }\n return updatedText;\n }",
"public String execute() {\n String result;\n try {\n ToDo todo = new ToDo(task, false);\n result = UI.toDoCalled(taskList, todo);\n } catch (Exception e) {\n result = UI.printError(\" \\u2639 OOPS!!! The description of a todo cannot be empty.\");\n }\n return result;\n }",
"public String getTaskName() {\n Object ref = taskName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskName_ = s;\n return s;\n }\n }",
"@Override\n public String toString() {\n String output;\n if (isDone) {\n output = String.format(\"[X] %s\", description);\n } else {\n output = String.format(\"[ ] %s\", description);\n }\n return output;\n }",
"String GetTaskName(int Catalog_ID);",
"@Test\n public void toString_shouldReturnInCorrectFormat() {\n Task task = new Task(\"Test\");\n String expected = \"[N] Test\";\n Assertions.assertEquals(expected, task.toString());\n }",
"public String showHelp() {\n String helpMessage = \"I don't know nothin' about other commands but \"\n + \"here are the list of commands I understand!\\n\"\n + \"help: displays the list of commands available\\n\"\n + \"\\n\"\n + \"list: displays the list of tasks you have\\n\"\n + \"\\n\"\n + \"find *keyword*: displays the tasks with that keyword\\n\"\n + \"eg find karate\\n\"\n + \"\\n\"\n + \"todo *task description*: adds a task without any\\n\"\n + \"date/time attached to it\\n\" + \"eg todo scold spongebob\\n\"\n + \"\\n\"\n + \"deadline *task description* /by *date+time*: adds a\\n\"\n + \"task that needs to be done before a specific date and time\\n\"\n + \"(date and time to be written in yyyy-mm-dd HHMM format)\\n\"\n + \"eg deadline build spaceship /by 2019-10-15 2359\\n\"\n + \"\\n\"\n + \"event *task description* /at *date+time*: adds a task that\\n\"\n + \"starts at a specific time and ends at a specific time\\n\"\n + \"(date and time to be written in yyyy-mm-dd HHMM format)\\n\"\n + \"eg event karate competition /at 2019-10-15 1200\\n\"\n + \"\\n\"\n + \"done *task number*: marks the task with that number as done\\n\"\n + \"eg done 1\\n\"\n + \"\\n\"\n + \"delete *task number*: deletes the task with that number from the list\\n\"\n + \"eg delete 1\\n\"\n + \"\\n\"\n + \"update *task number* /name *task name*: updates the name of the task with \"\n + \"that number from the list\\n\" + \"update 1 /name help spongebob\\n\"\n + \"\\n\"\n + \"update *task number* /date *task date*: (only for deadline or event tasks!) \"\n + \"updates the date and time of the task with that number from the list\\n\"\n + \"update 1 /date 2020-02-20 1200\\n\"\n + \"\\n\"\n + \"bye: ends the session\";\n return helpMessage;\n }",
"private String getLog() {\n\n\t\tNexTask curTask = TaskHandler.getCurrentTask();\n\t\tif (curTask == null || curTask.getLog() == null) {\n\t\t\treturn \"log:0\";\n\t\t}\n\t\tString respond = \"task_log:1:\" + TaskHandler.getCurrentTask().getLog();\n\t\treturn respond;\n\t}",
"public static void printList(){\n ui.showToUser(ui.DIVIDER, \"Here are the tasks in your list:\");\n for (int i=0; i<Tasks.size(); ++i){\n Task task = Tasks.get(i);\n Integer taskNumber = i+1;\n ui.showToUser(taskNumber + \".\" + task.toString());\n }\n ui.showToUser(ui.DIVIDER);\n }",
"public String getSaveString() {\n if (this.isDone()) {\n return String.format(\"[isDone] todo %s\\n\", description);\n } else {\n return String.format(\"todo %s\\n\", description);\n }\n }",
"@Test\n\tpublic void testToString() {\n\t\tSystem.out.println(\"toString\");\n\t\tDeleteTask task = new DeleteTask(1);\n\t\tassertEquals(task.toString(), \"DeleteTask -- [filePath=1]\");\n\t}",
"public String printResult() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tsb.append(printStartNumberAndName() + \"; \");\n\t\tsb.append(printInfo());\n\n\t\tsb.append(printTotalTime() + \"; \");\n\n\t\tsb.append(getStartTime() + \"; \");\n\t\tsb.append(getFinishTime());\n\t\n\t\tsb.append(errorHandler.print());\n\t\t\n\t\treturn sb.toString();\n\t}",
"private void displayTask() {\n this.task = new Task();\n Color color = this.task.getColor();\n this.taskPanel.displayColor(color);\n }",
"public String showList() {\n String listMessage = \"Here yer go! These are all your tasks!\";\n return listMessage;\n }",
"public String showAdd(Task t, TaskList tasks) {\n String addMessage = \"Ain't no problem! I'm addin' this task:\\n\" + t + \"\\n\"\n + \"Now you have \" + tasks.getSize() + \" tasks in your list!\";\n return addMessage;\n }",
"public String getTask(){\n\treturn task;\n}",
"private static String getStatus(Task task) {\n Status myStatus = task.getStatus();\n if (myStatus == Status.UP_NEXT) {\n return \"UP_NEXT\";\n } else if (myStatus == Status.IN_PROGRESS) {\n return \"IN_PROGRESS\";\n } else {\n return myStatus.toString();\n }\n }",
"public void outputTasks ()\n\t{\n\t\toutput (\"\\n> (all-tasks)\\n\");\n\t\tString[] tasks = Task.allTaskClasses();\n\t\tfor (int i=0 ; i<tasks.length ; i++) output (tasks[i]);\n\t}",
"protected String getTaskId() {\n\t\tDisplay.debug(\"getTaskId() devuelve %s\", taskId);\n\t\treturn taskId;\n\t}",
"public String getNextTask(String name){\n\t\tfor(int i =0;i<taskList.size();i++){\n\t\t\tif(name.equals(taskList.get(i).getName())){\n\t\t\t\tif(taskList.get(i).\n\t\t\t\t\tgetImportant()==true && taskList.get(i).\n\t\t\t\t\tgetUrgent()==false && taskList.get(i).\n\t\t\t\t\tgetStatus().equals(\"todo\")){\n\t\t\t\t\treturn taskList.get(i).getPrint();\n\t\t\t\t}\n\t\t\t}\n\t\n\t\t\t\n\t\t}\n\t\t//System.out.println(\"This is end: \");\n\t\treturn \"null\";\n\t}",
"public static void printTasks(){\n int totalTime = 0;\n int totalWait = 0;\n for(Task t : taskList){\n\n if(t.isAborted){\n System.out.println(\"TASK \" + t.taskNumber + \" aborted\" );\n }else{\n System.out.println(\"TASK \" + t.taskNumber + \" \" + t.terminateTime + \" \" + t.waitingCount + \" %\" + 100 * ((float)t.waitingCount / t.terminateTime));\n totalTime += t.terminateTime;\n totalWait += t.waitingCount;\n }\n }\n System.out.println(\"TOTAL\" + \" \" + totalTime + \" \" + totalWait + \" %\" + 100 *((float)totalWait / totalTime));\n\n }",
"static String getReadableTask(int taskTypeRepresentation) {\n return taskDetails.get(taskTypeRepresentation).getDescription();\n }",
"public String toString(){\n\t\tFileHandler fw = new FileHandler(); //Create new object for file write\n \tformatText(title);\n \tformatText(snippet);\n \tsnippet = removeLineBreak(snippet);\n \t\n \t//Print out contents to screen\n \tSystem.out.println(urlLabel + link);\n \tSystem.out.println(titleLabel + title);\n\t\tSystem.out.println(snippetLabel + snippet);\n\t\t\n\t\t//Write contents to file\n\t\tfw.writeToFile(urlLabel, link, fw.file, false);\n\t\tfw.writeToFile(titleLabel, title, fw.file, false);\n\t\tfw.writeToFile(snippetLabel, snippet, fw.file, false);\n\t\tfw.writeToFile(\"---------- END OF RESULT -----------\",\"\", fw.file, false);\n\t return \"\";\n\t}",
"public String getTask(int position) {\n HashMap<String, String> map = list.get(position);\n return map.get(TASK_COLUMN);\n }",
"@Override\n public String toString() {\n\treturn \"Primzahlen von Task \" + taskID + \" \" + primzahlenListe;\n }",
"@Override\n\tpublic String getWorkOut() {\n\n\t\treturn \"This is traack Coach class method\";\n\t}",
"public static void printTaskAddedConfirmation(Task taskAdded) {\n System.out.println(HORIZONTAL_LINE);\n taskAdded.printTaskAddedMessage();\n System.out.println(HORIZONTAL_LINE);\n }",
"public static String getTaskName4(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName4\", \"click to edit\");\n }",
"@Override\n public String execute(TaskList tasks, Storage storage) {\n return \"Here are the tasks in your list:\\n\" + tasks.toString();\n }",
"public java.lang.String getRndTaskName() {\n return rndTaskName;\n }",
"String getOutput();",
"@Override\r\n public String execute(TaskList tasks, Ui ui, Storage storage) {\r\n String output = \"\";\r\n output += \"Here are the tasks in your list:\\n\";\r\n output += iterateTaskList(tasks.getList());\r\n\r\n assert !output.equals(\"\") : \"Output should not be empty\";\r\n\r\n return output;\r\n }",
"public String display(){\n return \"\\tId: \" + id + \"\\n\" +\n \"\\tName: \" + name + \"\\n\" +\n \"\\tDescription: \" + description + \"\\n\" +\n \"\\tTeacher(s): \" + teacherString() + \"\\n\";\n }",
"public String printActivity() {\n return \"Other Activity:\\n\" + title + \"\\n\" + \"Start: \" + startTime.printTime() + \"\\n\" + \"End: \" + endTime.printTime() + \"\\n\" + \"location: \" + location + \"\\n\" + \"comment: \" + comment + \"\\n\\n\";\n }",
"public String call() {\n return Thread.currentThread().getName() + \" executing ...\";\n }",
"private Task3() {\n\t\n\tSystem.out.println(\"This is Laz Ismail\");\n\t\n\t}",
"public String getTaskTitle() {\n return String.valueOf(comboBox.getSelectedItem());\n }"
] |
[
"0.76666963",
"0.7451407",
"0.7400613",
"0.73900825",
"0.734411",
"0.72995895",
"0.7297712",
"0.7266802",
"0.72076166",
"0.7092724",
"0.7092724",
"0.7076327",
"0.70129675",
"0.70079815",
"0.6992799",
"0.69475424",
"0.69460845",
"0.69454515",
"0.68901557",
"0.68235874",
"0.67096996",
"0.6708872",
"0.6678235",
"0.6666825",
"0.6655792",
"0.6640911",
"0.66290975",
"0.659522",
"0.6591487",
"0.6578197",
"0.6574882",
"0.65592754",
"0.65592754",
"0.65517867",
"0.65407306",
"0.6528251",
"0.6528251",
"0.6522092",
"0.65178806",
"0.6502309",
"0.64979225",
"0.64820576",
"0.6477923",
"0.64779174",
"0.6473331",
"0.64726645",
"0.6466653",
"0.64590734",
"0.64442617",
"0.6438592",
"0.6407193",
"0.6397107",
"0.63698524",
"0.6319173",
"0.63162816",
"0.63162816",
"0.63162816",
"0.63162816",
"0.62877226",
"0.62598413",
"0.6252376",
"0.6251475",
"0.6227259",
"0.6226719",
"0.62182295",
"0.61950576",
"0.61924624",
"0.6177192",
"0.6165037",
"0.61645854",
"0.6153738",
"0.6131138",
"0.6112452",
"0.6111424",
"0.6080944",
"0.6079957",
"0.6069498",
"0.60681593",
"0.60639375",
"0.60634047",
"0.60585177",
"0.6056028",
"0.6043522",
"0.6037363",
"0.6033811",
"0.60205996",
"0.60137606",
"0.6009515",
"0.59980315",
"0.5987746",
"0.5979716",
"0.5979477",
"0.5975429",
"0.5966978",
"0.5957618",
"0.5955376",
"0.59378386",
"0.5931661",
"0.5910098",
"0.5901465",
"0.5895485"
] |
0.0
|
-1
|
returns string of task to be saved in storage.
|
@Override
public String stringToSave() {
char status = this.isDone ? '1' : '0';
DateTimeFormatter dtfDate = DateTimeFormatter.ofPattern("MMM dd yyyy");
DateTimeFormatter dtfTime = DateTimeFormatter.ISO_LOCAL_TIME;
assert dtfDate instanceof DateTimeFormatter : "date formatter has to be of type DateTimeFormatter";
assert dtfTime instanceof DateTimeFormatter : "time formatter has to be of type DateTimeFormatter";
final String EVENT_STRING_TO_SAVE =
"E " + "| " + status + " | " + this.description+ this.stringOfTags + " " + "| " +
this.date.format(dtfDate) + " " + this.time.format(dtfTime);
return EVENT_STRING_TO_SAVE;
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public String getSaveString() {\n if (this.isDone()) {\n return String.format(\"[isDone] todo %s\\n\", description);\n } else {\n return String.format(\"todo %s\\n\", description);\n }\n }",
"public String getString() {\n assert tasks != null : \"tasks cannot be null\";\n StringBuilder str = new StringBuilder();\n for (int i = 1; i < parts.length; i++) {\n str.append(\" \");\n str.append(parts[i]);\n }\n String taskString = str.toString();\n Todo todo = new Todo(taskString);\n tasks.add(todo);\n return Ui.showAddText() + todo.toString() + tasks.getSizeString();\n }",
"public abstract String taskToText();",
"public String addTask(Task t) {\n tasks.add(t);\n return tasks.get(tasks.size() - 1).toString();\n }",
"@Override\n public String toSaveString() {\n //D0Finish project@June 6\n return \"D\" + (isDone ? \"1\" : \"0\") + name + \"@\" + getDate();\n }",
"public String getTask() {\n return task;\n }",
"public String getTask() {\n return task;\n }",
"public String getAddTaskString(String type, String name) {\n Task taskToAdd = new Task(type, name);\n storage.add(taskToAdd);\n if (taskToAdd.hasDate()) {\n if (!dateStorage.containsKey(taskToAdd.getDate())) {\n dateStorage.put(taskToAdd.getDate(), new ArrayList<>());\n }\n dateStorage.get(taskToAdd.getDate()).add(taskToAdd);\n }\n return getTaskAddedString(taskToAdd, storage);\n }",
"public String convertToSaveFormat() {\n String dataStr = \"\";\n if (USER_TASKS.size() == 0) {\n return dataStr;\n }\n for (int i = 0; i < USER_TASKS.size() - 1; i++) {\n Task data = USER_TASKS.get(i);\n dataStr += data.convertToSaveFormat() + \"\\n\";\n }\n dataStr += USER_TASKS.get(USER_TASKS.size() - 1).convertToSaveFormat();\n return dataStr;\n }",
"public String getTaskName();",
"private void saveTask(){\n \tZadatakApp app = (ZadatakApp)getApplicationContext();\n \t\n \tTask task = new Task();\n \ttask.set(Task.Attributes.Name, nameText);\n \ttask.set(Task.Attributes.Duedate, datePicker);\n \ttask.set(Task.Attributes.Hours, lengthText);\n \ttask.set(Task.Attributes.Progress, progressBar);\n \ttask.set(Task.Attributes.Priority, priorityBox);\n \t\n \t// Save it to the database either as a new task or over an old task\n \tif (editmode) { app.dbman.editTask(id, task); }\n \telse { app.dbman.insertTask(task); }\n \t\n \t// A task has been added or changed, rescedule\n \tapp.schedule();\n \t\n \tapp.toaster(\"NEW / EDITED TASK\");\n \t\n \t// Quit the activity\n \tfinish();\n }",
"public abstract String generateStorageString();",
"com.google.protobuf.ByteString\n getTaskNameBytes();",
"public String getTaskId() {\n Object ref = taskId_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskId_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"@Override\n public String saveString() {\n AtomicReference<String> s = new AtomicReference<>(String.valueOf(finalistID) + \":\"); //Atomic reference since we modifying with lambda\n answers.forEach(a -> { s.set( s.get() + a + \":\"); });\n return s.get().substring(0, s.get().length()-1); //remove last ':'\n }",
"String getTaskName();",
"String getTaskName();",
"public String getTaskName() {\n Object ref = taskName_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskName_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }",
"public abstract String toSaveString();",
"String getTaskId();",
"public String updateTaskToFile() {\n String updatedText = Messages.EMPTY_STRING;\n for (int i = 0; i < Parser.getOrderAdded(); i++) {\n updatedText = updatedText.concat(recordedTask.get(i).getCurrentTaskType()\n + Messages.SEPARATOR + recordedTask.get(i).taskStatus()\n + Messages.SEPARATOR + recordedTask.get(i).getTaskName()) + Messages.NEW_LINE;\n }\n return updatedText;\n }",
"public String getTaskId() {\n Object ref = taskId_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskId_ = s;\n return s;\n }\n }",
"public String getTaskName() {\n Object ref = taskName_;\n if (ref instanceof String) {\n return (String) ref;\n } else {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n taskName_ = s;\n return s;\n }\n }",
"public String getTask(){\n\treturn task;\n}",
"protected String getTaskId() {\n\t\tDisplay.debug(\"getTaskId() devuelve %s\", taskId);\n\t\treturn taskId;\n\t}",
"@Override\n public String toString() {\n return \"Task no \"+id ;\n }",
"public String pendingToString() {\n InterruptibleTask interruptibleTask = this.task;\n if (interruptibleTask == null) {\n return super.pendingToString();\n }\n StringBuilder stringBuilder = new StringBuilder(\"task=[\");\n stringBuilder.append(interruptibleTask);\n stringBuilder.append(\"]\");\n return stringBuilder.toString();\n }",
"public String getSaveString() {\n return \"\" + Value;\n }",
"public abstract String getTaskName();",
"private Integer saveTask(Integer taskid,String taskname,String tasktype,String taskcontent,\r\n\t\t\tString taskcomment){\n\t\treturn 1;\r\n\t}",
"public String GiveTask(){\n return \"[\" + getStatusIcon() + \"] \" + this.description;\n }",
"private String getTaskName() {\n \n \t\treturn this.environment.getTaskName() + \" (\" + (this.environment.getIndexInSubtaskGroup() + 1) + \"/\"\n \t\t\t+ this.environment.getCurrentNumberOfSubtasks() + \")\";\n \t}",
"public String taskName() {\n return this.taskName;\n }",
"public String getDeleteString(int taskNumber) {\n StringBuilder response = new StringBuilder(\"Deleted task:\\n\");\n Task currentTask = storage.get(taskNumber);\n response.append(currentTask).append(\"\\n\");\n storage.remove(taskNumber);\n response.append(\"There are now \").append(storage.size()).append(\" task(s) remaining.\");\n return response.toString();\n }",
"public String getTaskName() {\n return taskName;\n }",
"public String getTaskName() {\n return taskName;\n }",
"public String getTaskName() {\n return taskName;\n }",
"public String getTaskName() {\n return taskName;\n }",
"public com.google.protobuf.ByteString\n getTaskNameBytes() {\n Object ref = taskName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n taskName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"@Override\n\t\tprotected String doInBackground(Task... arg0) {\n\t\t\tString taskID = TfTaskRepository.addTask(arg0[0], \n\t\t\t getApplicationContext());\n\t\t\t\n\t\t\ttaskID = taskID + \"\\n\";\n\t\t\t\n\t\t\t//saving the ID local\n\t\t\tlt.saveTaskId(taskID, getApplicationContext());\n\t\t\t\n\t\t\treturn null;\n\t\t}",
"public com.google.protobuf.ByteString\n getTaskNameBytes() {\n Object ref = taskName_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n taskName_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public com.google.protobuf.ByteString\n getTaskIdBytes() {\n Object ref = taskId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n taskId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String toString() {\n String str = \"\";\n for (int i = 0; i < size; i++) {\n str += tasks[i].toString() + \"\\n\";\n }\n return str;\n }",
"@Override\n public String typeString() {\n DateTimeFormatter formatter = DateTimeFormatter.ofPattern(\"dd/MM/yyyy HHmm\");\n String formatDateTime = this.date.format(formatter);\n return \"event\" + Task.SEP + super.toSaveInFile(\"/at \" + formatDateTime);\n }",
"public String saveToHardDisk() {\r\n int isDone = this.isDone ? 1 : 0;\r\n return \" | \" + isDone + \" | \" + description;\r\n }",
"public com.google.protobuf.ByteString\n getTaskIdBytes() {\n Object ref = taskId_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n taskId_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }",
"public String get_task_description()\n {\n return task_description;\n }",
"public java.lang.String getTaskId() {\n return taskId;\n }",
"public java.lang.String getTaskId() {\n return taskId;\n }",
"public String toString() {\n\n\t\tString output = \"\";\n\n\t\tfor (Task i : tasks) {\n\t\t\toutput += i.toString() + \"\\n \\n\";\n\t\t}\n\n\t\treturn output;\n\t}",
"public String getTaskName() {\n return this.taskDescription;\n }",
"public String getTaskName(){\r\n\t\treturn this.taskName;\r\n\t}",
"public String getName()\r\n {\r\n return taskName;\r\n }",
"@Override\n public String getTaskType() {\n return \"T\";\n }",
"private String getTempFileString() {\n final File path = new File(getFlagStoreDir() + String.valueOf(lJobId) + File.separator);\n // // If this does not exist, we can create it here.\n if (!path.exists()) {\n path.mkdirs();\n }\n //\n return new File(path, Utils.getDeviceUUID(this)+ \".jpeg\")\n .getPath();\n }",
"public java.lang.String getTaskId() {\n return taskId;\n }",
"public java.lang.String getTaskId() {\n return taskId;\n }",
"public static String getTaskName4(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName4\", \"click to edit\");\n }",
"@Override\n public String toString() {\n if (timeEnd == null) {\n stop();\n }\n return task + \" in \" + (timeEnd - timeStart) + \"ms\";\n }",
"public String getMarkCompleteString(int taskNumber) {\n StringBuilder response = new StringBuilder();\n Task currentTask = storage.get(taskNumber);\n currentTask.complete();\n response.append(\"Marked task \").append(taskNumber + 1).append(\" as complete. \\n\");\n response.append(currentTask);\n return response.toString();\n }",
"public void saveTask() {\r\n if (validateTask(textFieldName, textFieldDescription, textFieldDueDate, comboPriority)) {\r\n if (myTask == null) {\r\n myTask = new Task(textFieldName.getText(), textFieldDescription.getText(),\r\n LocalDate.parse(textFieldDueDate.getText()),\r\n Priority.valueOf(Objects.requireNonNull(comboPriority.getSelectedItem()).toString()));\r\n } else {\r\n myTask.setName(textFieldName.getText());\r\n myTask.setDescription(textFieldDescription.getText());\r\n myTask.setDueDate(LocalDate.parse(textFieldDueDate.getText()));\r\n myTask.setPriority(Priority.valueOf(Objects.requireNonNull(\r\n comboPriority.getSelectedItem()).toString()));\r\n }\r\n myTodo.getTodo().put(myTask.getHashKey(), myTask);\r\n todoListGui();\r\n }\r\n }",
"static String getReadableTask(int taskTypeRepresentation) {\n return taskDetails.get(taskTypeRepresentation).getDescription();\n }",
"public String getType() {\n return \"Task\";\n }",
"com.google.protobuf.ByteString\n getTaskIdBytes();",
"public abstract String[] formatTask();",
"public void saveTasks() {\n try {\n BufferedWriter taskWriter = new BufferedWriter(new FileWriter(path));\n String tasks = \"\";\n for (Task task : TaskList.getTaskLists()) {\n tasks += task.toSaveString() + \"\\n\";\n }\n taskWriter.write(tasks);\n taskWriter.close();\n } catch (IOException e) {\n System.out.println(\"Sorry Boss, \" + e.getMessage());\n }\n }",
"public String getTaskId() {\n return taskId;\n }",
"public String getTaskId() {\n return taskId;\n }",
"void saveTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<Void> callback );",
"public String getSerialisedToDo() {\n\t\tString placeholder = \"placeholder\";\n\t\treturn placeholder;\n\t}",
"public String getSaveString() {\n try {\n Node node = getSaveNode();\n\n StringWriter writer = new StringWriter();\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n transformer.setOutputProperty(OutputKeys.INDENT, \"yes\");\n transformer.transform(new DOMSource(node), new StreamResult(writer));\n return writer.toString();\n }\n catch (TransformerConfigurationException e) {\n throw new RuntimeException(e);\n }\n catch (TransformerException e) {\n throw new RuntimeException(e);\n }\n }",
"public String getType() {\n return theTaskType ;\n }",
"String addTask(Task task);",
"public String get_task_title()\n {\n return task_title;\n }",
"Object getTaskId();",
"public String getTaskWithoutType() {\n String out = \"\";\n for (int i = 1; i < commandSeparate.length; i++) {\n out += i == commandSeparate.length - 1\n ? commandSeparate[i] : commandSeparate[i] + \" \";\n }\n return out;\n }",
"public static String getTaskName1(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName\", \"click to edit\");\n }",
"@Override\n public String toString()\n {\n\n // IF TASK IS MARKED AS COMPLETE\n if(task_completion_boolean)\n {\n // IF THERE'S NO TASK DESCRIPTION\n if(task_description.isBlank() || task_description.equals(null))\n {\n return \"*** \" + String.format(\"[%s] %s\", task_due_date, task_title);\n } // END if\n\n return \"*** \" + String.format(\"[%s] %s | %s\", task_due_date, task_title, task_description);\n } // END if\n\n /***********************************************************/\n\n // OTHERWISE, TASK IS NOT COMPLETE\n else\n {\n // IF THERE'S NO TASK DESCRIPTION\n if(task_description.isBlank() || task_description.equals(null))\n {\n return String.format(\"[%s] %s\", task_due_date, task_title);\n } // END if\n\n return String.format(\"[%s] %s | %s\", task_due_date, task_title, task_description);\n } // END else\n\n }",
"public static String getTaskName3(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName3\", \"click to edit\");\n }",
"public String getEntrySave() {\r\n return \"-\"+getId() + \"|\" + getFavorite() + \"|\" + getSubject() + \"|\" + date(4) + \"|\" + price.getFull() + \"|\" + getNotes();\r\n }",
"public String toString() {\n String s = \"\";\n for (int i = 0; i < size; i++) {\n s += taskarr[i].gettitle() + \", \" + taskarr[i].getassignedTo()\n + \", \" + taskarr[i].gettimetocomplete()\n + \", \" + taskarr[i].getImportant() + \", \" + taskarr[i].getUrgent()\n + \", \" + taskarr[i].getStatus() + \"\\n\";\n }\n return s;\n }",
"public void save(TaskList tasks) throws DukeException {\n PrintWriter writer = null;\n try {\n writer = getStorageFile();\n\n for (Task task : tasks.getTaskList()) {\n String output = StorageSerializer.serialize(task);\n writer.write(output);\n }\n } catch (IOException e) {\n throw new IoDukeException(\"Error opening file for saving\");\n } finally {\n if (writer != null) {\n writer.close();\n }\n }\n }",
"public void tostring(){\n\t\tfor(int i=0;i<taskList.size();i++){\n\t\t\tSystem.out.println(taskList.get(i).getPrint()); \n\t\t}\n\t}",
"public String getTask(int position) {\n HashMap<String, String> map = list.get(position);\n return map.get(TASK_COLUMN);\n }",
"@Override\n public void saveTask(TaskEntity task) {\n this.save(task);\n }",
"@Override\n public String saveAsString() {\n return \"D\" + super.saveAsString() + \" | \" + by;\n }",
"@Test\n\tpublic void testToString() {\n\t\tSystem.out.println(\"toString\");\n\t\tDeleteTask task = new DeleteTask(1);\n\t\tassertEquals(task.toString(), \"DeleteTask -- [filePath=1]\");\n\t}",
"@Override\n public String toString()\n {\n if(!isActive()) return \"Task \" + title + \" is inactive\";\n else\n {\n if(!isRepeated()) return \"Task \" + title + \" at \" + time;\n else return \"Task \" + title + \" from \" + start + \" to \" + end + \" every \" + repeat + \" seconds\";\n }\n }",
"public String getTaskType() {\n return taskType;\n }",
"String savedFile();",
"@Override\n public String toEncodedString() {\n int completeBinary = 0;\n if (this.isComplete) {\n completeBinary = 1;\n }\n return \"D\" + \" | \" + completeBinary + \" | \" + this.taskDetails + \" | \"\n + this.date.format(inputDateFormat);\n }",
"public String getTaskDefinition() {\n return this.taskDefinition;\n }",
"public String getTaskDefinition() {\n return this.taskDefinition;\n }",
"public java.lang.Object getTaskID() {\n return taskID;\n }",
"@Override\n public String getTaskType() {\n return this.taskType;\n }",
"public String getTaskType() { return \"?\"; }",
"public String getTaskId() {\n\t\treturn taskId;\n\t}",
"public TaskName getTaskName() {\n return this.taskName;\n }",
"public static String getTaskName5(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName5\", \"click to edit\");\n }",
"public static String getTaskName6(Context context) {\n SharedPreferences prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", 0);\n return prefs.getString(\"taskName6\", \"click to edit\");\n }"
] |
[
"0.69254184",
"0.6696688",
"0.6686061",
"0.66622126",
"0.66560644",
"0.6640554",
"0.6640554",
"0.65765357",
"0.65318143",
"0.6421899",
"0.6385859",
"0.6355016",
"0.63533974",
"0.63461614",
"0.6340325",
"0.6332824",
"0.6332824",
"0.63093877",
"0.62977076",
"0.62836146",
"0.62699956",
"0.6263927",
"0.6207584",
"0.6205306",
"0.6203178",
"0.61999965",
"0.61812526",
"0.6168071",
"0.6153135",
"0.61448336",
"0.6124364",
"0.61106175",
"0.60962296",
"0.60831183",
"0.60649276",
"0.60649276",
"0.60649276",
"0.60649276",
"0.6060572",
"0.6052396",
"0.6046725",
"0.60444313",
"0.6037239",
"0.6035589",
"0.60201514",
"0.60162395",
"0.5976048",
"0.59750205",
"0.59750205",
"0.59740484",
"0.5965705",
"0.5965023",
"0.5950411",
"0.5935606",
"0.59280735",
"0.590158",
"0.590158",
"0.5889985",
"0.58433104",
"0.5836844",
"0.5835065",
"0.58137846",
"0.5810019",
"0.5808642",
"0.5791031",
"0.57857156",
"0.57754135",
"0.57754135",
"0.5767777",
"0.57670337",
"0.5763599",
"0.5757775",
"0.5753023",
"0.57477945",
"0.57459456",
"0.573476",
"0.5723951",
"0.5723649",
"0.5719107",
"0.5711424",
"0.56823665",
"0.56729066",
"0.5671061",
"0.5670522",
"0.56679434",
"0.5661312",
"0.56589323",
"0.56485206",
"0.5646618",
"0.56344956",
"0.56055254",
"0.5602021",
"0.5602021",
"0.5597034",
"0.5591354",
"0.55775577",
"0.55727714",
"0.5566334",
"0.55478376",
"0.5531634"
] |
0.63800806
|
11
|
Sets the currently filtered (visible) comments
|
public void setFilteredComments(Set<Comment> filteredComments);
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"public void setComments(String newValue);",
"@Override\n @IcalProperty(pindex = PropertyInfoIndex.COMMENT,\n adderName = \"comment\",\n analyzed = true,\n eventProperty = true,\n todoProperty = true,\n journalProperty = true,\n freeBusyProperty = true,\n timezoneProperty = true)\n public void setComments(final Set<BwString> val) {\n comments = val;\n }",
"public void setComments(String comments) {\n _comments = comments;\n }",
"public void setComments(java.lang.String value);",
"public void setComments(String comments) {\r\n this.comments = comments;\r\n }",
"public void setComments(String comments) {\n this.comments = comments;\n }",
"public void setComments (java.lang.String comments) {\r\n\t\tthis.comments = comments;\r\n\t}",
"public void setComments(String comment) {\n\t\tthis.comments = comment;\n\t}",
"private void setCommentsCount(int value) {\n \n commentsCount_ = value;\n }",
"public void setComments(String comments) {\n\t\tthis.comments = comments;\n\t}",
"public void setComments(String comments) {\n\t\tthis.comments = comments;\n\t}",
"public void setComment(String new_comment){\n this.comment=new_comment;\n }",
"public Builder setComments(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n comments_ = value;\n onChanged();\n return this;\n }",
"public void setComments (java.lang.String comments) {\n\t\tthis.comments = comments;\n\t}",
"public void setComments(java.lang.String value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"@Override\n public void setComments(java.lang.String comments) {\n _entityCustomer.setComments(comments);\n }",
"public void setComment(String comment);",
"public void setComment(String comment);",
"public void setCommentsList(EList newValue);",
"public void setCommentsList(EList newValue);",
"public void setComments( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), COMMENTS, value);\r\n\t}",
"boolean isSetComments();",
"void setComments(org.hl7.fhir.String comments);",
"public void setComments(String value) {\n setAttributeInternal(COMMENTS, value);\n }",
"private void setComments(HttpServletRequest request, String inSection) throws Exception {\n \n String theCommentsId = request.getParameter(Constants.Parameters.COMMENTSID);\n \n CommentsManager theCommentsManager = (CommentsManager) getBean(\"commentsManager\");\n \n System.out.println(\"Comments id: \" + theCommentsId);\n List theCommentsList = new ArrayList();\n if (theCommentsId != null && theCommentsId.length() > 0) {\n Comments theComments = theCommentsManager.get(theCommentsId);\n if (theComments != null) {\n System.out.println(\"Found a comment: \" + theComments.getRemark());\n theCommentsList.add(theComments);\n }\n }\n \n // Get all comments that are either approved or owned by this user\n else {\n PersonManager thePersonManager = (PersonManager) getBean(\"personManager\");\n Person theCurrentUser = thePersonManager.getByUsername((String) request.getSession().getAttribute(\n Constants.CURRENTUSER));\n \n AnimalModel theAnimalModel = (AnimalModel) request.getSession().getAttribute(Constants.ANIMALMODEL);\n \n theCommentsList = theCommentsManager.getAllBySection(inSection, theCurrentUser, theAnimalModel);\n }\n \n request.setAttribute(Constants.Parameters.COMMENTSLIST, theCommentsList);\n }",
"private void setDisableComment(int value) {\n \n disableComment_ = value;\n }",
"public void setCommento(Set<Commento> aCommento) {\n commento = aCommento;\n }",
"public List<Comment> showComment() {\n\t\treturn cdi.showComment();\n\t}",
"public void setComment(String c) {\n comment = c ;\n }",
"private void applyComment()\n {\n Map<String, GWikiArtefakt<?>> map = new HashMap<String, GWikiArtefakt<?>>();\n page.collectParts(map);\n GWikiArtefakt<?> artefakt = map.get(\"ChangeComment\");\n if (artefakt instanceof GWikiChangeCommentArtefakt == false) {\n return;\n }\n\n GWikiChangeCommentArtefakt commentArtefakt = (GWikiChangeCommentArtefakt) artefakt;\n String oldText = commentArtefakt.getStorageData();\n String ntext;\n String uname = wikiContext.getWikiWeb().getAuthorization().getCurrentUserName(wikiContext);\n int prevVersion = page.getElementInfo().getProps().getIntValue(GWikiPropKeys.VERSION, 0);\n if (StringUtils.isNotBlank(comment) == true) {\n Date now = new Date();\n ntext = \"{changecomment:modifiedBy=\"\n + uname\n + \"|modifiedAt=\"\n + GWikiProps.date2string(now)\n + \"|version=\"\n + (prevVersion + 1)\n + \"}\\n\"\n + comment\n + \"\\n{changecomment}\\n\"\n + StringUtils.defaultString(oldText);\n } else {\n ntext = oldText;\n }\n ntext = StringUtils.trimToNull(ntext);\n commentArtefakt.setStorageData(ntext);\n }",
"public void setComments(String comments) {\n this.comments = comments == null ? null : comments.trim();\n }",
"public void setZCOMMENTS(java.lang.String value)\n {\n if ((__ZCOMMENTS == null) != (value == null) || (value != null && ! value.equals(__ZCOMMENTS)))\n {\n _isDirty = true;\n }\n __ZCOMMENTS = value;\n }",
"@PropertySetter(role = COMMENT)\n\t<E extends CtElement> E setComments(List<CtComment> comments);",
"public void setCommentId(int commentId);",
"public void addToCommentsList(Object newValue);",
"public void addToCommentsList(Object newValue);",
"public void setComment(final String newComment) {\n this.comment = newComment;\n }",
"@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t * \n\t * @param c\n\t */\n\tpublic void setComment(String c) {\n\t}",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setCommentsEnabled(boolean commentsEnabled) {\n\t\tthis.commentsEnabled = commentsEnabled;\n\t}",
"void displayAllComments();",
"public void setComment(String comment, int rating);",
"@SuppressWarnings(\"unused\")\n public Comment() {\n edited = false;\n }",
"public void setComment(String comment){\n this.comment = comment;\n }",
"public void setCommentReplaced(Boolean commentReplaced) {\n\t this.commentReplaced = commentReplaced;\n\t}",
"public Builder clearComments() {\n bitField0_ = (bitField0_ & ~0x00000001);\n comments_ = getDefaultInstance().getComments();\n onChanged();\n return this;\n }",
"@Override\n public void onRefresh() {\n mLayout.scrollToPosition(0);\n switch (mCommentListType) {\n case ALL_COMMENT:\n mCommentPresenter.requestCommentToMe(CommentsAPI.AUTHOR_FILTER_ALL);\n break;\n case FOLLOWING_COMMENT:\n mCommentPresenter.requestCommentToMe(CommentsAPI.AUTHOR_FILTER_ATTENTIONS);\n break;\n case MINE:\n mCommentPresenter.requestCommentByMe();\n break;\n }\n }",
"public Builder setCommentsBytes(\n com.google.protobuf.ByteString value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000001;\n comments_ = value;\n onChanged();\n return this;\n }",
"public boolean visible_Comments_Field() {\r\n\t\treturn IsElementVisibleStatus(DefineSetup_Cmnts_txtBx);\r\n\t}",
"public void setCommentText(String commentText) {\n\t this.commentText = commentText;\n\t}",
"public Builder setComment(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000020;\n comment_ = value;\n onChanged();\n return this;\n }",
"public void setComments(String key, List<String> comments)\n {\n ArrayList<String> list = new ArrayList<String>(comments.size());\n list.addAll(comments);\n this.comments.put(key, list);\n if (!keys.contains(key)) keys.add(key);\n }",
"public void setComment(String comment)\n {\n this.comment = comment;\n }",
"public void showMyComments(){\n String nothing=null;\n }",
"public void setCommentCount(Integer commentCount) {\n this.commentCount = commentCount;\n }",
"public void setFiltered(boolean filtered) {\n this.filtered = filtered;\n }",
"public Builder setCommentsCount(int value) {\n copyOnWrite();\n instance.setCommentsCount(value);\n return this;\n }",
"public void removeAllComments() {\r\n\t\tBase.removeAll(this.model, this.getResource(), COMMENTS);\r\n\t}",
"public final void setComment(final String comment) {\n this.comment = comment;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"private void updateLiveComment(String comment) {\n MainActivity mainActivity = (MainActivity) this.getContext();\n mainActivity.setLiveComment(comment);\n }",
"@Test\n public void testSetComments_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String comments = \"\";\n\n fixture.setComments(comments);\n\n }",
"public void setAcCommentsStatus(Integer acCommentsStatus) {\n this.acCommentsStatus = acCommentsStatus;\n }",
"void setCheckinComment(String comment);",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"public void setComment(String comment) {\n this.comment = comment;\n }",
"@Override\n\t/**\n\t * does nothing because comments are disabled for classes \n\t */\n\tpublic void setItemHavingComment() {\n\t}",
"public ElementDefinitionDt setComments(StringDt theValue) {\n\t\tmyComments = theValue;\n\t\treturn this;\n\t}",
"public void removeToCommentsList(Object newValue);",
"public void removeToCommentsList(Object newValue);",
"private void updateComments() {\r\n if(data == null || (data != null && data.size() == 0)) {\r\n //No Rows to update Comments.\r\n return ;\r\n }\r\n if(!removing){\r\n if(lastSelectedRow != -1 && lastSelectedRow != deletingRow) {\r\n BudgetSubAwardBean prevBudgetSubAwardBean = (BudgetSubAwardBean)data.get(lastSelectedRow);\r\n if((prevBudgetSubAwardBean.getComments() == null && subAwardBudget.txtArComments.getText().trim().length() > 0)\r\n || (prevBudgetSubAwardBean.getComments() != null && !prevBudgetSubAwardBean.getComments().equals(subAwardBudget.txtArComments.getText().trim()))) {\r\n prevBudgetSubAwardBean.setComments(subAwardBudget.txtArComments.getText().trim());\r\n if(prevBudgetSubAwardBean.getAcType() == null) {\r\n prevBudgetSubAwardBean.setAcType(TypeConstants.UPDATE_RECORD);\r\n }\r\n }//End If comment updated\r\n }//End if Not Deleting Row\r\n }//End if not removing\r\n }",
"public void setComment(java.lang.String comment) {\r\n this.comment = comment;\r\n }",
"@Override\r\n\tpublic void setCommentsAtBdNoQa(BoardQaComments bdQaCom, MemberVo userKey, Integer bdNoQa, String userIp) {\n\t\tthis.boardQaCommentsDao.writeCommentsAtBdNoQa(bdQaCom, userKey, bdNoQa, userIp);\t// 댓글 쓰기\r\n\t}",
"public void setCommentList(List<FreeTextType> list) {\n commentList = list;\n }",
"public List<Comment> getComments() {\n fetchComments();\n return Collections.unmodifiableList(comments);\n }",
"public final void editComment() {\n EditDialog newInstance = EditDialog.newInstance(this.mAlbumItem);\n newInstance.setViewModel(this.viewModel);\n newInstance.show(this.mFragmentManager, (String) null);\n }",
"@Override\r\n\tpublic void setWholeComment(String currentComment) {\n\t\t\r\n\t}",
"@Override\n\tpublic void setComment(String comment) {\n\t\tmodel.setComment(comment);\n\t}",
"public List<Comment> getComments() {\n return this.comments;\n }",
"public List<CommentInfo> getComments() {\n \treturn this.comments;\n }",
"public void setCommentaire(String newCommentaire) {\n\t\tthis.commentaire = newCommentaire;\n\t}",
"private void clearDisableComment() {\n \n disableComment_ = 0;\n }",
"public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}",
"public void setComment(String comment) {\n\t\tthis.comment = comment;\n\t}",
"public void setAcCommentsTo(Integer acCommentsTo) {\n this.acCommentsTo = acCommentsTo;\n }",
"private void initCommentAdapter() {\n adapter = new CommentsAdapter(mContext, new CommentsAdapter.OnDeletingCommentListener() {\n @Override\n public void OnDeleteComment() {\n post_comments_count--;\n if (index != -1)\n posts.get(index).setPost_comments_count(post_comments_count);\n mCommentCount.setText(post_comments_count + \"\");\n }\n });\n recyclerView.setAdapter(adapter);\n\n adapter.post_id=post_id;\n if (current_userId == post_userId)\n adapter.is_user_Post = true;\n else\n adapter.is_user_Post = false;\n }",
"public void setCommentCount(Short commentCount) {\n this.commentCount = commentCount;\n }",
"public void setComment(java.lang.String comment) {\n this.comment = comment;\n }",
"public void setComment(java.lang.String comment) {\n this.comment = comment;\n }",
"public void setComment(java.lang.String comment) {\n this.comment = comment;\n }",
"public static void setComments( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, COMMENTS, value);\r\n\t}",
"public ElementDefinitionDt setComments( String theString) {\n\t\tmyComments = new StringDt(theString); \n\t\treturn this; \n\t}",
"public List<CommentDTO> getComments() {\n\t\treturn comments;\n\t}",
"public boolean fetchComments() {\n return fetchComments(false);\n }",
"public String getComments() {\n return comments;\n }",
"private void clearCommentsCount() {\n \n commentsCount_ = 0;\n }",
"public String getComments() {\n\t\treturn comments;\n\t}",
"void unsetComments();",
"public void setComment(String path, String comment) {\n if (comment == null)\n configComments.remove(path);\n else\n configComments.put(path, comment);\n }",
"public String getComments() {\r\n return this.comments;\r\n }"
] |
[
"0.6801237",
"0.64533",
"0.63636494",
"0.6298191",
"0.62926817",
"0.61954844",
"0.6189098",
"0.6166401",
"0.61663496",
"0.6151879",
"0.6151879",
"0.606259",
"0.60409284",
"0.6036772",
"0.6012392",
"0.59671396",
"0.5939643",
"0.5939643",
"0.59382105",
"0.59382105",
"0.5888116",
"0.58824354",
"0.58629125",
"0.5814734",
"0.5800177",
"0.5779815",
"0.5779416",
"0.5765935",
"0.5756728",
"0.57477885",
"0.56921196",
"0.5668562",
"0.5633256",
"0.5602712",
"0.5580895",
"0.5580895",
"0.55796427",
"0.5557275",
"0.555234",
"0.5532486",
"0.55190814",
"0.5502431",
"0.5485051",
"0.5479296",
"0.5469895",
"0.5450697",
"0.5443047",
"0.54336196",
"0.54229987",
"0.5400176",
"0.5393921",
"0.5391895",
"0.5379972",
"0.5375815",
"0.5367272",
"0.5357239",
"0.5345653",
"0.53450495",
"0.533726",
"0.5330233",
"0.53192717",
"0.53129625",
"0.52917725",
"0.5287636",
"0.52633965",
"0.52633965",
"0.5260529",
"0.52578455",
"0.52436495",
"0.52436495",
"0.5238515",
"0.5237378",
"0.52268946",
"0.5223435",
"0.5222613",
"0.5215254",
"0.5212361",
"0.5205454",
"0.52049506",
"0.5191665",
"0.518535",
"0.5177771",
"0.51748306",
"0.51748306",
"0.51703614",
"0.51673466",
"0.516036",
"0.51590174",
"0.51590174",
"0.51590174",
"0.51504594",
"0.51447886",
"0.51290363",
"0.5122449",
"0.51171434",
"0.51159304",
"0.5104593",
"0.51041096",
"0.51026475",
"0.51012945"
] |
0.77580816
|
0
|
1 charger dans une table temporaire
|
@Override
public void load(String filename, DatasourceSchema datasourceSchema)
throws BigQueryLoaderException {
GcsFileToBqTableLoader gcsFileToBqTableLoader = new GcsFileToBqTableLoader(
bigQueryRepository, filename, datasourceSchema);
gcsFileToBqTableLoader.load();
// 2- crée la table si elle n'existe pas
if (bigQueryRepository.tableExists(datasourceSchema.getTableId())) {
LOGGER.info("Table " + datasourceSchema.getFullTableName() + " already exists");
} else {
try {
bigQueryRepository
.runDDLQuery("CREATE TABLE " + datasourceSchema.getFullTableName() + " AS "
+ "SELECT *, CURRENT_DATETIME() AS load_date_time FROM " + datasourceSchema
.getFullTableTmpName() + " LIMIT 0");
} catch (Exception e) {
throw new BigQueryLoaderException(
"Cannot create table " + datasourceSchema.getFullTableTmpName(), e);
}
}
// 3- déverse tout la table cible avec le champ load date time
try {
bigQueryRepository.runDDLQuery("INSERT INTO `" + datasourceSchema.getFullTableName() + "` "
+ "SELECT *, CURRENT_DATETIME() AS load_date_time FROM `" + datasourceSchema
.getFullTableTmpName() + "`");
} catch (Exception e) {
throw new BigQueryLoaderException(
"Cannot insert from " + datasourceSchema.getFullTableTmpName()
+ " into destination table " + datasourceSchema.getFullTableName(), e);
}
// 4- drop la table temporaire
bigQueryRepository.dropTable(datasourceSchema.getTmpTableId());
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"Tablero consultarTablero();",
"public void preencherTabela(){\n imagemEnunciado.setImage(imageDefault);\n pergunta.setImagemEnunciado(caminho);\n imagemResposta.setImage(imageDefault);\n pergunta.setImagemResposta(caminho);\n ///////////////////////////////\n perguntas = dao.read();\n if(perguntas != null){\n perguntasFormatadas = FXCollections.observableList(perguntas);\n\n tablePerguntas.setItems(perguntasFormatadas);\n }\n \n }",
"private EstabelecimentoTable() {\n\t\t\t}",
"TableFull createTableFull();",
"private void loadTable() {\n model.getDataVector().removeAllElements();\n model.fireTableDataChanged();\n try {\n String sql = \"select * from tb_mahasiswa\";\n Statement n = a.createStatement();\n ResultSet rs = n.executeQuery(sql);\n while (rs.next()) {\n Object[] o = new Object[6];\n o[0] = rs.getString(\"id_mahasiswa\");\n o[1] = rs.getString(\"nama\");\n o[2] = rs.getString(\"tempat\");\n o[3] = rs.getString(\"waktu\");\n o[4] = rs.getString(\"status\");\n model.addRow(o);\n }\n } catch (Exception e) {\n }\n }",
"protected abstract void initialiseTable();",
"public void initTable();",
"public void createTable() {\n try {\n tableLayout = findViewById(R.id.tabla);\n tb = new TableDinamic(tableLayout, getApplicationContext(), \"cargarDetalle\", clc, cap_1, cap_2, cap_ct, txtidReg, txtId, txtBloque, txtVariedad);\n tableLayout.removeAllViews();\n tb.addHeader(header);\n tb.addData(cargarTabla());\n tb.backgroundHeader(\n Color.parseColor(\"#20C0FF\")\n );\n tb.backgroundData(\n Color.parseColor(\"#FFFFFF\"),\n Color.parseColor(\"#81F0EDED\")\n );\n } catch (Exception e) {\n Toast.makeText(this, \"Error de la table: \" + e.toString(), Toast.LENGTH_LONG).show();\n }\n }",
"void prepareTables();",
"public void llenarTabla(){\n pedidoMatDao.llenarTabla();\n }",
"Table createTable();",
"private void refTable() {\n try {\n String s = \"select * from stock\";\n pstm = con.prepareStatement(s);\n res = pstm.executeQuery(s);\n table.setModel(DbUtils.resultSetToTableModel(res));\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"There Is No Data In Server\");\n }\n }",
"@Override\n\tpublic String ifTable(String table) {\n\t\treturn \"select 1 from user_tables where table_name ='\"+table+\"'\";\n\t}",
"private void UpdateTable() {\n\t\t\t\t\n\t\t\t}",
"Table getTable();",
"TableId table();",
"void initTable();",
"TableInstance createTableInstance();",
"public static void viewtable() {\r\n\t\tt.dibuixa(table);\r\n\t}",
"private void statsTable() {\n try (Connection connection = hikari.getConnection()) {\n try (PreparedStatement statement = connection.prepareStatement(\"CREATE TABLE IF NOT EXISTS `\" + TABLE_STATS + \"` \" +\n \"(id INT NOT NULL AUTO_INCREMENT UNIQUE, \" +\n \"uuid varchar(255) PRIMARY KEY, \" +\n \"name varchar(255), \" +\n \"kitSelected varchar(255), \" +\n \"points INT, \" +\n \"kills INT, \" +\n \"deaths INT, \" +\n \"killstreaks INT, \" +\n \"currentKillStreak INT, \" +\n \"inGame BOOLEAN)\")) {\n statement.execute();\n statement.close();\n connection.close();\n }\n } catch (SQLException e) {\n LogHandler.getHandler().logException(\"TableCreator:statsTable\", e);\n }\n }",
"@Override\n\tpublic Long totalRegistrosTabela(String table) throws Exception {\n\t\treturn null;\n\t}",
"boolean createTable();",
"public TempTable() {\r\n\t\t\tsuper();\r\n\t\t\tthis.clauses = new ArrayList<TempTableHeaderCell>();\r\n\t\t}",
"public void doCreateTable();",
"@Test(timeout = 4000)\n public void test39() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\" WHERE \");\n String string0 = SQLUtil.typeAndName(defaultDBTable0);\n assertEquals(\"table WHERE \", string0);\n }",
"private void preencherTabela() {\n\t\tList<Cidade> listCidade;\n\t\tCidadeDAO cidadeDAO;\n\t\tObservableList<Cidade> oListCidade;\n\n\t\t// Determina os atributos que irão preencher as colunas\n\t\tcolCidade.setCellValueFactory(new PropertyValueFactory<>(\"nomeCidades\"));\n\t\tcolEstado.setCellValueFactory(new PropertyValueFactory<>(\"nomeEstado\"));\n\t\tcolSigla.setCellValueFactory(new PropertyValueFactory<>(\"siglaEstado\"));\n\t\tcolCodigoCidade.setCellValueFactory(new PropertyValueFactory<>(\"idCidade\"));\n\t\tcolIdEstado.setCellValueFactory(new PropertyValueFactory<>(\"idEstado\"));\n\n\t\t// Instancia a lista de cidades e a DAO\n\t\tlistCidade = new ArrayList<Cidade>();\n\t\tcidadeDAO = new CidadeDAO();\n\n\t\t// Chama o metodo para selecionar todas as cidades e atribuir a lista\n\t\tlistCidade = cidadeDAO.selecionar();\n\n\t\t// Converte a lista de cidades em observablearray\n\t\toListCidade = FXCollections.observableArrayList(listCidade);\n\n\t\t// Adiciona a lista na tabela\n\t\ttblCidades.setItems(oListCidade);\n\t}",
"private void tableLoad() {\n try{\n String sql=\"SELECT * FROM salary\";\n pst = conn.prepareStatement(sql);\n rs = pst.executeQuery();\n \n table1.setModel(DbUtils.resultSetToTableModel(rs));\n \n \n }\n catch(SQLException e){\n \n }\n }",
"TABLE createTABLE();",
"@Test\n public void create1Test1() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.create1(false,false,false,false,false,false,false);\n Servizio servizio = manager.retriveById(5);\n assertNotNull(servizio,\"Should return true if create Servizio\");\n }",
"public void run() {\r\n\r\n SQLRow rowPrefCompte = tablePrefCompte.getRow(2);\r\n this.rowPrefCompteVals.loadAbsolutelyAll(rowPrefCompte);\r\n // TVA Coll\r\n int idCompteTVACol = this.rowPrefCompteVals.getInt(\"ID_COMPTE_PCE_TVA_VENTE\");\r\n if (idCompteTVACol <= 1) {\r\n String compte;\r\n try {\r\n compte = ComptePCESQLElement.getComptePceDefault(\"TVACollectee\");\r\n idCompteTVACol = ComptePCESQLElement.getId(compte);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n SQLRow rowCompteTVACol = tableCompte.getRow(idCompteTVACol);\r\n\r\n // TVA Ded\r\n int idCompteTVADed = this.rowPrefCompteVals.getInt(\"ID_COMPTE_PCE_TVA_ACHAT\");\r\n if (idCompteTVADed <= 1) {\r\n try {\r\n String compte = ComptePCESQLElement.getComptePceDefault(\"TVADeductible\");\r\n idCompteTVADed = ComptePCESQLElement.getId(compte);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n SQLRow rowCompteTVADed = tableCompte.getRow(idCompteTVADed);\r\n\r\n // TVA intracomm\r\n int idCompteTVAIntra = this.rowPrefCompteVals.getInt(\"ID_COMPTE_PCE_TVA_INTRA\");\r\n if (idCompteTVAIntra <= 1) {\r\n try {\r\n String compte = ComptePCESQLElement.getComptePceDefault(\"TVAIntraComm\");\r\n idCompteTVAIntra = ComptePCESQLElement.getId(compte);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n SQLRow rowCompteTVAIntra = tableCompte.getRow(idCompteTVAIntra);\r\n\r\n // Achats intracomm\r\n int idCompteAchatsIntra = this.rowPrefCompteVals.getInt(\"ID_COMPTE_PCE_ACHAT_INTRA\");\r\n if (idCompteAchatsIntra <= 1) {\r\n try {\r\n String compte = ComptePCESQLElement.getComptePceDefault(\"AchatsIntra\");\r\n idCompteAchatsIntra = ComptePCESQLElement.getId(compte);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n SQLRow rowCompteAchatIntra = tableCompte.getRow(idCompteAchatsIntra);\r\n\r\n // TVA immo\r\n int idCompteTVAImmo = this.rowPrefCompteVals.getInt(\"ID_COMPTE_PCE_TVA_IMMO\");\r\n if (idCompteTVAImmo <= 1) {\r\n try {\r\n String compte = ComptePCESQLElement.getComptePceDefault(\"TVAImmo\");\r\n idCompteTVAImmo = ComptePCESQLElement.getId(compte);\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n SQLRow rowCompteTVAImmo = tableCompte.getRow(idCompteTVAImmo);\r\n\r\n PdfGenerator_3310 p = new PdfGenerator_3310();\r\n this.m = new HashMap<String, Object>();\r\n\r\n long v010 = -this.sommeCompte.soldeCompte(70, 70, true, this.dateDebut, this.dateFin);\r\n this.m.put(\"A01\", GestionDevise.round(v010));\r\n\r\n // long vA02 = this.sommeCompte.soldeCompte(70, 70, true, this.dateDebut, this.dateFin);\r\n this.m.put(\"A02\", \"\");\r\n long tvaIntra = -this.sommeCompte.sommeCompteFils(rowCompteTVAIntra.getString(\"NUMERO\"), this.dateDebut, this.dateFin);\r\n long achatsIntra = this.sommeCompte.sommeCompteFils(rowCompteAchatIntra.getString(\"NUMERO\"), this.dateDebut, this.dateFin);\r\n this.m.put(\"A03\", GestionDevise.round(achatsIntra));\r\n this.m.put(\"A04\", \"\");\r\n this.m.put(\"A05\", \"\");\r\n this.m.put(\"A06\", \"\");\r\n this.m.put(\"A07\", \"\");\r\n\r\n long tvaCol = -this.sommeCompte.sommeCompteFils(rowCompteTVACol.getString(\"NUMERO\"), this.dateDebut, this.dateFin) + tvaIntra;\r\n this.m.put(\"B08\", GestionDevise.round(tvaCol));\r\n this.m.put(\"B08HT\", GestionDevise.round(Math.round(tvaCol / 0.196)));\r\n this.m.put(\"B09\", \"\");\r\n this.m.put(\"B09HT\", \"\");\r\n this.m.put(\"B09B\", \"\");\r\n this.m.put(\"B09BHT\", \"\");\r\n\r\n this.m.put(\"B10\", \"\");\r\n this.m.put(\"B10HT\", \"\");\r\n this.m.put(\"B11\", \"\");\r\n this.m.put(\"B11HT\", \"\");\r\n this.m.put(\"B12\", \"\");\r\n this.m.put(\"B12HT\", \"\");\r\n this.m.put(\"B13\", \"\");\r\n this.m.put(\"B13HT\", \"\");\r\n this.m.put(\"B14\", \"\");\r\n this.m.put(\"B14HT\", \"\");\r\n\r\n this.m.put(\"B15\", \"\");\r\n this.m.put(\"B16\", GestionDevise.round(tvaCol));\r\n this.m.put(\"B17\", GestionDevise.round(tvaIntra));\r\n this.m.put(\"B18\", \"\");\r\n final String numeroCptTVAImmo = rowCompteTVAImmo.getString(\"NUMERO\");\r\n long tvaImmo = this.sommeCompte.sommeCompteFils(numeroCptTVAImmo, this.dateDebut, this.dateFin);\r\n this.m.put(\"B19\", GestionDevise.round(tvaImmo));\r\n\r\n final String numeroCptTVADed = rowCompteTVADed.getString(\"NUMERO\");\r\n long tvaAutre = this.sommeCompte.sommeCompteFils(numeroCptTVADed, this.dateDebut, this.dateFin);\r\n\r\n // Déduction de la tva sur immo si elle fait partie des sous comptes\r\n if (numeroCptTVAImmo.startsWith(numeroCptTVADed)) {\r\n tvaAutre -= tvaImmo;\r\n }\r\n\r\n this.m.put(\"B20\", GestionDevise.round(tvaAutre));\r\n this.m.put(\"B21\", \"\");\r\n this.m.put(\"B22\", \"\");\r\n this.m.put(\"B23\", \"\");\r\n long tvaDed = tvaAutre + tvaImmo;\r\n this.m.put(\"B24\", GestionDevise.round(tvaDed));\r\n\r\n this.m.put(\"C25\", \"\");\r\n this.m.put(\"C26\", \"\");\r\n this.m.put(\"C27\", \"\");\r\n this.m.put(\"C28\", GestionDevise.round(tvaCol - tvaDed));\r\n this.m.put(\"C29\", \"\");\r\n this.m.put(\"C30\", \"\");\r\n this.m.put(\"C31\", \"\");\r\n this.m.put(\"C32\", GestionDevise.round(tvaCol - tvaDed));\r\n\r\n p.generateFrom(this.m);\r\n\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n Map3310.this.bar.setValue(95);\r\n }\r\n });\r\n\r\n SwingUtilities.invokeLater(new Runnable() {\r\n public void run() {\r\n\r\n String file = TemplateNXProps.getInstance().getStringProperty(\"Location3310PDF\") + File.separator + String.valueOf(Calendar.getInstance().get(Calendar.YEAR)) + File.separator\r\n + \"result_3310_2.pdf\";\r\n System.err.println(file);\r\n File f = new File(file);\r\n Gestion.openPDF(f);\r\n Map3310.this.bar.setValue(100);\r\n }\r\n });\r\n\r\n }",
"public void prepareTable() {\n \tthis.table = new Tape(this.height,this.width,2,this.map);\n }",
"protected void dataTableleibie(int i) {\n\t\r\n}",
"public void preencherTabelaResultado() {\n\t\tArrayList<Cliente> lista = Fachada.getInstance().pesquisarCliente(txtNome.getText());\n\t\tDefaultTableModel modelo = (DefaultTableModel) tabelaResultado.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\n\t\tfor (Cliente c : lista) {\n\t\t\tlinha[0] = c.getIdCliente();\n\t\t\tlinha[1] = c.getNome();\n\t\t\tlinha[2] = c.getTelefone().toString();\n\t\t\tif (c.isAptoAEmprestimos())\n\t\t\t\tlinha[3] = \"Apto\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"A devolver\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}",
"private void createTable() {\n\t\t// Tao dataModel & table \n\t\tdataModel = new DefaultTableModel(headers, 0);\n\t\ttable.setModel(dataModel);\n\t\t\n\t\tnapDuLieuChoBang();\n\t}",
"void LlenarModelo(){\n datos.addColumn(\"ID\");\n datos.addColumn(\"Descripcion\");\n datos.addColumn(\"Cantidad\");\n String []ingresar=new String[4];\n try {\n Connection con = Conexion.getConection();\n Statement estado = con.createStatement();\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo>=\" + SIGEPSA.IDOtrosPagosMin + \";\");\n //ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago ;\");\n ResultSet resultado = estado.executeQuery(\"SELECT * FROM pago where codigo<9 or codigo>10 and activo = 1;\");\n while(resultado.next()){\n ingresar[0]=String.valueOf((String)resultado.getObject(\"CODIGO\").toString());\n ingresar[1]=String.valueOf((String)resultado.getObject(\"DESCRIPCION\").toString());\n ingresar[2]=String.valueOf((String)resultado.getObject(\"CANTIDAD\").toString());\n datos.addRow(ingresar);\n }\n }catch (Exception ex) {\n \n }\n }",
"protected boolean createTable() {\n\t\t// --- 1. Dichiarazione della variabile per il risultato ---\n\t\tboolean result = false;\n\t\t// --- 2. Controlli preliminari sui dati in ingresso ---\n\t\t// n.d.\n\t\t// --- 3. Apertura della connessione ---\n\t\tConnection conn = getCurrentJDBCFactory().getConnection();\n\t\t// --- 4. Tentativo di accesso al db e impostazione del risultato ---\n\t\ttry {\n\t\t\t// --- a. Crea (se senza parametri) o prepara (se con parametri) lo statement\n\t\t\tStatement stmt = conn.createStatement();\n\t\t\t// --- b. Pulisci e imposta i parametri (se ve ne sono)\n\t\t\t// n.d.\n\t\t\t// --- c. Esegui l'azione sul database ed estrai il risultato (se atteso)\n\t\t\tstmt.execute(getCreate());\n\t\t\t// --- d. Cicla sul risultato (se presente) pe accedere ai valori di ogni sua tupla\n\t\t\t// n.d. Qui devo solo dire al chiamante che è andato tutto liscio\n\t\t\tresult = true;\n\t\t\t// --- e. Rilascia la struttura dati del risultato\n\t\t\t// n.d.\n\t\t\t// --- f. Rilascia la struttura dati dello statement\n\t\t\tstmt.close();\n\t\t}\n\t\t// --- 5. Gestione di eventuali eccezioni ---\n\t\tcatch (Exception e) {\n\t\t\tgetCurrentJDBCFactory().getLogger().debug(\"failed to create publisher table\",e);\n\t\t}\n\t\t// --- 6. Rilascio, SEMPRE E COMUNQUE, la connessione prima di restituire il controllo al chiamante\n\t\tfinally {\n\t\t\tgetCurrentJDBCFactory().releaseConnection(conn);\n\t\t}\n\t\t// --- 7. Restituzione del risultato (eventualmente di fallimento)\n\t\treturn result;\n\t}",
"Table getBaseTable();",
"public Table<Integer, Integer, String> getData();",
"public void clicTable(View v) {\n try {\n conteoTab ct = clc.get(tb.getIdTabla() - 1);\n\n if(ct.getEstado().equals(\"0\")) {\n String variedad = ct.getVariedad();\n String bloque = ct.getBloque();\n Long idSiembra = ct.getIdSiembra();\n String idSiempar = String.valueOf(idSiembra);\n\n long idReg = ct.getIdConteo();\n int cuadro = ct.getCuadro();\n int conteo1 = ct.getConteo1();\n int conteo4 = ct.getConteo4();\n int total = ct.getTotal();\n\n txtidReg.setText(\"idReg:\" + idReg);\n txtCuadro.setText(\"Cuadro: \" + cuadro);\n cap_1.setText(String.valueOf(conteo1));\n cap_2.setText(String.valueOf(conteo4));\n cap_ct.setText(String.valueOf(total));\n txtId.setText(\"Siembra: \" + idSiempar);\n txtVariedad.setText(\"Variedad: \" + variedad);\n txtBloque.setText(\"Bloque: \" + bloque);\n }else{\n Toast.makeText(this, \"No se puede cargar el registro por que ya ha sido enviado\", Toast.LENGTH_SHORT).show();\n }\n\n } catch (Exception E) {\n Toast.makeText(getApplicationContext(), \"No has seleccionado aún una fila \\n\" + E, Toast.LENGTH_LONG).show();\n }\n }",
"public void tabla_campos() {\n int rec = AgendarA.tblAgricultor.getSelectedRow();// devuelve un entero con la posicion de la seleccion en la tabla\n ccAgricultor = AgendarA.tblAgricultor.getValueAt(rec, 1).toString();\n crearModeloAgenda();\n }",
"public static boolean checkOrCreateTable(jsqlite.Database db, String tableName){\n\t\t\n\t\tif (db != null){\n\t\t\t\n\t String query = \"SELECT name FROM sqlite_master WHERE type='table' AND name='\"+tableName+\"'\";\n\n\t boolean found = false;\n\t try {\n\t Stmt stmt = db.prepare(query);\n\t if( stmt.step() ) {\n\t String nomeStr = stmt.column_string(0);\n\t found = true;\n\t Log.v(\"SPATIALITE_UTILS\", \"Found table: \"+nomeStr);\n\t }\n\t stmt.close();\n\t } catch (Exception e) {\n\t Log.e(\"SPATIALITE_UTILS\", Log.getStackTraceString(e));\n\t return false;\n\t }\n\n\t\t\tif(found){\n\t\t\t\treturn true;\n\t\t\t}else{\n\t\t\t\t// Table not found creating\n Log.v(\"SPATIALITE_UTILS\", \"Table \"+tableName+\" not found, creating..\");\n\t\t\t\t\n if(tableName.equalsIgnoreCase(\"punti_accumulo_data\")){\n\n \tString create_stmt = \"CREATE TABLE 'punti_accumulo_data' (\" +\n \t\t\t\"'PK_UID' INTEGER PRIMARY KEY AUTOINCREMENT, \" +\n \t\t\t\"'ORIGIN_ID' TEXT, \" +\n \t\t\t\"'DATA_SCHEDA' TEXT, \" +\n \t\t\t\"'DATA_AGG' TEXT, \" +\n \t\t\t\"'NOME_RILEVATORE' TEXT, \" +\n \t\t\t\"'COGNOME_RILEVATORE' TEXT, \" +\n \t\t\t\"'ENTE_RILEVATORE' TEXT, \" +\n \t\t\t\"'TIPOLOGIA_SEGNALAZIONE' TEXT, \" +\n \t\t\t\"'PROVENIENZA_SEGNALAZIONE' TEXT, \" +\n \t\t\t\"'CODICE_DISCARICA' TEXT, \" +\n \t\t\t\"'TIPOLOGIA_RIFIUTO' TEXT, \" +\n \t\t\t\"'COMUNE' TEXT, \" +\n \t\t\t\"'LOCALITA' TEXT, \" +\n \t\t\t\"'INDIRIZZO' TEXT, \" +\n \t\t\t\"'CIVICO' TEXT, \" +\n \t\t\t\"'PRESA_IN_CARICO' TEXT, \" +\n \t\t\t\"'EMAIL' TEXT, \" +\n \t\t\t\"'RIMOZIONE' TEXT, \" +\n \t\t\t\"'SEQUESTRO' TEXT, \" +\n \t\t\t\"'RESPONSABILE_ABBANDONO' TEXT, \" +\n \t\t\t\"'QUANTITA_PRESUNTA' NUMERIC);\";\n\n \tString add_geom_stmt = \"SELECT AddGeometryColumn('punti_accumulo_data', 'GEOMETRY', 4326, 'POINT', 'XY');\";\n \tString create_idx_stmt = \"SELECT CreateSpatialIndex('punti_accumulo_data', 'GEOMETRY');\";\n \n \t// TODO: check if all statements are complete\n \t\n \ttry { \t\n \t\tStmt stmt01 = db.prepare(create_stmt);\n\n\t\t\t\t\t\tif (stmt01.step()) {\n\t\t\t\t\t\t\t//TODO This will never happen, CREATE statements return empty results\n\t\t\t\t\t\t Log.v(\"UTILS\", \"Table Created\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t// TODO: Check if created, fail otherwise\n\t\t\t\t\t\t\n\t\t\t\t\t\tstmt01 = db.prepare(add_geom_stmt);\n\t\t\t\t\t\tif (stmt01.step()) {\n\t\t\t\t\t\t Log.v(\"UTILS\", \"Geometry Column Added \"+stmt01.column_string(0));\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tstmt01 = db.prepare(create_idx_stmt);\n\t\t\t\t\t\tif (stmt01.step()) {\n\t\t\t\t\t\t Log.v(\"UTILS\", \"Index Created\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tstmt01.close();\n\t\t\t\t\t\t\n\t\t\t\t\t} catch (jsqlite.Exception e) {\n\t\t\t\t\t\tLog.e(\"UTILS\", Log.getStackTraceString(e));\n\t\t\t\t\t}\n \treturn true;\n }\n\t\t\t}\n\t\t}else{\n\t\t\tLog.w(\"UTILS\", \"No valid database received, aborting..\");\n\t\t}\n\t\t\n\t\treturn false;\n\t}",
"public static void toutAfficher(JTable table) {\n\t\ttry {\n\t\t\tConnection conn = bdconnect.getConnection();\n\t\t\tString sql = \"SELECT * FROM commande\";\n\t java.sql.Statement stmt = conn.createStatement();\n\t\t\tjava.sql.ResultSet RS = stmt.executeQuery(sql);\n\t\t\ttable.setModel(DbUtils.resultSetToTableModel(RS));\n\t\t\t}\n\t\t\tcatch (SQLException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t}",
"public void PreencherTabela2() throws SQLException {\n\n String[] colunas = new String[]{\"ID do Pedido\", \"Numero Grafica\", \"Data Emissao\",\"Boleto\"};\n ArrayList dados = new ArrayList();\n Connection connection = ConnectionFactory.getConnection();\n PedidoDAO pedidoDAO = new PedidoDAO(connection);\n ModeloPedido modeloPedido = new ModeloPedido();\n modeloPedido = pedidoDAO.buscaPorId(idPedidoClasse);\n SimpleDateFormat format = new SimpleDateFormat(\"dd/MM/yyyy\");\n\n dados.add(new Object[]{modeloPedido.getId(), modeloPedido.getNumeroGrafica(), format.format(modeloPedido.getDataEmissao()), modeloPedido.isBoleto()});\n\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n\n jTablePedido.setModel(modelo);\n jTablePedido.setRowSorter(new TableRowSorter(modelo));\n jTablePedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTablePedido.getColumnModel().getColumn(0).setResizable(false);\n jTablePedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTablePedido.getColumnModel().getColumn(1).setResizable(false);\n\n jTablePedido.getTableHeader().setReorderingAllowed(false);\n connection.close();\n }",
"@Test(timeout = 4000)\n public void test112() throws Throwable {\n DefaultDBTable defaultDBTable0 = new DefaultDBTable(\"O\\\"6T\");\n File file0 = MockFile.createTempFile(\"<*kYz\", \"BLOB\");\n MockPrintWriter mockPrintWriter0 = new MockPrintWriter(file0);\n NameSpec nameSpec0 = NameSpec.ALWAYS;\n SQLUtil.renderCreateTable(defaultDBTable0, true, nameSpec0, mockPrintWriter0);\n assertNull(defaultDBTable0.getDoc());\n }",
"public synchronized void criarTabela(){\n \n String sql = \"CREATE TABLE IF NOT EXISTS CPF(\\n\"\n + \"id integer PRIMARY KEY AUTOINCREMENT,\\n\"//Autoincrement\n// + \"codDocumento integer,\\n\"\n + \"numCPF integer\\n\"\n + \");\";\n \n try (Connection c = ConexaoJDBC.getInstance();\n Statement stmt = c.createStatement()) {\n // create a new table\n stmt.execute(sql);\n stmt.close();\n c.close();\n } catch (SQLException e) {\n System.err.println(e.getClass().getName() + \": \" + e.getMessage()); \n// System.out.println(e.getMessage());\n }\n System.out.println(\"Table created successfully\");\n }",
"private void pintarTabla() {\r\n ArrayList<Corredor> listCorredors = gestion.getCorredores();\r\n TableModelCorredores modelo = new TableModelCorredores(listCorredors);\r\n jTableCorredores.setModel(modelo);\r\n TableRowSorter<TableModel> elQueOrdena = new TableRowSorter<>(modelo);\r\n jTableCorredores.setRowSorter(elQueOrdena);\r\n\r\n }",
"String getBaseTable();",
"protected int getTableCondtion()\n\t\t{\n\t\t\treturn Condtion ;\n\t\t}",
"public void llenadoDeTablas() {\n /**\n *\n * creaccion de la tabla de de titulos \n */\n DefaultTableModel modelo = new DefaultTableModel();\n modelo.addColumn(\"ID Bitacora\");\n modelo.addColumn(\"Usuario\");\n modelo.addColumn(\"Fecha\");\n modelo.addColumn(\"Hora\");\n modelo.addColumn(\"Ip\");\n modelo.addColumn(\"host\");\n \n modelo.addColumn(\"Accion\");\n modelo.addColumn(\"Codigo Aplicacion\");\n modelo.addColumn(\"Modulo\");\n /**\n *\n * instaciamiento de las las clases Bitacora y BiracoraDAO\n * intaciamiento de la clases con el llenado de tablas\n */\n BitacoraDao BicDAO = new BitacoraDao();\n List<Bitacora> usuario = BicDAO.select();\n JtProductos1.setModel(modelo);\n String[] dato = new String[9];\n for (int i = 0; i < usuario.size(); i++) {\n dato[0] = usuario.get(i).getId_Bitacora();\n dato[1] = usuario.get(i).getId_Usuario();\n dato[2] = usuario.get(i).getFecha();\n dato[3] = usuario.get(i).getHora();\n dato[4] = usuario.get(i).getHost();\n dato[5] = usuario.get(i).getIp();\n dato[6] = usuario.get(i).getAccion();\n dato[7] = usuario.get(i).getCodigoAplicacion();\n dato[8] = usuario.get(i).getModulo();\n \n //System.out.println(\"vendedor:\" + vendedores);\n modelo.addRow(dato);\n }}",
"@Test\n public void testGetTabella_PreparedStatement() throws MainException, SQLException {\n System.out.println(\"getTabella\");\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n PreparedStatement stmt = instance.prepareStatement(\n \"select * from infermieri\");\n ADISysTableModel result = instance.getTabella(stmt);\n assertNotNull(result);\n }",
"public void cargarTitulos1() throws SQLException {\n\n tabla1.addColumn(\"CLAVE\");\n tabla1.addColumn(\"NOMBRE\");\n tabla1.addColumn(\"DIAS\");\n tabla1.addColumn(\"ESTATUS\");\n\n this.tbpercep.setModel(tabla1);\n\n TableColumnModel columnModel = tbpercep.getColumnModel();\n\n columnModel.getColumn(0).setPreferredWidth(15);\n columnModel.getColumn(1).setPreferredWidth(150);\n columnModel.getColumn(2).setPreferredWidth(50);\n columnModel.getColumn(3).setPreferredWidth(70);\n\n }",
"@Override\n public void onCreate (SQLiteDatabase sqLiteDatabase){\n sqLiteDatabase.execSQL(\"create table if not exists \"+nama_table+\" (judul varchar(50) primary key, deskripsi varchar(50), priority varchar(50)) \");\n }",
"public TdOficioAfectacionPK() {\n }",
"private void loadTBL(String q1) {\n try {\n\n ResultSet rs = DB.search(q1);\n\n DefaultTableModel dtm = (DefaultTableModel) jTable1.getModel();\n dtm.setRowCount(0);\n while (rs.next()) {\n\n Vector v = new Vector();\n v.add(rs.getString(\"id_before_p\"));\n v.add(rs.getString(\"date\"));\n\n ResultSet rs3 = DB.search(\"select name from supplier where id_sup='\" + rs.getString(\"supplier_id_sup\") + \"'\");\n if (rs3.next()) {\n v.add(rs3.getString(\"name\"));\n }\n String qty = rs.getString(\"qty\");\n String fat = rs.getString(\"fat\");\n String ts = rs.getString(\"ts\");\n String ph = rs.getString(\"ph\");\n String acidity = rs.getString(\"acidity\");\n\n if (qty.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(qty);\n\n }\n if (fat.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(fat);\n }\n if (ts.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(ts);\n }\n if (ph.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(ph);\n }\n if (acidity.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(acidity);\n }\n\n String ts_2 = rs.getString(\"ts_2\");\n String ph_2 = rs.getString(\"ph_2\");\n String acidity_2 = rs.getString(\"acidity_2\");\n\n if (ts_2.equals(\"0\")) {\n v.add(\"\");\n\n } else {\n v.add(ts_2);\n\n }\n if (ph_2.equals(\"0\")) {\n v.add(\"\");\n\n } else {\n v.add(ph_2);\n\n }\n if (acidity_2.equals(\"0\")) {\n v.add(\"\");\n\n } else {\n\n v.add(acidity_2);\n\n }\n\n v.add(rs.getString(\"buyer_1\"));\n String qty_1_2 = rs.getString(\"qty_1\");\n String qty_2_2 = rs.getString(\"qty_2\");\n String sample = rs.getString(\"sample\");\n if (qty_1_2.equals(\"0\")) {\n v.add(\"\");\n } else {\n v.add(qty_1_2);\n\n }\n v.add(rs.getString(\"buyer_2\"));\n if (qty_2_2.equals(\"0\")) {\n\n v.add(\"\");\n } else {\n\n v.add(qty_2_2);\n }\n if (sample.equals(\"0\")) {\n\n v.add(\"\");\n } else {\n v.add(sample);\n\n }\n\n dtm.addRow(v);\n\n }\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n }",
"public void preencherTabela(ArrayList<Livro> lista) {\n\t\tDefaultTableModel modelo = (DefaultTableModel) table.getModel();\n\t\tObject[] linha = new Object[4];\n\t\tmodelo.setRowCount(0);\n\t\tfor (Livro l : lista) {\n\t\t\tlinha[0] = l.getNome();\n\t\t\tlinha[1] = l.getAutor();\n\t\t\tlinha[2] = l.getDataDeLancamento();\n\t\t\tif (l.isDisponivel())\n\t\t\t\tlinha[3] = \"Disponivel\";\n\t\t\telse\n\t\t\t\tlinha[3] = \"Indisponivel\";\n\t\t\tmodelo.addRow(linha);\n\n\t\t}\n\n\t}",
"@Test\n public void create1Test2() throws SQLException {\n manager = new TableServizioManager(mockDb);\n manager.create1(true,true,true,true,true,true,true);\n Servizio servizio = manager.retriveById(5);\n assertNotNull(servizio,\"Should return true if create Servizio\");\n }",
"public void formDatabaseTable() {\n }",
"private void limparTabela() {\n while (tmLivro.getRowCount() > 0) {\n tmLivro.removeRow(0);\n }\n }",
"tbls createtbls();",
"private void limparTabela() { \n while (tmLivro.getRowCount() > 0) { \n tmLivro.removeRow(0);\n }\n }",
"private void popularTabela() {\n\n if (CadastroCliente.listaAluno.isEmpty()) {\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setNumRows(0);\n }\n int t = 0;\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setNumRows(0);\n int aux = CadastroCliente.listaAluno.size();\n\n while (t < aux) {\n aluno = CadastroCliente.listaAluno.get(t);\n modelo.addRow(new Object[]{aluno.getMatricula(), aluno.getNome(), aluno.getCpf(), aluno.getTel()});\n t++;\n }\n }",
"TbFreightTemplate selectByPrimaryKey(Long id);",
"public void PreencherTabela() throws SQLException {\n try (Connection connection = ConnectionFactory.getConnection()) {\n String[] colunas = new String[]{\"ID\", \"Nome\", \"Nomenclatura\", \"Quantidade\"};\n ArrayList dados = new ArrayList();\n for (ViewProdutoPedido v : viewProdutoPedidos) {\n dados.add(new Object[]{v.getId(), v.getNome(), v.getNomenclatura(), v.getQuantidade()});\n }\n ModeloTabela modelo = new ModeloTabela(dados, colunas);\n jTableItensPedido.setModel(modelo);\n jTableItensPedido.setRowSorter(new TableRowSorter(modelo));\n jTableItensPedido.getColumnModel().getColumn(0).setPreferredWidth(2);\n jTableItensPedido.getColumnModel().getColumn(0).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(1).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(1).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(2).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(2).setResizable(false);\n jTableItensPedido.getColumnModel().getColumn(3).setPreferredWidth(20);\n jTableItensPedido.getColumnModel().getColumn(3).setResizable(false);\n\n }\n }",
"private void prepareTable() {\n TeamsRepository tr = new TeamsRepository();\n //ka uradim ovo dle odma mi samo inicijalizuje tabelu\n// tblTeams.setModel(new TeamsTableModel(tr.getTeams()));\n// ni ovaj kod mi nista nije radio\n// TeamsTableModel ttm = new TeamsTableModel(tr.getTeams());\n TableColumnModel tcm = tblTeams.getColumnModel();\n TableColumn tc = tcm.getColumn(1);\n TableCellEditor tce = new DefaultCellEditor(getComboBox());\n tc.setCellEditor(tce);\n }",
"public boolean supportsTemporaryTables() {\n \t\treturn false;\n \t}",
"public void gettableconteudo(){\n \n int selecionada = jtablearquivos.getSelectedRow();\n if (selecionada == -1) {\n JOptionPane.showMessageDialog(null,\" Arquivo não selecionado corretamente !\");\n } \n String id = jtablearquivos.getValueAt(selecionada, 0).toString();\n id1 = id;\n String titulo = jtablearquivos.getValueAt(selecionada, 1).toString();\n titulo1 = titulo;\n \n \n \n }",
"public abstract String doTableConvert(String sql);",
"private void cargarDeDB() {\n Query query = session.createQuery(\"SELECT p FROM Paquete p WHERE p.reparto is NULL\");\n data = FXCollections.observableArrayList();\n\n List<Paquete> paquetes = query.list();\n for (Paquete paquete : paquetes) {\n data.add(paquete);\n }\n\n cargarTablaConPaquetes();\n }",
"private static void populateTable(String name, File fileObj, Statement stat) {\n\t\tString tableName = \"\";\n\t\tScanner scan = null;\n\t\tString line = \"\";\n\t\tString[] splitLine = null;\n\t\t\n\t\ttableName = \"stevenwbroussard.\" + name;\n\t\ttry {\n\t\t\tscan = new Scanner(fileObj);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Failed make thread with file.\");\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(-1);\n\t\t}\n\t\t\n\t\t//use a for loop to go through, later use a while loop\n\t\twhile (scan.hasNext() != false) {\n\t\t//for (int i = 0; i < 10; i++) {\n\t\t\tline = scan.nextLine();\n\t\t\tsplitLine = line.split(\"\\\\,\");\n\t\t\t\n\t\t\t//if the type for integer column is NULL\n\t\t\tif (splitLine[0].equals(\"NULL\")) {\n\t\t\t\tsplitLine[0] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[1].equals(\"NULL\")) {\n\t\t\t\tsplitLine[1] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[4].equals(\"NULL\")) {\n\t\t\t\tsplitLine[4] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[5].equals(\"NULL\")) {\n\t\t\t\tsplitLine[5] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[7].equals(\"NULL\")) {\n\t\t\t\tsplitLine[7] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[9].equals(\"NULL\")) {\n\t\t\t\tsplitLine[9] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[11].equals(\"NULL\")) {\n\t\t\t\tsplitLine[11] = \"-1\";\n\t\t\t}\n\t\t\tif (splitLine[13].equals(\"NULL\")) {\n\t\t\t\tsplitLine[13] = \"-1\";\n\t\t\t}\n\t\t\t\n\t\t\t//if the type for double column is NULL\n\t\t\tif (splitLine[6].equals(\"NULL\")) {\n\t\t\t\tsplitLine[6] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[8].equals(\"NULL\")) {\n\t\t\t\tsplitLine[8] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[10].equals(\"NULL\")) {\n\t\t\t\tsplitLine[10] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[12].equals(\"NULL\")) {\n\t\t\t\tsplitLine[12] = \"-1.0\";\n\t\t\t}\n\t\t\tif (splitLine[14].equals(\"NULL\")) {\n\t\t\t\tsplitLine[14] = \"-1.0\";\n\t\t\t}\n\t\t\t\n\t\t\ttry {\n\t\t\t\tstat.executeQuery(comd.insert(tableName, \n\t\t\t\t\t \t Integer.parseInt(splitLine[0]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[1]), \n\t\t\t\t\t \t splitLine[2], \n\t\t\t\t\t \t splitLine[3], \n\t\t\t\t\t \t Integer.parseInt(splitLine[4]),\n\t\t\t\t\t \t Integer.parseInt(splitLine[5]),\n\t\t\t\t\t \t Double.parseDouble(splitLine[6]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[7]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[8]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[9]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[10]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[11]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[12]), \n\t\t\t\t\t \t Integer.parseInt(splitLine[13]), \n\t\t\t\t\t \t Double.parseDouble(splitLine[14])));\n\t\t\t}\n\t\t\tcatch(SQLException s) {\n\t\t\t\tSystem.out.println(\"SQL insert statement failed.\");\n\t\t\t\ts.printStackTrace();\n\t\t\t\tSystem.exit(-1);\n\t\t\t}\n\t\t}\n\t\t\n\t}",
"private boolean agregarRegistroATabla(Table t,DocumentoPrint dp)\n\t{\n\t TableItem item1 = new TableItem(t, SWT.NONE);\n\t String impreso = new String(\"NO\");\n\t if (dp.getDocImpreso()){\n\t \timpreso = \"SI\";\n\t }\n\t item1.setText(new String[] {dp.getFechaHora(),dp.getTipoDoc(),dp.getSeriaNro(),dp.getRemitente(),impreso} );\n\t\treturn true;\n\t}",
"private void TampilData() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"NO\");\n model.addColumn(\"ID\");\n model.addColumn(\"NAME\");\n model.addColumn(\"USERNAME\");\n tabelakses.setModel(model);\n\n //menampilkan data database kedalam tabel\n try {\n int i=1;\n java.sql.Connection conn = new DBConnection().connect();\n java.sql.Statement stat = conn.createStatement();\n ResultSet data = stat.executeQuery(\"SELECT * FROM p_login order by Id asc\");\n while (data.next()) {\n model.addRow(new Object[]{\n (\"\" + i++),\n data.getString(\"Id\"),\n data.getString(\"Name\"),\n data.getString(\"Username\")\n });\n tabelakses.setModel(model);\n }\n } catch (Exception e) {\n System.err.println(\"ERROR:\" + e);\n }\n }",
"@Override\n protected void initResultTable() {\n }",
"String getTabela();",
"public void newRow();",
"private void createTableBill(){\r\n //Se crean y definen las columnas de la Tabla\r\n TableColumn col_orden = new TableColumn(\"#\"); \r\n TableColumn col_city = new TableColumn(\"Ciudad\");\r\n TableColumn col_codigo = new TableColumn(\"Código\"); \r\n TableColumn col_cliente = new TableColumn(\"Cliente\"); \r\n TableColumn col_fac_nc = new TableColumn(\"FAC./NC.\"); \r\n TableColumn col_fecha = new TableColumn(\"Fecha\");\r\n TableColumn col_monto = new TableColumn(\"Monto\"); \r\n TableColumn col_anulada = new TableColumn(\"A\");\r\n \r\n //Se establece el ancho de cada columna\r\n this.objectWidth(col_orden , 25, 25); \r\n this.objectWidth(col_city , 90, 150); \r\n this.objectWidth(col_codigo , 86, 86); \r\n this.objectWidth(col_cliente , 165, 300); \r\n this.objectWidth(col_fac_nc , 70, 78); \r\n this.objectWidth(col_fecha , 68, 68); \r\n this.objectWidth(col_monto , 73, 73); \r\n this.objectWidth(col_anulada , 18, 18);\r\n\r\n col_fac_nc.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguip_det, String>() {\r\n @Override\r\n public void updateItem(String item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n ret = getItem().toString();\r\n if (ret.equals(\"0\"))\r\n ret = \"\";\r\n } else {\r\n ret = \"\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n col_fecha.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguip_det, Date>() {\r\n @Override\r\n public void updateItem(Date item, boolean empty) {\r\n super.updateItem(item, empty);\r\n if(!empty){\r\n setText(item.toLocalDate().toString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n else\r\n setText(null);\r\n }\r\n };\r\n }\r\n }); \r\n\r\n col_monto.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguid, Double>() {\r\n @Override\r\n public void updateItem(Double item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER_RIGHT);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n String gi = getItem().toString();\r\n NumberFormat df = DecimalFormat.getInstance();\r\n df.setMinimumFractionDigits(2);\r\n df.setRoundingMode(RoundingMode.DOWN);\r\n\r\n ret = df.format(Double.parseDouble(gi));\r\n } else {\r\n ret = \"0,00\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n col_anulada.setCellFactory(new Callback<TableColumn, TableCell>() {\r\n @Override\r\n public TableCell call(TableColumn param) {\r\n return new TableCell<Fxp_Archguid, Integer>() {\r\n @Override\r\n public void updateItem(Integer item, boolean empty) {\r\n super.updateItem(item, empty);\r\n setText(empty ? null : getString());\r\n setAlignment(Pos.CENTER);\r\n }\r\n\r\n private String getString() {\r\n String ret = \"\";\r\n if (getItem() != null) {\r\n ret = getItem().toString();\r\n if (ret.equals(\"0\"))\r\n ret = \"\";\r\n\r\n setTextFill(isSelected() ? Color.WHITE :\r\n ret.equals(\"0\") ? Color.BLACK :\r\n ret.equals(\"1\") ? Color.RED : Color.GREEN);\r\n } else {\r\n ret = \"\";\r\n }\r\n return ret;\r\n } \r\n };\r\n }\r\n }); \r\n\r\n //Se define la columna de la tabla con el nombre del atributo del objeto USUARIO correspondiente\r\n col_orden.setCellValueFactory( \r\n new PropertyValueFactory<>(\"orden\") );\r\n col_city.setCellValueFactory( \r\n new PropertyValueFactory<>(\"ciudad\") );\r\n col_codigo.setCellValueFactory( \r\n new PropertyValueFactory<>(\"codigo\") );\r\n col_cliente.setCellValueFactory( \r\n new PropertyValueFactory<>(\"cliente\") );\r\n col_fac_nc.setCellValueFactory( \r\n new PropertyValueFactory<>(\"numdocs\") );\r\n col_fecha.setCellValueFactory( \r\n new PropertyValueFactory<>(\"fecdoc\") );\r\n col_monto.setCellValueFactory( \r\n new PropertyValueFactory<>(\"monto\") );\r\n col_anulada.setCellValueFactory( \r\n new PropertyValueFactory<>(\"anulada\") );\r\n \r\n //Se Asigna ordenadamente las columnas de la tabla\r\n tb_factura.getColumns().addAll(\r\n col_orden, col_city, col_codigo, col_cliente, col_fac_nc, col_fecha, \r\n col_monto, col_anulada \r\n ); \r\n \r\n //Se Asigna menu contextual \r\n tb_factura.setRowFactory((TableView<Fxp_Archguid> tableView) -> {\r\n final TableRow<Fxp_Archguid> row = new TableRow<>();\r\n final ContextMenu contextMenu = new ContextMenu();\r\n final MenuItem removeMenuItem = new MenuItem(\"Anular Factura\");\r\n removeMenuItem.setOnAction((ActionEvent event) -> {\r\n switch (tipoOperacion){\r\n case 1:\r\n tb_factura.getItems().remove(tb_factura.getSelectionModel().getSelectedIndex());\r\n break;\r\n case 2:\r\n tb_factura.getItems().get(tb_factura.getSelectionModel().getSelectedIndex()).setAnulada(1);\r\n col_anulada.setVisible(false);\r\n col_anulada.setVisible(true);\r\n break;\r\n }\r\n });\r\n contextMenu.getItems().add(removeMenuItem);\r\n // Set context menu on row, but use a binding to make it only show for non-empty rows:\r\n row.contextMenuProperty().bind(\r\n Bindings.when(row.emptyProperty())\r\n .then((ContextMenu)null)\r\n .otherwise(contextMenu)\r\n );\r\n return row ; \r\n });\r\n \r\n //Se define el comportamiento de las teclas ARRIBA y ABAJO en la tabla\r\n EventHandler eh = new EventHandler<KeyEvent>(){\r\n @Override\r\n public void handle(KeyEvent ke){\r\n //Si fue presionado la tecla ARRIBA o ABAJO\r\n if (ke.getCode().equals(KeyCode.UP) || ke.getCode().equals(KeyCode.DOWN)){ \r\n //Selecciona la FILA enfocada\r\n selectedRowInvoice();\r\n }\r\n }\r\n };\r\n //Se Asigna el comportamiento para que se ejecute cuando se suelta una tecla\r\n tb_factura.setOnKeyReleased(eh); \r\n }",
"public Table select_de(int teableSeq) throws Exception {\n\t\treturn tableDao.select_de(teableSeq);\r\n\t}",
"public void readTable() {\n DefaultTableModel modelo = (DefaultTableModel) jTable1.getModel();\n modelo.setRowCount(0);\n\n }",
"int getTableID() {\r\n return table_id;\r\n }",
"private void Actualizar_Tabla() {\n String[] columNames = {\"iditem\", \"codigo\", \"descripcion\", \"p_vent\", \"p_comp\", \"cant\", \"fecha\"};\n dtPersona = db.Select_Item();\n // se colocan los datos en la tabla\n DefaultTableModel datos = new DefaultTableModel(dtPersona, columNames);\n jTable1.setModel(datos);\n }",
"public void atualizarTabelaFunc() throws SQLException {\n DefaultTableModel model = (DefaultTableModel) tabelaFunc.getModel();\n model.setNumRows(0);\n dadosDAO dados = new dadosDAO();\n String pesquisa = funcField.getText().toUpperCase();\n for (funcionario func : dados.readFuncionarios()){\n if (!funcField.getText().equals(\"\")){\n if (nomeBtnFunc.isSelected()){\n if (func.getNome().contains(pesquisa)){\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n } else if (cpfBtnFunc.isSelected()){\n if (funcField.getText().equals(func.getCpf())) {\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n } else {\n if (funcField.getText().equals(String.valueOf(func.getId_func()))){\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n }\n } else {\n model.addRow(new Object[]{\n func.getId_func(),\n nomeProprio(func.getNome()),\n func.getCpf(),\n func.getDt_nascimento(),\n func.getSexo(),\n func.getTelfix(),\n func.getRamal(),\n func.getTelcel(),\n func.getCep(),\n func.getCargo(),\n func.getTurno(),\n func.getSalario()\n });\n }\n }\n }",
"public void get_TableValues(){\r\n\tFFM=99;\r\n\tADFM=99;\r\n\tDF=0;\r\n\tFLOAD=0;\r\n\t\r\n}",
"public void llenadoDeTablas() {\n \n DefaultTableModel modelo1 = new DefaultTableModel();\n modelo1 = new DefaultTableModel();\n modelo1.addColumn(\"ID Usuario\");\n modelo1.addColumn(\"NOMBRE\");\n UsuarioDAO asignaciondao = new UsuarioDAO();\n List<Usuario> asignaciones = asignaciondao.select();\n TablaPerfiles.setModel(modelo1);\n String[] dato = new String[2];\n for (int i = 0; i < asignaciones.size(); i++) {\n dato[0] = (Integer.toString(asignaciones.get(i).getId_usuario()));\n dato[1] = asignaciones.get(i).getNombre_usuario();\n\n modelo1.addRow(dato);\n }\n }",
"@Test\n public void testGetTabella_String() throws MainException, SQLException {\n System.out.println(\"getTabella\");\n String queryText = \"select * from infermieri\";\n LinkingDb instance = new LinkingDb(new ConfigurazioneTO(\"jdbc:hsqldb:file:database/\",\n \"ADISysData\", \"asl\", \"\"));\n instance.connect();\n ADISysTableModel result = instance.getTabella(queryText);\n assertNotNull(result);\n queryText = \"select * from infermieri where id = -1\";\n result = instance.getTabella(queryText);\n assertTrue(result.getRowCount() == 0);\n }",
"public ResultSet selecionar(String tabela);",
"private boolean validaInsert(Entity e) throws SQLException {\r\n stmt = conn.createStatement();\r\n String sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(0) + \"= \" + e.getCell(0).getValue();\r\n if (e.getTableName().equals(\"Contato\")) {\r\n sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(3) + \"= '\" + String.valueOf(e.getCell(3).getValue()) + \"' and \" + e.getColumnName(1) + \"= '\" + String.valueOf(e.getCell(1).getValue()) + \"';\";\r\n\r\n }\r\n if (e.getTableName().equals(\"Telefone\")) {\r\n sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(2) + \"= '\" + String.valueOf(e.getCell(2).getValue()) + \"' and \" + e.getColumnName(1) + \"= '\" + String.valueOf(e.getCell(1).getValue()) + \"' and \" + e.getColumnName(3) + \"= '\" + String.valueOf(e.getCell(3).getValue()) + \"';\";\r\n\r\n }\r\n if (e.getTableName().equals(\"Solicitacoes\")) {\r\n sql = \"select * from \" + e.getTableName() + \" where \" + e.getColumnName(6) + \"= '\" + String.valueOf(e.getCell(6).getValue()) + \"' and \" + e.getColumnName(7) + \"= '\" + String.valueOf(e.getCell(7).getValue()) + \"';\";\r\n\r\n }\r\n System.out.println(sql);\r\n rs = stmt.executeQuery(sql);\r\n if (rs.next()) {\r\n stmt.close();\r\n rs.close();\r\n return false;\r\n }\r\n stmt.close();\r\n rs.close();\r\n return true;\r\n\r\n }",
"FromTable createFromTable();",
"public void testOneTable() {\n\n String\tsql\t= \"SELECT AD_Table_ID, TableName FROM AD_Table WHERE IsActive='Y'\";\n AccessSqlParser\tfixture\t= new AccessSqlParser(sql);\n\n assertEquals(\"AccessSqlParser[AD_Table|0]\", fixture.toString());\n }",
"private void MontarTabela(String where) {\n \n int linha = 0;\n int coluna = 0;\n \n String offset = String.valueOf(getPaginacao());\n \n while(linha < 10){\n while(coluna < 7){\n tbConFin.getModel().setValueAt(\"\", linha, coluna);\n coluna++;\n }\n linha++;\n coluna = 0;\n }\n \n linha = 0;\n \n String rd_id\n ,rd_codico\n ,rd_nome\n ,rd_receita_despesa\n ,rd_grupo\n ,rd_fixa\n ,rd_ativo;\n \n \n \n try{\n ResultSet rsConFin = cc.stm.executeQuery(\"select * from v_receitadespesa \"+where+\" order by rd_codico limit 10 offset \"+offset);\n \n while ( rsConFin.next() ) {\n rd_id = rsConFin.getString(\"RD_ID\");\n rd_codico = rsConFin.getString(\"rd_codico\");\n rd_nome = rsConFin.getString(\"rd_nome\");\n rd_receita_despesa = getRecDesp(rsConFin.getString(\"rd_receita_despesa\"));\n rd_grupo = getSimNao(rsConFin.getString(\"rd_grupo\"));\n rd_fixa = getSimNao(rsConFin.getString(\"rd_fixa\"));\n rd_ativo = getSimNao(rsConFin.getString(\"rd_ativo\"));\n \n tbConFin.getModel().setValueAt(rd_id, linha, 0);\n tbConFin.getModel().setValueAt(rd_codico, linha, 1);\n tbConFin.getModel().setValueAt(rd_nome, linha, 2);\n tbConFin.getModel().setValueAt(rd_receita_despesa, linha, 3);\n tbConFin.getModel().setValueAt(rd_grupo, linha, 4);\n tbConFin.getModel().setValueAt(rd_fixa, linha, 5);\n tbConFin.getModel().setValueAt(rd_ativo, linha, 6);\n \n linha++;\n }\n \n \n if(linha <= 10){\n setMensagem(\"A Busca retornou \"+linha+\" registros!\");\n }\n \n if(linha < 10){\n setFimConsulta(true);\n }else{\n setFimConsulta(false);\n }\n \n }catch(SQLException e){\n JOptionPane.showMessageDialog(this, \"Erro ao Carregar informações de contas financeiras!\\n\"+e.getMessage());\n }\n \n }",
"public void popularTabela() {\n\n try {\n\n RelatorioRN relatorioRN = new RelatorioRN();\n\n ArrayList<PedidoVO> pedidos = relatorioRN.buscarPedidos();\n\n javax.swing.table.DefaultTableModel dtm = (javax.swing.table.DefaultTableModel) tRelatorio.getModel();\n dtm.fireTableDataChanged();\n dtm.setRowCount(0);\n\n for (PedidoVO pedidoVO : pedidos) {\n\n String[] linha = {\"\" + pedidoVO.getIdpedido(), \"\" + pedidoVO.getData(), \"\" + pedidoVO.getCliente(), \"\" + pedidoVO.getValor()};\n dtm.addRow(linha);\n }\n\n } catch (SQLException sqle) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + sqle.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n \n } catch (Exception e) {\n\n JOptionPane.showMessageDialog(null, \"Erro: \" + e.getMessage(), \"Bordas\", JOptionPane.ERROR_MESSAGE);\n }\n }",
"private JTable getTablePacientes() {\n\t\t\n\t\t try {\n\t \t ConnectDatabase db = new ConnectDatabase();\n\t\t\t\tResultSet rs = db.sqlstatment().executeQuery(\"SELECT * FROM PACIENTE WHERE NOMBRE LIKE '%\"+nombre.getText()+\"%' AND APELLIDO LIKE '%\"+apellido.getText()+\"%'AND DNI LIKE '%\"+dni.getText()+\"%'\");\n\t\t\t\tObject[] transf = QueryToTable.getSingle().queryToTable(rs);\n\t\t\t\treturn table = new JTable(new DefaultTableModel((Vector<Vector<Object>>)transf[0], (Vector<String>)transf[1]));\t\t\n\t\t\t} catch(Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn table;\n\t}",
"public String getNomTable();",
"private void load_table() {\n DefaultTableModel model = new DefaultTableModel();\n model.addColumn(\"ID\");\n model.addColumn(\"NIM\");\n model.addColumn(\"Nama\");\n model.addColumn(\"Kelamin\");\n model.addColumn(\"Phone\");\n model.addColumn(\"Agama\");\n model.addColumn(\"Status\");\n\n //menampilkan data database kedalam tabel\n try {\n String sql = \"SELECT * FROM mhs\";\n java.sql.Connection koneksi = (Connection) Koneksi.KoneksiDB();\n java.sql.Statement stm = koneksi.createStatement();\n java.sql.ResultSet res = stm.executeQuery(sql);\n\n while (res.next()) {\n model.addRow(new Object[]{res.getString(1), res.getString(2),\n res.getString(3), res.getString(4), res.getString(5),\n res.getString(6), res.getString(7)});\n }\n tabelMahasiswa.setModel(model);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, e.getMessage());\n }\n\n }",
"private void reloadPlanTable() {\n\t\t\r\n\t}",
"Reserva Obtener();",
"private void preencherTabelaVeiculoCarga() {\n\n ArrayList dados = new ArrayList();\n cargaDao = new CargaDao();\n Carga carga;\n String[] colunas = new String[]{\"ID\", \"DESCRICAO\", \"STATUS\"};\n\n try {\n final List<Object> listaCarga = cargaDao.listarCargasDoVeiculo(idVeiculoSelecionado);\n\n if (listaCarga != null && listaCarga.size() > 0) {\n for (Object cargaAtual : listaCarga) {\n carga = (Carga) cargaAtual;\n dados.add(new Object[]{carga.getIdCarga(), carga.getDescricao(), carga.getStatus()});\n }\n }\n\n ModeloTabela modTabela = new ModeloTabela(dados, colunas);\n jTB_VeiculoCarga.setModel(modTabela);\n jTB_VeiculoCarga.getColumnModel().getColumn(0).setPreferredWidth(100);\n jTB_VeiculoCarga.getColumnModel().getColumn(0).setResizable(false);\n jTB_VeiculoCarga.getColumnModel().getColumn(1).setPreferredWidth(300);\n jTB_VeiculoCarga.getColumnModel().getColumn(1).setResizable(false);\n jTB_VeiculoCarga.getColumnModel().getColumn(2).setPreferredWidth(150);\n jTB_VeiculoCarga.getColumnModel().getColumn(2).setResizable(false);\n\n jTB_VeiculoCarga.getTableHeader().setReorderingAllowed(false);\n jTB_VeiculoCarga.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);\n jTB_VeiculoCarga.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);\n\n jTB_VeiculoCarga.addMouseListener(new MouseAdapter() {\n\n @Override\n public void mouseClicked(MouseEvent e) {\n try {\n List<Object> lista = cargaDao.listarCargasDoVeiculo(idVeiculoSelecionado);\n cargaSelecionada = (Carga) lista.\n get(jTB_VeiculoCarga.convertRowIndexToModel(jTB_VeiculoCarga.getSelectedRow()));\n\n // if (veiculoDao.listarVeiculosAtivos().size() > 0 && veiculoDao.listarVeiculosAtivos() != null) {}\n } catch (Exception ex) {\n JOptionPane.showMessageDialog(FormVeiculoCargas.this, \"Erro genérico1: \" + ex.getMessage());\n ex.printStackTrace(System.err);\n }\n }\n\n });\n\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Erro genérico2: \" + e.getMessage());\n }\n }",
"public DetalleTablaComplementario() {\r\n }",
"public TableObject()\r\n {\r\n\tsuper(ObjectType.Table);\r\n\tglobal = false;\r\n }",
"public Table select_en(int teableSeq) throws Exception {\n\t\treturn tableDao.select_en(teableSeq);\r\n\t}",
"public Cursor test1() {\n //CREATE TABLE teste1 ( _id INTEGER PRIMARY KEY AUTOINCREMENT, f1 TEXT)\n SQLiteDatabase db = mydbHelper.getWritableDatabase();\n return db.rawQuery(\"SELECT \" + DBHelper.UID + \", \" + DBHelper.FIELD1 + \", \" +\n DBHelper.TIMESTAMP + \" FROM \" + DBHelper.TN_TESTE1, null);\n }",
"@Override\r\n\tprotected String getTable() {\n\t\treturn TABLE;\r\n\t}",
"private void GetData(){\n try {\n Connection conn =(Connection)app.pegawai.Database.koneksiDB();\n java.sql.Statement stm = conn.createStatement();\n java.sql.ResultSet sql = stm.executeQuery(\"select * from user\");\n data.setModel(DbUtils.resultSetToTableModel(sql));\n\n }\n catch (SQLException | HeadlessException e) {\n }\n}"
] |
[
"0.66295826",
"0.595246",
"0.5950459",
"0.59448534",
"0.59175485",
"0.58976936",
"0.58814836",
"0.5854715",
"0.5848566",
"0.5834498",
"0.5824806",
"0.5814653",
"0.5805954",
"0.5763313",
"0.5750788",
"0.5750718",
"0.5748277",
"0.57048225",
"0.5694166",
"0.56923765",
"0.5667218",
"0.5649079",
"0.5648297",
"0.5615353",
"0.55972403",
"0.55756205",
"0.556533",
"0.55569863",
"0.55562085",
"0.55559593",
"0.5553763",
"0.5552553",
"0.55414003",
"0.55350447",
"0.55271316",
"0.55140215",
"0.55093163",
"0.5504662",
"0.5499539",
"0.54915357",
"0.5490077",
"0.548705",
"0.5472483",
"0.54447746",
"0.54408574",
"0.543253",
"0.54318565",
"0.543016",
"0.5429852",
"0.5421905",
"0.54209024",
"0.5418058",
"0.5414133",
"0.5413686",
"0.5410309",
"0.5394132",
"0.53774214",
"0.5368345",
"0.53674984",
"0.5365161",
"0.5353374",
"0.53521967",
"0.5350523",
"0.535037",
"0.5344796",
"0.534066",
"0.5340406",
"0.53251445",
"0.5321162",
"0.5321086",
"0.53195614",
"0.5316713",
"0.5314732",
"0.5314551",
"0.5313786",
"0.53052723",
"0.5296342",
"0.5294739",
"0.5292191",
"0.5291403",
"0.5286629",
"0.52833235",
"0.5281985",
"0.5275864",
"0.52754575",
"0.5274441",
"0.52734345",
"0.52728444",
"0.5270164",
"0.5268701",
"0.52674955",
"0.5262825",
"0.5262115",
"0.5255867",
"0.52550185",
"0.5251421",
"0.5244752",
"0.52430415",
"0.5240823",
"0.52405226",
"0.52397794"
] |
0.0
|
-1
|
Just an alias for syslogHost (since that name doesn't make much sense here)
|
public void setHost(String host) {
setSyslogHost(host);
}
|
{
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
}
|
[
"java.lang.String getHost();",
"java.lang.String getHost();",
"String getHost();",
"String host();",
"public String getHost();",
"public String getHost();",
"public String getHostName();",
"String getHostname();",
"String getHostname();",
"String getHostName();",
"String getHostName();",
"public String getHostname();",
"default String getHost()\n {\n return getString( \"host\", \"localhost:80\");\n }",
"public String getHost() {\n\tLogWriter.logMessage(LogWriter.TRACE_DEBUG,\"getHost()\");\n Via via=(Via)sipHeader;\n return via.getHost();\n }",
"void host(String host);",
"void host(String host);",
"public String getHost() {\r\n \t\treturn properties.getProperty(KEY_HOST);\r\n \t}",
"default String getHost() {\n return \"localhost\";\n }",
"private String getHostName()\n\t{\n\t\treturn hostName;\n\t}",
"public String getHostName (){\n return hostName;\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 }",
"String getIntegHost();",
"public void setSyslog(ISyslog syslog) {\n this.syslog = syslog;\n }",
"@Override\n\t\tpublic String getHost() {\n\t\t\treturn null;\n\t\t}",
"public String getHost() { return host; }",
"private String GetHostName() throws UnknownHostException{\n return Inet4Address.getLocalHost().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 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 getRemoteHostName();",
"String getHost()\n {\n return host;\n }",
"Host getHost();",
"private static String getHostname()\n throws UnknownHostException {\n return InetAddress.getLocalHost().getHostName();\n }",
"public String getHostName() {\n return null;\n }",
"public String getHostName() {\n return FxSharedUtils.getHostName();\n }",
"public String getHost() {\n \t\treturn host;\n \t}",
"public String getHost(){\n\t\treturn this.host;\n\t}",
"public String getHost() {\n\t\treturn this.sipStack.getHostAddress();\n\t}",
"public String hostname() {\n return this.hostname;\n }",
"static String getHostName() {\n try {\n return InetAddress.getLocalHost().getHostName();\n } catch (UnknownHostException e) {\n return \"unknown\";\n }\n }",
"Object getMailhost();",
"public static String getEventHost() {\r\n return eventHost.getValue();\r\n }",
"public String getHostName()\n\t{\n\t\treturn hostName;\n\t}",
"java.lang.String getServerAddress();",
"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 getHost( ) {\n\t\treturn host;\n\t}",
"public String getHost() {\n return messageProcessor.getIpAddress().getHostAddress();\n }",
"public String getHost() {\n return host;\n }",
"public String getHost() {\n return host;\n }",
"public String getHost() {\r\n return host;\r\n }",
"public String getHostName() {\n return hostName;\n }",
"public String getHostName() {\n return hostName;\n }",
"protected abstract String getHostNamePropertyName();",
"public String getFullHost() {\n return \"http://\" + get(HOSTNAME_KEY) + \":\" + get(PORT_KEY) + \"/\" + get(CONTEXT_ROOT_KEY) + \"/\";\n }",
"private String lookup_ip (String host) throws LookupException\n , NameServerContactException{\n return lookup(host)[0];\n }",
"public String getHost() {\n return host;\n }",
"public String getHost() {\n return host;\n }",
"public String host() {\n return host;\n }",
"public String getHost() {\n\t\treturn host;\n\t}",
"public String getHost() {\n\t\treturn host;\n\t}",
"public String getHost( ) {\n return props.getProperty(HOST, \"localhost\");\n }",
"public InetAddress getHost();",
"public String getHost()\n\t{\n\t\treturn m_strHostname;\n\t}",
"public String getUserHost() {\n return userHost;\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 String getHostname() {\r\n return hostname;\r\n }",
"public String getHostname() {\n return this.hostname;\n }",
"public String getHostName() {\n\t\treturn hostName;\n\t}",
"public String getHostName() {\n\t\treturn hostName;\n\t}",
"java.lang.String getRemoteHost();",
"public String getHostName() {\n return this.hostContext.getHostName();\n }",
"String getCollectorHostName(String clusterName, MetricsService service) throws SystemException;",
"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 }",
"public String getHostName() {\n\t\treturn \"RaspberryHostName\";\n\t}",
"public String getHostname () {\n return hostname;\n }",
"protected abstract String getDaemonName();",
"public ServerHostNameAndTimeFilter()\n\t{\n\t\tString hostId = null;\n\t\ttry\n\t\t{\n\t\t\thostId = System.getProperty(\"examples.hostname\");\n\t\t}\n\t\tcatch (SecurityException e)\n\t\t{\n\t\t}\n\t\tif (Strings.isEmpty(hostId))\n\t\t{\n\t\t\thostId = String.valueOf(System.currentTimeMillis());\n\t\t}\n\n\t\tsetHostName(hostId);\n\t}",
"public String getHost() {\n return host.getText();\n }",
"protected String logInstanceName() {\n\t\treturn getClass().getName();\n\t}",
"public String getHostName() throws UnknownHostException\n\t{\n\t\t\n\t\treturn InetAddress.getLocalHost().getHostAddress();\n\t\t\n\t}",
"public static String getHostname()\n\t{\n\t\treturn hostname; // send the hostname\n\t}",
"@Override\n\tpublic java.lang.String getRemoteHost() {\n\t\treturn _userTracker.getRemoteHost();\n\t}",
"public String getHost() {\n return m_host;\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 }",
"private String GetHostAddress() throws UnknownHostException {\n return Inet4Address.getLocalHost().getHostAddress();\n }",
"public String getHost() {\n return stack.stackAddress;\n }",
"protected String getUsername(MailAddress m) {\n return m.getLocalPart() + \"@localhost\";\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 }",
"synchronized public void setHost(String host) {\n this.host = host;\n if (checkClient()) {\n prefs.put(\"AEUnicastOutput.host\", host);\n }\n }",
"void sendUnicast(InetAddress hostname, String message);",
"public String getHostname() {\n return this.config.getHostname();\n }",
"public void setHost(String hostName)\n {\n this.hostName = hostName;\n }",
"@Override\n public InetSocketAddress getICELocalHostAddress(String streamName)\n {\n return null;\n }",
"public String customHost() {\n return this.customHost;\n }",
"public String getSyslogPath() {\n return LoggerApplication.getInstance().getLogPath()+\"/db/\"+this.getName()+\"/\";\n }",
"public static String getBaseHost() {\r\n if (baseHost == null) {\r\n baseHost = PropertiesProvider.getInstance().getProperty(\"server.name\", \"localhost\");\r\n }\r\n return baseHost;\r\n }"
] |
[
"0.640737",
"0.640737",
"0.6206931",
"0.61956143",
"0.615517",
"0.615517",
"0.61427927",
"0.6089902",
"0.6089902",
"0.6077732",
"0.6077732",
"0.6075848",
"0.60741436",
"0.6059635",
"0.6034275",
"0.6034275",
"0.59347355",
"0.59229875",
"0.59060127",
"0.58764994",
"0.58646387",
"0.58510774",
"0.5834965",
"0.5815765",
"0.5811295",
"0.5805894",
"0.58039206",
"0.5778288",
"0.57498294",
"0.57271475",
"0.57213944",
"0.5702977",
"0.5683435",
"0.5676892",
"0.5671699",
"0.5659027",
"0.5657713",
"0.5645969",
"0.5626472",
"0.5625065",
"0.5624844",
"0.5616213",
"0.55998164",
"0.55951893",
"0.5592924",
"0.5588253",
"0.5577662",
"0.5577662",
"0.55657035",
"0.55656666",
"0.55656666",
"0.55544376",
"0.5533176",
"0.5527196",
"0.54986906",
"0.54986906",
"0.5492876",
"0.54905546",
"0.54905546",
"0.54693913",
"0.54597837",
"0.54589385",
"0.5452811",
"0.54491216",
"0.54491216",
"0.54491216",
"0.54491216",
"0.54491216",
"0.54491216",
"0.5449008",
"0.5448497",
"0.54455495",
"0.54455495",
"0.54448324",
"0.5438835",
"0.54338026",
"0.5433543",
"0.54281235",
"0.54033536",
"0.5401292",
"0.53787214",
"0.5375006",
"0.5366623",
"0.536465",
"0.5363811",
"0.5360355",
"0.53602225",
"0.534688",
"0.5345661",
"0.5344859",
"0.53440034",
"0.5343631",
"0.5332076",
"0.53311634",
"0.5329203",
"0.53145075",
"0.5312506",
"0.5306316",
"0.53019345",
"0.53012925"
] |
0.7239061
|
0
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.