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
end of the method
public boolean updateRatingByBookId (String newRate, int bookId) { String stmnt = String.format( "UPDATE book " + "SET rating = %d " + "WHERE book_ID = %d", newRate, bookId); //Test! System.out.println("Statement: \n" + stmnt); int result = executeUpdate(stmnt); if (result == -1) return false; else return true; }
{ "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\r\n protected void end() {\r\n\r\n }", "@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void end() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\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 protected void end() {\n\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\r\n\tprotected void end() {\r\n\t}", "@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n protected void end() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n public void memoria() {\n \n }", "public void Exterior() {\n\t\t\r\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void end() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void baocun() {\n\t\t\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void processing() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private void sub() {\n\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "protected void end() {\n\r\n\t}", "@Override\n \tpublic void finished()\n \t{\n \t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "private void verificaData() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "protected void end()\n\t{\n\t}", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\n\t\t\t\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n public void end() {\n }", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}" ]
[ "0.6991654", "0.68388873", "0.6755269", "0.674208", "0.6627589", "0.65728456", "0.6569988", "0.65495783", "0.65220946", "0.6514692", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.65065765", "0.6505632", "0.6488729", "0.64881915", "0.648438", "0.648438", "0.648438", "0.6481978", "0.6481978", "0.64734185", "0.64647704", "0.64496243", "0.6447061", "0.64334697", "0.64279705", "0.64279705", "0.641155", "0.641155", "0.6404587", "0.63975656", "0.63863", "0.6372748", "0.6360571", "0.6350553", "0.6346596", "0.63393706", "0.63393706", "0.63393706", "0.63393706", "0.6326959", "0.6310826", "0.6310826", "0.6310826", "0.6310212", "0.62966734", "0.6295669", "0.6272068", "0.62690246", "0.6268641", "0.62591535", "0.62398076", "0.6232972", "0.6223094", "0.62099344", "0.62093705", "0.6200305", "0.6198104", "0.6197364", "0.6197364", "0.61725694", "0.6138854", "0.6131975", "0.6128089", "0.61157286", "0.6115163", "0.61125904", "0.6106285", "0.6104363", "0.60878885", "0.6085977", "0.60845304", "0.6080036", "0.6079142", "0.6069178", "0.60590786", "0.60536104", "0.60536104", "0.60482544", "0.6042814", "0.6042289", "0.6032391", "0.60258657", "0.6016553", "0.6014849", "0.6009427", "0.60082775", "0.60072905", "0.600662", "0.600662" ]
0.0
-1
end of the method
public Book[] getRecommendBook(){ String stmnt = String.format( "SELECT * FROM book " ); ResultSet rs = executeQuery(stmnt); ArrayList<Book> arr = resultSetPacker(rs, Book.class); return arr.toArray(new Book[arr.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\r\n protected void end() {\r\n\r\n }", "@Override\n\t\t\tpublic void end() {\n\t\t\t\t\n\t\t\t}", "@Override\n public void perish() {\n \n }", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tprotected void end() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n \n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\n\n\t}", "@Override\n\tprotected void end() {\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 protected void end() {\n\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\r\n\tprotected void end() {\n\r\n\t}", "@Override\r\n\tprotected void end() {\r\n\t}", "@Override\n\t\tpublic void end() {\n\t\t\t\n\t\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n protected void end() {\n }", "public void smell() {\n\t\t\n\t}", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void end() {\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "@Override\r\n\tprotected void processFinish() {\n\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n public void memoria() {\n \n }", "public void Exterior() {\n\t\t\r\n\t}", "private static void iterator() {\n\t\t\r\n\t}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "private stendhal() {\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void end() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "public void baocun() {\n\t\t\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n\tpublic void processing() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private void sub() {\n\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void doNext() {\n\t\t\r\n\t}", "protected void end() {\n\r\n\t}", "@Override\n \tpublic void finished()\n \t{\n \t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "private void verificaData() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "protected void end()\n\t{\n\t}", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\n\t\t\t\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void poetries() {\n\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void verkaufen() {\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n public void end() {\n }", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void onFinish() {\n\t\t\t\t\t}" ]
[ "0.6991654", "0.68388873", "0.6755269", "0.674208", "0.6627589", "0.65728456", "0.6569988", "0.65495783", "0.65220946", "0.6514692", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.6514359", "0.65065765", "0.6505632", "0.6488729", "0.64881915", "0.648438", "0.648438", "0.648438", "0.6481978", "0.6481978", "0.64734185", "0.64647704", "0.64496243", "0.6447061", "0.64334697", "0.64279705", "0.64279705", "0.641155", "0.641155", "0.6404587", "0.63975656", "0.63863", "0.6372748", "0.6360571", "0.6350553", "0.6346596", "0.63393706", "0.63393706", "0.63393706", "0.63393706", "0.6326959", "0.6310826", "0.6310826", "0.6310826", "0.6310212", "0.62966734", "0.6295669", "0.6272068", "0.62690246", "0.6268641", "0.62591535", "0.62398076", "0.6232972", "0.6223094", "0.62099344", "0.62093705", "0.6200305", "0.6198104", "0.6197364", "0.6197364", "0.61725694", "0.6138854", "0.6131975", "0.6128089", "0.61157286", "0.6115163", "0.61125904", "0.6106285", "0.6104363", "0.60878885", "0.6085977", "0.60845304", "0.6080036", "0.6079142", "0.6069178", "0.60590786", "0.60536104", "0.60536104", "0.60482544", "0.6042814", "0.6042289", "0.6032391", "0.60258657", "0.6016553", "0.6014849", "0.6009427", "0.60082775", "0.60072905", "0.600662", "0.600662" ]
0.0
-1
This is the common interface for all WebSocket messages. Note: Use this interface in the application level only and only if the user needs only the channel details of a WebSocket message otherwise use the extensions of this interface.
public interface WebSocketMessage { /** * Retrieve the target of the application as a String. * * @return the target of the application. */ String getTarget(); /** * Check whether the message is coming from server connector or client connector. * * @return true if the message is coming from server connector else return false if the message is coming from * client connector. */ boolean isServerMessage(); /** * Retrieve the session of the connection. * * @return the session of the connection. */ WebSocketConnection getWebSocketConnection(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void onMessage(WebSocket webSocket, ByteString bytes) {\n }", "public void onMessage(WebSocket conn, String message);", "@Override\n public void onMessage(WebSocket webSocket, String text) {\n Message msg=new Message();\n msg.what=0x666;\n msg.obj=text;\n handler.sendMessage(msg);\n }", "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}", "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 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}", "@Override\n public void onMessage(WebSocket webSocket, ByteString bytes) {\n Message msg=new Message();\n msg.what=0x666;\n msg.obj=new String(bytes.toByteArray());\n handler.sendMessage(msg);\n }", "public abstract DefaultWOWebSocket create(Channel channel);", "WebSocketConnection getWebSocketConnection();", "@Override\n\t\t\tpublic void onMessage(WebSocket conn, String message) {\n\t\t\t\tif(listener!=null) listener.onMessage(\"\"+message);\n\t\t\t}", "public abstract void message(String channel, String message);", "@Override\n public void handleMessage(WebSocketSession session, WebSocketMessage<?> message) {\n listener.update(String.valueOf(message.getPayload()));\n }", "public interface MsgListener {\n\n public void handlerMsg(Channel ctx, SocketMsg msg);\n}", "public interface WebSocketSessionAware {\n void setWebSocketSession(WebSocketSession webSocketSession);\n}", "public interface MessageInterface {\n\t\n\t/** \n\t * Get Message type.<br>\n\t * \n\t * Operations on Server operate based on the Message type. A type can never be overridden.\n\t * @return A String for the Message type.\n\t */\n\tString getType();\n\n\t/** \n\t * Set Message status.<br>\n\t * \n\t * Message status can be used for validation of operations. All Client Messages will receive a reply from the Server. \n\t * The Client can use the Status to determine the success or failure of an operation.<br>\n\t * \n\t * @return A String for the Message type.\n\t */\n\tvoid setStatus(String status);\n\n\t/** \n\t * Get Message status.<br>\n\t * \n\t * Message status can be used for validation of operations. All Client Messages will receive a reply from the Server.<br> \n\t * The Client can use the Status to determine the success or failure of an operation.\n\t * \n\t */\n\tString getStatus();\n\t\n\t/** \n\t * Set Message content.<br>\n\t * \n\t * Each Message contains a payload that is used for operations. Such operations will require that content for the operation to work. \n\t */\n\tvoid setContent(Map<String, Object> content);\n\t\n\t/** \n\t * Get Message content.<br>\n\t * \n\t * Each Message contains a payload that is used for operations. Such operations will require that content for the operation to work. \n\t * \n\t * @return A Map containing content.\n\t */\n\tMap<String, Object> getContent();\n}", "public interface SocketMessageListerner {\n void onGetMessageAck(Message message, int type);\n}", "void handleIncoming(@Nonnull WebSocket socket, @Nonnull String data);", "@Override public final void message(RequestBody message) throws IOException {\n if (message == null) throw new NullPointerException(\"message == null\");\n if (senderSentClose) throw new IllegalStateException(\"closed\");\n if (senderWantsClose) throw new IllegalStateException(\"must call close()\");\n if (Thread.currentThread() == looperThread) {\n throw new IllegalStateException(\"attempting to write from reader thread\");\n }\n\n MediaType contentType = message.contentType();\n if (contentType == null) {\n throw new IllegalArgumentException(\n \"Message content type was null. Must use WebSocket.TEXT or WebSocket.BINARY.\");\n }\n String contentSubtype = contentType.subtype();\n\n int formatOpcode;\n if (WebSocket.TEXT.subtype().equals(contentSubtype)) {\n formatOpcode = WebSocketProtocol.OPCODE_TEXT;\n } else if (WebSocket.BINARY.subtype().equals(contentSubtype)) {\n formatOpcode = WebSocketProtocol.OPCODE_BINARY;\n } else {\n throw new IllegalArgumentException(\"Unknown message content type: \"\n + contentType.type() + \"/\" + contentType.subtype() // Omit any implicitly added charset.\n + \". Must use WebSocket.TEXT or WebSocket.BINARY.\");\n }\n\n BufferedSink sink = Okio.buffer(writer.newMessageSink(formatOpcode, message.contentLength()));\n try {\n message.writeTo(sink);\n sink.close();\n } catch (IOException e) {\n senderWantsClose = true;\n throw e;\n }\n }", "public interface MessageInputChannel extends\r\n Channel<MessageInput, MessageInputChannelAPI>, OneDimensional, MessageCallback {\r\n\r\n}", "public interface Channel\r\n{\r\n /**\r\n * Get a duplex connection for this channel. This method must be called for each request-response message exchange.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n DuplexConnection getDuplex(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a send-only connection for this channel. This method must be called for each message to be sent without a\r\n * response.\r\n * @param msgProps message specific properties\r\n * @param xmlOptions XML formatting options\r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n OutConnection getOutbound(MessageProperties msgProps, XmlOptions xmlOptions) throws IOException, \r\n WsConfigurationException;\r\n \r\n /**\r\n * Get a receive-only connection for this channel. This method must be called for each message to be received, and\r\n * will wait for a message to be available before returning.\r\n * \r\n * @return connection\r\n * @throws IOException on I/O error\r\n * @throws WsConfigurationException on configuration error\r\n */\r\n InConnection getInbound() throws IOException, WsConfigurationException;\r\n \r\n /**\r\n * Close the channel. Implementations should disconnect and free any resources allocated to the channel.\r\n * @throws IOException on I/O error\r\n */\r\n void close() throws IOException;\r\n}", "public interface MessageListener extends Listener {\n void onMessage(String roomId, MessageObject object);\n void onAgentDisconnect(String roomId, MessageObject object);\n}", "public void onOpen(WebSocket conn);", "public interface IReceiveMessage {\n void onConnectSuccess();// 连接成功\n\n void onConnectFailed();// 连接失败\n\n void onClose(); // 关闭\n\n void onMessage(String text);\n}", "public interface ClientMessage extends Message {\n}", "abstract void onMessage(byte[] message);", "@OnWebSocketMessage\n public void recibiendoMensaje(Session usuario, String message) {\n\n\n System.out.println(\"Recibiendo del cliente: \"+usuario.getLocalAddress().getAddress().toString()+\" - Mensaje \"+message);\n try {\n\n String[] mensaje = message.split(\"~\") ;\n\n\n\n System.out.println(mensaje[0]);\n System.out.println(mensaje[1]);\n\n\n switch (mensaje[1]){\n\n case \"iniciarSesion\":\n usuarios.put(usuario, mensaje[0].trim());\n sesiones.put(mensaje[0].trim(), usuario);\n\n break;\n case \"iniciarSesionAdmin\":\n sesionAdmin = usuario;\n break;\n case \"mensajeNuevo\":\n\n if(sesionAdmin != null){\n System.out.println(mensaje[0]);\n sesionAdmin.getRemote().sendString(mensaje[0] +\"~\"+ usuarios.get(usuario) );\n }\n break;\n\n case \"mensajeNuevoAdmin\":\n String destino = mensaje[2];\n\n Session sesionDestino = sesiones.get(destino);\n if(sesionDestino != null){\n System.out.println(destino);\n sesionDestino.getRemote().sendString(mensaje[0] +\"~\"+sesiones.get(usuario));\n }\n break;\n\n\n }\n\n\n\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public interface Message extends Serializable {\n\t/**\n\t * set current message object\n\t * @param messageObject\n\t * @throws UtilsException\n\t */\n\tpublic void setObjet(Object messageObject) throws UtilsException;\n\t\n\t/**\n\t * return current's message object\n\t * @return\n\t */\n\tpublic Object getObject() ;\n\t\n\t/**\n\t * return true if this message match filter\n\t * @param filter\n\t * @return\n\t */\n\tpublic boolean matchFilter(Map<String,String> filter);\n\t\n\t/**\n\t * add a new text property to current message\n\t * @param propertyName\n\t * @param propertyValue\n\t * @throws UtilsException\n\t */\n\tpublic void setStringProperty(String propertyName,String propertyValue) throws UtilsException;\n\n\tvoid rewriteStringProperty(String propertyName,String propertyValue) throws UtilsException;\n\t\n\t/**\n\t * return value of property propertyName\n\t * @param propertyName\n\t * @return\n\t */\n\tpublic String getStringProperty(String propertyName) ;\n}", "void send(IMessage message, IChannel channel);", "void onMessage(String pattern, String channel, String message);", "public void onMessage(Session session, Object message) throws IOException {\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 }", "public interface MessageHandler {\n void onMessage(final byte messageType, final int messageId, final byte[] buffer, final int startIndex, final int length);\n}", "protected void onMessage(String channel, String sender, String login, String realName, String message) {}", "public interface WebsocketService {\n\t\n\t/****************************** NAV ******************************/\n\tpublic List<NavJson> getNavs(Parameter param);\n}", "public interface MessageTransceiver {\n\n public void shutdown();\n\n public void send(Serializable message) throws MessageException;\n\n public void addMessageListener(MessageListener l);\n\n public void removeMessageListener(MessageListener l);\n\n}", "@Override\n public void onMessage(String data) {\n\n log.e(\"ipcChannel received message: [\" + data + \"]\");\n\n try {\n JSONObject json = new JSONObject(data);\n\n onIpcMessage(json);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "@OnMessage\n public void onMessage(Session session, String jsonStr) throws IOException, EncodeException {\n //TODO: add send message.\n // See how to parse JSON strings into Java objects: https://www.baeldung.com/fastjson\n Message newMessage = JSON.parseObject(jsonStr, Message.class);\n\n System.out.println(\"WebSocketChatServer - Message \" + jsonStr + \" received from client with username \" + newMessage.getUsername() + \", message \" + newMessage.getMsg() + \", type \" + newMessage.getType() + \", onlineCount \" + newMessage.getOnlineCount() + \" and session \" + session);\n\n sendMessageToAll(newMessage);\n }", "@Override\n\tprotected void channelRead0(ChannelHandlerContext ctx, WsClientMessage msg) throws Exception {\n\t}", "@Override\n public void onMessageReceived(RemoteMessage remoteMessage) {\n }", "public interface SendMessageListener {\n abstract void onSendOK(Message msg);\n\n abstract void onSendFailed(Message msg, String reason);\n}", "@Nonnull WebSocket initialize(WebSocket socket);", "@Override\n public void handleMessage(Message message) {}", "public abstract void sendMessage(String message);", "public void sendMessage(WebSocketSession session, MessageEntity message) throws JsonProcessingException {\n\n ObjectMapper mapper = new ObjectMapper();\n String jsonStringMessage = mapper.writeValueAsString(message);\n TextMessage msg = new TextMessage(jsonStringMessage);\n\n try {\n\n session.sendMessage(msg);\n } catch (IOException e) {\n\n e.printStackTrace();\n }\n }", "public interface IMessageService {\n\n /**\n * Notifies subscribed clients with the given message.\n *\n * @param m Message (e.g. object, status, warning)\n */\n void notify(Message m);\n\n /**\n * Notifies subscribed clients with the given message.\n *\n * @param m Message (e.g. object, status, warning)\n */\n void notify(PushMessage m);\n\n /**\n * Notifies subscribed clients with the given message and push-type (e.g. ALERT)\n * \n * @param data message which should be send to the client\n * @param type type of the notification (manual step, ...)\n */\n void notify(String data, PushType type);\n\n /**\n * Subscribes a client for push-notifications.\n *\n * @param id id of the client (address)\n */\n void subscribe(String id);\n\n /**\n * unsubscribes a client for push-notifications.\n *\n * @param id id of the client (address)\n */\n void unsubscribe(String id);\n\n /**\n * Informs all subscribed devices that something went wrong and the brewing process wasnt\n * successfull and could cause damage\n * \n * @param text message which should be shown to the user\n */\n void alarm(String text);\n}", "private static void sendMessageToAll(Message msg) throws IOException, EncodeException {\n String jsonStr = JSON.toJSONString(msg);\n\n for (String key : onlineSessions.keySet()) {\n System.out.println(\"WebSocketChatServer - Message \" + jsonStr + \" sent to client with username \" + key + \" and session \" + onlineSessions.get(key));\n System.out.println(key + \" : \" + onlineSessions.get(key));\n try {\n onlineSessions.get(key).getBasicRemote().sendObject(msg);\n } catch (IOException | EncodeException error) {\n error.printStackTrace();\n }\n }\n }", "public interface MessagingService {\n\n /**\n * Checks whether message receivers are registered for this channel.\n * \n * @param ccid the channel id\n * @return <code>true</code> if there are message receivers on this channel,\n * <code>false</code> if not.\n */\n boolean hasMessageReceiver(String ccid);\n\n /**\n * Passes the message to the registered message receiver.\n * \n * @param ccid the channel to pass the message on\n * @param serializedMessage the message to send (serialized SMRF message)\n */\n void passMessageToReceiver(String ccid, byte[] serializedMessage);\n\n /**\n * Check whether the messaging component is responsible to send messages on\n * this channel.<br>\n * \n * In scenarios with only one messaging component, this will always return\n * <code>true</code>. In scenarios in which channels are assigned to several\n * messaging components, only the component that the channel was assigned\n * to, returns <code>true</code>.\n * \n * @param ccid\n * the channel ID or cluster controller ID, respectively.\n * @return <code>true</code> if the messaging component is responsible for\n * forwarding messages on this channel, <code>false</code>\n * otherwise.\n */\n boolean isAssignedForChannel(String ccid);\n\n /**\n * Check whether the messaging component was responsible before but the\n * channel has been assigned to a new messaging component in the mean time.\n * \n * @param ccid the channel id\n * @return <code>true</code> if the messaging component was responsible\n * before but isn't any more, <code>false</code> if it either never\n * was responsible or still is responsible.\n */\n boolean hasChannelAssignmentMoved(String ccid);\n}", "public interface RecivMessageCallBack {\n\n\tpublic List<AppServerType> getServerType();\n\n\tpublic void onRecivMessage(Channel ctx, NettyMessage message, String tag, JsonParser parser)throws UnsupportedEncodingException;\n}", "public void onMessage(Session session);", "@Override\r\n public void handleMessage(Message msg) {\n }", "public interface ISendingMessage {\n void send(Message message);\n\n String checkMessageStatus(Message message);\n}", "public interface MessageSender {\n /**\n * @return This sender's topic.\n */\n String getTopic();\n\n /**\n * Sends a message.\n *\n * @param message The message to send.\n * @throws MessagingException If there is a message transport problem.\n */\n void sendMessage(byte[] message) throws MessagingException;\n}", "public interface WebsocketConfig {\n static final String WSURI = \"ws://192.168.20.3:8084/prospect\";\n}", "@Override\n public void OnMessage(User user, byte[] bytes) {\n throw new UnsupportedOperationException(\"Unimplemented method 'OnMessage'\");\n }", "public interface MessagingQueueListener {\n\n void onMessage(MessageEvent messageEvent);\n}", "@Override\n\tpublic String getMessageDestination() {\n\t\treturn channelName;\n\t}", "@Override\n\tpublic void onMessageRecieved(Message arg0) {\n\t\t\n\t}", "@OnMessage\n public void onMessage(String message, Session session) throws TwitterException, IOException, InterruptedException, ExecutionException, JSONException {\n if (WebsocketServer.session == session) {\n System.out.println(\"Message from \" + session.getId() + \": \" + message);\n \n JSONObject data = new JSONObject(message);\n String messageType = data.getString(\"message\");\n\n switch(messageType) {\n case \"startStreaming\":\n // Initialize application's access token.\n streaming.initializeToken();\n break;\n case \"accessTokenPin\":\n streaming.createApplicationAccessToken(data.getString(\"pin\"));\n break;\n case \"stopStreaming\":\n streaming.stopStreaming();\n break;\n }\n }\n }", "public interface IMessage {\n\t\n\t/**\n\t * Returns the text of the message.\n\t * \n\t * @return The text of the message.\n\t */\n\tpublic String getMessageText();\n\t\n\t/**\n\t * Returns the HTML-formatted text of the message.\n\t * \n\t * @return The HTML-formatted text of the message.\n\t */\t\n\tpublic String getMessageTextAsHTML();\n}", "private ClientContainer getWebSocketsContainer(){\n return ( ClientContainer ) ContainerProvider.getWebSocketContainer(); \n }", "void handleMessage(byte messageType, Object message);", "@Override\n public void handleTextMessage(WebSocketSession session, TextMessage message) throws IOException{\n Map data = new Gson().fromJson(message.getPayload(),Map.class);\n\n // see what type of message\n final String type = getValueFromMessage(message,\"type\");\n\n switch (type){\n case \"name\":\n // payload from frontend\n String username = getValueFromMessage(message,\"payload\");\n\n log.info(\"receive name: \"+ username);\n\n // build message to json\n TextMessage retJson = setJson(\"name\", \"Hi, \"+username);\n\n session.sendMessage(retJson);\n }\n }", "private MessageChannel createMessageChannel(String channelName) {\n String url = \"ws://127.0.0.1:9439/channels/\" + channelName;\n\n MessageChannel channel = new ReceiverMessageChannel(channelName, url) {\n @Override\n public void onOpen(String data) {\n // TODO Auto-generated method stub\n\n log.e(\"Receiver default message channel open!!! \" + data);\n }\n\n @Override\n public void onClose(String data) {\n // TODO Auto-generated method stub\n\n log.e(\"Receiver default message channel close!!! \" + data);\n }\n\n @Override\n public void onError(String data) {\n // TODO Auto-generated method stub\n\n log.e(\"Receiver default message channel error!!! \" + data);\n }\n };\n\n return channel;\n }", "@Override\n public void receiveMessage(String message) {\n }", "@Override\n\t\tpublic void onMessage(String msg) {\n\t\t\tif(msg.equals(\"update\")) {\n\t\t\t\tAuctionList al = new AuctionList();\n\t\t\t\tal.refreshAuction();\n\t\t\t}\n\t\t\tfor (ChatWebSocket member : webSockets) {\n\t\t try {\n\t\t member.connection.sendMessage(msg);\n\t\t \n\t\t } catch(IOException e) {\n\t\t \te.printStackTrace();\n\t\t }\n\t\t }\n\t\t}", "public void OnMessageReceived(String msg);", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}", "@Override\n public void onTextMessage(WebSocket websocket, String message) throws Exception {\n String path = Environment.getExternalStorageDirectory() + \"/Documents/text.txt\";\n SaveTextFile(path, message);\n }", "public int publishToWsSession(String wsSessionId, Message message);", "BaseComponent[] getChannelsJoinedMessage();", "@Override\r\n\tpublic void onError(WebSocket conn, Exception ex) {\n\r\n\t}", "public IChannel getChannel() {\n\t\treturn message.getChannel();\n\t}", "public interface MessageReceiver {\n public void receiveMessage(String message);\n}", "@Override\n public void registerStompEndpoints(StompEndpointRegistry registry) {\n registry.addEndpoint(\"/messages\").withSockJS();\n }", "public interface IMessageCodec\n{\n\t/**\n\t * Decodes a message.\n\t * <p>\n\t * @param encoded {@link ByteBuffer} containing the encoded form of the\n\t * message to decode.\n\t * @return Decoded {@link IMessage}.\n\t * @throws MessageDecodingException Thrown if an error occurs while trying\n\t * to decode the message.\n\t */\n\tIMessage decodeMessage(final ByteBuffer encoded) throws MessageDecodingException;\n\n\t/**\n\t * Encodes a message.\n\t * <p>\n\t * @param message {@link IMessage} to encode.\n\t * @return A {@link ByteBuffer} containing the encoded form of the message.\n\t * @throws MessageEncodingException Thrown if an error occurs while trying\n\t * to encode the message.\n\t */\n\tByteBuffer encodeMessage(final IMessage message) throws MessageEncodingException;\n}", "@Override\n\tpublic void onMessage(Object arg0) {\n\t\t\n\t}", "public interface ChannelsService {\n\n /**\n * Gets the Facebook data-ref to create send to messenger button.\n *\n * @param callback Callback with the result.\n */\n void createFbOptInState(@Nullable Callback<ComapiResult<String>> callback);\n }", "public interface MessageReceived {\n void onMessageReceived(String message);\n}", "void onMessageReceived(Message message);", "private SocketMessage() {\n initFields();\n }", "@OnWebSocketMessage\n\tpublic void onText(Session session, String message) throws IOException {\n\t\tif (onMessageEvent != null) {\n\t\t\ttry {\n\t\t\t\tonMessageEvent.invoke(parent, message);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.err\n\t\t\t\t\t\t.println(\"Disabling webSocketEvent() because of an error.\");\n\t\t\t\te.printStackTrace();\n\t\t\t\tonMessageEvent = null;\n\t\t\t}\n\t\t}\n\t}", "public interface OnMessageReceived {\n public void messageReceived(String message);\n }", "public interface WebsocketLocalOutputCallbackRegisterService {\n\n public void subscribe(int tenantId, String adaptorName, String topic, Session session);\n\n public void unsubscribe(int tenantId, String adaptorName, String topic, Session session);\n}", "@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}", "SocketChannel getChannel();", "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 }", "@Override\n public void onMessage(WebSocketConnection connection, String message) {\n try{\n \n ScriptCheck s= new ScriptCheck();\n message = s.removeScript(message);\n \n Calendar cal = Calendar.getInstance();\n cal.getTime();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy/MM/dd 'at' HH:mm:ss\");\n Reference.audit.add(sdf.format(cal.getTime())+\", \"+ message);\n \n \n String pieces[] = message.split(\",\");\n System.out.println(\"recievedMessage Chat\");\n \n \n\n //send message to all client\n if(pieces[0].equals(\"message\"))\n {\n System.out.println(\"master id: \"+ pieces[pieces.length-1]);\n for(int x=0; x<clients.size();x++)\n {\n System.out.println(\"message id: \"+ projectIdReference.get(x));\n if(!clients.get(x).equals(connection) && projectIdReference.get(x).equals(pieces[pieces.length-1]))\n {\n clients.get(x).send(pieces[1]);\n }\n }\n }else if(pieces[0].equals(\"join\"))\n {\n for (int i = 0; i < clients.size(); i++) {\n if(connection.equals(clients.get(i)))\n {\n projectIdReference.set(i, pieces[pieces.length-1]);\n System.out.println(\"set value: \"+ projectIdReference.get(i)); \n }\n }\n }\n \n }catch(Exception e)\n {\n System.out.println(\"ChatSocket.java, on message\");\n } \n }", "@Override\r\n\tpublic void onClose(WebSocket conn, int code, String reason, boolean remote) {\n\r\n\t}", "@Override\n\tpublic void configure(WebSocketServletFactory arg0) {\n\t\tthrow new UnsupportedOperationException(\"not yet implemented\");\n\t}", "abstract public Object handleMessage(Object message) throws Exception;", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "public interface OnMessageReceived {\n void messageReceived(String message);\n }", "protected abstract MessageType getMessageType();", "public interface SendMessage {\n\n void sendMsg(byte[] msg);\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 }", "public abstract void messageReceived(String message);", "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 }", "private Message onMessageReceived(String message, DecentSocket origin) {\n\t\tGson gson = new Gson();\n\t\tJsonObject messageObj = JsonParser.parseString(message).getAsJsonObject();\n\t\t//Timestamp member required for all messages\n\t\tif(messageObj.has(\"timestamp\")) {\n\t\t\tString type = messageObj.get(\"type\").getAsString();\n\t\t\tswitch(type) {\n\t\t\t\tcase \"chat\":\n\t\t\t\t\tchatMessageCallback.apply(gson.fromJson(message, ChatMessage.class), origin);\n\t\t\t\t\tbreak;\n\t\t\t\tcase \"peerAsk\":\n\t\t\t\t\treturn onPeerAskMessageReceived(gson.fromJson(message, PeerAskMessage.class), origin);\n\t\t\t\tcase \"peers\":\n\t\t\t\t\treturn onPeersMessageReceived(gson.fromJson(message, PeersMessage.class), origin);\n\t\t\t\tcase \"ping\":\n\t\t\t\t\treturn onPingMessageReceived(gson.fromJson(message, PingMessage.class), origin);\n\t\t\t\tcase \"pong\":\n\t\t\t\t\treturn onPongMessageReceived(gson.fromJson(message, PongMessage.class), origin);\n\t\t\t\tcase \"historyAsk\":\n\t\t\t\t\treturn onHistoryAskMessageReceived(gson.fromJson(message, HistoryAskMessage.class), origin);\n\t\t\t\tcase \"history\":\n\t\t\t\t\treturn onHistoryMessageReceived(gson.fromJson(message, HistoryMessage.class), origin);\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "public interface MessageSender {\n\tpublic void enqueueMessage(Message m);\n}", "public interface Message extends Serializable {\n\t/**\n\t * Kui server saab kliendi sõnumi vastu\n\t * @param s kliendi sessioon\n\t */\n\tvoid onReceive(ClientSession s);\n\t/**\n\t * Kui klient võtab serveri sõnumi\n\t * \n\t * @param c - Client\n\t */\n\tvoid onReceive(Client c);\n\t/**\n\t * Meetod tagastab adressaadi.\n\t * @return aadress, kellele sõnu saadetakse\n\t */\n\tString getAdress();\n}" ]
[ "0.73918873", "0.70866746", "0.70206475", "0.7016645", "0.6976152", "0.6923133", "0.68981016", "0.66634387", "0.6576386", "0.65760434", "0.65724766", "0.65194553", "0.6214973", "0.6188075", "0.6149522", "0.60786915", "0.60701936", "0.5942596", "0.5925411", "0.591324", "0.5893017", "0.5892969", "0.58685225", "0.5850589", "0.5847513", "0.58451104", "0.5826395", "0.5813012", "0.57641387", "0.57548314", "0.57408506", "0.57348275", "0.57278", "0.57119364", "0.5700491", "0.5696242", "0.5692452", "0.5671762", "0.5668984", "0.56639224", "0.56506634", "0.5648965", "0.56480813", "0.56457293", "0.5640861", "0.56334275", "0.56300896", "0.5617393", "0.56082886", "0.5606403", "0.56051266", "0.5601704", "0.5595974", "0.5593928", "0.5584688", "0.55783", "0.5548911", "0.5545901", "0.5545597", "0.5537454", "0.5531619", "0.55165327", "0.55149275", "0.5505254", "0.55042917", "0.5501441", "0.55012697", "0.5498529", "0.5470507", "0.5452264", "0.5449507", "0.54484373", "0.54341394", "0.5432863", "0.5429971", "0.54296553", "0.54258883", "0.5409214", "0.5403717", "0.540337", "0.54015636", "0.5398964", "0.53869003", "0.5386152", "0.5384529", "0.53841966", "0.53780055", "0.5370168", "0.53671396", "0.53657603", "0.5364395", "0.53623945", "0.53618073", "0.53601336", "0.5359785", "0.53582656", "0.5356428", "0.53529125", "0.53518164", "0.5346824" ]
0.82257843
0
Retrieve the target of the application as a String.
String getTarget();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getTarget() {\n return target;\n }", "public String getTarget() {\n return target;\n }", "public String getTarget() {\n return target;\n }", "public String getTarget()\r\n\t{\r\n\t\treturn _target;\r\n\t}", "public String getTarget() {\n return this.target;\n }", "java.lang.String getTarget();", "java.lang.String getTarget();", "public String getTarget() {\n return JsoHelper.getAttribute(jsObj, \"target\");\n }", "String getTarget() {\r\n return this.target;\r\n }", "public String getCurrentTarget() {\r\n\t\treturn dbVersion.getTarget();\r\n\t}", "public String getApp();", "URL getTarget();", "String getExecutable();", "public static String getLogTarget()\n {\n return BaseBoot.getInstance().getGlobalConfig().getConfigProperty\n (LOGTARGET, LOGTARGET_DEFAULT);\n }", "public java.lang.String getTargetPath() {\n java.lang.Object ref = targetPath_;\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 targetPath_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public String getExecutable();", "public static String getAppBuild() {\n \t\tif (props.containsKey(\"app.build\")) {\n \t\t\treturn props.getProperty(\"app.build\");\n \t\t} else {\n \t\t\treturn \"unspecified\";\n \t\t}\n \t}", "public String getTargetName() {\n return this.targetName;\n }", "public final String getTargetString() {\n/* 97 */ return this.m_targetString;\n/* */ }", "public java.lang.String getTargetPath() {\n java.lang.Object ref = targetPath_;\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 targetPath_ = s;\n return s;\n }\n }", "public String getThisApplicationUrl() {\n\t\tString tempFileDest = getProperties().getProperty(\"temp.file.dest\").trim();\n\t\tString thisApplicationUrl = null;\n\t\tif(tempFileDest != null && tempFileDest.contains(\"mysunflower\")){\n\t\t\tthisApplicationUrl = getPortalApplicationUrl();\n\t\t}else{\n\t\t\tthisApplicationUrl = getApplicationUrl();\n\t\t}\n\t\treturn thisApplicationUrl;\n\t}", "public String getTargetName() {\n\t\treturn targetName;\n\t}", "public String getApplication() {\r\n return application;\r\n }", "java.lang.String getAppName();", "java.lang.String getAppName();", "java.lang.String getAppName();", "public Name getTarget() {\n\t\treturn getSingleName();\n\t}", "@Override\n\tpublic String getApp() {\n\t\tthrow new UnsupportedOperationException(\"Not supported yet.\");\n\t}", "public java.lang.String getTargetName() {\n java.lang.Object ref = targetName_;\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 targetName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@NotNull\n public static String getTargetLabel(@NotNull IAndroidTarget target) {\n if (!target.isPlatform()) {\n return String.format(\"%1$s (API %2$s)\", target.getFullName(), target.getVersion().getApiString());\n }\n AndroidVersion version = target.getVersion();\n if (version.isPreview()) {\n return String.format(\"API %d+: %s\", target.getVersion().getApiLevel(), target.getName());\n }\n String name = SdkVersionInfo.getAndroidName(target.getVersion().getApiLevel());\n if (name != null) {\n return name;\n }\n String release = target.getProperty(\"ro.build.version.release\"); //$NON-NLS-1$\n if (release != null) {\n return String.format(\"API %1$d: Android %2$s\", version.getApiLevel(), release);\n }\n return String.format(\"API %1$d\", version.getApiLevel());\n }", "public java.lang.CharSequence getTargetObjectUri() {\n return target_object_uri;\n }", "public DvEHRURI getTarget() {\n return target;\n }", "public String getTargetUrl() {\n return targetUrl;\n }", "@Override\n\tpublic String toString() {\n\t\treturn this.app.toString();\n\t}", "public String getApplicationURL()\n\t{\n\t\tString url=pro.getProperty(\"baseURL\");\n\t\treturn url;\n\t}", "public java.lang.CharSequence getTargetObjectUri() {\n return target_object_uri;\n }", "public java.lang.String getTargetName() {\n java.lang.Object ref = targetName_;\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 targetName_ = s;\n return s;\n }\n }", "public String getApplication() {\r\n\t\treturn application;\r\n\t}", "public String getTargetProject() {\n return targetProject;\n }", "public Application getApplication() {\n return (Application)this.getSource();\n }", "public String getAppPathname();", "public String getSimulatorExecutable() {\n return simSpec.getSimExecutable();\n }", "String getTargetClient();", "String getIntegApplicationName();", "public String getAppName();", "public static String getExecutable() {\n \texecutable = getProperty(\"executable\");\n \tif (executable == null) executable = \"dot\";\n \treturn executable;\n }", "@Override\n public String getTarget()\n {\n return null;\n }", "String getExternalToolName();", "public Target getTarget() {\n\t\treturn target;\n\t}", "public Target getTarget() {\n\t\treturn target;\n\t}", "public Target getTarget() {\n\t\treturn target;\n\t}", "public java.lang.String getTargetJobName() {\n java.lang.Object ref = targetJobName_;\n if (ref instanceof java.lang.String) {\n return (java.lang.String) ref;\n } else {\n com.google.protobuf.ByteString bs = \n (com.google.protobuf.ByteString) ref;\n java.lang.String s = bs.toStringUtf8();\n if (bs.isValidUtf8()) {\n targetJobName_ = s;\n }\n return s;\n }\n }", "protected String getTargetClassName() {\r\n return m_targetClassName;\r\n }", "public String getDefaultTarget() {\n return defaultTarget;\n }", "public String\n getProgram() \n {\n if(PackageInfo.sOsType == OsType.Windows) \n return (\"winimage.exe\");\n return super.getProgram();\n }", "java.lang.String getTargetJobName();", "protected String getTargetTypeParameter() {\n if (!notEmpty(targetType)) {\n return null;\n }\n if (targetType.equals(\"exe\")) {\n return \"/exe\";\n } else if (targetType.equals(\"library\")) {\n return \"/dll\";\n } else {\n return null;\n }\n }", "public Target getTarget() {\n return target;\n }", "@Nullable\n @Generated\n @Selector(\"sourceApplication\")\n public native String sourceApplication();", "public java.lang.String getTargetJobName() {\n java.lang.Object ref = targetJobName_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n targetJobName_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "@Experimental\n @Returns(\"targetInfo\")\n TargetInfo getTargetInfo();", "private static String selectAppArguments(String targetApp) {\n\t\tString tmp = \"\";\n\t\tswitch(targetApp){\n\t\tcase \"NAVI\": \n\t\t\ttmp+=\"maps_size=\"+SimulationSetup.navigatorMapSize;\n\t\t\tbreak;\n\t\tcase \"ANTIVIRUS\":\n\t\t\ttmp+=\"file_size=\"+SimulationSetup.antivirusFileSize;\n\t\t\tbreak;\n\t\tcase \"FACEREC\":\n\t\t\ttmp+=\"image_size=\"+SimulationSetup.facerecImageSize;\n\t\t\tbreak;\n\t\tcase \"CHESS\":\n\t\t\ttmp+=\"chess_mi=\"+SimulationSetup.chess_mi;\n\t\t\tbreak;\n\t\tcase \"FACEBOOK\":\n\t\t\ttmp+=\"image_size=\"+SimulationSetup.facebookImageSize;\n\t\t\tbreak;\n\t\t}\n\t\treturn tmp;\n\t}", "public Target getTarget() {\n\n return target;\n }", "public String target(String target)\n {\n return target + \":\" + this.getPort();\n }", "public String getApplicationContext()\n {\n return configfile.getApplicationPath(getASPManager().getCurrentHostIndex());\n }", "public abstract String getTargetPackage();", "public abstract String getTargetPackage();", "public static String getAppName(){\r\n return getProperty(\"name\", \"Jin\");\r\n }", "public final String getAppName( )\n\t{\n\t\treturn this.data.getString( \"applicationName\" );\n\t}", "public String getApplicationPath()\n {\n return getApplicationPath(false);\n }", "private String getSource() {\n SharedPreferences settings =\n PreferenceManager.getDefaultSharedPreferences(Collect.getInstance().getBaseContext());\n String serverUrl = settings.getString(PreferencesActivity.KEY_SERVER_URL, null);\n String source = null;\n // Remove the protocol\n if(serverUrl.startsWith(\"http\")) {\n \tint idx = serverUrl.indexOf(\"//\");\n \tif(idx > 0) {\n \t\tsource = serverUrl.substring(idx + 2);\n \t} else {\n \t\tsource = serverUrl;\n \t}\n }\n \n return source;\n }", "@JsonProperty(\"target\")\n public String getTarget() {\n return target;\n }", "public java.lang.String getTargetNumber() {\r\n return targetNumber;\r\n }", "public abstract String getLaunchCommand();", "public String getDefaultApp()\n {\n if (defaultApp == null)\n {\n return apps.get(0).getName();\n }\n\n return defaultApp;\n }", "public String getToolString() {\r\n\t\treturn Utility.convertTo4Byte(ScoolConstants.NEW_WHITEBOARD_ACTION);\r\n\t}", "public String getDefaultTargetName()\n {\n if (defaultTargetAttribute != null)\n {\n return defaultTargetAttribute.getValue();\n }\n else\n {\n return \"\";\n }\n }", "public String getAppPackage() {\n\t\treturn fnh.getOutputAppPackage();\n\t}", "@AutoEscape\n\tpublic String getAppName();", "public java.lang.String getTargetServiceURL() {\r\n return targetServiceURL;\r\n }", "public TestExecutionTarget getTarget() {\n return this.target;\n }", "public static String getAppName()\n\t{\n\t\treturn APP_NAME;\n\t}", "private static Path getTargetPath() {\r\n return Paths.get(getBaseDir(), \"target\");\r\n }", "public String getFullName() {\n return getAndroidPackage() + \"/\" + getInstrumentationClass();\n }", "@objid (\"19651663-f981-4f11-802a-d5d7cbd6f88a\")\n Instance getTarget();", "@NotNull\n Resource getTarget();", "public String getProgram() {\n return program;\n }", "abstract public String getApplicationName();", "public String targetVmName() {\n return this.targetVmName;\n }", "public Object getTarget()\n {\n return __m_Target;\n }", "public String getSystemId() {\n return this.source.getURI();\n }", "public String getTargetTypeAsString() {\n\t\tString type = null;\n\t\t\n\t\tswitch (targetType) {\n\t\tcase PROCEDURE:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\tcase POLICY:\n\t\t\ttype = \"policy\";\n\t\t\tbreak;\n\t\tcase PROCESS:\n\t\t\ttype = \"process\";\n\t\t\tbreak;\n\t\tcase EXTERNAL:\n\t\t\ttype = \"external\";\n\t\t\tbreak;\n\t\tcase NOT_SET:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\tdefault:\n\t\t\ttype = \"procedure\";\n\t\t\tbreak;\n\t\t}\n\t\treturn type;\n\t}", "String fetchSubmitTarget() {\n return PageFlowContext.getOperationParameters().getProperty(\"submitTarget\");\n }", "public String getApplicationPresentation() {\n\t\treturn this.getApplicationName() + \" \" + this.getVersion();\n\t}", "public static String getAppPlatfrom() {\n\n\t\treturn \"android\";\n\t}", "@Override\n\tpublic final String getName() {\n\t\treturn getClass().getSimpleName().replaceAll(\"Application$\", \"\").toLowerCase();\n\t}", "public com.commercetools.api.models.common.Reference getTarget() {\n return this.target;\n }", "public YangString getSrvTargetNameValue() throws JNCException {\n return (YangString)getValue(\"srv-target-name\");\n }", "@DisplayName(\"The Target Comp ID for the Marketcetera Exchange Server\")\n public String getTargetCompID();" ]
[ "0.748561", "0.71715313", "0.71715313", "0.7159929", "0.7071812", "0.7051485", "0.7051485", "0.70125496", "0.6904676", "0.68057215", "0.67273253", "0.6648154", "0.64877486", "0.6486418", "0.64419127", "0.6397684", "0.63340795", "0.6308636", "0.6305811", "0.6275391", "0.6232252", "0.6152849", "0.61338425", "0.61107737", "0.61107737", "0.61107737", "0.61007017", "0.6089307", "0.60828215", "0.6075513", "0.605281", "0.604775", "0.6045404", "0.60303926", "0.6023538", "0.60025835", "0.6002", "0.59991336", "0.5994736", "0.5970535", "0.59681046", "0.59318966", "0.5900424", "0.5892847", "0.5871718", "0.5861137", "0.58598816", "0.58275914", "0.5827486", "0.5827486", "0.5827486", "0.57963645", "0.5794362", "0.5792754", "0.578656", "0.5782658", "0.5779438", "0.5776403", "0.5765595", "0.57652676", "0.57584363", "0.57526", "0.57505655", "0.5748584", "0.57440937", "0.57340497", "0.57340497", "0.5723864", "0.5712089", "0.5693908", "0.5676199", "0.56716055", "0.5660845", "0.56593794", "0.5655104", "0.5637806", "0.5625748", "0.56217563", "0.56204575", "0.56152946", "0.5602857", "0.55989033", "0.55988526", "0.5592959", "0.558417", "0.557416", "0.5564376", "0.5564249", "0.5541407", "0.5540172", "0.5520307", "0.55182856", "0.55090296", "0.5503779", "0.5482629", "0.5479533", "0.54717195", "0.54534316", "0.54496545" ]
0.7179036
2
Check whether the message is coming from server connector or client connector.
boolean isServerMessage();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isConnected() {\n\t\treturn (this.serverConnection!=null); \n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "private boolean checkConnection() {\n return isConnected = ConnectionReceiver.isConnected();\n }", "boolean isReceiving();", "protected abstract boolean isConnected();", "boolean hasProtocol();", "boolean isHello(ProtocolMessage message);", "boolean isSending();", "@Override\r\n\tpublic boolean isConnected(String remoteName) {\n\t\treturn objectServerInputPort.isConnected(remoteName);\r\n\t}", "boolean hasClientRequest();", "@Override\n\tpublic boolean canHandlerMessage(MessageBean bean) {\n\t\treturn bean.getSendType().equals(Config.SEND_TYPE_TOSERVER)&&bean.getMsgType().equals(Config.TYPE_EXIT_ROOM);\n\t}", "private boolean messageFilter(NettyMessage message)\n {\n try\n {\n\n String[] splits = message.getFormatStrings();;\n if ((message.getHeader().equals(\"FA\")||message.getHeader().equals(\"GB\"))&&splits.length==4)\n {\n isReconnect = false;\n close(false);\n currentMsg = message;\n Log.e(\"\",\n \"切换服务器\" + splits[splits.length - 2] + \"\" + Integer\n .valueOf(splits[splits.length - 1]));\n Thread.sleep(500);\n connect(splits[splits.length - 2],\n Integer.valueOf(splits[splits.length - 1]));\n return false;\n }\n else if (AppServerType.EX.toString()\n .equals(message.getHeader()) && \"100\".equals(splits[0]))\n {\n user = null;\n setCallingUser(null);\n isConnected = false;\n isReconnect = false;\n close(false);\n }\n else if (AppServerType.EX.toString()\n .equals(message.getHeader()) && \"0\".equals(splits[0]))\n {\n sleepTime = 10 * 1000;\n isLooping = false;\n reconnect();\n }\n else if (AppServerType.AB.toString()\n .equals(message.getHeader()))\n {\n NettyServer server = getServer(message.getCtxUTF8String());\n Log.e(\"Dudu_SDK\", \" NS:\" + (server == null));\n if (server != null)\n {\n connect(server.getIp(), server.getPort());\n }\n return false;\n }\n else if (AppServerType.RS.toString()\n .equals(message.getHeader()))\n {\n Responbean bean = (Responbean) parser.parseObject(splits[0],\n Responbean.class);\n if (\"FS\".equals(bean.getHeader()))\n {\n if (!splits[1].equals(callingUser.getUserid()))\n {\n return false;\n }\n }\n }\n commadFilter(message);\n // 处理特殊消息\n ServerFacoty.getInstance()\n .getUserserver()\n .CommadFilter(mChannel, message, parser);\n }\n catch (Exception e)\n {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return true;\n }", "public boolean isConnecting() {\n PublishSubscriber<T> c = state.current;\n return c.connecting && !c.connected && !c.done && !c.isDisposed();\n }", "boolean hasSocketProtocol();", "public boolean isConnected() {\n\t\treturn sock != null;\n\t}", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "boolean hasMessage();", "public boolean isClient(){\r\n\t\treturn world.isRemote;\r\n\t}", "boolean hasSock();", "public boolean hasAtLeastOneConnector() {\n return (this.connectors.size() > 0 || this.sslConnectors.size() > 0);\n }", "public static boolean isClient() {\n return FMLCommonHandler.instance().getEffectiveSide().isClient();\n }", "public boolean isConnecting ()\r\n\t{\r\n\t\tsynchronized (this)\r\n\t\t{\r\n\t\t\treturn _roboCOM!=null;\r\n\t\t}\r\n\t}", "public boolean isConnected() {\n if (client == null) {\n return false;\n }\n return client.isConnected();\n }", "boolean hasSendMessage();", "private boolean isConnected() {\n if (mStarted && mClient != null && !mClient.isConnected()) {\n Log.e(LOG_TAG, \"MQTT Client not connected.\");\n if (DEBUG) {\n\tLog.e(LOG_TAG, \"isConnected[mStarted:\" + mStarted + \", mClient:\" + mClient + \"]\");\n }\n }\n\n return mClient != null && (mStarted && mClient.isConnected());\n }", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "boolean hasSender();", "public abstract boolean SourceSinkSide( Communicator comm);", "public boolean isConnected()\n {\n return connectionId != GatewayProcess.NO_CONNECTION_ID;\n }", "Boolean isMessageRead(String msgId);", "private boolean isRedundant( Connector connector ) {\n // Local connector\n if ( connector.getSegment().equals( getNode().getSegment() ) ) {\n Part connectingPart = connector.getInnerFlow().getLocalPart();\n return getNode().isConnectedTo( isSend(), connectingPart, getFlow().getName() );\n // external connector\n } else if ( getFlow().hasConnector() ) {\n // Tested connector is from another segment -> would lead to an external flow\n Flow flow = getFlow();\n // only a target connector (externalized connector) registers the external flows\n // external flows are to a part which is itself the target of an internal flow\n // with another (internalized) connector as source\n Connector externalizedConnector = (Connector) ( isSend() ? flow.getTarget() : connector );\n final Connector internalizedConnector = (Connector) (\n isSend()\n ? connector :\n flow.isExternal()\n ? ( (ExternalFlow) flow ).getConnector()\n : flow.getSource() );\n return CollectionUtils.exists(\n IteratorUtils.toList( externalizedConnector.externalFlows() ),\n new Predicate() {\n @Override\n public boolean evaluate( Object object ) {\n ExternalFlow externalFlow = (ExternalFlow) object;\n return externalFlow.getPart()\n .equals( internalizedConnector.getInnerFlow().getContactedPart() );\n }\n }\n );\n } else {\n return false;\n }\n }", "boolean hasMessageType();", "public final boolean isClient() {\n\t\treturn world.isRemote;\n\t}", "public boolean handleMessage(Message msg) \r\n\t{\t\r\n\t\tswitch (msg.what)\r\n\t\t{\r\n\t\tcase TCPClient.MSG_COMSTATUSCHANGE:\r\n\t\tcase MSG_UIREFRESHCOM:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t\tUI_RefreshConnStatus ();\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_NEWSTATUSMESSAGE:\r\n\t\tcase MSG_NEWSTATUSMESSAGE:\t\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tLog.e(TAG,\"Status Message ACCE : \" + (String)msg.obj);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_CONNECTIONSTART:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tonRobotConnect (true);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_CONNECTIONSTOP:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t{\r\n\t\t\t\t\tboolean bbNotify;\r\n\t\t\t\t\tsynchronized (this)\r\n\t\t\t\t\t{\r\n\t\t\t\t\t\tbbNotify=_bbCanSend;\r\n\t\t\t\t\t}\r\n\t\t\t\t\tonRobotDisconnect (bbNotify);\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase TCPClient.MSG_SENT:\r\n\t\t\t{\r\n\t\t\t\tif (msg.arg2==uitoken)\r\n\t\t\t\t\tlast_sent_msg = (String)msg.obj;\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\tcase MSG_CENTER:\r\n\t\t\t{\r\n\t\t\t\tif (isConnecting())\r\n\t\t\t\t{\r\n\t\t\t\t\tstopConnection(true);\r\n\t\t\t\t}\r\n\t\t\t\telse\r\n\t\t\t\t{\r\n\t\t\t\t\tstartConnection();\r\n\t\t\t\t}\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "protected boolean isConnected() {\n\t\tif (channel == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn channel.isOpen();\n\t\t}\n\t}", "public boolean testConnection() {\r\n boolean toReturn = true;\r\n\r\n String[] paramFields = {};\r\n SocketMessage request = new SocketMessage(\"admin\", \"ping\", SocketMessage.PriorityType.EMERGENCY, SocketMessage.TransferType.BI_WAY, \"\", paramFields);\r\n SocketMessage response = handleMessage(request);\r\n if (isSuccessful(response)) {\r\n toReturn = true;\r\n } else {\r\n toReturn = false;\r\n }\r\n\r\n return toReturn;\r\n }", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "public boolean isConnected();", "private boolean handleServerMessage(String serverMessage){\r\n\t\t// Separating the message STATUS + OTHER\r\n\t\tString[] messageParts = serverMessage.split(SEPARATOR);\r\n\r\n\t\t// Get status code from message\r\n\t\tint messageStatus = Integer.parseInt(messageParts[0]);\r\n\r\n\t\t// Process status\r\n\t\tswitch (messageStatus) {\r\n\t\tcase REQUEST_OK:\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Send Request OK\");\t\t\t\r\n\t\t\treturn true;\r\n\r\n\t\tcase INCORRECT_REQUEST_FORMAT:\r\n\t\t\t\t\t\t\r\n\t\t\tSystem.err.println(\"Oups! \\nSomethin went wrong!\\n Request format was invalid\");\r\n\t\t\tbreak;\r\n\r\n\t\tcase INCORRECT_USER_OR_PASSWOROD:\r\n\t\t\t\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Username or password is incorrect!\", \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\tbreak;\r\n\r\n\t\tcase USER_NAME_ALREADY_EXIST:\r\n\t\t\tJOptionPane.showMessageDialog(null,\"Username alredy exists!\", \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t\tbreak;\r\n\r\n\t\tdefault:\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public boolean hasSendMessage() {\n return typeCase_ == 4;\n }", "public boolean isConnected() {\n\t\tif (m == null) return false;\n\t\telse return true;\n\t}", "public boolean hasMessage(){\r\n return this.receivedMessages.size()>0;\r\n }", "boolean isBadCommunication();", "public boolean hasSendMessage() {\n return typeCase_ == 4;\n }", "boolean hasResponseMessage();", "protected boolean isConnected() {\n/* 160 */ return this.delegate.isConnected();\n/* */ }", "public boolean isConnecting() {\n if (mState == STATE_CONNECTING) {\n return true;\n }\n return false;\n }", "public boolean isMessageReadFully() {\r\n\t\t\r\n\t\tCharBuffer charBuffer = byteBuffer.asCharBuffer();\r\n\t\tint limit = charBuffer.limit();\r\n\t\tString protocolMessage = null;\r\n\t\t//Check if the last char is ~ indicating the end of the message which also \r\n\t\t//indicates that the message is fully read\r\n\t\tif (charBuffer.get(limit) == '~') {\r\n\t\t\tprotocolMessage = charBuffer.toString();\r\n\t\t\tSystem.out.println(\"Protocol Message: \" + protocolMessage);\r\n\t\t\t//clear the buffer\r\n\t\t\tbyteBuffer.clear();\r\n\t\t\t//Decode the message into portions\r\n\t\t\tdecode(protocolMessage);\r\n\t\t\treturn true;\r\n\t\t} else\r\n\t\t\treturn false;\r\n\t\t\r\n\t\t\r\n\t}", "public boolean isConnected() {\n\t\t\treturn (m_soundManager instanceof RemoteSoundManager);\n\t\t}", "boolean hasDisconnect();", "boolean hasReceived();", "public static boolean isConnected() {\n return (getCon() != null);\n }", "boolean hasClientHello();", "public boolean isConnected() {\n\t\treturn conn != null;\n\t}", "public boolean isConnected() {\n\t\tfinal String METHOD = \"isConnected\";\n\t\tboolean connected = false;\n\t\tif (mqttAsyncClient != null) {\n\t\t\tconnected = mqttAsyncClient.isConnected();\n\t\t} else if (mqttClient != null) {\n\t\t\tconnected = mqttClient.isConnected();\n\t\t}\n\t\tLoggerUtility.log(Level.FINEST, CLASS_NAME, METHOD, \"Connected(\" + connected + \")\");\n\t\treturn connected;\n\t}", "public boolean isBot() {\n//\t\treturn this.getUserIO().checkConnection();\n\t\treturn false;\n\t}", "@Override\n\tpublic Boolean isClient() {\n\t\treturn true;\n\t}", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "boolean isConnected();", "public boolean checkConnection() {\n\treturn getBoolean(ATTR_CONNECTION, false);\n }", "public static boolean isConnected() { return irc != null && irc.isConnected(); }", "public boolean hasConversation() {\n return typeCase_ == 2;\n }", "public boolean handleMessage(Message message)\n {\n return false;\n }", "boolean hasMsg();", "public boolean hasConversation() {\n return typeCase_ == 2;\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 boolean isCommunicte(String addr) {\n return mCommunciation.isCommunicte(addr);\n }", "public boolean isConnected() {\r\n\t\treturn backend != null;\r\n\t}", "private boolean isInterceptedMessage(Message message)\n {\n return (message instanceof PoolMgrSelectWritePoolMsg && ((PoolMgrSelectWritePoolMsg) message).getPnfsPath() != null && !message.isReply())\n || message instanceof DoorTransferFinishedMessage\n || (message instanceof PoolAcceptFileMessage && ((PoolAcceptFileMessage) message).getFileAttributes().getStorageInfo().getKey(\"LinkGroup\") != null);\n }", "public boolean canStartConnection(ICreateConnectionContext context) {\n if (getFlowNode(context.getSourceAnchor()) != null) {\r\n return true;\r\n }\r\n return false;\r\n }", "public static boolean inProtocol(int message) {\n return message >= START_GAME && message <= QUIT;\n }", "protected abstract boolean isChannelRelevant( Flow f );", "public static boolean sendCredentials() {\n try {\n buildSocket();\n ClientService.sendMessageToServer(connectionToServer, ClientService.requestLoginVerification());\n ClientService.receiveMessageFromServer(connectionToServer);\n closeSocket();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return !ClientService.getLastMessageFromServer().contains(XML_Manager.XML_NODES.Error.toString());\n }", "private boolean canConnect() {\n \t\treturn (currentlyConnectingSockets.get() < maxConnectingSockets)\n \t\t\t\t&& (currentlyOpenSockets.get() < maxOpenSockets);\n \t}", "@Override\r\n\tpublic boolean isConnected() {\n\t\treturn false;\r\n\t}", "public synchronized boolean process(Connection con, String msg) {\n\t\tJsonObject receivedMSG;\n\n\t\ttry {\n\t\t\treceivedMSG = parser.parse(msg).getAsJsonObject();\n\t\t\t// System.out.println(\"string to json \" + receivedMSG);\n\t\t} catch (JsonSyntaxException e) {\n\t\t\treturn true;\n\t\t}\n\t\ttry {\n\t\t\t// Check the integrity of the message\n\t\t\tif (!checkMsgIntegrity(con, receivedMSG)) {\n\t\t\t\tcon.closeCon();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\tString message = receivedMSG.get(\"command\").getAsString();\n\t\t\tswitch (message) {\n\t\t\tcase REGISTER:\n\t\t\t\treturn !register(con, receivedMSG);\n\t\t\tcase LOGIN:\n\t\t\t\treturn !login(con, receivedMSG);\n\t\t\tcase AUTHENTICATE:\n\t\t\t\treturn !auth(con, receivedMSG);\n\t\t\tcase INVALID_MESSAGE:\n\t\t\t\tcon.closeCon();\n\t\t\t\treturn false;\n\t\t\tcase SERVER_ANNOUNCE:\n\t\t\t\treturn !announce(con, receivedMSG);\n\t\t\tcase LOGOUT:\n\t\t\t\tcon.closeCon();\n\t\t\t\treturn false;\n\t\t\tcase LOCK_REQUEST:\n\t\t\t\treturn !lockRequest(con, receivedMSG);\n\t\t\tcase LOCK_DENIED:\n\t\t\t\treturn !lockProcess(con, receivedMSG);\n\t\t\tcase LOCK_ALLOWED:\n\t\t\t\treturn !lockProcess(con, receivedMSG);\n\t\t\tcase ACTIVITY_BROADCAST:\n\t\t\t\treturn !broadcast(con, receivedMSG);\n\t\t\tcase ACTIVITY_MESSAGE:\n\t\t\t\treturn !broadcast(con, receivedMSG);\n\t\t\tcase AUTHENTICATION_FAIL:\n\t\t\t\tcon.closeCon();\n\t\t\t\treturn false;\n\t\t\tdefault:\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (NullPointerException e) {\n\t\t\te.printStackTrace();\n\t\t\tInvalidMessage invalid = new InvalidMessage();\n\t\t\tinvalid.setInfo(\"Not enough info in message,\" + \" possibly no authenticated user in ACTIVITY_BROADCAST ?\");\n\t\t\tcon.writeMsg(invalid.toJsonString());\n\t\t}\n\t\treturn false;\n\t}", "@Override\r\n\tpublic boolean handleMessage(Message msg) {\n\t\treturn false;\r\n\t}", "boolean hasChannel();", "boolean hasChannel();", "@Override\n\tpublic boolean isOwnMessage() {\n\t\ttry {\n\t\t\treturn (this.user.id == AccountManager.current_account.getUser().id);\n\t\t} catch (Exception e) {\n\t\t\treturn false;\n\t\t}\n\t}", "boolean isTransmitting();" ]
[ "0.6294597", "0.60999095", "0.60999095", "0.60972565", "0.6074074", "0.6073941", "0.6067429", "0.60405856", "0.6026819", "0.6022946", "0.5985297", "0.5975622", "0.596965", "0.595585", "0.5952041", "0.5931406", "0.5931406", "0.5931406", "0.5931406", "0.5931406", "0.5931406", "0.5931406", "0.5931406", "0.59291685", "0.59208703", "0.5918938", "0.5916216", "0.5909421", "0.5893461", "0.58840257", "0.5863821", "0.5845656", "0.5845656", "0.5845656", "0.5845656", "0.5845656", "0.5845656", "0.58439416", "0.5843546", "0.5826482", "0.5798372", "0.5785793", "0.57748955", "0.5772549", "0.57601535", "0.57550913", "0.57389873", "0.57389873", "0.57389873", "0.57389873", "0.57389873", "0.5738959", "0.5734017", "0.57335067", "0.5730371", "0.57180995", "0.57176596", "0.57011014", "0.5697692", "0.56893563", "0.56761587", "0.5667069", "0.5657663", "0.5645555", "0.56388974", "0.56355786", "0.5626679", "0.5623946", "0.5617235", "0.56157756", "0.5614696", "0.5614696", "0.5614696", "0.5614696", "0.5614696", "0.5614696", "0.5614696", "0.5614696", "0.56139123", "0.5610043", "0.560776", "0.560599", "0.56038225", "0.55993426", "0.5595345", "0.5589658", "0.5584704", "0.55811656", "0.5580561", "0.5569708", "0.5567875", "0.5566271", "0.5565977", "0.5556111", "0.55555475", "0.555168", "0.55440074", "0.55440074", "0.55414104", "0.5536979" ]
0.722044
0
Retrieve the session of the connection.
WebSocketConnection getWebSocketConnection();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public RDBMSSession getSession() {\r\n\t\treturn (RDBMSSession) session;\r\n\t}", "public String getSession() {\n return session;\n }", "public String getSession() {\n return this.session;\n }", "public static Session getSession() {\n return session;\n }", "public com.weizhu.proto.WeizhuProtos.Session getSession() {\n return session_;\n }", "protected final Session getSession() {\n\t\treturn m_sess;\n\t}", "public Session getSession() {\n\t\treturn session;\n\t}", "public Session getSession() {\n\t\treturn session;\n\t}", "public Session getSession() {\n\t\treturn session;\n\t}", "public Session getSession() {\n return session;\n }", "public Session getSession()\n\t{\n\t\treturn m_Session;\n\t}", "protected Session getSession() {\n return sessionUtility.getSession();\n }", "public Session session() {\n return session;\n }", "protected final Session getSession() {\n return sessionTracker.getSession();\n }", "Session getCurrentSession();", "Session getCurrentSession();", "public static Session getSession() {\n\n if (serverRunning.get() && !session.isClosed()) {\n return session;\n } else {\n if (session.isClosed()) {\n throw new IllegalStateException(\"Session is closed\");\n } else {\n throw new IllegalStateException(\"Cluster not running\");\n }\n }\n }", "public AbstractSession getSession() {\n return session;\n }", "public IHTTPSession getSession() {\n\t\treturn session;\n\t}", "public Session getSession() { return session; }", "protected Session getSession() {\n\n return (Session) getExtraData().get(ProcessListener.EXTRA_DATA_SESSION);\n }", "public Session getSession()\n {\n return session;\n }", "public User getSession(){\n\t\treturn this.session;\n\t}", "public static Session getSession() {\n if(sesh == null) {\n return sesh = sf.openSession();\n }\n\n return sesh;\n }", "@Provides\n @Current\n IpcSession getCurrentSession(@Current IpcConnection connection) {\n return connection.getSession();\n }", "public Session getSession() {\n return session;\n }", "Object getNativeSession();", "public static CustomSession get() {\r\n\t\treturn (CustomSession) Session.get();\r\n\t}", "public Session getSession(){\n\t\treturn sessionFactory.openSession();\n\t}", "public SessionInfo getSessionInfo() {\n\t\treturn sessionInfo;\n\t}", "private Session getSession() {\n\t\treturn factory.getCurrentSession();\n\t}", "public Session getSession();", "protected Session getSession() { return session; }", "public com.weizhu.proto.WeizhuProtos.Session getSession() {\n if (sessionBuilder_ == null) {\n return session_;\n } else {\n return sessionBuilder_.getMessage();\n }\n }", "public LocalSession session() { return session; }", "public com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder() {\n return session_;\n }", "public synchronized Session getSession() throws JmsException {\n try {\n if (session == null) {\n Connection conToUse;\n if (connection == null) {\n if (sharedConnectionEnabled()) {\n conToUse = getSharedConnection();\n } else {\n connection = createConnection();\n connection.start();\n conToUse = connection;\n }\n } else {\n conToUse = connection;\n }\n session = createSession(conToUse);\n }\n return session;\n } catch (JMSException e) {\n throw convertJmsAccessException(e);\n }\n }", "public PSUserSession getSession();", "protected abstract SESSION getThisAsSession();", "public jkt.hms.masters.business.MasSession getSession () {\n\t\treturn session;\n\t}", "public Session getSession() {\n\t\treturn sessionFactory.getCurrentSession();\r\n\t}", "public static Session getCurrentSession() {\n if(currentSession != null){\n return currentSession;\n } else {\n createNewSession(new Point2D(300,300));\n return getCurrentSession();\n }\n }", "public String getSessionContext() {\n return this.SessionContext;\n }", "String getAssociatedSession();", "public com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder() {\n if (sessionBuilder_ != null) {\n return sessionBuilder_.getMessageOrBuilder();\n } else {\n return session_;\n }\n }", "public HttpSession getHttpSession() {\n return servletRequest.getSession();\n }", "@Override\r\n\tpublic HttpSession getSession()\r\n\t{\r\n\t\t// This method was implemented as a workaround to __CR3668__ and Vignette Support ticket __247976__.\r\n\t\t// The issue seems to be due to the fact that both local and remote portlets try to retrieve\r\n\t\t// the session object in the same request. Invoking getSession during local portlets\r\n\t\t// processing results in a new session being allocated. Unfortunately, as remote portlets\r\n\t\t// use non-WebLogic thread pool for rendering, WebLogic seems to get confused and associates\r\n\t\t// the session created during local portlet processing with the portal request.\r\n\t\t// As a result none of the information stored originally in the session can be found\r\n\t\t// and this results in errors.\r\n\t\t// To work around the issue we maintain a reference to original session (captured on the\r\n\t\t// first invocation of this method during the request) and return it any time this method\r\n\t\t// is called. This seems to prevent the issue.\r\n\t\t// In addition, to isolate SPF code from the session retrieval issue performed by Axis\r\n\t\t// handlers used during WSRP request processing (e.g. StickyHandler), we also store\r\n\t\t// a reference to the session as request attribute. Newly added com.hp.it.spf.wsrp.misc.Utils#retrieveSession\r\n\t\t// can then use the request attribute value instead of calling request.getSession()\r\n\t\t// which before this change resulted in new session being allocated and associated with\r\n\t\t// the portal request.\r\n\r\n\t\tif (mSession == null) {\r\n\t\t\tmSession = ((HttpServletRequest)getRequest()).getSession();\r\n\r\n\t\t\t// Store session in request attribute for com.hp.it.spf.wsrp.misc.Utils#retrieveSession\r\n\t\t\tgetRequest().setAttribute(ORIGINAL_SESSION, mSession);\r\n\t\t}\r\n\r\n\t\treturn mSession;\r\n\t}", "public static Session getCurrentSession() {\n return sessionfactory.getCurrentSession();\n }", "final protected RobotSessionGlobals getSession() {\n return mSession;\n }", "com.weizhu.proto.WeizhuProtos.Session getSession();", "Session getSession();", "Session getSession();", "public static synchronized Session getCurrentSession(Context context) {\n \tif (Session.currentSession == null) {\n Session.sessionFromCurrentSession(context);\n \t}\n\n \t\treturn Session.currentSession;\n }", "public FlexSession getFlexSession()\n {\n synchronized (lock)\n {\n return flexSession;\n }\n }", "public static Session currentSession() {\n \tif (sessionFactory == null) {\n \t\tinitialize();\n \t}\n \tif (singleSessionMode) {\n \t\tif (singleSession == null) {\n \t\t\tsingleSession = sessionFactory.openSession();\n \t\t}\n \t\treturn singleSession;\n \t} else {\n\t Session s = session.get();\n\t \n\t // Open a new Session, if this Thread has none yet\n\t if (s == null || !s.isOpen()) {\n\t s = sessionFactory.openSession();\n\t session.set(s);\n\t }\n\t return s;\n \t}\n }", "public Session getCurrentSession() {\r\n\t\treturn sessionFactory.getCurrentSession();\r\n\t}", "public abstract I_SessionInfo getSession(I_SessionName sessionName);", "public Session getSession() {\n\t\tSession session = this.session;\r\n\t\tif (session == null) {\r\n\t\t\t// 2. altrimenti genera una nuova sessione utilizzando la factory (e.g. Spring MVC)\r\n\t\t\tsession = this.sessionFactory.getCurrentSession();\r\n\t\t}\r\n\t\treturn session;\r\n\t}", "public java.lang.String getSessionToken() {\r\n return sessionToken;\r\n }", "public Session getSession(@NotNull Http.Request request) {\n Session session;\n String sessionKey = request.getHeader(SESSION_FIELD_NAME);\n\n // Check Session Key\n if (sessionKey == null || sessionKey.isEmpty()) {\n return null;\n }\n\n // Get Session by Key & check a session was found\n session = this.sessionRepository.getById(sessionKey);\n if (session == null || !session.isValid()) {\n return null;\n }\n\n return session;\n }", "public static Session getSession(SlingHttpServletRequest request) {\n ResourceResolver resourceResolver = request.getResourceResolver();\n return resourceResolver.adaptTo(Session.class);\n }", "public SESSION getCurrentSessionForTest() {\n return currentSession;\n }", "public IoSession getChatSession() {\n\t\treturn m_chatSession;\n\t}", "@GET(\"sdk/v5/sessions\")\n Call<SessionResponse> getSession(@Header(\"Authorization\") String Authorization);", "AuthenticationSessionModel getAuthenticationSession();", "public String getSessionID() {\n\t\treturn sessionId;\n\t}", "public Session getSafeSession()\n {\n beginSession(false);\n return session;\n }", "public IEvolizerSession getEvolizerSession() throws EvolizerException {\n // IEvolizerSession session = EvolizerSessionHandler.getHandler().getCurrentSession(fDbUrl);\n // return session;\n\n return fSession;\n }", "public static Session getCurrentSession() {\r\n //LOG.debug(MODULE + \"Get CurrentSession\");\r\n\r\n /* This code is to find who has called the method only for debugging and testing purpose.\r\n try {\r\n throw new Exception(\"Who called Me : \");\r\n } catch (Exception e) {\r\n //LOG.debug(\"I was called by \" + e.getStackTrace()[2].getClassName() + \".\" + e.getStackTrace()[2].getMethodName() + \"()!\");\r\n LOG.debug(\"I was called by : \", e);\r\n }\r\n */\r\n return openSession();\r\n //return sessionFactory.getCurrentSession();\r\n }", "public Session getCurrentSession() {\r\n return sessionFactory.getCurrentSession();\r\n }", "public Session getCurrentSession() {\r\n return sessionFactory.getCurrentSession();\r\n }", "public Session createSession() {\n\t\treturn this.session;\n\t}", "protected Session getCurrentSession() {\n\t\treturn sessionFactory.getCurrentSession();\n\t}", "protected Session getCurrentSession() {\n\t\treturn sessionFactory.getCurrentSession();\n\t}", "public static Session openSession() {\n \treturn sessionFactory.openSession();\n }", "public /*static*/ Session getSession() {\n return sessionFactory.getCurrentSession();\n }", "public Session getSession() {\n if (this.session == null) {\n this.logger.error(\"Sessão não iniciada.\");\n throw new IllegalStateException(\"A sessão não foi criada antes do uso do DAO\");\n }\n return this.session;\n }", "public String getSessionID ()\n\t{\n\t\treturn sessionID;\n\t}", "private Session getCurrentSession() {\n return sessionFactory.getCurrentSession();\n }", "com.weizhu.proto.WeizhuProtos.SessionOrBuilder getSessionOrBuilder();", "public String getSessionKey() {\n return sessionKey;\n }", "private TwitterSession getTwitterSession() {\n TwitterSession session = TwitterCore.getInstance().getSessionManager().getActiveSession();\n\n return session;\n }", "public MessageSession getSession(MessageExchange exchange) {\n\t\t// logger.info(\"The target session: \" + exchange.getExchangeId());\n\t\tfor (MessageSession s : sessions) {\n\t\t\tif (s.isBelongs(exchange)) {\n\t\t\t\t// logger.info(\"The Unit's session: \" + s.getSessionID());\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "protected DatabaseSession getDbSession() {\n if(dbSession == null) {\n dbSession = getServerSession();\n }\n return dbSession;\n }", "protected Session getCurrentSession()\n \t{\n \t\treturn this.sessionFactory.getCurrentSession();\n \t}", "public SessionService session() {\n return service;\n }", "protected Session getSession() {\n return sessionFactory.getCurrentSession();\n }", "private TunaFacadeRemote getRemoteSession() {\n TunaFacadeRemote session = null;\n \n // CORBA properties and values and lookup taken after earlier work provided by\n // Todd Kelley (2016) Personal Communication\n System.setProperty(\"org.omg.CORBA.ORBInitialHost\", \"127.0.0.1\");\n System.setProperty(\"org.omg.CORBA.ORBInitialPort\", \"3700\");\n try {\n JOptionPane.showMessageDialog(this, \"Trying for a session...\");\n InitialContext ic = new InitialContext();\n session = (TunaFacadeRemote) ic.lookup(\"java:global/Assignment4/Assignment4-ejb/TunaFacade\");\n JOptionPane.showMessageDialog(this, \"Got a session :) \");\n\n } catch (NamingException e) {\n JOptionPane.showMessageDialog(this, \"Problem. \\n Cause: \\n\" + e.getMessage());\n } catch (Exception e) {\n JOptionPane.showMessageDialog(this, \"Problem. \\n Cause: \\n\" + e.getMessage());\n }\n return session;\n }", "public String getSessionId() {\n return super.getSessionId();\n }", "public Session get(String sessionKey) {\n if (!validateKey(sessionKey))\n return null;\n \n if (exists(sessionKey))\n return sessions.get(sessionKey);\n return null;\n }", "@Override // com.android.server.wm.WindowContainer\n public SurfaceSession getSession() {\n return this.mSession;\n }", "public Session openSession() {\r\n\t\treturn sessionFactory.openSession();\r\n\t}", "public static Session currentSession() {\n Session session = (Session) sessionThreadLocal.get();\n // Open a new Session, if this Thread has none yet\n try {\n if (session == null) {\n session = sessionFactory.openSession();\n sessionThreadLocal.set(session);\n }\n } catch (HibernateException e) {\n logger.error(\"Get current session error: \" + e.getMessage());\n }\n return session;\n }", "SessionManager get();", "protected Session getSession() {\r\n if (session == null || !session.isOpen()) {\r\n LOG.debug(\"Session is null or not open...\");\r\n return HibernateUtil.getCurrentSession();\r\n }\r\n LOG.debug(\"Session is current...\");\r\n return session;\r\n }", "public GameSession getGameSession()\n {\n return gameSession;\n }", "public ClusterSession getClusterSession() {\n return cl;\n }", "public IoSession getTcpSession() {\n\t\treturn m_tcpSession;\n\t}", "public TrackSession getTrackSession() {\n if (mTrackSession == null && mTrackSessionId != 0)\r\n mTrackSession = TrackSession.read(Position.context, mTrackSessionId);\r\n return mTrackSession;\r\n }", "public static Session currentSession() throws IllegalStateException {\n Session s;\n\n if((s = (Session) _sessionRef.get()) == null) {\n throw new IllegalStateException(\"Thread not registered with a session\");\n }\n \n if(!s.isConnected()){\n s.reconnect();\n }\n\n return s;\n }", "public SparkSession getSession(){\n\n return sparkSession;\n }" ]
[ "0.7764878", "0.76633084", "0.7605265", "0.7568562", "0.7532087", "0.74817693", "0.7392029", "0.7392029", "0.7392029", "0.73562723", "0.73505294", "0.7289208", "0.7288711", "0.727702", "0.7241659", "0.7241659", "0.7234355", "0.7226098", "0.7205857", "0.7201292", "0.71990484", "0.71840197", "0.71354204", "0.7119016", "0.7117357", "0.71073455", "0.7070678", "0.70385915", "0.7024776", "0.7013593", "0.7009276", "0.696042", "0.6958829", "0.69556653", "0.6914937", "0.69073176", "0.6890638", "0.6885074", "0.68653786", "0.68326765", "0.6830404", "0.6812686", "0.6793459", "0.67911494", "0.67896783", "0.6784478", "0.6745386", "0.67095304", "0.6706133", "0.6693679", "0.66801065", "0.66801065", "0.6674289", "0.6658832", "0.665079", "0.6644583", "0.66445196", "0.6635251", "0.66346264", "0.6629318", "0.6619969", "0.6586208", "0.65849936", "0.6583128", "0.65697646", "0.6567016", "0.6558144", "0.65457857", "0.65389466", "0.65282136", "0.6524472", "0.6520617", "0.6512584", "0.6512584", "0.650051", "0.6497281", "0.6485093", "0.64830816", "0.6482627", "0.6458902", "0.64558566", "0.64536875", "0.64420396", "0.6435928", "0.6420177", "0.6414481", "0.6404155", "0.6398517", "0.6391668", "0.6390151", "0.6381552", "0.6375878", "0.63674927", "0.63569355", "0.6356367", "0.63561076", "0.63529813", "0.6352302", "0.6342478", "0.6331894", "0.6316743" ]
0.0
-1
Join the elements of array using the provided separator.
public static String join( Object[] col, String sep ) { StringBuffer sb = new StringBuffer(); if ( col.length >= 1 ) { sb.append( getString_(col[0]) ); } for ( int i = 1; i < col.length; i++ ) { sb.append( sep ); sb.append( getString_(col[i]) ); } return sb.toString(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static String join(String[] array, String separator) {\n int len = array.length;\n if (len == 0) return \"\";\n\n StringBuilder out = new StringBuilder();\n out.append(array[0]);\n for (int i = 1; i < len; i++) {\n out.append(separator).append(array[i]);\n }\n return out.toString();\n }", "public static String join(String[] array, String sep) {\n if (array == null || array.length == 0) {\n return \"\";\n }\n int len = array.length;\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < (len - 1); i++) {\n sb.append(array[i]).append(sep);\n }\n sb.append(array[len - 1]);\n return sb.toString();\n }", "public static String join(int[] array, String sep) {\n if (array == null || array.length == 0) {\n return \"\";\n }\n int len = array.length;\n StringBuffer sb = new StringBuffer();\n String item;\n for (int i = 0; i < (len - 1); i++) {\n item = (new Integer(array[i])).toString();\n sb.append(item).append(sep);\n }\n sb.append(array[len - 1]);\n return sb.toString();\n }", "static String join(CharSequence separator, String[] strings) {\n\t\t// Ideally we don't have to duplicate the code here if array is\n\t\t// iterable.\n\t\tStringBuilder sb = new StringBuilder();\n\t\tboolean first = true;\n\t\tfor (String s : strings) {\n\t\t\tif (first) {\n\t\t\t\tfirst = false;\n\t\t\t} else {\n\t\t\t\tsb.append(separator);\n\t\t\t}\n\t\t\tsb.append(s);\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String arrayToSeparatedString(String[] arr, char separator) {\n return String.join(Character.toString(separator), arr);\n }", "public static String join(String[] theParam, String separator) {\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < theParam.length; i++) {\n if (i > 0)\n sb.append(separator);\n sb.append(theParam[i]);\n }\n return sb.toString();\n }", "public static String join(Object[] list, String sep)\r\n {\r\n if (list == null)\r\n return null;\r\n \r\n if (sep == null)\r\n sep = \"\";\r\n \r\n StringBuffer buf = new StringBuffer();\r\n if (list.length > 0)\r\n buf.append(list[0]);\r\n \r\n for (int n = 1; n < list.length; n++)\r\n buf.append(sep).append(list[n]);\r\n \r\n return buf.toString();\r\n }", "public static String join(String[] strings, String separator) {\n StringBuffer sb = new StringBuffer();\n int max = strings.length;\n for (int i = 0; i < max; i++) {\n if (i != 0)\n sb.append(separator);\n sb.append(strings[i]);\n }\n return sb.toString();\n }", "public static String join(String[] array, String sep, String pre, String post) {\n if (array == null || array.length == 0) {\n return \"\";\n }\n int len = array.length;\n StringBuffer sb = new StringBuffer();\n for (int i = 0; i < (len - 1); i++) {\n sb.append(pre).append(array[i]).append(post).append(sep);\n }\n sb.append(pre).append(array[len - 1]).append(post);\n return sb.toString();\n }", "public static <T> String joinArrayItems(T[] array, String delimiter)\n\t{\n\t\tif (array.length == 0)\n\t\t\treturn \"\";\n\t\t\n\t\tStringBuilder builder = new StringBuilder();\n\t\t\n\t\tfor (T item : array)\n\t\t{\n\t\t\tbuilder.append(item);\n\t\t\tbuilder.append(delimiter);\n\t\t}\n\t\t\n\t\tString result = builder.toString();\n\t\t\n\t\treturn \n\t\t\tresult.substring(0, result.length() - delimiter.length());\t\n\t}", "public static String join(List elements, String separator)\n {\n switch (elements.size())\n {\n case 0:\n return \"\";\n \n case 1:\n return String.valueOf(elements.get(0));\n \n default:\n \n StringBuilder buffer = new StringBuilder();\n boolean first = true;\n \n for (Object o : elements)\n {\n if (!first)\n buffer.append(separator);\n \n String string = String.valueOf(o);\n \n if (string.equals(\"\"))\n string = \"(blank)\";\n \n buffer.append(string);\n \n first = false;\n }\n \n return buffer.toString();\n }\n }", "private String convertToString(ArrayList<String> arr, char sep) {\n StringBuilder builder = new StringBuilder();\n // Append all Integers in StringBuilder to the StringBuilder.\n for (String str : arr) {\n builder.append(str);\n builder.append(sep);\n }\n // Remove last delimiter with setLength.\n builder.setLength(builder.length() - 1);\n return builder.toString();\n }", "public static String join(boolean[] array, String sep) {\n if (array == null || array.length == 0) {\n return \"\";\n }\n int len = array.length;\n StringBuffer sb = new StringBuffer();\n String item;\n for (int i = 0; i < (len - 1); i++) {\n item = (new Boolean(array[i])).toString();\n sb.append(item).append(sep);\n }\n sb.append(array[len - 1]);\n return sb.toString();\n }", "public static String implode(char separator, String[] strings) {\n\t if (strings == null) return \"\";\n\t int len = -1;\n\t for (String string: strings) len += string.length() + 1;\n\t StringBuilder buf = new StringBuilder(len);\n\t boolean first = true;\n\t for (String string: strings) {\n\t\t if (first) first = false;\n\t\t else buf.append(separator);\n\t\t buf.append(string);\n\t }\n\t return buf.toString();\n }", "public static String join(String[] array)\n {\n if( array.length == 0 ) return Constants.BLANK;\n StringBuilder sb = new StringBuilder();\n for( String s : array )\n sb.append(s);\n return sb.toString();\n }", "public static String joinArray(String[] strs, String splitter){\n StringBuffer buf = new StringBuffer();\n for (int i = 0; i < strs.length; i++) {\n if (i>0){\n buf.append(splitter);\n }\n buf.append(strs[i]);\n }\n return buf.toString();\n }", "public static String join(String[] tokens, String delimiter) {\n\t\treturn join(tokens, delimiter, (tokens == null ? 0 : tokens.length));\n\t}", "public String join(String separator) throws JSONException {\n\t\tint len = this.size();\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i = 0; i < len; i += 1) {\n\t\t\tif (i > 0) {\n\t\t\t\tsb.append(separator);\n\t\t\t}\n\t\t\tsb.append(JSONUtil.valueToString(this.rawArrayList.get(i)));\n\t\t}\n\t\treturn sb.toString();\n\t}", "public static String join(String[] array, String split) {\n if (array.length == 0) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n if (i > 0) {\n sb.append(split);\n }\n sb.append(array[i]);\n }\n return sb.toString();\n }", "public static String join(String[] array, char split) {\n if (array.length == 0) {\n return \"\";\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < array.length; i++) {\n if (i > 0) {\n sb.append(split);\n }\n sb.append(array[i]);\n }\n return sb.toString();\n }", "public static String join(String[] input)\n {\n StringBuilder sb = new StringBuilder();\n for(String value : input)\n {\n sb.append(value);\n sb.append(\" \");\n }\n return sb.toString();\n }", "public static String implode(char separator, String addedString, String[] strings) {\n\t if (strings == null) return addedString;\n\t int len = addedString.length();\n\t for (String string: strings) len += string.length() + 1;\n\t StringBuilder buf = new StringBuilder(len);\n\t buf.append(addedString);\n\t for (String string: strings) {\n\t\t buf.append(separator);\n\t\t buf.append(string);\n\t }\n\t return buf.toString();\n }", "public static String implode(Collection<? extends Object> parts, String separator) {\r\n\t\t\tStringBuilder builder = new StringBuilder();\r\n\t\t\tfor (Object part : parts) {\r\n\t\t\t\tbuilder.append(separator + part);\r\n\t\t\t}\r\n\r\n\t\t\tif (builder.length() > separator.length()) {\r\n\t\t\t\treturn builder.substring(separator.length());\r\n\t\t\t}\r\n\r\n\t\t\treturn builder.toString();\r\n\t\t}", "public static String join(String separator, String... fragments)\n\t{\n\t\tif (fragments.length < 1)\n\t\t{\n\t\t\t// no elements\n\t\t\treturn \"\";\n\t\t}\n\t\telse if (fragments.length < 2)\n\t\t{\n\t\t\t// single element\n\t\t\treturn fragments[0];\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// two or more elements\n\n\t\t\tStringBuilder buff = new StringBuilder(128);\n\t\t\tbuff.append(fragments[0]);\n\t\t\tfor (int i = 1; i < fragments.length; i++)\n\t\t\t{\n\t\t\t\tboolean lhsClosed = fragments[i - 1].endsWith(separator);\n\t\t\t\tboolean rhsClosed = fragments[i].startsWith(separator);\n\t\t\t\tif (lhsClosed && rhsClosed)\n\t\t\t\t{\n\t\t\t\t\tbuff.append(fragments[i].substring(1));\n\t\t\t\t}\n\t\t\t\telse if (!lhsClosed && !rhsClosed)\n\t\t\t\t{\n\t\t\t\t\tbuff.append(separator).append(fragments[i]);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tbuff.append(fragments[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn buff.toString();\n\t\t}\n\t}", "public static String join(CharSequence delimiter, Object[] tokens) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean firstTime = true;\r\n\t\tfor (Object token : tokens) {\r\n\t\t\tif (firstTime) {\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(delimiter);\r\n\t\t\t}\r\n\t\t\tsb.append(token);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public static String join(String delim, Iterable<?> parts) {\n StringBuilder sb = new StringBuilder();\n for (Iterator<?> iter = parts.iterator(); iter.hasNext();) {\n sb.append(iter.next());\n if (iter.hasNext()) {\n sb.append(delim);\n }\n }\n return sb.toString();\n }", "public static void printArray(String[] a,String sep) {\n\t\tfor(int i=0;i<a.length;i++) {\n\t\t\tSystem.out.print(a[i]+sep);\n\t\t}\n\t\tSystem.out.println();\n\t}", "public static String join(char delim, Iterable<?> parts) {\n StringBuilder sb = new StringBuilder();\n for (Iterator<?> iter = parts.iterator(); iter.hasNext();) {\n sb.append(iter.next());\n if (iter.hasNext()) {\n sb.append(delim);\n }\n }\n return sb.toString();\n }", "private static String getToString(Object[] arr, String delim) {\n\t\tif (arr.length == 0) return \"\"; \n\t\t\n\t\tStringBuilder sb = new StringBuilder(\"[\");\n\t\t\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif (i > 0) sb.append(delim);\n\t\t\tsb.append(arr[i] == null ? \"\" : arr[i]);\n\t\t}\n\n\t\tsb.append(\"]\");\n\t\treturn sb.toString();\n\t}", "@SuppressWarnings(\"rawtypes\")\r\n\tpublic static String join(CharSequence delimiter, Iterable tokens) {\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\tboolean firstTime = true;\r\n\t\tfor (Object token : tokens) {\r\n\t\t\tif (firstTime) {\r\n\t\t\t\tfirstTime = false;\r\n\t\t\t} else {\r\n\t\t\t\tsb.append(delimiter);\r\n\t\t\t}\r\n\t\t\tsb.append(token);\r\n\t\t}\r\n\t\treturn sb.toString();\r\n\t}", "public static String join(@NonNull CharSequence delimiter, @NonNull Iterable tokens) {\n final Iterator<?> it = tokens.iterator();\n if (!it.hasNext()) {\n return \"\";\n }\n final StringBuilder sb = new StringBuilder();\n sb.append(it.next());\n while (it.hasNext()) {\n sb.append(delimiter);\n sb.append(it.next());\n }\n return sb.toString();\n }", "public static String join(String delimiter, String... elements) {\n\t\tif (delimiter == null)\n\t\t\tthrow new NullPointerException(\"No delimiter given.\");\n\t\tif (elements == null)\n\t\t\tthrow new NullPointerException(\"No elements given.\");\n\n\t\tboolean first = true;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (String element : elements) {\n\t\t\tif (!first)\n\t\t\t\tbuilder.append(delimiter);\n\t\t\tbuilder.append(element);\n\t\t\tfirst = false;\n\t\t}\n\n\t\treturn builder.toString();\n\t}", "public static String joinNames(String[] names, String delimiter) {\n return normalizer.joinNames(defaultRule, names, delimiter);\n }", "public static String join(CharSequence delimiter, Iterable tokens) {\n StringBuilder sb = new StringBuilder();\n Iterator<?> it = tokens.iterator();\n if (it.hasNext()) {\n sb.append(it.next());\n while (it.hasNext()) {\n sb.append(delimiter);\n sb.append(it.next());\n }\n }\n return sb.toString();\n }", "public static String join(String delimiter, Collection<String> elements) {\n\t\tif (delimiter == null)\n\t\t\tthrow new NullPointerException(\"No delimiter given.\");\n\t\tif (elements == null)\n\t\t\tthrow new NullPointerException(\"No elements given.\");\n\n\t\tboolean first = true;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (String element : elements) {\n\t\t\tif (!first)\n\t\t\t\tbuilder.append(delimiter);\n\t\t\tbuilder.append(element);\n\t\t\tfirst = false;\n\t\t}\n\n\t\treturn builder.toString();\n\t}", "public static String joinStrings(String[] a){\n String js=\"\";\n for (int i=0;i<a.length;i++){\n if (i==0){\n js = a[i];\n } else{\n js = js + \" \" + a[i];\n }\n }\n return js;\n }", "public static String join(List<String> s, String delimiter) {\n if (s.isEmpty()) return \"\";\n Iterator<String> iter = s.iterator();\n StringBuffer buffer = new StringBuffer(iter.next());\n while (iter.hasNext())\n buffer.append(delimiter).append(iter.next());\n return buffer.toString();\n }", "private static <T> String join(final Collection<T> s, final String delimiter) {\n\t\tStringBuilder builder = new StringBuilder();\n\t\tIterator<T> iter = s.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tbuilder.append(iter.next());\n\t\t\tif (!iter.hasNext()) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tbuilder.append(delimiter);\n\t\t}\n\t\treturn builder.toString();\n\t}", "private static String join(String prefix, String delimiter, Iterable<?> items) {\n if (items == null) return (\"\");\n if (prefix == null) prefix = \"\";\n\n StringBuilder sb = new StringBuilder();\n int i = 0;\n for (Object x : items) {\n if (!prefix.isEmpty()) sb.append(prefix);\n sb.append(x != null ? x.toString() : x).append(delimiter);\n i++;\n }\n if (i == 0) return \"\";\n sb.delete(sb.length() - delimiter.length(), sb.length());\n\n return sb.toString();\n }", "public static String stringJoin(CharSequence delimiter, CharSequence... args) {\n StringBuilder builder = new StringBuilder();\n boolean first = true;\n for (CharSequence cs : args) {\n if (first) {\n first = false;\n } else {\n builder.append(delimiter);\n }\n builder.append(cs);\n }\n return builder.toString();\n }", "public static final String join(final String delimiter,\n\t\t\tfinal Object... value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tif (value.length == 0) {\n\t\t\treturn EMPTY_STRING;\n\t\t}\n\n\t\tfinal String del = (delimiter == null) ? EMPTY_STRING : delimiter;\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (int i = 0; i < value.length; ++i) {\n\t\t\tbuilder.append((value[i] == null) ? EMPTY_STRING : value[i]\n\t\t\t\t\t.toString());\n\t\t\tif (i == value.length - 1)\n\t\t\t\treturn builder.toString();\n\t\t\tbuilder.append(del);\n\t\t}\n\n\t\treturn builder.toString();\n\t}", "public static String join(List elements)\n {\n return InternalCommonsUtils.join(elements, \", \");\n }", "public static CharSequence join(char delim, CharSequence... parts) {\n AppendableCharSequence seq = new AppendableCharSequence();\n for (int i = 0; i < parts.length; i++) {\n seq.append(parts[i]);\n if (i != parts.length - 1) {\n seq.append(delim);\n }\n }\n return seq;\n }", "public static String join(String[] tokens, String delimiter, int limit) {\n\t\tif (tokens == null || tokens.length == 0 || limit <= 0) {\n\t\t\treturn \"\";\n\t\t}\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tbuffer.append(tokens[0]);\n\t\tlimit = Math.min(limit, tokens.length);\n\t\tfor (int i = 1; i < limit; i++) {\n\t\t\tbuffer.append(delimiter);\n\t\t\tbuffer.append(tokens[i]);\n\t\t}\n\t\treturn buffer.toString();\n\t}", "public String joinedDurationsToString( int[][] data, String sep, int sepFirst, int sepInterval )\n {\n if ( data == null )\n return \"** No signal **\";\n StringBuilder sb = new StringBuilder();\n for ( int[] d : data )\n {\n if ( sb.length() > 0 )\n sb.append( ' ' );\n sb.append( durationsToString( d, sep, sepFirst, sepInterval ) );\n }\n return sb.toString();\n }", "public static String join(Collection<?> col, CharSequence delim) {\n return UtilValidate.isEmpty(col)\n ? null\n : col.stream().map(Object::toString).collect(Collectors.joining(delim));\n }", "public static String join(char delim, String... parts) {\n return join(delim, Arrays.asList(parts));\n }", "public String join() {\n String result = \"\";\n\n for(int i = 0; i < list.size(); i++) {\n result += list.get(i);\n if (i < list.size() - 1) {\n result += \", \";\n }\n }\n\n return result;\n }", "private static String joinInts(TreeSet<Integer> vals, String delim) {\n StringBuilder output = new StringBuilder();\n for (Integer val : vals) {\n output.append(delim).append(val.toString());\n }\n return output.substring(1, output.length());\n }", "public static String join(Collection<?> s, String delimiter) {\n\t\tStringBuffer buffer = new StringBuffer();\n\t\tIterator<?> iter = s.iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tbuffer.append(iter.next());\n\t\t\tif (iter.hasNext())\n\t\t\t\tbuffer.append(delimiter);\n\t\t}\n\t\treturn buffer.toString();\n\t}", "public static String SeperateStrings(String separator, String[] strings){\r\n\t\tString rvString = \"\";\r\n\t\tfor (int i = 0; i < strings.length; i++) {\r\n\t\t\t//add seperator when the amount of strings is more than 1\r\n\t\t\tif (i != 0) {\r\n\t\t\t\trvString += separator;\r\n\t\t\t}\r\n\t\t\trvString += strings[i];\r\n\t\t}\r\n\t\treturn rvString;\r\n\t}", "public static final String join(final String delimiter, final List<?> value) {\n\t\tif (value == null) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tIterator<?> it = value.iterator();\n\t\tif (!it.hasNext()) {\n\t\t\treturn EMPTY_STRING;\n\t\t}\n\n\t\tfinal String del = (delimiter == null) ? EMPTY_STRING : delimiter;\n\n\t\tStringBuilder builder = new StringBuilder();\n\t\tfor (;;) {\n\t\t\tObject val = it.next();\n\t\t\tbuilder.append(val == null ? EMPTY_STRING : val.toString());\n\t\t\tif (!it.hasNext())\n\t\t\t\treturn builder.toString();\n\t\t\tbuilder.append(del);\n\t\t}\n\t}", "public static String join(Collection<String> collection, String join) {\n\t\tString r = \"\";\n\t\tboolean first = true;\n\t\t\n\t\tfor (String e : collection) {\n\t\t\tif (first) {\n\t\t\t\tfirst = false;\n\t\t\t\tr = e;\n\t\t\t} else {\n\t\t\t\tr += join + e;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn r;\n\t}", "public String stringJoin(Collection<? extends CharSequence> strings, CharSequence delimiter) {\n return EasonString.join(strings, delimiter);\n }", "public static String separate(String separator, String... blocks) {\n requireNonNullElements(blocks);\n return Stream.of(blocks)\n .collect(joining(separator));\n }", "public static String stringArrayToString(String[] strA, String delimiter) {\r\n StringBuffer str = new StringBuffer();\r\n if (null == strA || strA.length == 0)\r\n return null;\r\n for (int i = 0; i < strA.length; i++) {\r\n str.append(strA[i]);\r\n if (i < strA.length - 1)\r\n str.append(delimiter);\r\n }\r\n return str.toString();\r\n }", "String concat_ws(String delimiter, String... text);", "public static String toString(Deque<?> deque, String sep) {\n\t\treturn deque.stream().map(o -> o.toString()).collect(Collectors.joining(sep));\n\t}", "public static String implodeArray(String[] inputArray, String glueString) {\n\n\t/** Output variable */\n\tString output = \"\";\n\n\tif (inputArray.length > 0) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(inputArray[0]);\n\n\t\tfor (int i=1; i<inputArray.length; i++) {\n\t\t\tsb.append(glueString);\n\t\t\tsb.append(inputArray[i]);\n\t\t}\n\n\t\toutput = sb.toString();\n\t}\n\n\treturn output;\n\t}", "public static String listToSeparatedString(List<String> list, char separator) {\n return String.join(Character.toString(separator), list);\n }", "public static Value join(Value... values) {\n return join(Arrays.asList(values));\n }", "public static String arrayToCommaSeparatedString(String[] arr) {\n return arrayToSeparatedString(arr, ',');\n }", "public static <T> String join(char delim, Iterable<T> parts, Function<T, String> stringConvert) {\n StringBuilder sb = new StringBuilder(256);\n for (Iterator<T> it = parts.iterator(); it.hasNext();) {\n String sv = stringConvert.apply(it.next());\n if (sv != null && !sv.isEmpty()) {\n if (sb.length() > 0) {\n sb.append(delim);\n }\n sb.append(sv);\n }\n }\n return sb.toString();\n }", "public static String join(Collection<String> collection) {\n\t\treturn join(collection, \"\");\n\t}", "public static String implode ( final String glue, final String[] pieces )\n {\n final StringBuilder sb;\n\n if (null == glue || null == pieces) return null;\n if (pieces.length == 0) return \"\";\n\n sb = new StringBuilder();\n for (final String s : pieces) sb.append(s).append(glue);\n return sb.toString().substring(0, sb.length() - glue.length());\n }", "private static String toString(final String...array) {\n if ((array == null) || (array.length <= 0)) return \"&nbsp;\";\n final StringBuilder sb = new StringBuilder();\n for (int i=0; i<array.length; i++) {\n if (i > 0) sb.append(\", \");\n sb.append(array[i]);\n }\n return sb.toString();\n }", "public static String joinNames(String[] names) {\n return normalizer.joinNames(defaultRule, names);\n }", "public static void jkPrintArrOneStr(String[] inputArr) {\n\n int printArrLen = inputArr.length;\n\n for (int printCount = 0; printCount < printArrLen; printCount++) {\n System.out.print(inputArr[printCount]);\n if (printCount != printArrLen - 1) System.out.print(\", \");\n }\n System.out.println();\n //---------------------------- /print elements of array\n\n }", "public static String serialize( List<String> selectedValues, String delimiter )\n {\n return selectedValues == null ? \"\" : TextUtils.join( delimiter, selectedValues );\n }", "public static String toString(final byte [] b1,\n String sep,\n final byte [] b2) {\n return toString(b1, 0, b1.length) + sep + toString(b2, 0, b2.length);\n }", "public static String[] bytesToStringArray(byte[] array, char start, char... separators) {\n List<String> retVal = new ArrayList<String>();\n\n StringBuilder token = new StringBuilder();\n\n boolean isStarted = false;\n\n Character end = separators[separators.length - 1];\n\n List<Character> separator = new ArrayList<Character>();\n \n for(int i = 0; i < (separators.length - 1); i++) {\n separator.add(separators[i]);\n }\n \n for (byte b : array) {\n if (b == end) {\n if (token.length() > 0) {\n retVal.add(token.toString());\n }\n break;\n }\n\n if (isStarted) {\n\n if (separator.contains((Character) (char) b)) {\n retVal.add(token.toString());\n token = new StringBuilder();\n continue;\n }\n\n token.append((char) b);\n }\n\n if (b == start) {\n isStarted = true;\n }\n }\n\n\n return retVal.toArray(new String[]{});\n }", "public static void print(int[] a, String delimiter) {\n\n for (int i = 0; i < a.length; i++) {\n System.out.print(a[i] + delimiter);\n }\n System.out.println();\n }", "public static String concat(List<String> list, String seperator) {\n StringBuilder builder = new StringBuilder();\n\n for (String elem : list) {\n builder.append(elem);\n builder.append(seperator);\n }\n\n if (builder.length() > 0)\n builder.delete(builder.length() - seperator.length(), builder.length());\n\n return builder.toString();\n }", "public static String toHexString(byte[] b, char separator)\r\n {\r\n if (b == null)\r\n return null;\r\n \r\n StringBuffer buf = new StringBuffer(b.length * 3);\r\n for (int n = 0; n < b.length; n++)\r\n {\r\n buf.append(m_hex[(b[n] & 0xf0) >>> 4]);\r\n buf.append(m_hex[b[n] & 0x0f]);\r\n buf.append(separator);\r\n }\r\n return buf.toString();\r\n }", "public static void main(String[] args) {\r\n\t\tJoiner joiner = Joiner.on(\",\").skipNulls();\r\n\r\n\t\tSystem.out.println(joiner.join(\"One\", \"Two\", null, \"Four\", \"Five\", null, \"Seven\"));\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// returns the string \"One,Two,Four,Five,Seven\".\r\n\r\n\t\t/**\r\n\t\t * Alternative to the use of skipNulls(), we can also use\r\n\t\t * useForNull(String) to specify a string instead of null.\r\n\t\t */\r\n\t\tJoiner joiner1 = Joiner.on(\",\").useForNull(\"Sample\");\r\n\t\tSystem.out.println(joiner1.join(\"One\", \"Two\", null, \"Four\", \"Five\", null, \"Seven\"));\r\n\t\t\t\t\t\t\t\t\t\t\t// returns the string \"One,Two,Sample,Four,Five,Sample,Seven\".\r\n\t\t\t\t\t\t\t\t\t\t\t// It replace null value with 'Sample'\r\n\r\n\t\t/**\r\n\t\t * Using Joiner, we have seen joining variable number of Objects. we can\r\n\t\t * also join all the Objects in an Iterable, also all the elements in an\r\n\t\t * array.\r\n\t\t * \r\n\t\t */\r\n\t\tSystem.out.println(Joiner.on(\",\").join(Arrays.asList(1, 5, 7)));\t// returns 1,5,7\r\n\t\t\r\n\t\t/**\r\n\t\t * NOTE:\r\n\t\t * \r\n\t\t * \t\t1. joiner instances are always Immutable. \r\n\t\t * \t\t2. The joiner configuration methods will always return a new Joiner, which you must use to get\r\n\t\t * \t\t\tthe desired semantics. This makes Joiner thread-safe, and usable as static final constant.\r\n\t\t * \r\n\t\t */\r\n\t\t\r\n\t\t/**\r\n\t\t * Below is the comparison of using Joiner's join and joining typical java api style:\r\n\t\t * \r\n\t\t */\r\n\t\tList<String> stringList = new ArrayList<String>();\r\n\t\tstringList.add(\"One\");\r\n\t\tstringList.add(\"Two\");\r\n\t\tstringList.add(\"Three\");\r\n\t\tstringList.add(\"Four\");\r\n\t\tstringList.add(\"Five\");\r\n\r\n\t\tSystem.out.println(\"String Joined typical style: \" + buildString(stringList, \",\"));\r\n\r\n\t\tSystem.out.println(\"String Joined using Joiner class: \" + Joiner.on(\",\").skipNulls().join(stringList));\r\n\t}", "public static String joinSorted(Collection elements)\n {\n if (elements == null || elements.isEmpty())\n return \"(none)\";\n \n List<String> list = CollectionFactory.newList();\n \n for (Object o : elements)\n list.add(String.valueOf(o));\n \n Collections.sort(list);\n \n return join(list);\n }", "public static <E> String concatElements(Collection<E> collection, String joinText) {\n return concatElements(collection, Object::toString, joinText);\n }", "public static String concat(String[] list) {\n StringJoiner joiner = new StringJoiner(\" \");\n for (String s : list) {\n joiner.add(s);\n }\n return joiner.toString();\n }", "public String join() {\n\t\t// A stringbuilder is an efficient way to create a new string in Java, since += makes copies.\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (Node<T> current = start; current != null; current = current.next) {\n\t\t\tif (current != start) {\n\t\t\t\tsb.append(' ');\n\t\t\t}\n\t\t\tsb.append(current.value);\n\t\t}\n\t\treturn sb.toString();\n\t}", "private String array2CSV(){\r\n String returnMsg = \"\";\r\n for(String[] line : this.linesToPrint){\r\n for(String item : line){\r\n returnMsg += item;\r\n returnMsg += \";\";\r\n }\r\n returnMsg = returnMsg.substring(0,returnMsg.length()-1);\r\n returnMsg += \"\\n\";\r\n }\r\n return returnMsg;\r\n }", "public static String commas(Iterable<?> parts) {\n return join(\", \", parts);\n }", "public String CombineAirportsToOneString(ArrayList<String> airportArrayToConvert) {\n String resultString = \"\";\n StringBuilder resultStringBuilder = new StringBuilder(resultString);\n for (int i = 0; i < airportArrayToConvert.size(); i++) {\n if (i == airportArrayToConvert.size() - 1) {\n resultStringBuilder.append(airportArrayToConvert.get(i));\n } else {\n resultStringBuilder.append(airportArrayToConvert.get(i)).append(\", \");\n }\n }\n resultString = resultStringBuilder.toString();\n return resultString;\n }", "public static <E> String concatElementsSkipNulls(Collection<E> collection, String joinText) {\n return concatElementsSkipNulls(collection, Object::toString, joinText);\n }", "default String separate(final String... args) {\n final List<String> argList = new ArrayList<>();\n for (final String arg : args) {\n if (!arg.isEmpty()) {\n argList.add(arg);\n }\n }\n return String.join(\" \", argList);\n }", "private String joinNameList(List<String> names) {\n String bldr;\n\n if ( names != null ) {\n bldr = uniquifyNames(names)\n .stream()\n .collect(Collectors.joining(\"','\"));\n }\n else {\n throw new IllegalArgumentException( \"Null name list not allowed.\" );\n }\n\n return bldr;\n }", "private String sep(String path) {\n return path == null ? \"\" : \"/\" + path;\n }", "public static String combine(String[] s, String glue) {\n int k = s.length;\n if (k == 0) {\n return null;\n }\n StringBuilder out = new StringBuilder();\n out.append(s[0]);\n for (int x = 1; x < k; ++x) {\n out.append(glue).append(s[x]);\n }\n return out.toString();\n }", "public static void main(String[] args){\r\n\r\n Integer[] arr = {21,12,36,65,33,11,9,3};\r\n int arrlength = arr.length;\r\n outer:while(true){\r\n for(int leftPosition=0; leftPosition < arrlength; leftPosition++){\r\n int next = (leftPosition+1);\r\n if(next < arrlength){\r\n int left = arr[leftPosition];\r\n int right = arr[next];\r\n if(left>right){\r\n arr[leftPosition]=right;\r\n arr[next]=left;\r\n continue outer;\r\n }\r\n }\r\n }\r\n break outer;\r\n }\r\n String result = StringUtils.join(arr, \",\");\r\n System.out.println(result);\r\n }", "public static String join(Iterable<String> strings) {\n StringBuilder builder = new StringBuilder();\n for (String s : strings) {\n builder.append(s).append(\", \");\n }\n String result = builder.toString();\n return result.substring(1, result.length() - 2);\n }", "private void writeArrayToLine(String[ ] args) {\r\n\t\tStringBuilder buf = new StringBuilder();\r\n\t\tif (args.length>0) buf.append(args[0]);\r\n\t\tint k = 1;\r\n\t\twhile(k < args.length) buf.append(delim).append(args[k++]);\r\n\t\tout.println(buf.toString());\r\n\t}", "public static <E> String concatElements(Collection<E> collection, Function<E, String> mapper, String joinText) {\n return concatElements(EMPTY, collection, (t) -> true, mapper, joinText, EMPTY);\n }", "public static String arrayToString(String[] a, String div){\n\t\tString output = \"\";\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i].equals(\"\"))\n\t\t\t\ta[i] = \"<-_->\";\n\t\t\toutput=output+a[i];\n\t\t\tif (i<a.length-1)\n\t\t\t\toutput=output+div;\n\t\t}\n\t\t//what the fuck is this a java bug????????\n\t\tfor(int i=0; i<a.length; i++){\n\t\t\tif (a[i].equals(\"<-_->\"))\n\t\t\t\ta[i] = \"\";\n\t\t}\n\t\treturn output;\n\t}", "public static String concatElements(String joinText, String... texts) {\n return concatElements(asList(texts), joinText);\n }", "public static <E> String concatElements(String textPrefix, Collection<E> collection, Predicate<E> filter, Function<E, String> mapper,\n String joinText, String textSuffix) {\n return textPrefix.concat(collection.stream()\n .filter(filter)\n .map(mapper)\n .collect(Collectors.joining(joinText))\n ).concat(textSuffix);\n }", "public static String join(String glue, String... strings) {\n StringBuilder sb = new StringBuilder();\n for (String string : strings) {\n if (sb.length() > 0 && !string.isEmpty()) {\n sb.append(glue);\n }\n sb.append(string);\n }\n return sb.toString();\n }", "private static final String appendSeparatorIfNeeded(String path) {\n if (path.length() > 0) {\n return (path.charAt(path.length() - 1) == File.separatorChar ? path : path.concat(File.separator));\n } else {\n return path;\n }\n }", "public static String getAsString(List<String> words, String delimiter) {\n /*StringBuilder result = new StringBuilder();\n for(int i = 0; i < words.size() - 1; i++) {\n result.append(words.get(i)).append(delimiter);\n }\n result.append(words.get(words.size() - 1));\n return result.toString();*/\n return ListArrayUtil.listToString(words, delimiter, \"\", \"\");\n }", "private static String arrayToString(int[] array) {\n\n String arrayOutput = \"\";\n\n // seperate the elements of the array and add each to the outputstring\n for (int position = 0; position < array.length; position++) {\n\n arrayOutput += array[position] + \", \";\n }\n\n // trim the outputstring of the last seperation char\n arrayOutput = arrayOutput.substring(0, (arrayOutput.length() - 1));\n\n // output the string of the integer array\n return arrayOutput;\n }", "public void setSeparator(String separator) {\n\t\tthis.separator = separator;\n\t}", "String getSeparator();" ]
[ "0.84378546", "0.81681573", "0.75959367", "0.75577456", "0.7539876", "0.7345117", "0.73215336", "0.7274104", "0.7158", "0.70989347", "0.699", "0.6967698", "0.6918499", "0.6909481", "0.68226254", "0.6777022", "0.67217964", "0.6718708", "0.66864336", "0.6593914", "0.6491887", "0.6453746", "0.6452732", "0.63999844", "0.6347042", "0.63233805", "0.631316", "0.627191", "0.62694955", "0.6259831", "0.6234159", "0.6210337", "0.6198538", "0.6163885", "0.61409676", "0.60443574", "0.60341126", "0.6014941", "0.60004896", "0.5989172", "0.5905805", "0.5885019", "0.5873837", "0.58601874", "0.5831627", "0.58260673", "0.5794207", "0.5789707", "0.57106483", "0.56706184", "0.56521267", "0.564981", "0.56085247", "0.54668504", "0.5459526", "0.54584414", "0.54540986", "0.5451498", "0.53620684", "0.5336403", "0.5298025", "0.5270444", "0.52637815", "0.52585185", "0.52516264", "0.5227018", "0.5054334", "0.50477225", "0.5042091", "0.5040872", "0.5033516", "0.50127476", "0.500424", "0.4994468", "0.49890354", "0.49406233", "0.49240834", "0.4905486", "0.48980105", "0.4897767", "0.48958552", "0.48933333", "0.4861346", "0.48583907", "0.4801344", "0.4797968", "0.47825295", "0.47818485", "0.47776586", "0.47773004", "0.47640672", "0.47597665", "0.4759464", "0.4744249", "0.47053796", "0.47019887", "0.469934", "0.46806064", "0.4669076", "0.4666598" ]
0.7219014
8
/ Standard getters and setters.
public long getId() { return id; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void get() {}", "@Override\n String get();", "public String get();", "public void get() {\n }", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "private PropertyAccess() {\n\t\tsuper();\n\t}", "protected abstract Set method_1559();", "public abstract String get();", "@Test\r\n\tpublic void testGettersSetters()\r\n\t{\r\n\t\tPerson p = new Person(42);\r\n\t\tp.setDisplayName(\"Fred\");\r\n\t\tassertEquals(\"Fred\", p.getFullname());\r\n\t\tp.setPassword(\"hunter2\");\r\n\t\tassertEquals(\"hunter2\", p.getPassword());\r\n\t\tassertEquals(42, p.getID());\r\n\t}", "public int getAge() {return age;}", "@Test\n public void testSongGettersSetters() {\n Integer id = 4;\n String title=\"title\",uri = \"uri\";\n\n Song song = new Song();\n song.setId(id);\n song.setTitle(title);\n song.setUri(uri);\n\n assertEquals(\"Problem with id\",id, song.getId());\n assertEquals(\"Problem with title\",title, song.getTitle());\n assertEquals(\"Problem with uri\",uri, song.getUri());\n }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public void setAge(int age) { this.age = age; }", "private ReadProperty()\r\n {\r\n\r\n }", "public String get()\n {\n return this.string;\n }", "@Test\r\n\tpublic void gettersSettersTest() {\r\n\t\tItem item = new Item();\r\n\t\titem.setCount(NUMBER);\r\n\t\tassertEquals(item.getCount(), NUMBER);\r\n\t\titem.setDescription(\"word\");\r\n\t\tassertEquals(item.getDescription(), \"word\");\r\n\t\titem.setId(NUMBER);\r\n\t\tassertEquals(item.getId(), NUMBER);\r\n\t\titem.setName(\"word\");\r\n\t\tassertEquals(item.getName(), \"word\");\r\n\t\titem.setPicture(\"picture\");\r\n\t\tassertEquals(item.getPicture(), \"picture\");\r\n\t\titem.setPrice(FLOATNUMBER);\r\n\t\tassertEquals(item.getPrice(), FLOATNUMBER, 0);\r\n\t\titem.setType(\"word\");\r\n\t\tassertEquals(item.getType(), \"word\");\r\n\t\titem.setSellerId(NUMBER);\r\n\t\tassertEquals(item.getSellerId(), NUMBER);\r\n\t\titem.setDeleted(false);\r\n\t\tassertEquals(item.isDeleted(), false);\r\n\t\titem.setDeleted(true);\r\n\t\tassertEquals(item.isDeleted(), true);\t\t\r\n\t}", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "public V get() {\n return value;\n }", "@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }", "private Get() {}", "private Get() {}", "public int getAge(){\n return age;\n }", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "public int get () { return rating; }", "public Object get()\n {\n return m_internalValue;\n }", "public int getAge()\r\n {\r\n return age;\r\n }", "private interface Valuable extends Base {\n\t\tString getValue();\n\t\tvoid setValue(String value);\n\t}", "public Student getStudent() { return student; }", "@Override\n\tpublic String get() {\n\t\treturn null;\n\t}", "public int\t\tget() { return value; }", "String setValue();", "public int getArmadura(){return armadura;}", "public void setNombre(String nombre) {\r\n\tthis.nombre = nombre;\r\n}", "public String get() {\n return value;\n\t}", "String get();", "String get();", "public Value makeGetter() {\n Value r = new Value(this);\n r.getters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "public int getAge()\n {\n return age;\n }", "public double getPrice(){return price;}", "public Value restrictToGetterSetter() {\n checkNotPolymorphicOrUnknown();\n if (!isMaybePrimitive() && !isMaybeObjectOrSymbol())\n return this;\n Value r = new Value(this);\n r.flags &= ~PRIMITIVE;\n r.num = null;\n r.str = null;\n r.object_labels = null;\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }", "@Override\n Derived get();", "protected Value() {\n flags = 0;\n num = null;\n str = null;\n object_labels = getters = setters = null;\n excluded_strings = included_strings = null;\n functionPartitions = null;\n functionTypeSignatures = null;\n var = null;\n hashcode = 0;\n }", "public void setdat()\n {\n }", "public void setNombre(String nombre) {this.nombre = nombre;}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "@Override\npublic void setAttributes() {\n\t\n}", "public int getNumber(){return number;}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "public void setPrice(double price){this.price=price;}", "@java.lang.Override\n public int getAge() {\n return age_;\n }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "public String getSex(){ //\"public\" access allows other classes to retrieve the value of \"sex\", but since there\n // is no setter it cannot be changed from outside the class = Encapsulation/Inkapsling\n return this.sex;\n }", "String getName(){return this.name;}", "public int getlife(){\r\n return life;\r\n}", "public Book getBook() \t\t{ return this.myBook; }", "@Test\n\tpublic static void testGetters() {\n\t\tCompoundMadeOfElementDTO idk = new CompoundMadeOfElementDTO(1, 3, 20);\n\t\tassertEquals(1, idk.getCompoundID());\n\t\tassertEquals(3, idk.getElementID());\n\t\tassertEquals(20, idk.getElementQuantity());\n\t}", "public String get() {\n return this.value;\n }", "public ReadLociSetter() {\n super(\"org.tair.db.locusdetail\", 2147483647);\n }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public int getYearsOffice()\n {\n return yearsOffice;\n}", "public Age getAge() {\n return age;\n }", "@Override\n\tpublic void get() {\n\t\tSystem.out.println(\"this is get\");\n\t}", "public String get()\n {\n return val;\n }", "public void setAge(int age);", "public void set(String name, Object value) {\n }", "private Value() {\n\t}", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "public int getOldProperty_descriptionType(){\n return localOldProperty_descriptionType;\n }", "public int getValue() {\n/* 450 */ return this.value;\n/* */ }", "public int getPrice(){\n return 80;\n }", "public Object getNewValue()\n {\n return newValue;\n }", "private DiffProperty() {\n\t\t// No implementation\n\t}", "@Override\n protected void updateProperties() {\n }", "public String getEmployee()\r\n/* 38: */ {\r\n/* 39:43 */ return this.employee;\r\n/* 40: */ }", "public static void main(String[] args) {\n Student s1 = new Student();\r\n \r\n //set the age for the student \r\n// s1.age = -500; \r\n// System.out.println(\"Age: \"+s1.age);\r\n\r\n s1.setAge(-500);\r\n System.out.println(s1.getAge()); //23 \r\n\r\n \r\n }", "public Object get_KeyValue(){return\t\t\t Id;}", "public A force_get()\n {\n throw new UnsupportedOperationException();\n }", "public ImmutableRetrieve() {\n super();\n }", "public int getPrice(){\n return price;\n }", "public Object getValue() { return _value; }", "public Student getStudent() {\n return student; //XXX-CHANGE-XXX\n }", "public int getAge() {\r\n return age;\r\n }", "public interface Division extends BusinessObject, Serializable {\n\n /**\n * Accessor method for Name.\n * <br>longTextAttribute The name of the division\n *\n * @return java.lang.String attribute of this Division.\n */\n public java.lang.String getName();\n\n /**\n * Mutator method for Name.\n * <br>longTextAttribute The name of the division\n *\n * @param aName set java.lang.String attribute of this Division.\n */\n public void setName(java.lang.String aName);\n\n\n /**\n * The enumeration for Name\n */\n public final static int NAME = 0;\n\n\n\n\n\n}", "public String getName(){\n return name;\n}", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public String getID(){return ID;}", "public void testGetterAndSetter() {\n UDDIOperationInput uddiOperationInput = new UDDIOperationInput();\n\n //Test Get and Set ElementType\n QName qName = new QName(UDDI_NS_URI, \"input\");\n assertNotNull(\"getElementType was null\",\n uddiOperationInput.getElementType());\n assertTrue(\"getElementType was incorrect\",\n uddiOperationInput.getElementType().equals(qName));\n\n //Test Get and Set Required\n uddiOperationInput.setRequired(isRequired);\n assertFalse(\"getRequired returned true\",\n uddiOperationInput.getRequired());\n isRequired = true;\n uddiOperationInput.setRequired(isRequired);\n assertTrue(\"getRequired returned false\",\n uddiOperationInput.getRequired());\n\n //Test Get and Set BusinessName\n uddiOperationInput.setBusinessName(businessName);\n assertTrue(\"getBusinessName incorrect\",\n uddiOperationInput.getBusinessName().equals(businessName));\n\n //Test Get and Set ServiceName\n uddiOperationInput.setServiceName(serviceName);\n assertTrue(\"getServiceName incorrect\",\n uddiOperationInput.getServiceName().equals(serviceName));\n }", "public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "public String getNombre(){\n return nombre;\n }", "public Address getAddress() { return address; }", "@Test\r\n\tpublic void test_setter_and_getter_title(){\r\n\t\ttestClassDefinition();\r\n\t\tBook c = new BookMock(\"Old Title\", 1);\r\n\t\tc.setTitle(\"New Title\");\r\n\t\tassertEquals(\"Changed title\", \"New Title\", c.getTitle());\r\n\t}", "public String getNumber(){return number;}", "public java.lang.String getOldProperty_description(){\n return localOldProperty_description;\n }", "public Value restrictToGetter() {\n checkNotPolymorphicOrUnknown();\n if (getters == null)\n return theNone;\n Value r = new Value();\n r.getters = getters;\n return canonicalize(r);\n }" ]
[ "0.67223024", "0.64620256", "0.6435327", "0.643153", "0.6407642", "0.6337735", "0.6335499", "0.6326286", "0.62896407", "0.6236267", "0.619292", "0.6126218", "0.6126218", "0.60949063", "0.60683537", "0.60647124", "0.6013327", "0.5985863", "0.5980047", "0.59715605", "0.59475875", "0.59274143", "0.59274143", "0.5926425", "0.58882105", "0.5887526", "0.5869651", "0.58597225", "0.5854354", "0.584423", "0.5841459", "0.5836845", "0.5821144", "0.5815099", "0.5803505", "0.58012384", "0.57851464", "0.57851464", "0.5776363", "0.5769905", "0.57698536", "0.5758409", "0.5748978", "0.57353836", "0.5729315", "0.572923", "0.5729017", "0.57289374", "0.57268083", "0.57248944", "0.5718081", "0.5700635", "0.5698865", "0.5696585", "0.56783146", "0.5673753", "0.56731886", "0.56639403", "0.5657903", "0.5650642", "0.564804", "0.5647786", "0.56445116", "0.56395054", "0.5638", "0.56330806", "0.5621508", "0.5618573", "0.56178766", "0.5609798", "0.56085217", "0.56073534", "0.560702", "0.5604293", "0.5591576", "0.55887306", "0.5587806", "0.5585332", "0.55844545", "0.5582368", "0.55819917", "0.5579816", "0.55739987", "0.5570821", "0.55689", "0.5567683", "0.55662316", "0.5565691", "0.5563814", "0.55636984", "0.5562957", "0.55596465", "0.55584246", "0.5556204", "0.5549066", "0.55467576", "0.5545451", "0.5545245", "0.55445176", "0.5543598", "0.5540837" ]
0.0
-1
Created by Chloe on 10/11/16.
public interface IWordsToOutputHandler { void findAnagramsAndCompare(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "private stendhal() {\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\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 public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void m50366E() {\n }", "protected boolean func_70814_o() { return true; }", "public void gored() {\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\tpublic void init() {\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}", "private void poetries() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@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 dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {\n }", "private void kk12() {\n\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n public int describeContents() { return 0; }", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {}", "public void mo4359a() {\n }", "@Override\n protected void init() {\n }", "@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}", "@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 public int retroceder() {\n return 0;\n }", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n public void init() {}", "@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 void init() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public void method_4270() {}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "private void strin() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tprotected void doF8() {\n\t\t\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 }", "public void m23075a() {\n }", "@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\r\n\tprotected void initialize() {\n\r\n\t}", "private void m50367F() {\n }", "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "public void mo12628c() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "private Rekenhulp()\n\t{\n\t}", "public void skystonePos4() {\n }", "public abstract void mo70713b();", "@Override\n public void initialize() { \n }", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}" ]
[ "0.60060334", "0.59315366", "0.5880916", "0.57996607", "0.57819915", "0.5755406", "0.57524645", "0.5726229", "0.5726229", "0.5724967", "0.57037985", "0.5694217", "0.5688822", "0.56726444", "0.56629497", "0.56629497", "0.56629497", "0.56629497", "0.56629497", "0.5639388", "0.56351626", "0.5633464", "0.56045425", "0.55929303", "0.55809987", "0.55756384", "0.55677295", "0.55677295", "0.55671084", "0.5565634", "0.55638945", "0.55463165", "0.5540675", "0.553004", "0.552728", "0.55227095", "0.55071557", "0.55034167", "0.54980344", "0.5484792", "0.5479399", "0.5479357", "0.5477312", "0.5477312", "0.5477312", "0.54749435", "0.54749435", "0.54749435", "0.54715437", "0.54705226", "0.54696614", "0.546849", "0.54606265", "0.54606265", "0.54606265", "0.545957", "0.54572266", "0.54572266", "0.54572266", "0.54572266", "0.54572266", "0.54572266", "0.5456739", "0.5450629", "0.54492027", "0.54472613", "0.54434466", "0.54429245", "0.54429245", "0.543643", "0.5431027", "0.54264957", "0.542056", "0.54087424", "0.54070866", "0.5406673", "0.5406029", "0.53959924", "0.5371714", "0.5353171", "0.5353171", "0.5353171", "0.5353171", "0.5353171", "0.5353171", "0.5353171", "0.5349967", "0.5340524", "0.5340524", "0.5339678", "0.53378415", "0.5333463", "0.5331722", "0.5331722", "0.5328545", "0.5326188", "0.5324768", "0.5319121", "0.53158283", "0.53148705", "0.53117275" ]
0.0
-1
Below constructor accepts key and value as parameters and assigns them to the class fields
public MapReducePair(double key, int value) { this.key = key; this.value = value; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Parameter(int key, String name, String value){\n this.key = key;\n this.name = name;\n this.value = value;\n }", "public mapper3c(Integer theKey, String theValue) { super(theKey, theValue); }", "DictionaryPair (K someKey , V someValue) {\n this.key = someKey;\n this.value = someValue;\n }", "private DataKeys(String pKey) {\n key = pKey;\n }", "public KeyValuePair () {\n key = null;\n value = null;\n }", "public Entry(K key, V value)\r\n\t\t{\r\n\t\t\tthis.key = key;\r\n\t\t\tthis.value = value;\r\n\t\t}", "public Node(final Object key, final Object value) {\r\n this.k = new Object[]{key};\r\n this.v = new Object[]{value};\r\n this.c = null;\r\n this.kcount = 1;\r\n }", "public KeyedEntry() { }", "public Key(final Class<?> classe) {\n this(classe.getName());\n valueClass = classe;\n }", "public MultiKey() {}", "public Entry(K key, V value) {\r\n this.key = key;\r\n this.value = value;\r\n }", "public Entry(K key, V value) {\r\n this.key = key;\r\n this.value = value;\r\n }", "public Entry(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public Entry(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public TicketField(String key, String value) {\n TF_Field_Name = key.toUpperCase().trim();\n TF_Field_Value = value.trim();\n }", "public RequestParams(final String key, final String value) {\n this(new HashMap<String, String>() {\n {\n put(key, value);\n }\n });\n }", "public City(Integer aKey, String aLabel)\r\n {\r\n label = aLabel;\r\n key = aKey;\r\n }", "public Pair(Key key, Value value) {\n this.key = key;\n this.value = value;\n }", "public cacheEntry(int key, String value){\n int key;\n String value;\n cacheEntry(int key){\n this.key = key;\n this.value = value;\n }\n}", "public Pair(K key, V value){\n this.key = key;\n this.value = value;\n }", "public PairImpl(F key, S value) {\n this.key = key;\n this.value = value;\n }", "public Init(String key, String desc) {\n super(key, desc);\n }", "public Node(Key key, Value value) {\n\t this.key = key;\n\t this.value = value;\n }", "@SuppressWarnings(\"unchecked\")\r\n public LeafNode(Key key, Value value) {\r\n keys = (Key[])new Comparable[3]; \r\n values = (Value[])new Object[3];\r\n setKeyValuePairs(key,value);\r\n }", "public DatabaseEntry(K key, V value) {\n\t\tthis.key = key;\n\t\tthis.value = value;\n\t}", "public Key()\n {\n name = \"\";\n fields = new Vector<String>();\n options = new Vector<String>();\n isPrimary = false;\n isUnique = false;\n }", "private Tuple(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public Property(String key, Object value)\r\n {\r\n m_key = key;\r\n m_value = value;\r\n }", "public City(Integer aKey)\r\n {\r\n label = \" \";\r\n key = aKey;\r\n }", "public ContentKey() {}", "public SocketParams(String key, String value) {\n init();\n put(key, value);\n }", "public Pair(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public KeyedItem(Comparable key,\n T item)\n {\n this.key = key;\n this.item = item;\n this.valid = true;\n }", "public ClassKey(final Class<?> classe) {\n super(classe);\n }", "public MagicDictionary() {\n\n }", "public Entrada(K key, V value) {\n\t\t\tsuper(key, value);\n\t\t}", "private Node(K keyPortion, V valuePortion)\n {\n this(keyPortion, valuePortion, null);\n }", "public PaymentRecordKey() {\n super();\n }", "public FuncTestKey() {\n super();\n }", "private EstadoAsistenciaType(String key, String value) {\n\t\tthis.key = key;\n\t\tthis.value = value;\n\t}", "public KeyedItem(int key,\n T item)\n {\n this(new Integer(key), item);\n }", "private HashNode(KeyType key, ValueType value) {\r\n this.key = key;\r\n this.value = value;\r\n }", "public KeyEncryptionKeyInfo() {\n }", "private DependencyManager(Map<TypedKey<?>, Object> inputs)\n\t{\n\t\tmap.putAll(inputs);\n\t}", "private KeyValue(Builder builder) {\n super(builder);\n }", "public MyHashMap() {\n\n }", "public MapEntry(K k, V v)\r\n\t\t{\r\n\t\t\tkey = k;\r\n\t\t\tval = v;\r\n\t\t}", "public BankAccountKey(java.lang.String argAccID) {\n\taccID = argAccID;\n}", "public Dict(Obj value) {\n this.value = value;\n }", "public MyHashMap() {\n\n }", "public TableEntry(K key, V value) {\r\n\t\t\tObjects.requireNonNull(key);\r\n\r\n\t\t\tthis.key = key;\r\n\t\t\tthis.value = value;\r\n\t\t}", "public ValueMap(final String keyValuePairs)\n\t{\n\t\tthis(keyValuePairs, \",\");\n\t}", "private NoValue(K key) {\n this.key = key;\n }", "public Tag(String key, String value) {\n setKey(key);\n setValue(value);\n }", "public Node(K key, V value) {// this is the constructor of a new Node\n\t\t\tmKey = key;// it takes as an arguments a key\n\t\t\tmValue = value;// and a value\n\t\t\tmParent = mSentinel;// and makes a nodw with no parent\n\t\t\tmLeft = mSentinel;// or children\n\t\t\tmright = mSentinel;// that stores the key and the value\n\t\t}", "private ConfigurationKeys() {\n // empty constructor.\n }", "public IDataKey(String key) {\n this(key, false);\n }", "public CacheTagImpl(String key) {\n this(key, ANY);\n }", "private EncryptionKey() {\n }", "protected Singleton(K key, double value, Comparator<? super K> comparator) {\n/* 181 */ super(key, value);\n/* 182 */ this.comparator = comparator;\n/* */ }", "public KeyNamePair() {\r\n this.key = \"\";\r\n this.name = \"\";\r\n }", "public MyKeyAdapter() {\r\n super();\r\n }", "public CardTrackKey(int argTrackId) {\n\ttrackId = argTrackId;\n}", "public CardTrackKey() {\n\tsuper();\n}", "public Message(String key, Object... values) {\n this.key = key;\n this.values = values;\n }", "public CacheItem(String key) {\n setKey(key);\n setCreateTime(System.currentTimeMillis());\n }", "public BankAccountKey() {\n\tsuper();\n}", "public Entrada(K k, V v) {\n\t\tkey = k;\n\t\tvalue = v;\n\t}", "public KeyVaultProperties() {\n }", "protected TemplateElement(final String key) {\n this.key = key;\n if (this.key.charAt(0) != SEPARATOR) {\n this.key = SEPARATOR + this.key;\n }\n if (this.key.charAt(key.length() - 1) != SEPARATOR) {\n this.key += SEPARATOR;\n }\n }", "public MyLinkedHashMap(int val1, float val2, boolean val3){\n super(val1, val2, val3);\n }", "public BaseElement(final Object id, final String label, ElasticGraph graph, Object[] keyValues) {\n this.graph = graph;\n this.id = id != null ? id.toString() : new com.eaio.uuid.UUID().toString();\n this.label = label;\n if(keyValues != null) ElementHelper.legalPropertyKeyValueArray(keyValues);\n\n if (keyValues != null) {\n if(keyValues.length % 2 == 1) throw Element.Exceptions.providedKeyValuesMustBeAMultipleOfTwo();\n for (int i = 0; i < keyValues.length; i = i + 2) {\n String key = keyValues[i].toString();\n Object value = keyValues[i + 1];\n\n addPropertyLocal(key, value);\n }\n }\n\n }", "public UpdateOperation(){ key = value = null;}", "private DictionaryReader() {}", "protected MapElement(long key) {\r\n super(key);\r\n }", "public HashEntry(Object k, int v){\n\t\tkey = k;\n\t\tvalue = v;\n\t}", "public MutablePair(K key, V value) {\n this.key = key;\n this.value = value;\n }", "public Dictionary(String dataname, String username){\n this(dataname, null, username);\n }", "private Talent(String key, String fullName)\n {\n super(key, fullName);\n }", "public MagicDictionary() {\n this.map = new HashMap<>();\n }", "@SuppressWarnings(\"unused\")\n private MyPropertiesMapEntry() {\n this.key = null;\n this.value = null;\n }", "public FreqNode(String key, int value) {\n this.key = key;//sets key \n this.value = value;//sets value \n }", "public Vigenere(CharSequence key)\n\t{\n\t\tthis.key = sanitizeValue(key);\n\t}", "public ValueMap(final String keyValuePairs, final String delimiter)\n\t{\n\t\tsuper();\n\n\t\tint start = 0;\n\t\tint equalsIndex = keyValuePairs.indexOf('=');\n\t\tint delimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex);\n\t\tif (delimiterIndex == -1)\n\t\t{\n\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t}\n\t\twhile (equalsIndex != -1)\n\t\t{\n\t\t\tif (delimiterIndex < keyValuePairs.length())\n\t\t\t{\n\t\t\t\tint equalsIndex2 = keyValuePairs.indexOf('=', delimiterIndex + 1);\n\t\t\t\tif (equalsIndex2 != -1)\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.lastIndexOf(delimiter, equalsIndex2);\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t\t\t}\n\t\t\t}\n\t\t\tString key = keyValuePairs.substring(start, equalsIndex);\n\t\t\tString value = keyValuePairs.substring(equalsIndex + 1, delimiterIndex);\n\t\t\tadd(key, value);\n\t\t\tif (delimiterIndex < keyValuePairs.length())\n\t\t\t{\n\t\t\t\tstart = delimiterIndex + 1;\n\t\t\t\tequalsIndex = keyValuePairs.indexOf('=', start);\n\t\t\t\tif (equalsIndex != -1)\n\t\t\t\t{\n\t\t\t\t\tdelimiterIndex = keyValuePairs.indexOf(delimiter, equalsIndex);\n\t\t\t\t\tif (delimiterIndex == -1)\n\t\t\t\t\t{\n\t\t\t\t\t\tdelimiterIndex = keyValuePairs.length();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tequalsIndex = -1;\n\t\t\t}\n\t\t}\n\t}", "protected SDB_ServiceClass( String s )\n {\n name = s;\n nameHash.put( s, this );\n intValue = index;\n intHash.put( new Integer( intValue ), this );\n }", "public DiscoveryItem(String key) {\n this(key, null, 0, 0, null);\n }", "public OwnMap() {\n super();\n keySet = new OwnSet();\n }", "private IDataKey(Queue<Part> parts) {\n super(parts);\n }", "private com.hps.july.persistence.CarKey keyFromFields ( int f0 ) {\n com.hps.july.persistence.CarKey keyClass = new com.hps.july.persistence.CarKey();\n keyClass.car = f0;\n return keyClass;\n }", "public PSRelation(String keyName, String keyValue)\n {\n if (keyName == null || keyName.trim().length() == 0)\n throw new IllegalArgumentException(\"keyName may not be null or empty\");\n\n if (keyValue == null || keyValue.trim().length() == 0)\n throw new IllegalArgumentException(\"keyValue may not be null or empty\");\n\n if (keyValue == null)\n keyValue = \"\";\n\n addKey(keyName, keyValue);\n }", "public MyHashMap() {\n\t\tthis(INIT_CAPACITY);\n\t}", "public HeaderEntry(String key, String value)\n\t{\n\t\tif(key == null)\n\t\t{\n\t\t\tthrow new IllegalArgumentException(\"The Key can't be null\");\n\t\t}\n\n\t\tthis.key = key;\n\t\tthis.value = value;\n\t}", "public PIEBankPlatinumKey() {\n\tsuper();\n}", "public StandardValues() {\n super(ForwardingMap.this);\n }", "KeyValueImpl(Context context, Class<?> interfaceType, String storageKey) {\n\t\tinit(context, interfaceType, storageKey);\n\t}", "public AccountKeyDatastoreSecrets() {\n }", "private SearchResponseBuilder(Class<T> responseClass, Class<ST> annotatedClass,\n BiMap<String, P> solrField2ParamEnumMap,\n BiMap<String, String> solrField2javaPropertiesMap) {\n this.responseClass = responseClass;\n this.annotatedClass = annotatedClass;\n this.solrField2ParamEnumMap = solrField2ParamEnumMap;\n this.solrField2javaPropertiesMap = solrField2javaPropertiesMap;\n keyField = getKeyField(annotatedClass);\n }", "private Values(){}", "private Builder(com.opentext.bn.converters.avro.entity.ContentKey other) {\n super(SCHEMA$);\n if (isValidValue(fields()[0], other.keyName)) {\n this.keyName = data().deepCopy(fields()[0].schema(), other.keyName);\n fieldSetFlags()[0] = true;\n }\n if (isValidValue(fields()[1], other.keyValue)) {\n this.keyValue = data().deepCopy(fields()[1].schema(), other.keyValue);\n fieldSetFlags()[1] = true;\n }\n if (isValidValue(fields()[2], other.keyType)) {\n this.keyType = data().deepCopy(fields()[2].schema(), other.keyType);\n fieldSetFlags()[2] = true;\n }\n }", "public ArrayHashMap() {\n super();\n }", "public Message(String key) {\n this.key = key;\n }" ]
[ "0.6860714", "0.68219936", "0.67272854", "0.6710659", "0.67092806", "0.6576091", "0.65683377", "0.65437764", "0.6528456", "0.6444623", "0.64061755", "0.64061755", "0.6399935", "0.6399935", "0.6365357", "0.6356466", "0.6314463", "0.6313387", "0.63038844", "0.62666637", "0.6263096", "0.6238259", "0.6221011", "0.62089276", "0.62047625", "0.6187976", "0.61772114", "0.6144634", "0.61155266", "0.61070424", "0.61031085", "0.6087751", "0.60859746", "0.60841435", "0.6058172", "0.60478973", "0.6021994", "0.60201365", "0.6007201", "0.600072", "0.59879947", "0.59753907", "0.5971042", "0.5964447", "0.5953273", "0.5950359", "0.5933267", "0.5901344", "0.58752406", "0.5872702", "0.58656603", "0.58624417", "0.5850633", "0.5850218", "0.58499223", "0.58472717", "0.5840447", "0.58371747", "0.58253825", "0.5821864", "0.5808689", "0.57810736", "0.5769091", "0.5768446", "0.5742689", "0.5709534", "0.5707297", "0.57050204", "0.569741", "0.569025", "0.5679159", "0.56768703", "0.56660265", "0.56586677", "0.5654809", "0.56324875", "0.5627284", "0.56104755", "0.5606601", "0.55677086", "0.5556391", "0.5548842", "0.5548665", "0.55389833", "0.5538516", "0.5537871", "0.55320644", "0.5517949", "0.55165684", "0.5509003", "0.5497753", "0.54948324", "0.5493457", "0.54781604", "0.54775923", "0.547757", "0.54769766", "0.5465415", "0.54646015", "0.5459452", "0.5457989" ]
0.0
-1
Initializes a variable token.
public VariableToken(String text) { super(text); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "private ELOperandToken readVarToken() {\r\n \t\tfState = STATE_VAR;\r\n \t\tint endOfToken = index;\r\n \t\tint ch;\r\n \t\tint type = ELOperandToken.EL_PROPERTY_NAME_TOKEN;\r\n \t\twhile((ch = readCharBackward()) != -1) {\r\n \t\t\tif (!Character.isJavaIdentifierPart(ch)) {\r\n \t\t\t\treleaseChar();\r\n \t\t\t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t\t\t}\r\n \t\t}\r\n \t\treleaseChar();\r\n \t\treturn (endOfToken - index > 0 ? new ELOperandToken(index, endOfToken - index, getCharSequence(index, endOfToken - index), type) : ELOperandToken.EOF);\r\n \t}", "private Token () { }", "public Variable(String name, int initialValue){\n this.name = name;\n this.initialValue = initialValue;\n }", "public VariableNode(String attr)\n {\n this.name = attr;\n }", "Variable(String _var) {\n this._var = _var;\n }", "@Override\r\n public ASTNode visitVarDef(CoolParser.VarDefContext ctx) {\n if (ctx.init != null) {\r\n return new VarDef(ctx.getStart(), new Id(ctx.name), new Type(ctx.type), (Expression) visit(ctx.init));\r\n }\r\n\r\n return new VarDef(ctx.getStart(), new Id(ctx.name), new Type(ctx.type), null);\r\n }", "private Stmt varDeclaration() {\n Token name = consume(IDENTIFIER, \"Expect variable name.\");\n Expr initializer = null;\n // Parse the initializer if an '=' is present. This branching allows initialization without declaration.\n if(match(EQUAL)) {\n initializer = expression();\n }\n\n consumeSemi(\"Expect ';' after variable declaration.\");\n return new Stmt.Var(name, initializer);\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "public Variable(boolean vInitialized, boolean vFinal, Keywords.Type Vtype) {\n\t\tisInitialized = vInitialized;\n\t\tisFinal = vFinal;\n\t\ttype = Vtype;\n\t}", "public VariableNode(String name) {\n\t\tthis.name = name;\n\t}", "public Token() {\n }", "public Parser(ArrayList<Token> tokenSeq, Hashtable<String, VarToken> variables) {\r\n tokens = tokenSeq; \r\n position = 0; // Current position in sequence\r\n vars = variables;\r\n }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "public ActRuVariable() {\n this(DSL.name(\"act_ru_variable\"), null);\n }", "public void visit(VariableInitializer n) {\n n.f0.accept(this);\n }", "public ConceptToken(String token) {\n _multiToken = false;\n _text = \"\";\n _tokens = new String[]{token};\n }", "public Token() {\n token = new Random().nextLong();\n }", "private SWRLVariable initalizeVariable(String name, SWRLVariable var1) {\n\n if (literalVocabulary.containsKey(name)) {\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + literalVocabulary.get(name)));\n } else {\n char variable = this.generateVariable();\n literalVocabulary.put(name, String.valueOf(variable));\n var1 = factory.getSWRLVariable(IRI.create(manager.getOntologyDocumentIRI(domainOntology) + \"#\" + variable));\n }\n\n return var1;\n }", "public Var(String var) {\r\n this.variable = var;\r\n }", "public Variable(String name){\n this.name = name;\n }", "public Token() {\n }", "public Token() {\n this.clitic = \"none\";\n }", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "VariableExp createVariableExp();", "@Override\r\n public void init(String args) {\n String[] arguments = args.split(\" \");\r\n arg = Integer.parseInt(arguments[0]);\r\n //If there is more than one argument then set var to the \r\n //second argument, which is the variable name\r\n if(arguments.length > 1){\r\n this.var = arguments[1];\r\n }\r\n }", "private Token(int code)\n {\n myCode = code;\n }", "Token(Type ttype, String v, int p, int l) {\n type = ttype;\n value = v;\n pos = p;\n line = l;\n }", "public Token(int start)\n {\n this.start = start;\n }", "public TemplexTokenMaker() {\r\n\t\tsuper();\r\n\t}", "public void variableInit(HashSet<MJVariable> initialized)\n\t\t\tthrows TypeCheckerException {\n\t\t\n\t\tif (!(this.init instanceof MJNoExpression)) {\n\t\t\tinitialized.add(this);\n\t\t}\n\n\t}", "public ConsistentVariable(String name, Class<V> type, V initValue) {\n this(name, type, initValue, 0);\n }", "public BasicParser(BasicParserTokenManager tm) {\n\t token_source = tm;\n\t token = new Token();\n\t jj_ntk = -1;\n\t jj_gen = 0;\n\t for (int i = 0; i < 13; i++) jj_la1[i] = -1;\n }", "private void init() {\n\t\t\n\t\ttry{\t\t\t\n\t\t\tinfos = new HashMap<String, VariableInfo>();\n\t\t\t\n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\t\n\t\t\t\tif(this.problem.getNbrNeighbors(var) != 0){ // an isolated variable doesn't need a CryptoScheme and therefore no VariableInfo either\n\t\t\t\t\t\n\t\t\t\t\tVariableInfo info = new VariableInfo(var);\n\t\t\t\t\tinfos.put(var, info);\n\t\t\t\t\t\n\t\t\t\t\tinfo.cs = cryptoConstr.newInstance(this.cryptoParameter);\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//initialize request counter for my own variables\n\t\t\trequestCount = new HashMap<String,Integer>(); \n\t\t\tfor(String var : this.problem.getMyVars()){\n\t\t\t\trequestCount.put(var, 0);\n\t\t\t}\n\t\t\t\n\t\t\tthis.started = true;\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\t\t\n\t}", "public AstParser(AstParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 9; i++) jj_la1[i] = -1;\n }", "public VariableIF createVariable(VariableDecl decl);", "VariableDeclarationWithInitCS getResultVariable();", "protected void initVars() {}", "Variable createVariable();", "Variable createVariable();", "public void setToken(int value){token = value;}", "public Token(int ordinal) {\r\n\t\tthis.ordinal = ordinal;\r\n\t\tthis.value = null;\r\n\t}", "private ConsistentVariable(String name, Class<V> type, V initValue, long initVersion) {\n super(name, type);\n versionedValue = new AtomicReference<>(new VersionedValue<>(initVersion, initValue));\n }", "public Parser(ParserTokenManager tm) {\r\n token_source = tm;\r\n token = new Token();\r\n jj_ntk = -1;\r\n }", "public TermParser(){\n\t\tvar_map = new HashMap <String, Double>();\n\t\tvar_map.put(\"pi\", Math.PI);\n\t\tvar_map.put(\"e\", Math.E);\n\t\tclear();\n\t}", "private void initVar() {\n\n sTextLD = sTextMLD;\n\n }", "private void tokenStart() {\n tokenStartIndex = zzStartRead;\n }", "public Token(String terme, int tf) {\r\n\t\t\r\n\t\tthis.Terme = terme;\r\n\t\tthis.tf = tf;\r\n\t}", "private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }", "private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }", "private void setToken(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n token_ = value;\n }", "final public void varcall() throws ParseException {\n jj_consume_token(VARIABLE);\n if(userVals.get(token.image)==null) {\n {if (true) throw new ParseException(\"La variable no ha sido definida.\");}\n }\n }", "public Variable(String s, String in, String nom, int a, int b) {\n ident=new String(s);\n internal=new String(in);\n if (nom!=null) {name=new String(nom);} else {name=\"(Variable interne)\";}\n lowbound=a;\n highbound=b;\n noccur=0;\n \n \n }", "public Variable(String name) {\r\n\t\tName = name;\r\n\t\tValues = new ArrayList<>();\r\n\t\tParents = new ArrayList<>();\r\n\t\tCPT = new TreeMap<>();\r\n\t}", "void val_init()\n {\n valstk=new ParserVal[YYSTACKSIZE];\n yyval=new ParserVal();\n yylval=new ParserVal();\n valptr=-1;\n }", "Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }", "public void actionVAR_DECL(Node<TokenAttributes> node) {\n String tmapCode = BIB.getTmapCodeFromFile(auxTmapsDir, \"globalVarCtoJava.tmap\");\n List<Node<TokenAttributes>> nodes = BIB.tmapOneRuleCodeCall(tmapCode, node);\n if (!nodes.isEmpty()) {\n nodes.get(0).setParent(node.getParent());\n BIB.replaceNode(node, nodes.get(0));\n } else {\n tmapCode = BIB.getTmapCodeFromFile(auxTmapsDir, \"arrayCtoJava.tmap\");\n nodes = BIB.tmapOneRuleCodeCall(tmapCode, node);\n if (!nodes.isEmpty()) {\n nodes.get(0).setParent(node.getParent());\n BIB.replaceNode(node, nodes.get(0));\n }\n }\n }", "public ActRuVariable(Name alias) {\n this(alias, ACT_RU_VARIABLE);\n }", "@Override\n public int[] getRequiredTokens() {\n return new int[] {\n TokenTypes.VARIABLE_DEF,\n };\n }", "protected Variable(final CharSequence name, final Term scope) {\n super(); \n setScope(scope, name);\n }", "protected void init(String command){\n\t\tStringTokenizer st = new StringTokenizer(command);\n\t\t\n\t\tthis.numberOfTokens = st.countTokens() ;\n\t\tthis.tokens = new String[this.numberOfTokens];\n\t\t\n\t\tString currentToken;\n\t\tint tokenNumber = 0;\n\t\t\n\t\t/*inizialize the entire array or cannot concatenate strings\n\t\tin the while belowe: looks like null!Command nullArgument1 ...*/\n\t\t//for(int i = 0; i < this.numberOfTokens; i++) this.tokens[i] = \"\";\n\t\t\n\t\twhile (st.hasMoreTokens()) {\n\t\t\tcurrentToken = st.nextToken();\n\t\t\t//System.out.println(\"token\"+tokenNumber+\": \"+currentToken);\n\t\t\t\n\t\t\tthis.tokens[tokenNumber] = currentToken;\n\t\t\tif(tokenNumber>1)\n\t\t\t\tmiscParam += \" \"+currentToken;\n\t\t\tif(tokenNumber>0 && !currentToken.startsWith(\"$\")) \n\t\t\t\tallParam += \" \"+currentToken;\n\t\t\t\n\t\t\ttokenNumber++;\n\t\t}\n\t\t/*this is just for remove the first <space> from the second param of the command*/\n\t\t//if(this.hasAllParam()) this.tokens[2] = this.tokens[2].substring(1);\n\t}", "public iCimpilir(iCimpilirTokenManager tm) {\n if (jj_initialized_once) {\n System.out.println(\"ERROR: Second call to constructor of static parser. \");\n System.out.println(\" You must either use ReInit() or set the JavaCC option STATIC to false\");\n System.out.println(\" during parser generation.\");\n throw new Error();\n }\n jj_initialized_once = true;\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 18; i++) {\n jj_la1[i] = -1;\n }\n }", "private void init(){\r\n\t\t// already checked that this is a valid file and reader\r\n\t\ttokenizer = new StreamTokenizer(reader);\r\n\t\ttokenizer.slashSlashComments(true);\r\n\t\ttokenizer.slashStarComments(true);\r\n\t\ttokenizer.wordChars('_', '_');\r\n\t\ttokenizer.wordChars('.', '.');\r\n\t\ttokenizer.ordinaryChar('/');\r\n\t\ttokenizer.ordinaryChar('-');\r\n\t\tfillKeywords();\r\n\t\t//tokenChoose = new TokenChooser();\r\n\t}", "Node getVariable();", "public Token(byte[] data) {\n super(data);\n lastSeen = 0;\n }", "public AssrtIntVarNameNode(int ttype, Token t)\n\t{\n\t\tsuper(t);\n\t}", "public Lex()\n {\n num_tags = Tags.num_tags;\n }", "public StateVariable(int zPort, String zData) {\n\t\tthis(zPort, zData, MiniByte.TRUE);\n\t}", "public ElementVariable(String name) {\r\n\t\tsuper();\r\n\t\tthis.name = name;\r\n\t}", "private Token(char firstChar) {\r\n\t\tthis.text += firstChar;\r\n\t}", "DAGVariable() {\n this.var = null;\n }", "public Token(I2PAppContext ctx) {\n super(null);\n byte[] data = new byte[MY_TOK_LEN];\n ctx.random().nextBytes(data);\n setData(data);\n setValid(MY_TOK_LEN);\n lastSeen = ctx.clock().now();\n }", "@Override\n\tpublic void setToken(Token token) {\n\t\tthis.token = token;\n\t\t\n\t}", "public TallerLP(TallerLPTokenManager tm) {\n if (jj_initialized_once) {\n System.out.println(\"ERROR: Second call to constructor of static parser. \");\n System.out.println(\" You must either use ReInit() or set the JavaCC option STATIC to false\");\n System.out.println(\" during parser generation.\");\n throw new Error();\n }\n jj_initialized_once = true;\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 2; i++) jj_la1[i] = -1;\n }", "public ExprVar(FEContext context, String name)\n {\n super(context);\n this.name = name;\n }", "public MeinParser(MeinParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n jj_gen = 0;\n for (int i = 0; i < 5; i++) jj_la1[i] = -1;\n }", "final void val_init()\n{\n yyval=new Object();\n yylval=new Object();\n valptr=-1;\n}", "public Token(Type t, String c) {\r\n this.t = t;\r\n this.c = c;\r\n }", "public interface TeaVariable extends TeaNamedElement {\n boolean hasInitializer();\n TeaExpression getInitializer();\n void setInitializer(TeaExpression expr) throws IncorrectOperationException;\n TeaType getType();\n// boolean isConst();\n ASTNode findNameIdentifier();\n\n TeaReferenceExpression findNameExpression();\n}", "public VarTag(String title, double defalut) {\n super(new FlowLayout());\n this.title = title;\n\n this.init(defalut);\n\n }", "public VariablePrimitive(String nom) {\n\t\tsuper(nom, true);\n\t}", "final public void define() throws ParseException {\n String name=\"\";\n Long value;\n jj_consume_token(DEFINE);\n jj_consume_token(VARIABLE);\n name = token.image;\n jj_consume_token(NUMERO);\n try {\n value = Long.parseLong(token.image);\n }\n catch(Exception e) {\n {if (true) throw new ParseException(\"Una variable solo puede guardar numeros\");}\n }\n userVals.put(name, value);\n }", "public static TLAExpr DefaultVarInit()\n /*********************************************************************\n * Returns the default initial value of a variable declared with no *\n * value specified, which is herein defined to be \"{}\". *\n * *\n * Default initial value changed to \"defaultInitValue\" *\n * by LL on 22 Aug 2007 *\n *********************************************************************/\n { Vector<TLAToken> line = new Vector<TLAToken>() ;\n// line.addElement(new TLAToken(\"{\", 0, 0)) ;\n// line.addElement(new TLAToken(\"}\", 0, 0)) ;\n line.addElement(new TLAToken(\"defaultInitValue\", 0, 0));\n Vector<Vector<TLAToken>> vec = new Vector<Vector<TLAToken>>() ;\n vec.addElement(line) ;\n TLAExpr exp = new TLAExpr(vec) ;\n exp.normalize() ;\n return exp ;\n }", "private void createImplicitVariableType(XtextResource resource, IAcceptor<? super ICodeMining> acceptor) {\n\t\tcreateImplicitVarValType(resource, acceptor, XtendVariableDeclaration.class,\n\t\t\tit -> it.getType(),\n\t\t\tit -> {\n\t\t\t\tLightweightTypeReference type = getLightweightType(it.getRight());\n\t\t\t\tif (type.isAny()) {\n\t\t\t\t\ttype = getTypeForVariableDeclaration(it.getRight());\n\t\t\t\t}\n\t\t\t\treturn type.getSimpleName();\n\t\t\t},\n\t\t\tit -> it.getRight(),\n\t\t\t() -> this.grammar.getXVariableDeclarationAccess().getRightAssignment_3_1());\n\t}", "public void setToken(java.lang.String param){\n localTokenTracker = true;\n \n this.localToken=param;\n \n\n }", "public Code visitVariableNode(ExpNode.VariableNode node) {\n beginGen(\"Variable\");\n SymEntry.VarEntry var = node.getVariable();\n Code code = new Code();\n code.genMemRef(staticLevel - var.getLevel(), var.getOffset());\n endGen(\"Variable\");\n return code;\n }", "private Token getNextVariableName() {\n StringBuilder sb = new StringBuilder();\n\n while (currentIndex < this.data.length) {\n char currChar = this.data[currentIndex];\n\n if (Character.isLetterOrDigit(currChar) || currChar == '_') {\n sb.append(currChar);\n currentIndex++;\n } else {\n break;\n }\n }\n\n return new Token(TokenType.VARIABLE, sb.toString());\n }", "public DwollaTokens() {\n\t\tthis(\"dwolla_tokens\", null);\n\t}", "public Token (String token, int position, int marker) {\n this.tokenString = token;\n this.position = position;\n this.marker = marker; \n }", "public ExpressionParser(ExpressionParserTokenManager tm) {\r\n token_source = tm;\r\n token = new Token();\r\n jj_ntk = -1;\r\n jj_gen = 0;\r\n for (int i = 0; i < 22; i++) jj_la1[i] = -1;\r\n for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls();\r\n }", "@Override\n public CodeFragment visitVarDecStat(AlangParser.VarDecStatContext ctx) {\n String name = ctx.ID().getText();\n if (this.variableExists(name)) {\n this.addError(ctx, name, \"Variable already declared\");\n return new CodeFragment(\"\");\n }\n\n String alangvartype = ctx.var_type().getText();\n String llvmvartype = Types.getLLVMDefineVartype(alangvartype);\n\n String reg = this.generateNewRegister(true);\n Variable v = new Variable(reg, alangvartype, llvmvartype);\n\n int arity = ctx.index_to_global_array().size();\n v.setArity(arity);\n if (arity > 0) {\n v.setGlobalArray();\n }\n\n for (int i = 0; i < arity; i++) {\n v.addLevel(Integer.valueOf(ctx.index_to_global_array(i).INT().getText()));\n }\n\n this.globals.put(name, v);\n\n return new CodeFragment(\"\");\n }", "public CalculatorParser(CalculatorParserTokenManager tm) {\n token_source = tm;\n token = new Token();\n jj_ntk = -1;\n }", "public LiteralOPToken(LiteralBaseToken bt)\n {\n this(bt.getValue(), bt.getType());\n }", "public Token(TokenExprReg token, String simbolo) throws Exception {\n switch (token) {\n case ALFABETO:\n ident = TokenExprReg.ALFABETO;\n valor = simbolo;\n break;\n case DESCONOCIDO:\n ident = TokenExprReg.DESCONOCIDO;\n valor = simbolo;\n break;\n default:\n throw new Exception(\"Token invalido\");\n }\n }", "private void setupTokenHashTable() {\n this.tokenHashTable = new Hashtable<>();\n \t\n /* Identifier Token */\n this.getTokenHashTable().put(1001, \"idTK\");\n this.getTokenHashTable().put(1002, \"integerTK\");\n \t\n /* Operators and Delimiters */\n this.getTokenHashTable().put(1003, \"equalsTK\");\n this.getTokenHashTable().put(1004, \"lessThanTK\");\n this.getTokenHashTable().put(1005, \"greaterThanTK\");\n this.getTokenHashTable().put(1006, \"compareEqualTK\");\n this.getTokenHashTable().put(1007, \"colonTK\");\n this.getTokenHashTable().put(1008, \"plusTK\");\n this.getTokenHashTable().put(1009, \"minusTK\");\n this.getTokenHashTable().put(1010, \"multiplyTK\");\n this.getTokenHashTable().put(1011, \"divideTK\");\n this.getTokenHashTable().put(1012, \"modulusTK\");\n this.getTokenHashTable().put(1013, \"periodTK\");\n this.getTokenHashTable().put(1014, \"leftParenTK\");\n this.getTokenHashTable().put(1015, \"rightParenTK\");\n this.getTokenHashTable().put(1016, \"commaTK\");\n this.getTokenHashTable().put(1017, \"leftBraceTK\");\n this.getTokenHashTable().put(1018, \"rightBraceTK\");\n this.getTokenHashTable().put(1019, \"semicolonTK\");\n this.getTokenHashTable().put(1020, \"leftBracketTK\");\n this.getTokenHashTable().put(1021, \"rightBracketTK\");\n \n /* Extra Tokens */\n this.getTokenHashTable().put(1022, \"EofTK\");\n this.getTokenHashTable().put(-2, \"Invalid Character\");\n this.getTokenHashTable().put(-3, \"Invalid Comment\");\n }", "final void val_init()\n{\n yyval=new SemValue();\n yylval=new SemValue();\n valptr=-1;\n}", "TokenDef(String tokenname, String ANTLRCODE) {\n this.tokenname = tokenname;\n this.ANTLRCODE = ANTLRCODE;\n }", "@Override\n public Void visitVariableAntecedent(GraafvisParser.VariableAntecedentContext ctx) {\n variables.add(ctx.HID().getText());\n return null;\n }", "private void initializeFishTokens() {\n\t\tfishTokenOccurences.put(FishTokenType.ONE_FISH, 11);\n\t\tfishTokenOccurences.put(FishTokenType.TWO_FISH, 10);\n\t\tfishTokenOccurences.put(FishTokenType.THREE_FISH, 8);\n\t\tfishTokenOccurences.put(FishTokenType.OLD_BOOT, 1);\n\t}" ]
[ "0.68720084", "0.6507584", "0.6347699", "0.62647635", "0.6261048", "0.62395746", "0.61642945", "0.6145183", "0.61429363", "0.6058795", "0.60233074", "0.6019895", "0.6003104", "0.60030967", "0.59937674", "0.59851193", "0.5973426", "0.59665644", "0.5934931", "0.5922206", "0.59209543", "0.5917971", "0.5903228", "0.584522", "0.58421826", "0.5840478", "0.5830412", "0.5790326", "0.5785616", "0.57774365", "0.57723796", "0.57500994", "0.57375515", "0.57354707", "0.5718931", "0.56771094", "0.5674128", "0.5660872", "0.56569093", "0.56353885", "0.56353885", "0.56353354", "0.5627759", "0.56265354", "0.5597423", "0.5559532", "0.5559151", "0.5549978", "0.5541874", "0.5512015", "0.5512015", "0.5512015", "0.5493591", "0.5487793", "0.5459128", "0.54573303", "0.5453672", "0.54506904", "0.54501575", "0.54378927", "0.5416918", "0.5413236", "0.5412522", "0.5402287", "0.54004955", "0.5377856", "0.5376686", "0.53746766", "0.5372954", "0.53519815", "0.53434986", "0.53398633", "0.531005", "0.5305193", "0.52931625", "0.52874875", "0.52850306", "0.5278283", "0.5256645", "0.5256356", "0.52529126", "0.5244732", "0.5243094", "0.52389467", "0.52300507", "0.5222316", "0.52217937", "0.5220824", "0.5213522", "0.5209116", "0.52060044", "0.52058446", "0.5196218", "0.51956576", "0.51813275", "0.5180992", "0.5180589", "0.51796055", "0.5173955", "0.5169518" ]
0.7415836
0
TODO Autogenerated method stub To show current date in the datepicker
@Override public void onClick(View v) { Calendar mcurrentDate = Calendar.getInstance(); int mYear = mcurrentDate.get(Calendar.YEAR); int mMonth = mcurrentDate.get(Calendar.MONTH); int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH); DatePickerDialog mDatePicker; mDatePicker = new DatePickerDialog(SingleEventActivity.this, new DatePickerDialog.OnDateSetListener() { public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) { // TODO Auto-generated method stub /* Your code to get date and time */ // selectedmonth = selectedmonth + 1; try{ Date date = new Date(selectedyear-1900, selectedmonth,selectedday); SimpleDateFormat formatter = new SimpleDateFormat("MM-dd-yyyy"); cDate = formatter.format(date); // DateFormat aoriginalFormat = new SimpleDateFormat("dd MMM yyyy", Locale.getDefault()); DateFormat atargetFormat = new SimpleDateFormat("dd MMM,yyyy"); Date date2 = formatter.parse(cDate); formattedDate = atargetFormat.format(date2); }catch (ParseException e1){ e1.printStackTrace(); } catch (java.text.ParseException e) { e.printStackTrace(); } e1.setText(formattedDate); // if(String.valueOf(selectedday).length()== 1 ) // { // // if(String.valueOf(selectedmonth).length()== 1) // { // e1.setText("0"+selectedday + "-0" + selectedmonth + "-" + selectedyear); // } // // e1.setText("0"+selectedday + selectedmonth + "-" + selectedyear); // // } // // else{ // e1.setText(selectedday + "-" + selectedmonth + "-" + selectedyear); // } // // e1.setText("0"+selectedday + "-0" + selectedmonth + "-" + selectedyear); } }, mYear, mMonth, mDay); mDatePicker.setTitle("Select Date"); mDatePicker.show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void showDate()\n {\n Date d=new Date();\n SimpleDateFormat s=new SimpleDateFormat(\"dd-MM-yyyy\");\n date.setText(s.format(d));\n }", "public void setTodayDate() {\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tmYear = c.get(Calendar.YEAR);\r\n\t\tmMonth = c.get(Calendar.MONTH);\r\n\t\tmDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tmaxYear = mYear - 10;\r\n\t\tmaxMonth = mMonth;\r\n\t\tmaxDay = mDay;\r\n\r\n\t\tminYear = mYear - 110;\r\n\t\tminMonth = mMonth;\r\n\t\tminDay = mDay;\r\n\t\t// display the current date (this method is below)\r\n\t\t// updateDisplay();\r\n\t\t updateDisplay(maxYear, maxMonth, maxDay);\r\n\t}", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "private void setCurrentDateOnButton() {\n\t\t\tfinal Calendar c = Calendar.getInstance();\n\t\t\tyear = c.get(Calendar.YEAR);\n\t\t\tmonth = c.get(Calendar.MONTH);\n\t\t\tday = c.get(Calendar.DAY_OF_MONTH);\n\t\t\t//set current date to registration button\n\t\t\tbtnRegDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t\t//set current date to FCRA registration button\n\t\t\tbtnFcraDate.setText(new StringBuilder()\n\t\t\t// Month is 0 based, just add 1\n\t\t\t.append(day).append(\"-\").append(month + 1).append(\"-\")\n\t\t\t.append(year));\n\t\t}", "public void showDatepicker(){\n Calendar cal = Calendar.getInstance();\n int year = cal.get(Calendar.YEAR);\n int month = cal.get(Calendar.MONTH)+1;\n int day = cal.get(Calendar.DAY_OF_MONTH);\n new DatePickerDialog(SearchFlightActivity.this, new DatePickerDialog.OnDateSetListener(){\n /**\n * @param datePicker\n * @param i year\n * @param i1 month of year\n * @param i2 day of month\n */\n @Override\n public void onDateSet(DatePicker datePicker, int i, int i1, int i2) {\n et_date.setText(i+\"-\"+i1+\"-\"+i2);\n }\n },year,month,day).show();\n }", "private void show_Date_Picker() {\n final Calendar c = Calendar.getInstance();\r\n mYear = c.get(Calendar.YEAR);\r\n mMonth = c.get(Calendar.MONTH);\r\n mDay = c.get(Calendar.DAY_OF_MONTH);\r\n android.app.DatePickerDialog datePickerDialog = new android.app.DatePickerDialog(this,\r\n new android.app.DatePickerDialog.OnDateSetListener() {\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth)\r\n {\r\n\r\n txt_mfgdate_text.setText(dayOfMonth + \"-\" + (monthOfYear + 1) + \"-\" + year);\r\n\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.show();\r\n\r\n }", "private void showDatePicker() {\n DatePickerFragmentCreditCard date = new DatePickerFragmentCreditCard();\n /**\n * Set Up Current Date Into dialog\n */\n Calendar calendar = Calendar.getInstance();\n Bundle args = new Bundle();\n args.putInt(\"year\", calendar.get(Calendar.YEAR));\n args.putInt(\"month\", calendar.get(Calendar.MONTH));\n args.putInt(\"day\", calendar.get(Calendar.DAY_OF_MONTH));\n args.putLong(\"currentDateInMillis\", calendar.getTimeInMillis());\n date.setArguments(args);\n /**\n * Set Call back to capture selected date\n */\n date.setCallBack(ondate);\n date.show(getFragmentManager(), \"Date Picker\");\n\n }", "public void selectDate()\r\n\t{\r\n\t\tsetLayout(new FlowLayout());\r\n\t\t\r\n\t\t// Create the DatePicker\r\n\t\tUtilDateModel model = new UtilDateModel();\r\n\t\tProperties properties = new Properties();\r\n\t\tproperties.put(\"text.today\", \"Today\");\r\n\t\tproperties.put(\"text.month\", \"Month\");\r\n\t\tproperties.put(\"text.year\", \"Year\");\r\n\t\tJDatePanelImpl datePanel = new JDatePanelImpl(model,properties);\r\n\t\tdatePicker = new JDatePickerImpl(datePanel, new DateFormatter());\r\n\t\t\r\n\t\t// Add confirmation button\r\n\t\tbutton = new JButton(\"OK\");\r\n\t\tbutton.addActionListener(this);\r\n\t\t\r\n\t\t// Display the DatePicker\r\n\t\tadd(datePicker);\r\n\t\tadd(button);\r\n setSize(300,300);\r\n setLocationRelativeTo(null);\r\n setVisible(true);\r\n\t}", "@Override\n public void onClick(View v) {\n\n new DatePickerDialog(CompoffActivity.this, date, currentDate\n .get(Calendar.YEAR), currentDate.get(Calendar.MONTH),\n currentDate.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void setSysDate()\r\n\t{\r\n\t\tSimpleDateFormat sdf=new SimpleDateFormat(\"dd/MM/yyyy\");\r\n txtPDate.setText(sdf.format(new java.util.Date()));\r\n\t}", "private void setDate() {\n java.util.Date d1 = new java.util.Date();\n SimpleDateFormat df = new SimpleDateFormat(\"YYYY-MM-dd\");\n String formateDate = df.format(d1);\n lblDate.setText(formateDate); \n }", "private void setupCalendarView() {\n // Set the default date shown to be today\n DateFormat df = new SimpleDateFormat(\"dd/MM/yyyy\", Locale.UK);\n String todayDate = df.format(Calendar.getInstance().getTime());\n\n mTextView.setText(todayDate);\n }", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "public Date getSelectedDate();", "private void configDate(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"yyyy/MM/dd\");\n tvDateLost.setText(dateFormat.format(date));\n }", "public void openDatePicker() {\n\n Calendar now = Calendar.getInstance();\n DatePickerDialog dpd = DatePickerDialog.newInstance(\n this,\n now.get(Calendar.YEAR),\n now.get(Calendar.MONTH),\n now.get(Calendar.DAY_OF_MONTH)\n );\n dpd.show(getActivity().getFragmentManager(), StringConstants.KEY_DATEPICKER_DIALOG);\n //dpd.setAccentColor(R.color.hb_medication_history);\n dpd.showYearPickerFirst(true);\n dpd.setMaxDate(now);\n dpd.setYearRange(StaticConstants.MIN_DATE, now.get(Calendar.YEAR));\n }", "public Main() {\n initComponents();\n setColor(btn_home);\n String date = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date());\n jcurrentDate.setText(date);\n \n }", "public String getCurrentDate() {\n return currentDate;\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tDate now = new Date();\n\t\t\t\tString ss = DateFormat.getDateTimeInstance().format(now);\n\t\t\t\tlblDate.setText(ss);\n\t\t\t}", "protected String getSelectedDate()\n {\n String startsOnDate = String.valueOf(selectedYear);\n if(selectedMonth<10)startsOnDate+=\"-0\"+String.valueOf(selectedMonth);\n else startsOnDate+=\"-\"+String.valueOf(selectedMonth);\n if(selectedDay<10)startsOnDate+=\"-0\"+String.valueOf(selectedDay);\n else startsOnDate+=\"-\"+String.valueOf(selectedDay);\n\n return startsOnDate;\n }", "private void selectDate() {\n Calendar calendar = Calendar.getInstance();\n int year = calendar.get(Calendar.YEAR);\n int month = calendar.get(Calendar.MONTH);\n int day = calendar.get(Calendar.DAY_OF_MONTH);\n DatePickerDialog datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDatebtn.setText(day + \"-\" + (month + 1) + \"-\" + year); //sets the selected date as test for button\n }\n }, year, month, day);\n datePickerDialog.show();\n }", "public static String getCurrentDate() {\n\t\tDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\tDate dateobj = new Date();\n\t\treturn df.format(dateobj);\n\t}", "public String currentDate() {\n DateFormat df = new SimpleDateFormat(\"dd-MM-yyyy\");\n String date = df.format(Calendar.getInstance().getTime());\n return date;\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), startdatepicker, trigger.getStarttime().get(Calendar.YEAR), trigger.getStarttime().get(Calendar.MONTH), trigger.getStarttime().get(Calendar.DAY_OF_MONTH)).show();\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 Date getSelectedDate() {\n\t\treturn date.getValue();\n\t}", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckIn.setText(date);\n\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n datePickerDialog.show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(merchantHome, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void showDate(Calendar calendar) {\n //TODO have configurable for spanish dates based on locale\n dateView.setText(new SimpleDateFormat(\"MM/dd/yy\").format(calendar.getTime()));\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(UserUpdate.this, date, cal\n .get(Calendar.YEAR), cal.get(Calendar.MONTH), cal\n .get(Calendar.DAY_OF_MONTH)).show();\n }", "public void setCurrentDate(String currentDate) {\n this.currentDate = currentDate;\n }", "public CurrentDate getCurrentDate() { \n return mCurrentDate; \n }", "public void setDate(Calendar currentDate) {\r\n this.currentDate = currentDate;\r\n }", "public void setTodayDate() {\r\n int oldMonthValue = getMonth();\r\n int oldYearValue = getYear();\r\n calendarTable.getCalendarModel().setTodayDate();\r\n updateControlsFromTable();\r\n // fire property change\r\n int newMonthValue = getMonth();\r\n if (oldMonthValue != newMonthValue) {\r\n firePropertyChange(MONTH_PROPERTY, oldMonthValue, newMonthValue);\r\n }\r\n int newYearValue = getYear();\r\n if (oldYearValue != newYearValue) {\r\n firePropertyChange(YEAR_PROPERTY, oldYearValue, newYearValue);\r\n }\r\n // clear selection when changing the month in view\r\n if (oldMonthValue != newMonthValue && oldYearValue != newYearValue) {\r\n calendarTable.getSelectionModel().clearSelection();\r\n }\r\n }", "private void ShowDatePickerDialog() {\n\r\n\t\tfinal Calendar c = Calendar.getInstance();\r\n\t\tint mYear = c.get(Calendar.YEAR);\r\n\t\tint mMonth = c.get(Calendar.MONTH);\r\n\t\tint mDay = c.get(Calendar.DAY_OF_MONTH);\r\n\r\n\t\tDatePickerDialog datepicker = new DatePickerDialog(getActivity(),\r\n\t\t\t\tdatePickerListener, mYear, mMonth, mDay);\r\n\t\tdatepicker.getDatePicker()\r\n\t\t\t\t.setMinDate(System.currentTimeMillis() - 1000);\r\n\t\tdatepicker.show();\r\n\r\n\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(Edit_Profile.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public registration() {\n initComponents();\n DateFormat df = new SimpleDateFormat(\"yyyy/MM/dd\");\n Date d = new Date();\n String dt = df.format(d);\n tdate.setText(dt);\n \n }", "@Override\n public void onClick(View v) {\n DatePickerDialog datePickerDialog = new DatePickerDialog(getActivity(), new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(android.widget.DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date =String.format(\"%02d/%02d/%d\", dayOfMonth,month, year);\n TextViewCheckOut.setText(date);\n long today = Calendar.getTimeInMillis();\n view.setMinDate(today);\n }\n },year,month,day);\n long today = Calendar.getTimeInMillis();\n datePickerDialog.getDatePicker().setMinDate(today);\n //memunculkan pilihan pada UI\n datePickerDialog.show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(MainActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void updateDateButtonText() {\n SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT); \n String dateForButton = dateFormat.format(mCalendar.getTime()); \n mDateButton.setText(dateForButton);\n\t}", "protected void updateDate() {\r\n\t\tDate date = new Date();\r\n\t\tdate.setTime(mTime);\r\n\t\tDateFormat dateFormat = android.text.format.DateFormat.getDateFormat(getApplicationContext());\r\n\t\tString text = dateFormat.format(date);\r\n\t\tmDatePickerText.setText(text);\r\n\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(context, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void setDate() {\n this.date = new Date();\n }", "public void displayDate() {\n\t\tSystem.out.print(year + \"/\" + month + \"/\" + day);\r\n\t}", "public void setDateStart_CouponsTab_Marketing() {\r\n\t\tthis.dateStart_CouponsTab_Marketing.clear();\r\n\t\tSimpleDateFormat formattedDate = new SimpleDateFormat(\"yyyy-MM-dd\");\r\n\t\tCalendar c = Calendar.getInstance();\r\n\t\tString today1 = (String) (formattedDate.format(c.getTime()));\r\n\t\tthis.dateStart_CouponsTab_Marketing.sendKeys(today1);\r\n\t}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getActivity(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void setDueDateView(){\n mDueDate.setText(mDateFormatter.format(mDueDateCalendar.getTime()));\n }", "@Override\n public void onClick(View v) {\n showDatePicker();\n }", "@Override\r\n public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) {\r\n year = selectedYear;\r\n month = selectedMonth;\r\n day = selectedDay;\r\n\r\n // Show selected date\r\n W_date.setText(new StringBuilder().append(month + 1).append(\"-\").append(day)\r\n .append(\"-\").append(year).append(\" \"));\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(getContext(), date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private static String setDate() {\n mDate = new Date();\n DateFormat dateFormat = DateFormat.getDateInstance();\n String dateString = dateFormat.format(mDate);\n return dateString;\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(RegisterActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n showDatePicker();\n }", "void showdate(){\n \n Date d = new Date();\n SimpleDateFormat s = new SimpleDateFormat(\"yyyy-MM-dd\");\n jLabel4.setText(s.format(d));\n}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(RegistrationActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n\n }", "private void updateDateDisplay() {\n\t\tStringBuilder date = new StringBuilder()\n\t\t\t\t// Month is 0 based so add 1\n\t\t\t\t.append(mMonth + 1).append(\"-\").append(mDay).append(\"-\")\n\t\t\t\t.append(mYear).append(\" \");\n\n\t\tchangeDateButton.setText(date);\t\n\t}", "public Date getCurrentDate()\r\n {\r\n return (m_currentDate);\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tnew DatePickerDialog(getActivity(), date, myCalendar\n\t\t\t\t\t\t.get( Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n\t\t\t\t\t\tmyCalendar.get(Calendar.DAY_OF_MONTH)).show();\n\t\t\t}", "@SuppressLint(\"SetTextI18n\")\n private void setTransactionDate() {\n // used to get the name of the month from the calendar\n HashMap<String, String> months = new HashMap<>();\n String[] mnths = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n for (int i = 1; i <= 12; i++) {\n if (i < 10) {\n months.put(mnths[i], Integer.toString(i));\n } else {\n\n months.put(mnths[i], Integer.toString(i));\n }\n }\n\n // set the date when somehting is selected from the DatePicker\n dateText.setText(months.get(transaction.getMonth()) + '-' + Integer.toString(transaction.getDay()) + '-' + transaction.getYear());\n findViewById(R.id.transaction_date).setOnClickListener(new View.OnClickListener() {\n @Override\n // show DatePicker on field click\n public void onClick(View v) {\n showDatePickerDialog();\n }\n });\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(NameLoginActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private void showDatePickerDialog() {\n DatePickerDialog datePickerDialog = new DatePickerDialog(\n this,\n this,\n Calendar.getInstance().get(Calendar.YEAR),\n Calendar.getInstance().get(Calendar.MONTH),\n Calendar.getInstance().get(Calendar.DAY_OF_MONTH)\n );\n datePickerDialog.show();\n }", "public Date getSelectDate();", "DateFormatPanel() {\r\n\t\tfDateFormat = DateFormat.getTimeInstance(DateFormat.DEFAULT);\r\n\t}", "private void showDateDialog(){\n final Calendar newCalendar = Calendar.getInstance();\n\n /**\n * Initiate DatePicker dialog\n */\n datePickerDialog = new DatePickerDialog(this, new DatePickerDialog.OnDateSetListener() {\n\n @Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n\n /**\n * Method ini dipanggil saat kita selesai memilih tanggal di DatePicker\n */\n\n /**\n * Set Calendar untuk menampung tanggal yang dipilih\n */\n Calendar newDate = Calendar.getInstance();\n newDate.set(year, monthOfYear, dayOfMonth);\n\n\n if(!newDate.before(newCalendar)){\n /**\n * Update TextView with choosen date\n */\n newDate.set(Calendar.HOUR_OF_DAY, 0);\n newDate.set(Calendar.MINUTE, 0);\n newDate.set(Calendar.SECOND, 0);\n newDate.set(Calendar.MILLISECOND,0);\n mDateTextView.setTextColor(Color.BLACK);\n String day = mDateFormatter.getDayName(newDate.getTime());\n String date = mDateFormatter.getOnlyDate(newDate.getTime());\n String month = mDateFormatter.getMonth(newDate.getTime());\n mDateTextView.setText(day + \" \" + date + \",\" + month);\n mChoosenSaveDate = newDate;\n }else{\n mDateTextView.setText(\"Deadline has to be at leats same as current date\");\n mDateTextView.setTextColor(Color.RED);\n Toast.makeText(view.getContext(),\"invalid choosen date\",\n Toast.LENGTH_LONG).show();\n }\n\n\n }\n\n },newCalendar.get(Calendar.YEAR), newCalendar.get(Calendar.MONTH), newCalendar.get(Calendar.DAY_OF_MONTH));\n\n /**\n * Tampilkan DatePicker dialog\n */\n datePickerDialog.show();\n\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(DatePickerActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void Print_date()\n {\n \n System.out.println(\"Date: \" + date);\n }", "public Date getSelectedDate() {\r\n return calendarTable.getSelectedDate();\r\n }", "public void setCurrentDate(Date currentDate)\r\n {\r\n m_currentDate = currentDate;\r\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tshowDialog(SET_DATE_DIALOG);\n\n\t\t\t}", "public Date getCurrentDate() {\n\t\treturn new Date();\n\t}", "@Override\n public void onDateSet(DatePicker datePicker, int year, int month, int day) {\n mDateField.setText(year + \"/\" + (month + 1) + \"/\" + day);\n }", "public void saveCalenderDate() {\r\n\t\tdate = getDateToDisplay(null);\r\n\t}", "public void setDate() {\n DatePickerDialog dateDialog = new DatePickerDialog(this, myDateListener,\n calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DATE));\n //set the date limits so user cannot pick a date outside of game scope\n dateDialog.getDatePicker().setMinDate(System.currentTimeMillis() + MILLIS_IN_DAY);\n dateDialog.getDatePicker().setMaxDate(System.currentTimeMillis() + (MILLIS_IN_DAY * MAX_END_DAY_COUNT));\n dateDialog.show();\n }", "public static void dateDue() {\n Date date = new Date();\r\n SimpleDateFormat formatter = new SimpleDateFormat(\"dd/MM/yyyy\");\r\n String strDate = formatter.format(date);\r\n NewProject.due_date = getInput(\"Please enter the due date for this project(dd/mm/yyyy): \");\r\n\r\n UpdateData.updateDueDate();\r\n updateMenu();\t//Return back to previous menu.\r\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(AddActivity.this, date, myCalendar.get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "private Date getCurrentDate() {\n return Date.from(LocalDate.now().atStartOfDay(ZoneId.systemDefault()).toInstant());\n }", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(AddTripActivity.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\r\n public void onClick(View v) {\n final Calendar c = Calendar.getInstance();\r\n int mYear = c.get(Calendar.YEAR); // current year\r\n int mMonth = c.get(Calendar.MONTH); // current month\r\n int mDay = c.get(Calendar.DAY_OF_MONTH); // current day\r\n\r\n\r\n // date picker dialog\r\n datePickerDialog = new DatePickerDialog(task_setting.this,\r\n new DatePickerDialog.OnDateSetListener() {\r\n\r\n\r\n @Override\r\n public void onDateSet(DatePicker view, int year,\r\n int monthOfYear, int dayOfMonth) {\r\n // set day of month , month and year value in the edit text\r\n\r\n final String[] MONTHS = {\"January\", \"February\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"September\", \"October\", \"November\", \"December\"};\r\n String mon = MONTHS[monthOfYear];\r\n date.setText(mon + \" \" + dayOfMonth + \", \" + year);\r\n }\r\n }, mYear, mMonth, mDay);\r\n datePickerDialog.getDatePicker().setMinDate(System.currentTimeMillis() - 1000);\r\n datePickerDialog.show();\r\n }", "@Override\r\n\tpublic void date() {\n\t\tSystem.out.println(\"10/19/21\");\r\n\t}", "public void showDatePickerDialog(){\n DatePickerDialog datePickerDialog = new DatePickerDialog(\n this,\n this,\n Calendar.getInstance().get(Calendar.YEAR),\n Calendar.getInstance().get(Calendar.MONTH),\n Calendar.getInstance().get(Calendar.DAY_OF_MONTH));\n datePickerDialog.show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(SearchTripActivity.this, dated, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\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}", "@Override\n public void onClick(View v) {\n new DatePickerDialog(select_time_date.this, date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n selectedmonth = selectedmonth + 1;\n Search_start_date.setText(String.format(\"%04d\", selectedyear)+\"-\"+String.format(\"%02d\", selectedmonth)+\"-\"+ String.format(\"%02d\", selectedday)+\"\" );\n }", "@SuppressLint(\"InlinedApi\")\n @Override\n public void onClick(View v) {\n @SuppressLint({\"NewApi\", \"LocalSuppress\"}) final Calendar mcurrentDate = Calendar.getInstance();\n int mYear = mcurrentDate.get(Calendar.YEAR);\n int mMonth = mcurrentDate.get(Calendar.MONTH);\n int mDay = mcurrentDate.get(Calendar.DAY_OF_MONTH);\n\n DatePickerDialog mDatePicker = new DatePickerDialog(Addnewuser.this, new DatePickerDialog.OnDateSetListener() {\n\n public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n mybirthday = new GregorianCalendar(selectedyear, selectedmonth, selectedday).getTime();\n birthday = \"\" + selectedday + \"/\" + (selectedmonth + 1) + \"/\" + selectedyear + \"\";\n dob.setText(birthday);\n // Toast.makeText(Addnewuser.this, \"\"+birthday+\"\\n\" +\n // \"\"+date.toString(), Toast.LENGTH_SHORT).show();\n\n\n }\n }, mYear, mMonth, mDay);\n mDatePicker.setTitle(\"Select date\");\n mDatePicker.show();\n }", "@Override\n public void onClick(View v) {\n new DatePickerDialog(Edit_Profile.this, dateannier, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }", "@Override\n public void onClick(View v) {\n showDatePickerDialog();\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n currentDate.set(Calendar.YEAR, year);\n currentDate.set(Calendar.MONTH, monthOfYear);\n currentDate.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n //updateLabel();\n SimpleDateFormat sdf1 = new SimpleDateFormat(DATE_FORMAT_calender);\n Log.e(\"data123456789\",sdf1.format(currentDate.getTime()));\n updateAttendanceDetails();\n }", "public void setCurrentDate(CurrentDate pCurrentDate) { \n mCurrentDate = pCurrentDate; \n }", "public Date getDate() {\n return this.currentDate;\n }", "@FXML\r\n\tString getDate() {\r\n\t\t\tLocalDate creditCardExpiryDate = dpCreditCardExpiryDate.getValue();\r\n\t\t\tDateTimeFormatter formattedExpiryDate = DateTimeFormatter.ofPattern(\"yyyy-MM-dd\");\r\n\t\t\treturn formattedExpiryDate.format(creditCardExpiryDate);\r\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 void initDatePicker() {\n pickDateBox.setDayCellFactory(picker -> new DateCell() {\n public void updateItem(LocalDate date, boolean empty) {\n super.updateItem(date, empty);\n LocalDate today = LocalDate.now();\n\n setDisable(empty || date.compareTo(today) < 0 );\n }\n });\n }", "private void chooseDateDialog() {\n Calendar c = Calendar.getInstance();\n int year = c.get(Calendar.YEAR);\n int month = c.get(Calendar.MONTH);\n int day = c.get(Calendar.DATE);\n\n DatePickerDialog datePickerDialog =\n new DatePickerDialog(Objects.requireNonNull(getContext()), this, year, month, day);\n datePickerDialog.show();\n }", "public void getCurrentDate(){\n Date now = new Date(); //get todays date \n \n SimpleDateFormat formatter = new SimpleDateFormat( \"MM/dd/yyyy\" ); \n System.out.println ( \"The current date is: \" + formatter.format( now ) ); \n \n month = (String) formatter.format( now ).subSequence(0, 2);\n day = (String) formatter.format( now ).subSequence(3, 5);\n year = (String) formatter.format( now ).subSequence(6, 10);\n \n System.out.println(\"month: \" + month);\n System.out.println(\"day: \" + day);\n System.out.println(\"year: \" + year);\n \n }", "public void initializeDate() {\n //Get current date elements from Calendar object\n day = cal.get(Calendar.DAY_OF_MONTH);\n month = cal.get(Calendar.MONTH); //Note months are indexed starting at zero (Jan -> 0)\n year = cal.get(Calendar.YEAR);\n\n //Pair EditText to local variable and set input type\n date = (EditText) findViewById(R.id.textSetDate);\n date.setInputType(InputType.TYPE_NULL);\n\n //Set EditText text to be current time\n date.setText((month + 1) + \"/\" + day + \"/\" + year);\n\n //Create onClick listener on date variable\n date.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n datePicker = new DatePickerDialog(ControlCenterActivity.this, new DatePickerDialog.OnDateSetListener() {\n @Override\n public void onDateSet(DatePicker datePicker, int year, int month, int dayOfMonth) {\n date.setText((month + 1) + \"/\" + dayOfMonth + \"/\" + year);\n }\n }, year, month, day);\n\n datePicker.show();\n }\n });\n }", "@Override\n public void onClick(View view) {\n new DatePickerDialog(AddEventActivity.this, start_Journey_Date, myCalendar\n .get(Calendar.YEAR), myCalendar.get(Calendar.MONTH),\n myCalendar.get(Calendar.DAY_OF_MONTH)).show();\n }" ]
[ "0.73648924", "0.7364", "0.7264378", "0.70886064", "0.7081928", "0.7006236", "0.69407433", "0.6900432", "0.6891169", "0.68833786", "0.68781155", "0.6858063", "0.6855973", "0.68409854", "0.68198407", "0.6785134", "0.67647105", "0.6751249", "0.67375135", "0.67064875", "0.6672581", "0.6583747", "0.65803134", "0.65709746", "0.6570706", "0.6561491", "0.6558137", "0.6554077", "0.65289783", "0.6486127", "0.6484743", "0.6475848", "0.64722615", "0.64616305", "0.6460003", "0.645916", "0.6454287", "0.6452923", "0.64485806", "0.644673", "0.6439576", "0.6438118", "0.6427738", "0.6424112", "0.6422294", "0.64188653", "0.6417972", "0.6417972", "0.6414751", "0.64062023", "0.6395459", "0.63953155", "0.63953155", "0.6395067", "0.6394627", "0.6392176", "0.63674456", "0.63628113", "0.6360424", "0.6358283", "0.6357445", "0.63510317", "0.6338495", "0.6337988", "0.63375735", "0.6334864", "0.63303316", "0.6323706", "0.6314561", "0.6311534", "0.62965053", "0.6293278", "0.6286365", "0.6282449", "0.62810546", "0.62782794", "0.62760544", "0.62640655", "0.6263957", "0.62566614", "0.62503976", "0.62419164", "0.62371886", "0.62326473", "0.6229569", "0.62294674", "0.62291104", "0.62128186", "0.62092334", "0.61894345", "0.61883956", "0.618237", "0.61818135", "0.6181661", "0.6173825", "0.6161637", "0.6157949", "0.615615", "0.61543167", "0.6148777", "0.61457014" ]
0.0
-1
TODO Autogenerated method stub / Your code to get date and time selectedmonth = selectedmonth + 1;
public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) { try{ Date date = new Date(selectedyear-1900, selectedmonth,selectedday); SimpleDateFormat formatter = new SimpleDateFormat("MM-dd-yyyy"); cDate = formatter.format(date); // DateFormat aoriginalFormat = new SimpleDateFormat("dd MMM yyyy", Locale.getDefault()); DateFormat atargetFormat = new SimpleDateFormat("dd MMM,yyyy"); Date date2 = formatter.parse(cDate); formattedDate = atargetFormat.format(date2); }catch (ParseException e1){ e1.printStackTrace(); } catch (java.text.ParseException e) { e.printStackTrace(); } e1.setText(formattedDate); // if(String.valueOf(selectedday).length()== 1 ) // { // // if(String.valueOf(selectedmonth).length()== 1) // { // e1.setText("0"+selectedday + "-0" + selectedmonth + "-" + selectedyear); // } // // e1.setText("0"+selectedday + selectedmonth + "-" + selectedyear); // // } // // else{ // e1.setText(selectedday + "-" + selectedmonth + "-" + selectedyear); // } // // e1.setText("0"+selectedday + "-0" + selectedmonth + "-" + selectedyear); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setMonthSelection() {\n int displayMonth = getIntent().getIntExtra(\"month\", -1);\n if (displayMonth == -1) {\n Calendar cal = Calendar.getInstance();\n selectMonth.setSelection(cal.get(Calendar.MONTH) + 1);\n } else {\n selectMonth.setSelection(displayMonth);\n }\n }", "public static int getCurrentMonth(int month) {\n month++;\n return month;\n }", "public void setMonth(int month)\n {\n this.month = month;\n }", "public void setMonth(Integer month) {\r\n this.month = month;\r\n }", "private void monthFieldDtActionPerformed(java.awt.event.ActionEvent evt) {\n\t}", "public void setMonth(String month) {\r\n this.month = month;\r\n }", "public void setMonth(Integer month) {\n this.month = month;\n }", "public void setMonth(Integer month) {\n this.month = month;\n }", "@Step\n\t public SignUpStep2Page selectMonth(String monthInput) {\n\t Select monthDropdown = new Select(selectMonth);\n\t monthDropdown.selectByVisibleText(monthInput);\n\t return this;\n\t }", "public void setMonth(int month) {\n\t\tthis.month = month;\n\t}", "public String getMonth() {\n return month.getText();\n }", "public int getMonth(){\n\t\treturn month;\n\t}", "public void SelectDepartureDate(String Dmonth,String Dyear) throws InterruptedException {\n Thread.sleep(2000);\n depart.click();\n action.moveToElement(month).click();\n select =new Select(month);\n select.selectByValue(Dmonth);\n action.moveToElement(year).click();\n select=new Select(year);\n select.selectByValue(Dyear);\n date.click();\n //retrnDate.click();\n\n\n }", "private void monthFieldDfActionPerformed(java.awt.event.ActionEvent evt) {\n\t}", "public final native double setMonth(int month) /*-{\n this.setMonth(month);\n return this.getTime();\n }-*/;", "public int getMonth() {\n\t\treturn month;\n\t}", "public DueDateBuilder setMonth(int month) {\n this.month = month;\n return this;\n }", "public void inputMonth () {\n\t\tSystem.out.print(\"Enter a month: \");\r\n\t\tmonth = input.nextInt();\r\n\t}", "public void setMonth(final int month) {\n this.month = month;\n }", "public int getMonth() {\n return month;\n }", "public static void monthSelect(WebDriver driver, String munth, String dey) {\n\tdriver.findElement(By.id(\"travel_date\")).click();// opens up calender\n\t\n\t\n\t\t\n\t\tString month = driver.findElement(By.cssSelector(\"[class='datepicker-days'] [class='datepicker-switch']\")).getText();\n\t\tSystem.out.println(month);\n\t\t// prints out the first visible month\n\t\t\n\t\t\n\t\twhile(!\tdriver.findElement(By.cssSelector(\"[class='datepicker-days'] [class='datepicker-switch']\")).getText().contains(munth)) {\n\t\t\t\tdriver.findElement(By.cssSelector(\"[class=' table-condensed'] [class='next']\")).click();\n\t\t\t\t// clicks on the next button\n\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\tList <WebElement> dates = driver.findElements(By.cssSelector(\".day\"));\n\t\t//42\n\t\t// select all calenders\n\t\t\n\t\tint count = dates.size();\n\t\t// returns the size as 0\n\t\t\n\t\t\n\t\tfor(int i =0; i<count;i++) {\n\t\t\t//String Day = \"24\";\n\t\t\tString text = driver.findElements(By.cssSelector(\".day\")).get(i).getText();\n\t\t\tSystem.out.println(text);\n\t\t\t\n\t\t\tif(text.equalsIgnoreCase(dey)){\n\t\t\t\tdriver.findElements(By.cssSelector(\".day\")).get(i).click();\n\t\t\t\t// clicks on the 24\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public int getMonth()\n {\n return month;\n }", "public void SelectReturnDate(String Amonth,String Ayear) throws InterruptedException{\n\n WebElement retrnmonth=returnjourneydate.findElement(By.xpath(Configuration.returnMonth));\n action.moveToElement(retrnmonth).click();\n select=new Select(retrnmonth);\n select.selectByValue(Amonth);\n WebElement retrnyear=returnjourneydate.findElement(By.xpath(Configuration.returnYear));\n action.moveToElement(retrnyear).click();\n select=new Select(retrnyear);\n select.selectByValue(Ayear);\n retrnDate.click();\n }", "public void enterMonthField(String month) {\n Reporter.addStepLog(\" Enter month\" + month + \" to month field \" + _monthField.toString());\n sendTextToElement(_monthField, month);\n log.info(\" Enter momth\" + month + \" to month field \" + _monthField.toString());\n }", "public void setMonth(int month) {\n\t\tthis.date.setMonth(month);\n\t}", "public String getMonth() {\r\n return month;\r\n }", "public int getMonth() {\n return this.month;\n }", "public int getMonth() {\n return this.month;\n }", "@RequiresApi(api = Build.VERSION_CODES.O)\n @Override\n public void onItemSelected(AdapterView<?> parent, View view, int position, long id) {\n setTitle(\"Month Selected = \" );\n monthSelected = spinMonths.getSelectedItem().toString();\n setTitle(\"Month Selected = \" + monthSelected);\n\n// Enumeration<String> keys = bedCache.keys();\n// int counter = 1;\n// while(keys.hasMoreElements()){\n// String key = keys.nextElement();\n// System.out.println(\"in OnSelected : counter: \" + counter + \", BedId: \" + key);\n// counter++;\n// }\n createOccupancyTotalsForMonth(monthSelected);\n }", "public int getMonthInt() {\n return month;\r\n }", "public void setMonth(final int month) {\n\t\tthis.month = month;\n\t}", "public void setMonth(int month) {\n if(month < 1 || month > 12) {\n this.month = 1;\n } else {\n this.month = month;\n }\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month,\n int dayOfMonth) {\n bookingDate = dayOfMonth + \"-\" + (month + 1) + \"-\" + year;\n date = dayOfMonth;\n mon = (month + 1);\n }", "public void printMonth() {\r\n switch (cur.getMonth()){\r\n case 1:\r\n System.out.println(\"JANUARY\");\r\n break;\r\n case 2:\r\n System.out.println(\"FEBRUARY\");\r\n break;\r\n case 3:\r\n System.out.println(\"MARCH\");\r\n break;\r\n case 4:\r\n System.out.println(\"APRIL\");\r\n break;\r\n case 5:\r\n System.out.println(\"MAY\");\r\n break;\r\n case 6:\r\n System.out.println(\"JUNE\");\r\n break;\r\n case 7:\r\n System.out.println(\"JULY\");\r\n break;\r\n case 8:\r\n System.out.println(\"AUGUST\");\r\n break;\r\n case 9:\r\n System.out.println(\"SEPTEMBER\");\r\n break;\r\n case 10:\r\n System.out.println(\"OCTOBER\");\r\n break;\r\n case 11:\r\n System.out.println(\"NOVEMBER\");\r\n break;\r\n case 12:\r\n System.out.println(\"DECEMBER\");\r\n break;\r\n }\r\n }", "public static int getCurrentMonth()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.MONTH) + 1;\n\t}", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n selectedmonth = selectedmonth + 1;\n Search_start_date.setText(String.format(\"%04d\", selectedyear)+\"-\"+String.format(\"%02d\", selectedmonth)+\"-\"+ String.format(\"%02d\", selectedday)+\"\" );\n }", "public void selectMonthDropdown(String month) {\n\t\twaitToElementClickable(driver,RegisterPageUI.MONTH_DROPDOWN);\n\t\tselectItemInDropDown(driver, RegisterPageUI.MONTH_DROPDOWN, month);\n\n\t}", "public int getMonth() {\n\t\treturn month;\n\t}", "public void setMonth(byte value) {\n this.month = value;\n }", "public Month getMonth(){\n\t return this.month;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmView.nextMonth();\n\t\t\t\tc.add(Calendar.MONTH, 1);\n\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\n\t\t\t}", "public String getMonth() {\n return month;\n }", "private void createMonthCombo() {\n \t\t\tmonthCombo = new Combo(this, SWT.READ_ONLY);\n \t\t\tmonthCombo.setItems(dateFormatSymbols.getMonths());\n \t\t\tmonthCombo.remove(12);\n \t\t\tmonthCombo.select(date.get(Calendar.MONTH));\n \t\t\tmonthCombo.setVisibleItemCount(12);\n \t\t\tmonthCombo.addModifyListener(new ModifyListener() {\n \n \t\t\t\tpublic void modifyText(ModifyEvent arg0) {\n \t\t\t\t\tdate.set(Calendar.MONTH, monthCombo.getSelectionIndex());\n \t\t\t\t\tupdateCalendar();\n \t\t\t\t}\n \n \t\t\t});\n \t\t\tmonthCombo.addKeyListener(this);\n \t\t}", "public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) {\n selectedMonth++;\n String month = selectedMonth<10?\"0\"+selectedMonth:String.valueOf(selectedMonth);\n String day = selectedDay<10?\"0\"+selectedDay:String.valueOf(selectedDay);\n et_dateofbirth.setText(day+\"/\"+month+\"/\"+selectedYear);\n }", "public int getMonth() {\r\n\t\treturn (this.month);\r\n\t}", "public Integer getMonth() {\r\n return month;\r\n }", "public void setMonth(byte value) {\n this.month = value;\n }", "public void setMonth(byte value) {\n this.month = value;\n }", "public void setMonth(byte value) {\n this.month = value;\n }", "private void initializeMonthSelector(){\n monthSelect.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n \n \n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n// System.out.println(monthSelect.getSelectionModel().getSelectedItem());\n // Necessary to check for null because change listener will\n // also detect clear() calls\n if (newValue != null) {\n \n // Show selected/current month above calendar\n monthLabel.setText(newValue);\n System.out.println(\"mounth new \"+newValue);\n // Update the VIEWING MONTH;\n Model.getInstance().viewing_month = Model.getInstance().getMonthIndex(newValue);\n \n \n //Model.getInstance().viewing_month = monthSelect.getSelectionModel().getSelectedIndex();\n \n \n // System.out.println(\"mounth\"+Model.getInstance().viewing_month);\n\n // Update view\n repaintView();\n }\n \n }\n });\n \n // Add event listener to each year item, allowing user to change years\n selectedYear.getSelectionModel().selectedItemProperty().addListener(new ChangeListener<String>() {\n \n @Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n \n if (newValue != null){\n \n // Update the VIEWING YEAR\n Model.getInstance().viewing_year = Integer.parseInt(newValue);\n \n // Update view\n repaintView();\n }\n }\n });\n }", "public void onDateSet(DatePicker datepicker, int selectedyear, int selectedmonth, int selectedday) {\n selectedmonth = selectedmonth + 1;\n Search_end_date.setText(String.format(\"%04d\", selectedyear)+\"-\"+String.format(\"%02d\", selectedmonth)+\"-\"+ String.format(\"%02d\", selectedday) +\"\" );\n }", "@FXML\n private void changeMonth() throws NoSuchMethodException\n {\n String selected = cmbMonth.getValue();\n for (int i = 0; i < months.size(); i++)\n {\n if (selected.equals(months.get(i)))\n {\n month = i;\n }\n }\n fillCalendar();\n setMonth();\n parentContr.updatePieChart();\n\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month,\n int dayOfMonth) {\n\n Toast.makeText(getBaseContext(),\"Selected Date is\\n\\n\"\n +dayOfMonth+\" : \"+month+\" : \"+year ,\n Toast.LENGTH_LONG).show();\n }", "public void setMonthParam(String monthParam) {\r\n this.monthParam = monthParam;\r\n }", "public Integer getMonth() {\n return month;\n }", "public Integer getMonth() {\n return month;\n }", "public String getMonth()\n {\n return Month.get();\n }", "public void onDateSet(DatePicker view, int selectedYear,\n int selectedMonth, int selectedDay) {\n\n\n myear = selectedYear;\n mmonth = selectedMonth;\n mday = selectedDay;\n\n // set selected date into textview\n /* tvDisplayDate.setText(new StringBuilder().append(mmonth + 1)\n .append(\"-\").append(mday).append(\"-\").append(myear)\n .append(\" \"));*/\n\n Log.e(\"newdate\", \"onDateSet: new date shw--> \" + new StringBuilder().append(mmonth)\n .append(\"-\").append(mday).append(\"-\").append(myear)\n .append(\" \"));\n\n String currentdate = String.valueOf(mday);\n if (currentdate.toString().length() == 1) {\n currentdate = \"0\" + currentdate;\n Log.e(\"currentMinutes\", \"currentdate-->\" + currentdate);\n }\n\n String currentmonth = String.valueOf(mmonth + 1);\n if (currentmonth.toString().length() == 1) {\n currentmonth = \"0\" + currentmonth;\n Log.e(\"currentMinutes\", \"currentMinutes-->\" + currentmonth);\n }\n\n tvEndDate.setText(currentdate + \"/\" + currentmonth + \"/\" + myear);\n\n myear = msaveyear;\n mmonth = msavemonth;\n mday = msaveday;\n\n }", "public void buildMonth()\r\n {\r\n int i=0,k=0;\r\n date=LocalDate.of(year,month,1);\r\n String st;\r\n for(int j=0;date.getMonthValue()==month;j++)\r\n {\r\n\r\n if(date.getDayOfWeek().name()==\"SUNDAY\"){k=0;i++;}\r\n else if(date.getDayOfWeek().name()==\"MONDAY\"){k=1;}\r\n else if(date.getDayOfWeek().name()==\"TUESDAY\"){k=2;}\r\n else if(date.getDayOfWeek().name()==\"WEDNESDAY\"){k=3;}\r\n else if(date.getDayOfWeek().name()==\"THURSDAY\"){k=4;}\r\n else if(date.getDayOfWeek().name()==\"FRIDAY\"){k=5;}\r\n else if(date.getDayOfWeek().name()==\"SATURDAY\"){k=6;}\r\n st=String.valueOf(date.getDayOfMonth());\r\n cmdDate=new JButton(st);\r\n cmdDate.setBounds(xpos+k*110,ypos+i*50,100,50);\r\n this.cmdDate.addActionListener(new DayListner());\r\n panel.add(cmdDate);\r\n date = date.plusDays(1);\r\n }\r\n\r\n }", "public void setMonth(int newMonth) {\n setMonth(newMonth, true);\n }", "public byte getMonth() {\n return month;\n }", "public void setMonth(byte value) {\r\n this.month = value;\r\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "public byte getMonth() {\n return month;\n }", "@Override\r\n public boolean setMonth(int month) {\r\n try {\r\n GregorianCalendar tempCalendar =(GregorianCalendar) calendar.clone();\r\n tempCalendar.setLenient(false); \r\n tempCalendar.set(Calendar.MONTH, month);\r\n tempCalendar.getTime();\r\n }\r\n catch (Exception e) {\r\n return false;\r\n }\r\n calendar.set(Calendar.MONTH, month); \r\n return true;\r\n }", "public void setMonth(byte value) {\n this.month = value;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n month = month + 1;\n String date = month + \"/\" + dayOfMonth + \"/\" + year;\n dayPass = dayOfMonth;\n yearPass = year;\n monthPass = month;\n mDisplayDate.setText(date);\n }", "private void scanCurrentDay(){\n month.getMyCalendar().setDate(dp.getYear(), dp.getMonth(), dp.getDayOfMonth());\n month.setSelectDay(dp.getDayOfMonth());\n month.invalidate();\n this.dismiss();\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month, int dayOfMonth) {\n Integer mesFix = month + 1;\n String labelMes = mesFix.toString();\n\n String labelDia = \"\" + dayOfMonth;\n\n if(dayOfMonth < 10){\n labelDia = \"0\" + labelDia;\n }\n\n if (mesFix < 10){\n labelMes = \"0\" + labelMes;\n }\n\n dia.setText(labelDia + \"/\" + labelMes + \"/\" + year);\n }", "public void changeMonth(int newMonth) {\n this.month = newMonth;\n }", "public void setMonths(int months) {\n this.months = months;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n final int mesActual = month + 1;\n //Formateo el día obtenido: antepone el 0 si son menores de 10\n String diaFormateado = (dayOfMonth < 10)? CERO + String.valueOf(dayOfMonth):String.valueOf(dayOfMonth);\n //Formateo el mes obtenido: antepone el 0 si son menores de 10\n String mesFormateado = (mesActual < 10)? CERO + String.valueOf(mesActual):String.valueOf(mesActual);\n //Muestro la fecha con el formato deseado\n if( t == 0){\n selectedFecha = year + \"\" + mesFormateado + \"\" + diaFormateado;\n etFecha.setText(diaFormateado + BARRA + mesFormateado + BARRA + year);\n }\n\n\n }", "@Override\n public void onClick(View v) {\n currentCalendar.add(Calendar.MONTH, 1);\n //drawMonth(workingDays);\n //drawMonth(workingDays, holidays);\n Log.i(\"***********\", \"DrawMonth called on nextmonth\");\n drawMonth(workingDays, holidays, requestedHolidays, generalCalendar);\n }", "public byte getMonth() {\r\n return month;\r\n }", "private void jumpMonth() {\n\t\tJFrame frame = new JFrame(\"Enter Date\");\n\t\tContainer content = frame.getContentPane();\n\t\tcontent.setLayout(new BorderLayout());\n\t\tframe.setSize(new Dimension(270, 105));\n\t\t\n\t\tJLabel prompt = new JLabel(\"Please enter the target date MM/YYYY\");\n\t\tcontent.add(prompt, BorderLayout.NORTH);\n\t\t\n\t\tTextField input = new TextField(15);\n\t\tcontent.add(input, BorderLayout.CENTER);\n\t\t\n\t\tJButton submit = new JButton(\"OK\");\n\t\tsubmit.addActionListener(e -> {\n\t\t\tString[] strDate = input.getText().split(\"/\");\n\t\t\tDriver.getApp().getMView()\n\t\t\t.jumpToMonth(Integer.parseInt(strDate[0])-1, Integer.parseInt(strDate[1]));\n\t\t\tframe.setVisible(false);\n\t\t});\n\t\tcontent.add(submit, BorderLayout.SOUTH);\n\t\t\n\t\tframe.setVisible(true);\n\t}", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month, int dayOfMonth) {\n Toast.makeText(getContext(), dayOfMonth + \"/\" + month + \"/\" + year, Toast.LENGTH_LONG).show();\n }", "public JMonthChooser() {\n initComponents();\n this.initMonths();\n this.setDate(DateUtils.Ahora());\n this.setMonth(DateUtils.monthOfYear(this.getDate()));\n }", "@Override\n public void onSelectedDayChange(CalendarView view, int year, int month, int dayOfMonth) {\n String date = dayOfMonth + \"/\" + (month + 1) + \"/\" + year;\n mTextView.setText(date);\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n yearN = year;\n monthN = month;\n dayN = dayOfMonth;\n\n yearFinal = year;\n monthFinal = String.valueOf(month + 1);\n dayFinal = String.valueOf(dayOfMonth);\n\n if (monthFinal.length() == 1) {\n monthFinal = \"0\" + monthFinal;\n }\n if (dayFinal.length() == 1) {\n dayFinal = \"0\" + dayFinal;\n }\n dateFinal = dayFinal + \".\" + monthFinal + \".\" + yearFinal;\n btn_dueDate.setText(dateFinal);\n }", "public int getMonthInt(int monthint,String month){\n switch (month) {\n case \"JANUARY\": monthint = 1;\n break;\n case \"FEBUARY\": monthint = 2;\n break;\n case \"MARCH\": monthint = 3;\n break;\n case \"APRIL\": monthint = 4;\n break;\n case \"MAY\": monthint = 5;\n break;\n case \"JUNE\": monthint = 6;\n break;\n case \"JULY\": monthint = 7;\n break;\n case \"AUGUST\": monthint = 8;\n break;\n case \"SEPTEMBER\": monthint = 9;\n break;\n case \"OCTOBER\": monthint = 10;\n break;\n case \"NOVEMBER\": monthint = 11;\n break;\n case \"DECEMBER\": \n monthint = 12;\n break;\n// default: JOptionPane.showMessageDialog(null,\"Error\",\"INVALID INPUT\", JOptionPane.ERROR_MESSAGE);\n \n// break;\n }\n return monthint;\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tmView.previousMonth();\n\t\t\t\tc.add(Calendar.MONTH, -1);\n\t\t\t\tmonthlyview_month.setText(DateFormat.format(\"d MMMM yyyy\", c));\n\t\t\t\t\t}", "private void updateMonthMenu() {\r\n String[] months = getDateFormatSymbols().getMonths();\r\n monthMenu.removeAll();\r\n for (int i = 0; i < months.length; i++) {\r\n JMenuItem x = new JMenuItem(months[i]);\r\n x.addActionListener(new DateActionListener(Calendar.MONTH, i));\r\n monthMenu.add(x);\r\n }\r\n if (monthControl != null) {\r\n updateControlsFromTable();\r\n }\r\n }", "@Override\n public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {\n if (newValue != null) {\n \n // Show selected/current month above calendar\n monthLabel.setText(newValue);\n System.out.println(\"mounth new \"+newValue);\n // Update the VIEWING MONTH;\n Model.getInstance().viewing_month = Model.getInstance().getMonthIndex(newValue);\n \n \n //Model.getInstance().viewing_month = monthSelect.getSelectionModel().getSelectedIndex();\n \n \n // System.out.println(\"mounth\"+Model.getInstance().viewing_month);\n\n // Update view\n repaintView();\n }\n \n }", "public final native double setMonth(int month, int dayOfMonth) /*-{\n this.setMonth(month, dayOfMonth);\n return this.getTime();\n }-*/;", "public byte getMonth() {\n return month;\n }", "@Override\n public void onSelectedDayChange(@NonNull CalendarView calendarView, int year, int month, int dayofmonth) {\n String dateselectedwoformat = String.valueOf(year)+\"-\"+String.valueOf(month+1)+\"-\"+String.valueOf(dayofmonth);\n SimpleDateFormat format = new SimpleDateFormat(datePattern);\n String dateselected = null;\n try {\n Date date = format.parse(dateselectedwoformat);\n Log.d(\"date\", \"onSelectedDayChange: \"+date);\n dateselected = format.format(date);\n } catch (ParseException e) {\n e.printStackTrace();\n }\n Log.d(\"mainfrag - date\", \"onSelectedDayChange: \"+dateselected);\n Intent intent = new Intent(getActivity(),worldCupFixtureActivity.class);\n intent.putExtra(worldCupFixtureFragment.DATE_SELECT,dateselected);\n startActivity(intent);\n }", "public int getMonthValue(){\n\t\treturn monthValue;\n\t}", "@Override\r\n public void onDateSet(DatePicker view, int year, int monthOfYear,\r\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\r\n myCalendar.set(Calendar.MONTH, monthOfYear);\r\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\r\n\r\n int s=monthOfYear+1;\r\n txt_date.setText(dayOfMonth+\"-\"+s+\"-\"+year);\r\n\r\n\r\n\r\n\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int day) {\n int mMonth = month + 1;\n String bydate = year + \"-\" + mMonth + \"-\" + day;\n mIdTvMoonatCenterShortLine.setText(bydate);\n\n List<SleepDataInfo> all = manager.findAllSleep();\n SleepDataInfo sleepDataInfo_total = manager.findSleepDataInfo(SPUtil.getUserName(getApplication()), bydate);\n RefreshView(sleepDataInfo_total); /*选择日期后刷新ui*/\n }", "public String getMonth(int month) {\n\t\treturn new DateFormatSymbols().getMonths()[month-1];\n\t}", "public int getMonth() {\r\n // ersetzt deprecated Methode Date.getMonth()\r\n return this.month;\r\n }", "@Override\n public void onItemSelected(AdapterView<?> arg0, View arg1, int pos,\n long arg3) {\n monthName = String.valueOf(monthsSpinner.getSelectedItem());\n\n }", "@Override\r\n public void onDateSet(DatePicker view, int selectedYear, int selectedMonth, int selectedDay) {\r\n year = selectedYear;\r\n month = selectedMonth;\r\n day = selectedDay;\r\n\r\n // Show selected date\r\n W_date.setText(new StringBuilder().append(month + 1).append(\"-\").append(day)\r\n .append(\"-\").append(year).append(\" \"));\r\n }", "@Override\n public void onDateSet(DatePicker view, int year, int month, int dayOfMonth) {\n HashMap<String, String> months = new HashMap<>();\n String[] mnths = {\"\", \"Jan\", \"Feb\", \"March\", \"April\", \"May\", \"June\", \"July\", \"August\", \"Sept\", \"Oct\", \"Nov\", \"Dec\"};\n for (int i = 1; i <= 12; i++) {\n if (i < 10) {\n months.put(Integer.toString(i), mnths[i]);\n } else {\n\n months.put(Integer.toString(i), mnths[i]);\n }\n }\n // get day,month,year\n month = month + 1;\n String date = month + \"-\" + dayOfMonth + \"-\" + year;\n this.day = dayOfMonth;\n this.stringDay = String.valueOf(dayOfMonth);\n this.year = String.valueOf(year);\n this.month = months.get(String.valueOf(month));\n monthCollection = month + \"-\" + year;\n // set date in view\n dateText.setText(date);\n }", "public final native int getMonth() /*-{\n return this.getMonth();\n }-*/;", "@Override\n public void onDateSelected(int month, String monthName, int day,\n int year, String dateFormatServer, String dateFormatApp,\n Date date) {\n eventDate.setText(dateFormatApp);\n// choosenDateTextView.setText(dateFormatApp);\n// dateFormatServerString = dateFormatServer;\n }", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear, int dayOfMonth) {\n String currentdate = String.valueOf(dayOfMonth);\n if (currentdate.toString().length() == 1) {\n currentdate = \"0\" + currentdate;\n Log.e(\"currentMinutes\", \"currentdate-->\" + currentdate);\n }\n\n String currentmonth = String.valueOf(monthOfYear + 1);\n if (currentmonth.toString().length() == 1) {\n currentmonth = \"0\" + currentmonth;\n Log.e(\"currentMinutes\", \"currentMinutes-->\" + currentmonth);\n }\n\n tvStartDate.setText(currentdate + \"/\" + currentmonth + \"/\" + year);\n // et_start_date.setText((monthOfYear + 1) + \"/\" + dayOfMonth + \"/\" + year);\n\n msaveyear = year;\n msavemonth = Integer.parseInt(currentmonth) - 1;\n msaveday = Integer.parseInt(currentdate);\n\n myear = year;\n mmonth = Integer.parseInt(currentmonth) - 1;\n mday = Integer.parseInt(currentdate);\n }", "public int getMonth() {\r\n return FormatUtils.uint8ToInt(mMonth);\r\n }", "public void updateMonth(int value)\n {\n this.currentCalendar.add(Calendar.MONTH, value);\n }", "public void setMonths(String months) {\n this.months = parseMonths(months);\n }" ]
[ "0.7560224", "0.7003622", "0.68717986", "0.6712543", "0.6677831", "0.6664837", "0.66486263", "0.66486263", "0.6620406", "0.657564", "0.6561822", "0.6542608", "0.6538216", "0.65149873", "0.64804244", "0.6479671", "0.64510417", "0.64341694", "0.6423738", "0.6396071", "0.6392324", "0.6392222", "0.6384567", "0.63742846", "0.6363737", "0.63535756", "0.63514954", "0.63514954", "0.6338281", "0.6334444", "0.63283306", "0.632829", "0.6315394", "0.6310713", "0.62998796", "0.62734985", "0.6263753", "0.6254468", "0.62539506", "0.62523836", "0.62518203", "0.62462866", "0.6246082", "0.6244541", "0.6237064", "0.62333626", "0.6231145", "0.6231145", "0.6231145", "0.62267387", "0.6218553", "0.62009066", "0.6184029", "0.6177541", "0.6152072", "0.6152072", "0.6129096", "0.61059487", "0.60978633", "0.60780156", "0.60731345", "0.6069352", "0.60540646", "0.60540646", "0.60540646", "0.6051842", "0.6037693", "0.6032798", "0.6015983", "0.6012675", "0.60086817", "0.6007924", "0.60010314", "0.59913635", "0.598329", "0.59794", "0.5977652", "0.59770286", "0.5968698", "0.59629345", "0.59596056", "0.59469575", "0.594443", "0.5916155", "0.5916044", "0.5915328", "0.59133804", "0.5889954", "0.5878119", "0.586939", "0.5832069", "0.58188576", "0.5801707", "0.5799618", "0.5790755", "0.5789411", "0.5788843", "0.5786768", "0.5769457", "0.5764802", "0.57616735" ]
0.0
-1
iterate through each user, ignoring their UID
public void collectPhoneNumbers(Map<String,Object> Faculty) { for (Map.Entry<String, Object> entry : Faculty.entrySet()){ //Get user map Map singleUser = (Map) entry.getValue(); //Get phone field and append to list phoneNumbers.add((String) singleUser.get("facultyEmail")); } // Toast.makeText(getApplicationContext(), "It is running", // Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator getUserIDs()\n {\n ArrayList temp = new ArrayList();\n \n for (int i = 0; i != ids.size(); i++)\n {\n if (ids.get(i) instanceof String)\n {\n temp.add(ids.get(i));\n }\n }\n \n return temp.iterator();\n }", "@Override\r\n public Iterator<User> iterator() {\r\n return user.iterator();\r\n }", "Iterable<User> getAllUsers();", "private void readUsers(String filter) {\n Filter userFilter = Filter.createORFilter(\n Filter.createSubAnyFilter(\"cn\", filter),\n Filter.createSubAnyFilter(\"sn\", filter),\n Filter.createSubAnyFilter(\"givenname\", filter)\n );\n\n SearchResult searchResult = OpenLDAP.searchUser(userFilter);\n for (int i = 0; i < searchResult.getEntryCount(); i++) {\n SearchResultEntry entry = searchResult.getSearchEntries().get(i);\n User user = new User();\n user.setDistinguishedName(entry.getDN());\n user.setUsername(entry.getAttributeValue(\"cn\"));\n user.setFirstname(entry.getAttributeValue(\"givenname\"));\n user.setLastname(entry.getAttributeValue(\"sn\"));\n user.setEmail(entry.getAttributeValue(\"mail\"));\n user.setMobile(entry.getAttributeValue(\"mobile\"));\n getUsers().put(user.getUsername(), user);\n }\n }", "public void printAllUsers() {\n\t\tfor (User u : getUserSet()) {\n\t\t\tSystem.out.println(u);\n\t\t}\n\t}", "private void getAllUsers(){\n\t\t\n\t\tSystem.out.println(\"Retrieving Social Graph Data from tibbr...\"); \n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\tString params = \"?sort=firstNameAsc&fields=name,jive.username,-resources&count=5000&startIndex=0\"; \n\t\tHttpGet getRequest = new HttpGet(urlBase+\"/api/core/v3/people/@all\"+params);\n\t\t\n\n\t\t\t \n\t\tgetRequest.setHeader(\"Authorization\", \"Basic \" + this.auth);\n\t\t\n\t\t\t\n\t\ttry {\n\t\t\tHttpResponse response = httpClient.execute(getRequest);\n\t\t\tString jsonOut = readStream(response.getEntity().getContent());\n\t\t // Remove throwline if present\n\t\t\tjsonOut = removeThrowLine(jsonOut);\n\t\t getAllUserElements(jsonOut);\n\t\t \n\t \n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public Iterator getUserAttributes()\n {\n ArrayList temp = new ArrayList();\n \n for (int i = 0; i != ids.size(); i++)\n {\n if (ids.get(i) instanceof PGPUserAttributeSubpacketVector)\n {\n temp.add(ids.get(i));\n }\n }\n \n return temp.iterator();\n }", "@Override\r\n\tpublic void getAllUser() {\n\t\tSystem.out.println(users);\r\n\t\t\r\n\t}", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "@Override\r\n\tpublic List<Map<String, Object>> findAllUser() {\n\t\treturn userMapper.findAllUser();\r\n\t}", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "private void notifyAllUnlockedUsers() {\n LinkedList<Integer> users = new LinkedList<>();\r\n synchronized (mLock) {\r\n for (Map.Entry<Integer, Boolean> entry : mUserUnlockedStatus.entrySet()) {\r\n if (entry.getValue()) {\r\n users.add(entry.getKey());\r\n }\r\n }\r\n }\r\n if (DBG) {\r\n Slog.d(TAG, \"notifyAllUnlockedUsers:\" + users);\r\n }\r\n for (Integer i : users) {\r\n sendSetUserLockStatusBinderCall(i, true);\r\n }\r\n }", "@Override\r\n public List<User> userfindAll() {\n return userMapper.userfindAll();\r\n }", "public void getAllUsers() {\n\t\t\n\t}", "@Override\n\tpublic Set<Long> getAllUserId() {\n\t\tfinal Set<Long> allUserIds = new HashSet<>();\n\t\tfinal Object[][] result = SQL.select(SQLs.USER_SELECT_ID_ONLY);\n\t\tif (null != result && result.length > 0) {\n\t\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\t\tif (null != result[i]) {\n\t\t\t\t\tallUserIds.add((Long) result[i][0]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn allUserIds;\n\t}", "@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}", "@Override\n\tpublic ArrayList<user> getAllUser() {\n\t\treturn null;\n\t}", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "public void userListStart() {\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tuserList.add(userServices.getAllUsers()[i]);\n\t\t}\n\t}", "public void ShowAllUsers()\r\n {\r\n userList.forEach((s) -> { System.out.println(s); });\r\n }", "@Override\n\tpublic int findAllUser()throws Exception {\n\t\treturn userMapper.findAllUser();\n\t}", "public void getUsers() {\n CollectionReference ref = FirebaseFirestore.getInstance().collection(\"users\");\n listOfUsers = new ArrayList<>();\n\n ref.get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if(task.isSuccessful()) {\n for(DocumentSnapshot doc: task.getResult()) {\n listOfUsers.add(doc.toObject(User.class).getUserID());\n }\n listOfUsers.remove(user.getUserID());\n }\n }\n });\n }", "@VisibleForTesting\n void updateUsers(List<String> userUnids) {\n final String METHOD = \"updateUsers\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n long timeStart = System.currentTimeMillis();\n NotesView serverAccessView = null;\n try {\n String userSelectionFormula = connectorSession.getUserSelectionFormula();\n String userNameFormula = connectorSession.getUserNameFormula();\n LOGGER.log(Level.FINEST,\n \"User selection formula is: {0}\\nUser name formula is: {1}\",\n new Object[] { userSelectionFormula, userNameFormula });\n serverAccessView = directoryDatabase.getView(\n NCCONST.DIRVIEW_SERVERACCESS);\n serverAccessView.refresh();\n\n int count = 0;\n for (String unid : userUnids) {\n NotesDocument personDoc = getDocumentByUnid(directoryDatabase, unid);\n if (personDoc == null) {\n LOGGER.log(Level.FINEST, \"Person document [{0}] is not found\", unid);\n } else {\n String notesName = null;\n try {\n if (count++ % NCCONST.GC_INVOCATION_INTERVAL == 0) {\n Util.invokeGC();\n }\n if (!personDoc.getItemValueString(NCCONST.ITMFORM).contentEquals(\n NCCONST.DIRFORM_PERSON)) {\n continue;\n }\n // The first value in this field is the Notes name; other\n // names may be present.\n Vector nameVector = personDoc.getItemValue(NCCONST.PITM_FULLNAME);\n if (nameVector.size() == 0) {\n continue;\n }\n String storedName = nameVector.firstElement().toString();\n notesName = notesSession.createName(storedName)\n .getCanonical().toLowerCase();\n LOGGER.log(Level.FINEST,\n \"Processing user: {0}; name from directory was: {1}\",\n new Object[] { notesName, storedName});\n // Get their PVI\n String pvi = evaluatePvi(userNameFormula, personDoc);\n if (0 == pvi.length()) {\n LOGGER.log(Level.WARNING,\n \"Could not evaluate PVI username for: {0}\", notesName);\n continue;\n }\n LOGGER.log(Level.FINEST, \"PVI: {0}\", pvi);\n // Does this person match the selection formula?\n boolean selected = checkPersonSelectionFormula(userSelectionFormula,\n personDoc);\n if (!selected) {\n LOGGER.log(Level.FINEST, \"User not selected: {0}\", notesName);\n continue;\n }\n updateUser(personDoc, notesName, pvi, serverAccessView);\n // Log user info\n if (LOGGER.isLoggable(Level.FINE)) {\n User user = getUser(\"gsaname\", pvi);\n LOGGER.log(Level.FINE, \"All groups for {0}: {1}\",\n new Object[] { user, user.getGroups() });\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Failed to update user cache\"\n + (notesName != null ? \" for \" + notesName : \"\"), e);\n } finally {\n Util.recycle(personDoc);\n }\n }\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Error processing users\", e);\n } finally {\n Util.recycle(serverAccessView);\n LOGGER.exiting(CLASS_NAME, METHOD);\n }\n long timeFinish = System.currentTimeMillis();\n LOGGER.log(Level.FINE, \"Update users: {0}ms\", timeFinish - timeStart);\n }", "@Override\n\tpublic List<User> findAllUser() {\n\t\treturn mapper.findAllUser();\n\t}", "@Override\n\tpublic Iterable<User> getAllUser() {\n\t\treturn userRepository.findAll();\n\t}", "@Override\n\tpublic List<User> getAllUsers(int userId) {\n\t\tList<User> users = new ArrayList<>();\n\t\tList<User> userList = new ArrayList<>();\n\t\t\n\t\tusers = uDAO.getUsers();\n\t\t\n\t\tfor (User u : users) {\n\t\t\tif (userId != u.getId())\n\t\t\t{\n\t\t\t\tuserList.add(u);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn userList;\n\t}", "public List<Integer> getAllUserId() {\n return getAllUserId(getApplicationContext());\n }", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "public Multimap<String, String> getUsers() throws IOException {\n ImmutableMultimap.Builder<String, String> users = ImmutableSetMultimap.builder();\n for (ChildData child : mCache.getCurrentData()) {\n String nodeName = Iterables.getLast(Splitter.on('/').split(child.getPath()));\n String[] split = nodeName.split(ZooKeeperUtils.ZK_NODE_NAME_SEPARATOR);\n if (split.length != 2) {\n LOG.error(\"Ignoring invalid ZooKeeper table user node: {}.\", nodeName);\n continue;\n }\n final String userID = URLDecoder.decode(split[0], Charsets.UTF_8.displayName());\n final String layoutID = URLDecoder.decode(split[1], Charsets.UTF_8.displayName());\n\n users.put(userID, layoutID);\n }\n return users.build();\n }", "@Override\n\tpublic ArrayList<Utente> getUsers() {\n\t\tDB db = getDB();\n\t\tArrayList<Utente> usersList = new ArrayList<>();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente)\n\t\t\t\tusersList.add((Utente) user.getValue());\n\t\treturn usersList;\n\t}", "private void refreshUsers(int i) {\n UserInfo userInfo;\n if (i != -10000) {\n this.mForcePictureLoadForUserId.put(i, true);\n }\n if (!this.mPauseRefreshUsers) {\n boolean z = this.mForcePictureLoadForUserId.get(-1);\n SparseArray sparseArray = new SparseArray(this.mUsers.size());\n int size = this.mUsers.size();\n for (int i2 = 0; i2 < size; i2++) {\n UserRecord userRecord = this.mUsers.get(i2);\n if (!(userRecord == null || userRecord.picture == null || (userInfo = userRecord.info) == null || z || this.mForcePictureLoadForUserId.get(userInfo.id))) {\n sparseArray.put(userRecord.info.id, userRecord.picture);\n }\n }\n this.mForcePictureLoadForUserId.clear();\n final boolean z2 = this.mAddUsersWhenLocked;\n new AsyncTask<SparseArray<Bitmap>, Void, ArrayList<UserRecord>>() {\n /* class com.android.systemui.statusbar.policy.UserSwitcherController.AnonymousClass2 */\n\n /* access modifiers changed from: protected */\n public ArrayList<UserRecord> doInBackground(SparseArray<Bitmap>... sparseArrayArr) {\n boolean z = false;\n SparseArray<Bitmap> sparseArray = sparseArrayArr[0];\n List<UserInfo> users = UserSwitcherController.this.mUserManager.getUsers(true);\n UserRecord userRecord = null;\n if (users == null) {\n return null;\n }\n ArrayList<UserRecord> arrayList = new ArrayList<>(users.size());\n int currentUser = ActivityManager.getCurrentUser();\n boolean z2 = UserSwitcherController.this.mUserManager.getUserSwitchability(UserHandle.of(ActivityManager.getCurrentUser())) == 0;\n UserInfo userInfo = null;\n for (UserInfo userInfo2 : users) {\n boolean z3 = currentUser == userInfo2.id;\n UserInfo userInfo3 = z3 ? userInfo2 : userInfo;\n boolean z4 = z2 || z3;\n if (userInfo2.isEnabled()) {\n if (userInfo2.isGuest()) {\n userRecord = new UserRecord(userInfo2, null, true, z3, false, false, z2);\n } else if (userInfo2.supportsSwitchToByUser()) {\n Bitmap bitmap = sparseArray.get(userInfo2.id);\n if (bitmap == null && (bitmap = UserSwitcherController.this.mUserManager.getUserIcon(userInfo2.id)) != null) {\n int dimensionPixelSize = UserSwitcherController.this.mContext.getResources().getDimensionPixelSize(C0012R$dimen.max_avatar_size);\n bitmap = Bitmap.createScaledBitmap(bitmap, dimensionPixelSize, dimensionPixelSize, true);\n }\n arrayList.add(new UserRecord(userInfo2, bitmap, false, z3, false, false, z4));\n }\n }\n userInfo = userInfo3;\n }\n if (arrayList.size() > 1 || userRecord != null) {\n Prefs.putBoolean(UserSwitcherController.this.mContext, \"HasSeenMultiUser\", true);\n }\n boolean z5 = !UserSwitcherController.this.mUserManager.hasBaseUserRestriction(\"no_add_user\", UserHandle.SYSTEM);\n boolean z6 = userInfo != null && (userInfo.isAdmin() || userInfo.id == 0) && z5;\n boolean z7 = z5 && z2;\n boolean z8 = (z6 || z7) && userRecord == null;\n if ((z6 || z7) && UserSwitcherController.this.mUserManager.canAddMoreUsers()) {\n z = true;\n }\n boolean z9 = !z2;\n if (userRecord != null) {\n arrayList.add(userRecord);\n } else if (z8) {\n UserRecord userRecord2 = new UserRecord(null, null, true, false, false, z9, z2);\n UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord2);\n arrayList.add(userRecord2);\n }\n if (z) {\n UserRecord userRecord3 = new UserRecord(null, null, false, false, true, z9, z2);\n UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord3);\n arrayList.add(userRecord3);\n }\n return arrayList;\n }\n\n /* access modifiers changed from: protected */\n public void onPostExecute(ArrayList<UserRecord> arrayList) {\n if (arrayList != null) {\n UserSwitcherController.this.mUsers = arrayList;\n UserSwitcherController.this.notifyAdapters();\n }\n }\n }.execute(sparseArray);\n }\n }", "public List<User> getAllUsers() {\n\n\t\tList<User> result = new ArrayList<User>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllUsers);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tString query = \"SELECT IdGlobal, TCELLIP, PUBLICKEY, TCELLPORT from USER\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tint UserGID =rs.getInt(1);\n\t\t\t\tString TCellIP = rs.getString(2);\n\t\t\t\t\n\t\t\t\t//convert Blob to String\n\t\t\t\tBlob myPubKeyBlob = rs.getBlob(3);\n\t\t\t\tbyte[] bPubKey = myPubKeyBlob.getBytes(1, (int) myPubKeyBlob.length());\n\t\t\t\tString pubKey = new String(bPubKey);\n\t\t\t\t\n\t\t\t\tint port = rs.getInt(4);\n\t\t\t\tUser user = new User(UserGID,TCellIP, port, pubKey);\n\t\t\t\tresult.add(user);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\n\t}", "private void fetchUsers(){\n for(Chat chat : chatArrayList){\n if(chat.getUserOne().equals(profileRemoteDAO.getUserId()))\n profileRemoteDAO.getProfileRequestHandler(chat.getUserTwo());\n else\n profileRemoteDAO.getProfileRequestHandler(chat.getUserOne());\n }\n customArrayAdapter.notifyDataSetChanged();\n }", "public static Iterable<Entity> getAllUsers() {\r\n Iterable<Entity> entities = Util.listEntities(\"User\", null, null);\r\n return entities;\r\n }", "@Override\n public Set<User> usersThatFollow(String usernname) {\n return userDataMapper.getUsersThatFollow(getUser(usernname).getId());\n }", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "@Override\r\n\tpublic List listAllUser() {\n\t\treturn userDAO.getUserinfoList();\r\n\t}", "public synchronized Set<User> getUsers() {\r\n Set<User> userSet = new HashSet<User>(userSetSize); \r\n userSet.addAll(this.email2user.values());\r\n return userSet;\r\n }", "public static String[] getAllUsers(Context context) {\r\n\r\n\t\tUri contentUri = Uri.withAppendedPath(EquestProvider.CONTENT_URI,\r\n\t\t\t\tEquestDbHelper.USER_TABLE);\r\n\t\tCursor cursor = context.getContentResolver().query(contentUri,\r\n\t\t\t\tnew String[] { EquestDbHelper.USERID }, null, null, null);\r\n\t\tint x = cursor.getCount();\r\n\t\tif (x == 0)\r\n\t\t\treturn new String[] { \"None Found\" };\r\n\t\tString Users[] = new String[x];\r\n\t\tint i = 0;\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tdo {\r\n\t\t\t\tUsers[i] = cursor.getString(cursor\r\n\t\t\t\t\t\t.getColumnIndex(EquestDbHelper.USERID));\r\n\t\t\t\ti++;\r\n\t\t\t} while (cursor.moveToNext());\r\n\t\t}\r\n\r\n\t\treturn Users;\r\n\t}", "@Override\n public Iterator<BlueUser> iterator() {\n return new AdaptedIterator<User, BlueUser>(User.getAll()) {\n @Override\n protected BlueUser adapt(User item) {\n return new UserImpl(organization, item, UserContainerImpl.this);\n }\n };\n }", "@Override\r\n\tpublic List<User> getAllUser() {\n\t\tList<User> listStudents = new ArrayList<User>();\r\n\t\tlistStudents = userReposotory.findAll();\r\n\t\treturn listStudents;\r\n\t}", "@Override\n\tpublic List<User> get() {\n\t\tList<User> result = new ArrayList<>();\n\t\tfor (String key : userlist.keySet()) {\n\t\t\tUser user = userlist.get(key);\n\t\t\tint dni = user.getDni();\n\t\t\tString name = user.getName();\n\t\t\tString secondName = user.getSecondName();\n\t\t\tString username = user.getUser();\n\t\t\tString pass = user.getPass();\n\t\t\tresult.add(new User(dni, name, secondName, username, pass));\n\t\t}\n\t\treturn result;\n\t}", "public void dumpUsers() {\r\n\t\tuserList.removeAll(userList);\r\n\t\ttry {\r\n\t\t\texportUserList();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public List getAllUsers();", "public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}", "@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}", "abstract ArrayList<User> getAllUsers();", "private void updateAllUsers() {\n for(IUser user : this.bot.getClient().getUsers()) {\n this.updateUserStatus(user);\n }\n saveJSON();\n }", "@Override\n\tpublic user getUser(int i) {\n\t\treturn userdb.get(i); \n\t}", "public void updateUser() {\r\n users.clear();\r\n RestaurantHelper.getCollectionFromARestaurant(currentRest.getPlaceId(), \"luncherId\").addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\r\n for (DocumentSnapshot docSnap : task.getResult()) {\r\n UserHelper.getUser(docSnap.getId()).addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\r\n if(!task.getResult().getId().equals(currentUser.getUid())){\r\n users.add(task.getResult().toObject(User.class));\r\n mCoworkerAdapter.notifyDataSetChanged();\r\n }\r\n }\r\n });\r\n }\r\n }\r\n }).addOnFailureListener(this.onFailureListener());\r\n }", "public synchronized List<User> getAllUsers() {\r\n\t\treturn new ArrayList<User>(mapping.values());\r\n\t}", "@Override\n\tpublic List<ERSUser> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}", "public void selectAllUser() {\n String sql = \"SELECT id, user, publickey, password, salt FROM users\";\n\n try (Connection conn = this.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n System.out.println(rs.getInt(\"id\") + \"\\t\" + rs.getString(\"user\") + \"\\t\" + rs.getDouble(\"publickey\")\n + \"\\t\" + rs.getString(\"password\") + \"\\t\" + rs.getString(\"salt\"));\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\r\n public List<User> darUsers() {\r\n Query q = em.createQuery(\"SELECT u FROM UserEntity u\");\r\n List<UserEntity> l = q.getResultList();\r\n List<User> ltr = new ArrayList();\r\n for(UserEntity te: l)\r\n {\r\n ltr.add(TransformadorEntityDto.getInstance().entityADtoUser(te));\r\n }\r\n return ltr;\r\n }", "public Iterable<UserWithProfile> getUserUnmatched(Long userId)\n\t{\n\t\tUser user = userRepository.findUserById(userId);\n\t\tArrayList<User> liked = new ArrayList<User>(user.getLiked());\n\t\tArrayList<User> disliked = new ArrayList<User>(user.getDisliked());\n\t\t\n\t\t//this is the fix for heroku...\n\t\tif (liked.size() == 0)\n\t\t{\n\t\t\tliked.add(userService.getCurrentUser());\n\t\t}\n\t\tif (disliked.size() == 0)\n\t\t{\n\t\t\tdisliked.add(userService.getCurrentUser());\n\t\t}\n\t\t\n\t\tIterable<User> userUnmatched = userRepository.findUserUnmatched(user.getId(), liked, disliked);\n\t\t\n\t\tLOG.info(\"user {} fetches unmatched list\", userId);\n\t\t\n\t\treturn this.createUserWithProfiles(userUnmatched);\n\t}", "public ArrayList<String> getAllUsers() {\n\t\tSystem.out.println(\"Looking up all users...\");\n\t\treturn new ArrayList<String>(users.keySet());\t\n\t}", "@Override\n\tpublic List<User> getAllItem() {\n\t\treturn userRepository.findAll();\n\t}", "@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot uniqueUserSnapshot : dataSnapshot.getChildren()) {\n User currentUser = uniqueUserSnapshot.getValue(User.class);\n userArraylist.add(currentUser);\n userName.add(currentUser.name);\n }\n\n }", "private void getAllUserElements(String jsonData){\n\t \n\t\t\n\t\t\n\t\t\t\n\t\n\t\t\n\t\t\ttry {\n\t\t\t\tJSONObject obj = new JSONObject(jsonData);\n\n\t\t\t\tJSONArray arr = obj.getJSONArray(\"list\");\n\t\t\t\t\n\t\t\t\tmyUsers = new TibbrUser[arr.length()];\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < arr.length(); i++)\n\t\t\t\t{\n\t\t\t\t String ID = arr.getJSONObject(i).getString(\"id\");\n\t\t\t\t String login = arr.getJSONObject(i).getJSONObject(\"jive\").getString(\"username\");\n\t\t\t\t myUsers[i] = new TibbrUser (login, ID); \n\t\t\t\t}\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\n\t \t \n\t}", "protected void validatePartnerLinkUsers() {\r\n for (IAePartnerLinkOperationUser user : mUsers) {\r\n validatePartnerLinkUser(user);\r\n }\r\n }", "@Override\n public void gotUsers(ArrayList<User> usersList) {\n for(int i = 0; i < usersList.size(); i++) {\n User currentUser = usersList.get(i);\n if(currentUser.getUser_name().equals(username) && currentUser.getUser_password()\n .equals(password)) {\n disableButton.setEnabled(true);\n Intent intent = new Intent(NewaccountActivity.this,\n OverviewActivity.class);\n intent.putExtra(\"loggedInUser\", currentUser);\n startActivity(intent);\n }\n }\n }", "public List<Utilizator> listUsers();", "public List<User> getAllUsers();", "@Override\n\tpublic List<UserWithoutPassword> getUserList() {\n\t\treturn userDao.findAll();\n\t}", "@Override\n public List<LdapUser> getAllLdapUsers() throws NamingException {\n\n LOGGER.info(\"Getting all Ldap Users Service implementation\");\n Hashtable<String, String> env = new Hashtable<>();\n SearchControls searchCtrls = new SearchControls();\n searchCtrls.setSearchScope(SearchControls.SUBTREE_SCOPE);\n env.put(Context.INITIAL_CONTEXT_FACTORY,\n \"com.sun.jndi.ldap.LdapCtxFactory\");\n env.put(Context.PROVIDER_URL, ldapUrl);\n env.put(Context.REFERRAL, \"follow\");\n env.put(Context.SECURITY_AUTHENTICATION, \"simple\");\n env.put(Context.SECURITY_PRINCIPAL, ldapUsername);\n env.put(Context.SECURITY_CREDENTIALS, ldapPassword);\n DirContext context = new InitialDirContext(env);\n String filter = ldapFilter;\n String searchBase = ldapSearchBase;\n NamingEnumeration answer = context.search(searchBase, filter, searchCtrls);\n List<LdapUser> userList = null;\n userList = new ArrayList<>();\n LdapUser user = null;\n while (answer.hasMoreElements()) {\n SearchResult sr = (SearchResult) answer.next();\n user = new LdapUser();\n user.setName(sr.getName());\n userList.add(user);\n Attributes attrs = sr.getAttributes();\n if (attrs != null) {\n this.ifAttrsNotNull(user, attrs);\n }\n }\n return userList;\n }", "public AllUsers(int datacenterId) {\r\n this.datacenterId = datacenterId;\r\n users= new ArrayList<>();\r\n }", "List<User> fetchAllUSers();", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "public List<Map<String, Object>> getAllUsers() {\n Result<Record2<Long, String>> result = getDbContext().select(USER.USER_ID, USER.USER_NAME).from(USER).fetch();\n return result.intoMaps();\n }", "@Override\n\tpublic Iterable<com.example.demo.model.User> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}", "@Override\r\n\tpublic List<User> getUserList() throws MyUserException {\n\t\treturn userDao.getUserList();\r\n\t}", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "public List<User> listAll() throws Exception;", "public List<User> getAllUser() {\n\t\treturn null;\r\n\t}", "protected void refreshAllUsers() {}", "public User getUser(String uid) {\n Enumeration<Object> enumeration = elements();\n while(enumeration.hasMoreElements()){\n User user = (User)enumeration.nextElement();\n if(uid.equals(user.getUid().toString())) {\n return user;\n }\n }\n throw new NoSuchElementException();\n }", "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "private void getManagedUsers(Request request) {\n // LUA uuid/ManagedBy Id\n String uuid = (String) request.get(JsonKey.ID);\n\n boolean withTokens = Boolean.valueOf((String) request.get(JsonKey.WITH_TOKENS));\n\n Map<String, Object> searchResult =\n userClient.searchManagedUser(\n getActorRef(ActorOperations.USER_SEARCH.getValue()),\n request,\n request.getRequestContext());\n List<Map<String, Object>> userList = (List) searchResult.get(JsonKey.CONTENT);\n\n List<Map<String, Object>> activeUserList = null;\n if (CollectionUtils.isNotEmpty(userList)) {\n activeUserList =\n userList\n .stream()\n .filter(o -> !BooleanUtils.isTrue((Boolean) o.get(JsonKey.IS_DELETED)))\n .collect(Collectors.toList());\n }\n if (withTokens && CollectionUtils.isNotEmpty(activeUserList)) {\n // Fetch encrypted token from admin utils\n Map<String, Object> encryptedTokenList =\n userService.fetchEncryptedToken(uuid, activeUserList, request.getRequestContext());\n // encrypted token for each managedUser in respList\n userService.appendEncryptedToken(\n encryptedTokenList, activeUserList, request.getRequestContext());\n }\n Map<String, Object> responseMap = new HashMap<>();\n if (CollectionUtils.isNotEmpty(activeUserList)) {\n responseMap.put(JsonKey.CONTENT, activeUserList);\n responseMap.put(JsonKey.COUNT, activeUserList.size());\n } else {\n responseMap.put(JsonKey.CONTENT, new ArrayList<>());\n responseMap.put(JsonKey.COUNT, 0);\n }\n Response response = new Response();\n response.put(JsonKey.RESPONSE, responseMap);\n sender().tell(response, self());\n }", "@Override\r\n\tpublic List<User> getUserList(Map map) {\n\t\treturn userDao.findUser(map);\r\n\t}", "public List<GUID> getUsers() throws StationException {\n\n\t\tif (userList.isEmpty())\n\t\t\tthrow new StationException(\"User list is empty.\");\n\n\t\treturn userList;\n\t}", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "@Override\n public List<LdapUser> getAllLdapUsers() throws NamingException {\n\n LOGGER.info(\"Getting all Ldap Users Service implementation\");\n Hashtable<String, String> env = new Hashtable<>();\n SearchControls searchCtrls = new SearchControls();\n searchCtrls.setSearchScope(SearchControls.SUBTREE_SCOPE);\n env.put(Context.INITIAL_CONTEXT_FACTORY,\n \"com.sun.jndi.ldap.LdapCtxFactory\");\n env.put(Context.PROVIDER_URL, ldapUrl);\n env.put(Context.REFERRAL, \"follow\");\n env.put(Context.SECURITY_AUTHENTICATION, \"simple\");\n env.put(Context.SECURITY_PRINCIPAL, ldapUsername);\n env.put(Context.SECURITY_CREDENTIALS, ldapPassword);\n String filter = ldapFilter;\n String searchBase = ldapSearchBase;\n LdapUser user = null;\n List<LdapUser> userList = null;\n DirContext context = new InitialDirContext(env);\n NamingEnumeration answer = context.search(searchBase, filter, searchCtrls);\n userList = new ArrayList<>();\n while (answer.hasMoreElements()) {\n SearchResult sr = (SearchResult) answer.next();\n user = new LdapUser();\n user.setName(sr.getName());\n userList.add(user);\n Attributes attrs = sr.getAttributes();\n if (attrs != null) {\n this.ifAttrsNotNull(user, attrs);\n }\n }\n return userList;\n }", "public void findUsers() throws SQLException {\r\n\t\t// Query to get all users and ids.\r\n\t\t\r\n\t\t// Clear existing list\r\n\t\tusersList.clear();\r\n\t\tuseridsList.clear();\r\n\t\t\r\n\t\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\t ResultSet rs = statement.executeQuery(\"select * from users\");\r\n\t while(rs.next())\r\n\t {\r\n\t // read the result set\r\n\t\t\t usersList.add(rs.getString(\"name\"));\r\n\t\t\t useridsList.add(rs.getInt(\"id\"));\r\n\t }\r\n\t\t// For loop to add each result to list.\r\n\r\n\t}", "@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}", "@Override\n public BlueUserContainer getUsers() {\n return users;\n }", "@Override\n\tpublic List<User> getAllUser() {\n\t\treturn uDao.getAllUser();\n\t}", "public synchronized void checkUsers() {\n\t\tHttpSession temp;\n\t\tDate now = new Date();\n\t\tString tempUser;\n\t\tEnumeration userList = userSessions.keys();\n\t\twhile (userList.hasMoreElements()) {\n\t\t\ttempUser = (String) userList.nextElement();\n\t\t\ttry {\n\t\t\t\ttemp = (HttpSession) userSessions.get(tempUser);\n\t\t\t\tif ((now.getTime() - temp.getLastAccessedTime()) > 60000)\n\t\t\t\t\tuserSessions.remove(tempUser);\n\t\t\t} catch (Exception e) {\n\t\t\t\tuserSessions.remove(tempUser);\n\t\t\t}\n\t\t}\n\t}", "List<KingdomUser> getAllUsers();", "private void clearUser() {\n user_ = emptyProtobufList();\n }", "private synchronized int generateUserID(){\r\n\t\tint i;\r\n\t\tfor(i = 1; users.containsKey(i);i++);\r\n\t\treturn i;\r\n\t}", "List<User> getAllUsers();", "List<User> getAllUsers();", "@Override\r\n\tpublic void viewAllUsers() {\n\t\tList<User> allUsers = new ArrayList<User>();\r\n\t\tallUsers = udao.getAllUsers();\r\n\t\t\r\n\t\tSystem.out.println(\"ALL USERS:\");\r\n\t\tSystem.out.println(\"ID\\tUsername\\tName\");\r\n\t\t\r\n\t\tfor(int i = 0; i < allUsers.size(); i++) {\r\n\t\t\tUser tempUser = allUsers.get(i);\r\n\t\t\tSystem.out.println(tempUser.getUserID() + \"\\t\" + tempUser.getUsername() + \"\\t\"\r\n\t\t\t\t\t+ tempUser.getFirstName() + \" \" + tempUser.getLastName());\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic List<User> findAllUser() {\n\t\treturn userDao.findAllUser();\n\t}", "private static void multipleUsersExample()\t{\n\t}", "public String getAllUsers() {\n\t\tString s = \"\";\n\t\tSet<String> ids = usersList.keySet();\n\t\tfor (String userId : ids) {\n\t\t\ts += \"<b>UserId :</b> \" + userId + \"&nbsp<b> UserName : </b>\" + usersList.get(userId).getName()\n\t\t\t\t\t+ \"<b>&nbsp Profession :</b> \" + usersList.get(userId).getProfession() + \"<br><br>\";\n\t\t}\n\t\treturn s;\n\n\t}", "private static HashMap<String, String> getUsers(String filename) {\n\t\t// Use hashmap to store the user list, the key is user name and the value is UUID\n\t\tHashMap<String, String> mapUsers = new HashMap<String, String>();\n\t\t// This will reference one line at a time\n\t\tString lineUser = null;\n\n\t\ttry {\n\t\t\t// Check file exists\n\t\t\tFile userfile = new File(filename);\n\t\t\tif(!userfile.exists() || userfile.isDirectory()) {\n\t\t\t\treturn mapUsers;\n\t\t\t}\n\t\t\t// Open the user file\n\t\t\tFileReader fileReader = new FileReader(filename);\n\t\t\t// User bufferedReader to go through the file\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t\t\t// Read the file in lines one by one\n\t\t\twhile((lineUser = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] namekey = lineUser.split(\" \"); // Split the name and key\n\t\t\t\tif (namekey.length != 2) { // Validate the data\n\t\t\t\t\tSystem.out.println(\"Invalid line: '\" + lineUser + \"' in '\" + filename + \"'\");\n\t\t\t\t\treturn mapUsers;\n\t\t\t\t}\n\t\t\t\t// Name + Key(UUID)\n\t\t\t\tmapUsers.put(namekey[0], namekey[1]);\n\t\t\t}\n\t\t\t// Always close files.\n\t\t\tbufferedReader.close();\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + filename + \"'\");\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\treturn mapUsers;\n\t\t}\n\t}", "public Collection<String> getUsers() {\r\n \t\tCollection<String> users = new TreeSet<>();\r\n \t\tusers.addAll(this.dataLayer.getUser());\r\n \r\n \t\treturn users;\r\n \t}" ]
[ "0.6618511", "0.66009635", "0.64288104", "0.63503486", "0.63363755", "0.6319306", "0.6306642", "0.6304372", "0.6247436", "0.62396765", "0.62319523", "0.62319374", "0.6211708", "0.6201397", "0.6186182", "0.61688983", "0.61254823", "0.6100253", "0.6088629", "0.6080578", "0.6050192", "0.60484415", "0.6037115", "0.6036971", "0.60212696", "0.6006391", "0.60005265", "0.59710896", "0.5968193", "0.59611416", "0.59122574", "0.58942634", "0.5865014", "0.5854848", "0.58447474", "0.58399796", "0.583928", "0.58341986", "0.5832971", "0.58268756", "0.58183545", "0.5816111", "0.5810455", "0.5802502", "0.5796844", "0.5796009", "0.57942253", "0.57809097", "0.5775266", "0.5773351", "0.57664436", "0.5765415", "0.5764328", "0.5756845", "0.5753326", "0.5751881", "0.57516944", "0.57392144", "0.5738406", "0.5737003", "0.5715072", "0.5714138", "0.57095915", "0.57095176", "0.56969965", "0.56962997", "0.5692232", "0.5685167", "0.5684808", "0.5683443", "0.5682073", "0.5681592", "0.568025", "0.56788397", "0.5676844", "0.5676723", "0.56760776", "0.5674109", "0.5672178", "0.5669516", "0.56666577", "0.56661975", "0.5663161", "0.5661711", "0.5661356", "0.565632", "0.56522346", "0.565071", "0.565064", "0.56474686", "0.5640053", "0.56395", "0.5639219", "0.5631095", "0.5631095", "0.5630604", "0.5624159", "0.562044", "0.56158066", "0.5606843", "0.5603468" ]
0.0
-1
iterate through each user, ignoring their UID
public void collectPhoneNumbers1(Map<String,Object> VerifiedParents) { for (Map.Entry<String, Object> entry : VerifiedParents.entrySet()){ //Get user map Map singleUser = (Map) entry.getValue(); //Get phone field and append to list phoneNumbers.add((String) singleUser.get("email")); } // Toast.makeText(getApplicationContext(), "It is running", // Toast.LENGTH_SHORT).show(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Iterator getUserIDs()\n {\n ArrayList temp = new ArrayList();\n \n for (int i = 0; i != ids.size(); i++)\n {\n if (ids.get(i) instanceof String)\n {\n temp.add(ids.get(i));\n }\n }\n \n return temp.iterator();\n }", "@Override\r\n public Iterator<User> iterator() {\r\n return user.iterator();\r\n }", "Iterable<User> getAllUsers();", "private void readUsers(String filter) {\n Filter userFilter = Filter.createORFilter(\n Filter.createSubAnyFilter(\"cn\", filter),\n Filter.createSubAnyFilter(\"sn\", filter),\n Filter.createSubAnyFilter(\"givenname\", filter)\n );\n\n SearchResult searchResult = OpenLDAP.searchUser(userFilter);\n for (int i = 0; i < searchResult.getEntryCount(); i++) {\n SearchResultEntry entry = searchResult.getSearchEntries().get(i);\n User user = new User();\n user.setDistinguishedName(entry.getDN());\n user.setUsername(entry.getAttributeValue(\"cn\"));\n user.setFirstname(entry.getAttributeValue(\"givenname\"));\n user.setLastname(entry.getAttributeValue(\"sn\"));\n user.setEmail(entry.getAttributeValue(\"mail\"));\n user.setMobile(entry.getAttributeValue(\"mobile\"));\n getUsers().put(user.getUsername(), user);\n }\n }", "public void printAllUsers() {\n\t\tfor (User u : getUserSet()) {\n\t\t\tSystem.out.println(u);\n\t\t}\n\t}", "private void getAllUsers(){\n\t\t\n\t\tSystem.out.println(\"Retrieving Social Graph Data from tibbr...\"); \n\t\tDefaultHttpClient httpClient = new DefaultHttpClient();\n\n\t\tString params = \"?sort=firstNameAsc&fields=name,jive.username,-resources&count=5000&startIndex=0\"; \n\t\tHttpGet getRequest = new HttpGet(urlBase+\"/api/core/v3/people/@all\"+params);\n\t\t\n\n\t\t\t \n\t\tgetRequest.setHeader(\"Authorization\", \"Basic \" + this.auth);\n\t\t\n\t\t\t\n\t\ttry {\n\t\t\tHttpResponse response = httpClient.execute(getRequest);\n\t\t\tString jsonOut = readStream(response.getEntity().getContent());\n\t\t // Remove throwline if present\n\t\t\tjsonOut = removeThrowLine(jsonOut);\n\t\t getAllUserElements(jsonOut);\n\t\t \n\t \n\t\t} catch (ClientProtocolException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\t\n\t}", "public Iterator getUserAttributes()\n {\n ArrayList temp = new ArrayList();\n \n for (int i = 0; i != ids.size(); i++)\n {\n if (ids.get(i) instanceof PGPUserAttributeSubpacketVector)\n {\n temp.add(ids.get(i));\n }\n }\n \n return temp.iterator();\n }", "@Override\r\n\tpublic void getAllUser() {\n\t\tSystem.out.println(users);\r\n\t\t\r\n\t}", "public static ArrayList<User> findAllUsers() {\n\n User targetUser = new User();\n IdentityMap<User> userIdentityMap = IdentityMap.getInstance(targetUser);\n\n String findAllUsers = \"SELECT * FROM public.member where type = 0\";\n PreparedStatement stmt = DBConnection.prepare(findAllUsers);\n ArrayList<User> userList = new ArrayList<User>();\n\n try {\n ResultSet rs = stmt.executeQuery();\n\n while(rs.next()) {\n User user = load(rs);\n\n targetUser = userIdentityMap.get(user.getId());\n if (targetUser == null) {\n userList.add(user);\n userIdentityMap.put(user.getId(), user);\n } else {\n userList.add(targetUser);\n }\n }\n DBConnection.close(stmt);\n rs.close();\n\n } catch (SQLException e) {\n System.out.println(\"Exception!\");\n e.printStackTrace();\n }\n return userList;\n }", "@Override\r\n\tpublic List<Map<String, Object>> findAllUser() {\n\t\treturn userMapper.findAllUser();\r\n\t}", "@Override\r\n\tpublic List<User> users() {\r\n\t\tList<User> ris = new ArrayList<>();\r\n\t\tList< Map <String,String>> maps = getAll(SELECT_USERS);\r\n\t\tfor (Map<String, String> map : maps) {\r\n\t\t\tris.add(IMappable.fromMap(User.class, map));\r\n\t\t}\r\n\t\treturn ris;\r\n\t}", "private void notifyAllUnlockedUsers() {\n LinkedList<Integer> users = new LinkedList<>();\r\n synchronized (mLock) {\r\n for (Map.Entry<Integer, Boolean> entry : mUserUnlockedStatus.entrySet()) {\r\n if (entry.getValue()) {\r\n users.add(entry.getKey());\r\n }\r\n }\r\n }\r\n if (DBG) {\r\n Slog.d(TAG, \"notifyAllUnlockedUsers:\" + users);\r\n }\r\n for (Integer i : users) {\r\n sendSetUserLockStatusBinderCall(i, true);\r\n }\r\n }", "@Override\r\n public List<User> userfindAll() {\n return userMapper.userfindAll();\r\n }", "public void getAllUsers() {\n\t\t\n\t}", "@Override\n\tpublic Set<Long> getAllUserId() {\n\t\tfinal Set<Long> allUserIds = new HashSet<>();\n\t\tfinal Object[][] result = SQL.select(SQLs.USER_SELECT_ID_ONLY);\n\t\tif (null != result && result.length > 0) {\n\t\t\tfor (int i = 0; i < result.length; i++) {\n\t\t\t\tif (null != result[i]) {\n\t\t\t\t\tallUserIds.add((Long) result[i][0]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn allUserIds;\n\t}", "@Override\n\tpublic List<Object> getAllUsers() {\n\t\tList<Object> usersList = new ArrayList<Object>();\n\t\tList<TestUser> users = dao.getAll();\n\t\tSystem.out.println(dao.exists(5));\n\t\tfor(TestUser user : users){\n\t\t\tMap<String,Object> m = new HashMap<String,Object>();\n\t\t\tm.put(\"id\", user.getId());\n\t\t\tm.put(\"name\", user.getUsername());\n\t\t\tm.put(\"pwd\", user.getPassword());\n\t\t\tJSONObject j = new JSONObject(m);\n\t\t\tusersList.add(j);\n\t\t}\n\t\treturn usersList;\n\t}", "@Override\n\tpublic ArrayList<user> getAllUser() {\n\t\treturn null;\n\t}", "protected void getUserList() {\n\t\tmyDatabaseHandler db = new myDatabaseHandler();\n\t\tStatement statement = db.getStatement();\n\t\t// db.createUserTable(statement);\n\t\tuserList = new ArrayList();\n\t\tsearchedUserList = new ArrayList();\n\t\tsearchedUserList = db.getUserList(statement);\n\t\tuserList = db.getUserList(statement);\n\t\tusers.removeAllElements();\n\t\tfor (User u : userList) {\n\t\t\tusers.addElement(u.getName());\n\t\t}\n\t}", "public void userListStart() {\n\t\tfor (int i = 0; i < userServices.getAllUsers().length; i++) {\n\t\t\tuserList.add(userServices.getAllUsers()[i]);\n\t\t}\n\t}", "public void ShowAllUsers()\r\n {\r\n userList.forEach((s) -> { System.out.println(s); });\r\n }", "@Override\n\tpublic int findAllUser()throws Exception {\n\t\treturn userMapper.findAllUser();\n\t}", "public void getUsers() {\n CollectionReference ref = FirebaseFirestore.getInstance().collection(\"users\");\n listOfUsers = new ArrayList<>();\n\n ref.get().addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\n @Override\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\n if(task.isSuccessful()) {\n for(DocumentSnapshot doc: task.getResult()) {\n listOfUsers.add(doc.toObject(User.class).getUserID());\n }\n listOfUsers.remove(user.getUserID());\n }\n }\n });\n }", "@VisibleForTesting\n void updateUsers(List<String> userUnids) {\n final String METHOD = \"updateUsers\";\n LOGGER.entering(CLASS_NAME, METHOD);\n\n long timeStart = System.currentTimeMillis();\n NotesView serverAccessView = null;\n try {\n String userSelectionFormula = connectorSession.getUserSelectionFormula();\n String userNameFormula = connectorSession.getUserNameFormula();\n LOGGER.log(Level.FINEST,\n \"User selection formula is: {0}\\nUser name formula is: {1}\",\n new Object[] { userSelectionFormula, userNameFormula });\n serverAccessView = directoryDatabase.getView(\n NCCONST.DIRVIEW_SERVERACCESS);\n serverAccessView.refresh();\n\n int count = 0;\n for (String unid : userUnids) {\n NotesDocument personDoc = getDocumentByUnid(directoryDatabase, unid);\n if (personDoc == null) {\n LOGGER.log(Level.FINEST, \"Person document [{0}] is not found\", unid);\n } else {\n String notesName = null;\n try {\n if (count++ % NCCONST.GC_INVOCATION_INTERVAL == 0) {\n Util.invokeGC();\n }\n if (!personDoc.getItemValueString(NCCONST.ITMFORM).contentEquals(\n NCCONST.DIRFORM_PERSON)) {\n continue;\n }\n // The first value in this field is the Notes name; other\n // names may be present.\n Vector nameVector = personDoc.getItemValue(NCCONST.PITM_FULLNAME);\n if (nameVector.size() == 0) {\n continue;\n }\n String storedName = nameVector.firstElement().toString();\n notesName = notesSession.createName(storedName)\n .getCanonical().toLowerCase();\n LOGGER.log(Level.FINEST,\n \"Processing user: {0}; name from directory was: {1}\",\n new Object[] { notesName, storedName});\n // Get their PVI\n String pvi = evaluatePvi(userNameFormula, personDoc);\n if (0 == pvi.length()) {\n LOGGER.log(Level.WARNING,\n \"Could not evaluate PVI username for: {0}\", notesName);\n continue;\n }\n LOGGER.log(Level.FINEST, \"PVI: {0}\", pvi);\n // Does this person match the selection formula?\n boolean selected = checkPersonSelectionFormula(userSelectionFormula,\n personDoc);\n if (!selected) {\n LOGGER.log(Level.FINEST, \"User not selected: {0}\", notesName);\n continue;\n }\n updateUser(personDoc, notesName, pvi, serverAccessView);\n // Log user info\n if (LOGGER.isLoggable(Level.FINE)) {\n User user = getUser(\"gsaname\", pvi);\n LOGGER.log(Level.FINE, \"All groups for {0}: {1}\",\n new Object[] { user, user.getGroups() });\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Failed to update user cache\"\n + (notesName != null ? \" for \" + notesName : \"\"), e);\n } finally {\n Util.recycle(personDoc);\n }\n }\n }\n } catch (Exception e) {\n LOGGER.log(Level.WARNING, \"Error processing users\", e);\n } finally {\n Util.recycle(serverAccessView);\n LOGGER.exiting(CLASS_NAME, METHOD);\n }\n long timeFinish = System.currentTimeMillis();\n LOGGER.log(Level.FINE, \"Update users: {0}ms\", timeFinish - timeStart);\n }", "@Override\n\tpublic List<User> findAllUser() {\n\t\treturn mapper.findAllUser();\n\t}", "@Override\n\tpublic Iterable<User> getAllUser() {\n\t\treturn userRepository.findAll();\n\t}", "@Override\n\tpublic List<User> getAllUsers(int userId) {\n\t\tList<User> users = new ArrayList<>();\n\t\tList<User> userList = new ArrayList<>();\n\t\t\n\t\tusers = uDAO.getUsers();\n\t\t\n\t\tfor (User u : users) {\n\t\t\tif (userId != u.getId())\n\t\t\t{\n\t\t\t\tuserList.add(u);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn userList;\n\t}", "public List<Integer> getAllUserId() {\n return getAllUserId(getApplicationContext());\n }", "public ArrayList<UserDetail> gettingAllAvailableUsers() throws Exception;", "public Multimap<String, String> getUsers() throws IOException {\n ImmutableMultimap.Builder<String, String> users = ImmutableSetMultimap.builder();\n for (ChildData child : mCache.getCurrentData()) {\n String nodeName = Iterables.getLast(Splitter.on('/').split(child.getPath()));\n String[] split = nodeName.split(ZooKeeperUtils.ZK_NODE_NAME_SEPARATOR);\n if (split.length != 2) {\n LOG.error(\"Ignoring invalid ZooKeeper table user node: {}.\", nodeName);\n continue;\n }\n final String userID = URLDecoder.decode(split[0], Charsets.UTF_8.displayName());\n final String layoutID = URLDecoder.decode(split[1], Charsets.UTF_8.displayName());\n\n users.put(userID, layoutID);\n }\n return users.build();\n }", "@Override\n\tpublic ArrayList<Utente> getUsers() {\n\t\tDB db = getDB();\n\t\tArrayList<Utente> usersList = new ArrayList<>();\n\t\tMap<Long, UtenteBase> users = db.getTreeMap(\"users\");\n\t\tfor(Map.Entry<Long, UtenteBase> user : users.entrySet())\n\t\t\tif(user.getValue() instanceof Utente)\n\t\t\t\tusersList.add((Utente) user.getValue());\n\t\treturn usersList;\n\t}", "private void refreshUsers(int i) {\n UserInfo userInfo;\n if (i != -10000) {\n this.mForcePictureLoadForUserId.put(i, true);\n }\n if (!this.mPauseRefreshUsers) {\n boolean z = this.mForcePictureLoadForUserId.get(-1);\n SparseArray sparseArray = new SparseArray(this.mUsers.size());\n int size = this.mUsers.size();\n for (int i2 = 0; i2 < size; i2++) {\n UserRecord userRecord = this.mUsers.get(i2);\n if (!(userRecord == null || userRecord.picture == null || (userInfo = userRecord.info) == null || z || this.mForcePictureLoadForUserId.get(userInfo.id))) {\n sparseArray.put(userRecord.info.id, userRecord.picture);\n }\n }\n this.mForcePictureLoadForUserId.clear();\n final boolean z2 = this.mAddUsersWhenLocked;\n new AsyncTask<SparseArray<Bitmap>, Void, ArrayList<UserRecord>>() {\n /* class com.android.systemui.statusbar.policy.UserSwitcherController.AnonymousClass2 */\n\n /* access modifiers changed from: protected */\n public ArrayList<UserRecord> doInBackground(SparseArray<Bitmap>... sparseArrayArr) {\n boolean z = false;\n SparseArray<Bitmap> sparseArray = sparseArrayArr[0];\n List<UserInfo> users = UserSwitcherController.this.mUserManager.getUsers(true);\n UserRecord userRecord = null;\n if (users == null) {\n return null;\n }\n ArrayList<UserRecord> arrayList = new ArrayList<>(users.size());\n int currentUser = ActivityManager.getCurrentUser();\n boolean z2 = UserSwitcherController.this.mUserManager.getUserSwitchability(UserHandle.of(ActivityManager.getCurrentUser())) == 0;\n UserInfo userInfo = null;\n for (UserInfo userInfo2 : users) {\n boolean z3 = currentUser == userInfo2.id;\n UserInfo userInfo3 = z3 ? userInfo2 : userInfo;\n boolean z4 = z2 || z3;\n if (userInfo2.isEnabled()) {\n if (userInfo2.isGuest()) {\n userRecord = new UserRecord(userInfo2, null, true, z3, false, false, z2);\n } else if (userInfo2.supportsSwitchToByUser()) {\n Bitmap bitmap = sparseArray.get(userInfo2.id);\n if (bitmap == null && (bitmap = UserSwitcherController.this.mUserManager.getUserIcon(userInfo2.id)) != null) {\n int dimensionPixelSize = UserSwitcherController.this.mContext.getResources().getDimensionPixelSize(C0012R$dimen.max_avatar_size);\n bitmap = Bitmap.createScaledBitmap(bitmap, dimensionPixelSize, dimensionPixelSize, true);\n }\n arrayList.add(new UserRecord(userInfo2, bitmap, false, z3, false, false, z4));\n }\n }\n userInfo = userInfo3;\n }\n if (arrayList.size() > 1 || userRecord != null) {\n Prefs.putBoolean(UserSwitcherController.this.mContext, \"HasSeenMultiUser\", true);\n }\n boolean z5 = !UserSwitcherController.this.mUserManager.hasBaseUserRestriction(\"no_add_user\", UserHandle.SYSTEM);\n boolean z6 = userInfo != null && (userInfo.isAdmin() || userInfo.id == 0) && z5;\n boolean z7 = z5 && z2;\n boolean z8 = (z6 || z7) && userRecord == null;\n if ((z6 || z7) && UserSwitcherController.this.mUserManager.canAddMoreUsers()) {\n z = true;\n }\n boolean z9 = !z2;\n if (userRecord != null) {\n arrayList.add(userRecord);\n } else if (z8) {\n UserRecord userRecord2 = new UserRecord(null, null, true, false, false, z9, z2);\n UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord2);\n arrayList.add(userRecord2);\n }\n if (z) {\n UserRecord userRecord3 = new UserRecord(null, null, false, false, true, z9, z2);\n UserSwitcherController.this.checkIfAddUserDisallowedByAdminOnly(userRecord3);\n arrayList.add(userRecord3);\n }\n return arrayList;\n }\n\n /* access modifiers changed from: protected */\n public void onPostExecute(ArrayList<UserRecord> arrayList) {\n if (arrayList != null) {\n UserSwitcherController.this.mUsers = arrayList;\n UserSwitcherController.this.notifyAdapters();\n }\n }\n }.execute(sparseArray);\n }\n }", "public List<User> getAllUsers() {\n\n\t\tList<User> result = new ArrayList<User>();\n\n\t\ttry {\n\t\t\tjava.sql.PreparedStatement ps = ((org.inria.jdbc.Connection) db).prepareStatement(TCell_QEP_IDs.QEP.EP_getAllUsers);\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\tString query = \"SELECT IdGlobal, TCELLIP, PUBLICKEY, TCELLPORT from USER\";\n\t\t\tSystem.out.println(\"Executing query : \" + query);\t\t\t\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tint UserGID =rs.getInt(1);\n\t\t\t\tString TCellIP = rs.getString(2);\n\t\t\t\t\n\t\t\t\t//convert Blob to String\n\t\t\t\tBlob myPubKeyBlob = rs.getBlob(3);\n\t\t\t\tbyte[] bPubKey = myPubKeyBlob.getBytes(1, (int) myPubKeyBlob.length());\n\t\t\t\tString pubKey = new String(bPubKey);\n\t\t\t\t\n\t\t\t\tint port = rs.getInt(4);\n\t\t\t\tUser user = new User(UserGID,TCellIP, port, pubKey);\n\t\t\t\tresult.add(user);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\t// Uncomment when the close function will be implemented\n\t\t\t// attemptToClose(ps);\n\t\t\t\n\t\t}\n\n\t\treturn result;\n\n\t}", "private void fetchUsers(){\n for(Chat chat : chatArrayList){\n if(chat.getUserOne().equals(profileRemoteDAO.getUserId()))\n profileRemoteDAO.getProfileRequestHandler(chat.getUserTwo());\n else\n profileRemoteDAO.getProfileRequestHandler(chat.getUserOne());\n }\n customArrayAdapter.notifyDataSetChanged();\n }", "public static Iterable<Entity> getAllUsers() {\r\n Iterable<Entity> entities = Util.listEntities(\"User\", null, null);\r\n return entities;\r\n }", "@Override\n public Set<User> usersThatFollow(String usernname) {\n return userDataMapper.getUsersThatFollow(getUser(usernname).getId());\n }", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "java.util.List<com.rpg.framework.database.Protocol.User> \n getUsersList();", "@Override\r\n\tpublic List listAllUser() {\n\t\treturn userDAO.getUserinfoList();\r\n\t}", "public synchronized Set<User> getUsers() {\r\n Set<User> userSet = new HashSet<User>(userSetSize); \r\n userSet.addAll(this.email2user.values());\r\n return userSet;\r\n }", "public static String[] getAllUsers(Context context) {\r\n\r\n\t\tUri contentUri = Uri.withAppendedPath(EquestProvider.CONTENT_URI,\r\n\t\t\t\tEquestDbHelper.USER_TABLE);\r\n\t\tCursor cursor = context.getContentResolver().query(contentUri,\r\n\t\t\t\tnew String[] { EquestDbHelper.USERID }, null, null, null);\r\n\t\tint x = cursor.getCount();\r\n\t\tif (x == 0)\r\n\t\t\treturn new String[] { \"None Found\" };\r\n\t\tString Users[] = new String[x];\r\n\t\tint i = 0;\r\n\t\tif (cursor.moveToFirst()) {\r\n\t\t\tdo {\r\n\t\t\t\tUsers[i] = cursor.getString(cursor\r\n\t\t\t\t\t\t.getColumnIndex(EquestDbHelper.USERID));\r\n\t\t\t\ti++;\r\n\t\t\t} while (cursor.moveToNext());\r\n\t\t}\r\n\r\n\t\treturn Users;\r\n\t}", "@Override\n public Iterator<BlueUser> iterator() {\n return new AdaptedIterator<User, BlueUser>(User.getAll()) {\n @Override\n protected BlueUser adapt(User item) {\n return new UserImpl(organization, item, UserContainerImpl.this);\n }\n };\n }", "@Override\r\n\tpublic List<User> getAllUser() {\n\t\tList<User> listStudents = new ArrayList<User>();\r\n\t\tlistStudents = userReposotory.findAll();\r\n\t\treturn listStudents;\r\n\t}", "@Override\n\tpublic List<User> get() {\n\t\tList<User> result = new ArrayList<>();\n\t\tfor (String key : userlist.keySet()) {\n\t\t\tUser user = userlist.get(key);\n\t\t\tint dni = user.getDni();\n\t\t\tString name = user.getName();\n\t\t\tString secondName = user.getSecondName();\n\t\t\tString username = user.getUser();\n\t\t\tString pass = user.getPass();\n\t\t\tresult.add(new User(dni, name, secondName, username, pass));\n\t\t}\n\t\treturn result;\n\t}", "public void dumpUsers() {\r\n\t\tuserList.removeAll(userList);\r\n\t\ttry {\r\n\t\t\texportUserList();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public List getAllUsers();", "public List<TestUser> getAllUsers(){\n\t\tSystem.out.println(\"getting list of users..\");\n\t\tList<TestUser> user=new ArrayList<TestUser>();\n\t\tuserRepositary.findAll().forEach(user::add);\n\t\t//System.out.println(\"data: \"+userRepositary.FindById(\"ff80818163731aea0163731b190c0000\"));\n\t\treturn user;\n\t}", "@Override\n\tpublic List<User> getAllUser() {\n\t\tList<User> users = dao.searchAllUser();\n\t\treturn users;\n\t}", "abstract ArrayList<User> getAllUsers();", "private void updateAllUsers() {\n for(IUser user : this.bot.getClient().getUsers()) {\n this.updateUserStatus(user);\n }\n saveJSON();\n }", "@Override\n\tpublic user getUser(int i) {\n\t\treturn userdb.get(i); \n\t}", "public void updateUser() {\r\n users.clear();\r\n RestaurantHelper.getCollectionFromARestaurant(currentRest.getPlaceId(), \"luncherId\").addOnCompleteListener(new OnCompleteListener<QuerySnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<QuerySnapshot> task) {\r\n for (DocumentSnapshot docSnap : task.getResult()) {\r\n UserHelper.getUser(docSnap.getId()).addOnCompleteListener(new OnCompleteListener<DocumentSnapshot>() {\r\n @Override\r\n public void onComplete(@NonNull Task<DocumentSnapshot> task) {\r\n if(!task.getResult().getId().equals(currentUser.getUid())){\r\n users.add(task.getResult().toObject(User.class));\r\n mCoworkerAdapter.notifyDataSetChanged();\r\n }\r\n }\r\n });\r\n }\r\n }\r\n }).addOnFailureListener(this.onFailureListener());\r\n }", "public synchronized List<User> getAllUsers() {\r\n\t\treturn new ArrayList<User>(mapping.values());\r\n\t}", "@Override\n\tpublic List<ERSUser> getAllUsers() {\n\t\treturn userDao.selectAllUsers();\n\t}", "public void selectAllUser() {\n String sql = \"SELECT id, user, publickey, password, salt FROM users\";\n\n try (Connection conn = this.connect();\n Statement stmt = conn.createStatement();\n ResultSet rs = stmt.executeQuery(sql)) {\n\n // loop through the result set\n while (rs.next()) {\n System.out.println(rs.getInt(\"id\") + \"\\t\" + rs.getString(\"user\") + \"\\t\" + rs.getDouble(\"publickey\")\n + \"\\t\" + rs.getString(\"password\") + \"\\t\" + rs.getString(\"salt\"));\n }\n } catch (SQLException e) {\n System.out.println(e.getMessage());\n }\n }", "@Override\r\n public List<User> darUsers() {\r\n Query q = em.createQuery(\"SELECT u FROM UserEntity u\");\r\n List<UserEntity> l = q.getResultList();\r\n List<User> ltr = new ArrayList();\r\n for(UserEntity te: l)\r\n {\r\n ltr.add(TransformadorEntityDto.getInstance().entityADtoUser(te));\r\n }\r\n return ltr;\r\n }", "public Iterable<UserWithProfile> getUserUnmatched(Long userId)\n\t{\n\t\tUser user = userRepository.findUserById(userId);\n\t\tArrayList<User> liked = new ArrayList<User>(user.getLiked());\n\t\tArrayList<User> disliked = new ArrayList<User>(user.getDisliked());\n\t\t\n\t\t//this is the fix for heroku...\n\t\tif (liked.size() == 0)\n\t\t{\n\t\t\tliked.add(userService.getCurrentUser());\n\t\t}\n\t\tif (disliked.size() == 0)\n\t\t{\n\t\t\tdisliked.add(userService.getCurrentUser());\n\t\t}\n\t\t\n\t\tIterable<User> userUnmatched = userRepository.findUserUnmatched(user.getId(), liked, disliked);\n\t\t\n\t\tLOG.info(\"user {} fetches unmatched list\", userId);\n\t\t\n\t\treturn this.createUserWithProfiles(userUnmatched);\n\t}", "public ArrayList<String> getAllUsers() {\n\t\tSystem.out.println(\"Looking up all users...\");\n\t\treturn new ArrayList<String>(users.keySet());\t\n\t}", "@Override\n\tpublic List<User> getAllItem() {\n\t\treturn userRepository.findAll();\n\t}", "@Override\r\n\tpublic List<User> queryAllUsers() {\n\t\tList<User> users = userMapper.queryAllUsers();\r\n\t\treturn users;\r\n\t}", "@Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n for (DataSnapshot uniqueUserSnapshot : dataSnapshot.getChildren()) {\n User currentUser = uniqueUserSnapshot.getValue(User.class);\n userArraylist.add(currentUser);\n userName.add(currentUser.name);\n }\n\n }", "private void getAllUserElements(String jsonData){\n\t \n\t\t\n\t\t\n\t\t\t\n\t\n\t\t\n\t\t\ttry {\n\t\t\t\tJSONObject obj = new JSONObject(jsonData);\n\n\t\t\t\tJSONArray arr = obj.getJSONArray(\"list\");\n\t\t\t\t\n\t\t\t\tmyUsers = new TibbrUser[arr.length()];\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < arr.length(); i++)\n\t\t\t\t{\n\t\t\t\t String ID = arr.getJSONObject(i).getString(\"id\");\n\t\t\t\t String login = arr.getJSONObject(i).getJSONObject(\"jive\").getString(\"username\");\n\t\t\t\t myUsers[i] = new TibbrUser (login, ID); \n\t\t\t\t}\n\t\t\t} catch (JSONException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\n\t \t \n\t}", "protected void validatePartnerLinkUsers() {\r\n for (IAePartnerLinkOperationUser user : mUsers) {\r\n validatePartnerLinkUser(user);\r\n }\r\n }", "@Override\n public void gotUsers(ArrayList<User> usersList) {\n for(int i = 0; i < usersList.size(); i++) {\n User currentUser = usersList.get(i);\n if(currentUser.getUser_name().equals(username) && currentUser.getUser_password()\n .equals(password)) {\n disableButton.setEnabled(true);\n Intent intent = new Intent(NewaccountActivity.this,\n OverviewActivity.class);\n intent.putExtra(\"loggedInUser\", currentUser);\n startActivity(intent);\n }\n }\n }", "public List<Utilizator> listUsers();", "public List<User> getAllUsers();", "@Override\n\tpublic List<UserWithoutPassword> getUserList() {\n\t\treturn userDao.findAll();\n\t}", "@Override\n public List<LdapUser> getAllLdapUsers() throws NamingException {\n\n LOGGER.info(\"Getting all Ldap Users Service implementation\");\n Hashtable<String, String> env = new Hashtable<>();\n SearchControls searchCtrls = new SearchControls();\n searchCtrls.setSearchScope(SearchControls.SUBTREE_SCOPE);\n env.put(Context.INITIAL_CONTEXT_FACTORY,\n \"com.sun.jndi.ldap.LdapCtxFactory\");\n env.put(Context.PROVIDER_URL, ldapUrl);\n env.put(Context.REFERRAL, \"follow\");\n env.put(Context.SECURITY_AUTHENTICATION, \"simple\");\n env.put(Context.SECURITY_PRINCIPAL, ldapUsername);\n env.put(Context.SECURITY_CREDENTIALS, ldapPassword);\n DirContext context = new InitialDirContext(env);\n String filter = ldapFilter;\n String searchBase = ldapSearchBase;\n NamingEnumeration answer = context.search(searchBase, filter, searchCtrls);\n List<LdapUser> userList = null;\n userList = new ArrayList<>();\n LdapUser user = null;\n while (answer.hasMoreElements()) {\n SearchResult sr = (SearchResult) answer.next();\n user = new LdapUser();\n user.setName(sr.getName());\n userList.add(user);\n Attributes attrs = sr.getAttributes();\n if (attrs != null) {\n this.ifAttrsNotNull(user, attrs);\n }\n }\n return userList;\n }", "public AllUsers(int datacenterId) {\r\n this.datacenterId = datacenterId;\r\n users= new ArrayList<>();\r\n }", "List<User> fetchAllUSers();", "com.rpg.framework.database.Protocol.User getUsers(int index);", "com.rpg.framework.database.Protocol.User getUsers(int index);", "public List<Map<String, Object>> getAllUsers() {\n Result<Record2<Long, String>> result = getDbContext().select(USER.USER_ID, USER.USER_NAME).from(USER).fetch();\n return result.intoMaps();\n }", "@Override\n\tpublic Iterable<com.example.demo.model.User> getAllUsers() {\n\t\treturn userRepository.findAll();\n\t}", "@Override\r\n\tpublic List<User> getUserList() throws MyUserException {\n\t\treturn userDao.getUserList();\r\n\t}", "public List<User> getUsers(Boolean enabled, Date startDate, Date endDate, int offset, int length) throws UserManagementException;", "public List<User> listAll() throws Exception;", "public List<User> getAllUser() {\n\t\treturn null;\r\n\t}", "protected void refreshAllUsers() {}", "public User getUser(String uid) {\n Enumeration<Object> enumeration = elements();\n while(enumeration.hasMoreElements()){\n User user = (User)enumeration.nextElement();\n if(uid.equals(user.getUid().toString())) {\n return user;\n }\n }\n throw new NoSuchElementException();\n }", "@Override\r\n\tpublic List<AccountDTO> getAllUser() {\n\t\treturn accountDao.getAll();\r\n\t}", "private void getManagedUsers(Request request) {\n // LUA uuid/ManagedBy Id\n String uuid = (String) request.get(JsonKey.ID);\n\n boolean withTokens = Boolean.valueOf((String) request.get(JsonKey.WITH_TOKENS));\n\n Map<String, Object> searchResult =\n userClient.searchManagedUser(\n getActorRef(ActorOperations.USER_SEARCH.getValue()),\n request,\n request.getRequestContext());\n List<Map<String, Object>> userList = (List) searchResult.get(JsonKey.CONTENT);\n\n List<Map<String, Object>> activeUserList = null;\n if (CollectionUtils.isNotEmpty(userList)) {\n activeUserList =\n userList\n .stream()\n .filter(o -> !BooleanUtils.isTrue((Boolean) o.get(JsonKey.IS_DELETED)))\n .collect(Collectors.toList());\n }\n if (withTokens && CollectionUtils.isNotEmpty(activeUserList)) {\n // Fetch encrypted token from admin utils\n Map<String, Object> encryptedTokenList =\n userService.fetchEncryptedToken(uuid, activeUserList, request.getRequestContext());\n // encrypted token for each managedUser in respList\n userService.appendEncryptedToken(\n encryptedTokenList, activeUserList, request.getRequestContext());\n }\n Map<String, Object> responseMap = new HashMap<>();\n if (CollectionUtils.isNotEmpty(activeUserList)) {\n responseMap.put(JsonKey.CONTENT, activeUserList);\n responseMap.put(JsonKey.COUNT, activeUserList.size());\n } else {\n responseMap.put(JsonKey.CONTENT, new ArrayList<>());\n responseMap.put(JsonKey.COUNT, 0);\n }\n Response response = new Response();\n response.put(JsonKey.RESPONSE, responseMap);\n sender().tell(response, self());\n }", "@Override\r\n\tpublic List<User> getUserList(Map map) {\n\t\treturn userDao.findUser(map);\r\n\t}", "public List<GUID> getUsers() throws StationException {\n\n\t\tif (userList.isEmpty())\n\t\t\tthrow new StationException(\"User list is empty.\");\n\n\t\treturn userList;\n\t}", "java.util.List<com.heroiclabs.nakama.api.User> \n getUsersList();", "@Override\n public List<LdapUser> getAllLdapUsers() throws NamingException {\n\n LOGGER.info(\"Getting all Ldap Users Service implementation\");\n Hashtable<String, String> env = new Hashtable<>();\n SearchControls searchCtrls = new SearchControls();\n searchCtrls.setSearchScope(SearchControls.SUBTREE_SCOPE);\n env.put(Context.INITIAL_CONTEXT_FACTORY,\n \"com.sun.jndi.ldap.LdapCtxFactory\");\n env.put(Context.PROVIDER_URL, ldapUrl);\n env.put(Context.REFERRAL, \"follow\");\n env.put(Context.SECURITY_AUTHENTICATION, \"simple\");\n env.put(Context.SECURITY_PRINCIPAL, ldapUsername);\n env.put(Context.SECURITY_CREDENTIALS, ldapPassword);\n String filter = ldapFilter;\n String searchBase = ldapSearchBase;\n LdapUser user = null;\n List<LdapUser> userList = null;\n DirContext context = new InitialDirContext(env);\n NamingEnumeration answer = context.search(searchBase, filter, searchCtrls);\n userList = new ArrayList<>();\n while (answer.hasMoreElements()) {\n SearchResult sr = (SearchResult) answer.next();\n user = new LdapUser();\n user.setName(sr.getName());\n userList.add(user);\n Attributes attrs = sr.getAttributes();\n if (attrs != null) {\n this.ifAttrsNotNull(user, attrs);\n }\n }\n return userList;\n }", "public void findUsers() throws SQLException {\r\n\t\t// Query to get all users and ids.\r\n\t\t\r\n\t\t// Clear existing list\r\n\t\tusersList.clear();\r\n\t\tuseridsList.clear();\r\n\t\t\r\n\t\t Statement statement = connection.createStatement();\r\n\t statement.setQueryTimeout(30); // set timeout to 30 sec.\r\n\t ResultSet rs = statement.executeQuery(\"select * from users\");\r\n\t while(rs.next())\r\n\t {\r\n\t // read the result set\r\n\t\t\t usersList.add(rs.getString(\"name\"));\r\n\t\t\t useridsList.add(rs.getInt(\"id\"));\r\n\t }\r\n\t\t// For loop to add each result to list.\r\n\r\n\t}", "@Override\r\n\tpublic List<?> getAllUser() {\n\t\treturn userQueryRepositoryImpl.getAllUser();\r\n\t}", "@Override\n public BlueUserContainer getUsers() {\n return users;\n }", "@Override\n\tpublic List<User> getAllUser() {\n\t\treturn uDao.getAllUser();\n\t}", "public synchronized void checkUsers() {\n\t\tHttpSession temp;\n\t\tDate now = new Date();\n\t\tString tempUser;\n\t\tEnumeration userList = userSessions.keys();\n\t\twhile (userList.hasMoreElements()) {\n\t\t\ttempUser = (String) userList.nextElement();\n\t\t\ttry {\n\t\t\t\ttemp = (HttpSession) userSessions.get(tempUser);\n\t\t\t\tif ((now.getTime() - temp.getLastAccessedTime()) > 60000)\n\t\t\t\t\tuserSessions.remove(tempUser);\n\t\t\t} catch (Exception e) {\n\t\t\t\tuserSessions.remove(tempUser);\n\t\t\t}\n\t\t}\n\t}", "List<KingdomUser> getAllUsers();", "private void clearUser() {\n user_ = emptyProtobufList();\n }", "private synchronized int generateUserID(){\r\n\t\tint i;\r\n\t\tfor(i = 1; users.containsKey(i);i++);\r\n\t\treturn i;\r\n\t}", "List<User> getAllUsers();", "List<User> getAllUsers();", "@Override\r\n\tpublic void viewAllUsers() {\n\t\tList<User> allUsers = new ArrayList<User>();\r\n\t\tallUsers = udao.getAllUsers();\r\n\t\t\r\n\t\tSystem.out.println(\"ALL USERS:\");\r\n\t\tSystem.out.println(\"ID\\tUsername\\tName\");\r\n\t\t\r\n\t\tfor(int i = 0; i < allUsers.size(); i++) {\r\n\t\t\tUser tempUser = allUsers.get(i);\r\n\t\t\tSystem.out.println(tempUser.getUserID() + \"\\t\" + tempUser.getUsername() + \"\\t\"\r\n\t\t\t\t\t+ tempUser.getFirstName() + \" \" + tempUser.getLastName());\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic List<User> findAllUser() {\n\t\treturn userDao.findAllUser();\n\t}", "private static void multipleUsersExample()\t{\n\t}", "public String getAllUsers() {\n\t\tString s = \"\";\n\t\tSet<String> ids = usersList.keySet();\n\t\tfor (String userId : ids) {\n\t\t\ts += \"<b>UserId :</b> \" + userId + \"&nbsp<b> UserName : </b>\" + usersList.get(userId).getName()\n\t\t\t\t\t+ \"<b>&nbsp Profession :</b> \" + usersList.get(userId).getProfession() + \"<br><br>\";\n\t\t}\n\t\treturn s;\n\n\t}", "private static HashMap<String, String> getUsers(String filename) {\n\t\t// Use hashmap to store the user list, the key is user name and the value is UUID\n\t\tHashMap<String, String> mapUsers = new HashMap<String, String>();\n\t\t// This will reference one line at a time\n\t\tString lineUser = null;\n\n\t\ttry {\n\t\t\t// Check file exists\n\t\t\tFile userfile = new File(filename);\n\t\t\tif(!userfile.exists() || userfile.isDirectory()) {\n\t\t\t\treturn mapUsers;\n\t\t\t}\n\t\t\t// Open the user file\n\t\t\tFileReader fileReader = new FileReader(filename);\n\t\t\t// User bufferedReader to go through the file\n\t\t\tBufferedReader bufferedReader = new BufferedReader(fileReader);\n\n\t\t\t// Read the file in lines one by one\n\t\t\twhile((lineUser = bufferedReader.readLine()) != null) {\n\t\t\t\tString[] namekey = lineUser.split(\" \"); // Split the name and key\n\t\t\t\tif (namekey.length != 2) { // Validate the data\n\t\t\t\t\tSystem.out.println(\"Invalid line: '\" + lineUser + \"' in '\" + filename + \"'\");\n\t\t\t\t\treturn mapUsers;\n\t\t\t\t}\n\t\t\t\t// Name + Key(UUID)\n\t\t\t\tmapUsers.put(namekey[0], namekey[1]);\n\t\t\t}\n\t\t\t// Always close files.\n\t\t\tbufferedReader.close();\n\t\t}\n\t\tcatch(FileNotFoundException ex) {\n\t\t\tSystem.out.println(\"Unable to open file '\" + filename + \"'\");\n\t\t}\n\t\tcatch(IOException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\tfinally {\n\t\t\treturn mapUsers;\n\t\t}\n\t}", "public Collection<String> getUsers() {\r\n \t\tCollection<String> users = new TreeSet<>();\r\n \t\tusers.addAll(this.dataLayer.getUser());\r\n \r\n \t\treturn users;\r\n \t}" ]
[ "0.6618511", "0.66009635", "0.64288104", "0.63503486", "0.63363755", "0.6319306", "0.6306642", "0.6304372", "0.6247436", "0.62396765", "0.62319523", "0.62319374", "0.6211708", "0.6201397", "0.6186182", "0.61688983", "0.61254823", "0.6100253", "0.6088629", "0.6080578", "0.6050192", "0.60484415", "0.6037115", "0.6036971", "0.60212696", "0.6006391", "0.60005265", "0.59710896", "0.5968193", "0.59611416", "0.59122574", "0.58942634", "0.5865014", "0.5854848", "0.58447474", "0.58399796", "0.583928", "0.58341986", "0.5832971", "0.58268756", "0.58183545", "0.5816111", "0.5810455", "0.5802502", "0.5796844", "0.5796009", "0.57942253", "0.57809097", "0.5775266", "0.5773351", "0.57664436", "0.5765415", "0.5764328", "0.5756845", "0.5753326", "0.5751881", "0.57516944", "0.57392144", "0.5738406", "0.5737003", "0.5715072", "0.5714138", "0.57095915", "0.57095176", "0.56969965", "0.56962997", "0.5692232", "0.5685167", "0.5684808", "0.5683443", "0.5682073", "0.5681592", "0.568025", "0.56788397", "0.5676844", "0.5676723", "0.56760776", "0.5674109", "0.5672178", "0.5669516", "0.56666577", "0.56661975", "0.5663161", "0.5661711", "0.5661356", "0.565632", "0.56522346", "0.565071", "0.565064", "0.56474686", "0.5640053", "0.56395", "0.5639219", "0.5631095", "0.5631095", "0.5630604", "0.5624159", "0.562044", "0.56158066", "0.5606843", "0.5603468" ]
0.0
-1
Interface for a mathematical <a href="
public interface Norm<TypeOfValue> extends Function<TypeOfValue, Double> { /** * Returns this norm of the specified value. * @param value Value. * @return Norm. */ @Override public Double value(TypeOfValue value); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "HtmlPage clickLink();", "public abstract String linkText();", "private Text href() {\n\t\tText href = text();\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn href;\r\n\t}", "String getHref();", "public String getLink();", "String getLink();", "private Hyperlink makeHyperlink(){\n\t\tHyperlink ret = new Hyperlink();\n\t\tret.setId(\"variable\");\n\t\tret.setOnMouseClicked(e -> clickedVariable(ret));\n\t\tvBox.getChildren().add(ret);\n\t\treturn ret;\n\t}", "public Hyperlink(){\n this.href = \"\";\n this.text = new TextSpan(\"\");\n }", "SimpleLink createSimpleLink();", "String nextLink();", "public void linkPressed(String href) {\r\n String[] s = href.split(\":\");\r\n if (s.length >= 2) {\r\n /* Ex: \"toggle:Window lamp\"\r\n this means we should toggle the Window lamp. */\r\n if (s[0].equals(\"toggle\")) {\r\n GenRoomObject o = (GenRoomObject) roomObjects.get(s[1]);\r\n if (o != null) {\r\n toggleRoomObject(o.address, o.byteValue);\r\n }\r\n }\r\n /* Ex: \"on:Window lamp\"\r\n this means we should turn ON the Window lamp. */\r\n else if (s[0].equals(\"on\")) {\r\n GenRoomObject o = (GenRoomObject) roomObjects.get(s[1]);\r\n if (o != null) {\r\n setRoomObject(o.address, o.byteValue ,true);\r\n }\r\n }\r\n /* Ex: \"off:Window lamp\"\r\n this means we should turn OFF the Window lamp. */\r\n else if (s[0].equals(\"off\")) {\r\n GenRoomObject o = (GenRoomObject) roomObjects.get(s[1]);\r\n if (o != null) {\r\n setRoomObject(o.address, o.byteValue, false);\r\n }\r\n }\r\n }\r\n }", "public String getHref() {\n return href;\n }", "public String getHref() {\r\n return href;\r\n }", "public interface LinkClickHandler { void onLinkClicked(GURL url); }", "public SymbolicElement<T> getAnchor();", "private Link link() {\n\r\n\t\tLink link = null;\r\n\r\n\t\tToken tok = lex.getToken();\r\n\r\n\t\t// Expect '<link' (we know it is OK)\r\n\t\tif (tok.getToken() != TokensId.OPENLINK) {\r\n\t\t\tsyntaxError(String.format(\"Expected '<link', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect 'href'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.HREF) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected 'href' in link declaration, found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '='\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.EQ) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '=' after attribute 'href', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'href', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect href\r\n\t\tText href = href();\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'href', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect 'rel'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.REL) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected 'rel' in link declaration, found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '='\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.EQ) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '=' after attribute 'rel', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'rel', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect rel\r\n\t\tText rel = rel();\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'rel', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect 'type'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.TYPE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected 'type' in link declaration, found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '='\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.EQ) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '=' after attribute 'type', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'type', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect type\r\n\t\tText type = type();\r\n\r\n\t\t// Expect '\"'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.QUOTE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '\\\"' surrounding the value of 'type', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\t// Expect '>'\r\n\t\ttok = lex.getToken();\r\n\t\tif (tok.getToken() != TokensId.TAGCLOSE) {\r\n\t\t\tsyntaxError(String.format(\r\n\t\t\t\t\t\"Expected '>' closing the tag 'link', found '%s'\",\r\n\t\t\t\t\ttok.getLexeme()), tok.getLine());\r\n\t\t}\r\n\r\n\t\tif (href != null && rel != null && type != null)\r\n\t\t\tlink = new Link(href, rel, type);\r\n\r\n\t\tif (syntaxError)\r\n\t\t\treturn null;\r\n\r\n\t\treturn link;\r\n\t}", "LINK createLINK();", "@DISPID(-2147412104)\n @PropPut\n void onclick(\n java.lang.Object rhs);", "private HTMLElement generateLinkElement(String href, int indentLevel) {\n \t\tHTMLElement link = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_LINK, indentLevel, true);\n \t\tlink.addAttribute(IIntroHTMLConstants.ATTRIBUTE_RELATIONSHIP,\n \t\t\t\tIIntroHTMLConstants.LINK_REL);\n \t\tlink.addAttribute(IIntroHTMLConstants.ATTRIBUTE_STYLE,\n \t\t\t\tIIntroHTMLConstants.LINK_STYLE);\n \t\tif (href != null)\n \t\t\tlink.addAttribute(IIntroHTMLConstants.ATTRIBUTE_HREF, href);\n \t\treturn link;\n \t}", "public LinkImpl(String href) {\n this.href = href;\n }", "public String getHref() {\n return href;\n }", "public interface LinkGenerator {\n public String linkFor(TestOutcome testOutcome);\n}", "Link createLink();", "public abstract String getManipulatorLinkLabel();", "EObject getAnchor();", "Uri mo1686a();", "HtmlPage clickSiteLink();", "public void generateEnquireLink();", "public LinkButton( Action a) {\n\t\tsuper( a);\n\t\tinit();\n\t}", "interface Formula {\n\t double calculate(int a);\n\t \n\t default double sqrt(int a) {\n\t return Math.sqrt(a);\n\t }\n\t}", "public String getHref()\r\n\t{\r\n\t\treturn _href;\r\n\t}", "public Link linkTo() {\n Label text = Label.of(name);\n URIObject target = FSURICodec.encode(this);\n return Link.textTarget(text, target);\n }", "@ApiModelProperty(value = \"Hyperlink reference to the target specification\")\n\n\n public String getHref() {\n return href;\n }", "private String externalLink2Anchor(String href) {\n\t\t\n\t\tString replaceText = null;\n\t\tString id = baseId + \"-\" + UUID.uuid(4);\n\t\tString target = (openLinksinNewTab) ? \"_blank\" : \"_self\";\n\t\t\n\t\tLinkInfo pli = new LinkInfo(id, LinkType.EXTERNAL, href, target);\n\t\tparserResult.linkInfos.add(pli);\n\t\treplaceText = \"<a id='\" + id + \"' target='\" + target + \"' href='\" + href + \"'\";\n\t\t\n\t\treturn replaceText;\n\t}", "String link(@SuppressWarnings(\"rawtypes\") Map params);", "public String mo88913a() {\n if (TextUtils.isEmpty(this.f65228a)) {\n return null;\n }\n return String.format(\"<a href=\\\"%s\\\" class=\\\"videox\\\">\", this.f65228a);\n }", "private String urlLink(final String url, final String name) {\n Tag aTag = new Tag(\"a\");\n aTag.add(name);\n aTag.addParameter(\"href\", baseUrl + url);\n return aTag.toString();\n }", "public IHyperLink attachLink()\n throws OculusException;", "void openLink(Link target);", "abstract Color linkColor(String link);", "private HTMLElement generateAnchorElement(IntroLink link, int indentLevel) {\n \t\tHTMLElement anchor = new FormattedHTMLElement(\n \t\t\t\tIIntroHTMLConstants.ELEMENT_ANCHOR, indentLevel, true);\n \t\tif (link.getId() != null)\n \t\t\tanchor.addAttribute(IIntroHTMLConstants.ATTRIBUTE_ID, link.getId());\n \t\tanchor.addAttribute(IIntroHTMLConstants.ATTRIBUTE_CLASS,\n \t\t\t\tIIntroHTMLConstants.ANCHOR_CLASS_LINK);\n \t\tif (link.getUrl() != null)\n \t\t\tanchor.addAttribute(IIntroHTMLConstants.ATTRIBUTE_HREF, link\n \t\t\t\t\t.getUrl());\n \t\treturn anchor;\n \t}", "public void hyperlinkUpdate(HyperlinkEvent e){\n\t\tif(e.getEventType() == HyperlinkEvent.EventType.ACTIVATED){\n\t\t\t\n\t\t\t\t// Take the link-URL clicked, simplify, and open in browser.\n\t\t\t\t// Simplification involves conversion to an ASCII character\n\t\t\t \t// set (to weed out any unusual characters).\n\t\t\tString ascii_url;\n\t\t\ttry{ascii_url = e.getURL().toString();\n\t\t\t\tascii_url = new URL(ascii_url).toURI().toASCIIString();\n\t\t\t} catch(Exception exception){\n\t\t\t\tgui_globals.open_url(this, e.getURL().toString());\n\t\t\t\treturn; \n\t\t\t} // If conversion fails, just pass off to the browser, which\n\t\t\t // may also fail, but will show a graphical warning message.\n\t\t\t\n\t\t\tgui_globals.open_url(this, ascii_url);\n\t\t}\n\t}", "public abstract double getLinkProbability(int linkId);", "public interface ShortLinkFormattingService {\n\n /**\n * Formats the given ShortLink into its final URL representation\n * @param shortLink <p>the ShortLink to convert</p>\n * @return <p>the URL representing the given ShortLink</p>\n */\n URL format(ShortLink shortLink);\n\n}", "public String getLinkName();", "public abstract String toUrl(Object inNode);", "public final OMSVGAnimatedString getHref() {\n return ((SVGFilterElement)ot).getHref();\n }", "public void setHref(String href) {\r\n this.href = href;\r\n }", "public Reference getHref() {\n return this.href;\n }", "CharNode getLink();", "public LinkDisplay()\n\t{\n\t\treturn;\n\t}", "public double web(double html,double javascript,double mySQL,double php,double webExam)\n {\n double a = ((10%100)*html)/100;\n double b = ((15%100)*javascript)/100;\n double c = ((12.5%100)*mySQL)/100;\n double d = ((12.5%100)*php)/100;\n double e = ((50%100)*webExam)/100;\n double grade = ((a+b+c+d+e)/8);//*100;\n return grade;\n }", "public interface PDFLink {\n String getText();\n String getHref();\n int getPage();\n}", "public void setHref(String href) {\n this.href = href;\n }", "public static JXHyperlink createHyperLink(int level, String text, ActionListener listener) {\n JXHyperlink ret = new JXHyperlink();\n ret.setText(text);\n if (level == LEVEL_1) {\n ret.setForeground(Constants.LINK_COLOR_BOLD);\n ret.setClickedColor(Color.blue);//Constants.LINK_COLOR_BOLD);\n }\n else {\n ret.setFont(new Font(\"Verdana\", Font.PLAIN, 10));//FrameworkConstants.SMALL_FONT);\n ret.setForeground(Color.blue);//Constants.LINK_COLOR_BOLD);\n ret.setClickedColor(Color.blue);//Constants.LINK_COLOR_BOLD);\n }\n ret.addActionListener(listener);\n ret.setFocusable(false);\n return ret;\n }", "ReferenceLink createReferenceLink();", "public String genLink (String request, Array filters){\n \n }", "public interface Expression {\n\t\n\t/**\n\t * Evaluates an arithmetic expression.\n\t * \n\t * @return the value to which this expression evaluates\n\t */\n\tdouble eval();\n\t\n\t/**\n\t * Creates a String representation of an arithmetic expression.\n\t * \n\t * @return this expression in standard form, suitable for inclusion\n\t * in a program or text document (e.g., \"(2 - 4 * (7 + 2))\"). Note\n\t * that the string can have \"unnecessary\" parentheses as this (toy)\n\t * system does not know about operator precedence. \n\t */\n\tString toString();\n\n}", "public interface AttributeLink extends org.omg.uml.foundation.core.ModelElement {\n /**\n * Returns the value of reference attribute.\n * @return Value of reference attribute.\n */\n public org.omg.uml.foundation.core.Attribute getAttribute();\n /**\n * Sets the value of reference attribute. See {@link #getAttribute} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setAttribute(org.omg.uml.foundation.core.Attribute newValue);\n /**\n * Returns the value of reference value.\n * @return Value of reference value.\n */\n public org.omg.uml.behavioralelements.commonbehavior.Instance getValue();\n /**\n * Sets the value of reference value. See {@link #getValue} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setValue(org.omg.uml.behavioralelements.commonbehavior.Instance newValue);\n /**\n * Returns the value of reference instance.\n * @return Value of reference instance.\n */\n public org.omg.uml.behavioralelements.commonbehavior.Instance getInstance();\n /**\n * Sets the value of reference instance. See {@link #getInstance} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setInstance(org.omg.uml.behavioralelements.commonbehavior.Instance newValue);\n /**\n * Returns the value of reference linkEnd.\n * @return Value of reference linkEnd.\n */\n public org.omg.uml.behavioralelements.commonbehavior.LinkEnd getLinkEnd();\n /**\n * Sets the value of reference linkEnd. See {@link #getLinkEnd} for description \n * on the reference.\n * @param newValue New value to be set.\n */\n public void setLinkEnd(org.omg.uml.behavioralelements.commonbehavior.LinkEnd newValue);\n}", "interface UrlModifier {\n\n String createUrl(String url);\n\n }", "public String getHyperlinkBase()\r\n {\r\n return (m_hyperlinkBase);\r\n }", "protected Anchor getDistanceHyperlink(LocationResult locationResult, String target) {\n String val = getDistanceDisplay(locationResult);\n Anchor distanceLabel = new Anchor(val, target);\n distanceLabel.setStyleName(\"distance\");\n return distanceLabel;\n }", "public void doMath();", "private void writeLink() throws SAXException, IOException {\n if (state.uri != null && state.uri.trim().length() > 0) {\n xhtml.startElement(\"a\", \"href\", state.uri);\n xhtml.characters(state.hrefAnchorBuilder.toString());\n xhtml.endElement(\"a\");\n } else {\n try {\n //if it isn't a uri, output this anyhow\n writeString(state.hrefAnchorBuilder.toString());\n } catch (IOException e) {\n handleCatchableIOE(e);\n }\n }\n state.hrefAnchorBuilder.setLength(0);\n state.inLink = false;\n state.uri = null;\n\n }", "java.lang.String getClickURL();", "public String getLink() {\r\n return link;\r\n }", "public interface AlgebraicExpression extends CSSExpression {\n\t/**\n\t * Retrieve the operand at index <code>index</code>.\n\t *\n\t * @param index the index.\n\t * @return the operand at index <code>index</code>, or <code>null</code> if the\n\t * index is invalid.\n\t */\n\tCSSExpression item(int index);\n\n\t/**\n\t * Get the number of operands in this expression.\n\t *\n\t * @return the number of operands in this expression.\n\t */\n\tint getLength();\n\n\t/**\n\t * Create and return a copy of this object.\n\t *\n\t * @return a copy of this object.\n\t */\n\t@Override\n\tAlgebraicExpression clone();\n\n}", "public void setHref(String href)\r\n\t{\r\n\t\t_href = href;\r\n\t}", "private HTMLElement generateIntroLink(IntroLink element, int indentLevel) {\n \t\tHTMLElement anchor = generateAnchorElement(element, indentLevel);\n \t\t// add <IMG src=\"blank.gif\">\n \t\tString blankImageURL = IntroModelRoot.getPluginLocation(\n \t\t\t\tIIntroHTMLConstants.IMAGE_SRC_BLANK, IIntroConstants.PLUGIN_ID);\n \t\tif (blankImageURL != null) {\n \t\t\tanchor.addContent(generateImageElement(blankImageURL,\n \t\t\t\t\tindentLevel + 1));\n \t\t}\n \t\t// add <SPAN class=\"link-label\">linkLabel</SPAN>\n \t\tif (element.getLabel() != null) {\n \t\t\tHTMLElement label = generateSpanElement(\n \t\t\t\t\tIIntroHTMLConstants.SPAN_CLASS_LINK_LABEL, indentLevel + 1);\n \t\t\tlabel.addContent(element.getLabel());\n \t\t\tanchor.addContent(label);\n \t\t}\n \t\tif (element.getText() != null) {\n \t\t\tHTMLElement text = generateTextElement(\n \t\t\t\t\tIIntroHTMLConstants.ELEMENT_PARAGRAPH, null,\n \t\t\t\t\tIIntroHTMLConstants.SPAN_CLASS_TEXT, element.getText(),\n \t\t\t\t\tindentLevel + 1);\n \t\t\tanchor.addContent(text);\n \t\t}\n \t\treturn anchor;\n \t}", "public void simpleLink( String href, String role, String arcrole, String title, String show, String actuate, String uri, String name, String raw, Attributes attr ) throws SAXException\n {\n AttributesImpl newattr = new AttributesImpl( attr );\n int hrefIndex = attr.getIndex( XLINK_NAMESPACE_URI, XLINK_HREF );\n int roleIndex = attr.getIndex( XLINK_NAMESPACE_URI, XLINK_ROLE );\n int arcroleIndex = attr.getIndex( XLINK_NAMESPACE_URI, XLINK_ARCROLE );\n int titleIndex = attr.getIndex( XLINK_NAMESPACE_URI, XLINK_TITLE );\n int showIndex = attr.getIndex( XLINK_NAMESPACE_URI, XLINK_SHOW );\n int actuateIndex = attr.getIndex( XLINK_NAMESPACE_URI, XLINK_ACTUATE );\n if ( hrefIndex > -1 )\n newattr.setValue( hrefIndex, href );\n if ( roleIndex > -1 )\n newattr.setValue( roleIndex, role );\n if ( arcroleIndex > -1 )\n newattr.setValue( arcroleIndex, arcrole );\n if ( titleIndex > -1 )\n newattr.setValue( titleIndex, title );\n if ( showIndex > -1 )\n newattr.setValue( showIndex, show );\n if ( actuateIndex > -1 )\n newattr.setValue( actuateIndex, actuate );\n super.startElement( uri, name, raw, newattr );\n }", "public static String computeURL(PageContext pageContext, String forward, String href, String page, String action,\n Map<String, String> params, String anchor, boolean redirect, boolean encodeSeparator, String destinationPage)\n throws MalformedURLException\n {\n\n // TODO All the computeURL() methods need refactoring!\n\n // Validate that exactly one specifier was included\n int n = 0;\n if (forward != null)\n {\n n++;\n }\n if (href != null)\n {\n n++;\n }\n if (page != null)\n {\n n++;\n }\n if (action != null)\n {\n n++;\n }\n if (n != 1)\n {\n throw new MalformedURLException(messages.getMessage(\"computeURL.specifier\"));\n }\n\n // Look up the module configuration for this request\n ModuleConfig config = (ModuleConfig) pageContext.getRequest().getAttribute(Globals.MODULE_KEY);\n if (config == null)\n { // Backwards compatibility hack\n config = (ModuleConfig) pageContext.getServletContext().getAttribute(Globals.MODULE_KEY);\n pageContext.getRequest().setAttribute(Globals.MODULE_KEY, config);\n }\n\n // Calculate the appropriate URL\n StringBuffer url = new StringBuffer();\n HttpServletRequest request = (HttpServletRequest) pageContext.getRequest();\n\n String mgnlaction = null;\n\n if (destinationPage != null && href == null)\n {\n url.append(destinationPage);\n }\n\n if (forward != null)\n {\n ForwardConfig fc = config.findForwardConfig(forward);\n if (fc == null)\n {\n throw new MalformedURLException(messages.getMessage(\"computeURL.forward\", forward));\n }\n if (fc.getRedirect())\n {\n redirect = true;\n }\n\n mgnlaction = forward;\n\n }\n else if (href != null)\n {\n url.append(href);\n }\n else if (action != null)\n {\n mgnlaction = RequestUtils.getActionMappingURL(action, pageContext);\n // url.append(RequestUtils.getActionMappingURL(action, pageContext));\n\n }\n else\n /* if (page != null) */{\n\n mgnlaction = RequestUtils.pageURL(request, page);\n // url.append(request.getContextPath());\n // url.append(RequestUtils.pageURL(request, page));\n }\n\n if (mgnlaction != null)\n {\n // remove parameters (how ugly is struts 1 :( )\n if (mgnlaction.contains(\"?\"))\n {\n String actionparams = StringUtils.substringAfter(mgnlaction, \"?\");\n\n String[] paramz = StringUtils.split(actionparams, \"&\");\n for (String string : paramz)\n {\n if (StringUtils.contains(string, \"=\"))\n {\n params.put(StringUtils.substringBefore(string, \"=\"), StringUtils.substringAfter(string, \"=\"));\n }\n\n }\n mgnlaction = StringUtils.substringBefore(mgnlaction, \"?\");\n }\n\n if (mgnlaction.endsWith(\".do\"))\n {\n mgnlaction = StringUtils.substringBeforeLast(mgnlaction, \".do\");\n }\n\n params.put(PARAMETER_MGNLACTION, mgnlaction);\n }\n\n // Add anchor if requested (replacing any existing anchor)\n if (anchor != null)\n {\n String temp = url.toString();\n int hash = temp.indexOf('#');\n if (hash >= 0)\n {\n url.setLength(hash);\n }\n url.append('#');\n url.append(encode(anchor));\n }\n\n // Add dynamic parameters if requested\n if ((params != null) && (params.size() > 0))\n {\n\n // Save any existing anchor\n String temp = url.toString();\n int hash = temp.indexOf('#');\n if (hash >= 0)\n {\n anchor = temp.substring(hash + 1);\n url.setLength(hash);\n temp = url.toString();\n }\n else\n {\n anchor = null;\n }\n\n // Define the parameter separator\n String separator = null;\n if (redirect)\n {\n separator = \"&\";\n }\n else if (encodeSeparator)\n {\n separator = \"&amp;\";\n }\n else\n {\n separator = \"&\";\n }\n\n // Add the required request parameters\n boolean question = temp.indexOf('?') >= 0;\n Iterator keys = params.keySet().iterator();\n while (keys.hasNext())\n {\n String key = (String) keys.next();\n Object value = params.get(key);\n if (value == null)\n {\n if (!question)\n {\n url.append('?');\n question = true;\n }\n else\n {\n url.append(separator);\n }\n url.append(encode(key));\n url.append('='); // Interpret null as \"no value\"\n }\n else if (value instanceof String)\n {\n if (!question)\n {\n url.append('?');\n question = true;\n }\n else\n {\n url.append(separator);\n }\n url.append(encode(key));\n url.append('=');\n url.append(encode((String) value));\n }\n else if (value instanceof String[])\n {\n String values[] = (String[]) value;\n for (int i = 0; i < values.length; i++)\n {\n if (!question)\n {\n url.append('?');\n question = true;\n }\n else\n {\n url.append(separator);\n }\n url.append(encode((key)));\n url.append('=');\n url.append(encode(values[i]));\n }\n }\n else\n /* Convert other objects to a string */{\n if (!question)\n {\n url.append('?');\n question = true;\n }\n else\n {\n url.append(separator);\n }\n url.append(encode(key));\n url.append('=');\n url.append(encode(value.toString()));\n }\n }\n\n // Re-add the saved anchor (if any)\n if (anchor != null)\n {\n url.append('#');\n url.append(encode(anchor));\n }\n\n }\n\n // Perform URL rewriting to include our session ID (if any)\n if (pageContext.getSession() != null)\n {\n HttpServletResponse response = (HttpServletResponse) pageContext.getResponse();\n if (redirect)\n {\n return (response.encodeRedirectURL(url.toString()));\n }\n else\n {\n return (response.encodeURL(url.toString()));\n }\n }\n else\n {\n return (url.toString());\n }\n\n }", "public String getLink() {\n return link;\n }", "String getLinkName();", "URL format(ShortLink shortLink);", "public String getLink()\n {\n return link;\n }", "public interface Sellable {\n double calculateMarkup();\n}", "public abstract double getReference();", "public abstract double getReference();", "public String getLink() {\n return link;\n }", "public String getLink() {\n return link;\n }", "public String getLink() {\n return link;\n }", "public String getLink() {\n return link;\n }", "@ApiModelProperty(value = \"Reference link to the place\")\n\n\n public String getHref() {\n return href;\n }", "public String getResult() {\n\t\treturn ((WebElement) links.get(1)).getAttribute(\"alt\");\n\t}", "void onLinkClicked(@Nullable ContentId itemId);", "public String getCssValue_click_Fuel_Rewards_Link(String attribute) {\r\n\t\treturn click_Fuel_Rewards_Link.getCssValue(attribute);\r\n\t}", "public Linka getLinka() {\n return linka;\n }", "public interface LinkParser {\n\n /**\n * Parse text content in format defined in RFC RFC6690 into array of links {@link Link}.\n *\n * @param bytes content to parse as array of bytes.\n */\n Link[] parseCoreLinkFormat(byte[] bytes) throws LinkParseException;\n}", "public abstract String getUrl();", "public String link() {\n return DevRant.BASE_URL + DevRant.RANT_URL + '/' + getId();\n }", "public String getAnchor()\r\n {\r\n return this.anchor;\r\n }", "HtmlPage clickDateLink();", "private JButton getLinkButton() {\r\n\t\tif (linkButton == null) {\r\n\t\t\tlinkButton = new JButton(); \r\n\t\t\tlinkButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/discrete_attribute.gif\")));\r\n\t\t\tlinkButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\tlinkButton.setBounds(new Rectangle(44, 1, 23, 20));\r\n\t\t\tlinkButton.setToolTipText(\"超链接编辑\");\r\n\t\t\tlinkButton.setActionCommand(\"linkButton\");\r\n\t\t\tlinkButton.addActionListener(this.buttonAction);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn linkButton;\r\n\t}", "private String link2Anchor(String expression, LinkType type) {\n\t\tString replaceText = null;\n\n\t\tint index = expression.indexOf(\"|\");\n\t\tif (index > 0) {\n\t\t\tString pageName = expression.substring(0, index);\n\t\t\tpageName = StringUtils.removeAllFormatting(pageName);\n\t\t\tpageName = StringUtils.unescapeXML(pageName);\n\t\t\tString id = baseId + \"-\" + UUID.uuid(4);\n\n\t\t\tString linkText = expression.substring(index + 1).trim();\t\n\t\t\treplaceText = this.getReplaceText(id, linkText, expression, type);\n\t\t\t\n\t\t\tLinkInfo pli = new LinkInfo(id, type, pageName, \"\");\n\t\t\tparserResult.linkInfos.add(pli);\n\t\t}\n\n\t\treturn replaceText;\n\t}", "@ApiModelProperty(value = \"Reference of the product\")\n @JsonProperty(\"href\")\n public String getHref() {\n return href;\n }", "public String getLink() {\n\t\treturn link;\n\t}", "public String getLink() {\n\t\treturn link;\n\t}", "public String hyperlink1_action() {\n try {\n String primaryid = (String)hyperlink1.getValue();\n getSessionBean1().getProcesseddatasetRowSet().setObject(\n 1, primaryid);\n //dbssearch.Page1.processeddatasetDataProvider.refresh();\n }catch (Exception e) {\n log(\"Exception Raised:\" + e.getMessage());\n }\n return \"case1\";\n }", "Link getL();", "String link(@SuppressWarnings(\"rawtypes\") Map params, String encoding);", "private void addHyperlinkToken(int start, int end, int tokenType) {\n\t\tint so = start + offsetShift;\n\t\taddToken(zzBuffer, start,end, tokenType, so, true);\n\t}" ]
[ "0.62625283", "0.6198437", "0.6132684", "0.6110345", "0.60204715", "0.599998", "0.593715", "0.5813503", "0.58027387", "0.55322045", "0.55187994", "0.55068463", "0.549554", "0.5491465", "0.5490555", "0.5460579", "0.5439705", "0.543898", "0.54247046", "0.54121965", "0.54103124", "0.53735226", "0.53427935", "0.53046286", "0.5298737", "0.52775574", "0.52158225", "0.5206444", "0.519356", "0.5192337", "0.5179549", "0.5179167", "0.51698536", "0.5159723", "0.5158996", "0.5149554", "0.5147073", "0.5143071", "0.51376647", "0.5135593", "0.51292485", "0.5100926", "0.50975776", "0.50962806", "0.50766087", "0.50665665", "0.50513005", "0.5044027", "0.5011806", "0.50085706", "0.49971694", "0.4995235", "0.49898836", "0.49749917", "0.49737766", "0.4972039", "0.4971533", "0.4958589", "0.49454743", "0.49446157", "0.49413708", "0.49405447", "0.49358192", "0.49343476", "0.4933284", "0.49248144", "0.49218845", "0.49217018", "0.4920118", "0.4907712", "0.48863634", "0.48835078", "0.48804435", "0.487221", "0.4856258", "0.48544836", "0.48497477", "0.48497477", "0.48450768", "0.48450768", "0.48450768", "0.48450768", "0.48375303", "0.48333654", "0.48220336", "0.48173332", "0.48150527", "0.48144305", "0.48139605", "0.48118415", "0.48072287", "0.4804199", "0.4803891", "0.48037615", "0.4794504", "0.4785231", "0.4785231", "0.47700033", "0.47665194", "0.47630244", "0.47604167" ]
0.0
-1
Returns this norm of the specified value.
@Override public Double value(TypeOfValue value);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double norm() {\r\n return Math.sqrt(innerProduct(this));\r\n }", "public MyDouble norm() {\r\n\t\tMyDouble aSquar = this.getReal().square();\r\n\t\tMyDouble bSquare = this.getImag().square();\r\n\t\tMyDouble sum = aSquar.add(bSquare);\r\n\t\tMyDouble result = sum.sqrt();\r\n\t\treturn result;\r\n\t}", "public double norm() {\n\t\thomogenize();\n\t\treturn Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z);\n\t}", "public double norm() {\n\t\treturn Math.sqrt(x * x + y * y + z * z);\n\t}", "float norm();", "public double oneNorm(){\r\n \tdouble norm = 0.0D;\r\n \tdouble sum = 0.0D;\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tsum+=Math.abs(this.matrix[i][j]);\r\n \t\t}\r\n \t\tnorm=Math.max(norm,sum);\r\n \t}\r\n \treturn norm;\r\n \t}", "public double norm2();", "public Vector normalize() {\n double num=1/length();\n head = scale(num).head;\n return this;\n }", "public double norm() {\n if (dy == 0.0)\n return Math.abs(dx);\n return Math.hypot(dx, dy);\n }", "public T sqrt(T value);", "float norm2();", "public double l1_norm()\r\n {\r\n double sum = 0.0;\r\n for (Double c : this.values())\r\n sum += Math.abs(c);\r\n\r\n return sum;\r\n }", "public Vector normalized(){\r\n\t\tfloat len = this.length();\r\n\t\tif( len != 0.0f && len != 1.0f ){\r\n\t\t\treturn new Vector( this.x / len, this.y / len, this.z / len );\r\n\t\t}\r\n\t\treturn this;\r\n\t}", "public Vec2double normalise() {\n\t\tdouble len = (double) (1 / Math.sqrt(x*x + y*y));\n//\t\tx *= len;\n//\t\ty *= len;\n\t\treturn new Vec2double(x*len, y*len);\n\t}", "public Vector3D normalize()\r\n {\r\n float oneOverMagnitude = 0;\r\n float mag = magnitude();\r\n \r\n if (mag!=0) {\r\n oneOverMagnitude = 1 / mag;\r\n }\r\n\r\n return this.product(oneOverMagnitude);\r\n }", "public Vector normalized() {\n Vector t=new Vector(normalize());\n return t;\n }", "public Vector Normalize(){\n float magnitude = Magnitude();\n for(int i = 0; i < axis.length; i++){\n axis[i] /= magnitude;\n }\n return this;\n }", "public Vector3 normalized() {\n\t\tif (isZeroVector(this)) {\n\t\t\treturn this;\n\t\t}\n\t\treturn new Vector3(x / norm(), y / norm(), z / norm());\n\t}", "public Vector2D normalize() \n {\n \tfloat length = getLength();\n if (length != 0.0f) \n {\n this.setX(this.getX() / length);\n this.setY(this.getY() / length);\n } \n else \n {\n this.setX(0.0f);\n this.setY(0.0f);\n }\n return this;\n }", "public Vector2f normalize() {\n return div(length());\n }", "private double valueToNormalized(T value) {\n if (0 == absoluteCriticalValuePrim - absoluteWarningValuePrim) {\n // prevent division by zero, simply return 0.\n return 0d;\n }\n return (value.doubleValue() - absoluteWarningValuePrim) / (absoluteCriticalValuePrim - absoluteWarningValuePrim);\n }", "public Vector normalize(){\n\t\tdouble mag = magnitude();\n\t\treturn new Vector(x/mag, y/mag, z/mag);\n\t}", "public Vector normalize ( );", "public Vector2D normal()\n\t{\n\t\treturn this.mul(1/this.length());\n\t}", "public Vector4d normalize() {\n\t\tdouble len = length();\n\t\tif (len != 0) {\n\t\t\tx /= len;\n\t\t\ty /= len;\n\t\t\tz /= len;\n\t\t\tw /= len;\n\t\t}\n\t\treturn this;\n\t}", "public Builder setNormal(godot.wire.Wire.Vector3 value) {\n if (normalBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n normal_ = value;\n onChanged();\n } else {\n normalBuilder_.setMessage(value);\n }\n\n return this;\n }", "public double frobeniusNorm(){\r\n \tdouble norm=0.0D;\r\n \tfor(int i=0; i<this.ncol; i++){\r\n \t\tfor(int j=0; j<this.nrow; j++){\r\n \t\tnorm=hypot(norm, Math.abs(matrix[i][j]));\r\n \t\t}\r\n \t}\r\n \treturn norm;\r\n \t}", "public static Vector<Double> norm(Vector<Double> a) {\n\t\tdouble x = TransEInitializer.vec_len(a);\n\t\tif (x > 1){\n\t\t\t\n\t\t\tfor (int ii = 0; ii < a.size(); ii++)\n\t\t\t\ta.set(ii, a.get(ii) / x);\n\t\t\n\n\t\t}\n\n//\t\tif(x > 1)\n//\t\t\treturn true;\n//\t\treturn false;\n\t\treturn a;\n\t}", "public double normR(VectorView point) {\n return Distance.EUCLIDEAN.compute(point, CM) / scalar();\n }", "public Vector normalized() {\n double size = this.length();\n return new Vector(this.getHead().getX() / size, this.getHead().getY() / size, this.getHead().getZ() / size);\n }", "public static double norm(DataNumeric data) {\n if (data instanceof DataVector)\n return ((DataVector) data).norm();\n if (data instanceof DataMatrix)\n return ((DataMatrix) data).norm();\n throw new IllegalArgumentException(\"Unhandled data object: \" + data);\n }", "private double norm(IDictionary<String, Double> vector) {\n\t\t double output = 0.0;\n\t\t for (KVPair<String, Double> pair : vector) {\n\t\t\t double score = pair.getValue();\n\t\t output = output + (score * score);\n\t\t }\n\t return Math.sqrt(output);\t \n }", "public Vector normalize() {\n this.head = this.normalized().getHead();\n return this;\n }", "public double nextNormalizedDouble() {\r\n return SQRT3 * (2 * generator.nextDouble() - 1.0);\r\n }", "public VectorA normal()\n {\n return new VectorA(this.x/this.mag(), this.y/this.mag());\n }", "static double squaredNorm(Vec v) {\n return v.x * v.x + v.y * v.y;\n }", "public static Vector normalize(Vector input) {\n return input.divide(input.euclideanNorm());\n }", "public double getNormFrequency() {\n return normFrequency;\n }", "public Vector porEscalar(double value){\n return new Vector(x*value,y*value);\n }", "public Vector2f normalize (Vector2f result)\n {\n return mult(1f / length(), result);\n }", "public Vector3 normalized() {\n float length = length();\n return new Vector3(x / length, y / length, z / length);\n }", "public double magnitude() {\n return Math.sqrt(magnitudeSquared());\n }", "public Vector3 getNormal() {\n\t\tdouble mag = this.magnitude();\n\t\tif (mag > 0) {\n\t\t\treturn new Vector3(\n\t\t\t\t\tthis.x/mag,\n\t\t\t\t\tthis.y/mag,\n\t\t\t\t\tthis.z/mag\n\t\t\t\t\t);\n\t\t} else {\n\t\t\treturn new Vector3();\n\t\t}\n\t}", "public static double norm2(VectorIntf x) {\r\n if (x==null) throw new IllegalArgumentException(\"x is null\");\r\n if (x instanceof DblArray1SparseVector) { // short-cut for sparse vectors\r\n return ((DblArray1SparseVector) x).norm2();\r\n }\r\n final int n = x.getNumCoords();\r\n double res2=0.0;\r\n for (int i=0; i<n; i++) {\r\n double xi = x.getCoord(i);\r\n res2 += (xi * xi);\r\n }\r\n return Math.sqrt(res2);\r\n }", "public void normalize() {\n\t\tdouble norm = norm();\n\t\tif (DoubleComparison.eq(norm, 0)) {\n\t\t\tthrow new RuntimeException(\"Failed to normalize: length is zero\");\n\t\t}\n\t\tthis.x = this.x / norm;\n\t\tthis.y = this.y / norm;\n\t\tthis.z = this.z / norm;\n\t}", "public Vector330Class normalize(){\n if(this.magnitude() <= EPS){\n return new Vector330Class(0, 0);\n }\n else{\n return new Vector330Class(this.x * (1/this.magnitude()), this.y * (1/this.magnitude()));\n }\n }", "public interface Norm<TypeOfValue> extends Function<TypeOfValue, Double> {\n /**\n * Returns this norm of the specified value.\n * @param value Value.\n * @return Norm.\n */\n @Override\n public Double value(TypeOfValue value);\n}", "public Builder mergeNormal(godot.wire.Wire.Vector3 value) {\n if (normalBuilder_ == null) {\n if (normal_ != null) {\n normal_ =\n godot.wire.Wire.Vector3.newBuilder(normal_).mergeFrom(value).buildPartial();\n } else {\n normal_ = value;\n }\n onChanged();\n } else {\n normalBuilder_.mergeFrom(value);\n }\n\n return this;\n }", "public static float norm(float[] array) {\n float retval = 0;\n for (int i = 0; i < array.length; i++) {\n retval += array[i] * array[i];\n }\n return (float) Math.sqrt(retval);\n }", "public void normalize() { sets length to 1\n //\n double length = Math.sqrt(x * x + y * y);\n\n if (length != 0.0) {\n float s = 1.0f / (float) length;\n x = x * s;\n y = y * s;\n }\n }", "public Acceleration getNormAsAcceleration() {\n return new Acceleration(getNorm(),\n AccelerationUnit.METERS_PER_SQUARED_SECOND);\n }", "public Vector2D normalizedVect() {\n return new Vector2D(x / magnitude(), y / magnitude());\n }", "public static native double norm(double a[]);", "final public Vector3 normalized(){\n return new Vector3(x/magnitude, y/magnitude, z/magnitude);\n }", "public static Vector normalize(Vector v) {\r\n Vector w = new Vector(v);\r\n w.normalize();\r\n return w;\r\n }", "@Override\n\tpublic double\n\tnormalize()\n\t{\n\t\tdouble len = length();\n\n\t\tif( len != 0 )\n\t\t{\n\t\t\tdata[0] /= len;\n\t\t\tdata[1] /= len;\n\t\t\tdata[2] /= len;\n\t\t}\n\t\t\n\t\treturn len;\n\t}", "private static double minMaxNormalization(final double value) {\n return (((value - Configuration.ACTUAL_MIN) / (Configuration.ACTUAL_MAX - Configuration.ACTUAL_MIN)) * (Configuration.NORMALIZED_MAX - Configuration.NORMALIZED_MIN)) + Configuration.NORMALIZED_MIN;\n }", "public static double signedSqrt(double value) {\n return Math.copySign(value * value, value);\n }", "public void normalize() {\n float length = (float)Math.sqrt(nx * nx + ny * ny);\n nx/=length;\n ny/=length;\n }", "public static double norm(VectorIntf x, int k) {\r\n if (x==null) throw new IllegalArgumentException(\"x is null\");\r\n if (k<=0) throw new IllegalArgumentException(\"k<=0\");\r\n if (k==2) return norm2(x); // faster computation\r\n if (x instanceof DblArray1SparseVector) { // short-cut for sparse vectors\r\n return ((DblArray1SparseVector) x).norm(k);\r\n }\r\n int n = x.getNumCoords();\r\n double res = 0.0;\r\n for (int i=0; i<n; i++) {\r\n double absxi = Math.abs(x.getCoord(i));\r\n res += Math.pow(absxi, k);\r\n }\r\n res = Math.pow(res, 1.0/(double) k);\r\n return res;\r\n }", "public double getValue(){\n value*=100;\n value = Math.floor(value);\n value/=100;//returns to hundredths place\n return value;\n }", "public CMLVector3 normalize() throws RuntimeException {\r\n if (this.isZero()) {\r\n throw new RuntimeException(\"Cannot normalize zero vector\");\r\n }\r\n Vector3 veucl3 = this.getEuclidVector3();\r\n if (veucl3 != null) {\r\n veucl3.normalize();\r\n setXMLContent(veucl3.getArray());\r\n }\r\n return this;\r\n }", "public double infinityNorm(){\r\n \tdouble norm = 0.0D;\r\n \tdouble sum = 0.0D;\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\tsum+=Math.abs(this.matrix[i][j]);\r\n \t\t}\r\n \t\tnorm=Math.max(norm,sum);\r\n \t}\r\n \treturn norm;\r\n \t}", "public void setNetNormValue(Double val)\r\n {\r\n \tlong value = Math.round(val * this.getPrecision());\r\n\t\tint intValue = (int)value;\r\n\t\t\r\n\t\tthis.getSlider().setValue(intValue);\r\n }", "public double scalar() {\n //\n // The RG tensor already has the squared values...\n //\n return Math.sqrt(RG.trace());\n }", "public\t\tvoid\t\tsetNormalizedValue(double value)\n\t\t{\n\t\tif (value > 1.0)\n\t\t\tvalue = 1.0;\n\t\telse if (value < 0.0)\n\t\t\tvalue = 0.0;\n\n\t\tthis.value = value;\n\t\taddNormalizedTick(value);\n\t\tsetValueDisplay(\"\" + (minimumValue + value * (maximumValue - minimumValue)));\n\t\tdispatchAction(Mi_VALUE_CHANGED_ACTION);\n\t\t}", "public Vector4 normalized()\n {\n double magnitude = this.magnitude();\n\n float normalizeX = x / (float)magnitude;\n float normalizeY = y / (float)magnitude;\n float normalizeZ = z / (float)magnitude;\n float normalizeW = w / (float)magnitude;\n\n return new Vector4(normalizeX, normalizeY, normalizeZ, normalizeW);\n }", "private double norm(double x1, double y1, double x2, double y2)\n {\n return Math.sqrt((x1-x2)*(x1-x2) + (y1-y2)*(y1-y2));\n }", "public double mag() {\n return Math.sqrt(mag2());\n }", "public DoubleVector Normalize(Instance inst) {\n\t\t\tDoubleVector normalizedInstance = new DoubleVector();\n\t\t\tint index = 0;\n\t\t\tfor (int j = 0; j < inst.numAttributes(); j++) {\n\t\t\t\tif (inst.classIndex() == j)\n\t\t\t\t\tcontinue;\n\n\t\t\t\tdouble value = 0;\n\n\t\t\t\tif (normalizeationOption.getChosenIndex() == 0) {\n\t\t\t\t\tif (this.statsAttributes.get(index).getStandardDeviation() < Constants.SMALL_EPSILON)\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getCurrentMean());\n\t\t\t\t\telse\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getCurrentMean())\n\t\t\t\t\t\t\t\t/ this.statsAttributes.get(index).getStandardDeviation();\n\t\t\t\t}else if(normalizeationOption.getChosenIndex() <= 2){\n\t\t\t\t\tif (this.statsAttributes.get(index).getRange() < Constants.SMALL_EPSILON)\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getMin());\n\t\t\t\t\telse\n\t\t\t\t\t\tvalue = (inst.value(j) - this.statsAttributes.get(index).getMin())\n\t\t\t\t\t\t\t\t/ this.statsAttributes.get(index).getRange();\n\t\t\t\t}else {\n\t\t\t\t\tvalue = inst.value(j) ;\n\t\t\t\t}\n\n\t\t\t\tnormalizedInstance.setValue(index, value);\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\treturn normalizedInstance;\n\t\t}", "public Builder setNormal(\n godot.wire.Wire.Vector3.Builder builderForValue) {\n if (normalBuilder_ == null) {\n normal_ = builderForValue.build();\n onChanged();\n } else {\n normalBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "public Vector2f normalizeLocal ()\n {\n return normalize(this);\n }", "public void normalize() {\n // determine the maximum value\n \n Double max = getMaxValue();\n \n if(max!=null) {\n normalize(max);\n }\n }", "public T divide( double val ) {\n T ret = createLike();\n ops.divide(mat, val, ret.getMatrix());\n return ret;\n }", "public double magnitude(){\n return Math.sqrt((this.x * this.x) + (this.y * this.y));\n }", "public Double getNormalizedAmount()\n {\n if (_units == null)\n return getAmount();\n\n if (_units.isCompatible(_normalizingUnits))\n return _units.convertAmount(getAmount(), _normalizingUnits);\n else\n return getAmount();\n }", "public double magnitude() {\r\n\t\treturn Math.sqrt(this.x*this.x + this.y*this.y + this.z*this.z);\r\n\t}", "@java.lang.Override\n public godot.wire.Wire.Vector3 getNormal() {\n return normal_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : normal_;\n }", "public godot.wire.Wire.Vector3 getNormal() {\n if (normalBuilder_ == null) {\n return normal_ == null ? godot.wire.Wire.Vector3.getDefaultInstance() : normal_;\n } else {\n return normalBuilder_.getMessage();\n }\n }", "public java.lang.String getNormalValue() {\n\t\treturn normalValue;\n\t}", "public Quaternion normalize()\n {\n final float length = (float) Math.sqrt(x * x + y * y + z * z + w * w);\n\n x /= length;\n y /= length;\n z /= length;\n w /= length;\n\n return this;\n }", "public static double standardNormDensity(double x) {\r\n\t\t// return standardNormDistribution.density(x);\r\n\t\treturn Math.exp(-x * x / 2) / Math.sqrt(2 * Math.PI);\r\n\t}", "public T magnitudeSquared();", "public Point3D normalize() {\n\t\treturn this.divide(Math.sqrt(x*x + y*y + z*z));\n\t}", "public double denormalize(double value, String attributeTag);", "@SuppressWarnings(\"unchecked\")\n private T normalizedToValue(double normalized) {\n double v = absoluteWarningValuePrim + normalized * (absoluteCriticalValuePrim - absoluteWarningValuePrim);\n // TODO parameterize this rounding to allow variable decimal points\n return (T) numberType.toNumber(Math.round(v * 100) / 100d);\n }", "private double normalizeImageValue(double value){\n return value/(31);\n }", "public double r() { return Math.sqrt(x*x + y*y); }", "public double getValue() {\n return NUMERATOR / DENOMINATOR;\n }", "public double getMagnitud(){\n return Math.sqrt(x*x+y*y);\n }", "IVec3 normalized();", "public void normalize() {\r\n\t\tfloat length = (float) this.lenght();\r\n\t\tif (length > 0) {\r\n\t\t\tx /= length;\r\n\t\t\ty /= length;\r\n\t\t\tz /= length;\r\n\t\t}\r\n\t}", "public double magnitude() {\n \n double ms = _x * _x + _y * _y; \n return Math.sqrt(ms);\n \n }", "public Builder setNormal(boolean value) {\n \n normal_ = value;\n onChanged();\n return this;\n }", "public double[] getNormalizedInputValues(){\r\n\t\tdouble [] norm = new double[realValues[0].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[0][i])\r\n\t\t\t\tnorm[i] = Attributes.getInputAttribute(i).normalizeValue(realValues[0][i]);\r\n\t\t\telse \r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}", "public double magnitude() {\n\t\treturn Math.sqrt(x*x + y*y + z*z);\n\t}", "public double getR(){\n return Math.sqrt(this.x * this.x + this.y * this.y);\n }", "public double[] getNormalizedOutputValues(){\r\n\t\tdouble [] norm = new double[realValues[1].length];\r\n\t\tfor (int i=0; i<norm.length; i++){\r\n\t\t\tif (!missingValues[1][i])\r\n\t\t\t\tnorm[i] = Attributes.getOutputAttribute(i).normalizeValue(realValues[1][i]);\r\n\t\t\telse\r\n\t\t\t\tnorm[i] = -1.;\r\n\t\t}\r\n\t\treturn norm;\r\n\t}", "public SbVec3f getNormal() { return worldNormal; }", "@Override\n public FqElement<BigInteger> sqrtMutable()\n {\n value = multiplyMontgomery(value, BigInteger.ONE).mod(order);\n if(IntegerUtil.legendreSymbol(value, order) != 1)\n return null;\n\n BigInteger e1 = order.subtract(BigInteger.ONE).shiftRight(1);\n BigInteger e1tmp = e1;\n BigInteger e2 = order.subtract(BigInteger.ONE);\n \n int s;\n for(s = 0; !e1.testBit(s); s++);\n \n BigInteger k = e1.shiftRight(s);\n BigInteger tmp;\n for(int i = 1; i <= s; i++)\n {\n e1 = e1.shiftRight(1);\n e2 = e2.shiftRight(1);\n tmp = value.modPow(e1, order).multiply(getNqr().modPow(e2, order))\n .subtract(order);\n if(tmp.equals(BigInteger.ONE.negate()))\n e2 = e2.add(e1tmp);\n }\n \n BigInteger m = k.subtract(BigInteger.ONE).shiftRight(1);\n value = value.modPow(m.add(BigInteger.ONE), order).multiply(getNqr()\n .modPow(e2.shiftRight(1), order)).mod(order);\n value = value.multiply(R).mod(order);\n return this;\n }", "public godot.wire.Wire.Vector3.Builder getNormalBuilder() {\n \n onChanged();\n return getNormalFieldBuilder().getBuilder();\n }" ]
[ "0.70606047", "0.6892242", "0.67461777", "0.667212", "0.6625637", "0.6418939", "0.63249415", "0.62305295", "0.6200877", "0.6180625", "0.6043173", "0.59488183", "0.5914197", "0.5886273", "0.58595157", "0.57970256", "0.5788506", "0.5707555", "0.56776184", "0.56645054", "0.5648033", "0.56324697", "0.56118876", "0.5606687", "0.5605879", "0.5595843", "0.5592384", "0.55725145", "0.55319387", "0.55141634", "0.5479561", "0.5410103", "0.5398746", "0.5397182", "0.5343783", "0.5283003", "0.5260726", "0.52423465", "0.52261615", "0.5203537", "0.5190623", "0.51885617", "0.51847905", "0.51664394", "0.5155653", "0.51531345", "0.51390296", "0.5127343", "0.51199317", "0.5109436", "0.5104973", "0.50960666", "0.50668967", "0.50605786", "0.50566745", "0.504153", "0.5037591", "0.501498", "0.50137186", "0.50100785", "0.50093526", "0.5004341", "0.49915236", "0.49680403", "0.4952813", "0.49498758", "0.49413532", "0.49340984", "0.4917704", "0.4896792", "0.4893299", "0.48632526", "0.48510513", "0.48505652", "0.48429132", "0.48327082", "0.48219562", "0.48092297", "0.48061186", "0.4796866", "0.47797278", "0.4777915", "0.47749668", "0.47685993", "0.47618416", "0.47353402", "0.47330976", "0.47308084", "0.4710953", "0.47068623", "0.47042", "0.46971288", "0.46939674", "0.4687034", "0.46815678", "0.46786502", "0.46726805", "0.4671756", "0.4668535", "0.4663539", "0.4662443" ]
0.0
-1
Inflate the menu; this adds items to the action bar if it is present.
@Override public boolean onCreateOptionsMenu(Menu menu) { getMenuInflater().inflate(R.menu.menu, 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\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 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\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 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 {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, 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}", "@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\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater menuInflater) {\n menuInflater.inflate(R.menu.main, menu);\n\n }", "@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 \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 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\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.7246102", "0.7201358", "0.7194834", "0.7176498", "0.71066517", "0.7039537", "0.7037961", "0.70112145", "0.70094734", "0.69807225", "0.6944953", "0.69389373", "0.6933199", "0.6916928", "0.6916928", "0.6891486", "0.68831646", "0.68754137", "0.68745375", "0.68621665", "0.68621665", "0.68621665", "0.68621665", "0.68515885", "0.68467957", "0.68194443", "0.6817494", "0.6813087", "0.6813087", "0.6812847", "0.6805774", "0.6801204", "0.6797914", "0.6791314", "0.6789091", "0.67883503", "0.6783642", "0.6759701", "0.6757412", "0.67478645", "0.6744127", "0.6744127", "0.67411774", "0.6740183", "0.6726017", "0.6723245", "0.67226785", "0.67226785", "0.67208904", "0.67113477", "0.67079866", "0.6704564", "0.6699229", "0.66989094", "0.6696622", "0.66952467", "0.66865396", "0.6683476", "0.6683476", "0.6682188", "0.6681209", "0.6678941", "0.66772443", "0.6667702", "0.66673946", "0.666246", "0.6657578", "0.6657578", "0.6657578", "0.6656586", "0.66544783", "0.66544783", "0.66544783", "0.66524047", "0.6651954", "0.6650132", "0.66487855", "0.6647077", "0.66467404", "0.6646615", "0.66464466", "0.66449624", "0.6644209", "0.6643461", "0.6643005", "0.66421187", "0.6638628", "0.6634786", "0.6633529", "0.6632049", "0.6632049", "0.6632049", "0.66315657", "0.6628954", "0.66281766", "0.6627182", "0.6626297", "0.6624309", "0.6619582", "0.6618876", "0.6618876" ]
0.0
-1
Current visibility of this view
public OrientationImageButton(Context context) { super(context); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean getVisible() {\r\n return visible;\r\n }", "public boolean isVisible() { return _visible; }", "public int getVisibility() {\n return visibility;\n }", "public boolean isVisible(){\n\t\treturn this.visible;\n\t}", "public boolean isVisible()\n {\n return visible;\n }", "public boolean isVisible() {\r\n return visible;\r\n }", "public boolean isVisible()\n {\n return visible;\n }", "public java.lang.Boolean getIsVisible();", "boolean isVisible() {\r\n return this.isVisible;\r\n }", "public final boolean isVisible() {\n return visible;\n }", "public boolean isVisible () {\n return visible;\n }", "public boolean getVisible() {\n\t\treturn visible;\n\t}", "public boolean getVisible() {\n\t\treturn visible;\n\t}", "public boolean getIsVisible();", "public boolean isVisible(){ return visible; }", "public Boolean isVisible();", "public Boolean isVisible();", "public boolean isVisible() {\n\t\treturn visible;\n\t}", "public boolean isVisible(){\n \t\treturn visible;\n \t}", "public boolean isVisible() {\n return true;\n }", "@Override\n\tpublic boolean isVisible() {\n\t\treturn this.isVisible;\n\t}", "public boolean isVisible();", "public boolean isVisible();", "public boolean isVisible();", "public boolean isVisible() {\n return true;\n }", "public boolean isVisible() {\n\t\treturn true;\n\t}", "boolean isVisible();", "boolean isVisible();", "public boolean visible() {\n \treturn model.isVisible();\n }", "@Contract(pure = true)\r\n public boolean isVisible() {\r\n return visible;\r\n }", "public boolean isVisible(Visibility v);", "public boolean getVisibility() {\n return GtkEntry.getVisibility(this);\n }", "public abstract boolean isVisible();", "public abstract boolean isVisible();", "public static aVisibility getVisibility()\n {\n read_if_needed_();\n \n return _get_visibility;\n }", "public boolean isShowing() {\n return visible;\n }", "public GraphView getVisibleView() {\r\n\t\treturn graphModel.getVisibleView();\r\n\t}", "@Override\n public boolean isVisible()\n {\n return true;\n }", "public boolean onlyVisible()\n\t{\n\t\treturn visible;\n\t}", "public boolean isVisible() {\r\n\t\t\tif (outOfRange()) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t\treturn true;\r\n\t\t}", "public TabVisibility getVisibility() {\n return this.visibility;\n }", "@Override\r\n\tpublic boolean isVisible() {\n\t\treturn false;\r\n\t}", "public boolean isMakeVisible()\r\n {\r\n return myMakeVisible;\r\n }", "private boolean visible() {\r\n return NOT(GO() && CATS(Cc,Cn,Co,Cs,Zl,Zp)) && POINT();\r\n }", "public void setIsVisible(boolean isVisible);", "@Override\n public boolean isVisible()\n {\n return !this.isDead();\n }", "@JSProperty(\"visible\")\n boolean getVisible();", "public List<Boolean> getLayerVisibility ()\n {\n return Collections.unmodifiableList(_vis);\n }", "@ApiModelProperty(value = \"History item visibility restrictions\")\n public Visibility getVisibility() {\n return visibility;\n }", "final public boolean isVisible() {\n if (hasObtainedSupport) {\n return true;\n }\n boolean ret = true;\n if (numEvents < getThresholdEventsForVisibleCluster()) {\n ret = false;\n }\n if (pathsEnabled) {\n double speed = Math.sqrt(velocityPPT.x * velocityPPT.x + velocityPPT.y * velocityPPT.y) * 1e6 / AEConstants.TICK_DEFAULT_US; // speed is in pixels/sec\n if (speed < thresholdVelocityForVisibleCluster) {\n ret = false;\n }\n }\n hasObtainedSupport = ret;\n if (ret) {\n birthLocation.x = location.x;\n birthLocation.y = location.y; // reset location of birth to presumably less noisy current location.\n }\n return ret;\n }", "public boolean isHidden();", "public void setVisible(Boolean isVisible);", "public boolean checkVisibility() {\n LocalDateTime now = LocalDateTime.now();\n return (this.viewer != 0 && !now.isAfter(this.destructTime));\n }", "public boolean getIsVisible()\n\t{\n\t\tif (getParentFragment() != null && getParentFragment() instanceof BaseFragment)\n\t\t{\n\t\t\treturn isVisible() && ((BaseFragment) getParentFragment()).getIsVisible();\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn isVisible();\n\t\t}\n\t}", "@Override\n public int getVisibility() {\n if (hideWhenNoAd && (hasAd() == false)) {\n return GONE;\n } else {\n return super.getVisibility();\n }\n }", "@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }", "@Override // com.android.server.wm.WindowContainer\n public boolean isVisible() {\n return true;\n }", "public Byte getIsView() {\n return isView;\n }", "public boolean isVisible() {\n\t\treturn element.isDisplayed();\n\t}", "public boolean isHidden() {\r\n return hidden;\r\n }", "@Override\r\n\tpublic boolean isVisible()\r\n\t{\n\t\treturn !getFormScreen().getMode().equals(Mode.LIST_VIEW);\r\n\t}", "public static aVisibility setVisibility()\n {\n read_if_needed_();\n \n return _set_visibility;\n }", "public void setIsVisible(java.lang.Boolean isVisible);", "public boolean isTargetVisible() {\n return getDouble(\"tv\") == 1;\n }", "public void setVisible(boolean v) {\n }", "public boolean isInvisible ( ) {\n\t\treturn extract ( handle -> handle.isInvisible ( ) );\n\t}", "private boolean visibles() {\r\n return OPT(GO() && visible() && visibles());\r\n }", "public Boolean isHidden() {\n return m_hidden;\n }", "public void setVisible(Boolean visible);", "public void setVisible( boolean v) {\r\n visible = v;\r\n }", "public boolean isAtLeastVisible(Visibility v);", "public void setVisibility(int value) {\n this.visibility = value;\n }", "@JSProperty(\"visible\")\n @Nullable\n String getVisible();", "public List<Boolean> getLayerVisibility ()\n {\n return _tableModel.getLayerVisibility();\n }", "@Override\n int getStateToVisible() {\n return 2;\n }", "@Override\r\n\t\t\tpublic boolean isVisible() {\n\t\t\t\treturn (candidateId != 0);\r\n\t\t\t}", "@Schema(description = \"Details about any restrictions in the visibility of the worklog. Optional when creating or updating a worklog.\")\n public AllOfWorklogVisibility getVisibility() {\n return visibility;\n }", "public boolean getRrVisible() {\n return rrVisible;\n }", "public void setVisible(boolean val);", "boolean isInview();", "public boolean isShown(){\r\n return shown;\r\n }", "public boolean selfViewEnabled();", "public void setVisible(boolean visible);", "public void setVisible(boolean value) {\n\t\tvisible = value;\n\t}", "public int getLiveIconVisibility() {\n return this.mLiveIconVisibility;\n }", "@Override\n public void setVisible(boolean arg0)\n {\n \n }", "public boolean shown();", "void setVisible(boolean visible);", "void setVisible(boolean visible);", "public void setVisible(boolean val)\r\n\t{\r\n\t\t_isOn = val;\r\n\t}", "@Override\n\tpublic void setVisible(boolean vis) {\n\t\t\n\t}", "public Boolean getIsShow() {\n return isShow;\n }", "@Override\n public boolean isActive() {\n return isShowing();\n }", "public boolean isHidden() {\n return false;\n }", "void onPDFViewVisibilityChanged(int prevVisibility, int currVisibility);", "public boolean isActiveLayerVisible() {\n\t\treturn false;\n\t}", "public boolean getLblVisible() {\n return lblVisible;\n }", "@SuppressWarnings(\"unused\")\n void setVisible(boolean visible);", "public double readVisibility()\n {\n return (Math.random() * (20.0 - 0.0)) + 0.0;\n }", "@Override\n public void setVisible (boolean f)\n { \n }", "protected Visualizer getVis() {\n\t\treturn myVis;\n\t}" ]
[ "0.798216", "0.7945829", "0.78949755", "0.78709036", "0.7859321", "0.7854789", "0.7851076", "0.78307295", "0.7829516", "0.78239095", "0.78191894", "0.7793951", "0.7793951", "0.7792314", "0.77560985", "0.77079046", "0.77079046", "0.7702082", "0.7695314", "0.763833", "0.7636477", "0.7621497", "0.7621497", "0.7621497", "0.75990665", "0.7591637", "0.7534282", "0.7534282", "0.7531591", "0.7527414", "0.7458231", "0.7380805", "0.7313196", "0.7313196", "0.72610503", "0.71923876", "0.71268755", "0.71062255", "0.7079241", "0.70477647", "0.7042714", "0.6950746", "0.6947538", "0.6890734", "0.68774915", "0.68246955", "0.6811053", "0.6786308", "0.67440003", "0.6739959", "0.67372453", "0.6716708", "0.6706821", "0.67029864", "0.66807896", "0.6678499", "0.6655564", "0.6650763", "0.6638665", "0.662092", "0.66108394", "0.6600454", "0.65864307", "0.6572703", "0.6572104", "0.6570341", "0.6570251", "0.65673953", "0.6537265", "0.6530539", "0.653048", "0.6516562", "0.64894634", "0.6480433", "0.6467474", "0.64661646", "0.6458688", "0.6448341", "0.6443325", "0.6415454", "0.64151615", "0.6406937", "0.6402466", "0.6381196", "0.637747", "0.6366625", "0.63663983", "0.6346388", "0.6346388", "0.63450336", "0.6344783", "0.6321433", "0.63076305", "0.6294991", "0.6292955", "0.62915975", "0.6290361", "0.6267875", "0.62663317", "0.62539154", "0.6227155" ]
0.0
-1
Constructor for objects of class Dog
public Dog(int thisSize, String thisBreed, String thisName) { setSize(thisSize); setBreed(thisBreed); setName(thisName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Dog() {\r\n\r\n }", "public Dog() {\n // Default constructor\n }", "Dog(){\n\t\t\n\t\t//I want to create a chemicals object. Inorder to do this, I have to first create a Cardiac obj, then a Cells obj, then a Chemicals object.\n\t\t//I have to create a Chemicals object, to get a chemicals constructor \n\t\tnew Cardiac().new Cells().new Chemicals();\n\t\t\n\t}", "public Dog(String name, int size, int weight, int eyes, int legs, int tail, int teeth, String coat) {\n //super means to call a constructor from the class we are extending\n //can set values or call in the above constructor, your choice\n super(name, 1, 1, size, weight);\n //these are for the strictly dog paramters\n this.eyes = eyes;\n this.legs = legs;\n this.tail = tail;\n this.teeth = teeth;\n this.coat = coat;\n }", "public Dog ()\n {\n super (\"Dog\", \"Hi! My name is Snoop Dawg\");\n this.x = \"A bone\";\n /*\n * This dog has many features to it\n * Do not provoke it or else it will bite!\n * Otherwise, It's a nice dog so have fun!\n */\n \n \n }", "public Dog(String sound) {\n super(sound); // this inherits from dog class\n // super() means it will be following same parameter as sound.\n }", "public Dog(String Breed, String PrimaryColor, String Size, String name, int age){\r\n // setting the parent animal name\r\n super(name,age);\r\n // setting the parent animal age\r\n // System.out.println(\"Setting Breed...\");\r\n this.Breed = Breed ;\r\n // System.out.println(\"Setting PrimaryColor...\");\r\n this.PrimaryColor = PrimaryColor;\r\n //System.out.println(\"Setting Size...\");\r\n this.Size = Size;\r\n\r\n\r\n\r\n }", "public Dog(Integer age, String name) {\n setAge(age);\n setName(name);\n }", "private Dog(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public void constructor() {\n setEdibleAnimals();\n }", "public static void main(String[] args) {\n Animal animal= new Animal(\"Animal\", 1,1,5,5);\n Dog dog= new Dog(\"Dingo\", 8,20,2,4,1,20, \"long silky\");\n \n }", "Dog(double d) {\n\t\tSystem.out.println(\"Yap yap!\");\n\t}", "public God() {}", "protected Animal() {\t\r\n\t}", "public static void main(String[] args) {\n Dog dog = new Dog();\n Dog dog1 = new Dog(\"tuna\", 2);\n System.out.println(dog.eat());\n\n }", "public static void main(String[] args) {Dog dog1 = new Dog();\n//\t\tdog1.name=\"Bubbly\";\n//\t\tdog1.age=5;\n//\t\tdog1.breed=\"Poodle\";\n//\t\tdog1.color=\"White\";\n//\t\t\n//\t\tSystem.out.println(dog1.name + \":\" + dog1.age + \":\" + dog1.breed + \":\" + dog1.color);\n//\t\t\n//\t\tdog1.bark();\n//\t\tdog1.eat();\n//\t\tdog1.wagTail();\n//\t\t\n//\t\tSystem.out.println(\"--------------\");\n\t\t\n\t\t\n//\t\tDog2 dog = new Dog2();\n//\t\tSystem.out.println(dog.name + \":\" + dog.age + \":\" + dog.breed + \":\" + dog.color);\n//\t\t\n\t\tDog2 dog2=new Dog2();\n\t\tSystem.out.println(dog2.name + \":\" + dog2.age + \":\" + dog2.breed + \":\" + dog2.color);\n\t\t\n//\t\tDog2 dog3=new Dog2(\"Rusty\",20,\"Bulldog\",\"Black\");\n//\t\tSystem.out.println(dog3.name + \":\" + dog3.age + \":\" + dog3.breed + \":\" + dog3.color);\n\n\t\t\n\t\t\n\t}", "Dog(int i) {\n\t\tSystem.out.println(\"Woof!\");\n\t}", "public Dog(String name) {\n if (name == null || name.trim().isEmpty()) {\n throw new IllegalArgumentException(\"The Dog's name \"\n + \"should not be null or whitespace!\");\n } else {\n this.name = name;\n }\n \n }", "public Animal(int age){\n this.age = age;\n System.out.println(\"An animal has been created!\");\n }", "public Cat(){\n\t\tsuper();\n\t}", "protected Demon(int str, int hp)\n {\n super(str, hp);\n }", "public Animal(){\n System.out.println(\"An animal has been created...\");\n }", "public CircusDog(String b)\n {\n super(b);\n }", "public Animal() {\n\t\tSystem.out.println(\"Animal constructor called\");\n\t}", "public Pond(){}", "public static void main(String[] args) {\n\t\tDog1 c= new Dog1();\r\n\t\t\r\n\t\tc.eat();\r\n\t\tc.bark();\r\n\t\t\r\n\r\n\t}", "public D() {}", "public static void main(String[] args) {\n\t\tDog d = new Dog();\n\n\t\t// use the dot operator (.) to set the size of the Dog\n\t\td.size = 40;\n\n\t\t// call its bark() method\n\t\td.bark();\n\t}", "public static void main(String args[]){\n\n\t\tDog myDog = new Dog();\n\t\t//DomasticAnimal yourDog = new Dog();//valid\n\t\t//Animal herDog = new Dog();//valid\n\t\tmyDog.pet();\n\t\tmyDog.makeNoice();\n\t\tmyDog.sleep();\n\t\tmyDog.eat();\n\t\t\n\t\tLion girLion1 = new Lion();\n\t\t//WildAnimal girLion2 = new Lion();//valid\n\t\t//Animal girLion3 = new Lion();//valid\n\t\tgirLion1.hunt();\n\t\tgirLion1.makeNoice();\n\t\tgirLion1.sleep();\n\t\tgirLion1.eat();\n\t\t\n\t}", "public Animal(String name) {\r\n this.animalName = name;\r\n }", "public Dog(String name, double weight, boolean hasPoopedRecently) {\n this.name = name;\n this.weight = weight;\n this.hasPoopedRecently = hasPoopedRecently;\n }", "public Animal(int theAge) {\n\t\t// TODO Auto-generated constructor stub\n\t\tage = theAge;\n\t}", "private Cat() {\n\t\t\n\t}", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public static void main(String... args) {\r\n Dog d = new Dog();\r\n d.setAge(5);\r\n d.setRace(\"Bulldog\");\r\n d.setWeight(30);\r\n d.eat();\r\n System.out.println(d);\r\n\r\n d.addVaccine(\"Astranezeca\");\r\n System.out.println(d.getVaccineNames());\r\n\r\n d.addVaccine(\"Pfizer\");\r\n System.out.println(d.getVaccineNames());\r\n\r\n d.addVaccine(\"Sputnik\");\r\n System.out.println(d.getVaccineNames());\r\n\r\n d.expireVaccine(\"Astranezeca\");\r\n System.out.println( d.getVaccineNames());\r\n\r\n\r\n Dog d2 = new Dog();\r\n System.out.println(d == d2);\r\n System.out.println(d.equals(d2));\r\n System.out.println(d2.equals(d));\r\n\r\n\r\n }", "public static void main(String[] args) {\n String eName = \"Edison\";\n int eAge = 4;\n double eWeight = 13.4;\n\n String tesName = \"Tesla\";\n int tesAge = 7;\n double tesWeight = 6.9;\n\n // Object WITHOUT constructor\n Cat ncEdison = new Cat();\n ncEdison.name = \"Edison\";\n ncEdison.age = 4;\n ncEdison.weight = 13.4;\n ncEdison.printDescription();\n\n // Object WITH constructor\n Cat cTesla = new Cat(\"Tesla\", 7, 6.9);\n Cat cSpotify = new Cat(\"Spotify\", 8, 3.4);\n\n cTesla.printDescription();\n cSpotify.printDescription();\n\n Cat mystery = new Cat();\n mystery.printDescription();\n\n Dog fido = new Dog(\"Fido\", 15, 30);\n// Dog frodo = new Dog(); // No default constructor for Dog()\n\n// System.out.println(fido.weight); // Is private\n\n Journal diary = new Journal();\n diary.append(\"Today Tesla was evil\");\n diary.append(\"Today Edison was asleep\");\n String theWords = diary.getWords();\n theWords = \"_deleted by timmy\";\n\n // Static\n ElectricCharge blanket = new ElectricCharge(7);\n ElectricCharge pants = new ElectricCharge(2);\n ElectricCharge pyjamas = new ElectricCharge(5);\n ElectricCharge socks = new ElectricCharge(4);\n\n System.out.println(\"The total Charge is: \" + ElectricCharge.getTotalCharge());\n\n }", "public static void main(String[] args) {\n\t\tdog d = new dog();\n\t\t//System.out.println(d.pig);\n\t}", "public Sad() {\n }", "public Fruit() {\r\n\t}", "public DBEpisode() {}", "private void addDog() {\n\t\tfor (int i = 0; i < 5; i++) {\n\t\t\tString numID = id.get(i);\n\t\t\tString name = names.get(i);\n\t\t\tString breed = breeds.get(i);\n\t\t\tString dateBirth = date.get(i+1);\n\t\t\tString img = dogImg.get(i);\n\t\t\t\t\t\t\n\t\t\t//Adding the dogs to the list\n\t\t\tlistOfDogs.add(new Dog(app, numID, name, breed, dateBirth, img));\n\t\t}\t\t\n\t}", "public static void main(String[] args) {\n Animal A1 = new Animal(5,\"Animal\",1,\"Carnivores\",1);\n Dog d1 = new Dog(2,\"Miller\",4,\"Herbivores\",1);\n\n d1.eat();\n A1.eat();\n\n }", "public Fish() {\r\n\t}", "public Bicycle() {\n // You can also call another constructor:\n // this(1, 50, 5, \"Bontrager\");\n System.out.println(\"Bicycle.Bicycle- no arguments\");\n gear = 1;\n cadence = 50;\n speed = 5;\n name = \"Bontrager\";\n }", "public Gasto() {\r\n\t}", "public static void main(String[] args) {\n\t\tAnimal1 d=new Dog1();\n\t\td.eat();\n\t\td.makeSound();\n\t\tAnimal1 c=new Cat();\n\t\tc.eat();\n\t\tc.makeSound();\n\t}", "public Cheese() {\n\n }", "public Shot() {\n }", "@Override\r\n\tpublic Dog Clone() throws CloneNotSupportedException {\r\n\t\treturn new Poodle(this.getName(), this.getWeight(), this.getColor(), this.getGender(), this.getInfo()); \r\n\t}", "public Gov() {\n }", "public Circle(){\n }", "public Car(){\n\t\t\n\t}", "public BasicSpecies() {\r\n\r\n\t}", "public DiscreteTag(){}", "public Dragon()\n {\n // initialise instance variables\n //Hi my name is jen\n this(50, 50, 1, Color.GREEN, \"Unnamed\");\n /*x = 50;\n y = 50;\n size = 1;\n c = Color.GREEN; // INS comment here.\n health = 35;\n name = \"Unnamed\";*/\n }", "public static void main(String[] args) {\n\t\tDog dog=new Dog(12,30);\r\n\t\tLion lion=new Lion(14,100);\r\n\t\tSystem.out.println(dog.height+\" \"+dog.weight);\r\n\t\tdog.talk();\r\n\t\tSystem.out.println(lion.height+\" \"+lion.weight);\r\n\t\tlion.talk();\r\n\t\t\r\n\r\n\t}", "public static void main(String[] args) {\n\n // animal.weight = 25.3;\n // animal.age = 11;\n // System.out.println(\"animal -> \" + animal);\n\n Dog bobik = new Dog();\n bobik.setNick(\"Bobik\");\n bobik.setGender(\"male\");\n bobik.setWeight(10.0D);\n bobik.setBreed(\"Shpich\");\n bobik.age = 5;\n bobik.gender = \"netural\";\n\n // animal.say();\n bobik.say();\n\n Cat speedy = new Cat(5.25D);\n speedy.speed = \"very fast\"; // так писать нельзя\n\n bobik.walk();\n }", "public static void main(String[] args) {\n\t\tAnimal a = new Animal();\n\t\tDog d = new Dog();\n a.eat();\n d.eat();\n\t}", "public Poem(){}", "public Troop() //make a overloaded constructor \n\t{\n\t\ttroopType = \"light\"; \n\t\tname = \"Default\";\n\t\thp = 50;\n\t\tatt = 20;\n\t}", "@Override\n public String toString() {\n return \"Dog [name=\" + name + \"]\";\n }", "public Supercar() {\r\n\t\t\r\n\t}", "public HotDogStand(int standId,int noHDS)//constructor that initializes both instance variables\n{\n\tsuper();//super constructor\n\tthis.standId = standId;//refers to this stand id\n\tthis.noHDS = noHDS;// refers to this stands number of hot dogs sold\n}", "public Person() {\n\t\t\n\t}", "public Fish(String species, String desc)\n {\n super(species, desc);\n toy = \"Jesus net\";\n }", "public BuildDome(God newGod) {\n super(newGod);\n }", "public static void main(String[] args) {\n\r\n\t\tDog d = new Dog();\r\n\t\td.displayHealth(5);\r\n\t\t\r\n\t\t// Scope of an Object\r\n\t\t//Dog dog = new Dog();\r\n//\t\tAnimal dog = new Dog(); // upcasting --> internally \r\n//\t\t// upcasting is an implicit process or done automatically\r\n//\t\tDog d = (Dog)dog; // downcasting\r\n//\t\tdog.eat();\r\n//\t\td.dogData();\r\n\r\n//\t\tDog d = new Dog();\t\r\n//\t\tSystem.out.println(d.toString());// Object --> \r\n//\t\t\r\n//\t\tAnimal a = d;\r\n//\t\tSystem.out.println(a.toString());\r\n//\t\tSystem.out.println(d instanceof Dog);\r\n\t}", "public Bike(){\n\t}", "public static void main(String[] args) {\n Dog dog = new Dog(true, true, \"big\");\n System.out.println(\" \");\n Kat kat = new Kat(true, 2,true, 123, true, true, \"yes\");\n// System.out.println(dog.makeSound() + kat.makeSound());\n\n\n System.out.println(kat.catYears());\n\n System.out.println(dog.dogYears());\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n }", "private void __sep__Constructors__() {}", "public Odontologo() {\n }", "public PedometerEntity() {\n }", "public static void main(String[] args) {\n\t\t\r\n\t\tAnimal a1 = new Animal();\r\n\t\tDog d1 = (Dog)a1;\r\n\t\td1.eat();\r\n\t\td1.noise();\r\n\t\t\r\n\t}", "public Boat() {\n }", "void Dogs() {\n \n }", "public Builder setDog(com.zzsong.netty.protobuff.two.ProtoData.Dog value) {\n if (dogBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n dataBody_ = value;\n onChanged();\n } else {\n dogBuilder_.setMessage(value);\n }\n dataBodyCase_ = 3;\n return this;\n }", "public Animal(String tipo){\n\t\tthis.tipo = tipo;\n\t}", "public Tags() {\n\t\t\n\t}", "public Person(){\r\n\t\tsuper();\r\n\t}", "public Picture ()\n {\n /* not needed but use it to show students the implicit call to super()\n * child constructors always call a parent constructor \n */\n super(); \n }", "public Picture ()\n {\n /* not needed but use it to show students the implicit call to super()\n * child constructors always call a parent constructor \n */\n super(); \n }", "public static void main(String[] args) {\n\t\tObject object = new Object();\n\t\tDog dog = new Dog();\n\t\tSystem.out.print(dog.toString());\n\t}", "public God(int id,\r\n String name,\r\n String godClass,\r\n String type,\r\n int baseHealth,\r\n int healthScaling,\r\n int basePProtection,\r\n int baseMProtection,\r\n int baseMana,\r\n double baseAttackSpeed,\r\n int baseHP5,\r\n int baseMP5,\r\n double physicalProtectScaling,\r\n double magicalProtectScaling,\r\n int baseMovementSpeed,\r\n int baseDamage,\r\n double damageScaling,\r\n String pantheon,\r\n String lore\r\n )\r\n {\r\n this.mId = id;\r\n this.mName = name;\r\n this.mGodClass = godClass;\r\n this.mType = type;\r\n this.mBaseHealth = baseHealth;\r\n this.mHealthScaling = healthScaling;\r\n this.mBasePProtection = basePProtection;\r\n this.mBaseMProtection = baseMProtection;\r\n this.mBaseMana = baseMana;\r\n this.mBaseAttackSpeed = baseAttackSpeed;\r\n this.mBaseHP5 = baseHP5;\r\n this.mBaseMP5 = baseMP5;\r\n this.mPhysicalProtectScaling = physicalProtectScaling;\r\n this.mMagicalProtectScaling = magicalProtectScaling;\r\n this.mBaseMovementSpeed = baseMovementSpeed;\r\n this.mBaseDamage = baseDamage;\r\n this.mDamageScaling = damageScaling;\r\n this.mPantheon = pantheon;\r\n this.mLore = lore;\r\n }", "public static void main(String[] args) {\n Animal myAnimal = new Animal();\n myAnimal.animalSound();\n\n myAnimal = new Dog();\n myAnimal.animalSound();\n\n myAnimal = new Cat();\n myAnimal.animalSound();\n\n }", "public static void main(String[] args) {\n\t\tAnimal a = new Dog();\r\n\t\r\n\t\ta.move();\r\n\t\ta.eat(); \r\n\t\t\r\n\t\tAnimal b= new Cow();\r\n\t\tb.move();\r\n\t\tb.eat();\r\n\t\t\r\n\t}", "private Egg(String name, int turnsToHatch, int hatchEarnings, Dinosaur babyDinosaur) {\n super(name, 'O', true);\n this.turnsToHatch = turnsToHatch;\n this.hatchEarnings = hatchEarnings;\n this.babyDinosaur = babyDinosaur;\n this.age = 0;\n }", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\tBullDog b = new BullDog();\n\n\t\t\n\t}", "public ChickenAbstract(int x, int y)\n\t{\teggs= new ArrayList <EggAbstract> ();\n\n\tsetX(x);\n\tsetY(y);\n\n\t}", "public Song() {}", "public Animal(boolean randomAge, Field field, Location location, int breeding_age, int max_age, double breeding_probability, int max_litter_size)\n {\n alive = true;\n age = 0;\n if(randomAge) {\n age = rand.nextInt(max_age);\n }\n this.field = field;\n setLocation(location);\n this.breeding_age = breeding_age;\n this.max_age = max_age;\n this.breeding_probability = breeding_probability;\n this.max_litter_size = max_litter_size;\n gender = Math.random() < 0.5;\n }", "public Animal(String message){\n name=\"Bob the Animal\";\n System.out.println(message);\n }", "public Bid() {}", "public Deck()\n {\n this(1);\n }", "public Person() {}", "public Ninja(int x, int y)\r\n {\r\n super(x, y, 5);\r\n }", "public Vehicle2D() {\n }", "public PennyFarthing(int startCadence, int startSpeed) {\n // Call the parent constructor with super\n super(startCadence, startSpeed, 0, \"PennyFarthing\");\n System.out.println(\"PennyFarthing.PennyFarthing- constructor with arguments\");\n }", "public Chick() {\n\t}", "private static Dog createLabrador(){\n try {\n UtilityMethods.print(\"Creating labrador for you...!\"); \n DogGenerator dogGenerator = new DogGenerator();\n DogBuilder labradorDogBuilder = new LabradorBuilder();\n dogGenerator.setDogBuilder(labradorDogBuilder);\n dogGenerator.constructDog(\n \"Animal\",\n \"Male\",\n 20,\n \"Carnivores\"\n );\n Dog labradordog = dogGenerator.getDog();\n UtilityMethods.print(\"\\n\"); \n labradordog.eat();\n UtilityMethods.print(\"\\n\"); \n labradordog.speak();\n UtilityMethods.print(\"\\n\"); \n labradordog.walk();\n UtilityMethods.print(\"\\n\"); \n return labradordog;\n } catch (Exception e) {\n UtilityMethods.print(e.getMessage()); \n }\n return null;\n }", "public Dragon(int x,int y, int size, Color c, String n){\n this.x = x;\n this.y = y;\n this.size = size;\n this.c = c; // You saw nothing.\n health = 50;\n name = n;\n bodyX = x + size * 25;\n bodyY = y + size * 25;\n bodyWidth = size * 60;\n bodyHeight = size * 50;\n }" ]
[ "0.8538588", "0.8462893", "0.76466346", "0.76448727", "0.75504035", "0.7442643", "0.73648083", "0.7112935", "0.6899884", "0.6673389", "0.6624626", "0.65983", "0.65842664", "0.65277797", "0.65251076", "0.6503672", "0.6462843", "0.637292", "0.6274832", "0.62483406", "0.6228861", "0.6174967", "0.6151354", "0.61209774", "0.60956925", "0.60915935", "0.60682064", "0.6043553", "0.60258335", "0.5991022", "0.5971807", "0.5968384", "0.596598", "0.5895655", "0.5883856", "0.58772236", "0.58668417", "0.5855593", "0.5840224", "0.58135027", "0.5778613", "0.57563317", "0.5709098", "0.570527", "0.5690045", "0.56716675", "0.56417555", "0.56405914", "0.562048", "0.56120646", "0.5604126", "0.56026566", "0.5591957", "0.5587766", "0.5586678", "0.558274", "0.5580089", "0.5555887", "0.55417126", "0.55406594", "0.5527042", "0.5522954", "0.5505733", "0.5503714", "0.5500802", "0.55002165", "0.54976624", "0.54959595", "0.5490923", "0.54878235", "0.5482909", "0.5482553", "0.5475395", "0.54609555", "0.5459264", "0.545845", "0.5457373", "0.5451847", "0.54489946", "0.54479194", "0.54479194", "0.54454994", "0.5441115", "0.5433694", "0.5428199", "0.54279095", "0.54228777", "0.54146475", "0.5406137", "0.53955823", "0.5394849", "0.5394416", "0.5394082", "0.53910613", "0.5388329", "0.53879774", "0.5382938", "0.5382879", "0.5375204", "0.53734326" ]
0.66505814
10
Go through both linked lists at the same time and append the correct node to a new linked list. Use a dummy head and return head.next at the end. Time complexity: O(n)
public ListNode mergeTwoLists(ListNode l1, ListNode l2) { ListNode head = new ListNode(0); ListNode l3 = head; while (l1 != null && l2 != null) { if (l1.val <= l2.val) { l3.next = l1; l1 = l1.next; } else { l3.next = l2; l2 = l2.next; } l3 = l3.next; } while (l1 != null) { l3.next = l1; l1 = l1.next; l3 = l3.next; } while (l2 != null) { l3.next = l2; l2 = l2.next; l3 = l3.next; } return head.next; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static Node MergeLists(Node headA, Node headB) {\n\t Node current1=headA;\r\n\t Node current2=headB;\r\n\t Node head3=null;\r\n\t Node current3 = head3;\r\n\t while(current1!=null && current2!=null){\r\n\t if(current1.data < current2.data){\r\n\t Node temp=new Node();\r\n\t temp.data = current1.data;\r\n\t\t\t\tif(head3==null){\r\n\t\t\t\t\thead3=temp;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcurrent3=head3;\r\n\t\t\t\t\twhile(current3.next!=null)\r\n\t\t\t\t\t\tcurrent3=current3.next;\r\n\t\t\t\t\tcurrent3.next=temp;\r\n\t\t\t\t}\r\n\t current1=current1.next;\r\n\t }\r\n\t else{\r\n\t // current3.data=current2.data;\r\n\t Node temp=new Node();\r\n\t temp.data = current2.data;\r\n\t\t\t\tif(head3==null){\r\n\t\t\t\t\thead3=temp;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tcurrent3=head3;\r\n\t\t\t\t\twhile(current3.next!=null)\r\n\t\t\t\t\t\tcurrent3=current3.next;\r\n\t\t\t\t\tcurrent3.next=temp;\r\n\t\t\t\t}\r\n\t current2=current2.next;\r\n\t }\r\n\t \r\n\t }\r\n\t while(current1!=null){\r\n\t \tNode temp=new Node();\r\n temp.data = current1.data;\r\n\t\t\tif(head3==null){\r\n\t\t\t\thead3=temp;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcurrent3=head3;\r\n\t\t\t\twhile(current3.next!=null)\r\n\t\t\t\t\tcurrent3=current3.next;\r\n\t\t\t\tcurrent3.next=temp;\r\n\t\t\t}\r\n current1=current1.next;\r\n\t }\r\n\t while(current2!=null){\r\n\t \tNode temp=new Node();\r\n temp.data = current2.data;\r\n\t\t\tif(head3==null){\r\n\t\t\t\thead3=temp;\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tcurrent3=head3;\r\n\t\t\t\twhile(current3.next!=null)\r\n\t\t\t\t\tcurrent3=current3.next;\r\n\t\t\t\tcurrent3.next=temp;\r\n\t\t\t}\r\n current2=current2.next;\r\n\t }\r\n\t return head3;\r\n\t}", "Node MergeLists(Node headA, Node headB) { \n \n if(headA==null && headB==null) return null;\n if(headA==null) return headB;\n if(headB==null) return headA;\n\t\n\tNode start = new Node();\n\tNode curr = start;\n \n while(headA!=null && headB!=null) {\n if(headA.data < headB.data) {\n curr.next = headA;\n headA = headA.next;\n } else {\n curr.next = headB;\n headB = headB.next;\n }\n curr = curr.next;\n }\n \n if(headB!=null) curr.next=headB;\n if(headA!=null) curr.next=headA;\n\treturn start.next;\n}", "public ListNode mergeTwoListsWithExtraLinkedList(ListNode l1, ListNode l2) {\n ListNode dummy=new ListNode();\n ListNode curr=dummy,temp;\n while(l1!=null && l2!=null){\n if(l1.val<l2.val){\n temp=new ListNode(l1.val);\n l1=l1.next;\n }\n else{\n temp=new ListNode(l2.val);\n l2=l2.next;\n }\n curr.next=temp;\n curr=curr.next;\n }\n while(l1!=null){\n curr.next=new ListNode(l1.val);\n l1=l1.next;\n curr=curr.next;\n }\n while(l2!=null){\n curr.next=new ListNode(l2.val);\n l2=l2.next;\n curr=curr.next;\n }\n return dummy.next;\n }", "public void merge(ListNode head1, ListNode head2) {\n ListNode dummy = new ListNode(0);\n \n ListNode cur = dummy;\n \n while (head1 != null && head2 != null) {\n // 注意这里容易出错。head1要先指向它的下一个,再处理head2,否则cur.next=head2这里会改掉\n // head1的指向.\n cur.next = head1;\n cur = cur.next;\n head1 = head1.next;\n \n cur.next = head2;\n cur = cur.next;\n head2 = head2.next;\n }\n \n if (head1 != null) {\n cur.next = head1;\n } else {\n cur.next = head2;\n }\n }", "public static ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n if(l1 == null) {\n return l2;\n }\n\n if(l2 == null) {\n return l1;\n }\n ListNode newList;\n\n if(l1.val < l2.val) {\n newList = l1;\n\n l1 = l1.next;\n } else {\n newList = l2;\n l2 = l2.next;\n }\n\n ListNode head = newList;\n\n while (l1 != null && l2 != null) {\n if(l1.val < l2.val) {\n newList.next = l1;\n newList = newList.next;\n l1 = l1.next;\n } else {\n newList.next = l2;\n newList = newList.next;\n l2 = l2.next;\n }\n }\n\n if(l1 == null){\n newList.next = l2;\n } else {\n newList.next = l1;\n }\n\n return head;\n }", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n if(l1 == null) {\n return l2;\n }\n\n if(l2 == null) {\n return l1;\n }\n\n ListNode head = null;\n ListNode current = null;\n while(l1 != null && l2 != null) {\n\n if(l1.val < l2.val) {\n if(head == null) {\n head = current = l1;\n } else {\n current.next = l1;\n current = current.next;\n }\n l1 = l1.next;\n } else {\n if(head == null) {\n head = current = l2;\n } else {\n current.next = l2;\n current = current.next;\n }\n l2 = l2.next;\n }\n }\n\n if(l1 == null) {\n current.next = l2;\n }\n\n if(l2 == null) {\n current.next = l1;\n }\n\n return head;\n }", "public static LinkedList merge(LinkedList one, LinkedList two) {\r\n\r\n Node current = one.head;\r\n Node placeHolder1 = current;\r\n Node placeholder2 = two.head;\r\n\r\n if (one.head == null) {\r\n return two;\r\n\r\n } else if (two.head == null) {\r\n return one;\r\n\r\n }\r\n\r\n while (current != null && placeholder2 != null && placeHolder1 != null) {\r\n placeHolder1 = current.next;\r\n current.next = placeholder2;\r\n current = current.next;\r\n placeholder2 = current.next;\r\n\r\n if (placeHolder1 != null) {\r\n current.next = placeHolder1;\r\n current = current.next;\r\n }\r\n }\r\n return one;\r\n\r\n }", "public static ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n ListNode dummy = new ListNode(-1), cur = dummy;\n while (l1 != null && l2 != null) {\n if (l1.val < l2.val) {\n cur.next = l1;\n l1 = l1.next;\n } else {\n cur.next = l2;\n l2 = l2.next;\n }\n cur = cur.next;\n }\n cur.next = (l1 != null) ? l1 : l2;\n return dummy.next;\n }", "void merge(ListNode curr1, ListNode curr2) {\n while (curr1 != null) {\n ListNode next1 = curr1.next, next2 = curr2.next;\n curr1.next = curr2;\n if (next1 == null)\n break;\n curr2.next = next1;\n curr1 = next1;\n curr2 = next2;\n }\n }", "public static NodoListaS append(NodoListaS p1, NodoListaS p2) {\r\n\t\tNodoListaS r = new NodoListaS(null,null);\r\n\t\t// nodo generatore\r\n\t\tNodoListaS t = r;\r\n\t\tNodoListaS q = p1;\r\n\t\twhile (q != null) {\r\n\t\t\tt.next = new NodoListaS(q.info,null);\r\n\t\t\tq = q.next;\r\n\t\t\tt = t.next;\r\n\t\t}\r\n\t\tq = p2;\r\n\t\twhile (q != null) {\r\n\t\t\tt.next = new NodoListaS(q.info,null);\r\n\t\t\tq = q.next;\r\n\t\t\tt = t.next;\r\n\t\t}\r\n\t\treturn r.next;\r\n\t}", "public ListNode mergeTwoListsIterative(ListNode l1, ListNode l2) {\n ListNode dummy=new ListNode();\n ListNode curr=dummy;\n while(l1!=null && l2!=null){\n if(l1.val<l2.val){\n curr.next=l1;\n l1=l1.next;\n curr=curr.next;\n }\n else{\n curr.next=l2;\n l2=l2.next;\n curr=curr.next;\n }\n }\n while(l1!=null){\n curr.next=l1;\n l1=l1.next;\n curr=curr.next;\n }\n while(l2!=null){\n curr.next=l2;\n l2=l2.next;\n curr=curr.next;\n }\n return dummy.next;\n }", "public static ListNode mergeTwoList(ListNode list1, ListNode list2){\n if (list1 == null) return list2;\n if (list2 == null) return list1;\n\n ListNode head = null;\n ListNode p = list1;\n ListNode q = list2;\n\n if (p.val <= q.val) {\n head = p;\n p = p.next;\n }\n else {\n head = q;\n q = q.next;\n }\n ListNode point = head;\n\n while (p != null && q != null){\n if (p.val <= q.val){\n point.next = p;\n p = p.next;\n\n }else {\n point.next = q;\n q = q.next;\n\n }\n point = point.next;\n }\n\n if (p == null){\n point.next = q;\n }else {\n point.next = p;\n }\n\n return head;\n }", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n ListNode prehead = new ListNode(-1);\n\n ListNode prev = prehead;\n while (l1 != null && l2 != null) {\n if (l1.val <= l2.val) {\n prev.next = l1;\n l1 = l1.next;\n } else {\n prev.next = l2;\n l2 = l2.next;\n }\n prev = prev.next;\n }\n\n // exactly one of l1 and l2 can be non-null at this point, so connect\n // the non-null list to the end of the merged list.\n prev.next = l1 == null ? l2 : l1;\n\n return prehead.next;\n }", "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 }", "public static ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n if (l1 == null || l2 == null)\n return l1 != null ? l1 : l2;\n\n ListNode dummy = new ListNode(-1);\n ListNode prev = dummy, c1 = l1, c2 = l2;\n\n while (c1 != null && c2 != null) {\n if (c1.val <= c2.val) {\n prev.next = c1;\n c1 = c1.next;\n } else {\n prev.next = c2;\n c2 = c2.next;\n }\n prev = prev.next;\n }\n\n prev.next = c1 != null ? c1 : c2;\n ListNode head = dummy.next;\n dummy.next = null; // delete dummy;\n return head;\n }", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n ListNode dummyHead = new ListNode(0);\n ListNode endOfSortedList = dummyHead;\n\n while (l1 != null && l2 != null) {\n if (l1.val < l2.val) {\n endOfSortedList.next = l1;\n l1 = l1.next;\n } else {\n endOfSortedList.next = l2;\n l2 = l2.next;\n }\n\n endOfSortedList = endOfSortedList.next;\n }\n\n if (l1 != null) {\n endOfSortedList.next = l1;\n }\n\n if (l2 != null) {\n endOfSortedList.next = l2;\n }\n\n return dummyHead.next;\n }", "public static ListNode mergeSortedList(ListNode headOne, ListNode headTwo){\n\t\tListNode dummy = new ListNode(-1);\n\t\tListNode current = dummy;\n\t\t\n\t\twhile(headOne != null && headTwo != null){\n\t\t\tif(headOne.value < headTwo.value){\n\t\t\t\tcurrent.next = headOne;\n\t\t\t\theadOne = headOne.next;\n\t\t\t}else{\n\t\t\t\tcurrent.next = headTwo;\n\t\t\t\theadTwo = headTwo.next;\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tif(headOne != null){\n\t\t\tcurrent.next = headOne;\n\t\t}else{\n\t\t\tcurrent.next = headTwo;\n\t\t}\n\t\t\n\t\treturn current.next;\n\t}", "public Node merge(Node h1, Node h2) {\n\t\tNode dummy = new Node();\r\n\t\tNode temp = dummy;\r\n\t\twhile(true) {\r\n\t\t\t// if it is equal to null basically it is a empty link\r\n\t\t\tif(h1 == null) {\r\n\t\t\t\ttemp.next = h2;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif(h2 == null) {\r\n\t\t\t\ttemp.next = h1;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\tif(h1.data <= h2.data) { // while if h1 is bigger than h2 than need to store h1 inside\r\n\t\t\t\ttemp.next = h1;\r\n\t\t\t\th1 = h1.next;\r\n\t\t\t}else {\r\n\t\t\t\ttemp.next = h2;\r\n\t\t\t\th2 = h2.next;\r\n\t\t\t}\r\n\t\t\ttemp = temp.next;\r\n\t\t}\r\n\t\treturn dummy.next;\r\n\t}", "public Node createSecondList(Node head) {\n\t\tif (head != null) {\n\t\t\t\n\t\t\t//Copying a List\n\t\t\tNode temp = head;\n\t\t\tNode secondHead = new Node(head);\n\t\t\tNode temp1 = secondHead;\n\t\t\twhile (temp.getNext() != null) {\n\t\t\t\ttemp = temp.getNext();\n\t\t\t\ttemp1.setNext(new Node(temp));\n\t\t\t\ttemp1 = temp1.getNext();\n\t\t\t}\n\n\t\t\t//Revering new list\n\t\t\tNode firstNode = secondHead;\n\t\t\tNode secondNode = secondHead;\n\t\t\tNode result = null;\n\t\t\twhile (firstNode != null) {\n\t\t\t\tsecondNode = firstNode.getNext();\n\t\t\t\tfirstNode.setNext(result);\n\t\t\t\tresult = firstNode;\n\t\t\t\tfirstNode = secondNode;\n\t\t\t}\n\t\t\tsecondHead = result;\n\t\t\treturn secondHead;\n\t\t}\n\t\treturn null;\n\n\t}", "public void solution2(LinkedListNode head){\n if(head==null)\n return;\n LinkedListNode current=head;\n while(current!=null){\n LinkedListNode runner=current;\n while(runner.next!=null){\n if(runner.next.data==current.data)\n runner.next=runner.next.next;\n else\n runner=runner.next;\n }\n current=current.next;\n }\n }", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\n\t\t//The base condition if one of the list is empty so then return the other list as it is.\n\t\tif (l1 == null) return l2;\n\t\tif (l2 == null) return l1;\n\t\t//Intializing the head of the ans\n\t\tListNode ans = l1;\n\t\tif (l2.val < l1.val) {\n\t\t\tans = l2;\n\t\t\tl2 = l2.next;\n\t\t} else l1 = l1.next;\n\t\t//Initializing ans in another variable so that it should'nt get lost.\n\t\tListNode ans2 = ans;\n\t\twhile (l1 != null && l2 != null) {\n\t\t\tif (l1.val <= l2.val) {\n\t\t\t\tans.next = l1;\n\t\t\t\tl1 = l1.next;\n\t\t\t\tans = ans.next;\n\t\t\t} else {\n\t\t\t\tans.next = l2;\n\t\t\t\tl2 = l2.next;\n\t\t\t\tans = ans.next;\n\t\t\t}\n\t\t}\n\t\t//if list are not same then one list will be left to traverse\n\t\tif (l1 == null && l2 != null) ans.next = l2;\n\t\tif (l2 == null && l1 != null) ans.next = l1;\n\t\treturn ans2;\n\t}", "public static Node copyRandomList2(Node head) {\n\n\t\t//setting up duplicate nodes in between\n\t\tif (head == null) return head;\n\t\tNode curr = head;\n\t\twhile (curr != null) {\n\t\t\tNode node = new Node(curr.val);\n\t\t\tNode next = curr.next;\n\t\t\tcurr.next = node;\n\t\t\tnode.next = next;\n\t\t\tcurr = next;\n\t\t}\n\n\t\t//setting up random for duplicates\n\t\tNode p = head;\n\t\twhile (p != null) {\n\t\t\tcurr = p.next;\n\t\t\tcurr.random = p.random == null ? null : p.random.next;\n\t\t\tp = curr.next;\n\t\t}\n\n\t\t//removing the duplicate list of nodes from the modified\n\t\tNode res = new Node(-1), prev = res;\n\t\tp = head;\n\t\twhile (p != null) {\n\t\t\tcurr = p.next;\n\t\t\tprev.next = curr;\n\t\t\tprev = curr;\n\t\t\tp.next = p.next.next;\n\t\t\tp = p.next;\n\t\t}\n\t\treturn res.next;\n\t}", "public static ListNode mergeTwoLists2(ListNode l1, ListNode l2) {\n ListNode prehead = new ListNode(-1);\n\n ListNode prev = prehead;\n while (l1 != null && l2 != null) {\n if (l1.val <= l2.val) {\n prev.next = l1;\n l1 = l1.next;\n } else {\n prev.next = l2;\n l2 = l2.next;\n }\n prev = prev.next;\n }\n\n // exactly one of l1 and l2 can be non-null at this point, so connect\n // the non-null list to the end of the merged list.\n prev.next = l1 == null ? l2 : l1;\n\n return prehead.next;\n\n }", "public void add(LinkedListInt other) {\nthis.size += other.size;\nNode current = head;\nif(head == null) {\nhead = other.head;\nreturn;\n}\nwhile(current.next != null)\ncurrent = current.next;\ncurrent.next = other.head;\n}", "@Test\n public void testAppends(){\n DoubleLinkedList<Integer> list1 = new DoubleLinkedList<Integer>();\n DoubleLinkedList<Integer> list2 = new DoubleLinkedList<Integer>();\n DoubleLinkedList<Integer> list3 = new DoubleLinkedList<Integer>();\n //builing of lists\n list1.addToFront(1);\n list1.addToFront(2);\n list1.addToFront(3);\n list2.addToFront(4);\n list2.addToFront(5);\n list2.addToFront(6);\n list3.addToFront(4);\n list3.addToFront(5);\n list3.addToFront(6);\n list3.addToFront(1);\n list3.addToFront(2);\n list3.addToFront(3);\n list1.append(list2);\n assertTrue(\"testing append with two lists\", list1.equals(list3));\n }", "public Node method1(Node head) {\n Node fastPointer = head;\n Node slowPointer = head;\n\n while (fastPointer != null && fastPointer.next != null) {\n fastPointer = fastPointer.next.next;\n slowPointer = slowPointer.next;\n }\n\n return slowPointer;\n }", "public static void main(String[] args) {\n// ListNode listNode = linkedList.reverseList(linkedList.getHead());\n// linkedList.setHead(listNode);\n// linkedList.list();\n LinkedList list1 = new LinkedList();\n LinkedList list2 = new LinkedList();\n list1.add(2);\n list1.add(4);\n list1.add(3);\n\n list2.add(5);\n list2.add(6);\n list2.add(4);\n\n ListNode listNode = list1.addTwoNumbers(list1.getHead(), list2.getHead());\n System.out.println(listNode);\n\n }", "public ListNode swapPairs(ListNode head) {\n if(head == null)\n return head;\n \n \n int count = 0;\n ListNode h = head;\n ListNode end = head;\n ListNode preH = null;\n\n // we prefer to track a linked list using a head and a tail\n ListNode newHead = null;\n ListNode newTail = null;\n \n while(end != null)\n {\n count = 0;\n while(count < 2 && end != null)\n {\n count++;\n end = end.next;\n }\n \n if(count == 2)\n {\n ListNode temp = helper(preH, h, end);\n if(newHead == null)\n {\n newHead = temp;\n newTail = h;\n }else\n {\n newTail.next = temp; //link to the existing linked list\n }\n \n newTail = h; // !!! update tail pointer\n h = end;\n \n }\n if(count < 2 && end == null)\n {\n break;\n }\n \n /*\n if(count == 2 && end == null)\n {\n ListNode temp = helper(preH, h, end);\n if(newHead == null)\n {\n newHead = temp;\n newTail = h;\n }else\n {\n newTail.next = temp;\n \n }\n \n newTail = h; \n h = end;\n }\n */\n }\n \n if(newHead != null)\n return newHead;\n return head;\n }", "public ListNode mergeTwoLists(ListNode l1, ListNode l2) {\r\n if (l1==null) {\r\n\t\t\treturn l2;\r\n\t\t}\r\n if (l2==null) {\r\n\t\t\treturn l1;\r\n\t\t}\r\n ListNode result=new ListNode(0);\r\n ListNode head=result;\r\n while(l1!=null&&l2!=null){\r\n \tif (l1.val<=l2.val) {\r\n\t\t\t\thead.next=l1;\r\n\t\t\t\tl1=l1.next;\r\n\t\t\t}else {\r\n\t\t\t\thead.next=l2;\r\n\t\t\t\tl2=l2.next;\r\n\t\t\t}\r\n \thead=head.next;\r\n }\r\n if (l1!=null) {\r\n\t\t\thead.next=l1;\r\n\t\t}\r\n if (l2!=null) {\r\n\t\t\thead.next=l2;\r\n\t\t}\r\n \r\n return result.next;\r\n }", "public Node updateLinks(Node newNode)\n\t{\n\t\tint ownHash = nodeLinks.getThis().getHash();\n\t\tint newHash = newNode.getHash();\n\t\tint nextHash = nodeLinks.getNext().getHash();\n\t\tint prevHash = nodeLinks.getPrev().getHash();\n\t\t\n\t\tif(nodeLinks.getThis().equals(nodeLinks.getNext()) && nodeLinks.getThis().equals(nodeLinks.getPrev()))\n\t\t{\n\t\t\tsetLinkedNodes(newNode, newNode);\t\t//Second node will be next and previous node\n\t\t\treturn nodeLinks.getThis();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t//New node comes between this node and the next node\n\t\t\tif(((ownHash < newHash) && (newHash < nextHash)) || ((nextHash < ownHash) && (ownHash < newHash)) || ((nextHash < ownHash) && (newHash < nextHash))) \n\t\t\t{\n\t\t\t\tNode oldNext = nodeLinks.getNext();\t//Make temporary node to return later\n\t\t\t\tnodeLinks.setNext(newNode);\t\t\t//Set the new node as nextNode\n\t\t\t\treturn oldNext;\t\t\t\t\t\t//Return this nodes old nextNode so it can be the nextNode of the new node \n\t\t\t} \n\t\t\t//New node comes right before this node\n\t\t\telse if(((prevHash < newHash) && (newHash < ownHash)) || ((ownHash < prevHash) && (newHash < ownHash)) || ((ownHash < prevHash) && (prevHash < newHash))) \n\t\t\t{\n\t\t\t\tnodeLinks.setPrev(newNode);\t\t\t//Set the new node as prevNode\n\t\t\t\treturn null;\t\t\t\t\t\t//No return to new node needed as it learns everything from the old prevNode\n\t\t\t}\n\t\t\telse \n\t\t\t{\n\t\t\t\treturn null;\t\t\t\t\t\t//No return because new node is not near this node\n\t\t\t}\n\t\t}\n\t}", "public static void soo(Nodelink l1, Nodelink l2){\n Nodelink head = null;\n\n if (l1.data < l2.data) {\n head = l1;\n l1 = l1.next;\n }\n else {\n head = l2;\n l2 = l2.next;\n }\n Nodelink p = head;\n while (l1 != null && l2 != null){\n if (l1.data < l2.data)\n {\n p.next = l1;\n l1 = l1.next;\n }\n else\n {\n p.next = l2;\n l2 = l2.next;\n }\n\n p = p.next;\n }\n\n if (l1 == null)\n p.next = l2;\n if (l2 == null)\n p.next = l1;\n\n foo(head);\n\n\n\n }", "public ListNode merge(ListNode left, ListNode right){\n ListNode head = new ListNode(0);\n ListNode p = head;\n while(left!=null&&right!=null){\n if(left.val<right.val){\n p.next = left;\n left = left.next;\n }\n else{\n p.next = right;\n right = right.next;\n }\n p = p.next;\n }\n if(left!=null){\n p.next = left;\n }\n if(right!=null){\n p.next = right;\n }\n // p.next=null;//不需要,原始节点会有next null信息\n return head.next;\n\n\n }", "private static DoublyLinkedListNode copyList(DoublyLinkedListNode head)\n {\n Map<Integer, DoublyLinkedListNode> prev = new HashMap<>();\n //Save given list head\n DoublyLinkedListNode origHead = head;\n //start building the new list with next pointers, at each step save the newly created node\n DoublyLinkedListNode newHead = null;\n if (head != null) {\n newHead = new DoublyLinkedListNode(head.getValue(), null, null);\n prev.put(newHead.getValue(), newHead);\n head = head.getNext();\n }\n\n DoublyLinkedListNode temp = newHead;\n while (head != null) {\n DoublyLinkedListNode node = new DoublyLinkedListNode(head.getValue(), null, null);\n prev.put(node.getValue(), node);\n temp.setNext(node);\n temp = node;\n head = head.getNext();\n }\n\n //Now traverse the original list, get the key of prev node and look in the map for corresponding new Node\n //update previous\n temp = newHead;\n while (origHead != null) {\n DoublyLinkedListNode prevNode = prev.get(origHead.getPrev().getValue());\n temp.setPrev(prevNode);\n origHead = origHead.getNext();\n temp = temp.getNext();\n }\n return newHead;\n }", "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 static ListNode mergeSorted(ListNode l1, ListNode l2){\n \n// if(l1==null){\n// return l2;\n// }\n// \n// if(l2==null)\n// return l1;\n// \n// if(l1.val<l2.val){\n// l1.next = mergeSorted(l1.next,l2);\n// return l1;\n// }else{\n// l2.next = mergeSorted(l1,l2.next);\n// return l2;\n// }\n \t\n \tListNode dummy = new ListNode(0);\n \tListNode tail = dummy;\n \t\n \twhile(l1!=null&&l2!=null){\n \t\tif(l1.val<l2.val){\n \t\t\ttail.next = l1;\n \t\t\tl1=l1.next;\n \t\t}else{\n \t\t\ttail.next = l2;\n \t\t\tl2=l2.next;\n \t\t}\n \t\ttail = tail.next;\n \t}\n \t\n \tif(l1!=null){\n \t\ttail.next=l1;\n \t}else if(l2!=null){\n \t\ttail.next=l2;\n \t}\n \t\n \treturn dummy.next;\n }", "public static ListNode merge(ListNode l1, ListNode l2) {\n if (l1 == null) return l2;\n if (l2 == null) return l1;\n if (l1.val < l2.val) {\n l1.next = merge(l1.next, l2);\n return l1;\n } else {\n l2.next = merge(l1, l2.next);\n return l2;\n }\n }", "public static SinglyLinkedList merge(SinglyLinkedList list1, SinglyLinkedList list2)\n\t{\n\t\tSinglyLinkedList list3 = new SinglyLinkedList();\n\t\tint i = 0;\n\t\tint j = 0;\n\t\twhile((i < list1.size()) && (j < list2.size()))\n\t\t{\n\t\t\tif(list1.getElementAt(i) < list2.getElementAt(j))\n\t\t\t{\n\t\t\t\tlist3.addLast(list1.getElementAt(i));\n\t\t\t\ti++;\n\t\t\t}\n\t\t\telse if(list1.getElementAt(i) > list2.getElementAt(j))\n\t\t\t{\n\t\t\t\tlist3.addLast(list2.getElementAt(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t\telse if(list1.getElementAt(i) == list2.getElementAt(j))\n\t\t\t{\n\t\t\t\tlist3.addLast(list2.getElementAt(j));\n\t\t\t\tj++;\n\t\t\t}\n\t\t}\n\t\tif(i == list1.size())\n\t\t{\n\t\t\tfor(int k = j; k < list2.size(); k++)\n\t\t\t{\n\t\t\t\tlist3.addLast(list2.getElementAt(k));\n\t\t\t}\n\t\t}\n\t\telse if(j == list2.size())\n\t\t{\n\t\t\tfor(int l = i; l < list1.size(); l++)\n\t\t\t{\n\t\t\t\tlist3.addLast(list1.getElementAt(l));\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn list3;\n\t}", "public Node mergeTwoSortedLinkedList(Node h1, Node h2) {\n if (h1 == null || h2 == null) {\n return h1 != null ? h1 : h2;\n }\n Node S, P, Q;\n if (h1.data > h2.data) {\n S = h2;\n P = h1;\n Q = S.next;\n } else {\n S = h1;\n P = S.next;\n Q = h2;\n }\n Node dummyNode = new Node(S.data);\n Node current = dummyNode;\n while (P != null && Q != null) {\n if (P.data > Q.data) {\n S = Q;\n Q = Q.next;\n } else {\n S = P;\n P = P.next;\n }\n current.next = S;\n current = current.next;\n }\n Node remainingNode = (P == null) ? Q : P;\n while (remainingNode != null) {\n current.next = remainingNode;\n current = current.next;\n remainingNode = remainingNode.next;\n }\n return dummyNode;\n }", "Node merge(Node first, Node second) {\n // If first linked list is empty\n if (first == null) {\n return second;\n }\n \n // If second linked list is empty\n if (second == null) {\n return first;\n }\n \n // Pick the smaller value\n if (first.data < second.data) {\n first.next = merge(first.next, second);\n first.next.prev = first;\n first.prev = null;\n return first;\n } else {\n second.next = merge(first, second.next);\n second.next.prev = second;\n second.prev = null;\n return second;\n }\n }", "public static ListAdd.ListNode addTwoNumbers(ListAdd.ListNode l1, ListAdd.ListNode l2) {\n if (l1 == null)\n return l2;\n if (l2 == null)\n return l1;\n ListAdd.ListNode res = null, head = null;\n int total = 0;\n int carry = 0;\n while (l1 != null && l2 != null) {\n if (res == null) {\n total = (l1.val + l2.val);\n carry = total / 10;\n res = new ListAdd.ListNode(total % 10); //13 % 10 = 3\n head = res;\n } else {\n total = (l1.val + l2.val + carry);\n carry = total / 10;\n\n res.next = new ListAdd.ListNode(total % 10);\n res = res.next;\n }\n l1 = l1.next;\n l2 = l2.next;\n }\n while (l1 != null) {\n total = (l1.val + carry);\n carry = total / 10;\n res.next = new ListAdd.ListNode(total % 10);\n res = res.next;\n l1 = l1.next;\n }\n while (l2 != null) {\n total = (l2.val + carry);\n carry = total / 10;\n res.next = new ListAdd.ListNode(total % 10);\n res = res.next;\n l2 = l2.next;\n }\n if (carry > 0) {\n res.next = new ListAdd.ListNode(carry);\n }\n return head;\n }", "public ListNode merge(ListNode h1, ListNode h2){\r\n if(h1 == null){\r\n return h2;\r\n }\r\n if(h2 == null){\r\n return h1;\r\n }\r\n \r\n if(h1.val < h2.val){\r\n h1.next = merge(h1.next, h2);\r\n return h1;\r\n }\r\n else{\r\n h2.next = merge(h1, h2.next);\r\n return h2;\r\n }\r\n \r\n }", "public static Node CopyList(Node head)\n {\n Node current = head; // used to iterate over original list\n Node newList = null; // head of the new list\n Node tail = null; // point to last node in new list\n \n while (current != null)\n {\n // special case for the first new node\n if (newList == null)\n {\n newList = new Node(current.data, newList);\n tail = newList;\n }\n else\n {\n // add each node at tail\n tail.next = new Node(current.data, tail.next);\n \n // advance the tail to new last node\n tail = tail.next;\n }\n current = current.next;\n }\n \n return newList;\n }", "public RandomListNode copyRandomList2(RandomListNode head){\n RandomListNode currP = head;\n \n //copy the node\n while(currP != null){\n RandomListNode tmp = new RandomListNode(currP.label);\n tmp.next = currP.next;\n currP.next = tmp;\n currP = tmp.next;\n }\n \n currP = head;\n //copy the random pointer\n while(currP != null){\n \n if(currP.random != null){\n currP.next.random = currP.random.next; \n }\n \n currP = currP.next.next;\n }\n \n //decouple the list\n RandomListNode safehead = new RandomListNode(0);\n RandomListNode p = safehead;\n currP = head;\n \n while(currP != null){\n p.next = currP.next;\n currP.next = currP.next.next;\n currP = currP.next;\n p = p.next;\n }\n \n return safehead.next;\n }", "public ListNode addTwoNumbers(ListNode l1, ListNode l2) {\n Stack<Integer> s1 = new Stack<>();\n Stack<Integer> s2 = new Stack<>();\n while (l1 != null) {\n s1.push(l1.val);\n l1 = l1.next;\n }\n while (l2 != null) {\n s2.push(l2.val);\n l2 = l2.next;\n }\n ListNode current = new ListNode(0);\n int overflow = 0;\n while (!s1.empty() || !s2.empty()) {\n int x = (!s1.empty()) ? s1.pop() : 0;\n int y = (!s2.empty()) ? s2.pop() : 0;\n int value = overflow + x + y;\n overflow = value / 10;\n current.val = value % 10;\n ListNode temp = new ListNode(overflow);\n temp.next = current;\n current = temp;\n }\n return current.val == 0 ? current.next : current;\n}", "public ListNode mergeTwoListsRecursion(ListNode l1, ListNode l2) {\n if(l1==null)return l2;\n if(l2==null)return l1;\n if(l1.val<l2.val){\n l1.next=mergeTwoListsRecursion(l1.next,l2);\n return l1;\n }\n else{\n l2.next=mergeTwoLists(l1,l2.next);\n return l2;\n }\n }", "public static ListNode addTwoNumbers(ListNode l1, ListNode l2) {\r\n\t\tif (l1==null) {\r\n\t\t\treturn l2;\r\n\t\t}\r\n\t\tif (l2==null) {\r\n\t\t\treturn l1;\r\n\t\t}\r\n ListNode pre=new ListNode(0);\r\n ListNode head=pre;\r\n int temp=0;\r\n //temp不等于0就是为了处理进位\r\n while(l1!=null||l2!=null||temp!=0){\r\n \tListNode cur = new ListNode(0);\r\n \tint sum=((l1==null)?0:l1.val)+((l2==null)?0:l2.val)+temp;\r\n \tcur.val=sum%10;\r\n \ttemp=sum/10;\r\n \tpre.next=cur;\r\n \tpre=cur;\r\n \tl1=(l1==null)?l1:l1.next;\r\n \tl2=(l2==null)?l2:l2.next;\r\n }\r\n return head.next;\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 }", "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 ListNode merge2(ListNode l1,ListNode l2){\n if(l1==null) return l2;\n if(l2==null) return l1;\n if(l1.getVal()<l2.getVal()){\n l1.next=merge2(l1.next,l2);\n return l1;\n }else{\n l2.next=merge2(l1,l2.next);\n return l2;\n }\n }", "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 }", "static void addToLinkedList(Node head, Node node){\n if (head.getRight()==null){\n node.setRight(node);\n head = node;\n }\n else if (head.getRight()==head){\n node.setLeft(head);\n node.setRight(node);\n head.setRight(node);\n }\n else {\n node.setRight(node);\n Node lastNode = head.getRight();\n while(lastNode.getRight()!=lastNode){\n node.setLeft(lastNode);\n lastNode = lastNode.getRight();\n }\n node.getLeft().setRight(node);\n }\n }", "public ListNode swapNodes(ListNode head, int v1, int v2) {\n ListNode start = new ListNode(0);\n start.next = head;\n ListNode preOne = null;\n ListNode preTwo = null;\n\n ListNode search = start;\n\n while (search.next != null) {\n ListNode next = search.next;\n if (next.val == v1) {\n preOne = search;\n }\n if (next.val == v2) {\n preTwo = search;\n }\n search = next;\n }\n if (preOne == null || preTwo == null) {\n return start.next;\n }\n\n\n ListNode one = preOne.next;\n ListNode two = preTwo.next;\n if (two.next == one) {\n preTwo.next = one;\n two.next = one.next;\n one.next = two;\n return start.next;\n } else if (one.next == two) {\n preOne.next = two;\n one.next = two.next;\n two.next = one;\n return start.next;\n }\n ListNode befone = preOne.next.next;\n ListNode beftwo = preTwo.next.next;\n one.next = beftwo;\n two.next = befone;\n preOne.next = two;\n preTwo.next = one;\n return start.next;\n }", "private void moveMatchingNodeToNextElement(Node tmp) {\n for (int i = 0; i < ALL_LINKED_LISTS.size();i++) {\n Node next = ALL_LINKED_LISTS.get(i);\n if (tmp.equals(next)) {\n next = next.next;\n ALL_LINKED_LISTS.put(i, next);\n break;\n }\n }\n }", "public static LinkedList.LL merge(LinkedList.LL ll1, LinkedList.LL ll2) {\n LinkedList.Node n1 = ll1.head;\n LinkedList.Node n2 = ll2.head;\n LinkedList.Node prev = null;\n System.out.println(\"-------------------------------------------------\");\n ll1.print();\n ll2.print();\n while (n1.next != null || n2 != null) {\n if (n1.data <= n2.data && n1.next != null) {\n prev = n1;\n n1 = n1.next;\n } else if (n1.data > n2.data) {\n if (prev != null) {\n prev.next = n2;\n } else {\n ll1.head = n2;\n }\n LinkedList.Node next = n2.next;\n n2.next = n1;\n prev = n2;\n n2 = next;\n } else if (n1.next == null) {\n n1.next = n2;\n break;\n }\n }\n System.out.println(\"-------------------------------------------------\");\n ll1.print();\n System.out.println(\"-------------------------------------------------\"); \n return ll1;\n }", "private static void insertUpdateRemoveelementInLinkedList() {\n\t\tLinkedList<Integer> list = new LinkedList<Integer>();\n\t\tlist.add(10);\n\t\tlist.add(20);\n\t\tlist.add(30);\n\t\tlist.add(40);\n\t\tlist.add(50);\n\t\tSystem.out.println(\"LinkedList is : \" + list);\n\n\t\t// insert/Update element in LinkedList\n\t\tlist.set(3, 60);\n\t\tSystem.out.println(\"Updating the LinkedList \" + list);\n\n\t\t// join Two LinkedList\n\t\tLinkedList<Integer> list1 = new LinkedList<Integer>();\n\t\tlist.add(60);\n\t\tlist.add(70);\n\t\tlist.add(80);\n\t\tlist.add(90);\n\t\tlist.add(100);\n\t\tSystem.out.println(\"LinkedList is : \" + list1);\n\n\t\tLinkedList<Integer> list2 = new LinkedList<Integer>();\n\t\tlist2.addAll(list);\n\t\tlist2.addAll(list1);\n\t\tSystem.out.println(\"join to LinkedList\" + list2);\n\n\t}", "public void swapNodes(int data1, int data2) {\n\t\tif(head == null || size == 1) {\n\t\t\tSystem.out.println(\"List is empty or only one node present!!\");\n\t\t\treturn;\n\t\t}\n\t\tNode node1 = null;\n\t\tNode node1Prev = null;\n\t\tNode node2 = null;\n\t\tNode node2Prev = null;\n\t\tNode start = head;\n\t\tif(start.data == data1) {\n\t\t\tnode1Prev = null;\n\t\t\tnode1 = start;\n\t\t}\n\t\tif(start.data == data2) {\n\t\t\tnode2Prev = null;\n\t\t\tnode2 = start;\n\t\t}\n\t\twhile(start.next != null) {\n\t\t\tif(start.next.data == data1) {\n\t\t\t\tnode1Prev = start;\n\t\t\t\tnode1 = start.next;\n\t\t\t}\n\t\t\tif(start.next.data == data2) {\n\t\t\t\tnode2Prev = start;\n\t\t\t\tnode2 = start.next;\n\t\t\t}\n\t\t\tstart = start.next;\n\t\t}\n\n\t\tif(node1 != null && node2 != null) {\n\t\t\tif(node1Prev == null) {\n\t\t\t\thead = node2;\n\t\t\t}\n\t\t\tif(node2Prev == null) {\n\t\t\t\thead = node1;\n\t\t\t}\n\t\t\tNode tempNext = node2.next;\n\t\t\tif(node1Prev != null)\n\t\t\t\tnode1Prev.next = node2;\n\t\t\tnode2.next = node1.next;\n\n\t\t\tif(node2Prev != null)\n\t\t\t\tnode2Prev.next = node1;\n\t\t\tnode1.next = tempNext;\n\t\t}\n\t}", "public static MyLinkedList add(MyLinkedList list1, MyLinkedList list2){\n //first reverse both the list, so that unit place can come to head\n list1.reverse();\n list2.reverse();\n MyLinkedList resposne = new MyLinkedList();\n int carry = 0;\n Node cursor1 = list1.head;\n Node cursor2 = list2.head;\n while(cursor1 != null || cursor2 != null) {\n\n int sum = carry ;\n if(cursor1!=null){\n sum += cursor1.data;\n cursor1 = cursor1.next;\n }\n\n if(cursor2!=null) {\n sum += cursor2.data;\n cursor2 = cursor2.next;\n }\n\n carry = sum / 10;\n resposne.insert(sum % 10);\n\n }\n //very important to remember\n if(carry!=0){\n resposne.insert(carry);\n }\n\n resposne.reverse();\n return resposne;\n }", "@SuppressWarnings(\"unchecked\")\r\n public void weaveLists(LinkedList<T> first, LinkedList<T> second, ArrayList<LinkedList<T>> results, LinkedList<T> prefix){\n if(first.size() == 0 || second.size() == 0){\r\n LinkedList<T> result = (LinkedList<T>) prefix.clone();\r\n result.addAll(first);\r\n result.addAll(second);\r\n results.add(result);\r\n return;\r\n }\r\n\r\n // Recurse with head of first added to the prefix. Removing the head will damage first\r\n // so we need to put it back after\r\n T headFirst = first.removeFirst();\r\n prefix.addLast(headFirst);\r\n weaveLists(first, second, results, prefix);\r\n prefix.removeLast();\r\n first.addFirst(headFirst);\r\n\r\n // Do the same thing with second\r\n T headSecond = second.removeFirst();\r\n prefix.addLast(headSecond);\r\n weaveLists(first, second, results, prefix);\r\n prefix.removeLast();\r\n second.addFirst(headSecond);\r\n }", "private void removeDuplicates() {\n ListNode current = head;\n while (current != null && current.next != null) {\n if (current.data == current.next.data) {\n current.next = current.next.next;\n } else {\n current = current.next;\n }\n }\n }", "public static Node append(Node a, Node b) {\r\n // if either is null, return the other\r\n if (a == null)\r\n return (b);\r\n if (b == null)\r\n return (a);\r\n\r\n // find the last node in each using the .previous pointer\r\n Node aLast = a.left;\r\n Node bLast = b.left;\r\n\r\n // join the two together to make it connected and circular\r\n join(aLast, b);\r\n join(bLast, a);\r\n\r\n return (a);\r\n }", "public static LinkedList addLinkedLists(LinkedList lhs, LinkedList rhs) {\r\n\t\t// Check to see if either of the lists is null\r\n\t\tif (lhs != null && rhs == null) {\r\n\t\t\treturn lhs;\r\n\t\t} else if (lhs == null && rhs != null) {\r\n\t\t\treturn rhs;\r\n\t\t} else if (lhs == null && rhs == null) {\r\n\t\t\treturn null;\r\n\t\t}\r\n\r\n\t\tLinkedList result = new LinkedList();\r\n\t\tIntegerNode iter1 = lhs.getHead();\r\n\t\tIntegerNode iter2 = rhs.getHead();\r\n\r\n\t\tint sum = 0;\r\n\t\tint carry = 0;\r\n\r\n\t\twhile (iter1 != null && iter2 != null) {\r\n\t\t\tsum = iter1.getData() + iter2.getData() + carry;\r\n\t\t\tcarry = sum / 10;\r\n\t\t\tsum = sum % 10;\r\n\r\n\t\t\tresult.addToTail(new IntegerNode(sum));\r\n\t\t\titer1 = iter1.getNext();\r\n\t\t\titer2 = iter2.getNext();\r\n\t\t}\r\n\r\n\t\t// At least one of the iters is null now\r\n\t\twhile (iter1 != null) {\r\n\t\t\tsum = iter1.getData() + carry;\r\n\t\t\tcarry = sum / 10;\r\n\t\t\tsum = sum % 10;\r\n\r\n\t\t\tresult.addToTail(new IntegerNode(sum));\r\n\t\t\titer1 = iter1.getNext();\r\n\t\t}\r\n\r\n\t\twhile (iter2 != null) {\r\n\t\t\tsum = iter2.getData() + carry;\r\n\t\t\tcarry = sum / 10;\r\n\t\t\tsum = sum % 10;\r\n\r\n\t\t\tresult.addToTail(new IntegerNode(sum));\r\n\t\t\titer2 = iter2.getNext();\r\n\t\t}\r\n\r\n\t\tif (carry > 0) {\r\n\t\t\tresult.addToTail(new IntegerNode(carry));\r\n\t\t}\r\n\r\n\t\treturn result;\r\n\t}", "public ListNode mergeTwoLists(ListNode a, ListNode b) {\r\n\t\tListNode merged = new ListNode(0);\r\n\r\n\t\tListNode first = a;\r\n\t\tListNode second = b;\r\n\t\tListNode third = merged;\r\n\r\n\t\twhile (first != null && second != null) {\r\n\t\t\tif (first.val <= second.val) {\r\n\t\t\t\tthird.next = first;\r\n\t\t\t\tfirst = first.next;\r\n\t\t\t} else {\r\n\t\t\t\tthird.next = second;\r\n\t\t\t\tsecond = second.next;\r\n\t\t\t}\r\n\t\t\tthird = third.next;\r\n\t\t}\r\n\r\n\t\tif (first != null) {\r\n\t\t\tthird.next = first;\r\n\t\t}\r\n\t\tif (second != null) {\r\n\t\t\tthird.next = second;\r\n\t\t}\r\n\r\n\t\treturn merged.next;\r\n\t}", "public ListNode mergeKLists(ListNode[] lists) {\n LinkedList<Integer> a= new LinkedList<Integer>();\n \n for(int i=0;i<lists.length;i++) {\n ListNode temp = lists[i];\n \n while(temp!=null) {\n // System.out.println(temp.val);\n a.add(temp.val);\n temp=temp.next;\n }\n }\n Collections.sort(a);\n //copy all the elements into ListNode linked list.\n if(a.size()==0) { return null; }\n ListNode head = new ListNode(a.get(0));\n ListNode res = head;\n if(head== null) {\n head = new ListNode(a.get(0));\n }\n for(int j=1;j<a.size();j++) {\n \n res.next = new ListNode(a.get(j));\n res=res.next;\n \n }\n res=head;\n \n return res;\n \n \n \n \n }", "public Node clone02(Node head) {\n Node originNode = head, tmp = null;\n\n while (originNode != null) {\n tmp = originNode.next;\n originNode.next = new Node(originNode.data);\n originNode.next.next = tmp;\n originNode = tmp;\n }\n\n originNode = head;\n while (originNode != null) {\n originNode.next.random = originNode.random.next;\n originNode = originNode.next != null ? originNode.next.next : originNode.next;\n }\n\n originNode = head;\n tmp = head.next;\n Node cloneNode = tmp;\n\n while (originNode != null) {\n originNode.next = originNode.next != null ? originNode.next.next : originNode.next;\n originNode = originNode.next;\n\n tmp.next = tmp.next != null ? tmp.next.next : tmp.next;\n tmp = tmp.next;\n }\n\n return cloneNode;\n }", "Node merge(Node first, Node second) {\r\n\t\t// If first linked list is empty\r\n\t\tif (first == null) {\r\n\t\t\treturn second;\r\n\t\t}\r\n\r\n\t\t// If second linked list is empty\r\n\t\tif (second == null) {\r\n\t\t\treturn first;\r\n\t\t}\r\n\r\n\t\t// Pick the smaller value\r\n\t\tif (first.data < second.data) {\r\n\t\t\tfirst.next = merge(first.next, second);\r\n\t\t\tfirst.next.prev = first;\r\n\t\t\tfirst.prev = null;\r\n\t\t\treturn first;\r\n\t\t} else {\r\n\t\t\tsecond.next = merge(first, second.next);\r\n\t\t\tsecond.next.prev = second;\r\n\t\t\tsecond.prev = null;\r\n\t\t\treturn second;\r\n\t\t}\r\n\t}", "private void add(Node node) {\n Node headNext = head.next;\n head.next = node;\n node.previous = head;\n node.next = headNext;\n headNext.previous = node;\n }", "public static Node createEvenListFromOriginal(Node head){\n Node previous = null;\n Node current = head;\n Node newHead = null;\n Node newCurrent = null;\n while(current != null){\n if(current.data % 2 == 0){\n if(newHead == null){\n newHead = new Node(current.data);\n newCurrent = newHead;\n }\n else{\n Node next = new Node(current.data);\n newCurrent.next = next;\n newCurrent = next;\n }\n if(previous != null){\n previous.next = current.next;\n }\n }\n previous = current;\n current = current.next;\n }\n return newHead;\n }", "void mergeList(MergeAlternateLinkedList q){\n Node p_curr=head;\n Node q_curr=q.head;\n Node p_next,q_next;\n // While there are available positions in p;\n while (p_curr!=null && q_curr!=null){\n // Save next pointers\n p_next=p_curr.next;\n q_next=q_curr.next;\n // make q_curr as next of p_curr\n q_curr.next=p_next;\n p_curr.next=q_next;\n // update current pointers for next iteration\n p_curr=p_next;\n q_curr=q_next;\n }\n q.head=q_curr;\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 ListNode addTwoNumbersHelper(ListNode l1, ListNode l2, int carry) {\n // If both lists are null and carry is 0, then return 0.\n if(l1 == null && l2 == null && carry == 0){\n return null;\n }\n\n // Initialize value\n int value = carry;\n\n // Add both list node values if exists\n if(l1 != null){\n value += l1.val;\n }\n if(l2 != null){\n value += l2.val;\n }\n\n // Calculate the remainder and carry\n int rem = value % 10;\n carry = value / 10;\n\n // Create the result head node of the list\n ListNode resultNode = new ListNode(rem);\n\n // Set the next node if exists, using recursion\n if(l1 != null || l2 != null){\n ListNode nextNode = addTwoNumbersHelper( (l1 == null ? null : l1.next), (l2 == null ? null : l2.next), carry);\n resultNode.next = nextNode;\n }\n\n // Return the head of the list\n return resultNode;\n }", "public static ListNode mockLoopList(ListNode head) {\n\t\tif (head != null) {\n\t\t\tListNode temp1 = head;\n\t\t\tListNode temp2 = head.next.next;\n\t\t\twhile (temp1.next != null)\n\t\t\t\ttemp1 = temp1.next;\n\t\t\ttemp1.next = temp2;\n\t\t}\n\t\treturn head;\n\t}", "@SuppressWarnings(\"squid:S2259\")\n private void mergeInto(RootListNode<K> head, RootListNode<K> tail) {\n // if root list empty, just copy\n if (rootList.head == null) {\n rootList.head = head;\n rootList.tail = tail;\n return;\n }\n\n // initialize\n RootListNode<K> resultHead;\n RootListNode<K> resultTail;\n RootListNode<K> resultTailPrev = null;\n RootListNode<K> cur1 = rootList.head;\n RootListNode<K> cur2 = head;\n\n // add first node\n if (cur1.root.rank <= cur2.root.rank) {\n resultHead = cur1;\n resultTail = cur1;\n RootListNode<K> cur1next = cur1.next;\n cur1.next = null;\n cur1 = cur1next;\n if (cur1next != null) {\n cur1next.prev = null;\n }\n } else {\n resultHead = cur2;\n resultTail = cur2;\n RootListNode<K> cur2next = cur2.next;\n cur2.next = null;\n cur2 = cur2next;\n if (cur2next != null) {\n cur2next.prev = null;\n }\n }\n\n // merge\n int rank1; \n int rank2;\n while (true) {\n int resultRank = resultTail.root.rank;\n\n // read rank1\n if (cur1 != null) {\n rank1 = cur1.root.rank;\n } else {\n if (cur2 != null && cur2.root.rank <= resultRank) {\n rank1 = Integer.MAX_VALUE;\n } else {\n break;\n }\n }\n\n // read rank2\n if (cur2 != null) {\n rank2 = cur2.root.rank;\n } else {\n if (cur1 != null && cur1.root.rank <= resultRank) {\n rank2 = Integer.MAX_VALUE;\n } else {\n break;\n }\n }\n\n if (rank1 <= rank2) {\n switch (Integer.compare(rank1, resultRank)) {\n case 0:\n // combine into result\n resultTail.root = combine(cur1.root, resultTail.root);\n // remove cur1\n RootListNode<K> cur1next = cur1.next;\n cur1.next = null;\n if (cur1next != null) {\n cur1next.prev = null;\n }\n cur1 = cur1next;\n break;\n case -1:\n // can happen if three same ranks\n cur1next = cur1.next;\n // add before tail into result\n cur1.next = resultTail;\n resultTail.prev = cur1;\n cur1.prev = resultTailPrev;\n if (resultTailPrev != null) {\n resultTailPrev.next = cur1;\n } else {\n resultHead = cur1;\n }\n resultTailPrev = cur1;\n // advance cur1\n if (cur1next != null) {\n cur1next.prev = null;\n }\n cur1 = cur1next;\n break;\n case 1:\n // append into result\n resultTail.next = cur1;\n cur1.prev = resultTail;\n resultTailPrev = resultTail;\n resultTail = cur1;\n // remove cur1\n cur1 = cur1.next;\n resultTail.next = null;\n if (cur1 != null) {\n cur1.prev = null;\n }\n break;\n default:\n break;\n }\n } else {\n // symmetric case rank2 < rank1\n switch (Integer.compare(rank2, resultRank)) {\n case 0:\n // combine into result\n resultTail.root = combine(cur2.root, resultTail.root);\n // remove cur2\n RootListNode<K> cur2next = cur2.next;\n cur2.next = null;\n if (cur2next != null) {\n cur2next.prev = null;\n }\n cur2 = cur2next;\n break;\n case -1:\n // can happen if three same ranks\n cur2next = cur2.next;\n // add before tail into result\n cur2.next = resultTail;\n resultTail.prev = cur2;\n cur2.prev = resultTailPrev;\n if (resultTailPrev != null) {\n resultTailPrev.next = cur2;\n } else {\n resultHead = cur2;\n }\n resultTailPrev = cur2;\n // advance cur2\n if (cur2next != null) {\n cur2next.prev = null;\n }\n cur2 = cur2next;\n break;\n case 1:\n // append into result\n resultTail.next = cur2;\n cur2.prev = resultTail;\n resultTailPrev = resultTail;\n resultTail = cur2;\n // remove cur2\n cur2 = cur2.next;\n resultTail.next = null;\n if (cur2 != null) {\n cur2.prev = null;\n }\n break;\n default: \n break;\n }\n\n }\n }\n\n // record up to which point a suffix minimum update is needed\n RootListNode<K> updateSuffixFix = resultTail;\n\n // here rank of cur1 is more than result rank\n if (cur1 != null) {\n cur1.prev = resultTail;\n resultTail.next = cur1;\n resultTail = rootList.tail;\n }\n\n // here rank of cur2 is more than result rank\n if (cur2 != null) {\n cur2.prev = resultTail;\n resultTail.next = cur2;\n resultTail = tail;\n }\n\n // update suffix minimum\n updateSuffixMin(updateSuffixFix);\n\n // store final list\n rootList.head = resultHead;\n rootList.tail = resultTail;\n }", "public Node solve2(Node head) {\n Node slow = head;\n Node fast = head;\n\n while (fast != null && fast.next != null) {\n slow = slow.next;\n fast = fast.next.next;\n }\n\n return slow;\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\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}", "public RandomListNode copyRandomList(RandomListNode head) \n {\n RandomListNode curr=head;\n while(curr!=null)\n {\n RandomListNode temp=new RandomListNode(curr.label);\n temp.next=curr.next;\n curr.next=temp;\n curr=curr.next.next;\n }\n curr=head;\n while(curr!=null)\n {\n if(curr.random!=null)//Any pointer kept as random can point to null so make sure that we check this scenario to avoid run time error\n curr.next.random=curr.random.next;\n curr=curr.next.next;\n }\n curr=head;\n RandomListNode root=head.next;\n RandomListNode head2=head.next;\n while(root.next!=null)\n {\n curr.next=curr.next.next;\n curr=curr.next;\n root.next=root.next.next;\n root=root.next;\n }\n \n return head2;\n }", "public static void removeDups (Node head){\n\n Node i = head;\n Node j;\n Node previous;\n\n while (i != null) {\n previous = i;\n j = i.next;\n while (j != null) {\n if (i.val == j.val){\n previous.next = j.next;\n } else {\n previous = j;\n }\n j = j.next;\n }\n\n i = i.next;\n }\n }", "private ListNode split2(ListNode head) {\n ListNode res = head.next;\n ListNode p1 = head;\n while (p1 != null) {\n ListNode p2 = p1.next;\n p1.next = p2.next;\n p1 = p1.next;\n if (p2.next != null) {\n p2.next = p1.next;\n }\n }\n return res;\n }", "private void addNode(Node node) {\n node.prev = fakeHead;\n node.next = fakeHead.next;\n \n fakeHead.next.prev = node;\n fakeHead.next = node;\n }", "public static Node merge(Node a, Node b)\n {\n // Base cases\n if (a == null) {\n return b;\n }\n\n if (b == null) {\n return a;\n }\n\n // Pick either a or b, and recur\n if (a.data.getEmp_No() <= b.data.getEmp_No())\n {\n a.next = merge(a.next, b);\n a.next.prev = a;\n a.prev = null;\n return a;\n }\n else\n {\n b.next = merge(a, b.next);\n b.next.prev = b;\n b.prev = null;\n return b;\n }\n }", "public void concatenateList (linkedList<E> M) {\n\r\n if(this.head == null){\r\n head = M.head;\r\n tail = M.tail;\r\n } else {\r\n tail.setNext(M.head);\r\n tail = M.tail;\r\n }\r\n\r\n }", "public static Node mergeSortedLists(Node list1Itr, Node list2Itr){\r\n\t\t\tDoublyLinkedList sortedList = new DoublyLinkedList();\r\n\t\t\t// add the smaller element to the new list and traverse that list\r\n\t\t\twhile(list1Itr!=null && list2Itr!=null){\r\n\t\t\t\tif(list1Itr.val == list2Itr.val){\r\n\t\t\t\t\tsortedList.add(list1Itr.val);\r\n\t\t\t\t\tsortedList.add(list1Itr.val);\r\n\t\t\t\t\tlist1Itr = list1Itr.next;\r\n\t\t\t\t\tlist2Itr = list2Itr.next;\r\n\t\t\t\t}\r\n\t\t\t\telse if(list1Itr.val < list2Itr.val){\r\n\t\t\t\t\tsortedList.add(list1Itr.val);\r\n\t\t\t\t\tlist1Itr = list1Itr.next;\r\n\t\t\t\t}\r\n\t\t\t\telse{\r\n\t\t\t\t\tsortedList.add(list2Itr.val);\r\n\t\t\t\t\tlist2Itr = list2Itr.next;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// add the remaining elements of the left out list\r\n\t\t\tif(list1Itr!=null){\r\n\t\t\t\tsortedList.addNode(list1Itr);\r\n\t\t\t}\r\n\t\t\tif(list2Itr!=null){\r\n\t\t\t\tsortedList.addNode(list2Itr);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn sortedList.head;\r\n\t\t}", "public ListNode join(ListNode lHead, ListNode rHead, ListNode pivot) {\n ListNode lTail = null;\n\n if (lHead != null) {\n ListNode curr = lHead;\n while (curr.next != null) {\n curr = curr.next;\n }\n lTail = curr;\n }\n\n //Left list is empty\n if (lHead == null) {\n pivot.next = rHead;\n return pivot;\n } else if (rHead == null) {\n //right list is empty\n lTail.next = pivot;\n pivot.next = null;\n return lHead;\n } else {\n lTail.next = pivot;\n pivot.next = rHead;\n\n return lHead;\n }\n }", "public void swap(int elem1, int elem2)\n\t{\n\t\tSinglyLinkedListNode currNodeFirst = head;\n\t\tSinglyLinkedListNode currNodeSecond = null;\n\t\tSinglyLinkedListNode prevNodeFirst = null;\n\t\tSinglyLinkedListNode prevNodeSecond = null;\n\t\twhile(!isEmpty())\n\t\t{\n\t\t\tif(currNodeFirst.getData() == elem1)\n\t\t\t{\n\t\t\t\tcurrNodeSecond = currNodeFirst.getNext();\n\t\t\t\twhile(!isEmpty())\n\t\t\t\t{\n\t\t\t\t\tif(currNodeSecond.getData() == elem2)\n\t\t\t\t\t{\n\t\t\t\t\t\tSinglyLinkedListNode temp1;\n\t\t\t\t\t\tif(head == currNodeFirst && currNodeSecond != currNodeFirst.getNext())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tprevNodeSecond.setNext(currNodeFirst);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttemp1 = currNodeSecond.getNext();\n\t\t\t\t\t\t\tcurrNodeSecond.setNext(currNodeFirst.getNext());\n\t\t\t\t\t\t\tcurrNodeFirst.setNext(temp1);\n\t\t\t\t\t\t\thead = currNodeSecond;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(head == currNodeFirst && currNodeSecond == currNodeFirst.getNext())\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ttemp1 = currNodeSecond.getNext();\n\t\t\t\t\t\t\tcurrNodeSecond.setNext(currNodeFirst);\n\t\t\t\t\t\t\tcurrNodeFirst.setNext(temp1);\n\t\t\t\t\t\t\thead = currNodeSecond;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(currNodeSecond == currNodeFirst.getNext() || (currNodeSecond.getNext() == null && currNodeSecond == currNodeFirst.getNext()))\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tprevNodeFirst.setNext(currNodeSecond);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttemp1 = currNodeSecond.getNext();\n\t\t\t\t\t\t\tcurrNodeSecond.setNext(currNodeFirst);\n\t\t\t\t\t\t\tcurrNodeFirst.setNext(temp1);\t\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tprevNodeSecond.setNext(currNodeFirst);\n\t\t\t\t\t\t\tprevNodeFirst.setNext(currNodeSecond);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttemp1 = currNodeSecond.getNext();\n\t\t\t\t\t\t\tcurrNodeSecond.setNext(currNodeFirst.getNext());\n\t\t\t\t\t\t\tcurrNodeFirst.setNext(temp1);\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\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tprevNodeSecond = currNodeSecond;\n\t\t\t\t\t\tcurrNodeSecond = prevNodeSecond.getNext();\n\t\t\t\t\t\tif(currNodeSecond == null)\n\t\t\t\t\t\t{\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\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tprevNodeFirst = currNodeFirst;\n\t\t\t\tcurrNodeFirst = prevNodeFirst.getNext();\n\t\t\t\tif(currNodeFirst.getNext() == null)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private void copyNext(RandomListNode head) {\n while (head != null) {\n RandomListNode newNode = new RandomListNode(head.label);\n newNode.next = head.next;\n newNode.random = head.random; // MUST have, used in copyRandom's condition\n head.next = newNode;\n head = head.next.next;\n }\n }", "private void addNode(DLinkedNode node) {\n\t\tnode.prev = head;\n\t\tnode.next = head.next;\n\n\t\thead.next.prev = node;\n\t\thead.next = node;\n\t}", "public void reorderList(ListNode head) {\n\n if(head == null||head.next == null) return;\n int len = 0;\n\n for (ListNode cur = head; cur!= null; cur = cur.next) len++;\n\n int middle = (len%2 == 1) ? len/2 + 1: len/2 ;\n\n ListNode midNode = head;\n for (int i = 0; i < middle - 1; i++)\n midNode = midNode.next;\n\n ListNode head1 = head;\n ListNode head2 = midNode.next;\n midNode.next = null;\n head2 = revertListAndReturnHead(head2);\n\n //MERGE\n ListNode cur1 = head1;\n ListNode cur2 = head2;\n while (cur1 != null && cur2 != null) {\n ListNode nextCur1 = cur1.next;\n ListNode nextCur2 = cur2.next;\n cur1.next = cur2;\n cur2.next = nextCur1;\n cur1 = nextCur1;\n cur2 = nextCur2;\n }\n\n }", "public RandomListNode copyRandomList(RandomListNode head) {\n if (head == null) return null;\n\n // replicate next nodes\n RandomListNode p = head;\n while (p != null) {\n RandomListNode copy = new RandomListNode(p.label);\n copy.next = p.next;\n p.next = copy;\n p = copy.next;\n }\n\n // replicate random nodes\n p = head;\n while (p != null) {\n RandomListNode copy = p.next;\n if (p.random != null) copy.random = p.random.next;\n p = copy.next;\n }\n\n // decouple two lists\n p = head;\n RandomListNode newHead = head.next;\n while (p != null) {\n RandomListNode copy = p.next;\n p.next = copy.next;\n if (copy.next != null) copy.next = copy.next.next;\n p = p.next;\n }\n return newHead;\n }", "public void appendToList(int data){\r\n\t\tNode temp = head;\r\n\t\tNode new_node = new Node(data);\r\n\t\tif(head == null){\r\n\t\t\thead = new_node;\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\twhile(temp.next != null){\r\n\t\t\ttemp = temp.next;\r\n\t\t}\r\n\t\t\r\n\t\ttemp.next = new_node;\r\n\t\treturn;\r\n\t}", "public static <T extends Comparable<? super T>> \n void union(SLL<T> list1, SLL<T> list2,\n SLL<T> result) {\n \n SLLNode<T> iterlist1 = list1.head;\n SLLNode<T> iterlist2 = list2.head;\n \n T itemlist1=null, itemlist2=null;\n \n // get first item in each list\n if ( iterlist1 != null )\n itemlist1 = iterlist1.info;\n if( iterlist2 != null )\n itemlist2 = iterlist2.info;\n \n while ( itemlist1 != null || itemlist2 != null ) {\n\n int compareResult;\n if( itemlist1 == null ) {\n compareResult = 1;\n } else if ( itemlist2 == null ) {\n compareResult = -1;\n } else {\n compareResult = itemlist1.compareTo(itemlist2);\n }\n \n if ( compareResult == 0 ) {\n result.addToTail(itemlist1); //appending to result list \n if( iterlist1.next != null ) {\n iterlist1 = iterlist1.next;\n itemlist1 = iterlist1.info;\n } else {\n itemlist1 = null;\n }\n \n if( iterlist2.next != null ) {\n iterlist2 = iterlist2.next;\n itemlist2 = iterlist2.info;\n } else {\n itemlist2 = null;\n } \n }\n else if ( compareResult < 0 ) { \n result.addToTail(itemlist1); //appending to result list\n if( iterlist1.next != null ) {\n iterlist1 = iterlist1.next;\n itemlist1 = iterlist1.info;\n } else {\n itemlist1 = null;\n }\n }\n else {\n result.addToTail(itemlist2);\n if( iterlist2.next != null ) {\n iterlist2 = iterlist2.next;\n itemlist2 = iterlist2.info;\n } else {\n itemlist2 = null;\n }\n }\n } \n }", "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 static void weaveLists(LinkedList<Integer> first, LinkedList <Integer> second,\n ArrayList<LinkedList<Integer>> results, LinkedList<Integer> prefix) {\n /* One list is empty. Add remainder to [a cloned] prefix and store result. */\n if (first.size() == 0 || second.size() == 0) {\n LinkedList<Integer> result = (LinkedList<Integer>) prefix.clone() ;\n result.addAll(first);\n result.addAll(second);\n results.add(result);\n return;\n }\n /* Recurse with head of first added to the prefix. Removing the head will damage\n * first, so we'll need to put it back where we found it afterwards. */\n int headFirst = first.removeFirst();\n prefix.addLast(headFirst);\n weaveLists(first, second, results, prefix);\n prefix.removeLast();\n first.addFirst(headFirst);\n /* Do the same thing with second, damaging and then restoring the list.*/\n int headSecond = second.removeFirst();\n prefix.addLast(headSecond);\n weaveLists(first, second, results, prefix);\n prefix.removeLast();\n second.addFirst(headSecond);\n }", "private ListNode iterateMergeTwoRankedList(ListNode head5, ListNode head6) {\n\n if (head5 == null) {\n return head6;\n } else if (head6 == null) {\n return head5;\n }\n\n ListNode mergedHead = null;\n ListNode node = mergedHead;\n\n while (head5 != null && head6 != null) {\n node = head5.val <= head6.val ? head5 : head6;\n\n if (mergedHead == null) {\n mergedHead = node;\n }\n\n node = node.next;\n head5 = head5.next;\n head6 = head6.next;\n }\n\n if (head5 == null) {\n node = head6;\n }else if (head6 == null) {\n node = head5;\n }\n\n return mergedHead;\n }", "private static MyList Merge(MyList L1, MyList L2)\n\t{\n\t\t//however, one assumption is that the length of L1>L2, because of our mid algorithm\n\t\tMyList merged = new MyList(0);//its next is the resulting merged list\n\t\tMyList current = merged;//current points where we are at the time of merging\n\t\tint turn = 1;//we define a turn to know which list element to be merged per loop cycle\n\t\twhile(L1!=null && L2!=null)\n\t\t{\n\t\t\tif(turn==1)//pick from L1\n\t\t\t{\n\t\t\t\tcurrent.next = L1;\n\t\t\t\tL1 = L1.next;//update L1's index to right\n\t\t\t\tturn = 2;//next loop we pick from L2\n\t\t\t}\n\t\t\telse//pick from L2\n\t\t\t{\n\t\t\t\tcurrent.next = L2;\n\t\t\t\tL2 = L2.next;//update L1's index to right\n\t\t\t\tturn = 1;//back to L1 next cycle\n\t\t\t}\n\t\t\tcurrent = current.next;//update the current pointer\n\t\t}\n\t\t//as we said L1's length may be longer than L2 considering size of array\n\t\tif(L1!=null)//we merge the remaining L1 to our current.next\n\t\t\tcurrent.next = L1;\n\n\t\treturn merged.next;\n\t}", "public static void weaveLists(LinkedList<Integer> first, LinkedList<Integer> second,\n ArrayList<LinkedList<Integer>> results, LinkedList<Integer> prefix) {\n if (first.size() == 0 || second.size() == 0) {\n LinkedList<Integer> result = (LinkedList<Integer>) prefix.clone();\n result.addAll(first);\n result.addAll(second);\n results.add(result);\n return;\n }\n\n /*\n * Recurse with head of first added to the prefix. Removing the head will damage\n * first, so we'll need to put it back where we found it after.\n */\n int headFirst = first.removeFirst();\n prefix.addLast(headFirst);\n weaveLists(first, second, results, prefix);\n prefix.removeLast();\n first.addFirst(headFirst);\n\n /* Do the same thing with second, damaging and then restoring the list. */\n int headSecond = second.removeFirst();\n prefix.addLast(headSecond);\n weaveLists(first, second, results, prefix);\n prefix.removeLast();\n second.addFirst(headSecond);\n\n return;\n }", "public Node reverserLinkedList(Node head){\n // size == 0\n if(head == null){\n return null;\n }\n // size == 1\n if(head.getNext() == null){\n return head;\n }\n\n Node newHead = reverserLinkedList(head.getNext());\n head.getNext().setNext(head);\n head.setNext(null);\n return newHead;\n }", "private void createNodes() {\n head = new ListNode(30);\n ListNode l2 = new ListNode(40);\n ListNode l3 = new ListNode(50);\n head.next = l2;\n l2.next = l3;\n }", "public static void main(String[] args) {\n ListNode<Integer> head = new ListNode<>(5);\n LinkedListBasic<Integer> linkedListBasic = new LinkedListBasic<>();\n for (int i = 10; i < 50; i+=5){\n linkedListBasic.insertNewNode(i, head);\n }\n\n /*linkedListBasic.printLinkedList(head);\n reverseSubList(head, 2, 6);\n linkedListBasic.printLinkedList(head);*/\n\n linkedListBasic.printLinkedList(head);\n ListNode<Integer> newHead = reverseLinkedList2(head);\n linkedListBasic.printLinkedList(newHead);\n reverseSubList(newHead, 2, 6);\n linkedListBasic.printLinkedList(newHead);\n\n }", "public static void reorder(ListNode head) {\n ListNode preHead = new ListNode(0), p1 = preHead, p2 = preHead;\n preHead.next = head;\n// head.print();\n// System.out.println(\"\");\n// System.out.println(\"--------\");\n\n while (p2 != null && p2.next != null) {\n p1 = p1.next;\n p2 = p2.next.next;\n }\n// System.out.println(\"p1: \" + p1.val);\n// p1 = p1.next;\n// head.print();\n// System.out.println();\n// System.out.println(\"secondHalfReversed\");\n ListNode secondHalfReversed = reverseList(p1.next); // even number is good\n p1.next = null;\n// head.print();\n// secondHalfReversed.print();\n\n mergeLists(head, secondHalfReversed);\n//\n// System.out.println(\"\");\n// System.out.println(\"printing head \");\n// head.print();\n\n }", "private ListNode recursiveMergeTwoRankedList(ListNode head5, ListNode head6) {\n\n if (head5 == null) {\n return head6;\n } else if (head6 == null) {\n return head5;\n }\n\n ListNode mergedHead = head5.val <= head6.val ? head5 : head6;\n\n if (head5.val <= head6.val) {\n mergedHead.next = recursiveMergeTwoRankedList(head5.next, head6);\n }else {\n mergedHead.next = recursiveMergeTwoRankedList(head5, head6.next);\n }\n\n return mergedHead;\n }" ]
[ "0.69958365", "0.69564354", "0.6932443", "0.68465376", "0.6755615", "0.66263264", "0.66067386", "0.65979666", "0.6573597", "0.6525552", "0.650551", "0.6450015", "0.64308", "0.6426284", "0.63947386", "0.6394599", "0.6393051", "0.6389577", "0.6383996", "0.6351116", "0.6345418", "0.63300556", "0.63240075", "0.63145274", "0.6293246", "0.6277526", "0.62649554", "0.62639314", "0.62440205", "0.62094986", "0.61964417", "0.6175346", "0.6164522", "0.6158993", "0.61530185", "0.6129093", "0.61238223", "0.6121613", "0.61123097", "0.6090451", "0.6089846", "0.6079995", "0.6057006", "0.6040078", "0.6038702", "0.6034139", "0.6031718", "0.6022699", "0.59983295", "0.59920144", "0.5987632", "0.5982951", "0.5976251", "0.5975894", "0.59731567", "0.5972786", "0.59592694", "0.59458864", "0.59424335", "0.5941238", "0.5938413", "0.5930234", "0.5927397", "0.59246576", "0.5923843", "0.5916522", "0.5914609", "0.59026486", "0.5898897", "0.5892486", "0.588641", "0.58832353", "0.5850289", "0.5845337", "0.5844588", "0.58390146", "0.58263546", "0.5821877", "0.5817136", "0.5805", "0.5795469", "0.5794193", "0.57859355", "0.57803446", "0.5775371", "0.5771888", "0.5770691", "0.5750115", "0.5748432", "0.57469356", "0.573948", "0.5739408", "0.57390934", "0.5738525", "0.573818", "0.573178", "0.5726582", "0.5709994", "0.57071155", "0.5701196" ]
0.6545029
9
return current price info of stock
public StockCurrentPriceDTO getStockCurrentPrice(String code){ Map<String,StockCurrentPriceDTO> stockCurrentPriceDTOMap = hazelcastInstance.getMap(STOCK_PRICE_CACHE_MAP); return stockCurrentPriceDTOMap.getOrDefault(code,new StockCurrentPriceDTO(code,0, LocalDateTime.now())); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCurrentPrice() {\n\t\treturn currPrice;\n\t}", "@Override\n public double getPrice(){\n \n return currentPrice; \n }", "public BigDecimal getStock_price() {\n return stock_price;\n }", "public double getStockPrice() {\n\t\treturn stockPrice;\n\t}", "private String getStock() {\n\t\treturn stock;\n\t}", "public int getStock(){\n\t\treturn Stock; // Return the product's stock\n\t}", "TickerPrice getPrice(String symbol);", "public String getStock() {\n return stock;\n }", "public String getStock() {\n return stock;\n }", "public void getPrice() {\n\t System.out.println(\"Price: $\" + price);\n }", "String getPrice();", "public int getStock() {\n return stock;\n }", "public Date getStockPriceDate() {\n return stockPriceDate;\n }", "public void getPrice(){\n System.out.println(\"Price: $\" + price); \n }", "public double getPrice()\n {\n \treturn price;\n }", "@Override\r\n\tpublic double getPrice() {\n\t\treturn price;\r\n\t}", "public Integer getStock() {\n return stock;\n }", "@Override\n public String toString() {\n return \"stock: \" + stock + \"\\n\" +\n \"cost: \" + itemPrice + \"\\n\";\n }", "public double price() {\n return price;\n }", "public double getStockMarketPrice() {\n\t\treturn stockMarketPrice;\n\t}", "protected float getPrice() {\n\t\t\treturn price;\n\t\t}", "public double getPrice()\r\n {\r\n return price;\r\n }", "public BigDecimal getHistoryPrice() {\n return historyPrice;\n }", "public double getPrice() \n\t{\n\t\treturn price;\n\t}", "public double getPrice() \n\t{\n\t\treturn price;\n\t}", "String getPrice() {\n return Double.toString(price);\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice() {\r\n return price;\r\n }", "public double getPrice(){\r\n\t\treturn price;\r\n\t}", "public int getStock() {\n\t\treturn stock;\n\t}", "public String getProduct() {\n\t\treturn stockSymbol;\n\t}", "Price getTradePrice();", "public double getPrice(){\n\t\treturn price;\n\t}", "int getBuyCurrent();", "public BigDecimal getPriceEntered();", "public Double getPrice() {\r\n return price;\r\n }", "double getPrice();", "double getPrice();", "double getPrice();", "public double getPrice() {\n return price;\n }", "public double getPrice()\n {\n return price;\n }", "public double getPrice()\n {\n return this.price;\n }", "public double getPrice()\r\n {\r\n return this.price;\r\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice() {\n return price;\n }", "public double getPrice(){\n\t\treturn this.price;\n\t}", "static Stock getStock(String symbol) { \n\t\tString sym = symbol.toUpperCase();\n\t\tdouble price = 0.0;\n\t\tint volume = 0;\n\t\tdouble pe = 0.0;\n\t\tdouble eps = 0.0;\n\t\tdouble week52low = 0.0;\n\t\tdouble week52high = 0.0;\n\t\tdouble daylow = 0.0;\n\t\tdouble dayhigh = 0.0;\n\t\tdouble movingav50day = 0.0;\n\t\tdouble marketcap = 0.0;\n\t\n\t\ttry { \n\t\t\t\n\t\t\t// Retrieve CSV File\n\t\t\tURL yahoo = new URL(\"http://finance.yahoo.com/d/quotes.csv?s=\"+ symbol + \"&f=l1vr2ejkghm3j3\");\n\t\t\tURLConnection connection = yahoo.openConnection(); \n\t\t\tInputStreamReader is = new InputStreamReader(connection.getInputStream());\n\t\t\tBufferedReader br = new BufferedReader(is); \n\t\t\t\n\t\t\t// Parse CSV Into Array\n\t\t\tString line = br.readLine(); \n\t\t\tString[] stockinfo = line.split(\",\"); \n\t\t\t\n\t\t\t// Check Our Data\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[0])) { \n\t\t\t\tprice = 0.00; \n\t\t\t} else { \n\t\t\t\tprice = Double.parseDouble(stockinfo[0]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[1])) { \n\t\t\t\tvolume = 0; \n\t\t\t} else { \n\t\t\t\tvolume = Integer.parseInt(stockinfo[1]); \n\t\t\t} \n\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[2])) { \n\t\t\t\tpe = 0; \n\t\t\t} else { \n\t\t\t\tpe = Double.parseDouble(stockinfo[2]); \n\t\t\t}\n \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[3])) { \n\t\t\t\teps = 0; \n\t\t\t} else { \n\t\t\t\teps = Double.parseDouble(stockinfo[3]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[4])) { \n\t\t\t\tweek52low = 0; \n\t\t\t} else { \n\t\t\t\tweek52low = Double.parseDouble(stockinfo[4]); \n\t\t\t}\n\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[5])) { \n\t\t\t\tweek52high = 0; \n\t\t\t} else { \n\t\t\t\tweek52high = Double.parseDouble(stockinfo[5]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[6])) { \n\t\t\t\tdaylow = 0; \n\t\t\t} else { \n\t\t\t\tdaylow = Double.parseDouble(stockinfo[6]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[7])) { \n\t\t\t\tdayhigh = 0; \n\t\t\t} else { \n\t\t\t\tdayhigh = Double.parseDouble(stockinfo[7]); \n\t\t\t} \n\t\t\t\n\t\t\tif (Pattern.matches(\"N/A - N/A\", stockinfo[8])) { \n\t\t\t\tmovingav50day = 0; \n\t\t\t} else { \n\t\t\t\tmovingav50day = Double.parseDouble(stockinfo[8]); \n\t\t\t}\n\t\t\t\t \n\t\t\tif (Pattern.matches(\"N/A\", stockinfo[9])) { \n\t\t\t\tmarketcap = 0; \n\t\t\t} else { \n\t\t\t\tmarketcap = Double.parseDouble(stockinfo[9]); \n\t\t\t} \n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\tLogger log = Logger.getLogger(StockHelper.class.getName()); \n\t\t\tlog.log(Level.SEVERE, e.toString(), e);\n\t\t\treturn null;\n\t\t}\n\t\t\n\t\treturn new Stock(sym, price, volume, pe, eps, week52low, week52high, daylow, dayhigh, movingav50day, marketcap);\n\t\t\n\t}", "public Date getPrice() {\n return price;\n }", "public void onStockpriceChanged();", "public BigDecimal getHistoryMarketPrice() {\n return historyMarketPrice;\n }", "public String getPrice() {\n return price;\n }", "public String getPrice() {\n return price;\n }", "BigDecimal getOpenPrice();", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public float getPrice() {\n return price;\n }", "public double getPrice() {\n return this.price;\n }", "public Double getPrice() {\n return price;\n }", "public Double getPrice() {\n return price;\n }", "public double getPrice() {\n return price_;\n }", "public int getPrice ( ) {\n return price;\n }", "@Override\r\n\t\t\tpublic String getPrice() {\n\t\t\t\treturn this.getName();\r\n\t\t\t}", "public BigDecimal getPrice()\n\t{\n\t\treturn price;\n\t}", "public Double getPrice() {\r\n\t\treturn price;\r\n\t}", "public Integer getPrice() {\r\n return price;\r\n }", "public Integer getPrice() {\r\n return price;\r\n }", "public BigDecimal getPriceLastInv();", "public double getPrice(){\n\t\t\treturn price;\n\t\t}", "@Override\n\tpublic double getPrice() {\n\t\treturn constantPO.getPrice();\n\t}", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public BigDecimal getPrice() {\r\n return price;\r\n }", "public double getPrice(){\n\t\t\n\t\treturn price;\n\t}", "public ArrayList<Double> GetPrices()\r\n\t{\r\n\t\treturn dayStockPrices;\r\n\t}", "public double getPrice() {\n\t\treturn price;\n\t}", "public double getPrice() {\n\t\treturn price;\n\t}", "public double getPrice() {\n\t\treturn price;\n\t}", "public double getPrice() {\n\t\treturn price;\n\t}", "public double getPrice() {\n\t\treturn price;\n\t}", "public double getPrice()\n\t{\n\t\treturn this.price;\n\t}", "public Double getPrice();", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public Integer getPrice() {\n return price;\n }", "public double getPrice();", "public float getPrice() \n {\n return price;\n }", "public BigDecimal getPriceStdOld();", "public BigDecimal\tgetPrice();", "public java.lang.Integer getPrice()\n {\n return price;\n }", "public Float getPrice() {\r\n return price;\r\n }" ]
[ "0.77032566", "0.7461819", "0.7441855", "0.7351029", "0.7196738", "0.7027197", "0.698828", "0.6983846", "0.6983846", "0.69573295", "0.6878414", "0.6861283", "0.6853474", "0.6850037", "0.6834655", "0.68170553", "0.6812596", "0.6800457", "0.679332", "0.679265", "0.6790999", "0.67506605", "0.67453825", "0.6742691", "0.6742691", "0.67170113", "0.6716972", "0.6716972", "0.6716972", "0.6716972", "0.6709727", "0.6708303", "0.6703695", "0.6696916", "0.6693256", "0.66915095", "0.6690554", "0.66851735", "0.6684318", "0.6684318", "0.6684318", "0.6683749", "0.6681685", "0.66792876", "0.66717434", "0.6671116", "0.6671116", "0.6671116", "0.6671116", "0.6671116", "0.6671116", "0.6671116", "0.6671116", "0.6671116", "0.6671116", "0.6671116", "0.6670166", "0.66658473", "0.6656742", "0.6646392", "0.66402525", "0.66363823", "0.66363823", "0.6633194", "0.6632811", "0.6632811", "0.6632811", "0.6630615", "0.6629383", "0.6629383", "0.66260344", "0.6620313", "0.661877", "0.6617556", "0.66145074", "0.6612329", "0.6612329", "0.660604", "0.6600257", "0.66000783", "0.6583251", "0.6583251", "0.65826917", "0.65816766", "0.65787953", "0.65787953", "0.65787953", "0.65787953", "0.65787953", "0.6578678", "0.65779006", "0.6573698", "0.6573698", "0.6573698", "0.6573698", "0.65727574", "0.6571562", "0.65712976", "0.6570208", "0.65693355", "0.656071" ]
0.0
-1
Check if any point inside this rectangle
@Override public boolean intersectsRectangle(final int ax1, final int ax2, final int ay1, final int ay2) { if (isInsideZone(ax1, ay1, (zoneZ2 - 1))) { return true; } if (isInsideZone(ax1, ay2, (zoneZ2 - 1))) { return true; } if (isInsideZone(ax2, ay1, (zoneZ2 - 1))) { return true; } if (isInsideZone(ax2, ay2, (zoneZ2 - 1))) { return true; } // Check if any point from this rectangle is inside the other one if (zoneX1 > ax1 && zoneX1 < ax2 && zoneY1 > ay1 && zoneY1 < ay2) { return true; } if (zoneX1 > ax1 && zoneX1 < ax2 && zoneY2 > ay1 && zoneY2 < ay2) { return true; } if (zoneX2 > ax1 && zoneX2 < ax2 && zoneY1 > ay1 && zoneY1 < ay2) { return true; } if (zoneX2 > ax1 && zoneX2 < ax2 && zoneY2 > ay1 && zoneY2 < ay2) { return true; } // Horizontal lines may intersect vertical lines if (lineIntersectsLine(zoneX1, zoneY1, zoneX2, zoneY1, ax1, ay1, ax1, ay2)) { return true; } if (lineIntersectsLine(zoneX1, zoneY1, zoneX2, zoneY1, ax2, ay1, ax2, ay2)) { return true; } if (lineIntersectsLine(zoneX1, zoneY2, zoneX2, zoneY2, ax1, ay1, ax1, ay2)) { return true; } if (lineIntersectsLine(zoneX1, zoneY2, zoneX2, zoneY2, ax2, ay1, ax2, ay2)) { return true; } // Vertical lines may intersect horizontal lines if (lineIntersectsLine(zoneX1, zoneY1, zoneX1, zoneY2, ax1, ay1, ax2, ay1)) { return true; } if (lineIntersectsLine(zoneX1, zoneY1, zoneX1, zoneY2, ax1, ay2, ax2, ay2)) { return true; } if (lineIntersectsLine(zoneX2, zoneY1, zoneX2, zoneY2, ax1, ay1, ax2, ay1)) { return true; } if (lineIntersectsLine(zoneX2, zoneY1, zoneX2, zoneY2, ax1, ay2, ax2, ay2)) { return true; } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "boolean isInsideScreen() {\n if (_hitbox.length == 1) {\n float r = _hitbox[0].x;\n PVector c = _getCenter();\n return 0 <= c.x + r && c.x - r < width && 0 <= c.y + r && c.y - r < height;\n }\n \n PVector[] points = this._getPoints();\n for(PVector p : points) {\n if(0 <= p.x && p.x < width && 0 <= p.y && p.y < height) {\n return true;\n }\n }\n return false;\n }", "boolean contains(double x, double y) {\r\n\t\t//cordinate of the left edge\r\n\t\tdouble xLeftEdge = this.getX() - this.width / 2;\r\n\t\t//cordinate of the right edge\r\n\t\tdouble xRightEdge = this.getX() + this.width / 2;\r\n\t\t////cordinate of the top edge\r\n\t\tdouble yTopEdge = this.getY() + this.height / 2;\r\n\t\t//cordinate of the bottom edge\r\n\t\tdouble yBottomEdge = this.getY() - this.height / 2;\r\n\r\n\t\t//if the point is between the edges it is inside the rectangle\r\n\t\treturn (x < xRightEdge) && (x > xLeftEdge) && (y < yTopEdge)\r\n\t\t\t\t&& (y > yBottomEdge) ? true : false;\r\n\t}", "boolean hasRect();", "public boolean isInRect(Point p) {\n\t\tLine AB = new Line(A1, B1);\n\t\tLine CD = new Line(C1, AB.getU());\n\t\tLine AD = new Line(A1, D1);\n\t\tLine BC = new Line(B1, AD.getU());\n\n\t\tif (Line.isBetween2Lines(AB, CD, p) && Line.isBetween2Lines(AD, BC, p)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "public boolean whithinRectangle(Point point1, Point point2) {\n\t\treturn false;\n\t}", "public abstract boolean containsPoint(int x, int y);", "public boolean isPointInside(int x, int y) {\r\n if (Integer.compare(x, _xLeft) <= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(x, _xRight) >= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(y, _yTop) <= 0) {\r\n return false;\r\n }\r\n \r\n if (Integer.compare(y, _yBottom) >= 0) {\r\n return false;\r\n }\r\n \r\n return true;\r\n }", "public boolean pointInside(Point2D p) {\n AffineTransform fullTransform = this.getFullTransform();\n AffineTransform inverseTransform = null;\n try {\n inverseTransform = fullTransform.createInverse();\n } catch (NoninvertibleTransformException e) {\n e.printStackTrace();\n }\n Point2D newPoint = (Point2D)p.clone();\n inverseTransform.transform(newPoint, newPoint);\n return rect.contains(newPoint); \n }", "public boolean isInside(){\n\t\tinside = true;\n\t\tif(map.contains(new Rectangle(x,y,(int)spriteSize.getHeight(), (int)spriteSize.getWidth()))==false){\n\t\t\tinside = false;\n\t\t}\n\t\treturn(inside);\n\t}", "public boolean containsPoint( Point p ) {\r\n return (( p.x > drawx-getWidth()/2) && ( p.x < drawx+getWidth()/2) \r\n && ( p.y > drawy-getHeight()/2) && ( p.y < drawy+getHeight()/2));\r\n }", "public boolean mouseWithinBox() {\n return (mouseX > x && mouseX < x + w && mouseY > y && mouseY < y + h);\r\n }", "public boolean isInside(int x, int y) {\r\n if (this.state == 0) {\r\n if ((x >= this.x && x <= (this.x +width)) &&\r\n y >= this.y && y <= (this.y +height)) {\r\n return true;\r\n }\r\n } else if (this.state == 1) {\r\n if ((x <= this.x && x >= (this.x - height)) &&\r\n y >= this.y && y <= (this.y + width)) {\r\n return true;\r\n }\r\n } else if (this.state == 2) {\r\n if ((x <= this.x && x >= (this.x - width)) &&\r\n y <= this.y && y >= (this.y - height)) {\r\n return true;\r\n }\r\n } else if (this.state == 3) {\r\n if ((x >= this.x && x <= (this.x + height)) &&\r\n y <= this.y && y >= (this.y - width)) {\r\n return true;\r\n }\r\n }\r\n return false;\r\n }", "boolean hasCoordinates();", "boolean hasCoordinates();", "boolean hasCoordinates();", "public boolean containsPoint(Point p) {\n\t\treturn (p.x >= x && p.x <= (x + WIDTH)\n\t\t\t\t&& p.y >= y && p.y <= (y + HEIGHT));\n\t}", "public boolean inside(Point p) {\n\t\tif (p.getX() < boundingRect.getX() || p.getY() < boundingRect.getY()) return false;\n\t\tif (p.getX() > boundingRect.getX() + boundingRect.getW() || \n\t\t p.getY() > boundingRect.getY() + boundingRect.getH()) return false;\n\n\t\t// Create a line from the point to the left\n\t\tLine l = new Line(p.getX(), p.getY(), p.getX() - boundingRect.getW(), p.getY());\n\n\t\t// Count intersections\n\t\tint count= 0;\t\t\n\t\tfor(int i=0; i<lines.size(); i++ ) {\n\t\t\tif (lines.get(i).intersectsAt(l) != null) {\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n // We are inside if the number of intersections is odd\n\t\treturn count%2 == 1;\n\t}", "public boolean contains(Point mousePt) {\r\n\t\treturn (x <= mousePt.x && mousePt.x <= (x + width + 1)\t&&\ty <= mousePt.y && mousePt.y <= (y + height + 1));\r\n\t}", "protected boolean isInside(int x, int y){\n if(x <= super.getLocationX())\n return false;\n\n if(x >= (super.getLocationX() + super.getWidth() - 1))\n return false;\n\n if(y <= super.getLocationY())\n return false;\n\n if(y >= (super.getLocationY() + super.getHeight() - 1))\n return false;\n\n //return true if inside\n return true;\n\n }", "private boolean isOverRect(Point p) {\n Rectangle r = (Rectangle)component.rect.clone();\n r.grow(PROX_DIST, PROX_DIST);\n return r.contains(p);\n }", "public boolean containsPoint(Point p) {\n \treturn\n \t\tp.x >= x &&\n \t\tp.x <= x + width &&\n \t\tp.y >= y &&\n \t\tp.y <= y + height;\n }", "private boolean pInRect(Point2D p, RectHV rect) {\n if (p.x() >= rect.xmin() && p.x() <= rect.xmax() && p.y() >= rect.ymin() && p.y() <= rect.ymax()) return true;\n else return false;\n }", "public boolean contains(Point mousePt) {\r\n\t\treturn (p.x <= mousePt.x && mousePt.x <= (p.x + width + 1)\t&&\tp.y <= mousePt.y && mousePt.y <= (p.y + height + 1));\r\n\t}", "static boolean isInside(int x, int y, int N) {\n if (x >= 1 && x <= N && y >= 1 && y <= N) {\n return true;\n }\n return false;\n }", "public boolean isInside(Rectangle boundary) {\n\t\t\n\t\t// Use TLAP to see if it is or it is not\n\t\tif (x + diameter / 2 >= boundary.getX() - boundary.getWidth() && x + diameter / 2 <= boundary.getX() + boundary.getWidth()\n\t\t\t\t&& y + diameter / 2 >= boundary.getY() - boundary.getHeight() && y + diameter / 2 <= boundary.getY() + boundary.getHeight()) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean contains(Rectangle r) {\n\t\treturn (r.getX1() >= getX1() && r.getY1() >= getY1()\n\t\t\t\t&& r.getX2() < getX2() && r.getY2() < getY2());\n\t}", "Boolean CheckIfInside(float xVal, float yVal) {\r\n double distance = Math.sqrt((this.x-xVal)*(this.x-xVal) + (this.y-yVal)*(this.y-yVal));\r\n return (distance <= this.radius);\r\n }", "public static boolean pointInRectangle(int minX, int minY, int maxX, int maxY, int x, int y) {\n\t\treturn minX < x && maxX > x && minY < y && maxY > y;\n\t}", "public boolean contains(final Coords point)\r\n {\r\n return toRectangle().contains(point.toPoint());\r\n }", "@JsMethod(name = \"interiorContainsPoint\")\n public boolean interiorContains(double p) {\n return p > lo && p < hi;\n }", "boolean hasRect2Value();", "public boolean isWithinObject(int x, int y)\n {\n if( x > coX-Xsize/2 &&\n x < coX+Xsize/2 &&\n y > coY-Ysize/2 &&\n y < coY+Ysize/2 )\n return true;\n else\n return false;\n }", "public static final boolean isInside(int x, int y, Rect box) {\n return (box.x < x && x < box.x + box.w && box.y < y && y < box.y + box.h);\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}", "private boolean isInBounds(float x, float y) {\n\n if (x <= 0 || x >= this.getWidth() || y <= 0 || y >= this.getHeight()) {\n\n return false;\n }\n return new RectF(0, 0, this.getWidth(), this.getHeight())\n .contains(x, y);\n }", "public boolean isInsideZone(int x, int y)\r\n\t{\r\n\t\tboolean inside = false;\r\n\t\tfor (Shape sh : _shapes)\r\n\t\t{\r\n\t\t\tif (sh.contains(x, y))\r\n\t\t\t{\r\n\t\t\t\tinside = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_exShapes != null && inside)\r\n\t\t{\r\n\t\t\tfor (Shape sh : _exShapes)\r\n\t\t\t{\r\n\t\t\t\tif (sh.contains(x, y))\r\n\t\t\t\t{\r\n\t\t\t\t\tinside = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inside;\r\n\t}", "@Override\n public boolean containsPoint(Point x) {\n return x.getX() >= center.getX() - sideLength/2 && x.getX() <= center.getX() + sideLength/2\n && x.getY() >= center.getY() -sideLength/2 && x.getY() <= center.getY() +sideLength/2;\n }", "@Override\n\tpublic boolean contains(Rectangle2D arg0) {\n\t\treturn false;\n\t}", "private boolean isInBounds(int x, int y) {\r\n\t\treturn x >= 0 && y >= 0 && x < getWidth() && y < getHeight();\r\n\t}", "public boolean isInShape(Point p) \n\t{\n\t\tPoint centre = new Point((int)posX + diam/2, (int)posY + diam/2);\n\t\t//If distance between two points if less than or equal to radius, true is\n\t\t//returned\n\t\treturn p.distance(centre) <= diam/2;\n\t}", "public boolean detectBound(){\n if(posX < 0 || posX > width || posY < 0 || posY > height){\n return true;\n }\n else{\n return false;\n }\n }", "public boolean isIn(Point p)\n {\n \n \treturn isIn(p.x, p.y);\n \t\n //\tboolean cond1 = false;\n // boolean cond2 = false; \n // cond1 = (p.x>=rettangoloX)&&(p.x<=(rettangoloX+larghezza));\n // cond2 = (p.y>=rettangoloY)&&(p.y<=(rettangoloY+altezza));\n // return (cond1&&cond2);\n }", "@Override\n\tpublic boolean isInside(float x, float y, float z) {\n\t\treturn false;\n\t}", "boolean contains(Polygon p);", "public boolean contains(double x, double y){\t\t\n\t\t\n\t\treturn x > xCoord - getWidth()/2 &&\n\t\t\t x < xCoord + getWidth()/2 &&\n\t\t\t y > yCoord - getHeight()/2 &&\n\t\t\t y < yCoord + getHeight()/2;\n\t}", "public boolean situatedInside(double x, double y) {\n if(y>this.bottomleft.x && y<this.topright.x && x <this.topright.y && x > this.bottomleft.y)\n return true;\n else\n return false;\n }", "@Override\n public boolean inBounds(int x, int y) {\n return x >= 0 && y >= 0 && x < this.bounds.width\n && y < this.bounds.height;\n }", "private boolean checkSurroundingOfPoint(Point p) {\n\t\tPoint check = new Point();\n\t\tcheck.x\t\t= p.x;\n\t\tcheck.y \t= p.y;\n\t\t\n\t\tfor(int y = -1; y <= 1; y++) {\n\t\t\tcheck.y += y;\n\t\t\tfor(int x = -1; x <= 1; x++) {\n\t\t\t\tcheck.x += x;\n\t\t\t\tif(occupiedPositions.contains(check)) return false;\n\t\t\t\t//restore values\n\t\t\t\tcheck.x\t= p.x;\n\t\t\t}\n\t\t\t//restore values\n\t\t\tcheck.y = p.y;\n\t\t}\n\t\treturn true;\n\t}", "public boolean contains(Point2D.Double p) {\n if(p.x <= middle.x + length/2.0 &&\n p.x >= middle.x - length/2.0 &&\n p.y <= middle.y + length/2.0 &&\n p.y >= middle.y - length/2.0) return true;\n else return false;\n }", "public boolean contains(Point p);", "public boolean contains(Point p) {\n\t\tif ((p.y > (super.getY() - super.height/2)) && (p.x > (super.getX() - width/2)) && (p.y < (super.getY() + super.height/2 + super.height)) && (p.x < (super.getX() - width/2 + super.width))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "static Boolean pointInPgm(int x, int y) {\n return (x >= 0 ) && (y >= 0) && (x <= pgmInf.width) && (y <= pgmInf.height);\n }", "public boolean isInside(int x, int y){\n \tif( ( x >= xpos && x <= xpos + img.getWidth()) &&\n \t\t ( y >= ypos && y <= ypos + img.getHeight()) ){\n \t\treturn true;\n \t}else\n \t\treturn false;\n\t}", "boolean isIncludeBounds();", "public abstract boolean hit(Rectangle2D r);", "public boolean contains(Point point) {\n\t\treturn (point.x >= getX1() && point.y >= getY1() && point.x < getX2() && point.y < getY2());\n\t}", "boolean insideSprite(Sprite s){\n if (s._hitbox.length == 1) {\n if (_hitbox.length == 1) {\n return PVector.dist(s._getCenter(),this._getCenter()) <\n s._hitbox[0].x - this._hitbox[0].x;\n }\n return _insideCirc(_getPoints(), s._getCenter(), s._hitbox[0].x);\n }\n if (s._hitbox.length == 1) {\n // TODO: check if center is in middle but NOT touching any side\n // (will want to adapt existing _circPoly to separate side-touching\n // code into individual method)\n return false;\n }\n return _insidePts(this._getPoints(), s._getPoints());\n }", "public boolean contains(Point point) {\n\n\t\tif (Math.abs(center.getX() - point.getX()) <= (width / 2) && (Math.abs(center.getY() - point.getY()) <= height /2)) {\n\n\t\t\treturn true;\n\t\t\n\t\t} else {\n\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isInRect2(Point p) {\n\t\tLine AB = new Line(A1, B1);\n\t\tLine CD = new Line(C1, AB.getU());\n\t\tLine AD = new Line(A1, D1);\n\t\tLine BC = new Line(B1, AD.getU());\n\n\t\t// if(Line.isBetween2Lines2(AB, CD, p))\n\t\t// System.out.println(1);\n\t\t// if(Line.isBetween2Lines2(AD, BC, p))\n\t\t// System.out.println(2);\n\n\t\tif (Line.isBetween2Lines2(AB, CD, p) && Line.isBetween2Lines2(AD, BC, p)) {\n\t\t\treturn true;\n\t\t}\n\n\t\treturn false;\n\t}", "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(int x, int y) {\n if (shape == null || !shape.getBounds().equals(getBounds())) {\n shape = new Ellipse2D.Float(0, 0, getWidth(), getHeight());\n }\n return shape.contains(x, y);\n }", "boolean contains(MyRectangle2D r) {\r\n\t\t// check if 1 pair of diagonal corner points\r\n\t\t// are contained in this rectangle\r\n\r\n\t\tdouble x1 = r.getX() - (r.getWidth() / 2);\r\n\t\tdouble y1 = r.getY() + (r.getHeight() / 2);\r\n\r\n\t\tdouble x2 = r.getX() + (r.getWidth() / 2);\r\n\t\tdouble y2 = r.getY() - (r.getHeight() / 2);\r\n\t\t\r\n\t\t//if diagonal corners are inside, the whole rectangle is contained\r\n\t\treturn this.contains(x1, y1) && this.contains(x2, y2) ? true : false;\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}", "public boolean inside(int x, int y, Graphics graphics){\r\n\r\n boolean clicked = false;\r\n\r\n if((x >= _x && x <= (_x + (_width * graphics.getScale())) && (y >= _y && y <= _y + (_height * graphics.getScale())))){\r\n\r\n clicked = true;\r\n }\r\n\r\n return clicked;\r\n }", "public abstract boolean pointerInside(int iPosX, int iPosY);", "public boolean isInRange(Point testPt){\n\t\tfor(int i = 0; i < display.size();i++){\n\t\t\tif(testPt.x >= display.get(i).x && testPt.y >= display.get(i).y && testPt.x <= (display.get(i).x + display.get(i).width()) && testPt.y <= (display.get(i).y + display.get(i).height())){\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean inBounds(Actor a)\n {\n boolean inX = Math.abs(a.getXPos()) < levelWidth/2;\n boolean inY = Math.abs(a.getYPos()) < levelHeight/2;\n return inX && inY;\n }", "@JsMethod(name = \"containsPoint\")\n public boolean contains(double p) {\n return p >= lo && p <= hi;\n }", "private boolean verifyBounds() {\r\n\t if((x>RobotController.BOUNDS_X || y>RobotController.BOUNDS_Y)\r\n\t || x<0 || y<0){\r\n\t return false;\r\n\t }\r\n\t return true;\r\n\t }", "public boolean contains(double x, double y){\n\t\treturn (x >= this.x && x <= this.x + img.getWidth(null))\n\t\t\t\t&& (y >= this.y && y <= this.y + img.getHeight(null));\n\t}", "public boolean contains(RMPoint aPoint)\n{\n // Get line width to be used in contain test\n float lineWidth = getStrokeWidth();\n \n // If polygon or line, make line width effectively at least 8, so users will have a better shot of selecting it\n if(this instanceof RMPolygonShape || this instanceof RMLineShape)\n lineWidth = Math.max(8, getStrokeWidth());\n \n // Get bounds, adjusted for line width\n RMRect bounds = getBoundsInside();\n bounds.inset(-lineWidth/2, -lineWidth/2);\n\n // If point isn't even in bounds rect, just return false\n if(!aPoint.inRect(bounds))\n return false;\n \n // Get shape path in bounds rect\n RMPath path = getPathInBounds();\n \n // Return whether path intersects point\n return path.intersects(aPoint, lineWidth);\n}", "public boolean containsRectangle(double x, double y, double width, double height) {\n\t\treturn rectangleSelection.contains(x,y) && rectangleSelection.contains(x + width, y + height);\n\t}", "public boolean inBounds(Rectangle bounds)\n\t{\n\t\treturn bounds.contains(mX, mY);\n\t}", "public boolean pointIsIntersecting(PointF point, RectF other){//also checks if one contains the other\n return RectF.intersects(other,new RectF(point.x, point.y, point.x, point.y));//|| hitBox.contains(other.getHitBox())||other.getHitBox().contains(this.hitBox)\n }", "public boolean touches(Rectangle r) {\n\t\tif (r.getX1() - getX2() >= 0 || r.getY1() - getY2() >= 0)\n\t\t\treturn false;\n\t\tif (getX1() - r.getX2() >= 0 || getY1() - r.getY2() >= 0)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "public boolean containsPoint(Point pt)\n {\n\n // E[O(log(n))]\n if(_lineBVH != null)\n {\n throw new Error(\"Implement me Please!\");\n }\n else\n {\n // O(n).\n return _point_in_polygon_test(pt);\n }\n }", "public boolean isAt(Point punto) {\r\n Point inner = toInnerPoint(punto);\r\n for (Point block : innerPiece.getPoints())\r\n \tif (block.X() == inner.X() && block.Y() == inner.Y())\r\n \t\treturn true;\r\n return false;\r\n }", "public isWithin() {\n\t\tsuper();\n\t}", "private boolean inCircle(int x, int y) {\n return Math.pow(x - xs, 2) + Math.pow(y - ys, 2) <= Math.pow(r, 2);\n }", "boolean overlaps(MyRectangle2D r) {\r\n\t\t//cordinates of the first corner of the parametar's rectangle\r\n\t\tdouble x1 = r.getX() - (r.getWidth() / 2);\r\n\t\tdouble y1 = r.getY() + (r.getHeight() / 2);\r\n\r\n\t\t//cordinates of the second corner of the parametar's rectangle\r\n\t\tdouble x2 = r.getX() + (r.getWidth() / 2);\r\n\t\tdouble y2 = r.getY() - (r.getHeight() / 2);\r\n\r\n\t\t//cordinates of the third corner of the parametar's rectangle\r\n\t\tdouble x3 = r.getX() - (r.getWidth() / 2);\r\n\t\tdouble y3 = r.getY() - (r.getHeight() / 2);\r\n\r\n\t\t//cordinates of the fourth corner of the parametar's rectangle\r\n\t\tdouble x4 = r.getX() + (r.getWidth() / 2);\r\n\t\tdouble y4 = r.getY() + (r.getHeight() / 2);\r\n\r\n\t\t//checking if calling rectangle has any of the corners inside itself\r\n\t\tboolean corner1Overlaps = this.contains(x1, y1);\r\n\t\tboolean corner2Overlaps = this.contains(x2, y2);\r\n\t\tboolean corner3Overlaps = this.contains(x3, y3);\r\n\t\tboolean corner4Overlaps = this.contains(x4, y4);\r\n\r\n\t\t//if it does contain any of the corners they overlap\r\n\t\treturn corner1Overlaps || corner2Overlaps || corner3Overlaps\r\n\t\t\t\t|| corner4Overlaps ? true : false;\r\n\t}", "public boolean collidePoint(float mX, float mY){\n return super.shape.contains(mX,mY);\n }", "public boolean contains(int x, int y) {\r\n\t\t\tif (shape == null || !shape.getBounds().equals(getBounds())) {\r\n\t\t\t\tshape = new Ellipse2D.Float(0, 0, getWidth(), getHeight());\r\n\t\t\t}\r\n\r\n\t\t\treturn shape.contains(x, y);\r\n\t\t}", "boolean isPointEnclosed(Point p);", "public boolean isInside(final Tuple3d point) {\n final double distance = this.distanceToPoint(point);\n\n return IntersectionUtils.isGreaterOrEqual(distance, 0.0);\n }", "public boolean contains(double x, double y) { \n\t\t\t\n\t\t\tif(type.get() == ShapeType.CIRCLE)\n\t\t\t\treturn (Math.pow(x - centerX.get(), 2) + Math.pow(y - centerY.get(), 2)) <= Math.pow(radius.get(), 2); \n\t\t\telse if (type.get() == ShapeType.RECTANGLE || type.get() == ShapeType.ROUNDRECT || type.get() == ShapeType.OVAL) {\n\t\t\t\treturn ((x >= getCenterX() - getWidth()/2) && (x <= getCenterX() + getWidth()/2) && (y >= getCenterY() - getHeight()/2) && (y <= getCenterY() + getHeight()/2));\n\t\t\t}\n\t\t\telse if (type.get() == ShapeType.TEXT) {\n\t\t\t\treturn ((x >= getCenterX() - getHeight()*.43*getText().length()/2) && (x <= getCenterX() + getHeight()*.43*getText().length()/2) && (y >= getCenterY() - getHeight()/2) && (y <= getCenterY() + getHeight()/2));\n\t\t\t}\n\t\t\telse\n\t\t\t\treturn false;\n\t\t\t\n\t\t}", "public boolean collidepoint(float mX, float mY){\n return super.shape.contains(mX, mY);\n //return isPressed;\n }", "public boolean isInside(Square cell) {\n\t\treturn (cell.getRow()>=0 && cell.getRow()<getRows() && cell.getColumn()>=0 && cell.getColumn()<getColumns());\n\t}", "private static boolean doBoundingBoxesIntersect(Rectangle a, Rectangle b) {\r\n\t return a.getMinX() <= b.getMaxX() \r\n\t && a.getMaxX() >= b.getMinX() \r\n\t && a.getMinY() <= b.getMaxY()\r\n\t && a.getMaxY() >= b.getMinY();\r\n\t}", "private boolean isInside(int i, int j) {\n\t\tif (i < 0 || j < 0 || i > side || j > side)\n\t\t\treturn false;\n\t\treturn true;\n\t}", "public boolean contains(Coord c) {\n\t\treturn getAWTRectangle().contains(c.getAWTPoint());\n\t}", "boolean touchingPoint(float x, float y) {\n if (_hitbox.length == 1) return dist(x,y,_hitboxCenter.x, _hitboxCenter.y) < _hitbox[0].x;\n return _ptPoly(new PVector(x,y), _getPoints());\n }", "private boolean intersects(int x, int y, int size){\n count++;\n return(!(\n x > this.x + this.width ||\n x + size < this.x ||\n y > this.y + this.height ||\n y + size < this.y\n ));\n }", "public boolean boundsContains(double[] pt){\n return bounds.contains(pt);\n }", "boolean checkPointInsidePolygon(Point[] points, PVector input) {\n\t\tint i, j;\n\t\tboolean c = false;\n\t\tfor (i = 0, j = points.length - 1; i < points.length; j = i++) {\n\t\t\tif (((points[i].y > input.y) != (points[j].y > input.y))\n\t\t\t\t\t&& (input.x < (points[j].x - points[i].x) * (input.y - points[i].y) / (points[j].y - points[i].y)\n\t\t\t\t\t\t\t+ points[i].x))\n\t\t\t\tc = !c;\n\t\t}\n\t\treturn c;\n\t}", "public boolean contains(Point point) {\n return this.center.distance(point) <= this.r;\n }", "public boolean isWithinBounds(int x, int y) {\n\t\tif (x < 0 || x >= this.width)\n\t\t\treturn false;\n\n\t\tif (y < 0 || y >= this.height)\n\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public abstract boolean isHit(int x, int y);", "public static boolean insideBounds(GameTile tile) {\n\n if (tile == null) {\n return false;\n } else {\n\n int x = tile.getXCoord();\n int y = tile.getYCoord();\n\n return !(x < 0 || y < 0) && !(x > TILE_COLS || y > TILE_ROWS);\n\n }\n\n }", "public boolean containsPoint( double px, double py ) {\r\n return (( px > drawx-getWidth()/2) && ( px < drawx+getWidth()/2) \r\n && ( py > drawy-getHeight()/2) && ( py < drawy+getHeight()/2));\r\n }", "public boolean pointWhithin(Point point) {\n\t\treturn false;\n\t}", "protected boolean inHitRegion(int x, int y) {\n\tif(lastRow != -1 && tree != null) {\n\t Rectangle bounds = tree.getRowBounds(lastRow);\n\n\t if(bounds != null && x <= (bounds.x + offset) &&\n\t offset < (bounds.width - 5)) {\n\t\treturn false;\n\t }\n\t}\n\treturn true;\n }" ]
[ "0.7581992", "0.74446976", "0.7430127", "0.728364", "0.72299284", "0.7199562", "0.71968114", "0.71652675", "0.7137356", "0.7099134", "0.7082902", "0.70680076", "0.70482606", "0.70482606", "0.70482606", "0.70468605", "0.7045691", "0.70417994", "0.70349866", "0.7020602", "0.7020027", "0.6962059", "0.69373095", "0.69261694", "0.69260705", "0.6925189", "0.69050545", "0.6902566", "0.69002384", "0.6881658", "0.68719494", "0.68708014", "0.6867557", "0.6851306", "0.68427503", "0.6837611", "0.6835737", "0.6824355", "0.6818942", "0.6816731", "0.6782797", "0.6766733", "0.6764994", "0.67591196", "0.67540765", "0.67506224", "0.6749633", "0.6725491", "0.67127275", "0.67105323", "0.6708447", "0.6672998", "0.66719407", "0.6656518", "0.66477627", "0.6619247", "0.6614103", "0.6609526", "0.66056776", "0.6596854", "0.6579189", "0.6575094", "0.6569384", "0.6565321", "0.6561326", "0.6541671", "0.6536316", "0.65272087", "0.65261376", "0.6514603", "0.6507467", "0.6491381", "0.64842725", "0.647846", "0.6469422", "0.6467165", "0.6462683", "0.64602524", "0.6459651", "0.6459155", "0.6454947", "0.6443286", "0.6442602", "0.644215", "0.6440662", "0.643697", "0.64353865", "0.6434389", "0.6429639", "0.6424372", "0.6417693", "0.6416012", "0.64139175", "0.63940364", "0.63909096", "0.63908124", "0.6386552", "0.6384731", "0.6382685", "0.63806117", "0.63790876" ]
0.0
-1
Since we aren't given a z coordinate to test against we just use the minimum z coordinate to prevent the function from saying we aren't in the zone because of a bad z coordinate.
@Override public double getDistanceToZone(final int x, final int y) { if (isInsideZone(x, y, zoneZ1)) { return 0; // If you are inside the zone distance to zone is 0. } double test, shortestDist = Math.pow(zoneX1 - x, 2) + Math.pow(zoneY1 - y, 2); test = Math.pow(zoneX1 - x, 2) + Math.pow(zoneY2 - y, 2); if (test < shortestDist) { shortestDist = test; } test = Math.pow(zoneX2 - x, 2) + Math.pow(zoneY1 - y, 2); if (test < shortestDist) { shortestDist = test; } test = Math.pow(zoneX2 - x, 2) + Math.pow(zoneY2 - y, 2); if (test < shortestDist) { shortestDist = test; } return Math.sqrt(shortestDist); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void FindMinZ()\r\n\t{\r\n\t\tminimum_Z=Integer.MAX_VALUE;\r\n\t\tfor(Entry<Integer,Node> entry : FutureUpdateList.entrySet())\r\n\t\t{\r\n\t\t\tNode temp=entry.getValue();\r\n\t\t\tif(temp.z<minimum_Z)\r\n\t\t\t{\r\n\t\t\t\tminimum_Z=temp.z;\r\n\t\t\t\tminimum_X=temp.x;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "float zMin();", "boolean hasHasZCoordinate();", "private static int min(int x, int y, int z) {\n\t\tif (x < y)\n\t\t\treturn (x < z) ? x : z;\n\t\telse\n\t\t\treturn (y < z) ? y : z;\n\t}", "@Override\n\tpublic int getLowZ()\n\t{\n\t\treturn zoneZ1;\n\t}", "public final boolean zzd() {\n return this.zzz > zzgod.MAP.zza();\n }", "boolean czaCompare(PARAM_ZONE pZone, CObject pHo)\r\n {\r\n if (pHo.hoX < pZone.x1 || pHo.hoX >= pZone.x2)\r\n {\r\n return false;\r\n }\r\n if (pHo.hoY < pZone.y1 || pHo.hoY >= pZone.y2)\r\n {\r\n return false;\r\n }\r\n return true;\r\n }", "public final boolean zza() {\n boolean z = false;\n if (!this.zza.zza()) {\n return false;\n }\n this.zzx = this.zza.zzb();\n this.zzy = this.zza.zzb();\n this.zzz = this.zzy & 255;\n int i = this.zzx;\n if (i < this.zzq) {\n this.zzq = i;\n }\n int i2 = this.zzx;\n if (i2 > this.zzr) {\n this.zzr = i2;\n }\n if (this.zzz == zzgod.MAP.zza()) {\n this.zzs++;\n } else if (this.zzz >= zzgod.DOUBLE_LIST.zza() && this.zzz <= zzgod.GROUP_LIST.zza()) {\n this.zzt++;\n }\n this.zzw++;\n if (zzgqn.zza(this.zzq, this.zzx, this.zzw)) {\n this.zzv = this.zzx + 1;\n this.zzu = this.zzv - this.zzq;\n } else {\n this.zzu++;\n }\n if ((this.zzy & 1024) != 0) {\n int[] iArr = this.zzn;\n int i3 = this.zzp;\n this.zzp = i3 + 1;\n iArr[i3] = this.zzx;\n }\n if (zzd()) {\n this.zzaa = this.zza.zzb();\n if (this.zzz == zzgod.MESSAGE.zza() + 51 || this.zzz == zzgod.GROUP.zza() + 51) {\n zza(this.zzx, (Class) zzp());\n } else if (this.zzz == zzgod.ENUM.zza() + 51 && zzq()) {\n zza(this.zzx, (zzgop) zzp());\n }\n } else {\n this.zzac = zza(this.zzc, (String) zzp());\n if (zzh()) {\n this.zzab = this.zza.zzb();\n }\n if (this.zzz == zzgod.MESSAGE.zza() || this.zzz == zzgod.GROUP.zza()) {\n zza(this.zzx, this.zzac.getType());\n } else if (this.zzz == zzgod.MESSAGE_LIST.zza() || this.zzz == zzgod.GROUP_LIST.zza()) {\n zza(this.zzx, (Class) zzp());\n } else if (this.zzz == zzgod.ENUM.zza() || this.zzz == zzgod.ENUM_LIST.zza() || this.zzz == zzgod.ENUM_LIST_PACKED.zza()) {\n if (zzq()) {\n zza(this.zzx, (zzgop) zzp());\n }\n } else if (this.zzz == zzgod.MAP.zza()) {\n int i4 = this.zzx;\n Object zzp2 = zzp();\n if (this.zzaf == zzgol.zza()) {\n this.zzaf = new zzgol<>();\n }\n this.zzaf.zza(i4, zzp2);\n if ((this.zzy & 2048) != 0) {\n z = true;\n }\n if (z) {\n zza(this.zzx, (zzgop) zzp());\n }\n }\n }\n return true;\n }", "@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}", "public final boolean checkIfInZone(int x, int y) { return (getSiege(x, y) != null); }", "public float min3DZ() {\n return Math.min(stop3D.z, start3D.z);\n }", "boolean hasZ();", "boolean hasZ();", "boolean isGoodLocation(World world, int x, int y, int z);", "public void encapsulate(int x, int y, int z) {\n minX = Math.min(minX, x);\n minY = Math.min(minY, y);\n minZ = Math.min(minZ, z);\n maxX = Math.max(x, maxX);\n maxY = Math.max(y, maxY);\n maxZ = Math.max(z, maxZ);\n }", "@java.lang.Override\n public boolean hasZ() {\n return z_ != null;\n }", "public boolean isInsideZone(int x, int y, int z)\r\n\t{\r\n\t\tboolean inside = false;\r\n\t\tfor (Shape sh : _shapes)\r\n\t\t{\r\n\t\t\tif (sh.contains(x, y, z))\r\n\t\t\t{\r\n\t\t\t\tinside = true;\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (_exShapes != null && inside)\r\n\t\t{\r\n\t\t\tfor (Shape sh : _exShapes)\r\n\t\t\t{\r\n\t\t\t\tif (sh.contains(x, y, z))\r\n\t\t\t\t{\r\n\t\t\t\t\tinside = false;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn inside;\r\n\t}", "private boolean isViewerPositionInvalid(ViewerPosition3D position)\n {\n Vector3d location = new Vector3d(position.getLocation());\n double terrainTolerance = TERRAIN_SAFETY_TOLERANCE;\n if (position.getGeoPosition() != null && position.getGeoPosition().getAlt().getReferenceLevel() != ReferenceLevel.TERRAIN)\n {\n terrainTolerance *= 10;\n }\n\n if (!myMapContext.getProjection().isOutsideModel(location.add(location.multiply(terrainTolerance)))\n || Math.abs(location.getX()) > ourMaxOriginDistance\n || Math.abs(location.getY()) > ourMaxOriginDistance\n || Math.abs(location.getZ()) > ourMaxOriginDistance)\n {\n return true;\n }\n\n return false;\n }", "private boolean checkInsideZone() {\n for (Zone z : shiftZones) {\n if (PolyUtil.containsLocation(userLocation, Arrays.asList(z.getCoords()), true)) {\n return true;\n }\n }\n return false;\n }", "public int getBlockZ()\n\t {\n\t\t if(z >= 0.0) return (int)z;\n\t\t return -1 + (int)(z);\n\t }", "Collection<? extends Object> getHasZCoordinate();", "void removeHasZCoordinate(Object oldHasZCoordinate);", "public boolean isGameOver(int x, int y, int z){\n Coords position = new Coords(x,y,z);\n if(!position.isCorrect) return false;\n for(int i=-1; i<2; i++)\n for(int j=-1; j<2; j++)\n for(int k=-1; k<2; k++){\n if(i==0 && j==0 && k==0) continue;\n Coords c2 = new Coords(position.getX()+i,position.getY()+j,position.getZ()+k);\n Coords c3 = new Coords(position.getX()+2*i,position.getY()+2*j,position.getZ()+2*k);\n Coords c4 = new Coords(position.getX()+3*i,position.getY()+3*j,position.getZ()+3*k);\n if(c2.isCorrect && c3.isCorrect && c4.isCorrect){\n if(board[position.getX()][position.getY()][position.getZ()]==\n board[c2.getX()][c2.getY()][c2.getZ()]&&board[c2.getX()][c2.getY()][c2.getZ()]\n ==board[c3.getX()][c3.getY()][c3.getZ()]&&board[c4.getX()][c4.getY()][c4.getZ()]\n ==board[c3.getX()][c3.getY()][c3.getZ()]) return true;}\n c4 = new Coords(position.getX()-i,position.getY()-j,position.getZ()-k);\n if(c2.isCorrect && c3.isCorrect && c4.isCorrect){\n if(board[position.getX()][position.getY()][position.getZ()]==\n board[c2.getX()][c2.getY()][c2.getZ()]&&board[c2.getX()][c2.getY()][c2.getZ()]\n ==board[c3.getX()][c3.getY()][c3.getZ()]&&board[c4.getX()][c4.getY()][c4.getZ()]\n ==board[c3.getX()][c3.getY()][c3.getZ()]) return true;}\n }\n return false;\n }", "public void setLocalZ(float z){\n\t\tthis.z = z;\n\t}", "public static int getGroundFromAbove(World world, int x, int z)\n\t{\n\t\tint y = 255;\n\t\tboolean foundGround = false;\n\t\twhile(!foundGround && y-- >= 63)\n\t\t{\n\t\t\tBlock blockAt = world.getBlockState(new BlockPos(x,y,z)).getBlock();\n\t\t\tfoundGround = blockAt == Blocks.DIRT || blockAt == Blocks.GRASS || blockAt == Blocks.SAND || blockAt == Blocks.SNOW || blockAt == Blocks.SNOW_LAYER || blockAt == Blocks.GLASS;\n\t\t}\n\n\t\treturn y;\n\t}", "private boolean isVecInXZ(Vec3 vec) {\n\t\treturn vec == null ? false : vec.xCoord >= this.minX && vec.xCoord <= this.maxX && vec.zCoord >= this.minZ && vec.zCoord <= this.maxZ;\n\t}", "private boolean isVecInYZ(Vec3 vec) {\n\t\treturn vec == null ? false : vec.yCoord >= this.minY && vec.yCoord <= this.maxY && vec.zCoord >= this.minZ && vec.zCoord <= this.maxZ;\n\t}", "public boolean lessThan(int y, int z){\n\t\treturn queueArray[y][0].compareTo(queueArray[z][0]) < 0;\n\t}", "public void removeFromZ(int z){\n\t\tcurrentSet().Z.remove(new Integer(z));\n\t\tcurrentSet().inZ[z] = false;\n\t}", "private boolean isThereANeighborChest(World world, int x, int y, int z)\n {\n if(!canDoublechest) {\n return false;\n }\n if(!isSameBlock(world, x, y, z)) {\n return false;\n }\n\n if(isSameBlock(world, x - 1, y, z)) {\n return true;\n }\n\n if(isSameBlock(world, x + 1, y, z)) {\n return true;\n }\n\n if(isSameBlock(world, x, y, z - 1)) {\n return true;\n }\n\n if(isSameBlock(world, x, y, z + 1)) {\n return true;\n }\n return false;\n }", "public final boolean zzk() {\n return (this.zzy & 256) != 0;\n }", "private static boolean dangerZone(int closestGuess)\n {\n return (closestGuess < guessRange);\n }", "public MiniMapLocation inList(int x, int z) {\n \t\treturn null;\n \t}", "public boolean blockIsNotSafe(World world, double x, double y, double z) {\r\n if (world.getBlockAt((int) Math.floor(x), (int) Math.floor(y),(int) Math.floor(z)).getType() != Material.AIR \r\n || world.getBlockAt((int) Math.floor(x),(int) Math.floor(y + 1), (int) Math.floor(z)).getType() != Material.AIR)\r\n return true;\r\n \r\n if ((world.getBlockAt((int) Math.floor(x), (int) Math.floor(y - 1),(int) Math.floor(z)).getType() == Material.LAVA))\r\n return true;\r\n \r\n if ((world.getBlockAt((int) Math.floor(x), (int) Math.floor(y - 1),(int) Math.floor(z)).getType() == Material.STATIONARY_LAVA))\r\n return true;\r\n \r\n if ((world.getBlockAt((int) Math.floor(x), (int) Math.floor(y - 1),(int) Math.floor(z)).getType() == Material.FIRE))\r\n return true;\r\n \r\n if ((world.getBlockAt((int) Math.floor(x), (int) Math.floor(y),(int) Math.floor(z)).getType() == Material.FIRE))\r\n return true;\r\n \r\n if (blockIsAboveAir(world, x, y, z))\r\n return true;\r\n\r\n return false;\r\n }", "void addHasZCoordinate(Object newHasZCoordinate);", "@Override\n\tpublic boolean isInside(float x, float y, float z) {\n\t\treturn false;\n\t}", "private int deadZone(int value, int minValue)\n\t{\n\t\tif (Math.abs(value) < minValue) value = 0;\n\t\t\n\t\treturn value;\n\t}", "float getZ();", "float getZ();", "float getZ();", "public final boolean zzh() {\n return zzq() && this.zzz <= zzgod.GROUP.zza();\n }", "private boolean isVecInsideXZBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.xCoord>=bounds[0] && vec.xCoord<=bounds[3] && vec.zCoord>=bounds[2] && vec.zCoord<=bounds[5];\n }", "default boolean contains(double x, double y, double z) {\r\n return Vector3.between(getOrgX(), getOrgY(), getOrgZ(), x, y, z).isMultipleOf(getDirection());\r\n }", "public boolean contains(int x, int y, int z) {\n return x >= minX && x <= maxX && y >= minY && y <= maxY && z >= minZ && z <= maxZ;\n }", "public final boolean zza(zzdxo<?> zzdxo, zzd zzd, zzd zzd2) {\n return zzhwj.compareAndSwapObject(zzdxo, zzhwk, zzd, zzd2);\n }", "public double threshold(double z) {\n\t\tif(z>=0) {\n\t\t\treturn 1;\n\t\t}else {\n\t\t\treturn 0;\n\t\t}\n\t}", "private static boolean zza() {\n Object object = zzc;\n synchronized (object) {\n return false;\n }\n }", "public float getLocalZ(){\n\t\treturn this.z;\n\t}", "public boolean In(double x, double y, double z){\n int xInt=(int)Math.floor(x);\n int yInt=(int)Math.floor(y);\n int zInt=(int)Math.floor(z);\n return In(xInt,yInt,zInt);\n }", "private int cornerCrash(@NotNull Wall wallToCheck) {\n ArrayList<Coordinate> wallCoordinates = wallToCheck.getPointsArray();\n if (coordinates.get(2).getXCoordinate() < wallCoordinates.get(0).getXCoordinate() && coordinates.get(2).getYCoordinate() < wallCoordinates.get(0).getYCoordinate())\n return 0;\n else if (coordinates.get(0).getXCoordinate() > wallCoordinates.get(1).getXCoordinate() && coordinates.get(0).getYCoordinate() < wallCoordinates.get(1).getYCoordinate())\n return 1;\n else if (wallCoordinates.get(2).getXCoordinate() < coordinates.get(0).getXCoordinate() && wallCoordinates.get(2).getYCoordinate() < coordinates.get(0).getYCoordinate())\n return 2;\n else if (coordinates.get(1).getXCoordinate() < wallCoordinates.get(3).getXCoordinate() && coordinates.get(1).getYCoordinate() > wallCoordinates.get(3).getYCoordinate())\n return 3;\n else\n return -1;\n }", "public void setSpawnZ(int z)\n {\n spawnZ = z;\n }", "public double threshold(double z) {\n\t\t// This must be implemented by you\n\t\tif(z>=0) {\n\t\t\treturn 1;\n\t\t}else {\n\t\t\treturn 0;\n\t\t}\n\t}", "public abstract boolean zza(zzdxo<?> zzdxo, zzd zzd, zzd zzd2);", "public static Geometry addZ(Geometry geometry, double z) {\n if (geometry == null) {\n return null;\n }\n geometry.apply(new AddZCoordinateSequenceFilter(z));\n return geometry;\n }", "boolean isZOrderable();", "public float getLimit_lin_z_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 48);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 40);\n\t\t}\n\t}", "int getZ();", "int getZ();", "int getZ();", "public final boolean zza(zzdxo<?> zzdxo, zzk zzk, zzk zzk2) {\n return zzhwj.compareAndSwapObject(zzdxo, zzhwl, zzk, zzk2);\n }", "public Point evaluate(double x, double y, double z) {\n\t\t// x=(-(yn(y-y0)+zn(z-z0))+xn*x0)/xn\n\t\tif (x != x) {\n\t\t\tx = (-(normal.y * (y - origin.y) + normal.z * (z - origin.z)) + normal.x\n\t\t\t\t\t* origin.x)\n\t\t\t\t\t/ normal.x;\n\t\t\treturn new Point(x, y, z);\n\t\t} else if (y != y) {\n\t\t\ty = (-(normal.x * (x - origin.x) + normal.z * (z - origin.z)) + normal.y\n\t\t\t\t\t* origin.y)\n\t\t\t\t\t/ normal.y;\n\t\t\treturn new Point(x, y, z);\n\t\t} else if (z != z) {\n\t\t\tz = (-(normal.y * (y - origin.y) + normal.x * (x - origin.x)) + normal.z\n\t\t\t\t\t* origin.z)\n\t\t\t\t\t/ normal.z;\n\t\t\treturn new Point(x, y, z);\n\t\t}\n\t\treturn null;\n\t}", "protected boolean updatePosList(int x, int y, int z) {\r\n int position = this.computePlanePosition(x, y, z);\r\n\r\n // at the border\r\n if (position < Space.ORDINATEBASE)\r\n return true;\r\n\r\n for (Iterator<DiscretePositionData> iterator = this.positionList.iterator(); iterator\r\n .hasNext();) {\r\n\r\n DiscretePositionData positionData = iterator.next();\r\n if (positionData.getContentCount() != -1\r\n && positionData.getPlanePosition() == position) {\r\n\r\n if (positionData.getContentCount() == 1) {\r\n iterator.remove();\r\n } else {\r\n positionData.incrementContentCount();\r\n }\r\n\r\n return true;\r\n }\r\n }\r\n\r\n return false;\r\n }", "public boolean blockIsAboveAir(World world, double x, double y, double z) {\r\n return (world.getBlockAt((int) Math.floor(x), (int) Math.floor(y - 1),\r\n (int) Math.floor(z)).getType() == Material.AIR);\r\n }", "public final boolean checkIfInZone(L2Object obj) { return (getSiege(obj) != null); }", "public void setFixedZdepth(int expectedZIndex);", "public static double deadzone(double input){\n\t\tdouble dead = 0.1;\n\t\t\n\t\tif (dead > 1) { return 0; }\n\t\tif (Math.abs(input) > 1) { return 0; }\n\t\tif (Math.abs(input) >= dead) { return input; }\n\t\treturn 0;\n\t}", "private boolean isVecInsideYZBounds(World world, BlockPos pos, Vec3 vec) {\n double[] bounds = getBlockBounds(world, pos);\n return bounds!=null && vec!=null && vec.yCoord>=bounds[1]&& vec.yCoord<=bounds[4] &&vec.zCoord>=bounds[2] && vec.zCoord<=bounds[5];\n }", "public int getZ() {\n\t\treturn -150;\n\t}", "public void setZ(int zPos){\t\t\n\t\tz = new Integer(zPos);\n\t}", "public float getLimit_ang_z_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 72);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 64);\n\t\t}\n\t}", "public void setLimit_ang_z_lower(float limit_ang_z_lower) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 72, limit_ang_z_lower);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 64, limit_ang_z_lower);\n\t\t}\n\t}", "float zMax();", "public void setLimit_lin_z_lower(float limit_lin_z_lower) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 48, limit_lin_z_lower);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 40, limit_lin_z_lower);\n\t\t}\n\t}", "private boolean overlaps(int x1, int z1, int x2, int z2, int radius)\r\n {\r\n int var6 = x1 - x2;\r\n int var7 = z1 - z2;\r\n return var6 >= -radius && var6 <= radius ? var7 >= -radius && var7 <= radius : false;\r\n }", "public abstract boolean zza(zzhr zzhr);", "public boolean hasZ() {\n return zBuilder_ != null || z_ != null;\n }", "godot.wire.Wire.Vector3 getZ();", "@Override\n\tpublic boolean canPlaceBlockAt(World world, int x, int y, int z) {\n\t\t//int currentID = world.getBlockId(x, y, z);\n\t\treturn (world.isAirBlock(x, y, z));\n\t}", "public XzPair structurePosInRegion(long x, long z, long seed){\n rnd.setSeed((long) x * 341873128712L + (long)z * 132897987541L + seed + 10387313);\n return new XzPair((rnd.nextInt(27) + rnd.nextInt(27)) / 2 , (rnd.nextInt(27) + rnd.nextInt(27)) / 2);\n }", "@Nullable\n BlockPos getTopPosition(int x, int y, int z, MovementLimitations limitations) {\n Map<String, BlockPos> cache = limitations.canSwim ? this.swimmingTopPositionCache : this.notSwimmingTopPositionCache;\n String originalPositionKey = ToStringHelper.toString(x, y, z);\n if (cache.get(originalPositionKey) != null) {\n return cache.get(originalPositionKey);\n }\n\n BlockPos position = new MyMutableBlockPos(x, y, z);\n\n int diffInHeight = 0;\n while (this.isSolid(position, limitations) && diffInHeight < limitations.jumHeight) {\n position = position.up();\n diffInHeight++;\n }\n\n if (this.isSolid(position, limitations)) {\n return null;\n }\n position = position.up();\n\n BlockPos finishedPosition = position.toImmutable();\n cache.put(originalPositionKey, finishedPosition);\n return finishedPosition;\n }", "private int z(int i, Complex prevZ) {\n\t\t\tif(i == 0) return z(1, Complex.ZERO);\n\t\t\tif(i >= maxIts) return maxIts;\n\t\t\telse {\n\t\t\t\tComplex res = c.add(prevZ.square());\n\t\t\t\tif (res.modulusSquared() < 4.0) {\n\t\t\t\t\treturn z(i+1, res);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tescapeZ = res;\n\t\t\t\t\treturn i;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\n public double getLocationZ() {\n return myMovable.getLocationZ();\n }", "public int distance(int x, int y, int z) {\n int nx = Math.max(Math.min(x, maxX), minX);\n int ny = Math.max(Math.min(y, maxY), minY);\n int nz = Math.max(Math.min(z, maxZ), minZ);\n return HelperUtils.distance(x, y, z, nx, ny, nz);\n }", "@Test\n public void testOverboundsInside() {\n Coordinate a, b, c, d;\n a = new Coordinate2D(2, 2, 0);\n b = new Coordinate2D(3, 3, 0);\n c = new Coordinate2D(2, 0, 0);\n d = new Coordinate2D(4, 2, 0);\n\n int actual, expected;\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(a);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(b);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(c);\n assertEquals(expected, actual);\n\n expected = 0;\n actual = hex.getDistanceOverBoundary(d);\n assertEquals(expected, actual);\n }", "public boolean In(int x, int y, int z){\n if(x>=0&&x<xDim&&y>=0&&y<yDim&&z>=0&&z<zDim){\n return true;\n }\n return false;\n }", "public final synchronized boolean zzaq() {\n return zzar() != null;\n }", "List<Zone> getActiveZones(SpacedVector3 point);", "public abstract boolean zza(zzdxo<?> zzdxo, zzk zzk, zzk zzk2);", "public void addToZ(int z){\n\t\tcurrentSet().Z.add(z);\n\t\tcurrentSet().inZ[z] = true;\n\t}", "protected boolean teleportTo(double x, double y, double z) {\n double xI = this.posX;\n double yI = this.posY;\n double zI = this.posZ;\n this.posX = x;\n this.posY = y;\n this.posZ = z;\n boolean canTeleport = false;\n int blockX = (int)Math.floor(this.posX);\n int blockY = (int)Math.floor(this.posY);\n int blockZ = (int)Math.floor(this.posZ);\n Block block;\n if (this.worldObj.blockExists(blockX, blockY, blockZ)) {\n boolean canTeleportToBlock = false;\n while (!canTeleportToBlock && blockY > 0) {\n block = this.worldObj.getBlock(blockX, blockY - 1, blockZ);\n if (block != null && block.getMaterial().blocksMovement()) {\n canTeleportToBlock = true;\n }\n else {\n --this.posY;\n --blockY;\n }\n }\n if (canTeleportToBlock) {\n this.setPosition(this.posX, this.posY, this.posZ);\n if (this.worldObj.getCollidingBoundingBoxes(this, this.boundingBox).size() == 0 && !this.worldObj.isAnyLiquid(this.boundingBox)) {\n canTeleport = true;\n }\n }\n }\n if (!canTeleport) {\n this.setPosition(xI, yI, zI);\n return false;\n }\n for (int i = 0; i < 128; i++) {\n double posRelative = i / 127.0;\n float vX = (this.rand.nextFloat() - 0.5F) * 0.2F;\n float vY = (this.rand.nextFloat() - 0.5F) * 0.2F;\n float vZ = (this.rand.nextFloat() - 0.5F) * 0.2F;\n double dX = xI + (this.posX - xI) * posRelative + (this.rand.nextDouble() - 0.5) * this.width * 2.0;\n double dY = yI + (this.posY - yI) * posRelative + this.rand.nextDouble() * this.height;\n double dZ = zI + (this.posZ - zI) * posRelative + (this.rand.nextDouble() - 0.5) * this.width * 2.0;\n this.worldObj.spawnParticle(\"portal\", dX, dY, dZ, vX, vY, vZ);\n }\n this.worldObj.playSoundEffect(xI, yI, zI, \"mob.endermen.portal\", 1.0F, 1.0F);\n this.worldObj.playSoundAtEntity(this, \"mob.endermen.portal\", 1.0F, 1.0F);\n return true;\n }", "public boolean zombiesNearbyExceedCap(Player player) {\n int zombies = 0;\n double dist = plugin.CONFIG.SPAWNING_RADIUS_MAX / 2;\n for (Entity ent : player.getNearbyEntities(dist, dist, dist)) {\n if (ent.getType().equals(EntityType.ZOMBIE)) zombies++;\n }\n return zombies >= plugin.CONFIG.SPAWNING_NEARBY_CAP;\n }", "public float getZ() {\r\n return z;\r\n }", "public int getzPos() {\n return zPos;\n }", "public final void mZ() throws RecognitionException {\n try {\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:552:11: ( ( 'z' | 'Z' ) )\n // /Users/devdatta.kulkarni/Documents/Cassandra/apache-cassandra-0.8.6-src/src/java/org/apache/cassandra/cql/Cql.g:552:13: ( 'z' | 'Z' )\n {\n if ( input.LA(1)=='Z'||input.LA(1)=='z' ) {\n input.consume();\n\n }\n else {\n MismatchedSetException mse = new MismatchedSetException(null,input);\n recover(mse);\n throw mse;}\n\n\n }\n\n }\n finally {\n }\n }", "@Test\n public void shouldReturnCornerCaseMinimumAmbientAirTemperature() {\n\n Integer testInput = 1;\n Integer expectedValue = -39;\n \n AmbientAirTemperature testAmbientAirTemperature = new AmbientAirTemperature(testInput);\n AmbientAirPressure testAmbientAirPressure = new AmbientAirPressure(0);\n \n WeatherProbe testWeatherProbe = new WeatherProbe(\n testAmbientAirTemperature,\n testAmbientAirPressure,\n mockWiperSet);\n \n Integer actualValue = OssWeatherProbe.genericWeatherProbe(testWeatherProbe).getAirTemp();\n \n assertEquals(expectedValue, actualValue);\n \n }", "private void checkOffset() {\n\t\tfloat CurZ=mApplications.get(CurIndex).getZ();\r\n\t\tfloat diff=0;\r\n\t\tfloat offset=ApplicationInfo.getOffset();\r\n\t\tLog.d(TAG, \"checkOffset: \"+ApplicationInfo.Destination);\r\n\t\tif(ApplicationInfo.IsScrolling)\r\n\t\t{\r\n\t\t\tif(offset > 0 && CurZ < Constants.displayedPlace \r\n\t\t\t\t\t&& (diff=glview.floorby2(Constants.displayedPlace - CurZ)) < offset)\r\n\t\t\t{\r\n\t\t\t\toffset=diff;\r\n\t\t\t}\r\n\t\t\telse if(offset < 0 && CurZ > Constants.displayedPlace \r\n\t\t\t\t\t&& (diff=glview.floorby2(CurZ - Constants.displayedPlace)) < offset)\r\n\t\t\t{\r\n\t\t\t\toffset=-diff;\r\n\t\t\t}\r\n\t\t\tApplicationInfo.setOffset(offset);\r\n\t\t\treturn ;\r\n\t\t}\r\n \t\tswitch(ApplicationInfo.Destination)\r\n \t\t{\r\n \t\tcase Constants.TO_BACK:\r\n \t\t\tif((diff=glview.floorby2(CurZ - Constants.originPlace)) < offset)\r\n \t\t\t\toffset=-diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_BACKWARD_CENTER:\r\n \t\t\tif((diff=glview.floorby2(CurZ - Constants.displayedPlace)) < offset)\r\n \t\t\t\toffset=-diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_FORWARD_CENTER:\r\n \t\t\tif((diff=glview.floorby2(Constants.displayedPlace - CurZ)) < offset)\r\n \t\t\t\toffset=diff;\r\n \t\t\tbreak;\r\n \t\tcase Constants.TO_FRONT:\r\n \t\t\tif((diff=glview.floorby2(Constants.disapearedPlace - CurZ)) < offset)\r\n \t\t\t\toffset=diff;\r\n \t\t\tbreak;\r\n \t\t}\r\n \t\tApplicationInfo.setOffset(offset);\r\n\t}", "@Test\n public void testFind_West_cross_boundary() {\n\n double lat1 = 0.0;\n double lon1 = -170.0;\n double lat2 = 0.0;\n double lon2 = 170.0;\n double expResult = Math.toRadians(270);\n double result = Azimuth.find(lat1, lon1, lat2, lon2);\n assertEquals(expResult, result, 0.0);\n }", "public int zzu() {\n int zzu = super.zzu();\n if (this.zzcwX) {\n zzu += zzbyc.zzh(1, this.zzcwX);\n }\n if (this.score != 0) {\n zzu += zzbyc.zzL(2, this.score);\n }\n return (this.zzcwY == null || this.zzcwY.equals(\"\")) ? zzu : zzu + zzbyc.zzr(3, this.zzcwY);\n }", "public boolean isInsideZone(L2Object object)\r\n\t{\r\n\t\treturn isInsideZone(object.getX(), object.getY(), object.getZ());\r\n\t}", "public float getZ() {\n return z_;\n }" ]
[ "0.7028947", "0.6816269", "0.678526", "0.6501398", "0.64578575", "0.6074104", "0.6069775", "0.6026876", "0.59879714", "0.5943065", "0.5933632", "0.5900888", "0.5900888", "0.5870532", "0.5869115", "0.5833293", "0.58123153", "0.5770969", "0.576808", "0.57607424", "0.5756904", "0.57032883", "0.56623584", "0.56443167", "0.55972064", "0.5591329", "0.55655", "0.5521706", "0.5511373", "0.5491025", "0.54839057", "0.54812974", "0.5472902", "0.54703593", "0.54539245", "0.54507786", "0.54280823", "0.5412652", "0.5412652", "0.5412652", "0.54094595", "0.5400441", "0.539385", "0.5391525", "0.5388683", "0.5369459", "0.53544664", "0.5354239", "0.53479916", "0.53368944", "0.53348696", "0.5333175", "0.53248936", "0.53190327", "0.53172004", "0.5307951", "0.53070074", "0.53070074", "0.53070074", "0.5300913", "0.5297337", "0.5296319", "0.52781457", "0.527595", "0.5266643", "0.5266493", "0.5262191", "0.525384", "0.52490026", "0.52421683", "0.52333945", "0.5231249", "0.5227949", "0.522172", "0.52196413", "0.52147573", "0.52142423", "0.5207706", "0.5206313", "0.51967293", "0.51959443", "0.5195619", "0.51913005", "0.51836264", "0.518057", "0.5170507", "0.51412165", "0.51324075", "0.5127046", "0.5121982", "0.5116648", "0.5108773", "0.51086736", "0.5092678", "0.5089589", "0.50846434", "0.5079809", "0.5078607", "0.50772816", "0.50697446" ]
0.5390417
44
/ getLowZ() / getHighZ() These two functions were added to cope with the demand of the new fishing algorithms, wich are now able to correctly place the hook in the water, thanks to getHighZ(). getLowZ() was added, considering potential future modifications.
@Override public int getLowZ() { return zoneZ1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getZ();", "float getZ();", "float getZ();", "int getZ();", "int getZ();", "int getZ();", "float zMin();", "public float getLimit_lin_z_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 48);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 40);\n\t\t}\n\t}", "public float getLimit_ang_z_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 72);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 64);\n\t\t}\n\t}", "public int getZ() {\n\t\treturn -150;\n\t}", "float getAccZ();", "int getZOrder();", "public float approach_z_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 49, 4))); }", "godot.wire.Wire.Vector3 getZ();", "public float getLimit_lin_z_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 52);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 44);\n\t\t}\n\t}", "public float approach_z_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 48, 4))); }", "@Override\n\tpublic int getZ() {\n\t\treturn 1000;\n\t}", "private double calculateLowAffiliation(int helicopterY) {\n double low;\n if (helicopterY + HELICOPTER_HEIGHT > 3*(double)SCREEN_HEIGHT/4) {\n low = 1.0;\n }\n else if (helicopterY + HELICOPTER_HEIGHT < (double)SCREEN_HEIGHT/4) {\n low = 0.0;\n }\n else {\n low = 2.0*(double)(helicopterY + HELICOPTER_HEIGHT)/((double)SCREEN_HEIGHT) - 0.5;\n }\n return low;\n }", "double getZ() { return pos[2]; }", "public void setLimit_ang_z_lower(float limit_ang_z_lower) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 72, limit_ang_z_lower);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 64, limit_ang_z_lower);\n\t\t}\n\t}", "public void setLimit_lin_z_lower(float limit_lin_z_lower) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 48, limit_lin_z_lower);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 40, limit_lin_z_lower);\n\t\t}\n\t}", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@Override\n\tpublic double getZLoc() {\n\t\tdouble side = Math.sqrt(getMySize())/2;\n\t\treturn z-side;\n\t}", "@SideOnly(Side.CLIENT)\n\tpublic int getSkyBlockTypeBrightness(final EnumSkyBlock skyBlock, final int x, int y, final int z) {\n\t\tif (x >= -30000000 && z >= -30000000 && x < 30000000 && z <= 30000000) {\n\t\t\tif (skyBlock == EnumSkyBlock.Sky && this.worldObj.provider.hasNoSky)\n\t\t\t\treturn 0;\n\n\t\t\tif (y < 0)\n\t\t\t\ty = 0;\n\t\t\telse if (y > 255)\n\t\t\t\ty = 255;\n\n\t\t\tfinal int arrayX = (x >> 4) - this.chunkX;\n\t\t\tfinal int arrayZ = (z >> 4) - this.chunkZ;\n\t\t\tassert (arrayX >= 0 && arrayX < this.dimX && arrayZ >= 0 && arrayZ < this.dimZ);\n\t\t\t// if (l >= 0 && l < this.dimX && i1 >= 0 && i1 < this.dimZ)\n\t\t\tfinal Chunk chunk = this.chunkArray[arrayX + arrayZ * this.dimX];\n\n\t\t\tif (chunk.getBlock(x & 15, y, z & 15).getUseNeighborBrightness()) {\n\t\t\t\tint l = this.getSpecialBlockBrightness(skyBlock, x, y + 1, z);\n\t\t\t\tint i1 = this.getSpecialBlockBrightness(skyBlock, x + 1, y, z);\n\t\t\t\tint j1 = this.getSpecialBlockBrightness(skyBlock, x - 1, y, z);\n\t\t\t\tint k1 = this.getSpecialBlockBrightness(skyBlock, x, y, z + 1);\n\t\t\t\tint l1 = this.getSpecialBlockBrightness(skyBlock, x, y, z - 1);\n\n\t\t\t\tif (i1 > l) {\n\t\t\t\t\tl = i1;\n\t\t\t\t}\n\n\t\t\t\tif (j1 > l) {\n\t\t\t\t\tl = j1;\n\t\t\t\t}\n\n\t\t\t\tif (k1 > l) {\n\t\t\t\t\tl = k1;\n\t\t\t\t}\n\n\t\t\t\tif (l1 > l) {\n\t\t\t\t\tl = l1;\n\t\t\t\t}\n\n\t\t\t\treturn l;\n\t\t\t} else {\n\t\t\t\treturn chunk.getSavedLightValue(skyBlock, x & 15, y, z & 15);\n\t\t\t}\n\t\t} else {\n\t\t\treturn skyBlock.defaultLightValue;\n\t\t}\n\t}", "public float getLocalZ(){\n\t\treturn this.z;\n\t}", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "@java.lang.Override\n public float getZ() {\n return z_;\n }", "public double getHiZ() {\r\n\treturn fieldHiZ;\r\n}", "public float getZ() {\r\n return z;\r\n }", "public double getLow() {return low;}", "float zMax();", "int getYForHive(World world, int x, int z);", "public final int getZOff() {\r\n\t\treturn zOff;\r\n\t}", "abstract double getOrgZ();", "private void FindMinZ()\r\n\t{\r\n\t\tminimum_Z=Integer.MAX_VALUE;\r\n\t\tfor(Entry<Integer,Node> entry : FutureUpdateList.entrySet())\r\n\t\t{\r\n\t\t\tNode temp=entry.getValue();\r\n\t\t\tif(temp.z<minimum_Z)\r\n\t\t\t{\r\n\t\t\t\tminimum_Z=temp.z;\r\n\t\t\t\tminimum_X=temp.x;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public float getLimit_ang_y_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 64);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 56);\n\t\t}\n\t}", "protected abstract String getZ();", "@Override\n\tpublic double getZ() {\n\t\treturn z;\n\t}", "public int getZSize() {\n\t\treturn (highPoint.getBlockZ() - lowPoint.getBlockZ()) + 1;\n\t}", "public final boolean zza() {\n boolean z = false;\n if (!this.zza.zza()) {\n return false;\n }\n this.zzx = this.zza.zzb();\n this.zzy = this.zza.zzb();\n this.zzz = this.zzy & 255;\n int i = this.zzx;\n if (i < this.zzq) {\n this.zzq = i;\n }\n int i2 = this.zzx;\n if (i2 > this.zzr) {\n this.zzr = i2;\n }\n if (this.zzz == zzgod.MAP.zza()) {\n this.zzs++;\n } else if (this.zzz >= zzgod.DOUBLE_LIST.zza() && this.zzz <= zzgod.GROUP_LIST.zza()) {\n this.zzt++;\n }\n this.zzw++;\n if (zzgqn.zza(this.zzq, this.zzx, this.zzw)) {\n this.zzv = this.zzx + 1;\n this.zzu = this.zzv - this.zzq;\n } else {\n this.zzu++;\n }\n if ((this.zzy & 1024) != 0) {\n int[] iArr = this.zzn;\n int i3 = this.zzp;\n this.zzp = i3 + 1;\n iArr[i3] = this.zzx;\n }\n if (zzd()) {\n this.zzaa = this.zza.zzb();\n if (this.zzz == zzgod.MESSAGE.zza() + 51 || this.zzz == zzgod.GROUP.zza() + 51) {\n zza(this.zzx, (Class) zzp());\n } else if (this.zzz == zzgod.ENUM.zza() + 51 && zzq()) {\n zza(this.zzx, (zzgop) zzp());\n }\n } else {\n this.zzac = zza(this.zzc, (String) zzp());\n if (zzh()) {\n this.zzab = this.zza.zzb();\n }\n if (this.zzz == zzgod.MESSAGE.zza() || this.zzz == zzgod.GROUP.zza()) {\n zza(this.zzx, this.zzac.getType());\n } else if (this.zzz == zzgod.MESSAGE_LIST.zza() || this.zzz == zzgod.GROUP_LIST.zza()) {\n zza(this.zzx, (Class) zzp());\n } else if (this.zzz == zzgod.ENUM.zza() || this.zzz == zzgod.ENUM_LIST.zza() || this.zzz == zzgod.ENUM_LIST_PACKED.zza()) {\n if (zzq()) {\n zza(this.zzx, (zzgop) zzp());\n }\n } else if (this.zzz == zzgod.MAP.zza()) {\n int i4 = this.zzx;\n Object zzp2 = zzp();\n if (this.zzaf == zzgol.zza()) {\n this.zzaf = new zzgol<>();\n }\n this.zzaf.zza(i4, zzp2);\n if ((this.zzy & 2048) != 0) {\n z = true;\n }\n if (z) {\n zza(this.zzx, (zzgop) zzp());\n }\n }\n }\n return true;\n }", "public float getZ() {\n return z_;\n }", "@SideOnly(Side.CLIENT)\n\tpublic int getSpecialBlockBrightness(final EnumSkyBlock skyBlock, final int x, int y, final int z) {\n\t\tif (x >= -30000000 && z >= -30000000 && x < 30000000 && z <= 30000000) {\n\t\t\tif (y < 0)\n\t\t\t\ty = 0;\n\t\t\telse if (y > 255)\n\t\t\t\ty = 255;\n\n\t\t\tfinal int arrayX = (x >> 4) - this.chunkX;\n\t\t\tfinal int arrayZ = (z >> 4) - this.chunkZ;\n\t\t\tassert (arrayX >= 0 && arrayX < this.dimX && arrayZ >= 0 && arrayZ < this.dimZ);\n\t\t\t// if (l >= 0 && l < this.dimX && i1 >= 0 && i1 < this.dimZ)\n\t\t\treturn this.chunkArray[arrayX + arrayZ * this.dimX].getSavedLightValue(skyBlock, x & 15, y, z & 15);\n\t\t} else {\n\t\t\treturn skyBlock.defaultLightValue;\n\t\t}\n\t}", "public int getZ() {\n return Z;\n }", "public float getZ()\n {\n return fz;\n }", "public float getLimit_ang_z_upper() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 76);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 68);\n\t\t}\n\t}", "public int getZ() {\r\n return z;\r\n }", "public static double getZFromFeH(double feH) {\n\t\treturn 0.0;\n\t}", "public double getHigh() { return high;}", "public float bottom_clearance_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 28, 4))); }", "protected Vec3 maybeBackOffFromEdge(Vec3 debug1, MoverType debug2) {\n/* 1102 */ if (!this.abilities.flying && (debug2 == MoverType.SELF || debug2 == MoverType.PLAYER) && isStayingOnGroundSurface() && isAboveGround()) {\n/* 1103 */ double debug3 = debug1.x;\n/* 1104 */ double debug5 = debug1.z;\n/* 1105 */ double debug7 = 0.05D;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 1110 */ while (debug3 != 0.0D && this.level.noCollision((Entity)this, getBoundingBox().move(debug3, -this.maxUpStep, 0.0D))) {\n/* 1111 */ if (debug3 < 0.05D && debug3 >= -0.05D) {\n/* 1112 */ debug3 = 0.0D; continue;\n/* 1113 */ } if (debug3 > 0.0D) {\n/* 1114 */ debug3 -= 0.05D; continue;\n/* */ } \n/* 1116 */ debug3 += 0.05D;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1121 */ while (debug5 != 0.0D && this.level.noCollision((Entity)this, getBoundingBox().move(0.0D, -this.maxUpStep, debug5))) {\n/* 1122 */ if (debug5 < 0.05D && debug5 >= -0.05D) {\n/* 1123 */ debug5 = 0.0D; continue;\n/* 1124 */ } if (debug5 > 0.0D) {\n/* 1125 */ debug5 -= 0.05D; continue;\n/* */ } \n/* 1127 */ debug5 += 0.05D;\n/* */ } \n/* */ \n/* */ \n/* */ \n/* 1132 */ while (debug3 != 0.0D && debug5 != 0.0D && this.level.noCollision((Entity)this, getBoundingBox().move(debug3, -this.maxUpStep, debug5))) {\n/* 1133 */ if (debug3 < 0.05D && debug3 >= -0.05D) {\n/* 1134 */ debug3 = 0.0D;\n/* 1135 */ } else if (debug3 > 0.0D) {\n/* 1136 */ debug3 -= 0.05D;\n/* */ } else {\n/* 1138 */ debug3 += 0.05D;\n/* */ } \n/* */ \n/* 1141 */ if (debug5 < 0.05D && debug5 >= -0.05D) {\n/* 1142 */ debug5 = 0.0D; continue;\n/* 1143 */ } if (debug5 > 0.0D) {\n/* 1144 */ debug5 -= 0.05D; continue;\n/* */ } \n/* 1146 */ debug5 += 0.05D;\n/* */ } \n/* */ \n/* 1149 */ debug1 = new Vec3(debug3, debug1.y, debug5);\n/* */ } \n/* 1151 */ return debug1;\n/* */ }", "public int getZ() {\n\t\treturn z;\n\t}", "@SideOnly(Side.CLIENT)\n\tpublic int getLightBrightnessForSkyBlocks(final int x, final int y, final int z, int p_72802_4_) {\n\t\tint i1 = this.getSkyBlockTypeBrightness(EnumSkyBlock.Sky, x, y, z);\n\t\tint j1 = this.getSkyBlockTypeBrightness(EnumSkyBlock.Block, x, y, z);\n\n\t\tif (j1 < p_72802_4_) {\n\t\t\tj1 = p_72802_4_;\n\t\t}\n\n\t\treturn i1 << 20 | j1 << 4;\n\t}", "public float min3DZ() {\n return Math.min(stop3D.z, start3D.z);\n }", "public int getZ() {\n return Z;\n }", "public float[] getLevels(float[] lowhibase, boolean[] dashes) {\n float[] levs = null;\n if (levels != null) {\n levs = new float[levels.length];\n System.arraycopy(levels, 0, levs, 0, levels.length);\n }\n lowhibase[0] = lowLimit;\n lowhibase[1] = hiLimit;\n lowhibase[2] = base;\n dashes[0] = dash;\n return levs;\n }", "public int zzz() {\n int i;\n int i2 = 0;\n int zzz = super.zzz();\n if (this.zzbuR != 0) {\n zzz += zzsn.zzd(1, this.zzbuR);\n }\n if (!this.tag.equals(\"\")) {\n zzz += zzsn.zzo(2, this.tag);\n }\n if (this.zzbuW != null && this.zzbuW.length > 0) {\n i = zzz;\n for (zzsu zzsu : this.zzbuW) {\n if (zzsu != null) {\n i += zzsn.zzc(3, zzsu);\n }\n }\n zzz = i;\n }\n if (!Arrays.equals(this.zzbuY, zzsx.zzbuD)) {\n zzz += zzsn.zzb(6, this.zzbuY);\n }\n if (this.zzbvb != null) {\n zzz += zzsn.zzc(7, this.zzbvb);\n }\n if (!Arrays.equals(this.zzbuZ, zzsx.zzbuD)) {\n zzz += zzsn.zzb(8, this.zzbuZ);\n }\n if (this.zzbuX != null) {\n zzz += zzsn.zzc(9, this.zzbuX);\n }\n if (this.zzbuV) {\n zzz += zzsn.zzf(10, this.zzbuV);\n }\n if (this.zzbuU != 0) {\n zzz += zzsn.zzC(11, this.zzbuU);\n }\n if (this.zzob != 0) {\n zzz += zzsn.zzC(12, this.zzob);\n }\n if (!Arrays.equals(this.zzbva, zzsx.zzbuD)) {\n zzz += zzsn.zzb(13, this.zzbva);\n }\n if (!this.zzbvc.equals(\"\")) {\n zzz += zzsn.zzo(14, this.zzbvc);\n }\n if (this.zzbvd != 180000) {\n zzz += zzsn.zze(15, this.zzbvd);\n }\n if (this.zzbve != null) {\n zzz += zzsn.zzc(16, this.zzbve);\n }\n if (this.zzbuS != 0) {\n zzz += zzsn.zzd(17, this.zzbuS);\n }\n if (!Arrays.equals(this.zzbvf, zzsx.zzbuD)) {\n zzz += zzsn.zzb(18, this.zzbvf);\n }\n if (this.zzbvg != 0) {\n zzz += zzsn.zzC(19, this.zzbvg);\n }\n if (this.zzbvh != null && this.zzbvh.length > 0) {\n i = 0;\n while (i2 < this.zzbvh.length) {\n i += zzsn.zzmx(this.zzbvh[i2]);\n i2++;\n }\n zzz = (zzz + i) + (this.zzbvh.length * 2);\n }\n if (this.zzbuT != 0) {\n zzz += zzsn.zzd(21, this.zzbuT);\n }\n return this.zzbvi != 0 ? zzz + zzsn.zzd(22, this.zzbvi) : zzz;\n }", "public Vector3f getLightPosition();", "public int getZ()\n {\n return zaxis;\n }", "public double getZ() {\r\n\t\treturn z;\t\r\n\t\t}", "public double getZ() {\n\t\treturn point[2];\n\t}", "public static Double SmallZ() {\n return SmallZ;\n }", "public float getLimit_lin_y_lower() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readFloat(__io__address + 40);\n\t\t} else {\n\t\t\treturn __io__block.readFloat(__io__address + 32);\n\t\t}\n\t}", "public int getZ() {\n return z;\n }", "int getBlockTint(fd world, int original, int x, int y, int z, TintType ttype) {\n /*if (true)*/return original; //blarg :<\n /*double temperature = 0.0;\n double humidity = 0.0;\n switch (ttype)\n {\n case GRASS:\n // world.getWorldChunkManager().func_4069_a(i, k, 1, 1);\n synchronized (world)\n {\n world.a().a(x, z, 1, 1);\n // double d =\n // iblockaccess.getWorldChunkManager().temperature[0];\n \n temperature = world.a().a[0];\n // double humidity =\n // iblockaccess.getWorldChunkManager().humidity[0];\n humidity = world.a().b[0];\n }\n // return ColorizerGrass.\n try\n {\n return colorMult(original, hx.a(temperature, humidity));\n }\n catch (Throwable t)\n {\n System.err.println(\"err on temp \" + temperature + \" and humid \" + humidity);\n t.printStackTrace();\n }\n case FOLIAGE:\n synchronized(world)\n {\n world.a().a(x, z, 1, 1);\n temperature = world.a().a[0];\n humidity = world.a().b[0];\n }\n try\n {\n // return ColorizerFoliage.getFoliageColor\n return colorMult(original, je.a(temperature, humidity));\n }\n catch (Throwable t)\n {\n System.err.println(\"err on temp \" + temperature + \" and humid \" + humidity);\n t.printStackTrace();\n }\n case PINE:\n return colorMult(original, je.a());\n case BIRCH:\n return colorMult(original, je.b());\n case REDSTONE:\n \n int blockmeta = world.e(x, y, z);\n // TODO: this could be integer math, instead of going to/from\n // float\n float floatmeta = (float)blockmeta / 15F;\n float r = floatmeta * 0.6F + 0.4F;\n if (blockmeta == 0)\n {\n r = 0.0F;\n }\n float g = floatmeta * floatmeta * 0.7F - 0.5F;\n float b = floatmeta * floatmeta * 0.6F - 0.7F;\n if (g < 0.0F)\n {\n g = 0.0F;\n }\n if (b < 0.0F)\n {\n b = 0.0F;\n }\n int tint = ((int)(b * 0xff)) + (((int)(g * 0xff)) << 8) + (((int)(r * 0xff)) << 16);\n return colorMult(original, tint);\n default:\n return original;\n }*/\n }", "double getZLength();", "private final int zza(T r18, byte[] r19, int r20, int r21, int r22, int r23, int r24, int r25, int r26, long r27, int r29, com.google.android.gms.internal.clearcut.zzay r30) throws java.io.IOException {\n /*\n r17 = this;\n r0 = r17;\n r1 = r18;\n r3 = r19;\n r4 = r20;\n r2 = r22;\n r8 = r23;\n r5 = r24;\n r9 = r27;\n r6 = r29;\n r11 = r30;\n r12 = zzmh;\n r7 = r0.zzmi;\n r13 = r6 + 2;\n r7 = r7[r13];\n r13 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n r7 = r7 & r13;\n r13 = (long) r7;\n r7 = 5;\n r15 = 2;\n switch(r26) {\n case 51: goto L_0x0168;\n case 52: goto L_0x0158;\n case 53: goto L_0x0148;\n case 54: goto L_0x0148;\n case 55: goto L_0x013b;\n case 56: goto L_0x012f;\n case 57: goto L_0x0124;\n case 58: goto L_0x010e;\n case 59: goto L_0x00e2;\n case 60: goto L_0x00bc;\n case 61: goto L_0x00a4;\n case 62: goto L_0x013b;\n case 63: goto L_0x0076;\n case 64: goto L_0x0124;\n case 65: goto L_0x012f;\n case 66: goto L_0x0068;\n case 67: goto L_0x005a;\n case 68: goto L_0x0028;\n default: goto L_0x0026;\n };\n L_0x0026:\n goto L_0x017c;\n L_0x0028:\n r7 = 3;\n if (r5 != r7) goto L_0x017c;\n L_0x002b:\n r2 = r2 & -8;\n r7 = r2 | 4;\n r2 = r0.zzad(r6);\n r3 = r19;\n r4 = r20;\n r5 = r21;\n r6 = r7;\n r7 = r30;\n r2 = zza(r2, r3, r4, r5, r6, r7);\n r3 = r12.getInt(r1, r13);\n if (r3 != r8) goto L_0x004b;\n L_0x0046:\n r15 = r12.getObject(r1, r9);\n goto L_0x004c;\n L_0x004b:\n r15 = 0;\n L_0x004c:\n if (r15 != 0) goto L_0x0052;\n L_0x004e:\n r3 = r11.zzff;\n goto L_0x0154;\n L_0x0052:\n r3 = r11.zzff;\n r3 = com.google.android.gms.internal.clearcut.zzci.zza(r15, r3);\n goto L_0x0154;\n L_0x005a:\n if (r5 != 0) goto L_0x017c;\n L_0x005c:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzb(r3, r4, r11);\n r3 = r11.zzfe;\n r3 = com.google.android.gms.internal.clearcut.zzbk.zza(r3);\n goto L_0x0150;\n L_0x0068:\n if (r5 != 0) goto L_0x017c;\n L_0x006a:\n r2 = com.google.android.gms.internal.clearcut.zzax.zza(r3, r4, r11);\n r3 = r11.zzfd;\n r3 = com.google.android.gms.internal.clearcut.zzbk.zzm(r3);\n goto L_0x0143;\n L_0x0076:\n if (r5 != 0) goto L_0x017c;\n L_0x0078:\n r3 = com.google.android.gms.internal.clearcut.zzax.zza(r3, r4, r11);\n r4 = r11.zzfd;\n r5 = r0.zzaf(r6);\n if (r5 == 0) goto L_0x009a;\n L_0x0084:\n r5 = r5.zzb(r4);\n if (r5 == 0) goto L_0x008b;\n L_0x008a:\n goto L_0x009a;\n L_0x008b:\n r1 = zzn(r18);\n r4 = (long) r4;\n r4 = java.lang.Long.valueOf(r4);\n r1.zzb(r2, r4);\n r2 = r3;\n goto L_0x017d;\n L_0x009a:\n r2 = java.lang.Integer.valueOf(r4);\n r12.putObject(r1, r9, r2);\n r2 = r3;\n goto L_0x0178;\n L_0x00a4:\n if (r5 != r15) goto L_0x017c;\n L_0x00a6:\n r2 = com.google.android.gms.internal.clearcut.zzax.zza(r3, r4, r11);\n r4 = r11.zzfd;\n if (r4 != 0) goto L_0x00b2;\n L_0x00ae:\n r3 = com.google.android.gms.internal.clearcut.zzbb.zzfi;\n goto L_0x0154;\n L_0x00b2:\n r3 = com.google.android.gms.internal.clearcut.zzbb.zzb(r3, r2, r4);\n r12.putObject(r1, r9, r3);\n L_0x00b9:\n r2 = r2 + r4;\n goto L_0x0178;\n L_0x00bc:\n if (r5 != r15) goto L_0x017c;\n L_0x00be:\n r2 = r0.zzad(r6);\n r5 = r21;\n r2 = zza(r2, r3, r4, r5, r11);\n r3 = r12.getInt(r1, r13);\n if (r3 != r8) goto L_0x00d3;\n L_0x00ce:\n r15 = r12.getObject(r1, r9);\n goto L_0x00d4;\n L_0x00d3:\n r15 = 0;\n L_0x00d4:\n if (r15 != 0) goto L_0x00da;\n L_0x00d6:\n r3 = r11.zzff;\n goto L_0x0154;\n L_0x00da:\n r3 = r11.zzff;\n r3 = com.google.android.gms.internal.clearcut.zzci.zza(r15, r3);\n goto L_0x0154;\n L_0x00e2:\n if (r5 != r15) goto L_0x017c;\n L_0x00e4:\n r2 = com.google.android.gms.internal.clearcut.zzax.zza(r3, r4, r11);\n r4 = r11.zzfd;\n if (r4 != 0) goto L_0x00ef;\n L_0x00ec:\n r3 = \"\";\n goto L_0x0154;\n L_0x00ef:\n r5 = 536870912; // 0x20000000 float:1.0842022E-19 double:2.652494739E-315;\n r5 = r25 & r5;\n if (r5 == 0) goto L_0x0103;\n L_0x00f5:\n r5 = r2 + r4;\n r5 = com.google.android.gms.internal.clearcut.zzff.zze(r3, r2, r5);\n if (r5 == 0) goto L_0x00fe;\n L_0x00fd:\n goto L_0x0103;\n L_0x00fe:\n r1 = com.google.android.gms.internal.clearcut.zzco.zzbp();\n throw r1;\n L_0x0103:\n r5 = new java.lang.String;\n r6 = com.google.android.gms.internal.clearcut.zzci.UTF_8;\n r5.<init>(r3, r2, r4, r6);\n r12.putObject(r1, r9, r5);\n goto L_0x00b9;\n L_0x010e:\n if (r5 != 0) goto L_0x017c;\n L_0x0110:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzb(r3, r4, r11);\n r3 = r11.zzfe;\n r5 = 0;\n r7 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1));\n if (r7 == 0) goto L_0x011e;\n L_0x011c:\n r15 = 1;\n goto L_0x011f;\n L_0x011e:\n r15 = 0;\n L_0x011f:\n r3 = java.lang.Boolean.valueOf(r15);\n goto L_0x0154;\n L_0x0124:\n if (r5 != r7) goto L_0x017c;\n L_0x0126:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzc(r19, r20);\n r2 = java.lang.Integer.valueOf(r2);\n goto L_0x0162;\n L_0x012f:\n r2 = 1;\n if (r5 != r2) goto L_0x017c;\n L_0x0132:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzd(r19, r20);\n r2 = java.lang.Long.valueOf(r2);\n goto L_0x0173;\n L_0x013b:\n if (r5 != 0) goto L_0x017c;\n L_0x013d:\n r2 = com.google.android.gms.internal.clearcut.zzax.zza(r3, r4, r11);\n r3 = r11.zzfd;\n L_0x0143:\n r3 = java.lang.Integer.valueOf(r3);\n goto L_0x0154;\n L_0x0148:\n if (r5 != 0) goto L_0x017c;\n L_0x014a:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzb(r3, r4, r11);\n r3 = r11.zzfe;\n L_0x0150:\n r3 = java.lang.Long.valueOf(r3);\n L_0x0154:\n r12.putObject(r1, r9, r3);\n goto L_0x0178;\n L_0x0158:\n if (r5 != r7) goto L_0x017c;\n L_0x015a:\n r2 = com.google.android.gms.internal.clearcut.zzax.zzf(r19, r20);\n r2 = java.lang.Float.valueOf(r2);\n L_0x0162:\n r12.putObject(r1, r9, r2);\n r2 = r4 + 4;\n goto L_0x0178;\n L_0x0168:\n r2 = 1;\n if (r5 != r2) goto L_0x017c;\n L_0x016b:\n r2 = com.google.android.gms.internal.clearcut.zzax.zze(r19, r20);\n r2 = java.lang.Double.valueOf(r2);\n L_0x0173:\n r12.putObject(r1, r9, r2);\n r2 = r4 + 8;\n L_0x0178:\n r12.putInt(r1, r13, r8);\n goto L_0x017d;\n L_0x017c:\n r2 = r4;\n L_0x017d:\n return r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zza(java.lang.Object, byte[], int, int, int, int, int, int, int, long, int, com.google.android.gms.internal.clearcut.zzay):int\");\n }", "private String AccelZConversion() {\n short reading = (short) (((raw[18] & 0xF0) >> 4) + ((raw[19] & 0x3f) << 4));\n\n\n int z[] = fixBinaryString(Integer.toBinaryString(reading));\n return myUnsignedToSigned(z) + \"\";\n }", "public int getLight();", "public float getZ() {\n return z_;\n }", "public final int zza() {\n int zza = super.zza();\n if (this.zzaue != null) {\n zza += zzacb.zzf(1, this.zzaue.intValue());\n }\n if (this.zzauf != null) {\n zza += zzacb.zzc(2, this.zzauf);\n }\n if (this.zzaug != null) {\n this.zzaug.booleanValue();\n zza += zzacb.zzaq(3) + 1;\n }\n if (this.zzauh == null || this.zzauh.length <= 0) {\n return zza;\n }\n int i = 0;\n int i2 = 0;\n int i3 = 0;\n while (i3 < this.zzauh.length) {\n int zzfr;\n String str = this.zzauh[i3];\n if (str != null) {\n i++;\n zzfr = zzacb.zzfr(str) + i2;\n } else {\n zzfr = i2;\n }\n i3++;\n i2 = zzfr;\n }\n return (zza + i2) + (i * 1);\n }", "public static float zzh(Context paramContext) {\n}", "private final int zza(T r32, byte[] r33, int r34, int r35, int r36, com.google.android.gms.internal.clearcut.zzay r37) throws java.io.IOException {\n /*\n r31 = this;\n r15 = r31;\n r14 = r32;\n r12 = r33;\n r13 = r35;\n r11 = r36;\n r9 = r37;\n r10 = zzmh;\n r16 = 0;\n r8 = -1;\n r0 = r34;\n r7 = r8;\n r1 = r16;\n r6 = r1;\n L_0x0017:\n r17 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n if (r0 >= r13) goto L_0x038d;\n L_0x001c:\n r1 = r0 + 1;\n r0 = r12[r0];\n if (r0 >= 0) goto L_0x002b;\n L_0x0022:\n r0 = com.google.android.gms.internal.clearcut.zzax.zza(r0, r12, r1, r9);\n r1 = r9.zzfd;\n r4 = r0;\n r5 = r1;\n goto L_0x002d;\n L_0x002b:\n r5 = r0;\n r4 = r1;\n L_0x002d:\n r3 = r5 >>> 3;\n r2 = r5 & 7;\n r1 = r15.zzai(r3);\n if (r1 == r8) goto L_0x0350;\n L_0x0037:\n r0 = r15.zzmi;\n r18 = r1 + 1;\n r0 = r0[r18];\n r18 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r18 = r0 & r18;\n r8 = r18 >>> 20;\n r20 = r5;\n r5 = r0 & r17;\n r21 = r4;\n r4 = (long) r5;\n r22 = r4;\n r4 = 17;\n if (r8 > r4) goto L_0x0241;\n L_0x0050:\n r4 = r15.zzmi;\n r18 = r1 + 2;\n r4 = r4[r18];\n r18 = r4 >>> 20;\n r5 = 1;\n r18 = r5 << r18;\n r4 = r4 & r17;\n if (r4 == r7) goto L_0x006c;\n L_0x005f:\n r11 = -1;\n if (r7 == r11) goto L_0x0066;\n L_0x0062:\n r11 = (long) r7;\n r10.putInt(r14, r11, r6);\n L_0x0066:\n r6 = (long) r4;\n r6 = r10.getInt(r14, r6);\n r7 = r4;\n L_0x006c:\n r4 = 5;\n switch(r8) {\n case 0: goto L_0x0219;\n case 1: goto L_0x0203;\n case 2: goto L_0x01e4;\n case 3: goto L_0x01e4;\n case 4: goto L_0x01ce;\n case 5: goto L_0x01ac;\n case 6: goto L_0x0195;\n case 7: goto L_0x0175;\n case 8: goto L_0x0159;\n case 9: goto L_0x0132;\n case 10: goto L_0x011a;\n case 11: goto L_0x01ce;\n case 12: goto L_0x00e8;\n case 13: goto L_0x0195;\n case 14: goto L_0x01ac;\n case 15: goto L_0x00d0;\n case 16: goto L_0x00b4;\n case 17: goto L_0x007a;\n default: goto L_0x0070;\n };\n L_0x0070:\n r24 = r7;\n r11 = r20;\n r0 = r21;\n r12 = r33;\n goto L_0x0238;\n L_0x007a:\n r0 = 3;\n if (r2 != r0) goto L_0x00ad;\n L_0x007d:\n r0 = r3 << 3;\n r4 = r0 | 4;\n r0 = r15.zzad(r1);\n r12 = r33;\n r1 = r33;\n r2 = r21;\n r3 = r35;\n r24 = r7;\n r7 = r22;\n r11 = r20;\n r5 = r37;\n r0 = zza(r0, r1, r2, r3, r4, r5);\n r1 = r6 & r18;\n if (r1 != 0) goto L_0x00a1;\n L_0x009d:\n r1 = r9.zzff;\n goto L_0x012d;\n L_0x00a1:\n r1 = r10.getObject(r14, r7);\n r2 = r9.zzff;\n r1 = com.google.android.gms.internal.clearcut.zzci.zza(r1, r2);\n goto L_0x012d;\n L_0x00ad:\n r24 = r7;\n r11 = r20;\n r12 = r33;\n goto L_0x00cc;\n L_0x00b4:\n r24 = r7;\n r11 = r20;\n r7 = r22;\n r12 = r33;\n if (r2 != 0) goto L_0x00cc;\n L_0x00be:\n r3 = r21;\n r17 = com.google.android.gms.internal.clearcut.zzax.zzb(r12, r3, r9);\n r0 = r9.zzfe;\n r4 = com.google.android.gms.internal.clearcut.zzbk.zza(r0);\n goto L_0x01f6;\n L_0x00cc:\n r0 = r21;\n goto L_0x0238;\n L_0x00d0:\n r24 = r7;\n r11 = r20;\n r3 = r21;\n r7 = r22;\n r12 = r33;\n if (r2 != 0) goto L_0x01cb;\n L_0x00dc:\n r0 = com.google.android.gms.internal.clearcut.zzax.zza(r12, r3, r9);\n r1 = r9.zzfd;\n r1 = com.google.android.gms.internal.clearcut.zzbk.zzm(r1);\n goto L_0x01e0;\n L_0x00e8:\n r24 = r7;\n r11 = r20;\n r3 = r21;\n r7 = r22;\n r12 = r33;\n if (r2 != 0) goto L_0x01cb;\n L_0x00f4:\n r0 = com.google.android.gms.internal.clearcut.zzax.zza(r12, r3, r9);\n r2 = r9.zzfd;\n r1 = r15.zzaf(r1);\n if (r1 == 0) goto L_0x0115;\n L_0x0100:\n r1 = r1.zzb(r2);\n if (r1 == 0) goto L_0x0107;\n L_0x0106:\n goto L_0x0115;\n L_0x0107:\n r1 = zzn(r32);\n r2 = (long) r2;\n r2 = java.lang.Long.valueOf(r2);\n r1.zzb(r11, r2);\n goto L_0x0230;\n L_0x0115:\n r10.putInt(r14, r7, r2);\n goto L_0x022e;\n L_0x011a:\n r24 = r7;\n r11 = r20;\n r3 = r21;\n r7 = r22;\n r0 = 2;\n r12 = r33;\n if (r2 != r0) goto L_0x01cb;\n L_0x0127:\n r0 = com.google.android.gms.internal.clearcut.zzax.zze(r12, r3, r9);\n L_0x012b:\n r1 = r9.zzff;\n L_0x012d:\n r10.putObject(r14, r7, r1);\n goto L_0x022e;\n L_0x0132:\n r24 = r7;\n r11 = r20;\n r3 = r21;\n r7 = r22;\n r0 = 2;\n r12 = r33;\n if (r2 != r0) goto L_0x01cb;\n L_0x013f:\n r0 = r15.zzad(r1);\n r0 = zza(r0, r12, r3, r13, r9);\n r1 = r6 & r18;\n if (r1 != 0) goto L_0x014e;\n L_0x014b:\n r1 = r9.zzff;\n goto L_0x012d;\n L_0x014e:\n r1 = r10.getObject(r14, r7);\n r2 = r9.zzff;\n r1 = com.google.android.gms.internal.clearcut.zzci.zza(r1, r2);\n goto L_0x012d;\n L_0x0159:\n r24 = r7;\n r11 = r20;\n r3 = r21;\n r7 = r22;\n r1 = 2;\n r12 = r33;\n if (r2 != r1) goto L_0x01cb;\n L_0x0166:\n r1 = 536870912; // 0x20000000 float:1.0842022E-19 double:2.652494739E-315;\n r0 = r0 & r1;\n if (r0 != 0) goto L_0x0170;\n L_0x016b:\n r0 = com.google.android.gms.internal.clearcut.zzax.zzc(r12, r3, r9);\n goto L_0x012b;\n L_0x0170:\n r0 = com.google.android.gms.internal.clearcut.zzax.zzd(r12, r3, r9);\n goto L_0x012b;\n L_0x0175:\n r24 = r7;\n r11 = r20;\n r3 = r21;\n r7 = r22;\n r12 = r33;\n if (r2 != 0) goto L_0x01cb;\n L_0x0181:\n r0 = com.google.android.gms.internal.clearcut.zzax.zzb(r12, r3, r9);\n r1 = r9.zzfe;\n r3 = 0;\n r17 = (r1 > r3 ? 1 : (r1 == r3 ? 0 : -1));\n if (r17 == 0) goto L_0x018e;\n L_0x018d:\n goto L_0x0190;\n L_0x018e:\n r5 = r16;\n L_0x0190:\n com.google.android.gms.internal.clearcut.zzfd.zza(r14, r7, r5);\n goto L_0x022e;\n L_0x0195:\n r24 = r7;\n r11 = r20;\n r3 = r21;\n r7 = r22;\n r12 = r33;\n if (r2 != r4) goto L_0x01cb;\n L_0x01a1:\n r0 = com.google.android.gms.internal.clearcut.zzax.zzc(r12, r3);\n r10.putInt(r14, r7, r0);\n r0 = r3 + 4;\n goto L_0x022e;\n L_0x01ac:\n r24 = r7;\n r11 = r20;\n r3 = r21;\n r7 = r22;\n r12 = r33;\n if (r2 != r5) goto L_0x01cb;\n L_0x01b8:\n r4 = com.google.android.gms.internal.clearcut.zzax.zzd(r12, r3);\n r0 = r10;\n r1 = r32;\n r17 = r3;\n r2 = r7;\n r7 = r17;\n r0.putLong(r1, r2, r4);\n r0 = r7 + 8;\n goto L_0x022e;\n L_0x01cb:\n r0 = r3;\n goto L_0x0238;\n L_0x01ce:\n r24 = r7;\n r11 = r20;\n r0 = r21;\n r7 = r22;\n r12 = r33;\n if (r2 != 0) goto L_0x0238;\n L_0x01da:\n r0 = com.google.android.gms.internal.clearcut.zzax.zza(r12, r0, r9);\n r1 = r9.zzfd;\n L_0x01e0:\n r10.putInt(r14, r7, r1);\n goto L_0x022e;\n L_0x01e4:\n r24 = r7;\n r11 = r20;\n r0 = r21;\n r7 = r22;\n r12 = r33;\n if (r2 != 0) goto L_0x0238;\n L_0x01f0:\n r17 = com.google.android.gms.internal.clearcut.zzax.zzb(r12, r0, r9);\n r4 = r9.zzfe;\n L_0x01f6:\n r0 = r10;\n r1 = r32;\n r2 = r7;\n r0.putLong(r1, r2, r4);\n r6 = r6 | r18;\n r1 = r11;\n r0 = r17;\n goto L_0x0231;\n L_0x0203:\n r24 = r7;\n r11 = r20;\n r0 = r21;\n r7 = r22;\n r12 = r33;\n if (r2 != r4) goto L_0x0238;\n L_0x020f:\n r1 = com.google.android.gms.internal.clearcut.zzax.zzf(r12, r0);\n com.google.android.gms.internal.clearcut.zzfd.zza(r14, r7, r1);\n r0 = r0 + 4;\n goto L_0x022e;\n L_0x0219:\n r24 = r7;\n r11 = r20;\n r0 = r21;\n r7 = r22;\n r12 = r33;\n if (r2 != r5) goto L_0x0238;\n L_0x0225:\n r1 = com.google.android.gms.internal.clearcut.zzax.zze(r12, r0);\n com.google.android.gms.internal.clearcut.zzfd.zza(r14, r7, r1);\n r0 = r0 + 8;\n L_0x022e:\n r6 = r6 | r18;\n L_0x0230:\n r1 = r11;\n L_0x0231:\n r7 = r24;\n r8 = -1;\n r11 = r36;\n goto L_0x0017;\n L_0x0238:\n r2 = r0;\n r18 = r6;\n r29 = r10;\n r6 = r11;\n r14 = r15;\n goto L_0x035d;\n L_0x0241:\n r25 = r3;\n r24 = r7;\n r5 = r8;\n r11 = r20;\n r4 = r21;\n r7 = r22;\n r3 = 27;\n if (r5 != r3) goto L_0x028f;\n L_0x0250:\n r3 = 2;\n if (r2 != r3) goto L_0x0287;\n L_0x0253:\n r0 = r10.getObject(r14, r7);\n r0 = (com.google.android.gms.internal.clearcut.zzcn) r0;\n r2 = r0.zzu();\n if (r2 != 0) goto L_0x0271;\n L_0x025f:\n r2 = r0.size();\n if (r2 != 0) goto L_0x0268;\n L_0x0265:\n r2 = 10;\n goto L_0x026a;\n L_0x0268:\n r2 = r2 << 1;\n L_0x026a:\n r0 = r0.zzi(r2);\n r10.putObject(r14, r7, r0);\n L_0x0271:\n r5 = r0;\n r0 = r15.zzad(r1);\n r1 = r11;\n r2 = r33;\n r3 = r4;\n r4 = r35;\n r18 = r6;\n r6 = r37;\n r0 = zza(r0, r1, r2, r3, r4, r5, r6);\n r6 = r18;\n goto L_0x0231;\n L_0x0287:\n r18 = r6;\n r29 = r10;\n r30 = r11;\n goto L_0x0358;\n L_0x028f:\n r18 = r6;\n r3 = 49;\n if (r5 > r3) goto L_0x02e6;\n L_0x0295:\n r26 = r10;\n r9 = (long) r0;\n r0 = r31;\n r19 = r1;\n r1 = r32;\n r6 = r2;\n r2 = r33;\n r20 = r25;\n r3 = r4;\n r15 = r4;\n r4 = r35;\n r21 = r5;\n r5 = r11;\n r27 = r6;\n r6 = r20;\n r22 = r7;\n r7 = r27;\n r28 = r21;\n r8 = r19;\n r29 = r26;\n r30 = r11;\n r11 = r28;\n r12 = r22;\n r14 = r37;\n r0 = r0.zza(r1, r2, r3, r4, r5, r6, r7, r8, r9, r11, r12, r14);\n if (r0 != r15) goto L_0x02cf;\n L_0x02c6:\n r2 = r0;\n r6 = r30;\n r7 = r36;\n r14 = r31;\n goto L_0x035f;\n L_0x02cf:\n r14 = r32;\n r12 = r33;\n r13 = r35;\n r9 = r37;\n r6 = r18;\n r7 = r24;\n r10 = r29;\n r1 = r30;\n r8 = -1;\n r11 = r36;\n r15 = r31;\n goto L_0x0017;\n L_0x02e6:\n r19 = r1;\n r27 = r2;\n r15 = r4;\n r28 = r5;\n r22 = r7;\n r29 = r10;\n r30 = r11;\n r20 = r25;\n r1 = 50;\n r9 = r28;\n if (r9 != r1) goto L_0x031d;\n L_0x02fb:\n r7 = r27;\n r1 = 2;\n if (r7 != r1) goto L_0x031a;\n L_0x0300:\n r14 = r31;\n r0 = r31;\n r1 = r32;\n r2 = r33;\n r3 = r15;\n r4 = r35;\n r5 = r19;\n r6 = r20;\n r7 = r22;\n r9 = r37;\n r0 = r0.zza(r1, r2, r3, r4, r5, r6, r7, r9);\n if (r0 != r15) goto L_0x033d;\n L_0x0319:\n goto L_0x033b;\n L_0x031a:\n r14 = r31;\n goto L_0x035a;\n L_0x031d:\n r8 = r0;\n r7 = r27;\n r14 = r31;\n r0 = r31;\n r1 = r32;\n r2 = r33;\n r3 = r15;\n r4 = r35;\n r5 = r30;\n r6 = r20;\n r10 = r22;\n r12 = r19;\n r13 = r37;\n r0 = r0.zza(r1, r2, r3, r4, r5, r6, r7, r8, r9, r10, r12, r13);\n if (r0 != r15) goto L_0x033d;\n L_0x033b:\n r2 = r0;\n goto L_0x035b;\n L_0x033d:\n r12 = r33;\n r13 = r35;\n r9 = r37;\n r15 = r14;\n r6 = r18;\n r7 = r24;\n r10 = r29;\n r1 = r30;\n r8 = -1;\n r11 = r36;\n goto L_0x0389;\n L_0x0350:\n r30 = r5;\n r18 = r6;\n r24 = r7;\n r29 = r10;\n L_0x0358:\n r14 = r15;\n r15 = r4;\n L_0x035a:\n r2 = r15;\n L_0x035b:\n r6 = r30;\n L_0x035d:\n r7 = r36;\n L_0x035f:\n if (r6 != r7) goto L_0x036c;\n L_0x0361:\n if (r7 != 0) goto L_0x0364;\n L_0x0363:\n goto L_0x036c;\n L_0x0364:\n r8 = r2;\n r9 = r6;\n r1 = r18;\n r0 = r24;\n r2 = -1;\n goto L_0x039c;\n L_0x036c:\n r0 = r6;\n r1 = r33;\n r3 = r35;\n r4 = r32;\n r5 = r37;\n r0 = zza(r0, r1, r2, r3, r4, r5);\n r12 = r33;\n r13 = r35;\n r9 = r37;\n r1 = r6;\n r11 = r7;\n r15 = r14;\n r6 = r18;\n r7 = r24;\n r10 = r29;\n r8 = -1;\n L_0x0389:\n r14 = r32;\n goto L_0x0017;\n L_0x038d:\n r18 = r6;\n r24 = r7;\n r29 = r10;\n r7 = r11;\n r14 = r15;\n r9 = r1;\n r2 = r8;\n r1 = r18;\n r8 = r0;\n r0 = r24;\n L_0x039c:\n if (r0 == r2) goto L_0x03a7;\n L_0x039e:\n r2 = (long) r0;\n r10 = r32;\n r0 = r29;\n r0.putInt(r10, r2, r1);\n goto L_0x03a9;\n L_0x03a7:\n r10 = r32;\n L_0x03a9:\n r0 = r14.zzmt;\n if (r0 == 0) goto L_0x03eb;\n L_0x03ad:\n r0 = 0;\n r11 = r14.zzmt;\n r12 = r11.length;\n r5 = r0;\n r13 = r16;\n L_0x03b4:\n if (r13 >= r12) goto L_0x03e4;\n L_0x03b6:\n r1 = r11[r13];\n r6 = r14.zzmx;\n r0 = r14.zzmi;\n r2 = r0[r1];\n r0 = r14.zzag(r1);\n r0 = r0 & r17;\n r3 = (long) r0;\n r0 = com.google.android.gms.internal.clearcut.zzfd.zzo(r10, r3);\n if (r0 != 0) goto L_0x03cc;\n L_0x03cb:\n goto L_0x03df;\n L_0x03cc:\n r4 = r14.zzaf(r1);\n if (r4 != 0) goto L_0x03d3;\n L_0x03d2:\n goto L_0x03df;\n L_0x03d3:\n r3 = r14.zzmz;\n r3 = r3.zzg(r0);\n r0 = r31;\n r5 = r0.zza(r1, r2, r3, r4, r5, r6);\n L_0x03df:\n r5 = (com.google.android.gms.internal.clearcut.zzey) r5;\n r13 = r13 + 1;\n goto L_0x03b4;\n L_0x03e4:\n if (r5 == 0) goto L_0x03eb;\n L_0x03e6:\n r0 = r14.zzmx;\n r0.zzf(r10, r5);\n L_0x03eb:\n if (r7 != 0) goto L_0x03f7;\n L_0x03ed:\n r0 = r35;\n if (r8 != r0) goto L_0x03f2;\n L_0x03f1:\n goto L_0x03fd;\n L_0x03f2:\n r0 = com.google.android.gms.internal.clearcut.zzco.zzbo();\n throw r0;\n L_0x03f7:\n r0 = r35;\n if (r8 > r0) goto L_0x03fe;\n L_0x03fb:\n if (r9 != r7) goto L_0x03fe;\n L_0x03fd:\n return r8;\n L_0x03fe:\n r0 = com.google.android.gms.internal.clearcut.zzco.zzbo();\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zza(java.lang.Object, byte[], int, int, int, com.google.android.gms.internal.clearcut.zzay):int\");\n }", "public int getBlockZ()\n\t {\n\t\t if(z >= 0.0) return (int)z;\n\t\t return -1 + (int)(z);\n\t }", "Light getEWlight();", "public int zzz() {\n int i = 0;\n int zzz = super.zzz();\n if (!Arrays.equals(this.zzbuO, zzsx.zzbuD)) {\n zzz += zzsn.zzb(1, this.zzbuO);\n }\n if (this.zzbuP != null && this.zzbuP.length > 0) {\n int i2 = 0;\n int i3 = 0;\n while (i < this.zzbuP.length) {\n byte[] bArr = this.zzbuP[i];\n if (bArr != null) {\n i3++;\n i2 += zzsn.zzG(bArr);\n }\n i++;\n }\n zzz = (zzz + i2) + (i3 * 1);\n }\n return this.zzbuQ ? zzz + zzsn.zzf(3, this.zzbuQ) : zzz;\n }", "public Location3D getLowLoc() {\n\t\treturn lowPoint;\n\t}", "public double getLoZ() {\r\n\treturn fieldLoZ;\r\n}", "@Override\n public int getZ() {\n return (int) claim.getZ();\n }", "public int getzPos() {\n return zPos;\n }", "abstract double getDirZ();", "float zAt(int xIndex, int yIndex);", "public abstract ParamNumber getParamZ();", "public final int zzm(T r22) {\n /*\n r21 = this;\n r0 = r21;\n r1 = r22;\n r2 = r0.zzmq;\n r3 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r4 = 0;\n r7 = 1;\n r8 = 1048575; // 0xfffff float:1.469367E-39 double:5.18065E-318;\n r9 = 0;\n r11 = 0;\n if (r2 == 0) goto L_0x03b8;\n L_0x0012:\n r2 = zzmh;\n r12 = r11;\n r13 = r12;\n L_0x0016:\n r14 = r0.zzmi;\n r14 = r14.length;\n if (r12 >= r14) goto L_0x03b0;\n L_0x001b:\n r14 = r0.zzag(r12);\n r15 = r14 & r3;\n r15 = r15 >>> 20;\n r3 = r0.zzmi;\n r3 = r3[r12];\n r14 = r14 & r8;\n r5 = (long) r14;\n r14 = com.google.android.gms.internal.clearcut.zzcb.DOUBLE_LIST_PACKED;\n r14 = r14.id();\n if (r15 < r14) goto L_0x0041;\n L_0x0031:\n r14 = com.google.android.gms.internal.clearcut.zzcb.SINT64_LIST_PACKED;\n r14 = r14.id();\n if (r15 > r14) goto L_0x0041;\n L_0x0039:\n r14 = r0.zzmi;\n r17 = r12 + 2;\n r14 = r14[r17];\n r14 = r14 & r8;\n goto L_0x0042;\n L_0x0041:\n r14 = r11;\n L_0x0042:\n switch(r15) {\n case 0: goto L_0x039c;\n case 1: goto L_0x0390;\n case 2: goto L_0x0380;\n case 3: goto L_0x0370;\n case 4: goto L_0x0360;\n case 5: goto L_0x0354;\n case 6: goto L_0x0348;\n case 7: goto L_0x033c;\n case 8: goto L_0x0325;\n case 9: goto L_0x0311;\n case 10: goto L_0x0300;\n case 11: goto L_0x02f1;\n case 12: goto L_0x02e2;\n case 13: goto L_0x02d7;\n case 14: goto L_0x02cc;\n case 15: goto L_0x02bd;\n case 16: goto L_0x02ae;\n case 17: goto L_0x0299;\n case 18: goto L_0x028e;\n case 19: goto L_0x0285;\n case 20: goto L_0x027c;\n case 21: goto L_0x0273;\n case 22: goto L_0x026a;\n case 23: goto L_0x028e;\n case 24: goto L_0x0285;\n case 25: goto L_0x0261;\n case 26: goto L_0x0258;\n case 27: goto L_0x024b;\n case 28: goto L_0x0242;\n case 29: goto L_0x0239;\n case 30: goto L_0x0230;\n case 31: goto L_0x0285;\n case 32: goto L_0x028e;\n case 33: goto L_0x0227;\n case 34: goto L_0x021d;\n case 35: goto L_0x01fd;\n case 36: goto L_0x01ec;\n case 37: goto L_0x01db;\n case 38: goto L_0x01ca;\n case 39: goto L_0x01b9;\n case 40: goto L_0x01a8;\n case 41: goto L_0x0197;\n case 42: goto L_0x0185;\n case 43: goto L_0x0173;\n case 44: goto L_0x0161;\n case 45: goto L_0x014f;\n case 46: goto L_0x013d;\n case 47: goto L_0x012b;\n case 48: goto L_0x0119;\n case 49: goto L_0x010b;\n case 50: goto L_0x00fb;\n case 51: goto L_0x00f3;\n case 52: goto L_0x00eb;\n case 53: goto L_0x00df;\n case 54: goto L_0x00d3;\n case 55: goto L_0x00c7;\n case 56: goto L_0x00bf;\n case 57: goto L_0x00b7;\n case 58: goto L_0x00af;\n case 59: goto L_0x009f;\n case 60: goto L_0x0097;\n case 61: goto L_0x008f;\n case 62: goto L_0x0083;\n case 63: goto L_0x0077;\n case 64: goto L_0x006f;\n case 65: goto L_0x0067;\n case 66: goto L_0x005b;\n case 67: goto L_0x004f;\n case 68: goto L_0x0047;\n default: goto L_0x0045;\n };\n L_0x0045:\n goto L_0x03aa;\n L_0x0047:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x004d:\n goto L_0x029f;\n L_0x004f:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0055:\n r5 = zzh(r1, r5);\n goto L_0x02b8;\n L_0x005b:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0061:\n r5 = zzg(r1, r5);\n goto L_0x02c7;\n L_0x0067:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x006d:\n goto L_0x02d2;\n L_0x006f:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x0075:\n goto L_0x02dd;\n L_0x0077:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x007d:\n r5 = zzg(r1, r5);\n goto L_0x02ec;\n L_0x0083:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0089:\n r5 = zzg(r1, r5);\n goto L_0x02fb;\n L_0x008f:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0095:\n goto L_0x0306;\n L_0x0097:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x009d:\n goto L_0x0317;\n L_0x009f:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x00a5:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n r6 = r5 instanceof com.google.android.gms.internal.clearcut.zzbb;\n if (r6 == 0) goto L_0x0334;\n L_0x00ad:\n goto L_0x0333;\n L_0x00af:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x00b5:\n goto L_0x0342;\n L_0x00b7:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x00bd:\n goto L_0x034e;\n L_0x00bf:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x00c5:\n goto L_0x035a;\n L_0x00c7:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x00cd:\n r5 = zzg(r1, r5);\n goto L_0x036a;\n L_0x00d3:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x00d9:\n r5 = zzh(r1, r5);\n goto L_0x037a;\n L_0x00df:\n r14 = r0.zza(r1, r3, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x00e5:\n r5 = zzh(r1, r5);\n goto L_0x038a;\n L_0x00eb:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x00f1:\n goto L_0x0396;\n L_0x00f3:\n r5 = r0.zza(r1, r3, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x00f9:\n goto L_0x03a2;\n L_0x00fb:\n r14 = r0.zzmz;\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n r6 = r0.zzae(r12);\n r3 = r14.zzb(r3, r5, r6);\n goto L_0x0296;\n L_0x010b:\n r5 = zzd(r1, r5);\n r6 = r0.zzad(r12);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzd(r3, r5, r6);\n goto L_0x0296;\n L_0x0119:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzc(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x0125:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x0129:\n goto L_0x020d;\n L_0x012b:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzg(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x0137:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x013b:\n goto L_0x020d;\n L_0x013d:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzi(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x0149:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x014d:\n goto L_0x020d;\n L_0x014f:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzh(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x015b:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x015f:\n goto L_0x020d;\n L_0x0161:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzd(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x016d:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x0171:\n goto L_0x020d;\n L_0x0173:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzf(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x017f:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x0183:\n goto L_0x020d;\n L_0x0185:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzj(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x0191:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x0195:\n goto L_0x020d;\n L_0x0197:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzh(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01a3:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01a7:\n goto L_0x020d;\n L_0x01a8:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzi(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01b4:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01b8:\n goto L_0x020d;\n L_0x01b9:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zze(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01c5:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01c9:\n goto L_0x020d;\n L_0x01ca:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzb(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01d6:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01da:\n goto L_0x020d;\n L_0x01db:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zza(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01e7:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01eb:\n goto L_0x020d;\n L_0x01ec:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzh(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x01f8:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x01fc:\n goto L_0x020d;\n L_0x01fd:\n r5 = r2.getObject(r1, r5);\n r5 = (java.util.List) r5;\n r5 = com.google.android.gms.internal.clearcut.zzeh.zzi(r5);\n if (r5 <= 0) goto L_0x03aa;\n L_0x0209:\n r6 = r0.zzmr;\n if (r6 == 0) goto L_0x0211;\n L_0x020d:\n r14 = (long) r14;\n r2.putInt(r1, r14, r5);\n L_0x0211:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzr(r3);\n r6 = com.google.android.gms.internal.clearcut.zzbn.zzt(r5);\n r3 = r3 + r6;\n r3 = r3 + r5;\n goto L_0x0296;\n L_0x021d:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzq(r3, r5, r11);\n goto L_0x0296;\n L_0x0227:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzu(r3, r5, r11);\n goto L_0x0296;\n L_0x0230:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzr(r3, r5, r11);\n goto L_0x0296;\n L_0x0239:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzt(r3, r5, r11);\n goto L_0x0296;\n L_0x0242:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzd(r3, r5);\n goto L_0x0296;\n L_0x024b:\n r5 = zzd(r1, r5);\n r6 = r0.zzad(r12);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzc(r3, r5, r6);\n goto L_0x0296;\n L_0x0258:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzc(r3, r5);\n goto L_0x0296;\n L_0x0261:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzx(r3, r5, r11);\n goto L_0x0296;\n L_0x026a:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzs(r3, r5, r11);\n goto L_0x0296;\n L_0x0273:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzp(r3, r5, r11);\n goto L_0x0296;\n L_0x027c:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzo(r3, r5, r11);\n goto L_0x0296;\n L_0x0285:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzv(r3, r5, r11);\n goto L_0x0296;\n L_0x028e:\n r5 = zzd(r1, r5);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzw(r3, r5, r11);\n L_0x0296:\n r13 = r13 + r3;\n goto L_0x03aa;\n L_0x0299:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x029f:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n r5 = (com.google.android.gms.internal.clearcut.zzdo) r5;\n r6 = r0.zzad(r12);\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzc(r3, r5, r6);\n goto L_0x0296;\n L_0x02ae:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x02b4:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzk(r1, r5);\n L_0x02b8:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzf(r3, r5);\n goto L_0x0296;\n L_0x02bd:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x02c3:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzj(r1, r5);\n L_0x02c7:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzi(r3, r5);\n goto L_0x0296;\n L_0x02cc:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x02d2:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzh(r3, r9);\n goto L_0x0296;\n L_0x02d7:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x02dd:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzk(r3, r11);\n goto L_0x0296;\n L_0x02e2:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x02e8:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzj(r1, r5);\n L_0x02ec:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzl(r3, r5);\n goto L_0x0296;\n L_0x02f1:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x02f7:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzj(r1, r5);\n L_0x02fb:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzh(r3, r5);\n goto L_0x0296;\n L_0x0300:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0306:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n L_0x030a:\n r5 = (com.google.android.gms.internal.clearcut.zzbb) r5;\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzc(r3, r5);\n goto L_0x0296;\n L_0x0311:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0317:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n r6 = r0.zzad(r12);\n r3 = com.google.android.gms.internal.clearcut.zzeh.zzc(r3, r5, r6);\n goto L_0x0296;\n L_0x0325:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x032b:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzo(r1, r5);\n r6 = r5 instanceof com.google.android.gms.internal.clearcut.zzbb;\n if (r6 == 0) goto L_0x0334;\n L_0x0333:\n goto L_0x030a;\n L_0x0334:\n r5 = (java.lang.String) r5;\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzb(r3, r5);\n goto L_0x0296;\n L_0x033c:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x0342:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzc(r3, r7);\n goto L_0x0296;\n L_0x0348:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x034e:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzj(r3, r11);\n goto L_0x0296;\n L_0x0354:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x035a:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzg(r3, r9);\n goto L_0x0296;\n L_0x0360:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0366:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzj(r1, r5);\n L_0x036a:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzg(r3, r5);\n goto L_0x0296;\n L_0x0370:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0376:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzk(r1, r5);\n L_0x037a:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zze(r3, r5);\n goto L_0x0296;\n L_0x0380:\n r14 = r0.zza(r1, r12);\n if (r14 == 0) goto L_0x03aa;\n L_0x0386:\n r5 = com.google.android.gms.internal.clearcut.zzfd.zzk(r1, r5);\n L_0x038a:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzd(r3, r5);\n goto L_0x0296;\n L_0x0390:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x0396:\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzb(r3, r4);\n goto L_0x0296;\n L_0x039c:\n r5 = r0.zza(r1, r12);\n if (r5 == 0) goto L_0x03aa;\n L_0x03a2:\n r5 = 0;\n r3 = com.google.android.gms.internal.clearcut.zzbn.zzb(r3, r5);\n goto L_0x0296;\n L_0x03aa:\n r12 = r12 + 4;\n r3 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n goto L_0x0016;\n L_0x03b0:\n r2 = r0.zzmx;\n r1 = zza(r2, r1);\n r13 = r13 + r1;\n return r13;\n L_0x03b8:\n r2 = zzmh;\n r3 = -1;\n r6 = r3;\n r3 = r11;\n r5 = r3;\n r12 = r5;\n L_0x03bf:\n r13 = r0.zzmi;\n r13 = r13.length;\n if (r3 >= r13) goto L_0x07d7;\n L_0x03c4:\n r13 = r0.zzag(r3);\n r14 = r0.zzmi;\n r14 = r14[r3];\n r15 = 267386880; // 0xff00000 float:2.3665827E-29 double:1.321066716E-315;\n r16 = r13 & r15;\n r15 = r16 >>> 20;\n r4 = 17;\n if (r15 > r4) goto L_0x03eb;\n L_0x03d6:\n r4 = r0.zzmi;\n r16 = r3 + 2;\n r4 = r4[r16];\n r11 = r4 & r8;\n r16 = r4 >>> 20;\n r16 = r7 << r16;\n if (r11 == r6) goto L_0x040c;\n L_0x03e4:\n r9 = (long) r11;\n r12 = r2.getInt(r1, r9);\n r6 = r11;\n goto L_0x040c;\n L_0x03eb:\n r4 = r0.zzmr;\n if (r4 == 0) goto L_0x0409;\n L_0x03ef:\n r4 = com.google.android.gms.internal.clearcut.zzcb.DOUBLE_LIST_PACKED;\n r4 = r4.id();\n if (r15 < r4) goto L_0x0409;\n L_0x03f7:\n r4 = com.google.android.gms.internal.clearcut.zzcb.SINT64_LIST_PACKED;\n r4 = r4.id();\n if (r15 > r4) goto L_0x0409;\n L_0x03ff:\n r4 = r0.zzmi;\n r9 = r3 + 2;\n r4 = r4[r9];\n r11 = r4 & r8;\n r4 = r11;\n goto L_0x040a;\n L_0x0409:\n r4 = 0;\n L_0x040a:\n r16 = 0;\n L_0x040c:\n r9 = r13 & r8;\n r9 = (long) r9;\n switch(r15) {\n case 0: goto L_0x07c0;\n case 1: goto L_0x07b0;\n case 2: goto L_0x079e;\n case 3: goto L_0x078e;\n case 4: goto L_0x077e;\n case 5: goto L_0x076f;\n case 6: goto L_0x0763;\n case 7: goto L_0x0759;\n case 8: goto L_0x0744;\n case 9: goto L_0x0732;\n case 10: goto L_0x0723;\n case 11: goto L_0x0716;\n case 12: goto L_0x0709;\n case 13: goto L_0x06fe;\n case 14: goto L_0x06f3;\n case 15: goto L_0x06e6;\n case 16: goto L_0x06d9;\n case 17: goto L_0x06c6;\n case 18: goto L_0x06b2;\n case 19: goto L_0x06a4;\n case 20: goto L_0x0698;\n case 21: goto L_0x068c;\n case 22: goto L_0x0680;\n case 23: goto L_0x0674;\n case 24: goto L_0x06a4;\n case 25: goto L_0x0668;\n case 26: goto L_0x065d;\n case 27: goto L_0x064e;\n case 28: goto L_0x0642;\n case 29: goto L_0x0635;\n case 30: goto L_0x0628;\n case 31: goto L_0x06a4;\n case 32: goto L_0x0674;\n case 33: goto L_0x061b;\n case 34: goto L_0x060e;\n case 35: goto L_0x05ee;\n case 36: goto L_0x05dd;\n case 37: goto L_0x05cc;\n case 38: goto L_0x05bb;\n case 39: goto L_0x05aa;\n case 40: goto L_0x0599;\n case 41: goto L_0x0588;\n case 42: goto L_0x0576;\n case 43: goto L_0x0564;\n case 44: goto L_0x0552;\n case 45: goto L_0x0540;\n case 46: goto L_0x052e;\n case 47: goto L_0x051c;\n case 48: goto L_0x050a;\n case 49: goto L_0x04fa;\n case 50: goto L_0x04ea;\n case 51: goto L_0x04dc;\n case 52: goto L_0x04cf;\n case 53: goto L_0x04bf;\n case 54: goto L_0x04af;\n case 55: goto L_0x049f;\n case 56: goto L_0x0491;\n case 57: goto L_0x0484;\n case 58: goto L_0x047c;\n case 59: goto L_0x046c;\n case 60: goto L_0x0464;\n case 61: goto L_0x045c;\n case 62: goto L_0x0450;\n case 63: goto L_0x0444;\n case 64: goto L_0x043c;\n case 65: goto L_0x0434;\n case 66: goto L_0x0428;\n case 67: goto L_0x041c;\n case 68: goto L_0x0414;\n default: goto L_0x0412;\n };\n L_0x0412:\n goto L_0x06be;\n L_0x0414:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x041a:\n goto L_0x06ca;\n L_0x041c:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0422:\n r9 = zzh(r1, r9);\n goto L_0x06e1;\n L_0x0428:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x042e:\n r4 = zzg(r1, r9);\n goto L_0x06ee;\n L_0x0434:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x043a:\n goto L_0x06f7;\n L_0x043c:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0442:\n goto L_0x0702;\n L_0x0444:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x044a:\n r4 = zzg(r1, r9);\n goto L_0x0711;\n L_0x0450:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0456:\n r4 = zzg(r1, r9);\n goto L_0x071e;\n L_0x045c:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0462:\n goto L_0x0727;\n L_0x0464:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x046a:\n goto L_0x0736;\n L_0x046c:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0472:\n r4 = r2.getObject(r1, r9);\n r9 = r4 instanceof com.google.android.gms.internal.clearcut.zzbb;\n if (r9 == 0) goto L_0x0751;\n L_0x047a:\n goto L_0x0750;\n L_0x047c:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0482:\n goto L_0x075d;\n L_0x0484:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x048a:\n r4 = 0;\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzj(r14, r4);\n goto L_0x0707;\n L_0x0491:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x0497:\n r9 = 0;\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzg(r14, r9);\n goto L_0x06bd;\n L_0x049f:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x04a5:\n r4 = zzg(r1, r9);\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzg(r14, r4);\n goto L_0x06bd;\n L_0x04af:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x04b5:\n r9 = zzh(r1, r9);\n r4 = com.google.android.gms.internal.clearcut.zzbn.zze(r14, r9);\n goto L_0x06bd;\n L_0x04bf:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x04c5:\n r9 = zzh(r1, r9);\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzd(r14, r9);\n goto L_0x06bd;\n L_0x04cf:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x04d5:\n r4 = 0;\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzb(r14, r4);\n goto L_0x0707;\n L_0x04dc:\n r4 = r0.zza(r1, r14, r3);\n if (r4 == 0) goto L_0x06be;\n L_0x04e2:\n r9 = 0;\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzb(r14, r9);\n goto L_0x06bd;\n L_0x04ea:\n r4 = r0.zzmz;\n r9 = r2.getObject(r1, r9);\n r10 = r0.zzae(r3);\n r4 = r4.zzb(r14, r9, r10);\n goto L_0x06bd;\n L_0x04fa:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r9 = r0.zzad(r3);\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzd(r14, r4, r9);\n goto L_0x06bd;\n L_0x050a:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzc(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x0516:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x051a:\n goto L_0x05fe;\n L_0x051c:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzg(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x0528:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x052c:\n goto L_0x05fe;\n L_0x052e:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzi(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x053a:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x053e:\n goto L_0x05fe;\n L_0x0540:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzh(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x054c:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x0550:\n goto L_0x05fe;\n L_0x0552:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzd(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x055e:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x0562:\n goto L_0x05fe;\n L_0x0564:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzf(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x0570:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x0574:\n goto L_0x05fe;\n L_0x0576:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzj(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x0582:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x0586:\n goto L_0x05fe;\n L_0x0588:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzh(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x0594:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x0598:\n goto L_0x05fe;\n L_0x0599:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzi(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05a5:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05a9:\n goto L_0x05fe;\n L_0x05aa:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zze(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05b6:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05ba:\n goto L_0x05fe;\n L_0x05bb:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzb(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05c7:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05cb:\n goto L_0x05fe;\n L_0x05cc:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zza(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05d8:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05dc:\n goto L_0x05fe;\n L_0x05dd:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzh(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05e9:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05ed:\n goto L_0x05fe;\n L_0x05ee:\n r9 = r2.getObject(r1, r9);\n r9 = (java.util.List) r9;\n r9 = com.google.android.gms.internal.clearcut.zzeh.zzi(r9);\n if (r9 <= 0) goto L_0x06be;\n L_0x05fa:\n r10 = r0.zzmr;\n if (r10 == 0) goto L_0x0602;\n L_0x05fe:\n r10 = (long) r4;\n r2.putInt(r1, r10, r9);\n L_0x0602:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzr(r14);\n r10 = com.google.android.gms.internal.clearcut.zzbn.zzt(r9);\n r4 = r4 + r10;\n r4 = r4 + r9;\n goto L_0x06bd;\n L_0x060e:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r11 = 0;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzq(r14, r4, r11);\n goto L_0x06af;\n L_0x061b:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzu(r14, r4, r11);\n goto L_0x06af;\n L_0x0628:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzr(r14, r4, r11);\n goto L_0x06af;\n L_0x0635:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzt(r14, r4, r11);\n goto L_0x06bd;\n L_0x0642:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzd(r14, r4);\n goto L_0x06bd;\n L_0x064e:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r9 = r0.zzad(r3);\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzc(r14, r4, r9);\n goto L_0x06bd;\n L_0x065d:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzc(r14, r4);\n goto L_0x06bd;\n L_0x0668:\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r11 = 0;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzx(r14, r4, r11);\n goto L_0x06af;\n L_0x0674:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzw(r14, r4, r11);\n goto L_0x06af;\n L_0x0680:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzs(r14, r4, r11);\n goto L_0x06af;\n L_0x068c:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzp(r14, r4, r11);\n goto L_0x06af;\n L_0x0698:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzo(r14, r4, r11);\n goto L_0x06af;\n L_0x06a4:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzv(r14, r4, r11);\n L_0x06af:\n r5 = r5 + r4;\n r4 = r11;\n goto L_0x06bf;\n L_0x06b2:\n r11 = 0;\n r4 = r2.getObject(r1, r9);\n r4 = (java.util.List) r4;\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzw(r14, r4, r11);\n L_0x06bd:\n r5 = r5 + r4;\n L_0x06be:\n r4 = 0;\n L_0x06bf:\n r9 = 0;\n r10 = 0;\n r18 = 0;\n goto L_0x07cf;\n L_0x06c6:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x06ca:\n r4 = r2.getObject(r1, r9);\n r4 = (com.google.android.gms.internal.clearcut.zzdo) r4;\n r9 = r0.zzad(r3);\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzc(r14, r4, r9);\n goto L_0x06bd;\n L_0x06d9:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x06dd:\n r9 = r2.getLong(r1, r9);\n L_0x06e1:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzf(r14, r9);\n goto L_0x06bd;\n L_0x06e6:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x06ea:\n r4 = r2.getInt(r1, r9);\n L_0x06ee:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzi(r14, r4);\n goto L_0x06bd;\n L_0x06f3:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x06f7:\n r9 = 0;\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzh(r14, r9);\n goto L_0x06bd;\n L_0x06fe:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x0702:\n r4 = 0;\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzk(r14, r4);\n L_0x0707:\n r5 = r5 + r9;\n goto L_0x06be;\n L_0x0709:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x070d:\n r4 = r2.getInt(r1, r9);\n L_0x0711:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzl(r14, r4);\n goto L_0x06bd;\n L_0x0716:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x071a:\n r4 = r2.getInt(r1, r9);\n L_0x071e:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzh(r14, r4);\n goto L_0x06bd;\n L_0x0723:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x0727:\n r4 = r2.getObject(r1, r9);\n L_0x072b:\n r4 = (com.google.android.gms.internal.clearcut.zzbb) r4;\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzc(r14, r4);\n goto L_0x06bd;\n L_0x0732:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x0736:\n r4 = r2.getObject(r1, r9);\n r9 = r0.zzad(r3);\n r4 = com.google.android.gms.internal.clearcut.zzeh.zzc(r14, r4, r9);\n goto L_0x06bd;\n L_0x0744:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x0748:\n r4 = r2.getObject(r1, r9);\n r9 = r4 instanceof com.google.android.gms.internal.clearcut.zzbb;\n if (r9 == 0) goto L_0x0751;\n L_0x0750:\n goto L_0x072b;\n L_0x0751:\n r4 = (java.lang.String) r4;\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzb(r14, r4);\n goto L_0x06bd;\n L_0x0759:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x075d:\n r4 = com.google.android.gms.internal.clearcut.zzbn.zzc(r14, r7);\n goto L_0x06bd;\n L_0x0763:\n r4 = r12 & r16;\n if (r4 == 0) goto L_0x06be;\n L_0x0767:\n r4 = 0;\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzj(r14, r4);\n r5 = r5 + r9;\n goto L_0x06bf;\n L_0x076f:\n r4 = 0;\n r9 = r12 & r16;\n if (r9 == 0) goto L_0x06bf;\n L_0x0774:\n r9 = 0;\n r11 = com.google.android.gms.internal.clearcut.zzbn.zzg(r14, r9);\n r5 = r5 + r11;\n r18 = r9;\n goto L_0x07ae;\n L_0x077e:\n r4 = 0;\n r18 = 0;\n r11 = r12 & r16;\n if (r11 == 0) goto L_0x07ae;\n L_0x0785:\n r9 = r2.getInt(r1, r9);\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzg(r14, r9);\n goto L_0x07ad;\n L_0x078e:\n r4 = 0;\n r18 = 0;\n r11 = r12 & r16;\n if (r11 == 0) goto L_0x07ae;\n L_0x0795:\n r9 = r2.getLong(r1, r9);\n r9 = com.google.android.gms.internal.clearcut.zzbn.zze(r14, r9);\n goto L_0x07ad;\n L_0x079e:\n r4 = 0;\n r18 = 0;\n r11 = r12 & r16;\n if (r11 == 0) goto L_0x07ae;\n L_0x07a5:\n r9 = r2.getLong(r1, r9);\n r9 = com.google.android.gms.internal.clearcut.zzbn.zzd(r14, r9);\n L_0x07ad:\n r5 = r5 + r9;\n L_0x07ae:\n r9 = 0;\n goto L_0x07bd;\n L_0x07b0:\n r4 = 0;\n r18 = 0;\n r9 = r12 & r16;\n if (r9 == 0) goto L_0x07ae;\n L_0x07b7:\n r9 = 0;\n r10 = com.google.android.gms.internal.clearcut.zzbn.zzb(r14, r9);\n r5 = r5 + r10;\n L_0x07bd:\n r10 = 0;\n goto L_0x07cf;\n L_0x07c0:\n r4 = 0;\n r9 = 0;\n r18 = 0;\n r10 = r12 & r16;\n if (r10 == 0) goto L_0x07bd;\n L_0x07c8:\n r10 = 0;\n r13 = com.google.android.gms.internal.clearcut.zzbn.zzb(r14, r10);\n r5 = r5 + r13;\n L_0x07cf:\n r3 = r3 + 4;\n r11 = r4;\n r4 = r9;\n r9 = r18;\n goto L_0x03bf;\n L_0x07d7:\n r2 = r0.zzmx;\n r2 = zza(r2, r1);\n r5 = r5 + r2;\n r2 = r0.zzmo;\n if (r2 == 0) goto L_0x07ed;\n L_0x07e2:\n r2 = r0.zzmy;\n r1 = r2.zza(r1);\n r1 = r1.zzas();\n r5 = r5 + r1;\n L_0x07ed:\n return r5;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.clearcut.zzds.zzm(java.lang.Object):int\");\n }", "public double getZ(){\n\t\treturn z;\n\t}", "public double getLow() {\n return low;\n }", "public ItemStack b(dz paramdz, ItemStack paramamj)\r\n/* 7: */ {\r\n/* 8:183 */ EnumDirection localej = ave.b(paramdz.f());\r\n/* 9:184 */ World localaqu = paramdz.i();\r\n/* 10: */ \r\n/* 11: */ \r\n/* 12:187 */ double d1 = paramdz.a() + localej.g() * 1.125F;\r\n/* 13:188 */ double d2 = paramdz.b() + localej.h() * 1.125F;\r\n/* 14:189 */ double d3 = paramdz.c() + localej.i() * 1.125F;\r\n/* 15: */ \r\n/* 16:191 */ BlockPosition localdt = paramdz.d().offset(localej);\r\n/* 17:192 */ Material localbof = localaqu.getBlock(localdt).getType().getMaterial();\r\n/* 18: */ double d4;\r\n/* 19:195 */ if (Material.water.equals(localbof)) {\r\n/* 20:196 */ d4 = 1.0D;\r\n/* 21:197 */ } else if ((Material.air.equals(localbof)) && (Material.water.equals(localaqu.getBlock(localdt.down()).getType().getMaterial()))) {\r\n/* 22:198 */ d4 = 0.0D;\r\n/* 23: */ } else {\r\n/* 24:200 */ return this.b.a(paramdz, paramamj);\r\n/* 25: */ }\r\n/* 26:203 */ EntityBoat localadu = new EntityBoat(localaqu, d1, d2 + d4, d3);\r\n/* 27:204 */ localaqu.spawnEntity(localadu);\r\n/* 28: */ \r\n/* 29:206 */ paramamj.split(1);\r\n/* 30:207 */ return paramamj;\r\n/* 31: */ }", "public b ho(boolean z) {\n return this.fHV.hp(z);\n }", "public void setLocalZ(float z){\n\t\tthis.z = z;\n\t}", "boolean hasZ();", "boolean hasZ();", "public double getFLAngle(){\r\n \treturn frontLeftPot.get() - FLOFFSET;\r\n }", "public double getZ() {\r\n return z;\r\n }", "@Override\n\tpublic double getZPos() {\n\t\treturn field_145849_e;\n\t}", "public float altitude_terrain_GET()\n { return (float)(Float.intBitsToFloat((int) get_bytes(data, 24, 4))); }", "public static Double LargeZ() {\n return LargeZ;\n }", "double setz(double z) {\nreturn this.z;\n }", "public void setLimit_lin_z_upper(float limit_lin_z_upper) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 52, limit_lin_z_upper);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 44, limit_lin_z_upper);\n\t\t}\n\t}", "public final int zza(com.google.android.gms.internal.ads.zzno r8, com.google.android.gms.internal.ads.zznt r9) throws java.io.IOException, java.lang.InterruptedException {\n /*\n r7 = this;\n r0 = 0\n r7.zzaoo = r0\n r1 = 1\n r2 = 1\n L_0x0005:\n if (r2 == 0) goto L_0x003c\n boolean r3 = r7.zzaoo\n if (r3 != 0) goto L_0x003c\n com.google.android.gms.internal.ads.zzob r2 = r7.zzazx\n boolean r2 = r2.zzb(r8)\n if (r2 == 0) goto L_0x0005\n long r3 = r8.getPosition()\n boolean r5 = r7.zzaob\n if (r5 == 0) goto L_0x0025\n r7.zzaod = r3\n long r3 = r7.zzaoc\n r9.zzahv = r3\n r7.zzaob = r0\n L_0x0023:\n r3 = 1\n goto L_0x0039\n L_0x0025:\n boolean r3 = r7.zzbam\n if (r3 == 0) goto L_0x0038\n long r3 = r7.zzaod\n r5 = -1\n int r3 = (r3 > r5 ? 1 : (r3 == r5 ? 0 : -1))\n if (r3 == 0) goto L_0x0038\n long r3 = r7.zzaod\n r9.zzahv = r3\n r7.zzaod = r5\n goto L_0x0023\n L_0x0038:\n r3 = 0\n L_0x0039:\n if (r3 == 0) goto L_0x0005\n return r1\n L_0x003c:\n if (r2 == 0) goto L_0x003f\n return r0\n L_0x003f:\n r8 = -1\n return r8\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.ads.zzod.zza(com.google.android.gms.internal.ads.zzno, com.google.android.gms.internal.ads.zznt):int\");\n }", "public int getLightValue(ym iba, int i, int j, int k)\r\n/* 37: */ {\r\n/* 38:42 */ TileLogic tl = (TileLogic)CoreLib.getTileEntity(iba, i, j, k, TileLogic.class);\r\n/* 39:44 */ if (tl == null) {\r\n/* 40:44 */ return super.getLightValue(iba, i, j, k);\r\n/* 41: */ }\r\n/* 42:46 */ return tl.getLightValue();\r\n/* 43: */ }" ]
[ "0.66166675", "0.66166675", "0.66166675", "0.62561935", "0.62561935", "0.62561935", "0.6237952", "0.62315273", "0.61346006", "0.6035432", "0.5934129", "0.58836573", "0.58801645", "0.58679026", "0.58032835", "0.5800877", "0.5705172", "0.5687612", "0.56810385", "0.56609553", "0.565802", "0.56447345", "0.56447345", "0.56084436", "0.55952644", "0.5579689", "0.5570685", "0.5570685", "0.5558906", "0.55463606", "0.5529014", "0.5526333", "0.5516478", "0.55150115", "0.549399", "0.5470564", "0.54596066", "0.5454192", "0.5450493", "0.5420305", "0.54178834", "0.54041016", "0.53953075", "0.53771305", "0.5376029", "0.5368834", "0.5360819", "0.5360567", "0.53519994", "0.53504586", "0.5350427", "0.5345449", "0.5331953", "0.53275377", "0.5324774", "0.5324284", "0.53219664", "0.53143334", "0.5312598", "0.53080887", "0.5286652", "0.5286399", "0.52809244", "0.52776575", "0.5273527", "0.52724665", "0.52625364", "0.52598345", "0.5255879", "0.5251008", "0.5244363", "0.52177125", "0.52163196", "0.52107185", "0.5205873", "0.5205491", "0.520126", "0.51948553", "0.5191634", "0.51910144", "0.51900035", "0.51788265", "0.515942", "0.5154905", "0.5151244", "0.514995", "0.5142118", "0.5140161", "0.51351625", "0.5131126", "0.5131126", "0.51281303", "0.5124935", "0.51175123", "0.5113392", "0.51112044", "0.5103323", "0.50944185", "0.5082738", "0.50768125" ]
0.70650864
0
Test downloading of a file.
@ParameterizedTest(name = "#{index} - [{0}]") @MethodSource("dataForTestDownloadFile") public void testDownloadFile(final String label, final String fileToRequest, final String fileToLoad, final ResultMatcher status) throws Exception { Resource xmlDoc = new ClassPathResource(TEST_FILES_LOCATION + fileToLoad); if (status.equals(STATUS_OK)) { Mockito.when(service.loadAsResource(Mockito.anyString())).thenReturn(xmlDoc); } else { Mockito.when(service.loadAsResource(Mockito.anyString())).thenThrow(StorageFileNotFoundException.class); } MvcResult result = mockMvc.perform(MockMvcRequestBuilders.get(PATH_GET + fileToRequest)// .contentType(MediaType.APPLICATION_JSON)// .accept(MediaType.APPLICATION_JSON))// .andExpect(status).andReturn(); if (status.equals(STATUS_OK)) { String resultXml = result.getResponse().getContentAsString(); assertNotNull(resultXml); assertEquals(Files.readString(xmlDoc.getFile().toPath()), resultXml, label); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "@Test\n public void verifyDownloadFile() {\n // Read the input file\n\n File inputFile = new File(System.getProperty(\"user.dir\")+File.separator+\"geckodriver-v0.26.0-linux32.tar.gz\");\n\n // Length of input file\n int expectedSize = (int)inputFile.length();\n\n System.out.println(\"The size of the expected file is: \"+expectedSize+\" bytes\");\n\n // https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux32.tar.gz\n // Read the downloaded File\n byte[] actualValue = given()\n .when()\n .get(\"https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux32.tar.gz\")\n .then()\n .extract()\n .asByteArray();\n System.out.println(\"The size of the actual file is: \"+actualValue.length+\" bytes\");\n\n Assert.assertEquals(expectedSize, actualValue.length);\n }", "void downloadingFile(String path);", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n boolean boolean0 = fileUtil0.downloadSimilaritesFile(\"\", \"\", \"\");\n assertFalse(boolean0);\n }", "boolean checkShouldDownloadFile(String target, String name) {\n return Boolean.TRUE.equals(DOWNLOAD_FILES.retrieve(target, name));\n }", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.downloadGenericSearchFile((String) null, (String) null, (String) null, \"\", \"\", \"v96k('jouzjfc#,~2t\");\n assertNull(file0);\n }", "@Test\n\tpublic void incompleteDownloadTest() {\n\t\tSystem.out.println(\"TestSFTPDownloader \"+ \"incompleteDownloadTest\");\n\n\t\tDMCache.updateCacheMap(\"sftp.buffer.size\", \"4096\");\n\t\tSFTPDownloader sftpDownloader = new SFTPDownloader();\n\t\tString downloadUrl = \"sftp://demo-user:[email protected]:2222/download/manual_en.pdf\";\n\t\tString location = TEST_SAVE_PATH + \"incompleteFile.pdf\";\n\n\t\ttry {\n\t\t\tsftpDownloader.initiateDownload(downloadUrl, location, 10, 10, 22);\n\t\t} catch (IOException e) {\n\t\t\tValidationServiceImpl validationServiceImpl = new ValidationServiceImpl();\n\t\t\tAssert.assertFalse(validationServiceImpl.validateUrl(location));\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n boolean boolean0 = fileUtil0.downloadBrowseNodeFile((String) null, \"8c\", (String) null, (String) null);\n assertFalse(boolean0);\n }", "@Test\n\tpublic void downloadSuccessfulTest() throws IOException {\n\t\tSystem.out.println(\"TestSFTPDownloader \"+ \"downloadSuccessfulTest\");\n\n\t\tDMCache.updateCacheMap(\"sftp.buffer.size\", \"4096\");\n\t\tSFTPDownloader sftpDownloader = new SFTPDownloader();\n\t\tString downloadUrl = \"sftp://demo-user:[email protected]:2222/download/manual_en.pdf\";\n\t\tString location = TEST_SAVE_PATH + \"manual_en.pdf\";\n\t\tboolean downloadSuccessful = sftpDownloader.initiateDownload(downloadUrl, location, 30000, 30000, 22);\n\t\tAssert.assertTrue(downloadSuccessful);\n\t}", "String download(String path) throws IOException;", "public void downloadCompleted(File f);", "@Test\n @Category(FastTest.class)\n public void canDownloadOnRedirect() throws Exception {\n final String redirectPathBook = \"/download/redirect/thebook\";\n\n stubFor(get(urlPathEqualTo(redirectPathBook))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(\"0/binary\")));\n\n\n stubFor(get(urlPathMatching(\"/download/0/.*\"))\n .willReturn(aResponse()\n .withStatus(302)\n .withHeader(\"Location\", getExternalHostMock() + redirectPathBook)));\n\n // call service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOK));\n\n // verify that our logic downloaded binary\n verify(getRequestedFor(urlEqualTo(\"/download/0/?token=abcdef\")));\n verify(getRequestedFor(urlEqualTo(redirectPathBook)));\n }", "@Override\n public boolean downloadFile(final String url, String fileID,\n final String path) {\n DownloadFileRequest request = RequestFactory.makeDownloadFileRequest(\n fileID, \".wig\");\n\n System.out.println(\"Test: \" + fileID);\n conn.sendRequest(request, userID, \"text/plain\");\n Gson gson = new Gson();\n DownloadFileResponse response = gson.fromJson(conn.getResponseBody(),\n DownloadFileResponse.class);\n System.out.println(conn.getResponseBody());\n final DownloadHandler handler = new DownloadHandler(\"pvt\", \"pvt\");\n new Thread(new Runnable() {\n @Override\n public void run() {\n handler.download(url, path);\n }\n }).start();\n\n System.out.println(\"Test\");\n return true;\n }", "public static void httpDownload(String url, FileOutputStream file) throws Exception {\r\n \t\tDefaultHttpClient client = new DefaultHttpClient();\r\n \t\tHttpResponse response = client.execute(new HttpGet(url));\r\n \t\tif(response.getStatusLine().getStatusCode() < 400){\r\n \t\t\tBufferedOutputStream writer = null;\r\n \t\t\tBufferedInputStream reader = null;\r\n \t\t\ttry {\r\n \t\t\t\twriter = new BufferedOutputStream(file);\r\n \t\t\t\treader = new BufferedInputStream(response.getEntity().getContent());\r\n \r\n \t\t\t\tbyte[] buffer = new byte[BUF_SIZE];\r\n \t\t\t\tint bytesRead = reader.read(buffer);\r\n \r\n \t\t\t\twhile (bytesRead > 0) {\r\n \t\t\t\t\twriter.write(buffer, 0, bytesRead);\r\n \t\t\t\t\tbytesRead = reader.read(buffer);\r\n \t\t\t\t}\r\n \t\t\t} finally {\r\n \t\t\t\tif (writer != null) {\r\n \t\t\t\t\twriter.close();\r\n \t\t\t\t}\r\n \t\t\t\tif (reader != null) {\r\n \t\t\t\t\treader.close();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.downloadCart(\"cacheife\");\n assertNull(file0);\n }", "public void testDownloadFile(){\n final String url = \"http://www.zebrai.cn/login/picture/getCaptcha\";\n new Thread(new Runnable() {\n @Override\n public void run() {\n downloadFile(url);\n }\n }).start();\n\n }", "@Test(enabled = false)\n public void testDownload() throws Exception {\n\n AttFtpClient attFtpClient = AttFtpClient.getFtpClient();\n\n File retrieveLastModifiedFileFromFTP = attFtpClient.retrieveLastModifiedFileFromFTP();\n attFtpClient.deleteFilesFromFTPserver();\n }", "boolean hasDownloadResponse();", "void fileDownloaded(String path);", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n boolean boolean0 = fileUtil0.downloadOneASINFile(\"k[mvr{61b:NmP1*\", \"p,{uKz\", \"\", (String) null, \"1\");\n assertFalse(boolean0);\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.downloadKeywordSearchFile(\"cacheLife\", \"cacheLife\", \"cacheLife\", \"cacheLife\");\n assertNull(file0);\n }", "@Override\r\n\tpublic boolean downloadFile() throws FileSystemUtilException {\r\n\t\tlogger.debug(\"Begin: \" + getClass().getName() + \":download()\");\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tgetFileData(0, \"\");\r\n\t\t\tdisconnect();\r\n\t\t\tif (stop) {\r\n\t\t\t\tthrow new FileSystemUtilException(\"999\");\r\n\t\t\t}\r\n\t\t\tFileSystemUtilsPlugin zu = new FileSystemUtilPluginFactory().getFileUtils(FileSystemTypeConstants.ZIP);\r\n\t\t\tif (zu.isZip(localFilePath)) {\r\n\r\n\t\t\t\t// unzip the localfilepath (a common method at import util level\r\n\t\t\t\t// can be used)\r\n\t\t\t\t// rename the extracted file to localfilepath+\".txt\r\n\t\t\t\t// delete the localfilepath\r\n\t\t\t}\r\n\t\t\tzu = null;\r\n\t\t\tlogger.debug(\"End: \" + getClass().getName() + \":download()\");\r\n\t\t\treturn true;\r\n\t\t} catch (FileSystemUtilException e) {\r\n\t\t\tdisconnect();\r\n\t\t\tlogger.info(new Date() + \":: Unable to download with parameters \" + \", username= \" + username\r\n\t\t\t\t\t+ \" , password = \" + password + \" , remotefilePath = \" + remoteFilePath + \", \" + \"localFilePath = \"\r\n\t\t\t\t\t+ localFilePath + \" , host= \" + hostname + \" and port =\" + port);\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "@Test\n\tpublic void sftpInvalidUrlTestFailure() throws IOException {\n\t\tSystem.out.println(\"TestSFTPDownloader \"+ \"sftpInvalidUrlTestFailure\");\n\t\tSFTPDownloader _sftpDownloader = new SFTPDownloader();\n\t\tString downloadUrl = \"maliformedUrl\";\n\t\tboolean success = _sftpDownloader.initiateDownload(downloadUrl, TEST_SAVE_PATH, 5000, 5000, 22);\n\t\tAssert.assertFalse(success);\n\t}", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.fetchASINFile(\"a_\", \"z5<k#5LC43q@c8Y\", \"\", \"\");\n File file0 = fileUtil0.downloadKeywordSearchFile(\"\", \"a_\", \"all\", \"all\");\n assertNull(file0);\n }", "public void download() {\n \n try {\n \n downloading = true;\n \n input = link.openStream(); \n output = new FileOutputStream(localFile);\n \n while ((bytes = input.read()) != -1) { // as long as there are bytes they will be copied to the local machine // enquanto houver bytes eles serao copiados para maquina local\n\n output.write(bytes);\n\n System.out.println(\"Tamanho: \" + sizeInMegaBytes(localFile) + \" MB\");\n\n }\n \n downloading = false;\n JOptionPane.showMessageDialog(null, \"Download do arquivo: \"+ localFile.getName() +\" Finalizado\");\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/___.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\");\n fileUtil0.fetchASINFile(\"\", \"\", \"\", \"\");\n fileUtil0.deleteFile(\"\");\n File file0 = fileUtil0.downloadBlendedSearchFile(\"\", \"\");\n assertNull(file0);\n }", "boolean hasDownloadRequest();", "public static boolean downloadFile(String url, String destination) throws Exception {\n BufferedInputStream bi = null;\n BufferedOutputStream bo = null;\n File destfile;\n byte BUFFER[] = new byte[100];\n java.net.URL fileurl;\n URLConnection conn;\n fileurl = new java.net.URL(url);\n conn = fileurl.openConnection();\n long fullsize = conn.getContentLength();\n long onepercent = fullsize / 100;\n MessageFrame.setTotalDownloadSize(fullsize);\n bi = new BufferedInputStream(conn.getInputStream());\n destfile = new File(destination);\n if (!destfile.createNewFile()) {\n destfile.delete();\n destfile.createNewFile();\n }\n bo = new BufferedOutputStream(new FileOutputStream(destfile));\n int read = 0;\n int sum = 0;\n long i = 0;\n while ((read = bi.read(BUFFER)) != -1) {\n bo.write(BUFFER, 0, read);\n sum += read;\n i += read;\n if (i > onepercent) {\n i = 0;\n MessageFrame.setDownloadProgress(sum);\n }\n }\n bi.close();\n bo.close();\n MessageFrame.setDownloadProgress(fullsize);\n return true;\n }", "@GET\n @Path(\"/download/{filename}\")\n public Response downloadFile(\n \t\t@PathParam(\"filename\") final String filename){\n\t\tFtpsFileList.download(filename);\n return Response.status(200).entity(filename + \" download to D://test/ success!\").build();\n }", "@Test\n public void whenClientEntersLegalCommandDownloadThenRequestToServerIsFormed() throws IOException {\n this.testClientInput(\n Joiner.on(LN).join(\n \"File is downloaded.\",\n \"\",\n \"\",\n \"\"\n ),\n Joiner.on(LN).join(\n String.format(\"DOWNLOAD File %1$s%2$sEXIT %3$s\",\n Paths.get(new File(\".\").getAbsolutePath()).normalize(),\n LN,\n Paths.get(new File(\".\").getAbsolutePath()).normalize()),\n \"\"\n ),\n Joiner.on(LN).join(\n \"DOWNLOAD File\",\n \"EXIT\"\n ),\n NetFileManagerClientTest.SERVER_OUTPUT_STUB\n );\n }", "public void download() {\n }", "@Test\n public void testFileDownload() throws FileNotFoundException {\n ExcelFile testFile = new ExcelFile(\"0\", \"/Users/zhongyuanlu/IdeaProjects/reporting_system/temp.xlsx\");\n Mockito.when(excelService.getExcelBodyById(anyString())).thenReturn(new FileInputStream(\"temp.xlsx\"));\n Mockito.when(excelService.getExcelFileById(anyString())).thenReturn(testFile);\n given().accept(\"application/json\").get(\"/excel/0/content\").peek().\n then().assertThat()\n .statusCode(200);\n }", "public void onDownloadSuccess(String fileInfo);", "@Test\r\n public void testValidURLtxtFile() {\r\n String[] str = {\"curl\", \"http://www.cs.cmu.edu/~spok/grimmtmp/073.txt\"};\r\n\r\n curl.run(str);\r\n assertFalse(ErrorHandler.checkIfErrorOccurred());\r\n assertTrue(mockFileSystem.getCurrentNode().getFile(\"073txt\") != null);\r\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.getASINFile(\"cacheDir\", \"cacheDir\", \"cacheDir\", (String) null);\n fileUtil0.fetchKeywordSearchFile(\"D7J|oyQC\", \"D7J|oyQC\", \"D7J|oyQC\", \"D7J|oyQC\");\n fileUtil0.downloadBlendedSearchFile(\"+G[/UQFc\", \"+G[/UQFc\");\n File file0 = fileUtil0.downloadThirdPartySearchFile(\"D7J|oyQC\", \"Log file isn't there Setting default properties\", \"7swCsV7y\", \"ts_\");\n assertNull(file0);\n }", "public Boolean downloadTaskFile(String taskid, String fileSaveAsPath) throws IOException {\n return true;\n\t }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n boolean boolean0 = fileUtil0.downloadAccessoriesFile(\"@_>?8NBAb?,iUv\", arrayList0, \"@_>?8NBAb?,iUv\");\n assertFalse(boolean0);\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "public void download(URL link, File localFile) {\n\n try {\n downloading = true;\n \n input = link.openStream();\n output = new FileOutputStream(localFile);\n\n while ((bytes = input.read()) != -1) {\n\n output.write(bytes);\n\n System.out.println(\"Tamanho: \" + sizeInMegaBytes(localFile) + \" MB\");\n\n }\n \n downloading = false;\n JOptionPane.showMessageDialog(null, \"Download do arquivo: \"+ localFile.getName() +\" Finalizado\");\n \n } catch (FileNotFoundException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IOException ex) {\n Logger.getLogger(Downloader.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchThirdPartySearchFile((String) null, \"]=J;d%[ad*</M&sOjF\", \"NA-c}Y;f\", \"dev-t=\");\n assertNull(fileInputStream0);\n }", "public void download(String url,File targetFile)throws Exception{\n\t\tdownload(url, targetFile,60*10);\n\t}", "private boolean DownloadFile(String s, String name) {\n boolean success;\n try {\n new File(data_path).mkdirs();\n URL url = new URL(s);\n HttpURLConnection con = (HttpURLConnection) url.openConnection();\n con.setConnectTimeout(5000);\n InputStream is = con.getInputStream();\n BufferedReader br = new BufferedReader(new InputStreamReader(is));\n FileWriter fw = new FileWriter(data_path + name);\n PrintWriter pw = new PrintWriter(fw);\n String line;\n while ((line = br.readLine()) != null) {\n pw.println(line);\n }\n fw.close();\n br.close();\n success = true;\n } catch (MalformedURLException e) {\n return false;\n } catch (SocketTimeoutException e) {\n return false;\n } catch (IOException e) {\n return false;\n }\n return success;\n }", "public void testRemoteFileDescGetUrl() {\n\t\tSet urns = new HashSet();\n\t\turns.add(HugeTestUtils.URNS[0]);\n\t\tRemoteFileDesc rfd =\n\t\t\tnew RemoteFileDesc(\"www.test.org\", 3000, 10, \"test\", 10, TEST_GUID,\n\t\t\t\t\t\t\t 10, true, 3, true, null, urns, \n false, false,\"\",0, null, -1);\n\t\tURL rfdUrl = rfd.getUrl();\n\t\tString urlString = rfdUrl.toString();\n\t\tString host = rfd.getHost();\n\t\tString colonPort = \":\"+rfd.getPort();\n\t\tassertTrue(\"unexpected beginning of url\", \n\t\t\t\t urlString.startsWith(\"http://\"+host+colonPort));\n\t\tassertEquals(\"unexpected double slash\",\n\t\t urlString.indexOf(colonPort+\"//\"), -1);\n\t\tassertNotEquals(\"unexpected double slash\",\n\t\t -1, urlString.indexOf(\":3000/\"));\n\t}", "public static boolean executeSoundwaveDownload(String serverUrl, File localFile) {\n\t\tInputStream input = null;\n\t\ttry {\n\t\t\tlocalFile.createNewFile(); // create the file\n\t\t\tHttpURLConnection conn = requestGet(serverUrl);\n\t\t\tconn.connect();\n\t\t\tif(conn.getResponseCode() == HttpStatus.SC_OK) {\n\t\t\t\tinput = new BufferedInputStream(conn.getInputStream());\n\t\t\t\treadToFile(input, localFile);\n\t\t\t\tinput.close();\n\t\t\t return true;\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t} catch (FileNotFoundException e) {\n\t\t\tif(input != null) {\n\t\t\t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// should not happen\n\t\t\t\t}\n\t\t\t}\n return false;\n } catch (IOException e) {\n \tif(input != null) {\n \t\ttry {\n\t\t\t\t\tinput.close();\n\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t// should not happen\n\t\t\t\t}\n \t}\n \tif(localFile.exists()) localFile.delete(); // we need to delete the local file on error\n return false;\n }\n\t}", "@Override\n\t\t\t\t\tpublic void isDownload(String fileString, int DOWN_OVER) {\n\t\t\t\t\t\tmHandler.sendEmptyMessage(DOWN_OVER);\n\t\t\t\t\t\tfileName = fileString;\n\t\t\t\t\t}", "public boolean isDownloading()\r\n {\r\n return statusObj.value == STATUS_CANDIDATE_DOWNLOADING;\r\n }", "public static boolean wget(URL source, Path dest) {\r\n if (source == null) {\r\n throw new IllegalArgumentException(\"The source URL is null\");\r\n }\r\n if (dest == null) {\r\n throw new IllegalArgumentException(\"The destination file path is null\");\r\n }\r\n boolean successful = true;\r\n try (FileOutputStream out = new FileOutputStream(dest.toFile())) {\r\n try (InputStream in = source.openStream()) {\r\n int numread = 0;\r\n int bufSize = 1024;\r\n byte[] buffer = new byte[bufSize];\r\n while ((numread = in.read(buffer, 0, bufSize)) != -1) {\r\n out.write(buffer, 0, numread);\r\n }\r\n }\r\n } catch (IOException e) {\r\n logger.warn(\"Fail to download file from \\\"{}\\\" to \\\"{}\\\", {}\", source, dest.toFile().getAbsolutePath(),\r\n e.getMessage());\r\n successful = false;\r\n }\r\n return successful;\r\n }", "boolean download(\n String remoteFileName, OutputStream destination);", "protected abstract File download(Exception previousException) throws Exception;", "public boolean downloadSingleFile(File fileToDownload) {\n\t\tboolean success = false;\n\t\tthis.showNamedMessage(\"WARNING: overwriting existing files!\"); \n\t\ttry {\n\t\t\t// create downloadHandler\n\t\t\tFile fileToWrite = new File(this.fileStorage.toString() +\n\t\t\t\t\tFile.separator + fileToDownload.getName());\n\t\t\tDatagramSocket downloadSocket = TransportLayer.openNewDatagramSocket();\n\t\t\t\n\t\t\tDownloadHelper downloadHelper = new DownloadHelper(this,\n\t\t\t\t\tdownloadSocket, this.serverAddress, -2, -1, fileToWrite, -1); \n\t\t\t// note: uploaderPort, fileSize and startID still to set\n\t\t\tthis.downloads.add(downloadHelper);\n\n\t\t\t// request file, provide downloaderHelper port\n\t\t\tString singleFileRequest = FileTransferProtocol.DOWNLOAD + \n\t\t\t\t\tFileTransferProtocol.DELIMITER + \n\t\t\t\t\tdownloadSocket.getLocalPort();\n\t\t\t\n\t\t\tbyte[] fileToDownloadBytes = util.Bytes.serialiseObjectToByteArray(fileToDownload); \n\t\t\t\n\t\t\tPacket responsePacket = this.requestServer(singleFileRequest, fileToDownloadBytes);\n\t\t\tString[] responseSplit = this.getArguments(responsePacket.getPayloadString());\n\t\t\t\n\t\t\tif (responseSplit[0].contentEquals(FileTransferProtocol.UPLOAD)) {\n\t\t\t\tdownloadHelper.setUploaderPort(Integer.parseInt(responseSplit[1])); \n\t\t\t\tthis.showNamedMessage(\"Uploader is on server port = \" \n\t\t\t\t\t\t+ Integer.parseInt(responseSplit[1])); \n\n\t\t\t\tlong totalFileSize = Long.parseLong(responseSplit[2]);\n\t\t\t\tthis.showNamedMessage(\"Uploader reports total file size = \" \n\t\t\t\t\t\t+ totalFileSize + \" bytes\");\n\t\t\t\t\n\t\t\t\tif (!this.checkFreeSpace(totalFileSize)) {\n\t\t\t\t\tthis.downloads.remove(downloadHelper);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tdownloadHelper.setTotalFileSize(totalFileSize);\n\t\t\t\t\n\t\t\t\tint startID = Integer.parseInt(responseSplit[3]);\n\t\t\t\tthis.showNamedMessage(\"Uploader starts at ID = \" + startID);\n\t\t\t\tdownloadHelper.setStartID(startID);\n\t\t\t\t\n\t\t\t\t// now everything is known: start download helper\n\t\t\t\tnew Thread(downloadHelper).start();\n\t\t\t\tsuccess = true;\n\t\t\t} else {\n\t\t\t\tthis.showNamedError(\"Invalid response to download request\");\n\t\t\t\tsuccess = false;\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tthis.showNamedError(\"Something went wrong: \" + e.getLocalizedMessage());\n\t\t} catch (EmptyResponseException e) {\n\t\t\tthis.showNamedError(\"Response from server was empty: \" + e.getLocalizedMessage());\n\t\t} catch (ServerFailureException e) {\n\t\t\tthis.showNamedError(\"SERVER FAILURE> \" + e.getLocalizedMessage());\n\t\t} catch (NotEnoughFreeSpaceException e) {\n\t\t\tthis.showNamedError(\"Not enough free space to store download:\"\n\t\t\t\t\t+ e.getLocalizedMessage()); \n\t\t}\n\n\t\treturn success;\n\t}", "@Override\n public boolean isDownloadable() {\n return true;\n }", "boolean mo54433c(DownloadInfo downloadInfo);", "boolean mo54421a(DownloadInfo downloadInfo);", "private String downloadFile(String url) throws Exception {\n StringBuilder builder = new StringBuilder();\n \n URL u = new URL(url);\n URLConnection conn = u.openConnection();\n BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));\n String line;\n while ((line = rd.readLine()) != null) {\n builder.append(line);\n }\n \n return builder.toString();\n }", "private void DownloadFile(String url){\n ContentManager contentManager = ContentManager.getInstance();\n String fileName = contentManager.getCurrentPlayingSongTitle().trim();\n fileName = TextUtil.removeAccent(fileName);\n fileName += url.substring(url.length()-4, url.length());\n final FileDownloadWorker fileDownloadWorker = new FileDownloadWorker(getContext(), true, this);\n fileDownloadWorker\n .setDialogMessage(getContext().getString(R.string.wait_downloading))\n .setHorizontalProgressbar()\n .setDialogCancelCallback(getContext().getString(R.string.hide), new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n fileDownloadWorker.showNotificationProgress();\n }\n });\n fileDownloadWorker.execute(url, fileName);\n }", "public static void httpDownload(String url, String destFile) throws Exception {\r\n \t\tFileOutputStream out = null;\r\n \t\ttry {\r\n \t\t\tout = new FileOutputStream(destFile);\r\n \t\t\thttpDownload(url, out);\r\n \r\n \t\t} finally {\r\n \t\t\tif (out != null) {\r\n \t\t\t\tout.close();\r\n \t\t\t}\r\n \t\t}\r\n \t}", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "public static void testResourceFile() {\n\t\tArrayList l = new ArrayList();\n\t\tl.add(\"http://www.google.it\");\n\t\tl.add(\"http://www.microsoft.com\");\n\t\t/*\n\t\tDownloader d = new Downloader(1);\n\t\tlogger\n\t\t\t\t.log(\n\t\t\t\t\t\tLevel.INFO,\n\t\t\t\t\t\"TEST ResourceFile implementation. Url downloaded will be temporary saved to system temp directory.\");\n\n\t\t// Listener\n\t\td.addListener(new DebugListener());\n\n\t\td.setFollowRedirect(true);\n\t\td.setMaxSize(2000);\n\t\td.addURLs(l);\n\t\td.start();\n\t\td.waitDone();\n\n\t\t// Derby DBMS should be shutdown every times application goes down\n\t\tDerbyLinkQueueDB.shutdown();\n\t\t*/\n\t}", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&SellerSearch=dev-t=&type=NA-c}Y;f&page=b_&offerstatus=NA-c}Y;f&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"\\\"90hR%xB!V_E\");\n FileInputStream fileInputStream0 = fileUtil0.fetchThirdPartySearchFile(\"dev-t=\", \"NA-c}Y;f\", \"b_\", \"NA-c}Y;f\");\n assertNull(fileInputStream0);\n }", "@Test\n public void readUrl() throws IOException {\n\n }", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&BlendedSearch=ShoppingCart%3Dmodify%26f%3Dxml%26dev-t%3D&type=RGC&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"\");\n FileInputStream fileInputStream0 = fileUtil0.fetchBlendedSearchFile(\"ShoppingCart=modify&f=xml&dev-t=\", \"RGC\");\n assertNull(fileInputStream0);\n }", "public boolean download(int jid, Job job){\r\n\t\ttry {\r\n\t\t\tbyte[] tmp =null;\r\n\t\t\ttmp = this.fileHanler.downloadFile(\r\n\t\t\t\t\tjid, \r\n\t\t\t\t\tjob.getResultFileString(), \r\n\t\t\t\t\tthis.getPassword());\r\n\t\t\t\r\n\t\t\tif(tmp==null)return false;\r\n\t\t\treturn FileUtil.saveToFile(\r\n\t\t\t\t\tjob.getResultFileString(), tmp\r\n\t\t\t\t\t);\r\n\t\t} catch (IOException e) {\r\n\t\t\tdead = true;\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "public boolean downloadFile(String url)\n\t{\n\t\tString filepath=null;\n\t\t\n\t\tHttpClient httpClient=new HttpClient();\n\t\n\t\t//set overtime of request to http-5000ms\n\t\thttpClient.getHttpConnectionManager().getParams().setConnectionTimeout(5000);\n\t\t\n\t\tPostMethod postMethod=new PostMethod(url);\n\t\t//PostMethod postMethod=new PostMethod(\"http://weibo.com/\");\n\t\t//NameValuePair[] postData=new NameValuePair[2];\n\t\t//postData[0]=new NameValuePair(\"loginName\",\"[email protected]\");\n\t\t//postData[1]=new NameValuePair(\"loginPswd\",\"iamyours\");\n\t\t//postMethod.addParameters(postData);\n\t\tint statusCode;\n\t\t/*try {\n\t\t\tstatusCode = httpClient.executeMethod(postMethod);\n\t\t} catch (HttpException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}*/\n\t\t//build get method\n\t\t//GetMethod getMethod=new GetMethod(url);\n\t\t//set overtime of request to get-5000ms\n\t\t//getMethod.getParams().setParameter(HttpMethodParams.SO_TIMEOUT, 50000);\n\t\t//retry machine\n\t\t//getMethod.getParams().setParameter(HttpMethodParams.RETRY_HANDLER,new DefaultHttpMethodRetryHandler());\n\t\t//execute get request\n\t\tString[] li=null;\n\t\ttry\n\t\t{ \n\t\t statusCode=httpClient.executeMethod(postMethod);\n\t\t\t//judge status code\n\t\t\tif(statusCode!=HttpStatus.SC_OK)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Method failed:\"+postMethod.getStatusLine());\n\t\t\t\tfilepath=null;\n\t\t\t}\n\t\t //success, process the response froom http\n\t\t\tbyte[] responseBody=postMethod.getResponseBody();\n\t\t\tfilepath=\"test\\\\\"+getFileNameByUrl(url,postMethod.getResponseHeader(\"Content-Type\").getValue());\n\t\t\t\n\t\t\tString entity=new String(responseBody,\"UTF-8\");\n\t\t\tif(entity.indexOf(\"{\\\"pid\\\":\\\"pl_weibo_feedlist\\\"\")==-1)\n\t\t\t\treturn false;\n\t\t\tString feed_list=entity.substring(entity.indexOf(\"{\\\"pid\\\":\\\"pl_weibo_feedlist\\\"\"));\n\t\t \n feed_list=feed_list.substring(0,feed_list.indexOf(\")</script>\"));\n FeedList fl=JSON.parseObject(feed_list,FeedList.class);\n \n String aResult=fl.getHtml();\n /*\n String plun=fl.getHtml().toString();\n String[] l=plun.split(\"\\\" action-type=\\\"login\\\">评论\");\n li=new String[l.length-1];\n for(int i=0;i<l.length-1;i++)\n { \n \tli[i]=l[i].substring(l[i].lastIndexOf(\"<a href=\\\"\")+9);\n \tSystem.out.println(li[i]);\n }\n \n */\n \n \n\t\t\tsaveToLocal(aResult.getBytes(),filepath);\n\t\t}catch(HttpException e)\n\t\t{\n\t\t\t//proposal incorrect || content of response has erros\n\t\t\tSystem.out.println(\"Please check out your provided http address!\");\n\t\t\te.printStackTrace();\n\t\t}catch(IOException e)\n\t\t{\n\t\t\t//erros in your connection\n\t\t\te.printStackTrace();\n\t\t}finally\n\t\t{\n\t\t //release connection\n\t\t\t//getMethod.releaseConnection();\n\t\t\tpostMethod.releaseConnection();\n\t\t}\n\t\treturn true;\n\t}", "@Test\r\n\tpublic static void downloadFile() throws InterruptedException{\r\n\t/*\tWebElement elm = driver.findElement(By.linkText(\"img.jpg\"));\r\n\t\telm.click();\r\n\t\tThread.sleep(2000);*/\r\n//\t\tChromeBrowser cg = new ChromeBrowser();\r\n\t\t//cg.folder.mkdir();\r\n\t\t//folder.mkdir();\r\n\t\t//String downloadFilePath = ResourceUtil.getResourcePath(\"/downloads\");\r\n\t\t/*File folder = new File(\"./downloads\");\r\n\t\tfolder.mkdir();\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\tMap<String, Object> prefs = new HashMap<String,Object>();\r\n\t\tprefs.put(\"download.default_directory\", downloadFilePath);\r\n\t\toptions.setExperimentalOption(\"prefs\", prefs);\r\n\t\t\r\n\t\tDesiredCapabilities cap = DesiredCapabilities.chrome();\r\n\t\tcap.setCapability(ChromeOptions.CAPABILITY, options);\r\n\t\tWebDriver driver = new ChromeDriver(cap);*/\r\n\t\t\r\n\t\t/*File listOfFiles[]=cg.folder.listFiles();\r\n\t\tfor(File file:listOfFiles){\r\n\t\t\tSystem.out.println(file.length());\r\n\t\t}*/\r\n\t}", "@SuppressLint(\"NewApi\")\r\n\tprivate void downloadFile() {\n\t\tLog.d(TAG, \"In fuction downloadFile()\");\r\n\t\tSimpleDateFormat dateFormat = new SimpleDateFormat(\"dd-MM-yy\");\r\n \tCalendar cal = Calendar.getInstance();\r\n \tString programmaNameUnderscore = mName.replace(\" \", \"_\");\r\n \tprogrammaNameUnderscore = programmaNameUnderscore.replace(\",\",\"\");\r\n \tString fileName = programmaNameUnderscore + \"_\" + dateFormat.format(cal.getTime())+\".mp3\";\r\n \t\r\n \t\r\n\t\tRequest request = new Request(Uri.parse(mDownloadUrl));\r\n\t\trequest.setDescription(mName);\r\n \t// in order for this if to run, you must use the android 3.2 to compile your app\r\n \tif (Build.VERSION.SDK_INT >= Build.VERSION_CODES.HONEYCOMB) {\r\n \t request.allowScanningByMediaScanner();\r\n \t request.setNotificationVisibility(DownloadManager.Request.VISIBILITY_VISIBLE_NOTIFY_COMPLETED);\r\n \t}\r\n \trequest.setDestinationInExternalPublicDir(Environment.DIRECTORY_MUSIC, getString(R.string.download_subdir_test) + File.separator + fileName);\r\n\t}", "boolean hasRetrieveFileResponse();", "public void onFileDownloadComplete(String filePath);", "private void download()\n {\n if(mDownloadConnection!=null && mDownloadConnection.mBinder!=null)\n {\n if (mDownloadConnection.mBinder.download(\"file1\"))\n {\n mTvFilename.setText(\"file1\");\n }\n }\n }", "private boolean checkLocalFile() throws IOException {\n\t\tPath localfile = Paths.get(userdir, filename);\n\t\tif (Files.exists(localfile, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\tthis.downloadStatus = DownloadEnum.ERROR;\n\t\t\tthis.message = \"same name file on download directory, download has stopped\";\n\t\t\treturn false;\n\t\t} else {\n\t\t\tlocalfiletmp = Paths.get(localfile.toAbsolutePath().toString() + \".tmp\");\n\t\t\tif (Files.exists(localfiletmp, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tlocalFileSize = localfiletmp.toFile().length();\n\t\t\t} else {\n\t\t\t\tFiles.createFile(localfiletmp);\n\t\t\t}\n\t\t\tcfgpath = Paths.get(localfile.toAbsolutePath().toString() + \".pcd.dl.cfg\");// local cache of download file\n\t\t\tif (!Files.exists(cfgpath, new LinkOption[] { LinkOption.NOFOLLOW_LINKS })) {\n\t\t\t\tFiles.createFile(cfgpath);\n\t\t\t}\n\t\t\tFileWriter fw = new FileWriter(cfgpath.toFile());\n\t\t\tfw.write(url);\n\t\t\tfw.flush();\n\t\t\tfw.close();\n\t\t\treturn true;\n\t\t}\n\t}", "@Test\n public void checkfileExist() {\n checkBlobExist(\"pause-amd64\",\"sha256:cf92024299791de93ad205151ab24e535c218bbea6465fd8f79c2611db913a50\");\n // try{\n// String info = httpUtils.head(url, new HashMap<>(), null);\n// logger.info(\"info:{}\", info);\n// } catch (Exception e) {\n// e.printStackTrace();\n// }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.downloadCart(\"Qjp&\");\n fileUtil0.downloadBrowseNodeFile(\"v{JQKX\", \"\", \"\\\"WN H5&\", (String) null);\n fileUtil0.renameFile(\"\", \"\\\"WN H5&\");\n fileUtil0.fetchKeywordSearchFile(\"all\", \"/\", \"Qjp&\", \"all\");\n fileUtil0.deleteFile(\"-\");\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"\", \"Qjp&\", \"1u<(sV]8U{kw}jp%,n\");\n assertNull(fileInputStream0);\n }", "private void downloadFile(URL source, File localDirectory, String localFileName, boolean griffin)\n throws SocketException {\n\n if (griffin) {\n try {\n downloadFileFromGriffin(source, localDirectory, localFileName);\n } catch (IOException ex) {\n downloadFileFromMentor(source, localDirectory, localFileName);\n }\n } else {\n downloadFileFromMentor(source, localDirectory, localFileName);\n }\n\n }", "public void downloadFile(String fileURL, String saveDir)\n throws IOException {\n URL url = new URL(fileURL);\n HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();\n int responseCode = httpConn.getResponseCode();\n\n // always check HTTP response code first\n if (responseCode == HttpURLConnection.HTTP_OK) {\n String fileName = \"\";\n String disposition = httpConn.getHeaderField(\"Content-Disposition\");\n String contentType = httpConn.getContentType();\n int contentLength = httpConn.getContentLength();\n\n if (disposition != null) {\n // extracts file name from header field\n int index = disposition.indexOf(\"filename=\");\n if (index > 0) {\n fileName = disposition.substring(index + 10,\n disposition.length() - 1);\n }\n } else {\n // extracts file name from URL\n fileName = fileURL.substring(fileURL.lastIndexOf(\"/\") + 1,\n fileURL.length());\n }\n\n System.out.println(\"Content-Type = \" + contentType);\n System.out.println(\"Content-Disposition = \" + disposition);\n System.out.println(\"Content-Length = \" + contentLength);\n System.out.println(\"fileName = \" + fileName);\n\n // opens input stream from the HTTP connection\n InputStream inputStream = httpConn.getInputStream();\n String saveFilePath = saveDir + File.separator + fileName;\n\n // opens an output stream to save into file\n FileOutputStream outputStream = new FileOutputStream(saveFilePath);\n\n\n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n int progress = 0;\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n progress += bytesRead;\n setChanged();\n notifyObservers((int) ((progress * 100) / contentLength));\n }\n\n outputStream.close();\n inputStream.close();\n\n System.out.println(\"File downloaded\");\n } else {\n System.out.println(\"No file to download. Server replied HTTP code: \" + responseCode);\n }\n httpConn.disconnect();\n }", "void download(SearchResult result, String downloadPath);", "void mo54418a(DownloadTask downloadTask);", "void downloadEta(File file, int id) throws IOException, SQLException;", "@Test\r\n public void downloadTest() {\r\n\r\n try (SFTP sftp = new SFTP(\"data-server.metamug.net\",\r\n \"root\", \"Android@123\", \"/root/projects/covid-counter\")) {\r\n\r\n InputStream is = sftp.download(\"pom.xml\");\r\n String s = slurp(is, 1024);\r\n assertTrue(s.length() > 0);\r\n \r\n //sftp.upload(new File(\"test.txt\"));\r\n } catch (JSchException ex) {\r\n Logger.getLogger(SFTPTest.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (SftpException ex) {\r\n Logger.getLogger(SFTPTest.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (FileNotFoundException ex) {\r\n Logger.getLogger(SFTPTest.class.getName()).log(Level.SEVERE, null, ex);\r\n } catch (Exception ex) {\r\n Logger.getLogger(SFTPTest.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n\r\n }", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"bf\", \"}*]#rf}>keea3q+#\", (String) null);\n assertNull(fileInputStream0);\n }", "static String download(String fileURL, String destinationDirectory, String downloadedFileName) throws IOException {\n URL url = new URL(fileURL);\r\n InputStream is = url.openStream();\r\n // Stream to the destionation file\r\n FileOutputStream fos;\r\n if (destinationDirectory == null) {// save to working folder\r\n fos = new FileOutputStream(downloadedFileName);\r\n } else {\r\n fos = new FileOutputStream(destinationDirectory + \"/\" + downloadedFileName);\r\n }\r\n // Read bytes from URL to the local file\r\n byte[] buffer = new byte[4096];\r\n int bytesRead = 0;\r\n\r\n System.out.print(\"Downloading \" + downloadedFileName);\r\n while ((bytesRead = is.read(buffer)) != -1) {\r\n System.out.print(\".\"); // Progress bar :)\r\n fos.write(buffer, 0, bytesRead);\r\n }\r\n System.out.println(\"done!\");\r\n\r\n // Close destination stream\r\n fos.close();\r\n // Close URL stream\r\n is.close();\r\n return downloadedFileName;\r\n }", "public static void download(URL url, File file) throws IOException {\n\t\tif (!file.getParentFile().exists())\n\t\t\tfile.getParentFile().mkdir();\n\t\tif (file.exists())\n\t\t\tfile.delete();\n\t\tfile.createNewFile();\n\t\tint size = url.openConnection().getContentLength();\n\t\tUtil.info(\"Downloading \" + file.getName() + \" (\" + size / 1024 + \"kb) ...\");\n\t\tInputStream in = url.openStream();\n\t\tOutputStream out = new BufferedOutputStream(new FileOutputStream(file));\n\t\tbyte[] buffer = new byte[1024];\n\t\tint len, downloaded = 0, msgs = 0;\n\t\tfinal long start = System.currentTimeMillis();\n\t\twhile ((len = in.read(buffer)) >= 0) {\n\t\t\tout.write(buffer, 0, len);\n\t\t\tdownloaded += len;\n\t\t\tif ((int)((System.currentTimeMillis() - start) / 500) > msgs) {\n\t\t\t\tUtil.info((int)((double)downloaded / (double)size * 100d) + \"%\");\n\t\t\t\tmsgs++;\n\t\t\t}\n\t\t}\n\t\tin.close();\n\t\tout.close();\n\t\tUtil.info(\"Download finished\");\n\t}", "public Blob downloadFile(String inKey, String inFileName);", "void mo54428b(DownloadTask downloadTask);", "void downloadEto(File file, int id) throws IOException, SQLException;", "public boolean downloadAndSaveBinaryFile(String theUrl, String saveAsFileName){\n \t\t //Log.i(\"ZZ\", \"AppDelegate:downloadAndSaveBinaryFile: \" + URL); \n\t \ttry {\n\t\t \n\t \tURL u = new URL(theUrl);\n\t URLConnection uc = u.openConnection();\n\t String contentType = uc.getContentType();\n\t int contentLength = uc.getContentLength();\n\t if (contentType.startsWith(\"text/\") || contentLength == -1) {\n\t return false; // not binary\n\t }\n\t InputStream raw = uc.getInputStream();\n\t InputStream in = new BufferedInputStream(raw);\n\t byte[] data = new byte[contentLength];\n\t int bytesRead = 0;\n\t int offset = 0;\n\t while (offset < contentLength) {\n\t bytesRead = in.read(data, offset, data.length - offset);\n\t if (bytesRead == -1)\n\t break;\n\t offset += bytesRead;\n\t }\n\t in.close();\n\t \t\t\t \t\n\t \t\t\t \n\t if (offset != contentLength) {\n\t\t return false; //problem reading stream?\n\t }\n\t \n\n\t //save file\n\t\t\t\t\tFileOutputStream fos = super.openFileOutput(saveAsFileName, MODE_WORLD_READABLE);\n\t\t\t\t\tfos.write(data);\n\t\t\t\t\tfos.flush();\n\t\t\t\t\tfos.close();\n\t \n\t return true;\n\t }catch (Exception je){\n\t\t\t Log.i(\"ZZ\", \"AppDelegate:downloadAndSaveBinaryFile: ERROR - 2: \" + je.getMessage()); \n\t \t return false;\n\t\t } \n\t }", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "static void downloadFile(String [] addresses, String filename, int downloadType) {\n\t\ttry {\n\t\t\tHttpURLConnection con = null;\n\t\t\t// For each address in addresses, deconstruct the string and try to connect\n\t\t\tfor(String address: addresses) {\n\t\t\t\t// Uses the character } to separate the URL from the username - split it\n\t\t\t\tString[] stringDeconstruction = address.split(\"}\");\n\t\t\t\t// The address part is before the } and the username is after\n\t\t\t\tString addressPart = stringDeconstruction[0];\n\t\t\t\tString usernamePart = stringDeconstruction[1];\n\t\t\t\t// Now, try to make a URL object that is a combination of the address, the filename, and username\n\t\t\t\ttry {\n\t\t\t\t\t// Create the URL object and set the con to the casted HttpURLConnection\n\t\t\t\t\tURL url = new URL(addressPart + \"/\" + filename + \"}\" + usernamePart);\n\t\t\t\t\tcon = (HttpURLConnection)url.openConnection();\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t// If unable to connect, keep looping\n\t\t\t\tcatch(ConnectException e) {\n\t\t\t\t\tcon = null;\n\t\t\t\t}\n\t\t\t}\n\t\t\t// If unable to make any connections, return to the calling function after informing the user\n\t\t\tif(con == null) {\n\t\t\t\tSystem.out.println(\"Unable to connect to a user peer to download.\");\n\t\t\t\tSystem.out.println(\"The user may have gone offline or stopped sharing the file.\");\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// Create a new byteStream in order to transfer files of all types\n\t\t\tByteArrayOutputStream byteStream = new ByteArrayOutputStream();\n\t\t\t// Set a buffer based on a reasonable size\n\t\t\tbyte[] buffer = new byte[4096];\n\n\t\t\t// Set up an InputStream for the connection to prepare for the file's contents\n\t\t\tInputStream incoming = con.getInputStream();\n\n\t\t\t// Write the bytes of the file through the byteStream\n\t\t\twhile(true) {\n\t\t\t\tint i = incoming.read(buffer);\n\t\t\t\tif( i < 0 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tbyteStream.write(buffer,0,i);\n\t\t\t}\n\t\t\tincoming.close();\n\n\t\t\t// If the download type was 1, assemble the byteStream.toByteArray which should create the original file\n\t\t\t// Then save it to the user's directory under \"shared\" and inform the user of the status\n\t\t\tif(downloadType == 1) {\n\t\t\t\tPath sharedPath = Paths.get(\"users/\"+username+\"/shared/\" + filename);\n\t\t\t\tFiles.write(sharedPath, byteStream.toByteArray());\n\t\t\t\tserver.clearSharedFiles(username);\n server.clearNotSharedFiles(username);\n\t\t\t\tserver.registerFiles(username);\n\t\t\t\tSystem.out.println(\"The file has been downloaded and is now also being shared!\");\n\t\t\t}\n\n\t\t\t// If the download type was 2, assemble the byteStream.toByteArray which should create the original file\n\t\t\t// Then save it to the user's directory under \"not-shared\" and inform the user of the status\n\t\t\telse{\n\t\t\t\tPath notSharedPath = Paths.get(\"users/\"+username+\"/not-shared/\" + filename);\n\t\t\t\tFiles.write(notSharedPath, byteStream.toByteArray());\n\t\t\t\tserver.clearNotSharedFiles(username);\n server.clearSharedFiles(username);\n\t\t\t\tserver.registerFiles(username);\n\t\t\t\tSystem.out.println(\"The file has been downloaded and is not being shared!\");\n\t\t\t}\n\t\t}\n\t\t// Otherwise, we hit some sort of error. Print to the user and the function will terminate\n\t\tcatch (Exception e) {\n\t\t\tSystem.out.println(\"Error! : \" + e.getMessage());\n\t\t}\n\t}", "public File get( String url, String suffix ) throws MojoExecutionException\n {\n if ( m_wagon == null )\n {\n m_log.error( \"must be connected first!\" );\n return null;\n }\n\n File file = null;\n try\n {\n file = File.createTempFile( String.valueOf( System.currentTimeMillis() ), suffix );\n }\n catch ( IOException e )\n {\n throw new MojoExecutionException( \"I/O problem\", e );\n }\n\n try\n {\n m_wagon.get( url, file );\n }\n catch ( TransferFailedException e )\n {\n file.delete(); // cleanup on failure\n throw new MojoExecutionException( \"Transfer failed\", e );\n }\n catch ( AuthorizationException e )\n {\n file.delete(); // cleanup on failure\n throw new MojoExecutionException( \"Authorization failed\", e );\n }\n catch ( ResourceDoesNotExistException e )\n {\n file.delete(); // return non-existent file\n }\n\n return file;\n }", "void downloadEvi(File file, int id) throws IOException, SQLException;", "entities.Torrent.DownloadResponse getDownloadResponse();", "@Test\n @Category(FastTest.class)\n public void handleDownloadsExceededCorrectly() throws Exception {\n stubFor(get(urlPathMatching(\"/download/0/.*\"))\n .willReturn(aResponse()\n .withStatus(500)\n .withHeader(\"Content-Type\", \"text/html\")\n .withBodyFile(\"download-limit-exceeded.html\")));\n\n // call service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOK));\n\n // verify that our logic attempted download twice\n verify(getRequestedFor(urlEqualTo(\n \"/download/0/?token=abcdef\")));\n }", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.getASINFile(\"1\", \"1\", \"1\", \"1\");\n fileUtil0.fetchThirdPartySearchFile(\"1\", \"WUxhir]B2oD]Dx&@F5=\", \"\", \"cacheLife\");\n boolean boolean0 = fileUtil0.isAgeGood((File) null);\n assertFalse(boolean0);\n \n fileUtil0.fetchSimilarItems(\"6>3}a\", \"+IH0H`oBX\");\n fileUtil0.deleteFile(\"\");\n fileUtil0.renameFile(\"1\", \"1\");\n fileUtil0.downloadThirdPartySearchFile(\"\", \"\", \"\", \"q~nQd=Y#z)~:!\");\n File file0 = fileUtil0.getBrowseNodeFile(\"@GQB)@MopBAw*\", (String) null, (String) null);\n assertNull(file0);\n \n fileUtil0.downloadBrowseNodeFile(\"1\", \"\", \"\", \"\");\n boolean boolean1 = fileUtil0.downloadOneASINFile(\"e-?P\", \"+IH0H`oBX\", \"q~nQd=Y#z)~:!\", (String) null, \"+IH0H`oBX\");\n assertTrue(boolean1 == boolean0);\n }", "boolean hasRetrieveFile();", "public Blob downloadFile(String inKey, File inDestFile);", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&.YBKYR[P|b=.YBKYR%5BP%7Cb&mode=.YBKYR[P|b&type=&page=\\\"90hR%xB!V_E&offer=\\\"90hR%xB!V_E&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"\\\"90hR%xB!V_E\");\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\".YBKYR[P|b\", \".YBKYR[P|b\", \".YBKYR[P|b\", \"\", \"\\\"90hR%xB!V_E\", \"\\\"90hR%xB!V_E\");\n assertNull(fileInputStream0);\n }", "public static File getDownloadingFile() {\n\t\treturn downloadingFile;\n\t}", "@Test\n\tpublic void canDownloadSeveralFilesWithoutErrors() throws Exception {\n\t\t// not using eclipse-fedorapackager for this test\n\t\tthis.testProject.dispose();\n\t\t// The eclipse package usually has 2 source files. That's why we\n\t\t// use the eclipse package for testing\n\t\tthis.testProject = new GitTestProject(\"eclipse\");\n\t\tthis.fpRoot = FedoraPackagerUtils.getProjectRoot(this.testProject\n\t\t\t\t.getProject());\n\t\tthis.packager = new FedoraPackager(fpRoot);\n\t\tDownloadSourceCommand downloadCmd = (DownloadSourceCommand) packager\n\t\t\t\t.getCommandInstance(DownloadSourceCommand.ID);\n\t\tChecksumValidListener md5sumListener = new ChecksumValidListener(fpRoot);\n\t\tdownloadCmd.addCommandListener(md5sumListener); // want md5sum checking\n\t\ttry {\n\t\t\tdownloadCmd.call(new NullProgressMonitor());\n\t\t} catch (SourcesUpToDateException e) {\n\t\t\tfail(\"sources for \" + testProject.getProject().getName() + \" should not be present\");\n\t\t} catch (CommandMisconfiguredException e) {\n\t\t\tfail(\"Cmd should be properly configured\");\n\t\t} catch (CommandListenerException e) {\n\t\t\tif (e.getCause() instanceof InvalidCheckSumException) {\n\t\t\t\tfail(\"Checksums should be OK\");\n\t\t\t}\n\t\t}\n\t\t// pass\n\t}", "@SuppressWarnings(\"deprecation\")\r\n @Override\r\n public AvailableStatus requestFileInformation(final DownloadLink link) throws IOException, PluginException {\r\n br = new Browser();\r\n // need to correct links that are added prior to fixing!\r\n correctDownloadLink(link);\r\n prepBrowser(br);\r\n br.setFollowRedirects(true);\r\n final URLConnectionAdapter con = br.openGetConnection(link.getDownloadURL());\r\n if (con.getResponseCode() == 503 || con.getResponseCode() == 404) {\r\n con.disconnect();\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n br.followConnection();\r\n if (br.containsHTML(\"<title>\\\\s*-\\\\s*(?:Yunfile|Dix3)[^<]*</title>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n // Access denied\r\n if (br.containsHTML(\"Access denied<|资源已被禁止访问</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n // Not found\r\n if (br.containsHTML(\"<span>(资源未找到|Not found)</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n /* Wrong link */\r\n if (br.containsHTML(\">Wrong</span>\")) {\r\n throw new PluginException(LinkStatus.ERROR_FILE_NOT_FOUND);\r\n }\r\n String filename = null, filesize = null;\r\n // if (br.getURL().matches(\"http://page\\\\d+\\\\.yunfile.com/fs/[a-z0-9]+/\")) ;\r\n filename = br.getRegex(\"Downloading:&nbsp;<a></a>&nbsp;([^<>]*) - [^<>]+<\").getMatch(0);\r\n if (filename == null) {\r\n filename = br.getRegex(\"<title>(.*?)\\\\s*-\\\\s*(?:Yunfile|Dix3)[^<]*</title>\").getMatch(0);\r\n }\r\n if (filename == null) {\r\n filename = br.getRegex(\"<h2 class=\\\"title\\\">文件下载\\\\&nbsp;\\\\&nbsp;([^<>\\\"]*?)</h2>\").getMatch(0);\r\n }\r\n filesize = br.getRegex(\"文件大小: <b>([^<>\\\"]*?)</b>\").getMatch(0);\r\n if (filesize == null) {\r\n filesize = br.getRegex(\"File Size: <b>([^<>\\\"]*?)</b>\").getMatch(0);\r\n }\r\n if (filesize == null) {\r\n filesize = br.getRegex(\"id=\\\"file_show_filename\\\">[^<>]+</span> \\\\- ([^<>\\\"]+) <\").getMatch(0);\r\n }\r\n if (filename == null) {\r\n throw new PluginException(LinkStatus.ERROR_PLUGIN_DEFECT);\r\n }\r\n link.setName(decode(\"111\", filename.trim()));\r\n link.setDownloadSize(SizeFormatter.getSize(filesize));\r\n return AvailableStatus.TRUE;\r\n }" ]
[ "0.7631578", "0.7198668", "0.7178355", "0.69097406", "0.68882835", "0.6858158", "0.6832996", "0.68183583", "0.6764936", "0.67361695", "0.66770977", "0.6653768", "0.66162986", "0.66144437", "0.6608967", "0.6608933", "0.6571968", "0.6546973", "0.6537861", "0.65254444", "0.651455", "0.64948833", "0.649201", "0.64767146", "0.64232635", "0.63962233", "0.6393437", "0.63623005", "0.6336376", "0.632605", "0.631771", "0.62869173", "0.6267759", "0.62218404", "0.62175095", "0.6216027", "0.62086475", "0.620464", "0.6199891", "0.6171509", "0.6146575", "0.61257106", "0.6125311", "0.6115542", "0.6112144", "0.6110012", "0.6081951", "0.6074756", "0.6050588", "0.6038422", "0.60199696", "0.60174966", "0.6014054", "0.60105956", "0.6008376", "0.60071445", "0.59986144", "0.5992769", "0.5990742", "0.5986035", "0.59801334", "0.59631926", "0.59526086", "0.59407896", "0.5937331", "0.59331536", "0.59278005", "0.591409", "0.5911614", "0.59000105", "0.5897832", "0.58830166", "0.58707905", "0.5852613", "0.58413225", "0.5828896", "0.581358", "0.58045113", "0.58022344", "0.579786", "0.5786012", "0.5783007", "0.57790065", "0.57754415", "0.57752573", "0.57714283", "0.57591105", "0.5751678", "0.57382023", "0.57366216", "0.5725035", "0.5723752", "0.57200545", "0.5719143", "0.570167", "0.56838673", "0.5675509", "0.56714195", "0.5668794", "0.56556916" ]
0.6717501
10
Test downloading of a file. Only testing logic in the controller, not the storage service. Since the controller really only calls the storage service, this is a bit of a pointless test right now, but included in case logic gets added.
@ParameterizedTest(name = "#{index} - [{0}]") @MethodSource("dataForTestUploadFile") public void testUploadFile(final String label, final XmlDocMetadata expected, final ResultMatcher status) throws Exception { Resource xmlDoc = new ClassPathResource(TEST_FILES_LOCATION + expected.getFilename()); MockMultipartFile fileToUpload = new MockMultipartFile("file", expected.getFilename(), "text/plain", Files.readString(xmlDoc.getFile().toPath()).getBytes()); if (status.equals(STATUS_OK)) { Mockito.when(service.store(Mockito.any(), Mockito.anyString())).thenReturn(expected); } else { Mockito.when(service.store(Mockito.any(), Mockito.anyString())).thenThrow(StorageException.class); } MvcResult result = mockMvc.perform(MockMvcRequestBuilders// .multipart(PATH_ADD)// .file(fileToUpload)// .param("note", expected.getNote())// .accept(MediaType.APPLICATION_JSON))// .andExpect(status).andReturn(); if (status.equals(STATUS_OK)) { String contentAsString = result.getResponse().getContentAsString(); assertNotNull(contentAsString); XmlDocMetadata actual = objectMapper.readValue(contentAsString, XmlDocMetadata.class); assertEquals(expected, actual, label); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@ParameterizedTest(name = \"#{index} - [{0}]\")\n\t@MethodSource(\"dataForTestDownloadFile\")\n\tpublic void testDownloadFile(final String label, final String fileToRequest, final String fileToLoad,\n\t\t\tfinal ResultMatcher status) throws Exception {\n\n\t\tResource xmlDoc = new ClassPathResource(TEST_FILES_LOCATION + fileToLoad);\n\n\t\tif (status.equals(STATUS_OK)) {\n\t\t\tMockito.when(service.loadAsResource(Mockito.anyString())).thenReturn(xmlDoc);\n\t\t} else {\n\t\t\tMockito.when(service.loadAsResource(Mockito.anyString())).thenThrow(StorageFileNotFoundException.class);\n\t\t}\n\n\t\tMvcResult result = mockMvc.perform(MockMvcRequestBuilders.get(PATH_GET + fileToRequest)//\n\t\t\t\t.contentType(MediaType.APPLICATION_JSON)//\n\t\t\t\t.accept(MediaType.APPLICATION_JSON))//\n\t\t\t\t.andExpect(status).andReturn();\n\n\t\tif (status.equals(STATUS_OK)) {\n\t\t\tString resultXml = result.getResponse().getContentAsString();\n\t\t\tassertNotNull(resultXml);\n\t\t\tassertEquals(Files.readString(xmlDoc.getFile().toPath()), resultXml, label);\n\t\t}\n\t}", "@Test\n public void downloadTest() throws ApiException {\n Integer devid = null;\n String path = null;\n File response = api.download(devid, path);\n\n // TODO: test validations\n }", "@Test\n public void testFileDownload() throws FileNotFoundException {\n ExcelFile testFile = new ExcelFile(\"0\", \"/Users/zhongyuanlu/IdeaProjects/reporting_system/temp.xlsx\");\n Mockito.when(excelService.getExcelBodyById(anyString())).thenReturn(new FileInputStream(\"temp.xlsx\"));\n Mockito.when(excelService.getExcelFileById(anyString())).thenReturn(testFile);\n given().accept(\"application/json\").get(\"/excel/0/content\").peek().\n then().assertThat()\n .statusCode(200);\n }", "@Test\n @Category(FastTest.class)\n public void canDownloadOnRedirect() throws Exception {\n final String redirectPathBook = \"/download/redirect/thebook\";\n\n stubFor(get(urlPathEqualTo(redirectPathBook))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(\"0/binary\")));\n\n\n stubFor(get(urlPathMatching(\"/download/0/.*\"))\n .willReturn(aResponse()\n .withStatus(302)\n .withHeader(\"Location\", getExternalHostMock() + redirectPathBook)));\n\n // call service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOK));\n\n // verify that our logic downloaded binary\n verify(getRequestedFor(urlEqualTo(\"/download/0/?token=abcdef\")));\n verify(getRequestedFor(urlEqualTo(redirectPathBook)));\n }", "@Test(timeout = 4000)\n public void test16() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.downloadCart(\"cacheife\");\n assertNull(file0);\n }", "@Test\n public void verifyDownloadFile() {\n // Read the input file\n\n File inputFile = new File(System.getProperty(\"user.dir\")+File.separator+\"geckodriver-v0.26.0-linux32.tar.gz\");\n\n // Length of input file\n int expectedSize = (int)inputFile.length();\n\n System.out.println(\"The size of the expected file is: \"+expectedSize+\" bytes\");\n\n // https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux32.tar.gz\n // Read the downloaded File\n byte[] actualValue = given()\n .when()\n .get(\"https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux32.tar.gz\")\n .then()\n .extract()\n .asByteArray();\n System.out.println(\"The size of the actual file is: \"+actualValue.length+\" bytes\");\n\n Assert.assertEquals(expectedSize, actualValue.length);\n }", "@Test(timeout = 4000)\n public void test13() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.downloadGenericSearchFile((String) null, (String) null, (String) null, \"\", \"\", \"v96k('jouzjfc#,~2t\");\n assertNull(file0);\n }", "@Test(enabled = false)\n public void testDownload() throws Exception {\n\n AttFtpClient attFtpClient = AttFtpClient.getFtpClient();\n\n File retrieveLastModifiedFileFromFTP = attFtpClient.retrieveLastModifiedFileFromFTP();\n attFtpClient.deleteFilesFromFTPserver();\n }", "@Test\n\tpublic void incompleteDownloadTest() {\n\t\tSystem.out.println(\"TestSFTPDownloader \"+ \"incompleteDownloadTest\");\n\n\t\tDMCache.updateCacheMap(\"sftp.buffer.size\", \"4096\");\n\t\tSFTPDownloader sftpDownloader = new SFTPDownloader();\n\t\tString downloadUrl = \"sftp://demo-user:[email protected]:2222/download/manual_en.pdf\";\n\t\tString location = TEST_SAVE_PATH + \"incompleteFile.pdf\";\n\n\t\ttry {\n\t\t\tsftpDownloader.initiateDownload(downloadUrl, location, 10, 10, 22);\n\t\t} catch (IOException e) {\n\t\t\tValidationServiceImpl validationServiceImpl = new ValidationServiceImpl();\n\t\t\tAssert.assertFalse(validationServiceImpl.validateUrl(location));\n\t\t}\n\t}", "@Test(timeout = 4000)\n public void test11() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"/___.XML\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"\");\n fileUtil0.fetchASINFile(\"\", \"\", \"\", \"\");\n fileUtil0.deleteFile(\"\");\n File file0 = fileUtil0.downloadBlendedSearchFile(\"\", \"\");\n assertNull(file0);\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.fetchASINFile(\"a_\", \"z5<k#5LC43q@c8Y\", \"\", \"\");\n File file0 = fileUtil0.downloadKeywordSearchFile(\"\", \"a_\", \"all\", \"all\");\n assertNull(file0);\n }", "@Test(timeout = 4000)\n public void test27() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n File file0 = fileUtil0.downloadKeywordSearchFile(\"cacheLife\", \"cacheLife\", \"cacheLife\", \"cacheLife\");\n assertNull(file0);\n }", "@GetMapping(\"/download/{id}\")\r\n public ResponseEntity<Resource> downloadFile(@PathVariable(value = \"id\") int fileId) {\n\r\n Files file = filesRepository.findById(fileId)\r\n .orElseThrow(() -> new ResourceNotFoundException(\"File\", \"id\", fileId));\r\n\r\n\r\n Resource resource = fileStorageService.loadFileAsResource(file.getFileName());\r\n\r\n\r\n String contentType = \"application/octet-stream\";\r\n\r\n\r\n return ResponseEntity.ok()\r\n .contentType(MediaType.parseMediaType(contentType))\r\n .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment; filename=\\\"\" + resource.getFilename() + \"\\\"\")\r\n .body(resource);\r\n }", "@PreAuthorize(\"hasAuthority('file:download')\")\n @GetMapping(\"/files/{filename:.+}\")\n @ResponseBody\n public ResponseEntity<Resource> serveFile(@PathVariable String filename) {\n Resource file = storageService.loadAsResource(filename);\n return ResponseEntity.ok().header(HttpHeaders.CONTENT_DISPOSITION,\n \"attachment; filename=\\\"\" + file.getFilename() + \"\\\"\").body(file);\n }", "public void download() {\n }", "void downloadingFile(String path);", "@Test\n\tpublic void downloadSuccessfulTest() throws IOException {\n\t\tSystem.out.println(\"TestSFTPDownloader \"+ \"downloadSuccessfulTest\");\n\n\t\tDMCache.updateCacheMap(\"sftp.buffer.size\", \"4096\");\n\t\tSFTPDownloader sftpDownloader = new SFTPDownloader();\n\t\tString downloadUrl = \"sftp://demo-user:[email protected]:2222/download/manual_en.pdf\";\n\t\tString location = TEST_SAVE_PATH + \"manual_en.pdf\";\n\t\tboolean downloadSuccessful = sftpDownloader.initiateDownload(downloadUrl, location, 30000, 30000, 22);\n\t\tAssert.assertTrue(downloadSuccessful);\n\t}", "@GET\n @Path(\"/download/{filename}\")\n public Response downloadFile(\n \t\t@PathParam(\"filename\") final String filename){\n\t\tFtpsFileList.download(filename);\n return Response.status(200).entity(filename + \" download to D://test/ success!\").build();\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.getASINFile(\"cacheDir\", \"cacheDir\", \"cacheDir\", (String) null);\n fileUtil0.fetchKeywordSearchFile(\"D7J|oyQC\", \"D7J|oyQC\", \"D7J|oyQC\", \"D7J|oyQC\");\n fileUtil0.downloadBlendedSearchFile(\"+G[/UQFc\", \"+G[/UQFc\");\n File file0 = fileUtil0.downloadThirdPartySearchFile(\"D7J|oyQC\", \"Log file isn't there Setting default properties\", \"7swCsV7y\", \"ts_\");\n assertNull(file0);\n }", "@GetMapping(\"/download/{supplierId}\")\n public ResponseEntity<Resource> downloadFile(@PathVariable Integer supplierId) {\n\n StoredFile dbFile = storedFileService.getFile(supplierRepository.getOne(supplierId).getPricelist().getId());\n\n return ResponseEntity.ok()\n .contentType(MediaType.parseMediaType(dbFile.getContentType()))\n .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment; filename=\\\"\" + dbFile.getFileName() + \"\\\"\")\n .body(new ByteArrayResource(dbFile.getData()));\n }", "public Blob downloadFile(String inKey, String inFileName);", "@Test(timeout = 4000)\n public void test02() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchThirdPartySearchFile((String) null, \"]=J;d%[ad*</M&sOjF\", \"NA-c}Y;f\", \"dev-t=\");\n assertNull(fileInputStream0);\n }", "@Override\n public boolean downloadFile(final String url, String fileID,\n final String path) {\n DownloadFileRequest request = RequestFactory.makeDownloadFileRequest(\n fileID, \".wig\");\n\n System.out.println(\"Test: \" + fileID);\n conn.sendRequest(request, userID, \"text/plain\");\n Gson gson = new Gson();\n DownloadFileResponse response = gson.fromJson(conn.getResponseBody(),\n DownloadFileResponse.class);\n System.out.println(conn.getResponseBody());\n final DownloadHandler handler = new DownloadHandler(\"pvt\", \"pvt\");\n new Thread(new Runnable() {\n @Override\n public void run() {\n handler.download(url, path);\n }\n }).start();\n\n System.out.println(\"Test\");\n return true;\n }", "@Test\n public void getPostFile() throws Exception {\n String url = String.format(\"/download/%s/result.json\", AppTests.token);\n MvcResult result = mockMvcGetResult(url, MediaType.APPLICATION_JSON_VALUE + \";charset=UTF-8\", null);\n String response = result.getResponse().getContentAsString();\n\n MockMultipartFile importFile = new MockMultipartFile(\"file\", \"result.json\", \"multipart/form-data\", response.getBytes());\n\n MockHttpServletRequestBuilder builder =\n MockMvcRequestBuilders.multipart(\"/import/form\")\n .file(importFile);\n\n this.getMockMvc().perform(builder)\n .andExpect(status().isOk())\n .andReturn();\n }", "@Test\n @Category(FastTest.class)\n public void handleDownloadsExceededCorrectly() throws Exception {\n stubFor(get(urlPathMatching(\"/download/0/.*\"))\n .willReturn(aResponse()\n .withStatus(500)\n .withHeader(\"Content-Type\", \"text/html\")\n .withBodyFile(\"download-limit-exceeded.html\")));\n\n // call service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOK));\n\n // verify that our logic attempted download twice\n verify(getRequestedFor(urlEqualTo(\n \"/download/0/?token=abcdef\")));\n }", "public void downloadFile(final Context context, final String fileKey, String pageFileKey, String fileType, final DownloadListener downloadListener) {\n\n final String pathName = Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey);\n final String pagePathName = Config.getPathName(context) + PAGES_FILE + getFIleNameFromFileKEy(pageFileKey);\n\n final long totalBytes = 0;\n TransferObserver downloadObserver = transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(pathName));\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n\n downloadListener.onDownloadFinish(id, state.name(), pathName, pagePathName);\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent,long bytesTotal) {\n\n\n if (bytesTotal == 0){\n\n bitesCorrent = bytesCurrent;\n\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n\n URL url = null;\n try {\n url = new URL(S3_JABRUTOUCH + fileKey);\n } catch (MalformedURLException e) {\n e.printStackTrace();\n }\n URLConnection conection = null;\n try {\n conection = url.openConnection();\n } catch (IOException e) {\n e.printStackTrace();\n }\n // getting file length\n int lengthOfFile = conection.getContentLength();\n\n float percentDonef = ((float) bitesCorrent / (float) lengthOfFile) * 100;\n final int percentDone = (int) percentDonef;\n\n new Handler(Looper.getMainLooper()).post(new Runnable() {\n @Override\n public void run() {\n downloadListener.onProgressChanged(percentDone);\n }\n });\n }\n });\n thread.start();\n\n }else {\n\n\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n downloadListener.onProgressChanged(percentDone);\n }\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n\n Toast.makeText(context, \"Error downloading file \" + fileKey, Toast.LENGTH_LONG).show();\n downloadListener.onDownloadError();\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&BlendedSearch=ShoppingCart%3Dmodify%26f%3Dxml%26dev-t%3D&type=RGC&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"\");\n FileInputStream fileInputStream0 = fileUtil0.fetchBlendedSearchFile(\"ShoppingCart=modify&f=xml&dev-t=\", \"RGC\");\n assertNull(fileInputStream0);\n }", "@GET(\"/resource/example.zip\")\n Call<ResponseBody> downloadFileWithFixedUrl();", "protected abstract File download(Exception previousException) throws Exception;", "public Blob downloadFile(String inKey, File inDestFile);", "public void downloadCompleted(File f);", "@Test(timeout = 4000)\n public void test24() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&SellerSearch=dev-t=&type=NA-c}Y;f&page=b_&offerstatus=NA-c}Y;f&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"\\\"90hR%xB!V_E\");\n FileInputStream fileInputStream0 = fileUtil0.fetchThirdPartySearchFile(\"dev-t=\", \"NA-c}Y;f\", \"b_\", \"NA-c}Y;f\");\n assertNull(fileInputStream0);\n }", "@Test(expected = GenieServerException.class)\n public void testGetFileMethodFailureToFetch() throws GenieException {\n Mockito.when(this.s3Client.getObject(Mockito.any(GetObjectRequest.class), Mockito.any(File.class))).thenThrow(new AmazonS3Exception(\"something\"));\n final ArgumentCaptor<GetObjectRequest> argument = ArgumentCaptor.forClass(GetObjectRequest.class);\n try {\n this.s3FileTransfer.getFile(S3FileTransferImplUnitTests.S3_PATH, S3FileTransferImplUnitTests.LOCAL_PATH);\n } finally {\n Mockito.verify(this.s3Client).getObject(argument.capture(), Mockito.any());\n Assert.assertEquals(S3FileTransferImplUnitTests.S3_BUCKET, argument.getValue().getBucketName());\n Assert.assertEquals(S3FileTransferImplUnitTests.S3_KEY, argument.getValue().getKey());\n Mockito.verify(this.downloadTimer, Mockito.times(1)).record(Mockito.anyLong(), Mockito.eq(TimeUnit.NANOSECONDS));\n Mockito.verify(this.registry, Mockito.times(1)).timer(Mockito.eq(DOWNLOAD_TIMER_NAME), this.tagsCaptor.capture());\n Assert.assertEquals(MetricsUtils.newFailureTagsSetForException(new GenieServerException(\"blah\")), this.tagsCaptor.getValue());\n }\n }", "@Test\r\n\tpublic static void downloadFile() throws InterruptedException{\r\n\t/*\tWebElement elm = driver.findElement(By.linkText(\"img.jpg\"));\r\n\t\telm.click();\r\n\t\tThread.sleep(2000);*/\r\n//\t\tChromeBrowser cg = new ChromeBrowser();\r\n\t\t//cg.folder.mkdir();\r\n\t\t//folder.mkdir();\r\n\t\t//String downloadFilePath = ResourceUtil.getResourcePath(\"/downloads\");\r\n\t\t/*File folder = new File(\"./downloads\");\r\n\t\tfolder.mkdir();\r\n\t\tChromeOptions options = new ChromeOptions();\r\n\t\tMap<String, Object> prefs = new HashMap<String,Object>();\r\n\t\tprefs.put(\"download.default_directory\", downloadFilePath);\r\n\t\toptions.setExperimentalOption(\"prefs\", prefs);\r\n\t\t\r\n\t\tDesiredCapabilities cap = DesiredCapabilities.chrome();\r\n\t\tcap.setCapability(ChromeOptions.CAPABILITY, options);\r\n\t\tWebDriver driver = new ChromeDriver(cap);*/\r\n\t\t\r\n\t\t/*File listOfFiles[]=cg.folder.listFiles();\r\n\t\tfor(File file:listOfFiles){\r\n\t\t\tSystem.out.println(file.length());\r\n\t\t}*/\r\n\t}", "void fileDownloaded(String path);", "@Test\n public void contextLoads() {\n StringBuffer url = new StringBuffer(\"http://172.17.14.68:8081/nexus/content/groups/public/io/reactivex/rxjava2/rxandroid/2.0.1/rxandroid-2.0.1-sources.jar\");\n int position = url.indexOf(BASE_URL) + BASE_URL.length();\n url.delete(0, position);\n\n InputStream in = null;\n OutputStream out = null;\n int downloadRet = 0;\n try {\n String filePath = BASE_PATH + url.toString();\n File repoFile = new File(filePath);\n if (!repoFile.exists()) {\n downloadRet = urlComponent.downloadFromURL(url.toString(), filePath);\n }\n if (downloadRet == SC_OK) {\n in = new FileInputStream(repoFile);\n int len = 0;\n byte[] buffer = new byte[1024];\n// out = response.getOutputStream();\n while ((len = in.read(buffer)) > 0) {\n out.write(buffer, 0, len);\n }\n } else {\n // download failed\n logComponent.e(\"download failed:\" + url);\n }\n } catch (Exception e) {\n logComponent.e(\"index :\" + url + \" failed:\" + e.getMessage());\n } finally {\n if (downloadRet != SC_OK) {\n try {\n// response.sendError(downloadRet, \"download file error!\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n StreamUtils.closeOutputStream(out);\n StreamUtils.closeInputStream(in);\n }\n }", "private void downloadFile(final File mFile, final java.io.File targetFolder) {\n Thread t = new Thread(new Runnable() {\n @Override\n public void run() {\n if (mFile.getDownloadUrl() != null && mFile.getDownloadUrl().length() > 0) {\n try {\n com.google.api.client.http.HttpResponse resp =\n mService.getRequestFactory()\n .buildGetRequest(new GenericUrl(mFile.getDownloadUrl()))\n .execute();\n\n // gets the file's contents\n InputStream inputStream = resp.getContent();\n\n // stores the contents to the device's external storage\n try {\n final java.io.File file = new java.io.File(targetFolder, mFile.getTitle());\n System.out.println(\"Downloading: \" + mFile.getTitle() + \" to \" + file.getPath());\n //numDownloading++;\n storeFile(file, inputStream);\n } finally {\n inputStream.close();\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n });\n t.start();\n try {\n Thread.sleep(750);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "private int DownloadFile(URL url) {\n try {\n //---simulate taking some time to download a file---\n thread.sleep(5000);\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n return 100;\n }", "@Override\r\n\tpublic boolean downloadFile() throws FileSystemUtilException {\r\n\t\tlogger.debug(\"Begin: \" + getClass().getName() + \":download()\");\r\n\t\ttry {\r\n\t\t\tconnect();\r\n\t\t\tgetFileData(0, \"\");\r\n\t\t\tdisconnect();\r\n\t\t\tif (stop) {\r\n\t\t\t\tthrow new FileSystemUtilException(\"999\");\r\n\t\t\t}\r\n\t\t\tFileSystemUtilsPlugin zu = new FileSystemUtilPluginFactory().getFileUtils(FileSystemTypeConstants.ZIP);\r\n\t\t\tif (zu.isZip(localFilePath)) {\r\n\r\n\t\t\t\t// unzip the localfilepath (a common method at import util level\r\n\t\t\t\t// can be used)\r\n\t\t\t\t// rename the extracted file to localfilepath+\".txt\r\n\t\t\t\t// delete the localfilepath\r\n\t\t\t}\r\n\t\t\tzu = null;\r\n\t\t\tlogger.debug(\"End: \" + getClass().getName() + \":download()\");\r\n\t\t\treturn true;\r\n\t\t} catch (FileSystemUtilException e) {\r\n\t\t\tdisconnect();\r\n\t\t\tlogger.info(new Date() + \":: Unable to download with parameters \" + \", username= \" + username\r\n\t\t\t\t\t+ \" , password = \" + password + \" , remotefilePath = \" + remoteFilePath + \", \" + \"localFilePath = \"\r\n\t\t\t\t\t+ localFilePath + \" , host= \" + hostname + \" and port =\" + port);\r\n\t\t\tthrow e;\r\n\t\t}\r\n\t}", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n boolean boolean0 = fileUtil0.downloadBrowseNodeFile((String) null, \"8c\", (String) null, (String) null);\n assertFalse(boolean0);\n }", "@GetMapping(\"/downloadFile/{fileName:.+}\")\n public ResponseEntity<Resource> downloadFile(@PathVariable String fileName, HttpServletRequest request) {\n Resource resource = storageService.loadFileAsResource(fileName);\n\n // Try to determine file's content type\n String contentType = null;\n try {\n contentType = request.getServletContext().getMimeType(resource.getFile().getAbsolutePath());\n } catch (IOException ex) {\n //\n }\n\n // Fallback to the default content type if type could not be determined\n if (contentType == null) {\n contentType = \"application/octet-stream\";\n }\n\n return ResponseEntity.ok().contentType(MediaType.parseMediaType(contentType))\n .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment; filename=\\\"\" + resource.getFilename() + \"\\\"\")\n .body(resource);\n }", "@Test\n @Category(FastTest.class)\n public void canImportValidBooks() throws Exception {\n for (int i = 0; i < 6; i++) {\n stubFor(get(urlPathMatching(\"/download/\" + i + \"/.*\"))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(i + \"/binary\")));\n }\n\n // post our JSON to the REST service under test\n migrator.migrate(getClass().getResource(TESTFILE_VALID_BOOKS));\n\n // verify that our logic downloads books\n\n verify(getRequestedFor(urlEqualTo(\n \"/download/0/?token=abcdef\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/1/?token=bcdefa\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/2/?token=cdefab\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/3/?token=defabc\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/4/?token=efabcd\")));\n verify(getRequestedFor(urlEqualTo(\n \"/download/5/?token=fabcde\")));\n }", "@Test(timeout = 4000)\n public void test07() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n boolean boolean0 = fileUtil0.downloadSimilaritesFile(\"\", \"\", \"\");\n assertFalse(boolean0);\n }", "@Test(priority = 1, dependsOnMethods = { \"testGetFileWithMandatoryParameters\" },\n description = \"podio {getFile} integration test with negative case.\")\n public void testGetFileWithNegativeCase() throws IOException, JSONException {\n \n esbRequestHeadersMap.put(\"Action\", \"urn:getFile\");\n \n RestResponse<JSONObject> esbRestResponse =\n sendJsonRestRequest(proxyUrl, \"POST\", esbRequestHeadersMap, \"esb_getFile_negative.json\");\n \n String apiEndPoint = apiUrl + \"/file/Invalid\";\n \n RestResponse<JSONObject> apiRestResponse = sendJsonRestRequest(apiEndPoint, \"GET\", apiRequestHeadersMap);\n \n Assert.assertEquals(esbRestResponse.getBody().getString(\"error\"), apiRestResponse.getBody().getString(\"error\"));\n Assert.assertEquals(esbRestResponse.getBody().getString(\"error_description\"), apiRestResponse.getBody()\n .getString(\"error_description\"));\n }", "public void downloadFile(String fileURL, String saveDir)\n throws IOException {\n URL url = new URL(fileURL);\n HttpURLConnection httpConn = (HttpURLConnection) url.openConnection();\n int responseCode = httpConn.getResponseCode();\n\n // always check HTTP response code first\n if (responseCode == HttpURLConnection.HTTP_OK) {\n String fileName = \"\";\n String disposition = httpConn.getHeaderField(\"Content-Disposition\");\n String contentType = httpConn.getContentType();\n int contentLength = httpConn.getContentLength();\n\n if (disposition != null) {\n // extracts file name from header field\n int index = disposition.indexOf(\"filename=\");\n if (index > 0) {\n fileName = disposition.substring(index + 10,\n disposition.length() - 1);\n }\n } else {\n // extracts file name from URL\n fileName = fileURL.substring(fileURL.lastIndexOf(\"/\") + 1,\n fileURL.length());\n }\n\n System.out.println(\"Content-Type = \" + contentType);\n System.out.println(\"Content-Disposition = \" + disposition);\n System.out.println(\"Content-Length = \" + contentLength);\n System.out.println(\"fileName = \" + fileName);\n\n // opens input stream from the HTTP connection\n InputStream inputStream = httpConn.getInputStream();\n String saveFilePath = saveDir + File.separator + fileName;\n\n // opens an output stream to save into file\n FileOutputStream outputStream = new FileOutputStream(saveFilePath);\n\n\n int bytesRead = -1;\n byte[] buffer = new byte[BUFFER_SIZE];\n int progress = 0;\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, bytesRead);\n progress += bytesRead;\n setChanged();\n notifyObservers((int) ((progress * 100) / contentLength));\n }\n\n outputStream.close();\n inputStream.close();\n\n System.out.println(\"File downloaded\");\n } else {\n System.out.println(\"No file to download. Server replied HTTP code: \" + responseCode);\n }\n httpConn.disconnect();\n }", "@Test\n public void file() throws UnsupportedEncodingException {\n String fileName = createFile(FILE_BODY, \"/file/create/in\");\n\n // Read the file\n RestAssured\n .get(\"/file/get/in/\" + Paths.get(fileName).getFileName())\n .then()\n .statusCode(200)\n .body(equalTo(FILE_BODY));\n }", "private ResponseEntity<Resource> downloadFile(final String fileName) {\n Resource resource = storageMutator.loadFileAsResource(fileName); // load the specified file as a resource\n String contentType = \"application/octet-stream\";\n\n // create a response with the content type, header and body with the file data\n return ResponseEntity.ok()\n .contentType(MediaType.parseMediaType(contentType))\n .header(HttpHeaders.CONTENT_DISPOSITION,\n \"attachment; filename=\\\"\" + resource.getFilename() + \"\\\"\")\n .body(resource);\n }", "@Test(timeout = 4000)\n public void test10() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n ArrayList<Object> arrayList0 = new ArrayList<Object>();\n boolean boolean0 = fileUtil0.downloadAccessoriesFile(\"@_>?8NBAb?,iUv\", arrayList0, \"@_>?8NBAb?,iUv\");\n assertFalse(boolean0);\n }", "@Override\r\n\tpublic void download() {\n\t\t\r\n\t}", "public void onDownloadSuccess(String fileInfo);", "@GetMapping(\"/files/{filename:.+}\")\n @ResponseBody\n public ResponseEntity<Resource> getFile(@PathVariable String filename) {\n Resource file = storageService.load(filename);\n return ResponseEntity.ok()\n .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment; filename=\\\"\" + file.getFilename() + \"\\\"\").body(file);\n }", "@Test(timeout = 4000)\n public void test01() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.downloadBrowseNodeFile(\">RY@\\\"d8cDm4\", \"gIeuBfO{y#\", \"\", \">RY@\\\"d8cDm4\");\n fileUtil0.fetchThirdPartySearchFile(\"net.kencochrane.a4j.file.FileUtil\", \"g!n_C$F8\\\"D4 e)e\", \"b_\", \"net.kencochrane.a4j.file.FileUtil\");\n ArrayList<Integer> arrayList0 = new ArrayList<Integer>();\n Integer integer0 = new Integer((-977));\n arrayList0.add(integer0);\n fileUtil0.cacheDir = \"\";\n fileUtil0.fetchAccessories(\"\", arrayList0);\n fileUtil0.getBrowseNodeFile(\"\", \"\", \"\");\n fileUtil0.downloadCart(\"4[EG]r,0beUTj1 \");\n FileInputStream fileInputStream0 = fileUtil0.fetchBlendedSearchFile(\"4[EG]r,0beUTj1 \", \"\");\n assertNull(fileInputStream0);\n }", "@Override\n @RequestMapping(\"download.feep\")\n public void download(HttpServletRequest request, HttpServletResponse response) throws FeepControllerException {\n\n }", "public void downloadFilePagesWithoutListener(String fileKey, String fileType, Context context) {\n\n\n TransferObserver downloadObserver =\n transferUtility.download(\n Config.BUCKET_NAME,\n fileKey,\n new File(Config.getPathName(context) + fileType + getFIleNameFromFileKEy(fileKey)));\n\n\n\n // Attach a listener to the observer to get state update and progress notifications\n downloadObserver.setTransferListener(new TransferListener() {\n\n @Override\n public void onStateChanged(int id, TransferState state) {\n if (TransferState.COMPLETED == state) {\n // Handle a completed upload.\n\n }\n }\n\n @Override\n public void onProgressChanged(int id, long bytesCurrent, long bytesTotal) {\n float percentDonef = ((float) bytesCurrent / (float) bytesTotal) * 100;\n int percentDone = (int) percentDonef;\n\n\n }\n\n @Override\n public void onError(int id, Exception ex) {\n // Handle errors\n\n\n }\n\n });\n\n // If you prefer to poll for the data, instead of attaching a\n // listener, check for the state and progress in the observer.\n if (TransferState.COMPLETED == downloadObserver.getState()) {\n // Handle a completed upload.\n\n\n }\n\n\n }", "@Test(timeout = 4000)\n public void test00() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\"CV-~)\\\"Y\", \"-U#7E}O`T!okId wU\", \"zHFHC!.<lL5O#\", \"'>K(/]ff]lA`\", \"-U#7E}O`T!okId wU\", \"\");\n assertNull(fileInputStream0);\n }", "@Test\n\tpublic void testDelete() throws Exception {\n\t\tString testFileName = \"testDelete.pdf\";\n\t\tString absPath = scratchFileUtils.createAndReturnAbsoluteScratchPath(IRODS_TEST_SUBDIR_PATH);\n\t\tString localFileName = FileGenerator.generateFileOfFixedLengthGivenName(absPath, testFileName, 2);\n\n\t\tString targetIrodsFile = testingPropertiesHelper.buildIRODSCollectionAbsolutePathFromTestProperties(\n\t\t\t\ttestingProperties, IRODS_TEST_SUBDIR_PATH + '/' + testFileName);\n\t\tFile localFile = new File(localFileName);\n\n\t\t// now put the file\n\n\t\tIRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties);\n\t\tDataTransferOperations dto = irodsFileSystem.getIRODSAccessObjectFactory()\n\t\t\t\t.getDataTransferOperations(irodsAccount);\n\t\tIRODSFile destFile = irodsFileSystem.getIRODSFileFactory(irodsAccount).instanceIRODSFile(targetIrodsFile);\n\n\t\tdto.putOperation(localFile, destFile, null, null);\n\n\t\tIrodsSecurityManager manager = Mockito.mock(IrodsSecurityManager.class);\n\n\t\tIrodsFileSystemResourceFactory factory = new IrodsFileSystemResourceFactory(manager);\n\t\tLockManager lockManager = Mockito.mock(LockManager.class);\n\t\tfactory.setLockManager(lockManager);\n\n\t\tWebDavConfig config = new WebDavConfig();\n\t\tfactory.setWebDavConfig(config);\n\n\t\tIrodsFileContentService service = Mockito.mock(IrodsFileContentService.class);\n\n\t\tIrodsFileResource resource = new IrodsFileResource(\"host\", factory, destFile, service);\n\n\t\tresource.delete();\n\t\tAssert.assertFalse(\"file not deleted\", destFile.exists());\n\n\t}", "@Streaming\n @GET\n Call<ResponseBody> downloadFileWithDynamicUrlSync(@Url String fileUrl);", "@Test(groups = {\"integration\"})\n public void testDownloadDocument() throws Exception {\n\n //fetch the inbox\n Inbox inbox = ringoRestClientImpl.getInbox();\n\n //get all the messages\n Messages messages = inbox.getMessages();\n //mark all the messages as read\n File directory = new File(System.getProperty(\"java.io.tmpdir\"));\n boolean found = false;\n int i = 0;\n for (Message message : messages) {\n i++;\n //saves the file to the directory provided\n File downloadedFile = message.saveToDirectory(directory);\n\n log.info(\"downloaded file here \" + downloadedFile);\n assertTrue(downloadedFile.exists());\n\n //check that the file contains \"<test />\"\n BufferedReader utf8 = null;\n\n try {\n utf8 = new BufferedReader(\n new InputStreamReader(\n new FileInputStream(downloadedFile), RingoConstants.DEFAULT_CHARACTER_SET));\n\n final String line = utf8.readLine();\n if (line.equals(\"<test>\\u00E5</test>\")) {\n found = true;\n break;\n }\n }\n finally {\n if(utf8 != null)\n utf8.close();\n }\n }\n \n assertTrue(found, String.format(\"Did not download document number of messages was '%s'\", i));\n }", "@Test\n\tpublic void testGetPrincipalUrl() throws Exception {\n\t\tString testFileName = \"testGetPrincipalUrl.pdf\";\n\t\tString absPath = scratchFileUtils.createAndReturnAbsoluteScratchPath(IRODS_TEST_SUBDIR_PATH);\n\t\tString localFileName = FileGenerator.generateFileOfFixedLengthGivenName(absPath, testFileName, 2);\n\n\t\tString targetIrodsFile = testingPropertiesHelper.buildIRODSCollectionAbsolutePathFromTestProperties(\n\t\t\t\ttestingProperties, IRODS_TEST_SUBDIR_PATH + '/' + testFileName);\n\t\tFile localFile = new File(localFileName);\n\n\t\t// now put the file\n\n\t\tIRODSAccount irodsAccount = testingPropertiesHelper.buildIRODSAccountFromTestProperties(testingProperties);\n\t\tDataTransferOperations dto = irodsFileSystem.getIRODSAccessObjectFactory()\n\t\t\t\t.getDataTransferOperations(irodsAccount);\n\t\tIRODSFile destFile = irodsFileSystem.getIRODSFileFactory(irodsAccount).instanceIRODSFile(targetIrodsFile);\n\n\t\tdto.putOperation(localFile, destFile, null, null);\n\n\t\tIrodsSecurityManager manager = new IrodsSecurityManager();\n\t\tmanager.setIrodsAccessObjectFactory(irodsFileSystem.getIRODSAccessObjectFactory());\n\t\tWebDavConfig config = new WebDavConfig();\n\t\tconfig.setAuthScheme(\"STANDARD\");\n\t\tconfig.setHost(irodsAccount.getHost());\n\t\tconfig.setPort(irodsAccount.getPort());\n\t\tconfig.setZone(irodsAccount.getZone());\n\t\tconfig.setDefaultStartingLocationEnum(DefaultStartingLocationEnum.USER_HOME);\n\t\tmanager.setWebDavConfig(config);\n\n\t\tIrodsAuthService authService = new IrodsAuthService();\n\t\tauthService.setIrodsAccessObjectFactory(irodsFileSystem.getIRODSAccessObjectFactory());\n\t\tauthService.setWebDavConfig(config);\n\t\tmanager.setIrodsAuthService(authService);\n\n\t\tIrodsFileSystemResourceFactory factory = new IrodsFileSystemResourceFactory(manager);\n\t\tfactory.setWebDavConfig(config);\n\n\t\tLockManager lockManager = Mockito.mock(LockManager.class);\n\t\tfactory.setLockManager(lockManager);\n\t\tIrodsFileContentService service = new IrodsFileContentService();\n\t\tservice.setIrodsAccessObjectFactory(irodsFileSystem.getIRODSAccessObjectFactory());\n\n\t\tauthService.authenticate(irodsAccount.getUserName(), irodsAccount.getPassword());\n\n\t\tIrodsFileResource resource = new IrodsFileResource(\"host\", factory, destFile, service);\n\n\t\tString url = resource.getPrincipalURL();\n\t\tAssert.assertNotNull(\"no url returned\", url);\n\t\tAssert.assertFalse(\"no url\", url.isEmpty());\n\n\t}", "@GetMapping(\"/downloadFile/{fileId}\")\n\tpublic ResponseEntity<ByteArrayResource> downloadFile(@PathVariable Integer fileId) {\n\t\tCustomer doc = customerService.getFile(fileId).get();\n\t\treturn ResponseEntity.ok().contentType(MediaType.parseMediaType(doc.getFileType()))\n\t\t\t\t.header(HttpHeaders.CONTENT_DISPOSITION, \"attachment:filename=\\\"\" + doc.getFileName() + \"\\\"\")\n\t\t\t\t.body(new ByteArrayResource(doc.getData()));\n\t}", "@Test\n public void fileIdTest() {\n // TODO: test fileId\n }", "@Test(timeout = 4000)\n public void test08() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n boolean boolean0 = fileUtil0.downloadOneASINFile(\"k[mvr{61b:NmP1*\", \"p,{uKz\", \"\", (String) null, \"1\");\n assertFalse(boolean0);\n }", "private synchronized void executeDownload(DownloadRequest request, String downloadUrl) {\n HttpURLConnection conn = null;\n URL url;\n InputStream inputStream = null;\n RandomAccessFile randomAccessFile;\n\n try {\n url = new URL(downloadUrl);\n long localFileLength = FileUtils.getLocalFileSize(getFullFileName());\n long remoteFileLength = fileTotalSize;\n\n // 远程文件不存在\n if (remoteFileLength == -1l) {\n // Log.log(\"下载文件不存在...\");\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Remote file not found\");\n return;\n }\n\n request.setFileFullName(getFullFileName());\n randomAccessFile = new RandomAccessFile(getFullFileName(), \"rwd\");\n\n\n conn = (HttpURLConnection) url.openConnection();\n conn.setInstanceFollowRedirects(false);\n conn.setConnectTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setReadTimeout(request.getRetryPolicy().getCurrentTimeout());\n conn.setRequestMethod(\"GET\");\n\n // 本地文件存在\n randomAccessFile.seek(localFileLength);\n conn.setRequestProperty(\"Range\", \"bytes=\"\n + localFileLength + \"-\" + remoteFileLength);\n\n inputStream = conn.getInputStream();\n\n\n HashMap<String, String> customHeaders = request.getCustomHeaders();\n if (customHeaders != null) {\n for (String headerName : customHeaders.keySet()) {\n conn.addRequestProperty(headerName, customHeaders.get(headerName));\n }\n }\n\n // Status Connecting is set here before\n // urlConnection is trying to connect to destination.\n updateDownloadState(request, DownloadManager.STATUS_CONNECTING);\n\n final int responseCode = conn.getResponseCode();\n\n DownLoadLog.v(\"Response code obtained for downloaded Id \"\n + request.getDownloadId()\n + \" : httpResponse Code \"\n + responseCode);\n\n switch (responseCode) {\n case HTTP_PARTIAL:\n case HTTP_OK:\n shouldAllowRedirects = false;\n if (fileTotalSize > 1) {\n transferData(request, inputStream, randomAccessFile);\n } else {\n updateDownloadFailed(request, DownloadManager.ERROR_DOWNLOAD_SIZE_UNKNOWN, \"Transfer-Encoding not found as well as can't know size of download, giving up\");\n }\n break;\n case HTTP_MOVED_PERM:\n case HTTP_MOVED_TEMP:\n case HTTP_SEE_OTHER:\n case HTTP_TEMP_REDIRECT:\n // Take redirect url and call executeDownload recursively until\n // MAX_REDIRECT is reached.\n while (mRedirectionCount < MAX_REDIRECTS && shouldAllowRedirects) {\n mRedirectionCount++;\n DownLoadLog.v(TAG, \"Redirect for downloaded Id \" + request.getDownloadId());\n final String location = conn.getHeaderField(\"Location\");\n executeDownload(request, location);\n }\n\n if (mRedirectionCount > MAX_REDIRECTS && shouldAllowRedirects) {\n updateDownloadFailed(request, DownloadManager.ERROR_TOO_MANY_REDIRECTS, \"Too many redirects, giving up\");\n return;\n }\n break;\n case HTTP_REQUESTED_RANGE_NOT_SATISFIABLE:\n updateDownloadFailed(request, HTTP_REQUESTED_RANGE_NOT_SATISFIABLE, conn.getResponseMessage());\n break;\n case HTTP_UNAVAILABLE:\n updateDownloadFailed(request, HTTP_UNAVAILABLE, conn.getResponseMessage());\n break;\n case HTTP_INTERNAL_ERROR:\n updateDownloadFailed(request, HTTP_INTERNAL_ERROR, conn.getResponseMessage());\n break;\n default:\n updateDownloadFailed(request, DownloadManager.ERROR_UNHANDLED_HTTP_CODE, \"Unhandled HTTP response:\" + responseCode + \" message:\" + conn.getResponseMessage());\n break;\n }\n } catch (SocketTimeoutException e) {\n e.printStackTrace();\n // Retry.\n attemptRetryOnTimeOutException(request);\n } catch (ConnectTimeoutException e) {\n e.printStackTrace();\n attemptRetryOnTimeOutException(request);\n } catch (IOException e) {\n e.printStackTrace();\n updateDownloadFailed(request, DownloadManager.ERROR_HTTP_DATA_ERROR, \"IOException \" + e.getMessage());\n } finally {\n if (conn != null) {\n conn.disconnect();\n }\n }\n }", "@Test(timeout = 4000)\n public void test09() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n fileUtil0.downloadCart(\"Qjp&\");\n fileUtil0.downloadBrowseNodeFile(\"v{JQKX\", \"\", \"\\\"WN H5&\", (String) null);\n fileUtil0.renameFile(\"\", \"\\\"WN H5&\");\n fileUtil0.fetchKeywordSearchFile(\"all\", \"/\", \"Qjp&\", \"all\");\n fileUtil0.deleteFile(\"-\");\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"\", \"Qjp&\", \"1u<(sV]8U{kw}jp%,n\");\n assertNull(fileInputStream0);\n }", "@Test\n @Category(SlowTest.class)\n public void canImportLotsOfValidBooks() throws Exception {\n stubFor(get(urlPathMatching(\"/download/.*\"))\n .willReturn(aResponse()\n .withStatus(200)\n .withHeader(\"Content-Type\", \"application/force-download\")\n .withBodyFile(\"0/binary\")));\n\n // post our JSON to the REST service under test\n migrator.migrate(getClass().getResource(TESTFILE_LOTS_OF_VALID_BOOKS));\n\n // verify that our logic downlaods books\n verify(10524, getRequestedFor(urlPathMatching(\"/download/.*\")));\n }", "@Override\n public boolean isDownloadable() {\n return true;\n }", "@Test\n public void attachmentTest() {\n // TODO: test attachment\n }", "@Test\n public void testGetFileMethodValidS3Path() throws GenieException {\n final ObjectMetadata objectMetadata = Mockito.mock(ObjectMetadata.class);\n Mockito.when(this.s3Client.getObject(Mockito.any(GetObjectRequest.class), Mockito.any(File.class))).thenReturn(objectMetadata);\n final ArgumentCaptor<GetObjectRequest> argument = ArgumentCaptor.forClass(GetObjectRequest.class);\n s3FileTransfer.getFile(S3FileTransferImplUnitTests.S3_PATH, S3FileTransferImplUnitTests.LOCAL_PATH);\n Mockito.verify(this.s3Client).getObject(argument.capture(), Mockito.any());\n Assert.assertEquals(S3FileTransferImplUnitTests.S3_BUCKET, argument.getValue().getBucketName());\n Assert.assertEquals(S3FileTransferImplUnitTests.S3_KEY, argument.getValue().getKey());\n Mockito.verify(this.downloadTimer, Mockito.times(1)).record(Mockito.anyLong(), Mockito.eq(TimeUnit.NANOSECONDS));\n Mockito.verify(this.registry, Mockito.times(1)).timer(Mockito.eq(DOWNLOAD_TIMER_NAME), this.tagsCaptor.capture());\n Assert.assertEquals(S3FileTransferImplUnitTests.SUCCESS_TAGS, this.tagsCaptor.getValue());\n }", "public static void httpDownload(String url, FileOutputStream file) throws Exception {\r\n \t\tDefaultHttpClient client = new DefaultHttpClient();\r\n \t\tHttpResponse response = client.execute(new HttpGet(url));\r\n \t\tif(response.getStatusLine().getStatusCode() < 400){\r\n \t\t\tBufferedOutputStream writer = null;\r\n \t\t\tBufferedInputStream reader = null;\r\n \t\t\ttry {\r\n \t\t\t\twriter = new BufferedOutputStream(file);\r\n \t\t\t\treader = new BufferedInputStream(response.getEntity().getContent());\r\n \r\n \t\t\t\tbyte[] buffer = new byte[BUF_SIZE];\r\n \t\t\t\tint bytesRead = reader.read(buffer);\r\n \r\n \t\t\t\twhile (bytesRead > 0) {\r\n \t\t\t\t\twriter.write(buffer, 0, bytesRead);\r\n \t\t\t\t\tbytesRead = reader.read(buffer);\r\n \t\t\t\t}\r\n \t\t\t} finally {\r\n \t\t\t\tif (writer != null) {\r\n \t\t\t\t\twriter.close();\r\n \t\t\t\t}\r\n \t\t\t\tif (reader != null) {\r\n \t\t\t\t\treader.close();\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t}", "@RequestMapping (value=\"/DownloadFileNote/{filename}\", method=RequestMethod.GET )\r\n public void doDownload(HttpServletRequest request,\r\n HttpServletResponse response, @PathVariable(value = \"filename\") String fileName ) throws IOException {\n ServletContext context = request.getServletContext();\r\n String appPath = context.getRealPath(\"\");\r\n System.out.println(\"filepath = \" + dirNotes);\r\n\r\n // construct the complete absolute path of the file\r\n\r\n File downloadFile = new File(dirNotes+fileName);\r\n FileInputStream inputStream = new FileInputStream(downloadFile);\r\n\r\n // get MIME type of the file\r\n String mimeType = context.getMimeType(dirNotes+fileName);\r\n if (mimeType == null) {\r\n // set to binary type if MIME mapping not found\r\n mimeType = \"application/octet-stream\";\r\n }\r\n System.out.println(\"MIME type: \" + mimeType);\r\n\r\n // set content attributes for the response\r\n response.setContentType(mimeType);\r\n response.setContentLength((int) downloadFile.length());\r\n\r\n // set headers for the response\r\n String headerKey = \"Content-Disposition\";\r\n String headerValue = String.format(\"attachment; filename=\\\"%s\\\"\",\r\n downloadFile.getName());\r\n response.setHeader(headerKey, headerValue);\r\n\r\n // get output stream of the response\r\n OutputStream outStream = response.getOutputStream();\r\n\r\n byte[] buffer = new byte[BUFFER_SIZE];\r\n int bytesRead = -1;\r\n\r\n // write bytes read from the input stream into the output stream\r\n while ((bytesRead = inputStream.read(buffer)) != -1) {\r\n outStream.write(buffer, 0, bytesRead);\r\n }\r\n\r\n inputStream.close();\r\n outStream.close();\r\n }", "@Test\n void readImage() throws Exception {\n ResultActions resultActions = mockMvc.perform(get(\"/v1/file/image-byte\")\n .param(\"name\", \"icon.jpg\")\n .contentType(MediaType.TEXT_PLAIN_VALUE))\n .andDo(resultHandler -> {\n String path = writeFile(resultHandler.getResponse().getContentAsByteArray(), \".jpg\");\n logger.debug(\"Image File recorded locally at: \" + path);\n }\n );\n\n resultActions\n .andExpect(status().isOk())\n .andExpect(content().contentType(MediaType.IMAGE_JPEG_VALUE))\n ;\n }", "@Test\n public void testDeleteFileFound() throws IOException{\n ExcelFile testFile = new ExcelFile();\n Mockito.when(excelService.deleteFile(anyString())).thenReturn(testFile);\n given().accept(\"application/json\").delete(\"/excel/0\").peek().\n then().assertThat()\n .statusCode(200);\n }", "@RequestMapping(\"api/admin/fileDownload.do\")\n\tpublic void fileDownload(HttpServletRequest request,HttpServletResponse response,@RequestParam(value=\"fileName\")String fileName) throws IOException{\n\t\tServletContext context = request.getServletContext();\n \n // construct the complete absolute path of the file\n String fullPath = boardPath+fileName; \n File downloadFile = new File(fullPath);\n FileInputStream inputStream = new FileInputStream(downloadFile);\n \n // get MIME type of the file\n String mimeType = context.getMimeType(fullPath);\n if (mimeType == null) {\n // set to binary type if MIME mapping not found\n mimeType = \"application/octet-stream\";\n }\n System.out.println(\"MIME type: \" + mimeType);\n \n // set content attributes for the response\n response.setContentType(mimeType);\n response.setContentLength((int) downloadFile.length());\n \n // set headers for the response\n String headerKey = \"Content-Disposition\";\n String headerValue = String.format(\"attachment; filename=\\\"%s\\\"\",\n URLEncoder.encode(downloadFile.getName(),\"UTF-8\"));\n System.out.println(downloadFile.getName());\n \n response.setHeader(headerKey, headerValue);\n \n // get output stream of the response\n OutputStream outStream = response.getOutputStream();\n \n byte[] buffer = new byte[BUFFER_SIZE];\n int bytesRead = -1;\n \n // write bytes read from the input stream into the output stream\n while ((bytesRead = inputStream.read(buffer)) != -1) {\n outStream.write(buffer, 0, bytesRead);\n }\n \n inputStream.close();\n outStream.close();\n \n \n \n\t}", "public interface FileDownloadListener {\n\n\t/**\n\t * Listener for the progress of downloadFile\n\t * @param current current file data offset\n\t * @param total total length of file data\n\t */\n\tpublic void onDownloadProgress(int current, int total);\n\t\n\tpublic boolean cancelDownload();\n}", "@Test\n\tpublic void testGetFileAsStream_2()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "void downloadEvi(File file, int id) throws IOException, SQLException;", "@Test\n\tpublic void testGetFileAsStream_3()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "@GetMapping(\"/retrive/{fileId}\")\r\n public ResponseEntity<ByteArrayResource> downloadFile(@PathVariable Integer fileId) {\n Optional<Image> image;\r\n image = imgrepo.findById(fileId);\r\n Image ima=null;\r\n if(image.isPresent()) {\r\n ima = image.get();\r\n }\r\n return ResponseEntity.ok()\r\n .contentType(MediaType.parseMediaType(ima.getFileType()))\r\n .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment; filename=\\\"\" + ima.getFileName() + \"\\\"\")\r\n .body(new ByteArrayResource(ima.getData()));\r\n\t\r\n\t\r\n }", "@GetMapping(\"/downloadFile/{fileName:.+}\")\n public ResponseEntity<Resource> downloadFile(@PathVariable String fileName, HttpServletRequest request) {\n Resource resource = docFileService.loadFileAsResource(fileName);\n\n // Try to determine file's content type\n String contentType = null;\n try {\n contentType = request.getServletContext().getMimeType(resource.getFile().getAbsolutePath());\n } catch (IOException ex) {\n System.out.println(\"Could not determine file type.\");\n }\n\n // Fallback to the default content type if type could not be determined\n if(contentType == null) {\n contentType = \"application/octet-stream\";\n }\n\n return ResponseEntity.ok()\n .contentType(MediaType.parseMediaType(contentType))\n .header(HttpHeaders.CONTENT_DISPOSITION, \"attachment; filename=\\\"\" + resource.getFilename() + \"\\\"\")\n .body(resource);\n }", "public boolean downloadSingleFile(File fileToDownload) {\n\t\tboolean success = false;\n\t\tthis.showNamedMessage(\"WARNING: overwriting existing files!\"); \n\t\ttry {\n\t\t\t// create downloadHandler\n\t\t\tFile fileToWrite = new File(this.fileStorage.toString() +\n\t\t\t\t\tFile.separator + fileToDownload.getName());\n\t\t\tDatagramSocket downloadSocket = TransportLayer.openNewDatagramSocket();\n\t\t\t\n\t\t\tDownloadHelper downloadHelper = new DownloadHelper(this,\n\t\t\t\t\tdownloadSocket, this.serverAddress, -2, -1, fileToWrite, -1); \n\t\t\t// note: uploaderPort, fileSize and startID still to set\n\t\t\tthis.downloads.add(downloadHelper);\n\n\t\t\t// request file, provide downloaderHelper port\n\t\t\tString singleFileRequest = FileTransferProtocol.DOWNLOAD + \n\t\t\t\t\tFileTransferProtocol.DELIMITER + \n\t\t\t\t\tdownloadSocket.getLocalPort();\n\t\t\t\n\t\t\tbyte[] fileToDownloadBytes = util.Bytes.serialiseObjectToByteArray(fileToDownload); \n\t\t\t\n\t\t\tPacket responsePacket = this.requestServer(singleFileRequest, fileToDownloadBytes);\n\t\t\tString[] responseSplit = this.getArguments(responsePacket.getPayloadString());\n\t\t\t\n\t\t\tif (responseSplit[0].contentEquals(FileTransferProtocol.UPLOAD)) {\n\t\t\t\tdownloadHelper.setUploaderPort(Integer.parseInt(responseSplit[1])); \n\t\t\t\tthis.showNamedMessage(\"Uploader is on server port = \" \n\t\t\t\t\t\t+ Integer.parseInt(responseSplit[1])); \n\n\t\t\t\tlong totalFileSize = Long.parseLong(responseSplit[2]);\n\t\t\t\tthis.showNamedMessage(\"Uploader reports total file size = \" \n\t\t\t\t\t\t+ totalFileSize + \" bytes\");\n\t\t\t\t\n\t\t\t\tif (!this.checkFreeSpace(totalFileSize)) {\n\t\t\t\t\tthis.downloads.remove(downloadHelper);\n\t\t\t\t\treturn false;\n\t\t\t\t}\n\t\t\t\tdownloadHelper.setTotalFileSize(totalFileSize);\n\t\t\t\t\n\t\t\t\tint startID = Integer.parseInt(responseSplit[3]);\n\t\t\t\tthis.showNamedMessage(\"Uploader starts at ID = \" + startID);\n\t\t\t\tdownloadHelper.setStartID(startID);\n\t\t\t\t\n\t\t\t\t// now everything is known: start download helper\n\t\t\t\tnew Thread(downloadHelper).start();\n\t\t\t\tsuccess = true;\n\t\t\t} else {\n\t\t\t\tthis.showNamedError(\"Invalid response to download request\");\n\t\t\t\tsuccess = false;\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tthis.showNamedError(\"Something went wrong: \" + e.getLocalizedMessage());\n\t\t} catch (EmptyResponseException e) {\n\t\t\tthis.showNamedError(\"Response from server was empty: \" + e.getLocalizedMessage());\n\t\t} catch (ServerFailureException e) {\n\t\t\tthis.showNamedError(\"SERVER FAILURE> \" + e.getLocalizedMessage());\n\t\t} catch (NotEnoughFreeSpaceException e) {\n\t\t\tthis.showNamedError(\"Not enough free space to store download:\"\n\t\t\t\t\t+ e.getLocalizedMessage()); \n\t\t}\n\n\t\treturn success;\n\t}", "@Test\n public void testListFiles() throws FileNotFoundException {\n // Mockito.when(excelService.getExcelBodyById(anyString())).thenReturn(new FileInputStream(\"temp.xlsx\"));\n List<ExcelFile> list = new ArrayList<>();\n Mockito.when(excelService.getFiles()).thenReturn(list);\n\n given().accept(\"application/json\").get(\"/excel\").peek().\n then().assertThat()\n .statusCode(200);\n }", "void downloadCompleted(String blobId);", "public void testDownloadFile(){\n final String url = \"http://www.zebrai.cn/login/picture/getCaptcha\";\n new Thread(new Runnable() {\n @Override\n public void run() {\n downloadFile(url);\n }\n }).start();\n\n }", "@Test\n public void whenClientEntersLegalCommandDownloadThenRequestToServerIsFormed() throws IOException {\n this.testClientInput(\n Joiner.on(LN).join(\n \"File is downloaded.\",\n \"\",\n \"\",\n \"\"\n ),\n Joiner.on(LN).join(\n String.format(\"DOWNLOAD File %1$s%2$sEXIT %3$s\",\n Paths.get(new File(\".\").getAbsolutePath()).normalize(),\n LN,\n Paths.get(new File(\".\").getAbsolutePath()).normalize()),\n \"\"\n ),\n Joiner.on(LN).join(\n \"DOWNLOAD File\",\n \"EXIT\"\n ),\n NetFileManagerClientTest.SERVER_OUTPUT_STUB\n );\n }", "@Override\n public void serveDownload(ServletContext context, HttpServletResponse response, Download download)\n throws IOException {\n File file = FileUtility.getFromDrive(download);\n\n if (file != null) {\n try (FileInputStream inStream = new FileInputStream(file)) {\n String mimeType = context.getMimeType(file.getAbsolutePath());\n if (mimeType == null) {\n // set to binary type if MIME mapping not found\n mimeType = \"application/octet-stream\";\n }\n\n // modifies response\n response.setContentType(mimeType);\n response.setContentLength((int) file.length());\n\n // forces download\n String headerKey = \"Content-Disposition\";\n String headerValue = String.format(\"attachment; filename=\\\"%s\\\"\", download.getFilename());\n response.setHeader(headerKey, headerValue);\n\n // obtains response's output stream\n OutputStream outStream = response.getOutputStream();\n\n byte[] buffer = new byte[4096];\n int bytesRead = -1;\n\n while ((bytesRead = inStream.read(buffer)) != -1) {\n outStream.write(buffer, 0, bytesRead);\n }\n }\n }\n }", "@Test\n\tpublic void testGetFileAsStream_1()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "public void onFileDownloadComplete(String filePath);", "@Test(timeout = 4000)\n public void test25() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n EvoSuiteURL evoSuiteURL0 = new EvoSuiteURL(\"http://xml.amazon.net/onca/xml3?t=popcornmonste2-20&dev-t=DSB0XDDW1GQ3S&.YBKYR[P|b=.YBKYR%5BP%7Cb&mode=.YBKYR[P|b&type=&page=\\\"90hR%xB!V_E&offer=\\\"90hR%xB!V_E&f=xml\");\n NetworkHandling.createRemoteTextFile(evoSuiteURL0, \"\\\"90hR%xB!V_E\");\n FileInputStream fileInputStream0 = fileUtil0.fetchGenericSearchFile(\".YBKYR[P|b\", \".YBKYR[P|b\", \".YBKYR[P|b\", \"\", \"\\\"90hR%xB!V_E\", \"\\\"90hR%xB!V_E\");\n assertNull(fileInputStream0);\n }", "@Test\n\tpublic void testGetFileAsStream_4()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString versionNumber = \"\";\n\n\t\tInputStream result = fixture.getFileAsStream(companyId, repositoryId, fileName, versionNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertNotNull(result);\n\t}", "boolean checkShouldDownloadFile(String target, String name) {\n return Boolean.TRUE.equals(DOWNLOAD_FILES.retrieve(target, name));\n }", "public interface FileDownloadInterface {\n void onFileDownloadSuccess();\n void onFileDownloadFailed(Exception ex);\n}", "@Test\n\tpublic void testHasFile_2()\n\t\tthrows Exception {\n\t\tDLLocalServiceImpl fixture = new DLLocalServiceImpl();\n\t\tfixture.groupLocalService = new GroupLocalServiceWrapper(new GroupLocalServiceImpl());\n\t\tfixture.hook = new CMISHook();\n\t\tfixture.dlFolderService = new DLFolderServiceWrapper(new DLFolderServiceImpl());\n\t\tlong companyId = 1L;\n\t\tlong repositoryId = 1L;\n\t\tString fileName = \"\";\n\t\tString versionNumber = \"\";\n\n\t\tboolean result = fixture.hasFile(companyId, repositoryId, fileName, versionNumber);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: com.liferay.documentlibrary.service.impl.DLLocalServiceImpl\n\t\t// at java.net.URLClassLoader.findClass(Unknown Source)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(Unknown Source)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Unknown Source)\n\t\tassertTrue(result);\n\t}", "public Boolean downloadTaskFile(String taskid, String fileSaveAsPath) throws IOException {\n return true;\n\t }", "public File get( String url, String suffix ) throws MojoExecutionException\n {\n if ( m_wagon == null )\n {\n m_log.error( \"must be connected first!\" );\n return null;\n }\n\n File file = null;\n try\n {\n file = File.createTempFile( String.valueOf( System.currentTimeMillis() ), suffix );\n }\n catch ( IOException e )\n {\n throw new MojoExecutionException( \"I/O problem\", e );\n }\n\n try\n {\n m_wagon.get( url, file );\n }\n catch ( TransferFailedException e )\n {\n file.delete(); // cleanup on failure\n throw new MojoExecutionException( \"Transfer failed\", e );\n }\n catch ( AuthorizationException e )\n {\n file.delete(); // cleanup on failure\n throw new MojoExecutionException( \"Authorization failed\", e );\n }\n catch ( ResourceDoesNotExistException e )\n {\n file.delete(); // return non-existent file\n }\n\n return file;\n }", "public interface DownloadData {\n public void download();\n public String getFileLocation();\n}", "@Test(timeout = 4000)\n public void test29() throws Throwable {\n FileUtil fileUtil0 = new FileUtil();\n FileInputStream fileInputStream0 = fileUtil0.fetchBNFile(\"bf\", \"}*]#rf}>keea3q+#\", (String) null);\n assertNull(fileInputStream0);\n }", "@Test\n\tpublic void testFetch_GiveCacheFileContent() throws FileNotFoundException {\n\n\t\tFIFOFileCache fifoFileCache = FIFOFileCache.getInstance();\n\t\tfifoFileCache.fetch(\"a.txt\");\n\t\tfifoFileCache.fetch(\"b.txt\");\n\t\tfifoFileCache.fetch(\"c.txt\");\n\t\tfifoFileCache.fetch(\"d.txt\");\n\t\tString expected = \"This is File b.txt content.\";\n\t\tString actual = fifoFileCache.fetch(\"b.txt\");\n\t\tassertThat(actual, is(expected));\n\t}", "void downloadEto(File file, int id) throws IOException, SQLException;", "String download(String path) throws IOException;", "void mo54418a(DownloadTask downloadTask);", "@Override\r\n protected void onPostExecute(String file_url) {\r\n System.out.println(\"Downloaded\");\r\n }" ]
[ "0.74564123", "0.7376208", "0.6705258", "0.6645182", "0.66090447", "0.64781207", "0.6451221", "0.64394414", "0.63406855", "0.6311776", "0.6224373", "0.62105906", "0.6204882", "0.61508685", "0.61196285", "0.6117874", "0.6091343", "0.6074028", "0.6073493", "0.6071075", "0.6047601", "0.60196257", "0.5985277", "0.59788436", "0.59776026", "0.59745544", "0.5960247", "0.5907217", "0.5907215", "0.59042674", "0.58972305", "0.5893724", "0.588714", "0.5878455", "0.5853699", "0.5824784", "0.582146", "0.5803903", "0.5795276", "0.579253", "0.5787742", "0.578682", "0.5776008", "0.5762533", "0.5759443", "0.5752002", "0.5747497", "0.57401824", "0.5730189", "0.5722208", "0.570191", "0.56971693", "0.56852424", "0.56720626", "0.56681585", "0.56646246", "0.5664464", "0.56568366", "0.5656737", "0.5644043", "0.56313086", "0.562904", "0.5618922", "0.56140375", "0.5605823", "0.560385", "0.559435", "0.5593574", "0.55911565", "0.5590831", "0.5582041", "0.55804", "0.5568755", "0.55420226", "0.5537584", "0.55362463", "0.5535693", "0.5532992", "0.5529374", "0.5526062", "0.55215436", "0.5507653", "0.55032974", "0.5502523", "0.54998827", "0.5496041", "0.5485607", "0.5485343", "0.5479984", "0.5478773", "0.5471594", "0.5467487", "0.5465322", "0.546439", "0.546106", "0.5458679", "0.5447414", "0.5440389", "0.54327226", "0.5430353", "0.54063255" ]
0.0
-1
Nadie puede hacer new excepto dentro de esta clase. Puede ser protected
private ServicioProductoSingleton() { this.listaProductos = new ArrayList<>(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected Approche() {\n }", "private ATCres() {\r\n // prevent to instantiate this class\r\n }", "Reproducible newInstance();", "private Rekenhulp()\n\t{\n\t}", "@Override\n \t\t\t\tpublic void doNew() {\n \n \t\t\t\t}", "protected Doodler() {\n\t}", "public Preventivo() {\n\n }", "private DarthSidious(){\n }", "private BaseDatos() {\n }", "protected FanisamBato(){\n\t}", "private UsineJoueur() {}", "private TMCourse() {\n\t}", "private SystemInfo() {\r\n // forbid object construction \r\n }", "protected Warning() {\n\n }", "private Example() {\n\t\tthrow new Error(\"no instantiation is permitted\");\n\t}", "public AntrianPasien() {\r\n\r\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "protected Problem() {/* intentionally empty block */}", "public ModelAccessException() {\n\t\tsuper();\n\n\t}", "protected Betaling()\r\n\t{\r\n\t\t\r\n\t}", "protected Animal() {\t\r\n\t}", "private Instantiation(){}", "protected abstract void construct();", "protected ChildType() {/* intentionally empty block */}", "protected Asignatura()\r\n\t{}", "protected SecurityObject() {\n\t\t// Used by JPA provider.\n\n\t\tLOGGER.debug(\"SecurityObject#co\");\n\t}", "@Test( expected = IllegalStateException.class )\n\tpublic void constructorShouldNotBeInstantiable() {\n\t\tnew ReflectionUtil() {\n\t\t\t// constructor is protected\n\t\t};\n\t}", "private MApi() {}", "protected Product() {\n\t\t\n\t}", "private Ex() {\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "protected User() {}", "protected User() {}", "public OOP_207(){\n\n }", "protected Product()\n\t{\n\t}", "private NaturePackage() {}", "protected Provider() {}", "private TemplateFactory(){\n //AssertionError不是必须的. 但它可以避免不小心在类的内部调用构造器. 保证该类在任何情况下都不会被实例化.\n //see 《Effective Java》 2nd\n throw new AssertionError(\"No \" + getClass().getName() + \" instances for you!\");\n }", "public CustomerNew () {\n\t\tsuper();\n\t}", "public Pasien() {\r\n }", "private stendhal() {\n\t}", "private ControleurAcceuil(){ }", "private Security() { }", "private Cat() {\n\t\t\n\t}", "public Factory() {\n\t\tsuper();\n\t}", "private AcceleoLibrariesEclipseUtil() {\n \t\t// hides constructor\n \t}", "public T safeNewInstance() {\n try {\n return newInstance();\n } catch (NoSuchMethodException e) {\n throw new IllegalArgumentException(e);\n } catch (IllegalAccessException e) {\n throw new IllegalArgumentException(e);\n } catch (InvocationTargetException e) {\n throw new IllegalArgumentException(e);\n } catch (InstantiationException e) {\n throw new IllegalArgumentException(e);\n }\n }", "private CheckingTools() {\r\n super();\r\n }", "public Nota() {\n }", "private SerializerFactory() {\n // do nothing\n }", "@Override\r\n\tpublic CMObject newInstance()\r\n\t{\r\n\t\ttry\r\n\t\t{\r\n\t\t\treturn this.getClass().getDeclaredConstructor().newInstance();\r\n\t\t}\r\n\t\tcatch(final Exception e)\r\n\t\t{\r\n\t\t\tLog.errOut(ID(),e);\r\n\t\t}\r\n\t\treturn new StdBehavior();\r\n\t}", "private ObiWanKenobi(){\n }", "public Alojamiento() {\r\n\t}", "private ObjectFactory() { }", "public AbstractClass() { //Sobrecarga del constructor AbstractClass ya que se puede inicializar de 2 maneras\n }", "private FactoryCacheValet() {\n\t\tsuper();\n\t}", "protected PermissionCategory () {\n //\n }", "private Validations() {\n\t\tthrow new IllegalAccessError(\"Shouldn't be instantiated.\");\n\t}", "private StickFactory() {\n\t}", "private void __sep__Constructors__() {}", "private ElementoDettaglioVariazioneCodificaCapitoloFactory() {\n\t}", "private Topography()\n\t{\n\t\tthrow new IllegalStateException(\"This is an utility class, it can not be instantiated\");\n\t}", "private XmlFactory() {\r\n /* no-op */\r\n }", "private Infer() {\n\n }", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "public Clade() {}", "private ErrorFactory() {\r\n\t}", "public EvSocialClass ()\n {\n super();\n }", "protected ValidationException() {\r\n\t\t// hidden\r\n\t}", "@Override\n public boolean isInstantiable() {\n return false;\n }", "public abstract Anuncio creaAnuncioGeneral();", "@Override\n\tpublic void create () {\n\n\t}", "private SingleObject()\r\n {\r\n }", "private UserCourseCourse() {\n\t}", "public Classe() {\r\n }", "private NewsWriter() {\n }", "private Consts(){\n //this prevents even the native class from \n //calling this ctor as well :\n throw new AssertionError();\n }", "private UtilityKlasse() {\n\n }", "private CloneFactory() {\n }", "private Public() {\n super(\"public\", null);\n }", "public FiltroMicrorregiao() {\r\n }", "private GraphFileManager() {\n\t}", "private ControlloFile() {\n\t}", "private LOCFacade() {\r\n\r\n\t}", "private SingleObject(){\n }", "private ClassProxy() {\n }", "public abstract void create();", "private PermissionUtil() {\n throw new IllegalStateException(\"you can't instantiate PermissionUtil!\");\n }", "private PerksFactory() {\n\n\t}", "protected EmpleadoPlantilla(com.matisse.reflect.MtClass mtCls) {\n super(mtCls);\n }", "public Pleasure() {\r\n\t\t}", "protected User() {\n }", "private DTOFactory() {\r\n \t}", "private ArticleMgr() {\r\n\r\n\t}", "@SuppressWarnings(\"unused\")\r\n\tprivate TransporterException(){\r\n\t\t\r\n\t}", "private AccessorModels() {\n // Private constructor to prevent instantiation\n }", "private ObjectRepository() {\n\t}", "public OrderServiceSecurityException() {\n\t}", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "private ContentUtil() {\n // do nothing\n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}" ]
[ "0.7097225", "0.6780098", "0.67523235", "0.67228013", "0.67149216", "0.66979915", "0.66239923", "0.65264416", "0.6522581", "0.6511376", "0.6510609", "0.6487852", "0.64838094", "0.64804894", "0.6467281", "0.63984454", "0.6389769", "0.63824886", "0.6356399", "0.6347508", "0.634061", "0.6313468", "0.62931865", "0.62927294", "0.62802124", "0.62742233", "0.6270318", "0.62542707", "0.6253476", "0.6250724", "0.6247651", "0.6239858", "0.6239858", "0.6238802", "0.62295413", "0.6219574", "0.6215361", "0.6202093", "0.6198071", "0.6191915", "0.6191062", "0.61862427", "0.6180823", "0.61791307", "0.61790884", "0.6175469", "0.6174203", "0.6172481", "0.6169525", "0.6169394", "0.6166322", "0.6160093", "0.616005", "0.61594117", "0.61548054", "0.6154057", "0.6151763", "0.614091", "0.6126802", "0.6103407", "0.6096139", "0.60859954", "0.6068587", "0.6065919", "0.6064061", "0.6056266", "0.6055676", "0.6048767", "0.6048393", "0.60431105", "0.60363525", "0.60360664", "0.60332274", "0.6031455", "0.60290724", "0.6023336", "0.6022565", "0.6019671", "0.6018625", "0.601262", "0.60095257", "0.5994014", "0.59926474", "0.59898216", "0.5988064", "0.59851754", "0.5985168", "0.5982784", "0.59793913", "0.5978485", "0.5976642", "0.5975534", "0.5962103", "0.5959759", "0.5957321", "0.595516", "0.59548557", "0.5952785", "0.5951723", "0.5950935", "0.59465456" ]
0.0
-1
Refresh Favorite button (star). Checks state from local preferences
public void refreshFavoriteBtn() { if (recipe.isFavorite(context)) { favoriteBtn.setIcon("faw_star"); } else { favoriteBtn.setIcon("faw_star_o"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onFavoriteChanged(MaterialFavoriteButton buttonView, boolean favorite);", "private void updateFavoriteButtons() {\n new AsyncTask<Void, Void, Boolean>() {\n\n @Override\n protected Boolean doInBackground(Void... params) {\n return isFavorite();\n }\n\n @Override\n protected void onPostExecute(Boolean isFavorite) {\n if (isFavorite) {\n mButtonRemoveFavorites.setVisibility(View.VISIBLE);\n mButtonMarkAsFavorite.setVisibility(View.GONE);\n } else {\n mButtonMarkAsFavorite.setVisibility(View.VISIBLE);\n mButtonRemoveFavorites.setVisibility(View.GONE);\n }\n }\n }.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\n\n mButtonMarkAsFavorite.setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n markAsFavorite();\n }\n });\n\n mButtonRemoveFavorites.setOnClickListener(\n new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n removeFromFavorites();\n }\n });\n }", "private void addToFavorites() {\n\n favoriteBool = true;\n preferencesConfig.writeAddFavoriteTip(shownTipIndex);\n Toast.makeText(getContext(), \"Added to favorites.\", Toast.LENGTH_SHORT).show();\n\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\tif (item.isFavorite()) {\n\t\t\t\t\t\tholder.btnFavorite\n\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.icon_favorite_off);\n\t\t\t\t\t\titem.setFavorite(false);\n\t\t\t\t\t\tpref.setString(item.getFileName(), false);\n\t\t\t\t\t\tif (!inRingtones) {\n\t\t\t\t\t\t\tIntent broadcast = new Intent();\n\t\t\t\t\t\t\tbroadcast.setAction(\"REMOVE_SONG\");\n\t\t\t\t\t\t\tcontext.sendBroadcast(broadcast);\n\t\t\t\t\t\t}\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\tholder.btnFavorite\n\t\t\t\t\t\t\t\t.setBackgroundResource(R.drawable.icon_favorite);\n\t\t\t\t\t\titem.setFavorite(true);\n\t\t\t\t\t\tpref.setString(item.getFileName(), true);\n\t\t\t\t\t}\n\t\t\t\t}", "public void favouriteUser() {\r\n\t\tif(favourited) {\r\n\t\t\tcurrentUser.unfavouriteUser(userToView.getUserID());\r\n\t\t\tfavouriteButton.setText(\"Favourite\");\r\n\t\t\tfavourited = false;\r\n\t\t} else if(currentUser.getUserID() != userToView.getUserID()){\r\n\t\t\tcurrentUser.favouriteUser(userToView.getUserID());\r\n\t\t\tfavouriteButton.setText(\"Unfavourite\");\r\n\t\t\tfavourited = true;\r\n\t\t} else {\r\n\t\t\tCONSTANTS.makeAlertWindow(\"warning\",\"You can not favorite yourself!\");\r\n\t\t}\r\n\t}", "@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.action_settings) {\r\n if(item.getTitle().equals(\"Add to Favorites\")) {\r\n SharedPreferences commonpreferences = getSharedPreferences(\"Common\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor1 = commonpreferences.edit();\r\n\r\n String value1 = url_fav + \" \" + name_fav + \" \" + type_fav;\r\n\r\n\r\n editor1.putString(id_fav, value1);\r\n editor1.commit();\r\n if (type_fav.equals(\"Users\")) {\r\n SharedPreferences userpreferences = getSharedPreferences(\"Users\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = userpreferences.edit();\r\n\r\n String value = url_fav + \" \" + name_fav + \" \" + type_fav;\r\n\r\n\r\n editor.putString(id_fav, value);\r\n editor.commit();\r\n } else if (type_fav.equals(\"Pages\")) {\r\n SharedPreferences pagepreferences = getSharedPreferences(\"Pages\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = pagepreferences.edit();\r\n\r\n String value = url_fav + \" \" + name_fav + \" \" + type_fav;\r\n\r\n\r\n editor.putString(id_fav, value);\r\n editor.commit();\r\n } else if (type_fav.equals(\"Events\")) {\r\n SharedPreferences eventpreferences = getSharedPreferences(\"Events\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = eventpreferences.edit();\r\n\r\n String value = url_fav + \" \" + name_fav + \" \" + type_fav;\r\n\r\n\r\n editor.putString(id_fav, value);\r\n editor.commit();\r\n } else if (type_fav.equals(\"Places\")) {\r\n SharedPreferences placepreferences = getSharedPreferences(\"Places\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = placepreferences.edit();\r\n\r\n String value = url_fav + \" \" + name_fav + \" \" + type_fav;\r\n\r\n\r\n editor.putString(id_fav, value);\r\n editor.commit();\r\n } else if (type_fav.equals(\"Groups\")) {\r\n SharedPreferences grouppreferences = getSharedPreferences(\"Groups\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = grouppreferences.edit();\r\n\r\n String value = url_fav + \" \" + name_fav + \" \" + type_fav;\r\n\r\n\r\n editor.putString(id_fav, value);\r\n editor.commit();\r\n }\r\n\r\n Toast.makeText(getApplicationContext(), \"Added to Favorites\", Toast.LENGTH_LONG).show();\r\n }\r\n else\r\n {\r\n SharedPreferences commonpreferences = getSharedPreferences(\"Common\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor1 = commonpreferences.edit();\r\n editor1.remove(id_fav);\r\n editor1.commit();\r\n\r\n if (type_fav.equals(\"Users\")) {\r\n SharedPreferences userpreferences = getSharedPreferences(\"Users\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = userpreferences.edit();\r\n\r\n editor.remove(id_fav);\r\n editor.commit();\r\n } else if (type_fav.equals(\"Pages\")) {\r\n SharedPreferences pagepreferences = getSharedPreferences(\"Pages\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = pagepreferences.edit();\r\n\r\n editor.remove(id_fav);\r\n editor.commit();\r\n } else if (type_fav.equals(\"Events\")) {\r\n SharedPreferences eventpreferences = getSharedPreferences(\"Events\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = eventpreferences.edit();\r\n\r\n editor.remove(id_fav);\r\n editor.commit();\r\n } else if (type_fav.equals(\"Places\")) {\r\n SharedPreferences placepreferences = getSharedPreferences(\"Places\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = placepreferences.edit();\r\n\r\n editor.remove(id_fav);\r\n editor.commit();\r\n } else if (type_fav.equals(\"Groups\")) {\r\n SharedPreferences grouppreferences = getSharedPreferences(\"Groups\", Context.MODE_PRIVATE);\r\n SharedPreferences.Editor editor = grouppreferences.edit();\r\n\r\n editor.remove(id_fav);\r\n editor.commit();\r\n }\r\n\r\n\r\n Toast.makeText(getApplicationContext(), \"Removed from Favorites\", Toast.LENGTH_LONG).show();\r\n }\r\n //SharedPreferences.Editor editor = sharedpreferences.edit();\r\n //editor.putString(\"Name\", \"Rachit\");\r\n //SharedPreferences events=getSharedPreferences(\"Events\", Context.MODE_PRIVATE);\r\n //String l=\"-1\";\r\n //String value=events.getString(id_fav,l);\r\n //editor.commit();\r\n return true;\r\n }\r\n else if (id == R.id.share) {\r\n if (ShareDialog.canShow(ShareLinkContent.class)) {\r\n ShareLinkContent linkContent = new ShareLinkContent.Builder()\r\n .setContentUrl(Uri.parse(\"http://developers.facebook.com/android\"))\r\n .build();\r\n shareDialog.show(linkContent);\r\n }\r\n\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "private void removeFromFavorites() {\n favoriteBool = false;\n preferencesConfig.writeRemoveFavoriteTip(shownTipIndex);\n Toast.makeText(getContext(), \"Removed from favorites\", Toast.LENGTH_SHORT).show();\n\n }", "public void onClicked() {\n mypreference = PreferenceManager.getDefaultSharedPreferences(getContext());\n SharedPreferences.Editor editorpref = mypreference.edit();\n Gson gson = new Gson();\n //retrieve the stored ArrayList of fovorite movies as json format\n String storedJsonList = mypreference.getString(\"storedjsonList\", \"\");\n // get the type of this json format\n Type type = new TypeToken<ArrayList<ItemsClass>>() {\n }.getType();\n ArrayList<ItemsClass> movieArrayList = new ArrayList<ItemsClass>();\n //create array list of the retrieved json\n // store it in my Arraylist\n movieArrayList = gson.fromJson(storedJsonList, type);\n\n// favo.setSelected(va[0]);\n ischecked = va[0];\n if (va[0] == true) {\n\n if (movieArrayList == null) {\n\n favoImageButton.setImageResource(R.drawable.liked);\n\n String loadedPosterString = encodeTobase64(theposterImage);\n\n\n serItems.add(new ItemsClass(loadedPosterString, title, releaseDate, overview, rate, id));\n\n Toast.makeText(getContext(), \"you have favo this movie with id of \" + id + \"and you list size is\" + serItems.size(), Toast.LENGTH_SHORT).show();\n //convert all the arraylist with the old and new Items to Json format\n String jsonList = gson.toJson(serItems);\n //save to sharedPreference\n editorpref.putString(\"storedjsonList\", jsonList);\n editorpref.commit();\n va[0] = !va[0];\n\n } else if (movieArrayList != null) {\n serItems = movieArrayList;\n for (int i = 0; i < serItems.size(); i++) {\n int detectId = serItems.get(i).getId();\n if (serItems.size() > 0 && detectId == id) {\n Toast.makeText(getContext(), \"you already have this movie in favorite list \", Toast.LENGTH_SHORT).show();\n favoImageButton.setImageResource(R.drawable.liked);\n break;\n } else if (serItems.size() > 0 && detectId != id && i < serItems.size() - 1) {\n\n continue;\n\n } else if (detectId != id && i == serItems.size() - 1 && i > serItems.size() - 2) {\n Toast.makeText(getContext(), \"you have favo this movie with id of \" + id, Toast.LENGTH_SHORT).show();\n favoImageButton.setImageResource(R.drawable.like);\n serItems.add(new ItemsClass(storedPoster, title, releaseDate, overview, rate, id));\n serItems.size();\n //convert all the arraylist with the old and new Items to Json format\n String jsonList = gson.toJson(serItems);\n //save to sharedPreference\n editorpref.putString(\"storedjsonList\", jsonList);\n editorpref.commit();\n va[0] = !va[0];\n break;\n }\n\n }\n }\n\n } else {\n if (movieArrayList != null) {\n serItems = movieArrayList;\n for (int i = 0; i < serItems.size(); i++) {\n\n int detectId = serItems.get(i).getId();\n if (i < serItems.size() && serItems.size() > 0 && detectId == id) {\n Toast.makeText(getContext(), \"you have deleted this movie this movie with id of \" + id, Toast.LENGTH_SHORT).show();\n favoImageButton.setImageResource(R.drawable.like);\n mypreference = getContext().getSharedPreferences(\"moviepref\", Context.MODE_PRIVATE);\n editorpref.putString(\"storedPoster\", \"\");\n editorpref.putString(\"storedTitle\", \"\");\n editorpref.putString(\"storedOverview\", \"\");\n editorpref.putString(\"storedDate\", \"\");\n editorpref.putFloat(\"storedrating\", (float) 0.0);\n editorpref.commit();\n va[0] = !va[0];\n//\n break;\n } else if (detectId != id && i < serItems.size() - 1) {\n continue;\n } else if (detectId == id && i == serItems.size() - 1) {\n Toast.makeText(getContext(), \" actually you don't have this movie in your favorite list \", Toast.LENGTH_SHORT).show();\n }\n\n }\n }\n }\n }", "public void toggleFavorite() {\n setFavorite(!mFavorite);\n }", "public void onFavouritesIconPressed() {\n if (currentAdvertIsFavourite()) {\n dataModel.removeFromFavourites(advertisement);\n view.setIsNotAFavouriteIcon();\n } else {\n dataModel.addToFavourites(advertisement);\n view.setIsAFavouriteIcon();\n }\n }", "FavoriteQuestions() {\n list = SharedPrefs.getFavList();\n }", "public void likeBook(View v) {\n SharedPreferences sharedPreferences = getSharedPreferences(getString(R.string.preference_file_key), Context.MODE_PRIVATE);\n SharedPreferences.Editor prefEditor = sharedPreferences.edit();\n\n try {\n //If not already liked\n if (!liked) {\n //Get current amount of liked books and put like info\n prefEditor.putBoolean(\"LIKED\" + currentBook.GID, true);\n prefEditor.commit();\n mLikeButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite_red));\n liked = true;\n } else {\n prefEditor.remove(\"LIKED\" + currentBook.GID);\n prefEditor.commit();\n mLikeButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite_border_black));\n liked = false;\n }\n }catch(Exception e){\n e.printStackTrace();\n Toast.makeText(this, \"Book is still loading\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n protected void onActivityResult(int requestCode, int resultCode, Intent data) {\n if (resultCode == RESULT_OK) {\n String packageName = data.getStringExtra(\"packageName\");\n\n SharedPreferences sharedPref = this.getPreferences(Context.MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPref.edit();\n switch (requestCode) {\n case FAVOURITE_INDEX_1:\n setFavouriteButton(favourite1Button, packageName);\n editor.putString(PACKAGE_NAME_FAVOURITE_1, packageName);\n break;\n case FAVOURITE_INDEX_2:\n setFavouriteButton(favourite2Button, packageName);\n editor.putString(PACKAGE_NAME_FAVOURITE_2, packageName);\n break;\n case FAVOURITE_INDEX_3:\n setFavouriteButton(favourite3Button, packageName);\n editor.putString(PACKAGE_NAME_FAVOURITE_3, packageName);\n break;\n case FAVOURITE_INDEX_4:\n setFavouriteButton(favourite4Button, packageName);\n editor.putString(PACKAGE_NAME_FAVOURITE_4, packageName);\n break;\n }\n\n editor.commit();\n } else {\n Log.e(\"FavoritesActivity\", \"Failed to pick app\");\n }\n }", "public void toggleFavorite() {\n\t\tsynchronized (this) {\n\t\t\tif (mFavoritesCache != null) {\n\t\t\t\tmFavoritesCache.toggleSong(getAudioId(), getTrackHost(),\n\t\t\t\t\t\tgetTrackName(), getAlbumName(), getArtistName());\n\t\t\t}\n\t\t}\n\t}", "private void showFavouriteList() {\n setToolbarText(R.string.title_activity_fave_list);\n showFavouriteIcon(false);\n buildList(getFavourites());\n }", "private void initFavoriteButtonUI() {\n if (mNeighbour.isFavorite())\n mFavoriteBtn.setImageResource(R.drawable.ic_star_yellow_24dp);\n else\n mFavoriteBtn.setImageResource(R.drawable.ic_star_grey_24dp);\n }", "public void onFavButtonClicked(View view) {\n isFav = !isFav;\n toggleButtonText(isFav);\n \n // Update DB\n new OperateWithDBMovieAsyncTask().execute(isFav ? ADD_MOVIE : REMOVE_MOVIE);\n }", "public void saveFavorite(){\n //make sure movie is NOT already a favorite\n if(!mMovieStaff.alreadyFavorite(mMovie.getTMDBId())){\n //is a new favorite, favorite movie list status has changed\n mFavoriteChanged = true;\n\n //set movie item favorite status as true\n mMovie.setFavorite(true);\n\n //save movie to favorite database table\n mMovieValet.saveFavorite(mMovie);\n\n //add movie to favorite movie list buffer\n mMovieStaff.addFavorite(mMovie);\n }\n\n //check if movie list type is display a favorite list and if the device is a tablet\n if(mMovieType == PosterHelper.NAME_ID_FAVORITE && mIsTablet){\n //both yes, get favorite movies to update poster fragment\n getMovieList(PosterHelper.NAME_ID_FAVORITE);\n }\n }", "@Override\n public void onResume() {\n super.onResume();\n initListFavorite();\n }", "@Override\n public void onClick(View view) {\n isFavorite = !isFavorite;\n\n if (isFavorite) {\n Toast.makeText(ShowTeacherActivity.this,\n getString(R.string.message_teacher_add_to_favorites), Toast.LENGTH_SHORT)\n .show();\n presenter.saveFavorite(ShowTeacherActivity.this, teacher);\n ibFavorite.setImageResource(R.drawable.ic_favorite_full);\n } else {\n Toast.makeText(ShowTeacherActivity.this,\n getString(R.string.message_teacher_delete_from_favorites), Toast.LENGTH_SHORT)\n .show();\n presenter.deleteFavorite(ShowTeacherActivity.this, teacher.getId());\n ibFavorite.setImageResource(R.drawable.ic_favorite_border);\n }\n }", "public void backToPosters(){\n //check if favorite list is going to be displayed or if favorite list has changed\n if(mMovieType == PosterHelper.NAME_ID_FAVORITE && mFavoriteChanged){\n //refresh favorite list\n showMovieList(mMovieStaff.getMovies(PosterHelper.NAME_ID_FAVORITE),\n PosterHelper.NAME_ID_FAVORITE);\n }\n }", "public void setFavorite(boolean favorite) {\n if (mFavorite != favorite) {\n mFavorite = favorite;\n // Avoid infinite recursions if setChecked() is called from a listener\n if (mBroadcasting) {\n return;\n }\n\n mBroadcasting = true;\n if (mOnFavoriteChangeListener != null) {\n mOnFavoriteChangeListener.onFavoriteChanged(this, mFavorite);\n }\n updateFavoriteButton(favorite);\n mBroadcasting = false;\n }\n }", "public void onClicklistenerForFavorites(View view){\n if(isAlreadyFavorteis() == true){\n Boolean hasDeleted = dBhelper.deleteFavortiesByCategoryId(userAskAbout,inputSpinnerOne.getSelectedItemPosition(),inputSpinnertow.getSelectedItemPosition());\n if(hasDeleted == true) {\n Toast.makeText(getApplicationContext(), \"Your data has deleted in Favorties\", Toast.LENGTH_LONG).show();\n favortiesImageView.setBackgroundResource(R.drawable.ic_favourites);\n isAlreadyFavorties = false;\n }\n\n }else\n {\n favortiesMethed();\n isAlreadyFavorties = true;\n favortiesImageView.setBackgroundResource(R.drawable.ic_favourites_pressed);\n }\n\n }", "public final void resetFavorites() {\n Favorites favorites = Favorites.INSTANCE;\n favorites.clear();\n favorites.load(this.persistenceWrapper.readFavorites());\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n prefs.edit().putBoolean(\"prefs_shown_star_tip\", true).apply();\n //Using apply (instead of commit), because we don't want to stall the UI-thread.\n //apply will make the change in memory, and then save it to persistent story\n //on a background thread.\n }", "@Override\n public void onClick(View view) {\n Utils.saveInSharedPreference(activity, \"filter-state\", \"isStarFilterOn\", isStarFilterOn );\n Utils.saveInSharedPreference(activity, \"filter-state\", \"isFavFilterOn\", isFavFilterOn );\n\n if(!isFavFilterOn && !isStarFilterOn) {\n recyclerViewAdapter.getFilter().filter(\"A\"); //display entire list\n }\n else {\n recyclerViewAdapter.getFilter().filter(Utils.getFilterSting(isStarFilterOn, isFavFilterOn));\n }\n drawerLayout.closeDrawers();\n }", "private void premium_isFavOrLike(Context context, ArticleBean articleBean, final ListingIconView favStartImg, final ListingIconView toggleLikeDisLikeImg) {\n ApiManager.isExistFavNdLike(context, articleBean.getArticleId())\n .subscribe(likeVal -> {\n int like = (int) likeVal;\n if (articleBean != null) {\n articleBean.setIsFavourite(like);\n }\n favStartImg.setVisibility(View.VISIBLE);\n favStartImg.setEnabled(true);\n toggleLikeDisLikeImg.setVisibility(View.VISIBLE);\n toggleLikeDisLikeImg.setEnabled(true);\n\n if(THPConstants.IS_USE_SEVER_THEME) {\n if (like == NetConstants.LIKE_NEUTRAL) {\n // 11 = app:iconType=\"unfavourite\"\n favStartImg.updateIcon(11);\n // 10 = app:iconType=\"dislike\"\n toggleLikeDisLikeImg.updateIcon(10);\n }\n else if (like == NetConstants.LIKE_YES) {\n // 2 = app:iconType=\"favourite\"\n favStartImg.updateIcon(2);\n // 10 = app:iconType=\"dislike\"\n toggleLikeDisLikeImg.updateIcon(10);\n }\n else if (like == NetConstants.LIKE_NO) {\n // 11 = app:iconType=\"unfavourite\"\n favStartImg.updateIcon(11);\n // 6 = app:iconType=\"like\"\n toggleLikeDisLikeImg.updateIcon(6);\n }\n }\n else {\n if (like == NetConstants.LIKE_NEUTRAL) {\n favStartImg.setImageResource(R.drawable.ic_like_unselected);\n toggleLikeDisLikeImg.setImageResource(R.drawable.ic_switch_off_copy);\n } else if (like == NetConstants.LIKE_YES) {\n favStartImg.setImageResource(R.drawable.ic_like_selected);\n toggleLikeDisLikeImg.setImageResource(R.drawable.ic_switch_off_copy);\n } else if (like == NetConstants.LIKE_NO) {\n favStartImg.setImageResource(R.drawable.ic_like_unselected);\n toggleLikeDisLikeImg.setImageResource(R.drawable.ic_switch_on_copy);\n }\n }\n\n }, val -> {\n Log.i(\"\", \"\");\n });\n }", "public void handleStar(boolean isFavorite) {\n isLoadingFinished = true;\n isLoadingFinished_isFavorite = isFavorite;\n if (mStarMenuItem == null) {\n return;\n }\n //endof workaround\n mStarMenuItem.setVisible(true);\n if (isFavorite) { //column in database is null when not starred.\n mStarMenuItem.setChecked(true);\n mStarMenuItem.setTitle(R.string.action_star_remove);\n mStarMenuItem.setIcon(android.R.drawable.btn_star_big_on);\n //Google Play Games\n try {\n Games.Achievements.increment(apiClientGetter.getGoogleApiClient(), getActivity().getString(R.string.achievement_personal_schedule), 1);\n } catch(IllegalStateException e){\n //This happens when GoogleApiClient is not connected yet.\n //Ignore this error, user gets Achievement next time.\n }\n } else {\n mStarMenuItem.setChecked(false);\n mStarMenuItem.setTitle(R.string.action_star_add);\n mStarMenuItem.setIcon(android.R.drawable.btn_star_big_off);\n }\n persistFavorite(isFavorite);\n }", "public void toggleFavorites()\n {\n this.showFavorites = !this.showFavorites;\n this.setupMorphs(Morphing.get(this.mc.thePlayer));\n }", "public void setFavorite(boolean favorite) {\n isFavorite = favorite;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n // action with ID action_refresh was selected\n case R.id.action_refresh:\n FavouritesFragment fav = mSectionsPagerAdapter.currentFavFragment;\n Toast.makeText(fav.getContext(), \"Refresh selected\", Toast.LENGTH_SHORT)\n .show();\n fav.getAdapter().changeList(dbHelper.getAllFavourites());\n break;\n // action with ID action_settings was selected\n case R.id.action_settings:\n Toast.makeText(this, \"Settings selected\", Toast.LENGTH_SHORT)\n .show();\n break;\n default:\n break;\n }\n\n return true;\n\n}", "public void setUpFavouriteIcon() {\n if (isUserOwner()) {\n view.hideFavouriteIcon();\n } else if (currentAdvertIsFavourite()) {\n view.setIsAFavouriteIcon();\n } else {\n view.setIsNotAFavouriteIcon();\n }\n }", "public void ratings(){\n SimpleActivity activity = getSimpleActivity();\n RatingBar ratingBar = (RatingBar) activity.findViewById(R.id.ratingBar);\n friendsPreference = PreferenceManager.getDefaultSharedPreferences(activity);\n if (friendsPreference.getFloat(friendNameFragment+\"Rating\", 0)!=0) {\n ratingBar.setRating(friendsPreference.getFloat(friendNameFragment+\"Rating\", 0));\n }\n }", "public static void updateFavorite(String userId, final String foodId, final boolean option, final ImageButton favButton) {\n //get database reference\n final DatabaseReference dbref = FirebaseDatabase.getInstance().getReference(\"users\").child(userId);\n //add eventlistener to reference\n dbref.child(\"favoritesList\").addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot dataSnapshot) {\n ArrayList<String> updated = new ArrayList<>();\n boolean exists = false;\n for (DataSnapshot favDataSnapshot : dataSnapshot.getChildren()) {\n String fav = favDataSnapshot.getValue(String.class);\n if (!option) {\n if (foodId.equals(fav))\n Log.d(\"favor\", \"this one should be deleted \");\n else\n updated.add(fav);\n } else {\n if (foodId.equals(fav)) {\n exists = true;\n updated.add(fav);\n } else\n updated.add(fav);\n }\n }\n if (!exists && option) {\n favButton.setImageResource(R.drawable.ic_favorite);\n updated.add(foodId);\n }\n else\n favButton.setImageResource(R.drawable.ic_favorite_empty);\n dbref.child(\"favoritesList\").setValue(updated);\n\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n\n }\n });\n }", "public boolean isFavorite() {\n return isFavorite;\n }", "public boolean isFavorite() {\n return isFavorite;\n }", "@Override\n\tpublic boolean isFavorite() {\n\t\treturn this.isFavorite;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.menu_refresh:\n Toast.makeText(this, \"Refreshing data\", Toast.LENGTH_SHORT).show();\n SharedPreferences pref = getPreferences(Context.MODE_PRIVATE);\n int mode = pref.getInt(\"display_status_key\", 1);\n\n //hasil yang disimpan dari display_status_key\n if (mode == 1) {\n getNowPlayingMovies();\n } else {\n getUpComingMovies();\n }\n //getNowPlayingMovies();\n break;\n\n case R.id.now_playing:\n getNowPlayingMovies();\n break;\n\n case R.id.up_coming:\n getUpComingMovies();\n break;\n }\n\n //if (id==R.id.menu_refresh){\n // getNowPlayingMovies();\n //loadDummyData();\n //}\n return super.onOptionsItemSelected(item);\n }", "public void onLoadMenuMyFavoritesSelected();", "public void changeFavorite(boolean a) {\r\n favorite = a;\r\n }", "public static void findFavourites() {\n DataManager.currentFavouritesList.clear();\n\n for (int i = 0; i < DataManager.fullFavouritesList.size(); i++) {\n Attraction attraction = DataManager.findAttractionByName(DataManager.fullFavouritesList.get(i));\n\n if (attraction != null) {\n DataManager.currentFavouritesList.add(attraction);\n }\n }\n\n FavouritesListFragment.backgroundLayout.setVisibility(DataManager.currentFavouritesList.size() == 0 ? View.VISIBLE : View.INVISIBLE);\n\n AttractionsListFragment.attractionsAdapter.notifyDataSetChanged();\n }", "public void setToFavorite(boolean favorite) {\n this.isFavorite = favorite;\n }", "public void onClickFavoriteButton() {\n String snackBarText;\n if (isFavorite) {\n diskIO.execute(new Runnable() {\n @Override\n public void run() {\n mDatabase.movieDao().delete(movie);\n }\n });\n isFavorite = false;\n mBinding.favoriteButton.setImageResource(R.drawable.ic_star_border_white_24px);\n snackBarText = getString(R.string.remove_favorite);\n } else {\n diskIO.execute(new Runnable() {\n @Override\n public void run() {\n mDatabase.movieDao().insert(movie);\n }\n });\n isFavorite = true;\n mBinding.favoriteButton.setImageResource(R.drawable.ic_star_white_24px);\n snackBarText = getString(R.string.add_favorite);\n }\n Snackbar.make(mBinding.coordinatorLayout, snackBarText, Snackbar.LENGTH_SHORT).show();\n }", "private void toggleFavorite(Set<Long> selectedSet) {\n toggleMultiple(selectedSet, new MultiToggleHelper() {\n\n @Override\n public boolean getField(Cursor c) {\n return c.getInt(MessagesAdapter.COLUMN_FAVORITE) != 0;\n }\n\n @Override\n public void setField(long messageId, boolean newValue) {\n mController.setMessageFavoriteSync(messageId, newValue);\n }\n });\n }", "public void setFavorite(boolean favorite) {\n this.favorite = favorite;\n }", "boolean isFavorite(int id);", "@FXML\n private void toggleFavorite() {\n raise(new ToggleFavoritePersonEvent(id.getText().substring(0, id.getText().indexOf(\".\"))));\n }", "@Override\n public void onClick(View v) \n {\n AlertDialog.Builder builder = \n new AlertDialog.Builder(Favorites.this);\n\n builder.setTitle(R.string.confirmTitle); // title bar string\n\n // provide an OK button that simply dismisses the dialog\n builder.setPositiveButton(R.string.erase,\n new DialogInterface.OnClickListener()\n {\n @Override\n public void onClick(DialogInterface dialog, int button)\n {\n clearButtons(); // clear all saved searches from the map\n \n // get a SharedPreferences.Editor to clear searches\n SharedPreferences.Editor preferencesEditor = \n savedSiteList.edit();\n \n preferencesEditor.clear(); // remove all url name/site_name pairs\n preferencesEditor.apply(); // the changes\n } \n } \n );\n \n builder.setCancelable(true);\n builder.setNegativeButton(R.string.cancel, null);\n \n // set the message to display\n builder.setMessage(R.string.confirmMessage);\n \n // create AlertDialog from the AlertDialog.Builder\n AlertDialog confirmDialog = builder.create();\n confirmDialog.show(); // display the Dialog\n }", "private void setUpFavoriteMovieButton () {\n MovieDetailsViewModelFactory factory = new MovieDetailsViewModelFactory (mDb, movie.getMovieId());\n final MovieDetailsViewModel viewModel = ViewModelProviders.of(this, factory).get(MovieDetailsViewModel.class);\n\n // Observe the LiveData object in the ViewModel. Use it also when removing the observer\n viewModel.getMovie().observe(this, new Observer<Movie>() {\n @Override\n public void onChanged(@Nullable Movie dbMovie) {\n viewModel.getMovie().removeObserver(this);\n\n if (dbMovie == null) {\n favoriteMoviesButton.setChecked (false);\n } else if ((movie.getMovieId() == dbMovie.getMovieId()) && !favoriteMoviesButton.isChecked ()){\n favoriteMoviesButton.setChecked (true);\n } else {\n favoriteMoviesButton.setChecked (false);\n }\n }\n });\n }", "@Override\n\t\t\t\tpublic void onClick(View v) {\n\n\t\t\t\t\tif(item.reward.getReward_favorite()==0)\n\t\t\t\t\t{\n\t\t\t\t\t\titem.reward.setReward_favorite(1);\n\t\t\t\t\t\timgFavorite.setImageResource(R.drawable.orange_star);\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\titem.reward.setReward_favorite(0);\n\t\t\t\t\t\timgFavorite.setImageResource(R.drawable.black_star);\n\t\t\t\t\t}\n\t\t\t\t}", "private void updatePreferenceIcon() {\n int alarmVolume = mAudioManager.getStreamVolume(AudioManager.STREAM_ALARM);\n if (mPreference != null) {\n mPreference.showIcon(alarmVolume == 0 ?R.drawable.ic_audio_alarm_mute : R.drawable.ic_audio_alarm);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_favorite:\n ItemFavoriteUrl db = new ItemFavoriteUrl(webView.getTitle(), webView.getUrl());\n db.save();\n adapter.notifyDataSetChanged();\n //adapter.add(ItemFavoriteUrl.findById(ItemFavoriteUrl.class, ItemFavoriteUrl.count(ItemFavoriteUrl.class)));\n Toast.makeText(MainActivity.this, R.string.favorite_saved, Toast.LENGTH_SHORT).show();\n /*for (int i=0; i<ItemFavoriteUrl.count(ItemFavoriteUrl.class); i++) {\n db = ItemFavoriteUrl.find\n Log.d(\"db\", db.url);\n }*/\n Log.d(\"count\", adapter.getCount() + \"\");\n break;\n\n case R.id.action_clear:\n ItemFavoriteUrl.deleteAll(ItemFavoriteUrl.class);\n adapter.notifyDataSetChanged();\n Toast.makeText(MainActivity.this, R.string.clear, Toast.LENGTH_SHORT).show();\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 == R.id.action_settings) {\n\n return true;\n }\n if (id == R.id.action_fav) {\n Intent intent = new Intent(getApplicationContext(),ThirdActivity.class);\n startActivity(intent);\n return true;\n }\n if (id == R.id.action_addfav) {\n\n int i = 0;\n Map<String, ?> map = sharedPreferences.getAll();\n for(Map.Entry mEntry : map.entrySet()){\n if(Pattern.matches(\"fav \"+titre.getText(), mEntry.getKey()+\"\")){\n Toast.makeText(this,titre.getText()+\" removed from favorite\",Toast.LENGTH_SHORT).show();\n sharedPreferences\n .edit()\n .remove(mEntry.getKey()+\"\")\n .remove(titre.getText()+\" id\")\n .apply();\n i=1;\n }\n }\n\n if(i==0) {\n Toast.makeText(this, titre.getText() + \" added to favorite\", Toast.LENGTH_SHORT).show();\n sharedPreferences\n .edit()\n .putString(\"fav \" + titre.getText(), titre.getText() + \"\")\n .putInt(titre.getText() + \" id\", idAnime)\n .apply();\n }\n i=0;\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 == R.id.action_fav) {\n FavoritesDataSource dataSource = new FavoritesDataSource(getBaseContext());\n dataSource.open();\n if(isFav){\n //remove from favorites\n dataSource.deleteFromFavorites(placeid);\n item.setIcon(R.drawable.ic_heart_outline_white);\n Toast.makeText(getBaseContext(),placeName+\" was removed from favorites\",Toast.LENGTH_SHORT).show();\n isFav = false;\n }else{\n //add to favorites\n Place place = new Place(placeid,placeName,address,true,picURL);\n dataSource.addToFavorites(place);\n item.setIcon(R.drawable.ic_heart_fill_white);\n Toast.makeText(getBaseContext(),placeName+\" was added to favorites\",Toast.LENGTH_SHORT).show();\n isFav = true;\n }\n dataSource.close();\n return true;\n }else if(id == R.id.action_share){\n //open twitter url\n String tweetParams = \"text=\"+ URLEncoder.encode(\"Check out \"+placeName+\" located at \"+address+\". Website \")+\"&url=\"+URLEncoder.encode(tweetURL)+\"&hashtags=TravelAndEntertainmentSearch\";\n Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(\"https://twitter.com/intent/tweet?\"+tweetParams));\n startActivity(browserIntent);\n return true;\n }else if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@FXML\n private void selectedSong() {\n if(isFav){\n String s = songList.getSelectionModel().getSelectedItem(); // selection song from favorite playlist //\n songFile = FavoriteSong(s); \n } \n else{\n String s = songList.getSelectionModel().getSelectedItem(); // selection song from music playlist //\n if(s!=null && !s.isEmpty()){\n int selectedSong = songList.getSelectionModel().getSelectedIndex();\n songFile = songs[selectedSong];\n }\n }\n playButtonAction();\n }", "void favoriteView();", "@MediumTest\n\tpublic void testFavMensaPersistedBetweenLaunches() {\n\t\tmFavButton = (ToggleButton) getActivity()\n\t\t\t\t.findViewById(R.id.tgl_favorite);\n\t\tassertEquals(mFavButton.isChecked(), false);\n\n\t\tactivity.runOnUiThread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tmFavButton.setChecked(true);\n\t\t\t}\n\t\t});\n\n\t\t// close the activity\n\t\tactivity.finish();\n\t\tsetActivity(null);//force creation of a new Activity\n\t\t// relaunch the activity\n\t\tactivity = this.getActivity();\n\n\t\tmFavButton = (ToggleButton) getActivity()\n\t\t\t\t.findViewById(R.id.tgl_favorite);\n\t\tassertEquals(mFavButton.isChecked(), true);\n\n\t\tactivity.runOnUiThread(new Runnable() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tmFavButton.setChecked(false);\n\t\t\t}\n\t\t});\n\n\t\tactivity.finish();\n\t\tsetActivity(null);\n\t\tactivity = this.getActivity();\n\n\t\tmFavButton = (ToggleButton) getActivity()\n\t\t\t\t.findViewById(R.id.tgl_favorite);\n\t\tassertEquals(mFavButton.isChecked(), false);\n\t}", "@Override\n public void onFavoriteDatabaseChanged() {\n //setCategoryCount(FileCategory.Favorite, mFavoriteList.getCount());\n }", "@Override\n\tpublic void setFavorite(boolean value) {\n\t\tthis.isFavorite = value;\n\t}", "private boolean isFavorite() {\n for (int favoriteIndex : favoriteIndexes) {\n if (favoriteIndex == shownTipIndex) {\n return true;\n }\n }\n return false;\n }", "@FXML\n private void chooseFavouritePhotoEvent() {\n if (!PhotoManager.getFavouriteList().isEmpty()) {\n User.setGalleryPhotos(PhotoManager.getFavouriteList());\n fadeOutEvent();\n }\n }", "@Override\n public void onClick(View v) {\n SharedPreferences.Editor prefsEditor = settingsPreferences.edit();\n if (settingsPreferences.getBoolean(TAG_ASCAN_MODIFIED_FILES, false)) {\n prefsEditor.putBoolean(TAG_ASCAN_MODIFIED_FILES, false);\n cbModFiles.setImageResource(R.drawable.check2);\n } else {\n prefsEditor.putBoolean(TAG_ASCAN_MODIFIED_FILES, true);\n cbModFiles.setImageResource(R.drawable.check0);\n }\n prefsEditor.commit();\n }", "public static boolean checkForFavorite(Context context,String id){\n Set<String> setSavedFav = getAllFavorites(context);\n if(setSavedFav!=null){\n Log.v(TAG,\"SAVED ID: \"+setSavedFav);\n if(setSavedFav.contains(id))\n return true;\n }\n return false;\n }", "@FXML\n private void musicButtonAction(ActionEvent event) {\n songList.getItems().clear();\n loadSongs(); // calling loadSong method //\n isFav = false;\n }", "public interface OnFavoriteChangeListener {\n /**\n * Called when the favorite state is changed.\n *\n * @param buttonView the button view whose state has changed\n * @param favorite the favorite state\n */\n public void onFavoriteChanged(MaterialFavoriteButton buttonView, boolean favorite);\n }", "public void refresh() {\r\n\r\n if (searchResultAdapter != null\r\n && preferencesManager.getProperty(\r\n PreferencesManager.IS_THEME_CHANGED, false)) {\r\n\r\n searchResultAdapter.notifyDataSetChanged();\r\n }\r\n\r\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t/**\n\t\t * Get Extra values\n\t\t */\n\t\tBundle b = getIntent().getExtras();\n\t\tif (b != null) {\n\t\t\tKEY_IS_SHARING = b.getBoolean(Const.KEY_IS_SHARING, false);\n\t\t\tKEY_IS_SHARE_SONG = b.getInt(Const.KEY_SHARE_TYPE,\n\t\t\t\t\tShareUtility.TYPE_SONG) == ShareUtility.TYPE_SONG;\n\t\t\tSHARING_OBJECT_ID = b.getInt(Const.KEY_SHARE_VALUE, 0);\n\t\t\tif (KEY_IS_SHARING) {\n\t\t\t\tbtn_Addfriend\n\t\t\t\t.setBackgroundResource(R.drawable.selector_button_share);\n\t\t\t\tbtn_Addfriend.setText(\"Chia sẻ\");\n\t\t\t}\n\t\t}\n\t\tif (KEY_IS_SHARING || KEY_BACK_FROM_SHARE\n\t\t\t\t|| !MSISDN.equals(datastore.getMsisdn())) {\n\t\t\tfriend_adapter = null;\n\t\t\tfan_adapter = null;\n\t\t}\n\t\tif (KEY_BACK_FROM_PROFILE || !MSISDN.equals(datastore.getMsisdn())) {\n\t\t\tswitch (tab_interested_fan.getCheckedRadioButtonId()) {\n\t\t\tcase R.id.btn_Interested:\n\t\t\t\tif(KEY_IS_SEARCHING) {\n\t\t\t\t\tfriend_search_adapter = null;\n\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_SEARCHING, 0, false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfriend_adapter = null;\n\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_LISTING, 0, false);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase R.id.btn_Fan:\n\t\t\t\tif(KEY_IS_SEARCHING) {\n\t\t\t\t\tfan_search_adapter = null;\n\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_SEARCHING, 0, false);\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfan_adapter = null;\n\t\t\t\t\tLoadListFriend(Const.TYPE_FRIEND_FAN_LISTING, 0, false);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} else\n\t\t\tLoadListFriend(Const.TYPE_FRIEND_IDOL_LISTING, 0, false);\n\t}", "private boolean checkIfFavorite() {\n if (favoriteIds.contains(movie.getId())) {\n movie.setFavorite(true);\n return true;\n }\n movie.setFavorite(false);\n return false;\n }", "private void retrieveFavoritePhotos() {\n showProgress(this.mProgressBar, this.mRlContent);\n this.mFavoritePhotosViewModel.retrievePhotos();\n }", "public void Refresh_button() {\n\t\tthis.defaultSetup();\n\t}", "@Override\n public void onClick(View v) {\n SharedPreferences.Editor prefsEditor = settingsPreferences.edit();\n if (settingsPreferences.getBoolean(TAG_SOUND_NOTIFICATION, false)) {\n prefsEditor.putBoolean(TAG_SOUND_NOTIFICATION, false);\n cbSoundNotify.setImageResource(R.drawable.check2);\n } else {\n prefsEditor.putBoolean(TAG_SOUND_NOTIFICATION, true);\n cbSoundNotify.setImageResource(R.drawable.check0);\n }\n prefsEditor.commit();\n }", "private void updateButtonWithPreferences() {\n\t\tRadioButton c1 = (RadioButton)findViewById(R.id.ch_01Setting);\n\t\tRadioButton c2 = (RadioButton)findViewById(R.id.ch_02Setting);\n\t\tRadioButton c3 = (RadioButton)findViewById(R.id.ch_03Setting);\n\t\tRadioButton c4 = (RadioButton)findViewById(R.id.ch_04Setting);\n\t\tRadioButton c5 = (RadioButton)findViewById(R.id.ch_05Setting);\n\t\tRadioButton c6 = (RadioButton)findViewById(R.id.ch_06Setting);\n\t\tRadioButton c061 = (RadioButton)findViewById(R.id.ch_061Setting);\n\t\tRadioButton c7 = (RadioButton)findViewById(R.id.ch_07Setting);\n\t\tRadioButton c8 = (RadioButton)findViewById(R.id.ch_08Setting);\n\t\tRadioButton c9 = (RadioButton)findViewById(R.id.ch_09Setting);\n\t\tRadioButton c10 = (RadioButton)findViewById(R.id.ch_10Setting);\n\t\tRadioButton c11 = (RadioButton)findViewById(R.id.ch_11Setting);\n\t\tRadioButton c111 = (RadioButton)findViewById(R.id.ch_111Setting);\n\t\tRadioButton c12 = (RadioButton)findViewById(R.id.ch_12Setting);\n\t\tRadioButton c13 = (RadioButton)findViewById(R.id.ch_13Setting);\n\t\tRadioButton c131 = (RadioButton)findViewById(R.id.ch_131Setting);\n\t\tRadioButton c14 = (RadioButton)findViewById(R.id.ch_14Setting);\n\t\tRadioButton c15 = (RadioButton)findViewById(R.id.ch_15Setting);\n\t\tRadioButton c16 = (RadioButton)findViewById(R.id.ch_16Setting);\n\t\tRadioButton c17 = (RadioButton)findViewById(R.id.ch_17Setting);\n\t\tRadioButton c18 = (RadioButton)findViewById(R.id.ch_18Setting);\n\t\tRadioButton c19 = (RadioButton)findViewById(R.id.ch_19Setting);\n\t\tRadioButton c20 = (RadioButton)findViewById(R.id.ch_20Setting);\n\t\tRadioButton c21 = (RadioButton)findViewById(R.id.ch_21Setting);\n\t\tRadioButton c22 = (RadioButton)findViewById(R.id.ch_22Setting);\n\t\tRadioButton c23 = (RadioButton)findViewById(R.id.ch_23Setting);\n\t\tRadioButton c24 = (RadioButton)findViewById(R.id.ch_24Setting);\n\t\tRadioButton c25 = (RadioButton)findViewById(R.id.ch_25Setting);\n\t\tRadioButton c26 = (RadioButton)findViewById(R.id.ch_26Setting);\n\t\tRadioButton c27 = (RadioButton)findViewById(R.id.ch_27Setting);\n\t\tRadioButton c28 = (RadioButton)findViewById(R.id.ch_28Setting);\n\t\tRadioButton c29 = (RadioButton)findViewById(R.id.ch_29Setting);\n\t\tRadioButton c291 = (RadioButton)findViewById(R.id.ch_291Setting);\n\t\tRadioButton c30 = (RadioButton)findViewById(R.id.ch_30Setting);\n\t\tRadioButton c31 = (RadioButton)findViewById(R.id.ch_31Setting);\n\t\tRadioButton c32 = (RadioButton)findViewById(R.id.ch_32Setting);\n\t\tRadioButton c321 = (RadioButton)findViewById(R.id.ch_321Setting);\n\t\tRadioButton c322 = (RadioButton)findViewById(R.id.ch_322Setting);\n\t\t\n\t\tSharedPreferences settings = getSharedPreferences(Constants.SETTINGS, 0);\n\t\tint diff = settings.getInt(Constants.CHAPTER, Constants.CH_01);\n\t\t\n\t\tswitch (diff)\n\t\t{\n\t\tcase Constants.CH_01 : \n\t\t\tc1.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_02 : \n\t\t\tc2.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_03 :\n\t\t\tc3.toggle();\n\t\t\tbreak;\t\n\t\t\t\n\t\tcase Constants.CH_04 : \n\t\t\tc4.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_05 : \n\t\t\tc5.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_06 :\n\t\t\tc6.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_061 :\n\t\t\tc061.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_07 : \n\t\t\tc7.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_08 : \n\t\t\tc8.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_09 :\n\t\t\tc9.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_10 : \n\t\t\tc10.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_11 : \n\t\t\tc11.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_111 : \n\t\t\tc111.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_12 :\n\t\t\tc12.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_13 : \n\t\t\tc13.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_131 : \n\t\t\tc131.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_14 : \n\t\t\tc14.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_15 :\n\t\t\tc15.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_16 : \n\t\t\tc16.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_17 : \n\t\t\tc17.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_18 :\n\t\t\tc18.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_19 : \n\t\t\tc19.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_20 : \n\t\t\tc20.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_21 :\n\t\t\tc21.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_22 : \n\t\t\tc22.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_23 : \n\t\t\tc23.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_24 :\n\t\t\tc24.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_25 : \n\t\t\tc25.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_26 : \n\t\t\tc26.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_27 :\n\t\t\tc27.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_28 : \n\t\t\tc28.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_29 : \n\t\t\tc29.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_291 : \n\t\t\tc291.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_30 :\n\t\t\tc30.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_31 : \n\t\t\tc31.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_32 : \n\t\t\tc32.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_321 : \n\t\t\tc321.toggle();\n\t\t\tbreak;\n\t\t\t\n\t\tcase Constants.CH_322 : \n\t\t\tc322.toggle();\n\t\t\tbreak;\n\t\t}\n\t}", "public void onClick(View v) {\n favorite_league = selected_league;\n favorite_team = selected_team;\n startWriteFavorite(v);\n if( !(favorite_team.equals(\"\")) && !(favorite_league.equals(\"\"))) favorite.setText(favorite_team +\" (\" +favorite_league +\")\");\n }", "public void refresh() {\n clearList();\n for(int i =0;i<toDoList.toDoListLength();i++){\n JRadioButton task = toDoButtonList.get(i);\n task.setText(toDoList.getTask(i).toString());\n }\n }", "private void reloadButtons(String newList) \n {\n // store saved url/url names in the lists array\n String[] lists = \n savedSiteList.getAll().keySet().toArray(new String[0]); \n Arrays.sort(lists, String.CASE_INSENSITIVE_ORDER); // sort by list\n\n // if a new list was added, insert in GUI at the appropriate location\n if (newList != null)\n {\n makeListGUI(newList, Arrays.binarySearch(lists, newList));\n }\n else // display GUI for all lists\n { \n // display all saved searches\n for (int index = 0; index < lists.length; ++index)\n makeListGUI(lists[index], index);\n } \n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsiv_update.changeSwitchStatus();\n\t\t\t\tEditor editor = sharedPreferences.edit();\n\t\t\t\teditor.putBoolean(MobileGuard.APP_AUTO_UPDATE,\n\t\t\t\t\t\tsiv_update.getSwitchStatus());\n\t\t\t\teditor.commit();\n\t\t\t}", "public void setIsUserFav(User user) {\n if(user.isUsersFavouritePost(this.mPost))\n this.isFavourite.set(true);\n else\n this.isFavourite.set(false);\n\n //if(this.mPost.getFavourite().contains(user))\n // this.isFavourite.set(true);\n //this.isFavourite.set(false);\n }", "@Override\n public void onClick(View v) {\n SharedPreferences.Editor prefsEditor = settingsPreferences.edit();\n if (settingsPreferences.getBoolean(TAG_VIBE_NOTIFICATION, false)) {\n prefsEditor.putBoolean(TAG_VIBE_NOTIFICATION, false);\n cbVibeNotify.setImageResource(R.drawable.check2);\n } else {\n prefsEditor.putBoolean(TAG_VIBE_NOTIFICATION, true);\n cbVibeNotify.setImageResource(R.drawable.check0);\n }\n prefsEditor.commit();\n }", "private void displayPrevious() {\n SharedPreferences filterSetting = getSharedPreferences(\"filterSetting\",0);\n myMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"myMostRecent\",false));\n myDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"myDisplayAll\",false));\n foMostRecentWeekCheckbox.setChecked(filterSetting.getBoolean(\"foMostRecent\",false));\n foDisplayAllCheckbox.setChecked(filterSetting.getBoolean(\"foDisplayAll\",false));\n myReasonEditText.setText(filterSetting.getString(\"myReason\",null));\n foReasonEditText.setText(filterSetting.getString(\"foReason\",null));\n int mySpinner = filterSetting.getInt(\"mySpinner\",0);\n if (mySpinner != 0){\n myEmotionalStateSpinner.setSelection(mySpinner);\n }\n int foSpinner = filterSetting.getInt(\"foSpinner\",0);\n if (foSpinner != 0){\n foEmotionalStateSpinner.setSelection(foSpinner);\n }\n }", "@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\tif(!stock.isBookmarked()){\n\t\t\t\t\t\t\tToast.makeText(StockListActivity.this, stock.getStockCode().toString()+\" added to Watchlist \",Toast.LENGTH_SHORT).show\n\n\t();\n\t\t\t\t\t\t\tstock.setBookmarked(true);\n\t\t\t\t\t\t\taddToWatchlist(stock);\n\t\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_yes);\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\t\tToast.makeText(StockListActivity.this, stock.getStockCode().toString()+\" removed from Watchlist \",Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\tstock.setBookmarked(false);\n\t\t\t\t\t\t\tremoveFromWatchlist(stock);\n\t\t\t\t\t\t\tiButton.setImageResource(R.drawable.bookmark_no);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void updatePreferences() {\n\n Toast.makeText(this, \"enter your data\", Toast.LENGTH_SHORT).show();\n startActivity(new Intent(this, SipSettingsActivity.class));\n\n }", "public void saveAllNot() {\n SharedPreferences sharedPreferences = getSharedPreferences(SHARED_PREFS, MODE_PRIVATE);\n SharedPreferences.Editor editor = sharedPreferences.edit();\n editor.putBoolean(SW_ALLNOT, allNotifications.isChecked());\n editor.commit();\n }", "@Override\n public void onCheckedChanged(CompoundButton buttonView, boolean isChecked) {\n if (((MemeLab.get(getActivity())).getMemes()).contains(\n MemeLab.get(getActivity()).getMeme(selectedImagePath)) ||\n ((MemeLab.get(getActivity())).getMyanmarMemes()).contains(\n MemeLab.get(getActivity()).getMeme(selectedImagePath)) ||\n (MemeLab.get(getActivity())\n .getCustomMemes()\n .contains(MemeLab.get(getActivity()).getMeme(selectedImagePath)))) {\n if (isChecked) {\n Toast.makeText(getActivity(), \"added to Favorites\", Toast.LENGTH_SHORT).show();\n sendResult(FAVORITE_RESULT, true);\n }\n if (!isChecked) {\n Toast.makeText(getActivity(), \"removed from Favorites\", Toast.LENGTH_SHORT).show();\n sendResult(FAVORITE_RESULT, false);\n }\n } else {\n Toast.makeText(getActivity(), \"cannot add Custom images to Favorites\", Toast.LENGTH_SHORT)\n .show();\n }\n }", "@Override\n public void onClick(View view) {\n helper = new DbHelper(context);\n //estrella click listener\n if (holder.estrella.getColorFilter() != null) {\n holder.estrella.clearColorFilter();\n //pub_id = h.hpub_id.getText().toString();\n //aquí elimina\n //Drawer dra = new Drawer();\n //dra.deleteFavorites(h.hpub_id.getText().toString(), Singin.user.getUser_email());\n //helper.eliminar();\n Toast.makeText(context, \"Favorito eliminado\"/*+ pub_id*/, Toast.LENGTH_SHORT).show();\n\n\n\n } else {\n holder.estrella.setColorFilter(ContextCompat.getColor(context,\n R.color.favorito_color));\n //pub_id = h.hpub_id.getText().toString();\n //aquí añade\n //Drawer dra = new Drawer();\n //dra.addFavorites(dra.createFavorite());\n // helper.insertardatos();\n Toast.makeText(context, \"Favorito Añadido\"/*+ pub_id*/, Toast.LENGTH_SHORT).show();\n }\n }", "public void updateFeedItemAsFavorite(FeedItem item) {\n new updateFeedItemFavoriteAsync(itemDao).execute(item);\n }", "public void removeFavorite(){\n //check if movie is in the user favorite list\n if(mMovieStaff.alreadyFavorite(mMovie.getTMDBId())){\n //is in the favorite list, mark that list has changed\n mFavoriteChanged = true;\n\n //update movie item favorite status\n mMovie.setFavorite(false);\n\n //delete movie item from favorite database table\n mMovieValet.deleteFavorite(mMovie);\n\n //remove movie item from favorite movie list buffer\n mMovieStaff.removeFavorite(mMovie);\n }\n\n //check if movie list type is display a favorite list and if the device is a tablet\n if(mMovieType == PosterHelper.NAME_ID_FAVORITE && mIsTablet){\n //both yes, get favorite movies to update poster fragment\n getMovieList(PosterHelper.NAME_ID_FAVORITE);\n }\n }", "public void testCase04_EditFavoriteToFavorite() {\n boolean find = false;\n float frequency = 0;\n int stationInList = 0;\n String preFavoritaFreq = \"\";\n ListView listView = (ListView) mFMRadioFavorite.findViewById(R.id.station_list);\n FMRadioTestCaseUtil.sleep(SLEEP_TIME);\n assertTrue((listView != null) && (listView.getCount() > 0));\n ListAdapter listAdapter = listView.getAdapter();\n int count = listView.getCount();\n for (int i = 0; i < count; i++) {\n int favoriateCount = 0;\n View view = listAdapter.getView(i, null, listView);\n TextView textView = (TextView) view.findViewById(R.id.lv_station_freq);\n String frequencyStr = textView.getText().toString();\n try {\n frequency = Float.parseFloat(frequencyStr);\n } catch (NumberFormatException e) {\n e.printStackTrace();\n }\n stationInList = (int) (frequency * CONVERT_RATE);\n boolean canAddTo = FMRadioStation.getStationCount(mFMRadioFavorite, FMRadioStation.STATION_TYPE_FAVORITE) < FMRadioStation.MAX_FAVORITE_STATION_COUNT;\n if (FMRadioStation.isFavoriteStation(mFMRadioFavorite, stationInList)) {\n favoriateCount += 1;\n preFavoritaFreq = frequencyStr;\n }\n // add to favoriate\n if (!FMRadioStation.isFavoriteStation(mFMRadioFavorite, stationInList) && canAddTo) {\n mSolo.clickLongOnText(frequencyStr);\n mSolo.clickOnText(FMRadioTestCaseUtil.getProjectString(mContext, R.string.add_to_favorite1, R.string.add_to_favorite));\n mInstrumentation.waitForIdleSync();\n InputMethodManager inputMethodManager = (InputMethodManager)mSolo.getCurrentActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.toggleSoftInput(0, 0);\n mSolo.clickOnButton(mContext.getString(R.string.btn_ok));\n mInstrumentation.waitForIdleSync();\n sleep(SLEEP_TIME);\n assertTrue(FMRadioStation.isFavoriteStation(mFMRadioFavorite, stationInList));\n // edit favoriate to exist favorite\n if (favoriateCount > 0) {\n mSolo.clickLongOnText(frequencyStr);\n mSolo.clickOnText(mContext.getString(R.string.contmenu_item_edit));\n EditText editText = (EditText) mSolo.getView(R.id.dlg_edit_station_name_text);\n mSolo.clearEditText(editText);\n mSolo.enterText(editText, preFavoritaFreq);\n mInstrumentation.waitForIdleSync();\n InputMethodManager inputMethodManager2 = (InputMethodManager)mSolo.getCurrentActivity().getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager2.toggleSoftInput(0, 0);\n mSolo.clickOnButton(mContext.getString(R.string.btn_ok));\n mInstrumentation.waitForIdleSync();\n sleep(SLEEP_TIME);\n assertEquals(preFavoritaFreq, FMRadioStation.getStationName(mFMRadioFavorite, stationInList, FMRadioStation.STATION_TYPE_FAVORITE));\n break;\n }\n }\n }\n testCase03_DeleteFromFavorite();\n }", "public void checkForUpdates(){\n if (mPrefs.getBoolean(PREF_ENABLED, true) && isStale()){\n// forceCheckForUpdates();\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == R.id.action_heart) {\n if(selectedHeart == false) {\n menu.getItem(0).setIcon(filledHeart);\n BackendUtils.doGetRequest(\"/api/like\", new HashMap<String, String>() {{\n put(\"username\", username);\n }}, new VolleyCallback() {\n @Override\n public void onSuccess(String result) {\n Log.d(TAG, result);\n }\n\n @Override\n public void onError(VolleyError error) {\n Log.d(TAG, String.valueOf(error.networkResponse.statusCode));\n }\n }, getApplicationContext(), this);\n\n Toast.makeText(this, \"Liked!\", Toast.LENGTH_SHORT).show();\n selectedHeart = true;\n } else {\n menu.getItem(0).setIcon(unfilledHeart);\n Toast.makeText(this, \"Unliked!\", Toast.LENGTH_SHORT).show();\n selectedHeart = false;\n }\n return true;\n }\n return false;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.history) {\n\t\t\tMainActivity.storiesList.clear();\n\t\t\tSharedPreferences sharedpreferences = getSharedPreferences(MainActivity.MY_PREFERENCES, Context.MODE_PRIVATE);\n\t\t\tEditor editor = sharedpreferences.edit();\n\t\t\teditor.putString(MainActivity.SHARED_PREFERENCES_KEY, \"\");\n\t\t\teditor.commit();\n\t\t\tToast.makeText(StoriesActivity.this, getResources().getString(R.string.clear_favorites), Toast.LENGTH_SHORT).show();\n\t\t\trecreate();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "private void updatePlayStatus(boolean pausing) {\n\t\tif (pausing) {\n\t\t\ttoastMsg(\"Stream is paused.\");\n\t\t\tmBtnPlay.setImageResource(R.drawable.btn_play);\n\t\t} else {\n\t\t\ttoastMsg(\"Stream is resumed.\");\n\t\t\tmBtnPlay.setImageResource(R.drawable.pause);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // action with ID action_refresh was selected\n case R.id.add_to_favorite_btn:\n BBCNews.insert(dbOpener, this.bbcNews);\n Toast.makeText(this, getString(R.string.item_is_added_to_favorite), Toast.LENGTH_SHORT)\n .show();\n break;\n default:\n break;\n }\n return true;\n }", "void setProjectFavourite(int accountId, int projectId, boolean favourite);", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch(v.getId()){\n\t\tcase R.id.title_button_refresh:{\n\t\t\tstartProgress();\n\t Uri uri=Uri.parse(\"content://\"+getPackageName()+\".YouTubeProvider/\"+YT.TABLE_PLAYLIST+\"/\"+mPlayListId);\n\t mQueryHandler.startQuery(0, null, uri, null, null, null, null);\t\t\t\n\t\t}\n\t\t\tbreak;\n\t\tcase R.id.title_button_thumb:{\n\t\t\ttoggleThumb();\n\t\t}\n\t\t\tbreak;\n\t\tcase R.id.title_button_important:{\n\t\t\ttoggleImportantButton();\n\t\t\tbreak;\t\t\t\n\t\t}\n\t\tcase R.id.video_list_play_web:\n\t\t\t//playAllorRandom(false);\n\t\t\tplayStandAlone();\n\t\t\tbreak;\n\t\tcase R.id.video_list_play_youtube:{\n\t\t\tplayAllYouTube();\n\t\t\tbreak;\n\t\t}\n\t\tcase R.id.video_list_button_select_mode:\n\t\tcase R.id.video_list_button_play_mode:\n\t\t\ttoggleButtonLayout();\n\t\t\tinitCheckData();\n\t\t\tbreak;\n\t\tcase R.id.video_list_button_add_selected:\n\t\t\tstartProgress();\n\t\t\tnew AsyncTask<Object, Object, Object>(){\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tprotected Object doInBackground(Object... params) {\n\t\t\t\t\taddSelectedtoFavorites();\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tprotected void onPostExecute(Object o){\n\t\t\t\t\tstopProgress();\n\t\t\t\t\t\n\t\t\t\t\tint count=mCheckData.size();\n\t\t\t \tint stringId=R.string.ids_added_to_favorites;\n\t\t\t \tif(count==0){\n\t\t\t \t\tstringId=R.string.ids_no_item_selected;\n\t\t\t \t}\n\t\t\t \tToast.makeText(VideoListActivity.this, getString(stringId), Toast.LENGTH_SHORT).show();\n\t\t\t \t\n\t\t\t\t\tinitCheckData();\n\t\t\t\t\tmListView.invalidateViews();\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}.execute(\"\");\n\n\t\t\tbreak;\t\t\n\t\t\n\t\tcase R.id.video_list_button_play_all:\t\n\t\tcase R.id.main_list_footer_play_all:\n\t\t\tplayAllorRandom(false);\n\t\t\tbreak;\n\t\tcase R.id.video_list_button_play_random:\n\t\tcase R.id.main_list_footer_play_random:\n\t\t\tplayAllorRandom(true);\n\t\t\tbreak;\n\t\tcase R.id.main_list_footer_play_selected:\n\t\tcase R.id.video_list_button_play_selected:\n\t\t\tplaySelected();\n\t\t\tbreak;\n\t\t}\n\t}", "public void onClick(DialogInterface dialog, int which) {\n SharedPreferences sp = getDefaultSharedPreferences(getApplicationContext());\n\n // save the preferences that must be kept\n boolean firstUse = sp.getBoolean(getString(R.string.KEY_FIRST_USE), false);\n int askForRate = sp.getInt(getString(R.string.KEY_ASK_FOR_RATE), getResources().getInteger(R.integer.askForRate_max_value));\n\n SharedPreferences.Editor editor = sp.edit();\n editor.clear();\n editor.putBoolean(getString(R.string.KEY_FIRST_USE), firstUse);\n editor.putInt(getString(R.string.KEY_ASK_FOR_RATE), askForRate);\n editor.apply();\n PreferenceManager.setDefaultValues(getApplicationContext(), R.xml.preferences, true);\n\n // Delete the old fragment and replace with a new one. This will update the summaries\n // (I couldn't find a smarter way to do that...)\n getFragmentManager().beginTransaction()\n .replace(android.R.id.content, new SettingsFragment(), fragment_tag)\n .commit();\n dialog.dismiss();\n }", "private void initListFavorite() {\n favoritesList = mApiService.getFavorites();\n mRecyclerView.setAdapter(new MyNeighbourRecyclerViewAdapter(favoritesList, this));\n }", "@Override\n\tpublic void onFavorite(User source, User target, Status favoritedStatus) {\n\n\t}", "private void updateButtonsState() {\r\n ISelection sel = mTableViewerPackages.getSelection();\r\n boolean hasSelection = sel != null && !sel.isEmpty();\r\n\r\n mUpdateButton.setEnabled(mTablePackages.getItemCount() > 0);\r\n mDeleteButton.setEnabled(hasSelection);\r\n mRefreshButton.setEnabled(true);\r\n }", "public void onReloadClicked() {\n\n }", "public interface Favorite {\n boolean get(String id);\n boolean toggle(String id);\n}" ]
[ "0.67650366", "0.66713506", "0.6635678", "0.65284514", "0.65112805", "0.64422995", "0.6427408", "0.6335702", "0.62498623", "0.6216763", "0.6205757", "0.61858916", "0.6151116", "0.6127592", "0.6107662", "0.6062163", "0.60479957", "0.60321045", "0.59825397", "0.59798473", "0.597032", "0.59615934", "0.59593976", "0.5953026", "0.5949359", "0.5926722", "0.58872193", "0.5822498", "0.58210063", "0.58041376", "0.5803641", "0.580218", "0.5797153", "0.5787518", "0.57770663", "0.57770663", "0.57674766", "0.57653576", "0.57564133", "0.5754477", "0.5750423", "0.57454807", "0.574118", "0.5705301", "0.5696796", "0.5679921", "0.5653692", "0.5649175", "0.5635732", "0.56339145", "0.56165487", "0.56125474", "0.56081825", "0.5603811", "0.55925345", "0.5590375", "0.5589823", "0.558565", "0.55844235", "0.55474377", "0.5522534", "0.5515501", "0.54978687", "0.5493617", "0.54753107", "0.5461997", "0.5450773", "0.5450545", "0.54496", "0.5442379", "0.5430121", "0.5428566", "0.54268634", "0.5419492", "0.5410317", "0.5398727", "0.53921074", "0.5390579", "0.5388396", "0.5383907", "0.5379664", "0.53794944", "0.5373007", "0.53723174", "0.5361476", "0.53511465", "0.533045", "0.53294426", "0.5312472", "0.5312363", "0.5312242", "0.530734", "0.5304349", "0.5302198", "0.52937", "0.528874", "0.52825403", "0.5282239", "0.52785844", "0.5274889" ]
0.7695903
0
Created by dbraga on 30/07/17.
public interface IRecyclerViewFragmentViewModel { public void initRecyclerView(); public void setRecyclerViewData(List<Mascota> mascotas); void recyclerViewReload(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "@Override\n public void func_104112_b() {\n \n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "protected boolean func_70814_o() { return true; }", "@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}", "private void m50366E() {\n }", "public void mo38117a() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "private void init() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n public void init() {\n }", "@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}", "private void kk12() {\n\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 jugar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@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 init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void init() {}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "public void method_4270() {}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n void init() {\n }", "@Override\n public int retroceder() {\n return 0;\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nghe() {\n\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 init()\n\t{\n\n\t}", "@Override\n protected void initialize() \n {\n \n }", "public void mo12930a() {\n }", "public void mo6081a() {\n }", "@Override\n public int describeContents() { return 0; }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public void mo21877s() {\n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo12628c() {\n }", "private void m50367F() {\n }", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tprotected void initialize() {\n\t}", "@Override\n\tpublic void postInit() {\n\t\t\n\t}" ]
[ "0.6033645", "0.58626807", "0.58582264", "0.58499503", "0.58088326", "0.57606184", "0.57606184", "0.5747292", "0.57168305", "0.5716077", "0.5712225", "0.56990165", "0.5697896", "0.5691011", "0.56840277", "0.56776285", "0.5670845", "0.56641895", "0.5638702", "0.5628774", "0.5628774", "0.5628774", "0.5628774", "0.5628774", "0.56234074", "0.5609913", "0.5603749", "0.55968046", "0.5568259", "0.5567061", "0.55612034", "0.5560932", "0.5545041", "0.55327326", "0.55284643", "0.55284643", "0.5522998", "0.5503088", "0.5491567", "0.5489782", "0.54789835", "0.54783666", "0.54783666", "0.54783666", "0.5471682", "0.54689366", "0.54689366", "0.5468398", "0.5462573", "0.5458825", "0.5458825", "0.5458825", "0.544961", "0.544961", "0.544961", "0.54477906", "0.54332405", "0.5421911", "0.5421631", "0.541942", "0.5419062", "0.5419062", "0.54154015", "0.5410308", "0.54098856", "0.54062796", "0.5406224", "0.5406224", "0.5406224", "0.5406224", "0.5406224", "0.5406224", "0.54012436", "0.5398092", "0.5392297", "0.5373613", "0.5367724", "0.5367724", "0.5366694", "0.5363946", "0.53630054", "0.53630054", "0.53630054", "0.53630054", "0.53630054", "0.53630054", "0.53630054", "0.53614306", "0.5354604", "0.53432447", "0.53378654", "0.5336672", "0.5335792", "0.5332536", "0.5322898", "0.5315979", "0.5315833", "0.5314277", "0.53078675", "0.53078675", "0.5302335" ]
0.0
-1
while chatting with server
private void whileChatting() throws IOException{ ableToType(true); do{ try{ message = (String) input.readObject(); showMessage("\n" + message); }catch(ClassNotFoundException classNotFoundException){ showMessage("Unknown data received!"); } }while(!message.equals("SERVER - END")); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void run() {\n\t\tInetSocketAddress remoteAddr = (InetSocketAddress) socket.getRemoteSocketAddress();\n\t\tChatServer.log(\"[server] connected by client[\" + remoteAddr.getAddress().getHostAddress() + \":\" + remoteAddr.getPort());\n\t\t\n\t\ttry {\n\t\t\t//2. 스트림 얻기\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream(), \"utf-8\"));\n\t\t PrintWriter writer = new PrintWriter(new OutputStreamWriter(socket.getOutputStream() ,\"utf-8\"),true);\n\t\t \n\t\t while(true) {\n\t\t \tString request = reader.readLine();\n\t\t \tSystem.out.println(request);\n\t\t \tif(request == null) {\n\t\t \t\tChatServer.log(\"클라이언트로 부터 연결 끊김\");\n\t\t \t\tbreak;\n\t\t \t}\n\t\t \tString[] tokens = request.split(\":\");\n\t\t \t// Join:둘리 일때 - 0은 Join 1은 둘리\n\t\t \tif(\"join\".equals(tokens[0])) {\n\t\t \t\tnickname = tokens[1]; \n\t\t \t\tdoJoin(nickname + \"님이 입장하였습니다.\", writer);\n\t\t \t}else if(\"message\".equals(tokens[0])) {\n\t\t \t\t\n\t\t \t\tdoMessage(nickname + \":\" + tokens[1] );\n\t\t \t}else if(\"quit\".equals(tokens[0])) {\n\t\t \t\tdoQuit(nickname + \"님이 퇴장하였습니다.\", writer);\n\t\t \t}else {\n\t\t \t\tChatServer.log(\"에러: 알수 없는 요청(\" + tokens[0] + \")\");\n\t\t \t}\n\t\t }\n\t\t\n\t\t} catch (SocketException e) {\n\t\t\tChatServer.log(nickname);\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void whileChatting() throws IOException{\n\t\tString message = \" You are now connected! Say hello :) \";\n\t\tsendMessage(message);\n\t\tableToType(true);\n\t\tdo{\n\t\t\t//have a conversation\n\t\t\ttry{\n\t\t\t\tmessage = (String) input.readObject();\n\t\t\t\tshowMessage(\"\\n\" + message);\n\t\t\t}catch(ClassNotFoundException cnf){\n\t\t\t\tshowMessage(\"\\n Server could not understand the message...\");\n\t\t\t}\n\t\t}while(!message.equals(\"CLIENT - END\"));\n\t}", "public void talk() {\n\t try{\t\n\t \twhile(exit) {\n\t\t \t\t//Definizione stream per la comunicazione\n\t\t \t\ttastiera = new BufferedReader(new InputStreamReader(System.in));\n\t\t \t\tout = new DataOutputStream(connection.getOutputStream());\n\t\t\t\t in = new DataInputStream(connection.getInputStream());\n\t\t\t\t \n\t\t \t\t//Invio messaggio\n\t\t\t\t System.out.println(\"Inserisci il messaggio da mandare al server: \\n\");\n\t\t\t\t mess = tastiera.readLine();\n\t\t\t\t\tout.writeUTF(mess + \"\\n\");\n\t\t\t\t\t\n\t\t\t\t\t//Ricezione risposta server\n\t\t\t\t\tservermess = in.readUTF();\n\t\t\t System.out.println(\"Risposta dal server: \"+servermess);\n\t\t\t if(mess.equals(\"FINE\")) {\n\t\t\t \texit = false;\n\t\t\t }\n\t\t\t\t}\n\t\t }\n\t\t catch (IOException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t }\n\t \tfinally {\n\t\t\t try {\n\t\t\t\t if (connection!=null)\n\t\t\t\t {\n\t\t\t\t connection.close();\n\t\t\t\t System.out.println(\"Connessione chiusa!\");\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t catch(IOException e){\n\t\t\t System.err.println(\"Errore nella chiusura della connessione!\");\n\t\t\t }\n\t \t}\t\n \t}", "public void whileChatting() throws IOException{\n\t\t\n\t\tString message = \"You are now connected. Gear up to chat like never before...\";\n\t\tsendMessage(message);\n\t\tableToType(true);\n\t\t\n\t\tdo {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tmessage = (String) input.readObject();\n\t\t\t\t//Anything coming in the input stream is treated as an object and then will be stored in the variable message as a string.\n\t\t\t\tshowMessage(\"\\n\" + message);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcatch(ClassNotFoundException cnfException) {\n\t\t\t\t\n\t\t\t\tshowMessage (\"\\n An error occured with the message sent.\");\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\twhile (!message.equalsIgnoreCase(\"CLIENT - END\"));\n\t\t//While the client has not sent a message saying \"END\".\n\t\t\n\t}", "@Override\r\n\t\tpublic void run() {\r\n\t\t\tString[] line;\r\n\t\t\tString msg = \"\";\r\n\t\t\ttry {\r\n\t\t\t\tString time1 = dispTime.format(System.currentTimeMillis());\r\n\t\t\t\t// parse the time to the date format\r\n\t\t\t\tdate1 = dispTime.parse(time1);\r\n\t\t\t\t/*\r\n\t\t\t\t * check for the whole message line and split it with : the\r\n\t\t\t\t * first element is username the second is connect/disconnect\r\n\t\t\t\t * message and if the client clicks on connect button it sends\r\n\t\t\t\t * connect message and if client hits disconnect button it sends\r\n\t\t\t\t * disconnect message all the messages are splitted with :,if\r\n\t\t\t\t * the message is to broadcast all current users then :Chat is\r\n\t\t\t\t * used at the end read the inputstream\r\n\t\t\t\t */\r\n\t\t\t\twhile ((msg = in.readLine()) != null) {\r\n\t\t\t\t\t// split the line with :\r\n\t\t\t\t\tline = msg.split(\":\");\r\n\t\t\t\t\tString usern = line[1];// get username\r\n\r\n\t\t\t\t\tif (line[3].equals(\"Connect\")) {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * if the request is connect then add the username to\r\n\t\t\t\t\t\t * arraylist users\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\tusers.add(usern);\r\n\t\t\t\t\t} else if (line[3].equals(\"Disconnect\")) {\r\n\t\t\t\t\t\ttextarea.append(usern + \" has disconnected.\\n\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\t// else if (line[3].equals(\"Chat\"))\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t/*\r\n\t\t\t\t\t\t * the message coming from server is in HTTP format then\r\n\t\t\t\t\t\t * extract the message only and display it on users\r\n\t\t\t\t\t\t * window\r\n\t\t\t\t\t\t */\r\n\t\t\t\t\t\ttextarea.append(line[1] + line[2] + \"\\n\");\r\n\t\t\t\t\t\ttextarea.setCaretPosition(textarea.getDocument().getLength());\r\n\t\t\t\t\t}\r\n\t\t\t\t} // try\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "public void receive()\n {\n //Client receives a message: it finds out which type of message is and so it behaves differently\n //CHAT message: prints the message in the area\n //CONNECT message: client can't receive a connect message from the server once it's connected properly\n //DISCONNECT message: client can't receive a disconnect message from the server\n //USER_LIST message: it shows the list of connected users\n try\n {\n String json = inputStream.readLine();\n\n switch (gson.fromJson(json, Message.class).getType())\n {\n case Message.CHAT:\n ChatMessage cmsg = gson.fromJson(json, ChatMessage.class);\n\n if(cmsg.getReceiverClient() == null)\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO ALL): \" + cmsg.getText() + \"\\n\");\n else\n ChatGUI.getInstance().getChatHistory().append(cmsg.getSenderClient() + \" (TO YOU): \" + cmsg.getText() + \"\\n\");\n break;\n case Message.CONNECT:\n //Send login nickname and wait for permission to join\n //if message code is 1, nickname is a duplicate and must be changed, then login again\n //(send call is inside button event)\n ConnectMessage comsg = gson.fromJson(json, ConnectMessage.class);\n\n if(comsg.getCode() == 1)\n {\n //Show error\n ChatGUI.getInstance().getLoginErrorLabel().setVisible(true);\n }\n else\n {\n //Save nickname\n nickname = ChatGUI.getInstance().getLoginField().getText();\n\n //Hide this panel and show main panel\n ChatGUI.getInstance().getLoginPanel().setVisible(false);\n ChatGUI.getInstance().getMainPanel().setVisible(true);\n }\n break;\n case Message.USER_LIST:\n UserListMessage umsg2 = gson.fromJson(json, UserListMessage.class);\n fillUserList(umsg2);\n break;\n }\n } \n catch (JsonSyntaxException | IOException e)\n {\n System.out.println(e.getMessage());\n System.exit(1);\n }\n }", "public void run(){\n\t\ttry{\n\t\t\t// Get client socket.\n\t\t\tSocket client = server.getClientSocket();\n\t\t\t// Get the inputstream from the socket\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(client.getInputStream()));\n\t\t\tString line;\n\t\t\twhile(true){\n\t\t\t\tif(client.isClosed()){\n\t\t\t\t\tSystem.out.println(\"The client is offline. Chat finished.\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tline= reader.readLine();\n\t\t\t\t\tif(line.equals(\"bye\")){\n\t\t\t\t\t\tSystem.out.println(line);\n\t\t\t\t\t\tSystem.out.println(\"Chat finished.\");\n\t\t\t\t\t\tclient.close();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"Client: \");\n\t\t\t\t\t\tSystem.out.println(line);\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}\n\t\t\t\n\t\t\treader.close();\n\t\t}catch(IOException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void communicate() throws IOException{\n\t\tdo{\n\t\t\t//Messages recieved by the client\n\t\t\t\n\t\t\t\n\t\t\t//Messages being sent by the client\t\n\t\t\t//Chat client is reading in data from its own user and from the chat client thread\n//\t\t\t line = console.readLine(); //client msg is read from console environment\n\t\t\t\n\t\t\t//nope \n//\t\t\tScanner scanner = new Scanner(System.in);\n//\t String line = scanner.nextLine();\n//\t System.out.println(line);\n//\t\t\tscanner.close();\n\t\t\t\n\t\t\t//nope\n//\t line = strIn.readUTF();\n//\t\t\tSystem.out.println(\"User said: \"+ line);\n\t\t\t\n\n//\t\t\tnope needs to be a constant stream cant just get client message from client gui\n//\t\t\tline = gui.getLatestMsg();\n\t\t\t\n//\t\t\tnope initial stream is null. read from gui stream\n//\t\t\tByteArrayInputStream bInput = new ByteArrayInputStream(gui.b);\n//\t\t\tline = bInput.toString();\n//\t\t\t\n\t\t\tstrOut.writeUTF(line); // Writes a string to the underlying output stream using modified UTF-8 encoding\n\t\t\tstrOut.flush(); //Forces any buffered output bytes to be written out to the stream.\n\t\t\t\n\t\t}while(!line.equalsIgnoreCase(\"bye\")); //not working. Still listens\n\t}", "public static void startChatServer() {\n\t\tbyte[] buffer = new byte[1024];\n\t\tStreamConnectionNotifier cn = null;\n\t\ttry {\n\t\t\tLocalDevice local = LocalDevice.getLocalDevice();\n\t\t\tlocal.setDiscoverable(DiscoveryAgent.GIAC);\n\t\t\tcn = (StreamConnectionNotifier) Connector.open(INSECURE_URL);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\twhile (true) {\n\t\t\tOutputThread t = null;\n\t\t\tStreamConnection sock = null;\n\t\t\tInputStream is = null;\n\t\t\tOutputStream os = null;\n\t\t\ttry {\n\t\t\t\tSystem.out.println(\"accepting connection:\");\n\t\t\t\tsock = cn.acceptAndOpen();\n\t\t\t\tSystem.out.println(\"accept!: \" + Charset.defaultCharset());\n\t\t\t\tis = sock.openInputStream();\n\t\t\t\tos = sock.openOutputStream();\n\n\t\t\t\tt = new OutputThread(os);\n\t\t\t\tt.start();\n\n\t\t\t\twhile (t.isAlive()) {\n\t\t\t\t\t//TODO: use timeout read?\n\t\t\t\t\tint len = is.read(buffer);\n\t\t\t\t\t// printAsHex(buffer, len);\n\t\t\t\t\tif (len > 0) {\n\t\t\t\t\t\tSystem.out.println(\"received message(\" + len + \"): \" + new String(buffer, 0, len));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//TODO: check connection is live or not,\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\tt.interrupt();\n\t\t\t\tt = null;\n\t\t\t\ttry {\n\t\t\t\t\tsock.close();\n\t\t\t\t\tcn.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t//\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\ttry {\r\n\t\t\t\t\tusers.add(socket);\r\n\t\t\t\t\t\r\n\t\t\t\t\tBufferedReader mBuf = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n\t\t\t\t\twhile (socket.isConnected()) {\r\n\t\t\t\t\t\tString msg = mBuf.readLine();\r\n\t\t\t\t\t\tcastChatMsg(msg);\r\n\t\t\t\t\t}\r\n\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\te.getStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void onChat(String message) {\n\r\n\t\t\t}", "@Override\n public void run(){\n passwordChecker();\n System.out.println(\"you are connected\");\n System.out.println(\"Welcome :\" + UserName);\n\n try{\n PrintWriter toClient = new PrintWriter(socket.getOutputStream(), false);\n InputStream fromClient = socket.getInputStream();\n Scanner serverIn = new Scanner(fromClient);\n\n while(!socket.isClosed()){\n if(fromClient.available() > 0){\n if(serverIn.hasNextLine()){\n System.out.println(serverIn.nextLine());\n }\n }\n if(hasMessages){\n String nextMessage = \"\";\n synchronized(ChatMessage){\n nextMessage = ChatMessage.pop();\n hasMessages = !ChatMessage.isEmpty();\n }\n toClient.println(UserName + \" --> \" + nextMessage);\n toClient.flush();\n }\n }\n }\n catch(IOException e){\n e.printStackTrace();\n }\n\n }", "private void showMessage() throws IOException {\n String msg = fromServer.readUTF();\n chatArea.append(msg + \"\\n\");\n // set the chat area always keep focus at bottom\n chatArea.setCaretPosition(chatArea.getDocument().getLength());\n }", "@Override\n\tpublic void onChatReceived(ChatEvent arg0) {\n\t\t\n\t}", "public void run() \r\n {\r\n String talkingPartner = \"server\";\r\n String message = \"\";\r\n boolean keepGoing = true;\r\n while(keepGoing) \r\n {\r\n\r\n try \r\n {\r\n message = (String) in.readObject();\r\n System.out.println(message);\r\n displayMessage(message);\r\n }\r\n catch (IOException e)\r\n {\r\n displayMessage(username + \" Exception reading Streams: \" + e);\r\n break;\r\n }\r\n catch(ClassNotFoundException e2)\r\n {\r\n break;\r\n }\r\n //logout command \r\n if (message.equals(\"/logout\"))\r\n {\r\n broadcast(\"***ATTEMPTING LOGOUT***\", talkingPartner);\r\n removeClient(id);\r\n keepGoing = false;\r\n }\r\n //help command\r\n if (message.equals(\"/help\"))\r\n {\r\n broadcast(\"***COMMANDS /help /logout /chat***\", talkingPartner);\r\n\r\n }\r\n //private chat command then takes a follow up name\r\n if (message.equals(\"/chat\"))\r\n {\r\n broadcast(\"***PLEASE TYPE THE NAME OF A USER***\", talkingPartner);\r\n String name = \"unselected\";\r\n try {\r\n\r\n name = (String) in.readObject();\r\n }\r\n catch (IOException e)\r\n {\r\n displayMessage(username + \" Exception reading Streams: \" + e);\r\n break;\r\n }\r\n catch(ClassNotFoundException e2) \r\n {\r\n break;\r\n }\r\n for(int i = 0; i < userNames.size(); i++ )\r\n {\r\n if(name.equals(userNames.get(i))){\r\n broadcast(\"user found starting chat!\", talkingPartner);\r\n }\r\n }\r\n\r\n }\r\n //broadcasts the message to everyone for group chat\r\n broadcast(username + \": \" + message, \"server\");\r\n }\r\n\r\n //shuts it down\r\n removeClient(id);\r\n close();\r\n }", "public void run()\n\t\t{\twhile(true)\n\t\t\t{\tString s = ChatServer.message.get();\n\t\t\t\tsynchronized(ChatServer.sessions)\n\t\t\t\t{\tfor(int i = 0; i < ChatServer.size; ++i)\n\t\t\t\t\t\tif(ChatServer.sessions[i] != null)\n\t\t\t\t\t\t\tChatServer.sessions[i].println(s);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void login() {\r\n if (connected) {\r\n return;\r\n }\r\n try {\r\n sock = new Socket(\"localhost\", port);\r\n showStatus(\"CONNECTION DONE !!!\");\r\n reader = new BufferedReader(new InputStreamReader(sock.getInputStream()));\r\n writer = new PrintWriter(sock.getOutputStream(), true);\r\n } catch (IOException e) {\r\n System.err.println(e);\r\n }\r\n\r\n clientName = myText.getText();\r\n\r\n writer.println(\"? \" + clientName);\r\n connected = true;\r\n new Thread(new Runnable() {\r\n public void run() {\r\n String st;\r\n try {\r\n while (connected && ((st = reader.readLine()) != null)) {\r\n chat.append(st + \"\\n\");\r\n }\r\n } catch (IOException e) {\r\n showStatus(\"CONNECTION LOST !!!\");\r\n return;\r\n }\r\n }\r\n }).start();\r\n }", "public void run()\n {\n \n try {\n String Msg = \"\";\n ArrayList<String> tokens=new ArrayList<String>();\n while ((Msg = this.reader.readLine())!=null)\n {\n if(!tokens.isEmpty())\n {\n //not empty,clear.\n tokens.clear();\n\n }\n //check the msg\n System.out.println(\"Inside while, Received msg in client handler:\"+Msg);\n //all the meta datas are separated using :\n tokens.addAll(Constants.tokens(Msg, \":\"));\n //if it's a login request\n if(tokens.contains(Constants.LOGIN_ID))\n {\n this.userID=tokens.get(1);//the 2nd string of this format LOGIN_ID:username:password\n this.password=tokens.get(2);\n this.client_delegate.validate(this);\n }\n //if it's a log out request.\n if(tokens.contains(Constants.LOGOUT_ID))\n {\n this.client_delegate.logout(this);\n }\n //public room message\n if(tokens.contains(Constants.PUBLIC_ROOM))\n {\n \n if(tokens.get(1).contains(\"file\"))\n {\n //there is smiley,but the parts were separated due to the presence of an internal : after word 'file'\n this.client_delegate.sendMessage(tokens.get(1)+\":\"+tokens.get(2));\n }\n else\n {\n //the message is without smiley...\n this.client_delegate.sendMessage(tokens.get(1));\n }\n \n }\n //private message\n if(tokens.contains(Constants.MESSAGE_ID))\n {\n //private message\n if(tokens.get(2).contains(\"file\"))\n {\n //there is smiley,but the parts were separated due to the presence of an internal : after word 'file'\n this.client_delegate.sendMessageFromThisTo(tokens.get(1), tokens.get(2)+\":\"+tokens.get(3), tokens.get(4));\n }\n else\n {\n //the message is without smiley...\n this.client_delegate.sendMessageFromThisTo(tokens.get(1), tokens.get(2), tokens.get(3));\n }\n }\n if(tokens.contains(Constants.FILE))\n {\n this.client_delegate.sendFileTo(tokens.get(1), Integer.parseInt(tokens.get(2)), tokens.get(3));\n }\n \n \n\n }\n } catch (Exception ex) {\n System.out.printf(\"Error parsing message from client:%s.\",this.userID);\n }\n }", "public void clientToServerChatMessage(String message){\n String chatMessage = message;\n System.out.println(\"chatmessage\" + chatID + \" \" + chatMessage);\n toServer.println(\"chatmessage\" + chatID + \" \" + chatMessage);\n toServer.flush();\n }", "public void run()\n\t{\n\t\tint state = 1;\n\t\t\n\t\ttry \n\t\t{\n\t\t\t_socket = new Socket(_hostname, Integer.parseInt(_portnum));\n\t\t\t\t\t\t\n\t\t\t_sendBuf = new byte[_socket.getSendBufferSize()];\n\t\t\t_recBuf = new byte[_socket.getReceiveBufferSize()];\n\t\t\t\n\t\t\t_address = _socket.getInetAddress();\n\t\t\t_port = _socket.getPort();\n\t\t\t_user = new User(_myName, _address, _port);\n\t\t\t\n\t\t\t_sendBuf = toByteArray(_user);\n\t\t\t_socket.getOutputStream().write(Message.USER);\n\t\t\t_socket.getOutputStream().write(_sendBuf);\n\t\t\t_socket.getOutputStream().flush();\n\t\t\t\n\t\t\tstate = _socket.getInputStream().read();\n\t\t\t\n\t\t\twhile (state == 200)\n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Username already is use!\");\n\t\t\t\tbuildRelog();\n\t\t\t\tstate = _socket.getInputStream().read();\n\t\t\t\tSystem.out.println(state);\n\t\t\t\t_relogFrame.dispose();\n\t\t\t\t\n\t\t\t\tif (state != 200)\n\t\t\t\t{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tClient._mainFrame.setTitle(\"Cr@p Talk: \" + _myName);\n\t\t\tClient._mainFrame.setVisible(true);\n\t\t\t\n\t\t\t\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\tMessage rec = new Message();\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tstate = _socket.getInputStream().read();\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tif (state == Message.HASHSET)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing hashset\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\tObject[] online = (Object[]) toObject(_recBuf);\n\t\t\t\t\t\tString[] onlineList = new String[online.length];\n\t\t\t\t\t\tfor (int i = 0; i < online.length; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tonlineList[i] = (String) online[i];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tClient._userList.setListData(onlineList);\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.LOBBY)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing lobby\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tClient._chatLog.append(\"[\" + rec.getOrigin() +\"]: \" + rec.getMessage() + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.WHISPER)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing whisper\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tClient._chatLog.append(\"[\" + rec.getOrigin() +\"(whisp)]: \" + rec.getMessage() + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.SHARED)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing shared\");\n\t\t\t\t\t\tArrayList<String> files = new ArrayList<String>();\n\t\t\t\t\t\tScanner file = new Scanner(new File(\"shared.txt\"));\n\t\t\t\t\t\t\n\t\t\t\t while(file.hasNextLine()) \n\t\t\t\t {\n\t\t\t\t String line = file.nextLine();\n\t\t\t\t files.add(line);\n\t\t\t\t }\n\t\t\t\t _sendBuf = toByteArray(files.toArray());\n\t\t\t\t _socket.getOutputStream().write(Message.TEXT);\n\t\t\t\t _socket.getOutputStream().write(_sendBuf);\n\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t\t\tSystem.out.println(\"sent data\");\n\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.RESULTS)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing results\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t \t\t\tObject[] lines = (Object[]) toObject(_recBuf);\n\t \t\t\t\n\t \t\t\tString[] mal = new String[lines.length];\n\t \t\t\t\n\t \t\t\tfor (int i = 0; i < lines.length; i++)\n\t \t\t\t{\n\t \t\t\t\tmal[i] = (String) lines[i];\n\t \t\t\t}\n\t \t\t\tbuildResultGUI(mal);\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.TEST)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing test\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] data = rec.getMessage().split(\"\\\\&\\\\&\");\n\t\t\t\t\t\t\n\t\t\t\t\t\t_person = data[0];\n\t\t\t\t\t\t_fileName = data[1];\n\t\t\t\t\t\t_filePath = data[2];\n\t\t\t\t\t\t_comPort = Integer.parseInt(data[3]);\n\t\t\t\t\t\tSystem.out.println(\"*******SENDER PORT: \" + _comPort);\n\t\t\t\t\t\t_fileKey = data[4];\n\n\t\t\t\t\t\tString prompt = \"Upload \" + _fileName + \" to \" + _person + \"?\";\n\t\t\t\t\t\tint reply = JOptionPane.showConfirmDialog(null, prompt, \"Upload confirmation\", JOptionPane.YES_NO_OPTION);\n\t\t\t\t \n\t\t\t\t\t\tif (reply == JOptionPane.YES_OPTION)\n\t\t\t\t {\t\t\t\t \n\t\t\t\t\t\t\tFile file = new File(_filePath);\n\t\t\t\t\t\t\tlong fileSize = file.length();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tArrayList<String> metaData = new ArrayList<String>();\n\t\t\t\t\t\t\tmetaData.add(\"\" + _comPort);\n\t\t\t\t\t\t\tmetaData.add(\"\" + fileSize);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t_sendBuf = toByteArray(metaData.toArray());\n\t\t\t\t\t\t\t\n\t\t\t\t \tSystem.out.println(\"accepted\");\n\t\t\t\t \t_socket.getOutputStream().write(Message.ACCEPT);\n\t\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t\t\t\t\n\t\t\t\t \t_socket.getOutputStream().write(_sendBuf);\n\t\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tClient._sending = new SenderThread(_fileName, _filePath, _comPort, _fileKey);\n\t\t\t\t\t\t\tClient._sending.start();\n\t\t\t\t }\n\t\t\t\t else \n\t\t\t\t {\n\t\t\t\t \tSystem.out.println(\"declined\");\n\t\t\t\t \t_socket.getOutputStream().write(Message.DECLINE);\n\t\t\t\t\t\t\t_socket.getOutputStream().flush();\n\t\t\t\t }\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.ACCEPT)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing accept\");\n\t\t\t\t\t\tlong fileSize = 0;\n\t\t\t\t\t\tint port = -1;\n\t\t\t\t\t\t\n\t\t\t\t\t\t_fileKey = Client._key;\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t \t\t\tObject[] data = (Object[]) toObject(_recBuf);\n\t \t\t\t\n\t \t\t\tport = Integer.parseInt((String) data[0]);\n\t \t\t\tfileSize = Long.parseLong((String) data[1]);\n\t \t\t\t\n\t \t\t\tSystem.out.println(\"*******RECV PORT: \" + port);\n\t \t\t\t\n\t \t\t\tClient._receiving = new ReceiverThread(_fileName, _hostname, port, _fileKey, fileSize);\n\t\t\t\t\t\t\n\t\t\t\t\t\ttry\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tThread.sleep(300);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tcatch (InterruptedException e)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tClient._receiving.start();\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.DECLINE)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing decline\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"File transfer denied.\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.DC)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing dc\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\t\n\t\t\t\t\t\tClient._chatLog.append(rec.getMessage());\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.SERVERDOWN)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing serverdown\");\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Server has gone down...\");\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.ERROR)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing error\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"It's bad to talk to yourself...\");\n\t\t\t\t\t}\n\t\t\t\t\telse if (state == Message.REMOVED)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(\"doing doing removed\");\n\t\t\t\t\t\t_socket.getInputStream().read(_recBuf);\n\t\t\t\t\t\trec = (Message) toObject(_recBuf);\n\t\t\t\t\t\tSystem.exit(0);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch (SocketException e) \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"Server is not responding\");\n\t\t\tSystem.exit(0);\n\t\t} \n\t\tcatch (IOException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t\tcatch (ClassNotFoundException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\twhile (!client.isClosed()) {\n\t\t\t\t\tSystem.out.println(\"is socket connected\" + client.isConnected());\n\t\t\t\t\tInputStreamReader reader;\n\t\t\t\t\ttry {\n\n\t\t\t\t\t\treader = new InputStreamReader(client.getInputStream());\n\t\t\t\t\t\tBufferedReader buf = new BufferedReader(reader);\n\t\t\t\t\t\tString msg = buf.readLine();\n\t\t\t\t\t\tif (msg != null) {\n\t\t\t\t\t\t\tSystem.out.println(\"server:\" + msg.toString());\n\t\t\t\t\t\t\tString ContextMsg = \"来自被连接的回复:\" + client.getInetAddress() + \"\\n\" + msg.toString();\n\t\t\t\t\t\t\ttextList.add(ContextMsg);\n\n\t\t\t\t\t\t}\n\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\n\t\t\t\t}\n\n\t\t\t}", "private void start() {\n windowForCommunication.append(\"Awaiting client connection...\" + \"\\n\");\n\n //check if client is connected, if yes, add the following text to the chat window, then enable communication\n if (clientSocket.isConnected()) {\n windowForCommunication.append(\"Connection is established. Type 'stopconnection' to stop connection\" + \"\\n\");\n textField.setEditable(true);\n }\n\n //Begin communication, end if \"stopconnection\" is typed by Server/Client. If it is, call closeStreams method.\n try {\n String userInput;\n\n while((userInput = input.readLine()) != null) {\n if(userInput.contains(\"stopconnection\")){\n closeStreams();\n break;\n }\n\n displayMessage(userInput + \"\\n\");\n\n }\n }\n catch(IOException e) {\n e.printStackTrace();\n }\n }", "public void ChatGUI() {\n try {\n\n DataOutputStream out = new DataOutputStream(socket.getOutputStream());\n DataInputStream in = new DataInputStream(socket.getInputStream());\n out.writeUTF(\"Connmain\");\n String message = in.readUTF();\n if (message.equals(\"Conf\")) {\n ObjectInputStream inOb = new ObjectInputStream(socket.getInputStream());\n ArrayList<String> chatlog = (ArrayList<String>) inOb.readObject();\n\n new ChatGUI().start(stage, this, socket, chatlog);\n }\n } catch (IOException | ClassNotFoundException 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 void listen() throws IOException, InterruptedException{\n\t\tString response;\n\t\twhile (!serverSoc.isClosed() && (response = fromServer.readLine()) != null){\n\t\t\tif (gui != null){\n\t\t\t\tgui.giveResponse(response);\n\t\t\t}\n\t\t\tSystem.out.println(response);\n\t\t\tbotAction(response);\n\t\t}\n\t\tqueue.add(\"\");\n\t\tgameOver = true;\n\t}", "public void run() \n { \n String message; // String for incoming messages\n \n // listen for messages until stopped\n while ( keepListening ) \n { \n try \n { \n message = input.readLine(); // read message from client\n } // end try\n catch ( SocketTimeoutException socketTimeoutException ) \n {\n continue; // continue to next iteration to keep listening\n } // end catch\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n break;\n } // end catch\n\n // ensure non-null message\n if ( message != null ) \n {\n // tokenize message to retrieve user name and message body\n StringTokenizer tokenizer = new StringTokenizer( \n message, MESSAGE_SEPARATOR );\n\n // ignore messages that do not contain a user\n // name and message body\n if ( tokenizer.countTokens() == 2 ) \n {\n // send message to MessageListener\n messageListener.messageReceived( \n tokenizer.nextToken(), // user name\n tokenizer.nextToken() ); // message body\n } // end if\n else\n {\n // if disconnect message received, stop listening\n if ( message.equalsIgnoreCase(\n MESSAGE_SEPARATOR + DISCONNECT_STRING ) ) \n stopListening();\n } // end else\n } // end if\n } // end while \n \n try\n { \n input.close(); // close BufferedReader (also closes Socket)\n } // end try\n catch ( IOException ioException ) \n {\n ioException.printStackTrace(); \n } // end catch \n }", "public void onlinerequest() {\r\n int size = Server.getUsers().size();\r\n \r\n try {\r\n this.output.flush();\r\n this.output.writeUTF(\"ONLINE\");\r\n this.output.flush();\r\n this.output.writeUTF(Integer.toString(size));\r\n this.output.flush();\r\n// Log.print(\"Sending the data\");\r\n for(int x = 0; x < Server.getUsers().size(); x++){\r\n if(Server.getUsers().get(x).getName().equals(this.name)){\r\n this.output.writeUTF(Server.getUsers().get(x).getName() + \" (You)\");\r\n }\r\n else{\r\n this.output.writeUTF(Server.getUsers().get(x).getName());\r\n this.output.flush();\r\n }\r\n \r\n \r\n }\r\n// Log.print(\"Successfully sent\");\r\n } catch (IOException ex) {\r\n Log.error(ex.getMessage());\r\n }\r\n }", "public void run(){\n try {\n dg=new Client(server_ip);\n dg.setVisible(true);\n do{\n \n String smessage=dg.dis.readUTF();\n dg.jTextArea1.append(\"server :- \"+smessage+\"\\n\\n\");\n \n }while(true);\n } catch (IOException ex) {\n Logger.getLogger(Cinit.class.getName()).log(Level.SEVERE, null, ex);\n }\n \n \n }", "public void run() {\n try {\n // 대화명 입력 받기\n printWriter.println(\"대화명을 입력하세요\");\n userId = bufferedReader.readLine();\n\n // 서버에서 각 클라이언트에 대화명 출력\n chatGUIServer.broadCast(\"[\" + userId + \"]\" + \"님이 입장했습니다.\");\n\n // 무한 대기하며 입력한 메세지를 각 클라이언트에 계속 전달\n while ((strSend = bufferedReader.readLine()) != null) {\n chatGUIServer.broadCast(\"[\" + userId + \"]: \" + strSend);\n }\n } catch (Exception e) {\n // 접속자 퇴장시 v에서 해당 클라이언트 스레드 제거\n chatGUIServer.removeThread(this); // this: ServerThread 객체, 접속 클라이언트\n // 서버에서 각 클라이언트에 출력\n chatGUIServer.broadCast(\"[\" + userId + \"]\" + \"님이 퇴장했습니다.\");\n\n // 콘솔에 퇴장 클라이언트 IP 주소 출력\n System.out.println(socket.getInetAddress() + \"의 연결이 종료됨!\");\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 start() {\n try {\n Socket socket = new Socket(conf.getServerIp(), conf.getServerPort());\n\n java.io.InputStream is = socket.getInputStream();\n BufferedReader reader = new BufferedReader(new java.io.InputStreamReader(is));\n\n readerThread = new MessageReader(reader);\n new Thread(readerThread).start();\n\n java.io.OutputStream os = socket.getOutputStream();\n PrintWriter writer = new PrintWriter(os);\n writerThread = new MessageWriter(writer);\n new Thread(writerThread).start();\n\n while (serverMessages.empty()) {\n //Do nothing\n }\n\n ServerMessage serverMessage = serverMessages.pop();\n if (!serverMessage.getMessageType().equals(ServerMessage.MessageType.HELO)) {\n System.out.println(\"Expecting a HELO message but received: \" + serverMessage.toString());\n } else {\n System.out.println(\"Please fill in your username: \");\n Scanner scanner = new Scanner(System.in);\n String username = scanner.nextLine();\n\n\n ClientMessage heloMessage = new ClientMessage(ClientMessage.MessageType.HELO, username);\n clientMessages.push(heloMessage);\n\n while (serverMessages.empty()) {\n }\n\n\n isConnected = validateServerMessage(heloMessage, serverMessages.pop());\n if (!isConnected) {\n System.out.println(\"Error logging into server\");\n } else {\n System.out.println(\"Successfully connected to server.\");\n System.out.println(\"(Type '/quit' to close connection and stop application.)\");\n System.out.println(\"Type a broadcast message: \");\n nonblockReader = new NonblockingBufferedReader(new BufferedReader(new java.io.InputStreamReader(System.in)));\n\n\n while (isConnected) {\n String line = nonblockReader.readLine();\n if (line != null) {\n ClientMessage clientMessage;\n if (line.equals(\"/quit\")) {\n clientMessage = new ClientMessage(ClientMessage.MessageType.QUIT, username + \" left the server\");\n isConnected = false;\n\n Thread.sleep(500L);\n } else if (line.startsWith(\"/msg\") && line.split(\" \").length > 1) {\n //Split the message first\n String[] splittedline = line.split(\" \");\n String senderUsername = splittedline[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n line = line.replace(\"/msg \" + splittedline[1] + \" \", \"\");\n\n //Check if we have an encryptionsession with the user or not\n if (encryptionSessionHashMap.containsKey(senderUsername)) {\n //We have an encryptionsession, so we can just send the message\n String encryptedLine = encryptionSessionHashMap.get(senderUsername).encryptMessage(line);\n clientMessage = new ClientMessage(ClientMessage.MessageType.ENCR, senderUsername + \" \" + encryptedLine);\n System.out.println(\"(You -> \" + senderUsername + \"): \" + line);\n } else {\n //We don't have an encryptionsession yet, so we create one\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(senderUsername, encryptionSession);\n clientMessage = new ClientMessage(ClientMessage.MessageType.KEYS, senderUsername + \" \" + encryptionSession.getPublicKey());\n savedMessage.put(senderUsername, line);\n }\n } else {\n System.out.println(\"You cannot send a message to yourself\");\n clientMessage = null;\n }\n } else if (line.startsWith(\"/file\") && line.split(\" \").length == 3) {\n //Split the message first\n String[] splitLine = line.split(\" \");\n String senderUsername = splitLine[1].toLowerCase();\n\n if (!senderUsername.equalsIgnoreCase(username)) {\n String fileBase64String = new FileTransfer(splitLine[2], senderUsername).sendFile();\n clientMessage = new ClientMessage(ClientMessage.MessageType.FILE, fileBase64String);\n System.out.println(\"You have send \" + splitLine[2] + \" to \" + senderUsername);\n } else {\n System.out.println(\"You cannot send a file to yourself\");\n clientMessage = null;\n }\n\n } else {\n clientMessage = new ClientMessage(ClientMessage.MessageType.BCST, line);\n System.out.println(line);\n }\n\n if (clientMessage != null) {\n clientMessages.push(clientMessage);\n }\n }\n if (!serverMessages.empty()) {\n ServerMessage received = serverMessages.pop();\n\n\n if (received.getMessageType().equals(ServerMessage.MessageType.BCST)) {\n System.out.println(received.getPayload());\n }\n\n //Check if we received an encrypted message\n else if (received.getMessageType().equals(ServerMessage.MessageType.ENCR)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedMessage = splitMessage[1];\n\n //If we have a session with this user, we can decrypt the message\n if (encryptionSessionHashMap.containsKey(sender)) {\n System.out.println(\"(\" + sender + \" -> You): \" + encryptionSessionHashMap.get(sender).decryptMessage(encryptedMessage));\n }\n }\n\n //If this is the first time, we have to share keys\n else if (received.getMessageType().equals(ServerMessage.MessageType.KEYS)) {\n //Split the message first\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String encryptedKey = splitMessage[1];\n\n //Check if we send the first message or not\n if (encryptionSessionHashMap.containsKey(sender)) {\n encryptionSessionHashMap.get(sender).decryptKey(encryptedKey);\n\n //After saving the aes key, we have to resend our first message\n String msg = savedMessage.get(sender);\n if (msg != null) {\n String encryptedLine = encryptionSessionHashMap.get(sender).encryptMessage(msg);\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.ENCR, sender + \" \" + encryptedLine);\n clientMessages.push(responseMessage);\n System.out.println(\"(You -> \" + sender + \"): \" + msg);\n savedMessage.remove(sender);\n }\n }\n\n //We send our aes key when we didn't send the message first\n else {\n EncryptionSession encryptionSession = new EncryptionSession();\n encryptionSessionHashMap.put(sender, encryptionSession);\n String aesKey = encryptionSession.encryptKey(encryptedKey);\n\n ClientMessage responseMessage = new ClientMessage(ClientMessage.MessageType.KEYS, sender + \" \" + aesKey);\n clientMessages.push(responseMessage);\n }\n }\n\n //Check if the message is a file\n else if (received.getMessageType().equals(ServerMessage.MessageType.FILE)) {\n String[] splitMessage = received.getPayload().split(\" \");\n String sender = splitMessage[0].toLowerCase();\n String base64String = splitMessage[2];\n\n new FileTransfer(base64String, splitMessage[0], true).readFile();\n System.out.println(\"You have received \" + splitMessage[1] + \" from \" + sender);\n }\n }\n }\n }\n\n disconnect();\n System.out.println(\"Client disconnected!\");\n }\n } catch (IOException e) {\n System.out.println(\"Ouch! Could not connect to server!\");\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void chat ( String message ) {\n\t\texecute ( handle -> handle.chat ( message ) );\n\t}", "@Override\n public void run() { \n \n String received; \n while (true) { \n try { \n\n // receive the messages from clients\n received = dis.readUTF();\n ChatServer.writeOnThreads(received);\n\n } catch (IOException e) {\n try { \n this.dis.close(); \n this.dos.close(); \n\n } catch(IOException e1) { \n e1.printStackTrace(); \n } \n } \n } \n }", "boolean processChatCmd( String s )\n\t{\n\t\t\n\t\tman.getOpponent(this).out.println(s);\n\t\tman.getOpponent(this).out.flush();\n\t\tout.println(\"Message sent.\");\n\t\tout.flush();\n\t\treturn true;\n\t}", "@Override\n public void run() {\n while(true){\n try{\n Socket s = server.accept();\n String i = new DataInputStream(s.getInputStream()).readUTF();\n if(clientColl.containsKey(i)){\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"You Are Already Registered....!!\");\n }else{\n clientColl.put(i, s);\n txt.append(sdf.format(date) + \" \" + i + \" Joined !\\n\");\n DataOutputStream dout = new DataOutputStream(s.getOutputStream());\n dout.writeUTF(\"\");\n new MsgRead(s,i).start();\n new PrepareClientList().start();\n }\n \n }catch(Exception ex){\n ex.printStackTrace();\n }\n }\n \n }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tchat.append(s);\r\n\t\t\t\t\t}", "public static void main(String[] args) {\n\n System.out.println(\"Hi. This is a greeting.\");\n Scanner scanner = new Scanner(System.in);\n\n String name = \"\";\n String address = \"localhost\";\n int portNum = 1500;\n\n if (args.length == 1)\n name = args[0];\n else {\n System.out.print(\"Please type a username. \");\n name = scanner.nextLine();\n }\n if (args.length == 2){\n name = args[0];\n try {\n portNum = Integer.parseInt(args[1]);\n } catch (Exception e) {\n System.out.println(\"Invalid port number!\");\n return;\n }\n }\n if (args.length == 3){\n address = args[2];\n try {\n portNum = Integer.parseInt(args[1]);\n } catch (Exception e) {\n System.out.println(\"Invalid port number!\");\n return;\n }\n name = args[0];\n }\n\n\n // Create your client and start it\n ChatClient client = new ChatClient(address, portNum, name);\n if (!client.start()) {\n return;\n }\n\n\n // Send an empty message to the server\n\n while (true) {\n String message = scanner.nextLine();\n message = message.toLowerCase();\n if (message.contains(\"/ttt\")) {\n String[] messageArray = message.split(\" \");\n if (messageArray.length <= 1) {\n System.out.println(\"Dude do this right!!!\");\n continue;\n }\n if(messageArray[1].equals(name)) {\n System.out.println(\"Error.\");\n continue;\n }\n client.sendMessage(new ChatMessage(ChatMessage.TICTACTOE,message, messageArray[1]));\n\n\n /// /tt <recipent> <placement>\n\n\n } else if (message.equals(\"/logout\")){\n client.sendMessage(new ChatMessage(ChatMessage.LOGOUT, \" \" + name + \" disconnected\", name));\n client.close();\n break;\n\n } else if (message.equals(\"/list\")) {\n// System.out.println(name + \"requested a list of users.\");\n client.sendMessage(new ChatMessage(ChatMessage.LIST, \" \",name));\n\n } else if (message.contains(\"/msg\")){\n String[] messageArray = message.split(\" \");\n if(messageArray[1].equals(name)) {\n System.out.println(\"Error. You cannot slide into your own DM.\");\n }\n\n else {\n int index = message.indexOf(messageArray[2]);\n client.sendMessage(new ChatMessage(ChatMessage.DM, message.substring(index), messageArray[1]));\n }\n } else {\n client.sendMessage(new ChatMessage(ChatMessage.MESSAGE, message, name));\n }\n }\n }", "@Override\r\n\tpublic void run() {\r\n\t\twhile (closer) {\r\n\t\t\ttry {\r\n\t\t\t\tObjectInputStream ois = new ObjectInputStream(client.getInputStream());\r\n\t\t\t\tObject object = ois.readObject();\r\n\t\t\t\tArrayList<String> input = (ArrayList<String>) object;\r\n\t\t\t\tInteger election = inputTransformer(input);\r\n\t\t\t\tif (election == 1) {\r\n\t\t\t\t\tsl.getLogger().info(\"IncomingMessage on Client Type 1 - For Chat\");\r\n\t\t\t\t}\r\n\t\t\t\tif (election == 2) {\r\n\t\t\t\t\tsl.getLogger().info(\"IncomingMessage on Client Type 2 - For Points\");\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void run() {\n\t\t\tPrintWriter out = null;\n\t\t\ttry {\n\n\t\t\t\t/*\n\t\t\t\t * byte[] buf = new byte[2048]; DatagramPacket packet = new\n\t\t\t\t * DatagramPacket(buf, buf.length);\n\t\t\t\t * System.out.print(\"Server: Receiving\\n\");\n\t\t\t\t * incomingUDP.receive(packet);\n\t\t\t\t * \n\t\t\t\t * System.out.print(\"Receiving successful packet with :\" +\n\t\t\t\t * packet.getLength() + \"kb\");\n\t\t\t\t */\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\n\t\t\t\tout = new PrintWriter(new OutputStreamWriter(\n\t\t\t\t\t\tincoming.getOutputStream()));\n\n\t\t\t\t// inform the server of this new client\n\t\t\t\tServerNMS.this.addClient(out);\n\n\t\t\t\tout.print(\"Welcome to AndyChat! \");\n\t\t\t\tout.println(\"Enter BYE to exit.\");\n\t\t\t\tout.flush();\n\n\t\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(\n\t\t\t\t\t\tincoming.getInputStream()));\n\t\t\t\tfor (;;) {\n\t\t\t\t\tString msg = in.readLine();\n\t\t\t\t\tif (msg == null) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif (msg.trim().equals(\"BYE\"))\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\tSystem.out.println(\"Received: \" + msg\n\t\t\t\t\t\t\t\t+ \"With size is: \" + msg.getBytes().length\n\t\t\t\t\t\t\t\t+ \"bytes\");\n\t\t\t\t\t\t// broadcast the receive message\n\t\t\t\t\t\tServerNMS.this.broadcast(msg);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tincoming.close();\n\n\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t} catch (Exception e) {\n\t\t\t\tif (out != null) {\n\t\t\t\t\tServerNMS.this.removeClient(out);\n\t\t\t\t}\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public void run(){\n\t\t\n\t\twhile(true){\n\t\t\ttry {\n\t\t\t\tSocket s = listener.accept();\n\t\t\t\tnew ServerConnection(chatServ, s).start();\n\t\t\t\t\n\t\t\t} catch (IOException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t\treturn; // stop listening\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run(){\n try {\n while(true) {\n Thread.sleep(10);\n\n InputStream inputStream = socket.getInputStream();\n BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(inputStream));\n OutputStream outputStream = socket.getOutputStream();\n PrintWriter printWriter = new PrintWriter(outputStream, true);\n\n // Konwersja ze strumienia na stringa\n String fromClient = bufferedReader.readLine();\n if(fromClient != null) {\n\n System.out.println(\"From client: \" + fromClient);\n String serverResponse = Commands.serverAction(fromClient);\n printWriter.println(serverResponse);\n printWriter.flush();\n System.out.println(\"Server respond: \" + serverResponse);\n break;\n\n }\n }\n }catch (IOException | InterruptedException e) {\n System.out.println(\"Connection lost\");\n try {\n socket.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }\n\n\n }", "public void doSendMsg() {\n FacesContext fctx = FacesContext.getCurrentInstance();\n HttpSession sess = (HttpSession) fctx.getExternalContext().getSession(false);\n SEHRMessagingListener chatHdl = (SEHRMessagingListener) sess.getAttribute(\"ChatHandler\");\n if (chatHdl.isSession()) {\n //TODO implement chat via sehr.xnet.DOMAIN.chat to all...\n if (room.equalsIgnoreCase(\"public\")) {\n //send public inside zone\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PUBLIC, moduleCtrl.getLocalZoneID(), -1, -1);\n } else {\n chatHdl.sendMsg(this.text, SEHRMessagingListener.PRIVATE_USER, moduleCtrl.getLocalZoneID(), -1, curUserToChat.getUsrid());\n }\n this.text = \"\";\n }\n //return \"pm:vwChatRoom\";\n }", "@Override\n public void run() {\n try{\n System.out.println(\"A new client is trying to connect\");\n inputFromClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n outputFromServer = new PrintWriter(socket.getOutputStream(),true);\n retrievingClientInformation(); // Identifies clients\n sendPreviousMessagesToClient(); // Sends last 15 messages to new comers\n while (clientConnected) // It will execute until client sends a signal to disconnect\n {\n readMessagesFromClients(); // Reads a client inputs then sends them to other clients\n }\n }catch (IOException ioException)\n {\n \tSystem.out.println(username + \" has left the chat.\"); // Announce client's disconnection on server\n }finally {\n try\n {\n socket.close();\n }catch (IOException ioException)\n {\n \tSystem.out.println(username + \" has left the chat.\"); // Announce client's disconnection on server\n }\n }\n }", "@Override\n\t\tpublic void run() {\n\t\t\tString[] data;\n\n\t\t\t// declare strings and assign\n\t\t\tString stream, done = \"Done\", connect = \"Connect\", disconnect = \"Disconnect\", chat = \"Chat\";\n\n\t\t\ttry {\n\t\t\t\t// while stream is not empty read\n\t\t\t\twhile ((stream = reader.readLine()) != null) {\n\n\t\t\t\t\t// conditional to check if user is registered based on the stream coming in from\n\t\t\t\t\t// the server\n\t\t\t\t\tif (stream.contains(\"Not a registered user!\") && textAreaChat.getText().isEmpty()) {\n\n\t\t\t\t\t\t// get unregistered student number\n\t\t\t\t\t\tString unregisterdUser = textfieldUsername.getText();\n\n\t\t\t\t\t\t// append the client confirming the user is unregistered\n\t\t\t\t\t\ttextAreaChat.append(unregisterdUser + \": is not a registered user\\n\");\n\n\t\t\t\t\t\t// display a popup to notify user that they are not registered\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\t\t\t\t\"You are not a registered user, please open another client!\");\n\n\t\t\t\t\t\t// end that instance of client gui as they are not registered\n\t\t\t\t\t\tsock.close();\n\t\t\t\t\t\tdispose();\n\t\t\t\t\t}\telse {\n\t\t\t\t\t\t// split the data stream\n\t\t\t\t\t\tdata = stream.split(\":\");\n\t\t\t\t\t\t// if index of data split 2 is = to chat\n\t\t\t\t\t\tif (data[2].equals(chat)) {\n\t\t\t\t\t\t\t// username has connected\n\t\t\t\t\t\t\ttextAreaChat.append(data[0] + \": \" + data[1] + \"\\n\");\n\t\t\t\t\t\t\t// sets the username\n\t\t\t\t\t\t\tsettingName = data[0];\n\t\t\t\t\t\t\t// sets the position of the text insertion caret for this text component\n\t\t\t\t\t\t\ttextAreaChat.setCaretPosition(textAreaChat.getDocument().getLength());\n\t\t\t\t\t\t\t// if index of data split 2 is = to connect\n\t\t\t\t\t\t} else if (data[2].equals(connect)) {\n\t\t\t\t\t\t\t// run remove all\n\t\t\t\t\t\t\ttextAreaChat.removeAll();\n\t\t\t\t\t\t\t// add user\n\t\t\t\t\t\t\tuserAdd(data[0]);\n\t\t\t\t\t\t\t// if index of data split 2 is = to disconnect\n\t\t\t\t\t\t} else if (data[2].equals(disconnect)) {\n\t\t\t\t\t\t\t// remove the user\n\t\t\t\t\t\t\tuserRemove(data[0]);\n\t\t\t\t\t\t\t// if index of data split 2 is = to done\n\t\t\t\t\t\t} else if (data[2].equals(done)) {\n\t\t\t\t\t\t\t// write the users\n\t\t\t\t\t\t\twriteUsers();\n\t\t\t\t\t\t\t// clear\n\t\t\t\t\t\t\tusers.clear();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} catch (Exception ex) {\n\n\t\t\t}\n\t\t}", "public void run(){\r\n\r\n\t\tString message = new String();\r\n\t\t\r\n\t\t\r\n\t\twhile(escoltant){\r\n\t\t\ttry{\r\n\t\t\t\t\r\n\t\t\t\tsClient = sServer.accept();\r\n\t\t\t\t\r\n\t\t\t\tdataIn = new ObjectInputStream(sClient.getInputStream());\r\n\t\t\t\t\r\n\t\t\t\tdataOut = new ObjectOutputStream(sClient.getOutputStream());\r\n\t\t\t\t//objectOut = new ObjectOutputStream(sClient.getOutputStream());\r\n\t\t\t\t\r\n\t\t\t\tmessage = (String)dataIn.readObject();\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tif (message.startsWith(\"ADD\")){\r\n\t\t\t\t\t\t\r\n\t\t\t\t\tif(Logica.addUser(message)){\r\n\t\t\t\t\t\tdataOut.writeObject(\"OK\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tdataOut.writeObject(\"KO\");\r\n\t\t\t\t\t}\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (message.startsWith(\"LOG\")){\r\n\t\t\t\t\tdataOut.writeObject(Logica.checkUser(message));\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.equals(\"MAPES\")){\r\n\t\t\t\r\n\t\t\t\t\tdataOut.writeObject(Logica.enviaEscenaris());\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.startsWith(\"GUANYADA\")){\r\n\t\t\t\t\t\r\n\t\t\t\t\tConectorDB.insertPartidaGuanyada();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif(message.startsWith(\"PERDUDA\")){\r\n\t\t\t\t\t\r\n\t\t\t\t\tConectorDB.insertPartidaPerduda();\r\n\t\t\t\t}\r\n\t\t\t\tdataIn.close();\r\n\t\t\t\tdataOut.close();\r\n\t\t\t\t\r\n\t\t\t\tsClient.close();\r\n\t\t\t}catch(IOException e){\r\n\t\t\t\t\r\n\t\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\twhile (true) {\r\n\t\t\t\t\ttry {\r\n\t\t\t\t\t\treMsg = withClient.getInputStream();\r\n\t\t\t\t\t\tbyte[] reBuffer = new byte[500];\r\n\t\t\t\t\t\treMsg.read(reBuffer);\r\n\t\t\t\t\t\tString msg = new String(reBuffer);\r\n\t\t\t\t\t\tmsg = msg.trim();\r\n\t\t\t\t\t\tif (msg.indexOf(\"/bye\") == 0) {\r\n\t\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tAnalysis.ckMsg(mySin, msg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} catch (IOException e) {\r\n\t\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t\t\tendCat();\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}", "public void chatMsg(String msg)\n\t{\n\t\tchatArea.append(msg + \"\\n\");\n\t}", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tServerSocket servidor = new ServerSocket(8888);\n\t\t\t\n\t\t\tString nick,ip,mensaje;\n\t\t\t\n\t\t\tPaquete paquete_recibido;\n\t\t\twhile(true)\n\t\t\t{\n\t\t\t\n\t\t\tSocket miSocket = servidor.accept();\n\t\t\t\n\t\t\tObjectInputStream paquete_datos = new ObjectInputStream(miSocket.getInputStream());\n\t\t\t\n\t\t\tpaquete_recibido =(Paquete) paquete_datos.readObject();\n\t\t\t\n\t\t\tnick = paquete_recibido.getNick();\n\t\t\t\n\t\t\tip = paquete_recibido.getIp();\n\t\t\t\n\t\t\tmensaje = paquete_recibido.getMensaje();\n\t\t\t\n\t\t\t\n\t\t\t/*DataInputStream flujo_entrada = new DataInputStream(miSocket.getInputStream());\n\t\t\t\n\t\t\tString mensaje = flujo_entrada.readUTF();\n\t\t\t\n\t\t\tareatexto.append(\"\\n\" + mensaje);\n\t\t\t*/\n\t\t\t\n\t\t\tareatexto.append(\"\\n\" +nick +\": \"+mensaje +\" para: \"+ ip);\n\t\t\t\n\t\t\t\n\t\t\tmiSocket.close();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (ClassNotFoundException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t}", "public void requestChat(String otherUsername) {\n System.out.println(\"Requesting chat with \" + otherUsername);\n toServer.println(\"newchat\" + \" \" + username + \" \" + otherUsername);\n toServer.flush();\n }", "private void run() throws IOException {\n\n Socket socket = new Socket(\"localhost\", 8678);\n in = new BufferedReader(new InputStreamReader(\n socket.getInputStream()));\n\n // Process all messages from server, according to the protocol.\n\n while (true) {\n String line = in.readLine();\n if (line.startsWith(\"SUBMIT\")) {\n new MessageThread(socket).start();\n }\n else if (line.startsWith(\"NAMEACCEPTED\")) {\n System.out.println(\"Success\");;\n } else if (line.startsWith(\"MESSAGE\")) {\n System.out.println(line);\n }\n }\n }", "@Override\n public void run() {\n String message = \"Someone: \";\n while(true) {\n try {\n message = in.readLine();\n if (message == null) {\n server.sendToAll(\"Someone has disconnected.\");\n break;\n }\n server.sendToAll(message);\n } catch (IOException e) {\n break;\n } catch (Exception e) {\n System.out.println(e);\n }\n }\n }", "public void processMessage(Chat chat, Message message)\n {\n }", "@Override\n\tpublic void run() {\n\t\twhile (true) {\n\t\t\t//让改线程可以接受到客户端的信息;\n\t\t\ttry {\n//\t\t\t\tThread.sleep(2000);\n\t\t\tObjectInputStream ois=new ObjectInputStream(s.getInputStream());\n\t\t\tMessage message=(Message) ois.readObject();\n\t\t\tSystem.out.println(message.getSender()+\"给\"+message.getGetter()+\"说\"+message.getCon());\n\t\t\t//这里进行转发;\n\t\t\t/*\n\t\t\t * 转发时出现错误;???????????已解决;\n\t\t\t */\n\t\t\t//取得接收人的通讯线程;\n\t\t\tServerConnectClient scClient=ManageQQClientTh.getClientThread(message.getGetter());\n\t\t\tObjectOutputStream oos=new ObjectOutputStream(scClient.s.getOutputStream());\n\t\t\t\toos.writeObject(message);\n\t\t\n\t\t\t\t} catch (IOException | ClassNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n chat.receiveMessage();\n }", "public void onRecvServerChatMsg(WsMessage.ServerPushChatMsg msg) {\n if (msg != null && msg.list != null && msg.list.size() > 0) {\n for (int i = 0; i < msg.list.size(); i++) {\n WsMessage.ChatMsg chatMsg = msg.list.get(i);\n ChatManager.GetInstance().onReceiveChatMsg(chatMsg.username, chatMsg.msg, \"\", chatMsg.userid, chatMsg.admin);\n }\n ((Activity) this.mContext).runOnUiThread(new Runnable() {\n public void run() {\n ChatManager.GetInstance().notifyChatHistoryDataSetChanged();\n }\n });\n }\n }", "public void run() {\n try {\n \n // Input reader (from client)\n this.in = new BufferedReader(new InputStreamReader(this.socket.getInputStream()));\n \n // Output printer (to client)\n this.out = new PrintWriter(this.socket.getOutputStream(), true);\n \n /**\n * First, send a login request command REQUESTLOGIN\n * continuously to client until login data has been received.\n */\n while(true) {\n out.println(\"LOGINREQUEST\");\n this.request = in.readLine();\n \n // If no login data is received, keep reading inputs\n if (request == null) {\n return;\n }\n \n System.out.println(request);\n \n // Split incoming message\n this.args = this.request.split(\" \");\n \n // If client is attempting to register a new user REGISTER <username> <password>\n if(this.request.startsWith(\"REGISTER\")) {\n \n /**\n * Arguments\n * \n * args[0] = REGISTER\n * args[1] = username\n * args[2] = password\n */\n \n // Register username if not already taken.\n if(!userHandler.usernameTaken(args[1])) {\n userHandler.newUser(args[1], args[2]);\n out.println(\"REGISTERACCEPTED\");\n } else {\n out.println(\"ALREADYEXISTS\");\n }\n }\n \n // If client is attempting to log in with LOGIN <username> <password>\n if(this.request.startsWith(\"LOGIN\") && args.length == 3) {\n \n this.username = args[1].toLowerCase();\n this.password = args[2];\n \n // Attempt to authenticate user. Make sure the users list is used synchronously\n synchronized(users) {\n if(userHandler.authenticateUser(username, password)) {\n if(!users.contains(username)) {\n users.add(username);\n break;\n } else {\n out.println(\"ALREADYLOGGEDIN\");\n }\n } else {\n out.println(\"LOGINDENIED\");\n }\n }\n \n }\n }\n \n // Report back to client that login authentication succeeded.\n this.out.println(\"LOGINACCEPTED\");\n writers.add(out);\n \n /**\n * Handle incoming chat messages from client and\n * broadcast them to every connected client.\n */\n while(true) {\n this.request = in.readLine();\n \n // Skip if no request\n if(request == null) {\n continue;\n }\n \n // Split request into arguments\n this.args = request.split(\" \");\n \n // If this is a MESSAGE request from client, broadcast to everyone in chat\n if(this.request.startsWith(\"MESSAGE\") && this.args.length >= 2) {\n \n for(PrintWriter writer : writers) {\n writer.println(\"MESSAGE \" + this.username + \" \" + this.request.substring(\"MESSAGE \".length()));\n }\n \n // Write chat to file\n FileWriter fw = new FileWriter(\"chatlog.dat\", true);\n fw.write(this.username + \": \" + this.request.substring(\"MESSAGE \".length()) + \"\\n\");\n fw.close();\n }\n \n // Manual logout from client\n if(this.request.startsWith(\"LOGOUT\")) {\n \n // Remove username from users list\n if(this.username != null) {\n users.remove(this.username);\n }\n \n // Remove client from writers list\n if(this.out != null) {\n writers.remove(this.out);\n }\n \n // Close socket with client\n try {\n this.socket.close();\n } catch (IOException e) {\n System.out.println(\"Error closing socket for \" + username + \": \" + e);\n }\n }\n \n }\n \n } catch (IOException e) {\n System.out.println(e);\n } finally {\n \n /**\n * Cleanup when the client is disconnected.\n */\n \n // Remove username from users list\n if(username != null) {\n users.remove(this.username);\n }\n \n // Remove client from writers list\n if(out != null) {\n writers.remove(this.out);\n }\n \n // Close socket with client\n try {\n socket.close();\n } catch (IOException e) {\n System.out.println(\"Error closing socket for \" + username + \": \" + e);\n }\n }\n }", "public void run() {\n\t\ttry { \n\t\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\tPrintWriter out = new PrintWriter(socket.getOutputStream(), true);\n\t\t\t \n\t\t\tString fromServer= null;\n\t\t\tString fromUser = null;\n\n\t\t\twhile(true){\n\t\t\t\t//If the user types \"BACKUP\" will make a file of the messages\n\t\t\t\tif ((fromUser = in.readLine()).equals(\"BACKUP\")){\n\t\t\t\t\tbuffer.add(\"BACKUP\");\n\t\t\t\t\tfor(int i = 0; i < buffer.size(); i++){\n\t\t\t\t\t\tout.println(buffer.get(i));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//put whatever the user input to the Server Buffer\n\t\t\t\tbuffer.add(fromUser);\n\n\t\t\t\t//Displaying the option menu\n\t\t\t\tSystem.out.print(\"\\n1. Send Message to all clients\\n\" +\n\t\t\t\t\t\"2. Print message from client\\n\" +\n\t\t\t\t\t\"3. Quit\\n\\n\" + \n\t\t\t\t\t\"Please choice 1, 2, or 3\\n\" +\n\t\t\t\t\t\"Choice: \");\n\t\t\t\tfromServer = stdIn.readLine();\n\t\t\t\tif(fromServer.equals(\"1\")){ \n\t\t\t\t\tout.println(buffer.lastElement());\n\t\t\t\t}\n\t\t\t\telse if(fromServer.equals(\"2\")){\n\t\t\t\t\tSystem.out.println(buffer.lastElement());\n\t\t\t\t}\n\t\t\t\telse if(fromServer.equals(\"3\")){\n\t\t\t\t\tSystem.out.println(\"\\nLeaving the program. Good Bye!\\n\");\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.println(\"Options 1~3 Please\");\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLogger.dump(0, \"Client Exited by force quitting\");\n\t\t\tSystem.exit(1);\n\t\t} catch (NullPointerException e) {\n\t\t\tLogger.dump(0, \"Client Exited\");\n\t\t} \n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tLog.d(\"shows\",\"shw \"+i++);\n\n\t\t\t\t//SendMsg\n\t\t\t\tnameValuePairs= new ArrayList<NameValuePair>(3);\n\t\t\t\tdb=new ChattyData(con);\n\t\t\t\tCursor c=db.getUnsent();\n\t\t\t\tif(c!=null)\n\t\t\t\t{\n\t\t\t\t c.moveToFirst();\n\t\t\t\t try{c.getString(1).equals(\"\");\n\t\t\t\t sno=c.getInt(0);\n\t\t\t\t\tLog.d(\"sno\",sno+\"\");\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"from\", pref.getString(\"id\", \"\")));\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"to\", c.getString(1)));\n\t\t\t\t nameValuePairs.add(new BasicNameValuePair(\"msg\", c.getString(2)));\n\t\t\t\t SendMsg sendMsg=new SendMsg(con,sno);\n\t\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t\t\tsendMsg.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\t\telse\tsendMsg.execute(nameValuePairs);\n\t\t\t\t }\n\t\t\t\t catch(Exception e){}\n\t\t\t\t}\n\t\t\t\tdb.close();\n\t\t\t\tLog.d(\"shows\",\"sno \"+sno+\"\");\n\t\t\t\t\n\t\t\t\t//NewMsg\n\t\t\t\tnameValuePairs= new ArrayList<NameValuePair>(1);\n\t\t\t\ttry{\n\t\t\t\t\tnameValuePairs.add(new BasicNameValuePair(\"id\", pref.getString(\"id\", \"\")));\n\t\t\t\t\tNewMsg newMsg=new NewMsg(con);\n\t\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t\t\tnewMsg.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\t\telse\tnewMsg.execute(nameValuePairs);\n\t\t\t\t}catch(Exception e){}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t//new ReadMsg().execute();\n\t\t\t\t\n\t\t\t\t/*AddChat myTask = new AddChat(this);\n\t\t\t\tif (Build.VERSION.SDK_INT>=Build.VERSION_CODES.HONEYCOMB)\n\t\t\t\t myTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR,nameValuePairs);\n\t\t\t\telse\n\t\t\t\t myTask.execute(nameValuePairs);*/\n\t\t\t}", "public void listen(){\n \ttry{ \t\t\n \t\twhile(true){\n \t \t\tSocket socket = server.accept();\n \t \t\tString nickname = new String(\"Guest_\" + String.valueOf(nextId));\n \t \t\t\n \t \t\t// Create a server connection and connect it to the appropriate user.\n \t \t\tServerConnection userConnection = new ServerConnection(nextId, socket, this);\n \t \t\tUser user = new User(nextId, nickname, userConnection);\n \t \t\tuserConnection.setUser(user);\n \t \t\t\n \t \t\tsynchronized(userMap){\n \t \t\t\tuserMap.put(nextId, user);\n \t \t\t}\n \t \t\t// Send a response that connection was successful;\n \t \t\tuserConnection.sendMessage(new Message(Command.REPLY_SUCCESS, \"\", Calendar.getInstance(), \"\"));\n \t \t\t\n \t \t\tnextId++;\n \t\t}\n \t}\n \tcatch(IOException e){\n \t\te.printStackTrace();\n \t}\n }", "@Override\n\tpublic void doChat(LoginDetails loginDetails) {\n\tSystem.out.println(\"Boomer chat\");\t\n\t}", "private void onReceiveChatMessages() {\n\n//\t\tL.debug(\"onReceiveChatMessages\");\n//\n//\t\t// called from NetworkChangeReceiver whenever the user is logged in\n//\t\t// will always be called whenever there is a change in network state,\n//\t\t// will always check if the app is connected to server,\n//\t\tXMPPConnection connection = XMPPLogic.getInstance().getConnection();\n//\n//\t\tif (connection == null || !connection.isConnected()) {\n//\t\t\tSQLiteHandler db = new SQLiteHandler(getApplicationContext());\n//\t\t\tdb.openToWrite();\n//\n//\t\t\t// db.updateBroadcasting(0);\n//\t\t\t// db.updateBroadcastTicker(0);\n//\n//\t\t\tAccount ac = new Account();\n//\t\t\tac.LogInChatAccount(db.getUsername(), db.getEncryptedPassword(), db.getEmail(), new OnXMPPConnectedListener() {\n//\n//\t\t\t\t@Override\n//\t\t\t\tpublic void onXMPPConnected(XMPPConnection con) {\n//\t\t\t\t\t\n//\t\t\t\t\t//addPacketListener(con);\n//\t\t\t\t}\n//\n//\t\t\t});\n//\n//\t\t\tdb.close();\n//\t\t} else {\n//\n//\t\t\t//addPacketListener(connection);\n//\n//\t\t}\n\t}", "private void Thread() {\n\n Thread thread = new Thread ( new Runnable() {\n \n @Override\n public void run() {\n \n String mensagem = \"\";\n\n try {\n \n InputStreamReader isr = new InputStreamReader(socket.getInputStream());\n BufferedReader br = new BufferedReader(isr);\n\n while ((mensagem = br.readLine()) != null) {\n\n enviarMensagem(mensagem);\n }\n } catch ( Exception e ) {\n e.printStackTrace();\n }\n }\n });\n //para iniciar a thread\n thread.start();\n }", "public void receiveChatRequest() {\n\t\t\r\n\t\tString message = \"Chat request details\";\r\n\t\t\r\n\t\t//Notify the chat request details to the GUI\r\n\t\tthis.observable.notifyObservers(message);\r\n\t}", "public void startToRecivePlayers() {\n while (numberOfPlayers == 0) {\n controller.getSpf().getLabel1().setText(\"Ingresa el numero de jugadores\");\n }\n try {\n ss = new ServerSocket(8888);\n Thread.sleep(100);\n } catch (IOException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n } catch (InterruptedException e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n controller.getSpf().getLabel1().setText(\"Recibido\");\n run();\n }", "private void runProgram() {\n\n try {\n ServerSocket ss = new ServerSocket(8088);\n Dispatcher dispatcher = new Dispatcher(allmsg,allNamedPrintwriters,clientsToBeRemoved);\n Cleanup cleanup = new Cleanup(clientsToBeRemoved,allClients);\n cleanup.start();\n dispatcher.start();\n logger.initializeLogger();\n\n while (true) {\n Socket client = ss.accept();\n InputStreamReader ir = new InputStreamReader(client.getInputStream());\n PrintWriter printWriter = new PrintWriter(client.getOutputStream(),true);\n BufferedReader br = new BufferedReader(new InputStreamReader(client.getInputStream()));\n String input = br.readLine();\n System.out.println(input);\n String name = input.substring(8);\n logger.logEventInfo(name + \" has connected to the chatserver!\");\n allClients.put(name,client);\n allNamedPrintwriters.put(name,printWriter);\n ClientHandler cl = new ClientHandler(name,br, printWriter, allmsg);\n Thread t = new Thread(cl);\n t.start();\n allmsg.add(\"ONLINE#\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void enableChat();", "private void userMessageEvent(){\n message = UI.getMessage(); //Get object\r\n message.addKeyListener(new KeyListener() {\r\n @Override\r\n public void keyTyped(KeyEvent e) {}\r\n\r\n @Override\r\n public void keyPressed(KeyEvent e) {\r\n if(e.getKeyCode() == KeyEvent.VK_ENTER){ //Check if enter button is pressed\r\n if(!UI.getMessage().getText().equalsIgnoreCase(\"\")){ //If the message is not empty\r\n for (UserLogic t : threads) { //Go through users\r\n if(((String)UI.getContacts().getSelectedValue()).equals(groupChat)) { //If the chat is a group chat\r\n groupChatSend(t);\r\n }\r\n else { //Current User\r\n individualSend(t);\r\n }\r\n }\r\n UI.getMessage().setText(\"\"); //Clear message\r\n }\r\n }\r\n }\r\n\r\n @Override\r\n public void keyReleased(KeyEvent e) {}\r\n });\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\ttry{\n\t\t\t\t\n\t \tSocket s=new Socket(\"192.168.3.176\",9000);\n\t \tBufferedReader reader=new BufferedReader(new InputStreamReader(s.getInputStream()));\n\t \tString info=reader.readLine();\t \n\t \ttext.setText(\"服务器收到的消息:\"+info); \t\n\t reader.close();\n\t s.close();\n\t }catch(Exception e){\n\t \te.printStackTrace();\n//\t \tSystem.out.print(c);\n\t //\ttext.setText(\"出错了\"); \n\t }\n\t\t}", "public void run() {\n while (true) {\n try {\n /* Get string from client */\n String fromClient = this.in.readLine();\n \n /* If null, connection is closed, so just finish */\n if (fromClient == null) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this == clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + this.id + \" disconnected\"); }\n }\n this.in.close();\n this.out.close();\n this.socket.close();\n return;\n }\n \n /* If the client said \"bye\", close the connection */\n if (fromClient.equals(\"bye\")) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this != clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + this.id + \" said bye, disconnecting\"); }\n }\n this.in.close();\n this.out.close();\n this.socket.close();\n return;\n }\n\n if(fromClient.startsWith(\"/id \")) {\n String oldID=this.id;\n String msg = this.changeID(fromClient.substring(4));\n if (msg.equals(\"\")) {\n for (int x=0; x<clientlist.size(); x++) {\n if (this != clientlist.get(x)){ clientlist.get(x).out.println(\"Client \" + oldID + \" changed his/her name to \" + this.id); }\n }\n }\n else {\n this.out.println(msg);\n }\n }\n else if(fromClient.startsWith(\"/whisper \")){\n String msg = this.whisper(fromClient.substring(9, StringUtils.ordinalIndexOf(fromClient, \" \", 2)));\n String user = fromClient.substring(9, StringUtils.ordinalIndexOf(fromClient, \" \", 2));\n for (int x=0; x<clientlist.size(); x++) {\n if (user.equalsIgnoreCase(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(this.id + \" whispered : \" + (fromClient.substring(StringUtils.ordinalIndexOf(fromClient, \" \", 2)+1)).toUpperCase() );\n }\n }\n if(!msg.equalsIgnoreCase(\"\")){ this.out.println(msg); }\n }\n else if(fromClient.startsWith(\"/room \")){\n String msg = this.roomChange(fromClient.substring(6));\n String roomName = fromClient.substring(6);\n for (int x=0; x<rooms.size(); x++) {\n if (rooms.get(x).title.equalsIgnoreCase(roomName)) {\n for (int y = 0; y < clientlist.size(); y++) {\n if (rooms.get(x).hasClient(clientlist.get(y).id) && !clientlist.get(y).id.equalsIgnoreCase(this.id)) {\n clientlist.get(y).out.println(this.id + \" has joined room \" + roomName);\n }\n }\n }\n }\n this.out.println(msg);\n\n room aRoom = new room(\"x\");\n for(room theRoom : rooms){\n ArrayList<String> members = theRoom.getMembers();\n for(String member : members) {\n if (member.equalsIgnoreCase(this.id)) {\n aRoom = theRoom;\n }\n }\n }\n\n this.out.print(\"The admins in the group are: \");\n for(String admin: aRoom.getAdmins()){\n this.out.print(admin + \" \");\n }\n this.out.println(\"\");\n this.out.println(\"The topic of the room is \" + aRoom.topic);\n }\n else if(fromClient.startsWith(\"/+admin \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String roomName=\"\";\n room aRoom = new room(\"x\");\n String user = fromClient.substring(8);\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n this.addAdmin(user, roomName);\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(user + \" was made an admin of \" + roomName);\n }\n }\n }\n else if(fromClient.startsWith(\"/-admin \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String roomName=\"\";\n room aRoom = new room(\"x\");\n String user = fromClient.substring(8);\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n this.removeAdmin(user);\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id)){\n clientlist.get(x).out.println(clientlist.get(x).id + \" was removed from the admin position in \" + roomName);\n }\n }\n }\n else if(fromClient.startsWith(\"/kick \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String user = fromClient.substring(6);\n String roomName=\"\";\n room aRoom = new room(\"x\");\n for(room theRoom : rooms){\n ArrayList<String> admins = theRoom.getAdmins();\n for(String admin : admins) {\n if (admin.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n aRoom = theRoom;\n }\n }\n }\n for (int x=0; x<clientlist.size(); x++) {\n if (aRoom.getMembers().contains(clientlist.get(x).id) && !user.equalsIgnoreCase(this.id) && !clientlist.get(x).id.equalsIgnoreCase(user)){\n clientlist.get(x).out.println(user + \" was kicked from \" + roomName);\n }\n else if (aRoom.getAdmins().contains(user) && clientlist.get(x).id.equalsIgnoreCase(this.id) ){\n this.out.println(\"You cannot kick an admin of the group\");\n }\n else if (aRoom.getMembers().contains(clientlist.get(x).id) && clientlist.get(x).id.equalsIgnoreCase(user)) {\n clientlist.get(x).out.println(\"You are being kicked from \" + roomName + \" by \" + this.id + \", and being placed in Lobby.\");\n this.kick(user);\n }\n }\n }\n else if(fromClient.startsWith(\"/topic \")){\n if (!this.isAdmin()){\n this.out.println(\"You don't have permission to use that command\");\n }\n String topic = fromClient.substring(7);\n String roomName=\"\";\n\n for(room theRoom : rooms){\n ArrayList<String> members = theRoom.getMembers();\n for(String member : members) {\n if (member.equalsIgnoreCase(this.id)) {\n roomName = theRoom.title;\n }\n }\n }\n\n this.addTopic(topic);\n for (int x=0; x<rooms.size(); x++) {\n if (rooms.get(x).title.equalsIgnoreCase(roomName)) {\n for (int y = 0; y < clientlist.size(); y++) {\n if (rooms.get(x).hasClient(clientlist.get(y).id) && !clientlist.get(y).id.equalsIgnoreCase(this.id) && rooms.get(x).getAdmins().contains(this.id)) {\n clientlist.get(y).out.println(this.id + \" changed the topic of the room to \" + topic);\n }\n }\n }\n }\n }\n \n /* Otherwise send the text to the server*/\n\n else {\n for (int y=0; y < rooms.size(); y++) {\n for (int x = 0; x < clientlist.size(); x++) {\n if (this != clientlist.get(x)) {\n if(rooms.get(y).hasClient(this.id) && rooms.get(y).hasClient(clientlist.get(x).id)) {\n clientlist.get(x).out.println(\"Client \" + this.id + \" said: \" + fromClient);\n }\n }\n }\n }\n }\n \n } catch (IOException e) {\n /* On exception, stop the thread */\n System.out.println(\"IOException: \" + e);\n return;\n }\n }\n }", "public void run() {\n try {\n String receivedMessage = \"\";\n \t\twhile (!receivedMessage.startsWith(this.PSEUDO+\" left.\")) {\n \n byte[] buf = new byte[256];\n DatagramPacket packet = new DatagramPacket(buf, buf.length);\n \n clientSocket.receive(packet);\n receivedMessage = new String(packet.getData(), packet.getOffset(), packet.getLength());\n\n conversation.append(receivedMessage + \"\\n\");\n\n \t\t}\n \t\tSystem.exit(0);\n\n \t} catch (Exception e) {\n \tSystem.err.println(\"Error in ReceptionClientThread:\" + e); \n }\n }", "@Override\r\n\tpublic void run() {\n\t\tString msg;\r\n\t\ttry\r\n\t\t{\r\n\t\t\twhile(true)\r\n\t\t\t{\r\n\t\t\t\t\tBufferedReader inFromClient =\r\n\t\t\t\t new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n\t\t\t\t DataOutputStream outToClient = new DataOutputStream(socket.getOutputStream());\r\n\t\t\t\t \r\n\t\t\t\t String clientSentence;\r\n\t\t\t\t while((clientSentence = inFromClient.readLine())!=null)\r\n\t\t\t\t {\t\r\n\t\t\t\t\t System.out.println(\"Received: \" + clientSentence);\r\n\t\t\t\t\t System.out.println(\"port: \" + socket.getPort());\r\n\r\n\t\t\t\t\t String newsentence = clientSentence + '\\n';\r\n\t\t\t\t\t outToClient.writeBytes(\"Server: \"+newsentence);\r\n\t\t\t\t\t \r\n\t\t\t\r\n\t\t\t\t }\r\n//\t\t\t\t \r\n//\t\t\t\t\treader.close();\r\n//\t\t\t\t\tinFromClient.close();\r\n//\t\t\t\t\toutToClient.close();\r\n//\t\t\t\t\tsocket.close();\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(SocketException e)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Client has Disconnected\");\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\n\t\t\t\tURL url = new URL(\"http://ecshopxax.sinaapp.com/js/index.js\");\n\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\tInputStream is = connection.getInputStream();\n\t\t\t\tbyte[] bs = new byte[1024];\n\t\t\t\tint len = 0;\n\t\t\t\tStringBuffer sb = new StringBuffer();\n\t\t\t\twhile ((len = is.read(bs)) != -1) {\n\t\t\t\t\tString str = new String(bs, 0, len);\n\t\t\t\t\tsb.append(str);\n\t\t\t\t}\n\n\t\t\t\tMessage msg = new Message();\n\t\t\t\tmsg.what = 0x15;\n\n\t\t\t\tBundle bundle = new Bundle();\n\t\t\t\tbundle.clear();\n\n\t\t\t\t// bundle.putString(\"recv_server\", new String(buffer));\n\t\t\t\tbundle.putString(\"text1\", sb.toString());\n\n\t\t\t\tmsg.setData(bundle);\n\n\t\t\t\tmyHandler.sendMessage(msg);\n\n\t\t\t\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "public static void main(String[] args) throws Exception {\n JFrame frame = new JFrame (\"Chatting Server\");\r\n frame.setLayout(null);\r\n frame.setBounds(100, 100, 300, 300);\r\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\r\n JLabel connectionStatusLabel = new JLabel(\"No Clients Connected\");\r\n connectionStatusLabel.setBounds(80, 30, 200, 30);\r\n connectionStatusLabel.setForeground(Color.red);\r\n frame.getContentPane().add(connectionStatusLabel);\r\n\r\n // create the welcoming server's socket\r\n ServerSocket welcomeSocket = new ServerSocket(6789);\r\n\r\n // thread to always listen for new connections from clients\r\n new Thread (new Runnable(){ @Override\r\n public void run() {\r\n\r\n Socket connectionSocket;\r\n DataOutputStream outToClient;\r\n\r\n while (!welcomeSocket.isClosed()) {\r\n\r\n try {\r\n // when a new client connect, accept this connection and assign it to a new connection socket\r\n connectionSocket = welcomeSocket.accept();\r\n\r\n // create a new output stream and send the message \"You are connected\" to the client\r\n outToClient = new DataOutputStream(connectionSocket.getOutputStream());\r\n outToClient.writeBytes(\"-Connected\\n\");\r\n\r\n clientCount++;\r\n\r\n // add the new client to the client's array\r\n Clients.add(new ClientThread(clientCount, connectionSocket, Clients));\r\n // start the new client's thread\r\n Clients.get(Clients.size() - 1).start();\r\n\r\n }\r\n catch (Exception ex) {\r\n\r\n }\r\n\r\n }\r\n\r\n }}).start();\r\n\r\n\r\n\r\n // thread to always get the count of connected clients and update the label\r\n new Thread (new Runnable(){ @Override\r\n public void run() {\r\n\r\n try {\r\n\r\n while (true) {\r\n\r\n if (Clients.size() > 0)\r\n {\r\n if (Clients.size() == 1)\r\n connectionStatusLabel.setText(\"1 Client Connected\");\r\n else\r\n connectionStatusLabel.setText(Clients.size() + \" Clients Connected\");\r\n\r\n connectionStatusLabel.setForeground(Color.blue);\r\n }\r\n else { //if there are no clients connected, print \"No Clients Connected\"\r\n\r\n connectionStatusLabel.setText(\"No Clients Connected\");\r\n connectionStatusLabel.setForeground(Color.red);\r\n\r\n }\r\n\r\n\r\n Thread.sleep(1000);\r\n\r\n }\r\n\r\n } catch (Exception ex) {\r\n\r\n }\r\n\r\n }}).start();\r\n\r\n\r\n\r\n frame.setVisible(true);\r\n\r\n }", "public void run() {\n\t\tInputStream istream = null;\n\t\ttry {\n\t\t\tistream = (this.socket).getInputStream();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t DataInputStream dstream = new DataInputStream(istream);\n\t \n\t username = null;\n\t try {\n\t \tusername = dstream.readLine();\n\t \tSystem.out.println(username + \" on server side! (username)\");\n\t \tthis.masterServer.addUserName(username);\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 // pause thread to read in from client.\n\t\tString friendUsername = null;\n\t try {\n\t \tfriendUsername = dstream.readLine();\n\t \tSystem.out.println(friendUsername + \" on server side!!!!! (friendUsername)\");\n\t \tfindFriendsThread(friendUsername);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t try {\n\t\t\tdstream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t try {\n\t\t\tistream.close();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t //this.masterServer.addUserName(username);\n\t \n\t}", "@OnClick(R.id.enter_chat1)\n public void sendMessage() {\n if (getView() == null) {\n return;\n }\n EditText editText = getView().findViewById(R.id.chat_edit_text1);\n sendMessageBackend(editText.getText().toString(), utils.getChatUser());\n updateListAdapter();\n editText.setText(\"\");\n }", "ChatServer (int port) throws IOException \n {\n\t//create new server socket \n ServerSocket server = new ServerSocket(port);\n \n //confirmation message that server is connected\n System.out.println(\"The Chat Server is now connected to port \" + port + \".\");\n System.out.println(\"Waiting for clients to connect...\");\n\n //looks for new clients and adds them to linkedList\n while (true) \n {\n client = server.accept();\n linkedList.add(client);\n \n //creates new participant(ChatClient) in discussion\n //with associated socket as argument\n ChatClient chatterer = new ChatClient(client);\n \n //starts the thread\n chatterer.start();\n \n //prints message on server console including # of the client is and\n //where they are connected from\n System.out.println(\"New client #\" + linkedList.size() + \" on client's port \" \n \t\t + client.getPort());\n }\n }", "public void run() {\r\n\t\ttry {\r\n\t\t\toutput = clientSocket.getOutputStream();\r\n\t\t\tinput = clientSocket.getInputStream();\r\n\t\t// send initial message on connect\r\n\t\t\tsendMessage(new common.messages.KVAdminMessage(\"connect\", \"CONNECT_SUCCESS\", \"\", \"\")); \r\n\r\n\t\t\r\n\t\t\twhile(isOpen) {\r\n\t\t\t\ttry {\r\n\t\t\t\t\t// Receive the KV Message from Client and check if it is valid\r\n\t\t\t\t\tcommon.messages.KVMessage latestMsg = receiveMessage();\r\n\t\t\t\t\tif (latestMsg.validityCheck() == null) {\r\n\t\t\t\t\t\t// If it is valid Handle the message by calling the function in KVServer\r\n\t\t\t\t\t\tcommon.messages.KVMessage returnMsg = m_server.handleClientMessage(latestMsg);\r\n\t\t\t\t\t\tif (returnMsg.validityCheck() == null) {\r\n\t\t\t\t\t\t\t// If returned KVMessage was valid send it back to the client\r\n\t\t\t\t\t\t\tif (returnMsg.getStatus().equals(\"SERVER_STOPPED\") || returnMsg.getStatus().equals(\"SERVER_WRITE_LOCK\") || returnMsg.getStatus().equals(\"SERVER_NOT_RESPONSIBLE\")){\r\n\t\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg.getHeader() + \" was not processed by Server.\");\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\tSystem.out.println(\"Last command from client \" + latestMsg.getHeader() + \" was Successfully Processed by Server!\");\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\tsendMessage(returnMsg);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\t// If returned KVMessage is not valid it will have all blank fields\r\n\t\t\t\t\t\t\tSystem.out.println(\"Last command from client \" + latestMsg + \" encountered a problem on Server side!\");\r\n\t\t\t\t\t\t\tsendMessage(returnMsg);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t} \r\n\t\t\t\t\telse if (latestMsg.getHeader().trim().equals(\"\")) {\r\n\t\t\t\t\t\t//echo empty messages\r\n\t\t\t\t\t\tsendMessage(latestMsg);\r\n\t\t\t\t\t}\r\n\t\t\t\t\telse {\r\n\t\t\t\t\t\t// If it is a bad message output error and echo it back to the client\r\n\t\t\t\t\t\tlogger.debug(\"Message from Client was not valid, sending errorous message back to client\");\r\n\t\t\t\t\t\tlogger.debug(latestMsg.getError());\r\n\t\t\t\t\t\tsendMessage(new common.messages.KVAdminMessage(latestMsg.getHeader(), \"FAILED\", latestMsg.getKey(), latestMsg.getValue()));\r\n\t\t\t\t\t}\r\n\t\t\t\t/* connection either terminated by the client or lost due to \r\n\t\t\t\t * network problems*/\t\r\n\t\t\t\t} catch (IOException ioe) {\r\n\t\t\t\t\tlogger.error(\"Connection lost!\");\r\n\t\t\t\t\tisOpen = false;\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (IOException ioe) {\r\n\t\t\tlogger.error(\"Error! Connection could not be established!\", ioe);\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\t\r\n\t\t\ttry {\r\n\t\t\t\tif (clientSocket != null) {\r\n\t\t\t\t\tinput.close();\r\n\t\t\t\t\toutput.close();\r\n\t\t\t\t\tclientSocket.close();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException ioe) {\r\n\t\t\t\tlogger.error(\"Error! Unable to tear down connection!\", ioe);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Override\n // Methode run die bei Aufruf des Threads gestartet wird\n public void run() {\n //Endlosschleife zum abhören was der Server sedent. Neuen InputStream erzeugen und in Anzeigefenster ausgeben\n while(schleife == 1){\n \n try {\n // Methode online gibt die Nutzernamen der online-verfügabaren Usern zurück vom Server. Die eigene Methode schriebt diese in die UserListe. \n online(remote.online());\n in = new DataInputStream(s.getInputStream());\n\n String lesen = in.readUTF();\n \n\n // Trennt den Einkommenden String am \":\" um Username von der Nachricht zu trennen\n String [] nachrichten = lesen.split(\":\");\n \n //Überprüfen ob ein Header namens VERBINDUNG geschickt wird um entsprechend zu reagieren\n if(nachrichten[0].equals(\"VERBINDUNG\")){\n //Aufruf einer MessageBox, dass Verbindung aufgenommen werden möchte.\n int eingabe = JOptionPane.showConfirmDialog(null,\n \"Wollen sie eine Verbindung mit \" + nachrichten[1] +\" aufbauen?\",\n \"Verbindungsanfrage\",\n JOptionPane.YES_NO_CANCEL_OPTION);\n //Überprüfen der Eingabe in die Messagebox\n //Wenn 'Ja' gedrückt wurde\n if(eingabe == 0){\n //UserListe sperren\n UserListe.setEnabled(false);\n //Verbinden mit User- Button auf trennen stellen\n UserVerbinden.setText(\"Trennen von User\");\n //Offline Anzeigen um weitere Anfragen zu unterbinden\n remote.zeigeOff(UserName.getText());\n //Rückantwort,dass Verbindung aufgebaut werden soll!\n remote.verbindenUser(\"VERBINDEN\", UserName.getText(), nachrichten[1]);\n //Übergabe des Namens des Chat-Partners in die globale Variable \n ZielUser= nachrichten[1];\n \n }else{\n remote.verbindenUser(\"TRENNEN\", UserName.getText() ,nachrichten[1] );\n \n } \n //Wenn die Nachricht den Header 'TRENNEN' enthält, entweder bei beendigung oder bei ablehnen der Verbindung\n }else if(nachrichten[0].equals(\"TRENNEN\")){\n //Nachricht ausgeben, dass getrennt wird bzw. abgelehnt wurde\n Anzeigefeld.append(\"Verbindung von \"+ nachrichten[1]+ \" wurde getrennt/abgelehnt! \\n\");\n //UserListe entsperren\n UserListe.setEnabled(true);\n //Verbinden mit User- Button auf Verbinden stellen\n UserVerbinden.setText(\"Verbinden mit User\");\n //wieder als online Anzeigen \n remote.verbinden(UserName.getText());\n \n //wird aufgerufen wenn VERBINDEN als Header mitgegeben wird\n }else if(nachrichten[0].equals(\"VERBINDEN\")){\n //Ausgabe dass Schlüsselaustausch stattfinden kann\n Anzeigefeld.append(\"Schlüssel wird an \"+nachrichten[1]+ \" gesendet \\n\");\n\n //Den eigenen AES Schlüssel mit öffentlichem Schlüssel des Gegenübers verschlüsseln\n EncryptAES(nachrichten[1]);\n \n //Aufruf der Methode zum Schlüsselaustausch. Überträgt byte[] des Schlüssels\n AESanServer(nachrichten[1]); \n \n //wird aufgerufen wenn der Header KEY mitgegeben wird.\n }else if(nachrichten[0].equals(\"KEY\")){\n \n // Aufruf der Methode Decrypt AES mit der Methode vom Server holeAES\n DecryptAES(remote.schluesselTausch(UserName.getText(), nachrichten[1]));\n \n //Senden-Button freigeben\n Senden.setEnabled(true);\n \n // Anzeigen, das Schlüssel erhalten wurde und Kommunikation starten kann\n Anzeigefeld.append(\"Key von \"+ nachrichten[1] +\" erhalten. Kommunikation kann starten! \\n\");\n \n \n\n \n }\n \n \n // Gibt die Nachricht die verschlüsselt vom Server kommt, entschlüsselt aus!\n Anzeigefeld.append(nachrichten[0] + \": \"+ aes.entschlüsseln(aes.SchlüsselAusDatei(), nachrichten[1])+ \"\\n\");\n\n } catch (IOException ex) {\n Logger.getLogger(ClientGui.class.getName()).log(Level.SEVERE, null, ex);\n } catch (Exception ex) {\n Logger.getLogger(ClientGui.class.getName()).log(Level.SEVERE, null, ex);\n }\n }\n}", "public void listen() throws IOException {\n\t\twhile(true){\n\t\t\tserverReader = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));\n\t\t\tString responseFromServer = serverReader.readLine();\n\t\t\tJOptionPane.showMessageDialog(null, responseFromServer);\n\t\t}\n\t}", "public void Listen() {\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\t//reconstruct byte array for receiving\r\n\t\t\treceiveData = new byte[5192];\r\n\t\t\t\r\n\t\t\t//receive a packet!\r\n\t\t\tserverSocket.receive(packet = new DatagramPacket(receiveData, receiveData.length));\r\n\t\t\t\r\n\t\t\t//translate into a string and print to console\r\n\t\t\tString output = new String(packet.getData());\r\n\t\t\t//address = serverSocket.getInetAddress();\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tNetConsole.window.addText(output, false);\r\n\t\t\t\r\n\t\t\t//deconstruct array so remnants of last commands don't get shown. \r\n\t\t\treceiveData = null;\r\n\t\t\tpacket = null;\r\n\t\t\t\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\treturn;\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void run() {\n\r\n\t\ttry {\r\n\t\t\twhile(read.ready()){\r\n\t\t\t\ttry {\r\n\t\t\t\t\tstmt = conn.createStatement();//set statement from DB connection\r\n\t\t\t\t\tcommand = read.readLine();\r\n\t\t\t\t} catch (IOException | SQLException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}//read in the command\r\n\r\n\t\t\t\t//start command parse\r\n\t\t\t\tcommandList = Arrays.asList(command.split(\"\\\\s*,\\\\s*\"));//load text command into a list\t\t\r\n\t\t\t\tfor(String s: commandList){\r\n\t\t\t\t\tSystem.out.print(s + \" \");\r\n\t\t\t\t}\r\n\r\n\t\t\t\t//switch to read command\r\n\t\t\t\tswitch(commandList.get(0)){\r\n\t\t\t\tcase \"kill\"://this is a method for shutting down the server\r\n\t\t\t\t\tQueeryServer.serverStatus = false;\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"addUser\"://for adding a new user\r\n\t\t\t\t\taddUser();//calls method for adding a new user\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"login\"://client attempts to log in a user\r\n\t\t\t\t\tlogin();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"setPSlider\"://called on registration\r\n\t\t\t\t\tsetPersonalSlider();//INSERT\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"updatePSlider\":\r\n\t\t\t\t\tupdatePersonalSlider();//UPDATE\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"setLocation\":\r\n\t\t\t\t\tsetLocation();//called on registration only, sets location \r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"setSSlider\":\r\n\t\t\t\t\tsetSeekingSlider();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"updateSSlider\":\r\n\t\t\t\t\tupdateSeekingSlider();\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tcase \"updateLocation\":\r\n\t\t\t\t\tupdateLocation();//updates a user's location\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"getMatches\":\r\n\t\t\t\t\tgetMatches();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"testUserName\":\r\n\t\t\t\t\ttestUserName();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"echo\":\r\n\t\t\t\t\tout.println(\"echo command received\");\r\n\t\t\t\t\tbreak;\r\n\r\n\t\t\t\tdefault: \r\n\t\t\t\t\tSystem.exit(2);//crash and burn\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\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\tout.println(e.getMessage());\r\n\t\t} //end try\r\n\t\ttry {\r\n\t\t\tread.close();//close buffers\r\n\t\t\tout.close();//close buffers\r\n\t\t\tif(!csocket.isClosed())\r\n\t\t\t\tcsocket.close();\r\n\t\t\tif(!stmt.isClosed())\r\n\t\t\t\tstmt.close();\r\n\t\t\tif(!conn.isClosed())\r\n\t\t\t\tconn.close();\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} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private void run() throws IOException\r\n {\r\n\r\n // Make connection and initialize streams\r\n String serverAddress = getServerAddress();\r\n Socket socket = new Socket(serverAddress, 9001);\r\n in = new BufferedReader(new InputStreamReader(socket.getInputStream()));\r\n out = new PrintWriter(socket.getOutputStream(), true);\r\n\r\n // Process all messages from server, according to the protocol.\r\n while (true) {\r\n String line = in.readLine();\r\n if (line.startsWith(\"SUBMITNAME\")) {\r\n out.println(getName());\r\n } else if (line.startsWith(\"NAMEACCEPTED\")) {\r\n textField.setEditable(true);\r\n } else if (line.startsWith(\"MESSAGE\")) {\r\n messageArea.append(line.substring(8) + \"\\n\");\r\n }\r\n }\r\n }", "@Override\n public void messageArrived(IChatMessage msg) {\n try { \n if (msg.getText().matches(\"JOIN .*\")) {\n //Obtenir el canal on s'ha unit.\n IChatChannel channel = server.getChannel(conf.getChannelName()); \n //Crear el missatge per a donar la benvinguda al usuari\n IChatMessage message = new ChatMessage(user, channel,\n \"Benvingut, \" + msg.getText().substring(ChatChannel.JOIN.length() + 1));\n //Enviar el missatge\n channel.sendMessage(message);\n }\n } catch (RemoteException e) {\n \n }\n }", "public void serverListener() {\n while(true){\n try{\n Object obj = ois.readObject();\n\n /*\n * If the object is of the CoronosAuth Class\n * Verify if the person can log in\n * if Yes: Display interface\n * if No: Prompt reason\n */\n if(obj instanceof CoronosAuth){\n System.out.println(\"[IO] - [Server] - Received CoronosAuth Object\");\n CoronosAuth returned = (CoronosAuth) obj;\n\n allow = returned.getAllow();\n reason = returned.getReason();\n username = returned.getUsername();\n\n if(allow) {\n System.out.println(\"[AUTH] - Successful Login - Authentication Successful!\");\n loginFrame.setVisible(false);\n String username = jtfUserNameField.getText();\n jfFrame.setTitle(String.format(\"Coronos Client - %s\", username));\n jfFrame.setVisible(true);\n Message message = new Message(String.format(\"%s has joined\\n\", username));\n oos.writeObject((Object) message);\n //set clientGUI to visible\n\n } else {\n System.out.println(\"[AUTH] - Failed Login - Authentication Failed!\");\n JOptionPane.showMessageDialog(loginButton, reason, \"Login Error\", JOptionPane.WARNING_MESSAGE);\n }\n }\n\n /*\n * if the object is of the Message Class\n * Append message to chat area\n */\n if(obj instanceof Message){\n System.out.println(\"[IO] - [Server] - Received Message Object\");\n Message message = (Message) obj;\n jtaChatArea.append(String.format(\"%s\", message.toString()));\n }\n\n /*\n * if the object is of the Employee class, save the employee object\n */\n else if(obj instanceof Employee){\n System.out.println(\"[IO] - [Server] - Received Employee Object\");\n this.employee = (Employee) obj;\n\n }\n }\n catch(IOException ioe){\n ioe.printStackTrace();\n }\n catch(ClassNotFoundException cnfe){\n cnfe.printStackTrace();\n }\n catch(NullPointerException npe){\n npe.printStackTrace();\n }\n }\n }", "public static void main(String[] args){\n\t\tint port = 6677;\n\t\tboolean done = false;\n\t\tboolean connected = false;\n\t\tboolean ourTurnToSend = true;\n\t\tString clientTextSent = new String();\n\t\tString emptyString = new String();\n\t\tString ip = new String(\"\");\n\t\tScanner in;\n\t\tScanner terminalText = new Scanner(System.in);\n\t\tPrintWriter out;\n\t\ttry{\n\t\t\tSocket chatSocket;\n\t\t\tchatSocket = new Socket(ip,3000);\n\t//------------------------------------------------------------------------I have a chat socket, HOHOHO--------------------------\n\t\t\tin = new Scanner(chatSocket.getInputStream());\n\t\t\tout = new PrintWriter(chatSocket.getOutputStream());\n\t//------------------------------------------------------------------------Fully initialised, front-back chat possible------------\n\t\t\twhile(done == false){\n\t\t\t\tout.println(\"{\\\"PLAYER_NUMBER\\\":\\\"P1\\\",\\\"PROTOCOL\\\":\\\"PADDLE_MOVEMENT\\\",\\\"X\\\":-293.3333333333334,\\\"Y\\\":-230}\");out.flush();\n\t\t\t}\n\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Shit be whack Yo\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public String listen(){\t\n\t\tSystem.out.println(\"Server lauscht.\");\n\t\treturn receiveString();\n\t}", "public static void processConnection() throws IOException {\n // enable enterField so client user can send messages\n setTextFieldEditable(true);\n\n do // process messages sent from server\n {\n try // read message and display it\n {\n message = (String) input.readObject(); // read new message\n displayMessage(\"\\nReceived from Server:\"); // display message\n displayMessage(\"\\n\" + message); // display message\n\n //登录界面\n if (message.equalsIgnoreCase(\"LOGIN TRUE\")) {\n role = (String) input.readObject();\n if (role.equalsIgnoreCase(\"Browser\")) {\n Browser user = new Browser(username, password, role);\n mainFrame = new MainFrame(user);\n mainFrame.setVisible(true);\n } else if (role.equalsIgnoreCase(\"Operator\")) {\n Operator user = new Operator(username, password, role);\n mainFrame = new MainFrame(user);\n mainFrame.setVisible(true);\n } else if (role.equalsIgnoreCase(\"Administrator\")) {\n Administrator user = new Administrator(username, password, role);\n mainFrame = new MainFrame(user);\n mainFrame.setVisible(true);\n }\n loginframe.dispose();\n } else if (message.equalsIgnoreCase(\"LOGIN FALSE1\")) {\n JOptionPane.showMessageDialog(null, \"用户名不存在,请重新输入!\", \"提示\", JOptionPane.WARNING_MESSAGE);\n } else if (message.equalsIgnoreCase(\"LOGIN FALSE2\")) {\n JOptionPane.showMessageDialog(null, \"密码错误,请重新输入!\", \"提示\", JOptionPane.WARNING_MESSAGE);\n }\n\n //个人界面\n if (message.equalsIgnoreCase(\"ChangeSelfInfo TRUE\")) {\n JOptionPane.showMessageDialog(null, \"修改密码成功\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.selfFrame.refresh();\n } else if (message.equalsIgnoreCase(\"ChangeSelfInfo FALSE1\")) {\n JOptionPane.showMessageDialog(null, \"登录密码错误,请重新输入!\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.selfFrame.refresh();\n } else if (message.equalsIgnoreCase(\"ChangeSelfInfo FALSE2\")) {\n JOptionPane.showMessageDialog(null, \"两次新密码不一致,请重新输入!\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.selfFrame.refresh();\n }\n\n //用户管理界面\n if (message.equalsIgnoreCase(\"AddUser TRUE\")) {\n JOptionPane.showMessageDialog(null, \"添加用户成功\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.userFrame.fresh();\n }\n else if (message.equalsIgnoreCase(\"AddUser FALSE1\")) {\n JOptionPane.showMessageDialog(null, \"请输入用户名\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.userFrame.fresh();\n }\n else if (message.equalsIgnoreCase(\"AddUser FALSE2\")) {\n JOptionPane.showMessageDialog(null, \"请输入密码\", \"提示\", JOptionPane.WARNING_MESSAGE);\n }\n else if (message.equalsIgnoreCase(\"AddUser FALSE3\")) {\n JOptionPane.showMessageDialog(null, \"用户名已存在,无法添加\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.userFrame.fresh();\n }\n else if (message.equalsIgnoreCase(\"AddUser FALSE4\")) {\n JOptionPane.showMessageDialog(null, \"添加用户失败\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.userFrame.fresh();\n }\n else if(message.equalsIgnoreCase(\"ChangeUser TRUE\")) {\n JOptionPane.showMessageDialog(null, \"修改用户成功\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.userFrame.fresh();\n }\n else if(message.equalsIgnoreCase(\"ChangeUser FALSE1\")){\n JOptionPane.showMessageDialog(null, \"请输入密码\", \"提示\", JOptionPane.WARNING_MESSAGE);\n }\n else if(message.equalsIgnoreCase(\"ChangeUser FALSE2\")){\n JOptionPane.showMessageDialog(null, \"修改用户失败\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.userFrame.fresh();\n }\n else if(message.equalsIgnoreCase(\"DeleteUser TRUE\")){\n JOptionPane.showMessageDialog(null, \"删除用户成功\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.userFrame.fresh();\n }\n else if(message.equalsIgnoreCase(\"DeleteUser FALSE1\")){\n JOptionPane.showMessageDialog(null, \"无法删除当前用户\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.userFrame.fresh();\n }\n else if(message.equalsIgnoreCase(\"DeleteUser FALSE2\")) {\n JOptionPane.showMessageDialog(null, \"删除用户失败\", \"提示\", JOptionPane.WARNING_MESSAGE);\n mainFrame.userFrame.fresh();\n }\n //文件界面\n if (message.equalsIgnoreCase(\"Downloading file\")) {\n\n String filename = (String) input.readObject();\n displayMessage(\"\\nReceived from Server:\"); // display message\n displayMessage(\"\\n\" + filename); // display message\n File aim = new File(\"C:\\\\Users\\\\a's\\\\Desktop\\\\实验文件\\\\Java多线程实验\\\\downloadfile\\\\\" + filename);\n FileOutputStream out = new FileOutputStream(aim);\n\n try {\n byte[] bt = new byte[1024];\n int len = 1024;\n while ((input.read(bt, 0, len)) != -1) {\n out.write(bt);\n out.flush();\n System.out.println(\"1\");\n }\n } catch (IOException e) {\n System.out.println(\"IO流异常\");\n }\n\n if (aim.exists()) {\n JOptionPane.showMessageDialog(null, \"下载文件成功\", \"提示\", JOptionPane.WARNING_MESSAGE);\n displayMessage(\"\\nDownload successfully\");\n } else {\n JOptionPane.showMessageDialog(null, \"下载文件失败\", \"提示\", JOptionPane.WARNING_MESSAGE);\n displayMessage(\"\\nDownload unsuccessfully\");\n }\n } else if (message.equalsIgnoreCase(\"Download file failed\")) {\n JOptionPane.showMessageDialog(null, \"下载文件失败\", \"提示\", JOptionPane.WARNING_MESSAGE);\n } else if (message.equalsIgnoreCase(\"Uploading file\")) {\n String filename = (String) input.readObject();\n\n File src = new File(\"C:\\\\Users\\\\a's\\\\Desktop\\\\实验文件\\\\Java多线程实验\\\\uploadfile\\\\\" + filename);\n\n InputStream is = new FileInputStream(src);\n\n byte[] bt = new byte[1024];\n int len = 1024;\n while ((is.read(bt, 0, len)) > 0) {\n output.write(bt);\n }\n output.flush();\n\n JOptionPane.showMessageDialog(null, \"上传文件成功\", \"提示\", JOptionPane.WARNING_MESSAGE);\n } else if (message.equalsIgnoreCase(\"Upload file failed\")) {\n JOptionPane.showMessageDialog(null, \"上传文件失败\", \"提示\", JOptionPane.WARNING_MESSAGE);\n }\n\n } // end try\n catch (ClassNotFoundException classNotFoundException) {\n displayMessage(\"\\nUnknown object type received\");\n } // end catch\n\n } while (!message.equals(\"TERMINATE\"));\n }", "public static void main(String[] args) throws IOException {\n // Get proper arguments and override defaults\n\n boolean isExit = false;\n Scanner scan = new Scanner( System.in );\n\n String username;\n int port;\n String serverAddress;\n\n switch( args.length ) {\n case 3:\n username = args[0];\n port = Integer.parseInt( args[1] );\n serverAddress = args[2];\n break;\n case 2:\n username = args[0];\n port = Integer.parseInt( args[1] );\n serverAddress = \"localhost\";\n break;\n case 1:\n username = args[0];\n port = 1500;\n serverAddress = \"localhost\";\n break;\n default:\n username = \"Anonymous\";\n port = 1500;\n serverAddress = \"localhost\";\n }\n\n String hostname;\n\n // Create your client and start it\n ChatClient client = new ChatClient( serverAddress, port, username );\n //ChatClient client = new ChatClient(\"localhost\", 1500, \"CS 180 Student\");\n boolean serverStart = client.start();\n\n // Send an empty message to the server\n if ( !serverStart || !client.socket.isConnected() ) {\n System.out.print(\"\");\n isExit = true;\n } else {\n try {\n client.sendMessage(new ChatMessage( \"just joined\", 0, null));\n } catch ( SocketException ignored) {\n isExit = true;\n }\n }\n //client.sOutput.flush();\n //client.sendMessage( new ChatMessage( \"yeet\", 0 ));\n\n while ( !isExit ) {\n String message = scan.nextLine();\n\n if ( message.toLowerCase().contains( \"/logout\" ) ) {\n client.sendMessage(new ChatMessage(message, 1, null));\n try {\n client.sOutput.close();\n client.sInput.close();\n isExit = true;\n System.out.println(\"You have been successfully logged out.\");\n //client.socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n } else if ( message.contains( \"/msg\" ) ) {\n String[] msg = message.split(\" \");\n String privateMessage = \"\";\n for ( int i = 2; i < msg.length; i++ ) {\n privateMessage = privateMessage + msg[i] + \" \";\n }\n client.sendMessage( new ChatMessage( privateMessage , 2, msg[1] ));\n } else if ( message.contains( \"/list\" ) ) {\n client.sendMessage( new ChatMessage( null, 3, null ));\n } else {\n client.sendMessage( new ChatMessage( message, 0 , null) );\n }\n }\n\n //BufferedReader userInputReader = new BufferedReader( new InputStreamReader( client.socket.getInputStream() ));\n //String message = userInputReader.readLine();\n //client.sendMessage( new ChatMessage( message, 0));\n\n }", "public void login() {\n String line = null;\n String ID = null;\n String Password = null;\n \n try {\n client_PW.println(\"--------------Welcom to chat-------------\");\n client_PW.println(\"Sign in or Sign up? : <i/u>\");\n client_PW.flush();\n\n line = client_BR.readLine();\n if(line.equals(\"i\")) {\n // sign in\n clearScreen(client_PW);\n client_PW.println(\"Enter ID : \");\n client_PW.flush();\n ID = client_BR.readLine();\n client_PW.println(\"Enter PassWord : \");\n client_PW.flush();\n Password = client_BR.readLine();\n\n if(!mem_id.containsKey(ID)) {\n clearScreen(client_PW);\n client_PW.println(\"Can't find such ID\");\n client_PW.flush();\n login();\n } else {\n if(!mem_id.get(ID).equals(Password)) {\n clearScreen(client_PW);\n client_PW.println(\"Incorrect password!\");\n client_PW.flush();\n login();\n } else {\n this.client_ID = ID;\n // 다른 member들에게 현재 client가 접속했다고 공지\n broadcast(client_ID + \"님이 접속했습니다.\",client_ID);\n // 서버의 콘솔창에 현재 client의 ID와 접속한 ip주소 표시\n System.out.println(client_ID+\" 회원이 접속했습니다.\");\n System.out.println(\"IP : \" + client_IP.getHostAddress());\n client_PW.flush();\n help_menu();\n }\n }\n\n \n } else if(line.equals(\"u\")) {\n // sign up\n clearScreen(client_PW);\n client_PW.println(\"Enter ID : \");\n client_PW.flush();\n ID = client_BR.readLine();\n client_PW.println(\"Enter PassWord : \");\n client_PW.flush();\n Password = client_BR.readLine();\n\n mem_id.put(ID, Password);\n\n this.client_ID = ID;\n // 다른 member들에게 현재 client가 접속했다고 공지\n broadcast(client_ID + \"님이 접속했습니다.\",client_ID);\n // 서버의 콘솔창에 현재 client의 ID와 접속한 ip주소 표시\n System.out.println(client_ID+\" 회원이 접속했습니다.\");\n System.out.println(\"IP : \" + client_IP.getHostAddress());\n client_PW.flush();\n help_menu();\n \n\n } else {\n clearScreen(client_PW);\n client_PW.println(\"invalid command\");\n login();\n }\n } catch (Exception e) {\n System.out.print(e);\n }\n }", "public void run () {\n\t\t\t\t//This is the method that gets called everytime the GUI needs to be updated.\n\t\t\t\t\n\t\t\t\tchatWindow.append(text);\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "private void sendMessage(String message){\n try{\n output.writeObject(nickname+\" : \" + message);\n output.flush();\n showMessage(\"\\n\"+nickname+\" : \" + message);\n }catch(IOException ioException){\n chatWindow.append(\"\\n Oops! Something went wrong!\");\n }\n }", "private void readMessagesFromClients() throws IOException {\n String message = inputFromClient.readLine(); // Reads data from client\n if (message != null ) {\n if (!message.equals(\"EXIT\")){ // If client still don't want to disconnect\n writeMessageInDataFile(message); // write his message in the txt database\n for (ServerThread client : activeClients) { // then send his message to all active clients\n if (!client.username.equals(this.username)){\n client.outputFromServer.println(toString() + message);\n }\n }\n System.out.println(this + message); // Displays client message in server console\n }else{\n for (ServerThread client : activeClients) { // Send a message to all other clients to announce the client's disconnection\n if (!client.username.equals(this.username)){\n client.outputFromServer.println( \"\\n\" + username + \" has left the chat.\");\n }\n }\n System.out.println(username + \" has left the chat.\"); // Announce client's disconnection on server\n }\n\n }\n }", "@Override\n\tpublic void run() {\n\t\ttry {\n\t\t\tBufferedReader br=new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\t\t\tString msg=\"\";\n\t\t\twhile((msg=br.readLine())!=null){\n\t\t\t\tSystem.out.println((server?\"Client\":\"Server\")+\": \"+msg);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public synchronized void run() {\n\n boolean keepGoing = true;\n\n while (keepGoing) {\n\n try {\n sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n int count = 0;\n\n try {\n\n count = sInput.available();\n\n if (count > 0) {\n message = sInput.readUTF();\n }\n\n if (isWait) {\n synchronized (this) {\n try {\n wait();\n\n } catch (InterruptedException e) {\n System.out.println(\"Error in waiting\");\n e.printStackTrace();\n }\n }\n }\n\n } catch (IOException e) {\n display(username + \" Exception reading Streams: \" + e);\n e.printStackTrace();\n }\n\n if(count == 0){\n continue;\n }\n\n String[] splitMessage = message.split(\" \");\n\n if(message.equalsIgnoreCase(\"!LOGOUT\")){\n //display(username + \" disconnected with a LOGOUT message.\");\n gameManager.disconnected(this);\n //keepGoing = false;\n break;\n }else if(message.equalsIgnoreCase(\"!WhoIsIn\")){\n writeMsg(\"List of the users connected at \" + simpleDateFormat.format(new Date()) + \"\\n\");\n // send list of active clients\n for (int i = 0; i < clientThreads.size(); ++i) {\n Server.ClientThread ct = clientThreads.get(i);\n writeMsg((i + 1) + \") \" + ct.username + \" since \" + ct.date);\n }\n }else if(canTalk) {\n if (message.equalsIgnoreCase(\"!READY\") && !isLastMoment) {\n if(!isReady) {\n gameManager.ready();\n isReady = true;\n broadcast(BLUE + gameManager.getReadyToGo()\n + \" number of players are ready so far\" + RESET, getClientThreads());\n }else{\n writeMsg(RED + \"you said you are ready before!\" + RESET);\n }\n }else if (!waitingToGo && !isLastMoment) {\n if (message.length() > 0 && message.charAt(0) == '@') {\n Player curPlayer = gameManager.getPlayer(this);\n //String[] decodedMsg = message.split(\" \");\n if (curPlayer instanceof GodFather) {\n gameManager.godFatherShot(message.substring(1), this);\n } else if (curPlayer instanceof LectorDoctor) {\n gameManager.lectorHill(message.substring(1), this);\n } else if (curPlayer instanceof Doctor) {\n gameManager.doctorHill(message.substring(1), this);\n } else if (curPlayer instanceof Detective) {\n gameManager.detectiveAttempt(message.substring(1), this);\n } else if (curPlayer instanceof Professional) {\n gameManager.professionalShot(message.substring(1), this);\n } else if (curPlayer instanceof Psychologist) {\n gameManager.psychologistAttempt(message.substring(1), this);\n } else if (curPlayer instanceof Invulnerable) {\n if (message.substring(1).equalsIgnoreCase(\"!RESULT\")) {\n gameManager.invulnerableAttempt(this);\n }\n } else if (curPlayer instanceof Mayor) {\n if (message.substring(1).equalsIgnoreCase(\"!CANCEL\")) {\n gameManager.mayorAttempt(this);\n }\n }\n }\n else if (splitMessage[0].equalsIgnoreCase(\"!VOTE\")) {\n if (splitMessage[1].charAt(0) == '@') {\n gameManager.vote(splitMessage[1].substring(1), this);\n }\n } else {\n boolean confirmation = broadcast(username + \": \" + message, activeClients);\n if (!confirmation) {\n String msg = RED + notification + \"Sorry. No such user exists.\" + notification + RESET;\n writeMsg(msg);\n }\n }\n\n }\n }else if (splitMessage[0].equalsIgnoreCase(\"!VOTE\") && !isLastMoment && !waitingToGo) {\n if (splitMessage[1].charAt(0) == '@') {\n gameManager.vote(splitMessage[1].substring(1), this);\n }\n }else if (message.equalsIgnoreCase(\"!READY\") && !isLastMoment) {\n if(!isReady) {\n gameManager.ready();\n isReady = true;\n broadcast(BLUE + gameManager.getReadyToGo() + \" number of players are ready so far\"\n + RESET, getClientThreads());\n }else{\n writeMsg(\"you said you are ready before!\");\n }\n }\n\n }\n // if out of the loop then disconnected and remove from client list\n remove(id);\n close();\n }", "public boolean chatEnabled();", "private void handleMessage(Message msg) {\n switch (msg.what) {\n case R.id.clientReady: // 음성인식 준비 가능\n txtResult.setText(\"Connected\");\n writer = new AudioWriterPCM(Environment.getExternalStorageDirectory().getAbsolutePath() + \"/NaverSpeechTest\");\n writer.open(\"Test\");\n break;\n case R.id.audioRecording:\n writer.write((short[]) msg.obj);\n break;\n case R.id.partialResult:\n mResult = (String) (msg.obj);\n mResult += mResult;\n txtResult.setText(mResult);\n break;\n case R.id.finalResult: // 최종 인식 결과\n SpeechRecognitionResult speechRecognitionResult1 = (SpeechRecognitionResult) msg.obj;\n List<String> results1 = speechRecognitionResult1.getResults();\n StringBuilder strBuf1 = new StringBuilder();\n for(String result : results1) {\n strBuf1.append(result);\n //strBuf.append(\"\\n\");\n break;\n }\n mResult = strBuf1.toString();\n txtResult.setText(mResult);\n\n requestChatbot();\n\n break;\n case R.id.recognitionError:\n if (writer != null) {\n writer.close();\n }\n mResult = \"Error code : \" + msg.obj.toString();\n txtResult.setText(mResult);\n btnStart.setText(R.string.str_start);\n btnStart.setEnabled(true);\n break;\n case R.id.clientInactive:\n if (writer != null) {\n writer.close();\n }\n btnStart.setText(R.string.str_start);\n btnStart.setEnabled(true);\n break;\n }\n }", "@Override\n public void run() {\n try {\n while(!this.socket.isClosed()) {\n System.out.println(\"Unicast Server Ok\");\n Socket distant = this.socket.accept();\n System.out.println(\"Connexion établie\");\n Discussion discussion =new Discussion(distant);\n discussion.addObserver(this);\n chatRooms.put(distant.getInetAddress(), discussion);\n new Thread(discussion).start();\n }\n } catch (IOException e) {\n System.out.println(\"Erreur socket unicast\");\n }\n }", "public void sendChat(String message) {\r\n connection.chat(message);\r\n }", "public void run()\n\t{\n\t\ttry \n\t\t{\n\t\t\tis = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n\n\t\t\twhile ((serverInput = is.readLine())!= null)\n\t\t\t{\n\t\t\t\tif (Objects.equals(serverInput.substring(0, 3), \"210\"))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(serverInput);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\telse if (Objects.equals(serverInput.substring(0, 3), \"200\"))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(serverInput.substring(0, 6));\n\n\t\t\t\t\tif (serverInput.length() > 22)\n\t\t\t\t\t{\n\t\t\t\t\t\tString [] list = serverInput.substring(6).split(\"@\");\n\t\t\t\t\t\tfor (int i = 0; i < list.length; i++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.println(list[i]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse if (Objects.equals(serverInput.substring(6), \"QUIT\"))\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.println(serverInput.substring(6));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\t//Do nothing\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(serverInput);\n\t\t\t\t}\n\t\t\t}\n\t\t\tis.close();\n\t\t\tsocket.close();\n\t\t\tSystem.exit(0);\n\t\t} \n\t\tcatch (IOException e) \n\t\t{\n\t\t\t//Error Handler\n\t\t}\n\t}", "@Override\n public boolean sendMessage(ChatMessage chatMessage){\n return true;\n }" ]
[ "0.7566139", "0.7478964", "0.7263316", "0.72048455", "0.7187024", "0.7158562", "0.7141102", "0.7029164", "0.7025146", "0.70211256", "0.6950073", "0.6932392", "0.6915138", "0.6896238", "0.6892025", "0.6886584", "0.6885983", "0.68853176", "0.6884435", "0.68717796", "0.6865695", "0.6863775", "0.6862639", "0.68381804", "0.6803175", "0.6759157", "0.67520726", "0.6738718", "0.6699946", "0.6694796", "0.6690759", "0.6679295", "0.6665577", "0.66651994", "0.6644799", "0.6637052", "0.6634851", "0.66333", "0.66295856", "0.662769", "0.66238075", "0.66107076", "0.6609316", "0.66054314", "0.6590486", "0.65875924", "0.6587157", "0.65625685", "0.65490866", "0.6542857", "0.6528618", "0.65195346", "0.6512463", "0.6508614", "0.65033597", "0.64967626", "0.64860606", "0.64847034", "0.648195", "0.6480957", "0.64797664", "0.6456829", "0.6453993", "0.6449215", "0.64476585", "0.64416456", "0.6441274", "0.64142704", "0.6412474", "0.6411429", "0.6403607", "0.64009494", "0.6390256", "0.6379116", "0.6377842", "0.6377004", "0.63659775", "0.63571155", "0.6339357", "0.6334915", "0.6331791", "0.63285416", "0.6327859", "0.6322581", "0.6322047", "0.63204557", "0.6318083", "0.63118935", "0.6309397", "0.6309237", "0.6305085", "0.63013303", "0.63012433", "0.6298364", "0.6295763", "0.62866557", "0.6283734", "0.6281633", "0.6277099", "0.62751746" ]
0.7279827
2
send message to server
private void sendMessage(String message){ try{ output.writeObject(nickname+" : " + message); output.flush(); showMessage("\n"+nickname+" : " + message); }catch(IOException ioException){ chatWindow.append("\n Oops! Something went wrong!"); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void send(String message);", "private void sendMessage(String message){\n\t\ttry{\n\t\t\toutput.writeObject(\"Punk Ass Server: \" + message);\n\t\t\toutput.flush();\n\t\t\tshowMessage(\"\\nPunk Ass Server: \" + message); \n\t\t}catch(IOException ioe){\n\t\t\tchatWindow.append(\"\\n Message not sent, try again or typing something else\");\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void send(Message msg);", "void send();", "public void sendMessage(String message) {\n\t\tsocketTextOut.println(message);\n\t\tsocketTextOut.flush();\n\t}", "@Override\n\tpublic void send(String msg) {\n\t\t\n\t\t\n\t\n\t}", "public void send(String msg){\r\n\t\ttry{\r\n\t\t\tbyte[] buf = msg.getBytes();\r\n \tInetAddress address = InetAddress.getByName(server);\r\n \tDatagramPacket packet = new DatagramPacket(buf, buf.length, address, PORT);\r\n \tsocket.send(packet);\r\n }catch(Exception e){}\r\n\t\t\r\n\t}", "public void sendMsgToClient() {\n\n try {\n\n writer = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())), true);\n\n Log.d(TAG, \"The transmitted data:\" + msg);\n\n writer.println(msg);\n\n } catch (Exception e) {\n\n e.printStackTrace();\n\n }\n\n }", "public void sendMessage(String message){\n\t if (mOut != null && !mOut.checkError()) {\n\t mOut.println(message+\"\\n\");\n\t mOut.flush();\n\t }\n\t }", "private void sendMessageToClient(String message) {\n try {\n outputStream.writeObject(message);\n outputStream.flush();\n } catch (IOException e) {\n System.out.println(\"Erreur lors de l'envoi du message au client\");\n }\n }", "void sendMessage(String msg) {\n\t\ttry {\n\t\t\tout.writeObject(msg);\n\t\t\tout.flush();\n\t\t\tSystem.out.println(\"Sending to server => \" + msg);\n\t\t} catch (IOException ioException) {\n\t\t\tioException.printStackTrace();\n\t\t}\n\t}", "public void sendMessage(String message){\n pw.print(message);\n pw.flush();\n }", "@Override\n public void send(String message) {\n\n out.println(message);\n out.flush();\n\n }", "@Override\n\tpublic void send(String msg) {\n\t}", "void sendMessage(String msg);", "public void send() {\n\t}", "void sendMessage(Message m) throws IOException {\n String msg = m.toString();\n\n buffer = msg.getBytes(\"Windows-1256\");\n toServer = new DatagramPacket(buffer, buffer.length,\n InetAddress.getByName(sendGroup), port);\n if (m.getType() == Message.DATA) {\n manager.mManager.addMessage(m);\n }\n\n System.out.println(getName() + \"-->\" + m);\n serverSocket.send(toServer);\n }", "public void send(String msg) throws IOException {\n\t\tbyte[] data = msg.getBytes() ;\n DatagramPacket packet = new DatagramPacket(data, data.length, host, port);\n s.send(packet);\n\t}", "public void sendMessage(String message) {\n\t\tSystem.out.println(\"DEBUG : response sent by server = \" + message);\n\t\tprinter.println(message);\n\t}", "void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Não foi possível enviar a mesagem !!!\");\n\t\t}\n\t}", "public void tellServer(String message)\n\t{\n\t\ttoServer.println(message);\n\t\ttoServer.flush();\n\t}", "public void sendMessage(String msg) {\n try {\n out.write(msg);\n out.newLine();\n out.flush();\n \n } catch (IOException e) {\n \tshutdown();\n e.printStackTrace();\n }\n }", "public void send(String command)\n {\n if (connected) { \n writer.println(command + \";\");\n }\n }", "public void send(){ \n\t\tserverAddress=tfTxtIpServer.getText();\n\t\tserverPort=\"3232\";\n\t\ttext=tfTxtMsg.getText();\n try{\n\t\t\t// get the \"registry\"\n registry=LocateRegistry.getRegistry(\n serverAddress,\n (new Integer(serverPort)).intValue()\n );\n\t\t // look up the remote object\n rmiServer=(ReceiveMessageInterface)(registry.lookup(\"rmiServer\"));\n\t\t\t// call the remote method\n rmiServer.receiveMessage(text);\n }\n catch(RemoteException e){\n e.printStackTrace();\n }\n catch(NotBoundException e){\n e.printStackTrace();\n } \n }", "public void sendMessage(String message) {\n\t\ttry {\n\t\t\tout.writeUTF(message);\n\t\t\tserver.CommunicationLog.info(\"Sent:\" + message + \" to \" + clientSocket.getInetAddress().toString());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void sendMessage(String msg) {\n\t\ttry {\n\t\t\tout.writeObject(msg);\n\t\t\tout.flush();\n\t\t\tSystem.out.println(\"Sending to client => \" + msg);\n\t\t} catch (IOException ioException) {\n\t\t\tioException.printStackTrace();\n\t\t}\n\t}", "public void sendMessage(NetMessage message) {\n ClientDirector.getDataManager().sendMessage(message);\n }", "public void sendMessage(ChatMessage msg) {\n\t\ttry {\n\t\t\tsOutput.writeObject(msg);\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tdisplay(\"Exception writing to server: \" + e);\n\t\t}\n\t}", "public void send(String message) throws IOException {\r\n OutputStream stream = socket.getOutputStream();\r\n PrintWriter writer = new PrintWriter(stream);\r\n writer.println(message);\r\n writer.flush();\r\n }", "public void sendMessage(String message) {}", "public void sendMessage(String message);", "public synchronized void send(String message) {\n writer.println(message);\n writer.flush();\n }", "@Override\r\n\tpublic void sendMessage(String message) {\n\t\t\r\n\t}", "@Override\r\n\tpublic boolean send(String msg) {\n \ttry {\r\n \t\tsendMessage(msg);\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\treturn true;\r\n\t}", "private void send (String messageToSend) throws IOException {\n byte[] ba = messageToSend.getBytes();\n \n packetToSend = new DatagramPacket (ba, ba.length, serverIPAddress, PORT);\n \n //Envia el paquete por el socket.\n clientSocket.send(packetToSend);\n }", "public void send(String msg) {\n CompletableFuture.runAsync(() -> serverCon.send(msg));\n }", "public void send(String message){\n\t\ttry {\n\t\t\tSystem.out.println(\"Sende Nachricht \" + message);\n\t\t\tout.reset();\n\t\t\tout.writeObject(message);\n\t\t\tout.flush();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sendMessage(ChatMessage msg) {\n try{\n loginOutput.writeObject(msg);\n }\n catch(IOException e){\n display(\"Exception on send message to server: \" + e);\n }\n }", "public static void sendData(String message) {\n try // send object to server\n {\n output.writeObject(message);\n output.flush(); // flush data to output\n displayMessage(\"\\nSend to Server:\");\n displayMessage(\"\\n\" + message);\n } // end try\n catch (IOException ioException) {\n displayArea.append(\"\\nError writing object\");\n } // end catch\n }", "protected void sendMessage(final String message) {\n\n logger.debug(LOG_TAG + \".sendMessage()\");\n\n // send message to client\n printWriter.println(message);\n\n }", "public void sendToServer(String msg) throws IOException {\n if (clientSocket == null || output == null) {\n throw new SocketException(\"socket does not exist\");\n }\n\n // messageQueue.offer(msg);\n // sendFromMessageQueue();\n \n // 發送中文\n byte[] bytes = msg.getBytes(\"big5\");\n int[] ints = new int[bytes.length];\n for (int i = 0, l = bytes.length; i < l; i++) {\n ints[i] = bytes[i] & 0xff;\n output.write(ints[i]);\n }\n output.writeBytes(\"\\n\");\n }", "void messageSent();", "public void sendmsg(Message msg){\n try {\n oos.writeObject(new Datapacket(1, null, msg,null, null));\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void send(String message) {\r\n String command;\r\n if ( !message.startsWith(\"/\") || message.length() == 1 || message.startsWith(\"/ \")) {\r\n command = \"MESG\" + \" \" + message;\r\n } else {\r\n StringTokenizer tokens = new StringTokenizer(message);\r\n command = tokens.nextToken(\"/\").toUpperCase();\r\n if (command.equals(\"MESG\") && tokens.hasMoreTokens()) {\r\n command = command + \" \" + tokens.nextToken(\"\\n\").trim();\r\n } else {\r\n while (tokens.hasMoreTokens()) {\r\n command = command + \" \" + tokens.nextToken(\" \\n\");\r\n }\r\n }\r\n }\r\n if (out != null) {\r\n out.println(command);\r\n } else {\r\n keepGoing = false;\r\n finalize();\r\n }\r\n }", "@Override\n\tpublic void SendMessage(String message) {\n\t\t\n\t\ttry\n\t\t{\n\t\tprintWriters.get(clients.get(0)).println(message);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\n\t}", "private void sendMessage() throws Exception {\n\t\tGetTimestamp(\"Sending Message: \");\n\t\tString inputMessage;\n\t\tinputMessage = input.nextLine();\n\t\tString tosend = encrypt(clientkey, inputMessage);\n\t\t\n\t\tJSONObject RESPONSE = new JSONObject();\n\t\tRESPONSE.put(\"payload\",tosend);\n\t\tSystem.out.println(RESPONSE);\n\t\t\n\t\tpw.println(tosend);\n\t\tpw.flush();\n\t\tSystem.out.println(\"Message sent to the client : \" + inputMessage);\n\t\tif (inputMessage.equalsIgnoreCase(\"bye\")) {\n\t\t\tSystem.out.println(\"sending close command\");\n\t\t\tcloseConnection();\n\t\t} else {\n\t\t\tgetMessage();\n\t\t}\n\t}", "public void sendMessageToServer(String message) {\n if (outputStream != null) {\n outputStream.println(message);\n } else {\n System.out.println(\"No OutputStream!\");\n }\n }", "public void sendMessage(String message)\n\t\t{\n\t\t\twriter.println(message);\n\t\t\twriter.flush();\n\t\t}", "private void sendMsg()\n {\n try {\n spauldingApp.println(\"AckRequest.sendMsg() - sending request to nodeID= \" + node.getNodeID() + \" ...\");\n this.nbrTransmits++;\n //spauldingApp.eventLogger.writeMsgSentPing(fetchReqMsg);\n spauldingApp.getMoteIF().send(node.getNodeID(), requestMsg);\n } catch (Exception e) {\n spauldingApp.println(\"ERROR: Can't send message: \" + e);\n e.printStackTrace();\n }\n }", "public void sendMessage(Message msg) {\n network.sendAsync(msg);\n }", "public static void sendMessage(String message) {\r\n\t\tbtService.write(message.getBytes());\r\n\t}", "private void sendMsgToClient(String msg) {\n controlOutWriter.println(msg);\n }", "public void sendMsg(Message msg){\n messagesParser.sendMsg(msg);\n }", "public void sendMessage(String message) {\n try {\n bos.write(message);\n bos.newLine();\n bos.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void sendMsg(String msg) {\n\n\t}", "@Override\n public void send() {\n System.out.println(\"send message by SMS\");\n }", "public void sendMessage(String message) {\n\t\tif (!connectionActive()) {\n\t\t\tthrow new IllegalOperationException(\"Cannot send a message if you are not connected to a server!\\n\");\n\t\t}\n\t\tMessage bctMessage = Message.makeBroadcastMessage(userName, message);\n\t\tsocketConnection.print(bctMessage);\n\t}", "private void sendRequest( String msg ){ \r\n\r\n\t\tRequest message = new Request(); // construction of Request object\r\n\t\tmessage.c = c_id;\r\n\t\tmessage.s = seq_number;\r\n\t\tmessage.op = msg;\r\n\t\t\r\n\t\tString str_msg = message.toString(); //generate string message\r\n\t\tdisplayArea.append( \"\\nCLI\"+c_id+\" Sending packet containing: \" + str_msg + \"\\n\" );\r\n\t\t\t\t\r\n\t\tbyte data[] = str_msg.getBytes(); // convert to bytes\r\n\t\t \r\n\t\ttry{\t\t\t\t\t\t\t\t\t\r\n\t\t\tDatagramPacket sendPacket = new DatagramPacket( data, data.length, InetAddress.getLocalHost(), serverPort );\r\n\t\t\tsocket.send( sendPacket ); // send packet\r\n\t\t\tdisplayArea.append( \"Packet sent\\n\" );\r\n\t\t\tdisplayArea.setCaretPosition(\r\n\t\t\tdisplayArea.getText().length() );\r\n\t\t\tseq_number++; //increment seq_number\r\n\t\t}\r\n\t\tcatch ( IOException ioException )\r\n\t\t{\r\n\t\t\tdisplayMessage( ioException.toString() + \"\\n\" );\r\n\t\t\tioException.printStackTrace();\r\n\t\t} // end catch\r\n\t\t\r\n\t}", "private synchronized void sendToClient(PrintWriter pw, String message)\n {\n pw.write(message + \"\\n\");\n pw.flush();\n }", "public void sendMessage(String msg) {\n\t\tplayer.sendMessage(msg);\n\t}", "public void send(Object message) {\n try {\n if (message.equals(startTurnMessage)) {\n myTurn = true;\n }\n else if (message.equals(endTurnMessage)) {\n myTurn = false;\n }\n else {\n socketOut.reset();\n socketOut.writeObject(message);\n socketOut.flush();\n }\n } catch (IOException | NullPointerException e) {\n e.printStackTrace();\n }\n }", "public void sendMessage(GameMessage message) {\n\t\ttry {\n\t\t\toos.writeObject(message);\n\t\t} catch(Exception e) {\n\t\t\ttable.printMsg(\"Unable to send message to the server. Connection will be terminated.\");\n\t\t\ttable.printMsg(\"Try to Connect again.\");\n\t\t\ttry {\n\t\t\t\tsock.close();\n\t\t\t} catch(Exception ee) {\n\t\t\t\t// doing nothing\n\t\t\t}\n\t\t\tsock = null;\n\t\t\ttable.repaint();\n\t\t\tSystem.out.println(\"Unable to send message to the server.\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void sendData(String message) {\n\t\t\ttry {\n\t\t\t\toutput.writeObject(message);\n\t\t\t\toutput.flush(); // flush output to client\n\t\t\t} catch (IOException ioException) {\n\t\t\t\tSystem.out.println(\"\\nError writing object\");\n\t\t\t}\n\t\t}", "private void sendMessageToClient(String messageToClient){\n SwingUtilities.invokeLater(new Runnable() {\n @Override\n public void run() {\n output.println(\"\\n\" + \"Server: \" + messageToClient);\n output.flush();\n }\n });\n }", "public void sendMessage(String message) {\r\n\r\n synchronized (this) {\r\n //count++;\r\n if (mBufferOut != null && !mBufferOut.checkError()) {\r\n Log.i(TAG, \"message: \" + message);\r\n mBufferOut.print(message);\r\n mBufferOut.flush();\r\n }\r\n }\r\n }", "public void send(String request){\n try {\n streamOut.writeUTF(request);\n streamOut.flush();\n connected = true;\n System.out.println(clientID+\": send: \"+request);\n } catch (IOException ioe) {\n System.out.println(ioe);\n System.out.println(clientID+\": failedToSend: \"+request+\": IOException: \"+ioe);\n }\n }", "void sendMessage(String message) throws SocketIOException;", "public abstract void send(String message) throws IOException;", "public static void Send(Message message)\n\t{\n\t\ttry\n\t\t{\n\t\t\t_sendBuf = toByteArray(message);\n\n\t\t\t//dc message\n\t\t\tif (message.getRecipient().equalsIgnoreCase(\"\") &&\n\t\t\t\tmessage.getMessage().equalsIgnoreCase(\"%BYE%\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent BYE\");\n\t\t\t\t_socket.getOutputStream().write(Message.BYE);\n\t\t\t}\n\t\t\t//lobby message\n\t\t\telse if (message.getRecipient().equalsIgnoreCase(\"\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent LOBBY\");\n\t\t\t\t_socket.getOutputStream().write(Message.LOBBY);\n\t\t\t}\n\t\t\t//search request\n\t\t\telse if (message.getRecipient().equalsIgnoreCase(\"all\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent SEARCH\");\n\t\t\t\t_socket.getOutputStream().write(Message.SEARCH);\n\t\t\t}\n\t\t\t//answer request\n\t\t\telse if (message.getRecipient().equalsIgnoreCase(\"server\") &&\n\t\t\t\t\t message.getOrigin().equalsIgnoreCase(\"none\"))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent CHOICE\");\n\t\t\t\t_socket.getOutputStream().write(Message.CHOICE);\n\t\t\t}\n\t\t\t//whisper message\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"sent WHISPER\");\n\t\t\t\t_socket.getOutputStream().write(Message.WHISPER);\n\t\t\t}\n\t\t\t_socket.getOutputStream().write(_sendBuf);\n\t\t\t_socket.getOutputStream().flush();\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sendMsg(){\r\n\t\tsuper.getPPMsg(send);\r\n\t}", "void sendMessage(String message) {\n writer.println(message);\n }", "public void sendMessage(String str) {\n\t\ttry {\n\t\t\tsession.getRemote().sendString(str);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void sendMessage(common.messages.KVMessage msg) throws IOException {\r\n\t\tbyte[] msgBytes = msg.getMsgBytes();\r\n\t\toutput.write(msgBytes, 0, msgBytes.length);\r\n\t\toutput.flush();\r\n\t\tlogger.debug(\"SEND \\t<\" \r\n\t\t\t\t+ clientSocket.getInetAddress().getHostAddress() + \":\" \r\n\t\t\t\t+ clientSocket.getPort() + \">: '\" \r\n\t\t\t\t+ msg.getMsg() +\"'\");\r\n }", "void sendMessage() {\n\n\t}", "private void sendMessage(ChatMessage msg) {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public boolean Send(String message) {\r\n\t\t\r\n\t\t//Add a new line so it gets entered into the robot console \r\n\t\tmessage = message.concat(\"\\n\");\r\n\t\t\r\n\t\t//Construct ip address of Robot by team number \r\n\t\taddress = this.numberToAddress(NetConsole.window.getTeam());\r\n\t\t\r\n\t\t//deconstruct String into byte array \r\n\t\tbyte[] sendData = message.getBytes();\r\n\t\t\r\n\t\t//deconstruct packet for cleansing\r\n\t\tDatagramPacket packet = null;\r\n\t\t\r\n\t\t//reconstruct packet with default port \r\n\t\tpacket = new DatagramPacket(sendData, sendData.length, address, 6668);\r\n\t\ttry {\r\n\t\t\t//Send all the Packets!\r\n\t\t\tserverSocket.send(packet);\r\n\t\t} catch (IOException e) {\r\n\t\t\tNetConsole.window.error(\"Error Sending Packets\");\r\n\t\t\te.printStackTrace();\r\n\t\t\t\r\n\t\t\t//Just in case we want to know if the proccess was successful\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t\r\n\t}", "public void send(ECPacket message)\n\t{\n\t\tif (FMLCommonHandler.instance().getEffectiveSide().isClient())\n\t\t{\n\t\t\tthis.sendToServer(message);\n\t\t}\n\t\telse\n\t\t{\n\t\t\tthis.sendToAll(message);\n\t\t}\n\t}", "public void send(String message) {\n byte[] data = message.getBytes(Charset.forName(\"UTF-8\"));\n final Payload payload = new Payload(OPCODE_TEXT, data);\n\n new Thread(new Runnable() {\n @Override\n public void run() {\n webSocketConnection.sendInternal(payload);\n }\n\n }).start();\n }", "void sendRequest(String message);", "@Override\n\tpublic void sendMsg(MsgVO mvo) {\n\t\tsession.insert(namespace + \".sendMsg\", mvo);\n\t}", "synchronized void sendMessage(Message message) throws IOException {\n socketOutput.reset();\n socketOutput.writeObject(message);\n socketOutput.flush();\n }", "@Override\n\tpublic void sendMessage() {\n\t\t\n\t}", "public void sendMessage(final String message) {\n\n Runnable runnable = new Runnable() {\n @Override\n public void run() {\n\n if (null != sendBuffer) {\n Log.d(TAG, \"Sending: \" + message);\n sendBuffer.println(message);\n sendBuffer.flush();\n }\n }\n };\n\n Thread thread = new Thread(runnable);\n thread.start();\n }", "public static void sendMsg(String msg)\n throws IOException\n {\n if (streamOut == null)\n clientFrame.printMsg(\"Error: Not connected.\");\n else\n streamOut.write((msg + \"\\n\").getBytes());\n }", "private void sendMessage(ChatMessage msg) throws IOException {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n sOutput.close();\n sInput.close();\n e.printStackTrace();\n }\n //sOutput.flush();\n }", "@Override\n public void sendMessage(Message m) {\n commSender.sendMessage(m);\n }", "public void sendMessage(String message) {\n final String msg = message;\n new Thread() {\n @Override\n public void run() {\n DatagramPacket packet = new DatagramPacket(msg.getBytes(), msg.length(), host, port);\n try {\n datagramSocket.send(packet);\n Log.d(DEBUG_TAG, \"sent packet\");\n Log.d(DEBUG_TAG, \"host: \" + host);\n Log.d(DEBUG_TAG, \"port: \" + port);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }.start();\n }", "@Override\n\tpublic void send() {\n\t\tSystem.out.println(\"this is send\");\n\t}", "protected void sendToServer(String string) {\r\n System.out.println(\"Sending to server: \" + string);\r\n toServer.println(string);\r\n toServer.flush();\r\n }", "private void bluetoothSendMsg(String s) {\n byte [] msgOnBuf;\n msgOnBuf = s.getBytes();\n try {\n outStream.write(msgOnBuf);\n } catch (IOException e) {\n Log.d(TAG,\"send message fail!\");\n }\n }", "protected void sendMessageToServer(MessageSecure m)\r\n\t{\r\n\t\tnew MessageSenderThread(m).start();\r\n\t}", "void send() throws ImsException;", "public void send(Address from, String message);", "@Override\n public void run() {\n if (this.clientInterfaceTCP.getConnected())\n this.clientInterfaceTCP.sendString(this.messageToSend);\n }", "private void sendToClient(String string) {\n\t\r\n}", "public void send() {\n try {\n String message = _gson.toJson(this);\n byte[] bytes = message.getBytes(\"UTF-8\");\n int length = bytes.length;\n\n _out.writeInt(length);\n _out.write(bytes);\n \n } catch (IOException ex) {\n Logger.getLogger(ResponseMessage.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void sendMessage(String msg){\n \n try{\n out.writeObject(msg.toString()); \n \n }catch(Exception e){\n e.printStackTrace();\n }\n }", "public void sendMessage(Message message) {\n if (accepted || !ended || message.type.equals(\"register\") || message.type.equals(\"lobby\")) {\n message.packetNum = packetNum;\n ByteBuffer buffer = ByteBuffer.wrap(SerializationUtils.serialize(message));\n SocketAddress addr = null;\n try {\n addr = client.getLocalAddress();\n log(\"sending [\" + message + \"] to \" + addr);\n client.write(buffer);\n reconciliation.add(message);\n packetNum++;\n } catch (IOException e) {\n error(\"Failed to send message to:\" + addr);\n e.printStackTrace();\n }\n }\n }", "public void sendMessage(String s){\r\n\t\tsynchronized(msgToSend){ // synchronized to maintain thread-safety\r\n\t\t\tmsgToSend.append(s + \"\\n\");\r\n\t\t}\r\n\t}", "public void sendMsg(String msg) {\n\t\tSystem.out.println(\"sendMSG\");\n\n\t\tMessage message = new Message(msg, convID, socketOut.getInetAddress(), myNickName);\n\t\tSystem.out.println(\"Created message \" + message.toString());\n\t\ttry {\n\t\t\toutputStream.writeObject(message);\n\t\t\t//display(message);\n\n\t\t} catch (IOException e) { display(\"IOException while sending message \" + e.getMessage()); }\n\t}" ]
[ "0.7761225", "0.7682706", "0.76490945", "0.7553706", "0.752896", "0.7523866", "0.7519563", "0.74903756", "0.7481018", "0.7478417", "0.7464976", "0.7437581", "0.74055487", "0.7386121", "0.7359958", "0.7358444", "0.734632", "0.73421", "0.7322726", "0.7314134", "0.73135704", "0.7311544", "0.7309304", "0.7302919", "0.7297689", "0.72975135", "0.72839326", "0.7268313", "0.724763", "0.72400296", "0.72382385", "0.7214319", "0.7209855", "0.7206608", "0.72017974", "0.71952075", "0.71822435", "0.7165802", "0.71589804", "0.7156497", "0.71528244", "0.714059", "0.71374404", "0.71374077", "0.7133189", "0.7129446", "0.7126632", "0.71214557", "0.7111083", "0.71054494", "0.7097609", "0.70881164", "0.7088088", "0.7087246", "0.7087005", "0.7083517", "0.7083114", "0.70767075", "0.7076035", "0.70743847", "0.7073346", "0.7056935", "0.705502", "0.70480037", "0.704438", "0.7043041", "0.7035376", "0.7024069", "0.7020818", "0.70178366", "0.7014641", "0.70060074", "0.7004002", "0.70034", "0.6997568", "0.6987196", "0.69807434", "0.69776505", "0.69716644", "0.69630796", "0.6961674", "0.69571495", "0.69540775", "0.6946598", "0.6941422", "0.6936464", "0.6933722", "0.6928878", "0.69252414", "0.692125", "0.69178003", "0.6917482", "0.6915608", "0.69016707", "0.6900135", "0.68968517", "0.6889198", "0.68799734", "0.6877611", "0.68741775" ]
0.7154242
40
allows user to type
private void ableToType(final boolean tof){ SwingUtilities.invokeLater( new Runnable(){ public void run(){ userText.setEditable(tof); } } ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void askForUserType() {\n System.out.println(\"What type of User would you like to make? (Type Attendee, Speaker, VIP, or Organizer)\");\n }", "public void typeEvent(KeyEvent e) {\n char typed = e.getKeyChar();\n //if the char is not a number remove the char\n if (typed < '0' || typed > '9') {\n //input is illigal so put empty char insted of the sent char\n e.setKeyChar(Character.MIN_VALUE);\n } else {\n //update the text that is in the text filed and the value in the factory\n updateShapeFactory(updateValue(e));\n }\n //show the update\n repaint();\n }", "protected void type(String text, Finder<WebElement, WebDriver> inputFinder) {\n \t\tcontext.type(text, inputFinder);\n \t}", "void showOtherUserTyping();", "public abstract void setType();", "void setType(java.lang.String type);", "private void getUserTypeChoice() {\n mTypeInput = \"(\";\n if (mBinding.chipApartment.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput = mTypeInput + \"'Apartment'\";\n }\n if (mBinding.chipLoft.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Loft'\";\n }\n if (mBinding.chipHouse.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'House'\";\n }\n if (mBinding.chipVilla.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Villa'\";\n }\n if (mBinding.chipManor.isChecked()) {\n if (!mTypeInput.equals(\"(\"))\n mTypeInput += \", \";\n mTypeInput += \"'Manor'\";\n }\n mTypeInput += \")\";\n }", "public void setType(CharSequence value) {\n this.type = value;\n }", "public void setType(String type);", "public void setType(String type);", "public void setType(String type);", "@Override\n public void userStartedTyping(){\n }", "@Override\n\tpublic void type() {\n\t\t\n\t}", "public void typeUserName(String text) {\n txtUserName().typeText(text);\n }", "@Override\r\n\tpublic void typeform() {\n\t\tSystem.out.println(\"Type Carre\");\r\n\t}", "public void typeUsername(String username) {\n /*Notice that clearText() implemented before typeText().\n * This is considered to be a 'safe' operation, since in the case there is text already there\n * it will be deleted first, preventing the test from returning a failure for a different scenario.*/\n USERNAME_EDIT.perform(clearText(), typeText(username));\n }", "@Override\n\tpublic void setType(String type) {\n\t}", "public void askForType() {\n System.out.println(\"What type of event will this be?\");\n System.out.println(\"1) Normal 2) Multi-Speaker 3) VIP\");\n }", "public void setType(String inType)\n {\n\ttype = inType;\n }", "abstract protected boolean checkType(String myType);", "public void type(String s){\n\t\tif(currentEdit != null){\n\t\t\tint cur = currentEdit.getSelectionStart();\n\t\t\tif(s.equals(\"del\")||s.equals(\"del(\")){\n\t\t\t\tif(cur != 0){\n\t\t\t\t\tcurrentEdit.getText().delete(cur-1, cur);\n\t\t\t\t}\t\t\t\n\t\t\t}else if(s.equals(\"clear\")){\n\t\t\t\tcurrentEdit.setText(\"\");\n\t\t\t}else if(s.equals(\"ENTER\")){\n\t\t\t\tonEnter();\n\t\t\t}else{\n\t\t\t\tcurrentEdit.getText().insert(cur, s);\n\t\t\t}\n\t\t}\n\t}", "@And(\"^I type \\\"([^\\\"]*)\\\" in \\\"([^\\\"]*)\\\"$\")\n\tpublic void type(String text, String object){\n\t\tString result = selenium.type(text, object);\n\t\tAssert.assertEquals(selenium.result_pass, result);\n\t}", "public void askForUserInfo(String type) {\n switch (type) {\n case \"Username\":\n System.out.println(\"Enter username: \");\n break;\n case \"Password\":\n System.out.println(\"Enter password: \");\n break;\n case \"Name\":\n System.out.println(\"Enter Name: \");\n break;\n case \"Type\":\n System.out.println(\"Select the user type:\");\n System.out.println(\"1. Organizer\");\n System.out.println(\"2. Attendee\");\n System.out.println(\"3. VIP\");\n break;\n }\n }", "@Override\n\tpublic void checkType(final String type) {\n\t\tHttpUtils.checkToken(type,\"Type '%s' is not a valid token\",type);\n\t}", "public void type(String string) {\n\t\tthis.search.sendKeys(string);;\r\n\t}", "public void type(){\n while(infiniteLoop){\n System.out.println(\"What type of Tea do you want?\");\n System.out.println(\"Press 1 - green\");\n System.out.println(\"Press 2 - black\");\n System.out.println(\"Press 3 - herbal\");\n System.out.println(\"Press 4 - white\");\n int x = keyboard.nextInt();\n if(x == 1){\n Tea = Tea + \"green tea, \";\n break;\n }\n else if(x == 2){\n Tea = Tea + \"black tea, \";\n break;\n }\n else if(x == 3){\n Tea = Tea + \"herbal tea, \";\n break;\n }\n else if(x == 4){\n Tea = Tea + \"white tea, \";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n\n }", "public void setType(String type){\n \tthis.type = type;\n }", "@Override\n public void userStoppedTyping(){\n }", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) \n {\n this.type = type;\n }", "public void takeUserInput() {\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "public void setType(String type){\n this.type = type;\n }", "public void setType(char type) {\n this.type = type;\n }", "public void setType(char type) {\n this.type = type;\n }", "public void doType(String callerName) throws LexemeException {\n\t\tlogMessage(\"<type>--> void | Boolean| INT| String| ID\");\n\t\tfunctionStack.push(\"<type>\");\n\t\tconsumeToken();\n\t\tif (ifPeek(\"L_BRAC_\")) {\n\t\t\tconsumeToken();\n\t\t\tifPeekThenConsume(\"R_BRAC_\");\n\t\t}\n\t\tlogVerboseMessage(callerName);\n\t\tfunctionStack.pop();\n\t}", "public void type(char c){\n //Only type if a text is selected\n if(currentText != null) {\n //If the character is a newline then a new line should be created and the character and line index's should be updated as appropriate\n if (c == '\\n') {\n currentText = codeWindow.getTextLineController().split(currentText, characterIndex, codeWindow);\n characterIndex = 0;\n lineIndex++;\n }\n //If the character that was typed is any other character then the line will not be split, update it with the typed character and update the character index\n else {\n currentText = codeWindow.getTextLineController().update(currentText, characterIndex, c);\n characterIndex++;\n }\n //After typing the position of the cursor will be different, update the position\n updatePosition();\n }\n }", "public void setType(String t) {\n\ttype = t;\n }", "private void typeKey(char keyChar) {\r\n if(keyChar == '1') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(1);\r\n }\r\n if(keyChar == '2') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(2);\r\n }\r\n if(keyChar == '3') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(3);\r\n }\r\n if(keyChar == '4') {\r\n gameMode.typed(true);\r\n gameMode.setGameMode(4);\r\n }\r\n if(keyChar == 's' || keyChar == 'S')\r\n restart.typed(true);\r\n if(keyChar == 'n' || keyChar == 'N')\r\n System.exit(0); // TODO: funciona estando en inselection y no deberia\r\n }", "public void setType(String value) {\n this.type = value;\n }", "void setType(final UserType type);", "@Override\r\n\tpublic void acceptInput(String input) {\n\t\t\r\n\t}", "public void setType(String name){\n\t\ttype = name;\n\t}", "void setType(String type) {\n this.type = type;\n }", "public void setType(int type)\n {\n editor.putInt(KEY_TYPE, type);\n // commit changes\n editor.commit();\n Log.d(TAG,\"user type modified in pref\");\n }", "public void correcto( Editor<Tipo> editor );", "@Override abstract public String type();", "private void setType(String type) {\n mType = type;\n }", "public void setType(String newValue);", "public void setType(String newValue);", "public abstract void newPromptType(long ms, PromptType type);", "public void set_type(String t)\n {\n type =t;\n }", "public void type(){\n while(infiniteLoop){\n System.out.println(\"What type of Coffee do you want?\");\n System.out.println(\"Press 1 - expresso\");\n System.out.println(\"Press 2 - latte\");\n System.out.println(\"Press 3 - cappuccino\");\n System.out.println(\"Press 4 - mocha\");\n int x = keyboard.nextInt();\n /*\n * saves user choice to instant variable Coffee\n * and continues to ask if choice is invalid\n */\n if(x == 1){\n expresso();\n Coffee = Coffee + \"expresso.\";\n break;\n }\n else if(x == 2){\n latte();\n Coffee = Coffee + \"latte.\";\n break;\n }\n else if(x == 3){\n cappuccino();\n Coffee = Coffee + \"cappuccino.\";\n break;\n }\n else if(x == 4){\n mocha();\n Coffee = Coffee + \"mocha.\";\n break;\n }\n System.out.println(\"Please enter valid response\");\n }\n }", "public void setType( String type )\n {\n this.type = type;\n }", "public void inputUsername(String userName) {\n txbUsername.type(userName);\n }", "public void setType (String typ) {\n type = typ;\n }", "public void setType(String type) {\r\n this.type = type.trim();\r\n }", "public static void typingTest(String word){\r\n\t\t//create a scanner for input\r\n\t\tScanner scanner = new Scanner(System.in);\r\n\t\tSystem.out.println();\r\n\t\t//keep asking question until user types it in correctly\r\n\t\twhile (true){\r\n\t\t\t//ask the user to type the word in correctly\r\n\t\t\tSystem.out.println(\"Please type \"+ word + \": \");\r\n\t\t\tString input= scanner.next();\r\n\t\t\t//if the user enters the word correctly\r\n\t\t\tif (input.equalsIgnoreCase(word)){\r\n\t\t\t\tSystem.out.println(\"GOOD JOB!\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public final void setType(String type){\n\t\tthis.type = type;\t\n\t}", "public void type(WebElement ElementToType, String StringToType)\n\t{\n\t\ttry {\n\t\t\tif(ElementToType !=null)\n\t\t\t{\n\t\t\t\twait.until(ExpectedConditions. visibilityOf(ElementToType));\n\t\t\t\tElementToType.clear();\n\t\t\t\tElementToType.sendKeys(StringToType);\n\t\t\t\tLog.info(\"Enter the text, \"+StringToType);\n\t\t\t}\n\n\t\t\telse\n\t\t\t{\n\t\t\t\tLog.error(\"Element could not found\");\n\t\t\t}\n\n\t\t} catch (Exception e) {\n\t\t\tLog.error( \"Error while writing the element\" + e.toString() );\n\t\t}\n\t}", "@Override\n public void setType(String type) {\n this.type = type;\n }", "private void requestInput(RequestType type){\n inputType = type;\n inputMessage.setText(\"Input path below\");\n stage.setScene(input);\n }", "protected void keyTyped(char par1, int par2)\n {\n if (par2 == 15)\n {\n completePlayerName();\n }\n else\n {\n field_50060_d = false;\n }\n\n if (par2 == 1)\n {\n mc.displayGuiScreen(null);\n }\n else if (par2 == 28)\n {\n String s = field_50064_a.getText().trim();\n\n if (s.length() > 0 && !mc.lineIsCommand(s))\n {\n mc.thePlayer.sendChatMessage(s);\n }\n\n mc.displayGuiScreen(null);\n }\n else if (par2 == 200)\n {\n func_50058_a(-1);\n }\n else if (par2 == 208)\n {\n func_50058_a(1);\n }\n else if (par2 == 201)\n {\n mc.ingameGUI.func_50011_a(19);\n }\n else if (par2 == 209)\n {\n mc.ingameGUI.func_50011_a(-19);\n }\n else\n {\n field_50064_a.func_50037_a(par1, par2);\n }\n }", "void accept(@NotNull T editText);", "protected abstract String getType();", "abstract public boolean isTyped();", "public void set_type(String type)\r\n\t{\r\n\t\tthis.type = type;\r\n\t}", "protected void setType(String requiredType){\r\n type = requiredType;\r\n }", "public void setType(String type) {\n\t\tif (Input.isTypeValid(furniture.toLowerCase(), type.toLowerCase())) {\n\t\t\tLocateRequest.type = type; // makes sure that type is valid\n\t\t} else {\n\t\t\t// error message that type is not valid\n\t\t\tSystem.err.print(\"The furniture type provided is not valid\");\n\t\t}\n\t}", "public void setTypeName(java.lang.String value);", "public void settype(String cat) { this.type = cat; }", "public void setType (String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "public void setType (String type) {\n this.type = type;\n }", "protected void keyTyped(char par1, int par2) {}", "protected void type(WebElement element, String text) {\n waitForElementToBeVisible(element);\n element.clear();\n element.sendKeys(text);\n }", "private static String getUserTextTyped () {\n\n\t\tBufferedReader myReader = new BufferedReader(new InputStreamReader(System.in));\n\t\tBoolean loop = true;\n\t\tString text = \"\";\n\t\tdo {\n\t\t\ttry {\n\t\t\t\ttext = myReader.readLine();\n\n\t\t\t\tif ((text.length() < 3)) {\n\t\t\t\t\tshowMessage(\"Please type a minimum of 3 characters: \\n\");\n\t\t\t\t} else {\n\t\t\t\t\treturn text;\n\t\t\t\t}\n\n\t\t\t}catch (Exception e) {\n\t\t\t\tSystem.out.println(\"Character invalid.\");\n\t\t\t}\n\t\t} while (loop);\n\n\n\t\treturn text;\n\n\t}", "public void setType(String type) {\n this.type = type;\n }", "public void setType(String type) {\n this.type = type;\n }", "public void userInput() {\r\n System.out.println(\"You want to convert from:\");\r\n this.fromUnit = in.nextLine();\r\n System.out.print(\"to: \");\r\n this.toUnit = in.nextLine();\r\n System.out.print(\"The value is \");\r\n this.value = in.nextDouble();\r\n }", "@Override\n public boolean keyTyped(char arg0) {\n return false;\n }", "public void setType( String type ) {\n this.type = type;\n }", "private void emitType (Type t) {\r\n if (t == PrimitiveType.BYTE || t == PrimitiveType.CHAR ||\r\n\tt == PrimitiveType.SHORT || t == PrimitiveType.INT) \r\n Emitter.emit (\"Integer\");\r\n else if (t == PrimitiveType.LONG) \r\n Emitter.emit (\"Long\");\r\n else if (t == PrimitiveType.FLOAT) \r\n Emitter.emit (\"Float\");\r\n else if (t == PrimitiveType.DOUBLE) \r\n Emitter.emit (\"Double\");\r\n else if (t == PrimitiveType.BOOL) \r\n Emitter.emit (\"Boolean\");\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "private void validateTypes() {\r\n\t\tfor (int i = 0; i < types.length; i++) {\r\n\t\t\tString type = types[i];\r\n\t\t\tif (!TypedItem.isValidType(type))\r\n\t\t\t\tthrow new IllegalArgumentException(String.format(\"The monster type %s is invalid\", type));\r\n\t\t\tfor (int j = i + 1; j < types.length; j++) {\r\n\t\t\t\tif (type.equals(types[j])) {\r\n\t\t\t\t\tthrow new IllegalArgumentException(\"The monster cant have two similar types..\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "boolean updateCharacterType(CharacterType t);", "public void setType(String t) {\n\t\tthis.type = t;\n\t}", "@Override\n\tpublic boolean keyTyped(char arg0) {\n\t\treturn false;\n\t}", "@Override\n\tpublic boolean keyTyped(char arg0) {\n\t\treturn false;\n\t}", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "public void setType(String type) {\r\n this.type = type;\r\n }", "void setType(Type type)\n {\n this.type = type;\n }", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();", "String type();" ]
[ "0.68939286", "0.6710132", "0.65737784", "0.6520385", "0.64611316", "0.63768536", "0.628062", "0.62504095", "0.6240441", "0.6240441", "0.6240441", "0.62319523", "0.62212247", "0.6214544", "0.6179095", "0.6176088", "0.61732805", "0.61688006", "0.61518157", "0.6104036", "0.6099534", "0.6039652", "0.59892017", "0.59856695", "0.5980982", "0.590493", "0.59034026", "0.58536655", "0.58486766", "0.5836961", "0.5834094", "0.5813303", "0.5811361", "0.58106", "0.58106", "0.57931405", "0.5784541", "0.5781983", "0.57646316", "0.57549214", "0.574637", "0.5741831", "0.5737769", "0.5728025", "0.57150126", "0.57030797", "0.56903875", "0.56896347", "0.5686894", "0.5686894", "0.56867015", "0.56826043", "0.56822693", "0.5679877", "0.56798553", "0.5672666", "0.56645525", "0.56631", "0.56619954", "0.56604105", "0.5648513", "0.5647634", "0.5646591", "0.5639679", "0.56217504", "0.56139207", "0.5606029", "0.55945265", "0.55911595", "0.55898756", "0.5583194", "0.55818534", "0.55818534", "0.55818534", "0.5579673", "0.55765724", "0.5565834", "0.5564734", "0.5564734", "0.55638105", "0.5558092", "0.55515754", "0.5551209", "0.5551158", "0.55380905", "0.5537014", "0.5534569", "0.5524697", "0.5524697", "0.5523428", "0.5523428", "0.5523428", "0.5523428", "0.55232066", "0.5520832", "0.5520832", "0.5520832", "0.5520832", "0.5520832", "0.5520832", "0.5520832" ]
0.0
-1
/ access modifiers changed from: packageprivate
public Set<AspectRatio> ratios() { return this.mRatios.keySet(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "public void mo21791P() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\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 }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "public abstract void mo27464a();", "private OMUtil() { }", "@Override\n\tpublic void ligar() {\n\t\t\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}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.7151384", "0.6686185", "0.65583766", "0.64826417", "0.64304984", "0.6385171", "0.6383977", "0.63483983", "0.633059", "0.62765336", "0.6263506", "0.6250637", "0.62373245", "0.62338716", "0.6228648", "0.61975765", "0.61975765", "0.6194941", "0.618365", "0.61799717", "0.6157145", "0.6152681", "0.61520094", "0.6116934", "0.61095953", "0.61080873", "0.6088326", "0.6082195", "0.6072662", "0.6068906", "0.6056682", "0.60562724", "0.60556823", "0.60513276", "0.60499626", "0.6047135", "0.60444874", "0.6036964", "0.60240126", "0.60240126", "0.60240126", "0.60240126", "0.60198665", "0.60196465", "0.6018061", "0.60165036", "0.60056704", "0.6002412", "0.59990937", "0.5997667", "0.599644", "0.59957576", "0.5991334", "0.5991334", "0.5991334", "0.5991334", "0.5991334", "0.5991334", "0.5991334", "0.5990928", "0.59876156", "0.59876156", "0.59846693", "0.59827363", "0.5973123", "0.5958725", "0.59580827", "0.59533185", "0.5951521", "0.5947354", "0.5946934", "0.59443045", "0.59423304", "0.59402597", "0.5937596", "0.59375507", "0.5926791", "0.5926043", "0.5926043", "0.59259754", "0.59135544", "0.59104025", "0.5904478", "0.59043425", "0.59041864", "0.58994097", "0.58964294", "0.58939105", "0.58936906", "0.5890244", "0.5882699", "0.58786327", "0.5877569", "0.5876326", "0.5875925", "0.58734876", "0.5867297", "0.5867297", "0.58666396", "0.58664894", "0.58640105" ]
0.0
-1
/ access modifiers changed from: packageprivate
public SortedSet<Size> sizes(AspectRatio aspectRatio) { return this.mRatios.get(aspectRatio); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\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 }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\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}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
/ access modifiers changed from: packageprivate
public void clear() { this.mRatios.clear(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "protected void mo6255a() {\n }", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo21791P() {\n }", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "public void mo23813b() {\n }", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\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 }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo3749d() {\n }", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "private OMUtil() { }", "public abstract void mo27464a();", "@Override\n\tpublic void ligar() {\n\t\t\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}", "private NativeSupport() {\n\t}", "public void mo2740a() {\n }", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.71513015", "0.6686406", "0.6558315", "0.6482832", "0.6430476", "0.63856333", "0.63838816", "0.63487375", "0.6330605", "0.62764114", "0.626384", "0.62509346", "0.6237325", "0.62340367", "0.6228612", "0.6197973", "0.6197973", "0.61952", "0.6183631", "0.61797863", "0.6157397", "0.6152618", "0.61521906", "0.6116792", "0.61100185", "0.61080855", "0.6088319", "0.6082373", "0.6072587", "0.60691696", "0.60570836", "0.60564214", "0.6056027", "0.60505396", "0.6050144", "0.60472345", "0.6044647", "0.6036982", "0.6024398", "0.6024398", "0.6024398", "0.6024398", "0.6020334", "0.60201526", "0.6018423", "0.6016204", "0.6005956", "0.6002279", "0.5999404", "0.59974486", "0.59964895", "0.5995736", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.5991695", "0.599113", "0.5987661", "0.5987661", "0.5984926", "0.5983099", "0.5973421", "0.59589046", "0.5958243", "0.5953439", "0.59510964", "0.59475076", "0.5946366", "0.5943994", "0.59424007", "0.59403396", "0.5937576", "0.59374106", "0.5926433", "0.59263766", "0.59263766", "0.5925841", "0.5913479", "0.5910542", "0.59044325", "0.5904201", "0.59039", "0.58995575", "0.58967894", "0.5894089", "0.58939654", "0.58905286", "0.5882918", "0.58785903", "0.58777314", "0.5876467", "0.5876147", "0.587332", "0.58671093", "0.58671093", "0.58666575", "0.5866619", "0.58632815" ]
0.0
-1
/ access modifiers changed from: packageprivate
public boolean isEmpty() { return this.mRatios.isEmpty(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private stendhal() {\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n protected void prot() {\n }", "public void method_4270() {}", "@Override\n public void func_104112_b() {\n \n }", "private void m50366E() {\n }", "private void kk12() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n public void perish() {\n \n }", "public abstract void mo70713b();", "public void m23075a() {\n }", "public void mo38117a() {\n }", "private MApi() {}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public abstract void mo56925d();", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void mo21779D() {\n }", "public abstract void mo27386d();", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "void m1864a() {\r\n }", "public abstract Object mo26777y();", "public void mo21825b() {\n }", "protected boolean func_70814_o() { return true; }", "public final void mo91715d() {\n }", "public abstract void mo27385c();", "public void mo97908d() {\n }", "public void mo21782G() {\n }", "private TMCourse() {\n\t}", "private test5() {\r\n\t\r\n\t}", "private Util() { }", "protected void mo6255a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private abstract void privateabstract();", "public void mo21877s() {\n }", "public void mo21787L() {\n }", "private MigrationInstantiationUtil() {\n\t\tthrow new IllegalAccessError();\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "private Utils() {}", "public void mo21791P() {\n }", "private MetallicityUtils() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "public abstract void mo6549b();", "@DSComment(\"Private Method\")\n @DSBan(DSCat.PRIVATE_METHOD)\n @DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2013-12-30 13:00:49.426 -0500\", hash_original_method = \"26D71A046B8A5E21DEFC65FB89CD9FDA\", hash_generated_method = \"2293476E78FCC8BDA181F927AEA93BD1\")\n \nprivate void copyTables ()\n {\n if (prefixTable != null) {\n prefixTable = (Hashtable)prefixTable.clone();\n } else {\n prefixTable = new Hashtable();\n }\n if (uriTable != null) {\n uriTable = (Hashtable)uriTable.clone();\n } else {\n uriTable = new Hashtable();\n }\n elementNameTable = new Hashtable();\n attributeNameTable = new Hashtable();\n declSeen = true;\n }", "public void mo23813b() {\n }", "public void mo44053a() {\n }", "public void smell() {\n\t\t\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 }", "public void mo115190b() {\n }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "public void mo21785J() {\n }", "public void mo21793R() {\n }", "public void mo21878t() {\n }", "public void mo56167c() {\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public abstract String mo118046b();", "public void mo115188a() {\n }", "private SourcecodePackage() {}", "public abstract String mo41079d();", "void mo57277b();", "public void mo6944a() {\n }", "public abstract void mo42329d();", "public abstract void mo30696a();", "private final zzgy zzgb() {\n }", "private Utils() {\n\t}", "private Utils() {\n\t}", "protected boolean func_70041_e_() { return false; }", "zzafe mo29840Y() throws RemoteException;", "private Singletion3() {}", "public abstract void mo42331g();", "public abstract void mo35054b();", "public abstract String mo13682d();", "public void mo21786K() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "public void mo21794S() {\n }", "public void mo12628c() {\n }", "private Infer() {\n\n }", "public void mo9848a() {\n }", "public abstract void mo27464a();", "private OMUtil() { }", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo2740a() {\n }", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private NativeSupport() {\n\t}", "@Override\n public boolean isPrivate() {\n return true;\n }" ]
[ "0.7152354", "0.66870445", "0.6557956", "0.64830303", "0.64306164", "0.63853925", "0.6384864", "0.63484466", "0.6330916", "0.62771153", "0.6263446", "0.6251191", "0.623744", "0.6234031", "0.62294084", "0.6198601", "0.6198601", "0.619552", "0.61842144", "0.61809874", "0.61573476", "0.6153497", "0.6152576", "0.6117015", "0.6109547", "0.6108387", "0.60887784", "0.6082723", "0.6073469", "0.60706985", "0.60562694", "0.60562575", "0.60559225", "0.60531056", "0.6050733", "0.60479873", "0.6045513", "0.6038094", "0.6023796", "0.6023796", "0.6023796", "0.6023796", "0.60206586", "0.60202146", "0.60190946", "0.60176116", "0.6006372", "0.6002703", "0.5999305", "0.5999144", "0.5997215", "0.59963655", "0.599197", "0.599197", "0.599197", "0.599197", "0.599197", "0.599197", "0.599197", "0.59910274", "0.59878075", "0.59878075", "0.5985066", "0.5983375", "0.5973787", "0.5959142", "0.5958575", "0.59531504", "0.5951894", "0.5947825", "0.59468997", "0.59448934", "0.5942682", "0.5940769", "0.59384227", "0.59382755", "0.5926339", "0.5926243", "0.5926243", "0.59256226", "0.5913768", "0.5910571", "0.59055513", "0.5905238", "0.590443", "0.5899911", "0.589717", "0.5894518", "0.58944243", "0.5890848", "0.58823144", "0.58785427", "0.5878036", "0.5876826", "0.5876161", "0.58741283", "0.5866971", "0.58668786", "0.58668786", "0.5865463", "0.58651894" ]
0.0
-1
TODO Autogenerated method stub
@Override public List<Product> findHots() throws Exception { 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.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 List<Product> findNews() throws Exception { 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.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 Product findProductByPid(String pid) throws Exception { 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.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 int findTotalRecords(String cid) throws Exception { 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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
@Override public List findProductsByCidWithPage(String cid, int startIndex, int pageSize) throws Exception { 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.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 int findTotalRecords() throws Exception { 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 List<Product> findAllProductsWithPage(int startIndex, int pageSize) throws Exception { 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.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 saveProduct(Product product) throws Exception { }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
we just responding here
@Override public void onSuccess(CommandMessage<? extends WithdrawMoneyCommand> commandMessage, java.lang.Object o) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\r\n\tprotected void processRespond() {\n\r\n\t}", "@Override\n public void perish() {\n \n }", "@Override\n\tpublic void msgGotHungry() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtFrige() {\n\t\t\n\t}", "private void offer() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public void think() {\n\t\t\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 }", "private void getStatus() {\n\t\t\n\t}", "@Override\r\n\tprotected void processRespond() throws SGSException {\n\r\n\t}", "protected void mo6255a() {\n }", "public void baocun() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "public void mo55254a() {\n }", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private void kk12() {\n\n\t}", "public void mo4359a() {\n }", "public void mo38117a() {\n }", "@Override\r\n \tpublic void process() {\n \t\t\r\n \t}", "public void talk() {\n\n\t}", "@Override\r\n\t\tprotected void run() {\n\t\t\t\r\n\t\t}", "private void poetries() {\n\n\t}", "@Override\n public void feedingHerb() {\n\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "public final void mo51373a() {\n }", "public void sendToWard(){\r\n\t\t//here is some code that we do not have access to\r\n\t}", "public void mo6081a() {\n }", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "private void bid() {\n\t\t\t\n\t\t}", "private FlyWithWings(){\n\t\t\n\t}", "@Override\n\t\t\tpublic void worked(int work) {\n\t\t\t\t\n\t\t\t}", "public void smell() {\n\t\t\n\t}", "@Override\r\n\tpublic void runn() {\n\t\t\r\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\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}", "public void furyo ()\t{\n }", "void faild_response();", "PaulEigon() {\n\treadCurrentPingisState();\n\tscanState();\n\tprintResult();\n }", "@Override\n\tpublic void msgAtKitchen() {\n\t\t\n\t}", "private void sout() {\n\t\t\n\t}", "@Override\n\tpublic void msgAtBed() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void mo21791P() {\n }", "public void mo21877s() {\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\t\r\n\t\t\t}", "@Override\n\tpublic void sendResponse() {\n\t\t\n\t}", "public void mo21794S() {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t}", "void responseSequenceNumber() {\r\n\t\t\r\n\t}", "public void mo97908d() {\n }", "@Override\n\tpublic void msgAtCooking() {\n\t\t\n\t}", "public void working()\n {\n \n \n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void onRuning(TAResponse response) {\n\n\t}", "public void mo21793R() {\n }", "private void postRequest() {\n\t\tSystem.out.println(\"post request, iam playing money\");\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void verliesLeven() {\r\n\t\t\r\n\t}", "public void msg1()\r\n\t{\n\t\t\r\n\t}", "@Override\n\t\t\t\t\t\t\tpublic void onFbcompleate() {\n\n\t\t\t\t\t\t\t}", "public void playHoomans() {\r\n System.out.println(\"Thanks for killing each other, human!\");\r\n }", "@Override\n\tpublic void challenge7() {\n\n\t}", "@Override\n\tpublic void exams() {\n\t\t\n\t}", "@Override\n\tpublic void data() {\n\t\tSystem.out.println(\"browsing through vodaphone\");\n\t\t\n\t}", "private void __getReply() throws IOException\n {\n __getReply(true); // tagged response\n }", "public void mo9848a() {\n }", "private void preRequest() {\n\t\tSystem.out.println(\"pre request, i am playing job\");\n\t}", "public void mo12628c() {\n }", "public void run() {\n\t\t\t\t\n\t\t\t}", "public void woke(){\n\n //TODO\n\n }", "public void mo21825b() {\n }", "@Override\n\tprotected void logic() {\n\n\t}", "public void mo21792Q() {\n }", "@Override\n public void meet() {\n //left blank\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n public void handleMessage(Message msg) {\n }", "@Override\n\t\tpublic void update() {\n\t\t\tSystem.out.println(\"새로운 수정\");\n\t\t}", "@Override\n\tpublic void sendResponse() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void eats() {\n\t\t\n\t}", "public void mo21783H() {\n }", "@Override\r\n\tpublic void laught() {\n\r\n\t}", "private void report() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void msgAtCook() {\n\t\t\n\t}", "@Override\n public void feedingMeat() {\n\n }", "@Override\n\tpublic void challenge9() {\n\n\t}" ]
[ "0.6108642", "0.6108642", "0.60772943", "0.6025509", "0.5991787", "0.59883916", "0.5972737", "0.5931567", "0.59153855", "0.58942467", "0.5843691", "0.5843691", "0.5843691", "0.5843691", "0.5843691", "0.5843691", "0.5843691", "0.58426815", "0.58239704", "0.5814164", "0.58037233", "0.5797029", "0.57871133", "0.5769789", "0.5744769", "0.5715295", "0.56868786", "0.56695074", "0.56675076", "0.5659065", "0.5651752", "0.56508076", "0.5643456", "0.5641755", "0.563664", "0.56244636", "0.5604501", "0.5603259", "0.5599664", "0.5590193", "0.55856466", "0.55819136", "0.5578658", "0.5576407", "0.55652726", "0.55602336", "0.55602336", "0.55575466", "0.5557234", "0.5553236", "0.55531937", "0.5548248", "0.5535582", "0.5533438", "0.5530801", "0.55172235", "0.5515421", "0.5515421", "0.5514444", "0.55130583", "0.55017674", "0.55017674", "0.54983795", "0.5493375", "0.54918844", "0.5491337", "0.54904413", "0.5485577", "0.5468837", "0.5461672", "0.54592276", "0.54395807", "0.54357344", "0.54345256", "0.5433319", "0.54330844", "0.5428054", "0.5426591", "0.54213643", "0.5417799", "0.5409935", "0.5408548", "0.5403701", "0.5394313", "0.5392447", "0.5386994", "0.5386307", "0.53798795", "0.53772986", "0.53762835", "0.53757656", "0.5371159", "0.53705716", "0.5369693", "0.5369235", "0.536793", "0.53668666", "0.5365202", "0.5360242", "0.5358157", "0.53573006" ]
0.0
-1
or import static org.axonframework.eventhandling.saga.SagaLifecycle.end;
@SagaEventHandler(associationProperty = "transferId") public void on(MoneyTransferCancelledEvent event) { end(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface EndSequenceEventListener {\n void sequenceEnd();\n}", "public void end() {\n\n }", "public abstract void onNext();", "protected void onEnd() {}", "@Override\n public void onSequenceFinish() {\n // Yay\n }", "@Override\n protected void end() {\n \n }", "public abstract void end();", "@Override\n public void onStopping(Flow flow) {}", "@Test\n public void testSingleEvent() throws Exception {\n String processId = \"test\";\n deploy(new ProcessDefinition(processId, Arrays.<AbstractElement>asList(\n new StartEvent(\"start\"),\n new SequenceFlow(\"f1\", \"start\", \"gw1\"),\n new InclusiveGateway(\"gw1\"),\n new SequenceFlow(\"f2\", \"gw1\", \"ev\"),\n new IntermediateCatchEvent(\"ev\", \"ev\"),\n new SequenceFlow(\"f3\", \"ev\", \"gw2\"),\n new InclusiveGateway(\"gw2\"),\n new SequenceFlow(\"f4\", \"gw2\", \"end\"),\n new EndEvent(\"end\")\n )));\n\n // ---\n\n String key = UUID.randomUUID().toString();\n getEngine().start(key, processId, null);\n\n // ---\n\n getEngine().resume(key, \"ev\", null);\n\n // ---\n\n assertActivations(key, processId,\n \"start\",\n \"f1\",\n \"gw1\",\n \"f2\",\n \"ev\",\n \"f3\",\n \"gw2\",\n \"f4\",\n \"end\");\n assertNoMoreActivations();\n }", "public interface OnSequencePlayFinished {\n void testFinished();\n}", "@Override\n\tpublic void eatOut() {\n\t\t\n\t}", "@Override\n public void onCompleted(Flow flow) {}", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n protected void end() {\n }", "@Override\n\tpublic void traceExit() {\n\n\t}", "@Override\n protected void end() {\n\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "protected void end() {\n }", "void onEvent(GuiceyLifecycleEvent event);", "@Override\n public void end() {\n }", "public void atender(){\n\n }", "@Test\n public void testDuoEvent() throws Exception {\n String processId = \"test\";\n deploy(new ProcessDefinition(processId, Arrays.<AbstractElement>asList(\n new StartEvent(\"start\"),\n new SequenceFlow(\"f1\", \"start\", \"gw1\"),\n new InclusiveGateway(\"gw1\"),\n\n new SequenceFlow(\"f2\", \"gw1\", \"ev1\"),\n new IntermediateCatchEvent(\"ev1\", \"ev1\"),\n new SequenceFlow(\"f3\", \"ev1\", \"gw2\"),\n\n new SequenceFlow(\"f4\", \"gw1\", \"ev2\"),\n new IntermediateCatchEvent(\"ev2\", \"ev2\"),\n new SequenceFlow(\"f5\", \"ev2\", \"gw2\"),\n\n new InclusiveGateway(\"gw2\"),\n new SequenceFlow(\"f6\", \"gw2\", \"end\"),\n new EndEvent(\"end\")\n )));\n\n // ---\n\n String key = UUID.randomUUID().toString();\n getEngine().start(key, processId, null);\n\n // ---\n\n assertActivations(key, processId,\n \"start\",\n \"f1\",\n \"gw1\",\n \"f2\",\n \"ev1\",\n \"f4\",\n \"ev2\");\n assertNoMoreActivations();\n\n // ---\n\n getEngine().resume(key, \"ev1\", null);\n\n // ---\n\n assertActivations(key, processId,\n \"f3\",\n \"gw2\");\n assertNoMoreActivations();\n\n // ---\n\n getEngine().resume(key, \"ev2\", null);\n\n // ---\n\n assertActivations(key, processId,\n \"f5\",\n \"gw2\",\n \"f6\",\n \"end\");\n assertNoMoreActivations();\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "protected void end() {\r\n }", "public void end();", "public static void main(String[] args) {\n var sagaOrchestrator = new SagaOrchestrator(newSaga(), serviceDiscovery());\n\n Saga.Result goodOrder = sagaOrchestrator.execute(\"good_order\");\n Saga.Result badOrder = sagaOrchestrator.execute(\"bad_order\");\n Saga.Result crashedOrder = sagaOrchestrator.execute(\"crashed_order\");\n\n System.out.printf(\"orders: goodOrder is %s, badOrder is %s,crashedOrder is %s%n\",\n goodOrder, badOrder, crashedOrder);\n }", "public SagaStore getSagaStore() {\n return sagaStore;\n }", "public void end() {\n/* 179 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "protected abstract void trace_end_run();", "@Override\n public void onStepStopping(FlowStep flowStep) {\n }", "void onExit(FilterContext ctx)throws SoaException;", "@Override\n public void exit(EventObject event)\n {\n shutdown();\n }", "protected void end() {\n \tlift.stop();\n }", "public void end() throws Exception;", "public void setSagaStore(SagaStore sagaStore) {\n this.sagaStore = sagaStore;\n }", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "@Override\n\tvoid endHandling() {\n\t}", "public interface LifeCycleHandler {\n\n\tvoid beginning() throws Exception;\n\n\tvoid ending() throws Exception;\n\n}", "public default void leave() {\n }", "protected void end() {\n \n \n }", "public interface EventPipeLine {\n /**\n * Adds new event to the pipeline (queue)\n * @param e GameEvent instance\n */\n public void add(GameEvent e);\n\n /**\n * Calls all event processors and removes them from the queue\n */\n public void exec();\n\n /**\n * Removes all events. (ignore the events)\n */\n public void clear();\n\n /**\n * First event from the queue\n * @return GameEvent instance or null if empty\n */\n public GameEvent getFirst();\n\n /**\n * This method can be usefull if you want to know which events are there in the queue.\n * @return all events as GameEvent[] array\n */\n public GameEvent[] getEvents();\n\n /**\n * Number of events in the queue\n */\n public int size();\n \n}", "public void begin() {}", "Event () {\n // Nothing to do here.\n }", "@Test (priority = 4)\n\t@Then(\"^End of Scenario$\")\n\tpublic void end_of_Scenario() throws Throwable {\n\t \n\t}", "protected void end() {\n\r\n\t}", "@Override\n\tpublic void end() {\n\t\t\n\t}", "public void visitEnd()\n\t{\n\t}", "IHandler next();", "@Override\n\tpublic void step() {\n\t}", "@Override\n\tpublic void step() {\n\t}", "@Override\n protected void end() {\n }", "public abstract void emit(EventsHandler handler);", "@Override\n\tpublic void end() {\n\n\t}", "@Override\n\tpublic void end() {\n\n\t}", "interface Step {\n void onStepResult(boolean isSuccess);\n\n\n @Subscribe(threadMode = ThreadMode.MAIN)\n void onStepTryEvent(TryToCompleteStep step);\n\n}", "public void handleStart()\n {\n }", "void onStarted();", "@Override\n public void act() {\n }" ]
[ "0.5574161", "0.5256697", "0.52168274", "0.51981664", "0.51850224", "0.51436174", "0.512694", "0.5074283", "0.5070747", "0.5042349", "0.5039693", "0.49764678", "0.49696952", "0.49696952", "0.49696952", "0.49696952", "0.49696952", "0.49696952", "0.49696952", "0.49696952", "0.49696952", "0.49696952", "0.49696952", "0.49696952", "0.49356788", "0.4925923", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49195307", "0.49147528", "0.49053314", "0.49050498", "0.49000385", "0.488236", "0.488236", "0.488236", "0.488236", "0.48797974", "0.4878352", "0.48768273", "0.4873257", "0.48645863", "0.48643258", "0.48565665", "0.48310286", "0.482987", "0.4815993", "0.48117584", "0.4810207", "0.4810207", "0.4810207", "0.4810207", "0.48098272", "0.47976863", "0.479362", "0.4783611", "0.47835618", "0.47778592", "0.4777756", "0.47697246", "0.47657806", "0.47612453", "0.47590595", "0.47525877", "0.47525877", "0.47499564", "0.4748197", "0.47470626", "0.47470626", "0.47404045", "0.47369343", "0.47326225", "0.47273925" ]
0.0
-1
Create a new ByteBufferPool object.
public BufferPool(String fileName, int numBuffers) throws IOException { BLOCK_SIZE = 4096; // create linked list of buffers, open file, create pointer tempArray this.pool = new LinkedList<Buffer>(); this.buffArr = new Buffer[numBuffers]; this.file = new RandomAccessFile(fileName, "rw"); this.tempArray = new byte[BLOCK_SIZE]; // initialize all the statistics to zero cacheHits = cacheMisses = diskReads = diskWrites = 0; Buffer newBuf; // initialize the appropriate number of buffers for (int i = 0; i < numBuffers; i++) { newBuf = new Buffer(tempArray, -1); pool.append(newBuf); buffArr[i] = newBuf; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static BufferPoolMXBean createBufferPoolMXBean(BufferPool paramBufferPool)\n/* */ {\n/* 227 */ new BufferPoolMXBean() {\n/* */ private volatile ObjectName objname;\n/* */ \n/* */ public ObjectName getObjectName() {\n/* 231 */ ObjectName localObjectName = this.objname;\n/* 232 */ if (localObjectName == null) {\n/* 233 */ synchronized (this) {\n/* 234 */ localObjectName = this.objname;\n/* 235 */ if (localObjectName == null) {\n/* 236 */ localObjectName = Util.newObjectName(\"java.nio:type=BufferPool,name=\" + this.val$pool\n/* 237 */ .getName());\n/* 238 */ this.objname = localObjectName;\n/* */ }\n/* */ }\n/* */ }\n/* 242 */ return localObjectName;\n/* */ }\n/* */ \n/* */ public String getName() {\n/* 246 */ return this.val$pool.getName();\n/* */ }\n/* */ \n/* */ public long getCount() {\n/* 250 */ return this.val$pool.getCount();\n/* */ }\n/* */ \n/* */ public long getTotalCapacity() {\n/* 254 */ return this.val$pool.getTotalCapacity();\n/* */ }\n/* */ \n/* */ public long getMemoryUsed() {\n/* 258 */ return this.val$pool.getMemoryUsed();\n/* */ }\n/* */ };\n/* */ }", "private ByteBuffer allocateFromPool(int length, boolean isFragmented) {\n return (isFragmented ? this.fragmentedBufferPool : this.unfragmentedBufferPool).get(length);\n}", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "private BlocksPool() {\n this(DEFAULT_BLOCK_SIZE_BYTES);\n }", "protected abstract void createPool();", "public BufferPool(int numPages) {\n // some code goes here\n this.pageNum = numPages;\n this.bufferedPages = new ConcurrentHashMap<PageId, Node>();\n currentTransactions = new ConcurrentHashMap<TransactionId, Long>();\n lockManager = new LockManager();\n }", "ByteBuffer allocate() {\n\t\tvar b = ByteBuffer.allocate(size).order(LITTLE_ENDIAN);\n\t\tb.putInt(ordinal());\n\t\treturn b;\n\t}", "public ObjectPool() {\n }", "static Pool newConstantPool() {\n return new ConstantPool();\n }", "public PooledConnection newInstance() {\n return new PooledConnection(pool);\n }", "ByteBuf allocate(ByteBufAllocator alloc);", "public PacketBuilder(int capacity) {\n\t\tbuffer = ByteBuffer.allocate(capacity);\n\t}", "abstract public Buffer createBuffer();", "public MemManager( int poolSize )\n {\n\n this.poolSize = poolSize;\n memoryPool = new byte[poolSize];\n // creates a twoWayLinkedList that will store HashMaps defining the\n // blocks\n // of free space within our pool\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( 0, poolSize );\n freeBlockList = new TwoWayLinkedList<HashMap<Integer, Integer>>();\n // Initially adds the entire memory\n freeBlockList.add( freeBlock );\n\n }", "public BufferPool(String fileName, int numBuffers, int bufferSize)\n throws IOException\n {\n BLOCK_SIZE = bufferSize;\n FILE_SIZE = 0;\n\n // create linked list of buffers, open file, create pointer tempArray\n this.pool = new LinkedList<Buffer>();\n this.buffArr = new Buffer[numBuffers];\n this.file = new RandomAccessFile(fileName, \"rw\");\n this.tempArray = new byte[BLOCK_SIZE];\n\n expandFile();\n\n // initialize all the statistics to zero\n cacheHits = cacheMisses = diskReads = diskWrites = 0;\n\n Buffer newBuf;\n // initialize the appropriate number of buffers\n for (int i = 0; i < numBuffers; i++)\n {\n newBuf = new Buffer(tempArray, -1);\n pool.append(newBuf);\n buffArr[i] = newBuf;\n }\n }", "private ConnectionPool() {\n connections = new LinkedBlockingQueue<>(DEFAULT_POOL_SIZE);\n this.init();\n }", "public DataBuffer createDataBuffer() {\n DataBuffer dataBuffer = null;\n\n int size = getBufferSize();\n switch (dataType) {\n case DataBuffer.TYPE_BYTE:\n dataBuffer = new DataBufferByte(size, numBanks);\n break;\n case DataBuffer.TYPE_USHORT:\n dataBuffer = new DataBufferUShort(size, numBanks);\n break;\n case DataBuffer.TYPE_SHORT:\n dataBuffer = new DataBufferShort(size, numBanks);\n break;\n case DataBuffer.TYPE_INT:\n dataBuffer = new DataBufferInt(size, numBanks);\n break;\n case DataBuffer.TYPE_FLOAT:\n dataBuffer = new DataBufferFloat(size, numBanks);\n break;\n case DataBuffer.TYPE_DOUBLE:\n dataBuffer = new DataBufferDouble(size, numBanks);\n break;\n }\n\n return dataBuffer;\n }", "Connection createConnection(ExecutorService pool);", "public MemoryPool(int offset, int length, boolean canGrow) {\n this.limit = length;\n this.canGrow = canGrow;\n\n freeSpace = new TreeSet<Block>();\n free(new Block(offset, limit-offset));\n }", "public abstract T create() throws PoolException;", "public IBuffer newBuffer();", "abstract void allocateBuffers();", "private BlocksPool(int blockSizeBytes) {\n this.blockSizeBytes = blockSizeBytes;\n this.newAllocBlocks = convertSizeToBlocks(NEW_ALLOC_MIN_SIZE_BYTES, 1);\n this.lowReservedBlocks = convertSizeToBlocks(LOW_RESERVED_SIZE_BYTES, 0);\n this.highReservedBlocks = convertSizeToBlocks(HIGH_RESERVED_SIZE_BYTES, this.lowReservedBlocks + 1);\n alloc(convertSizeToBlocks(PRE_ALLOC_SIZE_BYTES, 0));\n }", "public DefaultBitBuffer(ByteBuffer inputByteBuffer) {\n // TODO: I think we should use #limit() instead of #capacity()\n this(inputByteBuffer, ((long) (inputByteBuffer.capacity())) << 3, 0L);\n }", "public static ByteBuffer createByteBuffer(int bytes) {\n SimpleLogger.d(BufferUtils.class, \"Creating byte buffer with byte size: \" + bytes);\n return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder());\n }", "public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}", "public Map createBuffer() {\n // Get the available processors, processors==threads is probably best?\n Runtime runtime = Runtime.getRuntime();\n int nProcessors = runtime.availableProcessors();\n int nThreads = 1; // nProcessors/2;\n compute();\n return serviceArea;\n }", "public ListPool(int capacity) {\n pool = new ArrayBlockingQueue<>(capacity);\n }", "public EntityBuffer(int bufferCapacity) {\n\t\tbuffer = new DataPostbox<EntityContainer>(bufferCapacity);\n\t}", "static Pool newVariablePool() {\n return new VariablePool();\n }", "public PacketInputStream ()\n {\n _buffer = ByteBuffer.allocate(INITIAL_BUFFER_CAPACITY);\n }", "public static <T> LockFreeQueue<T> createLockFreeQueue() {\n \t\treturn new LockFreeQueue<T>();\n \t}", "public GraphPool() {\n\t\tmMetadataPool = new PoolNodeMetadata();\n\t\tmIdentifierPool = new PoolNodeIdentifier(mMetadataPool);\n\t\tmLinkPool = new PoolExpandedLink(mIdentifierPool, mMetadataPool);\n\t}", "public PacketBuilder() {\n\t\tthis(1024);\n\t}", "OMMPool getPool();", "public BufferManager(Configuration configuration)\n {\n logger = configuration.getLogger (\"jacorb.orb.buffermanager\");\n\n try\n {\n this.time = configuration.getAttributeAsInteger(\"jacorb.bufferManagerMaxFlush\", 0);\n this.maxManagedBufferSize = configuration.getAttributeAsInteger(\"jacorb.maxManagedBufSize\", 22);\n this.threshold = configuration.getAttributeAsInteger(\"jacorb.bufferManagerThreshold\", 20);\n }\n catch (ConfigurationException ex)\n {\n logger.error (\"Error configuring the BufferManager\", ex);\n throw new INTERNAL (\"Unable to configure the BufferManager\");\n }\n \n try\n {\n expansionPolicy = (BufferManagerExpansionPolicy)\n configuration.getAttributeAsObject (\"jacorb.buffermanager.expansionpolicy\",\n DefaultExpansionPolicy.class.getName ());\n if (expansionPolicy instanceof Configurable)\n {\n ((Configurable)expansionPolicy).configure (configuration);\n }\n }\n catch (ConfigurationException e)\n {\n this.expansionPolicy = null;\n }\n \n bufferPool = initBufferPool(configuration, maxManagedBufferSize);\n \n // Partly prefill the cache with some buffers.\n int sizes [] = new int [] {1023, 2047};\n \n for (int i = 0; i < sizes.length; i++)\n {\n for( int min = 0; min < 10; min++ )\n {\n int position = calcLog(sizes[i]) - MIN_CACHE ;\n storeBuffer(position, new byte[sizes[i]]);\n }\n }\n \n if ( time > 0)\n {\n if (reaper != null)\n {\n // this is the case when\n // the BufferManager is re-configured\n reaper.dispose();\n }\n \n // create new reaper\n reaper = new Reaper(time);\n reaper.setName (\"BufferManager MaxCache Reaper\");\n reaper.setDaemon (true);\n reaper.start();\n }\n }", "public SRWDatabasePool() {\n }", "public static ByteBuffer allocate( int capacity, BufferType type )\n {\n switch (type) {\n case ARRAY_BACKED:\n return ByteBuffer.allocate(capacity);\n\n case DIRECT:\n return ByteBuffer.allocateDirect(capacity);\n\n default:\n throw new AssertionError(\"unexpected enum type\");\n }\n }", "public ResourcePoolImpl() {\r\n this((ResourcePool) null);\r\n }", "public Pooled(T t, Pool<T> pool, LogTarget logTarget) {\n\t\t\tcontent = t;\n\t\t\tthis.pool = pool;\n\t\t\tthis.logTarget = logTarget;\n\t\t}", "public ConstantPoolReader() {\n }", "public BoneCP getPool() {\n return pool;\n }", "public AbstractConnPool createConnectionPool(HttpParams httpParams) {\n return new ConnPoolByRoute(this.connOperator, httpParams);\n }", "public DBPoolImpl()\n {\n }", "public ByteBuffer nioBuffer()\r\n/* 703: */ {\r\n/* 704:712 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 705:713 */ return super.nioBuffer();\r\n/* 706: */ }", "public ConstantPool() {\n super(ActionType.CONSTANT_POOL);\n }", "public byte[] allocBase64Buffer()\n/* */ {\n/* 175 */ _verifyAlloc(this._base64Buffer);\n/* 176 */ return this._base64Buffer = this._bufferRecycler.allocByteBuffer(3);\n/* */ }", "public TestBuffer() {\n }", "@NotNull\n protected ReusablePool<AbstractReadablePacket> getPool() {\n return requireNonNull(ClassUtils.unsafeCast(getPacketType().getPool()));\n }", "public ChunkBuffer allocateBuffer(int increment) {\n final int nextBufferIndex = currentBufferIndex + 1;\n\n Preconditions.assertTrue(nextBufferIndex < capacity, () ->\n \"next index: \" + nextBufferIndex + \" >= capacity: \" + capacity);\n\n currentBufferIndex = nextBufferIndex;\n\n if (currentBufferIndex < bufferList.size()) {\n return getBuffer(currentBufferIndex);\n } else {\n final ChunkBuffer newBuffer = ChunkBuffer.allocate(bufferSize, increment);\n bufferList.add(newBuffer);\n return newBuffer;\n }\n }", "abstract public Buffer createBufferFromData(byte[] data, int size);", "public BlockingObjectPool(int size) {\n synchronized (pool) {\n range(0, size)\n .forEach(i -> pool.add(new Object()));\n }\n }", "public ByteArrayCache() {\n try {\n imm = ImmortalMemory.instance();\n byteBuffers = (Queue) imm.newInstance(Queue.class);\n } catch (Exception e) {\n ZenProperties.logger.log(Logger.WARN, getClass(), \"<init>\", e);\n System.exit(-1);\n }\n }", "private static ByteBuffer createNativeByteBuffer(int length) {\n ByteBuffer bb = ByteBuffer.allocateDirect(length);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n return bb;\n }", "public PQueue() {\n this(0,null);\n }", "BOp createBOp();", "public ObjectPool(PoolObjectFactory factory, String poolName) {\n setObjectFactory(factory);\n setName(poolName);\n }", "public MemoryByteArrayOutputStream() {\n\t\tthis(4096, 65536);\n\t}", "public static Buffer createBuffer(byte[] data)\n throws BadParameterException, NoSuccessException {\n\treturn createBuffer(null, data);\n }", "public PoolBoneCpManager() {\n pool = null;\n }", "protected abstract Buffer doCreateBuffer(int size)\n throws BadParameterException, NoSuccessException;", "public ProdCons(int nbBuffer) {\n\t\tsetSize(nbBuffer);\n\t\tbuffer = new Message[nbBuffer];\n\t\tnotFull = new Semaphore(nbBuffer);\n\t\tnotEmpty = new Semaphore(0);\n\t\tmutex = new Semaphore(1);\n\t}", "private BufferUtil() {\n\n }", "ObjectPool() {\n deadTime = DEFAULT_DEADTIME;\n lock = new Hashtable<T, Long>();\n unlock = new Hashtable<T, Long>();\n }", "public static BoneCP getPool() throws Exception\n {\n if (_pool == null)\n {\n throw new Exception(\"The connection pool was not initialized!\");\n }\n\n return _pool;\n }", "public ByteBuffer nioBuffer(int index, int length)\r\n/* 709: */ {\r\n/* 710:718 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 711:719 */ return super.nioBuffer(index, length);\r\n/* 712: */ }", "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 Buffer(int capacity) {\r\n\t\t\r\n\t\tthis.data = new int[capacity];\r\n\t\tthis.capacity = capacity;\r\n\t\tthis.size = 0;\r\n\t\tthis.cursor = 0;\r\n\t\t\r\n\t\tinitialize();\r\n\t}", "public static PoolInfoClient create() {\n return new PoolInfoClient();\n }", "public static long createCommandPool(VkDevice device, int queueFamilyIndex, int flags)\n throws VulkanException {\n VkCommandPoolCreateInfo createInfo =\n VkCommandPoolCreateInfo.calloc()\n .sType(VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO)\n .pNext(NULL)\n .flags(flags)\n .queueFamilyIndex(queueFamilyIndex);\n\n LongBuffer pCommandPool = memAllocLong(1);\n int err = vkCreateCommandPool(device, createInfo, null, pCommandPool);\n VulkanResult.validate(err, \"Failed to create command pool!\");\n\n long out = pCommandPool.get(0);\n\n memFree(pCommandPool);\n createInfo.free();\n\n return out;\n }", "public static Buffer createBuffer() throws BadParameterException,\n NoSuccessException {\n\treturn createBuffer((String)null);\n }", "public ForkJoinPoolMgr() {\n }", "public <T> ArrayBlockingQueue<T> create(int size){\n return new ArrayBlockingQueue<T>(size);\n }", "public RtpPacket(int capacity, boolean allocateDirect) { \t\n buffer = allocateDirect ? \n ByteBuffer.allocateDirect(capacity) :\n ByteBuffer.allocate(capacity);\n }", "AllocAlternative createAllocAlternative();", "private JedisPool getPool() {\n if (pool == null) {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMinIdle(poolMinIdle);\n config.setMaxIdle(poolMaxIdle);\n config.setMaxTotal(poolMaxTotal);\n pool = new JedisPool(config, host, port, (int) timeout);\n logger.debug(\"Creando jedisPool@ \" + host + \":\" + port + \". MinIdle/MaxIdle/MaxTotal: \" + poolMinIdle + \"/\" + poolMaxIdle + \"/\" + poolMaxTotal + \". Timeout: \" + timeout);\n }\n return pool;\n }", "public static ByteBuffer allocateAndPut(final byte[] bytes) {\n Objects.requireNonNull(bytes);\n return (ByteBuffer.allocateDirect(bytes.length).put(bytes));\n }", "public CoalescingBufferQueue(Channel channel)\r\n/* 15: */ {\r\n/* 16:40 */ this(channel, 4);\r\n/* 17: */ }", "public TextBuffer constructTextBuffer()\n/* */ {\n/* 137 */ return new TextBuffer(this._bufferRecycler);\n/* */ }", "private DefaultBitBuffer(ByteBuffer inputByteBuffer, long bitBufBitSize,\n long bitPos) {\n this.byteBuffer = inputByteBuffer;\n this.bitBufBitSize = bitBufBitSize;\n this.bitPos = bitPos;\n }", "public Poolable get() throws Exception\n {\n // To make this class backwards compatible, it has to auto initialize if necessary\n if( !m_initialized )\n {\n initialize();\n }\n\n if( null == m_pool && null != m_controller )\n {\n final int increase = m_controller.grow();\n if( increase > 0 )\n {\n grow( increase );\n }\n }\n\n if( 0 > m_count )\n {\n m_count = -1;\n return (Poolable)m_factory.newInstance();\n }\n else if( 0 == m_count )\n {\n m_count--;\n return m_pool[ 0 ];\n }\n\n final Poolable poolable = m_pool[ m_count ];\n m_pool[ m_count ] = null;\n m_count--;\n return poolable;\n }", "public BufferedStreamSourceConduit(final StreamSourceConduit next, final Pooled<ByteBuffer> pooledBuffer) {\n super(next);\n this.pooledBuffer = pooledBuffer;\n }", "public Buffer(String label){\n channelLabel = label;\n }", "public static Buffer createBuffer(int size) throws BadParameterException, \n NoSuccessException {\n\treturn createBuffer(null, size);\n }", "public DefaultBitBuffer(String fileName) {\n\n File file = new File(fileName);\n\n // Open the file and then get a org.codehaus.preon.channel.channel from the stream\n FileInputStream fis;\n\n try {\n fis = new FileInputStream(file);\n\n FileChannel fc = fis.getChannel();\n\n // Get the file's size and then map it into memory\n int fileSize = (int) fc.size();\n ByteBuffer inputByteBuffer = fc.map(FileChannel.MapMode.READ_ONLY,\n 0, fileSize);\n\n // Close the org.codehaus.preon.channel.channel and the stream\n fc.close();\n\n this.byteBuffer = inputByteBuffer;\n bitBufBitSize = ((long) (inputByteBuffer.capacity())) << 3;\n bitPos = 0;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public InMemoryQueueService(){\n this.ringBufferQueue = new QueueMessage[10000];\n }", "public static ConnectionPool getInstance() {\n if (!created.get()) {\n try {\n createLock.lock();\n if (instance == null) {\n instance = new ConnectionPool();\n created.set(true);\n }\n } finally {\n createLock.unlock();\n }\n }\n return instance;\n }", "public ResourceHolder<ByteBuffer> getMergeBuffer()\n {\n final ByteBuffer buffer = mergeBuffers.pop();\n return new ResourceHolder<ByteBuffer>()\n {\n @Override\n public ByteBuffer get()\n {\n return buffer;\n }\n\n @Override\n public void close()\n {\n mergeBuffers.add(buffer);\n }\n };\n }", "protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor)\r\n/* 98: */ {\r\n/* 99:128 */ this(maxCapacityPerThread, maxSharedCapacityFactor, RATIO, MAX_DELAYED_QUEUES_PER_THREAD);\r\n/* 100: */ }", "abstract public TransfilePackets getInstance(ByteBuffer bbr)\n throws UncompletedPackageException;", "protected AbstractChannel.AbstractUnsafe newUnsafe() {\n/* 713 */ return new EmbeddedUnsafe();\n/* */ }", "public AssemblerContext(ConstantPool pool)\n {\n assert pool != null;\n m_pool = pool;\n }", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "protected Recycler(int maxCapacityPerThread)\r\n/* 93: */ {\r\n/* 94:124 */ this(maxCapacityPerThread, MAX_SHARED_CAPACITY_FACTOR);\r\n/* 95: */ }", "public Pixmap(ByteBuffer buffer, int width, int height){\n if(!buffer.isDirect()) throw new ArcRuntimeException(\"Pixmaps may only use direct/native ByteBuffers!\");\n\n this.width = width;\n this.height = height;\n this.pixels = buffer;\n this.handle = -1;\n\n buffer.position(0).limit(buffer.capacity());\n }", "public static SimplePool simplePool(int poolSize) {\n return new SimplePool(poolSize);\n }", "public interface PoolFactory<T> {\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @return the t\n\t */\n\tpublic T create();\n}", "public Producer(Buffer buff) {\n buffer = buff;\n }", "private ByteBuffer internalNioBuffer()\r\n/* 532: */ {\r\n/* 533:545 */ ByteBuffer tmpNioBuf = this.tmpNioBuf;\r\n/* 534:546 */ if (tmpNioBuf == null) {\r\n/* 535:547 */ this.tmpNioBuf = (tmpNioBuf = ByteBuffer.wrap(this.array));\r\n/* 536: */ }\r\n/* 537:549 */ return tmpNioBuf;\r\n/* 538: */ }", "public CoalescingBufferQueue(Channel channel, int initSize)\r\n/* 20: */ {\r\n/* 21:44 */ this(channel, initSize, false);\r\n/* 22: */ }" ]
[ "0.68996274", "0.6737928", "0.6663652", "0.6370637", "0.62153494", "0.61083156", "0.60577905", "0.60232425", "0.6014765", "0.59880316", "0.5887956", "0.58843696", "0.57974106", "0.57812524", "0.5729216", "0.56825876", "0.565182", "0.5610171", "0.5595793", "0.5581415", "0.5571662", "0.55661446", "0.5540445", "0.5480562", "0.54785055", "0.54467404", "0.5439553", "0.54346436", "0.54014134", "0.5395655", "0.5384451", "0.53839886", "0.53751534", "0.5373921", "0.5367032", "0.5361551", "0.5330557", "0.5321216", "0.52978563", "0.52244496", "0.5222591", "0.52210236", "0.5214352", "0.52132696", "0.5207968", "0.5203953", "0.51948655", "0.5183172", "0.5155574", "0.51416385", "0.51377255", "0.5125093", "0.51218534", "0.5100424", "0.5096097", "0.508544", "0.50736856", "0.5047476", "0.5046402", "0.50440025", "0.50424993", "0.5040243", "0.5038849", "0.5037423", "0.5028076", "0.5012416", "0.5005115", "0.49998862", "0.49990574", "0.49817222", "0.49584547", "0.49456236", "0.4943084", "0.49415264", "0.4940247", "0.49322462", "0.4929275", "0.49243844", "0.49237075", "0.49084368", "0.48951334", "0.4885339", "0.488425", "0.4878728", "0.48717567", "0.48700854", "0.48625225", "0.4859541", "0.48531127", "0.4848567", "0.48473698", "0.48439088", "0.48431212", "0.4842288", "0.48319882", "0.48163024", "0.4811749", "0.48061067", "0.4804418", "0.48031676" ]
0.60604066
6
Create a new ByteBufferPool object.
public BufferPool(String fileName, int numBuffers, int bufferSize) throws IOException { BLOCK_SIZE = bufferSize; FILE_SIZE = 0; // create linked list of buffers, open file, create pointer tempArray this.pool = new LinkedList<Buffer>(); this.buffArr = new Buffer[numBuffers]; this.file = new RandomAccessFile(fileName, "rw"); this.tempArray = new byte[BLOCK_SIZE]; expandFile(); // initialize all the statistics to zero cacheHits = cacheMisses = diskReads = diskWrites = 0; Buffer newBuf; // initialize the appropriate number of buffers for (int i = 0; i < numBuffers; i++) { newBuf = new Buffer(tempArray, -1); pool.append(newBuf); buffArr[i] = newBuf; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static BufferPoolMXBean createBufferPoolMXBean(BufferPool paramBufferPool)\n/* */ {\n/* 227 */ new BufferPoolMXBean() {\n/* */ private volatile ObjectName objname;\n/* */ \n/* */ public ObjectName getObjectName() {\n/* 231 */ ObjectName localObjectName = this.objname;\n/* 232 */ if (localObjectName == null) {\n/* 233 */ synchronized (this) {\n/* 234 */ localObjectName = this.objname;\n/* 235 */ if (localObjectName == null) {\n/* 236 */ localObjectName = Util.newObjectName(\"java.nio:type=BufferPool,name=\" + this.val$pool\n/* 237 */ .getName());\n/* 238 */ this.objname = localObjectName;\n/* */ }\n/* */ }\n/* */ }\n/* 242 */ return localObjectName;\n/* */ }\n/* */ \n/* */ public String getName() {\n/* 246 */ return this.val$pool.getName();\n/* */ }\n/* */ \n/* */ public long getCount() {\n/* 250 */ return this.val$pool.getCount();\n/* */ }\n/* */ \n/* */ public long getTotalCapacity() {\n/* 254 */ return this.val$pool.getTotalCapacity();\n/* */ }\n/* */ \n/* */ public long getMemoryUsed() {\n/* 258 */ return this.val$pool.getMemoryUsed();\n/* */ }\n/* */ };\n/* */ }", "private ByteBuffer allocateFromPool(int length, boolean isFragmented) {\n return (isFragmented ? this.fragmentedBufferPool : this.unfragmentedBufferPool).get(length);\n}", "public BufferPool(int numPages) {\n // some code goes here\n this.numPages = numPages;\n this.bufferPool = new PageBufferPool(numPages);\n }", "private BlocksPool() {\n this(DEFAULT_BLOCK_SIZE_BYTES);\n }", "protected abstract void createPool();", "public BufferPool(int numPages) {\n // some code goes here\n this.pageNum = numPages;\n this.bufferedPages = new ConcurrentHashMap<PageId, Node>();\n currentTransactions = new ConcurrentHashMap<TransactionId, Long>();\n lockManager = new LockManager();\n }", "ByteBuffer allocate() {\n\t\tvar b = ByteBuffer.allocate(size).order(LITTLE_ENDIAN);\n\t\tb.putInt(ordinal());\n\t\treturn b;\n\t}", "public BufferPool(String fileName, int numBuffers)\n throws IOException\n {\n BLOCK_SIZE = 4096;\n // create linked list of buffers, open file, create pointer tempArray\n this.pool = new LinkedList<Buffer>();\n this.buffArr = new Buffer[numBuffers];\n this.file = new RandomAccessFile(fileName, \"rw\");\n this.tempArray = new byte[BLOCK_SIZE];\n\n // initialize all the statistics to zero\n cacheHits = cacheMisses = diskReads = diskWrites = 0;\n\n Buffer newBuf;\n // initialize the appropriate number of buffers\n for (int i = 0; i < numBuffers; i++)\n {\n newBuf = new Buffer(tempArray, -1);\n pool.append(newBuf);\n buffArr[i] = newBuf;\n }\n }", "public ObjectPool() {\n }", "static Pool newConstantPool() {\n return new ConstantPool();\n }", "public PooledConnection newInstance() {\n return new PooledConnection(pool);\n }", "ByteBuf allocate(ByteBufAllocator alloc);", "public PacketBuilder(int capacity) {\n\t\tbuffer = ByteBuffer.allocate(capacity);\n\t}", "abstract public Buffer createBuffer();", "public MemManager( int poolSize )\n {\n\n this.poolSize = poolSize;\n memoryPool = new byte[poolSize];\n // creates a twoWayLinkedList that will store HashMaps defining the\n // blocks\n // of free space within our pool\n freeBlock = new HashMap<Integer, Integer>( 1 );\n freeBlock.put( 0, poolSize );\n freeBlockList = new TwoWayLinkedList<HashMap<Integer, Integer>>();\n // Initially adds the entire memory\n freeBlockList.add( freeBlock );\n\n }", "private ConnectionPool() {\n connections = new LinkedBlockingQueue<>(DEFAULT_POOL_SIZE);\n this.init();\n }", "public DataBuffer createDataBuffer() {\n DataBuffer dataBuffer = null;\n\n int size = getBufferSize();\n switch (dataType) {\n case DataBuffer.TYPE_BYTE:\n dataBuffer = new DataBufferByte(size, numBanks);\n break;\n case DataBuffer.TYPE_USHORT:\n dataBuffer = new DataBufferUShort(size, numBanks);\n break;\n case DataBuffer.TYPE_SHORT:\n dataBuffer = new DataBufferShort(size, numBanks);\n break;\n case DataBuffer.TYPE_INT:\n dataBuffer = new DataBufferInt(size, numBanks);\n break;\n case DataBuffer.TYPE_FLOAT:\n dataBuffer = new DataBufferFloat(size, numBanks);\n break;\n case DataBuffer.TYPE_DOUBLE:\n dataBuffer = new DataBufferDouble(size, numBanks);\n break;\n }\n\n return dataBuffer;\n }", "Connection createConnection(ExecutorService pool);", "public MemoryPool(int offset, int length, boolean canGrow) {\n this.limit = length;\n this.canGrow = canGrow;\n\n freeSpace = new TreeSet<Block>();\n free(new Block(offset, limit-offset));\n }", "public abstract T create() throws PoolException;", "public IBuffer newBuffer();", "abstract void allocateBuffers();", "private BlocksPool(int blockSizeBytes) {\n this.blockSizeBytes = blockSizeBytes;\n this.newAllocBlocks = convertSizeToBlocks(NEW_ALLOC_MIN_SIZE_BYTES, 1);\n this.lowReservedBlocks = convertSizeToBlocks(LOW_RESERVED_SIZE_BYTES, 0);\n this.highReservedBlocks = convertSizeToBlocks(HIGH_RESERVED_SIZE_BYTES, this.lowReservedBlocks + 1);\n alloc(convertSizeToBlocks(PRE_ALLOC_SIZE_BYTES, 0));\n }", "public DefaultBitBuffer(ByteBuffer inputByteBuffer) {\n // TODO: I think we should use #limit() instead of #capacity()\n this(inputByteBuffer, ((long) (inputByteBuffer.capacity())) << 3, 0L);\n }", "public static ByteBuffer createByteBuffer(int bytes) {\n SimpleLogger.d(BufferUtils.class, \"Creating byte buffer with byte size: \" + bytes);\n return ByteBuffer.allocateDirect(bytes).order(ByteOrder.nativeOrder());\n }", "public Packet createPacket() {\n\t\treturn new Packet((ByteBuffer) buffer.flip());\n\t}", "public Map createBuffer() {\n // Get the available processors, processors==threads is probably best?\n Runtime runtime = Runtime.getRuntime();\n int nProcessors = runtime.availableProcessors();\n int nThreads = 1; // nProcessors/2;\n compute();\n return serviceArea;\n }", "public ListPool(int capacity) {\n pool = new ArrayBlockingQueue<>(capacity);\n }", "public EntityBuffer(int bufferCapacity) {\n\t\tbuffer = new DataPostbox<EntityContainer>(bufferCapacity);\n\t}", "static Pool newVariablePool() {\n return new VariablePool();\n }", "public PacketInputStream ()\n {\n _buffer = ByteBuffer.allocate(INITIAL_BUFFER_CAPACITY);\n }", "public static <T> LockFreeQueue<T> createLockFreeQueue() {\n \t\treturn new LockFreeQueue<T>();\n \t}", "public PacketBuilder() {\n\t\tthis(1024);\n\t}", "public GraphPool() {\n\t\tmMetadataPool = new PoolNodeMetadata();\n\t\tmIdentifierPool = new PoolNodeIdentifier(mMetadataPool);\n\t\tmLinkPool = new PoolExpandedLink(mIdentifierPool, mMetadataPool);\n\t}", "OMMPool getPool();", "public BufferManager(Configuration configuration)\n {\n logger = configuration.getLogger (\"jacorb.orb.buffermanager\");\n\n try\n {\n this.time = configuration.getAttributeAsInteger(\"jacorb.bufferManagerMaxFlush\", 0);\n this.maxManagedBufferSize = configuration.getAttributeAsInteger(\"jacorb.maxManagedBufSize\", 22);\n this.threshold = configuration.getAttributeAsInteger(\"jacorb.bufferManagerThreshold\", 20);\n }\n catch (ConfigurationException ex)\n {\n logger.error (\"Error configuring the BufferManager\", ex);\n throw new INTERNAL (\"Unable to configure the BufferManager\");\n }\n \n try\n {\n expansionPolicy = (BufferManagerExpansionPolicy)\n configuration.getAttributeAsObject (\"jacorb.buffermanager.expansionpolicy\",\n DefaultExpansionPolicy.class.getName ());\n if (expansionPolicy instanceof Configurable)\n {\n ((Configurable)expansionPolicy).configure (configuration);\n }\n }\n catch (ConfigurationException e)\n {\n this.expansionPolicy = null;\n }\n \n bufferPool = initBufferPool(configuration, maxManagedBufferSize);\n \n // Partly prefill the cache with some buffers.\n int sizes [] = new int [] {1023, 2047};\n \n for (int i = 0; i < sizes.length; i++)\n {\n for( int min = 0; min < 10; min++ )\n {\n int position = calcLog(sizes[i]) - MIN_CACHE ;\n storeBuffer(position, new byte[sizes[i]]);\n }\n }\n \n if ( time > 0)\n {\n if (reaper != null)\n {\n // this is the case when\n // the BufferManager is re-configured\n reaper.dispose();\n }\n \n // create new reaper\n reaper = new Reaper(time);\n reaper.setName (\"BufferManager MaxCache Reaper\");\n reaper.setDaemon (true);\n reaper.start();\n }\n }", "public SRWDatabasePool() {\n }", "public static ByteBuffer allocate( int capacity, BufferType type )\n {\n switch (type) {\n case ARRAY_BACKED:\n return ByteBuffer.allocate(capacity);\n\n case DIRECT:\n return ByteBuffer.allocateDirect(capacity);\n\n default:\n throw new AssertionError(\"unexpected enum type\");\n }\n }", "public ResourcePoolImpl() {\r\n this((ResourcePool) null);\r\n }", "public Pooled(T t, Pool<T> pool, LogTarget logTarget) {\n\t\t\tcontent = t;\n\t\t\tthis.pool = pool;\n\t\t\tthis.logTarget = logTarget;\n\t\t}", "public ConstantPoolReader() {\n }", "public BoneCP getPool() {\n return pool;\n }", "public DBPoolImpl()\n {\n }", "public AbstractConnPool createConnectionPool(HttpParams httpParams) {\n return new ConnPoolByRoute(this.connOperator, httpParams);\n }", "public ByteBuffer nioBuffer()\r\n/* 703: */ {\r\n/* 704:712 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 705:713 */ return super.nioBuffer();\r\n/* 706: */ }", "public ConstantPool() {\n super(ActionType.CONSTANT_POOL);\n }", "public byte[] allocBase64Buffer()\n/* */ {\n/* 175 */ _verifyAlloc(this._base64Buffer);\n/* 176 */ return this._base64Buffer = this._bufferRecycler.allocByteBuffer(3);\n/* */ }", "public TestBuffer() {\n }", "@NotNull\n protected ReusablePool<AbstractReadablePacket> getPool() {\n return requireNonNull(ClassUtils.unsafeCast(getPacketType().getPool()));\n }", "public ChunkBuffer allocateBuffer(int increment) {\n final int nextBufferIndex = currentBufferIndex + 1;\n\n Preconditions.assertTrue(nextBufferIndex < capacity, () ->\n \"next index: \" + nextBufferIndex + \" >= capacity: \" + capacity);\n\n currentBufferIndex = nextBufferIndex;\n\n if (currentBufferIndex < bufferList.size()) {\n return getBuffer(currentBufferIndex);\n } else {\n final ChunkBuffer newBuffer = ChunkBuffer.allocate(bufferSize, increment);\n bufferList.add(newBuffer);\n return newBuffer;\n }\n }", "abstract public Buffer createBufferFromData(byte[] data, int size);", "public BlockingObjectPool(int size) {\n synchronized (pool) {\n range(0, size)\n .forEach(i -> pool.add(new Object()));\n }\n }", "public ByteArrayCache() {\n try {\n imm = ImmortalMemory.instance();\n byteBuffers = (Queue) imm.newInstance(Queue.class);\n } catch (Exception e) {\n ZenProperties.logger.log(Logger.WARN, getClass(), \"<init>\", e);\n System.exit(-1);\n }\n }", "private static ByteBuffer createNativeByteBuffer(int length) {\n ByteBuffer bb = ByteBuffer.allocateDirect(length);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n return bb;\n }", "public PQueue() {\n this(0,null);\n }", "BOp createBOp();", "public ObjectPool(PoolObjectFactory factory, String poolName) {\n setObjectFactory(factory);\n setName(poolName);\n }", "public MemoryByteArrayOutputStream() {\n\t\tthis(4096, 65536);\n\t}", "public static Buffer createBuffer(byte[] data)\n throws BadParameterException, NoSuccessException {\n\treturn createBuffer(null, data);\n }", "protected abstract Buffer doCreateBuffer(int size)\n throws BadParameterException, NoSuccessException;", "public PoolBoneCpManager() {\n pool = null;\n }", "public ProdCons(int nbBuffer) {\n\t\tsetSize(nbBuffer);\n\t\tbuffer = new Message[nbBuffer];\n\t\tnotFull = new Semaphore(nbBuffer);\n\t\tnotEmpty = new Semaphore(0);\n\t\tmutex = new Semaphore(1);\n\t}", "private BufferUtil() {\n\n }", "ObjectPool() {\n deadTime = DEFAULT_DEADTIME;\n lock = new Hashtable<T, Long>();\n unlock = new Hashtable<T, Long>();\n }", "public static BoneCP getPool() throws Exception\n {\n if (_pool == null)\n {\n throw new Exception(\"The connection pool was not initialized!\");\n }\n\n return _pool;\n }", "public ByteBuffer nioBuffer(int index, int length)\r\n/* 709: */ {\r\n/* 710:718 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 711:719 */ return super.nioBuffer(index, length);\r\n/* 712: */ }", "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 Buffer(int capacity) {\r\n\t\t\r\n\t\tthis.data = new int[capacity];\r\n\t\tthis.capacity = capacity;\r\n\t\tthis.size = 0;\r\n\t\tthis.cursor = 0;\r\n\t\t\r\n\t\tinitialize();\r\n\t}", "public static PoolInfoClient create() {\n return new PoolInfoClient();\n }", "public static long createCommandPool(VkDevice device, int queueFamilyIndex, int flags)\n throws VulkanException {\n VkCommandPoolCreateInfo createInfo =\n VkCommandPoolCreateInfo.calloc()\n .sType(VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO)\n .pNext(NULL)\n .flags(flags)\n .queueFamilyIndex(queueFamilyIndex);\n\n LongBuffer pCommandPool = memAllocLong(1);\n int err = vkCreateCommandPool(device, createInfo, null, pCommandPool);\n VulkanResult.validate(err, \"Failed to create command pool!\");\n\n long out = pCommandPool.get(0);\n\n memFree(pCommandPool);\n createInfo.free();\n\n return out;\n }", "public static Buffer createBuffer() throws BadParameterException,\n NoSuccessException {\n\treturn createBuffer((String)null);\n }", "public ForkJoinPoolMgr() {\n }", "public RtpPacket(int capacity, boolean allocateDirect) { \t\n buffer = allocateDirect ? \n ByteBuffer.allocateDirect(capacity) :\n ByteBuffer.allocate(capacity);\n }", "public <T> ArrayBlockingQueue<T> create(int size){\n return new ArrayBlockingQueue<T>(size);\n }", "AllocAlternative createAllocAlternative();", "public static ByteBuffer allocateAndPut(final byte[] bytes) {\n Objects.requireNonNull(bytes);\n return (ByteBuffer.allocateDirect(bytes.length).put(bytes));\n }", "private JedisPool getPool() {\n if (pool == null) {\n JedisPoolConfig config = new JedisPoolConfig();\n config.setMinIdle(poolMinIdle);\n config.setMaxIdle(poolMaxIdle);\n config.setMaxTotal(poolMaxTotal);\n pool = new JedisPool(config, host, port, (int) timeout);\n logger.debug(\"Creando jedisPool@ \" + host + \":\" + port + \". MinIdle/MaxIdle/MaxTotal: \" + poolMinIdle + \"/\" + poolMaxIdle + \"/\" + poolMaxTotal + \". Timeout: \" + timeout);\n }\n return pool;\n }", "public TextBuffer constructTextBuffer()\n/* */ {\n/* 137 */ return new TextBuffer(this._bufferRecycler);\n/* */ }", "public CoalescingBufferQueue(Channel channel)\r\n/* 15: */ {\r\n/* 16:40 */ this(channel, 4);\r\n/* 17: */ }", "private DefaultBitBuffer(ByteBuffer inputByteBuffer, long bitBufBitSize,\n long bitPos) {\n this.byteBuffer = inputByteBuffer;\n this.bitBufBitSize = bitBufBitSize;\n this.bitPos = bitPos;\n }", "public Poolable get() throws Exception\n {\n // To make this class backwards compatible, it has to auto initialize if necessary\n if( !m_initialized )\n {\n initialize();\n }\n\n if( null == m_pool && null != m_controller )\n {\n final int increase = m_controller.grow();\n if( increase > 0 )\n {\n grow( increase );\n }\n }\n\n if( 0 > m_count )\n {\n m_count = -1;\n return (Poolable)m_factory.newInstance();\n }\n else if( 0 == m_count )\n {\n m_count--;\n return m_pool[ 0 ];\n }\n\n final Poolable poolable = m_pool[ m_count ];\n m_pool[ m_count ] = null;\n m_count--;\n return poolable;\n }", "public BufferedStreamSourceConduit(final StreamSourceConduit next, final Pooled<ByteBuffer> pooledBuffer) {\n super(next);\n this.pooledBuffer = pooledBuffer;\n }", "public Buffer(String label){\n channelLabel = label;\n }", "public static Buffer createBuffer(int size) throws BadParameterException, \n NoSuccessException {\n\treturn createBuffer(null, size);\n }", "public DefaultBitBuffer(String fileName) {\n\n File file = new File(fileName);\n\n // Open the file and then get a org.codehaus.preon.channel.channel from the stream\n FileInputStream fis;\n\n try {\n fis = new FileInputStream(file);\n\n FileChannel fc = fis.getChannel();\n\n // Get the file's size and then map it into memory\n int fileSize = (int) fc.size();\n ByteBuffer inputByteBuffer = fc.map(FileChannel.MapMode.READ_ONLY,\n 0, fileSize);\n\n // Close the org.codehaus.preon.channel.channel and the stream\n fc.close();\n\n this.byteBuffer = inputByteBuffer;\n bitBufBitSize = ((long) (inputByteBuffer.capacity())) << 3;\n bitPos = 0;\n\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }", "public InMemoryQueueService(){\n this.ringBufferQueue = new QueueMessage[10000];\n }", "public ResourceHolder<ByteBuffer> getMergeBuffer()\n {\n final ByteBuffer buffer = mergeBuffers.pop();\n return new ResourceHolder<ByteBuffer>()\n {\n @Override\n public ByteBuffer get()\n {\n return buffer;\n }\n\n @Override\n public void close()\n {\n mergeBuffers.add(buffer);\n }\n };\n }", "public static ConnectionPool getInstance() {\n if (!created.get()) {\n try {\n createLock.lock();\n if (instance == null) {\n instance = new ConnectionPool();\n created.set(true);\n }\n } finally {\n createLock.unlock();\n }\n }\n return instance;\n }", "protected Recycler(int maxCapacityPerThread, int maxSharedCapacityFactor)\r\n/* 98: */ {\r\n/* 99:128 */ this(maxCapacityPerThread, maxSharedCapacityFactor, RATIO, MAX_DELAYED_QUEUES_PER_THREAD);\r\n/* 100: */ }", "abstract public TransfilePackets getInstance(ByteBuffer bbr)\n throws UncompletedPackageException;", "protected AbstractChannel.AbstractUnsafe newUnsafe() {\n/* 713 */ return new EmbeddedUnsafe();\n/* */ }", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "public AssemblerContext(ConstantPool pool)\n {\n assert pool != null;\n m_pool = pool;\n }", "protected Recycler(int maxCapacityPerThread)\r\n/* 93: */ {\r\n/* 94:124 */ this(maxCapacityPerThread, MAX_SHARED_CAPACITY_FACTOR);\r\n/* 95: */ }", "public Pixmap(ByteBuffer buffer, int width, int height){\n if(!buffer.isDirect()) throw new ArcRuntimeException(\"Pixmaps may only use direct/native ByteBuffers!\");\n\n this.width = width;\n this.height = height;\n this.pixels = buffer;\n this.handle = -1;\n\n buffer.position(0).limit(buffer.capacity());\n }", "public static SimplePool simplePool(int poolSize) {\n return new SimplePool(poolSize);\n }", "public interface PoolFactory<T> {\n\t\n\t/**\n\t * Creates the.\n\t *\n\t * @return the t\n\t */\n\tpublic T create();\n}", "public Producer(Buffer buff) {\n buffer = buff;\n }", "private ByteBuffer internalNioBuffer()\r\n/* 532: */ {\r\n/* 533:545 */ ByteBuffer tmpNioBuf = this.tmpNioBuf;\r\n/* 534:546 */ if (tmpNioBuf == null) {\r\n/* 535:547 */ this.tmpNioBuf = (tmpNioBuf = ByteBuffer.wrap(this.array));\r\n/* 536: */ }\r\n/* 537:549 */ return tmpNioBuf;\r\n/* 538: */ }", "public CoalescingBufferQueue(Channel channel, int initSize)\r\n/* 20: */ {\r\n/* 21:44 */ this(channel, initSize, false);\r\n/* 22: */ }" ]
[ "0.68996334", "0.67397183", "0.66632", "0.6368797", "0.6213598", "0.6107461", "0.6061071", "0.6059514", "0.60218304", "0.6012781", "0.59860915", "0.58899546", "0.58853245", "0.5799575", "0.5780898", "0.56811345", "0.56534123", "0.56096447", "0.55947113", "0.55802464", "0.557387", "0.5569209", "0.55396706", "0.54814184", "0.5481396", "0.54480857", "0.54400414", "0.5433179", "0.540224", "0.5393539", "0.5386357", "0.5384519", "0.53741467", "0.53728616", "0.5365837", "0.536123", "0.53289306", "0.5323795", "0.5295886", "0.5223975", "0.52214944", "0.5220212", "0.52124804", "0.52118623", "0.5209568", "0.5201593", "0.5197065", "0.5184628", "0.5154695", "0.5143047", "0.5139445", "0.5123776", "0.5121865", "0.51035494", "0.5095364", "0.5086681", "0.50718075", "0.5048404", "0.50478625", "0.5044324", "0.5042138", "0.50401336", "0.5039769", "0.5036473", "0.50269717", "0.5013115", "0.5008729", "0.50001585", "0.49974993", "0.4980997", "0.49596497", "0.4943678", "0.49430028", "0.49426615", "0.4941143", "0.49322134", "0.49306634", "0.49245518", "0.49239835", "0.49103054", "0.48948878", "0.48857006", "0.48839658", "0.48802444", "0.48726973", "0.48707083", "0.4860334", "0.48602802", "0.48516175", "0.48485705", "0.48478216", "0.48454192", "0.484358", "0.4840684", "0.48343435", "0.48153576", "0.4811126", "0.48080462", "0.48069346", "0.48030448" ]
0.57283914
15
Gets the size of the file.
public long getFileSize() throws IOException { return file.length(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getSize()\n\t{\n\t\treturn file.length() ;\n\t}", "public long size() {\n return file.length();\n }", "public long getSize() {\r\n return mFile.getSize();\r\n }", "public static long size(File file) {\n\t\treturn file.length();\n\t}", "public long size() {\n return this.filePage.getSizeInfile();\n }", "public final long getFileSize() {\n\t\treturn m_info.getSize();\n\t}", "public long getSizeFromFile(File file) {\n\t\tlong size = 0;\n\t\tif (file != null) {\n\t\t\tsize = file.length();\n\t\t}\n\t\treturn size;\n\t}", "public long length() {\n return _file.length();\n }", "public long getFileSize();", "public long getFileSize();", "private Long getFileSize() {\n\t\t// retornamos el tamano del fichero\n\t\treturn this.fileSize;\n\t}", "public long getFileSize() {\n\t\treturn mFileSize;\n\t}", "public long getFileSize(){\n\t return new File(outputFileName).length();\n }", "long getFileSize();", "public long getFileSize() {\n return fileSize_;\n }", "public long getFileSize() {\n return fileSize_;\n }", "public long getFileSize() {\r\n\t\treturn dFileSize;\r\n\t}", "public long getFileLength() {\n\n return fileLength;\n\n }", "public final long getFileLength()\n\t\tthrows IOException {\n\t\t\n\t\t//\tGet the file length\n\t\t\n\t\tFile tempFile = new File(getTemporaryFile());\n\t\treturn tempFile.length();\n\t}", "public long getFileSize() {\r\n return fileSize;\r\n }", "public long getFileSize()\r\n {\r\n return lFileSize;\r\n }", "public int getFileSize(){\n\t\treturn fileSize;\n\t}", "private int getFileSize(File file) {\r\n\t\tFileInputStream fis = null;\r\n\t\ttry {\r\n\t\t\tfis = new FileInputStream(file);\r\n\t\t\tint size = fis.available();\r\n\t\t\tfis.close();\r\n\t\t\treturn size;\r\n\t\t} catch (Exception e) {\r\n\t\t\treturn -1;\r\n\t\t}\r\n\t}", "public long getFileSize(String fileName)\n {\n long size = -1;\n\n File file = new File(fileLocation.getAbsolutePath() + File.separatorChar\n + fileName);\n\n if (file.isFile())\n {\n size = file.length();\n }\n\n return size;\n }", "@Override\n public long size() {\n if (!isRegularFile()) {\n throw new IllegalStateException(\"not a regular file!\");\n }\n return this.fileSize;\n }", "@Override\n\tpublic long getSize()\n\t{\n\t\tif (size >= 0)\n\t\t{\n\t\t\treturn size;\n\t\t}\n\t\telse if (cachedContent != null)\n\t\t{\n\t\t\treturn cachedContent.length;\n\t\t}\n\t\telse if (dfos.isInMemory())\n\t\t{\n\t\t\treturn dfos.getData().length;\n\t\t}\n\t\telse\n\t\t{\n\t\t\treturn dfos.getFile().length();\n\t\t}\n\t}", "public final long length() throws IOException {\r\n\t\treturn f.length();\r\n\t}", "public long getFileSize(String filename) {\n\t\treturn 0;\n\t}", "public long getFileSize() {\n return this.originalFileSize;\n }", "long sizeInBytes() throws IOException;", "public String getFileSize() {\n return fileSize;\n }", "long getFileLength(String path) throws IOException;", "protected long getDataFileSize() throws IOException\r\n {\r\n long size = 0;\r\n\r\n storageLock.readLock().lock();\r\n\r\n try\r\n {\r\n if (dataFile != null)\r\n {\r\n size = dataFile.length();\r\n }\r\n }\r\n finally\r\n {\r\n storageLock.readLock().unlock();\r\n }\r\n\r\n return size;\r\n }", "public int getFileSize (String filePath) throws RemoteException {\r\n\t\tint size;\r\n\t\tFile myFile = new File(filePath);\r\n\t\tsize = (int)myFile.length();\r\n\t\treturn size;\r\n\r\n\t\t\t\t\r\n\t}", "long getSize() throws IOException {\n return fileRWAccessSize.get();\n }", "public long size() {\n try {\n return Files.size(path);\n } catch (final IOException e) {\n throw new StageAccessException(\"Unable to get the size of staged document!\", e);\n }\n }", "@Override\n\tpublic long contentLength() throws IOException {\n\t\treturn Files.size(this.path);\n\t}", "public float getFileSize() {\n return fileSize_;\n }", "public int getSize()\n\t{\n\t\treturn bytes.length;\n\t}", "@ManagedAttribute(description = \"Size in bytes\")\n\tpublic long getSizeInBytes() {\n\t\ttry {\n\t\t\treturn store.estimateSize().bytes();\n\t\t} catch (IOException e) {\n\t\t\treturn -1;\n\t\t}\n\t}", "public static long getFileSize(String fileName) {\n return new File(fileName).length();\n }", "public static long getFileSize(String filePath) {\n\t\treturn new File(filePath).length();\n\t}", "public static long getFileSize(String path) {\n if (path == null || path.isEmpty()) {\n return -1;\n }\n File file = new File(path);\n return (file.exists() && file.isFile() ? file.length() : -1);\n }", "long getSize() throws IOException;", "public float getFileSize() {\n return fileSize_;\n }", "public long size(String path);", "@Override\n public synchronized long size(Path file) throws FileNotFoundException\n {\n File f = file.toFile(root);\n if (!f.exists() || f.isDirectory())\n throw new FileNotFoundException(\"File not found or is a directory\");\n return f.length(); \n }", "long getSize() throws FileSystemException;", "@XmlElement\n public long getFileSize() {\n return this.fileSize;\n }", "public int size() {\n return bytes.length;\n }", "public long getSize() {\n\t\treturn size;\n\t}", "public Integer getFileSize(Long key) {\n File file = new File(MUSIC_FILE_PATH + File.separator + key + \".mp3\");\n return (int)file.length();\n }", "public long getSize() {\r\n\t\treturn size;\r\n\t}", "public int size() {\n return files.size();\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public long getSize() {\n return size;\n }", "public TSizeInBytes getSize() {\n\n\t\treturn size;\n\t}", "public abstract long size() throws IOException;", "public Long sizeInBytes() {\n return this.sizeInBytes;\n }", "public Long sizeInKB() {\n return this.sizeInKB;\n }", "public long getSize() {\n return size.get();\n }", "public void determineFileSize() {\n \t//Creating scanner object\n \tScanner scan = new Scanner(System.in);\n \tSystem.out.println(\"Please enter the path of the file you'd like to determint the size of\");\n \t\n \t//Capturing file path as filePath variable\n \tString filePath = scan.next();\n \t//using Java Nio\n \tPath path = Paths.get(filePath);\n\t\t\n \ttry {\n\t\t\tLong fileSize = Files.size(path);\n\t\t\tSystem.out.println(String.format(\"%s, bytes\", fileSize));\n\t\t\tSystem.out.println(String.format(\"%s, kilobytes\", fileSize/1024));\n\n\t\t\t\n\t\t}catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n \tscan.close();\n \t\n }", "public long getSize() {\r\n return size;\r\n }", "public long size() {\n\t\treturn size;\n\t}", "public long getSize() {\n return size;\n }", "public long getCurrentFileLength() {\n\t\tif (requestedFile != null) {\n\t\t\ttry {\t// avoid race conditions\n\t\t\t\treturn requestedFile.length;\n\t\t\t} catch (NullPointerException e) {}\n\t\t}\n\t\ttry {\t// avoid race conditions\n\t\t\treturn currentFile.length;\n\t\t} catch (NullPointerException e) {}\n\t\treturn 0;\n\t}", "@Schema(example = \"2186\", description = \"Size of the image in bytes.\")\n public Long getSize() {\n return size;\n }", "public long getSize()\n {\n return getLong(\"Size\");\n }", "public final long getSize() { return size; }", "public synchronized long size() {\n\t\treturn size;\n\t}", "public long getInstrumentedFileSize() {\n if (this.rewrittenFile != null) return this.rewrittenFile.length();\n else return -1;\n }", "public long getSizeOfImage()\n throws IOException, EndOfStreamException\n {\n return peFile_.readUInt32(relpos(Offsets.SIZE_OF_IMAGE.position));\n }", "public long getSize() {\n return mSize;\n }", "public static long getDownloadingFileSize() {\n\t\treturn downloadingFileSize;\n\t}", "public int getLength()\n {\n return stream.getInt(COSName.LENGTH, 0);\n }", "public long getFileCompressedSize()\r\n {\r\n return lFileCompressedSize;\r\n }", "public long getSize();", "public int getSize() {\n\t\treturn smilFiles.size();\n\t}", "public Number getFileCount() {\r\n\t\treturn (this.fileCount);\r\n\t}", "public String getSize() {\n return size;\n }", "public String getSize() {\n return size;\n }", "public long getDbFileSize() {\r\n\tlong result = -1;\r\n\r\n\ttry {\r\n\t File dbFile = new File(fileName);\r\n\t if (dbFile.exists()) {\r\n\t\tresult = dbFile.length();\r\n\t }\r\n\t} catch (Exception e) {\r\n\t // nothing todo here\r\n\t}\r\n\r\n\treturn result;\r\n }", "public long picoSize() throws IOException {\n return _backing.length();\n }", "public int getSize() {\n\t\treturn _size;\n\t}", "@Override\n\tpublic long getLength()\n\t{\n\t\treturn inputStream.Length;\n\t}", "int getFileCount();", "public final int getSize() {\n return size;\n }", "public String getSize() {\r\n return size;\r\n }", "public int getLength() {\n return mySize.getLength();\n }", "public synchronized int getSize() {\n\t\treturn this.size;\n\t}", "public int getSize() {\r\n return _size;\r\n }", "public int GetSize() {\n\t\tif(this.V == 0) {\n\t\t\t\n\t\t\t// Read from settings file\n\t\t\ttry {\n\t\t\t\tBufferedReader br = new BufferedReader(new FileReader(\"settings.txt\"));\n\t\t\t\tString line;\n\t\t\t\tif((line = br.readLine()) != null) {\n\t\t\t\t\tthis.V = Integer.parseInt(line.split(\" \")[1]);\n\t\t\t\t}\n\t\t\t} catch(IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn this.V;\n\t}", "private Long computeSize(InputStreamWrapper stream) throws IOException {\n long size = 0;\n try (InputStream inStream = stream.getStream()) {\n byte[] buffer = new byte[1024 * 1024]; // 1MB\n int chunkBytesRead;\n while ((chunkBytesRead = inStream.read(buffer)) != -1) {\n size += chunkBytesRead;\n }\n }\n\n return size;\n }", "public static byte getSize() {\n return SIZE;\n }", "public int getLengthInBytes()\n {\n return lengthInBytes;\n }", "public int getSize() {\n\t\treturn m_size;\n\t}", "long getSize();", "public long getByteCount() {\n return byteCount;\n }" ]
[ "0.85955507", "0.85799485", "0.83292294", "0.82464945", "0.81988364", "0.80996454", "0.79840726", "0.7927142", "0.79253274", "0.79253274", "0.7909051", "0.77006656", "0.76949745", "0.7691655", "0.7687438", "0.7683759", "0.76696926", "0.7555017", "0.75523543", "0.7516152", "0.7497637", "0.74963677", "0.7470537", "0.7449575", "0.7442501", "0.73481184", "0.7339349", "0.7319206", "0.73096645", "0.72939926", "0.7270687", "0.72554654", "0.7233511", "0.7229401", "0.7197471", "0.71961147", "0.7185451", "0.7178387", "0.71658856", "0.715612", "0.71451676", "0.7137919", "0.7125874", "0.71212065", "0.7080779", "0.70567113", "0.7053716", "0.7045109", "0.70176774", "0.6992767", "0.69876283", "0.698292", "0.6944554", "0.69178003", "0.6909966", "0.6909966", "0.6909966", "0.6909966", "0.69089186", "0.6905666", "0.6905363", "0.6895814", "0.68850714", "0.6867362", "0.68622744", "0.6833651", "0.6831871", "0.68175167", "0.68005115", "0.67896986", "0.67822015", "0.67801017", "0.67752504", "0.67744", "0.67490447", "0.6746399", "0.6719345", "0.6709384", "0.6703262", "0.6690601", "0.6672733", "0.6665797", "0.6665797", "0.6651498", "0.6644097", "0.66393465", "0.6632071", "0.6624983", "0.66231877", "0.660937", "0.6596453", "0.6551174", "0.65424967", "0.65276283", "0.65224075", "0.6522185", "0.65025645", "0.6499179", "0.64935935", "0.6492129" ]
0.8602957
0
Gets the specified buffer
public Buffer getBuffer(int block) throws IOException { // move to the front of the linked list pool.moveToStart(); Buffer buffer; // while not at the end of the list, look at the current link's buffer. // If that is the target buffer, return it, otherwise go to the next // link. while (pool.getValue() != null) { if (pool.getValue().getBlockNumber() == block) { // place the buffer at the front of the list (most recently // used), increment the cacheHits, and return the buffer. buffer = pool.remove(); pool.insertAtFront(buffer); cacheHits++; return buffer; } else { pool.current = pool.current.next(); } } // increment cacheMisses, remove the last element (least recently used), // write its contents to the file if dirty (and increment disk writes), // read the new buffer in from the file, and return the buffer. cacheMisses++; buffer = pool.removeLastElement(); if (buffer.isDirty()) { file.seek(buffer.getBlockNumber() * BLOCK_SIZE); file.write(buffer.readBlock()); diskWrites++; } file.seek(block * BLOCK_SIZE); file.read(buffer.readBlock()); diskReads++; buffer.setBlockNumber(block); pool.insertAtFront(buffer); return buffer; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Buffer getBuffer() {\n return buffer.getCopy();\n }", "byte [] getBuffer ();", "public ByteBuffer getBuffer() {\n return _buf;\n }", "public byte[] getBuffer () {\n\t\t\t\n\t\t\tif (index < 0)\n\t\t\t\treturn null;\n\n\t\t\tint len = index;\n\t\t\tbyte[] b = new byte[len+1];\n\t\t\tfor (int k=0; k <= len; k++)\n\t\t\t\tb[k] = buf[k];\n\n\t\t\treturn b;\n\t\t}", "public final ByteBuffer getBuffer() {\n return buf;\n }", "public ByteBuffer getBuffer() {\n return ((ByteBuffer)this.b.asReadOnlyBuffer().position(this.pointer == 0 ? this.b.limit() : this.pointer)).slice().order(this.b.order());\n }", "public ByteBuffer getBuffer() {\n return buffer;\n }", "protected ByteBuffer getBuffer() {\n return buffer;\n }", "CharArrayBuffer getBuffer()\n ;", "public ByteBuffer getByteBuffer();", "public ByteBuffer buffer() { return bb; }", "private Buffer getBufferByPosition(int pos)\n throws IOException\n {\n return getBuffer(pos / BLOCK_SIZE);\n }", "void read(Buffer buffer);", "@Override\n\tpublic Buffer getBuffer(PageID pageID) throws BufferException {\n\t\tint containerID = (pageID != null) ? pageID.getContainerNo() : 0;\n\n\t\tBuffer buffer = bufferMapping[containerID];\n\n\t\tif (buffer == null) {\n\t\t\tthrow new BufferException(\n\t\t\t\t\t\"No buffer associated with page number %s.\", pageID);\n\t\t}\n\n\t\treturn buffer;\n\t}", "public T get(int position) {\n if (this.getSize() > 0) {\n return buffer[position];\n }\n return null;\n }", "public byte[] getData() {\n try {\n int n2 = (int)this.len.get();\n if (this.buf == null) {\n return null;\n }\n if (n2 <= this.buf.length) return this.buf.get(n2);\n Log.w(TAG, \"getData: expected length (\" + n2 + \") > buffer length (\" + this.buf.length + \")\");\n throw new IllegalArgumentException(\"Blob:getData - size is larger than the real buffer length\");\n }\n catch (Exception exception) {\n Log.e(TAG, \"getData exception!\");\n exception.printStackTrace();\n return null;\n }\n }", "public byte [] getBuf() {\r\n return bop.getBuf();\r\n }", "long[] getBuffer() {\n\t\treturn buffer;\n\t}", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "public abstract void get(long position, ByteBuffer dst, int count);", "public FloatBuffer get (FloatBuffer buf)\n {\n return buf.put(x).put(y);\n }", "public byte[] getBuffer() {\r\n return this.header;\r\n }", "abstract public ByteString getBlocksBuffer();", "private String getDataFromBuffer(){\r\n int bufferDataSize = mBufferData.size();\r\n StringBuilder temp = new StringBuilder();\r\n \r\n for (int i = 0; i < bufferDataSize; i++) {\r\n temp.append(mBufferData.remove());\r\n }\r\n return temp.toString();\r\n }", "public OutputBuffer getBuffer (String name, boolean create) {\n OutputBuffer buffer;\n\n // If the map does not exist then the buffer cannot exist.\n if (buffers == null) {\n // If we have been asked to create the buffer then we need to create\n // the map as well.\n if (create) {\n buffers = new HashMap ();\n }\n buffer = null;\n } else {\n // See whether the buffer exists in the map.\n buffer = (OutputBuffer) buffers.get (name);\n }\n \n // If the buffer could not be found and we have been asked to create the\n // buffer if necessary then do so and add it into the map.\n if (buffer == null && create) {\n buffer = factory.createOutputBuffer ();\n buffers.put (name, buffer);\n }\n \n return buffer;\n }", "public ByteBuffer getTextureBuffer(String name) {\n\t\treturn TextureManager.global.getTextureBuffer(name);\n\t}", "public IBuffer newBuffer();", "public char[] getResultBuffer() { return b; }", "private void loadBuffer(ByteBuffer buffer) {\n byteBuffer = buffer.get();\n }", "private E[] getNextBuffer(E[] buffer, long mask)\r\n/* 187: */ {\r\n/* 188:438 */ long offset = nextArrayOffset(mask);\r\n/* 189:439 */ E[] nextBuffer = (Object[])UnsafeRefArrayAccess.lvElement(buffer, offset);\r\n/* 190:440 */ UnsafeRefArrayAccess.soElement(buffer, offset, null);\r\n/* 191:441 */ return nextBuffer;\r\n/* 192: */ }", "public ParseBuffer get(byte[] dst, int offset, int length) throws TLVEncodingException {\r\n\t\tif (length > limit - cursor)\r\n\t\t\tthrow new TLVEncodingException(\"Invalid length field\");\r\n\r\n\t\tSystem.arraycopy(buffer, cursor, dst, offset, length);\r\n\t\tcursor += length;\r\n\r\n\t\treturn this;\r\n\t}", "abstract public Buffer createBuffer();", "@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}", "public byte[] getWithBuffer(String namePath, ARUtilsHttpProgressListener progressListener, Object progressArg) throws ARUtilsException\n {\n return nativeGetWithBuffer(nativeHttpConnection, namePath, progressListener, progressArg);\n }", "public abstract int getBufferMode();", "public ArrayList<Object> readTrendBuffer(){\n try {\n ReadRangeAck ack = DeviceService.localDevice.send(bacnetDevice, new ReadRangeRequest(getObjectIdentifier(),\n PropertyIdentifier.logBuffer, null,\n new ReadRangeRequest.ByPosition(0,1000))).get();\n return new ArrayList<>(ack.getItemData().getValues());\n } catch (BACnetException e) {\n LOG.warn(\"Can't read {} of: {}\",PropertyIdentifier.logBuffer.toString(),getObjectName());\n }\n return null;\n }", "List<TrackerPayload> getBuffer();", "Buffer slice();", "protected void readImpl(@NotNull final ByteBuffer buffer) {\n }", "default int readBlocking(byte[] buffer) {\n return readBlocking(buffer, 0, buffer.length);\n }", "public ExtendedBuffer read(final String reference) throws IOException {\n return contents.get(reference);\n }", "public static ClientPacket read(ByteBuffer buffer){\r\n\t\tPacketType typeLocal = PacketType.values()[buffer.getInt()];\r\n\t\tint sizeLocal = buffer.getInt();\r\n\t\tbyte[] dataBytes = new byte[sizeLocal];\r\n\t\tbuffer.get(dataBytes);\r\n\t\t\r\n\t\treturn new ClientPacket(typeLocal, dataBytes);\r\n\t}", "@Override\r\n\tpublic Buffer getBytes(int start, int end, byte[] dst, int dstIndex) {\n\t\treturn null;\r\n\t}", "public byte get() throws TLVEncodingException {\r\n\t\tif (cursor >= limit)\r\n\t\t\tthrow new TLVEncodingException(\"End of buffer\");\r\n\r\n\t\treturn buffer[cursor++];\r\n\t}", "public void get(int addr, byte[] buff) throws ProgramException {\n get(addr, buff, 0, buff.length);\n }", "long getAddress(ByteBuffer buffer);", "public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "public synchronized int readBuf(String filename) {\n\t\t\n\t\t// find a buffer id that hasn't been used yet.\n\t\tint bufNum = 0;\n\t\twhile (_bufferMap.containsKey(bufNum))\n\t\t\tbufNum++;\n\n\t\t// add this buffer number to the map\n\t\t_bufferMap.put(bufNum, filename);\n\n\t\t// create and load the buffer\n\t\tsendMessage(\"/b_allocRead\", new Object[] { bufNum, filename });\n\t\tsendMessage(\"/sync\", new Object[]{bufNum + _bufferReadIdOffset});\n\t\treturn bufNum;\n\t}", "Buffer copy();", "int read(byte[] buffer, int bufferOffset, int length) throws IOException;", "public byte[] getBuffer( int size )\n {\n byte [] result = null;\n \n if (size < 0)\n {\n throw new INTERNAL (\"Unable to cache and create buffer of negative size. Possible overflow issue.\");\n }\n \n final int log = calcLog(size);\n \n if (log > maxManagedBufferSize)\n {\n try\n {\n if (time < 0)\n {\n // Defaults to returning asked for size\n result = new byte[size];\n }\n else\n {\n synchronized(this)\n {\n // Using cache so do below determination\n if (bufferMax == null || bufferMax.length < size)\n {\n // Autocache really large values for speed\n bufferMax = new byte[size];\n }\n // Else return the cached buffer\n result = bufferMax;\n bufferMax = null;\n }\n }\n }\n catch (OutOfMemoryError e)\n {\n throw new NO_MEMORY(e.toString());\n }\n }\n else\n {\n int index = (log > MIN_CACHE ? log - MIN_CACHE : 0);\n final Collection s = bufferPool[index];\n result = doFetchBuffer(s);\n \n if (result == null)\n {\n // .. = 1 << MIN_CACHE + 1\n // 64 = 1 << 5 + 1\n // 128 = 1 << 6 + 1\n // 255 = 1 << 7 + 1\n // 512 = 1 << 8 + 1\n // 1024 = 1 << 9 + 1\n // 2048 = 1 << 10 + 1\n result = new byte[ ( log > MIN_CACHE ? 1 << log + 1 : 1024 ) - 1];\n }\n }\n return result;\n }", "public static ByteOrderMark read(ByteBuffer buffer) {\n if (((java.nio.Buffer)buffer).position() != 0) { // explicitly casting\n return null;\n }\n\n byte[] potentialBom;\n // noinspection RedundantCast\n if (((java.nio.Buffer)buffer).remaining() < 5) {\n // noinspection RedundantCast\n potentialBom = new byte[((java.nio.Buffer)buffer).remaining()]; // explicitly casting\n } else {\n potentialBom = new byte[5];\n }\n\n buffer.get(potentialBom); // explicitly casting\n ((java.nio.Buffer)buffer).position(0); // explicitly casting\n return findBom(potentialBom);\n }", "public ByteBuffer get(final int index) {\n\t\tif (!validState) {\n\t\t\tthrow new InvalidStateException();\n\t\t}\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"get(\" + index + \")\");\n\t\t}\n\t\ttry {\n\t\t\tif (useMmap) {\n\t\t\t\tfinal MappedByteBuffer mbb = getMmapForIndex(index);\n\t\t\t\tif (mbb != null) {\n\t\t\t\t\treturn mbb;\n\t\t\t\t}\n\t\t\t\t// Fallback to RAF\n\t\t\t}\n\t\t\tfinal ByteBuffer buf = bufstack.pop();\n\t\t\tfileChannel.position(index * blockSize).read(buf);\n\t\t\tbuf.rewind();\n\t\t\treturn buf;\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Exception in get(\" + index + \")\", e);\n\t\t}\n\t\treturn null;\n\t}", "private int readBufferedContentInto(ByteBuffer byteBuffer) {\n long bytesToSkip = positionForNextRead - positionInGrpcStream;\n\n if (bytesToSkip >= bufferedContent.size()) {\n positionInGrpcStream += bufferedContent.size();\n invalidateBufferedContent();\n return 0;\n }\n\n if (bytesToSkip > 0) {\n positionInGrpcStream += bytesToSkip;\n bufferedContent = bufferedContent.substring(Math.toIntExact(bytesToSkip));\n }\n\n int bytesToWrite = Math.min(byteBuffer.remaining(), bufferedContent.size());\n put(bufferedContent, 0, bytesToWrite, byteBuffer);\n positionInGrpcStream += bytesToWrite;\n positionForNextRead += bytesToWrite;\n\n if (bytesToWrite < bufferedContent.size()) {\n bufferedContent = bufferedContent.substring(bytesToWrite);\n } else {\n invalidateBufferedContent();\n }\n\n return bytesToWrite;\n }", "public ByteBuffer read(long address)\n {\n return tryRead(address, null);\n }", "@Nonnull\n public String toBuf() {\n Buf buf = new Buf();\n Error.throwIfNeeded(jniToBuf(buf, getRawPointer()));\n return buf.getString().orElse(\"\");\n }", "public BufferRecycler _getBufferRecycler()\n/* */ {\n/* 1495 */ if (isEnabled(Feature.USE_THREAD_LOCAL_FOR_BUFFER_RECYCLING)) {\n/* 1496 */ SoftReference<BufferRecycler> ref = (SoftReference)_recyclerRef.get();\n/* 1497 */ BufferRecycler br = ref == null ? null : (BufferRecycler)ref.get();\n/* */ \n/* 1499 */ if (br == null) {\n/* 1500 */ br = new BufferRecycler();\n/* 1501 */ _recyclerRef.set(new SoftReference(br));\n/* */ }\n/* 1503 */ return br;\n/* */ }\n/* 1505 */ return new BufferRecycler();\n/* */ }", "short getP( byte[] buffer, short offset );", "com.google.protobuf.ByteString getCached(int index);", "short getQ( byte[] buffer, short offset );", "public ResourceHolder<ByteBuffer> getMergeBuffer()\n {\n final ByteBuffer buffer = mergeBuffers.pop();\n return new ResourceHolder<ByteBuffer>()\n {\n @Override\n public ByteBuffer get()\n {\n return buffer;\n }\n\n @Override\n public void close()\n {\n mergeBuffers.add(buffer);\n }\n };\n }", "public static String bufferScanner() throws IOException\n\t{\n\treturn br.readLine();\n\t}", "public int read(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 ReadableByteChannel)) {\n throw new BadDescriptorException();\n }\n ReadableByteChannel readChannel = (ReadableByteChannel) channel;\n int bytesRead = 0;\n bytesRead = readChannel.read(buffer);\n \n return bytesRead;\n }", "static Stats readFrom(ByteBuffer buffer) {\n/* 568 */ Preconditions.checkNotNull(buffer);\n/* 569 */ Preconditions.checkArgument(\n/* 570 */ (buffer.remaining() >= 40), \"Expected at least Stats.BYTES = %s remaining , got %s\", 40, buffer\n/* */ \n/* */ \n/* 573 */ .remaining());\n/* 574 */ return new Stats(buffer\n/* 575 */ .getLong(), buffer\n/* 576 */ .getDouble(), buffer\n/* 577 */ .getDouble(), buffer\n/* 578 */ .getDouble(), buffer\n/* 579 */ .getDouble());\n/* */ }", "protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }", "short getPQ( byte[] buffer, short offset );", "public abstract ByteBuffer getPacket();", "public byte[] allocReadIOBuffer()\n/* */ {\n/* 146 */ _verifyAlloc(this._readIOBuffer);\n/* 147 */ return this._readIOBuffer = this._bufferRecycler.allocByteBuffer(0);\n/* */ }", "public ByteBuffer getUnboundedValue(T key) {\n int index = evaluator.evaluate(key);\n if (index < 0) {\n return null;\n }\n return mappedBuffer.asReadOnlyBuffer().position(offsets[index]).order(ByteOrder.LITTLE_ENDIAN);\n }", "public ByteBuffer read(int location)\n throws DataOrderingException;", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "int getBufferSize();", "@Override\n public byte[] getBuffer() {\n return EMPTY_RESULT;\n }", "public AudioBuffer getAudioBuffer() {\n\t\treturn buffer;\n\t}", "public Long getBufferStock(final SessionContext ctx)\r\n\t{\r\n\t\treturn (Long)getProperty( ctx, BUFFERSTOCK);\r\n\t}", "private Tuple readFromBuffer(List<TupleReaderBinary> buffers, int bufferID) {\n\t\tif (buffers.get(bufferID) == null) {\n\t\t\treturn null;\n\t\t}\n\t\tTuple temp = buffers.get(bufferID).readTuple(true);\n\n\t\tif (temp != null) {\n\t\t\ttemp.ordering = ordering;\n\t\t\treturn temp;\n\t\t} else {\n\t\t\tassignBuffer(buffers, bufferID);\n\t\t\tif (buffers.get(bufferID) == null) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\ttemp = buffers.get(bufferID).readTuple(true);\n\n\t\t\tif (temp != null) {\n\t\t\t\ttemp.ordering = ordering;\n\t\t\t\treturn temp;\n\t\t\t} else {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t}", "public ByteBuf getBytes(int index, ByteBuffer dst)\r\n/* 239: */ {\r\n/* 240:256 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 241:257 */ return super.getBytes(index, dst);\r\n/* 242: */ }", "public Buffer getEmptyBuffer()\n {\n // System.out.println(getClass().getName()+\":: getEmptyBuffer\");\n\n switch (protocol)\n {\n case ProtocolPush:\n if (!isEmptyBufferAvailable() && reset)\n return null;\n reset = false;\n return circularBuffer.getEmptyBuffer();\n case ProtocolSafe:\n synchronized (circularBuffer)\n {\n reset = false;\n while (!reset && !isEmptyBufferAvailable())\n {\n try\n {\n circularBuffer.wait();\n } catch (Exception e)\n {\n }\n }\n if (reset)\n return null;\n Buffer buffer = circularBuffer.getEmptyBuffer();\n circularBuffer.notifyAll();\n return buffer;\n }\n\n default:\n throw new RuntimeException();\n }\n }", "public T get(int pos) {\n // System.out.println(\"RA.get pos=\" + pos + \" nextPos=\" + nextPos + \" nextWrite=\" + nextWrite +\n // \" count=\" + count);\n while (pos >= nextPos) {\n if (count == buffer.length) {\n @SuppressWarnings(\"unchecked\")\n T[] newBuffer =\n (T[])\n new Resettable\n [ArrayUtil.oversize(1 + count, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];\n // System.out.println(\" grow length=\" + newBuffer.length);\n System.arraycopy(buffer, nextWrite, newBuffer, 0, buffer.length - nextWrite);\n System.arraycopy(buffer, 0, newBuffer, buffer.length - nextWrite, nextWrite);\n for (int i = buffer.length; i < newBuffer.length; i++) {\n newBuffer[i] = newInstance();\n }\n nextWrite = buffer.length;\n buffer = newBuffer;\n }\n if (nextWrite == buffer.length) {\n nextWrite = 0;\n }\n // Should have already been reset:\n nextWrite++;\n nextPos++;\n count++;\n }\n assert inBounds(pos) : \"pos=\" + pos + \" nextPos=\" + nextPos + \" count=\" + count;\n final int index = getIndex(pos);\n // System.out.println(\" pos=\" + pos + \" nextPos=\" + nextPos + \" -> index=\" + index);\n // assert buffer[index].pos == pos;\n return buffer[index];\n }", "private synchronized OutputBuffer findOutputBuffer(String name) {\n for (int i = buffers.length - 1; i >= 0; i--) {\n if (name.equals(buffers[i].getName())) {\n return buffers[i];\n }\n }\n\n return null;\n }", "public interface DirectByteBufferAccess {\n\n /**\n * Returns the native memory address of the given direct byte buffer, or 0\n * if the buffer is not direct or if obtaining the address is not supported.\n * \n * @param buffer the direct byte buffer for which to obtain the address\n * @return the native memory address or 0\n */\n long getAddress(ByteBuffer buffer);\n}", "public interface Buffer {\r\n\tpublic void add(String s);\r\n\tpublic String retrieve();\r\n}", "public static byte[] getAPDUBuffer(byte[] buffer) {\n short len = SATAccessor.getAPDUBufferLength();\n \n for (short i = 0; i < len; i++) {\n buffer[i] = SATAccessor.getAPDUBufferByte(i);\n }\n return buffer;\n }", "public IOBuffer getIOBuffer() {\n\t\treturn iOBuffer;\n\t}", "abstract public Buffer createBufferFromString(String data);", "public Object getContent() {\n/* 112 */ return this.buf;\n/* */ }", "public static byte[] getAPDUBuffer() {\n return getAPDUBuffer(currentTI.getAPDUBuffer());\n }", "public byte getVideoBufferByte(int index)\n {\n return this.videocard.vgaMemory[index];\n }", "public static byte[] getBytes(final ByteBuffer from, final int index, final byte[] buffer) {\n final int oldPosition = from.position();\n from.position(index);\n from.get(buffer);\n from.position(oldPosition);\n return buffer;\n }", "public synchronized List getBufferForReading() {\n// if some writer is writing, wait until no writer is writing \n while (readerNumber < 0) {\n try {\n this.wait();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n// when readerNumber >= 0 \n readerNumber++;\n return buffer;\n }", "public ByteBuffer nioBuffer()\r\n/* 703: */ {\r\n/* 704:712 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 705:713 */ return super.nioBuffer();\r\n/* 706: */ }", "public byte[] getBytes()\r\n {\r\n return buf;\r\n }", "private String getDataFromBuffer(int end){\r\n StringBuilder temp = new StringBuilder();\r\n \r\n for (int i = 0; i < end; i++) {\r\n temp.append(mBufferData.remove());\r\n }\r\n return temp.toString();\r\n }", "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 synchronized static void readFlash(Context context, ByteBuffer buffer, int addr, int len) {\n byte[] flashData = null;\n\n File dir = context.getFilesDir();\n File targetFile = new File(dir.getAbsolutePath() + File.separator + FILE_NAME);\n\n try {\n if (!targetFile.exists()) {\n flashData = new byte[DATA_LEN];\n for (int i = 0; i < flashData.length; i++) {\n flashData[i] = (byte) 0xFF;\n }\n targetFile.createNewFile();\n FileOutputStream fos = new FileOutputStream(targetFile);\n fos.write(flashData);\n fos.flush();\n fos.close();\n } else {\n InputStream stream = new FileInputStream(targetFile);\n int length = stream.available();\n flashData = new byte[length];\n stream.read(flashData);\n stream.close();\n }\n } catch (IOException e) {\n }\n// TelinkLog.e(\"readFlash -- flashData capacity:\" + flashData.length + \" -- addr:\" + addr + \" -- len:\" + len);\n byte[] result = new byte[len];\n System.arraycopy(flashData, addr, result, 0, len);\n buffer.position(0);\n// buffer.\n buffer.put(result);\n// TelinkLog.e(\"########## buffer.capacity: \" + buffer.capacity());\n byte data0 = buffer.get(0);\n// TelinkLog.e(\"########## buffer.get(0): \" + buffer.get(0));\n\n// return flashData;\n }", "public Long getBufferStock()\r\n\t{\r\n\t\treturn getBufferStock( getSession().getSessionContext() );\r\n\t}", "public void returnBuffer(byte[] current, boolean cdrStr)\n {\n if (current != null)\n {\n int log_curr = calcLog(current.length);\n \n if( log_curr >= MIN_CACHE)\n {\n if( log_curr > maxManagedBufferSize )\n {\n synchronized(this)\n {\n // Only cache if CDROutputStream is called, cache is enabled &\n // the new value is > than the cached value.\n if (cdrStr &&\n (time >= 0 &&\n (bufferMax == null || bufferMax.length < current.length)))\n {\n bufferMax = current;\n }\n return;\n }\n }\n \n int expected = (1 << log_curr + 1) - 1;\n if (current.length != expected)\n {\n if (logger.isWarnEnabled())\n {\n logger.warn (\"BufferManager.returnBuffer, log = \" + log_curr +\n \" got length \" +\n Integer.toHexString (current.length) +\n \" expected length \" +\n Integer.toHexString (expected));\n }\n }\n else\n {\n final Collection s = bufferPool[ log_curr-MIN_CACHE ];\n doReturnBuffer(s, current, threshold);\n }\n }\n }\n }", "com.google.protobuf.ByteString getData(int index);", "com.google.protobuf.ByteString getData(int index);", "public PGraphics getSrcBuffer() {\n\t\treturn this.src;\n\t}" ]
[ "0.7450381", "0.74299026", "0.72313327", "0.7228765", "0.7169126", "0.71655697", "0.7136276", "0.7105183", "0.7057373", "0.7021426", "0.6923234", "0.6853369", "0.6667176", "0.6595004", "0.64859354", "0.6424524", "0.64046377", "0.6341397", "0.62972057", "0.6272273", "0.6211015", "0.61638284", "0.6140744", "0.61303115", "0.6107083", "0.6097194", "0.6087941", "0.6054927", "0.60516983", "0.6040997", "0.60311157", "0.602345", "0.60066915", "0.598318", "0.5961479", "0.5931389", "0.5916199", "0.591211", "0.59015095", "0.58880645", "0.5859316", "0.58423465", "0.58404696", "0.5827147", "0.58194697", "0.5808221", "0.57972735", "0.5792592", "0.5791529", "0.57841575", "0.5754422", "0.5745121", "0.574424", "0.57387626", "0.573327", "0.57260036", "0.5717922", "0.5712125", "0.57102966", "0.5701068", "0.5695172", "0.5671807", "0.56709015", "0.56489575", "0.56229645", "0.56142193", "0.56026626", "0.55962825", "0.55882555", "0.55831504", "0.55753726", "0.5574166", "0.5568965", "0.5565193", "0.5562615", "0.55615985", "0.5558854", "0.5555851", "0.5555161", "0.55489695", "0.5547301", "0.5540523", "0.5532599", "0.5530707", "0.5526264", "0.55232465", "0.5517986", "0.5517373", "0.5512982", "0.5498619", "0.5479716", "0.54693526", "0.5451131", "0.54501134", "0.54481727", "0.54258204", "0.5424912", "0.5413954", "0.5413954", "0.5397757" ]
0.5821139
44
Get buffer based on byte location
private Buffer getBufferByPosition(int pos) throws IOException { return getBuffer(pos / BLOCK_SIZE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ByteBuffer read(int location)\n throws DataOrderingException;", "byte [] getBuffer ();", "public ByteBuffer getByteBuffer();", "public byte[] getBuffer () {\n\t\t\t\n\t\t\tif (index < 0)\n\t\t\t\treturn null;\n\n\t\t\tint len = index;\n\t\t\tbyte[] b = new byte[len+1];\n\t\t\tfor (int k=0; k <= len; k++)\n\t\t\t\tb[k] = buf[k];\n\n\t\t\treturn b;\n\t\t}", "long getAddress(ByteBuffer buffer);", "public ByteBuffer getBuffer() {\n return ((ByteBuffer)this.b.asReadOnlyBuffer().position(this.pointer == 0 ? this.b.limit() : this.pointer)).slice().order(this.b.order());\n }", "public ByteBuffer buffer() { return bb; }", "@Override\r\n\tpublic byte getByte(int pos) {\n\t\treturn buffer.get(pos);\r\n\t}", "CharArrayBuffer getBuffer()\n ;", "public ByteBuffer getBuffer() {\n return _buf;\n }", "public final ByteBuffer getBuffer() {\n return buf;\n }", "public abstract void get(long position, ByteBuffer dst, int count);", "abstract public ByteString getBlocksBuffer();", "public Buffer getBuffer() {\n return buffer.getCopy();\n }", "@Override\r\n\tpublic Buffer getBytes(int start, int end, byte[] dst, int dstIndex) {\n\t\treturn null;\r\n\t}", "short getP( byte[] buffer, short offset );", "public byte [] getBuf() {\r\n return bop.getBuf();\r\n }", "protected ByteBuffer getBuffer() {\n return buffer;\n }", "private int readBufferedContentInto(ByteBuffer byteBuffer) {\n long bytesToSkip = positionForNextRead - positionInGrpcStream;\n\n if (bytesToSkip >= bufferedContent.size()) {\n positionInGrpcStream += bufferedContent.size();\n invalidateBufferedContent();\n return 0;\n }\n\n if (bytesToSkip > 0) {\n positionInGrpcStream += bytesToSkip;\n bufferedContent = bufferedContent.substring(Math.toIntExact(bytesToSkip));\n }\n\n int bytesToWrite = Math.min(byteBuffer.remaining(), bufferedContent.size());\n put(bufferedContent, 0, bytesToWrite, byteBuffer);\n positionInGrpcStream += bytesToWrite;\n positionForNextRead += bytesToWrite;\n\n if (bytesToWrite < bufferedContent.size()) {\n bufferedContent = bufferedContent.substring(bytesToWrite);\n } else {\n invalidateBufferedContent();\n }\n\n return bytesToWrite;\n }", "public ByteBuffer getBuffer() {\n return buffer;\n }", "short getQ( byte[] buffer, short offset );", "public ByteBuffer toBuffer() {\n return ByteBuffer.wrap(buf, 0, count);\n }", "private E[] getNextBuffer(E[] buffer, long mask)\r\n/* 187: */ {\r\n/* 188:438 */ long offset = nextArrayOffset(mask);\r\n/* 189:439 */ E[] nextBuffer = (Object[])UnsafeRefArrayAccess.lvElement(buffer, offset);\r\n/* 190:440 */ UnsafeRefArrayAccess.soElement(buffer, offset, null);\r\n/* 191:441 */ return nextBuffer;\r\n/* 192: */ }", "public static int findByteOffset(ByteBuffer buffer, byte[] marker) {\n int position = buffer.position();\n int loop = (buffer.limit() - position) / marker.length;\n while (loop > 0) {\n int index = 0;\n while (buffer.get() == marker[index++]) {\n if (index == marker.length) {\n buffer.position(position);\n return position;\n }\n }\n loop--;\n position++;\n buffer.position(position);\n }\n\n buffer.position(position);\n return -1;\n }", "public interface DirectByteBufferAccess {\n\n /**\n * Returns the native memory address of the given direct byte buffer, or 0\n * if the buffer is not direct or if obtaining the address is not supported.\n * \n * @param buffer the direct byte buffer for which to obtain the address\n * @return the native memory address or 0\n */\n long getAddress(ByteBuffer buffer);\n}", "short getPQ( byte[] buffer, short offset );", "public T get(int position) {\n if (this.getSize() > 0) {\n return buffer[position];\n }\n return null;\n }", "Buffer slice();", "public abstract int decode(ByteBuffer buffer, int offset);", "private void loadBuffer(ByteBuffer buffer) {\n byteBuffer = buffer.get();\n }", "int read(long pos, byte[] buf)throws IOException;", "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 T get(int pos) {\n // System.out.println(\"RA.get pos=\" + pos + \" nextPos=\" + nextPos + \" nextWrite=\" + nextWrite +\n // \" count=\" + count);\n while (pos >= nextPos) {\n if (count == buffer.length) {\n @SuppressWarnings(\"unchecked\")\n T[] newBuffer =\n (T[])\n new Resettable\n [ArrayUtil.oversize(1 + count, RamUsageEstimator.NUM_BYTES_OBJECT_REF)];\n // System.out.println(\" grow length=\" + newBuffer.length);\n System.arraycopy(buffer, nextWrite, newBuffer, 0, buffer.length - nextWrite);\n System.arraycopy(buffer, 0, newBuffer, buffer.length - nextWrite, nextWrite);\n for (int i = buffer.length; i < newBuffer.length; i++) {\n newBuffer[i] = newInstance();\n }\n nextWrite = buffer.length;\n buffer = newBuffer;\n }\n if (nextWrite == buffer.length) {\n nextWrite = 0;\n }\n // Should have already been reset:\n nextWrite++;\n nextPos++;\n count++;\n }\n assert inBounds(pos) : \"pos=\" + pos + \" nextPos=\" + nextPos + \" count=\" + count;\n final int index = getIndex(pos);\n // System.out.println(\" pos=\" + pos + \" nextPos=\" + nextPos + \" -> index=\" + index);\n // assert buffer[index].pos == pos;\n return buffer[index];\n }", "public static ByteOrderMark read(ByteBuffer buffer) {\n if (((java.nio.Buffer)buffer).position() != 0) { // explicitly casting\n return null;\n }\n\n byte[] potentialBom;\n // noinspection RedundantCast\n if (((java.nio.Buffer)buffer).remaining() < 5) {\n // noinspection RedundantCast\n potentialBom = new byte[((java.nio.Buffer)buffer).remaining()]; // explicitly casting\n } else {\n potentialBom = new byte[5];\n }\n\n buffer.get(potentialBom); // explicitly casting\n ((java.nio.Buffer)buffer).position(0); // explicitly casting\n return findBom(potentialBom);\n }", "public byte[] allocReadIOBuffer()\n/* */ {\n/* 146 */ _verifyAlloc(this._readIOBuffer);\n/* 147 */ return this._readIOBuffer = this._bufferRecycler.allocByteBuffer(0);\n/* */ }", "public byte[] read(long pos) {\n final long tic = System.nanoTime();\n if (log.isTraceEnabled()) log.trace(\"read mapped from {} @ {}\", virtualFileNumber, pos);\n int size = readInt(pos);\n byte[] buf = new byte[size];\n super.read(pos + 4, buf);\n if (log.isTraceEnabled()) log.trace(\"read mapped {} bytes from {} @ {}\", size, virtualFileNumber, pos);\n\n blobStoreMetricsAdders.readCounter.increment();\n blobStoreMetricsAdders.bytesRead.add(recordSize(buf));\n blobStoreMetricsAdders.readTimer.add(System.nanoTime() - tic);\n return buf;\n }", "private int getChunk(byte [] buffer, int offset, String chunk) {\r\n\t\ttry {\r\n\t\t\tfor (;;) {\r\n\t\t\t\tint dataLenght = getInt(buffer, offset);\r\n\t\t\t\tif (compareBytes(buffer, offset+4, chunk)) {\r\n\t\t\t\t\treturn offset;\r\n\t\t\t\t} else {\r\n\t\t\t\t\toffset += 4 + 4 + dataLenght + 4;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t} catch (Exception e) {};\r\n\t\treturn -1;\r\n\t}", "abstract public Buffer createBuffer();", "@Override\n\tpublic Buffer getBuffer(PageID pageID) throws BufferException {\n\t\tint containerID = (pageID != null) ? pageID.getContainerNo() : 0;\n\n\t\tBuffer buffer = bufferMapping[containerID];\n\n\t\tif (buffer == null) {\n\t\t\tthrow new BufferException(\n\t\t\t\t\t\"No buffer associated with page number %s.\", pageID);\n\t\t}\n\n\t\treturn buffer;\n\t}", "public ByteBuffer getUnboundedValue(T key) {\n int index = evaluator.evaluate(key);\n if (index < 0) {\n return null;\n }\n return mappedBuffer.asReadOnlyBuffer().position(offsets[index]).order(ByteOrder.LITTLE_ENDIAN);\n }", "com.google.protobuf.ByteString getCached(int index);", "public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "public ByteBuffer read(long address)\n {\n return tryRead(address, null);\n }", "private E newBufferPeek(E[] nextBuffer, long index)\r\n/* 212: */ {\r\n/* 213:464 */ long offset = newBufferAndOffset(nextBuffer, index);\r\n/* 214:465 */ E n = UnsafeRefArrayAccess.lvElement(nextBuffer, offset);\r\n/* 215:466 */ if (null == n) {\r\n/* 216:468 */ throw new IllegalStateException(\"new buffer must have at least one element\");\r\n/* 217: */ }\r\n/* 218:470 */ return n;\r\n/* 219: */ }", "Buffer copy();", "public byte getVideoBufferByte(int index)\n {\n return this.videocard.vgaMemory[index];\n }", "public ByteBuf getBytes(int index, ByteBuffer dst)\r\n/* 239: */ {\r\n/* 240:256 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 241:257 */ return super.getBytes(index, dst);\r\n/* 242: */ }", "public char[] getResultBuffer() { return b; }", "abstract public Buffer createBufferFromData(byte[] data, int size);", "int getRawOffset();", "private int loadData() {\n if (position >= numRecords * 2)\n return -1;\n int bufferPos = 0;\n int capacity = byteBuffer.capacity();\n while (bufferPos < capacity && position < numRecords * 2) {\n long curRecordAddress = sortedArray.get(position);\n int recordLen = Platform.getInt(null, curRecordAddress);\n // length + keyprefix + record length\n int length = Integer.BYTES + Long.BYTES + recordLen;\n if (length > capacity) {\n logger.error(\"single record size exceeds PMem read buffer. Please increase buffer size.\");\n }\n if (bufferPos + length <= capacity) {\n long curKeyPrefix = sortedArray.get(position + 1);\n if (length > bytes.length) {\n bytes = new byte[length];\n }\n Platform.putLong(bytes, Platform.BYTE_ARRAY_OFFSET, curKeyPrefix);\n Platform.copyMemory(null, curRecordAddress, bytes, Platform.BYTE_ARRAY_OFFSET + Long.BYTES, length - Long.BYTES);\n byteBuffer.put(bytes, 0, length);\n bufferPos += length;\n position += 2;\n } else {\n break;\n }\n }\n return bufferPos;\n }", "public byte[] getData(int pos, int size)\n throws IOException\n {\n // data may need to be retrieved from multiple buffers\n byte[] b = new byte[size];\n Buffer buf;\n for (int i = 0; i < size; i++)\n {\n buf = getBufferByPosition(pos + i);\n b[i] = buf.getByte(pos + i);\n }\n return b;\n }", "public IBuffer newBuffer();", "public byte[] getData() {\n try {\n int n2 = (int)this.len.get();\n if (this.buf == null) {\n return null;\n }\n if (n2 <= this.buf.length) return this.buf.get(n2);\n Log.w(TAG, \"getData: expected length (\" + n2 + \") > buffer length (\" + this.buf.length + \")\");\n throw new IllegalArgumentException(\"Blob:getData - size is larger than the real buffer length\");\n }\n catch (Exception exception) {\n Log.e(TAG, \"getData exception!\");\n exception.printStackTrace();\n return null;\n }\n }", "public byte[] readBytesUntil(int interesting) {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\t\tbyte what = (byte) interesting;\n\n\t\tsynchronized (buffer) {\n\t\t\tint found = -1;\n\t\t\tfor (int k = bufferIndex; k < bufferLast; k++) {\n\t\t\t\tif (buffer[k] == what) {\n\t\t\t\t\tfound = k;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (found == -1)\n\t\t\t\treturn null;\n\n\t\t\tint length = found - bufferIndex + 1;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex += length;\n\t\t\tif (bufferIndex == bufferLast) {\n\t\t\t\tbufferIndex = 0; // rewind\n\t\t\t\tbufferLast = 0;\n\t\t\t}\n\t\t\treturn outgoing;\n\t\t}\n\t}", "int read(byte[] buffer, int bufferOffset, int length) throws IOException;", "public FloatBuffer get (FloatBuffer buf)\n {\n return buf.put(x).put(y);\n }", "private Buffer findExistingBuffer(Block blk) {\n //=====================================CS4432-Project1=====================\n //lookup the block from the list of all buffers, and if we can find a frame number\n //we should return that buffer\n if (buffers.get(blk) != null){\n //get the frame number\n int frame = buffers.get(blk);\n\n //since we were looking up the buffer, we need to reorder our LRU array if\n //the block searched for is unpinned\n if (!bufferpool[frame].isPinned()){\n if (replacementPolicy.equalsIgnoreCase(\"LRU\")) {\n int location = leastRecentlyUsedArray.indexOf(frame);\n if (location != -1){\n //remove and re-add at the end of the array\n leastRecentlyUsedArray.remove(location);\n leastRecentlyUsedArray.add(frame);\n }\n }\n }\n\n //return the existing buffer\n return bufferpool[frame];\n }\n //we could not find the frame number (ie. it does not exist) so return null\n return null;\n }", "public byte get(int addr) {\n return data[addr - start];\n }", "@Override\n public long getFilePointer() {\n return this.fileOffset + this.bufferPointer.bufferOffset;\n }", "public OutputBuffer getBuffer (String name, boolean create) {\n OutputBuffer buffer;\n\n // If the map does not exist then the buffer cannot exist.\n if (buffers == null) {\n // If we have been asked to create the buffer then we need to create\n // the map as well.\n if (create) {\n buffers = new HashMap ();\n }\n buffer = null;\n } else {\n // See whether the buffer exists in the map.\n buffer = (OutputBuffer) buffers.get (name);\n }\n \n // If the buffer could not be found and we have been asked to create the\n // buffer if necessary then do so and add it into the map.\n if (buffer == null && create) {\n buffer = factory.createOutputBuffer ();\n buffers.put (name, buffer);\n }\n \n return buffer;\n }", "private static ByteBuffer bufferFile(FileChannel fileChannel, long position, long maxLength) throws IOException {\n long mappingBytes = Math.min(fileChannel.size() - position, maxLength);\n\n MappedByteBuffer buffer = fileChannel.map(FileChannel.MapMode.READ_ONLY, position, mappingBytes);\n buffer.load();\n\n /*\n if (mappingBytes >= Integer.MAX_VALUE)\n throw new IOException(\"Buffer for \" + mappingBytes + \" bytes cannot be allocated\");\n ByteBuffer buffer = ByteBuffer.allocateDirect((int)mappingBytes);\n if (fileChannel.read(buffer, position) < mappingBytes)\n throw new IOException(\"File channel provided less than \" + mappingBytes + \" bytes\");\n buffer.flip();\n */\n\n return buffer;\n }", "long[] getBuffer() {\n\t\treturn buffer;\n\t}", "protected byte _getByte(int index)\r\n/* 323: */ {\r\n/* 324:337 */ return HeapByteBufUtil.getByte(this.array, index);\r\n/* 325: */ }", "com.google.protobuf.ByteString getData(int index);", "com.google.protobuf.ByteString getData(int index);", "public abstract ByteBuffer getPacket();", "public ByteBuffer get(final int index) {\n\t\tif (!validState) {\n\t\t\tthrow new InvalidStateException();\n\t\t}\n\t\tif (log.isDebugEnabled()) {\n\t\t\tlog.debug(\"get(\" + index + \")\");\n\t\t}\n\t\ttry {\n\t\t\tif (useMmap) {\n\t\t\t\tfinal MappedByteBuffer mbb = getMmapForIndex(index);\n\t\t\t\tif (mbb != null) {\n\t\t\t\t\treturn mbb;\n\t\t\t\t}\n\t\t\t\t// Fallback to RAF\n\t\t\t}\n\t\t\tfinal ByteBuffer buf = bufstack.pop();\n\t\t\tfileChannel.position(index * blockSize).read(buf);\n\t\t\tbuf.rewind();\n\t\t\treturn buf;\n\t\t} catch (Exception e) {\n\t\t\tlog.error(\"Exception in get(\" + index + \")\", e);\n\t\t}\n\t\treturn null;\n\t}", "public int getBytePosition() {\n return bytePosition;\n }", "public byte[] getBuffer() {\r\n return this.header;\r\n }", "int getBytesInBufferAvailable() {\n if (this.count == this.pos) return 0;\n else return this.buf.length - this.pos;\n }", "protected int populateBuffer()\n {\n interlock.beginReading();\n // System.out.println(\"populateBuffer: 2\");\n return byteBuffer.limit();\n }", "public int getBytes(int index, FileChannel out, long position, int length)\r\n/* 889: */ throws IOException\r\n/* 890: */ {\r\n/* 891:898 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 892:899 */ return super.getBytes(index, out, position, length);\r\n/* 893: */ }", "public abstract int getRawOffset();", "public abstract int getRawOffset();", "public static byte[] getBytes(final ByteBuffer from, final int index, final byte[] buffer) {\n final int oldPosition = from.position();\n from.position(index);\n from.get(buffer);\n from.position(oldPosition);\n return buffer;\n }", "@Override\r\n\tpublic void read(IByteBuffer source, long offset) {\n\r\n\t}", "public ByteBuffer getTextureBuffer(String name) {\n\t\treturn TextureManager.global.getTextureBuffer(name);\n\t}", "public void getPyalod(byte[] buff, int offset) {\n buffer.position(12);\n buffer.get(buff, offset, buffer.limit() - 12);\n }", "public Buffer getBuffer(int block)\n throws IOException\n {\n // move to the front of the linked list\n pool.moveToStart();\n Buffer buffer;\n\n // while not at the end of the list, look at the current link's buffer.\n // If that is the target buffer, return it, otherwise go to the next\n // link.\n while (pool.getValue() != null)\n {\n if (pool.getValue().getBlockNumber() == block)\n {\n // place the buffer at the front of the list (most recently\n // used), increment the cacheHits, and return the buffer.\n buffer = pool.remove();\n pool.insertAtFront(buffer);\n cacheHits++;\n return buffer;\n }\n else\n {\n pool.current = pool.current.next();\n }\n }\n\n // increment cacheMisses, remove the last element (least recently used),\n // write its contents to the file if dirty (and increment disk writes),\n // read the new buffer in from the file, and return the buffer.\n cacheMisses++;\n buffer = pool.removeLastElement();\n if (buffer.isDirty())\n {\n file.seek(buffer.getBlockNumber() * BLOCK_SIZE);\n file.write(buffer.readBlock());\n diskWrites++;\n }\n file.seek(block * BLOCK_SIZE);\n file.read(buffer.readBlock());\n diskReads++;\n buffer.setBlockNumber(block);\n pool.insertAtFront(buffer);\n return buffer;\n }", "char getChar(int offset) throws BadLocationException;", "public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }", "public char first_message_offset_GET()\n { return (char)((char) get_bytes(data, 5, 1)); }", "public int getBytes(int index, FileChannel out, long position, int length)\r\n/* 190: */ throws IOException\r\n/* 191: */ {\r\n/* 192:217 */ ensureAccessible();\r\n/* 193:218 */ return getBytes(index, out, position, length, false);\r\n/* 194: */ }", "public static ByteBuffer byteBuffer(InputStream in) throws IOException {\n return byteBuf(in, FileChannel.MapMode.READ_WRITE, \"rw\");\n }", "public synchronized int readBuf(String filename) {\n\t\t\n\t\t// find a buffer id that hasn't been used yet.\n\t\tint bufNum = 0;\n\t\twhile (_bufferMap.containsKey(bufNum))\n\t\t\tbufNum++;\n\n\t\t// add this buffer number to the map\n\t\t_bufferMap.put(bufNum, filename);\n\n\t\t// create and load the buffer\n\t\tsendMessage(\"/b_allocRead\", new Object[] { bufNum, filename });\n\t\tsendMessage(\"/sync\", new Object[]{bufNum + _bufferReadIdOffset});\n\t\treturn bufNum;\n\t}", "abstract public Buffer createBufferFromString(String data);", "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 char[] storage_GET(char[] dst_ch, int pos)\n {\n for(int BYTE = 123, dst_max = pos + 120; pos < dst_max ; pos++, BYTE += 1)\n dst_ch[pos] = (char)((char) get_bytes(data, BYTE, 1));\n return dst_ch;\n }", "ByteBuffer allocate() {\n\t\tvar b = ByteBuffer.allocate(size).order(LITTLE_ENDIAN);\n\t\tb.putInt(ordinal());\n\t\treturn b;\n\t}", "public PhyphoxBuffer getCopyFromIndex(int startIndex) {\n\t\treturn new PhyphoxBuffer(this, startIndex);\n\t}", "public ParseBuffer get(byte[] dst, int offset, int length) throws TLVEncodingException {\r\n\t\tif (length > limit - cursor)\r\n\t\t\tthrow new TLVEncodingException(\"Invalid length field\");\r\n\r\n\t\tSystem.arraycopy(buffer, cursor, dst, offset, length);\r\n\t\tcursor += length;\r\n\r\n\t\treturn this;\r\n\t}", "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 }", "private int getBytes(int index, FileChannel out, long position, int length, boolean internal)\r\n/* 211: */ throws IOException\r\n/* 212: */ {\r\n/* 213:233 */ ensureAccessible();\r\n/* 214:234 */ ByteBuffer tmpBuf = internal ? internalNioBuffer() : ByteBuffer.wrap(this.array);\r\n/* 215:235 */ return out.write((ByteBuffer)tmpBuf.clear().position(index).limit(index + length), position);\r\n/* 216: */ }", "public final int getByte() throws IOException {\r\n b3 = 0;\r\n\r\n b3 = (tagBuffer[bPtr] & 0xff);\r\n bPtr += 1;\r\n\r\n return b3;\r\n }", "ByteBuffer readKey(int entryIndex) {\n if (entryIndex == Chunk.NONE) {\n return null;\n }\n\n long keyReference = getKeyReference(entryIndex);\n int[] keyArray = longToInts(keyReference);\n int blockID = keyArray[BLOCK_ID_LENGTH_ARRAY_INDEX] >> KEY_BLOCK_SHIFT;\n int keyPosition = keyArray[POSITION_ARRAY_INDEX];\n int length = keyArray[BLOCK_ID_LENGTH_ARRAY_INDEX] & KEY_LENGTH_MASK;\n\n return memoryManager.getByteBufferFromBlockID(blockID, keyPosition, length);\n }", "static native int jniToBuf(Buf out, long patch);", "public byte[] allocReadIOBuffer(int minSize)\n/* */ {\n/* 154 */ _verifyAlloc(this._readIOBuffer);\n/* 155 */ return this._readIOBuffer = this._bufferRecycler.allocByteBuffer(0, minSize);\n/* */ }", "@Override\n public int peekUnsignedByte(int offset) throws IOException\n {\n if (offset < 0)\n {\n throw new IOException(\"offset is negative\");\n }\n if (offset == 0)\n {\n return randomAccessRead.peek();\n }\n long currentPosition = randomAccessRead.getPosition();\n if (currentPosition + offset >= randomAccessRead.length())\n {\n throw new IOException(\"Offset position is out of range \" + (currentPosition + offset)\n + \" >= \" + randomAccessRead.length());\n }\n randomAccessRead.seek(currentPosition + offset);\n int peekValue = randomAccessRead.read();\n randomAccessRead.seek(currentPosition);\n return peekValue;\n }", "public char at(int pos) {\r\n return fCharBuffer.at(pos);\r\n }" ]
[ "0.6948117", "0.6855674", "0.67000407", "0.65600705", "0.6505571", "0.65008456", "0.64473885", "0.6349648", "0.63409877", "0.6296093", "0.62814164", "0.62510306", "0.6170193", "0.61185944", "0.6086043", "0.6063948", "0.60570884", "0.6055247", "0.60281414", "0.60136694", "0.59838116", "0.5962996", "0.5960882", "0.5957207", "0.5940217", "0.59237516", "0.5915842", "0.5913597", "0.58586824", "0.58552617", "0.5829402", "0.5818962", "0.5785105", "0.57827", "0.57825476", "0.57713073", "0.5748721", "0.5742415", "0.5739963", "0.57207024", "0.5708736", "0.5682566", "0.56777793", "0.5674647", "0.56739414", "0.56494427", "0.56489354", "0.5630625", "0.56281346", "0.5615357", "0.5607212", "0.56054336", "0.5595564", "0.55938613", "0.5585066", "0.55728024", "0.55509686", "0.55497485", "0.5548478", "0.5548153", "0.55439776", "0.5540844", "0.5540142", "0.55301356", "0.5523222", "0.5523222", "0.55162257", "0.5509606", "0.5509506", "0.5506547", "0.5499775", "0.5495815", "0.5475928", "0.5472933", "0.5472933", "0.5470229", "0.54687756", "0.54643136", "0.54542184", "0.5438135", "0.5435634", "0.54233134", "0.54233134", "0.5414963", "0.541427", "0.5406246", "0.54042125", "0.53966796", "0.5395079", "0.53919697", "0.53905153", "0.53898686", "0.5384229", "0.53839386", "0.5374554", "0.5368974", "0.5368159", "0.53660965", "0.53659874", "0.53658205" ]
0.73346233
0
Get array of bytes from file
public byte[] getData(int pos, int size) throws IOException { // data may need to be retrieved from multiple buffers byte[] b = new byte[size]; Buffer buf; for (int i = 0; i < size; i++) { buf = getBufferByPosition(pos + i); b[i] = buf.getByte(pos + i); } return b; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public byte[] file2byte() {\n\t\tbyte[] result = null;\n\t\t\n\t\tif (this.isFile()) {\n\t\t\tBufferedInputStream bufferedInputStream = null;\n\t\t\tByteArrayOutputStream byteArrayOutputStream = null;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tbufferedInputStream = new BufferedInputStream(new FileInputStream(this));\n\t\t\t\tbyteArrayOutputStream = new ByteArrayOutputStream(1024);\n\n\t\t\t\tbyte[] buffer = new byte[1024];\n\t\t\t\tint size = 0;\n\t\t\t\twhile ((size = bufferedInputStream.read(buffer)) != -1) {\n\t\t\t\t\tbyteArrayOutputStream.write(buffer, 0, size);\n\t\t\t\t}\n\t\t\t\tbufferedInputStream.close();\n\n\t\t\t\tresult = byteArrayOutputStream.toByteArray();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (bufferedInputStream != null) bufferedInputStream.close();\n\t\t\t\t\tif (byteArrayOutputStream != null) byteArrayOutputStream.close();\n\t\t\t\t} catch (Exception exception) {\n\t\t\t\t\tbufferedInputStream = null;\n\t\t\t\t\tbyteArrayOutputStream = null;\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public static byte[] readBytes(String file) throws IOException\n {\n try(InputStream in = getInputStream(file))\n {\n byte[] buffer = new byte[512];\n int size = 0;\n int read;\n while((read = in.read(buffer, size, buffer.length - size)) > 0)\n {\n size += read;\n if(size == buffer.length)\n buffer = Arrays.copyOf(buffer, size * 2);\n }\n\n if(size < buffer.length)\n buffer = Arrays.copyOf(buffer, size);\n\n return buffer;\n }\n }", "public static byte[] getBytesFromFile(File file) throws IOException {\r\n\r\n InputStream is = new FileInputStream(file);\r\n\r\n // Get the size of the file\r\n long length = file.length();\r\n\r\n /*\r\n * You cannot create an array using a long type. It needs to be an int\r\n * type. Before converting to an int type, check to ensure that file is\r\n * not loarger than Integer.MAX_VALUE;\r\n */\r\n if (length > Integer.MAX_VALUE) {\r\n System.out.println(\"File is too large to process\");\r\n return null;\r\n }\r\n\r\n // Create the byte array to hold the data\r\n byte[] bytes = new byte[(int) length];\r\n\r\n // Read in the bytes\r\n int offset = 0;\r\n int numRead = 0;\r\n while ((offset < bytes.length) &&\r\n ((numRead = is.read(bytes, offset, bytes.length - offset)) >= 0)) {\r\n\r\n offset += numRead;\r\n\r\n }\r\n\r\n // Ensure all the bytes have been read in\r\n if (offset < bytes.length) {\r\n throw new IOException(\"Could not completely read file \" + file.getName());\r\n }\r\n\r\n is.close();\r\n return bytes;\r\n\r\n }", "public static byte[] readBytes(File file) throws IOException {\n InputStream is = null;\n try {\n is = new FileInputStream(file);\n byte[] result = new byte[(int) file.length()];\n is.read(result);\n return result;\n } finally {\n close(is);\n }\n }", "public static byte[] getBytesFromFile(File file) throws IOException {\n\t\tlong length = file.length();\r\n\r\n\t\t// You cannot create an array using a long type.\r\n\t\t// It needs to be an int type.\r\n\t\t// Before converting to an int type, check\r\n\t\t// to ensure that file is not larger than Integer.MAX_VALUE.\r\n\t\tif (length > Integer.MAX_VALUE) {\r\n\t\t\t// File is too large\r\n\t\t\tthrow new IOException(\"File is too large!\");\r\n\t\t}\r\n\r\n\t\t// Create the byte array to hold the data\r\n\t\tbyte[] bytes = new byte[(int)length];\r\n\r\n\t\t// Read in the bytes\r\n\t\tint offset = 0;\r\n\t\tint numRead = 0;\r\n\r\n\t\tInputStream is = new FileInputStream(file);\r\n\t\ttry {\r\n\t\t\twhile (offset < bytes.length\r\n\t\t\t\t\t&& (numRead=is.read(bytes, offset, bytes.length-offset)) >= 0) {\r\n\t\t\t\toffset += numRead;\r\n\t\t\t}\r\n\t\t} finally {\r\n\t\t\tis.close();\r\n\t\t}\r\n\r\n\t\t// Ensure all the bytes have been read in\r\n\t\tif (offset < bytes.length) {\r\n\t\t\tthrow new IOException(\"Could not completely read file \"+file.getName());\r\n\t\t}\r\n\t\treturn bytes;\r\n\t}", "public static byte[] readBytesFromFile(File f) {\r\n byte[] bytes = null;\r\n try {\r\n int filesize = (int) f.length();\r\n bytes = new byte[filesize];\r\n DataInputStream in = new DataInputStream(new FileInputStream(f));\r\n in.readFully(bytes);\r\n in.close();\r\n } catch (Exception e) {\r\n System.out.println(\"Error reading byte[] from file: \"\r\n + e.getMessage());\r\n return null;\r\n }\r\n return bytes;\r\n }", "public byte[] bytes() throws IOException {\n try(FileInputStream fis = new FileInputStream(file)) {\n return ByteStreams.toByteArray(fis);\n }\n }", "public static byte[] readBytes(File file) throws IOException {\n FileInputStream is = new FileInputStream(file);\n byte[] bytes = new byte[(int) file.length()];\n int read = is.read(bytes);\n for (int totalRead = read; read > 0; ) {\n read = is.read(bytes, totalRead, bytes.length - totalRead);\n }\n is.close();\n return bytes;\n }", "public static byte[] getBytesFromFile(File file) throws IOException {\n InputStream is = new FileInputStream(file);\n\n // Get the size of the file\n long length = file.length();\n\n // You cannot create an array using a long type.\n // It needs to be an int type.\n // Before converting to an int type, check\n // to ensure that file is not larger than Integer.MAX_VALUE.\n if (length > Integer.MAX_VALUE) {\n // File is too large\n }\n\n // Create the byte array to hold the data\n byte[] bytes = new byte[(int)length];\n\n // Read in the bytes\n int offset = 0;\n int numRead = 0;\n while (offset < bytes.length\n && (numRead=is.read(bytes, offset, bytes.length-offset)) >= 0) {\n offset += numRead;\n }\n\n // Ensure all the bytes have been read in\n if (offset < bytes.length) {\n throw new IOException(\"Could not completely read file \"+file.getName());\n }\n\n // Close the input stream and return bytes\n is.close();\n return bytes;\n }", "public static byte[] getBytesFromFile(File file) {\r\n byte[] bytes;\r\n try (InputStream is = new FileInputStream(file)) {\r\n long length = file.length();\r\n if (length > Integer.MAX_VALUE) {\r\n LOG.log(Level.SEVERE, \"File {0} is too large\", file.getName());\r\n bytes = new byte[0];\r\n return bytes;\r\n }\r\n bytes = new byte[(int) length];\r\n int offset = 0;\r\n int numRead = 0;\r\n while (offset < bytes.length\r\n && (numRead = is.read(bytes, offset, bytes.length - offset)) >= 0) {\r\n offset += numRead;\r\n }\r\n if (offset < bytes.length) {\r\n LOG.log(Level.SEVERE, \"Could not completely read file {0}\", file.getName());\r\n bytes = new byte[0];\r\n return bytes;\r\n }\r\n }\r\n catch (IOException ioex) {\r\n LOG.log(Level.SEVERE, \"{0} {1}\", new Object[]{ioex.getMessage(), file.getName()});\r\n bytes = new byte[0];\r\n return bytes;\r\n }\r\n\r\n return bytes;\r\n }", "public static byte[] convertir(File file) {\n\t\tbyte[] a = new byte[(int) file.length()];\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\tfis.read(a);\n\t\t\tfis.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn a;\n\t}", "public static byte[] readAllBytes(String filename) {\n return readAllBytes(filename, true);\n }", "public static byte[] To_Byte_Array (String filename) throws java.security.NoSuchAlgorithmException {\n byte[] data = null;\n // MessageDigest hash = MessageDigest.getInstance(\"SHA-512\");//SHA2 //removed\n\n //Streams, in:\n File textFile;//Textdatei\n FileInputStream in;//Dateieingabe-Stream\n\n try {\n\n textFile = new File(filename);\n in = new FileInputStream(textFile);\n int size = (int)textFile.length(); // Dateilaenge\n int read = 0; // Anzahl der gelesenen Zeichen\n data = new byte[size]; // Lesepuffer\n // Auslesen der Datei\n while (read < size)\n read =+ in.read(data, read, size-read);\n in.close();\n // Schreiben des Lesepuffers in Instanz von MessageDigest und speichern des Hash-Werts in message\n //hash.update (data);//removed\n //message=hash.digest ();//removed\n\n\n }//try\n catch (IOException ex) {\n ex.printStackTrace();\n }\n return data;//added\n }", "public static byte[] readFileAsByteArray(String path) throws IOException {\n return internalReadFileAsByteArray(path).array();\n }", "static byte[] getFileAsByteArray(String filename) {\n\n byte[] fileDisk = new byte[DISK_SIZE];\n\n try {\n byte[] array = Files.readAllBytes(new File(filename).toPath());\n return array;\n } catch (Exception e) {\n System.out.println(\"error\");\n System.exit(0);\n }\n\n return fileDisk;\n }", "byte[] readBytes();", "public abstract byte[] getBytes(String path) throws IOException, ClassNotFoundException;", "public byte[] readByteArrayFromFile(String fileName)\r\n\tthrows FileNotFoundException, IOException {\r\n\t\tFileInputStream theSourceInputStream = new FileInputStream(fileName);\r\n\t\tByteArrayOutputStream theSourceOutputStream = new ByteArrayOutputStream(\r\n\t\t\t\tBUFFER_SIZE);\r\n\t\tcopyStreamContent(theSourceInputStream, theSourceOutputStream);\r\n\t\tbyte[] theResult = theSourceOutputStream.toByteArray();\r\n\t\ttheSourceInputStream.close();\r\n\t\ttheSourceOutputStream.close();\r\n\t\treturn theResult;\r\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 byte[] getBytes() throws IOException {\r\n return mFile.getBytes();\r\n }", "private static byte[] m136428a(File file) throws IOException {\n FileInputStream fileInputStream = new FileInputStream(file);\n byte[] bArr = new byte[((int) file.length())];\n int i = 0;\n while (i < bArr.length) {\n int read = fileInputStream.read(bArr, i, bArr.length - i);\n if (read < 0) {\n break;\n }\n i += read;\n }\n if (i >= bArr.length) {\n fileInputStream.close();\n return bArr;\n }\n StringBuilder sb = new StringBuilder(\"Could not completely read file \");\n sb.append(file.getName());\n throw new IOException(sb.toString());\n }", "byte[] getBytes();", "byte[] getBytes();", "public byte[] getFile(final String file) throws RemoteException;", "public static byte[] bytesFromFile(File file) throws Exception {\n if (!file.exists()) {\n return null;\n }\n FileImageInputStream in = null;\n try {\n byte bytes[] = new byte[(int) file.length()];\n in = new FileImageInputStream(file);\n in.read(bytes);\n return bytes;\n } finally {\n if (in != null) {\n in.close();\n }\n }\n }", "public static byte[] readAll(String filename) {\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(filename);\n\t\t\treturn readAll(fis);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new WrappedException(e);\n\t\t}\n\t}", "static byte[] readContents(File file) {\n if (!file.isFile()) {\n throw new IllegalArgumentException(\"must be a normal file\");\n }\n try {\n return Files.readAllBytes(file.toPath());\n } catch (IOException excp) {\n throw new IllegalArgumentException(excp.getMessage());\n }\n }", "private static byte[] getFileBytes(String filePath) {\n try {\n return Files.readAllBytes(Paths.get(filePath));\n } catch (IOException e) {\n throw new RuntimeException(\"I/O exception reading contents of file \" + filePath, e);\n }\n }", "public static byte[] getByteArrayFromFile(File file) throws UnsupportedEncodingException {\n return (fileLoggerInstance == null) ? new byte[]{} : fileLoggerInstance.getFileContentsAsByteArray(file);\n }", "public byte[] getbyteArray() {\n byte[] output = new byte[header_size+fileData.length];\n output[0] = (byte)((type & 0xff00)>> 8);\n output[1] = (byte)(type & 0xff);\n output[2] = (byte)((length & 0xff00)>> 8);\n\t output[3] = (byte)(length & 0xff);\n output[4] = (byte)((clientID & 0xff00)>> 8);\n output[5] = (byte)(clientID & 0xff);\n output[6] = action;\n byte[] temp2 = ByteBuffer.allocate(4).putInt(sectionLength).array();\n for(int i=0;i<4;i++) {\n output[7+i] = temp2[i]; \n }\n temp2 = ByteBuffer.allocate(4).putInt(filePosition).array();\n for(int j=0;j<4;j++) {\n output[11+j] = temp2[j]; \n }\n //copy file data\n System.arraycopy(fileData, 0,output, 15,fileData.length); \n return output;\n }", "byte[] getByteContent() throws IOException;", "public static byte[] getByteArrayFromFilePath(String filePath) throws IOException {\n InputStream inputStream = new FileInputStream(filePath);\n return Util.toByteArray(inputStream);\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 byte[] readFileToByteArray(String aFileName) {\n byte[] res;\n try {\n res = org.apache.commons.io.FileUtils.readFileToByteArray(new File(aFileName));\n } catch (IOException e) {\n res = null;\n }\n return res;\n }", "public byte[] getFileBytes(){\n\t\treturn fileBytes;\n\t}", "public byte[] readBytes() throws IOException {\n int length = in.readInt();\n byte[] bytes = new byte[length];\n in.readFully(bytes);\n return bytes;\n }", "public static byte[] readBytes(String filePath) {\n\t\ttry {\n\t\t\treturn IOUtils.toByteArray(new FileInputStream(new File(filePath)));\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\treturn null;\n\t}", "public byte[] readfile(int pos) throws IOException\n {\n byte[] bytes = new byte[1024];\n f.seek(1024*pos);\n f.read(bytes);\n return bytes;\n }", "public static byte[] fileToBytes(String filePath) throws IOException {\n final Path path = Paths.get(filePath);\n return Files.readAllBytes(path);\n }", "private static ByteBuffer internalReadFileAsByteArray(String path) throws IOException {\n ByteBuffer byteBuffer = null;\n Path filePath = FileSystems.getDefault().getPath(path);\n try (\n FileChannel fileChannel = FileChannel.open(filePath, StandardOpenOption.READ);) {\n Long size = fileChannel.size();\n if (size > Integer.MAX_VALUE) {\n throw new IOException(MessageFormat.format(\n \"File {0} is too large. Its size is {1,number,integer} bytes which is larger \" +\n \"then this method could handle ( {2,number,integer})\", path, size, Integer.MAX_VALUE));\n }\n byteBuffer = ByteBuffer.allocate(size.intValue());\n int readBytes = 0;\n int totalReadBytes = 0;\n int failureCounter = 0;\n while ((readBytes = fileChannel.read(byteBuffer)) >= 0 && totalReadBytes < size.intValue()) {\n if (readBytes > 0) {\n totalReadBytes += readBytes;\n if (failureCounter > 0) {\n failureCounter = 0;\n }\n } else {\n if (++failureCounter >= MAX_READ_FAILURES) {\n throw new IOException(MessageFormat.format(\"File {0} could not be read for unknown reason\", path));\n }\n }\n }\n }\n return (ByteBuffer) byteBuffer.flip();\n }", "public static byte[] getByteArray(Operation opcode, String filename) {\n\n\t\tByteArrayOutputStream stream = new ByteArrayOutputStream();\n\n\t\tstream.write(0); // Initial 0 byte.\n\t\tstream.write(opcode.ordinal()); // 0 for error, 1 for read, 2 for write\n\t\tstream.write(filename.getBytes(), 0, filename.length());\n\t\tstream.write(0); // Separator\n\t\tstream.write(Config.DEFAULT_MODE.toString().getBytes(), 0, Config.DEFAULT_MODE.toString().length());\n\t\tstream.write(0); // Ending 0\n\n\t\treturn stream.toByteArray();\n\t}", "private byte[] readFile(String fileLocation){\n File myFile = new File(fileLocation);\n byte myByteArray[] = new byte[(int) myFile.length()];\n try {\n BufferedInputStream reader = new BufferedInputStream(new FileInputStream(myFile));\n reader.read(myByteArray,0,myByteArray.length);\n reader.close();\n }catch(FileNotFoundException e){\n System.out.println(\"The file has not been found: \"+e.getMessage());\n }catch(IOException e){\n System.out.println(\"problem with reading the file: \"+e.getMessage());\n }\n return myByteArray;\n }", "List<Byte> getAsBytes();", "byte[] readBytes(File f) throws Exception {\n\n byte[] b_total = new byte[actualSize];\n int step = actualSize / N;\n\n byte[] b = new byte[step];\n ByteBuffer bb = ByteBuffer.allocate(step);\n\n for (int i = 0; i < N; ++i) {\n \n // READ NEXT PORTION OF BYTES VIA FIS:\n\n fis.read(b);\n System.arraycopy(b, 0, b_total, i * step, b.length);\n\n ++i;\n \n if (i < N) {\n\n bb.clear(); // needed to prepare ByteBuffer for channel read / put operations \n\n // READ NEXT PORTION OF BYTES VIA CHANNEL:\n\n inChannel.read(bb);\n byte[] arr = bb.array();\n System.arraycopy(arr, 0, b_total, i * step, arr.length);\n }\n }\n\n return b_total;\n }", "public byte[] fileToBlob() throws IOException {\n long numBlocks = 0L;\n int blockSize = 0x10000;\n int leftOver = 0;\n int pos = 0;\n OutputStream stream;\n numBlocks = BigInteger.valueOf(m_size).divide(BigInteger.valueOf(blockSize)).longValue();\n leftOver = BigInteger.valueOf(m_size).mod(BigInteger.valueOf(blockSize)).intValue();\n byte[] binByte2 = new byte[m_size];\n System.arraycopy(m_parent.m_binArray, m_startData, binByte2, 0, m_size);\n return binByte2;\n }", "private byte[] getStreamArquivo(File arquivo) throws IOException\n\t{\n\t\t/* Define o tamanho do buffer a ser lido do arquivo (max 32kb),\n\t\t * faz a criacao de um buffer em memoria para ir armazenando os dados\n\t\t * lidos e entao apos a leitura faz o envio dos dados para o GPP\n\t\t */\n\t\tint sizeBuffer = Integer.parseInt(getPropriedade(\"ordemVoucher.tamanhoBufferArquivos\"));\n\t\tFileInputStream fileInput = new FileInputStream(arquivo);\n\t\tByteArrayOutputStream bufferArquivo = new ByteArrayOutputStream();\n\n\t\tbyte[] data = new byte[sizeBuffer];\n\t\tint count=0;\n\t\twhile ( (count = fileInput.read(data)) != -1 )\n\t\t\tbufferArquivo.write(data,0,count);\n\t\t\n\t\treturn bufferArquivo.toByteArray();\n\t}", "public byte[] getContents() throws VlException\n {\n long len = getLength();\n // 2 GB files cannot be read into memory !\n\n // zero size optimization ! \n\n if (len==0) \n {\n return new byte[0]; // empty buffer ! \n }\n\n if (len > ((long) VRS.MAX_CONTENTS_READ_SIZE))\n throw (new ResourceToBigException(\n \"Cannot read complete contents of a file greater then:\"\n + VRS.MAX_CONTENTS_READ_SIZE));\n\n int intLen = (int) len;\n return getContents(intLen);\n\n }", "public byte[] readFile(RAFFileEntry fileEntry) throws IOException {\n\t\tarchiveFile.setPosition(fileEntry.getDataOffset());\n\t\tif (fileEntry.getDataSize() > 0xFFFFFFFFL) throw new IOException(\"File too big.\");\n\t\tbyte[] data = archiveFile.readBytes((int) fileEntry.getDataSize());\n\t\treturn data;\n\t}", "public byte[] read();", "public static byte[] convertir(String ruta) {\n\t\tFile file = new File(ruta);\n\t\tbyte[] a = new byte[(int) file.length()];\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(file);\n\t\t\tfis.read(a);\n\t\t\tfis.close();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn a;\n\t}", "public static byte[] ReadFileSync(String filePath)\n {\n byte[] bytes = new byte[0];\n try\n {\n //Instantiate the file object\n File file = new File(filePath);\n //Instantiate the input stread\n InputStream insputStream = new FileInputStream(file);\n long length = file.length();\n bytes = new byte[(int) length];\n \n insputStream.read(bytes);\n insputStream.close();\n\n }\n catch(Exception e)\n {\n Log.e(\"IO\", \"Failed to load file async: \"+filePath+e.toString());\n }\n return bytes;\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 static byte[] getByteArray(Context context, String fileName) throws IOException {\n return Util.toByteArray(getInputStream(context, fileName));\n }", "byte[] getFile(String sha) throws Exception;", "public byte[] readBytes() {\n\t\tif (bufferIndex == bufferLast)\n\t\t\treturn null;\n\n\t\tsynchronized (buffer) {\n\t\t\tint length = bufferLast - bufferIndex;\n\t\t\tbyte outgoing[] = new byte[length];\n\t\t\tSystem.arraycopy(buffer, bufferIndex, outgoing, 0, length);\n\n\t\t\tbufferIndex = 0; // rewind\n\t\t\tbufferLast = 0;\n\t\t\treturn outgoing;\n\t\t}\n\t}", "private static String readAllBytesJava7(String filePath) {\n String content = \"\";\n\n try {\n content = new String(Files.readAllBytes(Paths.get(filePath)));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return content;\n }", "public static byte[] readBytes(String resource) {\n TByteList \t\tresult;\n InputStream \tin;\n byte[]\t\tbuffer;\n int \t\tread;\n\n result = new TByteArrayList();\n in = null;\n buffer = new byte[4096];\n\n try {\n in = Content.class.getClassLoader().getResourceAsStream(resource);\n while ((read = in.read(buffer)) > 0)\n\tresult.add(buffer, 0, read);\n }\n catch (Exception e) {\n LOGGER.log(Level.SEVERE, \"Failed to read bytes from resource file: \" + resource, e);\n return null;\n }\n finally {\n IOUtils.closeQuietly(in);\n }\n\n return result.toArray();\n }", "public byte[] readRawFile(int fileID)throws Exception{\n\t\tResources rs = context.getResources();\r\n\t\tInputStream inputStream = rs.openRawResource(fileID);\r\n\t\tByteArrayOutputStream mArrayOutputStream = new ByteArrayOutputStream();\r\n\t\tbyte [] b = new byte[1024];\r\n\t\tint length =0;\r\n\t\twhile((length=inputStream.read(b, 0, b.length))!=-1){\r\n\t\t\tmArrayOutputStream.write(b, 0, length);\r\n\t\t}\r\n\t\tif(inputStream!=null){\r\n\t\t\tinputStream.close();\r\n\t\t}\r\n\t\treturn mArrayOutputStream.toByteArray();\r\n\t}", "public static byte[] writeToByteArray(File file) throws IOException {\n return writeToByteArray(new FileInputStream(file));\n }", "private byte[] getContent(File f) {\n byte[] content = null;\n\n try {\n FileInputStream fis = new FileInputStream(f);\n byte[] temp = new byte[fis.available()];\n fis.read(temp);\n fis.close();\n content = temp;\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n\n return content;\n }", "public static byte[] readFileFully(File source) {\n DataInputStream raf = null;\n int length = (int)source.length();\n if(length <= 0)\n return null;\n\n byte[] data = new byte[length];\n try {\n raf = new DataInputStream(new BufferedInputStream(new FileInputStream(source)));\n raf.readFully(data);\n } catch(IOException ioe) {\n return null;\n } finally {\n IOUtils.close(raf);\n }\n \n return data;\n }", "private static byte[] getKeyData(String filePath) {\n File file = new File(filePath);\n byte[] buffer = new byte[(int) file.length()];\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(file);\n fis.read(buffer);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null)\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return buffer;\n }", "public byte[] readBytes(int inNumberMessages) throws IOException;", "public byte[] loadData(FileWindow window)\n\t\t{\n\t\t\tbyte[] result = null;\n\t\t\tFileChannel channel = getFileChannel(false);\n\t\t\tif (channel != null)\n\t\t\t{\n\t\t\t\tByteBuffer buffer = ByteBuffer.allocate(window.getFilePartSize());\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tchannel.read(buffer, window.getFilePartOffset());\n\t\t\t\t\tif (buffer.hasArray())\n\t\t\t\t\t{\n\t\t\t\t\t\tresult = buffer.array();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tcatch (IOException e)\n\t\t\t\t{\n\t\t\t\t\tlog.error(\"Error reading from file channel \" + channel, e);\n\t\t\t\t}\n\t\t\t\tfinally\n\t\t\t\t{\n\t\t\t\t\tIOUtils.closeQuietly(channel);\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t}", "protected byte[] bytesFromInputStream (java.io.InputStream stream) {\n\tbyte[] rawBytes = null;\n\tint rawBytesLength = 0;\n\n\ttry {\n\t\tint bytesRead = 0;\n\t\tjava.util.Vector byteBuffers = new java.util.Vector();\n\t\tjava.util.Vector byteBufferLengths = new java.util.Vector();\n\t\twhile (bytesRead != -1) {\n\t\t\tbyte[] nextRawBytes = new byte[2000];\n\t\t\tbytesRead = stream.read(nextRawBytes);\n\t\t\tif (bytesRead > 0) {\n\t\t\t\trawBytesLength += bytesRead;\n\t\t\t\tbyteBuffers.addElement(nextRawBytes);\n\t\t\t\tbyteBufferLengths.addElement(new Integer(bytesRead));\n\t\t\t}\n\t\t}\n\n\t\tif (rawBytesLength > 0) {\n\t\t\trawBytes = new byte[rawBytesLength];\n\t\t\tint rawBytesPosition = 0;\n\t\t\tint byteBufferCount = byteBuffers.size();\n\t\t\tfor (int i = 0; i < byteBufferCount; i++) {\n\t\t\t\tbyte[] bytes = (byte[])byteBuffers.elementAt(i);\n\t\t\t\tbytesRead = ((Integer)byteBufferLengths.elementAt(i)).intValue();\n\t\t\t\tfor (int j = 0; j < bytesRead; j++)\n\t\t\t\t\trawBytes[rawBytesPosition + j] = bytes[j];\n\t\t\t\trawBytesPosition += bytesRead;\n\t\t\t}\n\t\t}\n\t}\n\tcatch (java.io.IOException exc) {\n\t\tRuntimeException rtExc = new RuntimeException(exc.getMessage());\n\t\trtExc.fillInStackTrace();\n\t\tthrow rtExc;\n\t}\n\t\n\treturn rawBytes;\n}", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "private byte[] convertPhotoFileTOBytes(File file) throws IOException {\r\n FileInputStream fis = new FileInputStream(file);\r\n Bitmap bm = BitmapFactory.decodeStream(fis);\r\n return getBytesFromBitmap(bm);\r\n }", "default byte[] getBytes() throws IOException {\n try (InputStream is = getInputStream()) {\n return IOUtils.toByteArray(is);\n }\n }", "public byte[] toByteArray() {\n byte[] array = new byte[count];\n System.arraycopy(buf, 0, array, 0, count);\n return array;\n }", "public byte[] getFile() {\n return file;\n }", "public static byte[] readBytes(InputStream in) throws IOException\n\t{\n\t\tbyte[] buffer = new byte[8192];\n\t int bytesRead;\n\t ByteArrayOutputStream output = new ByteArrayOutputStream();\n\t while ((bytesRead = in.read(buffer)) != -1)\n\t {\n\t output.write(buffer, 0, bytesRead);\n\t }\n\t return output.toByteArray();\n\t}", "byte[] getData();", "byte[] getData();", "byte[] getData();", "byte[] getData();", "private byte[] readSampleData(String filePath) {\n File sampleFile = new File(filePath);\n byte[] buffer = new byte[(int) sampleFile.length()];\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(sampleFile);\n readFill(fis, buffer);\n } catch (IOException e) {\n throw new RuntimeException(e);\n } finally {\n try {\n fis.close();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return buffer;\n }", "public static List<Integer> readBinaryFile(String filename) throws IOException\n {\n List<Integer> binary = new ArrayList<>();\n\n FileInputStream inputStream = new FileInputStream(filename);\n BufferedInputStream bufferedInputStream = new BufferedInputStream(inputStream);\n\n byte[] byteInput = bufferedInputStream.readAllBytes();\n\n String stringInput = new String(byteInput);\n\n for(char c : stringInput.toCharArray())\n {\n binary.add((int) (c - '0'));\n }\n\n return binary;\n }", "public byte[] getBytesFromFile(String imagePath) throws IOException {\n File file = new File(imagePath);\n return Files.readAllBytes(file.toPath());\n }", "public abstract byte[] toByteArray();", "public abstract byte[] toByteArray();", "public byte[] readRawBytes() throws IOException {\n return readRawBytes(Type.BYTES.code);\n }", "ByteSequence getByteSequence(Key key) throws IOException;", "public byte[] toByteArray() throws IOException {\n/* */ COSInputStream cOSInputStream;\n/* 501 */ ByteArrayOutputStream output = new ByteArrayOutputStream();\n/* 502 */ InputStream is = null;\n/* */ \n/* */ try {\n/* 505 */ cOSInputStream = createInputStream();\n/* 506 */ IOUtils.copy((InputStream)cOSInputStream, output);\n/* */ }\n/* */ finally {\n/* */ \n/* 510 */ if (cOSInputStream != null)\n/* */ {\n/* 512 */ cOSInputStream.close();\n/* */ }\n/* */ } \n/* 515 */ return output.toByteArray();\n/* */ }", "public static void main(String[] args) {\n String filename = \"test.txt\";\n FileStream.getFileAsByteArray(filename);\n }", "public byte[] toByteArray() throws IOException\n {\n try (InputStream is = createInputStream())\n {\n return is.readAllBytes();\n }\n }", "public byte[] getFileContent() throws IOException {\n if (data != null) {\n return data;\n }\n if (tempFile != null) {\n return FileUtil.readBytes(tempFile);\n }\n return null;\n }", "public byte[] getData();", "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 }", "public static char[] getFileContents(File file) {\n // char array to store the file contents in\n char[] contents = null;\n try {\n BufferedReader br = new BufferedReader(new FileReader(file));\n StringBuffer sb = new StringBuffer();\n String line = \"\";\n while ((line = br.readLine()) != null) {\n // append the content and the lost new line.\n sb.append(line + \"\\n\");\n }\n contents = new char[sb.length()];\n sb.getChars(0, sb.length() - 1, contents, 0);\n\n assert (contents.length > 0);\n } catch (IOException e) {\n System.out.println(e.getMessage());\n }\n\n return contents;\n }", "public byte[] readRawByte() throws IOException {\n byte[] bytes = new byte[2];\n bytes[0] = (byte) Type.BYTE.code;\n in.readFully(bytes, 1, 1);\n return bytes;\n }", "public byte[] readBytes(int len) throws IOException {\n if (len > 1024) {\n throw new RuntimeException(String.format(\"Attempted to read %d bytes at once, file is probably corrupted.\", len));\n }\n byte[] buf = new byte[len];\n int n = 0;\n while (n < len) {\n int count = inputStream.read(buf, n, len - n);\n if (count < 0) {\n throw new EOFException();\n }\n n += count;\n }\n return buf;\n }", "public byte[] readBytes() {\n try {\n int len = available();\n if (len > 0) {\n byte bytes[] = new byte[len];\n m_DataInputStream.read(bytes);\n\n return bytes;\n }\n else {\n return new byte[0];\n }\n }\n catch (IOException e) {\n return new byte[0];\n }\n }", "byte [] getBuffer ();", "public byte[] getMagic() {\n byte[] magic = null;\n long pos = 0;\n try {\n // cache the current position in the file so we can return to it.\n pos = _backing.getFilePointer();\n // Position to the 0 byte of the actual file.\n position(0L);\n ByteBuffer magic_buffer = ByteBuffer.allocate(2);\n int num = read(magic_buffer);\n if (num == 2) {\n // successful read of the 2 bytes.\n _backing.seek(pos);\n magic = magic_buffer.array();\n }\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n return magic;\n }", "public static byte[] convertImageToByteArray(File f) {\n\t\tBitmap bm = BitmapFactory.decodeFile(f.getAbsolutePath());\n\t\tByteArrayOutputStream baos = new ByteArrayOutputStream();\n\t\tbm.compress(Bitmap.CompressFormat.JPEG, 100, baos); // bm is the bitmap\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// object\n\t\tbyte[] b = baos.toByteArray();\n\t\treturn b;\n\t}", "public byte[] getReportFile(){\n \tbyte[] result = new byte[this.reportFile.length];\n System.arraycopy(this.reportFile, 0, result, 0, this.reportFile.length);\n return result;\n }", "public byte[] getAssetFileToByte(AssetManager assetManager, String path) throws IOException {\n InputStream inputStream = assetManager.open(path);\n byte[] fileBytes = new byte[inputStream.available()];\n inputStream.read(fileBytes);\n inputStream.close();\n return fileBytes;\n }", "public byte[] getFilecontent() {\n return filecontent;\n }", "byte[] getFile(String filename) throws NoSuchFileException;", "public byte[] deserializeBinFile(byte[] buf){\n int size = buf.length;\n ByteBuffer buffer = ByteBuffer.wrap(buf);\n msgType = buffer.getShort(0);\n byte[] srcIP_temp = new byte[15];\n System.arraycopy(buf, 2, srcIP_temp, 0, 15);\n String srcIP_str = new String(srcIP_temp);\n srcIP = srcIP_str.trim();\n srcPort = buffer.getInt(17);\n desCost = buffer.getFloat(21);\n byte[] desIP_temp = new byte[15];\n System.arraycopy(buf, 25, desIP_temp, 0, 15);\n String desIP_str = new String(desIP_temp);\n desIP = desIP_str.trim();\n desPort = buffer.getInt(40);\n byte[] filenameBuf = new byte[filenameSize];\n System.arraycopy(buf, 44, filenameBuf, 0, filenameSize);\n String filename_str = new String(filenameBuf);\n filename = filename_str.trim();\n offset = buffer.getInt(44 + filenameSize);\n checksum = buffer.getShort(44+filenameSize+offsetSize);\n int pos = 44+filenameSize+offsetSize+2;\n if(pos>=size) return null;\n byte[] binBytes = new byte[size-pos];\n System.arraycopy(buf, pos, binBytes, 0, binBytes.length);\n return binBytes;//the returned bin array which does not include the offset.\n }", "List<byte[]> asByteArrayList();" ]
[ "0.77748996", "0.76928115", "0.76779", "0.75868803", "0.75799495", "0.75562876", "0.7518913", "0.74861276", "0.74798197", "0.7463057", "0.7318034", "0.7274702", "0.71362346", "0.7123982", "0.7108218", "0.70990115", "0.70922047", "0.70570546", "0.7053897", "0.7050992", "0.70289236", "0.7018146", "0.7018146", "0.6998141", "0.69737256", "0.6943065", "0.6934826", "0.69302857", "0.6777765", "0.67537093", "0.67284304", "0.67182374", "0.6698984", "0.66419643", "0.65874594", "0.6565302", "0.65627944", "0.6546532", "0.6543729", "0.64672744", "0.64474523", "0.6441136", "0.64383155", "0.64179707", "0.64101535", "0.6391823", "0.638632", "0.6364586", "0.6357473", "0.63499737", "0.63458854", "0.63348204", "0.63173187", "0.63172185", "0.6284494", "0.62330157", "0.6231696", "0.6215801", "0.6191616", "0.6176545", "0.61366415", "0.61325175", "0.6105545", "0.61015713", "0.6099107", "0.60833913", "0.6076274", "0.60751134", "0.60738444", "0.60669786", "0.6065042", "0.60573816", "0.60573816", "0.60573816", "0.60573816", "0.6032788", "0.60314065", "0.60196406", "0.5981319", "0.5981319", "0.5972076", "0.59546703", "0.5951101", "0.5929559", "0.59254175", "0.591918", "0.5918257", "0.59136623", "0.5913433", "0.5912909", "0.59006697", "0.5879958", "0.5866148", "0.5849738", "0.58429694", "0.5841449", "0.5836028", "0.583452", "0.5821837", "0.5808643", "0.5803622" ]
0.0
-1
Write data to buffer(s)
public void writeData(byte[] b, int pos) throws IOException { Buffer buf; for (int i = 0; i < b.length; i++) { buf = getBufferByPosition(pos + i); buf.setByte(b[i], pos + i); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void write(byte[] buffer);", "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}", "void write(byte[] buffer, int bufferOffset, int length) throws IOException;", "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 }", "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 }", "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}", "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 abstract int writeData(int address, byte[] buffer, int length);", "public void write(byte[] data, long offset);", "@Override\n public void write(final byte[] data) throws IOException {\n write(data, 0, data.length);\n }", "public void write(ByteBuffer buffer) throws IOException {\n _channel.write(buffer);\n }", "@Override\n public void write(byte[] data) throws IOException {\n for (int i = 0; i < data.length; i++) {\n write(data[i]);\n }\n }", "@Override\n public void write(byte[] buf) throws IOException;", "void write(ByteBuffer b, int off, int len) throws IOException;", "@Override\n public void write(byte[] buf, int offset, int size) throws IOException;", "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 }", "void writeCurrentBuffer();", "private void writeData(String data) {\n try {\n outStream = btSocket.getOutputStream();\n } catch (IOException e) {\n }\n\n String message = data;\n byte[] msgBuffer = message.getBytes();\n\n try {\n outStream.write(msgBuffer);\n } catch (IOException e) {\n }\n }", "public synchronized void write(String data){\n\t\tlog.debug(\"[SC] Writing \"+data, 4);\n\t\twriteBuffer.add(data.getBytes());\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[] data, int off, int len) throws IOException {\n for (int i = off; i < len; i++) {\n write(data[i]);\n }\n }", "@Override\n\tpublic void showByteWrite(ByteBuffer data)\n\t{\n\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 write(int location, ByteBuffer data)\n throws DataOrderingException;", "public void write(byte b[]) throws IOException;", "@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}", "public StreamWriter write(byte[] buffer)\r\n {\r\n \t_stream.write(buffer,0,buffer.length);\r\n\t\treturn this;\r\n }", "void write(byte b[]) throws IOException;", "void send(ByteBuffer data) throws CCommException, IllegalStateException;", "private void sendData() {\n final ByteBuf data = Unpooled.buffer();\n data.writeShort(input);\n data.writeShort(output);\n getCasing().sendData(getFace(), data, DATA_TYPE_UPDATE);\n }", "@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}", "@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }", "void send(ByteBuffer data, Address addr) throws CCommException, IllegalStateException;", "@Override\n protected void sendBuffer(byte[] buffer) {\n final UsbSerialDriver serialDriver = serialDriverRef.get();\n if (serialDriver != null) {\n try {\n serialDriver.write(buffer, 500);\n } catch (IOException e) {\n Log.e(TAG, \"Error Sending: \" + e.getMessage(), e);\n }\n }\n }", "public abstract void write(byte[] b);", "public void write(BufferedDataOutputStream o) throws FitsException {\n\n this.writeTrueData(o);\n byte[] padding = new byte[getPadding()];\n try {\n o.writePrimitiveArray(padding);\n } catch (IOException e) {\n throw new FitsException (\"Error writing padding: \"+e);\n }\n\n }", "public void write(byte buffer[], int bufferOffset,int nrOfBytes) throws VlException\n {\n write(0,buffer,bufferOffset,nrOfBytes);\n }", "public void write(byte b[], int off, int len) throws IOException;", "public void sendData(IoBuffer outData) {\n\t\ttry {\n\t\t\tsession.write(outData);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void write(byte buffer[],int nrOfBytes) throws VlException\n {\n write(0,buffer,0,nrOfBytes);\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 static native int write(int fd, byte[] data, int off, int len) throws IOException;", "public void write(DataOutputStream out) throws IOException;", "boolean write(byte[] data, int offset, int length, long time);", "public void write(ByteBuffer b) throws IOException {\n raos.write(b);\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}", "public void write(byte[] buffer, int offset, int count) {\n try {\n if(buffer==null){\n Log.w(TAG, \"Can't write to device, nothing to send\");\n return;\n }\n //This would be a good spot to log out all bytes received\n mmOutStream.write(buffer, offset, count);\n if(connectionSuccessful == null){\n connectionSuccessful = false;\n }\n //Log.w(TAG, \"Wrote out to device: bytes = \"+ count);\n } catch (IOException|NullPointerException e) { // STRICTLY to catch mmOutStream NPE\n // Exception during write\n //OMG! WE MUST NOT BE CONNECTED ANYMORE! LET THE USER KNOW\n Log.e(TAG, \"Error sending bytes to connected device!\");\n connectionLost();\n }\n }", "public static void writeBytes(SocketChannel channel, byte[] data)\n {\n try {\n ByteBuffer buffer = null;\n buffer =\n ByteBuffer.wrap(data);\n channel.write(buffer);\n buffer.clear();\n }\n catch (IOException e) {\n throw new WrappingException(e);\n }\n }", "@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 }", "public void writedata(byte b) throws Exception{\n ByteBuffer byteBuffer = ByteBuffer.wrap(\"hello\".getBytes(\"UTF-8\"));\n// byteBuffer.flip();\n client.write(byteBuffer);\n byteBuffer.clear();\n client.close();\n\n }", "public int write(ByteBuffer buffer) throws IOException, BadDescriptorException {\n checkOpen();\n \n return internalWrite(buffer);\n }", "@Override\n public void write(ByteBuffer b, int off, int len)\n throws IOException {\n byteBufferStreamOutput.write(b, off, len);\n }", "@Override\r\n\tpublic void write(IByteBuffer target, long offset) {\n\r\n\t}", "public void write(final byte[] data, final int offset, final int len) throws IOException {\n checkOpened();\n dos.write(data, offset, len);\n flush();\n }", "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 }", "public void sendData(byte[] data) {\n\t\tIoBuffer buf = IoBuffer.allocate(data.length + 10);\n\t\tbuf.put(data);\n\t\tbuf.flip();\n\t\tsendData(buf);\n\t}", "public void send(byte[] data) throws IOException {\n dataOutput.write(data);\n dataOutput.flush();\n }", "@Override\r\n\tpublic void PushToBuffer(ByteBuffer buffer)\r\n\t{\r\n\t\r\n\t}", "public void write( byte[] wBuf ) throws IOException {\n\t\tthis.write( wBuf, 0, wBuf.length );\n\t\t}", "public abstract void writeData(DataOutput dout) throws IOException;", "public void write(byte b[]) throws IOException\n {\n checkThreshold(b.length);\n getStream().write(b);\n written += b.length;\n }", "native int _writeSerialPort(int port, byte data[]);", "public void write(WriteOnly data) {\n\t\tdata.writeData(\"new data\"); // Ok\n\t}", "public void append(IoBuffer buffer) {\n data.offerLast(buffer);\n updateBufferList();\n }", "@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 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 }", "void writeBlock(int blockId, byte[] buffer) throws IOException;", "void flushBuffer();", "@Override\n public void write(Data dataPacket) throws IOException {\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 }", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}", "public void write(String[] buf) throws IOException;", "public abstract void writeToStream(DataOutputStream dataOutputStream);", "boolean write(final ByteBuffer src);", "public void sendPacket(String data) throws IOException {\n\n BufferedWriter out = new BufferedWriter(new OutputStreamWriter(socket.getOutputStream()));\n out.write(data + \"\\0\");\n out.flush();\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/* */ }", "public void writePacketData(PacketBuffer buf) throws IOException {\n buf.writeResourceLocation(this.field_244320_a);\n }", "public abstract void writeBytes(byte[] b, int offset, int length) throws IOException;", "public void flush(){\r\n mBufferData.clear();\r\n }", "@Override\n public void stream(T data) {\n channel.write(new DataMessage<>(data));\n }", "public void write(byte[] data) throws IOException {\r\n try {\r\n os.write(data);\r\n } catch (IOException io) {\r\n if (!cbImpl.checkMobileNetwork()) {\r\n throw new WrapperIOException(new TransportException(io.getMessage(), io,\r\n TransportException.NO_NETWORK_COVERAGE));\r\n }\r\n throw io;\r\n }\r\n }", "private static void writeDATA(int data) {\n writeByte(true,data);\n }", "public void write(byte[] pBuf) throws IOException {\n this.write(pBuf, 0, pBuf.length);\n }", "public\n static\n void\n write( OutputStream os,\n ByteBuffer buf )\n throws IOException\n {\n inputs.notNull( os, \"os\" );\n inputs.notNull( buf, \"buf\" );\n\n os.write( buf.array(), arrayPosOf( buf ), buf.remaining() );\n }", "public int write(byte[] buffer) {\n router.write(buffer, Constants.MESSAGE_ALL, null);\n return Constants.SUCCESS;\n }", "private void writeData(String data) throws IOException\n {\n this.writer.println(data);\n this.writer.flush();\n }", "private void sendData(String data) {\n\n if (!socket.isConnected() || socket.isClosed()) {\n Toast.makeText(getApplicationContext(), \"Joystick is disconnected...\",\n Toast.LENGTH_LONG).show();\n return;\n }\n\n\t\ttry {\n\t\t\tOutputStream outputStream = socket.getOutputStream();\n\n byte [] arr = data.getBytes();\n byte [] cpy = ByteBuffer.allocate(arr.length+1).array();\n\n for (int i = 0; i < arr.length; i++) {\n cpy[i] = arr[i];\n }\n\n //Terminating the string with null character\n cpy[arr.length] = 0;\n\n outputStream.write(cpy);\n\t\t\toutputStream.flush();\n\n Log.d(TAG, \"Sending data \" + data);\n\t\t} catch (IOException e) {\n Log.e(TAG, \"IOException while sending data \"\n + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t} catch (NullPointerException e) {\n Log.e(TAG, \"NullPointerException while sending data \"\n + e.getMessage());\n\t\t}\n\t}", "public synchronized void write(byte[] buf, int off, int len)\n\t\t\t\tthrows IOException {\n\t\t\tsuper.write(buf, off, len);\n\t\t}", "@Override\n public void write(final byte[] data, final int offset, final int length)\n throws IOException {\n if (offset < 0 || length < 0 || length > data.length - offset) {\n throw new IndexOutOfBoundsException();\n }\n\n writeInternal(data, offset, length);\n }", "public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }", "public void sendData(byte[] data) {\r\n\t\t//send packet\r\n\t\ttry {\r\n\t\t\tout.write(data);\r\n\t\t} catch(IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "public void write(int b) \r\n {\r\n \tint newcount = count + 1;\r\n \tif (newcount > buf.length) \r\n \t{\r\n \t\tbyte newbuf[] = new byte[Math.max(buf.length << 1, newcount)];\r\n \t\tSystem.arraycopy(buf, 0, newbuf, 0, count);\r\n \t\tbuf = newbuf;\r\n \t}\r\n \tbuf[count] = (byte)b;\r\n \tcount = newcount;\r\n }", "@Override\r\n\tpublic void addToBuffer(byte[] buff, int len) {\r\n\t\tbios.write(buff, 0, len);\r\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}", "public void write(int ireg, byte[] data)\n {\n try\n {\n synchronized (this.lock)\n {\n // Wait until we can write to the write cache\n while (this.writeCacheStatus != WRITE_CACHE_STATUS.IDLE)\n {\n this.lock.wait();\n }\n\n // Indicate where we want to write\n this.i2cDevice.enableI2cWriteMode(ireg, data.length);\n \n // Indicate we are dirty so the callback will write us out\n this.writeCacheStatus = WRITE_CACHE_STATUS.DIRTY;\n\n // Provide the data we want to write\n this.writeCacheLock.lockInterruptibly();\n try\n {\n System.arraycopy(data, 0, this.writeCache, dibCacheOverhead, data.length);\n }\n finally\n {\n this.writeCacheLock.unlock();\n }\n }\n }\n catch (InterruptedException e)\n {\n throw SwerveRuntimeException.wrap(e);\n }\n }", "void write();", "public abstract void write(DataOutput out) throws IOException;", "protected abstract void sendInternal(ByteBuffer outputBuffer) throws IOException;", "@SuppressWarnings(\"GuardedByChecker\")\n private void sendFlushDataLocked() {\n assert mWriteState == State.WAITING_FOR_FLUSH;\n int size = mFlushData.size();\n ByteBuffer[] buffers = new ByteBuffer[size];\n int[] positions = new int[size];\n int[] limits = new int[size];\n for (int i = 0; i < size; i++) {\n ByteBuffer buffer = mFlushData.poll();\n buffers[i] = buffer;\n positions[i] = buffer.position();\n limits[i] = buffer.limit();\n }\n assert mFlushData.isEmpty();\n assert buffers.length >= 1;\n mWriteState = State.WRITING;\n mRequestHeadersSent = true;\n if (!CronetBidirectionalStreamJni.get().writevData(mNativeStream,\n CronetBidirectionalStream.this, buffers, positions, limits,\n mEndOfStreamWritten && mPendingData.isEmpty())) {\n // Still waiting on flush. This is just to have consistent\n // behavior with the other error cases.\n mWriteState = State.WAITING_FOR_FLUSH;\n throw new IllegalArgumentException(\"Unable to call native writev.\");\n }\n }", "public void writeTo(OutputStream os) throws IOException, MessagingException {\n/* 96 */ LineOutputStream los = null;\n/* 97 */ if (os instanceof LineOutputStream) {\n/* 98 */ los = (LineOutputStream)os;\n/* */ } else {\n/* 100 */ los = new LineOutputStream(os);\n/* */ } \n/* */ \n/* */ \n/* 104 */ Enumeration hdrLines = getAllHeaderLines();\n/* 105 */ while (hdrLines.hasMoreElements()) {\n/* 106 */ los.writeln(hdrLines.nextElement());\n/* */ }\n/* */ \n/* 109 */ los.writeln();\n/* */ \n/* */ \n/* 112 */ getDataHandler().writeTo(os);\n/* 113 */ os.flush();\n/* */ }" ]
[ "0.7922677", "0.7440814", "0.73631024", "0.7257575", "0.71896505", "0.70802444", "0.70523447", "0.7037977", "0.6992382", "0.68667054", "0.68614286", "0.68439937", "0.6797445", "0.6765677", "0.6754897", "0.6741536", "0.6739669", "0.6729746", "0.6686481", "0.6610997", "0.66060144", "0.6594041", "0.6591114", "0.65224427", "0.6513521", "0.6501737", "0.64970016", "0.64120054", "0.637362", "0.6369821", "0.6351936", "0.6350156", "0.6337918", "0.6329268", "0.6314322", "0.62988263", "0.6297877", "0.6293266", "0.6283718", "0.6277499", "0.6242186", "0.62418276", "0.622103", "0.6210864", "0.62067926", "0.62048054", "0.61932266", "0.6184216", "0.61809504", "0.6178491", "0.6172824", "0.61345327", "0.61200094", "0.61194783", "0.6116283", "0.6110919", "0.60918707", "0.60657334", "0.6053082", "0.60507494", "0.6050185", "0.6047912", "0.6032181", "0.60189295", "0.6012132", "0.6011583", "0.60098803", "0.59991705", "0.5993817", "0.5969908", "0.5968374", "0.59658134", "0.5956168", "0.5949821", "0.59469247", "0.5943592", "0.5940159", "0.5939616", "0.59376764", "0.59371257", "0.59344375", "0.5933027", "0.59309596", "0.59274125", "0.5926744", "0.59233356", "0.5911823", "0.59108037", "0.5907703", "0.5892571", "0.5892337", "0.58867407", "0.58699036", "0.58660173", "0.585769", "0.5853398", "0.5850746", "0.58498", "0.58489966", "0.58462536" ]
0.6417514
27
Flushes the remaining buffers.
public void flushBuffers() throws IOException { pool.moveToStart(); Buffer buffer; while (pool.getValue() != null) { buffer = pool.remove(); if (buffer.isDirty()) { file.seek(buffer.getBlockNumber() * BLOCK_SIZE); file.write(buffer.readBlock()); diskWrites++; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flush(){\r\n mBufferData.clear();\r\n }", "@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}", "public void flush() {\n wasFlushed = true;\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}", "private void flushAllBuffers() {\n mMaxX = 0f;\n mMaxY = 0f;\n mMaxZ = 0f;\n mMinX = 1e6f;\n mMinY = 1e6f;\n mMinZ = 1e6f;\n mLastVertexNumber = 0; // zero based counting :-)\n mVertices.clear();\n mNormals.clear();\n mColors.clear();\n mIndices.clear();\n mTextureIndex.clear();\n mHaveMaterialColor = false;\n }", "private void flushData()\n {\n try\n {\n while(state.get().ordinal() < SimulationState.TEARING_DOWN.ordinal() || !flushing.isEmpty())\n {\n ICardinality cardinality = flushing.poll(1, TimeUnit.MILLISECONDS);\n if (cardinality == null)\n continue;\n\n long numToFlush = cardinality.cardinality();\n counters.numFlushed.addAndGet(numToFlush);\n generateSSTables(cardinality, numToFlush, partitioner.getMinimumToken(), partitioner.getMaximumToken(), \"flushing\", true);\n }\n }\n catch (InterruptedException e)\n {\n logger.error(\"Exception happen during flushing\", e);\n }\n }", "void flushBuffer();", "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 flush() {\n mMessages.postToServer();\n }", "public void flush() {\n\t\t\n\t}", "@Override\n\tpublic void flushBuffer() throws IOException {\n\t}", "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 flush() {\n flushed = true;\n }", "public void flush();", "public void flush();", "public void flush();", "public void flush();", "protected void deferFlush()\n {\n // push next flush out to avoid attempts at multiple simultaneous\n // flushes\n m_lNextFlush = Long.MAX_VALUE;\n }", "public void flush() {\r\n\t\tindexBuffer.flip();\r\n\t\tif (DEBUG) {\r\n\t\t\tSystem.out.println(\"flush \"+indexBuffer.position()+\" \"+indexBuffer.limit());\r\n\t\t}\r\n\t\tif (indexBuffer.limit() > 0) {\r\n\t\t\tGL11.glDrawElements(GL11.GL_TRIANGLES, indexBuffer);\r\n\t\t}\r\n\t\tindexBuffer.limit(indexBuffer.capacity());\r\n\t}", "public synchronized void flush() throws IOException {\n\t\tcheckNotClosed();\n\t\ttrimToSize();\n\t\tjournalWriter.flush();\n\t}", "private void flushBuffer(Runnable paramRunnable) {\n/* 149 */ int i = this.buf.position();\n/* 150 */ if (i > 0 || paramRunnable != null)\n/* */ {\n/* 152 */ flushBuffer(this.buf.getAddress(), i, paramRunnable);\n/* */ }\n/* */ \n/* 155 */ this.buf.clear();\n/* */ \n/* 157 */ this.refSet.clear();\n/* */ }", "void flush() {\r\n synchronized (sync) {\r\n updatedFiles.clear();\r\n }\r\n }", "private void maybeFlush() {\n final long batchCount = this.batchCount.get();\n if (batchCount <= 0) {\n return;\n }\n\n if (outstandingCount.get() != 0\n && batchSerializedSize.get() < 65536\n && (batchCount < 16 || !requestObserver.isReady())) {\n return;\n }\n\n flush();\n }", "void flushBatch();", "@Override\r\n\tpublic void flushAll() {\n\t\t\r\n\t}", "public abstract void flush();", "public void flush() throws IOException;", "public void flush() throws IOException;", "public void flush() throws IOException;", "public void flush() {\n renderMesh();\n }", "public synchronized void freeAllBuffers() {\n\t\tIterator<Integer> iter = _bufferMap.keySet().iterator();\n\t\twhile (iter.hasNext()) {\n\t\t\tint bufNum = iter.next();\n\t\t\tsendMessage(\"/b_free\", new Object[] { bufNum });\n\t\t\titer.remove();\n\t\t}\n\t}", "public void flush() {\r\n\t\ttry {\r\n\t\t\tdos.flush();\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}", "@Override\n public void flushBuffer() throws IOException {\n\n }", "public void flush() throws IOException {\n\t\tmFile.seek(mOffset);\n\t\tmWriter.write(mBuffer, 0, mBufferLength);\n\t\tmOffset += mBufferLength;\n\t\tmBufferLength = 0;\n\t}", "void flush() throws Exception;", "public void flush() throws IOException\n {\n getStream().flush();\n }", "@Override\n public void flush() throws IOException {\n checkStreamState();\n flushIOBuffers();\n }", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "@Override\r\n\tpublic void flush() {\n\t\t\r\n\t}", "@Override\n public void flush() {\n new QueueConsumer().run();\n }", "void flush() throws IOException;", "void flush() throws IOException;", "void flush() throws IOException;", "public int flush() throws IOException {\n while (sendbuffer != null) {\n channel.write(sendbuffer);\n if (sendbuffer.remaining() == 0) {\n sendbuffer = sendqueue.poll();\n } else {\n return sendbuffer.remaining();\n }\n }\n return 0;\n }", "@Override\n public void flush() throws IOException {\n byteBufferStreamOutput.flush();\n }", "public void flush() throws IOException {\n\t\tif ((buffer.length - cursor) > 50000) {\n\t\t\tSystem.out.println(\"WASTED: \" + (buffer.length - cursor));\n\t\t}\n\t}", "public void flush() {\n trans.set(kernel.get().asArray());\n actions.forEach(Runnable::run);\n actions.clear();\n kernel.free();\n kernel = Matrix4F.ident();\n }", "@Override\r\n public void flush ()\r\n {\r\n }", "synchronized void flushAll(int txnum) {\n\t \n for (ExerciseBuffer buff : bufferpool)\n if (buff.isModifiedBy(txnum))\n buff.flush();\n }", "@SuppressWarnings(\"GuardedByChecker\")\n private void sendFlushDataLocked() {\n assert mWriteState == State.WAITING_FOR_FLUSH;\n int size = mFlushData.size();\n ByteBuffer[] buffers = new ByteBuffer[size];\n int[] positions = new int[size];\n int[] limits = new int[size];\n for (int i = 0; i < size; i++) {\n ByteBuffer buffer = mFlushData.poll();\n buffers[i] = buffer;\n positions[i] = buffer.position();\n limits[i] = buffer.limit();\n }\n assert mFlushData.isEmpty();\n assert buffers.length >= 1;\n mWriteState = State.WRITING;\n mRequestHeadersSent = true;\n if (!CronetBidirectionalStreamJni.get().writevData(mNativeStream,\n CronetBidirectionalStream.this, buffers, positions, limits,\n mEndOfStreamWritten && mPendingData.isEmpty())) {\n // Still waiting on flush. This is just to have consistent\n // behavior with the other error cases.\n mWriteState = State.WAITING_FOR_FLUSH;\n throw new IllegalArgumentException(\"Unable to call native writev.\");\n }\n }", "@Override\n\tpublic void flush() {\n\t\t\n\t}", "@Override\n\tpublic void flush() {\n\t\t\n\t}", "@Override\n\tpublic void flush() {\n\t\t\n\t}", "@Override\n\tpublic void flush() {\n\t\t\n\t}", "private void flush() {\n try {\n output.write(digits);\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n digits = 0;\n numDigits = 0;\n }", "@Override\r\n\tpublic void flush() {\n\t}", "private void flush() {\n\t\ttry {\n\t\t\tif (mResultSet != null) {\n\t\t\t\tmResultSet.close();\n\t\t\t}\n\n\t\t\tif (mStatement != null) {\n\t\t\t\tmStatement.close();\n\t\t\t}\n\t\t} catch (Exception e) {\n\n\t\t}\n\t}", "public void flush() throws IOException {\n // nothing to do with cached bytes\n }", "public static void flush() {\n try {\n sDiskLruCache.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "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 }", "private synchronized void flush() {\r\n\t\tif (!buffer.isEmpty()) {\r\n\t\t\tfor (final LoggingRecord record : buffer) {\r\n\t\t\t\thandler.handle(record);\r\n\t\t\t}\r\n\t\t\tbuffer.clear();\r\n\t\t}\r\n\t}", "public void flush () {\n\t\ttracker.flush();\n\t}", "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 }", "@Override\n public void flush()\n {\n }", "@Override\n\tpublic void flush() {\n\t}", "void flushBlocking();", "@Override\n public void flush() {\n }", "@Override\n public void flush() {\n }", "@Override\n public void flush() {\n }", "synchronized void flushAll(int txnum) {\n for (Buffer buff : bufferpool)\n if (buff.isModifiedBy(txnum))\n buff.flush();\n }", "public synchronized void flush() {\n\t\ttry {\n\t\t\tcloseWriter();\n\t\t} catch(IOException ioe ) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\topenWriter(true);\n\t\t} catch(IOException ioe ) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "public void flush () throws IOException\n {\n if (m_nBufferedBitCount > 0)\n {\n if (m_nBufferedBitCount != CGlobal.BITS_PER_BYTE)\n if (LOGGER.isDebugEnabled ())\n LOGGER.debug (\"Flushing BitOutputStream with only \" + m_nBufferedBitCount + \" bits\");\n m_aOS.write ((byte) m_nBuffer);\n m_nBufferedBitCount = 0;\n m_nBuffer = 0;\n }\n }", "public void flush() throws IOException {\n\t\t// TODO implement me\n\t}", "public void flush() {\r\n if (SwingUtilities.isEventDispatchThread()) {\r\n flushImpl();\r\n } else {\r\n synchronized (this) {\r\n if (!flusherRunning) {\r\n SwingUtilities.invokeLater(flusher);\r\n flusherRunning = true;\r\n }\r\n }\r\n }\r\n }", "public void flushAndSubmit() {\n nFlushAndSubmit(mNativeInstance);\n }", "public void flush()\n/* */ throws IOException\n/* */ {\n/* 833 */ _flushBuffer();\n/* 834 */ if ((this._writer != null) && \n/* 835 */ (isEnabled(JsonGenerator.Feature.FLUSH_PASSED_TO_STREAM))) {\n/* 836 */ this._writer.flush();\n/* */ }\n/* */ }", "public void flush() {\n // all getAndSet will not be synchronous but it's ok since metrics will\n // be spread out among processor worker and we flush every 5s by\n // default\n\n processor.send(new TelemetryMessage(this.metricsSentMetric, this.metricsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.eventsSentMetric, this.eventsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.serviceChecksSentMetric, this.serviceChecksSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesSentMetric, this.bytesSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesDroppedMetric, this.bytesDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsSentMetric, this.packetsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedMetric, this.packetsDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedQueueMetric, this.packetsDroppedQueue.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.aggregatedContextsMetric, this.aggregatedContexts.getAndSet(0), tags));\n }", "public void flush() throws IOException {\n if (firstMessage != null) {\n writer.messageWrite(firstMessage);\n }\n firstMessage = null;\n }", "Flux<ByteBuffer> flush() {\n if (byteBuffers != null) {\n // We return Flux from iterable in this case to support retries on single upload.\n Flux<ByteBuffer> result = Flux.fromIterable(byteBuffers);\n byteBuffers = null;\n return result;\n } else {\n return Flux.empty();\n }\n }", "@Override\n public void flush() throws IOException {\n }", "public void flushData()\n {\n try {\n //outputStreamAccelerometer.flush();\n //outputStreamLinear.flush();\n outputStreamAccelerometer.close();\n outputStreamLinear.close();\n\n String paths[] = {fileAccelerometer.getPath(), fileLinear.getPath(), fileSettings.getPath()};\n MediaScannerConnection.scanFile(context, paths, null, this);\n }\n catch(Exception exc)\n {\n Log.e(\"LOGGER_ERROR_FLUSH\", exc.toString());\n exc.printStackTrace();\n }\n }", "public void flush() {\n writer.flush();\n }", "boolean flush_all();", "public void flushAll() {\n\t\tfor(KafkaProducer<?, ?> p : producers) {\n\t\t\tp.flush();\n\t\t}\n\t}", "public void flush()\r\n {\r\n if ( content != null )\r\n {\r\n content.flush();\r\n }\r\n }", "public void flush(int maxSize) throws IOException\n\t{\n\t\tint flushSize=4;\n\t\tByteBuffer buffer=ByteBuffer.allocate(maxSize+4);\n\t\tbuffer.putInt(buffer.capacity());\n\t\t//System.out.println(\"buffer capacity: \"+buffer.capacity());\n\t\twhile(messages.peek()!=null&&flushSize+messages.peek().size()<=buffer.capacity())\n\t\t{\n\t\t\t//System.out.println(\"Messgae written.\");\n\t\t\tflushSize+=messages.peek().size();\n\t\t\tbuffer.put(messages.pop().bytes());\n\t\t}\n\t\tbuffer.putInt(0,flushSize-4);\n\t\tout.write(buffer.array(),0,flushSize);\n\t\tsize-=flushSize;\n\t\t//System.out.println(\"flush size: \"+size);\n\t\tout.flush();\n\t}", "public void cleanup() {\n sendBuffer(baos);\n shutdown();\n }", "public void flush()\r\n\tthrows IOException\r\n\t{\r\n\tgetWriter().flush();\r\n\treturn;\r\n\t}", "public void forceFlush() throws IOException {\n flushCurrentIndexBlock();\n }", "private void flush() throws IOException {\n if (!rates.isEmpty()) {\n writeRates();\n rates.clear();\n firstBatch = false;\n }\n }", "public void flush() throws SolrServerException, IOException {\n if (adds > 0) {\n Map<Integer, Map<String, SolrInputDocument>> maps = writeBuffers.asMap();\n for (Map.Entry<Integer, Map<String, SolrInputDocument>> entry : maps.entrySet()) {\n if (entry.getValue().size() > 0) {\n delegateWriter.add(entry.getKey(), ImmutableMap.copyOf(entry.getValue()));\n }\n }\n docOutputCounter.increment(adds);\n docBatchCounter.increment(1L);\n adds = 0;\n writeBuffers.invalidateAll();\n }\n }", "public void flushBuffer() throws IOException {\n this.response.flushBuffer();\n }", "void appendFlushed() throws IOException {\n synchronized (flushed) {\n if (flushed.length() > 0) {\n final String s = flushed.toString();\n flushed.setLength(0);\n Platform.runLater(() -> {\n textArea.appendText(s);\n int textLength = textArea.getText().length();\n if (textLength > MAX_TEXT_LENGTH) {\n textArea.setText(textArea.getText(textLength - MAX_TEXT_LENGTH / 2, textLength));\n }\n });\n }\n }\n }" ]
[ "0.7221729", "0.7125139", "0.70682555", "0.67861784", "0.6676997", "0.6595017", "0.65919983", "0.6571658", "0.6560621", "0.65545124", "0.6526202", "0.6494766", "0.6487118", "0.64825624", "0.64825624", "0.64825624", "0.64825624", "0.6445027", "0.64114434", "0.63949585", "0.6355523", "0.6354043", "0.6319507", "0.6315516", "0.63082653", "0.6275822", "0.62723565", "0.62723565", "0.62723565", "0.62717026", "0.62587714", "0.6236617", "0.6236235", "0.6210664", "0.6210554", "0.62104475", "0.61848694", "0.61782", "0.61782", "0.61782", "0.61782", "0.61782", "0.61782", "0.61782", "0.61782", "0.6176706", "0.6157376", "0.6141777", "0.6141777", "0.6141777", "0.6137925", "0.6136139", "0.6131776", "0.6122871", "0.61108303", "0.61028934", "0.6094179", "0.6089686", "0.6089686", "0.6089686", "0.6089686", "0.6085807", "0.6078571", "0.60760295", "0.60671127", "0.60666317", "0.6058557", "0.6055483", "0.6024859", "0.6024211", "0.60232663", "0.60171306", "0.60167545", "0.6013366", "0.6013366", "0.6013366", "0.5989395", "0.59811", "0.5975659", "0.59535146", "0.5940513", "0.59282535", "0.5927736", "0.59250134", "0.59239525", "0.589943", "0.58462554", "0.583401", "0.58213353", "0.5820342", "0.581589", "0.5815107", "0.5804771", "0.57913923", "0.5790058", "0.57758373", "0.57276636", "0.57246834", "0.572382", "0.5715788" ]
0.6578709
7
Add enough 0 bytes for a new block at end of file
public void expandFile() throws IOException { file.seek(FILE_SIZE); for (int i = 0; i < BLOCK_SIZE; i++) { file.write(0); } FILE_SIZE += BLOCK_SIZE; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 abstract void resetBytesWritten();", "void flushBefore(long pos) throws IOException;", "private void skipBytes(int count) throws IOException {\n long currentPosition = archive.position();\n long newPosition = currentPosition + count;\n if (newPosition > archive.size()) {\n throw new EOFException();\n }\n archive.position(newPosition);\n }", "public void writeBlock(boolean last) throws IOException {\n\t\t\tif (last) {\n\t\t\t\t// always fits, because of BLOCK's size\n\t\t\t\tblocksize = (short)writePos;\n\t\t\t\t// this is the last block, so encode least\n\t\t\t\t// significant bit in the first byte (little-endian)\n\t\t\t\tblklen[0] = (byte)(blocksize << 1 & 0xFF | 1);\n\t\t\t\tblklen[1] = (byte)(blocksize >> 7);\n\t\t\t} else {\n\t\t\t\t// always fits, because of BLOCK's size\n\t\t\t\tblocksize = (short)BLOCK;\n\t\t\t\t// another block will follow, encode least\n\t\t\t\t// significant bit in the first byte (little-endian)\n\t\t\t\tblklen[0] = (byte)(blocksize << 1 & 0xFF);\n\t\t\t\tblklen[1] = (byte)(blocksize >> 7);\n\t\t\t}\n\n\t\t\tout.write(blklen);\n\n\t\t\t// write the actual block\n\t\t\tout.write(block, 0, writePos);\n\n\t\t\tif (debug) {\n\t\t\t\tif (last) {\n\t\t\t\t\tlogTd(\"write final block: \" + writePos + \" bytes\");\n\t\t\t\t} else {\n\t\t\t\t\tlogTd(\"write block: \" + writePos + \" bytes\");\n\t\t\t\t}\n\t\t\t\tlogTx(new String(block, 0, writePos, \"UTF-8\"));\n\t\t\t}\n\n\t\t\twritePos = 0;\n\t\t}", "private void writeEOFRecord() throws IOException {\n\t\tfor ( int i = 0 ; i < this.recordBuf.length ; ++i )\n\t\t\tthis.recordBuf[i] = 0;\n\t\tthis.buffer.writeRecord( this.recordBuf );\n\t\t}", "@Override\n public void corrupt(File file) throws IOException\n {\n FileChannel.open(file.toPath(), StandardOpenOption.WRITE).truncate(file.length() - CodecUtil.footerLength() - 2).close();\n }", "public void add(byte b) {\n\t\tif (pointer == size)\n\t\t\twriteToFile();\n\t\tstream.set(pointer++, b);\n\t\twrittenBytes++;\n\t}", "void writeBlock(int blockId, byte[] buffer, int offset) throws IOException;", "void writeBlock(int blockId, byte[] buffer) throws IOException;", "@Override\n public void corrupt(File file) throws IOException\n {\n try (FileChannel channel = FileChannel.open(file.toPath(), StandardOpenOption.WRITE))\n {\n channel.truncate(file.length() - CodecUtil.footerLength() - 2);\n }\n }", "public void setLength(long newLength) throws IOException {\n flush();\n this.randomAccessFile.setLength(newLength);\n if (newLength < this.fileOffset) {\n this.fileOffset = newLength;\n }\n }", "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 }", "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}", "private int writeDefaultFileRegion(ChannelOutboundBuffer in, DefaultFileRegion region) throws Exception {\n/* 375 */ long regionCount = region.count();\n/* 376 */ if (region.transferred() >= regionCount) {\n/* 377 */ in.remove();\n/* 378 */ return 0;\n/* */ } \n/* */ \n/* 381 */ long offset = region.transferred();\n/* 382 */ long flushedAmount = this.socket.sendFile(region, region.position(), offset, regionCount - offset);\n/* 383 */ if (flushedAmount > 0L) {\n/* 384 */ in.progress(flushedAmount);\n/* 385 */ if (region.transferred() >= regionCount) {\n/* 386 */ in.remove();\n/* */ }\n/* 388 */ return 1;\n/* */ } \n/* 390 */ return Integer.MAX_VALUE;\n/* */ }", "public synchronized int flush()\n {\n int fileCount = files.size();\n int cb = (maxFiles * maxChars * SysLib.CBCHAR) + \n (maxFiles * SysLib.CBINT);\n byte b[] = new byte[cb];\n int inodeOffset = 0;\n int fileNameOffset = fileCount * SysLib.CBINT;\n\n for (int i = 0; i < fileCount; i++)\n {\n byte strBytes[] = files.get(i).getBytes();\n int cbStr = strBytes.length;\n\n SysLib.int2bytes(cbStr, b, inodeOffset);\n inodeOffset += SysLib.CBINT;\n\n // Don't write zero-length strings\n if (strBytes.length > 0)\n {\n System.arraycopy(strBytes, 0, b, fileNameOffset, cbStr);\n\n fileNameOffset += cbStr;\n }\n }\n\n if (inode.write(0, b) < 0)\n {\n return -1;\n }\n\n return 0;\n }", "public final void clearEndOfFile() {\n\t\tif ( atEndOfFile())\n\t\t\tm_flags -= EndOfFile;\n\t}", "void trim(int startingBlockId, int count) throws IOException;", "private void addRecordToOverflow(byte [] input, int startLocation) {\n try {\n // Writing a field to the overflow file\n RandomAccessFile raf = new RandomAccessFile(this.databaseName + \".overflow\", \"rws\");\n\n raf.getChannel().position(startLocation);\n raf.write(input);\n raf.close();\n } catch (IOException ex) {\n ex.printStackTrace();\n }\n }", "public abstract void appendBlock();", "@Override\n public void updateFirstHeader() {\n padToCacheAlign();\n long pos = bytes.writePosition();\n updateFirstHeader(pos);\n }", "@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}", "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}", "public static boolean setSparseZeros(final File file, final long position, final long length) throws IOException {\r\n\t\tcom.sun.jna.platform.win32.Kernel32 k32 = com.sun.jna.platform.win32.Kernel32.INSTANCE;\r\n\r\n\t\tHANDLE hFile = null;\r\n\t\thFile = k32.CreateFile(file.getCanonicalPath(), WinNT.GENERIC_ALL, WinNT.FILE_SHARE_WRITE\r\n\t\t\t\t| WinNT.FILE_SHARE_READ,\r\n\t\t\t\tnew WinBase.SECURITY_ATTRIBUTES(), WinNT.OPEN_EXISTING, WinNT.FILE_ATTRIBUTE_NORMAL,\r\n\t\t\t\tnew HANDLEByReference().getValue());\r\n\r\n\t\tif (WinBase.INVALID_HANDLE_VALUE.equals(hFile)) {\r\n\t\t\tthrow Warden.spot(new IOException(\"failed to open \" + file, new Win32Exception(\r\n\t\t\t\t\tcom.sun.jna.platform.win32.Kernel32.INSTANCE.GetLastError())));\r\n\t\t}\r\n\t\tThrowable excep = null;\r\n\t\ttry {\r\n\t\t\t// Buffer buffer = ByteBuffer.wrap(new byte[100]);\r\n\t\t\t// IntByReference bytesRead = new IntByReference();\r\n\t\t\t// boolean r = k32.ReadFile(hFile, buffer, 10, bytesRead, null);\r\n\t\t\t// System.out.println(r + \": \" + Elements.toString(buffer.array()));\r\n\r\n\t\t\tIntByReference dwTemp = new IntByReference();\r\n\t\t\t// ::DeviceIoControl(hFile, FSCTL_SET_SPARSE, NULL, 0, NULL, 0, &dwTemp, NULL);\r\n\t\t\tboolean res = k32.DeviceIoControl(hFile, FSCTL_SET_SPARSE, null, 0, null, 0, dwTemp, null);\r\n\t\t\tif (!res) {\r\n\t\t\t\tthrow new Win32Exception(com.sun.jna.platform.win32.Kernel32.INSTANCE.GetLastError());\r\n\t\t\t}\r\n\r\n\t\t\tFILE_ZERO_DATA_INFORMATION fzdi = new FILE_ZERO_DATA_INFORMATION();\r\n\t\t\tfzdi.FileOffset = position;\r\n\t\t\tfzdi.BeyondFinalZero = position + length;\r\n\t\t\tfzdi.write();\r\n\t\t\t// ::DeviceIoControl(hFile, FSCTL_SET_ZERO_DATA, &fzdi, sizeof(fzdi), NULL, 0, &dwTemp, NULL);\r\n\t\t\tres = k32\r\n\t\t\t\t\t.DeviceIoControl(hFile, FSCTL_SET_ZERO_DATA, fzdi.getPointer(), fzdi.size(), null, 0, dwTemp, null);\r\n\t\t\tif (!res) {\r\n\t\t\t\tthrow new Win32Exception(com.sun.jna.platform.win32.Kernel32.INSTANCE.GetLastError());\r\n\t\t\t}\r\n\r\n\t\t\t// buffer.clear();\r\n\t\t\t// r = k32.ReadFile(hFile, buffer, 10, bytesRead, null);\r\n\t\t\t// System.out.println(r + \": \" + Elements.toString(buffer.array()));\r\n\r\n\t\t\treturn true;\r\n\t\t} catch (Win32Exception e) {\r\n\t\t\texcep = e;\r\n\t\t\tthrow e;\r\n\t\t} finally {\r\n\t\t\tif (hFile != null) {\r\n\t\t\t\tif (!com.sun.jna.platform.win32.Kernel32.INSTANCE.CloseHandle(hFile)) {\r\n\t\t\t\t\tif (excep != null) {\r\n\t\t\t\t\t\tthrow (Win32Exception) new Win32Exception(\r\n\t\t\t\t\t\t\t\tcom.sun.jna.platform.win32.Kernel32.INSTANCE.GetLastError()).initCause(excep);\r\n\t\t\t\t\t}\r\n\t\t\t\t\tthrow new Win32Exception(com.sun.jna.platform.win32.Kernel32.INSTANCE.GetLastError());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static void setLength(final RandomAccessFile file, final long newLength) throws IOException {\n\n try {\n trace(\"setLength\", null, file);\n file.setLength(newLength);\n }\n catch (final IOException e) {\n final long length = file.length();\n if (newLength < length) { throw e; }\n final long pos = file.getFilePointer();\n file.seek(length);\n long remaining = newLength - length;\n final int maxSize = 1024 * 1024;\n final int block = (int) Math.min(remaining, maxSize);\n final byte[] buffer = new byte[block];\n while (remaining > 0) {\n final int write = (int) Math.min(remaining, maxSize);\n file.write(buffer, 0, write);\n remaining -= write;\n }\n file.seek(pos);\n }\n }", "synchronized void addDownloadedBlock(int index, int blockLength) {\n for (int i = 0; i < blocks.size(); i++) {\n final Block b = (Block) blocks.get(i);\n if (b.isConnectedToStart(index, blockLength)) {\n b.prepend(blockLength);\n updateState();\n return;\n } else if (b.isConnectedToEnd(index)) {\n b.append(blockLength);\n updateState();\n return;\n }\n }\n blocks.add(new Block(index, blockLength));\n }", "@Test\n public void lastSize() throws Exception{\n rf.insert(maxBlocks-1, testBlock);\n Assert.assertEquals(1, rf.size());\n }", "public void write() {\n/* 1062 */ this.cbSize = size();\n/* 1063 */ super.write();\n/* */ }", "public void testAppendBytesSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String writeString = \"Hello World\";\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n filePersistence.appendBytes(fileCreationId, writeString.getBytes());\r\n filePersistence.closeFile(fileCreationId);\r\n File file = new File(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"the file should exist\", file.exists());\r\n assertEquals(\"the current file size not correct\", file.length(), writeString.getBytes().length);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }", "private void OutOfByteSize (int counter) throws IOException {\n while (counter > 0) {\n if (counter >= 255) {\n out.write(255);\n out.write(0);\n } else\n out.write((byte) counter);\n counter -= 255;\n }\n\n }", "public void flush() throws IOException {\n\t\tmFile.seek(mOffset);\n\t\tmWriter.write(mBuffer, 0, mBufferLength);\n\t\tmOffset += mBufferLength;\n\t\tmBufferLength = 0;\n\t}", "@Test\n public void testIsFull() {\n System.out.println(\"isFull\");\n RecordFile instance = new RecordFile();\n \n String first = \"hello\";\n \n for(int i = 0; i < instance.compacity(); i++)\n {\n instance.write((first + i).getBytes(), i);\n }\n \n for(int i = 0; i < instance.compacity(); i++)\n {\n Assert.assertEquals(first + i, new String(instance.read(i)));\n }\n \n Assert.assertEquals(true, instance.isFull());\n \n instance.remove(0);\n \n Assert.assertEquals(false, instance.isFull());\n }", "private void append(byte[] bts) {\n checkFile();\n try {\n outputStream.write(bts);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void initHeader(boolean newHeader) throws IOException {\n\n if (newHeader) writeHeader();\n /*\n if (rafShp.read() == -1) { \n //File is empty, write a new one (what else???)\n writeHeader();\n } \n */ \n readHeader();\n }", "public void endBlockOut () {\n addLine (getBlockEnd());\n // writer.close();\n }", "public void superBlock() throws FileNotFoundException, IOException\n {\n \tByteBuffer buf = ByteBuffer.allocate(1024);\n \tbuf.order(ByteOrder.LITTLE_ENDIAN);\n \tbyte[] bytes = new byte[1024];\n f.seek(1024);\n \tf.read(bytes);\n \tbuf.put(bytes);\n\n \tmagicNum = buf.getShort(56);\n \ttotalInodes = buf.getInt(0);\n \ttotalBlocks = buf.getInt(4);\n \tblocksPerGroup = buf.getInt(32);\n \tinodesPerGroup = buf.getInt(40);\n \tsizeOfInode = buf.getInt(88);\n\n \tbyte[] stringLabel = new byte[16];\n \tbuf.position(120);\n buf.get(stringLabel);\n \tvolumeLabel = new String(stringLabel);\n\n System.out.println(\"Magic Number : \"+String.format(\"0x%04X\",magicNum));\n System.out.println(\"Total Inodes: \"+totalInodes);\n System.out.println(\"Total Blocks: \"+totalBlocks);\n System.out.println(\"Blocks per Group: \"+blocksPerGroup);\n System.out.println(\"Inodes per Group: \"+inodesPerGroup);\n System.out.println(\"Size Of each Inode in bytes: \"+sizeOfInode);\n System.out.println(\"Volume Label: \"+ volumeLabel+ \"\\n\");\n }", "public void expandFile(LinkedQueue<FreeBlock> blocks)\n throws IOException\n {\n if (blocks.getLength() != 0)\n {\n FreeBlock first = blocks.peek();\n FreeBlock block;\n do\n {\n block = blocks.peek();\n if (block.getSize() + block.getPosition() == FILE_SIZE)\n {\n // last free block was at end of file and has been expanded\n block.setSize(block.getSize() + BLOCK_SIZE);\n expandFile();\n return;\n }\n blocks.inqueue(blocks.dequeue());\n }\n while (blocks.peek() != first);\n blocks.inqueue(new FreeBlock(FILE_SIZE, BLOCK_SIZE));\n expandFile();\n return;\n }\n else\n {\n blocks.inqueue(new FreeBlock(FILE_SIZE, BLOCK_SIZE));\n }\n expandFile();\n }", "public abstract int getNextBlock(int block) throws IOException;", "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 limitNextBytes() {\n this.limitNextBytes(1);\n }", "public synchronized void limitNextBytes() {\n limitNextBytes(1);\n }", "private boolean changeSize(Inode inode, int bytesBefore, int bytesAfter) {\t\t\n\t\tif (bytesAfter > MAX_FILE_SIZE) {\n\t\t\treturn false;\n\t\t}\n\t\tint blocksBefore = neededBlocks(bytesBefore);\n\t\tint blocksAfter = neededBlocks(bytesAfter);\n\t\t\n\t\tif (blocksBefore == blocksAfter) {\n\t\t\tinode.length = bytesAfter;\n\t\t\treturn true;\n\t\t}\n\t\tbyte[] buffer = null;\n\t\t\n\t\tif (blocksBefore > blocksAfter) {\n\t\t\tif (blocksBefore > DIRECT) {\n\t\t\t\t// Only do a read if we care about the indirect block\n\t\t\t\tbuffer = new byte[BLOCK_SIZE];\t\t\t\t\n\t\t\t\tSysLib.rawread(inode.indirect, buffer);\t\t\t\t\n\t\t\t}\n\t\t\tfor (int i = blocksAfter + 1; i <= blocksBefore; i++) {\n\t\t\t\tdeallocateBlock(inode, i, buffer);\n\t\t\t}\n\t\t\tif (blocksAfter < DIRECT && blocksBefore > DIRECT) {\n\t\t\t\tsuperblock.returnBlock((short)inode.indirect);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tassert (blocksAfter > blocksBefore);\n\t\t\tif (blocksBefore <= DIRECT && blocksAfter > DIRECT) {\n\t\t\t\tinode.indirect = (short)(superblock.getBlock());\n\t\t\t}\n\t\t\tif (blocksBefore > DIRECT || blocksAfter > DIRECT) {\n\t\t\t\t// Only do a read if we care about the indirect block\n\t\t\t\tbuffer = new byte[BLOCK_SIZE];\n\t\t\t\tSysLib.rawread(inode.indirect, buffer);\t\t\t\t\n\t\t\t}\n\t\t\tfor (int i = blocksBefore; i < blocksAfter; i++) {\n\t\t\t\tallocateBlock(inode, i, buffer);\n\t\t\t}\n\t\t\tif (blocksAfter > DIRECT) {\n\t\t\t\tSysLib.rawwrite(inode.indirect, buffer);\n\t\t\t}\n\n\t\t}\n\t\tinode.length = bytesAfter;\n\t\tif(blocksAfter != 0)\n\t\t\tgetBlockNumber(inode, blocksAfter-1, buffer);\n\t\treturn true;\n\t}", "private int skipFdocaBytes(int length) {\n\n checkForSplitRowAndComplete(length);\n dataBuffer_.skipBytes(length);\n// position_ += length;\n return length;\n }", "@Override\n public int available() throws IOException {\n return fileSize - nextChunkPos + (count - pos);\n }", "public synchronized void flush() throws IOException {\n\t\tcheckNotClosed();\n\t\ttrimToSize();\n\t\tjournalWriter.flush();\n\t}", "public void expandFile(long length) throws IOException {\n\n\t}", "public void initializeFullRead() {\r\n\r\n try {\r\n bPtr = 0;\r\n\r\n if (raFile != null) {\r\n fLength = raFile.length();\r\n } else {\r\n return;\r\n }\r\n\r\n if (tagBuffer == null) {\r\n tagBuffer = new byte[(int) fLength];\r\n } else if (fLength > tagBuffer.length) {\r\n tagBuffer = new byte[(int) fLength];\r\n }\r\n\r\n raFile.readFully(tagBuffer);\r\n } catch (final IOException ioE) {}\r\n }", "public void beginSlice() throws IOException {}", "void prepareSortedLedgerStorageCheckpoint(long numBytesFlushed) throws IOException;", "public void endSlice() throws IOException {}", "@Override\n\tpublic int getBlockSize() {\n\t\treturn 0;\n\t}", "public void set_cache(int offset, int byte_count, String new_content) throws BadRangeException {\n check_range(offset, byte_count);\n int start_block = get_start_block(offset);\n int end_block = get_end_block(offset, byte_count);\n for (int i = start_block; i < end_block; i++) {\n content.put(i,\n new_content.substring(i*Constants.FILE_BLOCK_SIZE, (i+1)*Constants.FILE_BLOCK_SIZE));\n }\n String last_piece = new_content.substring(end_block*Constants.FILE_BLOCK_SIZE);\n if (last_piece.length() != Constants.FILE_BLOCK_SIZE) {\n if (Constants.DEBUG) System.out.println(\"(log) Final block set to \" + end_block);\n final_block = end_block;\n }\n content.put(end_block, last_piece);\n }", "public void forceFlush() throws IOException {\n flushCurrentIndexBlock();\n }", "private void updateByteCount(int n) {\n\t\tif (byteCount + n > (buffer.length << 3)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tbyteCount += n;\n\t\tif (byteCount == (buffer.length << 3)) {\n\t\t\tflush();\n\t\t}\n\t}", "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: */ }", "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}", "private void resetBytesFree()\r\n {\r\n this.bytesFree.set(0);\r\n }", "public synchronized void append(K key, V val) throws IOException {\n\n\t\t\tlong pos = data.sync();\n\t\t\t// Only write an index if we've changed positions. In a block compressed\n\t\t\t// file, this means we write an entry at the start of each block\n\t\t\t// position.set(pos); // point to current eof\n\t\t\tindex.append(new Pair<K, Long>(key, keySchema, pos, Schema\n\t\t\t\t\t.create(Type.LONG)));\n\n\t\t\tdata.append(new Pair<K, V>(key, keySchema, val, valueSchema)); // append\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// key/value\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// to data\n\t\t\tsize++;\n\t\t}", "@Override\n public void skipAllBytes(long toSkip) throws IOException {\n if (skip(toSkip) < toSkip) {\n throw new EOFException();\n }\n }", "@Test\n public void testCorrupt0LengthHFile() throws IOException {\n Path f = new Path(TestHFile.ROOT_DIR, testName.getMethodName());\n FSDataOutputStream fsos = TestHFile.fs.create(f);\n fsos.close();\n try {\n Reader r = HFile.createReader(TestHFile.fs, f, TestHFile.cacheConf, true, TestHFile.conf);\n } catch (CorruptHFileException che) {\n // Expected failure\n return;\n }\n Assert.fail(\"Should have thrown exception\");\n }", "public int setBytes(int index, FileChannel in, long position, int length)\r\n/* 896: */ throws IOException\r\n/* 897: */ {\r\n/* 898:904 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 899:905 */ return super.setBytes(index, in, position, length);\r\n/* 900: */ }", "private void updateBlockBuffer() {\n for (Block b : blockBuffer) {\n if (++b.ttl > BLOCK_CACHE_THRESH) {\n blockBuffer.remove(b);\n }\n }\n\n prevBlockBufferSize = blockBuffer.size();\n }", "@Test\n public void write100Megs() throws Exception {\n final int segmentSize = 0x00100000;\n final int expectedSegments = 100;\n \n for (int i = 0; i < expectedSegments; i++) {\n journal.append(bytes(segmentSize));\n }\n journal.drain();\n \n Assert.assertEquals(expectedSegments * 2, dir.list().length);\n }", "boolean hasMoreBytes();", "@Test\n public void testFileSize() {\n System.out.println(\"fileSize\");\n RecordFile instance = new RecordFile();\n \n Assert.assertEquals(76, instance.fileSize());\n \n byte[] bytes = new byte[10];\n instance.insert(bytes, 0);\n Assert.assertEquals(86, instance.fileSize());\n \n bytes = new byte[12];\n instance.write(bytes, 0);\n Assert.assertEquals(88, instance.fileSize());\n \n bytes = new byte[100];\n instance.insert(bytes, 0);\n Assert.assertEquals(188, instance.fileSize());\n \n bytes = new byte[100];\n instance.remove(0);\n Assert.assertEquals(88, instance.fileSize());\n \n bytes = new byte[100];\n instance.remove(0);\n Assert.assertEquals(76, instance.fileSize());\n }", "void record(int actualReadBytes);", "@Test\n public void usingCRDelimiterWithSmallestBufferSize() throws Exception {\n conf.set(IO_FILE_BUFFER_SIZE_KEY, \"1\");\n\n try (BZip2TextFileWriter writer = new BZip2TextFileWriter(tempFile, conf)) {\n writer.writeManyRecords(BLOCK_SIZE - 50, 999, CR);\n writer.writeRecord(100, CR);\n writer.writeRecord(10, CR);\n writer.writeRecord(10, CR);\n writer.writeRecord(10, CR);\n }\n assertRecordCountsPerSplit(tempFile, new long[] {1000, 3});\n }", "public void endFlatFile() {\n }", "private void createLeftOver() {\n/* 332 */ int lineLengthBytes = this.currentLastBytePos + 1;\n/* 333 */ if (lineLengthBytes > 0) {\n/* */ \n/* 335 */ this.leftOver = new byte[lineLengthBytes];\n/* 336 */ System.arraycopy(this.data, 0, this.leftOver, 0, lineLengthBytes);\n/* */ } else {\n/* 338 */ this.leftOver = null;\n/* */ } \n/* 340 */ this.currentLastBytePos = -1;\n/* */ }", "public void zeros(int position, final int count) throws IOException {\n checkCapacity(position + count);\n //zeroes memory in reverse direction in OS_PAGE_SIZE batches\n //to gain sympathy by the page cache LRU policy\n final long start = this.address + position;\n final long end = start + count;\n int toZeros = count;\n final long lastGap = (int) (end & (OS_PAGE_SIZE - 1));\n final long lastStartPage = end - lastGap;\n long lastZeroed = end;\n if (start <= lastStartPage) {\n if (lastGap > 0) {\n PlatformDependent.setMemory(lastStartPage, lastGap, (byte) 0);\n lastZeroed = lastStartPage;\n toZeros -= lastGap;\n }\n }\n //any that will enter has lastZeroed OS page aligned\n while (toZeros >= OS_PAGE_SIZE) {\n assert PowerOf2Util.isAligned(lastZeroed, OS_PAGE_SIZE);/**/\n final long startPage = lastZeroed - OS_PAGE_SIZE;\n PlatformDependent.setMemory(startPage, OS_PAGE_SIZE, (byte) 0);\n lastZeroed = startPage;\n toZeros -= OS_PAGE_SIZE;\n }\n //there is anything left in the first OS page?\n if (toZeros > 0) {\n PlatformDependent.setMemory(start, toZeros, (byte) 0);\n }\n //do not move this.position: only this.length can be changed\n position += count;\n if (position > this.length) {\n this.length = position;\n }\n }", "public static void resetFileSize(final File f, final long desired) throws IOException {\n boolean ok = f.length() == desired;\n if (!ok) {\n RandomAccessFile raf = null;\n try {\n raf = new RandomAccessFile(f, \"rws\");\n raf.setLength(desired);\n } finally {\n if (raf != null) {\n raf.close();\n }\n }\n }\n }", "private void readBlock(DataInputStream in, byte op) throws IOException {\n //\n // Read in the header\n //\n Block b = new Block();\n b.readFields(in);\n\n long toSkip = 0;\n long endOffset = -1;\n if (op == OP_READSKIP_BLOCK) {\n toSkip = in.readLong();\n } else if (op == OP_READ_RANGE_BLOCK) {\n toSkip = in.readLong();\n endOffset = in.readLong();\n }\n\n //\n // Open reply stream\n //\n DataOutputStream out = new DataOutputStream(new BufferedOutputStream(s.getOutputStream()));\n try {\n //\n // Write filelen of -1 if error\n //\n if (! data.isValidBlock(b)) {\n out.writeLong(-1);\n } else {\n //\n // Get blockdata from disk\n //\n long len = data.getLength(b);\n if (endOffset < 0) { endOffset = len; }\n DataInputStream in2 = new DataInputStream(data.getBlockData(b));\n out.writeLong(len);\n\n long amtSkipped = 0;\n if ((op == OP_READSKIP_BLOCK) || (op == OP_READ_RANGE_BLOCK)) {\n if (toSkip > len) {\n toSkip = len;\n }\n try {\n amtSkipped = in2.skip(toSkip);\n } catch (IOException iex) {\n shutdown();\n throw iex;\n }\n out.writeLong(amtSkipped);\n }\n if (op == OP_READ_RANGE_BLOCK) {\n if (endOffset > len) {\n endOffset = len;\n }\n out.writeLong(endOffset);\n }\n\n byte buf[] = new byte[BUFFER_SIZE];\n try {\n int toRead = (int) (endOffset - amtSkipped + 1);\n int bytesRead = 0;\n try {\n bytesRead = in2.read(buf, 0, Math.min(BUFFER_SIZE, toRead));\n myMetrics.readBytes(bytesRead);\n } catch (IOException iex) {\n shutdown();\n throw iex;\n }\n while (toRead > 0 && bytesRead >= 0) {\n out.write(buf, 0, bytesRead);\n toRead -= bytesRead;\n if (toRead > 0) {\n try {\n bytesRead = in2.read(buf, 0, Math.min(BUFFER_SIZE, toRead));\n myMetrics.readBytes(bytesRead);\n } catch (IOException iex) {\n shutdown();\n throw iex;\n }\n }\n }\n } catch (SocketException se) {\n // This might be because the reader\n // closed the stream early\n } finally {\n try {\n in2.close();\n } catch (IOException iex) {\n shutdown();\n throw iex;\n }\n }\n }\n myMetrics.readBlocks(1);\n LOG.info(\"Served block \" + b + \" to \" + s.getInetAddress());\n } finally {\n out.close();\n }\n }", "public synchronized void reset() throws IOException {\n\t\t\tdata.seek(firstPosition);\n\t\t}", "private int readBlock() throws IOException {\n\t\t\t// read next two bytes (short)\n\t\t\tif (!_read(blklen, 2))\n\t\t\t\treturn(-1);\n\n\t\t\t// Get the short-value and store its value in blockLen.\n\t\t\tblockLen = (short)(\n\t\t\t\t\t(blklen[0] & 0xFF) >> 1 |\n\t\t\t\t\t(blklen[1] & 0xFF) << 7\n\t\t\t\t\t);\n\t\t\treadPos = 0;\n\n\t\t\tif (debug) {\n\t\t\t\tif ((blklen[0] & 0x1) == 1) {\n\t\t\t\t\tlogRd(\"read final block: \" + blockLen + \" bytes\");\n\t\t\t\t} else {\n\t\t\t\t\tlogRd(\"read new block: \" + blockLen + \" bytes\");\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// sanity check to avoid bad servers make us do an ugly\n\t\t\t// stack trace\n\t\t\tif (blockLen > block.length)\n\t\t\t\tthrow new AssertionError(\"Server sent a block \" +\n\t\t\t\t\t\t\"larger than BLOCKsize: \" +\n\t\t\t\t\t\tblockLen + \" > \" + block.length);\n\t\t\tif (!_read(block, blockLen))\n\t\t\t\treturn(-1);\n\n\t\t\tif (debug)\n\t\t\t\tlogRx(new String(block, 0, blockLen, \"UTF-8\"));\n\n\t\t\t// if this is the last block, make it end with a newline and\n\t\t\t// prompt\n\t\t\tif ((blklen[0] & 0x1) == 1) {\n\t\t\t\tif (blockLen > 0 && block[blockLen - 1] != '\\n') {\n\t\t\t\t\t// to terminate the block in a Reader\n\t\t\t\t\tblock[blockLen++] = '\\n';\n\t\t\t\t}\n\t\t\t\t// insert 'fake' flush\n\t\t\t\tblock[blockLen++] = BufferedMCLReader.PROMPT;\n\t\t\t\tblock[blockLen++] = '\\n';\n\t\t\t\tif (debug)\n\t\t\t\t\tlogRd(\"inserting prompt\");\n\t\t\t}\n\n\t\t\treturn(blockLen);\n\t\t}", "public ErrorType writeData(String fileName, int bytes, String data) {\n\t\tDirDetailsForWrite dirDetailsForWrite = fileWithDirListingEntry(fileName, getRootDirectory(), 0); \n\t\tString s= null;\n\t\tint lastBlockBytesUsed=0;\n\t\tint indexOfFile = dirDetailsForWrite.getDirEntryDetails().getLink();\n\t\tData tempDataBlock = (((Data)sector.get(indexOfFile)));\n\t\tif(dirDetailsForWrite != null) {\n\t\t\ts= tempDataBlock.writeUserData(bytes, data);\n\t\t}\n\t\t\n\t\twhile(true) {\n\t\t\tif(s!=null && (!Constants.SUCCESS.equals(s))) {\n\t\t\t\tint slashIndex = s != null ? s.indexOf(\"_\") : Constants.NEGATIVE;\n\t\t\t\tString first = null;\n\t\t\t\tString remBytes = null;\n\t\t\t\tString remData = null;\n\t\t\t\t\n\t\t\t\tif(Constants.NEGATIVE != slashIndex) {\n\t\t\t\t\tSystem.out.println(\"s = \"+s + \" Slash index : \"+ slashIndex);\n\t\t\t\t\tfirst = s.substring(0, slashIndex+1);\n\t\t\t\t\tremBytes = s.substring(slashIndex+1);\n\t\t\t\t} else {\n\t\t\t\t\tfirst = s;\n\t\t\t\t\tremBytes = null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(first != null && !Constants.REMAINING_STRING.equals(first)) {\n\t\t\t\t\tlastBlockBytesUsed = Integer.parseInt(first);\n\t\t\t\t\tbreak; // break out of the loop as number of bytes mentioned is wrote already\n\t\t\t\t} else if(Constants.REMAINING_STRING.equals(first)) {\n\t\t\t\t\tslashIndex = remBytes != null ? remBytes.indexOf(\"_\") : Constants.NEGATIVE;\n\t\t\t\t\tif(Constants.NEGATIVE != slashIndex) {\n\t\t\t\t\t\tremData = remBytes.substring(slashIndex+1);\n\t\t\t\t\t\tremBytes = remBytes.substring(0, slashIndex);\n\t\t\t\t\t\t\n\t\t\t\t\t\tint freeBlock = freeBlock();\n\t\t\t\t\t\tif(freeBlock != Constants.NEGATIVE) {\n\t\t\t\t\t\t\tsector.put(freeBlock, new Data());\n\t\t\t\t\t\t\ttempDataBlock.setFrwd(freeBlock);\n\t\t\t\t\t\t\t((Data)sector.get(freeBlock)).setBack(indexOfFile);\n\t\t\t\t\t\t\ts = ((Data)sector.get(freeBlock)).writeUserData(remBytes!=null?Integer.parseInt(remBytes):0, remData);\n\t\t\t\t\t\t\t//Setting tempDataBlock with the new Data object that is created now. This will be handy even we run out of new user block and we need another user block...\n\t\t\t\t\t\t\ttempDataBlock = ((Data)sector.get(freeBlock));\n\t\t\t\t\t\t\tindexOfFile = freeBlock;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\treturn ErrorType.SECTOR_FULL;\n\t\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\t\n\t\tDirEntryDetails dirEntryTemp = dirDetailsForWrite.getDirEntryDetails();\n\t\t//TODO: Update correct Free bytes value\n\t\t((Directory)sector.get(dirDetailsForWrite.getRootIndex())).setDirWithGivenSize(dirEntryTemp.getDirEntryIndex(), lastBlockBytesUsed);\n\t\treturn ErrorType.SUCCESS;\n\t}", "void ensureContinuousBlock(int blockSize) \n \tthrows IOException {\n \t//\n \t// Enough bytes already loaded?\n \tif(_o + blockSize <= _l)\n \t\treturn;\n \t\n \tfinal int remaining = _l - _o;\n \t//\n \t// Is buffer large enough for block?\n \tif(blockSize < _random.length) { \t\t \t\n \t//\n \t// copy the rest in the buffer to the front\n \tSystem.arraycopy(_random, _o, _random, 0, remaining); \t\t\n \t}\n \telse {\n \t\t//\n \t\t// Allocate a larger buffer\n \t\tfinal byte largerBuffer[] = new byte[blockSize + MAX_READAHEADSIZE];\n \t\t//\n \t\t// copy the rest of the old buffer to the front of the new\n \tSystem.arraycopy(_random, _o, largerBuffer, 0, remaining);\n \t//\n \t// swap the buffers\n \t_random = largerBuffer;\n \t}\n \t//\n \t// Increase the numbers of bytes by all processed bytes (offset with current buffer)\n \t// Buffer is now aligned with the front\n \t_read += _o;\n \t\n \t_o = 0;\n \t_l = remaining;\n \t//\n \t// Calculate possible readahead. It is not allowed to read beyond the end of the current object (_length)\n \tfinal int bytesTillEnd = _length - _read - _l;\n \tfinal int readahead = Math.min(Math.min(MAX_READAHEADSIZE, _random.length - remaining), bytesTillEnd);\n \t\n \tint wanted = Math.max(readahead, blockSize - remaining);\n \t\n \twhile(wanted > 0 && _l < blockSize) {\n \t\t//\n \t\t// Read as much as we wanted at the end of the buffer\n \tint rd = _in.read(_random, _l, wanted);\n \t//\n \t// EOS reached?\n \tif(rd < 0)\n \t\tbreak;\n \t//\n \t// Increase end and reduced wanted by bytes read from InputStream\n \t_l = _l + rd;\n \twanted -=rd;\n \t}\n \t//\n \t// Ups, we were not able to read enough bytes from stream\n \tif(_l < blockSize) {\n \t\tthrow new RuntimeException(\"end of stream reached\");\n \t}\n }", "public ByteBuf writeZero(int length)\r\n/* 631: */ {\r\n/* 632:640 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 633:641 */ return super.writeZero(length);\r\n/* 634: */ }", "public void testAppendBytesNullPointerException() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n try {\r\n filePersistence.appendBytes(null, new byte[0]);\r\n fail(\"if fileCreationId is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n try {\r\n filePersistence.appendBytes(\"valid\", null);\r\n fail(\"if bytes is null, throw NullPointerException\");\r\n } catch (NullPointerException e) {\r\n // good\r\n }\r\n }", "public void testConstructors()\n throws IOException\n {\n HeaderBlockWriter block = new HeaderBlockWriter();\n ByteArrayOutputStream output = new ByteArrayOutputStream(512);\n\n block.writeBlocks(output);\n byte[] copy = output.toByteArray();\n byte[] expected =\n {\n ( byte ) 0xD0, ( byte ) 0xCF, ( byte ) 0x11, ( byte ) 0xE0,\n ( byte ) 0xA1, ( byte ) 0xB1, ( byte ) 0x1A, ( byte ) 0xE1,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x3B, ( byte ) 0x00, ( byte ) 0x03, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0x09, ( byte ) 0x00,\n ( byte ) 0x06, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0x00, ( byte ) 0x10, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFE, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00, ( byte ) 0x00,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF,\n ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF, ( byte ) 0xFF\n };\n\n assertEquals(expected.length, copy.length);\n for (int j = 0; j < 512; j++)\n {\n assertEquals(\"testing byte \" + j, expected[ j ], copy[ j ]);\n }\n\n // verify we can read a 'good' HeaderBlockWriter (also test\n // getPropertyStart)\n block.setPropertyStart(0x87654321);\n output = new ByteArrayOutputStream(512);\n block.writeBlocks(output);\n assertEquals(0x87654321,\n new HeaderBlockReader(new ByteArrayInputStream(output\n .toByteArray())).getPropertyStart());\n }", "@Override\n public StorageOutputStream append(File file) throws IOException {\n\treturn null;\n }", "protected void insureIndexSpace(int requiredNumRecords) throws IOException {\n int currentNumRecords = getNumRecords();\n long endIndexPtr = indexPositionToKeyFp(requiredNumRecords);\n if (endIndexPtr > getFileLength() && currentNumRecords == 0) {\n setFileLength(endIndexPtr);\n dataStartPtr = endIndexPtr;\n writeDataStartPtrHeader(dataStartPtr);\n return;\n }\n while (endIndexPtr > dataStartPtr) {\n RecordHeader first = getRecordAt(dataStartPtr);\n byte[] data = readRecordData(first);\n first.dataPointer = getFileLength();\n first.dataCapacity = data.length;\n setFileLength(first.dataPointer + data.length);\n writeRecordData(first, data);\n writeRecordHeaderToIndex(first);\n dataStartPtr += first.dataCapacity;\n writeDataStartPtrHeader(dataStartPtr);\n }\n }", "@Override\n\tpublic int getBufferSize() {\n\t\treturn 0;\n\t}", "public static final void appendBytes(@org.jetbrains.annotations.NotNull java.io.File r2, @org.jetbrains.annotations.NotNull byte[] r3) {\n /*\n java.lang.String r0 = \"$this$appendBytes\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r2, r0)\n java.lang.String r0 = \"array\"\n kotlin.jvm.internal.Intrinsics.checkParameterIsNotNull(r3, r0)\n java.io.FileOutputStream r0 = new java.io.FileOutputStream\n r1 = 1\n r0.<init>(r2, r1)\n java.io.Closeable r0 = (java.io.Closeable) r0\n r2 = 0\n r1 = r0\n java.io.FileOutputStream r1 = (java.io.FileOutputStream) r1 // Catch:{ Throwable -> 0x001f }\n r1.write(r3) // Catch:{ Throwable -> 0x001f }\n kotlin.io.CloseableKt.closeFinally(r0, r2)\n return\n L_0x001d:\n r3 = move-exception\n goto L_0x0021\n L_0x001f:\n r2 = move-exception\n throw r2 // Catch:{ all -> 0x001d }\n L_0x0021:\n kotlin.io.CloseableKt.closeFinally(r0, r2)\n throw r3\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.io.i.appendBytes(java.io.File, byte[]):void\");\n }", "void skipnew() {\n\t\tint oldline;\n\t\tprintstatus = idle;\n\t\tfor (;;) {\n\t\t\tif (++printnewline > newinfo.maxLine)\n\t\t\t\tbreak; /* end of file */\n\t\t\toldline = newinfo.other[printnewline];\n\t\t\tif (oldline < 0)\n\t\t\t\tbreak; /* end of block */\n\t\t\tif (blocklen[oldline] != 0)\n\t\t\t\tbreak; /* start of another */\n\t\t}\n\t}", "public void appendRecord(IndexRecord record, SHPEnvelope mbr)\n throws IOException \n {\n offset = raf.length();\n raf.seek(offset);\n raf.write(record.writeIndexRecord());\n offset = offset + INDEX_RECORD_LENGTH;\n //actualize mbr\n if (fileMBR.west > mbr.west) {\n fileMBR.west = mbr.west;\n }\n if (fileMBR.east < mbr.east) {\n fileMBR.east = mbr.east;\n }\n if (fileMBR.south > mbr.south) {\n fileMBR.south = mbr.south;\n }\n if (fileMBR.north < mbr.north) {\n fileMBR.north = mbr.north;\n }\n raf.seek(36);\n raf.write(fileMBR.writeLESHPEnvelope());\n\n //actualize file length\n filelength = (int) offset / 2;\n }", "public void flush() throws IOException {\n // nothing to do with cached bytes\n }", "@Override\n public int getBufferSize() {\n return 0;\n }", "private void skipFully(InputStream in, long offset) throws IOException {\n/* 1163 */ while (offset > 0L) {\n/* 1164 */ long cur = in.skip(offset);\n/* 1165 */ if (cur <= 0L)\n/* 1166 */ throw new EOFException(\"can't skip\"); \n/* 1167 */ offset -= cur;\n/* */ } \n/* */ }", "void pushBack() throws IOException {\n iis.seek(iis.getStreamPosition()-bufAvail);\n bufAvail = 0;\n bufPtr = 0;\n }", "public void writeNonBlock(long l) {\n Timing.throughputLocal(0);\n writeEnable.setNow(1);\n writeData.setNow(l);\n Timing.waitClockLocal();\n }", "private static void copyFirstVersion(RandomAccessFile input, OutputStream output, long start, long length) throws IOException {\r\n\r\n\t\tbyte[] buffer = new byte[DEFAULT_BUFFER_SIZE];\r\n\t\tint read;\r\n\r\n\r\n\t\tif (input.length() == length) {\r\n\r\n\t\t\tByteArrayInputStream bai = new ByteArrayInputStream(buffer);\r\n\t\t\t// Write full range.\r\n\t\t\twhile ((read = bai.read(buffer)) > 0) {\r\n\t\t\t\tByteArrayOutputStream bao = new ByteArrayOutputStream();\r\n//\t\t\t\tbai.read(buffer, 0, (int) length);\r\n\t\t\t\tbao.write(buffer, 0,(int) length);\r\n//\t\t\t\toutput.write(buffer, 0, read);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\t// Write partial range.\r\n//\t\t\tinput.seek(start);\r\n\t\t\tlong toRead = length;\r\n//\r\n//\t\t\twhile ((read = input.read(buffer)) > 0) {\r\n//\t\t\t\tif ((toRead -= read) > 0) {\r\n//\t\t\t\t\toutput.write(buffer, 0, read);\r\n//\t\t\t\t} else {\r\n//\t\t\t\t\toutput.write(buffer, 0, (int) toRead + read);\r\n//\t\t\t\t\tbreak;\r\n//\t\t\t\t}\r\n//\t\t\t}\r\n\r\n\t\t\tByteArrayInputStream bai = new ByteArrayInputStream(buffer);\r\n\t\t\tByteArrayOutputStream bao = new ByteArrayOutputStream();\r\n\t\t\twhile ((read = bai.read(buffer)) > 0) {\r\n\t\t\t\tif((toRead -= read) > 0) {\r\n\t\t\t\t\tbao.write(buffer, 0, read);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tbao.write(buffer,0,(int)toRead + read);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\r\n\t\t\t\t// bai.read(buffer, 0, (int) length);\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "void allocate(ApexFile parent_file, int link_factor){\n assert this.used == false;\n\n //delete the block from parent file\n\n // CHECK THAT IF THE PARENT FILE IS NULL THEN DO NOT DO THE DELETE BLOCK STEP\n if(this.parentFile != null){\n this.parentFile.deleteBlock(this);\n }\n\n this.parentFile = parent_file;\n this.used = true;\n this.hf = 1;//reset\n this.uf = 1;//reset\n this.lf = link_factor;//binaries or non binaries\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 }", "public void sync()\n {\n byte[] blockData = new byte[Disk.blockSize];\n SysLib.int2bytes(totalBlocks, blockData, 0);\n SysLib.int2bytes(inodeBlocks, blockData, 4);\n SysLib.int2bytes(freeList, blockData, 8);\n SysLib.rawwrite(0, blockData);\n }", "protected void fill() throws IOException {\n ensureOpen();\n len = in.read(buf, 0, buf.length);\n if (len == -1) {\n throw new EOFException(\"Unexpected end of ZLIB input stream\");\n }\n inf.setInput(buf, 0, len);\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 }", "@Override\n protected void fixFile(final BufferedReader reader, final BufferedWriter writer) throws Exception {\n // init\n int lineCounter = 1;\n boolean lastLineWasEmpty = false;\n\n String line;\n while ((line = reader.readLine()) != null) {\n final String fixedLine = fixLine(line);\n\n if (fixedLine != null && !\"\".equals(fixedLine.trim())) {\n if (lastLineWasEmpty && lineIsNumberAboveZero(fixedLine)) {\n writer.newLine();\n lineCounter++;\n writer.write(\"\" + lineCounter);\n } else {\n lastLineWasEmpty = false;\n writer.write(fixedLine);\n }\n writer.newLine();\n } else {\n lastLineWasEmpty = true;\n }\n }\n }", "private void flushCurrentIndexBlock() throws IOException {\n if (currentMemoryIndex.documentsInIndex() < 1) {\n return;\n }\n\n logger.info(\"Flushing current memory Index. id = \" + indexBlockCount);\n\n final MemoryIndex flushingMemoryIndex = currentMemoryIndex;\n final File shardFolder = getNextIndexShardFolder(1);\n\n try {\n // reset the current index\n // - this makes the flush operation thread safe while continuing to add new documents.\n resetCurrentMemoryIndex();\n } catch (Exception ex) {\n throw new IOException(ex);\n }\n\n try {\n // first flush the index to disk\n FlushToDisk.flushMemoryIndex(flushingMemoryIndex, shardFolder.getAbsolutePath(), false);\n\n // indicate that the flushing part of this thread is done\n synchronized (geometricParts) {\n // add flushed index to the set of bins -- needs to be a synconeous action\n geometricParts.add(0, shardFolder.getAbsolutePath());\n updateIndex();\n flushingMemoryIndex.close();\n }\n\n } catch (IOException e) {\n logger.severe(e.toString());\n }\n }", "private void append(byte[] array, int off, int len) throws IOException {\n if(buffer == null) {\n buffer = allocator.allocate(limit);\n }\n buffer.append(array, off, len);\n }", "void write(byte[] buffer, int bufferOffset, int length) throws IOException;" ]
[ "0.6140583", "0.60480523", "0.5999626", "0.59973913", "0.5896299", "0.5803104", "0.58011323", "0.5743242", "0.5723737", "0.5715608", "0.5686816", "0.56749284", "0.56526333", "0.5637269", "0.56195354", "0.548833", "0.5485234", "0.5474027", "0.54615873", "0.54307854", "0.54213583", "0.5420085", "0.54191333", "0.537384", "0.5368246", "0.53552973", "0.53552437", "0.53546476", "0.53542584", "0.53531337", "0.53530544", "0.5331962", "0.53227603", "0.5304507", "0.5304201", "0.53028333", "0.52835524", "0.52665854", "0.5255404", "0.5249895", "0.52453303", "0.523634", "0.5219879", "0.51920396", "0.51803327", "0.51799077", "0.51641226", "0.5140441", "0.512115", "0.51183987", "0.5117528", "0.5110639", "0.5107326", "0.51068264", "0.51062894", "0.50935847", "0.5076147", "0.50718445", "0.5067357", "0.506729", "0.50664645", "0.5062617", "0.5055953", "0.5054083", "0.5048097", "0.5038884", "0.50380105", "0.50358814", "0.50333196", "0.50316966", "0.5029973", "0.50271344", "0.5013542", "0.50050473", "0.50013644", "0.50008696", "0.4993173", "0.49899197", "0.49887702", "0.49848023", "0.49788278", "0.49739563", "0.49718735", "0.49714816", "0.49602136", "0.4958824", "0.49567565", "0.49562046", "0.4955945", "0.49549395", "0.49519652", "0.49458346", "0.49455032", "0.49446058", "0.4944332", "0.4943492", "0.49388492", "0.49307474", "0.49296907", "0.49245808" ]
0.7164449
0
Expand file and add extra size to free block at end of the file
public void expandFile(LinkedQueue<FreeBlock> blocks) throws IOException { if (blocks.getLength() != 0) { FreeBlock first = blocks.peek(); FreeBlock block; do { block = blocks.peek(); if (block.getSize() + block.getPosition() == FILE_SIZE) { // last free block was at end of file and has been expanded block.setSize(block.getSize() + BLOCK_SIZE); expandFile(); return; } blocks.inqueue(blocks.dequeue()); } while (blocks.peek() != first); blocks.inqueue(new FreeBlock(FILE_SIZE, BLOCK_SIZE)); expandFile(); return; } else { blocks.inqueue(new FreeBlock(FILE_SIZE, BLOCK_SIZE)); } expandFile(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void expandFile()\n throws IOException\n {\n file.seek(FILE_SIZE);\n for (int i = 0; i < BLOCK_SIZE; i++)\n {\n file.write(0);\n }\n FILE_SIZE += BLOCK_SIZE;\n }", "public void expandFile(long length) throws IOException {\n\n\t}", "private void conditionalExtendFile() {\n\n // maximum allowed size of an Azure page blob (1 terabyte)\n final long MAX_PAGE_BLOB_SIZE = 1024L * 1024L * 1024L * 1024L;\n\n // If blob is already at the maximum size, then don't try to extend it.\n if (currentBlobSize == MAX_PAGE_BLOB_SIZE) {\n return;\n }\n\n // If we are within the maximum write size of the end of the file,\n if (currentBlobSize - currentBlobOffset <= MAX_RAW_BYTES_PER_REQUEST) {\n\n // Extend the file. Retry up to 3 times with back-off.\n CloudPageBlob cloudPageBlob = (CloudPageBlob) blob.getBlob();\n long newSize = currentBlobSize + configuredPageBlobExtensionSize;\n\n // Make sure we don't exceed maximum blob size.\n if (newSize > MAX_PAGE_BLOB_SIZE) {\n newSize = MAX_PAGE_BLOB_SIZE;\n }\n final int MAX_RETRIES = 3;\n int retries = 1;\n boolean resizeDone = false;\n while(!resizeDone && retries <= MAX_RETRIES) {\n try {\n cloudPageBlob.resize(newSize);\n resizeDone = true;\n currentBlobSize = newSize;\n } catch (StorageException e) {\n LOG.warn(\"Failed to extend size of \" + cloudPageBlob.getUri());\n try {\n\n // sleep 2, 8, 18 seconds for up to 3 retries\n Thread.sleep(2000 * retries * retries);\n } catch (InterruptedException e1) {\n\n // Restore the interrupted status\n Thread.currentThread().interrupt();\n }\n } finally {\n retries++;\n }\n }\n }\n }", "void truncate(INode i, int size) throws IOException {\n\t\tint dir_e;\n\t\tint indir_e;\n\t\tint sec_indir_e, sec_indir_le = 0;\n\n\t\tint old_dir_e;\n\t\tint old_indir_e;\n\t\tint old_sec_indir_e, old_sec_indir_le = 0;\n\n\t\tint old_size;\n\t\tint allocated;\n\t\tint needed;\n\n\t\tPInt pt = new PInt();\n\n\t\told_size = i.size;\n\t\tallocated = (old_size + BLOCK_SIZE - 1) / BLOCK_SIZE;\n\t\tneeded = (size + BLOCK_SIZE - 1) / BLOCK_SIZE;\n\n\t\tif (needed <= 7) {\n\t\t\tdir_e = needed;\n\t\t\tindir_e = 0;\n\t\t\tsec_indir_e = 0;\n\t\t} else if ((needed -= 7) != 0 && needed <= INDICES_PER_BLOCK) {\n\t\t\tdir_e = 7;\n\t\t\tindir_e = needed;\n\t\t\tsec_indir_e = 0;\n\t\t} else if ((needed -= INDICES_PER_BLOCK) != 0\n\t\t\t\t&& needed <= INDICES_PER_BLOCK * INDICES_PER_BLOCK) {\n\t\t\tdir_e = 7;\n\t\t\tindir_e = BLOCK_SIZE / 4;\n\t\t\tsec_indir_e = (needed + INDICES_PER_BLOCK - 1) / INDICES_PER_BLOCK;\n\t\t\tsec_indir_le = needed % INDICES_PER_BLOCK;\n\t\t} else\n\t\t\tthrow new IllegalArgumentException(\"file too large\");\n\n\t\t/* now check allocated */\n\t\tif (allocated <= 7) {\n\t\t\told_dir_e = allocated;\n\t\t\told_indir_e = 0;\n\t\t\told_sec_indir_e = 0;\n\t\t} else if ((allocated -= 7) != 0 && allocated <= INDICES_PER_BLOCK) {\n\t\t\told_dir_e = 7;\n\t\t\told_indir_e = allocated;\n\t\t\told_sec_indir_e = 0;\n\t\t} else if ((allocated -= INDICES_PER_BLOCK) != 0\n\t\t\t\t&& allocated <= INDICES_PER_BLOCK * INDICES_PER_BLOCK) {\n\t\t\told_dir_e = 7;\n\t\t\told_indir_e = INDICES_PER_BLOCK;\n\t\t\told_sec_indir_e = (allocated + INDICES_PER_BLOCK - 1)\n\t\t\t\t\t/ INDICES_PER_BLOCK;\n\t\t\told_sec_indir_le = allocated % INDICES_PER_BLOCK;\n\t\t} else\n\t\t\tthrow new Error();\n\n\t\t/* now start working */\n\t\tacquire_release_range(i.blocks, old_dir_e, dir_e);\n\t\tpt.val = i.indir_block;\n\t\tacquire_release_range_indirect(pt, old_indir_e, indir_e);\n\t\ti.indir_block = pt.val;\n\t\tpt.val = i.second_level_indir_block;\n\t\tacquire_release_range_indirect2(pt, old_sec_indir_e, old_sec_indir_le,\n\t\t\t\tsec_indir_e, sec_indir_le);\n\t\ti.second_level_indir_block = pt.val;\n\n\t\t/* update size */\n\t\ti.size = size;\n\t}", "public synchronized void truncateFile(long siz) throws IOException {\n\t\tLock l = df.getReadLock();\n\t\tl.lock();\n\t\ttry {\n\t\t\tif (SDFSLogger.isDebug())\n\t\t\t\tSDFSLogger.getLog().debug(\"Truncating File\");\n\t\t\tif (siz < df.getMetaFile().length()) {\n\t\t\t\tdf.truncate(siz);\n\t\t\t\t/*\n\t\t\t\t * WritableCacheBuffer writeBuffer = df.getWriteBuffer(siz); int\n\t\t\t\t * endPos = (int) (siz - writeBuffer.getFilePosition());\n\t\t\t\t * DedupChunk nextDk = df.getHash(writeBuffer.getEndPosition() +\n\t\t\t\t * 1, false); while (nextDk != null) {\n\t\t\t\t * SDFSLogger.getLog().debug(\"Removing chunk at position \" +\n\t\t\t\t * nextDk.getFilePosition());\n\t\t\t\t * df.removeHash(nextDk.getFilePosition()); nextDk =\n\t\t\t\t * df.getHash(nextDk.getFilePosition() + nextDk.getLength() + 1,\n\t\t\t\t * true); } writeBuffer.truncate(endPos); //\n\t\t\t\t * df.writeCache(writeBuffer,true);\n\t\t\t\t */\n\n\t\t\t}\n\t\t\tdf.getMetaFile().setLastModified(System.currentTimeMillis());\n\t\t\tdf.getMetaFile().setLength(siz, true);\n\t\t} finally {\n\t\t\tl.unlock();\n\t\t}\n\t}", "public void truncateFile(SrvSession sess, TreeConnection tree, NetworkFile file, long siz)\n throws java.io.IOException {\n \n // Debug\n \n if ( Debug.EnableInfo && hasDebug())\n Debug.println(\"DB truncateFile()\");\n\n // Check that the network file is our type\n\n if (file instanceof DBNetworkFile) {\n\n // Access the JDBC context\n\n DBDeviceContext dbCtx = (DBDeviceContext) tree.getContext();\n\n // Get the JDBC file\n \n DBNetworkFile jfile = (DBNetworkFile) file;\n \n // Get, or create, the file state\n \n FileState fstate = jfile.getFileState();\n \n // Get the file details\n \n DBFileInfo dbInfo = getFileDetails(jfile.getFullName(),dbCtx,fstate);\n if ( dbInfo == null)\n throw new FileNotFoundException(jfile.getFullName());\n\n // Check if the new file size is greater than the maximum allowed file size, if enabled\n \n if ( dbCtx.hasMaximumFileSize() && siz > dbCtx.getMaximumFileSize()) {\n \n // Mark the file to delete on close\n \n file.setDeleteOnClose( true);\n\n // Return a disk full error\n \n throw new DiskFullException( \"Write is beyond maximum allowed file size\");\n }\n \n // Keep track of the allocation/release size in case the file resize fails\n \n long allocSize = 0L;\n long releaseSize = 0L;\n \n // Check if there is a quota manager\n\n QuotaManager quotaMgr = dbCtx.getQuotaManager();\n \n if ( dbCtx.hasQuotaManager()) {\n \n // Determine if the new file size will release space or require space allocating\n \n if ( siz > dbInfo.getAllocationSize()) {\n \n // Calculate the space to be allocated\n \n allocSize = siz - dbInfo.getAllocationSize();\n \n // Allocate space to extend the file\n \n quotaMgr.allocateSpace(sess, tree, file, allocSize);\n }\n else {\n \n // Calculate the space to be released as the file is to be truncated, release the space if\n // the file truncation is successful\n \n releaseSize = dbInfo.getAllocationSize() - siz;\n }\n }\n \n // Set the file length\n\n try {\n jfile.truncateFile(siz);\n }\n catch (IOException ex) {\n \n // Check if we allocated space to the file\n \n if ( allocSize > 0 && quotaMgr != null)\n quotaMgr.releaseSpace(sess, tree, file.getFileId(), null, allocSize);\n\n // Rethrow the exception\n \n throw ex; \n }\n \n // Check if space has been released by the file resizing\n \n if ( releaseSize > 0 && quotaMgr != null)\n quotaMgr.releaseSpace(sess, tree, file.getFileId(), null, releaseSize);\n \n // Update the file information\n \n if ( allocSize > 0)\n dbInfo.setAllocationSize(dbInfo.getAllocationSize() + allocSize);\n else if ( releaseSize > 0)\n dbInfo.setAllocationSize(dbInfo.getAllocationSize() - releaseSize);\n \n // Update the last file change date/time\n \n try {\n\n // Build the file information to set the change date/time\n \n FileInfo finfo = new FileInfo();\n \n finfo.setChangeDateTime(System.currentTimeMillis());\n finfo.setFileInformationFlags(FileInfo.SetChangeDate);\n \n // Set the file change date/time\n \n dbCtx.getDBInterface().setFileInformation(jfile.getDirectoryId(), jfile.getFileId(), finfo);\n \n // Update the cached file information\n \n dbInfo.setChangeDateTime(finfo.getChangeDateTime());\n dbInfo.setAllocationSize(siz);\n }\n catch (Exception ex) { \n }\n }\n }", "public abstract void adjustSize(long size);", "@Override\n public PicoFile truncate(long size) throws IOException {\n if (_open)\n _backing.setLength(size + _head.offset);\n _hashvalid = false;\n _resetDigest();\n return this;\n }", "private void adjustBytesFree(final IndexedDiskElementDescriptor ded, final boolean add)\r\n {\r\n if (ded != null)\r\n {\r\n final int amount = ded.len + IndexedDisk.HEADER_SIZE_BYTES;\r\n\r\n if (add)\r\n {\r\n this.bytesFree.addAndGet(amount);\r\n }\r\n else\r\n {\r\n this.bytesFree.addAndGet(-amount);\r\n }\r\n }\r\n }", "public void updateRecordCurrentSize(final Record record) {\n String recordPath = getPathForRecord(record);\n File recordFolder = new File(recordPath);\n if (recordFolder.exists()) {\n File[] recordFiles = recordFolder.listFiles();\n long totalSizeKB = 0;\n for (File eachRecordFile : recordFiles) {\n totalSizeKB += (eachRecordFile.length() / 1024);\n }\n record.recordSizeKB = totalSizeKB;\n record.totalSizeKB = Math.max(record.totalSizeKB, record.recordSizeKB);\n }\n }", "public synchronized void updateFileSize( long passedSize ){\n \n fileSize = passedSize;\n if( fileSize >= 0 && fileByteCounter >= fileSize )\n finishFileTransfer(); \n }", "long optimize(CapacityExtractorOutputStream out, long now, AtomicLong allocation) {\n int currentChunk = chunk(now);\n \n long reclaimed = 0L;\n\n synchronized(this.chunks) { \n for (int i = 0; i < this.chunks.length; i++) {\n if (null == this.chunks[i] || i == currentChunk) {\n continue;\n }\n int size = this.chunks[i].size();\n \n try {\n this.chunks[i].writeTo(out);\n int capacity = out.getCapacity();\n \n if (capacity > size) {\n this.chunks[i].resize(size);\n allocation.addAndGet(size);\n reclaimed += (capacity - size);\n } \n } catch (IOException ioe) { \n }\n }\n }\n \n return reclaimed;\n }", "public void setLength(long newLength) throws IOException {\n flush();\n this.randomAccessFile.setLength(newLength);\n if (newLength < this.fileOffset) {\n this.fileOffset = newLength;\n }\n }", "private void checkAndModifySize() {\r\n if (size == data.length * LOAD_FACTOR) {\r\n resizeAndTransfer();\r\n }\r\n }", "long getSize() throws IOException;", "public void superBlock() throws FileNotFoundException, IOException\n {\n \tByteBuffer buf = ByteBuffer.allocate(1024);\n \tbuf.order(ByteOrder.LITTLE_ENDIAN);\n \tbyte[] bytes = new byte[1024];\n f.seek(1024);\n \tf.read(bytes);\n \tbuf.put(bytes);\n\n \tmagicNum = buf.getShort(56);\n \ttotalInodes = buf.getInt(0);\n \ttotalBlocks = buf.getInt(4);\n \tblocksPerGroup = buf.getInt(32);\n \tinodesPerGroup = buf.getInt(40);\n \tsizeOfInode = buf.getInt(88);\n\n \tbyte[] stringLabel = new byte[16];\n \tbuf.position(120);\n buf.get(stringLabel);\n \tvolumeLabel = new String(stringLabel);\n\n System.out.println(\"Magic Number : \"+String.format(\"0x%04X\",magicNum));\n System.out.println(\"Total Inodes: \"+totalInodes);\n System.out.println(\"Total Blocks: \"+totalBlocks);\n System.out.println(\"Blocks per Group: \"+blocksPerGroup);\n System.out.println(\"Inodes per Group: \"+inodesPerGroup);\n System.out.println(\"Size Of each Inode in bytes: \"+sizeOfInode);\n System.out.println(\"Volume Label: \"+ volumeLabel+ \"\\n\");\n }", "private void increaseSize() {\n data = Arrays.copyOf(data, size * 3 / 2);\n }", "public void update_local_index(String record_size_file, String record_file,\n\t\t\tString record_line) {\n \tint record_size = 0;\n\t\tif (file_helper.fileIsExists(record_size_file)) {\n\t\t\tString record_size_line = file_helper.read(record_size_file);\n\t\t\tif (record_size_line != null) {\n\t\t\t\trecord_size = Integer.parseInt(record_size_line);\n\t\t\t}\n\t\t}\n \trecord_size++;\n \tfile_helper.save(record_size_file, record_size + \"\");\n \t\n \t// record\n \tString new_record_line = record_size + \"\\t\" + record_line + \"\\n\";\n\t\tLog.i(TAG, record_file + \" NEW: \" + new_record_line);\n \tfile_helper.append(record_file, new_record_line);\n\t}", "public synchronized int resize(int newBytesPerId, int newBytesPerType, int newBytesPerPath)\n throws IOException {\n if (this.bytesPerId > newBytesPerId && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per id when there are entries in the index\");\n if (this.bytesPerType > newBytesPerType && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per type when there are entries in the index\");\n if (this.bytesPerPath > newBytesPerPath && this.entries > 0)\n throw new IllegalStateException(\"Cannot reduce the number of bytes per path when there are entries in the index\");\n if (this.isReadOnly)\n throw new IllegalStateException(\"This index is readonly\");\n \n int newBytesPerSlot = newBytesPerId + newBytesPerType + newBytesPerPath;\n \n logger.info(\"Resizing uri index to {} ({}) slots and {} ({}) bytes per entry\", new Object[] { slots, this.slots, newBytesPerSlot, this.bytesPerSlot });\n \n String fileName = FilenameUtils.getBaseName(idxFile.getName());\n String fileExtension = FilenameUtils.getExtension(idxFile.getName());\n String idxFilenameNew = fileName + \"_resized.\" + fileExtension;\n File idxNewFile = new File(idxFile.getParentFile(), idxFilenameNew);\n long time = System.currentTimeMillis();\n \n logger.debug(\"Creating resized index at \" + idxNewFile);\n \n // Create the new index\n RandomAccessFile idxNew = null;\n try {\n idxNew = new RandomAccessFile(idxNewFile, \"rwd\");\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"Index file \" + idxNewFile + \" cannot be created: \" + e.getMessage(), e);\n }\n \n // Write header\n idxNew.seek(IDX_START_OF_HEADER);\n idxNew.writeInt(indexVersion);\n idxNew.writeInt(newBytesPerId);\n idxNew.writeInt(newBytesPerType);\n idxNew.writeInt(newBytesPerPath);\n idxNew.writeLong(slots);\n idxNew.writeLong(entries);\n \n // Position to read the whole content\n idx.seek(IDX_START_OF_CONTENT);\n \n // Write entries\n for (int i = 0; i < slots; i++) {\n byte[] bytes = new byte[newBytesPerSlot];\n if (i < this.slots) {\n idx.read(bytes, 0, this.bytesPerSlot);\n idxNew.write(bytes);\n } else {\n // Write an empty line\n idxNew.write(bytes);\n }\n }\n \n logger.debug(\"Removing old index at \" + idxFile);\n \n // Close and delete the old index\n idx.close();\n if (!idxFile.delete())\n throw new IOException(\"Unable to delete old index file \" + idxFile);\n \n // Close the new index, and move it into the old index' place\n logger.debug(\"Moving resized index into regular position at \" + idxFile);\n idxNew.close();\n if (!idxNewFile.renameTo(idxFile))\n throw new IOException(\"Unable to move new index file to \" + idxFile);\n \n try {\n idx = new RandomAccessFile(idxFile, \"rwd\");\n } catch (FileNotFoundException e) {\n throw new IllegalArgumentException(\"Index file \" + idxNewFile + \" cannot be created: \" + e.getMessage(), e);\n }\n \n this.bytesPerSlot = newBytesPerSlot;\n this.bytesPerId = newBytesPerId;\n this.bytesPerType = newBytesPerType;\n this.bytesPerPath = newBytesPerPath;\n \n time = System.currentTimeMillis() - time;\n logger.info(\"Uri index resized in {}\", ConfigurationUtils.toHumanReadableDuration(time));\n return newBytesPerSlot;\n }", "Builder withAutoCommitBufferSizeInKiB(int sizeInKiB);", "protected void migrateOnDemand () {\n\t\ttry {\n\t\t\tif (fso.fileExists(prefix+\".fat\") && !fso.fileExists(prefix+EXTENSIONS[UBM_FILE])) {\n\t\t\t\tRandomAccessFile ubm, meta, ctr, rbm;\n\t\t\t\tInputStream inputStream;\n\t\t\t\tOutputStream outputStream;\n\n\t\t\t\tfso.renameFile(prefix+\".fat\",prefix+EXTENSIONS[UBM_FILE]);\n\n\t\t\t\tubm = fso.openFile(prefix+EXTENSIONS[UBM_FILE], \"rw\");\n\t\t\t\tmeta = fso.openFile(prefix+EXTENSIONS[MTD_FILE], \"rw\");\n\t\t\t\tctr = fso.openFile(prefix+EXTENSIONS[CTR_FILE], \"rw\");\n\t\t\t\tubm.seek(ubm.length()-16);\n\t\t\t\tmeta.writeInt(blockSize = ubm.readInt());\n\t\t\t\tmeta.writeInt(size = ubm.readInt());\n\t\t\t\tctr.setLength(ubm.readLong()+blockSize);\t// maxOffset\n\t\t\t\tctr.close();\n\t\t\t\tmeta.close();\n\t\t\t\tubm.setLength(ubm.length()-16);\n\n\t\t\t\tubm.seek(0);\n\t\t\t\trbm = fso.openFile(prefix+EXTENSIONS[UBM_FILE], \"rw\");\n\t\t\t\tinputStream = new BufferedInputStream(new RandomAccessFileInputStream(ubm));\n\t\t\t\toutputStream = new BufferedOutputStream(new RandomAccessFileOutputStream(rbm));\n\t\t\t\tfor (int b; (b = inputStream.read())!=-1;)\n\t\t\t\t\toutputStream.write(b);\n\t\t\t\toutputStream.close();\n\t\t\t\tinputStream.close();\n\t\t\t\trbm.close();\n\t\t\t\tubm.close();\n\t\t\t}\n\t\t}\n\t\tcatch (IOException ie) {\n\t\t\tthrow new WrappingRuntimeException(ie);\n\t\t}\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 }", "long getSize() throws FileSystemException;", "protected void optimizeFile()\r\n {\r\n final ElapsedTimer timer = new ElapsedTimer();\r\n timesOptimized++;\r\n log.info(\"{0}: Beginning Optimization #{1}\", logCacheName, timesOptimized);\r\n\r\n // CREATE SNAPSHOT\r\n Collection<IndexedDiskElementDescriptor> defragList = null;\r\n\r\n storageLock.writeLock().lock();\r\n\r\n try\r\n {\r\n queueInput = true;\r\n // shut off recycle while we're optimizing,\r\n doRecycle = false;\r\n defragList = createPositionSortedDescriptorList();\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n\r\n // Defrag the file outside of the write lock. This allows a move to be made,\r\n // and yet have the element still accessible for reading or writing.\r\n long expectedNextPos = defragFile(defragList, 0);\r\n\r\n // ADD THE QUEUED ITEMS to the end and then truncate\r\n storageLock.writeLock().lock();\r\n\r\n try\r\n {\r\n try\r\n {\r\n if (!queuedPutList.isEmpty())\r\n {\r\n // pack them at the end\r\n expectedNextPos = defragFile(queuedPutList, expectedNextPos);\r\n }\r\n // TRUNCATE THE FILE\r\n dataFile.truncate(expectedNextPos);\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Error optimizing queued puts.\", logCacheName, e);\r\n }\r\n\r\n // RESTORE NORMAL OPERATION\r\n removeCount = 0;\r\n resetBytesFree();\r\n this.recycle.clear();\r\n queuedPutList.clear();\r\n queueInput = false;\r\n // turn recycle back on.\r\n doRecycle = true;\r\n isOptimizing = false;\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n\r\n log.info(\"{0}: Finished #{1}, Optimization took {2}\",\r\n logCacheName, timesOptimized, timer.getElapsedTimeString());\r\n }", "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 }", "@Test\n public void testFileSize() {\n System.out.println(\"fileSize\");\n RecordFile instance = new RecordFile();\n \n Assert.assertEquals(76, instance.fileSize());\n \n byte[] bytes = new byte[10];\n instance.insert(bytes, 0);\n Assert.assertEquals(86, instance.fileSize());\n \n bytes = new byte[12];\n instance.write(bytes, 0);\n Assert.assertEquals(88, instance.fileSize());\n \n bytes = new byte[100];\n instance.insert(bytes, 0);\n Assert.assertEquals(188, instance.fileSize());\n \n bytes = new byte[100];\n instance.remove(0);\n Assert.assertEquals(88, instance.fileSize());\n \n bytes = new byte[100];\n instance.remove(0);\n Assert.assertEquals(76, instance.fileSize());\n }", "public static void setLength(final RandomAccessFile file, final long newLength) throws IOException {\n\n try {\n trace(\"setLength\", null, file);\n file.setLength(newLength);\n }\n catch (final IOException e) {\n final long length = file.length();\n if (newLength < length) { throw e; }\n final long pos = file.getFilePointer();\n file.seek(length);\n long remaining = newLength - length;\n final int maxSize = 1024 * 1024;\n final int block = (int) Math.min(remaining, maxSize);\n final byte[] buffer = new byte[block];\n while (remaining > 0) {\n final int write = (int) Math.min(remaining, maxSize);\n file.write(buffer, 0, write);\n remaining -= write;\n }\n file.seek(pos);\n }\n }", "void compact(long maxSize) throws IOException;", "private boolean changeSize(Inode inode, int bytesBefore, int bytesAfter) {\t\t\n\t\tif (bytesAfter > MAX_FILE_SIZE) {\n\t\t\treturn false;\n\t\t}\n\t\tint blocksBefore = neededBlocks(bytesBefore);\n\t\tint blocksAfter = neededBlocks(bytesAfter);\n\t\t\n\t\tif (blocksBefore == blocksAfter) {\n\t\t\tinode.length = bytesAfter;\n\t\t\treturn true;\n\t\t}\n\t\tbyte[] buffer = null;\n\t\t\n\t\tif (blocksBefore > blocksAfter) {\n\t\t\tif (blocksBefore > DIRECT) {\n\t\t\t\t// Only do a read if we care about the indirect block\n\t\t\t\tbuffer = new byte[BLOCK_SIZE];\t\t\t\t\n\t\t\t\tSysLib.rawread(inode.indirect, buffer);\t\t\t\t\n\t\t\t}\n\t\t\tfor (int i = blocksAfter + 1; i <= blocksBefore; i++) {\n\t\t\t\tdeallocateBlock(inode, i, buffer);\n\t\t\t}\n\t\t\tif (blocksAfter < DIRECT && blocksBefore > DIRECT) {\n\t\t\t\tsuperblock.returnBlock((short)inode.indirect);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tassert (blocksAfter > blocksBefore);\n\t\t\tif (blocksBefore <= DIRECT && blocksAfter > DIRECT) {\n\t\t\t\tinode.indirect = (short)(superblock.getBlock());\n\t\t\t}\n\t\t\tif (blocksBefore > DIRECT || blocksAfter > DIRECT) {\n\t\t\t\t// Only do a read if we care about the indirect block\n\t\t\t\tbuffer = new byte[BLOCK_SIZE];\n\t\t\t\tSysLib.rawread(inode.indirect, buffer);\t\t\t\t\n\t\t\t}\n\t\t\tfor (int i = blocksBefore; i < blocksAfter; i++) {\n\t\t\t\tallocateBlock(inode, i, buffer);\n\t\t\t}\n\t\t\tif (blocksAfter > DIRECT) {\n\t\t\t\tSysLib.rawwrite(inode.indirect, buffer);\n\t\t\t}\n\n\t\t}\n\t\tinode.length = bytesAfter;\n\t\tif(blocksAfter != 0)\n\t\t\tgetBlockNumber(inode, blocksAfter-1, buffer);\n\t\treturn true;\n\t}", "void visitFile(StorageUnit unit, long off, long lim);", "public void showFileSize(long size);", "void allocate(ApexFile parent_file, int link_factor){\n assert this.used == false;\n\n //delete the block from parent file\n\n // CHECK THAT IF THE PARENT FILE IS NULL THEN DO NOT DO THE DELETE BLOCK STEP\n if(this.parentFile != null){\n this.parentFile.deleteBlock(this);\n }\n\n this.parentFile = parent_file;\n this.used = true;\n this.hf = 1;//reset\n this.uf = 1;//reset\n this.lf = link_factor;//binaries or non binaries\n }", "public void sizeIncrease1() {\n\t\t _size++;\n\t}", "public static void resetFileSize(final File f, final long desired) throws IOException {\n boolean ok = f.length() == desired;\n if (!ok) {\n RandomAccessFile raf = null;\n try {\n raf = new RandomAccessFile(f, \"rws\");\n raf.setLength(desired);\n } finally {\n if (raf != null) {\n raf.close();\n }\n }\n }\n }", "public long free(long size);", "@Override\n public void setSize(final long size) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"324a1517-24fc-4321-b6db-b6298682fdff\");\n if (size < 0) {\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7216d875-4e8a-4414-96cb-4aced232dd32\");\n throw new IllegalArgumentException(\"invalid entry size\");\n }\n writeline(\"/home/ubuntu/results/coverage/ZipArchiveEntry/ZipArchiveEntry_5_10.coverage\", \"7b4aac03-5acf-4fa5-b192-8b1ca4b2eb07\");\n this.size = size;\n }", "@Test\n public void allSize() throws Exception{\n fillFile();\n Assert.assertEquals(maxBlocks, rf.size());\n }", "private void grow() {\n int growSize = size + (size<<1);\n array = Arrays.copyOf(array, growSize);\n }", "public static void fixCorruptSizeFields(File wavFile) throws IOException {\n\t\tlong realFileSize = wavFile.length();\n\t\tRandomAccessFile raf = null;\n\t\tbyte[] array = new byte[4];\n\t\ttry {\n\t\t\traf = new RandomAccessFile(wavFile, \"rw\");\n\t\t\traf.seek(0);\n\t\t\tWavReader.read(raf, array, 4);\n\t\t\tString chunkID = readString(array, 0, 4);\n\n\t\t\t// validate the expected presence of the \"RIFF\" and \"WAVE\" strings:\n\t\t\tif (!\"RIFF\".equals(chunkID))\n\t\t\t\tthrow new IOException(\n\t\t\t\t\t\t\"the file did not begin with a RIFF header: \"\n\t\t\t\t\t\t\t\t+ wavFile.getAbsolutePath());\n\n\t\t\traf.seek(8);\n\t\t\tWavReader.read(raf, array, 4);\n\t\t\tchunkID = readString(array, 0, 4);\n\n\t\t\tif (!\"WAVE\".equals(chunkID))\n\t\t\t\tthrow new IOException(\n\t\t\t\t\t\t\"the file did not contain a WAVE identifier: \"\n\t\t\t\t\t\t\t\t+ wavFile.getAbsolutePath());\n\n\t\t\t// we have 2 size fields to fix:\n\n\t\t\t// First: the size of the wave file (after the \"RIFF\" identifier)\n\n\t\t\traf.seek(4);\n\t\t\tWavFileWriter.writeLong(array, realFileSize - 8, 4);\n\t\t\traf.write(array, 0, 4);\n\n\t\t\t// Second: the size of the data chunk (after the \"data\" identifier)\n\t\t\t// To do this, we have to find where the \"data\" identifier is:\n\n\t\t\traf.seek(12);\n\t\t\twhile (raf.getFilePointer() < realFileSize) {\n\t\t\t\tWavReader.read(raf, array, 4);\n\t\t\t\tchunkID = readString(array, 0, 4);\n\n\t\t\t\tif (\"data\".equals(chunkID)) {\n\t\t\t\t\tlong dataChunkSize = realFileSize - raf.getFilePointer()\n\t\t\t\t\t\t\t- 4;\n\t\t\t\t\tWavFileWriter.writeLong(array, dataChunkSize, 4);\n\t\t\t\t\traf.write(array, 0, 4);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tWavReader.read(raf, array, 4);\n\t\t\t\tlong chunkSize = readLong(array, 0, 4);\n\n\t\t\t\traf.seek(raf.getFilePointer() + chunkSize);\n\t\t\t}\n\t\t} finally {\n\t\t\tif (raf != null) {\n\t\t\t\ttry {\n\t\t\t\t\traf.close();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void setLocalSize(int size);", "public Builder clearFileSize() {\n \n fileSize_ = 0L;\n onChanged();\n return this;\n }", "public final void clearEndOfFile() {\n\t\tif ( atEndOfFile())\n\t\t\tm_flags -= EndOfFile;\n\t}", "long getFileSize();", "private void updateStatusInternal(){\n\t\tFile dataPath = Environment.getDataDirectory();\n\t\tStatFs stat = new StatFs(dataPath.getPath());\n\t\tlong blockSize = stat.getBlockSize();\n\t\tlong availableBlocks = stat.getAvailableBlocks();\n\t\t//show the space of internal storage\n\t\tmExternalTotalSpace=formatSize(availableBlocks * blockSize);\n\t}", "private void grow(int n) {\n\t\tint newSize = length + n;\n\t\tif (newSize > limit) {\n\t\t\t// find smallest power of 2 greater than newSize\n\t\t\tlimit = (int) Math.pow(2, Math.ceil(Math.log(newSize) / LN2));\n\t\t\tfloat[] newBuffer = new float[limit];\n\t\t\tSystem.arraycopy(data, 0, newBuffer, 0, length);\n\t\t\tdata = newBuffer;\n\t\t}\n\t}", "public void resize(final int size)\n\t{\n\t\t// get the difference\n\t\tint intDifference = size - bytes.length;\n\t\t\n\t\t// check to see if the difference is positive\n\t\tif (intDifference > 0)\n\t\t{\n\t\t\t// add to the size of this byte array\n\t\t\tappend(new byte[intDifference]);\n\t\t}\n\t\t// check to see if the difference is negative\n\t\telse if (intDifference < 0)\n\t\t{\n\t\t\tbytes = subArray(0, size).getBytes();\n\t\t}\n\t}", "@Test\n public void testIsFull() {\n System.out.println(\"isFull\");\n RecordFile instance = new RecordFile();\n \n String first = \"hello\";\n \n for(int i = 0; i < instance.compacity(); i++)\n {\n instance.write((first + i).getBytes(), i);\n }\n \n for(int i = 0; i < instance.compacity(); i++)\n {\n Assert.assertEquals(first + i, new String(instance.read(i)));\n }\n \n Assert.assertEquals(true, instance.isFull());\n \n instance.remove(0);\n \n Assert.assertEquals(false, instance.isFull());\n }", "@Test\n\tpublic void writeToHDFSUncompressedFile() throws Exception {\n\t\tConfiguration configuration = new Configuration();\n\t\tconfiguration.set(\"dfs.block.size\", \"134217728\");// play around with this number (in bytes)\n\t\tFileSystem fs = FileSystem.get(new URI(\"hdfs://192.168.47.10:54310\"), configuration, \"hduser\");\n\t\tPath outFilePath = new Path(\"/hduser/input/words.txt\");\n\t\tOutputStream outFile = fs.create(outFilePath);\n\n\t\tBufferedReader br = new BufferedReader(new FileReader(\"source/small-source.txt\"));\n\t\tlong start = System.currentTimeMillis();\n\t\tSystem.out.println(\"Starting\");\n\t\tfor (int i = 0; i < 1000; i++) {\n\t\t\tString line = br.readLine();\n\t\t\tif (line == null){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\toutFile.write((line+\"\\n\").getBytes());\n\t\t}\n\t\tlong stop = System.currentTimeMillis();\n\t\tSystem.out.println(\"Written \" + 10000000 + \" records in \" + (stop - start) + \" milliseconds\");\n\t\toutFile.close();\n\t\tbr.close();\n\t}", "public Builder setFileSize(long value) {\n \n fileSize_ = value;\n onChanged();\n return this;\n }", "public Builder clearFileSize() {\n \n fileSize_ = 0F;\n onChanged();\n return this;\n }", "@Override\n public void corrupt(File file) throws IOException\n {\n FileChannel.open(file.toPath(), StandardOpenOption.WRITE).truncate(file.length() - CodecUtil.footerLength() - 2).close();\n }", "public interface VFSFile extends VFSEntry {\n /**\n * Get current length of this file.\n *\n * @return current length of file\n * @throws IOException I/O exception happened during operation\n */\n int getLength() throws IOException;\n\n /**\n * Set current read/write pointer of file relative to file start.\n *\n * @param offsetFromStart offset from beginning of file\n */\n void seek(int offsetFromStart);\n\n /**\n * Read block of data from file. Read operation starts from current pointer in file, then pointer advances to next\n * byte after last successfully read byte.\n *\n * @param buffer destination buffer to read into\n * @param bufferOffset offset in destination buffer where read bytes must be placed\n * @param length length of bytes to read from file\n * @return amount of successfully read bytes, -1 if there are no more bytes left in file\n * @throws IOException I/O exception happened during operation\n */\n int read(byte[] buffer, int bufferOffset, int length) throws IOException;\n\n /**\n * Write block of data to file, expanding it if necessary. Write operation starts from current pointer in file, then pointer advances to next\n * byte after last successfully written byte. File must be opened for write for this method to succeed.\n *\n * @param buffer source buffer to read bytes from\n * @param bufferOffset offset in source buffer from where bytes must be written to file\n * @param length length of bytes to write to file\n * @throws IOException I/O exception happened during operation\n */\n void write(byte[] buffer, int bufferOffset, int length) throws IOException;\n}", "@Override\n public void corrupt(File file) throws IOException\n {\n try (FileChannel channel = FileChannel.open(file.toPath(), StandardOpenOption.WRITE))\n {\n channel.truncate(file.length() - CodecUtil.footerLength() - 2);\n }\n }", "void truncateFile() throws Exception {\n\n long fileSize = outChannel.position(0).size();\n\n long step = fileSize / N;\n\n try {\n\n for (int i = 0; i <= N + 1; ++i) {\n\n outChannel.truncate(fileSize - step * i);\n\n }\n\n } catch (IllegalArgumentException iae) {\n\n // System.out.println(\"IAE\");\n\n // this is just in case to check nothing but exception happens \n // in case of negative size\n }\n\n }", "public void trimToSize() {\n }", "public long getFileSize();", "public long getFileSize();", "public void trimToSize();", "@Override\n\tpublic void enlarge() {\n\t\t\n\t}", "public void setMaxFileSize(int sINGLESIZE) {\n\t\t\r\n\t}", "public void putNextEntry( TarEntry entry ) throws IOException {\n\t\tStringBuffer name = entry.getHeader().name;\n\t\tif ( ( entry.isUnixTarFormat() && name.length() > TarHeader.NAMELEN ) || ( ! entry.isUnixTarFormat()\n && name.length() > (TarHeader.NAMELEN + TarHeader.PREFIXLEN) )) { // Formata gore isim boyutu kontrolu yapar\n\t\t\tthrow new InvalidHeaderException( \"file name '\" + name + \"' is too long ( \" + name.length() + \" > \"\n + ( entry.isUnixTarFormat() ? TarHeader.NAMELEN : (TarHeader.NAMELEN + TarHeader.PREFIXLEN) ) + \" bytes )\" );\n\t\t\t}\n\t\tentry.writeEntryHeader( this.recordBuf ); // Basligi yazar\n\t\tthis.buffer.writeRecord( this.recordBuf ); // Kayiti yazar\n\t\tthis.currBytes = 0;\n\t\tif ( entry.isDirectory() )\n\t\t\tthis.currSize = 0;\n\t\telse\n\t\t\tthis.currSize = entry.getSize();\n\t\t}", "private void subLengthFromCacheSize(final IndexedDiskElementDescriptor value)\r\n {\r\n contentSize.addAndGet((value.len + IndexedDisk.HEADER_SIZE_BYTES) / -1024 - 1);\r\n }", "public void endFlatFile() {\n }", "public void testGetFileSizeSuccess() throws Exception {\r\n assertNotNull(\"setup fails\", filePersistence);\r\n String fileCreationId = filePersistence.createFile(VALID_FILELOCATION, FILENAME);\r\n assertTrue(\"fileCreationId shouldn't be null or empty\", fileCreationId != null\r\n && fileCreationId.trim().length() != 0);\r\n filePersistence.appendBytes(fileCreationId, new byte[10]);\r\n filePersistence.closeFile(fileCreationId);\r\n assertEquals(\"should be size of 10 bytes\", filePersistence.getFileSize(VALID_FILELOCATION, FILENAME), 10);\r\n filePersistence.deleteFile(VALID_FILELOCATION, FILENAME);\r\n }", "public FileObject size(Integer size) {\n this.size = size;\n return this;\n }", "@Override\n public int available() throws IOException {\n return fileSize - nextChunkPos + (count - pos);\n }", "static void getSize(String root) throws IOException {\n\t\tint k = 2;\n\t\twhile (k <= 7) {\n\t\t\tint j = 1;\n\n\t\t\tString filesize = \"\";\n\t\t\twhile (j <= 10) {\n\t\t\t\tif (k == 1) {\n\t\t\t\t\tFile f = new File(\n\t\t\t\t\t\t\troot + \"M\" + k + \"/M1.1/Testbeds-\" + j + \"/Generated/seed.aml\");\n\t\t\t\t\tfilesize += new DecimalFormat(\"#.#\").format(((double) f.length() / 1024))\n\t\t\t\t\t\t\t+ \"\\n\";\n\t\t\t\t} else {\n\t\t\t\t\tFile f = new File(root + \"M\" + k + \"/Testbeds-\" + j + \"/Generated/seed.aml\");\n\t\t\t\t\tfilesize += new DecimalFormat(\"#.#\").format(((double) f.length() / 1024))\n\t\t\t\t\t\t\t+ \"\\n\";\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t}\n\t\t\tSystem.out.print(filesize);\n\t\t\tk++;\n\t\t}\n\t}", "private void addLengthToCacheSize(final IndexedDiskElementDescriptor value)\r\n {\r\n contentSize.addAndGet((value.len + IndexedDisk.HEADER_SIZE_BYTES) / 1024 + 1);\r\n }", "public abstract long size() throws IOException;", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long getChunkSize();", "long sizeInc() {\n\t\treturn Storage.adrToOffset(adr) + size;\n\t}", "private int handleWrite(int fileDescriptor, int buffer, int size){\n\t\t// return -1 on error\n\t\tif (fileDescriptor < 0 || fileDescriptor > 15) return -1;\n\n\n\t\tOpenFile file;\n\t\tif (fileDescriptors[fileDescriptor] == null){\n\t\t\treturn -1;\n\t\t}else{\n\t\t\tfile = fileDescriptors[fileDescriptor];\n\t\t}\n\n\n\t\tif( size < 0) return -1;\n\t\tif(buffer < 0) return -1;\n\t\tif(buffer == 0) return 0;\n\n\t\t//loop through and increment counter and keep the buffer size small\n\t\t//enough not to run out of heap space.\n\t\t//System.out.println(\"687\" + size);//STOPS HERE\n\t\tint maxWrite = 1024;//should put as public variable\n\t\tbyte tempBuff[] = new byte[maxWrite];\n\n\n\t\t//loop through and increment counter and keep the buffer size small\n\t\t//enough not to run out of heap space.\n\t\tint byteTransferTotal = 0;\n\t\twhile(size > 0){\n\t\t\tint transferAmount = (size < maxWrite) ? size : maxWrite;\n\n\t\t\tint readSize = readVirtualMemory(buffer, tempBuff, 0,transferAmount);//could just re-assign this variable\n\n\t\t\tint sizeWritten = file.write(tempBuff, 0, readSize);\n\n\t\t\tif(sizeWritten == -1){\n\t\t\t\tif(byteTransferTotal == 0)\n\t\t\t\t\tbyteTransferTotal = -1;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tbuffer += sizeWritten;\n\t\t\tsize -= sizeWritten;\n\t\t\tbyteTransferTotal += sizeWritten;\n\n\t\t\tif(sizeWritten < transferAmount)\n\t\t\t\tbreak;\n\t\t}\n\t\treturn byteTransferTotal;\n\t}", "public synchronized FileTableEntry falloc(String fileName, String mode) {\n Inode myNode = null;\n short blockID;\n while(true) \n {\n if(fileName.equals(\"/\")) {\n blockID = 0;\n } else {\n blockID = dir.namei(fileName); \n }\n\n if(blockID >= 0) { //Not superblock\n myNode = new Inode(blockID);\n break;\n }\n\n if(mode.compareTo(\"r\") == 0) {\n return null;\n }\n blockID = dir.ialloc(fileName);\n myNode = new Inode();\n break;\n }\n\n myNode.count++;\n myNode.toDisk(blockID);\n FileTableEntry toAdd = new FileTableEntry(myNode, blockID, mode);\n table.addElement(toAdd);\n return toAdd;\n }", "public long getFileSize() {\n return this.originalFileSize;\n }", "void resize(int newSize);", "public int getSize() throws Exception {\n return header.getSize()+super.getSize();\n }", "public Builder setFileSize(float value) {\n \n fileSize_ = value;\n onChanged();\n return this;\n }", "long getMaxFileSizeBytes();", "long sizeInBytes() throws IOException;", "private void skipBytes(int count) throws IOException {\n long currentPosition = archive.position();\n long newPosition = currentPosition + count;\n if (newPosition > archive.size()) {\n throw new EOFException();\n }\n archive.position(newPosition);\n }", "protected void insureIndexSpace(int requiredNumRecords) throws IOException {\n int currentNumRecords = getNumRecords();\n long endIndexPtr = indexPositionToKeyFp(requiredNumRecords);\n if (endIndexPtr > getFileLength() && currentNumRecords == 0) {\n setFileLength(endIndexPtr);\n dataStartPtr = endIndexPtr;\n writeDataStartPtrHeader(dataStartPtr);\n return;\n }\n while (endIndexPtr > dataStartPtr) {\n RecordHeader first = getRecordAt(dataStartPtr);\n byte[] data = readRecordData(first);\n first.dataPointer = getFileLength();\n first.dataCapacity = data.length;\n setFileLength(first.dataPointer + data.length);\n writeRecordData(first, data);\n writeRecordHeaderToIndex(first);\n dataStartPtr += first.dataCapacity;\n writeDataStartPtrHeader(dataStartPtr);\n }\n }", "long getUsedSpace() throws IOException;", "protected void grow() {\n }", "public synchronized int flush()\n {\n int fileCount = files.size();\n int cb = (maxFiles * maxChars * SysLib.CBCHAR) + \n (maxFiles * SysLib.CBINT);\n byte b[] = new byte[cb];\n int inodeOffset = 0;\n int fileNameOffset = fileCount * SysLib.CBINT;\n\n for (int i = 0; i < fileCount; i++)\n {\n byte strBytes[] = files.get(i).getBytes();\n int cbStr = strBytes.length;\n\n SysLib.int2bytes(cbStr, b, inodeOffset);\n inodeOffset += SysLib.CBINT;\n\n // Don't write zero-length strings\n if (strBytes.length > 0)\n {\n System.arraycopy(strBytes, 0, b, fileNameOffset, cbStr);\n\n fileNameOffset += cbStr;\n }\n }\n\n if (inode.write(0, b) < 0)\n {\n return -1;\n }\n\n return 0;\n }", "Update withDiskSizeGB(Integer diskSizeGB);", "void addFile(int numberLines);", "public void autoSize() {\n\t\t//no op\n\t}", "public void mergeChunks(String fileName,int numChunks)\n {\n FileInputStream fInput;\n BufferedInputStream bufInput;\n BufferedOutputStream bufOutput;\n FileOutputStream fOutput;\n try\n { \n fOutput = new FileOutputStream(fileName);\n bufOutput = new BufferedOutputStream(fOutput); \n for(int i=0;i<numChunks;i++)\n {\n fInput = new FileInputStream(fileName+ \".chunk.\" + i);\n bufInput = new BufferedInputStream(fInput);\n int b;\n while((b=bufInput.read())!= -1)\n {\n bufOutput.write(b);\n }\n\n }\n bufOutput.close();\n }\n\t\tcatch(FileNotFoundException ex)\n {\n System.out.println(\"File Not Found\");\n }\n catch(IOException ex)\n {\n System.out.println(\"Some IOException occurred\");\n }\n }", "private boolean prepareNewFile(Descriptor d) {\r\n\t\tBitMask b = d.getEmptyBitmask();\r\n\r\n\t\tthis.file = new File(d, b, path, name);\r\n\r\n\t\tif (this.file.reallocate()) {\r\n\t\t\tcurrentState = State.CHASING_CHUNKS;\r\n\t\t\treturn true;\r\n\t\t} else {\r\n\t\t\tthis.file = null;\r\n\t\t\treturn false;\r\n\t\t}\r\n\t}", "long getSize();", "public void free() {\n mm.freeBlock(startingPosition, size);\n }", "private static char[] expand(char[] array, int neededSpace, int size)\r\n/* 108: */ {\r\n/* 109:125 */ int newCapacity = array.length;\r\n/* 110: */ do\r\n/* 111: */ {\r\n/* 112:128 */ newCapacity <<= 1;\r\n/* 113:130 */ if (newCapacity < 0) {\r\n/* 114:131 */ throw new IllegalStateException();\r\n/* 115: */ }\r\n/* 116:134 */ } while (neededSpace > newCapacity);\r\n/* 117:136 */ char[] newArray = new char[newCapacity];\r\n/* 118:137 */ System.arraycopy(array, 0, newArray, 0, size);\r\n/* 119: */ \r\n/* 120:139 */ return newArray;\r\n/* 121: */ }", "@Test\n public void testProcessUpdateFileSize() throws IOException {\n Assert.assertNotNull(nsSummaryForBucket1);\n Assert.assertEquals(0, nsSummaryForBucket1.getNumOfFiles());\n\n Set<Long> childDirBucket1 = nsSummaryForBucket1.getChildDir();\n Assert.assertEquals(0, childDirBucket1.size());\n }", "private void updateByteCount(int n) {\n\t\tif (byteCount + n > (buffer.length << 3)) {\n\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\t\tbyteCount += n;\n\t\tif (byteCount == (buffer.length << 3)) {\n\t\t\tflush();\n\t\t}\n\t}", "public void expand() {\n\t\tconvertHeadToTailComponent();\n\t\taddNewHead();\n\t}", "protected void grow(int size) {\n if (size < 128) {\n size = 128;\n }\n if (size < table.length) {\n return;\n }\n char [] newTable = new char[size];\n System.arraycopy(table, 0, newTable, 0, table.length);\n for(int i = table.length; i < size; i++) {\n newTable[i] = (char)i;\n }\n table = newTable;\n }", "public void resetAndTruncate()\n {\n rowIndexFile.resetAndTruncate(riMark);\n partitionIndexFile.resetAndTruncate(piMark);\n }" ]
[ "0.8157375", "0.7134132", "0.6190989", "0.5893347", "0.5733827", "0.5699795", "0.5655424", "0.5625052", "0.558629", "0.55652046", "0.5416268", "0.5408405", "0.54004794", "0.53645444", "0.5348778", "0.5318856", "0.5316184", "0.53155047", "0.5282667", "0.52780354", "0.5258867", "0.5240554", "0.5236914", "0.52364504", "0.5219768", "0.5183738", "0.51565844", "0.5150911", "0.5117122", "0.5089387", "0.5088215", "0.5080355", "0.50630367", "0.5062918", "0.50600535", "0.5057288", "0.504155", "0.5031236", "0.49703228", "0.49686208", "0.49524826", "0.4948041", "0.4947107", "0.49460626", "0.49404305", "0.49369588", "0.49300507", "0.4929963", "0.49256858", "0.49247834", "0.49171534", "0.4904522", "0.4896119", "0.48954418", "0.48880953", "0.488294", "0.488294", "0.4866168", "0.48648492", "0.48636582", "0.48576528", "0.48509064", "0.4834316", "0.48204643", "0.48102403", "0.48094463", "0.48056704", "0.48030448", "0.47794747", "0.47792524", "0.47792524", "0.47792524", "0.47792524", "0.47652587", "0.4764171", "0.47629887", "0.47608244", "0.4758954", "0.47521067", "0.47485808", "0.4746293", "0.4742292", "0.47382367", "0.4737095", "0.47366443", "0.47307718", "0.4726709", "0.47231042", "0.47210786", "0.4716148", "0.47160244", "0.47134274", "0.47121274", "0.47107372", "0.4710284", "0.47018573", "0.46772352", "0.4676838", "0.4672433", "0.46393135" ]
0.66914093
2
Output contents of all buffers to std out
public String toString() { String ret = ""; for (int i = 0; i < buffArr.length; i++) { if (buffArr[i].getBlockNumber() != -1) { ret = ret + "Block ID of buffer" + i + " is " + buffArr[i].getBlockNumber() + "\n"; } else { ret = ret + "Block ID of buffer" + i + " is Empty\n"; } } return ret.substring(0, ret.length() - 1); // drop last newline }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void outputBuffers ()\n\t{\n\t\toutput (\"\\n> (buffers)\\n\");\n\t\tif (model!=null) model.outputBuffers();\n\t}", "public abstract void outputBmp(FastStringBuffer buf);", "public static void flush() {\n if (outputEnabled)\n out.flush();\n }", "@Override\n public void flush() throws IOException {\n byteBufferStreamOutput.flush();\n }", "private interface OutputBuffer {\n String getName();\n\n String getOutput();\n\n PrintWriter getPrintWriter();\n }", "void dump(PrintStream x) {\n String str = buffer.toString();\n x.println(\"<beginning of \" + name + \" buffer>\");\n x.println(str);\n x.println(\"<end of buffer>\");\n }", "static public void flushPrintStream() {\n \t out.flush();\n }", "void writeCurrentBuffer();", "@Override\n\tpublic void flushBuffer() throws IOException {\n\t}", "@Override\n public void flushBuffer() throws IOException {\n\n }", "@Override\n public void onNext(List<ByteBuffer> buffers) {\n for (ByteBuffer buffer : buffers) {\n if (buffer.limit() != buffer.capacity()) {\n final int limit = buffer.limit();\n final int position = buffer.position();\n buffer.position(buffer.limit());\n buffer.limit(buffer.capacity());\n while (buffer.hasRemaining())\n buffer.put((byte)'X');\n buffer.position(position); // restore original position\n buffer.limit(limit); // restore original limit\n }\n }\n asString.onNext(buffers);\n }", "public void printBuffer()\r\n\t{\r\n\t\tint stop;\r\n\t\t\r\n\t\tif (prvsize > 0) {\r\n\t\t\tstop = (buffer[1-currentbuf][prvsize-1] == '\\n' ? prvsize-1 : prvsize);\r\n\t\t\tif (stop != 0) \r\n\t\t\t\tsyserr.println(new String(buffer[1-currentbuf], 0, stop));\r\n\t\t\telse\r\n\t\t\t\tsyserr.println(\"(blank line)\");\r\n\t\t}\r\n\t\tif (bufpos > 0) {\r\n\t\t\tstop = (buffer[currentbuf][bufpos-1] == '\\n' ? bufpos-1 : bufpos);\r\n\t\t\tif (stop != 0) \r\n\t\t\t\tsyserr.println(new String(buffer[currentbuf], 0, stop));\r\n\t\t\telse\r\n\t\t\t\tsyserr.println(\"(blank line)\");\r\n\t\t}\r\n\t}", "void flushBuffer();", "public void outputToConsole() {\r\n for (String line : data) {\r\n System.out.println(line);\r\n }\r\n }", "public static\n void hookSystemOutputStreams() {\n out();\n err();\n }", "private void flush() {\n try {\n output.write(digits);\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n digits = 0;\n numDigits = 0;\n }", "public void outputBmp(FastStringBuffer buf) {\n inClassOutputBmp(buf);\n }", "public abstract void inClassOutputBmp(FastStringBuffer buf);", "private void redirectSystemStreams() {\r\n\t\tOutputStream out = new OutputStream() {\r\n\t\t\t@Override\r\n\t\t\tpublic void write(int b) throws IOException {\r\n\t\t\t\tupdateTextArea(String.valueOf((char) b));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b, int off, int len) throws IOException {\r\n\t\t\t\tupdateTextArea(new String(b, off, len));\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void write(byte[] b) throws IOException {\r\n\t\t\t\twrite(b, 0, b.length);\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tSystem.setOut(new PrintStream(out, true));\r\n\t\tSystem.setErr(new PrintStream(out, true));\r\n\t}", "void print(int count) {\n System.out.print(\"buffer has \");\n System.out.print(bufAvail);\n System.out.println(\" bytes available\");\n if (bufAvail < count) {\n count = bufAvail;\n }\n for (int ptr = bufPtr; count > 0; count--) {\n int val = (int)buf[ptr++] & 0xff;\n System.out.print(\" \" + Integer.toHexString(val));\n }\n System.out.println();\n }", "@Override\n public void emitOutput() {\n }", "void output(OUT out) throws IOException;", "public void send(Output output) {\n for (byte[] buff : buffers) {\n output.write(buff);\n }\n\n if(position > 0) {\n output.write(buffer, 0, position);\n }\n\n buffers.clear();\n position = 0;\n written = 0;\n }", "private void flushAllBuffers() {\n mMaxX = 0f;\n mMaxY = 0f;\n mMaxZ = 0f;\n mMinX = 1e6f;\n mMinY = 1e6f;\n mMinZ = 1e6f;\n mLastVertexNumber = 0; // zero based counting :-)\n mVertices.clear();\n mNormals.clear();\n mColors.clear();\n mIndices.clear();\n mTextureIndex.clear();\n mHaveMaterialColor = false;\n }", "protected void saveAllBuffers() {\r\n\r\n\t\tString save_dir = \"\";\r\n\t\t\r\n\t JFileChooser fileChooser = new JFileChooser(new File(System.getProperty(\"user.dir\")));\r\n\t fileChooser.setFileSelectionMode(JFileChooser.FILES_AND_DIRECTORIES);\r\n\t int state = fileChooser.showDialog(null, \"Select Directory\");\r\n if (state == JFileChooser.APPROVE_OPTION ){\r\n \tif(fileChooser.getSelectedFile().isDirectory())\r\n \t\tsave_dir = fileChooser.getSelectedFile().getPath();\r\n \tif(fileChooser.getSelectedFile().isFile())\r\n \t\tsave_dir = fileChooser.getSelectedFile().getParent();\r\n }\r\n\t\t//what a nice way to get the list size...\r\n\t\tint size = m_History.getList().getModel().getSize();\r\n\t\tFastVector rlist_item = null;\r\n\t\tfor (int i = 0; i < size; i++) {\r\n\t\t\tString name = m_History.getNameAtIndex(i);\r\n\t\t\tStringBuffer buf = m_History.getNamedBuffer(name);\r\n\t\t try {\r\n\t\t String file = save_dir+\"\\\\\"+name.substring(11).replace(\"--> \", \"\")+\".txt\";\r\n\t\t if (m_Log != null) {\r\n\t\t \t\t m_Log.statusMessage(\"Saving to file...\");\r\n\t\t }\r\n\t\t PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(file, false)));\r\n\t\t out.write(buf.toString(),0,buf.toString().length());\r\n\t\t out.close();\r\n\t\t if (m_Log != null) {\r\n\t\t \t m_Log.statusMessage(\"OK\");\r\n\t\t }\r\n\t\t } catch (Exception ex) {\r\n\t\t ex.printStackTrace();\r\n\t\t if (m_Log != null) {\r\n\t\t \t m_Log.logMessage(ex.getMessage());\r\n\t\t }\r\n\t\t }\r\n\t\t}\r\n\t m_Log.logMessage(\"Saved all result buffers successfully.\");\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 }", "@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}", "@Override\n public void flush() throws IOException {\n ConsoleRedirect.this.flush(buffer, 0, pos);\n pos = 0;\n }", "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}", "public void flush() throws IOException {\n\t\tif ((buffer.length - cursor) > 50000) {\n\t\t\tSystem.out.println(\"WASTED: \" + (buffer.length - cursor));\n\t\t}\n\t}", "void printMessageBuffer(Saver saver);", "public void run() {\n try {\n byte b[] = new byte[100];\n for (;;) {\n int n = in.read(b);\n String str;\n if (n < 0) {\n break;\n }\n str = new String(b, 0, n);\n buffer.append(str);\n System.out.print(str);\n }\n } catch (IOException ioe) { /* skip */ }\n }", "private static void printBuffer(ByteBuffer buffer, String operation) {\n System.out.println(operation + \" >>> position: \" + buffer.position() + \", limit: \" + buffer.limit() +\n \", capacity: \" + buffer.capacity());\n }", "public void printToStdout() {\n\t\tfor (int i = 0; i < results.size(); i++) {\n\t\t\tSystem.out.println(results.get(i).toString());\n\t\t}\n\t}", "public void print()\n {\n StringBuffer buffer = new StringBuffer();\n for (int i = 0; i < memorySize; i++)\n {\n buffer.append(mainMemory[i]);\n }\n System.out.println(buffer.toString());\n }", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();", "public void writeOutput()\n\t{\n\t\tSystem.out.println(this.toString());\n\t}", "@Override\n public String toString() {\n return Arrays.toString(bufferpool);\n }", "public void flush(){\r\n mBufferData.clear();\r\n }", "public void printBuffer(byte[] buf, int len) {\n byte b;\n Integer myInt = new Integer(0);\n int theInt = 0;\n System.err.println(\"buffer: \");\n edu.hkust.clap.monitor.Monitor.loopBegin(141);\nfor (int i = 0; i < len; i++) { \nedu.hkust.clap.monitor.Monitor.loopInc(141);\n{\n b = buf[i];\n if (!Character.isISOControl((char) b)) {\n Character ch = new Character((char) b);\n System.err.print(\" \" + ch.charValue() + \" \");\n } else {\n theInt = 0xff & b;\n if (theInt < 16) {\n System.err.print(\"0\" + myInt.toHexString(theInt) + \" \");\n } else {\n System.err.print(myInt.toHexString(theInt) + \" \");\n }\n }\n }} \nedu.hkust.clap.monitor.Monitor.loopEnd(141);\n\n System.err.print(\"\\n\");\n }", "public void outputBmp(FastStringBuffer buf) {\n buf.append('[');\n inClassOutputBmp(buf);\n buf.append(']');\n }", "public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}", "public void outputToStream(PrintWriter dos) throws IOException {\n dos.println(fileName);\n if (lineNos != null) {\n dos.println(lineNos.length);\n for (int i = 0; i < lineNos.length; ++i) {\n dos.println(lineNos[i]);\n }\n }\n }", "public void println(String printbuffer) {\n\t\tSystem.out.println(printbuffer);\n\t}", "@Override\n\tpublic void pipeOutput() {\n\n\t}", "void drain() {\n if (stdOutReader != null) {\n stdOutReader.drain();\n }\n if (stdErrReader != null) {\n stdErrReader.drain();\n }\n }", "public static void generate(SparseStream stream, PrintStream output) {\n stream.position(0);\n byte[] buffer = new byte[1024 * 1024];\n for (Range block : StreamExtent.blocks(stream.getExtents(), buffer.length)) {\n long startPos = block.getOffset() * buffer.length;\n long endPos = Math.min((block.getOffset() + block.getCount()) * buffer.length, stream.getLength());\n stream.position(startPos);\n while (stream.position() < endPos) {\n int numLoaded = 0;\n long readStart = stream.position();\n while (numLoaded < buffer.length) {\n int bytesRead = stream.read(buffer, numLoaded, buffer.length - numLoaded);\n if (bytesRead == 0) {\n break;\n }\n\n numLoaded += bytesRead;\n }\n for (int i = 0; i < numLoaded; i += 16) {\n boolean foundVal = false;\n if (i > 0) {\n for (int j = 0; j < 16; j++) {\n if (buffer[i + j] != buffer[i + j - 16]) {\n foundVal = true;\n break;\n }\n\n }\n } else {\n foundVal = true;\n }\n if (foundVal) {\n output.printf(\"%08x\", i + readStart);\n for (int j = 0; j < 16; j++) {\n if (j % 8 == 0) {\n output.print(\" \");\n }\n\n output.printf(\" %02x\", buffer[i + j]);\n }\n output.print(\" |\");\n for (int j = 0; j < 16; j++) {\n if (j % 8 == 0 && j != 0) {\n output.print(\" \");\n }\n\n output.printf(\"%c\", (buffer[i + j] >= 32 && buffer[i + j] < 127) ? (char) buffer[i + j] : '.');\n }\n output.print(\"|\");\n output.println();\n }\n }\n }\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 }", "public void flush();", "public void flush();", "public void flush();", "public void flush();", "private static void closeAll() {\n try {\n outputFileBuffer.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n Encog.getInstance().shutdown();\n }", "public void produceOutputs() {\n\t\tgetOutputs().putIn(getInventory(),getEnchantments(), getEnchantmentOptions());\n\t}", "public void write(ArrayDataOutput out) throws FitsException, IOException;", "synchronized void flushAll(int txnum) {\n\t \n for (ExerciseBuffer buff : bufferpool)\n if (buff.isModifiedBy(txnum))\n buff.flush();\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void dump ()\n {\n StringBuilder b = new StringBuilder ();\n dump (b, 0);\n System.out.print (b);\n }", "public void flush() throws IOException;", "public void flush() throws IOException;", "public void flush() throws IOException;", "static final void flushSystemOut()\n {\n PrintStream out = sysOut;\n if (out != null)\n {\n try\n {\n out.flush();\n }\n catch (Error e) {}\n catch (RuntimeException e) {}\n }\n }", "public void dump() {\n for(Object object : results) {\n System.out.println( object );\n }\n }", "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 close() {\n if (this.out == null) {\n return;\n }\n try {\n this.out.flush();\n this.out.close();\n this.out = null;\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void printLines() {\n for (String L: testLines) {\n print.write(L);\n }\n }", "public void initializeIOBuffers(){\n for(int i=0; i<outputBuffer.length; i++){\n outputBuffer[i] = new LinkedBlockingQueue();\n inputBuffer[i] = new LinkedBlockingQueue();\n }\n }", "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 }", "protected void finalizeSystemOut() {}", "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 flush() throws Exception{\r\n\tout.flush();\r\n}", "private void printOut(String[] printerMakerResult)\n {\n //shows user the printerMaker result\n\n for(int i=0;i<printerMakerResult.length;i++)\n {\n outVideo.println(printerMakerResult[i]);\n outVideo.flush();\n }\n }", "public void writeTo(OutputStream os) throws IOException, MessagingException {\n/* 96 */ LineOutputStream los = null;\n/* 97 */ if (os instanceof LineOutputStream) {\n/* 98 */ los = (LineOutputStream)os;\n/* */ } else {\n/* 100 */ los = new LineOutputStream(os);\n/* */ } \n/* */ \n/* */ \n/* 104 */ Enumeration hdrLines = getAllHeaderLines();\n/* 105 */ while (hdrLines.hasMoreElements()) {\n/* 106 */ los.writeln(hdrLines.nextElement());\n/* */ }\n/* */ \n/* 109 */ los.writeln();\n/* */ \n/* */ \n/* 112 */ getDataHandler().writeTo(os);\n/* 113 */ os.flush();\n/* */ }", "public void streamOutput(String type,Object currentObj);", "@Before\n\tpublic void setUpStreams() {\n\t\tSystem.setOut(new PrintStream(outContent));\n\t}", "public OutputStream getOutputStream() {\n return new BufferedOutputStream(new OutputStream() {\n public void write(int b) throws IOException {\n _combinedOutputStream.write(b);\n }\n public void flush() throws IOException {\n _combinedOutputStream.flush();\n }\n public void close() throws IOException {\n _combinedOutputStream.close();\n }\n });\n }", "void print(byte[] buffer) {\n print(buffer, 0);\n }", "public void flush() throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n // the newline character should not be necessary. The PrintWriter\r\n // should autmatically put the newline, but it doesn't seem to work\r\n textArea.append(getBuffer().toString());\r\n if(System.getProperty(\"java.version\").startsWith(\"1.1\")){\r\n textArea.append(\"\\n\");\r\n }\r\n textArea.setCaretPosition(textArea.getDocument().getLength());\r\n buffer = new StringBuffer();\r\n }", "public void flush()\n/* */ throws IOException\n/* */ {\n/* 833 */ _flushBuffer();\n/* 834 */ if ((this._writer != null) && \n/* 835 */ (isEnabled(JsonGenerator.Feature.FLUSH_PASSED_TO_STREAM))) {\n/* 836 */ this._writer.flush();\n/* */ }\n/* */ }", "synchronized void flushAll(int txnum) {\n for (Buffer buff : bufferpool)\n if (buff.isModifiedBy(txnum))\n buff.flush();\n }", "@Override\r\n public void flush ()\r\n {\r\n }", "public static void write(TBase t) {\n\t\ttry {\n\t\t\tbufferedOutStreamServer = new BufferedOutputStream(System.out, 2048);\n\t\t\tjsonProtocolServer = new TJSONProtocol(new TIOStreamTransport(bufferedOutStreamServer));\n\t\t\tt.write(jsonProtocolServer);\n\n\t\t\tbufferedOutStreamServer.flush();\n\t\t\tSystem.out.println(\"\\n\");\n\t\t} catch (Exception e) {\n\t\t\twrite(new SystemException().setMessage(e.toString()));\n\t\t}\n\t}", "void printout() {\n\t\tprintstatus = idle;\n\t\tanyprinted = false;\n\t\tfor (printoldline = printnewline = 1;;) {\n\t\t\tif (printoldline > oldinfo.maxLine) {\n\t\t\t\tnewconsume();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (printnewline > newinfo.maxLine) {\n\t\t\t\toldconsume();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif (newinfo.other[printnewline] < 0) {\n\t\t\t\tif (oldinfo.other[printoldline] < 0)\n\t\t\t\t\tshowchange();\n\t\t\t\telse\n\t\t\t\t\tshowinsert();\n\t\t\t} else if (oldinfo.other[printoldline] < 0)\n\t\t\t\tshowdelete();\n\t\t\telse if (blocklen[printoldline] < 0)\n\t\t\t\tskipold();\n\t\t\telse if (oldinfo.other[printoldline] == printnewline)\n\t\t\t\tshowsame();\n\t\t\telse\n\t\t\t\tshowmove();\n\t\t}\n\t\tif (anyprinted == true)\n\t\t\tprintln(\">>>> End of differences.\");\n\t\telse\n\t\t\tprintln(\">>>> Files are identical.\");\n\t}", "public void flush() {\r\n\t\ttry {\r\n\t\t\tdos.flush();\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}", "private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }", "public void writeOutput() {\n\t\tint lineNumber = 0;\n\t\ttry {\n\t\t\tfor (; lineNumber < outputFileCont.size(); lineNumber++) {\n\t\t\t\t// pobranie i zapisanie kolejnego zapamiêtanego wiersza\n\t\t\t\tString line = (String) outputFileCont.get(lineNumber);\n\t\t\t\toutputBuffer.write(line);\n\t\t\t\t// zapisanie znaku nowego wiersza\n\t\t\t\toutputBuffer.newLine();\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"B³¹d zapisu do pliku: \" + outputFileName + \" \"\n\t\t\t\t\t+ e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\t// niezbêdne\n\t\t\toutputBuffer.close();\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"B³¹d zamkniêcia pliku: \" + outputFileName\n\t\t\t\t\t+ \" \" + e.getMessage());\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"Zapisano \"\n\t\t\t\t+ lineNumber\n\t\t\t\t+ \" wiersz\"\n\t\t\t\t+ (lineNumber == 1 ? \"\"\n\t\t\t\t\t\t: (lineNumber > 1 && lineNumber < 5 ? \"e\" : \"y\"))\n\t\t\t\t+ \" do pliku \" + outputFileName);\n\t}", "public void flush () throws IOException\n {\n if (m_nBufferedBitCount > 0)\n {\n if (m_nBufferedBitCount != CGlobal.BITS_PER_BYTE)\n if (LOGGER.isDebugEnabled ())\n LOGGER.debug (\"Flushing BitOutputStream with only \" + m_nBufferedBitCount + \" bits\");\n m_aOS.write ((byte) m_nBuffer);\n m_nBufferedBitCount = 0;\n m_nBuffer = 0;\n }\n }" ]
[ "0.760438", "0.62566346", "0.62282854", "0.6101792", "0.608737", "0.59555036", "0.5788667", "0.57493633", "0.5730046", "0.57075435", "0.5705804", "0.57050484", "0.56790066", "0.5659753", "0.56179523", "0.56051755", "0.56021994", "0.55761755", "0.5556627", "0.5545877", "0.54765093", "0.5474573", "0.5473868", "0.5455744", "0.54519325", "0.54470646", "0.5404245", "0.5398503", "0.5390282", "0.53845155", "0.5357971", "0.535015", "0.5343373", "0.5336881", "0.5325945", "0.53209084", "0.53209084", "0.53209084", "0.53209084", "0.53209084", "0.53209084", "0.53209084", "0.53209084", "0.53159606", "0.52943295", "0.52888507", "0.5269574", "0.52521443", "0.5246617", "0.52176374", "0.5217563", "0.52092594", "0.5197079", "0.5177135", "0.51716363", "0.5166167", "0.5166167", "0.5166167", "0.5166167", "0.516536", "0.5156004", "0.514971", "0.51380765", "0.513791", "0.513791", "0.513791", "0.513791", "0.513791", "0.513791", "0.513791", "0.513791", "0.513791", "0.51218945", "0.51218945", "0.51218945", "0.5117177", "0.51166195", "0.51154566", "0.5106565", "0.51059777", "0.51047766", "0.5101016", "0.5095296", "0.50947964", "0.50928056", "0.509051", "0.50853235", "0.5084936", "0.5082599", "0.50801814", "0.50756747", "0.50631917", "0.50608397", "0.505795", "0.5057205", "0.50514454", "0.50506663", "0.50498414", "0.5049209", "0.50469047", "0.5041908" ]
0.0
-1
Sanity checks before deleting an Experiment
private static void deleteExperiment(String sessionToken, IApplicationServerApi v3, boolean COMMIT_CHANGES_TO_OPENBIS, ExperimentPermId experimentPermId) { Experiment experiment = MetadataHelper.getExperiment(sessionToken, v3, experimentPermId); if((experiment.getDataSets().size() + experiment.getSamples().size()) > 0) { System.out.println("Experiment " + experiment.getIdentifier() + " can't be deleted until DataSets " + experiment.getDataSets().size() + " and Samples " + experiment.getSamples().size() + " are moved. Try again later."); return; } // Deleting Experiments. if(COMMIT_CHANGES_TO_OPENBIS) { ExperimentDeletionOptions deleteOptions = new ExperimentDeletionOptions(); deleteOptions.setReason("Microscopy Migration"); IDeletionId deletionId = v3.deleteExperiments(sessionToken, Arrays.asList(experimentPermId), deleteOptions); v3.confirmDeletions(sessionToken, Arrays.asList(deletionId)); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\n public void testDeleteExperiment() {\n ExperimentId experimentId = new ExperimentId();\n experimentId.setServerTimestamp(System.currentTimeMillis());\n experimentId.setId(1);\n\n // Create the entity\n ExperimentEntity entity = new ExperimentEntity();\n entity.setExperimentSpec(toJson(spec));\n entity.setId(experimentId.toString());\n\n // Construct expected result\n Experiment expectedExperiment = new Experiment();\n expectedExperiment.setSpec(spec);\n expectedExperiment.setExperimentId(experimentId);\n expectedExperiment.rebuild(status);\n // Stub service select\n // Pretend there is a entity in db\n when(mockService.select(any(String.class))).thenReturn(entity);\n\n // Stub mockSubmitter deleteExperiment\n when(mockSubmitter.deleteExperiment(any(ExperimentSpec.class))).thenReturn(status);\n\n // delete experiment\n Experiment actualExperiment = experimentManager.deleteExperiment(experimentId.toString());\n\n verifyResult(expectedExperiment, actualExperiment);\n }", "private void delete(){\n solo.waitForView(R.id.search_action_button);\n solo.clickOnView(solo.getView(R.id.search_action_button));\n\n //Click on search bar\n SearchView searchBar = (SearchView) solo.getView(R.id.search_experiment_query);\n solo.clickOnView(searchBar);\n solo.sleep(500);\n\n //Type in a word from the description\n solo.typeText(0, searchTerm);\n\n //Make sure the experiment shows up\n assertTrue(solo.waitForText(description));\n\n //Click on experiment\n solo.clickOnText(description);\n\n //Click on more tab\n solo.waitForView(R.id.subscribe_button_experiment);\n solo.clickOnText(\"More\");\n\n //Click on unpublish button\n solo.clickOnView(solo.getView(R.id.delete_experiment_button));\n }", "int deleteByExample(StorageExample example);", "@Test\n public void delete() {\n try{\n repo.save(s);\n repot.save(t);\n repon.save(n);\n Tema t2 = new Tema(2, 0, 6, \"GUI\");\n Student s2 = new Student(2,221, \"Pop Ion\",\"[email protected]\",\"prof\");\n Nota n2 = new Nota(2,2,\"prof\", 3, \"cv\");\n repo.save(s2);\n repot.save(t2);\n repon.save(n2);\n repot.delete(2);\n repo.delete(2);\n repon.delete(\"22\");\n assert repo.size() == 1;\n assert repot.size() == 1;\n assert repon.size() == 1;\n }\n catch (ValidationException e){\n }\n }", "int deleteByExample(RepStuLearningExample example);", "public void testDeletePhases_SomeNotExist() throws Exception {\n Phase[] phases = new Phase[5];\n for (int i = 0; i < phases.length; ++i) {\n phases[i] = new Phase(new Project(new Date(), new DefaultWorkdays()), 123);\n phases[i].setId(i + 100000);\n }\n phases[3].setId(1);\n persistence.deletePhases(phases);\n\n // check whether the phase is deleted.\n DBRecord[] records = TestHelper.getPhaseRecords(\" WHERE project_phase_id=\" + phases[3].getId());\n assertEquals(\"The phase should be deleted.\", 0, records.length);\n\n // check whether the dependency is deleted.\n records =\n TestHelper.getDependencyRecords(\" WHERE dependency_phase_id=1 OR dependent_phase_id=\"\n + phases[3].getId());\n assertEquals(\"Failed to remove dependencies.\", 0, records.length);\n }", "@Test\r\n\tpublic void checkDeleteTest() {\n\t\tassertFalse(boardService.getGameRules().checkDelete(board.field[13][13])); \r\n\t}", "@Test\n public void deleteByHealthCodeSilentlyFails() {\n dao.deleteUploadsForHealthCode(\"nonexistentHealthCode\");\n }", "int deleteByExample(TResearchTeachExample example);", "int deleteByExample(CptDataStoreExample example);", "void delete(Exam exam);", "int deleteByExample(TrainingCourseExample example);", "@Test\n public void givenResourceDoesNotExist_whenDeleteIsTriggered_thenNoExceptions() {\n final long randomId = IDUtil.randomPositiveLong();\n givenEntityExists(randomId);\n\n // When\n getApi().delete(randomId);\n\n // Then\n }", "@Override\n\tpublic int delete(ElectricalCheck entity) throws Exception {\n\t\treturn 0;\n\t}", "int deleteByExample(PaasCustomAutomationRecordExample example);", "@Test\r\n\tpublic void testDeleteNote() throws Exception {\r\n\t\tyakshaAssert(currentTest(), \"true\", exceptionTestFile);\r\n\t}", "@Test\n public void shouldDeleteAllDataInDatabase(){\n }", "void deleteExam(Module module, Exam target);", "public void testDelete() {\n\t\ttry {\n\t\t\tServerParameterTDG.create();\n\n\t\t\t// insert\n\t\t\tServerParameterTDG.insert(\"paramName\", \"A description\", \"A value\");\n\t\t\t// delete\n\t\t\tassertEquals(1, ServerParameterTDG.delete(\"paramName\"));\n\t\t\t\t\n\t\t\tServerParameterTDG.drop();\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tfail();\t\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tServerParameterTDG.drop();\n\t\t\t} catch (SQLException e) {\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testDelete(){\n\t}", "@Test\r\n public void testDeleteNonExistRecipe() {\r\n assertNull(coffeeMaker.deleteRecipe(1)); // Test do not exist recipe\r\n }", "int deleteByExample(TCpyYearCheckExample example);", "@Test\n @Transactional\n public void deleteComputerBuild() {\n ComputerBuild computerBuild = createComputerBuild(SAMPLE_GAMING_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n LoginRequest loginRequest = new LoginRequest(ANOTHER_USER_NAME_TO_CREATE_NEW_USER, USER_PASSWORD);\n\n ComputerBuild newComputerBuild = loginAndCreateBuild(computerBuild, loginRequest,\n SAMPLE_GAMING_COMPUTER_BUILD_NAME, SAMPLE_GAMING_COMPUTER_BUILD_DESCRIPTION);\n\n /*\n * as long as there is no exception thrown the test can be considered to pass. in the controller test, a certain\n * http status code can be checked for.\n */\n computerBuildService.deleteComputerBuild(newComputerBuild.getBuildIdentifier());\n }", "int deleteByExample(BehaveLogExample example);", "@Test\n public void deleteRecipe_Deletes(){\n int returned = testDatabase.addRecipe(testRecipe);\n testDatabase.deleteRecipe(returned);\n assertEquals(\"deleteRecipe - Deletes From Database\", null, testDatabase.getRecipe(returned));\n }", "@Test\r\n public void testDeleteRecipe() {\r\n coffeeMaker.addRecipe(recipe1);\r\n assertEquals(recipe1.getName(), coffeeMaker.deleteRecipe(0));\r\n assertNull(coffeeMaker.deleteRecipe(0)); // Test already delete recipe\r\n }", "int deleteByExample(SpecialCircumstanceExample example);", "int deleteByExample(ReleaseSystemExample example);", "int deleteByExample(AutoAssessDetailExample example);", "@After\n\tpublic void tearDown() {\n\t\theroRepository.delete(HERO_ONE_KEY);\n\t\theroRepository.delete(HERO_TWO_KEY);\n\t\theroRepository.delete(HERO_THREE_KEY);\n\t\theroRepository.delete(HERO_FOUR_KEY);\n\t\theroRepository.delete(\"hero::counter\");\n\t}", "int deleteByExample(HomeWorkExample example);", "private void assertRemoved()\n\t{\n\t\ttry\n\t\t{\n\t\t\ttestController.getContentTypeDefinitionVOWithId(testDefinition.getId());\n\t\t\tfail(\"The ContentTypeDefinition was not deleted\");\n\t\t}\n\t\tcatch(Exception e)\n\t\t{ /* expected */ }\n\t}", "@Delete\n void delete(Measurement measurement);", "@Test\r\n public void testDelete() throws PAException {\r\n Ii spIi = IiConverter.convertToStudyProtocolIi(TestSchema.studyProtocolIds.get(0));\r\n List<StudyDiseaseDTO> dtoList = bean.getByStudyProtocol(spIi);\r\n int oldSize = dtoList.size();\r\n Ii ii = dtoList.get(0).getIdentifier();\r\n bean.delete(ii);\r\n dtoList = bean.getByStudyProtocol(spIi);\r\n assertEquals(oldSize - 1, dtoList.size());\r\n }", "int deleteByExample(ReEducationExample example);", "int deleteByExample(Question11Example example);", "int deleteByExample(Question14Example example);", "@Override\n\tpublic boolean deleteExperiment(int courseid, Experiment e) {\n\t\tCourse course = null;\n\t\tcourse = (Course)this.getCurrentSession().get(Course.class, courseid);\n\t\tif(course==null)\n\t\t\tcourse = findById(courseid);\n\t\tif(course == null||course.getIsActive() == false)\n\t\t\treturn false;\n\t\t\n\t\tSet<CourseExperiment> ces = course.getCourseExperiment();\n\t\tIterator<CourseExperiment> it = ces.iterator();\n\t\tCourseExperiment target = null;\n\t\twhile(it.hasNext())\n\t\t{\n\t\t\tCourseExperiment ce = it.next();\n\t\t\tif(ce.getExperiment().getId() == e.getId())\n\t\t\t{\n\t\t\t\ttarget = ce;\n\t\t\t}\n\t\t}\n\t\t\n\t\tces.remove(target);\n\t\ttarget.setCourse(null);\n\t\ttarget.getExperiment().getCourseExperiment().remove(target);\n\t\ttarget.setExperiment(null);\n\t\tthis.getCurrentSession().delete(target);\n\t\t//this.saveOrUpdate(course);\n\t\t\n\t\treturn true;\n\t}", "int deleteByExample(ChronicCheckExample example);", "abstract public void deleteAfterBetaReduction();", "public void testDeletePhases_Normal() throws Exception {\n Phase[] phases = new Phase[5];\n for (int i = 0; i < phases.length; ++i) {\n phases[i] = new Phase(new Project(new Date(), new DefaultWorkdays()), 123);\n phases[i].setId(i + 1);\n }\n persistence.deletePhases(phases);\n\n // check whether the phases is deleted.\n DBRecord[] records = TestHelper.getPhaseRecords(\"\");\n assertEquals(\"The phases should be deleted.\", 1, records.length);\n\n // check whether the dependency is deleted.\n records = TestHelper.getDependencyRecords(\"\");\n assertEquals(\"Failed to remove dependencies.\", 0, records.length);\n }", "@Test\n void testDeleteOnlyReportErrorsIfItAddsNewInformation() {\n\n Setup setup =\n new Setup.Builder()\n .trackedEntity(\"xK7H53f4Hc2\")\n .isNotValid()\n .enrollment(\"t1zaUjKgT3p\")\n .isNotValid()\n .relationship(\"Te3IC6TpnBB\", trackedEntity(\"xK7H53f4Hc2\"), enrollment(\"t1zaUjKgT3p\"))\n .isNotValid()\n .build();\n\n PersistablesFilter.Result persistable =\n filter(setup.bundle, setup.invalidEntities, TrackerImportStrategy.DELETE);\n\n assertAll(\n () -> assertIsEmpty(persistable.get(TrackedEntity.class)),\n () -> assertIsEmpty(persistable.get(Enrollment.class)),\n () -> assertIsEmpty(persistable.get(Relationship.class)),\n () -> assertIsEmpty(persistable.getErrors()));\n }", "@Test\n public void testDeleteTeacher() {\n System.out.println(\"deleteTeacher\");\n School instance = new School();\n instance.setTeachers(teachers);\n instance.setTeacherClass(teacherClass);\n\n assertFalse(instance.deleteTeacher(teacher));\n System.out.println(\"PASS with a teacher currently teaching a class\");\n\n assertTrue(instance.deleteTeacher(teacher3));\n teachers.remove(teacher3.getId());\n assertEquals(teachers, instance.getTeachers());\n System.out.println(\"PASS with a teacher currently not teaching any classes\");\n\n System.out.println(\"PASS ALL\");\n }", "@Test\n void delete() {\n }", "@Test\n void delete() {\n }", "int deleteByExample(Question27Example example);", "@Test\n public void deleteIngredient_Deletes(){\n int returned = testDatabase.addIngredient(ingredient);\n testDatabase.deleteIngredient(returned);\n assertEquals(\"deleteIngredient - Deletes From Database\",null, testDatabase.getIngredient(returned));\n }", "int deleteByExample(ProSchoolWareExample example);", "public void deleteExperimentColors();", "int deleteByExample(EnterprisePictureExample example);", "int deleteByExample(AlertExample example);", "public boolean delete() {\r\n \t\t// need to have a way to inform if delete did not happen\r\n \t\t// can't delete if there are dependencies...\r\n \t\tif ((this.argumentsAgainst.size() > 0)\r\n \t\t\t\t|| (this.argumentsFor.size() > 0)\r\n \t\t\t\t|| (this.relationships.size() > 0)\r\n \t\t\t\t|| (this.questions.size() > 0)\r\n \t\t\t\t|| (this.subDecisions.size() > 0)) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when there are sub-elements.\");\r\n \r\n \t\t\treturn true;\r\n \t\t}\r\n \r\n \t\tif (this.artifacts.size() > 0) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when code is associated!\");\r\n \t\t\treturn true;\r\n \t\t}\r\n \t\tRationaleDB db = RationaleDB.getHandle();\r\n \r\n \t\t// are there any dependencies on this item?\r\n \t\tif (db.getDependentAlternatives(this).size() > 0) {\r\n \t\t\tMessageDialog.openError(new Shell(), \"Delete Error\",\r\n \t\t\t\"Can't delete when there are depencencies.\");\r\n \t\t\treturn true;\r\n \t\t}\r\n \r\n \t\tm_eventGenerator.Destroyed();\r\n \r\n \t\tdb.deleteRationaleElement(this);\r\n \t\treturn false;\r\n \r\n \t}", "private void delete() {\n\n\t}", "@Test\n public void deleteDoctor() {\n\t\tList<Doctor> doctors = drepository.findByName(\"Katri Halonen\");\n\t\tassertThat(doctors).hasSize(1);\n \tdrepository.deleteById((long) 3);\n \tdoctors = drepository.findByName(\"Katri Halonen\");\n \tassertThat(doctors).hasSize(0);\n }", "int deleteByExample(CommonQuestionStrategyTypeExample example);", "void deleteChallenge();", "@Test\r\n public void testDelete() {\r\n assertTrue(false);\r\n }", "@Test\n\tpublic void validaPeticionDeleteVehiculo() {\n\t\t// Arrange\n\t\tRegistro registro = new RegistroTestDataBuilder().withIdVehiculo(\"5\").build();\n\t\tregistroService.saveRegistro(registro);\n\t\tboolean flag = false;\n\t\t// Act\n\t\ttry{\n\t\tregistroService.deleteRegistro(registro.getIdVehiculo());\n\t\tflag = true;\n\t\t}catch(Exception e){\n\t\t\tflag =false;\n\t\t}\n\t\t// Assert\n\t\tAssert.assertTrue(flag);\n\t}", "@Test\n\tpublic void deleteBook_Nonexistent() {\n\t\tsystem.deleteBook(\"asdfasdfasdfaslkjdfasd\");\n\t}", "@Test\n public void foodDeletedGoesAway() throws Exception {\n createFood();\n // locate the food item\n\n // delete the food item\n\n // check that food item no longer locatable\n\n }", "int deleteByExample(IymDefAssignmentExample example);", "@Test\r\n public void testDelete() throws Exception {\r\n bank.removePerson(p2);\r\n assertEquals(bank.viewAllPersons().size(), 1);\r\n assertEquals(bank.viewAllAccounts().size(), 1);\r\n }", "@Test\n public void deleteRecipeIngredient_Deletes(){\n int returnedRecipe = testDatabase.addRecipe(testRecipe);\n int returnedIngredient = testDatabase.addRecipeIngredient(recipeIngredient);\n testDatabase.deleteRecipeIngredients(returnedIngredient);\n ArrayList<RecipeIngredient> allIngredients = testDatabase.getAllRecipeIngredients(returnedRecipe);\n boolean deleted = true;\n if(allIngredients != null){\n for(int i = 0; i < allIngredients.size(); i++){\n if(allIngredients.get(i).getIngredientID() == returnedIngredient){\n deleted = false;\n }\n }\n }\n assertEquals(\"deleteRecipeIngredient - Deletes From Database\", true, deleted);\n }", "public void testDelete() {\r\n\r\n\t\ttry {\r\n\t\t\tlong count, newCount, diff = 0;\r\n\t\t\tcount = levelOfCourtService.getCount();\r\n\t\t\tLevelOfCourt levelOfCourt = (LevelOfCourt) levelOfCourtTestDataFactory\r\n\t\t\t\t\t.loadOneRecord();\r\n\t\t\tlevelOfCourtService.delete(levelOfCourt);\r\n\t\t\tnewCount = levelOfCourtService.getCount();\r\n\t\t\tdiff = newCount - count;\r\n\t\t\tassertEquals(diff, 1);\r\n\t\t} catch (Exception e) {\r\n\t\t\tfail(e.getMessage());\r\n\t\t}\r\n\t}", "int deleteByExample(XdSpxxExample example);", "int deleteByExample(FactRoomLogExample example);", "@Test\n public void test01cleanup() throws IOException {\n // when\n Map<String, Job> jobs = jenkins.getJobs();\n for (String jobName: jobs.keySet()) {\n if (!JOB_GENERATOR_JOB_NAME.equals(jobName)) {\n jenkins.deleteJob(jobName);\n }\n }\n jobs = jenkins.getJobs();\n\n // then\n assertThat(jobs.size(), is(1));\n }", "private void clearOneTest() {\n corpus.clear();\n Factory.deleteResource(corpus);\n Factory.deleteResource(learningApi);\n controller.remove(learningApi);\n controller.cleanup();\n Factory.deleteResource(controller);\n }", "int deleteByExample(OnlineExample example);", "int deleteByExample(WstatTeachingClasshourTeacherExample example);", "@Test\n\tpublic void testRemoveQuestion() {\n\t\t// Test with invalid permissions\n\t\ttry {\n\t\t\texternalLogicStub.currentUserId = USER_NO_UPDATE;\n\t\t\tquestionLogic.removeQuestion(tdp.question1_location1.getId(), LOCATION1_ID);\n\t\t\tAssert.fail(\"Should have thrown exception\");\n\t\t} catch (SecurityException e) {\n\t\t\tAssert.assertNotNull(e);\n\t\t} catch (AttachmentException e) {\n\t\t\tAssert.fail(\"Should throw SecurityException\");\n\t\t}\n\n\t\t// Test with valid permission\n\t\ttry {\n\t\t\texternalLogicStub.currentUserId = USER_UPDATE;\n\t\t\tquestionLogic.removeQuestion(tdp.question1_location1.getId(), LOCATION1_ID);\n\t\t\tAssert.assertFalse(questionLogic.existsQuestion(tdp.question1_location1.getId()));\n\t\t} catch (SecurityException e) {\n\t\t\tAssert.fail(\"Should not have thrown exception\");\n\t\t} catch (AttachmentException e) {\n\t\t\tAssert.fail(\"Should not have thrown exception\");\n\t\t}\n\t\t\n\t\tAssert.assertNull(questionLogic.getQuestionById(tdp.question1_location1.getId()));\n\t}", "int deleteByExample(SupplyNeedExample example);", "int deleteByExample(HotspotLogExample example);", "int deleteByExample(IntegralBookExample example);", "@Test\n public void testDeleteThrowsIfTheSimpledbConditionalCheckFailsThreeTimesRunning()\n throws Exception {\n\n testDelete(true, Optional.of(new Exception(\"Database put failed - conditional check failed\")),\n true, 3);\n }", "int deleteByExample(AlertQueueExample example);", "int deleteByExample(AdminTabExample example);", "@After\n public void tearDown() throws Exception {\n if (!persistentDataStore) {\n datastore.deleteByQuery(datastore.newQuery());\n datastore.flush();\n datastore.close();\n }\n }", "@Test\n public void removeEmployeeCatch() {\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n\n //Create dummy employee to delete\n employeeDAO.createEmployee(new Employee(\"dummy\", \"dummy\", \"dummy\", \"dummy\", \"dummy\", 3));\n\n assertFalse(employeeResource.removeEmployee(\"notdummy\"));\n\n //removing dummy data to avoid clutter in database\n employeeResource.removeEmployee(\"dummy\");\n userDAO.removeUser(\"dummy\");\n\n //test clean up\n assertNull(userResource.getUser(\"dummy\"));\n }", "@After\n public void tearDown() {\n addressDelete.setWhere(\"id = \"+addressModel1.getId());\n addressDelete.execute();\n\n addressDelete.setWhere(\"id = \"+addressModel2.getId());\n addressDelete.execute();\n\n addressDelete.setWhere(\"id = \"+addressModel3.getId());\n addressDelete.execute();\n\n\n personDelete.setWhere(\"id = \"+personModel1.getId());\n personDelete.execute();\n\n personDelete.setWhere(\"id = \"+personModel2.getId());\n personDelete.execute();\n\n personDelete.setWhere(\"id = \"+personModel3.getId());\n personDelete.execute();\n\n cityDelete.setWhere(\"id = \"+cityModel1.getId());\n cityDelete.execute();\n\n cityDelete.setWhere(\"id = \"+cityModel2.getId());\n cityDelete.execute();\n }", "int deleteByExample(PracticeClassExample example);", "int deleteByExample(InspectionAgencyExample example);", "int deleteByExample(IceAppExample example);", "@Test\n public void testDeletePlaylist(){\n Playlist playlist = new Playlist();\n playlist.setId(ID);\n playlist.setGenre(GENRE);\n playlist.setDescription(DESCRIPTION);\n ReturnValue ret = Solution.deletePlaylist(playlist);\n assertEquals(NOT_EXISTS, ret);\n ret = Solution.addPlaylist(playlist);\n assertEquals(OK, ret);\n Playlist retrieved = Solution.getPlaylist(ID);\n assertEquals(playlist, retrieved);\n ret = Solution.deletePlaylist(playlist);\n assertEquals(OK, ret);\n retrieved = Solution.getPlaylist(ID);\n assertEquals(Playlist.badPlaylist(), retrieved);\n }", "@BeforeEach\n\tpublic void cleanDataBase()\n\t{\n\t\taddRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t\t\n\t\tdomRepo.deleteAll()\n\t\t.as(StepVerifier::create) \n\t\t.verifyComplete();\n\t}", "@Test\r\n\tpublic void testDelete() {\n\t\tint todos = modelo.getAll().size();\r\n\r\n\t\tassertTrue(modelo.delete(1));\r\n\r\n\t\t// comprobar que este borrado\r\n\t\tassertNull(modelo.getById(1));\r\n\r\n\t\t// borrar un registro que no existe\r\n\t\tassertFalse(modelo.delete(13));\r\n\t\tassertNull(modelo.getById(13));\r\n\r\n\t\tassertEquals(\"debemos tener un registro menos\", (todos - 1), modelo\r\n\t\t\t\t.getAll().size());\r\n\r\n\t}", "int deleteByExample(ConfigDataExample example);", "public void deleteEpicsData(EpicsType epicsType, int run);", "int deleteByExample(DeptExample example);", "int deleteByExample(TVideoExample example);", "@Test\n @Ignore\n public void testDelete_Identifier() throws Exception {\n System.out.println(\"delete\");\n Index entity = TestUtils.getTestIndex();\n Identifier identifier = entity.getId();\n instance.create(entity);\n assertTrue(instance.exists(identifier));\n instance.delete(identifier);\n assertFalse(instance.exists(identifier));\n }", "public void test_RemovePrizeFromContest_Failure1()\r\n throws Exception {\r\n try {\r\n initContext();\r\n\r\n Contest contest = createContestForTest();\r\n beanUnderTest.createContest(contest);\r\n\r\n // It should process successfully.\r\n beanUnderTest.removePrizeFromContest(contest.getContestId(), 1000);\r\n\r\n fail(\"EntityNotFoundException is expected.\");\r\n } catch (EntityNotFoundException e) {\r\n // success\r\n }\r\n }", "int deleteByExample(UserOperateProjectExample example);", "int deleteByExample(SpecValuePOExample example);", "@Test\n void deleteItem() {\n }", "int deleteByExample(TycCompanyCheckCrawlerExample example);", "int deleteByExample(AbumExample example);", "int deleteByExample(Drug_OutWarehouseExample example);", "int deleteByExample(DressExample example);", "int deleteByExample(QuestionExample example);" ]
[ "0.7015161", "0.6334992", "0.6213197", "0.6188285", "0.607464", "0.6028646", "0.6012038", "0.6004456", "0.59965354", "0.598751", "0.5980473", "0.59655344", "0.5963731", "0.59509844", "0.5943946", "0.59329045", "0.59269804", "0.58789045", "0.5855247", "0.58462787", "0.5833534", "0.5827445", "0.5827261", "0.5818814", "0.5803394", "0.57958394", "0.5791756", "0.57751584", "0.577327", "0.57672894", "0.57661647", "0.5764242", "0.57608265", "0.5756232", "0.57554835", "0.575482", "0.5744657", "0.57338125", "0.5728177", "0.57276875", "0.57275504", "0.5724989", "0.57224375", "0.5716186", "0.5716186", "0.5714663", "0.5707849", "0.57061297", "0.5704603", "0.5701377", "0.5697292", "0.56971645", "0.56916815", "0.5681014", "0.56784785", "0.5676366", "0.5673465", "0.567179", "0.5669607", "0.56662315", "0.56594896", "0.5657732", "0.56573755", "0.5652306", "0.56467175", "0.5644436", "0.563558", "0.56345797", "0.56278324", "0.56225324", "0.5622179", "0.5614695", "0.56096965", "0.5609297", "0.5608028", "0.5606961", "0.56038415", "0.5596936", "0.55943155", "0.5583883", "0.5578564", "0.55771875", "0.5571092", "0.5570941", "0.55683255", "0.5566144", "0.55650187", "0.5562003", "0.5559286", "0.55550885", "0.5549676", "0.5549411", "0.5548311", "0.55451626", "0.5543519", "0.55406976", "0.55389535", "0.55386126", "0.55384076", "0.552878" ]
0.6570174
1
Created by jingtian.zjt on 2014/12/3.
public interface Server { public void start(); public void stop(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\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\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void poetries() {\n\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void strin() {\n\n\t}", "private void kk12() {\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}", "public void mo4359a() {\n }", "@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 public void init() {\n\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n protected void initialize() {\n\n \n }", "private void init() {\n\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tpublic void einkaufen() {\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}", "@Override\n protected void getExras() {\n }", "protected boolean func_70814_o() { return true; }", "@Override\r\n\tprotected void doF4() {\n\t\t\r\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\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\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n }", "private void m50366E() {\n }", "@Override\n void init() {\n }", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "private void init() {\n\n\n\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n protected void init() {\n }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "private zza.zza()\n\t\t{\n\t\t}", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic int mettreAJour() {\n\t\treturn 0;\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "public void mo12628c() {\n }", "static void feladat4() {\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "public void mo12930a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}" ]
[ "0.6069109", "0.6035043", "0.597038", "0.5967443", "0.5966473", "0.59394604", "0.59394604", "0.5891067", "0.58887273", "0.5884754", "0.5837488", "0.58177686", "0.581767", "0.5815146", "0.57943845", "0.57777363", "0.5777613", "0.5773912", "0.5746785", "0.5736507", "0.5726734", "0.5725945", "0.57119066", "0.56908184", "0.568796", "0.5683691", "0.5683407", "0.5683407", "0.5683407", "0.5683407", "0.5683407", "0.56708336", "0.56642395", "0.56642395", "0.5653577", "0.56393987", "0.56376547", "0.5634408", "0.56333745", "0.56280375", "0.56222016", "0.5607862", "0.5604672", "0.5599918", "0.5583557", "0.5583557", "0.5583557", "0.5567245", "0.55641466", "0.5541973", "0.55401474", "0.55401474", "0.55401474", "0.55360764", "0.55360764", "0.5533265", "0.5533265", "0.5533265", "0.55289614", "0.55216205", "0.55210596", "0.55157936", "0.55157936", "0.5505612", "0.5498657", "0.5498467", "0.5497784", "0.54930675", "0.5485593", "0.5480003", "0.5480003", "0.5480003", "0.5480003", "0.5480003", "0.5480003", "0.5480003", "0.5468225", "0.546105", "0.5460557", "0.5460065", "0.54512477", "0.5448979", "0.54439586", "0.5442289", "0.5435132", "0.5434273", "0.5433631", "0.54316777", "0.542843", "0.5412864", "0.54068315", "0.54060495", "0.54060495", "0.54060495", "0.54060495", "0.54060495", "0.54060495", "0.54025054", "0.5399819", "0.539824", "0.53959525" ]
0.0
-1
Per cada vertex guardem la seva coordenada x i y.
public Vertex(int x, int y) { this.x = x; this.y = y; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setVertices(){\n \tdouble[] xs = new double[numOfSides];\n \tdouble[] ys = new double[numOfSides];\n \tif (numOfSides%2==1){\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(2*i*Math.PI/numOfSides);\n \t\t\tys[i]=radius*Math.sin(2*i*Math.PI/numOfSides);\n \t\t\t}\n \t}\n \telse{\n \t\tdouble start=Math.PI/numOfSides;\n \t\tfor (int i=0; i<numOfSides; i++){\n \t\t\txs[i]=radius*Math.cos(start+2*i*(Math.PI)/numOfSides);\n \t\t\tys[i]=radius*Math.sin(start+2*i*(Math.PI)/numOfSides);\n \t\t\t}\n \t}\n \tsetXLocal(xs);\n \tsetYLocal(ys);\n }", "public abstract int[] getCoords();", "public void setPoints(int numOfIter) {\n\t\tint x = getX();\n\t\tint y = getY();\n\t\tint w = getW();\n\t\tint h = getH();\n\t\th = ((int) (getH() - w*0.29));\n\t\tint numOfSides = 3 * power(4, numOfIter);\n\t\n\t\t\n\t\tif(numOfIter == 0) {\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\txPointsD[2] = x;\n\t\t\tyPointsD[2] = y + h;\n\t\t\t\n\t\t\txPointsD[1] = (double) x + ((double) w)/2;\n\t\t\tyPointsD[1] = y;\n\t\t\t\n\t\t\txPointsD[0] = x + w;\n\t\t\tyPointsD[0] = y + h;\n\t\t} else {\n\t\t\tsetPoints(numOfIter - 1);\n\t\t\tint numOfSidesBefore = xPoints.length;\n\t\t\tdouble[] xPointsDB = xPointsD;\n\t\t\tdouble[] yPointsDB = yPointsD;\n\t\t\txPointsD = new double[numOfSides];\n\t\t\tyPointsD = new double[numOfSides];\n\t\t\t\n\t\t\tfor(int i = 0; i < numOfSidesBefore; i++) {\n\t\t\t\txPointsD[4*i] = xPointsDB[i];\n\t\t\t\tyPointsD[4*i] = yPointsDB[i];\n\t\t\t\t\n\t\t\t\tdouble nextXPointsDB;\n\t\t\t\tdouble nextYPointsDB;\n\t\t\t\tif(i < numOfSidesBefore - 1) {\n\t\t\t\t\tnextXPointsDB = xPointsDB[i+1];\n\t\t\t\t\tnextYPointsDB = yPointsDB[i+1];\n\t\t\t\t} else {\n\t\t\t\t\tnextXPointsDB = xPointsDB[0];\n\t\t\t\t\tnextYPointsDB = yPointsDB[0];\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//4i + 1 --> U = (2A+B)/3\n\t\t\t\txPointsD[4*i + 1] = (2 * xPointsDB[i] + nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 1] = (2 * yPointsDB[i] + nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t\t//4i + 2 --> this one is complicated --> V = U + (AB/3)*(cos(ang(AB) + pi.3), sin(ang(AB) + pi/3))\n\t\t\t\tdouble angAB = Math.atan2(nextYPointsDB-yPointsDB[i], nextXPointsDB-xPointsDB[i]);\n\t\t\t\txPointsD[4*i + 2] = xPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.cos(angAB + Math.PI/3.0); \n\t\t\t\t\n\t\t\t\tyPointsD[4*i + 2] = yPointsD[4*i + 1] + \n\t\t\t\t\t\t(Math.sqrt((nextXPointsDB - xPointsDB[i])*(nextXPointsDB - xPointsDB[i]) +\n\t\t\t\t\t\t\t\t(nextYPointsDB - yPointsDB[i])*(nextYPointsDB - yPointsDB[i]))/3.0) *\n\t\t\t\t\t\tMath.sin(angAB + Math.PI/3.0);\n\t\t\t\t\n\t\t\t\t//4i + 3 --> W = (A + 2B)/3\n\t\t\t\txPointsD[4*i + 3] = (xPointsDB[i] + 2 * nextXPointsDB)/3;\n\t\t\t\tyPointsD[4*i + 3] = (yPointsDB[i] + 2 * nextYPointsDB)/3;\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\txPoints = new int[numOfSides];\n\t\tyPoints = new int[numOfSides];\n\t\tfor(int i = 0; i < numOfSides; i++) {\n\t\t\txPoints[i] = (int) xPointsD[i];\n\t\t\tyPoints[i] = (int) yPointsD[i];\n\t\t}\n\t\t\n\t}", "public List<int[]> getCoords(Board lev){\n \tint[][] coords;\n \tColumn c = lev.getColumns().get(col);\n \tint[] p1 = c.getFrontPoint1();\n \tint[] p2 = c.getFrontPoint2();\n\n \tif (isPod && z < Board.BOARD_DEPTH) {\n \t\tint cx = p1[0] + (p2[0]-p1[0])/2;\n \t\tint cy = p1[1] + (p2[1]-p1[1])/2;\n\n \t\t// define outer and inner diamonds\n \t\tint[][] outer = new int[4][3];\n \t\tint[][] inner = new int[4][3];\n \t\touter[0][0] = cx;\n \t\touter[0][1] = cy - PODSIZE;\n \t\touter[0][2] = (int)z;\n \t\touter[1][0] = cx + PODSIZE;\n \t\touter[1][1] = cy;\n \t\touter[1][2] = (int) z;\n \t\touter[2][0] = cx;\n \t\touter[2][1] = cy + PODSIZE;\n \t\touter[2][2] = (int) z;\n \t\touter[3][0] = cx - PODSIZE;\n \t\touter[3][1] = cy;\n \t\touter[3][2] = (int) z;\n \t\tinner[0][0] = cx;\n \t\tinner[0][1] = cy - PODSIZE/3;\n \t\tinner[0][2] = (int) z;\n \t\tinner[1][0] = cx + PODSIZE/3;\n \t\tinner[1][1] = cy;\n \t\tinner[1][2] = (int) z;\n \t\tinner[2][0] = cx;\n \t\tinner[2][1] = cy + PODSIZE/3;\n \t\tinner[2][2] = (int) z;\n \t\tinner[3][0] = cx - PODSIZE/3;\n \t\tinner[3][1] = cy;\n \t\tinner[3][2] = (int) z;\n\n \t\t// define line path through those diamonds:\n \t\tcoords = new int[17][3];\n \t\tcoords[0] = outer[0];\n \t\tcoords[1] = outer[1];\n \t\tcoords[2] = inner[1];\n \t\tcoords[3] = inner [0];\n \t\tcoords[4] = outer[1];\n \t\tcoords[5] = outer[2];\n \t\tcoords[6] = inner[2];\n \t\tcoords[7] = inner[1];\n \t\tcoords[8] = outer[2];\n \t\tcoords[9] = outer[3];\n \t\tcoords[10]= inner[3];\n \t\tcoords[11]= inner[2];\n \t\tcoords[12]= outer[3];\n \t\tcoords[13]= outer[0];\n \t\tcoords[14]= inner[0];\n \t\tcoords[15]= inner[3];\n \t\tcoords[16]= outer[0];\n \t}\n \telse { \n \t\tcoords = new int[7][3];\n \t\tswitch (s) {\n \t\tcase STRAIGHT:\n \t\t\tcoords[0][0] = p1[0];\n \t\t\tcoords[0][1] = p1[1];\n \t\t\tcoords[0][2] = (int) (z-EXHEIGHT_H);\n \t\t\tcoords[1][0] = p2[0];\n \t\t\tcoords[1][1] = p2[1];\n \t\t\tcoords[1][2] = (int) (z+EXHEIGHT_H);\n \t\t\tcoords[2][0] = p2[0] - (p2[0]-p1[0])/3;\n \t\t\tcoords[2][1] = p2[1] - (p2[1]-p1[1])/3;\n \t\t\tcoords[2][2] = (int) z;\n \t\t\tcoords[3][0] = p2[0];\n \t\t\tcoords[3][1] = p2[1];\n \t\t\tcoords[3][2] = (int) (z-EXHEIGHT_H);\n \t\t\tcoords[4][0] = p1[0];\n \t\t\tcoords[4][1] = p1[1];\n \t\t\tcoords[4][2] = (int) (z+EXHEIGHT_H);\n \t\t\tcoords[5][0] = p1[0] + (p2[0]-p1[0])/3;\n \t\t\tcoords[5][1] = p1[1] + (p2[1]-p1[1])/3;\n \t\t\tcoords[5][2] = (int) z;\n \t\t\tcoords[6][0] = p1[0];\n \t\t\tcoords[6][1] = p1[1];\n \t\t\tcoords[6][2] = (int) (z-EXHEIGHT_H);\n \t\t\tbreak;\n\n \t\tcase JUMPRIGHT1:\n \t\tcase LANDRIGHT2:\n \t\t\tcoords[0][0] = p1[0] + (p2[0]-p1[0])/4;\n \t\t\tcoords[0][1] = p1[1] + (p2[1]-p1[1])/4;\n \t\t\tcoords[0][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[1][0] = p2[0] + (p2[0]-p1[0])/4;\n \t\t\tcoords[1][1] = p2[1] + (p2[1]-p1[1])/4;\n \t\t\tcoords[1][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[2][0] = p2[0] - (p2[0]-p1[0])/11;\n \t\t\tcoords[2][1] = p2[1] - (p2[1]-p1[1])/11;\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[3][0] = p2[0];\n \t\t\tcoords[3][1] = p2[1];\n \t\t\tcoords[3][2] = (int) z;\n \t\t\tcoords[4][0] = (int) (p1[0] + (p2[0]-p1[0])/2);\n \t\t\tcoords[4][1] = (int) (p1[1] + (p2[1]-p1[1])/2);\n \t\t\tcoords[4][2] = (int) (z+ EXHEIGHT_H*5);\n \t\t\tcoords[5][0] = (int) (p2[0] - (p2[0]-p1[0])/2.5);\n \t\t\tcoords[5][1] = (int) (p2[1] - (p2[1]-p1[1])/2.5);\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H *2.6);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n\n \t\tcase JUMPLEFT1:\n \t\tcase LANDLEFT2:\n \t\t\tcoords[0][0] = p1[0];\n \t\t\tcoords[0][1] = p1[1];\n \t\t\tcoords[0][2] = (int) z;\n \t\t\tcoords[1][0] = (int) (p1[0] + (p2[0]-p1[0])/2);\n \t\t\tcoords[1][1] = (int) (p1[1] + (p2[1]-p1[1])/2);\n \t\t\tcoords[1][2] = (int) (z+ EXHEIGHT_H*5);\n \t\t\tcoords[2][0] = (int) (p1[0] + (p2[0]-p1[0])/2.5);\n \t\t\tcoords[2][1] = (int) (p1[1] + (p2[1]-p1[1])/2.5);\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H *2.6);\n \t\t\tcoords[3][0] = p2[0] - (p2[0]-p1[0])/4;\n \t\t\tcoords[3][1] = p2[1] - (p2[1]-p1[1])/4;\n \t\t\tcoords[3][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[4][0] = p1[0] - (p2[0]-p1[0])/4;\n \t\t\tcoords[4][1] = p1[1] - (p2[1]-p1[1])/4;\n \t\t\tcoords[4][2] = (int) (z+EXHEIGHT_H*2);\n \t\t\tcoords[5][0] = p1[0] + (p2[0]-p1[0])/11;\n \t\t\tcoords[5][1] = p1[1] + (p2[1]-p1[1])/11;\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n\n \t\tcase JUMPLEFT2:\n \t\tcase LANDLEFT1:\n \t\t\tcoords[0][0] = p1[0];\n \t\t\tcoords[0][1] = p1[1];\n \t\t\tcoords[0][2] = (int) z;\n \t\t\tcoords[1][0] = (int) (p1[0] + (p2[0]-p1[0])/4.5);\n \t\t\tcoords[1][1] = (int) (p1[1] + (p2[1]-p1[1])/4.5);\n \t\t\tcoords[1][2] = (int) (z+ EXHEIGHT_H*8);\n \t\t\tcoords[2][0] = (int) (p1[0] + (p2[0]-p1[0])/4.5);\n \t\t\tcoords[2][1] = (int) (p1[1] + (p2[1]-p1[1])/4.5);\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H *4);\n \t\t\tcoords[3][0] = p2[0] - (p2[0]-p1[0])/2;\n \t\t\tcoords[3][1] = p2[1] - (p2[1]-p1[1])/2;\n \t\t\tcoords[3][2] = (int) (z+EXHEIGHT_H*4);\n \t\t\tcoords[4][0] = (int) (p1[0] - (p2[0]-p1[0])/3.5);\n \t\t\tcoords[4][1] = (int) (p1[1] - (p2[1]-p1[1])/3.5);\n \t\t\tcoords[4][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[5][0] = p1[0];// - (p2[0]-p1[0])/15;\n \t\t\tcoords[5][1] = p1[1];// - (p2[1]-p1[1])/15;\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n\n \t\tcase JUMPRIGHT2:\n \t\tcase LANDRIGHT1:\n \t\t\tcoords[0][0] = p2[0] - (p2[0]-p1[0])/2;\n \t\t\tcoords[0][1] = p2[1] - (p2[1]-p1[1])/2;\n \t\t\tcoords[0][2] = (int) (z+EXHEIGHT_H*4);\n \t\t\tcoords[1][0] = (int) (p2[0] + (p2[0]-p1[0])/3.5);\n \t\t\tcoords[1][1] = (int) (p2[1] + (p2[1]-p1[1])/3.5);\n \t\t\tcoords[1][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[2][0] = p2[0];// - (p2[0]-p1[0])/15;\n \t\t\tcoords[2][1] = p2[1];// - (p2[1]-p1[1])/15;\n \t\t\tcoords[2][2] = (int) (z+EXHEIGHT_H*1.8);\n \t\t\tcoords[3][0] = p2[0];\n \t\t\tcoords[3][1] = p2[1];\n \t\t\tcoords[3][2] = (int) z;\n \t\t\tcoords[4][0] = (int) (p2[0] - (p2[0]-p1[0])/4.5);\n \t\t\tcoords[4][1] = (int) (p2[1] - (p2[1]-p1[1])/4.5);\n \t\t\tcoords[4][2] = (int) (z+ EXHEIGHT_H*8);\n \t\t\tcoords[5][0] = (int) (p2[0] - (p2[0]-p1[0])/4.5);\n \t\t\tcoords[5][1] = (int) (p2[1] - (p2[1]-p1[1])/4.5);\n \t\t\tcoords[5][2] = (int) (z+EXHEIGHT_H *4);\n \t\t\tcoords[6] = coords[0];\n \t\t\tbreak;\n \t\t}\n \t}\n\n \treturn Arrays.asList(coords);\n }", "public int x (int index) { return coords[index][0]; }", "private void computeXY(int x, int y){\n\n for (int x1 = x-1; x1 <= x+1; x1++) {\n for (int y1 = y-1; y1 <= y+1; y1++) {\n switch ((int)generator.cellHashes.get(ccells.cell2Hash(x1,y1))){\n case 3:\n ncells.set(x1,y1,false);\n break;\n case 1:\n ncells.set(x1,y1,true);\n break;\n case 0:\n ncells.set(x1,y1,ccells.get(x1,y1));\n break;\n }\n }\n }\n }", "private void paintCourbePoints() {\n\t\tfloat x, y;\n\t\tint i, j;\n\t\t\n\t\tfor(x=xMin; x<=xMax; x++) {\n\t\t\ty = parent.getY(x);\n\t\t\t\n\t\t\tif(y>yMin && y<yMax) {\n\t\t\t\ti = convertX(x);\n\t\t\t\tj = convertY(y);\n\t\t\t\t\n\t\t\t\t//Utilisation d'un carre/losange pour simuler un point \n\t\t\t\t//de taille superieur a un pixel car celui-ci est peu visible.\n\t\t\t\tpaintPointInColor(i-2, j);\n\t\t\t\tpaintPointInColor(i-1, j-1);\t\t\t\t\n\t\t\t\tpaintPointInColor(i-1, j);\n\t\t\t\tpaintPointInColor(i-1, j+1);\n\t\t\t\tpaintPointInColor(i, j-2);\t//\t *\n\t\t\t\tpaintPointInColor(i, j-1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j);\t//\t* * * * *\n\t\t\t\tpaintPointInColor(i, j+1);\t//\t * * *\n\t\t\t\tpaintPointInColor(i, j+2);\t//\t *\n\t\t\t\tpaintPointInColor(i+1, j-1);\n\t\t\t\tpaintPointInColor(i+1, j);\n\t\t\t\tpaintPointInColor(i+1, j+1);\n\t\t\t\tpaintPointInColor(i+2, j);\n\t\t\t}\n\t\t}\t\t\n\t}", "public void darCoordenadas() {\r\n\t\t\r\n\t\tfor(int x = 0; x<palabras.size(); x++) {\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"V\")) {\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaY++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (palabras.get(x).get(0).getOrientacion().equals(\"H\") ) {\r\n\t\t\t\t\r\n\t\t\t\tint coordenadaX = palabras.get(x).get(0).getX();\r\n\t\t\t\tint coordenadaY = palabras.get(x).get(0).getY();\r\n\t\t\t\t\r\n\t\t\t\tfor(int y = 1; y < palabras.get(x).size(); y++) \r\n\t\t\t\t{\r\n\t\t\t\t\tcoordenadaX++;\r\n\t\t\t\t\tpalabras.get(x).get(y).setX(coordenadaX);\r\n\t\t\t\t\tpalabras.get(x).get(y).setY(coordenadaY);\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}", "private void getVertex(int x, int y, Vector3f vertex) {\n\t\tfloat height = getRawHeightFieldValue(x, y);\n\n\t\tswitch (m_upAxis) {\n\t\tcase 0: {\n\t\t\tvertex.set(height - m_localOrigin.x, (-m_width / 2.0f) + x, (-m_length / 2.0f) + y);\n\t\t\tbreak;\n\t\t}\n\t\tcase 1: {\n\t\t\tvertex.set((-m_width / 2.0f) + x, height - m_localOrigin.y, (-m_length / 2.0f) + y);\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 2: {\n\t\t\tvertex.set((-m_width / 2.0f) + x, (-m_length / 2.0f) + y, height - m_localOrigin.z);\n\t\t\tbreak;\n\t\t}\n\t\t}\n\n\t\tvertex.x = vertex.x * m_localScaling.x;\n\t\tvertex.y = vertex.y * m_localScaling.y;\n\t\tvertex.z = vertex.z * m_localScaling.z;\n\t}", "public Coordonnees getCoordonnees(int x, int y) {\r\n\t\tif(y >= 0 && y < hauteur && x >= 0 && x < largeur)\r\n\t\t\treturn this.plateau[y][x].getCoordonnees();\r\n\t\treturn null;\r\n\t}", "public int getXY(int x, int y);", "private void addVertexPositionConstraint(){\n for (int vertex=0; vertex < vertexCount; vertex++){\n addExactlyOne(variables[vertex]);\n }\n }", "private double [] getGraphCoordinates(Virus virus){\n\t\tdouble pos = virus.getPosition();\n\t\tmxCell edge = getEdge(virus.getMicrotuble());\n\t\tmxICell src = edge.getSource();\n\t\tmxICell tar = edge.getTarget();\n\t\t//System.out.println(\"e=\" + edge.getValue() + \"\\tsrc=\" + src.getValue());\n\t\tmxGeometry srcGeo = graph.getModel().getGeometry(src);\n\t\tmxGeometry tarGeo = graph.getModel().getGeometry(tar);\n\t\t\n\t\t//where we need to go to\n\t\tdouble srcX = srcGeo.getCenterX();\n\t\tdouble srcY = srcGeo.getCenterY();\n\t\t\n\t\t//This is the start position\n\t\tdouble tarX = tarGeo.getCenterX();\n\t\tdouble tarY = tarGeo.getCenterY();\n\t\t\n\t\tdouble tan = (tarY - srcY)/(tarX - srcX) ;\n\t\tdouble angle = Math.atan(tan);\n\t\t\n\t\tdouble _y = Math.sin(angle) * pos;\n\t\tdouble _x = Math.cos(angle) * pos;\n\t\tdouble y,x;\n\t\t//determine direction\n\n\t\t\n\t\tif (tarY >= srcY && tarX >= srcX){ //ok\n\t\t\tx = tarX - _x;\n\t\t\ty = tarY - _y;\n\t\t} else if (tarY < srcY && tarX > srcX){\n\t\t\tx = tarX - _x;\n\t\t\ty = tarY - _y;\n\t\t} else if (tarY > srcY && tarX < srcX){ //ok\n\t\t\tx = tarX + _x;\n\t\t\ty = tarY + _y;\n\n\t\t} else {// if (tarY < srcY && tarX < srcX){\n\t\t\tx = tarX + _x;\n\t\t\ty = tarY + _y;\n\t\t}\n\t\t//System.out.println(\"(\" + _x + \",\" + _y + \")\\t\" + \"(\" + x + \",\" + y + \")\");\n\n\t\treturn new double[] {x,y};\n\t}", "private void findPoints(int[] xPoints,int[]yPoints,int x,int y,int x2,int h){\r\n xPoints[0]=x;\r\n xPoints[1]=x2;\r\n xPoints[2]=x;\r\n yPoints[0]=y;\r\n yPoints[1]=y+h/2;\r\n yPoints[2]=y+h; \r\n }", "public int setPoint(float x, float y, int gnum);", "int getVertices();", "@Override\n\tprotected void paint2d(Graphics2D g) {\n\t\tdouble x = 0;//getX();\n\t\tdouble y = 0;//getY();\n\t\tfor (int i = 0; i < size() - 1; i++) {\n\t\t\tGPoint p1 = points.get(i);\n\t\t\tGPoint p2 = points.get(i + 1);\n\t\t\tdouble x0 = p1.getX() - x;\n\t\t\tdouble y0 = p1.getY() - y;\n\t\t\tdouble x1 = p2.getX() - x;\n\t\t\tdouble y1 = p2.getY() - y;\n\t\t\tg.drawLine(GMath.round(x0), GMath.round(y0),\n\t\t\t\t\tGMath.round(x1), GMath.round(y1));\n\t\t}\n\t}", "public void calculaVertice(int _radio, double _giro){\r\n //npoints equivale a _lados\r\n for(int i = 0; i<npoints;i++){\r\n //asi se llama internamente a la primera array de las posiciones x\r\n xpoints[i] = (int)(x + _radio*Math.cos((2*Math.PI * i +_giro/40)/npoints));\r\n ypoints[i] = (int)(y + _radio*Math.sin((2*Math.PI * i +_giro/40)/npoints));\r\n }\r\n \r\n }", "public void setVertices(float x0, float y0, float z0,\n float x1, float y1, float z1,\n float x2, float y2, float z2) {\n x_array[0] = x0;\n x_array[1] = x1;\n x_array[2] = x2;\n \n y_array[0] = y0;\n y_array[1] = y1;\n y_array[2] = y2;\n \n z_array[0] = z0;\n z_array[1] = z1;\n z_array[2] = z2;\n }", "public Pixel getCoordenadasCartesianas(){\r\n\t\tPixel p = new Pixel();\r\n\t\tp.setXDouble(this.getXCartesiano());\r\n\t\tp.setYDouble(this.getYCartesiano());\r\n\t\tp.setCol(this.getCol());\r\n\t\treturn p;\r\n\t}", "public Vertex2d[] square_vertex(int x, int y, int sizelen, spritecomponent s) {\r\n\t\tsizelen = sizelen * 2;\r\n\t\tfloat sizex = convert_coordinate(sizelen, width);\r\n\t\tfloat sizey = convert_coordinate(sizelen, height);\r\n\t\tx = x * 2;\r\n\t\ty = y * 2;\r\n\t\tx = x - (width);\r\n\t\ty = y - (height - sizelen);\r\n\t\tVertex2d new_coords = convert_coordinates(x, y);\r\n\r\n\t\tfloat xp = new_coords.x;\r\n\t\tfloat yp = new_coords.y;\r\n\t\tVertex2d[] data = new Vertex2d[] { new Vertex2d(xp, yp, s.x, s.y),\r\n\t\t\t\tnew Vertex2d(xp + sizex, yp, s.ex, s.y),\r\n\t\t\t\tnew Vertex2d(xp, yp - sizey, s.x, s.ey),\r\n\t\t\t\tnew Vertex2d(xp + sizex, yp - sizey, s.ex, s.ey),\r\n\t\t\t\tnew Vertex2d(xp, yp - sizey, s.x, s.ey),\r\n\t\t\t\tnew Vertex2d(xp + sizex, yp, s.ex, s.y) };\r\n\t\treturn data;\r\n\t}", "public abstract Vector2[] getVertices();", "public Point[] getForwardCoords(int fromX, int fromY, int toX, int toY)\n {\n int[] coordX = new int[3];\n int[] coordY = new int[3];\n if ((toX < fromX) || ((toX == (size.width - 1)) && (fromX == 0)))\n {\n coordX[0] = toX;\n coordX[1] = toX - 1;\n if (coordX[1] < 0)\n {\n coordX[1] += size.width;\n }\n coordX[2] = toX;\n coordY[0] = (toY + 1) % size.height;\n coordY[1] = toY;\n coordY[2] = toY - 1;\n if (coordY[2] < 0)\n {\n coordY[2] += size.height;\n }\n }\n else if ((toX > fromX) || ((toX == 0) && (fromX == (size.width - 1))))\n {\n coordX[0] = toX;\n coordX[1] = (toX + 1) % size.width;\n coordX[2] = toX;\n coordY[0] = (toY + 1) % size.height;\n coordY[1] = toY;\n coordY[2] = toY - 1;\n if (coordY[2] < 0)\n {\n coordY[2] += size.height;\n }\n }\n else if ((toY < fromY) || ((toY == (size.height - 1)) && (fromY == 0)))\n {\n coordY[0] = toY;\n coordY[1] = toY - 1;\n if (coordY[1] < 0)\n {\n coordY[1] += size.height;\n }\n coordY[2] = toY;\n coordX[0] = (toX + 1) % size.width;\n coordX[1] = toX;\n coordX[2] = toX - 1;\n if (coordX[2] < 0)\n {\n coordX[2] += size.width;\n }\n }\n else if ((toY > fromY) || ((toY == 0) && (fromY == (size.height - 1))))\n {\n coordY[0] = toY;\n coordY[1] = (toY + 1) % size.height;\n coordY[2] = toY;\n coordX[0] = (toX + 1) % size.width;\n coordX[1] = toX;\n coordX[2] = toX - 1;\n if (coordX[2] < 0)\n {\n coordX[2] += size.width;\n }\n }\n Point[] result = new Point[3];\n for (int i = 0; i < 3; i++)\n {\n result[i] = new Point(coordX[i], coordY[i]);\n }\n return(result);\n }", "List<GridCoordinate> getCoordinates(int cellWidth, int cellHeight);", "public MPolygon computeVertex_xyz(FOV f) {\r\n\r\n\t\tMPolygon mpolygon = new MPolygon();\r\n\r\n\t\tdouble radian1 = MPolygon.toRadian(450 - (f.getDirection() - f.gethAngle() / 2));\r\n\t\tdouble radian2 = MPolygon.toRadian(450 - (f.getDirection() - f.gethAngle() / 4));\r\n\t\tdouble radian3 = MPolygon.toRadian(450 - (f.getDirection() + f.gethAngle() / 4));\r\n\t\tdouble radian4 = MPolygon.toRadian(450 - (f.getDirection() + f.gethAngle() / 2));\r\n\t\tdouble radianD = MPolygon.toRadian(450 - f.getDirection());\r\n\r\n\t\tMPoint p1 = new MPoint();\r\n\t\tp1.x = f.getLatitude() + Math.cos(f.getVeiwDist() * (radian1 * Math.PI / 180));\r\n\t\tp1.y = f.getLongitude() + Math.sin(f.getVeiwDist() * (radian1 * Math.PI / 180));\r\n\r\n\t\tMPoint p2 = new MPoint();\r\n\t\tp2.x = f.getLatitude() + Math.cos(f.getVeiwDist() * (radian2 * Math.PI / 180));\r\n\t\tp2.y = f.getLongitude() + Math.sin(f.getVeiwDist() * (radian2 * Math.PI / 180));\r\n\r\n\t\tMPoint p3 = new MPoint();\r\n\t\tp3.x = f.getLatitude() + Math.cos(f.getVeiwDist() * (radian3 * Math.PI / 180));\r\n\t\tp3.y = f.getLongitude() + Math.sin(f.getVeiwDist() * (radian3 * Math.PI / 180));\r\n\r\n\t\tMPoint p4 = new MPoint();\r\n\t\tp4.x = f.getLatitude() + Math.cos(f.getVeiwDist() * (radian4 * Math.PI / 180));\r\n\t\tp4.y = f.getLongitude() + Math.sin(f.getVeiwDist() * (radian4 * Math.PI / 180));\r\n\r\n\t\tMPoint D = new MPoint();\r\n\t\tD.x = f.getLatitude() + Math.cos(f.getVeiwDist() * (radianD * Math.PI / 180));\r\n\t\tD.y = f.getLongitude() + Math.sin(f.getVeiwDist() * (radianD * Math.PI / 180));\r\n\r\n\t\tMPoint location = new MPoint();\r\n\t\tlocation.x = f.getLatitude();\r\n\t\tlocation.y = f.getLongitude();\r\n\t\tmpolygon.setP1(p1);\r\n\t\tmpolygon.setP2(p2);\r\n\t\tmpolygon.setP3(p2);\r\n\t\tmpolygon.setP4(p4);\r\n\t\tmpolygon.setD(D);\r\n\t\tmpolygon.setLocation(location);\r\n\r\n\t\treturn mpolygon;\r\n\r\n\t}", "public int[] getCoords() {\n return coords;\n }", "private void defineVertexes(String orientation){\n if(\"down\".equals(orientation)){\n y2 = y1-height;\n y3 = y1-height;\n \n x2 = x1 - height/2;\n x3 = x1 + height/2;\n }else if(orientation.equals(\"up\")){\n y2 = y1+height;\n y3 = y1+height;\n x2 = x1 - height/2;\n x3 = x1 + height/2;\n }else if(orientation.equals(\"left\")){\n x2 = x1-height;\n y2 = y1+height/2;\n x3 = x1;\n y3 = y1+height;\n }else if(orientation.equals(\"right\")){\n x2 = x1+height;\n y2 = y1+height/2;\n x3 = x1;\n y3 = y1+height;\n }\n }", "public void aggiornaPropulsori(){\n xPropulsore1=new int[]{xCord[0],xCord[0]};\n yPropulsore1=new int[]{yCord[0],yCord[0]+15}; \n xPropulsore2=new int[]{xCord[2],xCord[2]}; \n yPropulsore2=new int[]{yCord[2],yCord[2]+15};\n \n }", "Coordinates getCoordinates(int rowIndex);", "List<Point> getPath(int grid[][], Point src, Point dest);", "public Point scaleToGraphCanvasCoords(int x, int y);", "private static Vector2f toGuiCoords(float x, float y) {\r\n\t\treturn(new Vector2f((x/DisplayManager.getWidth()) - 0.5f, y/DisplayManager.getHeight()));\r\n\t}", "List<V> getAdjacentVertexList(V v);", "public int[][] coords(int i){\r\n\t\tswitch(i){\r\n\t\t\tcase 0:\r\n\t\t\t\tint[][] j1 = {{0,0},{1,0},{2,0},{3,0},{0,1}};\r\n\t\t\t\treturn j1;\r\n\t\t\tcase 1:\r\n\t\t\t\tint[][] j2 = {{0,0},{0,1},{0,2},{0,3},{1,0}};\r\n\t\t\t\treturn j2;\r\n\t\t\tcase 2:\r\n\t\t\t\tint[][] j3 = {{0,0},{1,1},{1,2 },{1,3},{1,0}};\r\n\t\t\t\treturn j3;\r\n\t\t\tcase 3:\r\n\t\t\t\tint[][] j4 = {{0,0},{1,1},{2,1},{3,1},{0,1}};\r\n\t\t\t\treturn j4;\r\n\t\t\tcase 4:\r\n\t\t\t\tint[][] j5 = {{3,0},{1,1},{2,1},{3,1},{0,1}};\r\n\t\t\t\treturn j5;\r\n\t\t\tcase 5:\r\n\t\t\t\tint[][] j6 = {{0,0},{0,1},{0,2},{0,3},{1,3}};\r\n\t\t\t\treturn j6;\t\t\r\n\t\t\tcase 6:\r\n\t\t\t\tint[][] j7 = {{0,0},{1,0},{2,0 },{3,0},{3,1}};\r\n\t\t\t\treturn j7;\r\n\t\t\tcase 7:\r\n\t\t\t\tint[][] j8 = {{0,3},{1,1},{1,2 },{1,3},{1,0}};\r\n\t\t\t\treturn j8;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public abstract int[] getConnected(int vertexIndex);", "protected abstract void paintCoordinates(Graphics2D g);", "public Position[] getVertexPosition() {\n Position[] positions = new Position[4];\n positions[0] = position;\n positions[1] = new Position(position.getX(), position.getY()+sizeL);\n positions[2] = new Position(position.getX()+sizeL, position.getY()+sizeL);\n positions[3] = new Position(position.getX()+sizeL, position.getY());\n\n return positions;\n }", "public List<Point> generatePointList(){\r\n\t\t//Can move up to 3 squares horizontally or vertically, but cannot move diagonally.\r\n List<Point> pointList = new ArrayList<>();\r\n int pointCount = 0;\r\n int px = (int)getCoordinate().getX();\r\n int py = (int)getCoordinate().getY();\r\n\r\n for (int i=px-3;i<=px+3;i++){\r\n for(int j=py-3;j<=py+3;j++){\r\n if((i>=0) && (i<9) && (j>=0) && (j<9) && ((i!=px)||(j!=py))){\r\n if ((i==px)||(j==py)){\r\n pointList.add(pointCount, new Point(i,j));\r\n pointCount+=1;\r\n } \r\n }\r\n }\r\n }\r\n return pointList;\r\n }", "public void pathTo(int x1, int y1, int x2, int y2, int x3, int y3);", "public void computeTextureUVCoordinates()\n\t{\n\t\tthis.faceTextureUCoordinates = new float[faceCount][];\n\t\tthis.faceTextureVCoordinates = new float[faceCount][];\n\n\t\tfor (int i = 0; i < faceCount; i++)\n\t\t{\n\t\t\tint textureCoordinate;\n\t\t\tif (textureCoordinates == null)\n\t\t\t{\n\t\t\t\ttextureCoordinate = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttextureCoordinate = textureCoordinates[i];\n\t\t\t}\n\n\t\t\tint textureIdx;\n\t\t\tif (faceTextures == null)\n\t\t\t{\n\t\t\t\ttextureIdx = -1;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttextureIdx = faceTextures[i] & 0xFFFF;\n\t\t\t}\n\n\t\t\tif (textureIdx != -1)\n\t\t\t{\n\t\t\t\tfloat[] u = new float[3];\n\t\t\t\tfloat[] v = new float[3];\n\n\t\t\t\tif (textureCoordinate == -1)\n\t\t\t\t{\n\t\t\t\t\tu[0] = 0.0F;\n\t\t\t\t\tv[0] = 1.0F;\n\n\t\t\t\t\tu[1] = 1.0F;\n\t\t\t\t\tv[1] = 1.0F;\n\n\t\t\t\t\tu[2] = 0.0F;\n\t\t\t\t\tv[2] = 0.0F;\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\ttextureCoordinate &= 0xFF;\n\n\t\t\t\t\tbyte textureRenderType = 0;\n\t\t\t\t\tif (textureRenderTypes != null)\n\t\t\t\t\t{\n\t\t\t\t\t\ttextureRenderType = textureRenderTypes[textureCoordinate];\n\t\t\t\t\t}\n\n\t\t\t\t\tif (textureRenderType == 0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint faceVertexIdx1 = faceVertexIndices1[i];\n\t\t\t\t\t\tint faceVertexIdx2 = faceVertexIndices2[i];\n\t\t\t\t\t\tint faceVertexIdx3 = faceVertexIndices3[i];\n\n\t\t\t\t\t\tshort triangleVertexIdx1 = textureTriangleVertexIndices1[textureCoordinate];\n\t\t\t\t\t\tshort triangleVertexIdx2 = textureTriangleVertexIndices2[textureCoordinate];\n\t\t\t\t\t\tshort triangleVertexIdx3 = textureTriangleVertexIndices3[textureCoordinate];\n\n\t\t\t\t\t\tfloat triangleX = (float) vertexPositionsX[triangleVertexIdx1];\n\t\t\t\t\t\tfloat triangleY = (float) vertexPositionsY[triangleVertexIdx1];\n\t\t\t\t\t\tfloat triangleZ = (float) vertexPositionsZ[triangleVertexIdx1];\n\n\t\t\t\t\t\tfloat f_882_ = (float) vertexPositionsX[triangleVertexIdx2] - triangleX;\n\t\t\t\t\t\tfloat f_883_ = (float) vertexPositionsY[triangleVertexIdx2] - triangleY;\n\t\t\t\t\t\tfloat f_884_ = (float) vertexPositionsZ[triangleVertexIdx2] - triangleZ;\n\t\t\t\t\t\tfloat f_885_ = (float) vertexPositionsX[triangleVertexIdx3] - triangleX;\n\t\t\t\t\t\tfloat f_886_ = (float) vertexPositionsY[triangleVertexIdx3] - triangleY;\n\t\t\t\t\t\tfloat f_887_ = (float) vertexPositionsZ[triangleVertexIdx3] - triangleZ;\n\t\t\t\t\t\tfloat f_888_ = (float) vertexPositionsX[faceVertexIdx1] - triangleX;\n\t\t\t\t\t\tfloat f_889_ = (float) vertexPositionsY[faceVertexIdx1] - triangleY;\n\t\t\t\t\t\tfloat f_890_ = (float) vertexPositionsZ[faceVertexIdx1] - triangleZ;\n\t\t\t\t\t\tfloat f_891_ = (float) vertexPositionsX[faceVertexIdx2] - triangleX;\n\t\t\t\t\t\tfloat f_892_ = (float) vertexPositionsY[faceVertexIdx2] - triangleY;\n\t\t\t\t\t\tfloat f_893_ = (float) vertexPositionsZ[faceVertexIdx2] - triangleZ;\n\t\t\t\t\t\tfloat f_894_ = (float) vertexPositionsX[faceVertexIdx3] - triangleX;\n\t\t\t\t\t\tfloat f_895_ = (float) vertexPositionsY[faceVertexIdx3] - triangleY;\n\t\t\t\t\t\tfloat f_896_ = (float) vertexPositionsZ[faceVertexIdx3] - triangleZ;\n\n\t\t\t\t\t\tfloat f_897_ = f_883_ * f_887_ - f_884_ * f_886_;\n\t\t\t\t\t\tfloat f_898_ = f_884_ * f_885_ - f_882_ * f_887_;\n\t\t\t\t\t\tfloat f_899_ = f_882_ * f_886_ - f_883_ * f_885_;\n\t\t\t\t\t\tfloat f_900_ = f_886_ * f_899_ - f_887_ * f_898_;\n\t\t\t\t\t\tfloat f_901_ = f_887_ * f_897_ - f_885_ * f_899_;\n\t\t\t\t\t\tfloat f_902_ = f_885_ * f_898_ - f_886_ * f_897_;\n\t\t\t\t\t\tfloat f_903_ = 1.0F / (f_900_ * f_882_ + f_901_ * f_883_ + f_902_ * f_884_);\n\n\t\t\t\t\t\tu[0] = (f_900_ * f_888_ + f_901_ * f_889_ + f_902_ * f_890_) * f_903_;\n\t\t\t\t\t\tu[1] = (f_900_ * f_891_ + f_901_ * f_892_ + f_902_ * f_893_) * f_903_;\n\t\t\t\t\t\tu[2] = (f_900_ * f_894_ + f_901_ * f_895_ + f_902_ * f_896_) * f_903_;\n\n\t\t\t\t\t\tf_900_ = f_883_ * f_899_ - f_884_ * f_898_;\n\t\t\t\t\t\tf_901_ = f_884_ * f_897_ - f_882_ * f_899_;\n\t\t\t\t\t\tf_902_ = f_882_ * f_898_ - f_883_ * f_897_;\n\t\t\t\t\t\tf_903_ = 1.0F / (f_900_ * f_885_ + f_901_ * f_886_ + f_902_ * f_887_);\n\n\t\t\t\t\t\tv[0] = (f_900_ * f_888_ + f_901_ * f_889_ + f_902_ * f_890_) * f_903_;\n\t\t\t\t\t\tv[1] = (f_900_ * f_891_ + f_901_ * f_892_ + f_902_ * f_893_) * f_903_;\n\t\t\t\t\t\tv[2] = (f_900_ * f_894_ + f_901_ * f_895_ + f_902_ * f_896_) * f_903_;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tthis.faceTextureUCoordinates[i] = u;\n\t\t\t\tthis.faceTextureVCoordinates[i] = v;\n\t\t\t}\n\t\t}\n\t}", "public void darCoordenadasIniciales() \r\n\t{\t\r\n\t\tint coordenadasX = 0;\r\n\t\tint coordenadasY = 1;\r\n\t\tint orientacion = 2;\r\n\t\t\r\n\t\tfor (int x = 0; x<palabras.size();x++) \r\n\t\t{\r\n\t\t\tpalabras.get(x).get(0).setX(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasX)));\r\n\t\t\tpalabras.get(x).get(0).setY(Integer.parseInt(manejadorArchivos.getPalabras().get(coordenadasY)));\r\n\t\t\tpalabras.get(x).get(0).setOrientacion(manejadorArchivos.getPalabras().get(orientacion));\r\n\t\t\t\r\n\t\t\t coordenadasX = coordenadasX +4;\r\n\t\t\t coordenadasY = coordenadasY + 4;\r\n\t\t\t orientacion = orientacion + 4;\r\n\t\t}\r\n\t}", "public ImgMathVec(int x, int y) {\r\n\t\tv = new int[3];\r\n\t\tv[0] = x;\r\n\t\tv[1] = y;\r\n\t\tv[2] = 1;\r\n\t}", "private void findGrid(int x, int y) {\n\tgx = (int) Math.floor(x / gs);\n\tgy = (int) Math.floor(y / gs);\n\n\tif (debug){\n\tSystem.out.print(\"Actual: (\" + x + \",\" + y + \")\");\n\tSystem.out.println(\" Grid square: (\" + gx + \",\" + gy + \")\");\n\t}\n }", "public String getGVCoordsForPosition() {\n return \"\\\"\" + coords[0] + \",\" + coords[1] + \"!\\\"\";\n }", "private void positionVerticesAsApices(V vi, V vi_1, V v, Map<V,Point2D> positions, List<E> Si, List<V> vertices){\n\t\t//vertices should be apices of a polygon and should be placed inside the triangle whose\n\t\t//apices are vi, vi_1 and v\n\t\tPoint2D viPoint = positions.get(vi);\n\t\tPoint2D vi_1Point = positions.get(vi_1);\n\t\tPoint2D vPoint = positions.get(v);\n\n\n\t\tlog.info(\"positioning apices \" + vertices);\n\t\tlog.info(\"viPoint \" + vi +\" \"+ viPoint);\n\t\tlog.info(\"vi_1Point \" + vi_1 + \" \" + vi_1Point);\n\t\tlog.info(\"vPoint \" + v + \" \"+ vPoint);\n\n\t\t//this is done so that the vertex linked with vi would be next to it\n\t\t//prevent wrong order\n\t\tboolean reverse = false;\n\n\t\tfor (E e : Si){\n\t\t\tif ((e.getOrigin() == vi && e.getDestination() == vertices.get(0)) || \n\t\t\t\t\t(e.getDestination() == vi && e.getOrigin() == vertices.get(0))){\n\t\t\t\treverse = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\n\n\t\t//might not be the ideal solution, but it gets the job done\n\t\t//with solid results which are in accordance to the algorithms\n\t\t//requirements regarding this positioning\n\n\t\t//find centroid of the triangle\n\t\t////place one vertex there\n\t\t//draw a line parallel to vi,vi+1 through the controid\n\t\t//find the intersection with v,vi and v, vi+1\n\t\t//get two new triangles\n\t\t//vi, intersection, centroid\n\t\t//vi+1, other intersection centroid\n\t\t//then to the same for those two triangles\n\t\t//find their centroids\n\t\t//then form two new triangles\n\t\t//do so in a way that will guarantee that their centroid\n\t\t//is placed so that the line constantly rises or drops\n\t\t//and moves from left to right - no zig zags\n\t\t//that's the purpose of the parallel line - prevent\n\t\t//such oscillations\n\t\t//if one of the apices of a new triangle is the old centroid\n\t\t//the other apex should be on the parallel line drawn to contain it\n\t\t//intersection of the median containing the new centroid and that parallel line\n\n\t\tMap<Integer, List<Triangle>> trianglesLevelsMap = new HashMap<Integer, List<Triangle>>();\n\t\tint level = 1;\n\t\tTriangle firstTriangle = new Triangle(viPoint, vi_1Point, vPoint);\n\t\tif (vertices.size() == 1){\n\t\t\tpositions.put(vertices.get(0), Calc.triangleCentroid(firstTriangle));\n\t\t\treturn;\n\t\t}\n\n\n\t\tList<Triangle> levelOne = new ArrayList<Triangle>();\n\t\tlevelOne.add(firstTriangle);\n\t\ttrianglesLevelsMap.put(1, levelOne);\n\n\t\t//not going to position vertices as soon \n\t\t//as a centroid is calculated\n\t\t//the centroids closest to the vi and vi_1 and\n\t\t//those belonging to the lastly formed triangles\n\t\t//are where the first two vertices should be positioned\n\t\t//so, firstly just calculate all centroid\n\t\t//place these positions in a list so that\n\t\t//the first vertex should be positioned\n\t\t//on the point of the first centroid\n\t\t//last on the point of the last centroid\n\t\t//when placing the vertices later\n\t\t//pick one from the start, position it\n\t\t//pick one from the back, position it\n\t\t//not all centroid positions will be used\n\t\t//but this guarantees symmetry \n\n\t\tList<Point2D> centroidPositions = new ArrayList<Point2D>(); \n\n\t\twhile (centroidPositions.size() < vertices.size()){\n\n\t\t\tList<Triangle> triangles = trianglesLevelsMap.get(level);\n\n\t\t\t//divide the triangle,form new ones\n\t\t\t//if current triangle is at level one (vi, vi+1, v)\n\t\t\t//draw a line through centroid parallel to vi,vi+1\n\t\t\t//new triangles are vi, intersection 1, centroid\n\t\t\t//and vi+i, intersection 2, centroid\n\t\t\t//try to establish some convention regarding which point will be a,b and c\n\t\t\t//use that to generalize division and creation of new triangles\n\n\n\t\t\tfor(Triangle t : triangles){\n\n\t\t\t\tPoint2D centroid = Calc.triangleCentroid(t);\n\t\t\t\tt.setCentroid(centroid);\n\n\t\t\t\t//see where to put this centroid\n\t\t\t\tif (t.getParentTriangle() == null)\n\t\t\t\t\tcentroidPositions.add(centroid);\n\t\t\t\telse{\n\t\t\t\t\tPoint2D parentCentroid = t.getParentTriangle().getCentroid();\n\t\t\t\t\tint parentIndex = centroidPositions.indexOf(parentCentroid);\n\t\t\t\t\tif (t.isBeforeParent())\n\t\t\t\t\t\tcentroidPositions.add(parentIndex, centroid);\n\t\t\t\t\telse\n\t\t\t\t\t\tcentroidPositions.add(parentIndex + 1, centroid);\n\t\t\t\t}\n\n\n\t\t\t\tLine parallelTo = Calc.lineThroughTwoPoints(t.getA(), t.getB());\n\t\t\t\tLine parallelLine = Calc.parallelLineThroughPoint(parallelTo, centroid);\n\t\t\t\tList<Triangle> nextLevelTriangls = trianglesLevelsMap.get(level + 1);\n\t\t\t\tTriangle t1, t2;\n\n\t\t\t\tif (nextLevelTriangls == null){\n\t\t\t\t\tnextLevelTriangls = new ArrayList<Triangle>();\n\t\t\t\t\ttrianglesLevelsMap.put(level + 1, nextLevelTriangls);\n\t\t\t\t}\n\n\t\t\t\tif (level == 1){\n\t\t\t\t\tLine l1 = Calc.lineThroughTwoPoints(t.getA(), t.getC()); //vi and v\n\t\t\t\t\tPoint2D intersection1 = Calc.intersectionOfLines(l1, parallelLine);\n\t\t\t\t\tLine l2 = Calc.lineThroughTwoPoints(t.getB(), t.getC()); //vi+1 and v\n\t\t\t\t\tPoint2D intersection2 = Calc.intersectionOfLines(l2, parallelLine);\n\t\t\t\t\tt1 = new Triangle(t.getA(), intersection1, centroid);\n\t\t\t\t\tt2 = new Triangle(t.getB(), intersection2, centroid);\n\t\t\t\t\tt1.setParentTriangle(t);\n\t\t\t\t\tt2.setParentTriangle(t);\n\n\t\t\t\t\t//to get the right order\n\t\t\t\t\t//before parent states if this centroid should be used before the parent's one\n\t\t\t\t\t//out of the two newly formed triangles, one goes before the parent's centroid, one after \n\t\t\t\t\tif (!reverse){\n\t\t\t\t\t\tt1.setBeforeParent(false);\n\t\t\t\t\t\tt2.setBeforeParent(true);\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tt1.setBeforeParent(true);\n\t\t\t\t\t\tt2.setBeforeParent(false);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse{\n\n\t\t\t\t\t//TODO \n\t\t\t\t\t//check if the apices of the triangles are correctly picked\n\t\t\t\t\t//and is set before parent OK\n\t\t\t\t\t//should anything else be checked?\n\t\t\t\t\t//a test case with more than 3 vertices to be positioned as apices\n\t\t\t\t\t//should be created \n\n\n\t\t\t\t\t//for the side which has two points on the parallel line\n\t\t\t\t\t//take the new point as the intersection with the median\n\t\t\t\t\t//with that line, new centroid, old centroid\n\t\t\t\t\t//for the other one, draw new parallel line\n\t\t\t\t\t//form the triangle taking intersection with the appropriate triangle side\n\t\t\t\t\t//one old vertex and new centroid\n\n\t\t\t\t\t//each triangle should be formed in the way such that\n\t\t\t\t\t//b and c are on the same parallel line\n\t\t\t\t\t//a is the remaining apex\n\t\t\t\t\tLine parallelSide = Calc.lineThroughTwoPoints(t.getB(), t.getC());\n\t\t\t\t\tLine median = Calc.lineThroughTwoPoints(t.getA(), centroid);\n\t\t\t\t\tPoint2D intersection1 = Calc.intersectionOfLines(parallelSide, median);\n\t\t\t\t\tt1 = new Triangle(centroid, intersection1, t.getC());\n\t\t\t\t\tt1.setParentTriangle(t);\n\n\t\t\t\t\t//the side that doesn't have C \n\t\t\t\t\tLine intersectionSide = Calc.lineThroughTwoPoints(t.getA(), t.getB());\n\t\t\t\t\tPoint2D intersection = Calc.intersectionOfLines(parallelLine, intersectionSide);\n\t\t\t\t\tt2 = new Triangle(t.getA(), intersection, centroid);\n\t\t\t\t\tt2.setParentTriangle(t);\n\n\t\t\t\t\tt1.setBeforeParent(true);\n\t\t\t\t\tt2.setBeforeParent(false);\n\t\t\t\t}\n\n\t\t\t\tlevel ++;\n\t\t\t\tnextLevelTriangls.add(t1);\n\t\t\t\tnextLevelTriangls.add(t2);\n\t\t\t}\n\t\t}\n\n\n\t\t//while loop over, now position vertices\n\t\tint verticesSize = vertices.size();\n\t\tint centroidPositionsSize = centroidPositions.size();\n\t\tfor (int i = 0; i < vertices.size()/2; i++){\n\t\t\tpositions.put(vertices.get(i), centroidPositions.get(i));\n\t\t\tpositions.put(vertices.get(verticesSize - i - 1), centroidPositions.get(centroidPositionsSize - i - 1));\n\t\t}\n\t}", "public Point scaleToGraphCanvasCoords(double x, double y);", "public void setX (int index, int x) { coords[index][0] = x; }", "void ldraw_addVertexWithUV(double x, double y, double z, double u, double v) {\n lDraw.a(x, y, z, u, v);\n }", "private ArrayList<Integer> cnvPoints2IndexList(ArrayList<Point> pts) {\n int width = layoutPanel.getLayoutSize().width;\n ArrayList<Integer> newNList = new ArrayList<Integer>();\n\n Iterator<Point> iter = pts.iterator();\n while (iter.hasNext()) {\n Point pt = iter.next();\n newNList.add(pt.y * width + pt.x);\n }\n Collections.sort(newNList);\n\n return newNList;\n }", "public Piste(int x, int y){\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t}", "public void verificaCoordenada() {\r\n\t\tif (X < 0) {\r\n\t\t\tX = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tX = X % Const.TAMANHO;\r\n\t\t}\r\n\r\n\t\tif (Y < 0) {\r\n\t\t\tY = Const.TAMANHO - 1;\r\n\t\t} else {\r\n\t\t\tY = Y % Const.TAMANHO;\r\n\t\t}\r\n\t}", "protected abstract List<Integer> getNeighbors(int vertex);", "public Point2D setPoint(int i, double x, double y);", "public Vertix(int name, int x, int y) {\n this.name = name;\n this.x = x;\n this.y = y;\n }", "Vec(double x, double y) {\n this.x = x; this.y = y;\n }", "@Override\n\tpublic double[] getCoordinates() {\n\t\tdouble[] coordinates = { x1, y2, x2, y1 };\n\t\treturn coordinates;\n\t}", "public Piste(int x, int y, int ala_x, int ala_y, int yla_x, int yla_y){\n\t\tthis.x=x;\n\t\tthis.y=y;\n\t\tthis.minX=ala_x;\n\t\tthis.minY=ala_y;\n\t\tthis.maxX=yla_x;\n\t\tthis.maxY=yla_y;\n\t}", "void buildCity(VertexLocation vert);", "public static Vec2[] verticesOfPath2D(Path2D.Float p, int n) {\n Vec2[] result = new Vec2[n];\n float[] values = new float[6];\n PathIterator pi = p.getPathIterator(null);\n int i = 0;\n while (!pi.isDone() && i < n) {\n int type = pi.currentSegment(values);\n if (type == PathIterator.SEG_LINETO) {\n result[i++] = new Vec2(values[0], values[1]);\n }\n pi.next();\n }\n return result;\n }", "protected PersonajeGrafico(int v, int x, int y){\r\n\t\tthis.velocidad=v;\r\n\t\tpos = new Point(ancho * x, alto * y);\r\n\t\tsprites = new Vector<Vector<Icon>>();\r\n\t\t\t\t\r\n\t}", "void to_screen_2D_x_y_i (double horiz, double vert) {\n double rp = Math.toRadians(craft_pitch); \n double space_x = scalex*(offx+horiz);\n double space_y = scaley*(offy+vert);\n space_x = space_x*Math.cos(rp) - space_y*Math.sin(rp); \n space_y = space_x*Math.sin(rp) + space_y*Math.cos(rp); \n\n x[xy_i] = screen_off_x + toInt(space_x);\n y[xy_i++] = screen_off_y + toInt(space_y);\n }", "Iterable<Long> vertices() {\n //YOUR CODE HERE, this currently returns only an empty list.\n return world.keySet();\n }", "public int y (int index) { return coords[index][1]; }", "public void getNeighbors(){\n // North \n if(this.row - this.value>=0){\n this.north = adjacentcyList[((this.row - this.value)*col_size)+col];\n }\n // South\n if(this.row + value<row_size){\n this.south = adjacentcyList[((this.row+this.value)*row_size)+col];\n }\n // East\n if(this.col + this.value<col_size){\n this.east = adjacentcyList[((this.col+this.value)+(this.row)*(col_size))];\n }\n // West\n if(this.col - this.value>=0){\n this.west = adjacentcyList[((this.row*col_size)+(this.col - this.value))];\n }\n }", "private String coords(int x, int y) {\n return String.format(\"%d,%d\", x, y);\n }", "public static int[] convertToCartesian(GeoCoords coords) {\n int[] res = new int[2];\n\n res[1] = latToX(coords.getLat());\n res[0] = lonToY(coords.getLon());\n\n return res;\n }", "public void difXY() {\n for(int ix=1;ix<cols-1;ix++) {\n for(int iy=1;iy<rows-1;iy++) {\n int ig=iy*cols+ix;\n // compute x difference\n dxr[ig] = par[ig+1]-par[ig-1]; // red\n //dxg[ig] = pag[ig+1]-pag[ig-1]; // green\n //dxb[ig] = pab[ig+1]-pab[ig-1]; // blue\n // compute y difference\n dyr[ig] = par[ig+cols]-par[ig-cols]; // red\n //dyg[ig] = pag[ig+cols]-pag[ig-cols]; // green\n //dyb[ig] = pab[ig+cols]-pab[ig-cols]; // blue\n }\n }\n }", "public Coordinates(int x, int y){\n this.x = x;\n this.y = y;\n }", "private float[] getCoords(double x, double y) {\n\t\tdouble angleXY = x * increment;\n\t\tdouble angleZ = y * increment;\n\t\tint zCoord = (int) (EYE_RADIUS * Math.cos(Math.toRadians(angleZ)));\n\t\t\n\t\tdouble ZRadiusScale = EYE_RADIUS * Math.sin(Math.toRadians(angleZ));\n\t\t\n\t\t\n\t\tint xCoord = (int) (ZRadiusScale*Math.cos(Math.toRadians(angleXY)));\n\t\tint yCoord = (int) (ZRadiusScale*Math.sin(Math.toRadians(angleXY)));\n\t\t\n\n\t\t\n\t\tfloat addMe[] = {xCoord, yCoord, zCoord};\n\t\t\n\t\treturn addMe;\n\t}", "public void setSijainti(int x, int y) {\n this.x = x;\n this.y = y;\n }", "public Quadrato (double ax, double ay, double bx, double by, double cx, double cy, double dx, double dy) {\n\t\tsuper(ax, ay, bx, by, cx, cy, dx, dy);\n\t\tif (!this.verificaValidita()) {\n\t\t\tthis.valido = false;\n\t\tfor (int i = 0 ; i < 4 ; i++) { \n\t\t\tthis.vertici[i].impostaX(Double.NaN);\n\t\t\tthis.vertici[i].impostaY(Double.NaN);\n\t\t\t}\n\t\t}\n\t}", "public static int[] vector(int x, int y) { return new int[] {x,y}; }", "private int xyToOneD(int row, int col) {\n return ((row - 1) * grid.length) + (col - 1);\n }", "private Set<Coordinate> addNeighbours(boolean locked, int x, int y) {\n\t\treturn Arrays.asList(\n\t\t\taddNeighbour(locked,x-2,y), //vecino arriba\n\t\t\taddNeighbour(locked,x+2,y), //vecino abajo\n\t\t\taddNeighbour(locked,x,y-2), //vecino izquierda\n\t\t\taddNeighbour(locked,x,y+2)\t//vecino derecha\n\t\t).stream().filter(predicate->predicate!=null).collect(Collectors.toSet());\n\t}", "public Coordinate getCoordenadasActuales() ;", "public double[] getCoordinates() {\n \tdouble []coords = this.position.getCoordinates();\n \tthis.currentX = coords[0];\n \tthis.currentY = coords[1];\n \treturn coords;\n }", "public void setCoordenada(int linha, int coluna) {\n this.elementos[0] = linha;\n this.elementos[1] = coluna;\n }", "public int[] getCoordinates() {\n\t\t\n\t\tint[] a=new int[2];\n\t\ta[0]=xCoord;\n\t\ta[1]=yCoord;\n\t\t\n\t\treturn a;\n\t\t\n\t}", "public double[] getHitGeoCoord();", "List<V> getVertexList();", "public abstract void updateVertices();", "public void buildVerticies(){\n\t\tfor(Entry<HexLocation, TerrainHex> entry : hexes.entrySet()){\n\t\t\t\n\t\t\tVertexLocation vertLoc1 = new VertexLocation(entry.getKey(), VertexDirection.NorthWest);\n\t\t\tVertex v1 = new Vertex(vertLoc1);\n\t\t\tverticies.put(vertLoc1, v1);\n\t\t\t\n\t\t\tVertexLocation vertLoc2 = new VertexLocation(entry.getKey(), VertexDirection.NorthEast);\n\t\t\tVertex v2 = new Vertex(vertLoc2);\n\t\t\tverticies.put(vertLoc2, v2);\n\t\t\t\n\t\t\tVertexLocation vertLoc3 = new VertexLocation(entry.getKey(), VertexDirection.East);\n\t\t\tVertex v3 = new Vertex(vertLoc3);\n\t\t\tverticies.put(vertLoc3, v3);\n\t\t\t\n\t\t\tVertexLocation vertLoc4 = new VertexLocation(entry.getKey(), VertexDirection.SouthEast);\n\t\t\tVertex v4 = new Vertex(vertLoc4);\n\t\t\tverticies.put(vertLoc4, v4);\n\t\t\t\n\t\t\tVertexLocation vertLoc5 = new VertexLocation(entry.getKey(), VertexDirection.SouthWest);\n\t\t\tVertex v5 = new Vertex(vertLoc5);\n\t\t\tverticies.put(vertLoc5, v5);\n\t\t\t\n\t\t\tVertexLocation vertLoc6 = new VertexLocation(entry.getKey(), VertexDirection.West);\n\t\t\tVertex v6 = new Vertex(vertLoc6);\n\t\t\tverticies.put(vertLoc6, v6);\n\t\t\t\n\t\t\t\n\t\t}\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn \"Coord[\" + this.x0 + \",\" + this.y0 + \"]\";\n\t}", "public void translate(double x, double y) {\n\n\t\tfor (Point point: verts) {\n\n\t\t\tpoint.translate(x,y);\n\t\t}\n\n\t}", "void setVertices(int vertices);", "public void setVertices(int[] value) {\n SWIGTYPE_p_int v = Converter.convertToSWIGTYPE_p_int(value);\n RecastJNI.rcContour_verts_set(swigCPtr, this, SWIGTYPE_p_int.getCPtr(v));\n }", "public Point getGridCoordinates(){\n try {\n return (new Point(x / MapManager.getMapTileWidth(), y / MapManager.getMapTileHeight()));\n } catch (Exception e){\n System.out.print(\"Error while getting grid coordinates.\");\n throw e;\n }\n }", "Collection<Point> getAllCoordinates();", "public void setVertices(){\n\t\tvertices = new ArrayList<V>();\n\t\tfor (E e : edges){\n\t\t\tV v1 = e.getOrigin();\n\t\t\tV v2 = e.getDestination();\n\t\t\tif (!vertices.contains(v1))\n\t\t\t\tvertices.add(v1);\n\t\t\tif (!vertices.contains(v2))\n\t\t\t\tvertices.add(v2);\n\t\t}\n\t}", "public void getSeriesForPoints(){\n\n int lenght = cluster_polygon_coordinates.length;\n\n x_latitude = new Number[lenght];\n y_longitude = new Number[lenght];\n\n //x_latitude[lenght-1] = cluster_polygon_coordinates[0].x;\n //y_longitude[lenght-1] = cluster_polygon_coordinates[0].y;\n for (int i=0;i<lenght;i++) {\n\n x_latitude[i] = cluster_polygon_coordinates[i].x;\n y_longitude[i] = cluster_polygon_coordinates[i].y;\n// Log.d(TAG, Double.toString(cluster_polygon_coordinates[i].x));\n// Log.d(TAG, Double.toString(cluster_polygon_coordinates[i].y));\n// Log.d(TAG, Double.toString(cluster_polygon_coordinates[i].z));\n }\n\n }", "public List<Integer> ghostLocation(int Ghostx, int Ghosty){\n\n ghostLocay.add(Ghostx);\n ghostLocay.add(Ghosty);\n\n return ghostLocay;\n }", "private static ImmutableList<WorldCoord> generateVertexList()\r\n {\n\t return ShapeReader.getWorldCoordsFromResource(RESOURCE);\r\n }", "public Integer[] getCoordenada() {\n return this.elementos.clone();\n }", "public void orientation(Double ...coords);", "protected int coordinateToVertex(Coordinates coordinates) {\n return mapSize * (mapSize - 1) - coordinates.getY() * mapSize + coordinates.getX();\n\t}", "long getCoordinates();", "long getCoordinates();", "public void drawPolygon (int xC, int yC, int xP, int yP,int ribs, Graphics g){\r\n \r\n \tint n = ribs; \r\n \t//delta keep the the original delta , this size of delta will increase in delta size each time.\r\n \tdouble delta = (2* Math.PI)/ n;\r\n \tdouble deltaTemp = delta;\r\n \t//List of Points that I keep during n rotation.\r\n \tList <Point> points; \r\n \tfloat x,y,newX,newY;\r\n \t//First Sliding\r\n \tx = xP - xC;\r\n \ty = yP - yC;\r\n \tnewX = x; \t\r\n \tnewY = y; \t\r\n \tList <Point> vertexs = new ArrayList();\r\n \t//Follow delta angle rotation n times and write a list of vertices to vertexs list.\r\n \tfor (int i = 0; i < n ; i++)\r\n \t{\r\n \t\tnewX = (int) ((x*Math.cos(delta) - y*Math.sin(delta)));\r\n \t\tnewY = (int) ((x*Math.sin(delta) + y*Math.cos(delta))); \r\n \t\tvertexs.add(new Point(Math.round(newX),Math.round(newY))); \t\r\n \t\tSystem.out.println(vertexs.get(i).x+\",\"+vertexs.get(i).y);\r\n \t\tdelta = delta + deltaTemp;\r\n \t}\r\n \t//Sliding back\r\n \tfor (int i = 0; i < vertexs.size(); i++ ){\r\n \t\tvertexs.get(i).x = (int) (vertexs.get(i).getX() + xC);\r\n \t\tvertexs.get(i).y = (int) (vertexs.get(i).getY() + yC);\r\n \t\tg.drawRect(vertexs.get(i).x, vertexs.get(i).y ,1,1);\r\n \t}\r\n \t//draw line between the list of the points we got.\r\n \tfor (int z = 0 ; z < vertexs.size(); z++){\r\n \t\tif (z == vertexs.size()-1)\r\n \t\t\tdrawLine((int) Math.round(vertexs.get(z).getX()), (int)(vertexs.get(z).getY()),(int)(vertexs.get(0).getX()), (int)(vertexs.get(0).getY()),g);\r\n \t\telse\r\n \t\t\tdrawLine((int)(vertexs.get(z).getX()), (int)(vertexs.get(z).getY()),(int)(vertexs.get(z+1).getX()), (int)(vertexs.get(z+1).getY()),g);\r\n\r\n \t\t}\r\n \t\r\n }", "public int getCoord(int i) {\r\n return coords[i-1];\r\n }", "public int getCoordinates(int i) {\n return this.coordinates[i];\n }" ]
[ "0.61802876", "0.6107801", "0.5902164", "0.5892266", "0.58008313", "0.5792626", "0.57871974", "0.5766748", "0.5756035", "0.57456774", "0.56651753", "0.56523776", "0.56387866", "0.56295514", "0.5620278", "0.56158084", "0.56102395", "0.56075376", "0.5585956", "0.5555271", "0.55522203", "0.5541402", "0.5539722", "0.55162674", "0.5500177", "0.5470045", "0.5452544", "0.5452289", "0.54443765", "0.54402363", "0.54358506", "0.54299855", "0.5429216", "0.5424391", "0.54036915", "0.53981256", "0.53880376", "0.5351131", "0.5345112", "0.5318402", "0.5315508", "0.5301664", "0.53006345", "0.5299244", "0.52878", "0.5283158", "0.52764547", "0.5272024", "0.52685714", "0.52560866", "0.5255967", "0.5255263", "0.52530223", "0.52497", "0.52440387", "0.52373445", "0.5235164", "0.52229923", "0.5220134", "0.5218065", "0.5216635", "0.5201005", "0.51998115", "0.5197817", "0.51949865", "0.5194323", "0.5192792", "0.51827025", "0.5174517", "0.51684475", "0.51634634", "0.5162846", "0.51445395", "0.51403654", "0.5138169", "0.51267076", "0.5120235", "0.51198554", "0.51182926", "0.51177907", "0.5116571", "0.5110018", "0.51099557", "0.5107646", "0.51054907", "0.51041937", "0.5100028", "0.50934255", "0.5092207", "0.50845265", "0.50834274", "0.50824", "0.50762665", "0.50762457", "0.50735945", "0.50721693", "0.50721693", "0.5070229", "0.50674015", "0.50599706" ]
0.5910367
2
C++ TO JAVA CONVERTER TODO TASK: The memory management function 'malloc' has no equivalent in Java:
public static int Main() { s = (String)malloc(100000 * (Character.SIZE / Byte.SIZE)); int[] count = new int[26]; int[] p = new int[26]; int n; char cc; char key = '-'; int min = 100001; int i; String tempVar = ConsoleInput.scanfRead(); if (tempVar != null) { n = Integer.parseInt(tempVar); } String tempVar2 = ConsoleInput.scanfRead(null, 1); if (tempVar2 != null) { cc = tempVar2.charAt(0); } while (n-- != 0) { s = new Scanner(System.in).nextLine(); for (i = 0;i < 26;i++) { count[i] = 0; p[i] = 100001; } for (i = 0;i < s.length();i++) { count[*(s.Substring(i)) - 'a']++; if (p[*(s.Substring(i)) - 'a'] > i) { p[*(s.Substring(i)) - 'a'] = i; } } key = '-'; min = 100001; for (i = 0;i < 26;i++) { if (count[i] == 1 && p[i] < min) { key = 'a' + i; min = p[i]; } } if (key == '-') { System.out.print("no\n"); } else { System.out.printf("%c\n",key); } } return 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static native ByteBuffer createJni(long[] nativeData, int width, int height);", "private static native long create_0();", "public native void free();", "native long nativeBuild(long memoryPool, byte[] schemaBuf, byte[] exprListBuf, byte[] resSchemaBuf, boolean finishReturn)\n throws RuntimeException, IOException;", "public native int getFreeMemory();", "public static native long meCreate2( int pCapacity);", "private native void CreateJNIObj(String device);", "public native int getTotalMemory();", "static native int jniFromBuffers(\n AtomicLong out,\n byte[] oldBuffer,\n int oldLen,\n String oldAsPath,\n byte[] newBuffer,\n int newLen,\n String newAsPath,\n long opts);", "static native void free(long buffer);", "AllocAlternative createAllocAlternative();", "public native int getUsedMemory();", "private native static void free(long instance);", "static native int jniToBuf(Buf out, long patch);", "@Test\n @BenchmarkOptions(benchmarkRounds = 2, warmupRounds = 2)\n /**\n * ?:\n * < 128K use glibc brk\n * > 128K use mmap\n * speed: 100x diff\n *\n * malloc/malloc.c:\n * (DEFAULT_MMAP_THRESHOLD_MAX): For 32-bit platforms define as 512KFor 64-bit platforms as 32MB.\n */\n public void allocateAndFreeMemoryCost260k() {\n for (int i = 0; i < 1000_000; i++) {\n long address = UNSAFE.allocateMemory(SIZE_260k);\n// address++;\n// address--;\n UNSAFE.freeMemory(address);\n }\n }", "public static native long meCreate1( Long pArray);", "static native ByteBuffer loadJni(long[] nativeData, byte[] buffer, int offset, int len);", "protected abstract Object createJvmMemoryMBean(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer);", "static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }", "public static native void release();", "public native void constructor();", "ByteBuffer allocate() {\n\t\tvar b = ByteBuffer.allocate(size).order(LITTLE_ENDIAN);\n\t\tb.putInt(ordinal());\n\t\treturn b;\n\t}", "public void testPhysicalMemoryEqualJvmAllocation() {\n String jvmOptions = \"-Xmx1024M -XX:MaxPermSize=128M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setPhysicalMemory(1207959552);\n jvmRun.doAnalysis();\n Assert.assertFalse(Analysis.ERROR_PHYSICAL_MEMORY + \" analysis incorrectly identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_PHYSICAL_MEMORY));\n }", "public static void Main()\n\t{\n\t\tdouble[] p = new double[100];\n\t\tint m;\n\t\tint n;\n\t\tint i;\n\t\tint j;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tm = Integer.parseInt(tempVar);\n\t\t}\n\t\tfor (i = 0;i < m;i++)\n\t\t{\n//C++ TO JAVA CONVERTER TODO TASK: The memory management function 'malloc' has no equivalent in Java:\n\t\t\tp[i] = (double)malloc(100 * (Double.SIZE / Byte.SIZE));\n\t\t}\n\t\tfor (i = 0;i < m;i++)\n\t\t{\n\t\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\t\tif (tempVar2 != null)\n\t\t\t{\n\t\t\t\tn = Integer.parseInt(tempVar2);\n\t\t\t}\n\t\t\tfor (j = 0;j < n;j++)\n\t\t\t{\n\t\t\t\tString tempVar3 = ConsoleInput.scanfRead();\n\t\t\t\tif (tempVar3 != null)\n\t\t\t\t{\n\t\t\t\t\tp[i] + j = tempVar3;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"%.5lf\\n\",s(p[i], n));\n\n\t\t}\n\t}", "static protected int[] allocMemory(int size)\n\t{\n\t\tint m[] = new int[size];\n\t\tArrays.fill(m,(byte)0xff);\n\t\treturn m;\n\t}", "public abstract int allocLocal(String type);", "abstract void allocateBuffers();", "private static native long init();", "private static native long create_0(int mode);", "public static native long meCreate1( Long pV1, Long pV2);", "public static native long meCreate2( Long pV);", "static native int jniFromBlobAndBuffer(\n AtomicLong out,\n long oldBlob,\n String oldAsPath,\n byte[] buffer,\n int bufferLen,\n String bufferAsPath,\n long opts);", "long getMemory();", "long getMemory();", "public native static void jnikillMira();", "public static native void free(long handle);", "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}", "public static void main(String[] args) {\n\t\tUnsafe unsafe = getUnsafe();\r\n\t\ttry {\r\n\t\tSystem.out.println(\"分配内存\");\r\n\t\tlong base = unsafe.allocateMemory(_1GB);\r\n\t\tSystem.in.read();\r\n\t\tSystem.out.println(\"释放内存\");\r\n\t\tunsafe.freeMemory(base);\r\n\t\tSystem.in.read();\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}", "public void MIPSme()\n {\n sir_MIPS_a_lot.getInstance().heap_allocate(size, targetReg);\n }", "private native String native_init();", "native long nativeBuildWithFinish(long memoryPool, byte[] schemaBuf, byte[] exprListBuf, byte[] finishExprListBuf)\n throws RuntimeException, IOException;", "protected JvmMemoryMeta createJvmMemoryMetaNode(String paramString1, String paramString2, ObjectName paramObjectName, MBeanServer paramMBeanServer) {\n/* 541 */ return new JvmMemoryMeta(this, this.objectserver);\n/* */ }", "public native void allocateImage(ImageInfo imageInfo);", "public void testPhysicalMemoryLessThanJvmAllocation() {\n String jvmOptions = \"-Xmx1024M -XX:MaxPermSize=128M\";\n GcManager gcManager = new GcManager();\n Jvm jvm = new Jvm(jvmOptions, null);\n JvmRun jvmRun = gcManager.getJvmRun(jvm, Constants.DEFAULT_BOTTLENECK_THROUGHPUT_THRESHOLD);\n jvmRun.getJvm().setPhysicalMemory(1207959551);\n jvmRun.doAnalysis();\n Assert.assertTrue(Analysis.ERROR_PHYSICAL_MEMORY + \" analysis not identified.\",\n jvmRun.getAnalysis().contains(Analysis.ERROR_PHYSICAL_MEMORY));\n }", "int getLocalOnHeapSize();", "public native long memoryConsumed();", "private static void doMemoryReleases() {\n\r\n OptimizedJavaRecognizer.releaseMemory();\r\n FastJavaLexer.clear();\r\n }", "byte[] allocateArray(int initialCapacity)\r\n/* 53: */ {\r\n/* 54: 87 */ return new byte[initialCapacity];\r\n/* 55: */ }", "private static native void init();", "private native static long init(long avi);", "private static ByteBuffer createNativeByteBuffer(int length) {\n ByteBuffer bb = ByteBuffer.allocateDirect(length);\n // use the device hardware's native byte order\n bb.order(ByteOrder.nativeOrder());\n return bb;\n }", "public void createPointers() {\n int matrixByteSize = rows * cols * Sizeof.DOUBLE;\n\n deviceMPtr = new CUdeviceptr();\n cuMemAlloc(deviceMPtr, matrixByteSize);\n cuMemcpyHtoD(deviceMPtr, Pointer.to(matrix), matrixByteSize);\n\n matrixPointer = Pointer.to(deviceMPtr);\n rowPointer = Pointer.to(new int[]{rows});\n columnPointer = Pointer.to(new int[]{cols});\n sizePointer = Pointer.to(new int[]{rows * cols});\n }", "long getLocalOnHeapSizeInBytes();", "private MemoryTest() {\r\n }", "SMALL createSMALL();", "void alloc() {\n\t\tother = new int[symbol.length + 2];\n\t}", "private native void finalize(long pointer);", "private native int nativeAdd(int x, int y);", "protected abstract SharedMemory make_infos();", "private native String native_finalize();", "@Override\n\tpublic void run(VirtualMachine vm) {\n\t\tint bytesToAllocCount=vm.popNumberFromStack(this.isExtended());\n\n\n\n\t\tfor(int i=0;i<bytesToAllocCount;i++)\n\t\t{\n\t\t\tvm.getHeap().add(new NumericByteCodeToken((byte)0));\n\t\t}\n\t}", "static native int jniFromBlobs(\n AtomicLong out,\n long oldBlob,\n String oldAsPath,\n long newBlob,\n String newAsPath,\n long opts);", "public static native long meCreate1( Long pDataType);", "Memory() {}", "public long free(long size);", "public byte[] allocBase64Buffer()\n/* */ {\n/* 175 */ _verifyAlloc(this._base64Buffer);\n/* 176 */ return this._base64Buffer = this._bufferRecycler.allocByteBuffer(3);\n/* */ }", "public long memory() {\n\treturn 0;\n }", "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 }", "long memoryUnused();", "private native void detectJNI(byte[] data, int height, int width, int[] nMarker, int[] idList, float[] cornerList);", "public static IntBuffer createIntBuffer(int size) {\n/* 477 */ ByteBuffer temp = ByteBuffer.allocateDirect(4 * size);\n/* 478 */ temp.order(ByteOrder.nativeOrder());\n/* */ \n/* 480 */ return temp.asIntBuffer();\n/* */ }", "public void freeMemory() {\n native_freeMemory();\n }", "public void createPointersNoBackingArray() {\n int matrixByteSize = rows * cols * Sizeof.DOUBLE;\n\n deviceMPtr = new CUdeviceptr();\n cuMemAlloc(deviceMPtr, matrixByteSize);\n\n matrixPointer = Pointer.to(deviceMPtr);\n rowPointer = Pointer.to(new int[]{rows});\n columnPointer = Pointer.to(new int[]{cols});\n sizePointer = Pointer.to(new int[]{rows * cols});\n }", "private native void nativeFinalize();", "public static void initializeMetrics()\n {\n // Get the Java runtime\n Runtime runtime = Runtime.getRuntime();\n // Run the garbage collector\n runtime.gc();\n \tstartingMemory = runtime.totalMemory() - runtime.freeMemory();\n }", "public byte[] allocWriteEncodingBuffer(int minSize)\n/* */ {\n/* 167 */ _verifyAlloc(this._writeEncodingBuffer);\n/* 168 */ return this._writeEncodingBuffer = this._bufferRecycler.allocByteBuffer(1, minSize);\n/* */ }", "public static short javaStringToJackStringUsingVM(java.lang.String javaStr) \r\n\t\t\tthrows TerminateVMProgramThrowable {\r\n\t\tif (javaStr.length() == 0) {\r\n\t\t\treturn callFunction(\"String.new\", 1);\r\n\t\t}\r\n\t\tshort jackStr = callFunction(\"String.new\", javaStr.length());\r\n StringCharacterIterator i = new StringCharacterIterator(javaStr);\r\n for (i.first(); i.current() != CharacterIterator.DONE; i.next()) {\r\n\t\t\tcallFunction(\"String.appendChar\", jackStr, i.current());\r\n\t\t}\r\n\t\treturn jackStr;\r\n\t}", "public IBuffer newBuffer();", "int getLocalOffHeapSize();", "public NativePrimitiveArrayStateManagerImpl()\n {\n }", "JavaStatement createJavaStatement();", "long getMemswap();", "private native boolean initFromJNI(int port);", "public ByteBufAllocator alloc()\r\n/* 66: */ {\r\n/* 67:101 */ return this.alloc;\r\n/* 68: */ }", "BSTR SysAllocString(String sz);", "private static native long nativeInit(long otherMultisetPtr);", "public native void answer();", "public static void Main()\n\t{\n\t\tvoid shuru(int * p,int len);\n\t\tvoid paixu(int * p,int len);\n\t\tvoid hebing(int * p1,int * p2);\n\t\tvoid shuchu(int * p,int,int);\n\t\tint m;\n\t\tint n;\n\t\tString tempVar = ConsoleInput.scanfRead();\n\t\tif (tempVar != null)\n\t\t{\n\t\t\tm = Integer.parseInt(tempVar);\n\t\t}\n\t\tString tempVar2 = ConsoleInput.scanfRead();\n\t\tif (tempVar2 != null)\n\t\t{\n\t\t\tn = Integer.parseInt(tempVar2);\n\t\t}\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p1,*p2;\n\t\tint p1;\n//C++ TO JAVA CONVERTER TODO TASK: Java does not have an equivalent to pointers to value types:\n//ORIGINAL LINE: int *p2;\n\t\tint p2;\n\t\tint[] a = {'\\0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tint[] b = {'\\0', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};\n\t\tp1 = a;\n\t\tp2 = b;\n\ttangible.RefObject<Integer> tempRef_p1 = new tangible.RefObject<Integer>(p1);\n\t\tshuru(tempRef_p1, m);\n\t\tp1 = tempRef_p1.argValue;\n\ttangible.RefObject<Integer> tempRef_p2 = new tangible.RefObject<Integer>(p2);\n\t\tshuru(tempRef_p2, n);\n\t\tp2 = tempRef_p2.argValue;\n\ttangible.RefObject<Integer> tempRef_p12 = new tangible.RefObject<Integer>(p1);\n\t\tpaixu(tempRef_p12, m);\n\t\tp1 = tempRef_p12.argValue;\n\ttangible.RefObject<Integer> tempRef_p22 = new tangible.RefObject<Integer>(p2);\n\t\tpaixu(tempRef_p22, n);\n\t\tp2 = tempRef_p22.argValue;\n\ttangible.RefObject<Integer> tempRef_p13 = new tangible.RefObject<Integer>(p1);\n\ttangible.RefObject<Integer> tempRef_p23 = new tangible.RefObject<Integer>(p2);\n\t\thebing(tempRef_p13, tempRef_p23);\n\t\tp2 = tempRef_p23.argValue;\n\t\tp1 = tempRef_p13.argValue;\n\ttangible.RefObject<Integer> tempRef_p14 = new tangible.RefObject<Integer>(p1);\n\t\tshuchu(tempRef_p14, m, n);\n\t\tp1 = tempRef_p14.argValue;\n\t}", "protected abstract NativeSQLStatement createNativeBufferStatement(Double distance);", "public boolean isInNativeHeap();", "public abstract long estimateMemorySize();", "long getLocalOffHeapSizeInBytes();", "native long nativeSpill(long nativeHandler, long size, boolean callBySelf) throws RuntimeException;", "public MemoryByteArrayOutputStream() {\n\t\tthis(4096, 65536);\n\t}", "private short allocObject() {\n\t\tshort result;\n\t\tint i;\n\t\tfor (i = 0; i < objects.size()\n\t\t\t\t&& ((Boolean) objects.get(i)).booleanValue(); i++)\n\t\t\t;\n\t\tif (i == objects.size()) {\n\t\t\tresult = (short) i;\n\t\t\tobjects.add(Boolean.TRUE);\n\t\t} else {\n\t\t\tresult = (short) i;\n\t\t\tobjects.set(i, Boolean.TRUE);\n\t\t}\n\t\treturn result;\n\t}", "MemoryPartition createMemoryPartition();", "protected native void init();", "private native String native_clinit();", "ByteBuf allocate(ByteBufAllocator alloc);", "public static void main(String[] var0) {\n\n// for(int i =0;i<10;i++){\n// Object object = new byte[2*1024*1024];\n// map.put(i+\"\",object);\n// }\n // map =null;\n System.gc();\n// System.out.println(\"打印出了最大可用堆内存\");\n// System.out.println(\"-Xmx\" + Runtime.getRuntime().maxMemory() / 1024L / 1024L + \"M\");\n }", "private native void DestroyJNIObj();" ]
[ "0.61463696", "0.6045089", "0.58197165", "0.57982457", "0.5788396", "0.57501405", "0.5702887", "0.5692929", "0.56722736", "0.56709605", "0.56665313", "0.565217", "0.55862916", "0.5568957", "0.5497142", "0.5460307", "0.5448766", "0.54220074", "0.54186565", "0.5403222", "0.53869426", "0.5358659", "0.53540814", "0.53477085", "0.5339639", "0.5338839", "0.53358257", "0.5332101", "0.53250945", "0.52787054", "0.52773196", "0.5275668", "0.5273004", "0.5273004", "0.5263323", "0.5247191", "0.52456933", "0.5235827", "0.52306944", "0.5226945", "0.5224991", "0.521141", "0.5182194", "0.51523477", "0.5149702", "0.5149409", "0.51248425", "0.51215744", "0.51213336", "0.51169294", "0.51020193", "0.51012224", "0.50823027", "0.5068604", "0.5057334", "0.5053718", "0.50198287", "0.5007279", "0.5005856", "0.49979284", "0.49898767", "0.49874276", "0.49867302", "0.4982612", "0.497602", "0.4966255", "0.4961806", "0.49582088", "0.49566078", "0.49279082", "0.4914051", "0.49079278", "0.49033985", "0.49014324", "0.48914704", "0.48859486", "0.48858434", "0.4875591", "0.48720098", "0.48667467", "0.48631558", "0.48573825", "0.48568553", "0.4856188", "0.48440325", "0.48269975", "0.47806427", "0.47671264", "0.47611338", "0.47514603", "0.4746638", "0.4745509", "0.4743566", "0.474052", "0.4740249", "0.47384465", "0.4738059", "0.4736051", "0.4734466", "0.47265482", "0.47221822" ]
0.0
-1
Creates output from provided pointer. Internal method, use with care.
public static Output from(Pointer handle) { if (handle == null) return null; return new Output(handle); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Output createOutput();", "public void createOutput() {\n\t\tsetOutput(new Output());\n\t}", "protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }", "public abstract Object getOutput ();", "private interface OutputBuffer {\n String getName();\n\n String getOutput();\n\n PrintWriter getPrintWriter();\n }", "OutputDecl createOutputDecl();", "private Output() {}", "public PrintWriter createOutput(String name) {\n if (name == null) {\n throw new NullPointerException();\n }\n\n synchronized (TestResult.this) {\n synchronized (this) {\n checkMutable();\n\n OutputBuffer b = new WritableOutputBuffer(name);\n buffers = DynamicArray.append(buffers, b);\n\n notifyCreatedOutput(this, name);\n\n return b.getPrintWriter();\n }\n }\n }", "public static Output out(Object byValue) {\n\t\treturn new Output(byValue);\n\t}", "InOut createInOut();", "OutputPort createOutputPort();", "public Object getOutputTarget()\n/* */ {\n/* 101 */ return this._writer;\n/* */ }", "public void streamOutput(String type,Object currentObj);", "void createdOutput(TestResult tr, Section section, String outputName);", "public static Output out(String byTypeURIorPLACEHOLDER) {\n\t\treturn new Output(byTypeURIorPLACEHOLDER);\n\t}", "public void generateOutputLine(String outputLine, int index);", "java.lang.String getOutput();", "public TestOut getOutput() {\n\treturn(output);\n }", "String getOutput();", "OutputDeviations createOutputDeviations();", "@Override\n\tpublic byte[] generateOutput() {\n\t\tthis.plainOut = new PlainOutputConversion();\n\n\t\tString output = \"\";\n\t\ttry {\n\t\t\toutput = constructTextfromXML(this.rootXML, true);\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\treturn output.getBytes();\n\t}", "protected abstract void _write(DataOutput output) throws IOException;", "public interface ObjectOutput extends DataOutput, AutoCloseable {\n /**\n * Write an object to the underlying storage or stream. The class that implements this interface\n * defines how the object is written.\n *\n * @param obj the object to be written\n * @exception IOException Any of the usual Input/Output related exceptions.\n */\n public void writeObject(Object obj) throws IOException;\n\n /**\n * Writes a byte. This method will block until the byte is actually written.\n * \n * @param b the byte\n * @exception IOException If an I/O error has occurred.\n */\n public void write(int b) throws IOException;\n\n /**\n * Writes an array of bytes. This method will block until the bytes are actually written.\n * \n * @param b the data to be written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[]) throws IOException;\n\n /**\n * Writes a sub array of bytes.\n * \n * @param b the data to be written\n * @param off the start offset in the data\n * @param len the number of bytes that are written\n * @exception IOException If an I/O error has occurred.\n */\n public void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Flushes the stream. This will write any buffered output bytes.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void flush() throws IOException;\n\n /**\n * Closes the stream. This method must be called to release any resources associated with the\n * stream.\n * \n * @exception IOException If an I/O error has occurred.\n */\n public void close() throws IOException;\n}", "NativeLong wkhtmltoimage_get_output(PointerByReference converter, PointerByReference charPtrPtr1);", "public JsonGenerator createGenerator(DataOutput out)\n/* */ throws IOException\n/* */ {\n/* 1181 */ return createGenerator(_createDataOutputWrapper(out), JsonEncoding.UTF8);\n/* */ }", "void output(OUT out) throws IOException;", "public Output getOutput() {\n\t\treturn output;\n\t}", "public Output getOutput() {\n\t\treturn OutputFactory.of(outputFile.toPath());\n\t}", "OutputDeviation createOutputDeviation();", "static void generate(Proc proc, PrintWriter outData)\r\n {\r\n for (int i=0; i < proc.lines.size(); i++)\r\n {\r\n //String l = (String) proc.lines.elementAt(i);\r\n Line line = \tproc.lines.elementAt(i);\r\n outData.println(line.line);\r\n }\r\n outData.println();\r\n }", "void requestOutput();", "@Override\n public void emitOutput() {\n }", "public long getWritePointer();", "public static OutputQueue createOutputThread() {\n\tfinal OutputQueue queue = new OutputQueue();\n\tThread t = new Thread() {\n\t public void run() {\n\t\tUtterance utterance = null;\n\t\tdo {\n\t\t utterance = queue.pend();\n\t\t if (utterance != null) {\n\t\t\tVoice voice = utterance.getVoice();\n\t\t\tvoice.log(\"OUT: \" + utterance.getString(\"input_text\"));\n voice.outputUtterance(utterance, voice.threadTimer);\n\t\t }\n\t\t} while (utterance != null);\n\t }\n\t};\n\tt.setDaemon(true);\n\tt.start();\n\treturn queue;\n }", "public abstract LogPointer getPointer() throws IOException;", "public abstract LogPointer getPointer() throws IOException;", "void drawOutput(String output);", "public T caseOutputInterface(OutputInterface object)\n {\n return null;\n }", "@Override\n\tpublic void GetOut() {\n\t\t\n\t}", "public String constructOut(Stream strm) {\n\t\tString str = \"\";\n\t\tstr += buildSelectOut(strm) + \"\\r\\n\";\n\t\tif(strm.getReturn().getiTriple().getTriple().size() > 1){\n\t\t\tstr += buildUnionOut(strm) + \"\\r\\n\";\n\t\t}\n\t\treturn str;\n\t}", "@Override\n public Pointer addressPointer() {\n val tempPtr = new PagedPointer(ptrDataBuffer.primaryBuffer());\n\n switch (this.type) {\n case DOUBLE: return tempPtr.asDoublePointer();\n case FLOAT: return tempPtr.asFloatPointer();\n case UINT16:\n case SHORT:\n case BFLOAT16:\n case HALF: return tempPtr.asShortPointer();\n case UINT32:\n case INT: return tempPtr.asIntPointer();\n case UBYTE:\n case BYTE: return tempPtr.asBytePointer();\n case UINT64:\n case LONG: return tempPtr.asLongPointer();\n case BOOL: return tempPtr.asBoolPointer();\n default: return tempPtr.asBytePointer();\n }\n }", "TemplateOutputStream getOutput();", "public static void generate(byte[] data, int offset, int count, PrintStream output) {\n byte[] tempBuffer = new byte[count];\n System.arraycopy(data, offset, tempBuffer, 0, count);\n generate(SparseStream.fromStream(new MemoryStream(tempBuffer, false), Ownership.None), output);\n }", "public String getOutput() {\n myLock.lock();\n try {\n return myOutput.toString();\n }\n finally {\n myLock.unlock();\n }\n }", "private Output initChainOutput(Output finalOutput) {\n\n if (chain.length == 0) {\n return finalOutput;\n } else {\n return newStage(finalOutput, chain.length - 1);\n }\n }", "public Object getCallOutput() {\n\t\treturn null;\n\t}", "public JsonGenerator createGenerator(DataOutput out, JsonEncoding enc)\n/* */ throws IOException\n/* */ {\n/* 1169 */ return createGenerator(_createDataOutputWrapper(out), enc);\n/* */ }", "Output(Res r){\n this.r = r;\n }", "void generateContent(OutputStream output) throws Exception;", "public Entry output();", "public void setOutput(String output) { this.output = output; }", "@Override\n public IndexOutput createOutput(String name, IOContext context) throws IOException {\n ensureOpen();\n return new RedisOutputStream(name, getInputOutputStream());\n }", "public void beginOutput() {\n this.currentState = states.OUTPUT;\n this.buildOutStack();\n this.setOutputMode(0);\n }", "static void print (Object output){\r\n \t\tSystem.out.println(output);\r\n \t}", "public Output(Input input)\n {\n outputHelper = new OutputHelper();\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n add(outputHelper);\n setSize(Constants.WIDTH, Constants.HEIGHT);\n setVisible(true);\n addMouseListener(input);\n addMouseMotionListener(input);\n addKeyListener(input);\n }", "public String getOutput() {\n return output;\n }", "@Override\n\t\t\tpublic Result createOutput(String ns, String file)\n\t\t\t\t\tthrows IOException {\n\t\t\t\tStreamResult res = new StreamResult(writer);\n\t\t\t\tres.setSystemId(\"no-id\");\n\t\t\t\treturn res;\n\t\t\t}", "public interface OutputAccess {\n\tpublic void connectPlayer(final OutputCommand outputCommand);\n\n\tpublic void releasePlayer();\n}", "public int getOutputPositionIncrement () { return 1; }", "@Override\n public Object getData() {\n return new String(outputData);\n }", "public ATOutput () throws CGException {\n vdm_init_ATOutput();\n }", "public void executeOUT(){\n\t\tint asciiVal = mRegisters[0].getValue();\n\t\tchar toPrint = (char)asciiVal;\n\t\tSystem.out.print(toPrint);\n\t}", "public interface Output {\n void writeAction(int transactionId, int actionId, int transactionRunCount);\n\n void writeWait(int transactionId, int actionId, int transactionRunCount);\n\n void writeTransactionRestart(int transactionId, int transactionRunCount);\n\n void writeFreeText(String s);\n\n void finish(BPlusTree tree, Order order);\n}", "INPUT createINPUT();", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-09-03 14:59:52.264 -0400\", hash_original_method = \"994F669A59E4B3A0EE398298B336F810\", hash_generated_method = \"2BEECC6B96D4108E92CF5063E98986E9\")\n \npublic ProxyOutputStream(OutputStream proxy) {\r\n super(proxy);\r\n // the proxy is stored in a protected superclass variable named 'out'\r\n }", "abstract public Buffer createBuffer();", "@Test\n public void testConstruction() {\n System.out.println(\"testConstruction\");\n OutputLiteralDataDescription desc = new OutputLiteralDataDescription();\n desc.setIdentifier(\"aabb\");\n desc.setTitle(\"aabb\");\n desc.setAbstract(\"aabb's abstract\");\n desc.setType(\"xs:string\");\n \n OutputDescriptionType description = desc.toOutputDescription();\n OutputLiteralDataDescription desc2 = new OutputLiteralDataDescription(description);\n assertEquals(desc, desc2);\n }", "public DLListWithOutput()\n\t{\n\t\tsuper();\n\t}", "public String getOutput() {\r\n return innerStream.getString();\r\n }", "@Override\n\tpublic JavaType getOutputType(TypeFactory typeFactory) {\n\t\treturn null;\n\t}", "private final void _writeNull()\n/* */ throws IOException\n/* */ {\n/* 1610 */ if (this._outputTail + 4 >= this._outputEnd) {\n/* 1611 */ _flushBuffer();\n/* */ }\n/* 1613 */ int ptr = this._outputTail;\n/* 1614 */ char[] buf = this._outputBuffer;\n/* 1615 */ buf[ptr] = 'n';\n/* 1616 */ buf[(++ptr)] = 'u';\n/* 1617 */ buf[(++ptr)] = 'l';\n/* 1618 */ buf[(++ptr)] = 'l';\n/* 1619 */ this._outputTail = (ptr + 1);\n/* */ }", "public String getOutput(String name) {\n if (name == null) {\n throw new NullPointerException();\n }\n\n synchronized (TestResult.this) {\n synchronized (this) {\n OutputBuffer b = findOutputBuffer(name);\n return b == null ? null : b.getOutput();\n }\n }\n }", "public String getOutput() {\n return output.toString();\n }", "public abstract T output(int i);", "public interface OutputStreamFactory {\n\n /**\n * Create an output stream for file location.\n * String that represents file location should be relative path, '/' is a delimiter.\n *\n * @param location sting that contains relative file location\n *\n * @return new stream instance\n */\n OutputStream createStream(String location);\n}", "public static void setCreatedCallback(final OutputCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_created_cb(new handle_callback() {\n\n\t\t\tpublic boolean callback(Pointer handle) {\n\t\t\t\treturn cb.onCreated(Output.from(handle));\n\t\t\t}\n\t\t});\n\t}", "public Element getOutput(){\n\t\treturn output;\n\t}", "public Output<T> output() {\n return output;\n }", "public IBuffer newBuffer();", "@Override\n\tvoid output() {\n\t\t\n\t}", "@Override\r\n\tpublic XmlDataStruct getOutputStruct()\r\n\t{\n\t\treturn null;\r\n\t}", "public String getOutputString()\n\t{\n\t\treturn outputString;\n\t}", "public void processOutput() {\n\n\t}", "void registerOutputConnector(String name, OutputConnector out);", "protected final ByteSink getOutput(String name) {\n try {\n if (name.equals(\"-\")) {\n return new StandardOutputSink();\n } else {\n File file = new File(name);\n if (file.isDirectory()) {\n throw new IOException(name); // TODO Message? Exception?\n } else if (file.exists() && !file.canWrite()) {\n throw new IOException(name); // TODO Message? Exception?\n } else {\n return Files.asByteSink(file);\n }\n }\n } catch (IOException e) {\n throw new UncheckedIOException(e);\n }\n }", "private void encodePointer(Encoder encoder, Pointer type, AddressSpace spc, TypeDef typeDef,\n\t\t\tint size) throws IOException {\n\t\tencoder.openElement(ELEM_TYPE);\n\t\tif (typeDef == null) {\n\t\t\tencoder.writeString(ATTRIB_NAME, \"\");\n\t\t}\n\t\telse {\n\t\t\tencodeNameIdAttributes(encoder, typeDef);\t// Use the typedef name and id\n\t\t}\n\t\tencoder.writeString(ATTRIB_METATYPE, \"ptr\");\n\t\tint ptrLen = type.getLength();\n\t\tif (ptrLen <= 0) {\n\t\t\tptrLen = size;\n\t\t}\n\t\tencoder.writeSignedInteger(ATTRIB_SIZE, ptrLen);\n\t\tif (pointerWordSize != 1) {\n\t\t\tencoder.writeUnsignedInteger(ATTRIB_WORDSIZE, pointerWordSize);\n\t\t}\n\t\tif (spc != null) {\n\t\t\tencoder.writeSpace(ATTRIB_SPACE, spc);\n\t\t}\n\t\tDataType ptrto = type.getDataType();\n\n\t\tif (ptrto != null && ptrto.getDataTypeManager() != progDataTypes) {\n\t\t\tptrto = ptrto.clone(progDataTypes);\n\t\t}\n\n\t\tif (ptrto == null) {\n\t\t\tencodeTypeRef(encoder, DefaultDataType.dataType, 1);\n\t\t}\n\t\telse if (ptrto instanceof AbstractStringDataType) {\n\t\t\tif ((ptrto instanceof StringDataType) || (type instanceof TerminatedStringDataType)) {\t// Convert pointer to string\n\t\t\t\tencodeCharTypeRef(encoder, dataOrganization.getCharSize()); // to pointer to char\n\t\t\t}\n\t\t\telse if (ptrto instanceof StringUTF8DataType) {\t// Convert pointer to string\n\t\t\t\t// TODO: Need to ensure that UTF8 decoding applies\n\t\t\t\tencodeCharTypeRef(encoder, 1); // to pointer to char\n\t\t\t}\n\t\t\telse if ((ptrto instanceof UnicodeDataType) ||\n\t\t\t\t(ptrto instanceof TerminatedUnicodeDataType)) {\n\t\t\t\tencodeCharTypeRef(encoder, 2);\n\t\t\t}\n\t\t\telse if ((ptrto instanceof Unicode32DataType) ||\n\t\t\t\t(ptrto instanceof TerminatedUnicode32DataType)) {\n\t\t\t\tencodeCharTypeRef(encoder, 4);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tencodeOpaqueString(encoder, ptrto, 16384);\n\t\t\t}\n\t\t}\n\t\telse if (ptrto instanceof FunctionDefinition) {\n\t\t\t// FunctionDefinition may have size of -1, do not translate to undefined\n\t\t\tencodeTypeRef(encoder, ptrto, ptrto.getLength());\n\t\t}\n\t\telse if (ptrto.getLength() < 0 && !(ptrto instanceof FunctionDefinition)) {\n\t\t\tencodeTypeRef(encoder, Undefined1DataType.dataType, 1);\n\t\t}\n\t\telse {\n\t\t\tencodeTypeRef(encoder, ptrto, ptrto.getLength());\n\t\t}\n\t\tencoder.closeElement(ELEM_TYPE);\n\t}", "public interface Output {\n\n void putString(String string);\n\n // Basic Data Types\n /**\n * Write number\n *\n * @param num\n * Number\n */\n void writeNumber(Number num);\n\n /**\n * Write boolean\n *\n * @param bol\n * Boolean\n */\n void writeBoolean(Boolean bol);\n\n /**\n * Write string\n *\n * @param string\n * String\n */\n void writeString(String string);\n\n /**\n * Write date\n *\n * @param date\n * Date\n */\n void writeDate(Date date);\n\n void writeNull();\n\n /**\n * Write array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Collection<?> array);\n\n /**\n * Write array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Object[] array);\n\n /**\n * Write primitive array.\n *\n * @param array\n * Array to write\n */\n void writeArray(Object array);\n\n /**\n * Write map.\n *\n * @param map\n * Map to write\n */\n void writeMap(Map<Object, Object> map);\n\n /**\n * Write array as map.\n *\n * @param array\n * Array to write\n */\n void writeMap(Collection<?> array);\n\n /**\n * Write object.\n *\n * @param object\n * Object to write\n */\n void writeObject(Object object);\n\n /**\n * Write map as object.\n *\n * @param map\n * Map to write\n */\n void writeObject(Map<Object, Object> map);\n\n /**\n * Write recordset.\n *\n * @param recordset\n * Recordset to write\n */\n void writeRecordSet(RecordSet recordset);\n\n /**\n * Write XML object\n *\n * @param xml\n * XML document\n */\n void writeXML(Document xml);\n\n /**\n * Write ByteArray object (AMF3 only).\n *\n * @param array\n * object to write\n */\n void writeByteArray(ByteArray array);\n\n /**\n * Write a Vector&lt;int&gt;.\n *\n * @param vector\n * vector\n */\n void writeVectorInt(Vector<Integer> vector);\n\n /**\n * Write a Vector&lt;uint&gt;.\n *\n * @param vector\n * vector\n */\n void writeVectorUInt(Vector<Long> vector);\n\n /**\n * Write a Vector&lt;Number&gt;.\n *\n * @param vector\n * vector\n */\n void writeVectorNumber(Vector<Double> vector);\n\n /**\n * Write a Vector&lt;Object&gt;.\n *\n * @param vector\n * vector\n */\n void writeVectorObject(Vector<Object> vector);\n\n /**\n * Write reference to complex data type\n *\n * @param obj\n * Referenced object\n */\n void writeReference(Object obj);\n\n /**\n * Whether object is custom\n *\n * @param custom\n * Object\n * @return true if object is of user type, false otherwise\n */\n boolean isCustom(Object custom);\n\n /**\n * Write custom (user) object\n *\n * @param custom\n * Custom data type object\n */\n void writeCustom(Object custom);\n\n /**\n * Clear references\n */\n void clearReferences();\n}", "public String createPlayer(OutputStreamWriter newOut, InputStreamReader newIn) {\r\n String name;\r\n int hitPoints = 100;\r\n Item slot1 = items.get(0);\r\n Item slot2 = null;\r\n int gold = 0;\r\n Room room = dungeon.getRoom(dungeon.getStartRoom());\r\n\r\n OutputStreamWriter ostream = newOut;\r\n BufferedWriter out = new BufferedWriter(ostream);\r\n\r\n InputStreamReader instream = newIn;\r\n BufferedReader in = new BufferedReader(instream);\r\n try {\r\n out.write(\"Enter your name: \");\r\n out.newLine();\r\n out.flush();\r\n name = in.readLine();\r\n player = new Player(name, hitPoints, slot1, slot2, gold, room);\r\n } catch (IOException ex) {\r\n Logger.getLogger(Game.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n return null;\r\n }", "WritableOutputBuffer(String name) {\n super(TestResult.this);\n if (name == null) {\n throw new NullPointerException();\n }\n\n this.name = name;\n output = new StringBuffer();\n pw = new LockedWriter(this, TestResult.this);\n }", "public StringBuilder target() { return out; }", "protected Device createOutputDevice(HttpServletRequest request,\n HttpServletResponse response,\n ExternalizedResource extInfo) \n throws IOException {\n return new ServletDevice(response.getOutputStream());\n }", "String getOutputName();", "public CPointer<SpaceText_Runtime> __io__addressof() {\n\t\treturn new CPointer<SpaceText_Runtime>(__io__address, new Class[]{SpaceText_Runtime.class}, __io__block, __io__blockTable);\n\t}", "protected boolean handleOutput(ByteBuffer buffer, int offset, int size, long presentationTimeUs) {\n/* 108 */ if (this.mAudioOutTempBuf.length < size) {\n/* 109 */ this.mAudioOutTempBuf = new byte[size];\n/* */ }\n/* 111 */ buffer.position(offset);\n/* 112 */ buffer.get(this.mAudioOutTempBuf, 0, size);\n/* 113 */ buffer.clear();\n/* 114 */ if (this.mAudioTrack != null)\n/* 115 */ this.mAudioTrack.write(this.mAudioOutTempBuf, 0, size); \n/* 116 */ return true;\n/* */ }", "public interface Outputable {\n void onOutput(String output, int id);\n}", "public void generateOutputData() {\n\t\tArrayList<String> inputDataArray = new ArrayList<String>();\n\t\tif (removeDuplicates) {\n\t\t\tinputDataArray = removeDuplicates();\n\t\t} else {\n\t\t\tinputDataArray = inputDataValues;\n\t\t}\n\t\t\n\t\toutputDataValues.clear();\n\t\tString outputDataValue = \"\";\n\t\tif (inputDataArray.isEmpty()) {\n\t\t\toutputDataValue = getOutputDataValue(\"\");\n\t\t\toutputDataValues.add(outputDataValue);\n\t\t} else {\n\t\t\tfor (String inputDataValue: inputDataArray) {\n\t\t\t\toutputDataValue = getOutputDataValue(inputDataValue);\n\t\t\t\toutputDataValues.add(outputDataValue);\n\t\t\t}\n\t\t}\n\t}", "public abstract PrintStream getOutputStream();", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "public void addOutputNode(Node outputNode) {\n\t\tthis.outputNode = outputNode;\n\t}", "Output1(Res1 r){\n this.r = r;\n }" ]
[ "0.6722793", "0.6104073", "0.60138196", "0.59233624", "0.5699619", "0.56726396", "0.56708896", "0.56153184", "0.55164313", "0.5483789", "0.5394011", "0.5340211", "0.52885413", "0.52878416", "0.5269737", "0.52452433", "0.5213439", "0.5193913", "0.5184107", "0.50914705", "0.50872576", "0.5075097", "0.50397956", "0.5016708", "0.49850407", "0.497625", "0.49705738", "0.4969311", "0.49665892", "0.4965417", "0.49466947", "0.49280918", "0.49275523", "0.49271122", "0.49105582", "0.49105582", "0.48808232", "0.48695582", "0.48632306", "0.48537877", "0.48369557", "0.4803084", "0.47844246", "0.47788382", "0.47696224", "0.47645208", "0.47630244", "0.4747425", "0.47451723", "0.47421378", "0.47327736", "0.47290978", "0.4721238", "0.47040075", "0.46914703", "0.46862486", "0.46855187", "0.46834707", "0.46830338", "0.4682527", "0.46774086", "0.46763968", "0.46634698", "0.46586835", "0.46519983", "0.46480456", "0.46454576", "0.46439686", "0.46420565", "0.46413198", "0.46353325", "0.4630251", "0.46293005", "0.46258652", "0.46190003", "0.4604369", "0.45990267", "0.45987204", "0.45984283", "0.4595874", "0.45875615", "0.45755902", "0.45717335", "0.456886", "0.45572633", "0.45489216", "0.45477533", "0.45451188", "0.45448697", "0.4537358", "0.45370018", "0.45349693", "0.4532819", "0.45271298", "0.452576", "0.45242536", "0.4517305", "0.4509377", "0.45088273", "0.45064542" ]
0.66993165
1
/ Callbacks Sets callback to be called when output is created.
public static void setCreatedCallback(final OutputCreatedCallback cb) { Assert.assertNotNull(cb); JWLC.nativeHandler().wlc_set_output_created_cb(new handle_callback() { public boolean callback(Pointer handle) { return cb.onCreated(Output.from(handle)); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void callback() {\n }", "public void callback();", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "@Override\n\tpublic void callback() {\n\t}", "public void setCallback(String callback) {\r\n this.callback = callback;\r\n }", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "public static void setContextCreatedCallback(\n\t\t\tfinal OutputContextCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_context_created_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onContextCreated(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public static void setDestroyedCallback(final OutputDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_destroyed_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public CallbackHandler() {\r\n // TODO Auto-generated constructor stub\r\n }", "public void setResponseCallback(ApiCallback callback) {\n responseCallback = callback;\n }", "@Override\n\tpublic void callback(Object o) {}", "public LowLevelNetworkHandler setCallback(Callback callback);", "protected void setErrorCallback (boolean setCallback) {\n TipcCb pError = null;\n String dest = AppConstants.STATUS_SUBJECT;\n try {\n \tif (setCallback) {\n if (!srv.getSubjectSubscribe(dest)) {\n \t ProcessErrorMessage evRef = new ProcessErrorMessage();\n \t pError = srv.addProcessCb(evRef, dest, srv); \n \t if (pError == null) {\n \t Tut.exitFailure(\"WARNING. Couldn't register Svt Error subject callback!\\n\");\n \t }\n \t srv.setSubjectSubscribe(dest, true);\n \t warn(\"INFO. Subscribed to \" + dest, Color.green);\n \n \t addObserver(errorObserver);\n \t }\n \t} \n else {\n \t if (srv.getSubjectSubscribe(dest)) {\n \t srv.setSubjectSubscribe(dest, false);\n \t warn(\"INFO. Unsubscribed from \" + dest, Color.red);\n \n \t deleteObserver(errorObserver);\n \t }\n \t}\n } \n catch (TipcException Tipe) {\n \tTut.warning(Tipe);\n } \n }", "@Override\r\n\tpublic void onOutput(OutputEvent arg0) {\n\t\toutput = arg0.getMsg();\r\n\t}", "public void executer(Callback callback){\n exec();\n if(callback != null){\n System.out.println(\" \" +\n \"[ Callback : callback() : 调用回调函数 ]\");\n callback.call();\n }\n }", "public void setCallback(boolean callback) {\n this.callback = callback;\n }", "@Override\n public void emitOutput() {\n }", "public static void setResolutionCallback(\n\t\t\tfinal OutputResolutionCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_resolution_cb(new output_resolution_callback() {\n\n\t\t\t\t\tpublic void callback(Pointer handle, wlc_size fromSize,\n\t\t\t\t\t\t\twlc_size toSize) {\n\t\t\t\t\t\tcb.onResolution(Output.from(handle),\n\t\t\t\t\t\t\t\tSize.from(fromSize), Size.from(toSize));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "void additionalCreationCallback() {\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void callback(int position) {\n\n\t\t\t\t\t\t\t\t\t}", "public void setupCallback(MouseBehaviorCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "public interface Callback {\n }", "public interface Callback {\n void onExpanded(boolean z);\n\n void onInteraction();\n\n void onPrioritySettings();\n }", "public void handle(Callback[] callbacks) throws IOException, UnsupportedCallbackException {\r\n for (int i = 0; i < callbacks.length; i++) {\r\n if (callbacks[i] instanceof TextOutputCallback) {\r\n } else if (callbacks[i] instanceof NameCallback) {\r\n // prompt the user for a username\r\n NameCallback nc = (NameCallback) callbacks[i];\r\n nc.setName(this.username);\r\n } else if (callbacks[i] instanceof PasswordCallback) {\r\n // prompt the user for sensitive information\r\n PasswordCallback pc = (PasswordCallback) callbacks[i];\r\n pc.setPassword(this.password.toCharArray());\r\n } else {\r\n throw new UnsupportedCallbackException(callbacks[i], \"Unrecognized Callback\");\r\n }\r\n }\r\n }", "public interface IConvertorCallback {\n\t/***\n\t * @param filename Indicates generated file name. \n\t */\n\tvoid notify(String filename);\n}", "void setCallback(IResponseCallback<WalletDataDecl.ListResultTmpl<Response>> cb);", "@Override\n public void registerCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.add(callback);\n }", "public interface CallBackListener\n{\n public void drawbackTexto0(String response);\n}", "public static void setPostRenderCallback(\n\t\t\tfinal OutputPostRenderCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_render_post_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onPostRender(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "protected void javaCallback() {\n\t}", "@Override\n\tpublic void onEvent() {\n\t\tSystem.out.println(\"Performing callback after synchronous task!\");\n\t}", "public final void setErrorCallback(ErrorCallback cb)\n {\n mErrorCallback = cb;\n }", "@Override\n public void onCallBack(int pos) {\n }", "@Override\r\n\tpublic void setViewCallback(ViewCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }", "@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }", "public void setCallback(StringArrayDialogCallback callback) {\n\t\tthis.callback = callback;\n\t}", "public void setOutputReceiver(Consumer<String> receiver) {\n out = receiver;\n }", "public abstract interface WriteCallback\n{\n\tpublic abstract void onSuccess();\n\n\tpublic abstract void onError();\n}", "public Response callback() throws Exception;", "interface Callbacks {\n void pipelineModeChanged(boolean z) throws ;\n\n void requestSent() throws ;\n\n void serverError(int i) throws ;\n }", "public void add( final Callback callback ) {\n\t\tcallbacks.add( callback );\n\t}", "@Override\n\tpublic void createCB(CB cb) {\n\t\t\n\t}", "@Override\n\tpublic void addConsoleOutputListener(IEventHandler listener) {\n\t\t\n\t}", "public Consumer<String> outputHandler() {\n return outputHandler;\n }", "public interface Outputable {\n void onOutput(String output, int id);\n}", "public void onOutputReceived(MoneroOutputWallet output);", "public RecordingDeleter(AsyncCallback callback) {\r\n\t\t\tthis.callback = callback;\r\n\t\t}", "public static void setPreRenderCallback(final OutputPreRenderCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_render_pre_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onPreRender(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "void onCallback(String gekozenWoord);", "public interface ResponseCallback {\r\n\t\t/**\r\n\t\t * Callback invoked when a response is returned by the request\r\n\t\t * @param response The returned response\r\n\t\t */\r\n\t\tpublic void onResponse(Response response) throws Exception;\r\n\t}", "void addUserCallback(UserCallback callback);", "@Override\n public void outputCompletedNotification(String scriptId, OutputStats outputStats) { }", "public interface Callback {\n\t\tvoid onMove(Player player, PlayerMoveEvent event);\n\t\t\n\t\tvoid onTeleport(Player player, PlayerTeleportEvent event);\n\t\t\n\t\tvoid onCombat(Player player);\n\t\t\n\t\tvoid onDeath(Player player);\n\t\t\n\t\tvoid onQuit(Player player);\n\t}", "public void createOutput() {\n\t\tsetOutput(new Output());\n\t}", "void execute(final Callback callback);", "Object run(Callback<String> callback, String input);", "interface CreateNewNetCallback {\n\n /**\n * Method is called after the net was created successfully.\n */\n void onCreateNewNetSuccess();\n\n /**\n * Method is called after something went wrong with creation of new net.\n */\n void onCreateNewNetFailure();\n\n void onApplicationMainPortUsed();\n }", "public interface Callbacks {\n\t\tvoid onExerciseSelected(Exercise exercise);\n\t}", "public CayenneTesterLifecycleManager callback(Consumer<ServerRuntime> callback, CayenneTesterCallbackType type) {\n callbacks.put(callback, type);\n return this;\n }", "public void registerCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null) {\n\t\t\t\tm_callbacks.register(callback);\n\t\t\t\tm_soundManager.progressListenerRegistered();\n\t\t\t}\n\t\t}", "@Override\r\n\t\t\tpublic void onResponse(Call arg0, Response response) throws IOException {\n\t\t\t\tif (response.isSuccessful()) {\r\n\t\t\t\t\tonSuccess(callback, response.body().string());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tonError(callback, response.message());\r\n\t\t\t\t}\r\n\t\t\t}", "public static void setContextDestroyedCallback(\n\t\t\tfinal OutputContextDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_context_destroyed_cb(\n\t\t\t\tnew handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onContextDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public synchronized void generate (Runnable callback) {\n\t\tif (deleteOutputDirectory) deleteAndCreateOutput();\n\n\t\tif (watch) {\n\t\t\tlong start = System.nanoTime();\n\t\t\ttry {\n\t\t\t\tgenerator.generate( (file) -> {\n\t\t\t\t\tLog.info(\"Processed \" + file.getInput().getPath() + \" -> \" + file.getOutput().getPath());\n\t\t\t\t});\n\t\t\t\tcallback.run();\n\t\t\t} catch (Throwable t) {\n\t\t\t\tLog.error(t.getMessage());\n\t\t\t\tLog.debug(\"Exception\", t);\n\t\t\t}\n\n\t\t\tLog.info(\"Generating output took: \" + String.format(\"%.2f\", (System.nanoTime() - start) / 1000000000f) + \" secs\");\n\t\t\tLog.info(\"Watching input directory \" + generator.getInputDirectory().getPath());\n\t\t\ttry {\n\t\t\t\tDirectoryWatcher watcher = DirectoryWatcher.builder()\n\t\t\t\t\t\t.path(generator.getInputDirectory().toPath())\n\t\t\t\t\t\t.listener((event) -> {\n\t\t\t\t\t\t\tlong startInner = System.nanoTime();\n\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\tif (deleteOutputDirectory) deleteAndCreateOutput();\n\t\t\t\t\t\t\t\tgenerator.generate( (file) -> {\n\t\t\t\t\t\t\t\t\tLog.info(\"Processed \" + file.getInput().getPath() + \" -> \" + file.getOutput().getPath());\n\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\tcallback.run();\n\t\t\t\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\t\t\t\tLog.error(t.getMessage());\n\t\t\t\t\t\t\t\tLog.debug(\"Exception\", t);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tLog.info(\"Generating output took: \" + String.format(\"%.2f\", (System.nanoTime() - startInner) / 1000000000f) + \" secs\");\n\t\t\t\t\t\t\tLog.info(\"Watching input directory \" + generator.getInputDirectory().getPath());\n\t\t\t\t\t\t}).build();\n\t\t\t\twatcher.watch();\n\t\t\t} catch (IOException e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t} else {\n\t\t\tgenerator.generate( (file) -> {\n\t\t\t\tlong start = System.nanoTime();\n\t\t\t\tLog.info(\"Processed \" + file.getInput().getPath() + \" -> \" + file.getOutput().getPath());\n\t\t\t\tLog.info(\"Generating output took: \" + String.format(\"%.2f\", (System.nanoTime() - start) / 1000000000f) + \" secs\");\n\t\t\t});\n\t\t\tcallback.run();\n\t\t}\n\t}", "int callback(int num_msg, Pointer msg, Pointer resp, Pointer _ptr);", "void createdOutput(TestResult tr, Section section, String outputName);", "public void setCallback(CarouselCallback callback)\n {\n mController.setCallback(callback);\n }", "void requestOutput();", "public interface CallbackChild {\n void setNums(String nums);\n}", "public void onOutputSpent(MoneroOutputWallet output);", "public interface Callbacks {\n void onStateChanged();\n void onProximityNegative();\n }", "public void setCallback(final CallbackSync callback) {\n\t\tthis.callback = callback;\n\t}", "public Builder outputHandler(Consumer<String> outputHandler) {\n this.outputHandler = outputHandler;\n return this;\n }", "public interface Callbacks {\n void onDrawingSelected(long drawingId);\n void onDrawingCreated(long drawingId);\n void onDrawingRemoved(long drawingId);\n void onDrawingRemoved(ArrayList<Long> drawingIds);\n }", "public abstract void callback(Instruction instruction);", "void addEventRegistrationCallback(EventRegistrationCallback eventRegistrationCallback);", "public interface MyCallbackInterface {\n //its supposed to send the JSON object on request completed\n void onRequestCompleted(JSONArray result);\n }", "public synchronized void addCallback(MaestroNoteCallback callback) {\n callbacks.add(callback);\n }", "public void onTextOutput(String textOutput) {\r\n\t\tconsoleOutput(textOutput);\r\n\t}", "public Installer callback(@NonNull KonamiCodeLayout.Callback callback) {\n this.callback = callback;\n return this;\n }", "public void onWrite(Consumer<TransformResult> hook) {\n this.hook = hook;\n }", "@Override\n\tvoid output() {\n\t\t\n\t}", "public LastInFirstOutStrategy(iQueueCallback<T> callback) {\n super(callback);\n }", "public TrendDetectionOutputListener() {\n\n\t}", "public interface Callbacks {\n public void onCategorySelected(TaskCategory category);\n }", "public void after(OUT out) {\n\n }", "public interface ICallback {\n void sucessed(String s);\n void fialed(String s);\n}", "@Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Calling the finally..callback\n callback.onFinally();\n }", "private synchronized void notifyCreatedOutput(Section section, String outputName) {\n Observer[] observers = observersTable.get(this);\n if (observers != null) {\n for (Observer observer : observers) {\n observer.createdOutput(this, section, outputName);\n }\n }\n }", "public ClientObserver(OutputStream outputToClient){\n try {\n this.outputToClient = new ObjectOutputStream(outputToClient);\n } catch (IOException e) {\n System.out.println(\"Could not create ObjectOutputStream in ClientObserver\");\n }\n }", "public void setProgressCallBack(ProgressEvent progressCallBack)\r\n\t{\r\n\t\tthis.progressCallBack = progressCallBack;\r\n\t}", "protected abstract void instantiateDataForAddNewTemplate (AsyncCallback<DATA> callbackOnSampleCreated) ;", "public interface Callback{\n //Required public empty constructor\n public void buttonClicked();\n }", "public interface Callback {\n\n /**\n * A callback method the user should implement. This method will be called when the send to the server has\n * completed.\n * @param send The results of the call. This send is guaranteed to be completed so none of its methods will block.\n */\n public void onCompletion(RecordSend send);\n}", "@Override\n\t\t\tpublic void commandOutput(int id, String line) {\n\t\t\t\tRootTools.log(\"Command\", \"ID: \" + id + \", \" + line);\n\t\t\t\tMessage message = callback\n\t\t\t\t\t\t.obtainMessage(Constants.OUTPUT_UPDATED);\n\t\t\t\tmessage.obj = line;\n\t\t\t\tcallback.sendMessage(message);\n\n\t\t\t}", "public static void setFocusCallback(final OutputFocusCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_focus_cb(new focus_callback() {\n\n\t\t\tpublic void callback(Pointer handle, boolean focusState) {\n\t\t\t\tcb.onFocusChange(Output.from(handle), focusState);\n\t\t\t}\n\t\t});\n\t}", "public interface Callback {\n public void run(Object result, Exception err, Object rock);\n }", "public interface Callbacks {\n /**\n * Callback for when an item has been selected.\n */\n public void onItemSelected(String summary, String poster);\n }", "public interface CallbackListener {\n\n public abstract void callBack(String returnCode, Object result);\n\n}", "public void setCallbacks(Queue<EventCallback<T>> callbacks) {\n this.callbacks = callbacks;\n }" ]
[ "0.698177", "0.6926367", "0.6610482", "0.65520114", "0.64760756", "0.64661694", "0.6393573", "0.6097477", "0.60649306", "0.60626704", "0.60100156", "0.59598535", "0.59394944", "0.59083825", "0.5878258", "0.58302957", "0.580174", "0.5793744", "0.5789157", "0.5787835", "0.57851297", "0.57685184", "0.5753487", "0.5721924", "0.56940544", "0.568734", "0.56840456", "0.5665934", "0.56282747", "0.56200475", "0.56112295", "0.560749", "0.5607098", "0.5602246", "0.559539", "0.559539", "0.5592231", "0.55597436", "0.55551285", "0.5553509", "0.55496144", "0.5543149", "0.55405354", "0.5537125", "0.5535045", "0.55291915", "0.5516215", "0.5494159", "0.5493556", "0.5491884", "0.5486291", "0.5485437", "0.54835904", "0.5473891", "0.54726744", "0.54698443", "0.54675156", "0.5442112", "0.5427806", "0.54152066", "0.54145813", "0.5409637", "0.5405049", "0.539841", "0.5391544", "0.5384287", "0.538383", "0.5375371", "0.5362532", "0.53612894", "0.5357651", "0.53481835", "0.5343032", "0.53388697", "0.533857", "0.53377306", "0.53374267", "0.53327256", "0.533141", "0.53216785", "0.53154796", "0.5305675", "0.5304217", "0.52990776", "0.52941245", "0.52902395", "0.5289368", "0.5285316", "0.52818555", "0.5279997", "0.5279112", "0.5271576", "0.5269088", "0.52565014", "0.5255239", "0.5253055", "0.52434266", "0.523568", "0.52348864", "0.5231896" ]
0.76116
0
Sets callback to be called when output is destroyed.
public static void setDestroyedCallback(final OutputDestroyedCallback cb) { Assert.assertNotNull(cb); JWLC.nativeHandler() .wlc_set_output_destroyed_cb(new handle_callback_void() { public void callback(Pointer handle) { cb.onDestroyed(Output.from(handle)); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setContextDestroyedCallback(\n\t\t\tfinal OutputContextDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_context_destroyed_cb(\n\t\t\t\tnew handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onContextDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n public void unregisterCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.remove(callback);\n }", "@Override\n\tpublic void removeConsoleOutputListener(IEventHandler listener) {\n\t\t\n\t}", "@Override\n protected void onDestroy() {\n handler.removeCallbacks(run);\n super.onDestroy();\n }", "public static void setCreatedCallback(final OutputCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_created_cb(new handle_callback() {\n\n\t\t\tpublic boolean callback(Pointer handle) {\n\t\t\t\treturn cb.onCreated(Output.from(handle));\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tpublic void registerDestructionCallback(String name, Runnable callback) {\n\n\t}", "@Override\n\tpublic void registerDestructionCallback(String name, Runnable callback)\n\t{\n\t}", "public void destroy() {\n this.mCallback.asBinder().unlinkToDeath(this, 0);\n }", "public void destroy() {\n this.mCallback.asBinder().unlinkToDeath(this, 0);\n }", "void removeOutputListener(TextOutputListener o){\n observers.remove(o);\n }", "public void setCallback(String callback) {\r\n this.callback = callback;\r\n }", "public void setResponseCallback(ApiCallback callback) {\n responseCallback = callback;\n }", "@Override\n public void onDetach() {\n if (callbackManager != null) callbackManager.setActivity(null);\n super.onDetach();\n }", "public void endCallback(){\n inProgress = false;\n desInit();\n }", "public void setConnectionLostCallback(CallbackContext connectionLostCallback) {\n\t\t\tthis.connectionLostCallback = connectionLostCallback;\n\t\t}", "public void unregisterCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null)\n\t\t\t\tm_callbacks.unregister(callback);\n\t\t}", "@Override\n protected void onStop() {\n super.onStop();\n uart.unregisterCallback(this);\n uart.disconnect();\n }", "public void callback() {\n }", "public interface uninit_callback extends Callback {\n\t\tint apply(AVCodecContext avctx);\n\t}", "public void close() {\n this.output = null;\n }", "public RecordingDeleter(AsyncCallback callback) {\r\n\t\t\tthis.callback = callback;\r\n\t\t}", "public synchronized void removeCallback(MaestroNoteCallback callback) {\n callbacks.remove(callback);\n }", "public void removeCallback(EventCallback<T> callback) {\n callbacks.remove(callback);\n }", "public final void setErrorCallback(ErrorCallback cb)\n {\n mErrorCallback = cb;\n }", "@Override\n\tpublic void destroy() {\n\t\tSystem.out.println(\"Passage dans destroy\");\n\t}", "@Override\n protected void unBindTarget() {\n this.mThemeCallback = null;\n }", "public void cleanUp() { listener = null; }", "public void setCallback(boolean callback) {\n this.callback = callback;\n }", "public void removeDisconnectedCallback(OctaveReference listener) {\n\t\tlistenerDisconnected.remove(listener);\n\t}", "public void clearCallbacks() {\n callbacks.clear();\n }", "public void onDestroy() {\n this.eventDelegate.onDestroy();\n super.onDestroy();\n }", "@Override\r\n public void onSessionDestroyed() {\r\n onPlaybackStateChanged(null);\r\n }", "public Chip onClose(Callback callback) {\n this.callback = callback;\n return this;\n }", "@CallSuper\n public void clearSession() {\n callback = null;\n }", "public void onOutputCleared(Window window) {\n\t\t\t\n\t\t\tlinesLayout.clearLines();\n\t\t}", "@Override\n\tprotected void onDestroy() {\n\t\thandler.removeCallbacks(null);\n\t\tMyApplication.Tag = 0;\n\t\tsuper.onDestroy();\n\t}", "public void setCallback(final CallbackSync callback) {\n\t\tthis.callback = callback;\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void callback(Context arg0) {\n\t\t\t\t\t\t\t\tYKPlatform.logout(appContext);\r\n\t\t\t\t\t\t\t\tTypeSDKLogger.d(\"LOGOUT_SUCCESS\");\r\n\t\t\t\t\t\t\t\tTypeSDKNotify_youku notify = new TypeSDKNotify_youku();\r\n\t\t\t\t\t\t\t\tnotify.Logout();\r\n\t\t\t\t\t\t\t}", "@Override\r\n\tpublic void setViewCallback(ViewCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "public synchronized void unregisterCallback(CarHvacEventCallback callback) {\n mCallbacks.remove(callback);\n try {\n List<CarPropertyConfig> configs = getPropertyList();\n for (CarPropertyConfig c : configs) {\n // Register each individual propertyId\n mCarPropertyMgr.unregisterListener(mListenerToBase, c.getPropertyId());\n }\n } catch (Exception e) {\n Log.e(TAG, \"getPropertyList exception \", e);\n }\n if (mCallbacks.isEmpty()) {\n mCarPropertyMgr.unregisterListener(mListenerToBase);\n mListenerToBase = null;\n }\n }", "public void removeConnectedCallback(OctaveReference listener) {\n\t\tlistenerConnected.remove(listener);\n\t}", "@Override\n\tpublic void destroy() {\n\t\t\tSystem.out.println(\"¤˙╗┘fifler\");\n\t}", "public EchoCallbackHandler() {\n this.clientData = null;\n }", "protected void playerQuit(Mage mage, MageDataCallback callback) {\n maps.resend(mage.getName());\n\n mageQuit(mage, callback);\n }", "@Override\n public void onDestroy() {\n this.unregisterReceiver(mReceiver);\n }", "public void removeEnumerateCallback(OctaveReference listener) {\n\t\tlistenerEnumerate.remove(listener);\n\t}", "public void onDestroy() {\n LOG.mo8825d(\"[onDestroy]\");\n super.onDestroy();\n }", "protected void setErrorCallback (boolean setCallback) {\n TipcCb pError = null;\n String dest = AppConstants.STATUS_SUBJECT;\n try {\n \tif (setCallback) {\n if (!srv.getSubjectSubscribe(dest)) {\n \t ProcessErrorMessage evRef = new ProcessErrorMessage();\n \t pError = srv.addProcessCb(evRef, dest, srv); \n \t if (pError == null) {\n \t Tut.exitFailure(\"WARNING. Couldn't register Svt Error subject callback!\\n\");\n \t }\n \t srv.setSubjectSubscribe(dest, true);\n \t warn(\"INFO. Subscribed to \" + dest, Color.green);\n \n \t addObserver(errorObserver);\n \t }\n \t} \n else {\n \t if (srv.getSubjectSubscribe(dest)) {\n \t srv.setSubjectSubscribe(dest, false);\n \t warn(\"INFO. Unsubscribed from \" + dest, Color.red);\n \n \t deleteObserver(errorObserver);\n \t }\n \t}\n } \n catch (TipcException Tipe) {\n \tTut.warning(Tipe);\n } \n }", "@Override\n\tprotected void onDestroy() {\n\t\tSystem.out.println(\"onDestroy\");\n\t}", "@Override\n\tpublic void callback() {\n\t}", "@Override\n\tpublic void onDisposed () {\n\n\t}", "@Override\n\tpublic void onDisposed () {\n\n\t}", "public void onDestroy() {\n super.onDestroy();\n getDelegate().g();\n }", "public void unregisterCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"unregisterCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(null);\n mLocalManager.getEventManager().unregisterCallback(this);\n mLocalManager.getProfileManager().removeServiceListener(this);\n }", "@Override\r\n\tpublic void onOutput(OutputEvent arg0) {\n\t\toutput = arg0.getMsg();\r\n\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tif (wt != null && !wt.isCancelled()) {\r\n\t\t\twt.cancel(true);\r\n\t\t}\r\n\t}", "@Override\n public void destroy() {\n if (mNativeFaviconCallbackProxy == 0) {\n return;\n }\n mTab.removeFaviconCallbackProxy(this);\n try {\n mClient.onDestroyed();\n } catch (RemoteException e) {\n throw new AndroidRuntimeException(e);\n }\n FaviconCallbackProxyJni.get().deleteFaviconCallbackProxy(mNativeFaviconCallbackProxy);\n mNativeFaviconCallbackProxy = 0;\n mClient = null;\n }", "@Override\n protected void onDestroy() {\n Initialization.exit(this);\n super.onDestroy();\n }", "public static void setPostRenderCallback(\n\t\t\tfinal OutputPostRenderCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_render_post_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onPostRender(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void onDestroy();", "public void onDestroy();", "public void onDispose() {\n\n\t}", "@Override\r\n\tpublic void destroy() {\r\n\t\tsuper.destroy(); // Just puts \"destroy\" string in log\r\n\t\t// Put your code here\r\n\t}", "@Override\n public void onError(Throwable t) {\n callback.onError(t);\n //Calling the finally..callback\n callback.onFinally();\n }", "public void setListener(Callback callback) {\n final Callback oldCallback = mCallback;\n if (oldCallback != callback) {\n mCallback = callback;\n\n if (callback == null) {\n // Stop listening for changes now that there IS NOT a listener.\n mContext.getContentResolver().unregisterContentObserver(mContentObserver);\n } else if (oldCallback == null) {\n // Start listening for changes now that there IS a listener.\n final ContentResolver cr = mContext.getContentResolver();\n cr.registerContentObserver(Secure.getUriFor(Secure.TWILIGHT_STATE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_AUTO_MODE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_START_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_END_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n }\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tif (themeHandler!=null) \n\t\t\tthemeHandler.removeCallbacksAndMessages(null);\n\t\tsuper.onDestroy();\n\t}", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy(); // Just puts \"destroy\" string in log\n\t\t// Put your code here\n\t}", "public PFTMXCallbackHandler() {\n this.clientData = null;\n }", "@Override\n\tpublic void destroy() {\n\t\tSystem.out.println(\"destroy\");\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tunregisterReceiver(mReceiver);\r\n\t}", "@Override\r\n public void onCleanup() {\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tunregisterReceiver(mUIReceiver);\r\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tthis.unregisterReceiver(receiver);\n\t}", "@Override\r\n public void onDestroy() {\n\t if (accountChangedReceiver != null) {\r\n\t try {\r\n\t \tunregisterReceiver(accountChangedReceiver);\r\n\t } catch (IllegalArgumentException e) {\r\n\t \t// Nothing to do\r\n\t }\r\n\t }\r\n\r\n // Stop the core\r\n Thread t = new Thread() {\r\n /**\r\n * Processing\r\n */\r\n public void run() {\r\n stopCore();\r\n }\r\n };\r\n t.start();\r\n }", "public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "abstract void onDestroy();", "public void callback();", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tstop();\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n if (barcodeReader != null) {\n // unregister barcode event listener\n barcodeReader.removeBarcodeListener(this);\n // unregister trigger state change listener\n barcodeReader.removeTriggerListener(this);\n // close BarcodeReader to clean up resources.\n // once closed, the object can no longer be used.\n barcodeReader.close();\n }\n }", "public void\t\tremoveUCallbackListener(String tag)\n\t{\n\t\ttab.remove(tag);\n\t}", "public void unregisterCallback(@NonNull Callback callback) {\n if (callback == null) {\n throw new IllegalArgumentException(\"callback must not be null\");\n }\n synchronized (mLock) {\n removeCallbackLocked(callback);\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunregisterReceiver(mReceiver);\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttActivityDisplay.setText(\"On Destroy called\");\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmHandler.removeMessages(0);\n\t\tmHandler.removeMessages(1);\n\t\tmHandler = null;\n\t}", "public void onDispose() {\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t\n\t\tif(mReceiver != null) unregisterReceiver(mReceiver);\n\t}", "@Override\n protected void onDestroy() {\n if (mServiceHelp != null) {\n mServiceHelp.removeOnServiceCallBack();\n }\n\n super.onDestroy();\n }", "@Implementation(minSdk = O)\n protected void unregisterAudioPlaybackCallback(AudioManager.AudioPlaybackCallback cb) {\n audioPlaybackCallbacks.remove(cb);\n }", "protected void setCloseHandler(Consumer<Player> handler) {\n\t\tthis.closeHandler = handler;\n\t}", "public static void destroy() {\n handler = null;\n initialized = false;\n }", "void endSession(@Nullable Callback<ComapiResult<Void>> callback);", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tEventManager.getInstance().removeHandlerListenner(mHandler);\n\t}", "public interface IQuitCallback{\n\n\t\tpublic void onQuitApp();\n\n\t\tpublic void onQuitToMenu();\n\t}", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n protected void onDestroy() {\n unregisterReceiver(mReceiver);\n super.onDestroy();\n }", "@Override\r\n public void onDestroy() {\n mSensorManager.unregisterListener(mShakeDetector);\r\n running = false;\r\n }", "protected void clear() {\n if(callbacks != null) {\n callbacks.clear();\n }\n }" ]
[ "0.69488615", "0.63353395", "0.6216451", "0.61281496", "0.60393614", "0.59959704", "0.5971771", "0.5954759", "0.5954759", "0.5937527", "0.5873356", "0.5866801", "0.5831998", "0.579607", "0.5765817", "0.5756813", "0.57519525", "0.57495713", "0.5712716", "0.57013774", "0.5695128", "0.56858283", "0.56710017", "0.56153417", "0.5610411", "0.55678016", "0.55571634", "0.55495435", "0.54936713", "0.54793215", "0.54760176", "0.5474095", "0.54648334", "0.54558176", "0.5453064", "0.5451323", "0.54503626", "0.5434261", "0.54286027", "0.54160386", "0.54132324", "0.5402887", "0.5401162", "0.5393188", "0.5387752", "0.53832924", "0.5376547", "0.53697777", "0.53595346", "0.5346797", "0.5328215", "0.5328215", "0.5319845", "0.5315477", "0.5312676", "0.5311036", "0.53103757", "0.5309307", "0.53059494", "0.5305735", "0.5305735", "0.5302189", "0.5301744", "0.5301257", "0.52872074", "0.52830875", "0.5282699", "0.527461", "0.5269021", "0.5266594", "0.52636933", "0.52625686", "0.5260469", "0.52604413", "0.5260254", "0.5258703", "0.5251496", "0.5242853", "0.52419496", "0.524165", "0.52296877", "0.5229084", "0.5228219", "0.5226937", "0.52255857", "0.5224821", "0.52175367", "0.52170444", "0.52101594", "0.52086955", "0.52080595", "0.5207637", "0.5201469", "0.52005726", "0.52005726", "0.52005726", "0.52005726", "0.51971644", "0.5194147", "0.5193816" ]
0.79229265
0
Sets callback to be called when output focus is changed.
public static void setFocusCallback(final OutputFocusCallback cb) { Assert.assertNotNull(cb); JWLC.nativeHandler().wlc_set_output_focus_cb(new focus_callback() { public void callback(Pointer handle, boolean focusState) { cb.onFocusChange(Output.from(handle), focusState); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void focus() {\n\t\tJWLC.nativeHandler().wlc_output_focus(this.to());\n\t}", "public final void autoFocus(AutoFocusCallback cb)\n {\n mAutoFocusCallback = cb;\n native_autoFocus();\n }", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n public void setFocus() {\n }", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "public void setFocus() {\n }", "public void setFocus() {\n\t}", "void setFocus( ChatTarget focus );", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\n public void setFocus()\n {\n this.textInput.setFocus();\n }", "public void setFocus();", "public void focus() {}", "@Override\r\n\tpublic void setViewCallback(ViewCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "void setFocus();", "public void setListener(Callback callback) {\n final Callback oldCallback = mCallback;\n if (oldCallback != callback) {\n mCallback = callback;\n\n if (callback == null) {\n // Stop listening for changes now that there IS NOT a listener.\n mContext.getContentResolver().unregisterContentObserver(mContentObserver);\n } else if (oldCallback == null) {\n // Start listening for changes now that there IS a listener.\n final ContentResolver cr = mContext.getContentResolver();\n cr.registerContentObserver(Secure.getUriFor(Secure.TWILIGHT_STATE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_AUTO_MODE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_START_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_END_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n }\n }\n }", "@Override\r\n\tpublic void setFocus() {\r\n\t\tif (getControl() != null)\r\n\t\t\tgetControl().setFocus();\r\n\t}", "public final void setErrorCallback(ErrorCallback cb)\n {\n mErrorCallback = cb;\n }", "@Override\n public void setFocus() {\n if (!modes.get(BCOConstants.F_SHOW_ANALYZER)) {\n if (textViewer != null) {\n textViewer.getTextWidget().setFocus();\n }\n } else {\n if (tableControl != null) {\n tableControl.setFocus();\n }\n }\n }", "@Override\n public void onWindowFocusChanged(boolean hasFocus) {\n }", "public void Focus() {\n }", "public void setCallback(boolean callback) {\n this.callback = callback;\n }", "public void setCallback(String callback) {\r\n this.callback = callback;\r\n }", "public final void setPreviewCallback(PreviewCallback cb) {\n mPreviewCallback = cb;\n setHasPreviewCallback(cb != null);\n }", "@Override\n\tpublic void onWindowFocusChanged(boolean hasFocus) {\n\t\tsuper.onWindowFocusChanged(hasFocus);\n\t}", "public void setCallback(CarouselCallback callback)\n {\n mController.setCallback(callback);\n }", "public void setResponseCallback(ApiCallback callback) {\n responseCallback = callback;\n }", "@Override\n\t\t\tpublic void onAudioFocusChange(int arg0) {\n\t\t\t}", "@Override\n\tpublic void onWindowFocusChanged(boolean hasFocus) {\n\t\ttry {\n\t\t\tsuper.onWindowFocusChanged(hasFocus);\n\t\t} catch (NullPointerException npe) { }\n\t}", "public static void setResolutionCallback(\n\t\t\tfinal OutputResolutionCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_resolution_cb(new output_resolution_callback() {\n\n\t\t\t\t\tpublic void callback(Pointer handle, wlc_size fromSize,\n\t\t\t\t\t\t\twlc_size toSize) {\n\t\t\t\t\t\tcb.onResolution(Output.from(handle),\n\t\t\t\t\t\t\t\tSize.from(fromSize), Size.from(toSize));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void setFocus() {\n \t\tex.setFocus();\n \t}", "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "@Override\n\t\tpublic void addToFocusListener(FocusListener aFocusListener) {\n\n\t\t}", "public void setupCallback(MouseBehaviorCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "public void addKeyCallback(KeyCallback kb) {\r\n\t\tKeyHandler = kb;\r\n\t}", "public void setFocused(boolean focused);", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F gaing\");\t\n\t\t}", "@Override\n public void onWindowFocusChanged(boolean hasWindowFocus) {\n super.onWindowFocusChanged(hasWindowFocus);\n }", "public static void setCreatedCallback(final OutputCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_created_cb(new handle_callback() {\n\n\t\t\tpublic boolean callback(Pointer handle) {\n\t\t\t\treturn cb.onCreated(Output.from(handle));\n\t\t\t}\n\t\t});\n\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}", "public static void setPreRenderCallback(final OutputPreRenderCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_render_pre_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onPreRender(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}", "public void focusGained( FocusEvent fe) \n {\n }", "void addFocus();", "public EditText.OnFocusChangeListener getCampoCPFCNPJFocusListener() {\n return (v, hasFocus) -> {\n if (!hasFocus) {\n setMascara();\n }\n };\n }", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "@Override\n\t\tpublic void focusLost(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F OUTT\");\t\t\n\t\t}", "public void setFocus() {\n\t\tthis.viewer.getControl().setFocus();\n\t}", "void focus();", "void focus();", "@Override\r\n public void onFocusChange(final View aView, final boolean hasFocus) {\n }", "public void setFocus(Control c)\r\n\t{\r\n\tif (_focus != null)\r\n\t\t{\r\n\t\t_controlEvent.type = ControlEvent.FOCUS_OUT;\r\n\t\t_controlEvent.target = _focus;\r\n\t\t_focus.postEvent(_controlEvent);\r\n\t\t}\r\n\t_focus = c;\r\n\tif (c != null)\r\n\t\t{\r\n\t\t_controlEvent.type = ControlEvent.FOCUS_IN;\r\n\t\t_controlEvent.target = c;\r\n\t\tc.postEvent(_controlEvent);\r\n\t\t}\r\n\t}", "public interface IOnFocusListenable {\n\n void onWindowFocusChanged(boolean hasFocus);\n}", "@Override\r\n\t\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\r\n\t\t\t\t\t\t\t}", "public void setCallback(final CallbackSync callback) {\n\t\tthis.callback = callback;\n\t}", "@Override\r\n\tpublic void onWindowFocusChanged(boolean hasFocus) {\n\t\tsuper.onWindowFocusChanged(hasFocus);\r\n\t\tLog.d(\"hasFocus\", String.valueOf(hasFocus));\r\n\t\t//MainActivity.exitHandeler(this, hasFocus);\r\n\t}", "public void setFocus() {\r\n System.out.println(\"TN5250JPart: calling SetSessionFocus.run(): \" + tn5250jPart.getClass().getSimpleName());\r\n SetSessionFocus.run(tabFolderSessions.getSelectionIndex(), -1, tn5250jPart);\r\n }", "@Override\n\tpublic void onFocusChange(View v, boolean hasFocus) {\n\t\t\n\t}", "@Override\n \t\tpublic void onFocusChange(View v, boolean hasFocus) {\n \t\t}", "@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\n public void requestFocus() {\n\tif (term != null) {\n\t //term.requestActive(); // Not implemented yet\n\t // TEMPORARY\n\t // boolean result = term.requestFocusInWindow();\n\t term.requestFocus();\n\t}\n }", "@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public interface AutoFocusCallback\n {\n /**\n * Callback for the camera auto focus.\n * \n * @param success true if focus was successful, false if otherwise\n * @param camera the Camera service object\n */\n void onAutoFocus(boolean success, Camera camera);\n }", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "public void requestInputFocus(){\n\t\tuserInput.requestFocus();\n\t}", "public void setLoginCallback (LoginCallback callback) {\n\t\tloginCallback = callback;\n\t}", "public void setCallback(StringArrayDialogCallback callback) {\n\t\tthis.callback = callback;\n\t}", "protected void doSetFocus() {\n\t\t// Ignore\n\t}", "public void focus() {\n if (toSetFocus != null) {\n toSetFocus.requestFocus();\n } else {\n root.requestFocus();\n toSetFocus = null;\n }\n }", "public void setWorkProcessChanges(WorkProcessChangesHandler callback);", "@Override\n\tpublic void focusLost(FocusEvent arg0) {\n\t\tfocusLost = true;\n\t\t\n\t}" ]
[ "0.6665203", "0.6233407", "0.613314", "0.6124033", "0.6124033", "0.6124033", "0.6124033", "0.6124033", "0.6122688", "0.60975486", "0.60975486", "0.60975486", "0.60975486", "0.6071503", "0.60606176", "0.60300404", "0.6021215", "0.60181284", "0.5992194", "0.5992194", "0.5992194", "0.5992194", "0.5992194", "0.5992194", "0.5992194", "0.59384197", "0.59113175", "0.586292", "0.58318365", "0.58203185", "0.57983756", "0.5794218", "0.57566196", "0.5745259", "0.57177055", "0.5680522", "0.56523055", "0.56420493", "0.56177866", "0.5614898", "0.5602177", "0.5587919", "0.5550123", "0.55105525", "0.5500516", "0.5482924", "0.54812497", "0.54805046", "0.5470556", "0.5464014", "0.5461403", "0.54613364", "0.5458609", "0.54341084", "0.5419577", "0.5419577", "0.5419577", "0.5419577", "0.5419577", "0.5419577", "0.5419577", "0.54094946", "0.54094946", "0.54025126", "0.53977793", "0.53977793", "0.5395696", "0.5395573", "0.5395489", "0.5395332", "0.5395332", "0.5395332", "0.5392848", "0.5387486", "0.5381496", "0.5381496", "0.53800976", "0.53789985", "0.5370829", "0.5358237", "0.53440106", "0.53437537", "0.53375244", "0.5336935", "0.5322443", "0.5306079", "0.52967", "0.5295171", "0.5295171", "0.52865005", "0.5279882", "0.5279882", "0.5279882", "0.52766484", "0.52763385", "0.5262602", "0.5258608", "0.52585727", "0.52350706", "0.5224715" ]
0.8113515
0
Sets callback when resolution of this output is changed.
public static void setResolutionCallback( final OutputResolutionCallback cb) { Assert.assertNotNull(cb); JWLC.nativeHandler() .wlc_set_output_resolution_cb(new output_resolution_callback() { public void callback(Pointer handle, wlc_size fromSize, wlc_size toSize) { cb.onResolution(Output.from(handle), Size.from(fromSize), Size.from(toSize)); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setListener(Callback callback) {\n final Callback oldCallback = mCallback;\n if (oldCallback != callback) {\n mCallback = callback;\n\n if (callback == null) {\n // Stop listening for changes now that there IS NOT a listener.\n mContext.getContentResolver().unregisterContentObserver(mContentObserver);\n } else if (oldCallback == null) {\n // Start listening for changes now that there IS a listener.\n final ContentResolver cr = mContext.getContentResolver();\n cr.registerContentObserver(Secure.getUriFor(Secure.TWILIGHT_STATE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_AUTO_MODE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_START_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_END_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n }\n }\n }", "public void setCallback(String callback) {\r\n this.callback = callback;\r\n }", "public void setCallback(final CallbackSync callback) {\n\t\tthis.callback = callback;\n\t}", "public void setResponseCallback(ApiCallback callback) {\n responseCallback = callback;\n }", "public void setCallback(boolean callback) {\n this.callback = callback;\n }", "public void lambda$setCallback$0$NightDisplayListener(Callback newCallback) {\n Callback oldCallback = this.mCallback;\n if (oldCallback != newCallback) {\n this.mCallback = newCallback;\n if (this.mCallback == null) {\n this.mContext.getContentResolver().unregisterContentObserver(this.mContentObserver);\n } else if (oldCallback == null) {\n ContentResolver cr = this.mContext.getContentResolver();\n cr.registerContentObserver(Settings.Secure.getUriFor(Settings.Secure.NIGHT_DISPLAY_ACTIVATED), false, this.mContentObserver, this.mUserId);\n cr.registerContentObserver(Settings.Secure.getUriFor(Settings.Secure.NIGHT_DISPLAY_AUTO_MODE), false, this.mContentObserver, this.mUserId);\n cr.registerContentObserver(Settings.Secure.getUriFor(Settings.Secure.NIGHT_DISPLAY_CUSTOM_START_TIME), false, this.mContentObserver, this.mUserId);\n cr.registerContentObserver(Settings.Secure.getUriFor(Settings.Secure.NIGHT_DISPLAY_CUSTOM_END_TIME), false, this.mContentObserver, this.mUserId);\n cr.registerContentObserver(Settings.Secure.getUriFor(Settings.Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE), false, this.mContentObserver, this.mUserId);\n }\n }\n }", "@Override\r\n\tpublic void setViewCallback(ViewCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "public final void setErrorCallback(ErrorCallback cb)\n {\n mErrorCallback = cb;\n }", "public void setWorkChangesHandler(WorkChangesHandler callback);", "public void setWorkProcessChanges(WorkProcessChangesHandler callback);", "public void callback() {\n }", "public LowLevelNetworkHandler setCallback(Callback callback);", "public void setCallback(CarouselCallback callback)\n {\n mController.setCallback(callback);\n }", "public void setChangeListener();", "public void setupCallback(MouseBehaviorCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "protected void setErrorCallback (boolean setCallback) {\n TipcCb pError = null;\n String dest = AppConstants.STATUS_SUBJECT;\n try {\n \tif (setCallback) {\n if (!srv.getSubjectSubscribe(dest)) {\n \t ProcessErrorMessage evRef = new ProcessErrorMessage();\n \t pError = srv.addProcessCb(evRef, dest, srv); \n \t if (pError == null) {\n \t Tut.exitFailure(\"WARNING. Couldn't register Svt Error subject callback!\\n\");\n \t }\n \t srv.setSubjectSubscribe(dest, true);\n \t warn(\"INFO. Subscribed to \" + dest, Color.green);\n \n \t addObserver(errorObserver);\n \t }\n \t} \n else {\n \t if (srv.getSubjectSubscribe(dest)) {\n \t srv.setSubjectSubscribe(dest, false);\n \t warn(\"INFO. Unsubscribed from \" + dest, Color.red);\n \n \t deleteObserver(errorObserver);\n \t }\n \t}\n } \n catch (TipcException Tipe) {\n \tTut.warning(Tipe);\n } \n }", "@Override\n\tpublic void callback() {\n\t}", "public void callback();", "public void setCallback(GameActivity host){\n\t\tthis.callback = host;\n\t}", "void setRestartCallback(RestartCallback callback);", "public void setCallback(StringArrayDialogCallback callback) {\n\t\tthis.callback = callback;\n\t}", "public static void setCreatedCallback(final OutputCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_created_cb(new handle_callback() {\n\n\t\t\tpublic boolean callback(Pointer handle) {\n\t\t\t\treturn cb.onCreated(Output.from(handle));\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void addOnPropertyChangedCallback(OnPropertyChangedCallback callback) {\n }", "public final synchronized void setChanged() {\n\t\tsuper.setChanged ();\n }", "public static void setFocusCallback(final OutputFocusCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_focus_cb(new focus_callback() {\n\n\t\t\tpublic void callback(Pointer handle, boolean focusState) {\n\t\t\t\tcb.onFocusChange(Output.from(handle), focusState);\n\t\t\t}\n\t\t});\n\t}", "void setMapChanged();", "public void setColor(NativeCallback colorCallback) {\n\t\t// resets callback\n\t\tsetColor((ColorCallback<DatasetContext>) null);\n\t\t// stores value\n\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallback);\n\t}", "public void setProgressCallBack(ProgressEvent progressCallBack)\r\n\t{\r\n\t\tthis.progressCallBack = progressCallBack;\r\n\t}", "public void setOnReceiveCalled() {\n this.f49 = true;\n }", "private void setApplicationConnectionResultCallback(\n\t\t\tResultCallback_c<Fling.ApplicationConnectionResult> callback) {\n\t\tsynchronized (mLock_xU) {\n\t\t\tif (mResultCallback != null) {\n\t\t\t\tmResultCallback\n\t\t\t\t\t\t.onResult(new ApplicationConnectionResultImpl(\n\t\t\t\t\t\t\t\tnew Status(FlingStatusCodes.CANCELED)));\n\t\t\t}\n\t\t\tmResultCallback = callback;\n\t\t}\n\t}", "public final void setPreviewCallback(PreviewCallback cb) {\n mPreviewCallback = cb;\n setHasPreviewCallback(cb != null);\n }", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "public void setmNaviCallback(NaviCallback mNaviCallback){\n this.mNaviCallback = mNaviCallback;\n }", "public synchronized void setChanged() {\n super.setChanged();\n }", "public int registerValueCallback(UpdateCallback callback)\n {\n String val;\n if (callback != null) {\n YFunction._UpdateValueCallbackList(this, true);\n } else {\n YFunction._UpdateValueCallbackList(this, false);\n }\n _valueCallbackFiles = callback;\n // Immediately invoke value callback with current value\n if (callback != null && isOnline()) {\n val = _advertisedValue;\n if (!(val.equals(\"\"))) {\n _invokeValueCallback(val);\n }\n }\n return 0;\n }", "public void setCallbackHandler(CallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n LOG.fine(\"Setting callbackHandler: \" + callbackHandler);\n }", "@Override\n public void set_irq_callback(irqcallbacksPtr callback) {\n konami.irq_callback = callback;\n }", "public Installer callback(@NonNull KonamiCodeLayout.Callback callback) {\n this.callback = callback;\n return this;\n }", "public void setConnectionLostCallback(CallbackContext connectionLostCallback) {\n\t\t\tthis.connectionLostCallback = connectionLostCallback;\n\t\t}", "@Override\n\tpublic void setListener() {\n\n\t}", "public void setRenderCallback(@Nullable RendererCallback renderCallback) {\n mRenderCallback = renderCallback;\n }", "public void registerCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null) {\n\t\t\t\tm_callbacks.register(callback);\n\t\t\t\tm_soundManager.progressListenerRegistered();\n\t\t\t}\n\t\t}", "private void setListener() {\n\t}", "final void channelInterestChangedCallback() {\n Channel ch = getIOChannel();\n if (ch != null) {\n boolean writable = ch.isWritable();\n\n eventSerializeLock.lock();\n try {\n if (previousEvent == OUTPUT_DISABLED && writable) {\n fireOutputRecovered();\n } else if (previousEvent == OUTPUT_RECOVERED && !writable) {\n fireOutputDisabled();\n }\n } finally {\n eventSerializeLock.unlock();\n }\n }\n }", "@Override\n\tprotected void setListener() {\n\n\t}", "@Override\n\tprotected void setListener() {\n\n\t}", "public interface UpdateCallback\n {\n /**\n *\n * @param function : the function object of which the value has changed\n * @param functionValue : the character string describing the new advertised value\n */\n void yNewValue(YFiles function, String functionValue);\n }", "@Override\n public void registerCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.add(callback);\n }", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "@Override\r\n\tpublic void setListener() {\n\r\n\t}", "public void setCommandInvokedCallback(CommandInvokedCallback commandInvokedCallback) {\n this.commandInvokedCallback = commandInvokedCallback;\n }", "@Override\n\tpublic void setChanged() {\n\t\tthis.changed = true;\n\t}", "public static void setPostRenderCallback(\n\t\t\tfinal OutputPostRenderCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_render_post_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onPostRender(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public static void setPreRenderCallback(final OutputPreRenderCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_render_pre_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onPreRender(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public static void setDestroyedCallback(final OutputDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_destroyed_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n\tpublic void callback(Object o) {}", "public synchronized void registerPlaceChangedCallback(\n\t\t\tPlaceChangedHandler callable) {\n\t\tplaceCheckerCallables.add(callable);\n\t}", "public void setLoginCallback (LoginCallback callback) {\n\t\tloginCallback = callback;\n\t}", "public void displayChanged(GLAutoDrawable drawable, boolean modeChanged, boolean deviceChanged) {}", "@Override\n void addUpdateCallback(@NonNull UpdateCallback updateCallback) {\n mAnimator.addUpdateListener(\n animation -> {\n if (!mSuppressForwardUpdate && !mAnimator.isPaused()) {\n updateCallback.onUpdate(animation.getAnimatedValue());\n }\n });\n\n mAuxAnimator.addUpdateListener(\n animation -> {\n if (!mSuppressReverseUpdate && !mAuxAnimator.isPaused()) {\n updateCallback.onUpdate(animation.getAnimatedValue());\n }\n });\n }", "abstract void setPreviewCallback(android.hardware.Camera.PreviewCallback cb);", "public void setColor(ColorCallback<DatasetContext> colorCallback) {\n\t\t// sets the callback\n\t\tthis.colorCallback = colorCallback;\n\t\t// checks if callback is consistent\n\t\tif (colorCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// otherwise sets null which removes the properties from java script object\n\t\t\tremove(CommonProperty.COLOR);\n\t\t}\n\t}", "void registerCallback(BundleTriggerCallback callback);", "public void onCompletion(Runnable callback)\n/* */ {\n/* 158 */ this.completionCallback = callback;\n/* */ }", "protected synchronized void setChanged() {\n changed = true;\n }", "@Override\n\tpublic void updateCB(CB cb) {\n\t\t\n\t}", "void changed(DiscoveryEvent e);", "public String listen(String key, PropertyChangedCallback callback);", "public void setOnKnobValuesChangedListener (KnobValuesChangedListener l) {\r\n\t\tknobValuesChangedListener = l;\r\n\t}", "public void markChanged()\n \t{\n \t\tbChanged=true;\n \t}", "void addChangeListener( RegistryListener listener );", "public void setChangeListener(ChangeListener listener) {\n this.listener = listener;\n qs.addChangeListener(listener);\n }", "public void setResolution(Vector2ic resolution){\n this.resolution.set(resolution);\n resolutionMultiplexer.handle(new WindowResolutionEvent(handle, resolution.x(), resolution.y()));\n }", "public void setOnSeekChangeListener(OnSeekChangeListener listener) {\n this.mSeekChangeListener = listener;\n }", "public void setCallbackHandler(final JsiiCallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n }", "public void setCallbackHandler(final JsiiCallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n }", "@Override\n protected void bindTarget(BaseWebThemeActivity target) {\n this.mThemeCallback = target;\n }", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "private void fireOutputRecovered() {\n previousEvent = OUTPUT_RECOVERED;\n ownerPool.getIPCEventProcessor().execute(new OrderedExecutorService.KeyRunnable<StreamOutputChannel<PAYLOAD>>() {\n\n @Override\n public void run() {\n for (IPCEventListener l : outputRecoverListeners) {\n l.triggered(outputRecoveredEvent);\n }\n }\n\n @Override\n public StreamOutputChannel<PAYLOAD> getKey() {\n return StreamOutputChannel.this;\n }\n });\n }", "public void setStatusCallback(final IStatusCallback callback);", "public void onWrite(Consumer<TransformResult> hook) {\n this.hook = hook;\n }", "@Override\n\tpublic void staticByActivityListener() {\n\t\tsb.setOnSeekBarChangeListener(this);\n\t}", "private static void applyPresenter1RefreshBChanges(@NonNull final ListUpdateCallback callback) {\n callback.onChanged(0, 2, PAYLOAD_PRESENTER_1_VALUE_B_REFRESH);\n }", "public void setOnCompletionListener(IMediaPlayer.OnCompletionListener l) {\n mOnCompletionListener = l;\n }", "public void setActivityResultCallback(IPlugin arg0) {\n\t\t\n\t}", "public void onThemeChanged()\n\t{\n\t\tthemeChanged = true;\n\t}", "private void switchLookupListener() {\n TopComponent active = TopComponent.getRegistry().getActivated();\n if( null != lookupRes ) {\n lookupRes.removeLookupListener( PaletteSwitch.this );\n lookupRes = null;\n }\n if( null != active ) {\n lookupRes = active.getLookup().lookup( new Lookup.Template<PaletteController>( PaletteController.class ) );\n lookupRes.addLookupListener( PaletteSwitch.this );\n lookupRes.allItems();\n }\n }", "public void setRenderingCallback(RenderingDelegate renderingdelegate) {\r\n\r\n\t\tthis.renderingdelegate = renderingdelegate;\r\n\t}", "void setCalled(String called);", "public void setOutputReceiver(Consumer<String> receiver) {\n out = receiver;\n }", "@Override\n public void addChangeListener(ChangeListener l) {}", "public void managerOutputModified(ManagerEvent e);", "public void setFunction(SoSensorCB f) {\n\t\t func = f; \n\t}", "public void setOnOpenChatActionCallback(ChatActionCallback callback){\n this.callback=callback;\n }", "public void setCallbackOnPartitionsRevoked( Runnable callbackOnPartitionsRevoked ) {\n this.callbackOnPartitionsRevoked = callbackOnPartitionsRevoked;\n }", "@Override\n public void setWriteListener(WriteListener arg0) {\n }", "public void RecognizerChangeCallback(final boolean isRecognizerActive) {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n updateListeningStatus(isRecognizerActive);\n }\n });\n }", "@SuppressWarnings(\"unused\")\n public void setOnRangeSeekBarChangeListener(OnRangeSeekBarChangeListener<T> listener) {\n this.listener = listener;\n }", "@Override\r\n\tpublic void onOutput(OutputEvent arg0) {\n\t\toutput = arg0.getMsg();\r\n\t}", "public void m1172c(MDResultCallback mDResultCallback) {\n if (mDResultCallback == null) {\n C3490e3.m666f(\"Missing listener, however, method will run regardless\");\n }\n }" ]
[ "0.6405688", "0.63330185", "0.6165211", "0.61367196", "0.6115518", "0.6094803", "0.6075112", "0.5865856", "0.5783228", "0.5778088", "0.5724352", "0.5638434", "0.5635555", "0.5627412", "0.55926883", "0.55657333", "0.55174303", "0.54997706", "0.5479113", "0.5460254", "0.54019743", "0.5390152", "0.5355921", "0.5349469", "0.5345465", "0.53233784", "0.5315767", "0.53054494", "0.5294625", "0.5276755", "0.52756345", "0.52737594", "0.5271964", "0.5270527", "0.52557415", "0.5252174", "0.5250877", "0.5245049", "0.52423984", "0.52333045", "0.5228254", "0.5220246", "0.521006", "0.52067125", "0.51993895", "0.51993895", "0.51927", "0.51898986", "0.5173368", "0.5173368", "0.5164143", "0.5162024", "0.51575285", "0.5145514", "0.5133419", "0.5120504", "0.51081717", "0.510633", "0.5100332", "0.50861984", "0.50845355", "0.5075766", "0.5072581", "0.5055673", "0.5053456", "0.5047585", "0.5035771", "0.5029999", "0.5027187", "0.5020391", "0.5018168", "0.5010842", "0.50074935", "0.5004369", "0.4996291", "0.4996291", "0.4994964", "0.4990391", "0.49903676", "0.49872804", "0.49602798", "0.49583727", "0.4948747", "0.4941376", "0.49301225", "0.4924989", "0.49206543", "0.49160427", "0.49109244", "0.4907639", "0.49076176", "0.490608", "0.4904671", "0.49024603", "0.4891741", "0.4891508", "0.4882796", "0.48787096", "0.4874068", "0.48690808" ]
0.731089
0
Sets callback which is called when output is about to be rendered.
public static void setPreRenderCallback(final OutputPreRenderCallback cb) { Assert.assertNotNull(cb); JWLC.nativeHandler() .wlc_set_output_render_pre_cb(new handle_callback_void() { public void callback(Pointer handle) { cb.onPreRender(Output.from(handle)); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCallback(String callback) {\r\n this.callback = callback;\r\n }", "@Override\r\n\tpublic void setViewCallback(ViewCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "public static void setPostRenderCallback(\n\t\t\tfinal OutputPostRenderCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_render_post_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onPostRender(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public static void setCreatedCallback(final OutputCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_created_cb(new handle_callback() {\n\n\t\t\tpublic boolean callback(Pointer handle) {\n\t\t\t\treturn cb.onCreated(Output.from(handle));\n\t\t\t}\n\t\t});\n\t}", "public void callback() {\n }", "public void setRenderCallback(@Nullable RendererCallback renderCallback) {\n mRenderCallback = renderCallback;\n }", "public void setCallback(boolean callback) {\n this.callback = callback;\n }", "public void setResponseCallback(ApiCallback callback) {\n responseCallback = callback;\n }", "public void setCallback(CarouselCallback callback)\n {\n mController.setCallback(callback);\n }", "@Override\n\tpublic void callback() {\n\t}", "public void callback();", "public void setRenderingCallback(RenderingDelegate renderingdelegate) {\r\n\r\n\t\tthis.renderingdelegate = renderingdelegate;\r\n\t}", "public static void setResolutionCallback(\n\t\t\tfinal OutputResolutionCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_resolution_cb(new output_resolution_callback() {\n\n\t\t\t\t\tpublic void callback(Pointer handle, wlc_size fromSize,\n\t\t\t\t\t\t\twlc_size toSize) {\n\t\t\t\t\t\tcb.onResolution(Output.from(handle),\n\t\t\t\t\t\t\t\tSize.from(fromSize), Size.from(toSize));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void setCallbackHandler(final JsiiCallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n }", "public void setCallbackHandler(final JsiiCallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n }", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "public static void setDestroyedCallback(final OutputDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_destroyed_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void setCallbackHandler(CallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n LOG.fine(\"Setting callbackHandler: \" + callbackHandler);\n }", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "public void setCallback(final CallbackSync callback) {\n\t\tthis.callback = callback;\n\t}", "public final void setErrorCallback(ErrorCallback cb)\n {\n mErrorCallback = cb;\n }", "@Override\n\tpublic void callback(Object o) {}", "public LowLevelNetworkHandler setCallback(Callback callback);", "public void setupCallback(MouseBehaviorCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "public Installer callback(@NonNull KonamiCodeLayout.Callback callback) {\n this.callback = callback;\n return this;\n }", "public static void setContextCreatedCallback(\n\t\t\tfinal OutputContextCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_context_created_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onContextCreated(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "protected void setErrorCallback (boolean setCallback) {\n TipcCb pError = null;\n String dest = AppConstants.STATUS_SUBJECT;\n try {\n \tif (setCallback) {\n if (!srv.getSubjectSubscribe(dest)) {\n \t ProcessErrorMessage evRef = new ProcessErrorMessage();\n \t pError = srv.addProcessCb(evRef, dest, srv); \n \t if (pError == null) {\n \t Tut.exitFailure(\"WARNING. Couldn't register Svt Error subject callback!\\n\");\n \t }\n \t srv.setSubjectSubscribe(dest, true);\n \t warn(\"INFO. Subscribed to \" + dest, Color.green);\n \n \t addObserver(errorObserver);\n \t }\n \t} \n else {\n \t if (srv.getSubjectSubscribe(dest)) {\n \t srv.setSubjectSubscribe(dest, false);\n \t warn(\"INFO. Unsubscribed from \" + dest, Color.red);\n \n \t deleteObserver(errorObserver);\n \t }\n \t}\n } \n catch (TipcException Tipe) {\n \tTut.warning(Tipe);\n } \n }", "public void setListener(Callback callback) {\n final Callback oldCallback = mCallback;\n if (oldCallback != callback) {\n mCallback = callback;\n\n if (callback == null) {\n // Stop listening for changes now that there IS NOT a listener.\n mContext.getContentResolver().unregisterContentObserver(mContentObserver);\n } else if (oldCallback == null) {\n // Start listening for changes now that there IS a listener.\n final ContentResolver cr = mContext.getContentResolver();\n cr.registerContentObserver(Secure.getUriFor(Secure.TWILIGHT_STATE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_AUTO_MODE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_START_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_END_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n }\n }\n }", "public Consumer<String> outputHandler() {\n return outputHandler;\n }", "public Builder outputHandler(Consumer<String> outputHandler) {\n this.outputHandler = outputHandler;\n return this;\n }", "public interface RenderingCallback {\n /**\n * Render the supplied feed data. The type of processing is arbitrary and based on the context\n * in which the method is invoked.\n * @param data to use during the operation\n */\n void render(Map<String,List<Map<String,String>>> data);\n }", "public void render(Callable<Object> callable) {\n\t\trenderQueue.enqueue(callable);\n\t}", "public interface RendererCallback {\n /**\n * Called when the underlying native window has changed.\n */\n void onNativeWindowChanged(Surface surface);\n\n /**\n * Called when the surface is going away. After this call <code>isReadyToRender()</code>\n * returns false. You MUST have stopped drawing when returning.\n * This is called from detach() or if the surface disappears on its own.\n */\n void onDetachedFromSurface();\n\n /**\n * Called when the underlying native window has been resized.\n */\n void onResized(int width, int height);\n }", "public void setProgressCallBack(ProgressEvent progressCallBack)\r\n\t{\r\n\t\tthis.progressCallBack = progressCallBack;\r\n\t}", "public interface ResponseCallback {\r\n\t\t/**\r\n\t\t * Callback invoked when a response is returned by the request\r\n\t\t * @param response The returned response\r\n\t\t */\r\n\t\tpublic void onResponse(Response response) throws Exception;\r\n\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void callback(int position) {\n\n\t\t\t\t\t\t\t\t\t}", "@Override\n public void registerCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.add(callback);\n }", "public void executer(Callback callback){\n exec();\n if(callback != null){\n System.out.println(\" \" +\n \"[ Callback : callback() : 调用回调函数 ]\");\n callback.call();\n }\n }", "public static void setContextDestroyedCallback(\n\t\t\tfinal OutputContextDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_context_destroyed_cb(\n\t\t\t\tnew handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onContextDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\r\n\tpublic void onOutput(OutputEvent arg0) {\n\t\toutput = arg0.getMsg();\r\n\t}", "public void onWrite(Consumer<TransformResult> hook) {\n this.hook = hook;\n }", "public void setOnOpenChatActionCallback(ChatActionCallback callback){\n this.callback=callback;\n }", "public interface Callback {\n void onExpanded(boolean z);\n\n void onInteraction();\n\n void onPrioritySettings();\n }", "void setCallback(IResponseCallback<WalletDataDecl.ListResultTmpl<Response>> cb);", "public void setCallback(StringArrayDialogCallback callback) {\n\t\tthis.callback = callback;\n\t}", "public void setOutputReceiver(Consumer<String> receiver) {\n out = receiver;\n }", "public void setColor(ColorCallback<DatasetContext> colorCallback) {\n\t\t// sets the callback\n\t\tthis.colorCallback = colorCallback;\n\t\t// checks if callback is consistent\n\t\tif (colorCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// otherwise sets null which removes the properties from java script object\n\t\t\tremove(CommonProperty.COLOR);\n\t\t}\n\t}", "public static void setFocusCallback(final OutputFocusCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_focus_cb(new focus_callback() {\n\n\t\t\tpublic void callback(Pointer handle, boolean focusState) {\n\t\t\t\tcb.onFocusChange(Output.from(handle), focusState);\n\t\t\t}\n\t\t});\n\t}", "public interface FreeRenderModel_callback extends Callback {\r\n\t\tvoid apply(RenderModel_t pRenderModel);\r\n\t}", "private void doAfterRenderResponse(final PhaseEvent arg0) {\n\t}", "@Override\n public void onCallBack(int pos) {\n }", "public void setmNaviCallback(NaviCallback mNaviCallback){\n this.mNaviCallback = mNaviCallback;\n }", "public void setColor(NativeCallback colorCallback) {\n\t\t// resets callback\n\t\tsetColor((ColorCallback<DatasetContext>) null);\n\t\t// stores value\n\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallback);\n\t}", "public Response callback() throws Exception;", "@Override\n public void set_irq_callback(irqcallbacksPtr callback) {\n konami.irq_callback = callback;\n }", "@Override\n public void emitOutput() {\n }", "void wkhtmltoimage_set_finished_callback(PointerByReference converter, wkhtmltoimage_int_callback cb);", "void renderLoop(RenderLoopCallback renderLoop);", "public final void setFont(FontCallback<DatasetContext> fontCallback) {\n\t\t// sets the callback\n\t\tthis.fontCallback = fontCallback;\n\t\t// checks if consistent\n\t\tif (fontCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, fontCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// stores the font\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, getOriginalFont());\n\t\t}\n\t}", "public void setLoginCallback (LoginCallback callback) {\n\t\tloginCallback = callback;\n\t}", "protected void javaCallback() {\n\t}", "public void setConnectionLostCallback(CallbackContext connectionLostCallback) {\n\t\t\tthis.connectionLostCallback = connectionLostCallback;\n\t\t}", "public LabelBuilder setRender(RenderCallback renderCallback) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.setRender(renderCallback);\n\t\treturn this;\n\t}", "public void setCallback(GameActivity host){\n\t\tthis.callback = host;\n\t}", "public interface RenderLoopCallback {\n\n /**\n * Called once after the OpenGL context has been initialized and before any\n * calls are made to {@link #render(CoreGL, float)}. Use this method to\n * initialize any and all necessary Core components.\n *\n * @param gl\n * the CoreGL instance in case you want to use that\n */\n void init(final CoreGL gl);\n\n /**\n * Do some awesome stuff in here!\n *\n * @param gl\n * the CoreGL instance in case you want to use that\n * @param deltaTime\n * the time past since the last call in ms\n * @return true when data has been rendered and the rendered data should be\n * displayed. false when nothing has been changed and the display\n * should not be updated.\n */\n boolean render(final CoreGL gl, float deltaTime);\n\n /**\n * When you're finishing rendering awesome stuff and the render loop should\n * be ended, return true in here.\n *\n * @return true render loop should be stopped and false if you want it to\n * continue.\n */\n boolean endLoop();\n }", "public CallbackHandler() {\r\n // TODO Auto-generated constructor stub\r\n }", "public void setStatusCallback(final IStatusCallback callback);", "public interface CallBackListener\n{\n public void drawbackTexto0(String response);\n}", "@Nullable\n public RendererCallback getRenderCallback() {\n return mRenderCallback;\n }", "public void setSendedCallback(SendedCallback sendedCallback) {\n this.sendedCallback = sendedCallback;\n }", "public CayenneTesterLifecycleManager callback(Consumer<ServerRuntime> callback, CayenneTesterCallbackType type) {\n callbacks.put(callback, type);\n return this;\n }", "@Override\n\tpublic void addConsoleOutputListener(IEventHandler listener) {\n\t\t\n\t}", "public void registerCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null) {\n\t\t\t\tm_callbacks.register(callback);\n\t\t\t\tm_soundManager.progressListenerRegistered();\n\t\t\t}\n\t\t}", "@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }", "@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }", "@Override\n public void setWriteListener(WriteListener arg0) {\n }", "public void onCompletion(Runnable callback)\n/* */ {\n/* 158 */ this.completionCallback = callback;\n/* */ }", "public void setCallbackHandlerClass(String callbackHandlerClass) {\n this.callbackHandlerClass = callbackHandlerClass;\n LOG.fine(\"Setting callbackHandlerClass: \" + callbackHandlerClass);\n }", "public void addServerCallback(IServerCallback callback) {\n\t\tserverCallbacks.add(callback);\n\t}", "public void onDisplay() {\n\n\t}", "public final void setPreviewCallback(PreviewCallback cb) {\n mPreviewCallback = cb;\n setHasPreviewCallback(cb != null);\n }", "void onCallback(String gekozenWoord);", "void addCallback(BiConsumer<Boolean, Boolean> callback);", "public interface ResponseCallback {\n void onSucceed(String tag, ResultDataBean resultDataBean);\n void error(String tag,String errorMessage );\n //TODO 如果需要可以把一下加上\n// void onFailed(String tag);\n// void onFinish(String tag);\n// void onStart(String tag);\n}", "@Override\n public void setToBeRendered(boolean arg0)\n {\n \n }", "@Override\n\tvoid output() {\n\t\t\n\t}", "public static void setCallbackHandler(Handler handler) {\n if (handler == null) {\n throw new IllegalArgumentException(\"Callback handler cannot be null.\");\n }\n sCallbackHandler = handler;\n }", "public void onDisplay() {\n }", "void addCallback(Executor executor, BiConsumer<Boolean, Boolean> callback);", "public static void registerCallbackHandler(com.sybase.persistence.CallbackHandler handler)\n {\n DELEGATE.registerCallbackHandler(handler);\n }", "public interface GetRenderModelCount_callback extends Callback {\r\n\t\tint apply();\r\n\t}", "public LastInFirstOutStrategy(iQueueCallback<T> callback) {\n super(callback);\n }", "public abstract void actionReal(HttpResponseCallback callback);", "public void lambda$setCallback$0$NightDisplayListener(Callback newCallback) {\n Callback oldCallback = this.mCallback;\n if (oldCallback != newCallback) {\n this.mCallback = newCallback;\n if (this.mCallback == null) {\n this.mContext.getContentResolver().unregisterContentObserver(this.mContentObserver);\n } else if (oldCallback == null) {\n ContentResolver cr = this.mContext.getContentResolver();\n cr.registerContentObserver(Settings.Secure.getUriFor(Settings.Secure.NIGHT_DISPLAY_ACTIVATED), false, this.mContentObserver, this.mUserId);\n cr.registerContentObserver(Settings.Secure.getUriFor(Settings.Secure.NIGHT_DISPLAY_AUTO_MODE), false, this.mContentObserver, this.mUserId);\n cr.registerContentObserver(Settings.Secure.getUriFor(Settings.Secure.NIGHT_DISPLAY_CUSTOM_START_TIME), false, this.mContentObserver, this.mUserId);\n cr.registerContentObserver(Settings.Secure.getUriFor(Settings.Secure.NIGHT_DISPLAY_CUSTOM_END_TIME), false, this.mContentObserver, this.mUserId);\n cr.registerContentObserver(Settings.Secure.getUriFor(Settings.Secure.NIGHT_DISPLAY_COLOR_TEMPERATURE), false, this.mContentObserver, this.mUserId);\n }\n }\n }", "private void postAnimationCallback() {\n this.mChoreographer.postCallback(1, this.mAnimationCallback, null);\n }", "@Override\r\n\t\t\tpublic void onResponse(Call arg0, Response response) throws IOException {\n\t\t\t\tif (response.isSuccessful()) {\r\n\t\t\t\t\tonSuccess(callback, response.body().string());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tonError(callback, response.message());\r\n\t\t\t\t}\r\n\t\t\t}", "public void setCommandInvokedCallback(CommandInvokedCallback commandInvokedCallback) {\n this.commandInvokedCallback = commandInvokedCallback;\n }", "public abstract void callback(Instruction instruction);", "public void setWorkChangesHandler(WorkChangesHandler callback);", "@Override // com.facebook.internal.FacebookDialogBase\n public void registerCallbackImpl(CallbackManagerImpl callbackManagerImpl, FacebookCallback<Result> facebookCallback) {\n this.e = facebookCallback;\n callbackManagerImpl.registerCallback(getRequestCode(), new b(this, facebookCallback));\n }" ]
[ "0.6825016", "0.6719283", "0.6585499", "0.65000385", "0.645698", "0.64146113", "0.6361972", "0.6349586", "0.620439", "0.6204022", "0.6147491", "0.6105475", "0.60313964", "0.59300643", "0.59300643", "0.59217113", "0.589918", "0.5850732", "0.58465517", "0.5794692", "0.57928354", "0.57422316", "0.5708645", "0.5682989", "0.5607016", "0.5603934", "0.5581789", "0.55463237", "0.5541937", "0.553207", "0.5522666", "0.5494569", "0.54685986", "0.5463699", "0.54500985", "0.54452926", "0.54332775", "0.5431664", "0.54026574", "0.5400334", "0.5395207", "0.5390625", "0.53661567", "0.5363592", "0.5346116", "0.5331859", "0.5316863", "0.5312237", "0.5305739", "0.5275375", "0.52545315", "0.5235087", "0.5219624", "0.51939774", "0.5192406", "0.5179525", "0.5174538", "0.5170036", "0.51661277", "0.5141612", "0.5127139", "0.51252323", "0.512295", "0.51109594", "0.5109273", "0.5075456", "0.50680846", "0.50553095", "0.50497544", "0.50451875", "0.50103533", "0.5010123", "0.5009371", "0.5006683", "0.5006683", "0.5005587", "0.5004124", "0.49979833", "0.49924895", "0.4989087", "0.49794015", "0.49743843", "0.4972293", "0.4971122", "0.4966731", "0.4951284", "0.49400952", "0.49394986", "0.49323687", "0.49295875", "0.49218398", "0.492025", "0.4915148", "0.49106047", "0.490716", "0.4904631", "0.48873353", "0.48812017", "0.487694", "0.4859196" ]
0.6389075
6
Sets callback which is called when output was rendered.
public static void setPostRenderCallback( final OutputPostRenderCallback cb) { Assert.assertNotNull(cb); JWLC.nativeHandler() .wlc_set_output_render_post_cb(new handle_callback_void() { public void callback(Pointer handle) { cb.onPostRender(Output.from(handle)); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setCallback(String callback) {\r\n this.callback = callback;\r\n }", "@Override\r\n\tpublic void setViewCallback(ViewCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "public void setRenderCallback(@Nullable RendererCallback renderCallback) {\n mRenderCallback = renderCallback;\n }", "public static void setPreRenderCallback(final OutputPreRenderCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_render_pre_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onPreRender(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public static void setCreatedCallback(final OutputCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_created_cb(new handle_callback() {\n\n\t\t\tpublic boolean callback(Pointer handle) {\n\t\t\t\treturn cb.onCreated(Output.from(handle));\n\t\t\t}\n\t\t});\n\t}", "public void setCallback(boolean callback) {\n this.callback = callback;\n }", "public void setCallback(CarouselCallback callback)\n {\n mController.setCallback(callback);\n }", "public void callback() {\n }", "public void setResponseCallback(ApiCallback callback) {\n responseCallback = callback;\n }", "public void setRenderingCallback(RenderingDelegate renderingdelegate) {\r\n\r\n\t\tthis.renderingdelegate = renderingdelegate;\r\n\t}", "@Override\n\tpublic void callback() {\n\t}", "public void setCallbackHandler(final JsiiCallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n }", "public void setCallbackHandler(final JsiiCallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n }", "public void callback();", "public static void setResolutionCallback(\n\t\t\tfinal OutputResolutionCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_resolution_cb(new output_resolution_callback() {\n\n\t\t\t\t\tpublic void callback(Pointer handle, wlc_size fromSize,\n\t\t\t\t\t\t\twlc_size toSize) {\n\t\t\t\t\t\tcb.onResolution(Output.from(handle),\n\t\t\t\t\t\t\t\tSize.from(fromSize), Size.from(toSize));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void setCallbackHandler(CallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n LOG.fine(\"Setting callbackHandler: \" + callbackHandler);\n }", "public void setCallback(final CallbackSync callback) {\n\t\tthis.callback = callback;\n\t}", "public final void setErrorCallback(ErrorCallback cb)\n {\n mErrorCallback = cb;\n }", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "public void setupCallback(MouseBehaviorCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "public static void setDestroyedCallback(final OutputDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_destroyed_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "public LowLevelNetworkHandler setCallback(Callback callback);", "public Installer callback(@NonNull KonamiCodeLayout.Callback callback) {\n this.callback = callback;\n return this;\n }", "@Override\n\tpublic void callback(Object o) {}", "protected void setErrorCallback (boolean setCallback) {\n TipcCb pError = null;\n String dest = AppConstants.STATUS_SUBJECT;\n try {\n \tif (setCallback) {\n if (!srv.getSubjectSubscribe(dest)) {\n \t ProcessErrorMessage evRef = new ProcessErrorMessage();\n \t pError = srv.addProcessCb(evRef, dest, srv); \n \t if (pError == null) {\n \t Tut.exitFailure(\"WARNING. Couldn't register Svt Error subject callback!\\n\");\n \t }\n \t srv.setSubjectSubscribe(dest, true);\n \t warn(\"INFO. Subscribed to \" + dest, Color.green);\n \n \t addObserver(errorObserver);\n \t }\n \t} \n else {\n \t if (srv.getSubjectSubscribe(dest)) {\n \t srv.setSubjectSubscribe(dest, false);\n \t warn(\"INFO. Unsubscribed from \" + dest, Color.red);\n \n \t deleteObserver(errorObserver);\n \t }\n \t}\n } \n catch (TipcException Tipe) {\n \tTut.warning(Tipe);\n } \n }", "public void setColor(ColorCallback<DatasetContext> colorCallback) {\n\t\t// sets the callback\n\t\tthis.colorCallback = colorCallback;\n\t\t// checks if callback is consistent\n\t\tif (colorCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// otherwise sets null which removes the properties from java script object\n\t\t\tremove(CommonProperty.COLOR);\n\t\t}\n\t}", "public void setListener(Callback callback) {\n final Callback oldCallback = mCallback;\n if (oldCallback != callback) {\n mCallback = callback;\n\n if (callback == null) {\n // Stop listening for changes now that there IS NOT a listener.\n mContext.getContentResolver().unregisterContentObserver(mContentObserver);\n } else if (oldCallback == null) {\n // Start listening for changes now that there IS a listener.\n final ContentResolver cr = mContext.getContentResolver();\n cr.registerContentObserver(Secure.getUriFor(Secure.TWILIGHT_STATE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_AUTO_MODE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_START_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_END_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n }\n }\n }", "public void render(Callable<Object> callable) {\n\t\trenderQueue.enqueue(callable);\n\t}", "public static void setContextCreatedCallback(\n\t\t\tfinal OutputContextCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_context_created_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onContextCreated(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void setProgressCallBack(ProgressEvent progressCallBack)\r\n\t{\r\n\t\tthis.progressCallBack = progressCallBack;\r\n\t}", "public void setOnOpenChatActionCallback(ChatActionCallback callback){\n this.callback=callback;\n }", "public void setCallback(StringArrayDialogCallback callback) {\n\t\tthis.callback = callback;\n\t}", "public void setColor(NativeCallback colorCallback) {\n\t\t// resets callback\n\t\tsetColor((ColorCallback<DatasetContext>) null);\n\t\t// stores value\n\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallback);\n\t}", "public void executer(Callback callback){\n exec();\n if(callback != null){\n System.out.println(\" \" +\n \"[ Callback : callback() : 调用回调函数 ]\");\n callback.call();\n }\n }", "@Override\n public void registerCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.add(callback);\n }", "public Builder outputHandler(Consumer<String> outputHandler) {\n this.outputHandler = outputHandler;\n return this;\n }", "public LabelBuilder setRender(RenderCallback renderCallback) {\n\t\tIsBuilder.checkIfValid(getOptionsBuilder());\n\t\tlabel.setRender(renderCallback);\n\t\treturn this;\n\t}", "public static void setFocusCallback(final OutputFocusCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_focus_cb(new focus_callback() {\n\n\t\t\tpublic void callback(Pointer handle, boolean focusState) {\n\t\t\t\tcb.onFocusChange(Output.from(handle), focusState);\n\t\t\t}\n\t\t});\n\t}", "public interface RendererCallback {\n /**\n * Called when the underlying native window has changed.\n */\n void onNativeWindowChanged(Surface surface);\n\n /**\n * Called when the surface is going away. After this call <code>isReadyToRender()</code>\n * returns false. You MUST have stopped drawing when returning.\n * This is called from detach() or if the surface disappears on its own.\n */\n void onDetachedFromSurface();\n\n /**\n * Called when the underlying native window has been resized.\n */\n void onResized(int width, int height);\n }", "public void setmNaviCallback(NaviCallback mNaviCallback){\n this.mNaviCallback = mNaviCallback;\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void callback(int position) {\n\n\t\t\t\t\t\t\t\t\t}", "public interface RenderingCallback {\n /**\n * Render the supplied feed data. The type of processing is arbitrary and based on the context\n * in which the method is invoked.\n * @param data to use during the operation\n */\n void render(Map<String,List<Map<String,String>>> data);\n }", "public Consumer<String> outputHandler() {\n return outputHandler;\n }", "public final void setFont(FontCallback<DatasetContext> fontCallback) {\n\t\t// sets the callback\n\t\tthis.fontCallback = fontCallback;\n\t\t// checks if consistent\n\t\tif (fontCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, fontCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// stores the font\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, getOriginalFont());\n\t\t}\n\t}", "public interface FreeRenderModel_callback extends Callback {\r\n\t\tvoid apply(RenderModel_t pRenderModel);\r\n\t}", "void setCallback(IResponseCallback<WalletDataDecl.ListResultTmpl<Response>> cb);", "@Override\n public void set_irq_callback(irqcallbacksPtr callback) {\n konami.irq_callback = callback;\n }", "public void setCallback(GameActivity host){\n\t\tthis.callback = host;\n\t}", "@Nullable\n public RendererCallback getRenderCallback() {\n return mRenderCallback;\n }", "public static void setContextDestroyedCallback(\n\t\t\tfinal OutputContextDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_context_destroyed_cb(\n\t\t\t\tnew handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onContextDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void setLoginCallback (LoginCallback callback) {\n\t\tloginCallback = callback;\n\t}", "public interface Callback {\n void onExpanded(boolean z);\n\n void onInteraction();\n\n void onPrioritySettings();\n }", "public void setOutputReceiver(Consumer<String> receiver) {\n out = receiver;\n }", "public void onWrite(Consumer<TransformResult> hook) {\n this.hook = hook;\n }", "public interface ResponseCallback {\r\n\t\t/**\r\n\t\t * Callback invoked when a response is returned by the request\r\n\t\t * @param response The returned response\r\n\t\t */\r\n\t\tpublic void onResponse(Response response) throws Exception;\r\n\t}", "@Override\n public void onCallBack(int pos) {\n }", "public final void setPreviewCallback(PreviewCallback cb) {\n mPreviewCallback = cb;\n setHasPreviewCallback(cb != null);\n }", "@Override\r\n\tpublic void onOutput(OutputEvent arg0) {\n\t\toutput = arg0.getMsg();\r\n\t}", "void renderLoop(RenderLoopCallback renderLoop);", "@Override\n public void setRenderer(Object arg0)\n {\n \n }", "public void setCallbackHandlerClass(String callbackHandlerClass) {\n this.callbackHandlerClass = callbackHandlerClass;\n LOG.fine(\"Setting callbackHandlerClass: \" + callbackHandlerClass);\n }", "public CayenneTesterLifecycleManager callback(Consumer<ServerRuntime> callback, CayenneTesterCallbackType type) {\n callbacks.put(callback, type);\n return this;\n }", "public static void setCallbackHandler(Handler handler) {\n if (handler == null) {\n throw new IllegalArgumentException(\"Callback handler cannot be null.\");\n }\n sCallbackHandler = handler;\n }", "public void registerCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null) {\n\t\t\t\tm_callbacks.register(callback);\n\t\t\t\tm_soundManager.progressListenerRegistered();\n\t\t\t}\n\t\t}", "public void setStatusCallback(final IStatusCallback callback);", "public void setCommandInvokedCallback(CommandInvokedCallback commandInvokedCallback) {\n this.commandInvokedCallback = commandInvokedCallback;\n }", "private void doAfterRenderResponse(final PhaseEvent arg0) {\n\t}", "protected void javaCallback() {\n\t}", "public void setHoverColor(ColorCallback<DatasetContext> hoverColorCallback) {\n\t\t// sets the callback\n\t\tthis.hoverColorCallback = hoverColorCallback;\n\t\t// checks if callback is consistent\n\t\tif (hoverColorCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.HOVER_COLOR, hoverColorCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// otherwise sets null which removes the properties from java script object\n\t\t\tremove(CommonProperty.HOVER_COLOR);\n\t\t}\n\t}", "public void addServerCallback(IServerCallback callback) {\n\t\tserverCallbacks.add(callback);\n\t}", "@Override\n public void setToBeRendered(boolean arg0)\n {\n \n }", "public void setConnectionLostCallback(CallbackContext connectionLostCallback) {\n\t\t\tthis.connectionLostCallback = connectionLostCallback;\n\t\t}", "void wkhtmltoimage_set_finished_callback(PointerByReference converter, wkhtmltoimage_int_callback cb);", "@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }", "@Override\n public void onSuccess() {\n if (callback != null) {\n callback.run();\n }\n }", "public CallbackHandler() {\r\n // TODO Auto-generated constructor stub\r\n }", "public interface RenderLoopCallback {\n\n /**\n * Called once after the OpenGL context has been initialized and before any\n * calls are made to {@link #render(CoreGL, float)}. Use this method to\n * initialize any and all necessary Core components.\n *\n * @param gl\n * the CoreGL instance in case you want to use that\n */\n void init(final CoreGL gl);\n\n /**\n * Do some awesome stuff in here!\n *\n * @param gl\n * the CoreGL instance in case you want to use that\n * @param deltaTime\n * the time past since the last call in ms\n * @return true when data has been rendered and the rendered data should be\n * displayed. false when nothing has been changed and the display\n * should not be updated.\n */\n boolean render(final CoreGL gl, float deltaTime);\n\n /**\n * When you're finishing rendering awesome stuff and the render loop should\n * be ended, return true in here.\n *\n * @return true render loop should be stopped and false if you want it to\n * continue.\n */\n boolean endLoop();\n }", "public interface GetRenderModelCount_callback extends Callback {\r\n\t\tint apply();\r\n\t}", "@Override\n public void emitOutput() {\n }", "public static void registerCallbackHandler(com.sybase.persistence.CallbackHandler handler)\n {\n DELEGATE.registerCallbackHandler(handler);\n }", "public void setSendedCallback(SendedCallback sendedCallback) {\n this.sendedCallback = sendedCallback;\n }", "void addCallback(BiConsumer<Boolean, Boolean> callback);", "@Override // com.facebook.internal.FacebookDialogBase\n public void registerCallbackImpl(CallbackManagerImpl callbackManagerImpl, FacebookCallback<Result> facebookCallback) {\n this.e = facebookCallback;\n callbackManagerImpl.registerCallback(getRequestCode(), new b(this, facebookCallback));\n }", "public void onDisplay() {\n\n\t}", "public Response callback() throws Exception;", "public final void setFont(NativeCallback fontCallback) {\n\t\t// checks if consistent\n\t\tif (fontCallback != null) {\n\t\t\t// resets callback\n\t\t\tsetFont((FontCallback<DatasetContext>) null);\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, fontCallback);\n\t\t} else {\n\t\t\t// stores the font\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, getOriginalFont());\n\t\t}\n\t}", "void addCallback(Executor executor, BiConsumer<Boolean, Boolean> callback);", "abstract void setPreviewCallback(android.hardware.Camera.PreviewCallback cb);", "public void onCompletion(Runnable callback)\n/* */ {\n/* 158 */ this.completionCallback = callback;\n/* */ }", "void addUserCallback(UserCallback callback);", "public void onDisplay() {\n }", "public interface CallBackListener\n{\n public void drawbackTexto0(String response);\n}", "@Override\n public void setWriteListener(WriteListener arg0) {\n }", "public abstract void render(Renderer renderer);", "@Override\n protected void bindTarget(BaseWebThemeActivity target) {\n this.mThemeCallback = target;\n }", "protected void render(){}", "public final void setHoverFont(FontCallback<DatasetContext> hoverFontCallback) {\n\t\t// sets the callback\n\t\tthis.hoverFontCallback = hoverFontCallback;\n\t\t// checks if consistent\n\t\tif (hoverFontCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.HOVER_FONT, hoverFontCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// stores the font\n\t\t\tsetValueAndAddToParent(CommonProperty.HOVER_FONT, getOriginalHoverFont());\n\t\t}\n\t}", "void onRender(RenderArguments arguments);", "public void setListener(OpenCompositionFragmentCallbackListener listener) {\n this.listener = listener;\n }" ]
[ "0.69459695", "0.68782544", "0.66291237", "0.6487975", "0.6486199", "0.64268595", "0.63713306", "0.6355584", "0.63525933", "0.6266642", "0.6100591", "0.6092953", "0.6092953", "0.6018915", "0.5992185", "0.59786195", "0.59690946", "0.59471136", "0.58980846", "0.5848496", "0.58419526", "0.57440335", "0.57201475", "0.5686973", "0.5675326", "0.56676245", "0.5605415", "0.55723566", "0.55532557", "0.55422705", "0.5540426", "0.5510803", "0.54835093", "0.54727817", "0.5440581", "0.54304785", "0.54302984", "0.5407096", "0.5394701", "0.538785", "0.53833914", "0.5379484", "0.5376194", "0.5371921", "0.53521335", "0.53477246", "0.53057545", "0.5303094", "0.5285021", "0.52822214", "0.5274705", "0.5259127", "0.52590024", "0.521519", "0.52113914", "0.5195848", "0.5187661", "0.5183744", "0.5173938", "0.5160559", "0.51035553", "0.5083849", "0.5066151", "0.50547516", "0.50525147", "0.5048398", "0.5044074", "0.5041082", "0.503662", "0.5029333", "0.5026718", "0.5021729", "0.5018667", "0.5016514", "0.50110763", "0.50110763", "0.5008812", "0.49999171", "0.49725616", "0.4971483", "0.49689803", "0.49626693", "0.49593687", "0.4958475", "0.49508503", "0.4949542", "0.49436772", "0.49189597", "0.49178073", "0.49177888", "0.490439", "0.48973292", "0.48729643", "0.4870129", "0.48640874", "0.48604366", "0.48581344", "0.48578", "0.48577666", "0.48447818" ]
0.6607083
3
Sets callback to be called when context is created for this output.
public static void setContextCreatedCallback( final OutputContextCreatedCallback cb) { Assert.assertNotNull(cb); JWLC.nativeHandler() .wlc_set_output_context_created_cb(new handle_callback_void() { public void callback(Pointer handle) { cb.onContextCreated(Output.from(handle)); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setCreatedCallback(final OutputCreatedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_created_cb(new handle_callback() {\n\n\t\t\tpublic boolean callback(Pointer handle) {\n\t\t\t\treturn cb.onCreated(Output.from(handle));\n\t\t\t}\n\t\t});\n\t}", "public static void setContextDestroyedCallback(\n\t\t\tfinal OutputContextDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_context_destroyed_cb(\n\t\t\t\tnew handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onContextDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void setCallback(String callback) {\r\n this.callback = callback;\r\n }", "@Override\r\n\tpublic void setViewCallback(ViewCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "public void setupCallback(MouseBehaviorCallback callback) {\r\n\t\tthis.callback = callback;\r\n\t}", "public static void setDestroyedCallback(final OutputDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_destroyed_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n\tpublic void contextCreated(String context, boolean toolPlacement) {\n\t}", "public void callback() {\n }", "public void setCallbackHandler(final JsiiCallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n }", "public void setCallbackHandler(final JsiiCallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n }", "void additionalCreationCallback() {\n }", "public void setCallback(boolean callback) {\n this.callback = callback;\n }", "public void setResponseCallback(ApiCallback callback) {\n responseCallback = callback;\n }", "@Override\n\t\t\tpublic void callbackCall() {\n\t\t\t}", "public static void setPreRenderCallback(final OutputPreRenderCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_render_pre_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onPreRender(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n\tpublic void callback() {\n\t}", "public final void setErrorCallback(ErrorCallback cb)\n {\n mErrorCallback = cb;\n }", "public void setCallbackHandler(CallbackHandler callbackHandler) {\n this.callbackHandler = callbackHandler;\n LOG.fine(\"Setting callbackHandler: \" + callbackHandler);\n }", "public void onWrite(Consumer<TransformResult> hook) {\n this.hook = hook;\n }", "@Override\n\tpublic void onCallback() {\n\t\t\n\t}", "protected void setErrorCallback (boolean setCallback) {\n TipcCb pError = null;\n String dest = AppConstants.STATUS_SUBJECT;\n try {\n \tif (setCallback) {\n if (!srv.getSubjectSubscribe(dest)) {\n \t ProcessErrorMessage evRef = new ProcessErrorMessage();\n \t pError = srv.addProcessCb(evRef, dest, srv); \n \t if (pError == null) {\n \t Tut.exitFailure(\"WARNING. Couldn't register Svt Error subject callback!\\n\");\n \t }\n \t srv.setSubjectSubscribe(dest, true);\n \t warn(\"INFO. Subscribed to \" + dest, Color.green);\n \n \t addObserver(errorObserver);\n \t }\n \t} \n else {\n \t if (srv.getSubjectSubscribe(dest)) {\n \t srv.setSubjectSubscribe(dest, false);\n \t warn(\"INFO. Unsubscribed from \" + dest, Color.red);\n \n \t deleteObserver(errorObserver);\n \t }\n \t}\n } \n catch (TipcException Tipe) {\n \tTut.warning(Tipe);\n } \n }", "public static void setPostRenderCallback(\n\t\t\tfinal OutputPostRenderCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_render_post_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onPostRender(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public Installer callback(@NonNull KonamiCodeLayout.Callback callback) {\n this.callback = callback;\n return this;\n }", "public FlowTableOperationsContext callback() {\n return callback;\n }", "public void setListener(Callback callback) {\n final Callback oldCallback = mCallback;\n if (oldCallback != callback) {\n mCallback = callback;\n\n if (callback == null) {\n // Stop listening for changes now that there IS NOT a listener.\n mContext.getContentResolver().unregisterContentObserver(mContentObserver);\n } else if (oldCallback == null) {\n // Start listening for changes now that there IS a listener.\n final ContentResolver cr = mContext.getContentResolver();\n cr.registerContentObserver(Secure.getUriFor(Secure.TWILIGHT_STATE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_AUTO_MODE),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_START_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n cr.registerContentObserver(Secure.getUriFor(Secure.THEME_CUSTOM_END_TIME),\n false /* notifyForDescendants */, mContentObserver, mUserId);\n }\n }\n }", "@Override\n\tpublic void createCB(CB cb) {\n\t\t\n\t}", "public CallbackHandler() {\r\n // TODO Auto-generated constructor stub\r\n }", "public static void setResolutionCallback(\n\t\t\tfinal OutputResolutionCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_resolution_cb(new output_resolution_callback() {\n\n\t\t\t\t\tpublic void callback(Pointer handle, wlc_size fromSize,\n\t\t\t\t\t\t\twlc_size toSize) {\n\t\t\t\t\t\tcb.onResolution(Output.from(handle),\n\t\t\t\t\t\t\t\tSize.from(fromSize), Size.from(toSize));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public LowLevelNetworkHandler setCallback(Callback callback);", "public void callback();", "@Override\n public void onContext() {\n }", "@Override\n protected void bindTarget(BaseWebThemeActivity target) {\n this.mThemeCallback = target;\n }", "@Override\n\tpublic void callback(Object o) {}", "void addLifecycleCallback(LifecycleCallbackItem lifecycleCallbackItem);", "public void setColor(ColorCallback<DatasetContext> colorCallback) {\n\t\t// sets the callback\n\t\tthis.colorCallback = colorCallback;\n\t\t// checks if callback is consistent\n\t\tif (colorCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// otherwise sets null which removes the properties from java script object\n\t\t\tremove(CommonProperty.COLOR);\n\t\t}\n\t}", "public void setProgressCallBack(ProgressEvent progressCallBack)\r\n\t{\r\n\t\tthis.progressCallBack = progressCallBack;\r\n\t}", "public void setConnectionLostCallback(CallbackContext connectionLostCallback) {\n\t\t\tthis.connectionLostCallback = connectionLostCallback;\n\t\t}", "@Override\n\tpublic void setContext(Context pContext) {\n\n\t}", "public CayenneTesterLifecycleManager callback(Consumer<ServerRuntime> callback, CayenneTesterCallbackType type) {\n callbacks.put(callback, type);\n return this;\n }", "public void setOnOpenChatActionCallback(ChatActionCallback callback){\n this.callback=callback;\n }", "public void setCallback(CarouselCallback callback)\n {\n mController.setCallback(callback);\n }", "public void setRenderCallback(@Nullable RendererCallback renderCallback) {\n mRenderCallback = renderCallback;\n }", "public void setColor(NativeCallback colorCallback) {\n\t\t// resets callback\n\t\tsetColor((ColorCallback<DatasetContext>) null);\n\t\t// stores value\n\t\tsetValueAndAddToParent(CommonProperty.COLOR, colorCallback);\n\t}", "@Override\n public void registerCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.add(callback);\n }", "public void setCallback(final CallbackSync callback) {\n\t\tthis.callback = callback;\n\t}", "@Override\n public void set_irq_callback(irqcallbacksPtr callback) {\n konami.irq_callback = callback;\n }", "public interface init_callback extends Callback {\n\t\tint apply(AVCodecContext avctx);\n\t}", "public void setCallback(GameActivity host){\n\t\tthis.callback = host;\n\t}", "public static void registerCallbackHandler(com.sybase.persistence.CallbackHandler handler)\n {\n DELEGATE.registerCallbackHandler(handler);\n }", "public static void setFocusCallback(final OutputFocusCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler().wlc_set_output_focus_cb(new focus_callback() {\n\n\t\t\tpublic void callback(Pointer handle, boolean focusState) {\n\t\t\t\tcb.onFocusChange(Output.from(handle), focusState);\n\t\t\t}\n\t\t});\n\t}", "public void registerCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null) {\n\t\t\t\tm_callbacks.register(callback);\n\t\t\t\tm_soundManager.progressListenerRegistered();\n\t\t\t}\n\t\t}", "public Builder outputHandler(Consumer<String> outputHandler) {\n this.outputHandler = outputHandler;\n return this;\n }", "public void setCallback(StringArrayDialogCallback callback) {\n\t\tthis.callback = callback;\n\t}", "@Override\n\tpublic void configure(Context context) {\n\t\tString regionName = context.getString(\"region\", \"us-east-1\");\n\t\tthis.region = Regions.fromName(regionName);\n\t\tLOG.debug(\"[flume-aws-lambda] Region: \" + region.getName());\n\t\t\n\t\t// set the lambda function name for this sink to invoke\n\t\tthis.functionName = context.getString(\"functionName\");\n\t\tLOG.debug(\"[flume-aws-lambda] Function: \" + this.functionName);\n\t\t\n\t\t// get access and secret keys from context, configure AWS Credentials if\n\t\t// values are present...\n\t\tString accessKey = context.getString(\"accessKey\");\n\t\tString secretKey = context.getString(\"secretKey\");\n\t\t\n\t\tif (!StringUtils.isBlank(accessKey) && !StringUtils.isBlank(secretKey)) {\n\t\t\tLOG.debug(\"[flume-aws-lambda] Setting AWS credentials\");\n\t\t\tthis.credentials = new BasicAWSCredentials(accessKey, secretKey);\n\t\t}\n\t\t\n\t\tif (sinkCounter == null) {\n\t sinkCounter = new SinkCounter(getName());\n\t }\n\t}", "public VolleyRequestHelper(Context context, OnRequestCompletedListener callback) {\n mRequestCompletedListener = callback;\n this.context = context;\n }", "public Consumer<String> outputHandler() {\n return outputHandler;\n }", "@Override\n public void onCallBack(int pos) {\n }", "void registerCallback(BundleTriggerCallback callback);", "void addUserCallback(UserCallback callback);", "@Override\n\t\t\t\t\t\t\t\t\tpublic void callback(int position) {\n\n\t\t\t\t\t\t\t\t\t}", "public final void setFont(FontCallback<DatasetContext> fontCallback) {\n\t\t// sets the callback\n\t\tthis.fontCallback = fontCallback;\n\t\t// checks if consistent\n\t\tif (fontCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, fontCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// stores the font\n\t\t\tsetValueAndAddToParent(CommonProperty.FONT, getOriginalFont());\n\t\t}\n\t}", "public interface start_frame_callback extends Callback {\n\t\tint apply(AVCodecContext avctx, Pointer buf, int buf_size);\n\t}", "public interface alloc_frame_callback extends Callback {\n\t\tint apply(AVCodecContext avctx, AVFrame frame);\n\t}", "public void setCommandInvokedCallback(CommandInvokedCallback commandInvokedCallback) {\n this.commandInvokedCallback = commandInvokedCallback;\n }", "public void setCreateAccLambda(Consumer<Scene> createAccLambda) {\n myCreateAccLambda = createAccLambda;\n }", "public interface Callback {\n void onExpanded(boolean z);\n\n void onInteraction();\n\n void onPrioritySettings();\n }", "void setCallback(IResponseCallback<WalletDataDecl.ListResultTmpl<Response>> cb);", "public void setRenderingCallback(RenderingDelegate renderingdelegate) {\r\n\r\n\t\tthis.renderingdelegate = renderingdelegate;\r\n\t}", "public void setHoverColor(ColorCallback<DatasetContext> hoverColorCallback) {\n\t\t// sets the callback\n\t\tthis.hoverColorCallback = hoverColorCallback;\n\t\t// checks if callback is consistent\n\t\tif (hoverColorCallback != null) {\n\t\t\t// adds the callback proxy function to java script object\n\t\t\tsetValueAndAddToParent(CommonProperty.HOVER_COLOR, hoverColorCallbackProxy.getProxy());\n\t\t} else {\n\t\t\t// otherwise sets null which removes the properties from java script object\n\t\t\tremove(CommonProperty.HOVER_COLOR);\n\t\t}\n\t}", "public void addServerCallback(IServerCallback callback) {\n\t\tserverCallbacks.add(callback);\n\t}", "public void onCreation(java.lang.Object init)\n {\n }", "public void activate(){\n callback.action();\n }", "public void setOutputReceiver(Consumer<String> receiver) {\n out = receiver;\n }", "protected void javaCallback() {\n\t}", "void addEventRegistrationCallback(EventRegistrationCallback eventRegistrationCallback);", "public void setCallbackHandlerClass(String callbackHandlerClass) {\n this.callbackHandlerClass = callbackHandlerClass;\n LOG.fine(\"Setting callbackHandlerClass: \" + callbackHandlerClass);\n }", "public void executer(Callback callback){\n exec();\n if(callback != null){\n System.out.println(\" \" +\n \"[ Callback : callback() : 调用回调函数 ]\");\n callback.call();\n }\n }", "public DocumentCreateCallbackHandler(NavigationDataCallback callback, String fileTypeName,\n String fileScopeName, String fileName) {\n this.callback = callback;\n this.fileTypeName = fileTypeName;\n this.fileScopeName = fileScopeName;\n this.fileName = fileName;\n }", "public RecordingDeleter(AsyncCallback callback) {\r\n\t\t\tthis.callback = callback;\r\n\t\t}", "public void create(HandlerContext context, Management request, Management response) {\n\t\t// TODO Auto-generated method stub\n\n\t}", "protected abstract void instantiateDataForAddNewTemplate (AsyncCallback<DATA> callbackOnSampleCreated) ;", "public void add(Callback definition, InjectionSite injectionSite) {\n definition.setParent(this);\n String name = definition.getName();\n callbacks.put(name, definition);\n Injectable injectable = new Injectable(InjectableType.CALLBACK, name);\n addInjectionSite(injectionSite, injectable);\n injectionSiteMapping.put(definition, injectionSite);\n }", "public void onGenerated(Palette palette) {\n }", "private void writeContext(final JsonGenerator generator) throws IOException {\n Map<String, String> context = GecContext.get();\n if (!context.isEmpty()) {\n generator.writeFieldName(\"context\");\n generator.writeStartObject();\n for (Map.Entry<String, String> entry : context.entrySet()) {\n generator.writeStringField(entry.getKey(), entry.getValue());\n }\n generator.writeEndObject();\n }\n }", "public LastInFirstOutStrategy(iQueueCallback<T> callback) {\n super(callback);\n }", "void addCallback(BiConsumer<Boolean, Boolean> callback);", "public PFTMXCallbackHandler(Object clientData) {\n this.clientData = clientData;\n }", "default void createContext(\n com.google.cloud.aiplatform.v1.CreateContextRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Context> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateContextMethod(), responseObserver);\n }", "private void setApplicationConnectionResultCallback(\n\t\t\tResultCallback_c<Fling.ApplicationConnectionResult> callback) {\n\t\tsynchronized (mLock_xU) {\n\t\t\tif (mResultCallback != null) {\n\t\t\t\tmResultCallback\n\t\t\t\t\t\t.onResult(new ApplicationConnectionResultImpl(\n\t\t\t\t\t\t\t\tnew Status(FlingStatusCodes.CANCELED)));\n\t\t\t}\n\t\t\tmResultCallback = callback;\n\t\t}\n\t}", "public void onCompletion(Runnable callback)\n/* */ {\n/* 158 */ this.completionCallback = callback;\n/* */ }", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n callback = (OnShapeSetupChanged) getActivity();\n }", "public B mo4678a(C0308a<B> callback) {\n if (callback == null) {\n return this;\n }\n if (this.f1122h == null) {\n this.f1122h = new ArrayList();\n }\n this.f1122h.add(callback);\n return this;\n }", "public void setGetCallbackData(ValueExpression getCallbackData) {\n this.getCallbackData = getCallbackData;\n }", "public PFTMXCallbackHandler() {\n this.clientData = null;\n }", "public synchronized void addCallback(MaestroNoteCallback callback) {\n callbacks.add(callback);\n }", "public void initCallBack() {\n saveTodoButton.setOnClickListener(this);\n }", "public void setWorkChangesHandler(WorkChangesHandler callback);", "public void onInitHandle() {\n }", "@Override\r\n\tpublic void onCreate() {\n\t\tsuper.onCreate();\r\n\t\tcontext=this;\r\n\t}", "public RayTracerCallbackHandler(Object clientData){\n this.clientData = clientData;\n }" ]
[ "0.6896084", "0.61894715", "0.6014522", "0.579121", "0.57654965", "0.56009", "0.56000495", "0.5559467", "0.55379564", "0.55379564", "0.5518701", "0.5501381", "0.54440975", "0.543423", "0.5395452", "0.5372816", "0.5359102", "0.533753", "0.527016", "0.5266541", "0.52649474", "0.5264499", "0.5259011", "0.5256076", "0.5243625", "0.5241927", "0.5182859", "0.51502997", "0.5148432", "0.51435024", "0.5130316", "0.51037496", "0.5089104", "0.5081117", "0.5075164", "0.5071548", "0.5039074", "0.5037879", "0.5036352", "0.5035214", "0.5015566", "0.5005276", "0.4998191", "0.4997386", "0.4987652", "0.4962178", "0.49133697", "0.4907303", "0.4889745", "0.48828048", "0.48758265", "0.48725808", "0.48420742", "0.48323274", "0.48244014", "0.48241943", "0.4822591", "0.48080266", "0.47946694", "0.47862646", "0.47839135", "0.4770312", "0.47401035", "0.4733297", "0.4727372", "0.47177166", "0.47046393", "0.467929", "0.46728483", "0.4656812", "0.46515536", "0.46512806", "0.46390265", "0.46293882", "0.46269092", "0.46244413", "0.46139076", "0.46061787", "0.4594232", "0.4587141", "0.45799917", "0.4571247", "0.4569085", "0.45687425", "0.4564108", "0.45589536", "0.4546486", "0.45430717", "0.45430636", "0.4540589", "0.45390946", "0.4526837", "0.4516567", "0.4513649", "0.4510927", "0.4508834", "0.45069993", "0.45027408", "0.4501309", "0.44904542" ]
0.7454282
0
Sets callback to be called when context is destroyed for this output.
public static void setContextDestroyedCallback( final OutputContextDestroyedCallback cb) { Assert.assertNotNull(cb); JWLC.nativeHandler().wlc_set_output_context_destroyed_cb( new handle_callback_void() { public void callback(Pointer handle) { cb.onContextDestroyed(Output.from(handle)); } }); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void setDestroyedCallback(final OutputDestroyedCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_destroyed_cb(new handle_callback_void() {\n\n\t\t\t\t\tpublic void callback(Pointer handle) {\n\t\t\t\t\t\tcb.onDestroyed(Output.from(handle));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "@Override\n protected void onDestroy() {\n handler.removeCallbacks(run);\n super.onDestroy();\n }", "public void destroy() {\n this.mCallback.asBinder().unlinkToDeath(this, 0);\n }", "public void destroy() {\n this.mCallback.asBinder().unlinkToDeath(this, 0);\n }", "@Override\n protected void unBindTarget() {\n this.mThemeCallback = null;\n }", "@Override\r\n\t\t\t\t\t\t\tpublic void callback(Context arg0) {\n\t\t\t\t\t\t\t\tYKPlatform.logout(appContext);\r\n\t\t\t\t\t\t\t\tTypeSDKLogger.d(\"LOGOUT_SUCCESS\");\r\n\t\t\t\t\t\t\t\tTypeSDKNotify_youku notify = new TypeSDKNotify_youku();\r\n\t\t\t\t\t\t\t\tnotify.Logout();\r\n\t\t\t\t\t\t\t}", "@Override\n\tprotected void onDestroy() {\n\t\thandler.removeCallbacks(null);\n\t\tMyApplication.Tag = 0;\n\t\tsuper.onDestroy();\n\t}", "@Override\n public void onDetach() {\n if (callbackManager != null) callbackManager.setActivity(null);\n super.onDetach();\n }", "public void contextDestroyed(ServletContextEvent event) {\r\n \tlog.write(\"Context Destroyed Override - ControlClass\");\r\n \tshutdown();\r\n }", "@Override\n\tprotected void onDestroy() {\n\t\tif (themeHandler!=null) \n\t\t\tthemeHandler.removeCallbacksAndMessages(null);\n\t\tsuper.onDestroy();\n\t}", "public void onDestroy() {\n this.eventDelegate.onDestroy();\n super.onDestroy();\n }", "@Override\n public void unregisterCallback(@NonNull BleMessageStreamCallback callback) {\n mCallbacks.remove(callback);\n }", "public void onDestroy() {\n LOG.mo8825d(\"[onDestroy]\");\n super.onDestroy();\n }", "@Override\r\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\tlogger.debug(\"Destory Logback\");\r\n\t}", "public void setConnectionLostCallback(CallbackContext connectionLostCallback) {\n\t\t\tthis.connectionLostCallback = connectionLostCallback;\n\t\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tif (wt != null && !wt.isCancelled()) {\r\n\t\t\twt.cancel(true);\r\n\t\t}\r\n\t}", "public void onDestroy(){\n\t\tsuper.onDestroy();\n\t\tdoUnbind();\n\t}", "public interface uninit_callback extends Callback {\n\t\tint apply(AVCodecContext avctx);\n\t}", "@Override\n public void onDestroy() {\n this.unregisterReceiver(mReceiver);\n }", "@Override\n protected void onDestroy() {\n Initialization.exit(this);\n super.onDestroy();\n }", "public void unregisterCallback(IInstrumentServiceCallback callback) {\n\t\t\tif (callback != null)\n\t\t\t\tm_callbacks.unregister(callback);\n\t\t}", "@Override\r\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tif (wt != null && !wt.isCancelled()) {\r\n\t\t\twt.cancel(true);\r\n\t\t}\r\n\t\t\r\n\t\tactivity.unregisterReceiver(receiver);\r\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n // IF still in a call\n if (!mCallEnd) {\n leaveChannel();\n }\n // Calling static method that destroys the RtcEngine instance\n RtcEngine.destroy();\n }", "public void onDestroy();", "public void onDestroy();", "@Override\n\t\tpublic void onDestroy() {\n\t\t\tsuper.onDestroy();\n\t\t\tToast.makeText(getApplicationContext(), \"onDestroy\", Toast.LENGTH_SHORT).show();\n\n\t\t\tLog.d(msg, \"The onDestroy() event\");\n\t\t}", "@Override\n protected void onStop() {\n super.onStop();\n uart.unregisterCallback(this);\n uart.disconnect();\n }", "public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tthis.unregisterReceiver(receiver);\n\t}", "void destroy(HandlerContext context);", "@CallSuper\n public void clearSession() {\n callback = null;\n }", "@Override\n\tpublic void destroy() {\n\t\tsuper.destroy(); // Just puts \"destroy\" string in log\n\t\t// Put your code here\n\t}", "public void onDestroy() {\n super.onDestroy();\n getDelegate().g();\n }", "@Override\n protected void onDestroy() {\n EventBus.getDefault().unregister(this);\n\n super.onDestroy();\n }", "abstract void onDestroy();", "@Override\r\n public void onDestroy() {\n\t if (accountChangedReceiver != null) {\r\n\t try {\r\n\t \tunregisterReceiver(accountChangedReceiver);\r\n\t } catch (IllegalArgumentException e) {\r\n\t \t// Nothing to do\r\n\t }\r\n\t }\r\n\r\n // Stop the core\r\n Thread t = new Thread() {\r\n /**\r\n * Processing\r\n */\r\n public void run() {\r\n stopCore();\r\n }\r\n };\r\n t.start();\r\n }", "@Override\r\n\tpublic void destroy() {\r\n\t\tsuper.destroy(); // Just puts \"destroy\" string in log\r\n\t\t// Put your code here\r\n\t}", "public void destroy() {\n leaveChannel();\n mRtcEngine.removeHandler(handler);\n if (eventHandler != null) {\n mRtcEngine.removeHandler(eventHandler);\n }\n RtcEngine.destroy();\n }", "@Override\r\n\tpublic void onCustomDestroy() {\n\t\t\r\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tEventManager.getInstance().removeHandlerListenner(mHandler);\n\t}", "@OnLifecycleEvent(Lifecycle.Event.ON_DESTROY)\n public void onDestroy() {\n if (PatchProxy.isSupport(new Object[0], this, f3104a, false, 39324, new Class[0], Void.TYPE)) {\n PatchProxy.accessDispatch(new Object[0], this, f3104a, false, 39324, new Class[0], Void.TYPE);\n return;\n }\n this.f3106c.clear();\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tstop();\n\t}", "@Override\r\n protected void onDestroy() {\r\n GlobalBus.getBus().unregister(this);\r\n super.onDestroy();\r\n }", "@PreDestroy\n void destroy(InvocationContext ctx) throws Exception {\n SuperclassInterceptorMethodsTest.LIFECYCLE_CALLBACKS.add(\"c\");\n ctx.proceed();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "@Override\n public void onDestroy() {\n if (tts != null) {\n tts.stop();\n tts.shutdown();\n }\n super.onDestroy();\n }", "void destroy() {\n if (this.consumerContext != null) {\n //this.consumerContext.close();\n this.consumerContext = null;\n }\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\ttActivityDisplay.setText(\"On Destroy called\");\n\t}", "@Override\n protected void onDestroy() {\n if (mServiceHelp != null) {\n mServiceHelp.removeOnServiceCallBack();\n }\n\n super.onDestroy();\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tunregisterReceiver(mReceiver);\r\n\t}", "@Override\n public void destroy() {\n super.destroy();\n logger.log(Level.INFO, \"destory() Invoked\");\n }", "@Override\n\tpublic void registerDestructionCallback(String name, Runnable callback) {\n\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tCleanup();\r\n\t}", "@Override\n public void onDestroy() {\n BusProvider.getInstance().unregister(this);\n super.onDestroy();\n }", "@Override\n public void onDestroyActionMode(ActionMode actionMode) {\n mActionMode = null;\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tunregisterReceiver(mReceiver);\n\t}", "public void unregisterCallback() {\n if (mLocalManager == null) {\n Log.e(TAG, \"unregisterCallback() Bluetooth is not supported on this device\");\n return;\n }\n mLocalManager.setForegroundActivity(null);\n mLocalManager.getEventManager().unregisterCallback(this);\n mLocalManager.getProfileManager().removeServiceListener(this);\n }", "@Override\n\tpublic void onDestroy() {\n\t\tif (mApplication != null) {\n\t\t\tmApplication.cleanupObservers();\n\t\t}\n\t\tsuper.onDestroy();\n\t}", "@Override\r\n public void onCleanup() {\n }", "public static void destroy() {\n handler = null;\n initialized = false;\n }", "public void onSessionDestroyed() {\n }", "public void cleanUp() { listener = null; }", "@Override\n\tpublic void onDestroy() {\n\t\tthis.async.cancel(true);\n\t\tthis.timer.removeCallbacks(this.refresh);\n\t\tsuper.onDestroy();\n\n\t}", "@Override\r\n\tpublic void contextDestroyed(ServletContextEvent event) {\r\n\t\tinvoke(\"contextDestroyed\", event);\r\n\t}", "@Override\n\tpublic void registerDestructionCallback(String name, Runnable callback)\n\t{\n\t}", "@Override\n public void onDeactivate() {\n }", "@Override\n\tpublic void onDestroy() {\n\t\ttimer.cancel();\n\t\tsuper.onDestroy();\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tmHandler.removeMessages(0);\n\t\tmHandler.removeMessages(1);\n\t\tmHandler = null;\n\t}", "@Override\n\tpublic void destroy() {\n\t\tSystem.out.println(\"Passage dans destroy\");\n\t}", "@Override\r\n public void onSessionDestroyed() {\r\n onPlaybackStateChanged(null);\r\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\tunregisterReceiver(mUIReceiver);\r\n\t}", "@Override\n public void onDestroy() {\n EventBusWraper.getInstance().unregister(mContext);\n super.onDestroy();\n // unRegister();\n }", "public void onDestroytts() {\n\t\tif (tts != null) {\n\t\t\ttts.stop();\n\t\t\ttts.shutdown();\n\t\t}\n\t\t//super.onDestroy();\n\t}", "@Override\n\tpublic void onDeactivate() {\n\t}", "@Override\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t}", "public void removeCallback(EventCallback<T> callback) {\n callbacks.remove(callback);\n }", "@Override\r\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\t\r\n\t}", "public void onDestroy(Context context) {\n runtimeComponentMap.remove(context);\n\n ViewInspectorToolbar toolbarInstance = toolbarMap.get(context);\n if (toolbarInstance != null) windowManager.removeViewImmediate(toolbarInstance);\n }", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\t\n\t\tif(mReceiver != null) unregisterReceiver(mReceiver);\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tSystem.out.println(\"onDestroy\");\n\t}", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.DeInit();\n\t\tsuper.onDestroy();\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\n\t\tSystem.exit(0);\n\t}", "public void onDispose() {\n\n\t}", "@Override\n\tpublic void onDisposed () {\n\n\t}", "@Override\n\tpublic void onDisposed () {\n\n\t}", "@Override\n protected void onDestroy() {\n super.onDestroy();\n EventBus.getDefault().unregister(this);\n }", "@Override\n\tpublic void contextDestroyed(ServletContextEvent ctx) {\n\t}", "@Override\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\t\t\n\t}", "public void onDestroy() {\r\n }", "@Override\n\tprotected void onDestroy()\n\t{\n\t\tif (mAnnotatedGeometriesGroup != null)\n\t\t{\n\t\t\tmAnnotatedGeometriesGroup.registerCallback(null);\n\t\t}\n\t\t\n\t\tif (mAnnotatedGeometriesGroupCallback != null)\n\t\t{\n\t\t\tmAnnotatedGeometriesGroupCallback.delete();\n\t\t\tmAnnotatedGeometriesGroupCallback = null;\n\t\t}\n\n\t\tsuper.onDestroy();\n\t\tSystem.gc();\n\t}", "@Override\n\tprotected void onDestroy() {\n\t\t\n\t\tsuper.onDestroy();\n\t}", "public void endCallback(){\n inProgress = false;\n desInit();\n }", "@Override\r\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\r\n\t}", "@Override\r\n\tpublic void contextDestroyed(ServletContextEvent arg0) {\n\r\n\t}", "void onDestroy();" ]
[ "0.7036822", "0.62405074", "0.6218273", "0.6218273", "0.60737044", "0.6030159", "0.6002154", "0.5919681", "0.5891853", "0.58624184", "0.5843028", "0.5829678", "0.57482064", "0.5728173", "0.5715345", "0.57048464", "0.5663707", "0.56616545", "0.56294596", "0.5625853", "0.56185395", "0.56142455", "0.5612247", "0.55970097", "0.55970097", "0.5591048", "0.55765027", "0.55585873", "0.55557007", "0.55497754", "0.554786", "0.5538356", "0.552867", "0.5519064", "0.5517631", "0.55133235", "0.5511352", "0.54968905", "0.54856575", "0.5477684", "0.5466102", "0.546438", "0.546274", "0.54620177", "0.54582405", "0.54582405", "0.54582405", "0.54582405", "0.5456753", "0.54488575", "0.5444158", "0.54387313", "0.5435839", "0.5434978", "0.54295295", "0.54293585", "0.5427069", "0.542485", "0.5423828", "0.5422328", "0.5422324", "0.5421856", "0.5420653", "0.5420566", "0.5416498", "0.5409994", "0.54037833", "0.5401837", "0.54016846", "0.5399249", "0.53937256", "0.5390329", "0.53892344", "0.53836876", "0.53731185", "0.5370327", "0.53691876", "0.5367971", "0.5366982", "0.5366982", "0.5366982", "0.5366982", "0.53659075", "0.536352", "0.53612626", "0.53604484", "0.5357562", "0.5353844", "0.53531873", "0.53531873", "0.5344527", "0.5343097", "0.534196", "0.53399414", "0.533946", "0.5334891", "0.53337425", "0.53314847", "0.53314847", "0.5329182" ]
0.75117385
0
/ Methods / Getters
public String getName() { return JWLC.nativeHandler().wlc_output_get_name(this.to()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n protected void getExras() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "@Override\n public void get() {}", "@Override\n\tpublic void getData() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void get() {\n }", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n public String toString() {\n return (super.toString());\n\n }", "@Override\r\n public String toString() {\n return super.toString();\r\n }", "@Override\n public String toString () {\n return super.toString();\n }", "public String getName () { return this.name; }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\n\t\t}", "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "@Override\r\n public String toString() {\r\n return super.toString();\r\n }", "public int getAge() {return age;}", "String getName(){return this.name;}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "@Override\n public String toString() {\n return super.toString();\n }", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\t\tpublic String toString() {\n\t\t\treturn super.toString();\r\n\t\t}", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "@Override\n String get();", "public String getName(){return this.name;}", "protected abstract Set method_1559();", "private Attributes getAttributes()\r\n\t{\r\n\t return attributes;\r\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic String toString(){\n\n\t}", "@Override\n public String toString() {\n return super.toString(); //To change body of generated methods, choose Tools | Templates.\n }", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "private Get() {}", "private Get() {}", "@Override\n String toString();", "@Override\n public String getName(){\n return Name; \n }", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "public String getName(){return name;}", "@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 getName(){ return name; }", "public String getName ()\n {\n return name;\n }", "@Override\n\tpublic void getDetail() {\n\t\t\n\t}", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\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}", "@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\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n public void memoria() {\n \n }", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public void Data(){\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "public abstract String get();", "@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\r\n\tpublic void getProposition() {\n\r\n\t}", "protected String getName(){\r\n return this.name;\r\n }", "private stendhal() {\n\t}", "public String getName()\n {\n return name;\n}", "Objet getObjetAlloue();", "public Book getBook() \t\t{ return this.myBook; }", "public String getAuthor(){return author;}", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void getPrix() {\n\t\t\n\t}", "public contrustor(){\r\n\t}", "public String getName(){\n return name;\n}", "@Override\n public String toString() {\n return value();\n }", "public String getName() { return _name; }", "public String getDescription(){ return description; }", "public String get();", "@Override\r\npublic String toString() {\n\treturn super.toString();\r\n}", "public String getName() \n{\n\treturn name;\n}", "public int getAge()\r\n {\r\n return age;\r\n }" ]
[ "0.6755342", "0.6739988", "0.67151225", "0.6654583", "0.664451", "0.63221437", "0.6284788", "0.6270446", "0.62306035", "0.6211356", "0.6209288", "0.62022245", "0.61955374", "0.6155282", "0.6129222", "0.61140674", "0.61140674", "0.61106974", "0.61077535", "0.6104425", "0.6104425", "0.61027604", "0.61027604", "0.61027604", "0.61027604", "0.60915273", "0.607399", "0.6070644", "0.6067734", "0.6063932", "0.6061781", "0.6059852", "0.6044543", "0.60394263", "0.603382", "0.60097575", "0.6008095", "0.5998573", "0.5998573", "0.59828836", "0.5979125", "0.59721047", "0.59721047", "0.59721047", "0.59721047", "0.5966321", "0.5966321", "0.5966321", "0.5966321", "0.5966321", "0.5966321", "0.59602845", "0.5957573", "0.59561986", "0.59533656", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59509516", "0.59436935", "0.59381294", "0.59306264", "0.5928332", "0.59242564", "0.59172225", "0.59163016", "0.5913896", "0.5913896", "0.58909255", "0.58846843", "0.58805454", "0.5880266", "0.58770394", "0.5876506", "0.58714235", "0.58651143", "0.5864743", "0.5864148", "0.58557487", "0.5847858", "0.58437437", "0.5843289", "0.58422923", "0.5837612", "0.5836843", "0.5832998" ]
0.0
-1
/ Setters Sets the sleep status of this output.
public void setSleep(boolean sleep) { JWLC.nativeHandler().wlc_output_set_sleep(this.to(), sleep); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setSleeping(boolean sleeping);", "protected void setSleeping() {\n isSleeping = true;\n }", "@Override\n public void setSleepTime(int st) {\n this.sleepTime = st;\n\n // notify the update thread so that it can recalculate\n if (updateThread.isRunning())\n updateThread.interrupt();\n }", "private void setSleeping(boolean bool) {\r\n if (sleep != bool) {\r\n this.sleep = bool;\r\n repaint();\r\n if (!sleep) {\r\n synchronized (this.r) {\r\n this.r.notify();\r\n }\r\n }\r\n }\r\n }", "protected void sleep() {\n\t\tSystem.out.println(\"human sleep\");\n\t}", "public void sleep() {\n \t\thealth = maxHealthModifier;\n \t\ttoxicity = 0;\n \t}", "public void sleep(){\n System.out.println(\"Human Sleeps\");\n }", "@Override\n public int getSleepTime() {\n return this.sleepTime;\n }", "public void setSleepy(boolean sleepy) {\n\t\tthis.sleepy = sleepy;\n\t}", "public void setInSleep(boolean isInSleep) {\n\t\tthis.isInSleep = isInSleep;\n\t}", "public void sleep() {\r\n System.out.println(this.animalName + \" sleeps\");\r\n }", "public void setSleepTime(final long l) {\n if (l <= 0) {\n throw new IllegalArgumentException(\"Sleep Time must be a non-zero positive number\");\n }\n sleepTime = l;\n }", "@Override\n\tpublic void sleep() {\n\t\t\n\t}", "@Override\n\tpublic void sleeps() {\n\t\t\n\t}", "private void sleep()\n {\n try {\n Thread.sleep(Driver.sleepTimeMs);\n }\n catch (InterruptedException ex)\n {\n\n }\n }", "public long getSleepTime() {\n return sleepTime;\n }", "private void Perform_SLEEP()\n {\n if (Utils.bit5(get_ioreg(MCUCR)))\n mSleeping = true;\n return;\n }", "private void sleep() {\n\t\tSystem.out.println(\"Ape sleeping\");\n\t}", "public void onSleep() {\n\t\tbehaviour.onSleep();\n\t}", "private void DisplaySleep(){\n\n try {\n TimeUnit.SECONDS.sleep(1);\n }\n catch(InterruptedException e){}\n }", "public void testSleep() {\n System.out.println(\"sleep\");\n long thinkTime = 0L;\n IOUtil.sleep(thinkTime);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public int isSleeping(){\n\t\tif(state == \"SLEEPING\") { return 1; }\n\t\telse\t\t\t\t\t { return 0; }\n\t}", "public long getSleeping() { return sleeping; }", "public boolean isInSleep() {\n\t\treturn isInSleep;\n\t}", "@Override\n protected void sleep(int milliseconds) {\n super.sleep(milliseconds);\n }", "private void sleep() {\n try {\n Thread.sleep(500);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void goToSleep() {\n mPowerManager.goToSleep(SystemClock.uptimeMillis());\n }", "public void sleep(int duration) {\n\t\t\r\n\t\t_height = _height + duration * 1.01; // math for the variables(value) of human height\r\n\t\tSystem.out.println(_fullname + \" is finished to sleep, his height is: \" + _height);\r\n\r\n\t\t\r\n\t}", "public void setSleepPoints(int param) {\n // setting primitive attribute tracker to true\n localSleepPointsTracker = param != java.lang.Integer.MIN_VALUE;\n\n this.localSleepPoints = param;\n }", "@Override\n\tpublic boolean isSleeping() {\n\t\treturn false;\n\t}", "public void setSleepInterval(int len) {\n\t\tsleepSpinner.setValue(len);\n\t}", "public void setSleepingIgnored ( boolean isSleeping ) {\n\t\texecute ( handle -> handle.setSleepingIgnored ( isSleeping ) );\n\t}", "public Turn(int sleep) {\n\t\tsuper();\n\t\tthis.turn = 1;\n\t\tthis.step = STEP_VIRUS;\n\t\tthis.sleep = sleep;\n\t}", "void setHousekeepingSleep(int housekeepingSleep) {\r\n\t\tif( housekeepingSleep <= 0 ) {\r\n\t\t\tthrow new IllegalArgumentException(\"housekeepingSleep must be positive\");\r\n\t\t}\r\n\t\tthis.housekeepingSleep = housekeepingSleep;\r\n\t}", "private long getSleepTime()\n {\n return sleepTime;\n }", "@Override\n public void sleep() {\n System.out.println(\"Zzz...\");\n }", "public abstract void setBlinking(boolean status);", "public void sleep()\n\t{\n\t\ttry\n\t\t{\n\t\t\tThread.sleep(getMilliseconds());\n\t\t}\n\t\tcatch (InterruptedException e)\n\t\t{\n\t\t\t// ignore but return\n\t\t}\n\t}", "@Override\n\tpublic void sleep() {\n\t\t((Application) application()).unlockEC();\n\t\tsuper.sleep();\n\t}", "public void setLin_sleep_thresh(float lin_sleep_thresh) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 40, lin_sleep_thresh);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 40, lin_sleep_thresh);\n\t\t}\n\t}", "public Sleep() {\n\n\t}", "public void sleep(int slp)\n {\n try {\n Thread.sleep(slp);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }", "public void sleep() {\n hunger += 1;\n fatigue = 0;\n\n if (isHungry()) {\n mood -= 1;\n } else {\n mood += 1;\n }\n\n if (!muted) {\n System.out.println(\"sleep\\t|\\tzzzZZZ *sheep*\");\n }\n }", "public void sleep(Creature c){\r\n ((IntelligentAI1)c.attributes.ai).state = EnState.SLEEPING;\r\n c.changeAnimation(\"sleep\");\r\n }", "public void sleep(){\n\n System.out.println(\"ZZZZZZZZZ bubble bubble bubble\");\n }", "private void sleep() {\n try {\n for(long count = 0L; this.DATA_STORE.isButtonPressed() && count < this.sleepTime; count += 20L) {\n Thread.sleep(20L);\n }\n } catch (InterruptedException iEx) {\n // For now, InterruptedException may be ignored if thrown.\n }\n\n if (this.sleepTime > 20L) {\n this.sleepTime = (long)((double)this.sleepTime / 1.3D);\n }\n }", "void sleep();", "void sleep();", "public void setStable() {\n this.unstable = false;\n this.unstableTimeline.stop();\n this.statusLed.setFastBlink(false);\n if (this.shutdownButton.isSelected() == true) {\n this.statusLed.setStatus(\"off\");\n } else if (this.offlineButton.isSelected() == true) {\n this.statusLed.setStatus(\"warning\");\n } else {\n this.statusLed.setStatus(\"ok\");\n } \n }", "public static void sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t}", "@Override\n\tpublic void msgGoToSleep() {\n\t\t\n\t}", "public synchronized final void setStatus(int sts) {\n\t\tm_status = sts;\n\t\tnotifyAll();\n\t}", "public void setAng_sleep_thresh(float ang_sleep_thresh) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeFloat(__io__address + 44, ang_sleep_thresh);\n\t\t} else {\n\t\t\t__io__block.writeFloat(__io__address + 44, ang_sleep_thresh);\n\t\t}\n\t}", "public boolean isSleepy() {\n\t\treturn sleepy;\n\t}", "protected void setWait(int _wait)\t\t{\twait = _wait;\t\t}", "void sleep ();", "void sleep()\r\n\t{\r\n\t\t\r\n\t}", "private void schedulerSleep() {\n\n\t\ttry {\n\n\t\t\tThread.sleep(timeSlice);\n\n\t\t} catch (InterruptedException e) {\n\t\t}\n\t\t;\n\n\t}", "private void sleep(int number) {\n\t\ttry {\n\t\t\tThread.sleep(number);\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}}", "private void setBidded(){\n this.status = \"Bidded\";\n }", "private void sleepFor(long t) {\n\t\ttry {\n\t\t\tThread.sleep(t);\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}", "public void setgetStatus()\r\n\t{\r\n\t\tthis.status = 'S';\r\n\t}", "public void status(boolean b) {\n status = b;\n }", "private void Sleep() {\n\t\ttry {\n\t\t\tThread.sleep(10 * 1000);\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}", "private void setStatus() {\n\t\t// adjust the status of the rest\n\t\tif (rest.getState().equals(RestState.INACTIVE)) {\n\t\t\t// set status to heating\n\t\t\trest.setState(RestState.HEATING);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.HEATING) && temperatureSensor.getTemperature() >= (rest.getTemperature() - tolerance)) {\n\t\t\t// set status to active\n\t\t\trest.setState(RestState.ACTIVE);\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t} else if (rest.getState().equals(RestState.ACTIVE)\n\t\t\t\t&& (new GregorianCalendar().getTimeInMillis() - rest.getActive().getTimeInMillis()) / 1000 / 60 > rest.getDuration()) {\n\t\t\t// time is up :)\n\t\t\tif (rest.isContinueAutomatically()) {\n\t\t\t\trest.setState(RestState.COMPLETED);\n\t\t\t} else {\n\t\t\t\trest.setState(RestState.WAITING_COMPLETE);\n\t\t\t}\n\t\t\tlog.info(rest.getName() + \" is now in state \" + rest.getState());\n\t\t}\n\t}", "public int updateSleeping() {\n //sleeping = 1.3 + 7-energy/10 -- Eat until foodAmt == 0 or 2 more than the lowest stat\n //wake up = 1.0 + 7-stat/10 -- Get the highest value to compare to eating value\n options[0] = (1.0 + ((5.0-(double)energy)/10.0)); // sleep\n options[1] = (1.0 + ((7.0-(double)food)/10.0)); // eat\n options[2] = (1.0 + ((7.0-(double)water)/10.0)); // drink\n \n int maxStat = getMax();\n \n if(maxStat == 0)\n return 0;\n else\n return 1;\n }", "private Sleep(Duration duration) {\n this.duration = duration;\n }", "public void setStatus(String stat)\n {\n status = stat;\n }", "public double getSleepEfficiency() {\n\t\treturn sleepEfficiency;\n\t}", "protected void pause() {\n sleep(300);\n }", "public void setStatus(boolean stat) {\n\t\tstatus = stat;\n\t}", "private synchronized void sleepUntilFirstStudent() throws InterruptedException {\n System.out.println(\"TA: TA taking a nap. ZzZz...\");\n isSleeping = true;\n\n while(isSleeping){\n wait();\n }\n\n }", "public SleepObject() {\n date = new Date();\n }", "public void setBetDelay(Integer betDelay){\n this.betDelay = betDelay;\n }", "public void setStatus(Boolean s){ status = s;}", "public void setWaitSwitch(Long WaitSwitch) {\n this.WaitSwitch = WaitSwitch;\n }", "public boolean isSetSleeping() {\n return EncodingUtils.testBit(__isset_bitfield, __SLEEPING_ISSET_ID);\n }", "public void setSleepingAllowed (boolean flag) {\n\t\tbody.setSleepingAllowed(flag);\n\t}", "public synchronized void setStatus(Status stat) {\n if (!isMutable()) {\n throw new IllegalStateException(\n \"This TestResult is no longer mutable!\");\n }\n\n if (stat == null) {\n throw new IllegalArgumentException(\n \"TestResult status cannot be set to null!\");\n }\n\n // close out message section\n sections[0].setStatus(null);\n\n execStatus = stat;\n\n if (execStatus == inProgress) {\n execStatus = interrupted;\n }\n\n // verify integrity of status in all sections\n for (Section section : sections) {\n if (section.isMutable()) {\n section.setStatus(incomplete);\n }\n }\n\n props = PropertyArray.put(props, SECTIONS,\n StringArray.join(getSectionTitles()));\n props = PropertyArray.put(props, EXEC_STATUS,\n execStatus.toString());\n\n // end time now required\n // mainly for writing in the TRC for the Last Run Filter\n if (PropertyArray.get(props, END) == null) {\n props = PropertyArray.put(props, END, formatDate(new Date()));\n }\n\n // this object is now immutable\n notifyCompleted();\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "public void setStatus(boolean value) {\n this.status = value;\n }", "private void setUIStatePaused(){\n countdownLabel.setText(\"Paused\");\n play.setEnabled(true);\n pause.setEnabled(false);\n stop.setEnabled(true);\n }", "public void set(V value) {\n Rules.checkAttributeValue(value);\n checkType(value);\n this.value = value;\n isSleeping = false;\n notifyObservers();\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public void setStatus(int value) {\n this.status = value;\n }", "public boolean isSleeping ( ) {\n\t\treturn extract ( handle -> handle.isSleeping ( ) );\n\t}", "public void sleep(Agent ag, long millis) throws InterruptedException {\n getThreadFor(ag).sleep(millis);\n stats.add(new SleepStat(ag.getClass()), millis);\n\n }", "public interface Sleepable\n{\n\tvoid sleep();\n}", "public final void sleep(int millis) {\n Utils.sleep(millis);\n }", "void setStaStart(double staStart);", "private void sleep() {\n try {\n Thread.sleep(3000L);\n }\n catch (Exception ignored) {\n Log.trace(\"Sleep got interrupted.\");\n }\n }", "public void setStatus(String value) {\r\n setAttributeInternal(STATUS, value);\r\n }", "public synchronized void set() {\n this.currentState = EventState.UP;\n notify();\n }", "public void setSleepImage(java.lang.String param) {\n localSleepImageTracker = true;\n\n this.localSleepImage = param;\n }", "public void setDelay(long delay) {\n this.delay = delay;\n }", "void setPulsePercentage(int percentage);", "public void setUnstable() {\n this.unstable = true;\n this.unstableTimeline.play();\n if (this.online == true) {\n this.statusLed.setStatus(\"alert\");\n this.statusLed.setFastBlink(true);\n }\n }", "public void setDelay(long d){delay = d;}", "@Test\n public void ifMyPetIsSleepingIncreaseInitialValueBy2() {\n underTest.tick(2);\n int actualSleepLevel = underTest.getSleepLevel();\n assertThat(actualSleepLevel, is(10));\n }", "public void setStatus(String value) {\n setAttributeInternal(STATUS, value);\n }" ]
[ "0.7213523", "0.7210853", "0.71188945", "0.67102057", "0.65357983", "0.64440405", "0.64335734", "0.6405868", "0.6273292", "0.62229425", "0.6136222", "0.60889643", "0.6055748", "0.6054748", "0.6044076", "0.60419536", "0.6028719", "0.5971066", "0.59449184", "0.59204966", "0.591386", "0.58845955", "0.5881144", "0.5869861", "0.58695996", "0.5807568", "0.5806245", "0.57637656", "0.5754903", "0.57512116", "0.57253784", "0.57171655", "0.5703051", "0.56734616", "0.5651205", "0.563844", "0.5607546", "0.55860364", "0.5566804", "0.5544968", "0.5532406", "0.5528895", "0.54999274", "0.5479156", "0.547375", "0.5471241", "0.5470636", "0.5470636", "0.5451518", "0.54364675", "0.54196036", "0.54080856", "0.54008317", "0.53590864", "0.5349539", "0.53457206", "0.53441656", "0.5329854", "0.52929986", "0.5292036", "0.52897507", "0.52892315", "0.5263477", "0.52614254", "0.5260646", "0.5255282", "0.5226688", "0.51527137", "0.51349694", "0.5129495", "0.51060224", "0.50988835", "0.5088258", "0.5073625", "0.5069962", "0.50597245", "0.5059305", "0.5052397", "0.50465465", "0.5040228", "0.5040228", "0.5026188", "0.50137734", "0.50075984", "0.50075984", "0.5006752", "0.49995053", "0.49875855", "0.4979831", "0.49443868", "0.49408907", "0.4940107", "0.49391896", "0.49327263", "0.49307615", "0.49212125", "0.49207252", "0.4919223", "0.49083298", "0.49080056" ]
0.77285653
0
Sets the resolution of this output.
public void setResolution(Size resolution, long scale) { Assert.assertNotNull(resolution); JWLC.nativeHandler().wlc_output_set_resolution(this.to(), resolution.to(), Utils.getAsUnsignedInt(scale)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setResolution(int value) {\n this.resolution = value;\n }", "public void setResolution(int resolution)\r\n\t{\r\n\t\tduration *= resolution;\r\n\t\tduration /= this.resolution;\r\n\t\tthis.resolution = resolution;\r\n\t}", "public void setResolution(Resolution resolution) {\n this.resolution = resolution;\n }", "public T setResolution(double resolution) {\n this.resolution = resolution;\n return self();\n }", "public void setResolution(Vector2ic resolution){\n this.resolution.set(resolution);\n resolutionMultiplexer.handle(new WindowResolutionEvent(handle, resolution.x(), resolution.y()));\n }", "public void setResolution(String resolution) {\n this.resolution = resolution;\n }", "public void SetResolution() {\r\n DisplayMetrics displayMetrics = new DisplayMetrics();\r\n WindowManager wm = (WindowManager) getContext().getSystemService(Context.WINDOW_SERVICE);\r\n wm.getDefaultDisplay().getMetrics(displayMetrics);\r\n this.ScreenWidth = displayMetrics.widthPixels;\r\n this.ScreenHeight = displayMetrics.heightPixels;\r\n }", "public void setResolution(java.lang.Object resolution) {\n this.resolution = resolution;\n }", "@Option(name = \"-R\", aliases = \"--resolution\", metaVar = \"<resolution>\", usage = \"Aggregate resolution in seconds.\")\n void setResolution(Duration resolution) {\n m_resolution = resolution;\n }", "void setVResolution(short resolution);", "void setHResolution(short resolution);", "public int getResolution() {\n return resolution;\n }", "public float getResolution() {\n return resolution;\n }", "public native void setUnits(int resolutionType) throws MagickException;", "public double getResolution() {\n return resolution;\n }", "public MediaDeviceDescription setResolution(float resolution) {\n this.resolution = resolution;\n return this;\n }", "public int getResolution() {\n return this.resolution;\n }", "void setHorizontalResolution(int horizontalResolution);", "public String getResolution() {\n return resolution;\n }", "public String getResolution() {\n return resolution;\n }", "public void setResolution(String resolution) {\n this.resolution = resolution == null ? null : resolution.trim();\n }", "public String getResolution() {\n return this.resolution;\n }", "public void setR_Resolution_ID (int R_Resolution_ID);", "public void setResolution(byte resolution) throws IOException {\n byte userRegister = read_user_register(); //Go get the current register state\n userRegister &= 0b01111110; //Turn off the resolution bits\n resolution &= 0b10000001; //Turn off all other bits but resolution bits\n userRegister |= resolution; //Mask in the requested resolution bits\n\n HTU21D.WRITE_USER_REG.write(device, userRegister);\n\n }", "@Override\n\tpublic void setResolution(Dimension size) {\n\n\t}", "public native void setXResolution(double xRes) throws MagickException;", "public void setTargetResolution(int w, int h) {\n captureW = w;\n captureH = h;\n }", "void setVerticalResolution(int verticalResolution);", "public final Vector2f getResolution() {\r\n return settings.getResolution();\r\n }", "public Resolution getResolution() {\n return resolution;\n }", "public static void setResolution(int width, int height) {\n WIDTH = width;\n HEIGHT = height;\n SCALAR = 1920 / WIDTH + ((1920 % WIDTH == 0) ? 0 : 1);\n }", "public void setScreenResolution(int width, int height) {\n String res = Integer.toString(width) + \"x\" + Integer.toString(height);\n this.standardPairs.put(Parameters.RESOLUTION, res);\n }", "public native void setYResolution(double yRes) throws MagickException;", "public static void setResolutionCallback(\n\t\t\tfinal OutputResolutionCallback cb) {\n\t\tAssert.assertNotNull(cb);\n\n\t\tJWLC.nativeHandler()\n\t\t\t\t.wlc_set_output_resolution_cb(new output_resolution_callback() {\n\n\t\t\t\t\tpublic void callback(Pointer handle, wlc_size fromSize,\n\t\t\t\t\t\t\twlc_size toSize) {\n\t\t\t\t\t\tcb.onResolution(Output.from(handle),\n\t\t\t\t\t\t\t\tSize.from(fromSize), Size.from(toSize));\n\t\t\t\t\t}\n\t\t\t\t});\n\t}", "public void setQuality(float quality);", "public final void setRealSize() {\r\n setZoom(ZOOM_REAL_SIZE);\r\n }", "public int resolution()\r\n\t{\r\n\t\treturn resolution;\r\n\t}", "public short getResolutionUnit()\r\n\t{\r\n\t\treturn super.getShort(0);\r\n\t}", "void setStats(double newWidth, double newHeight) {\n width = newWidth;\n height = newHeight;\n }", "@Override\n\tpublic Dimension getResolution() {\n\t\treturn null;\n\t}", "public void setScaleFactor(float scale){\n scaleFactor = scale;\n }", "public void initResolution(int height, int width, double viewAngle) {\n\t\tthis.resolutionX = width;\n\t\tthis.resolutionY = height;\n\t\tthis.plainWidth = 2.0 * Math.tan(Math.toRadians(viewAngle / 2.0)) * this.distanceToPlain;\n\t}", "public void settings() {\r\n size(WIDTH, HEIGHT); // Set size of screen\r\n }", "public void setScale() {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n scaleAffine();\n Scalebar.putZoomLevelDistances();\n\n //Set up the JFrame using the monitors resolution.\n setSize(screenSize); //screenSize\n setPreferredSize(new Dimension(800, 600)); //screenSize\n setExtendedState(Frame.NORMAL); //Frame.MAXIMIZED_BOTH\n }", "public void setQuality(int value)\n\t{\n\t\tconfigManager.setQuality(value);\n\t\tupdatePreviewSize();\n\t}", "public void setWidth(double value) {\n this.width = value;\n }", "public java.lang.Object getResolution() {\n return resolution;\n }", "short getVResolution();", "public void settings() {\n size(640, 384);\n }", "public void setFPS(double frequency) {\n\t\tif (frequency > MAX_FREQUENCY) {\n\t\t\tfrequency = MAX_FREQUENCY;\n\t\t}\n\t\tif (frequency < MIN_FREQUENCY) {\n\t\t\tfrequency = MIN_FREQUENCY;\n\t\t}\n\t\tthis.frequency = frequency;\n\t}", "public static void setSpeedScalingFactor(double speedFactor)\n\t{\n\t\tspeedScalingFactor = speedFactor;\n\t//\telse speedScalingFactor = SpeedBasedDetection.DEF_SCALING_FACTOR;\n\t\t//\t\tSystem.out.println(\"speedScalingFactor: \"+speedScalingFactor);\n\t\t//Prefs.speedScalingFactor = speedScalingFactor;\n\t}", "public void resolution() {\n\t\tLigneProposition essai = new LigneProposition(p.getNbTrou());\n\t\t\n\t\tfor(int i = 0; i < p.getNbTrou(); i++) {\n\t\t\tessai.setAt(i, 1 + (int)(Math.random() * ((p.getNbCouleur() -1))));\n\t\t}\n\t\t\n\t\tp.ajouterEssai(essai);\n\t}", "void setDimension(double width, double height);", "public void setQuality(int quality) {\n this.quality = quality;\n }", "public void setQuality(int quality) {\n this.quality = quality;\n }", "public void setScale(float scale);", "public void setRes(){\r\n \r\n }", "public void setResolutions(final int orientation) {\r\n double xStep = 1.0;\r\n double yStep = 1.0;\r\n double zStep = 1.0;\r\n final double thickness = getMincSliceThickness();\r\n\r\n for (final FileMincVarElem element : varArray) {\r\n\r\n if (element.name.equals(\"xspace\")) {\r\n xStep = element.step;\r\n }\r\n\r\n if (element.name.equals(\"yspace\")) {\r\n yStep = element.step;\r\n }\r\n\r\n if (element.name.equals(\"zspace\")) {\r\n zStep = element.step;\r\n }\r\n }\r\n\r\n setSliceThickness(Math.abs((float) thickness));\r\n\r\n if (getExtents().length == 2) {\r\n setResolutions(Math.abs((float) xStep), 0);\r\n setResolutions(Math.abs((float) yStep), 1);\r\n } else if (getExtents().length == 3) {\r\n\r\n switch (orientation) {\r\n\r\n case SAGITTAL:\r\n setResolutions(Math.abs((float) xStep), 2);\r\n setResolutions(Math.abs((float) yStep), 0);\r\n setResolutions(Math.abs((float) zStep), 1);\r\n break;\r\n\r\n case CORONAL:\r\n setResolutions(Math.abs((float) xStep), 0);\r\n setResolutions(Math.abs((float) yStep), 2);\r\n setResolutions(Math.abs((float) zStep), 1);\r\n break;\r\n\r\n case AXIAL:\r\n default:\r\n setResolutions(Math.abs((float) xStep), 0);\r\n setResolutions(Math.abs((float) yStep), 1);\r\n setResolutions(Math.abs((float) zStep), 2);\r\n break;\r\n }\r\n }\r\n }", "@Override\n public void settings() {\n setSize(WIDTH, HEIGHT);\n }", "protected void setScaleDenominator(double scaleDenominator) {\n this.scaleDenominator = scaleDenominator;\n }", "private IIOMetadata setDPI(IIOMetadata metadata) throws IIOInvalidTreeException {\n\n IIOMetadataNode lat = new IIOMetadataNode(\"GPS Latitude\");\n lat.setAttribute(\"value\",Double.toString(26.6200042939));\n IIOMetadataNode log = new IIOMetadataNode(\"GPS Longitude\");\n log.setAttribute(\"value\",Double.toString(106.6757104939));\n\n\n IIOMetadataNode dim = new IIOMetadataNode(\"Dimension\");\n dim.appendChild(lat);\n dim.appendChild(log);\n\n IIOMetadataNode root = new IIOMetadataNode(\"javax_imageio_1.0\");\n root.appendChild(dim);\n\n metadata.mergeTree(\"javax_imageio_1.0\", root);\n\n return metadata;\n }", "public void setZoom(float zoom){\r\n zoom = zoom * 100;\r\n zoom = Math.round(zoom);\r\n this.zoom = Math.max(zoom / 100, 0.01f);\r\n }", "private double resolution(int zoom) {\n\t\treturn this.initialResolution / (Math.pow(2, zoom));\r\n\t}", "public void setQuality(Integer quality) {\n this.quality = quality;\n }", "public void setSpeed(final double speed) {\n m_X.set(ControlMode.PercentOutput, speed); \n }", "public void setScale(double s){\n\t\tsetParameters(location, s);\n\t}", "public void pidWrite(double output) {\n set(output);\n }", "short getHResolution();", "public void setWidth(double w)\n { this.widthDefault = w; }", "public void setWidth(double width) {\n this.width = width;\n }", "public void setQuality(int value) {\n this.quality = value;\n }", "public void setZoom(int ps) {\n P_SCALE = ps;\n //EMBOSS = P_SCALE*8;\n }", "public void setResistance(double resistance) {\n\t\tthis.resistance = resistance;\n\t}", "void setWindowSize(int s);", "public void zoom() {\n\t\tdisp.zoom();\n\t\texactZoom.setText(disp.getScale() + \"\");\n\t\tresize();\n\t\trepaint();\n\t}", "public void setWidth(double width) {\r\n this.width = width;\r\n }", "private void setWidth(long value) {\n bitField0_ |= 0x00000004;\n width_ = value;\n }", "public void setViewportFit(@WebContentsObserver.ViewportFitType int value) {\n if (value == mViewportFit) return;\n\n mViewportFit = value;\n maybeUpdateLayout();\n }", "public abstract Builder setOutputWidth(int value);", "public void setValue(float value)\n {\n \tPixelVal = value;\n }", "@Override\n public void settings() {\n size(800, 800, P3D);\n }", "public void setScreenSize(int width, int height) {\r\n\t\tthis.width = width;\r\n\t\tthis.height = height;\r\n\t\tthis.halfWidth = width >> 1;\r\n\t\tthis.halfHeight = height >> 1;\r\n\t\tthis.scaleFactor = ((width + height) >> 7) + 1;\r\n\t\tchanged = true;\r\n\t}", "public void setWidth(int width) {\n\tthis.width = width;\n\tcalculateWidthRatio();\n }", "public void setZoom(){\n\t\tactive.setZoom();\n\t}", "@Override\n\tpublic void settings() {\n\t\tSystem.out.println(\"settings\");\n\t\tsize(800, 800);\n\t}", "public void setUnit () {\n\t\tdouble f = factor;\n\t\t/* Transform the value as a part of Unit */\n\t\tif (Double.isNaN(value)) return;\n\t\tif ((mksa&_log) != 0) {\n\t\t\tif ((mksa&_mag) != 0) value *= -2.5;\n\t\t\tfactor *= AstroMath.dexp(value);\n\t\t\tvalue = 0;\n\t\t}\n\t\telse {\n\t\t\tfactor *= value;\n\t\t\tvalue = 1.;\n\t\t}\n\t\t// Transform also the symbol\n\t\tif (f != factor) {\n\t\t\tif (symbol == null) symbol = edf(factor);\n\t\t\telse symbol = edf(factor) + toExpr(symbol);\n\t\t}\n\t}", "public void setFrameSize();", "public void setWidth(double width) {\n this.width = width;\n }", "@TargetApi(19)\n @SuppressWarnings(\"deprecation\")\n public void setDefaultScreenResolution(Context context) {\n WindowManager windowManager =\n (WindowManager) context.getSystemService(Context.WINDOW_SERVICE);\n Display display = windowManager.getDefaultDisplay();\n Point size = new Point();\n\n try {\n Class<?> partypes[] = new Class[1];\n partypes[0] = Point.class;\n Display.class.getMethod(\"getSize\", partypes);\n display.getSize(size);\n this.setScreenResolution(size.x, size.y);\n } catch (NoSuchMethodException e) {\n Logger.e(TAG, \"Display.getSize isn't available on older devices.\");\n this.setScreenResolution(display.getWidth(), display.getHeight());\n }\n }", "public void setResistancePoint(int resistancePoint) {\r\n\t\tthis.resistancePoint = resistancePoint;\r\n\t}", "void setWidth(int width);", "void setWidth(int width);", "public void settings() {\r\n size(750, 550);\r\n }", "@Override\n\t\t\tpublic void doMyThings() {\n\t\t\t\tsetVideoScale(SCREEN_DEFAULT);\n\t\t\t}", "@Override\n public void setScale(float scale) {\n this.scale = scale;\n }", "public void setMagnitude()\n {\n magnitude = (float) Math.sqrt(Math.pow(fx, 2) + Math.pow(fy, 2) + Math.pow(fz, 2));\n }", "public synchronized void setOutputLimit(double limit)\n {\n limit = Math.abs(limit);\n setOutputRange(-limit, limit);\n }", "private static void setUniverse(double R) {\n StdDraw.setXscale((-R), (R));\n StdDraw.setYscale((-R), (R));\n }", "public void setFpsDisplay(final boolean fDisplay) { fpsDisplay = fDisplay; }", "public void setDisplaySize(int width, int height)\r\n\t{\r\n\t\tint xDiff = (int) Math.abs(height - height*ASPECT);\r\n\t\tint yDiff = (int) Math.abs(width - width/ASPECT);\r\n\t\tif (xDiff < yDiff)\r\n\t\t{\r\n\t\t\tmMaxWidth = (int) (height*ASPECT);\r\n\t\t\tmMaxHeight = height;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tmMaxWidth = width;\r\n\t\t\tmMaxHeight = (int)(width/ASPECT);\r\n\t\t}\r\n\t}" ]
[ "0.80535877", "0.7725859", "0.76219016", "0.7432532", "0.7131171", "0.71031845", "0.70949787", "0.7073764", "0.70725083", "0.7040604", "0.6946708", "0.68712443", "0.68134063", "0.6808989", "0.68079317", "0.6750489", "0.67430407", "0.6736786", "0.6691865", "0.6691865", "0.6594097", "0.65652245", "0.64668614", "0.64081603", "0.63924146", "0.6386657", "0.63764656", "0.63362414", "0.62765753", "0.6222345", "0.61596394", "0.61070186", "0.60716635", "0.5988919", "0.5980938", "0.59488314", "0.58725923", "0.5814986", "0.5774527", "0.5711818", "0.56790066", "0.5661791", "0.5648476", "0.5645167", "0.56187946", "0.5589739", "0.55612147", "0.5557194", "0.55263966", "0.5521623", "0.55076855", "0.55074406", "0.5500291", "0.5481008", "0.5481008", "0.54803205", "0.5462375", "0.5459925", "0.5453122", "0.5437013", "0.5433043", "0.54176724", "0.54122424", "0.5408859", "0.540107", "0.53935575", "0.53907293", "0.53855795", "0.5364353", "0.5349459", "0.5342103", "0.53366214", "0.5331971", "0.5326691", "0.5323253", "0.5319913", "0.53151774", "0.53055984", "0.53031975", "0.5297391", "0.5294068", "0.52892745", "0.52606237", "0.5245928", "0.52449185", "0.52448696", "0.5240875", "0.5239753", "0.5231636", "0.5230113", "0.5229798", "0.5229798", "0.52202284", "0.5218202", "0.5212165", "0.52056795", "0.5190515", "0.5189769", "0.5183674", "0.5182524" ]
0.71751696
4
After this call, output will have only views provided in the list.
public boolean setViews(List<View> views) { Pointer[] ptrArray = new Pointer[views.size()]; int it = 0; for (View v : views) ptrArray[it++] = v.to(); return JWLC.nativeHandler().wlc_output_set_views(this.to(), ptrArray, views.size()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void viewAll() {\n click(viewAllLink);\n }", "@Override\n public java.util.List<MateriliazedView> getViewsList() {\n return views_;\n }", "List<ViewDefinition> list();", "private List<Class<?>> extractViews(List<Class<?>> views) {\n return views.subList(0, views.size() - 1);\n }", "@Override\n public int getViewsCount() {\n return views_.size();\n }", "public void viewList() {\n\t\tSystem.out.println(\"Your have \" + contacts.size() + \" contacts:\");\n\t\tfor (int i=0; i<contacts.size(); i++) {\n\t\t\tSystem.out.println((i+1) + \". \" \n\t\t\t\t\t+ contacts.get(i).getName() + \" number: \" \n\t\t\t\t\t+ contacts.get(i).getPhoneNum());\n\t\t}\n\t}", "private void producueViews() {\n if (splittedPostComponent != null && splittedPostComponent.size() > 0) {\n // loop through each component\n for (int i = 0; i < splittedPostComponent.size(); i++) {\n // create view if collection did not equal to empty string \"\"\n if (!splittedPostComponent.get(i).trim().equals(\"\")) {\n generateView(splittedPostComponent.get(i));\n }\n }\n }\n }", "java.util.List<MateriliazedView>\n getViewsList();", "public void viewAccepted(View new_view) {\n this.view=new_view;\n log.trace(\"[Relayer \" + channel.getAddress() + \"] view: \" + new_view);\n\n Map<String,List<Address>> tmp=extract(new_view);\n Set<String> down=new HashSet<>(routes.keySet());\n Set<String> up=new HashSet<>();\n\n down.removeAll(tmp.keySet());\n\n routes.keySet().retainAll(tmp.keySet()); // remove all sites which are not in the view\n\n for(Map.Entry<String,List<Address>> entry: tmp.entrySet()) {\n String key=entry.getKey();\n List<Address> val=entry.getValue();\n\n List<Route> newRoutes;\n if(routes.containsKey(key))\n newRoutes=new ArrayList<>(routes.get(key));\n else {\n newRoutes=new ArrayList<>();\n if(up != null)\n up.add(key);\n }\n\n // Remove routes not in the view anymore:\n newRoutes.removeIf(route -> !val.contains(route.siteMaster()));\n\n // Add routes that aren't yet in the routing table:\n val.stream().filter(addr -> !contains(newRoutes, addr))\n .forEach(addr -> newRoutes.add(new Route(addr, channel, relay, log).stats(stats)));\n\n if(newRoutes.isEmpty()) {\n routes.remove(key);\n down.add(key);\n up.remove(key);\n }\n else\n routes.put(key, Collections.unmodifiableList(newRoutes));\n }\n if(!down.isEmpty())\n relay.sitesChange(true, down.toArray(new String[0]));\n if(!up.isEmpty())\n relay.sitesChange(false, up.toArray(new String[0]));\n }", "private void populateViewCollections() {\n\n\t}", "private void viewList() {\r\n PrintListMenuView listMenu = new PrintListMenuView();\r\n listMenu.displayMenu();\r\n }", "private void doViewAllTasks() {\n ArrayList<Task> t1 = todoList.getListOfTasks();\n if (t1.size() > 0) {\n for (Task task : t1) {\n System.out.println(task.getTime() + \" \" + task.getDescription() + \" \" + task.getDate());\n }\n } else {\n System.out.println(\"No tasks available.\");\n }\n }", "@Override\n\tpublic void view() {\n\t\t\n\t}", "private static void registerAllViews() {\n Aggregation latencyDistribution =\n Aggregation.Distribution.create(BucketBoundaries.create(Arrays.asList(0.0, 5.0, 10.0, 15.0, 20.0)));\n\n // Define the views\n List<TagKey> noKeys = new ArrayList<TagKey>();\n View[] views =\n new View[]{\n View.create(\n Name.create(\"ocjavaexporter/latency\"),\n \"The distribution of latencies\",\n M_LATENCY_MS,\n latencyDistribution,\n noKeys)\n };\n\n // Create the view manager\n ViewManager vmgr = Stats.getViewManager();\n\n // Then finally register the views\n for (View view : views) {\n vmgr.registerView(view);\n }\n }", "public void view() {\r\n\t\tfor (int i = 0; i < this.getTableNumber(); i++) {\r\n\t\t\tthis.getTables(i).view();\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}", "public Set<String> getViews() {\n return views;\n }", "@Override\n public void onClick(View view) {\n bitmaps.clear();\n listMapKeys.clear();\n //determination of the number of photos\n nbPhotosToPrint=getNbPhotosToPrintByCategory(PhotoCategories.GENERAL_VIEW_ACCESS);\n helper.retrieveSpacePhotoUrlDownloadsByPhotoCategories(PhotoCategories.GENERAL_VIEW_ACCESS,idWorksite);\n }", "public void printList() {\n userListCtrl.showAll();\n }", "private void clearAllViews() {\n\t\tTextView usage=(TextView)view.findViewById(R.id.word_usage);\n\t\tusage.setVisibility(View.GONE);\n\n\t}", "public void assignAndClear(ViewParams view) {\n view.renderList = new RenderList(renderList);\n renderList = new ArrayList<RenderEntity>();\n viewList.add(view);\n }", "public void viewAllReviews(View v){\n //Check if initialized to prevent null pointer\n if(currentBook.reviews != null) {\n int startIndex = mReviews.getChildCount() - 1; //Get index of last visible view\n int endIndex = currentBook.reviews.size() - 1; //Get index of last possible view\n\n //If there exist more views than are shown\n if(endIndex > startIndex){\n reviewAdapter(currentBook.reviews, mReviews, startIndex, endIndex, true);\n mSeeAll.setVisibility(GONE);\n }\n }\n }", "public abstract List<LocationDto> viewAll();", "public java.util.List<MateriliazedView> getViewsList() {\n if (viewsBuilder_ == null) {\n return java.util.Collections.unmodifiableList(views_);\n } else {\n return viewsBuilder_.getMessageList();\n }\n }", "private void clearViews()\n {\n prepareNumbers();\n }", "public void updateViews() {\n updateViews(null);\n }", "@Override\n public java.util.List<? extends MateriliazedViewOrBuilder>\n getViewsOrBuilderList() {\n return views_;\n }", "private void findAllViews(View view) {\n recyclerView = view.findViewById(R.id.news_recycler_view);\n emptyView = view.findViewById(R.id.empty_view);\n progressBar = view.findViewById(R.id.progress_bar);\n swipeRefreshLayout = view.findViewById(R.id.swipe_container);\n }", "public void consultPeriodExtract(View view) {\n showExtractOnListView();\n }", "public void showView(JspWriter out, HttpServletRequest request, boolean show_ratings)\r\n\t\tthrows IOException\r\n\t{\r\n//System.out.println(\"Paper.showView starting...\");\t\r\n\r\n\t\tHttpSession session = request.getSession();\r\n\t\tint user_id = ((Integer)session.getAttribute(ClientDaemon.SESSION_USER_ID)).intValue();\r\n\t\tint group_id = ((Integer)session.getAttribute(ClientDaemon.SESSION_GROUP_ID)).intValue();\r\n\t\tiNode c_node = ((iNode)session.getAttribute(ClientDaemon.SESSION_CURRENT_NODE));\r\n\t\tResourceMap resmap = (ResourceMap) session.getAttribute(\r\n\t\t\t\tClientDaemon.SESSION_RES_MAP);\r\n//System.out.println(\"ResourceMap.displayFolderView activities \" + res_map.getActivities().size());/// DEBUG\r\n\t\tUser user = resmap.getUsers().findById(user_id);\r\n\t\tUser group = resmap.getUsers().findById(group_id);\r\n\r\n\t\t// searhc for other folders where paper might be\r\n\t\tString other_folders = \"\";\r\n\t\tif(this.getOwners().size()>1)\r\n\t\t{\r\n\t\t\tint count = 0;\r\n\t\t\tfor(int i=0; i<getOwners().size(); i++)\r\n\t\t\t{\r\n\t\t\t\t\r\n\t\t\t\tif(getOwners().get(i).getId() != c_node.getId())\r\n\t\t\t\t{\r\n\t\t\t\t\tother_folders += ((other_folders.length()>0)?\"&lt;br/&gt;\":\"\") + \"\" + (++count) + \". &lt;a href=\" +\r\n\t\t\t\t\t\t\trequest.getContextPath() + \"/content/Show?id=\" +\r\n\t\t\t\t\t\t\tgetOwners().get(i).getParent().getId() + \" target=_top&gt;\" +\r\n\t\t\t\t\t\t\tgetOwners().get(i).getParent().getTitle() +\r\n\t\t\t\t\t\t\t\"&lt;/a&gt;\";\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tother_folders = \"&nbsp;&nbsp;<a href='#' onmouseup=\\\"this.T_TITLE='Paper can be also found in these folders'; this.T_STICKY=true; this.T_PADDING=5; return escape('\" +\r\n\t\t\t\t\tother_folders + \"')\\\"><img border='0'src='\" + request.getContextPath() + \"/\" + \r\n\t\t\t\t\tClientDaemon.CONTEXT_ASSETS_PATH + \"/folder_btn_enable.gif\" + \"' /></a>\";\r\n\t\t}\r\n\t\t\r\n\t\tboolean can_see_author = c_node.canSeeAuthor(user, group, resmap);\r\n\t\tString display_author = ((can_see_author)? \"<div style='\" + \r\n\t\t\t\"font-size:0.9em; font-weight:bold; color:#000099; \" + \r\n\t\t\t\"margin:5px 0px 5px 0px; font-family:Times, serif;'>This paper is added by \" + \r\n\t\t\tc_node.getCreatorAdderNames() +\t\r\n\t\t\t\r\n\t\t\tother_folders +\r\n\t\t\t\r\n\t\t\t\"</div>\": \"\");\r\n\t\tout.println(display_author);\r\n\r\n\t\t\r\n\t\tout.println(\"<div style='font-size:0.8em;'>&dagger; Point to the lable to see comment</div>\");\r\n\r\n//\t\tout.println(\"<!-- Authors -->\");\r\n//\t\tout.println(\"<div class='pt_main_subheader' title='Author(s) of the paper'>Author(s)</div>\");\r\n//\t\tout.println(\"<div style='padding:3px; padding-left:15px;'/>\");\r\n//\t\tout.println(this.authors);\r\n//\t\tout.println(\"</div>\");\r\n\r\n\t\tout.println(\"<!-- Authors Collection-->\");\r\n\t\tString cope_search_url = request.getContextPath() + \"/content/Show?id=\" +\r\n\t\t\t\tresmap.getCopeSearchNodeId() + \"&\" + \r\n\t\t\t\tCoPESearchNode.COPESEARCH_FILTER_AUTHOR + \"=\";\r\n\t\tString authorss = \"\";\r\n\t\tfor(int i=0; i<this.getAuthorss().size(); i++)\r\n\t\t{\t\r\n\t\t\tauthorss += ((authorss.length()>0)?\"; \":\"\") + \r\n\t\t\t\t\t\"<a target='_top' href='\" + cope_search_url + URLEncoder.encode(this.getAuthorss().get(i).getLastName(), \"utf-8\") + \"'>\" + this.getAuthorss().get(i).getLastName() + \", \" + \r\n\t\t\t\t\tthis.getAuthorss().get(i).getGivenNames() + \"</a>\";\r\n//System.out.println(\"Paper:: original=\" + this.getAuthorss().get(i).getLastName() + \" encoded=\" + URLEncoder.encode(this.getAuthorss().get(i).getLastName(), \"utf-8\"));\r\n\t\t}\r\n\t\t\r\n\t\tout.println(\"<div class='pt_main_subheader' title='Author(s) of the paper'>Author(s)</div>\");\r\n\t\tout.println(\"<div style='padding:3px; padding-left:15px;'/>\");\r\n\t\tout.println(authorss);\r\n\t\tout.println(\"</div>\");\r\n\r\n\t\tout.println(\"<!-- Title -->\");\r\n\t\tout.println(\"<div class='pt_main_subheader' title='Title of the paper'>Title</div>\");\r\n\t\tout.println(\"<div style='padding:3px; padding-left:15px;'/>\");\r\n\t\tout.println(this.getTitle());\r\n\t\tout.println(\"</div>\");\r\n\r\n\t\tout.println(\"<!-- Bibliographic Info -->\");\r\n\t\tout.println(\"<div class='pt_main_subheader' title='Bibliographic information: journal/conference, publisher, location'>Bibliographic information</div>\");\r\n\t\tout.println(\"<div style='padding:3px; padding-left:15px;'/>\");\r\n\t\tout.println(this.biblio_info);\r\n\t\tout.println(\"</div>\");\r\n\t\t\r\n\t\tout.println(\"<!-- Year -->\");\r\n\t\tcope_search_url = request.getContextPath() + \"/content/Show?id=\" +\r\n\t\t\t\tresmap.getCopeSearchNodeId() + \"&\" + \r\n\t\t\t\tCoPESearchNode.COPESEARCH_FILTER_YEAR + \"=\" + this.year;\r\n;\r\n\t\tout.println(\"<div class='pt_main_subheader' title='Year of publication'>Year</div>\");\r\n\t\tout.println(\"<div style='padding:3px; padding-left:15px;'/>\");\r\n\t\tout.println(\"<a target='_top' href='\" + cope_search_url + \"' title='Find all papers with this year of publication'>\" + this.year + \"</a>\");\r\n\t\tout.println(\"</div>\");\r\n\r\n\t\tout.println(\"<!-- URL -->\");\r\n\t\tout.println(\"<div class='pt_main_subheader' title='URL where the paper can be found at'>URL</div>\");\r\n\t\tout.println(\"<div style='padding:3px; padding-left:15px;'/>\");\r\n\t\tout.println(\"<a href='\" + this.url + \"' target='_blank'>\" + this.url + \"</a>\");\r\n\t\tout.println(\"</div>\");\r\n\t\t\r\n\t\t// Display subordinates of the Paper (e.g. Summary, Concepts) if such exist\r\n\t\tout.println(\"<!-- subordinates of the Paper (e.g. Summary, Concepts) if such exis -->\");\r\n\t\tout.println(\"<p />\");\r\n\t\tout.println(\"<script src='\" + request.getContextPath() + \"/\" + \r\n\t\t\t\t\tClientDaemon.CONTEXT_ASSETS_PATH + \"/wz_tooltip.js' type='text/javascript'></script>\");\r\n\r\n\t\t// verify whether ratings should be displayed\r\n\t\tResourceMap.displayFolderView(c_node.getChildren(), out, request, false);\r\n\t}", "private void setVisibilityToViewList(boolean z) {\n CopyOnWriteArrayList<NetworkSpeedView> copyOnWriteArrayList = this.mViewList;\n if (copyOnWriteArrayList != null) {\n Iterator<NetworkSpeedView> it = copyOnWriteArrayList.iterator();\n while (it.hasNext()) {\n it.next().setVisibilityByController(z);\n }\n }\n }", "public List setView(java.lang.String view) {\n this.view = view;\n return this;\n }", "public int getViewAreas(Map<String, ViewArea> _output)\n/* 207: */ {\n/* 208:281 */ if (_output != null) {\n/* 209:282 */ _output.put(\"_origin_VA\", this._origin_VA);\n/* 210: */ }\n/* 211:284 */ return 1 + super.getViewAreas(_output);\n/* 212: */ }", "@Override\n\tprotected String getListView() {\n\t\tthis.getRequest().setAttribute(\"typeList\",PhoneMemberEnum.values());\n\t\tthis.getRequest().setAttribute(\"useList\",PhoneMemberUseEnum.values());\n\t\tthis.getRequest().setAttribute(\"customerId\", ParamUtils.getParamValue(PhoneMemberUtil.CMCT_CUSOMETID));\n\t\tthis.getRequest().setAttribute(\"state\", \"UNUSE\");\n\t\tthis.getRequest().setAttribute(\"org\", SystemUtil.getCurrentOrg());\n\t\treturn \"cmct/phone/phoneUnMatchList\";\n\t}", "@Override\r\n\t\tpublic int getCount() {\n\t\t\treturn viewList.size();\r\n\t\t}", "public void toList(View view) {\n startActivity(new Intent(LaunchingActivity.this, ListActivity.class));\n }", "private void addViews() {\n\t}", "@Override\n\t\t\tpublic int getCount() {\n\t\t\t\treturn viewList.size();\n\t\t\t}", "@Override\n public void onClick(View view) {\n bitmaps.clear();\n listMapKeys.clear();\n //determination of the number of photos\n nbPhotosToPrint=getNbPhotosToPrintByCategory(PhotoCategories.COURSES_ACCESS);\n helper.retrieveSpacePhotoUrlDownloadsByPhotoCategories(PhotoCategories.COURSES_ACCESS,idWorksite);\n }", "@Override\n\tpublic void listMostPlayed(View view) \n\t{\n\t\tIntent intent = new Intent(this, PlayerRatingPlayerListView.class);\n\t\tintent.putExtra(MainActivity.EXTRA_STATS_TYPE, new MostPlayedListViewAdapter() );\n\t\tthis.startActivity(intent);\n\t}", "public void runInBatch(IViewPart view) {\n\t\t//run(navigation_view);\n\t}", "private static int getTotViews(List<String> sessionList, Map<String, List<View>> viewMap) {\r\n int views = 0;\r\n for (String sessionId: sessionList) {\r\n List<View> currentViewSession = viewMap.get(sessionId);\r\n // Must check if the current view is not null. Sometimes a session with no purchases also has no views.\r\n if (currentViewSession != null) {\r\n views += viewMap.get(sessionId).size();\r\n }\r\n }\r\n return views;\r\n }", "private void setViews() {\n\n }", "public void emitChangeView() {\n \n int view = getCurrentViewNumber();\n Object lpid = getLocalServerID();\n \n JDSUtility.debug(\"[emitChangeView()] s\" + lpid + \", at time \" + getClockValue() + \", is going to emit a change view message for (v + 1 = \" + (view + 1) + \")\");\n\n /* the replica makes sure that no timer is currently working. If the view change was trigged by a suspect of failure of the primary then probably it's \n been already true. */\n revokeSendBatch();\n revokeViewChange();\n\n /* an exponetial timeout has to be considered to guarantee liveness when the end-to-end delay is too long (it's prevent uncessary view-changes)*/\n PBFTTimeoutDetector ttask = (PBFTTimeoutDetector) getViewTimer().getTask();\n long timeout = (Long) ttask.get(\"TIMEOUT\");\n ttask.put(\"TIMEOUT\", 2 * timeout);\n\n /* the replica moves to the next view. After that, this replica isn't accepting any message from view v < v+1. */\n setCurrentViewNumber(view +1);\n \n /* clean-up the sets P (prepare set) and Q (pre-prepare set)*/\n preprepareset.clear();\n prepareset.clear();\n\n long lcwm = getLCWM();\n long hcwm = getHCWM();\n\n /* compute Q (pre-prepare set) and P (prepare set) */\n for(long seqn = lcwm + 1; seqn <=hcwm; seqn++){\n /*If I have a prepare then its digests will be added to pre-prepared and prepared sets */\n PBFTPrepare pr = getPrepareInfo().get(lpid, seqn);\n if(pr != null){\n PBFTPrePrepare pp = new PBFTPrePrepare(view, pr.getSequenceNumber(), null);\n pp.getDigests().addAll(pr.getDigests());\n preprepareset.add(pp);\n \n prepareset.add(new PBFTPrepare(pp, null));\n\n for(String digest: pp.getDigests()){\n getRequestInfo().assign(digest, RequestState.WAITING);\n getRequestInfo().assign(digest, (Long)null);\n }\n\n continue;\n }\n\n /*If I have a pre-prepare then its digests will be added to pre-prepared set*/\n PBFTPrePrepare ppr = getPrePrepareInfo().get(seqn);\n if(ppr != null){\n PBFTPrePrepare pp = new PBFTPrePrepare(view, ppr.getSequenceNumber(), null);\n pp.getDigests().addAll(ppr.getDigests());\n preprepareset.add(pp);\n \n for(String digest: pp.getDigests()){\n getRequestInfo().assign(digest, RequestState.WAITING);\n getRequestInfo().assign(digest, (Long)null);\n }\n } \n }\n\n \n try{\n doRollback();\n }catch(Exception e){\n e.printStackTrace();\n }\n\n /* update the controls for sequence number execution */\n getStateLog().setNextPrePrepareSEQ(lcwm + 1);\n getStateLog().setNextExecuteSEQ (lcwm + 1);\n\n PBFTChangeView cv = createChangeViewMessage();\n \n try {\n /* gets the root of the checkpoint partition tree */\n PartEntry centry = rStateManager.getPart(0, 0);\n\n /* adds the pair (last stable sequence number and state digest) to compose checkpoint set C */\n if(centry != null){\n cv.addCheckpoint(centry.getPartCheckpoint(), centry.getDigest());\n }else{\n cv.addCheckpoint(lcwm, \"\");\n }\n } catch (Exception ex) {\n Logger.getLogger(PBFTServer.class.getName()).log(Level.SEVERE, null, ex);\n cv.getCheckpointSet().clear();\n cv.addCheckpoint(lcwm, \"\");\n }\n\n /* add the pre-prepare set to current change-view message*/\n cv.getPrePrepareSet().clear();\n cv.getPrePrepareSet().addAll(preprepareset);\n\n /* add the prepare set to current change-view message*/\n cv.getPrepareSet().clear();\n cv.getPrepareSet().addAll(prepareset);\n\n /*emit the change view message to group of replicas */\n emit(cv, getLocalGroup().minus(getLocalProcess()));\n\n getChangeViewInfo().setMinimumViewNumber(view);\n getChangeViewInfo().put(cv);\n\n if(isPrimary()){\n getNewViewConstructor().addChangeView(cv);\n }else{\n finalizeNewViewConstructor();\n }\n\n getChangeViewInfo().gc(view);\n getChangeViewACKInfo().gc(view);\n getNewViewConstructor().gc(view);\n getNewViewInfo().gc(view);\n getPrePrepareInfo().gc(view);\n getPrepareInfo().gc(view);\n getPrePreparebackupInfo().gc(view);\n getCommitInfo().gc(view);\n\n\n emitChangeViewACK();\n\n\n uncertanty = true; \n }", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn viewList.size();\n\t\t}", "private void loadViews(){\n\t}", "@Override\n\t\tpublic void viewAccepted(View joiner) {\n\t\t}", "private void doViewAllPartners() {\n Scanner sc = new Scanner(System.in);\n\n System.out.println(\"***Hors Management System:: System Administration:: View All Partners\");\n\n List<Partner> partners = partnerControllerRemote.retrieveAllPartners();\n\n partners.forEach((partner) -> {\n System.out.println(\"Partner ID:\" + partner.getPartnerId() + \"Partner Name: \" + partner.getName() + \"Password: \" + partner.getPassword());\n });\n\n System.out.println(\"Press any key to continue...>\");\n sc.nextLine();\n }", "void view();", "Views getViews();", "public void displayEmptyView() {\n if (peers_.size() == 0) {\n list_view_.getEmptyView().setVisibility(View.VISIBLE);\n } else {\n list_view_.getEmptyView().setVisibility(View.INVISIBLE);\n }\n }", "@Override\n\tpublic void viewItem() {\n\t\t\n\t}", "@Override\r\n\tpublic List<Admin> viewlogs() {\n\t\treturn user.viewlogs();\r\n\t}", "@Override\n\t\tpublic int getCount() {\n\t\t\treturn views.size();\n\t\t}", "@Override\n\tpublic void output() {\n\t\tfor(User u :list) {\n\t\t\tif(list.size() > MIN_USER) {\n\t\t\t\tSystem.out.println(\"이름 : \"+u.getName());\n\t\t\t\tSystem.out.println(\"나이 : \"+u.getAge());\n\t\t\t\tSystem.out.println(\"주소 : \"+u.getAddr());\n\t\t\t\tSystem.out.println(\"=======================\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"입력된 정보가 없습니다.\");\n\t\t}", "default public List<View> getViewsForUserId(long userId){\n\t\tthrow DefaultHandler.notSupported();\n\t}", "@Override\r\n\tpublic void goToShowList() {\n\t\t\r\n\t}", "public View[] getViews() {\n \t\tif (views != null)\n \t\t\treturn views;\n \n \t\tView tocview = new View(\"toc\", //$NON-NLS-1$\n \t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\tpreferences.getImagesDirectory() + \"/contents_view.gif\", 'C', !HelpPlugin.getTocManager().isTocLoaded(getLocale())); //$NON-NLS-1$\n \t\tView indexview = null;\n \t\tView searchview = new View(\"search\", //$NON-NLS-1$\n \t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\tpreferences.getImagesDirectory() + \"/search_results_view.gif\", 'R', false); //$NON-NLS-1$\n \t\tView linksview = null;\n \t\tView bookmarksview = null;\n \n \t\tif (preferences.isIndexView())\n \t\t\tindexview = new View(\"index\", //$NON-NLS-1$\n \t\t\t\t\t\"\", //$NON-NLS-1$\n\t\t\t\t\tpreferences.getImagesDirectory() + \"/index_view.gif\", 'I', !HelpPlugin.getIndexManager().isIndexLoaded(getLocale())); //$NON-NLS-1$\n \t\tif (preferences.isLinksView())\n \t\t\tlinksview = new View(\"links\", //$NON-NLS-1$\n \t\t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\t\tpreferences.getImagesDirectory() + \"/links_view.gif\", (char)0, false); //$NON-NLS-1$\n \t\tif (preferences.isBookmarksView())\n \t\t\tbookmarksview = new View(\"bookmarks\", //$NON-NLS-1$\n \t\t\t\t\t\"\", //$NON-NLS-1$\n \t\t\t\t\tpreferences.getImagesDirectory() + \"/bookmarks_view.gif\", (char)0, false); //$NON-NLS-1$\n \n \t\tArrayList viewList = new ArrayList();\n \t\tviewList.add(tocview);\n \t\tif (indexview != null) {\n \t\t\tviewList.add(indexview);\n \t\t}\n \t\tviewList.add(searchview);\n \t\tif (linksview != null) {\n \t\t\tviewList.add(linksview);\n \t\t}\n \t\tif (bookmarksview !=null) {\n \t\t\tviewList.add(bookmarksview);\n \t\t}\n \t\t\n \t\tviews = (View[]) viewList.toArray(new View[viewList.size()]);\n \t\treturn views;\n \t}", "private Views() {\n }", "private void doViewAllCompletedTasks() {\n ArrayList<Task> t1 = todoList.getListOfCompletedTasks();\n if (t1.size() > 0) {\n for (Task task : t1) {\n System.out.println(task.getTime() + \" \" + task.getDescription() + \" \" + task.getDate());\n }\n } else {\n System.out.println(\"No completed tasks available.\");\n }\n }", "java.util.List<? extends MateriliazedViewOrBuilder>\n getViewsOrBuilderList();", "public void viewListofHomes() {\n\t\ttry {\n\t\t\t\n\t\t}catch(Exception e) {\n\t\t\tLog.addMessage(\"Failed to get list of homes\");\n\t\t\tSystem.out.println(e.getMessage().toString());\n\t\t\tAssert.assertTrue(false, \"Failed to get list of homes\");\n\t\t}\n\t}", "public void viewLogs() {\n\t}", "public void updateAllViews()\r\n { for (IView view : this.views)\r\n { view.updateView();\r\n }\r\n }", "@Test\n public void shouldSerializeAllWhenUseAdminView() throws JsonProcessingException {\n log.debug(\"Should serialized all when use admin view\");\n Item item = new Item(2, \"book\", \"John\", \"Description\");\n\n ObjectMapper mapper = new ObjectMapper();\n String result = mapper.writerWithView(Views.Admin.class).writeValueAsString(item);\n log.debug(\"Result json string: {}\", result);\n\n assertThat(result, containsString(\"book\"));\n assertThat(result, containsString(\"2\"));\n assertThat(result, containsString(\"John\"));\n assertThat(result, containsString(\"Description\"));\n }", "@Test(groups ={Slingshot,Regression})\n\tpublic void ManageViewDeleteView() {\n\t\tReport.createTestLogHeader(\"MuMv\", \"Verify whether user is able to delete a view\");\n\n\t\tUserProfile userProfile = new TestDataHelper().getUserProfile(\"MuMvTestdataforFAA\");\n\t\tnew LoginAction()\n\t\t.BgbnavigateToLogin()\n\t\t.BgbloginDetails(userProfile);\n\t\tnew MultiUserMultiViewAction()\n\t\t.ClickManageUserLink()\n\t\t.ManageViews()\t \t\t\t\t\t \t \t\t\t\t \t \t\t\n\t\t.Addviewname(userProfile)\n\t\t.verifyLeadTabledata_AddnewViewAudit(userProfile)\n\t\t.backtoMangeruserlink()\n\t\t.ManageViews()\n\t\t.ViewDeletion(userProfile)\n\t\t.verifyLeadTable_ViewDeletionAudit(userProfile);\n\n\t}", "void contentList_mouseClicked(MouseEvent e) {\n if (e.getClickCount() > 1) {\n doView();\n }\n\n }", "public void showReviews(View view) {\n if (reviewNo > 0) {\n //send the List of Review objects to the host activity\n listener.displayReviews(reviews);\n }\n }", "public void executeView()\n\t{\n\t\tString cmd = \"\";\n\t\tString opar = Deducer.getUniqueName(\"opar\");\n\t\tcmd += (opar + \" <- par()\"); //save the original margin parameters\n\t\tcmd += (\"\\npar(mar=c(8, 4, 4, 0.5))\"); //give the plot more space at the bottom for long words.\n\t\tcmd += (\n\t\t\t\t\"\\nbarplot(\" \n\t\t\t\t+ \n\t\t\t\ttfDialog.getTermFreqCall(this.getExtraTermFreqArgs()) + \",\" \n\t\t\t\t+\n\t\t\t\t\"cex.names=0.8,\" //make the terms a bit smaller\n\t\t\t\t+\n\t\t\" las=2);\");\n\t\tcmd += (\"\\npar(\"+ opar +\")\");\n\t\tDeducer.execute(cmd);\n\t\tDeducer.execute(\"dev.set()\", false); //give the plot focus\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void viewCustomers(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*----*****-------List of Customers-------*****----*\\n\");\n\t\t\t\n\t\t\t//pass these input items to client controller\n\t\t\tviewCustomers=mvc.viewCustomers(session);\n\n\t\t\tSystem.out.println(\"CustomerId\"+\" \"+\"UserName\");\n\t\t\tfor(int i = 0; i < viewCustomers.size(); i++) {\n\t System.out.println(viewCustomers.get(i)+\"\\t\"+\"\\t\");\n\t }\n\t System.out.println(\"<------------------------------------------------>\");\n\t\t\t//System.out.println(viewCustomers);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}", "public void testListOfUsersDisplayed(){\n \t\tListView chars = solo.getView(ListView.class, 0);\n \t\tAssert.assertEquals(3, chars.getAdapter().getCount());\n \t\tsolo.finishOpenedActivities();\n \t}", "@Test\n public void checkListView(){\n //assert awaiting approval view\n View awaitingApprovalView = solo.getView(\"awaiting_approval\");\n assertTrue(solo.waitForText(\"Awaiting Approval\",1,2000));\n //Check for list of awaiting approvals\n View awaitingApprovalListView = solo.getView(\"books_awaiting_list\");\n //click on list of borrowed books\n solo.clickOnView(awaitingApprovalListView);\n solo.assertCurrentActivity(\"Wrong Activity\", Host.class);\n\n\n }", "private void ViewAccounts() {\n for (int k = 0; k < accountList.size(); k++) {\n\n System.out.print(k + \": \" + accountList.get(k) + \" || \");\n\n }\n }", "private void getViews(View view) {\n listView = (com.baoyz.swipemenulistview.SwipeMenuListView)view.findViewById(R.id.detail_listview);\n accept = (Button)view.findViewById(R.id.change_quantity_button);\n totalPriceTextView = (TextView)view.findViewById(R.id.total_price_text_view);\n searchET = (EditText)view.findViewById(R.id.search_edit_text);\n clearTextButton = (Button)view.findViewById(R.id.clear_text_button);\n }", "@Override\n public MateriliazedView getViews(int index) {\n return views_.get(index);\n }", "@Override\n public void onClick(View view) {\n bitmaps.clear();\n listMapKeys.clear();\n //determination of the number of photos\n nbPhotosToPrint=getNbPhotosToPrintByCategory(PhotoCategories.TECHNICAL_EQUIPMENTS);\n helper.retrieveSpacePhotoUrlDownloadsByPhotoCategories(PhotoCategories.TECHNICAL_EQUIPMENTS,idWorksite);\n }", "@Override\n public void onClick(View view) {\n bitmaps.clear();\n listMapKeys.clear();\n //determination of the number of photos\n nbPhotosToPrint=getNbPhotosToPrintByCategory(PhotoCategories.SECURITY);\n helper.retrieveSpacePhotoUrlDownloadsByPhotoCategories(PhotoCategories.SECURITY,idWorksite);\n }", "void setViews(List<View> views) {\n mViews.clear();\n mViews.addAll(views);\n notifyDataSetChanged();\n\n // we want to make sure we return POSITION_NONE for every view here, since this is only\n // called after a removeAllViewsFromAdapter\n mIsViewPagerInIntentionallyInconsistentState = false;\n }", "MateriliazedView getViews(int index);", "@Override\r\n\tpublic List<Logbook> viewRecords() {\n\t\treturn user.viewRecords();\r\n\t}", "public void displaySelections() {\n List<VendingItem> listOfItems = service.getAllItemsNonZero(); //<-- uses lambda\n view.displaySelections(listOfItems);\n }", "public abstract String viewTrips(List<Trip> tripList);", "@View( value = VIEW_LIST, defaultView = true )\r\n public XPage viewList( HttpServletRequest request )\r\n {\r\n List<BotDescription> listBots = getBotsDescription( );\r\n\r\n Map<String, Object> model = getModel( );\r\n model.put( MARK_BOTS_LIST, listBots );\r\n\r\n return getXPage( TEMPLATE_BOTS_LIST, request.getLocale( ), model );\r\n }", "private void setViews(){\n compositeDisposable.add(storyActivityViewModel.getModeObservable().subscribe(new Consumer<StoryActivityViewModel.MODE>() {\n @Override\n public void accept(StoryActivityViewModel.MODE mode) throws Exception {\n setDoneButton(mode);\n }\n }));\n\n compositeDisposable.add(storyActivityViewModel.getPhotosObservable().subscribe(new Consumer<List<Photo>>() {\n @Override\n public void accept(List<Photo> photos) throws Exception {\n setPhotoLinear(photos);\n }\n }));\n\n compositeDisposable.add(storyActivityViewModel.getUpdatedAtObservable().subscribe(new Consumer<Date>() {\n @Override\n public void accept(Date updatedAt) throws Exception {\n setUpdatedAt(updatedAt);\n }\n }));\n\n compositeDisposable.add(storyActivityViewModel.getTitleObservable().subscribe(new Consumer<String>() {\n @Override\n public void accept(String title) throws Exception {\n setTitle(title);\n }\n }));\n\n compositeDisposable.add(storyActivityViewModel.getBodyObservable().subscribe(new Consumer<String>() {\n @Override\n public void accept(String body) throws Exception {\n setBody(body);\n }\n }));\n\n compositeDisposable.add(RxView.clicks(done).subscribe(new Consumer<Object>() {\n @Override\n public void accept(Object o) throws Exception {\n storyDone();\n }\n }));\n\n compositeDisposable.add(RxView.clicks(closePhotoDetail).subscribe(new Consumer<Object>() {\n @Override\n public void accept(Object o) throws Exception {\n closePhotoDetail();\n }\n }));\n }", "public void refreshNet(View view) {\n ll.setVisibility(View.GONE);\n getMovies();\n }", "@Override\n\tpublic void view(HttpServletRequest request,HttpServletResponse response) {\n\t\tlong id=(long) request.getSession().getAttribute(\"enrollment\");\n\t\tArrayList list;\n\t\tif(request.getParameterMap().containsKey(\"search\")){\n\t\t\tString searchParameter=request.getParameter(\"search\");\n\t\t\tlist=(ArrayList)((QuestionDao)cd).viewAll(searchParameter);\n\n\t\t}else if(id==12589){\n\t\t\tlist = (ArrayList) cd.view(id);\n\t\t}\n\t\telse{\n\t\t\tlist=(ArrayList)((QuestionDao)cd).viewAll(\"\");\n\t\t}\n\t\tHttpSession session = request.getSession();\n\t\tsession.setAttribute(\"list\",list);\n\t\ttry{\n\t\t\tif(id==12589)\n\t\t\t{\n\t\t response.sendRedirect(\"Admin/questionsearch.jsp\");\n\t\t\t}\n\t\t\telse\n\t\t\t\tresponse.sendRedirect(\"User/que_Ans_UI.jsp\");\n\t\t}\n\t\tcatch(Exception e){}\n\t}", "@Override\n public List<INaviView> getViews() {\n List<INaviView> localCachedViews = m_cachedViews;\n\n if (localCachedViews == null) {\n final IFilter<INaviView> filter = getFilter();\n\n if (m_originContainer.isLoaded()) {\n localCachedViews =\n filter == null ? m_originContainer.getUserViews() : filter.get(m_originContainer\n .getUserViews());\n } else {\n localCachedViews = new ArrayList<INaviView>();\n }\n }\n\n CStaredItemFunctions.sort(localCachedViews);\n\n m_cachedViews = localCachedViews;\n return new ArrayList<INaviView>(localCachedViews);\n }", "public abstract void viewRun();", "public void EmptyList(){\n BusStopSearcherPresenter.setListview(initList(emptylist));\n }", "public void onAccept(View view)\n\t{\n\t\tList<Business> currentSearchList = ApplicationData.getInstance().getListCurrentSearch();\n\n\t\t// Add the current business to the history.\n\t\tApplicationData.getInstance().addBusinessToHistory(\n\t\t\t\tcurrentSearchList.get(0),\n\t\t\t\ttrue\t\t\t\t\t\t\t\t// true since accepted\n\t\t);\n\n\t\t// Now remove the index 0 item from the current search list and set the new top item to currently viewable\n\t\t// restaurant in restaurant selection\n\t\tcurrentSearchList.remove(0);\n\t\tif (currentSearchList.size() == 0) {\n\t\t\tsetViewToNoMoreResults(\"No more search results.\");\n\t\t\treturn;\n\t\t}\n\t\tBusiness newTop = currentSearchList.get(0);\n\t\ttextViewRestaurantName.setText(newTop.name());\n\t\ttextViewRestaurantDistance.setText(\"\" + (Math.round(newTop.distance())));\n\t\t(new taskLoadImage(\n\t\t\t\timageButtonRestaurantImage,\n\t\t\t\tnewTop.imageUrl()\n\t\t)).execute();\n\n\t\t// TODO change to immediately show restaurant?\n\n\t}", "protected void showReservations() {\n storageDao.findAllRented()\n .forEach(System.out::println);\n }", "private synchronized void doClear() {\r\n summaryView.clear();\r\n\r\n Document doc = textViewer.getDocument();\r\n int len = doc.getLength();\r\n if (len > 0) {\r\n try { doc.remove(0, len); }\r\n catch (Exception x) {}\r\n }\r\n\r\n // notify the interview communicator that\r\n // the log view has been cleared\r\n if (communicator != null) {\r\n communicator.logViewCleared();\r\n }\r\n }", "public void a(ArrayList<View> arrayList, View view) {\n if (view.getVisibility() == 0) {\n boolean z = view instanceof ViewGroup;\n ViewGroup viewGroup = view;\n if (z) {\n ViewGroup viewGroup2 = (ViewGroup) view;\n boolean a = q.a(viewGroup2);\n viewGroup = viewGroup2;\n if (!a) {\n int childCount = viewGroup2.getChildCount();\n for (int i = 0; i < childCount; i++) {\n a(arrayList, viewGroup2.getChildAt(i));\n }\n return;\n }\n }\n arrayList.add(viewGroup);\n }\n }", "public void getVisibleVirtualViews(List<Integer> list) {\n if (AbsVideoSceneMgr.this.getActiveScene() != null) {\n AbsVideoSceneMgr.this.getActiveScene().getAccessibilityVisibleVirtualViews(list);\n }\n }", "@AfterCompose\n\tpublic void doAfterCompose(@ContextParam(ContextType.VIEW) Component view){\n\t\tsuper.doAfterCompose(view);\n\t\tanalistaFiltro = new Analista();\n\t\tpagAnalistas.setPageSize(pageSize);\n\t\tagregarGridSort(gridAnalistas);\n\t\tcambiarAnalistas(0, null, null);\n\t}", "private void setViews4Display() {\n nameView.setFocusable(false);\n nameView.setClickable(false);\n nameView.setInputType(InputType.TYPE_NULL);\n\n ageView.setFocusable(false);\n ageView.setClickable(false);\n ageView.setInputType(InputType.TYPE_NULL);\n\n phoneView.setFocusable(false);\n phoneView.setClickable(false);\n phoneView.setInputType(InputType.TYPE_NULL);\n\n workView.setFocusable(false);\n workView.setClickable(false);\n workView.setInputType(InputType.TYPE_NULL);\n\n emailView.setFocusable(false);\n emailView.setClickable(false);\n emailView.setInputType(InputType.TYPE_NULL);\n\n save.setVisibility(View.GONE);\n\n if (nameView.getText().toString().equals(\"\"))\n nameView.setVisibility(View.GONE);\n if (ageView.getText().toString().equals(\"\"))\n ageView.setVisibility(View.GONE);\n if (emailView.getText().toString().equals(\"\"))\n emailView.setVisibility(View.GONE);\n if (workView.getText().toString().equals(\"\"))\n workView.setVisibility(View.GONE);\n if (phoneView.getText().toString().equals(\"\"))\n phoneView.setVisibility(View.GONE);\n\n // check if user have past activities\n int childCount = past_activities.getChildCount();\n if (childCount == 1)\n past_activities.setVisibility(View.GONE);\n }", "@Override\n public List<Item> viewAllItems() {\n // calls List<Item> itemRepo.findCatalog();\n return itemRepo.findCatalog();\n }", "private void findViews(View view) {\n list = (RecyclerView)view.findViewById(R.id.listview);\n\n GridLayoutManager layoutManager = new GridLayoutManager(getActivity(), 2);\n\n list.setLayoutManager(layoutManager);\n list.setHasFixedSize(true);\n\n// imageView = (PhotoDraweeView) view.findViewById(R.id.imageView);\n// imageGallery = (RelativeLayout) view.findViewById(R.id.imageGallery);\n// imageGallery.setVisibility(View.GONE);\n }", "public void exportAllLists(){\n }", "@Override\n\tpublic String showAll() {\n\t\treturn null;\n\t}", "private void doView() {\n System.out.println(pickedAccount.toString());\n System.out.println(\"Cancel any reservation? (y/n)\");\n\n String command;\n command = input.next();\n if (command.toLowerCase().equals(\"y\")) {\n processCancelReservation();\n }\n }" ]
[ "0.5967589", "0.59654903", "0.5914902", "0.57477844", "0.5730673", "0.5725773", "0.5616719", "0.56062317", "0.55816084", "0.5577805", "0.55741274", "0.5560193", "0.5500129", "0.54787076", "0.5391531", "0.53810483", "0.5322892", "0.5314795", "0.52875197", "0.5276513", "0.5272191", "0.5265305", "0.525973", "0.5257665", "0.52550864", "0.52269495", "0.52222604", "0.5221402", "0.5220067", "0.521113", "0.5208229", "0.5200837", "0.51814157", "0.5169308", "0.5160554", "0.5156914", "0.51502424", "0.5146172", "0.5142863", "0.5138637", "0.51370054", "0.51325047", "0.51296264", "0.51280725", "0.51263577", "0.51195085", "0.5116547", "0.51164675", "0.51159996", "0.5104433", "0.50972337", "0.50971484", "0.50876766", "0.5081325", "0.50738513", "0.50628364", "0.5062245", "0.5052923", "0.5051817", "0.5050841", "0.5049807", "0.50494015", "0.504718", "0.50433695", "0.5040009", "0.5035324", "0.50348353", "0.50226665", "0.50179416", "0.50172347", "0.5016192", "0.5009044", "0.5007407", "0.5004895", "0.50011617", "0.49950624", "0.4990498", "0.4988751", "0.4986382", "0.4985447", "0.4983668", "0.49792293", "0.49686944", "0.4959219", "0.49564403", "0.49516284", "0.49438566", "0.4943418", "0.49411643", "0.49365407", "0.4931224", "0.49292818", "0.49195778", "0.4918365", "0.4916106", "0.49150118", "0.49146223", "0.4913717", "0.49096662", "0.49093443" ]
0.5339384
16
/ Functionality Focuses this output.
public void focus() { JWLC.nativeHandler().wlc_output_focus(this.to()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void focus() {}", "public void Focus() {\n }", "void focus();", "void focus();", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "@Override\n\tpublic void setFocus() {\n\t\t\n\t}", "public void setFocus() {\n\t}", "@Override\r\n\tpublic void setFocus() {\n\t\t\r\n\t}", "public void setFocus() {\n \t\tviewer.getControl().setFocus();\n \t}", "@Override\r\n\tpublic void setFocus() {\r\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\n\t}", "@Override\n\tpublic void setFocus() {\n\t}", "public void setFocus() {\n }", "@Override\r\n\tpublic void focus() {\r\n\t\tactivate();\r\n\t\ttoFront();\r\n\t}", "@Override\n public void setFocus() {\n }", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "@Override\r\n\tpublic void setFocus() {\n\r\n\t}", "public void setFocus() {\n\t\tthis.viewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n\t\tviewer.getControl().setFocus();\n\t}", "public void setFocus() {\n \t\tex.setFocus();\n \t}", "public void setFocus();", "@Override\n public void setFocus()\n {\n this.textInput.setFocus();\n }", "@Override\n public void setFocus() {\n if (!modes.get(BCOConstants.F_SHOW_ANALYZER)) {\n if (textViewer != null) {\n textViewer.getTextWidget().setFocus();\n }\n } else {\n if (tableControl != null) {\n tableControl.setFocus();\n }\n }\n }", "public void setFocus() {\r\n System.out.println(\"TN5250JPart: calling SetSessionFocus.run(): \" + tn5250jPart.getClass().getSimpleName());\r\n SetSessionFocus.run(tabFolderSessions.getSelectionIndex(), -1, tn5250jPart);\r\n }", "void setFocus();", "public void setFocus() {\n\t\tcompositeQueryTree.setFocus();\n\t}", "public void requestFocus() {\n\n if (MyTextArea != null)\n MyTextArea.requestFocus();\n\n }", "void addFocus();", "@Override\n public void requestFocus() {\n\tif (term != null) {\n\t //term.requestActive(); // Not implemented yet\n\t // TEMPORARY\n\t // boolean result = term.requestFocusInWindow();\n\t term.requestFocus();\n\t}\n }", "public void requestFocus() {\n // Not supported for MenuComponents\n }", "void setFocus( ChatTarget focus );", "public void focus() {\n if (toSetFocus != null) {\n toSetFocus.requestFocus();\n } else {\n root.requestFocus();\n toSetFocus = null;\n }\n }", "protected void gainFocus(){\r\n\t\twidgetModifyFacade.changeVersatilePane(this);\r\n\t\twidgetModifyFacade.gainedFocusSignal(this);\r\n\t//\tthis.setId(\"single-image-widget-selected\");\r\n\t}", "@Override\r\n\tpublic void setFocus() {\r\n\t\tif (getControl() != null)\r\n\t\t\tgetControl().setFocus();\r\n\t}", "public void focus() {\n getRoot().requestFocus();\n }", "public void setFocus(){\n\t\ttxtText.setFocus(true);\n\t\ttxtText.selectAll();\n\t}", "public void setFocus() {\r\n\t\tIFormPart part = _parts.get(0);\r\n\t\tif ( part != null ) part.setFocus();\r\n\t}", "public void setFocus() {\n\t\tui.setFocus();\n\t}", "public void requestInputFocus(){\n\t\tuserInput.requestFocus();\n\t}", "private void setFocus() {\n\t\tif (held) {\n\t\t\tfocus.x = img.getWidth() / 2;\n\t\t\tfocus.y = img.getHeight();\n\t\t} else {\n\t\t\tfocus.x = img.getWidth();\n\t\t\tfocus.y = img.getHeight() /2;\n\t\t} // end else\n\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void ancestorAdded(AncestorEvent event) {\n\t\t\t\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\t\t\tpublic void run() {\r\n\t\t\t\t\t\t\t\t\t\ttextField_search_input.requestFocusInWindow();\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t});\r\n\t\t\t\t\t\t\t}", "public void focusGained(FocusEvent e)\r\n/* 21: */ {\r\n/* 22: 64 */ JTextComponent c = getComponent();\r\n/* 23: 65 */ if (c.isEnabled())\r\n/* 24: */ {\r\n/* 25: 66 */ setVisible(true);\r\n/* 26: 67 */ setSelectionVisible(true);\r\n/* 27: */ }\r\n/* 28: 69 */ if ((!c.isEnabled()) || (!this.isKeyboardFocusEvent) || (!Options.isSelectOnFocusGainActive(c))) {\r\n/* 29: 72 */ return;\r\n/* 30: */ }\r\n/* 31: 74 */ if ((c instanceof JFormattedTextField)) {\r\n/* 32: 75 */ EventQueue.invokeLater(new Runnable()\r\n/* 33: */ {\r\n/* 34: */ public void run()\r\n/* 35: */ {\r\n/* 36: 77 */ PlasticFieldCaret.this.selectAll();\r\n/* 37: */ }\r\n/* 38: */ });\r\n/* 39: */ } else {\r\n/* 40: 81 */ selectAll();\r\n/* 41: */ }\r\n/* 42: */ }", "public void focusOn(Vector2i zone) {\n\t\tfocusOn(zone.x, zone.y);\n\t}", "protected void doSetFocus() {\n\t\t// Ignore\n\t}", "ChatTarget getFocus();", "@Override\r\n \tpublic void ancestorAdded(final AncestorEvent event) {\r\n \t\t// Change the focus to the text area when created\r\n \t\tfinal AncestorListener al = this;\r\n \t\ttry {\r\n \t\t\tThread.sleep(100);\r\n \t\t} catch (final InterruptedException e) {\r\n \t\t}\r\n \t\tSwingUtilities.invokeLater(new Runnable() {\r\n \r\n \t\t\t@Override\r\n \t\t\tpublic void run() {\r\n \t\t\t\tfinal JComponent component = event.getComponent();\r\n \t\t\t\tcomponent.requestFocusInWindow();\r\n \t\t\t\tcomponent.removeAncestorListener(al);\r\n \t\t\t}\r\n \t\t});\r\n \r\n \t}", "public void setFocus() {\n \n selectionAction = FINISHED_SELECTION;\n if (recordForm != null) {\n recordForm.setFocusAt(currentColumn);\n }\n selectionAction = WAITING_ON_SELECTION;\n \n }", "private void changeFocus() {\n focusChange(etTitle, llTitle, mActivity);\n focusChange(etOriginalPrice, llOriginalPrice, mActivity);\n focusChange(etTotalItems, llTotalItems, mActivity);\n focusChange(etDescription, llDescription, mActivity);\n }", "protected void doSetFocus() {\n \t\tif (getText() != null) {\n \t\t\tgetText().selectAll();\n \t\t\tgetText().setFocus();\n \t\t\tcheckSelection();\n \t\t\tcheckDeleteable();\n \t\t\tcheckSelectable();\n \t\t}\n \t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\n\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "@Override\r\n\t\t\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\r\n\t\t\t\t\t\t\t}", "public SeleniumQueryObject focus() {\n\t\treturn FocusFunction.focus(this, elements);\n\t}", "public void focusNextComponent(Component paramComponent)\n/* */ {\n/* 1380 */ if (paramComponent != null) {\n/* 1381 */ paramComponent.transferFocus();\n/* */ }\n/* */ }", "private void selectCurrentToken() {\r\n setCurrentItem(currentTextItem);\r\n setPosition(currentTextItem.getEndPosition());\r\n }", "private void jtxtdocument_statusFocusGained(java.awt.event.FocusEvent evt) {\n jtxtdocument_status.setSelectionStart(0);\n jtxtdocument_status.setSelectionEnd(jtxtdocument_status.getText().length());\n}", "public void setFocus() {\n startButton.setFocus();\n }", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\n\t\t\t}", "@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "@Override\n\t\t\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\t\t\n\t\t\t\t\t}", "public void setTextPanelFocused(boolean focused)\r\n\t{\r\n\t\t\r\n\t}", "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}", "@Override\n\tpublic void focusGained(FocusEvent arg0) {\n\t\t\n\t}", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\n\t\t}", "public void requestFocusOnFirstField() {\n btnLookup.requestFocus();\n SwingUtilities.invokeLater(new Runnable() {\n\n /**\n * put your documentation comment here\n */\n public void run() {\n SwingUtilities.invokeLater(new Runnable() {\n\n /**\n * put your documentation comment here\n */\n public void run() {\n //txtReferredBy.requestFocus(); (commented because the lookup should always be through btnLookup\n btnLookup.requestFocus();\n }\n });\n }\n });\n }", "@Override\r\n\t\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\t\t\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void ancestorAdded(AncestorEvent event) {\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t @Override\r\n\t\t public void run() {\r\n\t\t textField_productID_input.requestFocusInWindow();\r\n\t\t }\r\n\t\t });\r\n\t\t\t}", "@Override\r\n\t\t\tpublic void ancestorAdded(AncestorEvent event) {\n\t\t\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t @Override\r\n\t\t public void run() {\r\n\t\t \ttextField_transaction_input.requestFocusInWindow();\r\n\t\t }\r\n\t\t\t\t});\r\n\t\t\t}", "public void requestFocusToSpecialDate() {\n SwingUtilities.invokeLater(new Runnable() {\n\n /**\n * put your documentation comment here\n */\n public void run() {\n SwingUtilities.invokeLater(new Runnable() {\n\n /**\n * put your documentation comment here\n */\n public void run() {\n txtSpclDate.requestFocus();\n }\n });\n }\n });\n }", "public void requestFocus()\n {\n super.requestFocus();\n field.requestFocus();\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent arg0) {\n\t\t\t\trequestFocusInWindow();\n\t\t\t}", "@Override\n public void focus(FieldEvents.FocusEvent event) {\n TextField tf = (TextField) event.getSource();\n tf.setCursorPosition(tf.getValue().length());\n }", "public void focusLost(FocusEvent e)\r\n/* 61: */ {\r\n/* 62:100 */ super.focusLost(e);\r\n/* 63:101 */ if (!e.isTemporary())\r\n/* 64: */ {\r\n/* 65:102 */ this.isKeyboardFocusEvent = true;\r\n/* 66:103 */ if (Boolean.TRUE.equals(getComponent().getClientProperty(\"JGoodies.setCaretToStartOnFocusLost\"))) {\r\n/* 67:104 */ setDot(0);\r\n/* 68: */ }\r\n/* 69: */ }\r\n/* 70: */ }", "@Override\n\t\tpublic void focusGained(FocusEvent arg0) {\n\t\t\tSystem.out.println(\"Btn F gaing\");\t\n\t\t}", "private void setRequestFocusInThread() {\r\n SwingUtilities.invokeLater( new Runnable() {\r\n public void run() {\r\n sponsorHierarchyTree.requestFocusInWindow();\r\n }\r\n });\r\n }", "private void toggle_focus() {\n\t\ttry {\n\t\t\tif (!lock_autofocus) {\n\t\t\t\t//getCameraManager().requestAutoFocus(handler, R.id.auto_focus);\n\t\t\t\t\n\t\t\t\tlockAutoFocus.setBackgroundResource(R.drawable.eye_selected);\n\t\t\t} else {\n\t\t\t\tlockAutoFocus.setBackgroundResource(R.drawable.eye);\n\t\t\t\tstatusView.setText(getString(R.string.set_focus));\n\t\t\t\tCommonValues.getInstance().CameraMessage = CameraMessageStatus.Stopped;\n\t\t\t //getCameraManager().requestAutoFocus(handler, R.id.auto_focus);\n\t\t\t\t\n\t\t\t}\n\t\t\tlock_autofocus = !lock_autofocus;\n\t\t\tcameraManager.setAutoFocus(lock_autofocus);\n\t\t} catch (Exception oEx) {\n\n\t\t}\n\t}", "public void scroll(Vector2f codeWindowOffset){\n this.codeWindowOffset = codeWindowOffset;\n if(this.currentText != null) {\n updateXPosition(false);\n updateYPosition(false);\n }\n }", "public void focusGained(FocusEvent arg0) {\r\n Object object = tabFolderSessions.getData(TabFolderSessionsData.TARGET_FOCUS_CONTROL);\r\n if (object instanceof TN5250JGUI) {\r\n // Focus set\r\n tabFolderSessions.setData(TabFolderSessionsData.TARGET_FOCUS_CONTROL, null);\r\n TN5250JGUI tn5250jGUI = (TN5250JGUI)object;\r\n }\r\n System.out.println(\"TN5250JPart: Tab folder gained focus: \" + tn5250jPart.getClass().getSimpleName());\r\n setFocus();\r\n }", "protected void beginEnterText()\n\t{\n\t\tdisplayingCaret = true;\n\t\ttext.appendText(\"|\");\n\t\tcaretBlinkTime = 0;\n\t\tclearCharBuffer = true;\n\t}" ]
[ "0.71448207", "0.6785031", "0.67346394", "0.67346394", "0.6670449", "0.6670449", "0.6670449", "0.6670449", "0.6670449", "0.66382205", "0.6570784", "0.65694624", "0.65673906", "0.6561216", "0.6561216", "0.6561216", "0.6561216", "0.653213", "0.6515297", "0.65095556", "0.64687014", "0.64612037", "0.64612037", "0.64612037", "0.64612037", "0.64612037", "0.64612037", "0.64612037", "0.6451647", "0.6418056", "0.6418056", "0.6418056", "0.6409227", "0.6391239", "0.63654256", "0.6309516", "0.62998664", "0.6273769", "0.6256051", "0.6230136", "0.62298447", "0.6191356", "0.61698717", "0.6162732", "0.6162211", "0.6129197", "0.60459673", "0.6038194", "0.5931106", "0.5892619", "0.5891421", "0.58465695", "0.5774604", "0.57697487", "0.5763089", "0.5758256", "0.5733525", "0.5711281", "0.5672074", "0.56708056", "0.5655547", "0.5650696", "0.5623204", "0.5623204", "0.5623204", "0.5623204", "0.5623204", "0.5623204", "0.5623204", "0.5615591", "0.5613992", "0.56098545", "0.560945", "0.56050843", "0.5595272", "0.5593142", "0.5593142", "0.5593142", "0.55856466", "0.55856466", "0.556272", "0.5559831", "0.5559831", "0.55372757", "0.55372757", "0.55191016", "0.5516512", "0.551096", "0.5500638", "0.5497385", "0.54575115", "0.544678", "0.5439025", "0.5417419", "0.54128164", "0.54095024", "0.54072136", "0.5403856", "0.54015595", "0.5399308" ]
0.7711453
0
Schedules render for this output. No op, if render was already scheduled for this output.
public void requestRepaint() { JWLC.nativeHandler().wlc_output_schedule_render(this.to()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void render(Callable<Object> callable) {\n\t\trenderQueue.enqueue(callable);\n\t}", "@Override\n public void render() {\n if (renderInterrupted) {\n log.debug(\"render()\");\n renderInterrupted = false;\n }\n\n }", "public void render(float dt) {\n SystemManager.find(RenderAction.class).forEach(ra -> ((RenderAction) ra).render(dt));\n }", "@Override\n\tpublic void render() {\n\t\tScreen.render();\n\t}", "private void render() {\n\n StateManager.getState().render();\n }", "public void startRendering() {\n if (!justRendered) {\n justRendered = true;\n \n if (Flags.wireFrame) p.render_wireFrame();\n else p.render();\n }\n }", "public void render(){\n\t\tBufferStrategy bs = frame.getBufferStrategy();\n\t\tif(bs == null){\n\t\t\tframe.createBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\trenderGraphics(bs);\n\t}", "public void render() {\n }", "private void render() {\n\t\tBufferStrategy buffStrat = display.getCanvas().getBufferStrategy();\n\t\tif(buffStrat == null) {\n\t\t\tdisplay.getCanvas().createBufferStrategy(3); //We will have 3 buffered screens for the game\n\t\t\treturn;\n\t\t}\n\n\t\t//A bufferstrategy prevents flickering since it preloads elements onto the display.\n\t\t//A graphics object is a paintbrush style object\n\t\tGraphics g = buffStrat.getDrawGraphics();\n\t\t//Clear the screen\n\t\tg.clearRect(0, 0, width, height); //Clear for further rendering\n\t\t\n\t\tif(State.getState() !=null) {\n\t\t\tState.getState().render(g);\n\t\t}\n\t\t//Drawings to be done in this space\n\t\t\n\t\t\n\t\t\n\t\tbuffStrat.show();\n\t\tg.dispose();\n\t}", "public void display()\r\n\t{\r\n\t\t//System.out.println(\"Call to display\");\r\n\t\tif (this.isRunning) {\r\n\t\t\tfor (int i=0;i<Actions.size();i++) {\r\n\t\t\t\t((Action)Actions.elementAt(i)).tick(currTime++);\r\n\t\t\t}\r\n\t\t}\r\n\t\trender(true);\r\n\t}", "@Override\n\tpublic void tick() {\n\t\trenderer.render(this);\n\t}", "public void render() {\r\n\r\n }", "@Override\n public void render() {\n float deltaTime = Math.min(Gdx.graphics.getDeltaTime(), 1.0f / 60.0f);\n\n // no ongoing transition\n if (currScreen != null) {\n currScreen.render(deltaTime);\n }\n }", "@Override\r\n\tpublic Void call(){\r\n\t\tupdateProgress(0, 1);\r\n\t\trendering = true;\r\n\t\t\r\n\t\tlong startTime = System.currentTimeMillis();\r\n\t\t\r\n\t\tfor(int i = 0; i < numberOfThreads; i++){\r\n\t\t\tthreads[i] = new RenderThread(i * (WIDTH / numberOfThreads), (i + 1) * (WIDTH / numberOfThreads), this);\r\n\t\t}\r\n\t\t\r\n\t\twhile(rendering){\r\n\t\t\tint threadsRunning = numberOfThreads;\r\n\t\t\tfloat percentComplete = 0f;\r\n\r\n\t\t\tfor(RenderThread t : threads){\r\n\t\t\t\tif(!t.isRendering()){\r\n\t\t\t\t\tthreadsRunning -= 1;\r\n\t\t\t\t\tpercentComplete += 1f / numberOfThreads;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tfloat percent = t.getPercentComplete();\r\n\t\t\t\t\tpercentComplete += (percent / numberOfThreads);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tupdateProgress((double) (percentComplete), 1);\r\n\t\t\t\r\n\t\t\tif(threadsRunning == 0){\r\n\t\t\t\trendering = false;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\tlong renderTime = System.currentTimeMillis() - startTime;\r\n\t\t\r\n\t\trendering = false;\r\n\t\t\r\n\t\tlong hours = TimeUnit.MILLISECONDS.toHours(renderTime);\r\n\t\trenderTime -= TimeUnit.HOURS.toMillis(hours);\r\n\t\tlong minutes = TimeUnit.MILLISECONDS.toMinutes(renderTime);\r\n\t\trenderTime -= TimeUnit.MINUTES.toMillis(minutes);\r\n\t\tlong seconds = TimeUnit.MILLISECONDS.toSeconds(renderTime);\r\n\t\t\r\n\t\tString time = String.format(\"Render Time: %d hours, %d minutes, %d seconds\", hours, minutes, seconds);\r\n\t\tToolkit.getDefaultToolkit().beep();\r\n\t\t\r\n\t\tSystem.out.println(time);\r\n\t\t\r\n\t\tdrawSet();\r\n\t\t\r\n\t\tif(autoSave){\r\n\t\t\tautoSave();\r\n\t\t}\r\n\t\t\r\n\t\tif(iterationChange){\r\n\t\t\tITERATIONS = changedIterations;\r\n\t\t\titerationChange = false;\r\n\t\t}\r\n\t\t\r\n\t\tif(zoomChange){\r\n\t\t\tZOOM = changedZoom;\r\n\t\t\tzoomChange = false;\r\n\t\t\tchangedZoom = null;\r\n\t\t}\r\n\t\t\r\n\t\tif(numberOfThreadsChanged){\r\n\t\t\tnumberOfThreads = changedNumberOfThreads;\r\n\t\t\tnumberOfThreadsChanged = false;\r\n\t\t\tchangedNumberOfThreads = 0;\r\n\t\t}\r\n\t\t\r\n\t\tif(xyChange){\r\n\t\t\txOffset = changedXOffset;\r\n\t\t\tyOffset = changedYOffset;\r\n\t\t\txyChange = false;\r\n\t\t\tchangedXOffset = null;\r\n\t\t\tchangedYOffset = null;\r\n\t\t}\r\n\t\t\r\n\t\tif(imageAspectChanged){\r\n\t\t\tWIDTH = newWIDTH;\r\n\t\t\tHEIGHT = newHEIGHT;\r\n\t\t\timageAspectChanged = false;\r\n\t\t\tnewWIDTH = 0;\r\n\t\t\tnewHEIGHT = 0;\r\n\t\t\timg = new WritableImage(WIDTH, HEIGHT);\r\n\t\t\trgbArray = new int[WIDTH * HEIGHT];\r\n\t\t\tsetMaxAndMins();\r\n\t\t}\r\n\t\t\r\n\t\treturn null;\r\n\t}", "public void run() {\n if (mStopping)\n return;\n if (mFailed) {\n // render didn't complete (probably got cancelled)\n // remove from the view (but we may still get cached)\n removeFromViews();\n }\n // the views may be null/empty if we were removed from it while\n // queued by the handler\n if (mViews != null && !mViews.isEmpty()) {\n try {\n for (View view : mViews) {\n // we are safe to update this view,\n // if another task had been started on the view\n // the view would have already have been removed from\n // our set\n update(view, mRender, mPass - 1);\n }\n } finally {\n if (mPass < mPasses) {\n // reschedule again if we need to perform more passes\n enqueue();\n } else {\n // we're done, remove us from all our views\n // we lose the ability to avoid doing the same rendering\n // for the same view (very rare)\n // but this is worth it, so that we can re-use the\n // render from the cache (much more likely)\n removeFromViews();\n }\n }\n }\n // try putting us into the cache\n encache();\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\t\n\t\twhile (running) {\n\t\t\tupdate();\n\t\t\ttry {\n\t\t\t\tthread.sleep(1);\n\t\t\t} catch (InterruptedException e) {\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\trender();\n\t\t}\n\t\t\n\t}", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) { //if the buffer strategy doesnt get created, then you create it\n\t\t\tcreateBufferStrategy(3); //the number 3 means it creates triple buffering\n\t\t\treturn;\t\t\t\t\t//, so when you backup frame gets displayed (2) it will also have a backup\t\n\t\t}\n\t\t\n\t\t//apply data to the buffer \"bs\"\n\t\t//this is creating a link to graphics to drawing graphics to the screen.\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t/**\n\t\t * You input all of your graphics inbetween the g object and g.dispose();\n\t\t */\n\t\t//###################\n\t\t\n\t\tg.setColor(Color.BLACK);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t\n\t\t//###################\n\t\tg.dispose(); //this dispose of all the graphics\n\t\tbs.show(); //this will make the next available buffer visible\n\t}", "public void render()\r\n\t{\n\t}", "public void render() {\n\t\tBufferStrategy bs = getBufferStrategy();\n\t\tif (bs == null) {\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t// get graphics object for drawing on canvas\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t// clear screen before drawing new objects to it\n\t\tg.setColor(style.getBackCol());\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\t// use style from server to draw time information, only if we have\n\t\t// synced the time with the server.\n\t\tg.setColor(style.getTimeCol());\n\t\tif (tim.TIME_SYNCED) {\n\t\t\t// set font and font size, perhaps font can also be customizable in\n\t\t\t// the future?\n\t\t\tg.setFont(new Font(\"TimesRoman\", Font.PLAIN, style.getTimePoint()));\n\t\t\tFontMetrics metrics = g.getFontMetrics(new Font(\"TimesRoman\", Font.PLAIN, style.getTimePoint()));\n\t\t\t// get height to offset text by when drawing.\n\t\t\tint hgt = metrics.getHeight();\n\t\t\t// System.out.println(\"\" +style.getLeft() * WIDTH);\n\t\t\tg.drawString(tim.getTime(), (int) (style.getLeft() * WIDTH), (int) (style.getTop() * HEIGHT + hgt));\n\t\t}\n\t\t// clear graphics from memory and draw screen buffer\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "public void render() {\n\t\tscreen.background(255);\n\t\thandler.render();\n\t}", "public void render();", "public void render() {\n GameApp.getSpritebatch().draw(sprite, position.x, position.y, GridSquare.SIZE, GridSquare.SIZE);\n if (active) {\n if (currTime + attack.getAttackDelay() < System.currentTimeMillis() && attackTargets()) {\n\n currTime = System.currentTimeMillis();\n }\n attack.render();\n }\n }", "public void render () \n\t{ \n\t\trenderWorld(batch);\n\t\trenderGui(batch);\n\t}", "public final void calledDuringRender() {\n calledEveryFrame();\n numFrames++;\n }", "@Override\n public void render() {\n GUI.clearScreen();\n if (assetManager.update()) {\n switch (gameState) {\n case MENU:\n GUI.menuLoop();\n break;\n case PAUSE:\n case GAME:\n gameLoop();\n break;\n case LOAD:\n World.load();\n gameState = GameState.GAME;\n break;\n }\n } else {\n GUI.splashScreen(assetManager.getProgress());\n }\n DrawManager.end();\n }", "@Override\n\tpublic void forceRender() {\n\n\t}", "@Override\n public void enrichRenderQueue(RenderQueue renderQueue) {\n }", "public abstract void render(Renderer renderer);", "public void render() {\n\t\t// do nothing... as we should\n\t}", "protected void render() {\n\t\tentities.render();\n\t\t// Render GUI\n\t\tentities.renderGUI();\n\n\t\t// Flips the page between the two buffers\n\t\ts.drawToGraphics((Graphics2D) Window.strategy.getDrawGraphics());\n\t\tWindow.strategy.show();\n\t}", "private void render() {\n final int numBuffers = 3;\n BufferStrategy bs = this.getBufferStrategy(); // starts value at null\n if (bs == null) {\n this.createBufferStrategy(numBuffers); // 3: buffer creations\n return;\n }\n Graphics g = bs.getDrawGraphics();\n\n g.setColor(Color.black); // stops flashing background\n g.fillRect(0, 0, WINDOW_WIDTH, WINDOW_HEIGHT);\n\n handler.render(g);\n\n if (gameStart == GAME_STATE.Game) {\n hud.render(g);\n } else if (gameStart == GAME_STATE.Menu || gameStart == GAME_STATE.Help || gameStart == GAME_STATE.GameOver || gameStart == GAME_STATE.GameVictory) {\n menu.render(g);\n }\n\n g.dispose();\n bs.show();\n }", "protected void render(){}", "public void render() {\n this.canvas.repaint();\n }", "public void render() {\n uiBatch.begin();\n for (int x = 0; x < uiManager.getUIComponents().size();x++) {\n uiManager.getUIComponent(x).render(uiBatch, Assets.patch);\n }\n if (uiManager.dialogue != null) {\n uiManager.dialogue.render(uiBatch, Assets.patch);\n }\n if (!uiManager.notifications.isEmpty()) {\n uiManager.notifications.get(0).render(uiBatch, Assets.patch);\n }\n uiManager.partyMenu.render(uiBatch, Assets.patch);\n uiBatch.end();\n }", "@Override\r\n\tpublic void render() {\n\t\t\r\n\t}", "public void render(){\n //this block is pre-loading 2 frames in\n BufferStrategy bs = this.getBufferStrategy();\n if(bs == null){\n this.createBufferStrategy(2);\n return;\n }\n\n Graphics g = bs.getDrawGraphics();\n Graphics2D g2d = (Graphics2D) g;\n ///////////////////////////\n //Draw things below here!\n g.setColor(Color.white);\n g.fillRect(0, 0, 800, 800);\n\n g2d.translate(-camera.getX(), -camera.getY());\n\n g.setColor(Color.gray);\n g.fillRect(0, 0, 500, 500);\n //render all the objects\n handler.render(g);\n\n //g2d.translate(camera.getX(), camera.getY());\n //Draw things above here!\n ///////////////////////////\n g.dispose();\n bs.show();\n }", "public void requestrender() {\n\t\trender(g2d);\r\n\t\tGraphics g = getGraphics();\r\n\t\tg.drawImage(image , 0 , 0, null);\r\n\t\tg.dispose();\r\n\t\t\r\n\t}", "public Void call() throws Exception {\n if (mStopping)\n return null;\n Process.setThreadPriority(getThreadPriority(mPass));\n try {\n Render render = render(mParam, mPass);\n if (render == null) {\n mFailed = true;\n } else {\n // record the render, we will apply to the view it cache it\n // later\n mRender = render;\n // increment the pass now - since later calls aren't\n // guaranteed to occur\n mPass++;\n }\n mHandler.post(this);\n return null;\n } finally {\n Process.setThreadPriority(mInheritedThreadPriority);\n }\n }", "public void render() {\r\n\t\t\r\n\t\tif (page >= 0 && page < pages.length) {\r\n\t\t\tTextures.renderQuad(pages[page][(updates / 90) % pages[page].length], 32, 32, 1024, 512);\r\n\t\t}\r\n\t}", "private void render() {\n\n\tbs=display.getCanvas().getBufferStrategy();\t\n\t\n\tif(bs==null) \n\t {\t\n\t\tdisplay.getCanvas().createBufferStrategy(3);\n\t\treturn ;\n\t }\n\t\n\tg=bs.getDrawGraphics();\n\n\t//Clear Screen\n\tg.clearRect(0, 0, width, height);\n\t\n\tif(State.getState()!=null )\n\t\tState.getState().render(g);\n\t\n\t//End Drawing!\n\tbs.show();\n\tg.dispose();\n\t\n\t}", "public void render(Graphics g) {\n\t\tif(runOnce==2) {\n\t\t\tgame.render(g);\n\t\t}\n\t\t\n\t}", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "@Override\n public void simpleRender(RenderManager rm) {\n }", "public void render(GameState state) {\n // Render single frame\n do {\n // The following loop ensures that the contents of the drawing buffer\n // are consistent in case the underlying surface was recreated\n do {\n // Get a new graphics context every time through the loop\n // to make sure the strategy is validated\n Graphics2D graphics = (Graphics2D) bufferStrategy.getDrawGraphics();\n try {\n doRendering(graphics, state);\n } finally {\n // Dispose the graphics\n graphics.dispose();\n }\n // Repeat the rendering if the drawing buffer contents were restored\n } while (bufferStrategy.contentsRestored());\n\n // Display the buffer\n bufferStrategy.show();\n // Tell the system to do the drawing NOW;\n // otherwise it can take a few extra ms and will feel jerky!\n Toolkit.getDefaultToolkit().sync();\n\n // Repeat the rendering if the drawing buffer was lost\n } while (bufferStrategy.contentsLost());\n }", "@Override\n\tpublic void render() {\n\t\t\n\t}", "public void Render() {\n\t\tbufferStrat = getBufferStrategy();\n\t\tif (bufferStrat == null) {\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tstylus = bufferStrat.getDrawGraphics();\n\t\t\n\t\tstylus.drawImage(buffer, 0, 0, getWidth(), getHeight(), null);\n\t\t\n\t\tstylus.dispose();\n\t\tbufferStrat.show();\n\t}", "@Override\n\tpublic void render() {\n\t\tgraphics.clearRect(0, 0, layerWidth, layerheight);\n\t\t\n\t\tfor(int i = 0, length = renderList.size(); i < length; i++) {\n\t\t\tSprite sprite = renderList.get(i);\n\t\t\trotateImage(sprite);\n\t\t\tgraphics.drawImage(sprite.getImage(), sprite.getX(), sprite.getY());\n\t\t}\n\t\t\n\t\ttimeDelay(3000);\n\t}", "@Override\r\n\tpublic void simpleRender(RenderManager rm) {\n\t}", "public void onRenderTick() {\n updateLang();\n updateRenderEngine();\n }", "public void render(int FrameBufferObjectID) {\r\n\t\tif (FrameBufferIDs.contains(FrameBufferObjectID)) {\r\n\t\t\tRender(FrameBufferObjectID);\r\n\t\t}\r\n\t}", "private void render() {\n\t\tBufferStrategy bs = this.getBufferStrategy();\r\n\t\tif (bs == null) {\r\n\t\t\tcreateBufferStrategy(3);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t\r\n\t\t//Initiates Graphics class using bufferStrategy\r\n\t\tGraphics g = bs.getDrawGraphics();\r\n\t\t\r\n\t\t//displays img on screen\r\n\t\tg.drawImage(img, 0, 0, null);\r\n\t\t\r\n\t\tg.setColor(Color.CYAN);\r\n\t\tg.drawString(fps + \" FPS\", 10, 10);\r\n\t\tg.setFont(new Font(\"Arial\", 0, 45));\r\n\r\n\t\tg.dispose();//clears graphics\r\n\t\tbs.show();//shows graphics\r\n\t}", "public void queueEvent(Runnable r) {\n renderqueue.add(r);\n }", "public interface Renderable {\n\n void render();\n}", "void render(Object rendererTool);", "public void run() {\n // run called\n System.out.println(\"Run called\");\n status = true;\n Thread t = new Thread() {\n @Override\n public void run() {\n while(status) {\n\t\t\t\t\tSystem.out.println(\"step\");\n // step();\n\t\t\t\t\t//render();\n }\n }\n };\n t.start();\n\n Thread h = new Thread() {\n @Override\n public void run() {\n while(status) {\n render();\n }\n }\n };\n h.start();\n }", "@Override\r\n\tpublic void render() {\n\r\n\t}", "protected void render() {\n\t\tString accion = Thread.currentThread().getStackTrace()[2].getMethodName();\n\t\trender(accion);\n\t}", "@Override\n public void render() {\n super.render();\n }", "@Override\n public void render() {\n super.render();\n }", "public void renderOccurred (RendererEvent e) {\n updateWidgets();\n }", "@Override\r\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }", "public void setRender(boolean render)\r\n/* 294: */ {\r\n/* 295:315 */ this.render = render;\r\n/* 296: */ }", "public void render(\n Graphics2D renderContext,\n Dimension2D renderSize\n )\n {render(renderContext, renderSize, null);}", "public static void requestRenderFromNUI() {\r\n\t\tif (m_Handler != null) {\t\t\t\r\n\t\t\ts_lRequestTicks = System.currentTimeMillis();\r\n\t\t\tm_SkiaView.postInvalidate();\r\n\t\t}\r\n\t}", "@Override\n public void setToBeRendered(boolean arg0)\n {\n \n }", "@Override\n\tpublic void render(float delta) {\n\t\trunTime += delta;\n\t\tworld.update(delta);\n\t\trenderer.setDeltaTime(delta);\n\t\trenderer.render(delta, runTime);\n\t\t\n\t}", "public void render() {\n renderHud();\n }", "public void render()\n\t{\n\t\tBufferStrategy bs = this.getBufferStrategy();\n\n\t\tif (bs == null)\n\t\t{\n\t\t\tcreateBufferStrategy(3);\n\t\t\treturn;\n\t\t}\n\n\t\tGraphics g = bs.getDrawGraphics();\n\t\t//////////////////////////////\n\n\t\tg.setColor(Color.DARK_GRAY);\n\t\tg.fillRect(0, 0, getWidth(), getHeight());\n\t\tif (display != null && GeneticSimulator.updateRendering)\n\t\t{\n\t\t\tg.drawImage(display, 0, 0, getWidth(), getHeight(), this);\n\t\t}\n\n\t\tWorld world = GeneticSimulator.world();\n\n\t\tworld.draw((Graphics2D) g, view);\n\n\t\tg.setColor(Color.WHITE);\n\t\tg.drawString(String.format(\"view: [%2.1f, %2.1f, %2.1f, %2.1f, %2.2f]\", view.x, view.y, view.width, view.height, view.PxToWorldScale), (int) 10, (int) 15);\n\n\t\tg.drawString(String.format(\"world: [time: %2.2f pop: %d]\", world.getTime() / 100f, World.popCount), 10, 30);\n\n\t\tg.drawRect(view.pixelX, view.pixelY, view.pixelWidth, view.pixelHeight);\n//\t\tp.render(g);\n//\t\tc.render(g);\n\n\n\t\t//g.drawImage(player,100,100,this);\n\n\t\t//////////////////////////////\n\t\tg.dispose();\n\t\tbs.show();\n\t}", "@Override\n\tpublic void run() {\n\t\tgameImpl.render();\n\t\tgameImpl.update();\n\t}", "public void render(int gameSpeed){\n counterFrames++;\n if (counterFrames*gameSpeed*1000 >= (60 * (delay))){\n setDone();\n }\n }", "void onRender(RenderArguments arguments);", "void renderFrame(){\n if(getPlayer().isChoosingFile()) return; // don't render while filechooser is active\n \n if(canvasFileWriter.writingMovieEnabled) chipCanvas.grabNextImage();\n chipCanvas.paintFrame(); // actively paint frame now, either with OpenGL or Java2D, depending on switch\n \n if(canvasFileWriter.writingMovieEnabled){\n canvasFileWriter.writeMovieFrame();\n }\n }", "public void render(){\n\t\tstage.act();\n\t\tstage.draw();\n\t}", "public void prerender() {\n }", "public void prerender() {\n }", "void renderLoop(RenderLoopCallback renderLoop);", "private void render() {\n if (game.isEnded()) {\n if (endGui == null) {\n drawEndScreen();\n }\n\n return;\n }\n\n drawScore();\n drawSnake();\n drawFood();\n }", "@Override\n protected void controlRender(RenderManager rm, ViewPort vp) {\n }", "public void flush() {\n renderMesh();\n }", "private void render() {\n\n if (state == STATE.PAUSE) {\n\n return;\n }\n\n\n if (state == STATE.MENU) {\n\n menu.draw();\n arrow.render();\n return;\n\n }\n\n if (state == STATE.INSTRUCTIONS) {\n instructions.draw();\n return;\n }\n\n for (int i = 0; i < spaceShips.size(); i++) {\n spaceShips.get(i).render();\n }\n\n\n for (Enemy enemy : enemies) {\n enemy.render();\n }\n\n for (int i = 0; i < powerUps.size(); i++) {\n\n powerUps.get(i).render();\n }\n\n for (int i = 0; i < enemyBullets.size(); i++) {\n\n enemyBullets.get(i).render();\n }\n\n for (int i = 0; i < friendlyBullets.size(); i++) {\n\n friendlyBullets.get(i).render();\n }\n\n topBar.render();\n bottomBar.render();\n fps.render();\n score.render();\n\n\n }", "@Override\n\tpublic void render () {\n\n\t}", "@Override\n\tprotected void controlRender(RenderManager rm, ViewPort vp) {\n\t\t\n\t}", "void dynamicRendering();", "public void render(GameContainer gc, GameManager gm, Renderer r) {\n }", "public void onRender(View v) {\n //create folder \"frames\"\n File f = new File(getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS), projectName + File.separator + RENDER_FOLDER );\n if (!f.mkdir() && !f.isDirectory()) {\n Log.e(\"RenderSettings\", \"onRender making the render folder(\\\"\"+RENDER_FOLDER+\"\\\") failed.\");\n return;\n }\n\n //save settings in folder\n saveProject();\n\n //start generating frames\n Engine e = new Engine(this, renderMessageHandler, projectName, frames, a, b, P, 512, 512);\n e.render();\n updateProgressMessage();\n }", "public interface Renderer {\n public void render();\n}", "public void renderEntities() {\n Set<Entity> toRender = Engine\n .get()\n .getEntityStream()\n .getEntitiesCopy(SpaxelComponent.RENDER);\n for (Entity ne : toRender) {\n ((RenderBehaviour) ne.getComponent(SpaxelComponent.RENDER)).render(\n ne,\n bufferBuffer\n );\n }\n }", "@Override\n\tpublic void render(float delta) {\n\t\t//Default render call delegate to GameStateManager\n\t\tgsm.render(sb, sr);\n\t}", "public void renderAll() {\n GameObjectManager.instance.renderAll(graphics);\n this.repaint();\n }", "@Override\n \tprotected void controlRender(RenderManager rm, ViewPort vp) {\n \n \t}", "public void run() {\r\n\t\tint frames = 0;\r\n\t\tdouble unprocessedSeconds = 0;\r\n\t\tlong previousTime = System.nanoTime();\r\n\t\tdouble secondsPerTick = 1 / 60.0;\r\n\t\tint tickCount = 0;\r\n\t\tboolean ticked = false;\r\n\t\t\r\n\t\twhile (running) {\r\n\t\t\tlong currentTime = System.nanoTime();\r\n\t\t\tlong passedTime = currentTime - previousTime;\r\n\t\t\tpreviousTime = currentTime;\r\n\t\t\tunprocessedSeconds += passedTime / 1000000000.0;\r\n\t\t\trequestFocus();//has the window selected when program is lanched\r\n\r\n\t\t\twhile (unprocessedSeconds > secondsPerTick) {\r\n\t\t\t\tunprocessedSeconds -= secondsPerTick;\r\n\t\t\t\tticked = true;\r\n\t\t\t\ttickCount++;\r\n\t\t\t\tif (tickCount % 3 == 0) {//calls on tick 20x/second\r\n\t\t\t\t\ttick();\r\n\t\t\t\t\tnumberOfTicks++;\r\n\t\t\t\t}\r\n\t\t\t\tif (tickCount % 60 == 0) {\r\n\t\t\t\t\t//System.out.println(frames + \"fps\");\r\n\t\t\t\t\tfps = frames;\r\n\t\t\t\t\tpreviousTime += 1000;\r\n\t\t\t\t\tframes = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\trender();\r\n\t\t\tframes++;\r\n\t\t}\r\n\t}", "public void pipeTimer() {\n float amountOfSecondsBetweenSpawns = 3;\n if (getRenderTimer() < amountOfSecondsBetweenSpawns) {\n setRenderTimer(getRenderTimer() + elapsedTime);\n return;\n }\n setRenderTimer(0);\n createPipes();\n }", "public static void run()\r\n\t{\r\n\t\tlong lastTime = System.nanoTime();\r\n\t\tdouble nsPerTick = 1000000000D / 30D;\r\n\t\t\r\n\t\tlong lastTimer = System.currentTimeMillis();\r\n\t\tdouble delta = 0; \r\n\r\n\t\twhile(isRunning)\r\n\t\t{\r\n\t\t\tlong now = System.nanoTime();\r\n\t\t\tdelta += (now - lastTime) / nsPerTick;\r\n\t\t\tlastTime = now;\r\n\t\t\t\r\n\t\t\twhile(delta >= 1)\r\n\t\t\t{\r\n\t\t\t\tdisplay.update();\r\n\t\t\t\tdisplay.render();\r\n\t\t\t\tdelta -= 1;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif(System.currentTimeMillis() - lastTimer > 1000)\r\n\t\t\t{\r\n\t\t\t\tlastTimer += 1000;\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void render() {\n\n /*\n gridCache is a much more efficient way of rendering the grid -- instead of iterating every single location with each render(),\n it only draws the locations which have changed, cutting down on lag.\n */\n\n ArrayList<Location> queue = gridCache;\n\n if (doFullRender) { // On the first render it should draw the entire grid\n background(255, 255, 255);\n queue = grid;\n doFullRender = false;\n this.bar = new ScoreBar(players, 0, topHeight/2 + topHeight/4);\n }\n\n for (PowerUp p : powerUps) { // Workaround for cache being overwritten\n p.addToCache();\n }\n\n for (Location loc : queue) {\n if (loc.getType() != LocationType.POWERUP) {\n int c = loc.getColor();\n stroke(c);\n fill(c);\n\n rect(loc.getX(), loc.getY(), pixelSize-1, pixelSize-1);\n } else {\n Location l2 = getLocation(loc);\n if (l2 != null) {\n l2.setType(LocationType.POWERUP);\n }\n }\n }\n\n for (PowerUp p : powerUps) {\n p.render();\n }\n\n gridCache = new ArrayList();\n}", "public void paint()\n {\n try { Thread.sleep(SPEED); } \n catch (Exception e) { }\n \n this.printMap();\n }", "@Override\n\tpublic void render(float deltaTime) {\n\t\t\n\t}" ]
[ "0.67631286", "0.6716176", "0.6444284", "0.6314498", "0.6207208", "0.6144591", "0.60388225", "0.59988976", "0.59969306", "0.5971774", "0.5908048", "0.58988494", "0.5877015", "0.5873303", "0.58683324", "0.5853785", "0.5829132", "0.5826098", "0.57944036", "0.57745314", "0.57734567", "0.57685596", "0.5757694", "0.5719323", "0.5712669", "0.57106316", "0.5672447", "0.5659492", "0.56591564", "0.563884", "0.5636193", "0.56323135", "0.55785036", "0.55678636", "0.5564021", "0.5555472", "0.55521154", "0.55363446", "0.549355", "0.54838187", "0.54838073", "0.5477765", "0.5477765", "0.5477765", "0.5477765", "0.5477765", "0.5477765", "0.5458703", "0.54512304", "0.54510206", "0.54280734", "0.54226613", "0.5407677", "0.53910667", "0.53798383", "0.5369644", "0.53654695", "0.5355953", "0.5348707", "0.53463197", "0.5341686", "0.5334375", "0.5334375", "0.5324722", "0.53225154", "0.5321594", "0.53121746", "0.52993834", "0.5273896", "0.5271726", "0.52690786", "0.5268749", "0.52496755", "0.5246261", "0.5245262", "0.52448016", "0.52447647", "0.5240761", "0.5240761", "0.5234746", "0.52291375", "0.52216214", "0.52194095", "0.52076477", "0.51970255", "0.51961374", "0.5174176", "0.5170945", "0.51681536", "0.5164607", "0.5148126", "0.51466143", "0.51455486", "0.51330084", "0.51305866", "0.5127481", "0.51265305", "0.5124322", "0.5122089", "0.51209795" ]
0.63421917
3
Creates new form ViewGadai
public ViewGadai() { initComponents(); gc = new GadaiController(); datas= gc.bindingAll(TBLGadai, header); gc.loadCustomer(cmbCust); gc.loadBarang(cmbBrg); // gc.loadHistory(cmbStatus); reset(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 }", "FORM createFORM();", "public static Result newForm() {\n return ok(newForm.render(palletForm, setOfArticleForm));\n }", "@Override\n public void Create() {\n\n initView();\n }", "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 }", "@GetMapping(value = \"/create\") // https://localhost:8080/etiquetasTipoDisenio/create\n\tpublic String create(Model model) {\n\t\tetiquetasTipoDisenio etiquetasTipoDisenio = new etiquetasTipoDisenio();\n\t\tmodel.addAttribute(\"title\", \"Registro de una nuev entrega\");\n\t\tmodel.addAttribute(\"etiquetasTipoDisenio\", etiquetasTipoDisenio); // similar al ViewBag\n\t\treturn \"etiquetasTipoDisenio/form\"; // la ubicacion de la vista\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}", "public FormularioLivroView() {\n initComponents();\n }", "public String newBoleta() {\n\t\tresetForm();\n\t\treturn \"/boleta/insert.xhtml\";\n\t}", "@Override\n public void Create() {\n initView();\n initData();\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 }", "@Override\r\n\tpublic void crearVehiculo() {\n\t\t\r\n\t}", "public void createItem(View view) {\n \t\n String[] temp = getCurrentItemTypes();\n \n Intent intent = new Intent(this, CreateItem.class);\n intent.putExtra(EDIT, \"no\");\n intent.putExtra(TYPES, temp);\n startActivityForResult(intent, 1);\n }", "public void goToCreate(View view) {\n Intent intent = new Intent(this, CreateAccountActivity.class);\n startActivity(intent);\n }", "public void clickCreate() {\n\t\tbtnCreate.click();\n\t}", "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}", "@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 }", "@Override\r\n\t\tpublic void onClick(ClickEvent event) {\n\t\t\tRootPanel.get(\"details\").clear();\r\n\t\t\tuf = new UserForm(AktuellerAnwender.getAnwender());\r\n\t\t\tRootPanel.get(\"details\").add(uf);\r\n\t\t}", "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 ViewUsluga() {\n initComponents();\n obrada = new ObradaUsluga();\n postInitComponents(); \n }", "public FormInserir() {\n initComponents();\n }", "public void onNew() {\t\t\n\t\tdesignWidget.addNewForm();\n\t}", "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 void actionPerformed(ActionEvent e)\n {\n UpravView v = new UpravView(view.getController());\n JFrame UprFrm = ViewFrame.CreateUpravView(v);\n }", "public void createAccount(View view) {\n Intent intent = new Intent(this, UserAccountCreateActivity.class);\n startActivity(intent);\n }", "public void create_new_package(View V) {\n make_request();\r\n progressDialog.show();\r\n }", "@RequestMapping(\"/book/new\")\n public String newBook(Model model){\n model.addAttribute(\"book\", new Book ());\n return \"bookform\";\n }", "public View onCreateView(@NonNull LayoutInflater inflater,\n ViewGroup container, Bundle savedInstanceState) {\n \n View root = inflater.inflate(R.layout.fragment_add_training, container, false);\n controller = Controller.getInstance(root.getContext()); // database\n Button dateButton = root.findViewById(R.id.at_button_date);\n Button submit = root.findViewById(R.id.at_button_submit);\n\n // initialize form\n setCalendarToFrench();\n initForm(root);\n\n // event click on calendar button\n dateButton.setOnClickListener(v -> chooseDateFromCalendar(dateButton));\n\n // event click on submit button\n submit.setOnClickListener(v -> submitForm());\n\n return root;\n }", "public ViewDetalleVentas() {\n initComponents();\n }", "@Override\n public void onClick(View v) {\n NewBucketDialogFragment newBucketDialogFragment = NewBucketDialogFragment.newInstance();\n newBucketDialogFragment.setTargetFragment(BucketListFragment.this, REQ_CODE_NEW_BUCKET);\n newBucketDialogFragment.show(getFragmentManager(), NewBucketDialogFragment.TAG);\n }", "public String nuevo() {\n\n\t\tLOG.info(\"Submitado formulario, accion nuevo\");\n\t\tString view = \"/alumno/form\";\n\n\t\t// las validaciones son correctas, por lo cual los datos del formulario estan en\n\t\t// el atributo alumno\n\n\t\t// TODO simular index de la bbdd\n\t\tint id = this.alumnos.size();\n\t\tthis.alumno.setId(id);\n\n\t\tLOG.debug(\"alumno: \" + this.alumno);\n\n\t\t// TODO comprobar edad y fecha\n\n\t\talumnos.add(alumno);\n\t\tview = VIEW_LISTADO;\n\t\tmockAlumno();\n\n\t\t// mensaje flash\n\t\tFacesContext facesContext = FacesContext.getCurrentInstance();\n\t\tExternalContext externalContext = facesContext.getExternalContext();\n\t\texternalContext.getFlash().put(\"alertTipo\", \"success\");\n\t\texternalContext.getFlash().put(\"alertMensaje\", \"Alumno \" + this.alumno.getNombre() + \" creado con exito\");\n\n\t\treturn view + \"?faces-redirect=true\";\n\t}", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "@Override\n public void buttonClick(ClickEvent event) {\n \n \ttry {\n\t\t\t\t\tUI.getCurrent().getNavigator().addView(_nombreSeccion + \"Adm/\" + _titulo.getCaption(), new AdministradorClase(new Lista_Mensaje_V_Administrador(it.getIdTema())));\n\t\t\t\t} catch (PersistentException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tUI.getCurrent().getNavigator().navigateTo(_nombreSeccion+ \"Adm/\" + _titulo.getCaption());\n \t\n \t\n }", "public void buttonNew(View view) {\n Intent intent = new Intent(this, ProductNewActivity.class);\n startActivity(intent);\n }", "public static Result startNewForm() {\r\n\t\tString formName = ChangeOrderForm.NAME;\r\n\t\tDecision firstDecision = CMSGuidedFormFill.startNewForm(formName,\r\n\t\t\t\tCMSSession.getEmployeeName(), CMSSession.getEmployeeId());\r\n\t\treturn ok(backdrop.render(firstDecision));\r\n\t}", "@Override\n public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {\n View v = inflater.inflate(R.layout.guia_fragment,container,false);\n guiaDescription = (TextInputEditText) v.findViewById(R.id.guia_description);\n guiaRelevantFact1 = (TextInputEditText) v.findViewById(R.id.relevant_fact_1);\n guiaRelevantFact2 = (TextInputEditText) v.findViewById(R.id.relevant_fact_2);\n guiaLogo = (TextInputEditText) v.findViewById(R.id.url_guia);\n bSubmit = (Button) v.findViewById(R.id.btn_submit);\n //initializing database reference\n mDatabaseReference = FirebaseDatabase.getInstance().getReference();\n bSubmit.setOnClickListener(this);\n return v;\n }", "public Angkot createAngkot(Angkot angkot) {\n \n // membuat sebuah ContentValues, yang berfungsi\n // untuk memasangkan data dengan nama-nama\n // kolom pada database\n ContentValues values = new ContentValues();\n values.put(HelperAngkot.COLUMN_NAME, angkot.getName());\n values.put(HelperAngkot.COLUMN_DESCRIPTION, angkot.getDescription());\n values.put(HelperAngkot.COLUMN_TIME, angkot.getTime());\n \n // mengeksekusi perintah SQL insert data\n // yang akan mengembalikan sebuah insert ID \n long insertId = database.insert(HelperAngkot.TABLE_NAME, null,\n values);\n \n // setelah data dimasukkan, memanggil perintah SQL Select \n // menggunakan Cursor untuk melihat apakah data tadi benar2 sudah masuk\n // dengan menyesuaikan ID = insertID \n Cursor cursor = database.query(HelperAngkot.TABLE_NAME,\n allColumns, HelperAngkot.COLUMN_ID + \" = \" + insertId, null,\n null, null, null);\n \n // pindah ke data paling pertama \n cursor.moveToFirst();\n \n // mengubah objek pada kursor pertama tadi\n // ke dalam objek barang\n Angkot newAngkot = cursorToAngkot(cursor);\n \n // close cursor\n cursor.close();\n \n // mengembalikan barang baru\n return newAngkot;\n }", "public frm_tutor_subida_prueba() {\n }", "public void onClickInsertAdd_Jogo(View v){\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n dateFormat = new SimpleDateFormat(\"MM/dd/yyyy\");\n View newBabyView = inflater.inflate(R.layout.fragment_new_baby, container, false);\n firstName = newBabyView.findViewById(R.id.editFirstName);\n lastName = newBabyView.findViewById(R.id.editLastName);\n birthday = newBabyView.findViewById(R.id.editBirthday);\n maleRadio = newBabyView.findViewById(R.id.radioMale);\n\n\n submitButton = newBabyView.findViewById(R.id.submitButton);\n submitButton.setOnClickListener(event->submit());\n\n editFields = new ArrayList();\n editFields.add(firstName);\n editFields.add(lastName);\n editFields.add(birthday);\n\n listener = (NewBabyListener)getActivity();\n\n return newBabyView;\n }", "public CrearGrupos() throws SQLException {\n initComponents();\n setTitle(\"Crear Grupos\");\n setSize(643, 450);\n setLocationRelativeTo(this);\n cargarModelo();\n }", "public RegistraEntradaSaidaView() {\n initComponents();\n }", "public Result addNewRoomType() {\n\n DynamicForm dynamicform = Form.form().bindFromRequest();\n if (dynamicform.get(\"AdminAddRoom\") != null) {\n\n return ok(views.html.AddRoomType.render());\n }\n\n\n return ok(\"Something went wrong\");\n }", "View createView();", "@Override\n\tpublic void onFormCreate(AbstractForm arg0, DataMsgBus arg1) {\n\t}", "private void initForm(@Nullable View view){\n inputCalendar = formatCalendar(new GregorianCalendar());\n\n if (view == null) view = getView();\n\n setValueOfField(view, R.id.at_button_date, getContext().getString(R.string.ad_button_date));\n setValueOfField(view, R.id.at_editTextNumberSigned_timeValue, \"0\");\n setValueOfField(view, R.id.at_editTextNumberSigned_levelEasyValue, \"0\");\n setValueOfField(view, R.id.at_editTextNumberSigned_levelMiddleValue, \"0\");\n setValueOfField(view, R.id.at_editTextNumberSigned_levelHighValue, \"0\");\n setValueOfField(view, R.id.at_editTextNumberSigned_levelExpertValue, \"0\");\n }", "@RequestMapping(value={\"/projects/add\"}, method= RequestMethod.GET)\r\n\tpublic String createProjectForm(Model model) {\r\n\t\tUser loggedUser= sessionData.getLoggedUser();\r\n\t\tmodel.addAttribute(\"loggedUser\", loggedUser);\r\n\t\tmodel.addAttribute(\"projectForm\", new Project());\r\n\t\treturn \"addProject\";\r\n\t}", "private void createForm(ArrayList<HashMap<String, String>> data) {\n\t\tLayoutInflater inflater = LayoutInflater.from(IPropertyRegistrationActivity.this);\n\t\tLinearLayout.LayoutParams params = new LinearLayout.LayoutParams(android.widget.LinearLayout.LayoutParams.MATCH_PARENT,\n\t\t\t\tandroid.widget.LinearLayout.LayoutParams.WRAP_CONTENT);\n\t\tparams.topMargin = 10;\n\n\t\tfields = data;\n\t\tLinearLayout layout = null;\n\t\tint len = fields.size();\n\t\tfor (int j = 0; j < len; j++) {\n\t\t\tfinal HashMap<String, String> field = fields.get(j);\n\t\t\tView fieldView = inflater.inflate(R.layout.iproperty_registration_dynamic_view_item, null);\n\n\t\t\tif (field.get(TYPE).equals(LABEL)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrLabel));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t} else if (field.get(TYPE).equals(PASSWORD)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEdit));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tif (field.get(NAME).contains(getString(R.string.phone)) || field.get(NAME).contains(getString(R.string.year))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_CLASS_NUMBER);\n\t\t\t\t} else if (field.get(NAME).contains(getString(R.string.website)) || field.get(NAME).contains(getString(R.string.email))) {\n\t\t\t\t\tedit.setInputType(InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS);\n\t\t\t\t}\n\t\t\t} else if (field.get(TYPE).equals(TEXTAREA)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditArea));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\n\t\t\t\tif (field.get(VALUE).toString().trim().length() > 0) {\n\t\t\t\t\tedit.setText(field.get(VALUE));\n\t\t\t\t} else {\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(MAP)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tfinal ImageView imgMap;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditMap));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\timgMap = ((ImageView) layout.findViewById(R.id.imgMap));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.state))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getAdminArea().replace(address.getCountryName() == null ? \"\" : address.getCountryName(), \"\")\n\t\t\t\t\t\t\t\t.replace(address.getPostalCode() == null ? \"\" : address.getPostalCode(), \"\"));\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t} else if (field.get(NAME).equalsIgnoreCase(getString(R.string.city_town))) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tedit.setText(address.getSubAdminArea());\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\tedit.setText(\"\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\timgMap.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(View v) {\n\t\t\t\t\t\teditMap = edit;\n\t\t\t\t\t\tIntent intent = new Intent(IPropertyRegistrationActivity.this, IjoomerMapAddress.class);\n\t\t\t\t\t\tstartActivityForResult(intent, GET_ADDRESS_FROM_MAP);\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(SELECT)) {\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrSpin));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tfinal Spinner spn;\n\t\t\t\tspn = ((Spinner) layout.findViewById(R.id.txtValue));\n\t\t\t\tspn.setAdapter(IjoomerUtilities.getSpinnerAdapter(field));\n\t\t\t\tif (field.get(NAME).equalsIgnoreCase(getString(R.string.country))) {\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tAddress address = IjoomerUtilities.getAddressFromLatLong(0, 0);\n\t\t\t\t\t\tString country = address.getCountryName();\n\t\t\t\t\t\tint selectedIndex = 0;\n\t\t\t\t\t\tJSONArray jsonArray = null;\n\n\t\t\t\t\t\tjsonArray = new JSONArray(field.get(OPTIONS));\n\t\t\t\t\t\tint optionSize = jsonArray.length();\n\t\t\t\t\t\tfor (int k = 0; k < optionSize; k++) {\n\t\t\t\t\t\t\tJSONObject options = (JSONObject) jsonArray.get(k);\n\n\t\t\t\t\t\t\tif (options.getString(VALUE).equalsIgnoreCase(country)) {\n\t\t\t\t\t\t\t\tselectedIndex = k;\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\tspn.setSelection(selectedIndex);\n\t\t\t\t\t} catch (Throwable e) {\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\tspn.setSelection(0);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t} else if (field.get(TYPE).equals(DATE)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getDateDialog(((IjoomerEditText) v).getText().toString(), true, new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(TIME)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getTimeDialog(((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setError(null);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t} else if (field.get(TYPE).equals(MULTIPLESELECT)) {\n\t\t\t\tfinal IjoomerEditText edit;\n\t\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable));\n\t\t\t\tlayout.setVisibility(View.VISIBLE);\n\t\t\t\tedit = ((IjoomerEditText) layout.findViewById(R.id.txtValue));\n\t\t\t\tedit.setOnClickListener(new OnClickListener() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(final View v) {\n\t\t\t\t\t\tIjoomerUtilities.getMultiSelectionDialog(field.get(NAME), field.get(OPTIONS), ((IjoomerEditText) v).getText().toString(), new CustomClickListner() {\n\n\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\tpublic void onClick(String value) {\n\t\t\t\t\t\t\t\t((IjoomerEditText) v).setText(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\n\t\t\tif (field.get(REQUIRED).equalsIgnoreCase(\"1\")) {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME) + \" *\");\n\t\t\t} else {\n\t\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t}\n\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEdit)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditArea)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrSpin)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrEditClickable)).setVisibility(View.GONE);\n\t\t\t((LinearLayout) fieldView.findViewById(R.id.lnrLabel)).setVisibility(View.GONE);\n\n\t\t\tlayout = ((LinearLayout) fieldView.findViewById(R.id.lnrReadOnly));\n\t\t\tlayout.setVisibility(View.VISIBLE);\n\n\t\t\t((IjoomerTextView) layout.findViewById(R.id.txtLable)).setText(field.get(NAME));\n\t\t\t((IjoomerEditText) layout.findViewById(R.id.txtValue)).setText(field.get(VALUE));\n\t\t\tfieldView.setTag(field);\n\t\t\tlnr_form.addView(fieldView, params);\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 creacionempresa() {\n initComponents();\n mostrardatos();\n }", "@Override\n public void onClick(View v) {\n\n DBCreate();\n\n SubmitData2SQLiteDB();\n\n }", "public SalidaCajaForm() {\n\t\tinicializarComponentes();\n }", "@Override\n public void onClick(View view) {\n\n NoteData newNote = new NoteData();\n String header = tagNewHeader.getText().toString();\n String note = tagNewNotes.getText().toString();\n newNote.setNote(header\n + DocumentPOJOUtils.DOC_NOTE_HEADER_DELIMITER\n + note\n );\n newNote.setOwner(globalVariable.getCurrentUser().getName());\n\n TabbedDocumentDialog listener = MappingUtilities.getTabbedDialog(getFragmentManager().getFragments());\n listener.onFinishEditDialog(newNote);\n CreateDocNotesDialog.super.dismiss();\n\n }", "public CreateAccount() {\n initComponents();\n selectionall();\n }", "public static void create(Formulario form){\n daoFormulario.create(form);\n }", "public void showCreateActivtiy(View v){\n Intent intent = new Intent(this, CreateActivity.class);\n startActivity(intent);\n }", "public void createEvent(View view){\n showDatePickerDialog();\n }", "@GetMapping(\"/create\")\n public ModelAndView create(@ModelAttribute(\"form\") final CardCreateForm form) {\n return getCreateForm(form);\n }", "public TrainModelGUI CreateNewGUI() {\n //Create a GUI object\n \ttrainModelGUI = new TrainModelGUI(this);\n \tsetValuesForDisplay();\n \treturn trainModelGUI;\n }", "public AddToVisitsDialogBox(Frame parent, GlobeApp gb) {\n this.gb = gb;\n this.parent = parent;\n Point loc = parent.getLocation();\n setAddVisitDialogUI(parent, loc);\n\n\n\n setNameUI();\n\n panel.add(namePanel);\n panel.add(Box.createVerticalStrut(10));\n\n\n\n setDateUI();\n\n panel.add(datePanel);\n panel.add(Box.createVerticalStrut(10));\n\n\n setNotesUI();\n\n panel.add(notesPanel);\n panel.add(Box.createVerticalStrut(15));\n\n\n setAddButtonUI();\n\n panel.add(addButton);\n panel.add(Box.createVerticalStrut(18));\n\n\n setErrorUI();\n panel.add(err);\n panel.add(Box.createVerticalStrut(20));\n\n dialog.getContentPane().add(panel);\n dialog.pack();\n }", "public void onClickAdd(View v) {\n Intent intent = new Intent(this, ItemFormActivity.class);\n startActivity(intent);\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 }", "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 }", "private void createGroup(View view) {\r\n\r\n // Creates necessary elements of the dialog with input limit of length 30\r\n final int MAX_LENGTH = 30;\r\n AlertDialog.Builder dialogGroup = new AlertDialog.Builder(getActivity());\r\n dialogGroup.setTitle(\"Create group\");\r\n final EditText editGroupName = new EditText(getActivity());\r\n editGroupName.setHint(\"Group name\");\r\n editGroupName.setInputType(InputType.TYPE_TEXT_FLAG_CAP_WORDS);\r\n InputFilter[] FilterArray = new InputFilter[1];\r\n FilterArray[0] = new InputFilter.LengthFilter(MAX_LENGTH);\r\n editGroupName.setFilters(FilterArray);\r\n\r\n // Creates padding for the dialog (for aesthetic)\r\n final int AMOUNT_PADDING = 20;\r\n editGroupName.setSingleLine();\r\n FrameLayout container = new FrameLayout(getActivity());\r\n FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);\r\n params.topMargin = convertDpToPx(AMOUNT_PADDING);\r\n params.bottomMargin = convertDpToPx(AMOUNT_PADDING);\r\n params.leftMargin = convertDpToPx(AMOUNT_PADDING);\r\n params.rightMargin = convertDpToPx(AMOUNT_PADDING);\r\n editGroupName.setLayoutParams(params);\r\n container.addView(editGroupName);\r\n\r\n dialogGroup.setView(container);\r\n\r\n // Create group in database if they click \"create\"\r\n dialogGroup.setPositiveButton(\"Create\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n groupName = editGroupName.getText().toString().trim();\r\n\r\n AsyncHttpClient client = new AsyncHttpClient();\r\n\r\n JSONObject group;\r\n StringEntity entity;\r\n try {\r\n group = new JSONObject();\r\n group.put(\"action\", \"create\");\r\n group.put(\"groupName\", groupName);\r\n group.put(\"owner\", currentUser);\r\n entity = new StringEntity(group.toString(), \"UTF-8\");\r\n }\r\n catch (JSONException e) {\r\n throw new IllegalArgumentException(\"unexpected error\", e);\r\n }\r\n\r\n client.post(getActivity().getApplicationContext(), myURL, entity, \"application/json\", new AsyncHttpResponseHandler() {\r\n @Override\r\n public void onSuccess(int statusCode, Header[] headers, byte[] responseBody) {\r\n int duration = Toast.LENGTH_SHORT;\r\n CharSequence message = \"Success!\";\r\n Toast.makeText(getActivity().getApplicationContext(), message, duration).show();\r\n\r\n // Refresh page so that it updates when you create group\r\n FragmentTransaction ft = getFragmentManager().beginTransaction();\r\n ft.detach(GroupsFragment.this).attach(GroupsFragment.this).commit();\r\n }\r\n\r\n @Override\r\n public void onFailure(int statusCode, Header[] headers, byte[] responseBody, Throwable error) {\r\n int duration = Toast.LENGTH_SHORT;\r\n CharSequence text;\r\n\r\n if (statusCode == 400) {\r\n text = \"Invalid group\";\r\n }\r\n else {\r\n text = \"Error \" + statusCode + \": \" + error;\r\n }\r\n Toast.makeText(getActivity().getApplicationContext(), text, duration).show();\r\n }\r\n });\r\n }\r\n });\r\n\r\n dialogGroup.setNegativeButton(\"Cancel\", new DialogInterface.OnClickListener() {\r\n @Override\r\n public void onClick(DialogInterface dialog, int which) {\r\n dialog.cancel();\r\n }\r\n });\r\n\r\n dialogGroup.show();\r\n }", "public DDSViewCollectionForm() {\n\t}", "@RequestMapping(value = \"/create\", method = RequestMethod.POST)\n public ModelAndView create(@RequestParam(\"horasalida\") Date horasalida,@RequestParam(\"horallegada\") Date horallegada,@RequestParam(\"aeropuerto_idaeropuerto\") Long aeropuerto_idaeropuerto,\n \t\t@RequestParam(\"aeropuerto_idaeropuerto2\") Long aeropuerto_idaeropuerto2,@RequestParam(\"avion_idavion\") Long avion_idavion) {\n Vuelo post=new Vuelo();\n post.setHorallegada(horallegada);\n post.setHorasalida(horasalida);\n\t\t\n post.setAeropuerto_idaeropuerto(aeropuerto_idaeropuerto);\n post.setAeropuerto_idaeropuerto2(aeropuerto_idaeropuerto2);\n post.setAvion_idavion(avion_idavion);\n repository.save(post);\n return new ModelAndView(\"redirect:/vuelos\");\n }", "public New_appointment() {\n initComponents();\n }", "public void viewplot(View v)\n {\n Intent fp=new Intent(getApplicationContext(),MappingForm.class);\n startActivity(fp.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TASK));\n }", "public ViewSinFaltante() {\n initComponents();\n }", "public Project_Create() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "@Override\n public void onClick(View v) {\n ContestBDD contestBDD = new ContestBDD(getContext());\n contest = new Contest(rb1.getText().toString(), Et1.getText().toString(),\n rb2.getText().toString(), Et2.getText().toString(),\n Et3.getText().toString(), \"4-4-2\", \"4-4-2\", filemanagerstring);\n contestBDD.open();\n contestBDD.insertContest(contest);\n if (mListener != null)\n mListener.onFragmentInteraction(null);\n //Show(new onContestFragmentCreated(),contest,time);\n contestBDD.close();\n }", "public void add(View view) {\n Intent addIntent = new Intent(this, AddTask.class);\n addIntent.putExtra(\"com.example.joshua.livetogether.aptID\", mAptID);\n startActivity(addIntent);\n }", "public Ventaform() {\n initComponents();\n }", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "public void crearPersonaje(ActionEvent event) {\r\n\r\n\t\tthis.personaje.setAspecto(url);\r\n\r\n\t\tDatabaseOperaciones.guardarPersonaje(stats, personaje);\r\n\r\n\t\tvisualizaPersonajes();\r\n\t}", "@Override\n public boolean createApprisialForm(ApprisialFormBean apprisial) {\n apprisial.setGendate(C_Util_Date.generateDate());\n return in_apprisialformdao.createApprisialForm(apprisial);\n }", "public tambahtoko() {\n initComponents();\n tampilkan();\n form_awal();\n }", "public void newuserclicked(View view) {\n Intent myuserIntent = new Intent(this, UserCreation.class);\n startActivity(myuserIntent);\n }", "public String formCreated()\r\n {\r\n return formError(\"201 Created\",\"Object was created\");\r\n }", "public View(String frmWel) {\n super(\"View Data\");\n initComponents();\n con=javaconnect.ConnecrDb();\n nameField.setText(frmWel);\n updateTable();\n \n }", "public void gotonewpatient(View view)\n {\n Intent i=new Intent(this,AddNewPatient.class);\n startActivity(i);\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tFragmentManager fm = getActivity().getSupportFragmentManager();\n\t\t\t\tFragment_Order_Create_ListDlg editNameDialog = new Fragment_Order_Create_ListDlg();\n\t\t\t\t// editNameDialog.getDialog().setTitle(\"Nhập số lượng\");\n\t\t\t\teditNameDialog.setHandleData(FragmentOrderCreate_ViewOrConfirm.this);\n\t\t\t\teditNameDialog.show(fm, \"fragment_edit_name\");\n\t\t\t}", "public FundsVolunteerCreate(AppState appState) {\n initComponents();\n setDefaultCloseOperation(DISPOSE_ON_CLOSE);\n btCancelar.setVisible(false);\n btSave.setVisible(false);\n btnRemove.setVisible(false);\n btnSaveEdit.setVisible(false);\n enableFields(false);\n this.appState = appState;\n }", "@FXML\n\tprivate void handleNewTaxi() {\n\t\tTaxi tempTaxi = new Taxi();\n\t\tboolean okClicked = mainApp.showTaxiEditDialog(tempTaxi);\n\t\tif (okClicked) {\n\t\t\tmainApp.getTaxiData().add(tempTaxi);\n\t\t}\n\t}", "public AddUserView() {\n initComponents();\n }", "public void createBtn(View view){\n Intent i = new Intent(getApplicationContext(), Create.class);\n // Removes animation\n i.addFlags(Intent.FLAG_ACTIVITY_NO_ANIMATION);\n startActivity(i);\n }", "@RequestMapping(\"/new\")\n\tpublic String displayProjectForm(Model model) {\n\t\tProject aproject = new Project();\n\t//Iterable<Employee> employees = \tpro.getall();\n\t\n\t\tmodel.addAttribute(\"project\", aproject);\n\n\t\t//model.addAttribute(\"allEmployees\", employees);\n\t\t\n\t\t\n\t\treturn \"newproject\";\n\t\t\n\t}", "public SrvINFONEGOCIO(AgregarInfoNegocio view) {//C.P.M Tendremos un constructor con la vista de agregar informacion de negocio\r\n this.vista = view;//C.P.M Se la agregamos a la variable para tener acceso a la vista \r\n }", "public void openAddGroupeDialog() {\n Log.d(\"DEBUG\", \"Ouverture du dialog d'ajout de groupe\");\n new AddGroupeDialog(this, this.getActivity()).show();\n }", "@RequestMapping(\"/recipe/new\")\n public String newRecipe(Model model){\n model.addAttribute(\"recipe\", new RecipeCommand());\n \n return \"recipe/recipeForm\";\n }", "public void createGame(View view) {\n EditText editText = (EditText) findViewById(R.id.enter_game_keyword);\n gameName = editText.getText().toString();\n\n if (!nameEntered(gameName)) {\n return;\n }\n GameNameHandler.createGameHandler(this,gameName, getPlayerName());\n saveInPreferences(gameName);\n }", "@Override\n public void onClick(View arg0)\n {\n\n ExtendedNewController extendedNewController = new ExtendedNewController();\n startNewControllerActivity(extendedNewController, 0, 0);\n }", "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 form_for_bd() {\n initComponents();\n }", "@Override\n public View onCreateView(LayoutInflater inflater, ViewGroup container,\n Bundle savedInstanceState) {\n View root = inflater.inflate(R.layout.fragment_dialog_add_hole, container, false);\n butOk = root.findViewById(R.id.butOk);\n butCancelar = root.findViewById(R.id.butCancelar);\n latLng = root.findViewById(R.id.lntLng);\n address = root.findViewById(R.id.ads);\n latLng.setText(latlng);\n address.setText(ad);\n\n butOk.setOnClickListener(this);\n butCancelar.setOnClickListener(this);\n\n return root;\n }", "@Override\n\tprotected Fragment createFragment() {\n\t\treturn new FormFragment();\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tnewNote();//新建一条记录\n\t\t\t}", "private void newProject()\n\t{\n\t\tnew FenetreCreationProjet();\n\t}", "public newRelationship() {\n initComponents();\n }" ]
[ "0.6465444", "0.6324857", "0.6301353", "0.62031585", "0.6103228", "0.60151726", "0.5877689", "0.5840009", "0.5836597", "0.58138835", "0.5790348", "0.57782346", "0.5761153", "0.57601833", "0.57575566", "0.57426023", "0.5740237", "0.5737765", "0.57301253", "0.57248545", "0.57089", "0.5701882", "0.5689283", "0.5686363", "0.56612283", "0.56580555", "0.56230855", "0.56073177", "0.559764", "0.55788976", "0.5573625", "0.55712104", "0.55671674", "0.55576926", "0.5549781", "0.5542638", "0.55404514", "0.55397594", "0.55335903", "0.55302316", "0.5525579", "0.551922", "0.5511112", "0.5508853", "0.5506757", "0.5497954", "0.5497797", "0.5487066", "0.54857445", "0.54792285", "0.54770565", "0.54671323", "0.5466504", "0.5466245", "0.54660213", "0.5462734", "0.5459913", "0.54577476", "0.5456674", "0.54560894", "0.5452547", "0.54462975", "0.54447806", "0.5439795", "0.5436115", "0.5431882", "0.5429753", "0.5423729", "0.54228806", "0.5419637", "0.54194605", "0.5418517", "0.54181373", "0.54179984", "0.54136074", "0.5410516", "0.5407043", "0.5404843", "0.53982973", "0.5397377", "0.5396882", "0.53871006", "0.5386873", "0.5385741", "0.53836066", "0.5382268", "0.5379559", "0.53790224", "0.5378775", "0.53756654", "0.5373783", "0.536986", "0.53696907", "0.53674704", "0.53667843", "0.53649944", "0.5362373", "0.53598446", "0.53583306", "0.5358066" ]
0.5950634
6
This method is called from within the constructor to initialize the form. WARNING: Do NOT modify this code. The content of this method is always regenerated by the Form Editor.
@SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents private void initComponents() { btnCari = new javax.swing.JButton(); txtCari = new javax.swing.JTextField(); jPanel1 = new javax.swing.JPanel(); lblIDGadai = new javax.swing.JLabel(); lblIDCust = new javax.swing.JLabel(); lblIDBarang = new javax.swing.JLabel(); lblJumlahPinjaman = new javax.swing.JLabel(); lblTanggalPengajuan = new javax.swing.JLabel(); jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); txtIDGadai = new javax.swing.JTextField(); txtJumlahPinjaman = new javax.swing.JTextField(); btnHapus = new javax.swing.JButton(); btnSimpan = new javax.swing.JButton(); txtTanggalPengajuan = new com.toedter.calendar.JDateChooser(); lblSisaPinjman1 = new javax.swing.JLabel(); txtSisaPinjaman1 = new javax.swing.JTextField(); jLabel7 = new javax.swing.JLabel(); cmbCust = new javax.swing.JComboBox<>(); cmbBrg = new javax.swing.JComboBox<>(); jLabel6 = new javax.swing.JLabel(); jLabel8 = new javax.swing.JLabel(); cmbStatus = new javax.swing.JComboBox<>(); cmbCari = new javax.swing.JComboBox<>(); jScrollPane1 = new javax.swing.JScrollPane(); TBLGadai = new javax.swing.JTable(); jButton1 = new javax.swing.JButton(); setClosable(true); setIconifiable(true); setMaximizable(true); setResizable(true); setTitle("Gadai"); btnCari.setText("Cari"); btnCari.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnCariActionPerformed(evt); } }); lblIDGadai.setText("ID Gadai"); lblIDCust.setText("ID Customer"); lblIDBarang.setText("ID Barang"); lblJumlahPinjaman.setText("Jumlah Pinjaman"); lblTanggalPengajuan.setText("Tanggal Pengajuan"); jLabel1.setText(":"); jLabel2.setText(":"); jLabel3.setText(":"); jLabel4.setText(":"); jLabel5.setText(":"); txtIDGadai.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { txtIDGadaiKeyPressed(evt); } }); btnHapus.setText("Hapus"); btnHapus.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnHapusActionPerformed(evt); } }); btnSimpan.setText("Simpan"); btnSimpan.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { btnSimpanActionPerformed(evt); } }); txtTanggalPengajuan.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { txtTanggalPengajuanMouseClicked(evt); } }); txtTanggalPengajuan.addPropertyChangeListener(new java.beans.PropertyChangeListener() { public void propertyChange(java.beans.PropertyChangeEvent evt) { txtTanggalPengajuanPropertyChange(evt); } }); lblSisaPinjman1.setText("Sisa Pinjaman"); txtSisaPinjaman1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { txtSisaPinjaman1ActionPerformed(evt); } }); txtSisaPinjaman1.addKeyListener(new java.awt.event.KeyAdapter() { public void keyPressed(java.awt.event.KeyEvent evt) { txtSisaPinjaman1KeyPressed(evt); } }); jLabel7.setText(":"); jLabel6.setText("Status"); jLabel8.setText(":"); cmbStatus.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "Belum Lunas", "Lunas" })); javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1); jPanel1.setLayout(jPanel1Layout); jPanel1Layout.setHorizontalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(lblIDBarang) .addComponent(lblJumlahPinjaman) .addComponent(lblIDGadai) .addComponent(lblIDCust) .addComponent(lblTanggalPengajuan) .addComponent(lblSisaPinjman1) .addComponent(jLabel6)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false) .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(txtTanggalPengajuan, javax.swing.GroupLayout.DEFAULT_SIZE, 133, Short.MAX_VALUE) .addComponent(txtIDGadai) .addComponent(txtJumlahPinjaman) .addComponent(cmbCust, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(cmbBrg, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(txtSisaPinjaman1))) .addGroup(jPanel1Layout.createSequentialGroup() .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 15, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(cmbStatus, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))) .addGap(27, 27, 27) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING) .addComponent(btnHapus, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(btnSimpan, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(19, 19, 19)) ); jPanel1Layout.setVerticalGroup( jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGap(22, 22, 22) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lblIDGadai) .addComponent(jLabel1) .addComponent(txtIDGadai, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lblIDCust) .addComponent(jLabel2) .addComponent(cmbCust, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lblIDBarang) .addComponent(jLabel3) .addComponent(cmbBrg, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(21, 21, 21) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lblJumlahPinjaman) .addComponent(jLabel4) .addComponent(txtJumlahPinjaman, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGroup(jPanel1Layout.createSequentialGroup() .addContainerGap() .addComponent(btnSimpan, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE) .addGap(18, 18, 18) .addComponent(btnHapus, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE))) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(jPanel1Layout.createSequentialGroup() .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel5) .addComponent(lblTanggalPengajuan)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(lblSisaPinjman1) .addComponent(jLabel7) .addComponent(txtSisaPinjaman1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addGap(18, 18, 18) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jLabel6) .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(jLabel8) .addComponent(cmbStatus, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))) .addComponent(txtTanggalPengajuan, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)) .addContainerGap(41, Short.MAX_VALUE)) ); cmbCari.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { "ID Gadai", "Nama Customer", "Nama Barang", "Jumlah Gadai", "Tanggal Pengajuan", "Sisa", "Status" })); TBLGadai.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {}, {}, {}, {} }, new String [] { } )); TBLGadai.addMouseListener(new java.awt.event.MouseAdapter() { public void mouseClicked(java.awt.event.MouseEvent evt) { TBLGadaiMouseClicked(evt); } }); jScrollPane1.setViewportView(TBLGadai); jButton1.setText("Refresh"); jButton1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jButton1ActionPerformed(evt); } }); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE) .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup() .addComponent(jButton1) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addComponent(cmbCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, 99, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED) .addComponent(btnCari)) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)) .addContainerGap()) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING) .addGroup(layout.createSequentialGroup() .addContainerGap() .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE) .addComponent(btnCari) .addComponent(txtCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(cmbCari, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addComponent(jButton1)) .addGap(7, 7, 7) .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 129, javax.swing.GroupLayout.PREFERRED_SIZE) .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED) .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) .addContainerGap()) ); pack(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Form() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n }", "public frmRectangulo() {\n initComponents();\n }", "public form() {\n initComponents();\n }", "public AdjointForm() {\n initComponents();\n setDefaultCloseOperation(HIDE_ON_CLOSE);\n }", "public FormListRemarking() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n \n }", "public FormPemilihan() {\n initComponents();\n }", "public GUIForm() { \n initComponents();\n }", "public FrameForm() {\n initComponents();\n }", "public TorneoForm() {\n initComponents();\n }", "public FormCompra() {\n initComponents();\n }", "public muveletek() {\n initComponents();\n }", "public Interfax_D() {\n initComponents();\n }", "public quanlixe_form() {\n initComponents();\n }", "public SettingsForm() {\n initComponents();\n }", "public RegistrationForm() {\n initComponents();\n this.setLocationRelativeTo(null);\n }", "public Soru1() {\n initComponents();\n }", "public FMainForm() {\n initComponents();\n this.setResizable(false);\n setLocationRelativeTo(null);\n }", "public soal2GUI() {\n initComponents();\n }", "public EindopdrachtGUI() {\n initComponents();\n }", "public MechanicForm() {\n initComponents();\n }", "public AddDocumentLineForm(java.awt.Frame parent) {\n super(parent);\n initComponents();\n myInit();\n }", "public BloodDonationGUI() {\n initComponents();\n }", "public quotaGUI() {\n initComponents();\n }", "public Customer_Form() {\n initComponents();\n setSize(890,740);\n \n \n }", "public PatientUI() {\n initComponents();\n }", "public myForm() {\n\t\t\tinitComponents();\n\t\t}", "public Oddeven() {\n initComponents();\n }", "public intrebarea() {\n initComponents();\n }", "public Magasin() {\n initComponents();\n }", "public RadioUI()\n {\n initComponents();\n }", "public NewCustomerGUI() {\n initComponents();\n }", "public ZobrazUdalost() {\n initComponents();\n }", "public FormUtama() {\n initComponents();\n }", "public p0() {\n initComponents();\n }", "public INFORMACION() {\n initComponents();\n this.setLocationRelativeTo(null); \n }", "public ProgramForm() {\n setLookAndFeel();\n initComponents();\n }", "public AmountReleasedCommentsForm() {\r\n initComponents();\r\n }", "public form2() {\n initComponents();\n }", "public MainForm() {\n\t\tsuper(\"Hospital\", List.IMPLICIT);\n\n\t\tstartComponents();\n\t}", "public LixeiraForm() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public kunde() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n setRequestFocusEnabled(false);\n setVerifyInputWhenFocusTarget(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 465, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 357, Short.MAX_VALUE)\n );\n }", "public MusteriEkle() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public frmMain() {\n initComponents();\n }", "public DESHBORDPANAL() {\n initComponents();\n }", "public GUIForm() {\n initComponents();\n inputField.setText(NO_FILE_SELECTED);\n outputField.setText(NO_FILE_SELECTED);\n progressLabel.setBackground(INFO);\n progressLabel.setText(SELECT_FILE);\n }", "public frmVenda() {\n initComponents();\n }", "public Botonera() {\n initComponents();\n }", "public FrmMenu() {\n initComponents();\n }", "public OffertoryGUI() {\n initComponents();\n setTypes();\n }", "public JFFornecedores() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 983, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 769, Short.MAX_VALUE)\n );\n\n pack();\n }", "public EnterDetailsGUI() {\n initComponents();\n }", "public vpemesanan1() {\n initComponents();\n }", "public Kost() {\n initComponents();\n }", "public FormHorarioSSE() {\n initComponents();\n }", "public UploadForm() {\n initComponents();\n }", "public frmacceso() {\n initComponents();\n }", "public HW3() {\n initComponents();\n }", "public Managing_Staff_Main_Form() {\n initComponents();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents()\n {\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n pack();\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setName(\"Form\"); // NOI18N\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 300, Short.MAX_VALUE)\n );\n }", "public sinavlar2() {\n initComponents();\n }", "public P0405() {\n initComponents();\n }", "public IssueBookForm() {\n initComponents();\n }", "public MiFrame2() {\n initComponents();\n }", "public Choose1() {\n initComponents();\n }", "public MainForm() {\n initComponents();\n\n String oldAuthor = prefs.get(\"AUTHOR\", \"\");\n if(oldAuthor != null) {\n this.authorTextField.setText(oldAuthor);\n }\n String oldBook = prefs.get(\"BOOK\", \"\");\n if(oldBook != null) {\n this.bookTextField.setText(oldBook);\n }\n String oldDisc = prefs.get(\"DISC\", \"\");\n if(oldDisc != null) {\n try {\n int oldDiscNum = Integer.parseInt(oldDisc);\n oldDiscNum++;\n this.discNumberTextField.setText(Integer.toString(oldDiscNum));\n } catch (Exception ex) {\n this.discNumberTextField.setText(oldDisc);\n }\n this.bookTextField.setText(oldBook);\n }\n\n\n }", "public GUI_StudentInfo() {\n initComponents();\n }", "public Lihat_Dokter_Keseluruhan() {\n initComponents();\n }", "public JFrmPrincipal() {\n initComponents();\n }", "public bt526() {\n initComponents();\n }", "public Pemilihan_Dokter() {\n initComponents();\n }", "public Ablak() {\n initComponents();\n }", "@Override\n\tprotected void initUi() {\n\t\t\n\t}", "@SuppressWarnings(\"unchecked\")\n\t// <editor-fold defaultstate=\"collapsed\" desc=\"Generated\n\t// Code\">//GEN-BEGIN:initComponents\n\tprivate void initComponents() {\n\n\t\tlabel1 = new java.awt.Label();\n\t\tlabel2 = new java.awt.Label();\n\t\tlabel3 = new java.awt.Label();\n\t\tlabel4 = new java.awt.Label();\n\t\tlabel5 = new java.awt.Label();\n\t\tlabel6 = new java.awt.Label();\n\t\tlabel7 = new java.awt.Label();\n\t\tlabel8 = new java.awt.Label();\n\t\tlabel9 = new java.awt.Label();\n\t\tlabel10 = new java.awt.Label();\n\t\ttextField1 = new java.awt.TextField();\n\t\ttextField2 = new java.awt.TextField();\n\t\tlabel14 = new java.awt.Label();\n\t\tlabel15 = new java.awt.Label();\n\t\tlabel16 = new java.awt.Label();\n\t\ttextField3 = new java.awt.TextField();\n\t\ttextField4 = new java.awt.TextField();\n\t\ttextField5 = new java.awt.TextField();\n\t\tlabel17 = new java.awt.Label();\n\t\tlabel18 = new java.awt.Label();\n\t\tlabel19 = new java.awt.Label();\n\t\tlabel20 = new java.awt.Label();\n\t\tlabel21 = new java.awt.Label();\n\t\tlabel22 = new java.awt.Label();\n\t\ttextField6 = new java.awt.TextField();\n\t\ttextField7 = new java.awt.TextField();\n\t\ttextField8 = new java.awt.TextField();\n\t\tlabel23 = new java.awt.Label();\n\t\ttextField9 = new java.awt.TextField();\n\t\ttextField10 = new java.awt.TextField();\n\t\ttextField11 = new java.awt.TextField();\n\t\ttextField12 = new java.awt.TextField();\n\t\tlabel24 = new java.awt.Label();\n\t\tlabel25 = new java.awt.Label();\n\t\tlabel26 = new java.awt.Label();\n\t\tlabel27 = new java.awt.Label();\n\t\tlabel28 = new java.awt.Label();\n\t\tlabel30 = new java.awt.Label();\n\t\tlabel31 = new java.awt.Label();\n\t\tlabel32 = new java.awt.Label();\n\t\tjButton1 = new javax.swing.JButton();\n\n\t\tlabel1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel1.setText(\"It seems that some of the buttons on the ATM machine are not working!\");\n\n\t\tlabel2.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel2.setText(\"Unfortunately these numbers are exactly what Professor has to use to type in his password.\");\n\n\t\tlabel3.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 18)); // NOI18N\n\t\tlabel3.setText(\n\t\t\t\t\"If you want to eat tonight, you have to help him out and construct the numbers of the password with the working buttons and math operators.\");\n\n\t\tlabel4.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tlabel4.setText(\"Denver's Password: 2792\");\n\n\t\tlabel5.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel5.setText(\"import java.util.Scanner;\\n\");\n\n\t\tlabel6.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel6.setText(\"public class ATM{\");\n\n\t\tlabel7.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel7.setText(\"public static void main(String[] args){\");\n\n\t\tlabel8.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel8.setText(\"System.out.print(\");\n\n\t\tlabel9.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel9.setText(\" -\");\n\n\t\tlabel10.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel10.setText(\");\");\n\n\t\ttextField1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\ttextField1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tlabel14.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel14.setText(\"System.out.print( (\");\n\n\t\tlabel15.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel15.setText(\"System.out.print(\");\n\n\t\tlabel16.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel16.setText(\"System.out.print( ( (\");\n\n\t\tlabel17.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel17.setText(\")\");\n\n\t\tlabel18.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel18.setText(\" +\");\n\n\t\tlabel19.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel19.setText(\");\");\n\n\t\tlabel20.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel20.setText(\" /\");\n\n\t\tlabel21.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel21.setText(\" %\");\n\n\t\tlabel22.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel22.setText(\" +\");\n\n\t\tlabel23.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel23.setText(\");\");\n\n\t\tlabel24.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel24.setText(\" +\");\n\n\t\tlabel25.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel25.setText(\" /\");\n\n\t\tlabel26.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel26.setText(\" *\");\n\n\t\tlabel27.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n\t\tlabel27.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel27.setText(\")\");\n\n\t\tlabel28.setFont(new java.awt.Font(\"Dialog\", 0, 14)); // NOI18N\n\t\tlabel28.setText(\")\");\n\n\t\tlabel30.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel30.setText(\"}\");\n\n\t\tlabel31.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel31.setText(\"}\");\n\n\t\tlabel32.setFont(new java.awt.Font(\"Consolas\", 0, 14)); // NOI18N\n\t\tlabel32.setText(\");\");\n\n\t\tjButton1.setFont(new java.awt.Font(\"Segoe UI Semibold\", 0, 14)); // NOI18N\n\t\tjButton1.setText(\"Check\");\n\t\tjButton1.addActionListener(new java.awt.event.ActionListener() {\n\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent evt) {\n\t\t\t\tjButton1ActionPerformed(evt);\n\t\t\t}\n\t\t});\n\n\t\tjavax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n\t\tlayout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(28).addGroup(layout\n\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING).addComponent(getDoneButton()).addComponent(jButton1)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, 774, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t.addGap(92).addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15, GroupLayout.PREFERRED_SIZE, 145,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(2)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(37))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(174)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(7)))\n\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label23, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t20, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(20).addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(23).addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel10, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16, GroupLayout.PREFERRED_SIZE, 177,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10, GroupLayout.PREFERRED_SIZE, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED).addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addContainerGap(GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));\n\t\tlayout.setVerticalGroup(\n\t\t\t\tlayout.createParallelGroup(Alignment.LEADING).addGroup(layout.createSequentialGroup().addContainerGap()\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t.addComponent(label1, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t.addComponent(label2, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t.addGap(1)\n\t\t\t\t\t\t.addComponent(label3, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label4, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label5, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label6, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(label7, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup().addGroup(layout.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING).addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField1,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\ttextField2, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(19)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField5,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label14,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label18,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label17,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField4,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))\n\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label20, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label19, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField3, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE, GroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(78)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label27, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(76)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField11, GroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup().addGap(75)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label32,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField10,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED, 20,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tShort.MAX_VALUE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.TRAILING, false)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label15,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField8,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label21,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField7,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(27))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField9,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label22,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlayout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(3)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tlabel23,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(29)))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label16,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField12,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout.createSequentialGroup()\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGroup(layout\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.createParallelGroup(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tAlignment.TRAILING)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(label24,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addComponent(textField6,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE))\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.addGap(1))))))\n\t\t\t\t\t\t\t\t.addGroup(layout.createParallelGroup(Alignment.LEADING)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label25, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label28, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t\t\t\t\t.addComponent(label26, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)))\n\t\t\t\t\t\t.addGap(30)\n\t\t\t\t\t\t.addComponent(label31, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(25)\n\t\t\t\t\t\t.addComponent(label30, GroupLayout.PREFERRED_SIZE, GroupLayout.DEFAULT_SIZE,\n\t\t\t\t\t\t\t\tGroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t\t.addGap(26).addComponent(jButton1).addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t\t.addComponent(getDoneButton()).addContainerGap(23, Short.MAX_VALUE)));\n\t\tthis.setLayout(layout);\n\n\t\tlabel16.getAccessibleContext().setAccessibleName(\"System.out.print( ( (\");\n\t\tlabel17.getAccessibleContext().setAccessibleName(\"\");\n\t\tlabel18.getAccessibleContext().setAccessibleName(\" +\");\n\t}", "public Pregunta23() {\n initComponents();\n }", "public FormMenuUser() {\n super(\"Form Menu User\");\n initComponents();\n }", "public AvtekOkno() {\n initComponents();\n }", "public busdet() {\n initComponents();\n }", "public ViewPrescriptionForm() {\n initComponents();\n }", "public Ventaform() {\n initComponents();\n }", "public Kuis2() {\n initComponents();\n }", "public CreateAccount_GUI() {\n initComponents();\n }", "public POS1() {\n initComponents();\n }", "public Carrera() {\n initComponents();\n }", "public EqGUI() {\n initComponents();\n }", "public JFriau() {\n initComponents();\n this.setLocationRelativeTo(null);\n this.setTitle(\"BuNus - Budaya Nusantara\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setBackground(new java.awt.Color(204, 204, 204));\n setMinimumSize(new java.awt.Dimension(1, 1));\n setPreferredSize(new java.awt.Dimension(760, 402));\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 750, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 400, Short.MAX_VALUE)\n );\n }", "public nokno() {\n initComponents();\n }", "public dokter() {\n initComponents();\n }", "public ConverterGUI() {\n initComponents();\n }", "public hitungan() {\n initComponents();\n }", "public Modify() {\n initComponents();\n }", "public frmAddIncidencias() {\n initComponents();\n }", "public FP_Calculator_GUI() {\n initComponents();\n \n setVisible(true);\n }" ]
[ "0.73191476", "0.72906625", "0.72906625", "0.72906625", "0.72860986", "0.7248112", "0.7213479", "0.72078276", "0.7195841", "0.71899796", "0.71840525", "0.7158498", "0.71477973", "0.7092748", "0.70800966", "0.70558053", "0.69871384", "0.69773406", "0.69548076", "0.69533914", "0.6944929", "0.6942576", "0.69355655", "0.6931378", "0.6927896", "0.69248974", "0.6924723", "0.69116884", "0.6910487", "0.6892381", "0.68921053", "0.6890637", "0.68896896", "0.68881863", "0.68826133", "0.68815064", "0.6881078", "0.68771756", "0.6875212", "0.68744373", "0.68711984", "0.6858978", "0.68558776", "0.6855172", "0.6854685", "0.685434", "0.68525875", "0.6851834", "0.6851834", "0.684266", "0.6836586", "0.6836431", "0.6828333", "0.68276715", "0.68262815", "0.6823921", "0.682295", "0.68167603", "0.68164384", "0.6809564", "0.68086857", "0.6807804", "0.6807734", "0.68067646", "0.6802192", "0.67943805", "0.67934304", "0.6791657", "0.6789546", "0.6789006", "0.67878324", "0.67877173", "0.6781847", "0.6765398", "0.6765197", "0.6764246", "0.6756036", "0.6755023", "0.6751404", "0.67508715", "0.6743043", "0.67387456", "0.6736752", "0.67356426", "0.6732893", "0.6726715", "0.6726464", "0.67196447", "0.67157453", "0.6714399", "0.67140275", "0.6708251", "0.6707117", "0.670393", "0.6700697", "0.66995865", "0.66989213", "0.6697588", "0.66939527", "0.66908985", "0.668935" ]
0.0
-1
End of variables declaration//GENEND:variables
private List<String> getCombo(boolean isCustomer){ List<String> isi = new ArrayList<>(); String[] daftar = new String[datas.size()]; for (String data : datas) { daftar = data.split(";"); if (isCustomer) isi.add(daftar[1]); else isi.add(daftar[0]); } return isi; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void lavar() {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void initVariables() {\n\t\t\r\n\t}", "private void assignment() {\n\n\t\t\t}", "private void kk12() {\n\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "public void mo21779D() {\n }", "public final void mo51373a() {\n }", "protected boolean func_70041_e_() { return false; }", "public void mo4359a() {\n }", "public void mo21782G() {\n }", "private void m50366E() {\n }", "public void mo12930a() {\n }", "public void mo115190b() {\n }", "public void method_4270() {}", "public void mo1403c() {\n }", "public void mo3376r() {\n }", "public void mo3749d() {\n }", "public void mo21793R() {\n }", "protected boolean func_70814_o() { return true; }", "public void mo21787L() {\n }", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo21780E() {\n }", "public void mo21792Q() {\n }", "public void mo21791P() {\n }", "public void mo12628c() {\n }", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "public void mo97908d() {\n }", "public void mo21878t() {\n }", "public void mo9848a() {\n }", "public void mo21825b() {\n }", "public void mo23813b() {\n }", "public void mo3370l() {\n }", "public void mo21879u() {\n }", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "public void mo21785J() {\n }", "public void mo21795T() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void m23075a() {\n }", "public void mo21789N() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "public void mo21794S() {\n }", "public final void mo12688e_() {\n }", "@Override\r\n\tvoid func04() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "public void mo6944a() {\n }", "public static void listing5_14() {\n }", "public void mo1405e() {\n }", "public final void mo91715d() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "public void mo9137b() {\n }", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "public void func_70295_k_() {}", "void mo57277b();", "public void mo21877s() {\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "public void Tyre() {\n\t\t\r\n\t}", "void berechneFlaeche() {\n\t}", "public void mo115188a() {\n }", "public void mo21880v() {\n }", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "public void mo21784I() {\n }", "private stendhal() {\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "public void mo56167c() {\n }", "public void mo44053a() {\n }", "public void mo21781F() {\n }", "public void mo2740a() {\n }", "public void mo21783H() {\n }", "public void mo1531a() {\n }", "double defendre();", "private zzfl$zzg$zzc() {\n void var3_1;\n void var2_-1;\n void var1_-1;\n this.value = var3_1;\n }", "public void stg() {\n\n\t}", "void m1864a() {\r\n }", "private void poetries() {\n\n\t}", "public void skystonePos4() {\n }", "public void mo2471e() {\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "private void yy() {\n\n\t}", "@Override\n\tpublic void verkaufen() {\n\t}", "@AnyLogicInternalCodegenAPI\n private void setupPlainVariables_Main_xjal() {\n }", "static void feladat4() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\t\t\tpublic void func02() {\n\t\t\t\t\r\n\t\t\t}", "public void init() { \r\n\t\t// TODO Auto-generated method\r\n\t }", "public void furyo ()\t{\n }", "public void verliesLeven() {\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "protected void mo6255a() {\n }" ]
[ "0.6359434", "0.6280371", "0.61868024", "0.6094568", "0.60925734", "0.6071678", "0.6052686", "0.60522056", "0.6003249", "0.59887564", "0.59705925", "0.59680873", "0.5967989", "0.5965816", "0.5962006", "0.5942372", "0.5909877", "0.5896588", "0.5891321", "0.5882983", "0.58814824", "0.5854075", "0.5851759", "0.58514243", "0.58418584", "0.58395296", "0.5835063", "0.582234", "0.58090156", "0.5802706", "0.5793836", "0.57862717", "0.5784062", "0.5783567", "0.5782131", "0.57758564", "0.5762871", "0.5759349", "0.5745087", "0.57427835", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.573309", "0.57326084", "0.57301426", "0.57266665", "0.57229686", "0.57175463", "0.5705802", "0.5698347", "0.5697827", "0.569054", "0.5689405", "0.5686434", "0.56738997", "0.5662217", "0.56531453", "0.5645255", "0.5644223", "0.5642628", "0.5642476", "0.5640595", "0.56317437", "0.56294966", "0.56289655", "0.56220204", "0.56180173", "0.56134313", "0.5611337", "0.56112075", "0.56058615", "0.5604383", "0.5602629", "0.56002104", "0.5591573", "0.55856615", "0.5576992", "0.55707216", "0.5569681", "0.55570376", "0.55531484", "0.5551123", "0.5550893", "0.55482954", "0.5547471", "0.55469507", "0.5545719", "0.5543553", "0.55424106", "0.5542057", "0.55410767", "0.5537739", "0.55269134", "0.55236584", "0.55170715", "0.55035424", "0.55020875" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { Concordance c = new Concordance("shakespear.txt"); c.printToDestination("destination.txt"); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
Created by jiangyuanyuan on 23/11/17.
public interface IAlarmMsgService { ServerResponse getNewest(); ServerResponse getTodayList(int sortType,int pageNum, int pageSize); ServerResponse getList(int sortType,int pageNum, int pageSize); ServerResponse getListByHour(int timeType,int sortType); ServerResponse getListByTime(int timeType,int sortType); ServerResponse getListByMonth(int timeType,int sortType); ServerResponse getListByYear(int timeType,int sortType); ServerResponse getCaveat(Integer timeNumber, Integer type); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\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\r\n\tpublic void tires() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "private void poetries() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "private void strin() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\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 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}", "public void gored() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "private void init() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "private void kk12() {\n\n\t}", "public void mo38117a() {\n }", "@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}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n void init() {\n }", "public final void mo51373a() {\n }", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n }", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\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\tpublic void ligar() {\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 public void settings() {\n // TODO Auto-generated method stub\n \n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n public void memoria() {\n \n }", "private void init() {\n\n\n\n }", "Constructor() {\r\n\t\t \r\n\t }", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\n protected void init() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n protected void getExras() {\n }", "@Override\n public void init() {}", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n public void initialize() { \n }", "@Override\r\n\tpublic void init() {}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "public void mo55254a() {\n }", "private void m50366E() {\n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tprotected void initdata() {\n\n\t}", "protected boolean func_70814_o() { return true; }" ]
[ "0.6196659", "0.6121584", "0.60643053", "0.59943664", "0.5949185", "0.5949185", "0.5948126", "0.5892", "0.588259", "0.58756566", "0.5868389", "0.5807777", "0.58039623", "0.57926023", "0.578918", "0.57859343", "0.57749516", "0.57736933", "0.5762226", "0.5758267", "0.57505363", "0.574069", "0.57377476", "0.57344365", "0.57344365", "0.5716796", "0.5716796", "0.5716796", "0.5716796", "0.5716796", "0.5703167", "0.56924164", "0.5680014", "0.5674791", "0.56634384", "0.56443846", "0.56407934", "0.56387305", "0.5631354", "0.5631354", "0.5631354", "0.56285346", "0.5623044", "0.56191367", "0.56163645", "0.5614592", "0.5614592", "0.5614271", "0.5611935", "0.560752", "0.560752", "0.56044453", "0.560131", "0.55933553", "0.559027", "0.559027", "0.559027", "0.5588912", "0.55732214", "0.55732214", "0.55732214", "0.5553754", "0.5553489", "0.5553489", "0.5553489", "0.5553489", "0.5553489", "0.5553489", "0.5551625", "0.55292356", "0.5527823", "0.5524548", "0.5522943", "0.55133677", "0.5513064", "0.5513064", "0.5513064", "0.5513064", "0.5513064", "0.5513064", "0.5513064", "0.55115634", "0.54940724", "0.54930943", "0.54887545", "0.54877454", "0.54770774", "0.5471047", "0.54662335", "0.546387", "0.54617524", "0.54573226", "0.5456586", "0.5441078", "0.5434402", "0.54334414", "0.54334414", "0.54333", "0.54263955", "0.5410216", "0.5407075" ]
0.0
-1
TODO: Warning this method won't work in the case the id fields are not set
@Override public boolean equals(Object object) { if (!(object instanceof Cheque)) { return false; } Cheque other = (Cheque) object; if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) { return false; } return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setId(Integer id) { this.id = id; }", "private Integer getId() { return this.id; }", "public void setId(int id){ this.id = id; }", "public void setId(Long id) {this.id = id;}", "public void setId(Long id) {this.id = id;}", "public void setID(String idIn) {this.id = idIn;}", "public void setId(int id) { this.id = id; }", "public void setId(int id) { this.id = id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public int getId() { return id; }", "public void setId(long id) { this.id = id; }", "public void setId(long id) { this.id = id; }", "public int getId(){ return id; }", "public int getId() {return id;}", "public int getId() {return Id;}", "public int getId(){return id;}", "public void setId(long id) {\n id_ = id;\n }", "private int getId() {\r\n\t\treturn id;\r\n\t}", "public Integer getId(){return id;}", "public int id() {return id;}", "public long getId(){return this.id;}", "public int getId(){\r\n return this.id;\r\n }", "@Override public String getID() { return id;}", "public Long id() { return this.id; }", "public Integer getId() { return id; }", "@Override\n\tpublic Integer getId() {\n return id;\n }", "@Override\n public Long getId () {\n return id;\n }", "@Override\n public long getId() {\n return id;\n }", "public Long getId() {return id;}", "public Long getId() {return id;}", "public String getId(){return id;}", "@Override\r\n\tpublic Long getId() {\n\t\treturn null;\r\n\t}", "public Integer getId() { return this.id; }", "@Override\r\n public int getId() {\n return id;\r\n }", "@Override\n\t\tpublic long getId() {\n\t\t\treturn 0;\n\t\t}", "public int getId() {\n return id;\n }", "public long getId() { return _id; }", "public int getId() {\n/* 35 */ return this.id;\n/* */ }", "public long getId() { return id; }", "public long getId() { return id; }", "public void setId(Long id) \n {\n this.id = id;\n }", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "@Override\n\tpublic Long getId() {\n\t\treturn null;\n\t}", "public void setId(String id) {\n this.id = id;\n }", "@Override\n\tpublic void setId(Long id) {\n\t}", "public Long getId() {\n return id;\n }", "public long getId() { return this.id; }", "public int getId()\n {\n return id;\n }", "public void setId(int id){\r\n this.id = id;\r\n }", "@Test\r\n\tpublic void testSetId() {\r\n\t\tbreaku1.setId(5);\r\n\t\texternu1.setId(6);\r\n\t\tmeetingu1.setId(7);\r\n\t\tteachu1.setId(8);\r\n\r\n\t\tassertEquals(5, breaku1.getId());\r\n\t\tassertEquals(6, externu1.getId());\r\n\t\tassertEquals(7, meetingu1.getId());\r\n\t\tassertEquals(8, teachu1.getId());\r\n\t}", "protected abstract String getId();", "@Override\n\tpublic int getId(){\n\t\treturn id;\n\t}", "public int getID() {return id;}", "public int getID() {return id;}", "public String getId() { return id; }", "public String getId() { return id; }", "public String getId() { return id; }", "public int getId ()\r\n {\r\n return id;\r\n }", "@Override\n public int getField(int id) {\n return 0;\n }", "public void setId(Long id)\n/* */ {\n/* 66 */ this.id = id;\n/* */ }", "public int getId(){\r\n return localId;\r\n }", "void setId(int id) {\n this.id = id;\n }", "@Override\n public Integer getId() {\n return id;\n }", "@Override\n\tpublic Object selectById(Object id) {\n\t\treturn null;\n\t}", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "private void clearId() {\n \n id_ = 0;\n }", "@Override\n public int getId() {\n return id;\n }", "@Override\n public int getId() {\n return id;\n }", "public void setId(int id)\n {\n this.id=id;\n }", "@Override\r\n public int getID()\r\n {\r\n\treturn id;\r\n }", "@Override\n\tpublic Integer getId() {\n\t\treturn null;\n\t}", "public int getId()\r\n {\r\n return id;\r\n }", "public void setId(Long id){\n this.id = id;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "@java.lang.Override\n public int getId() {\n return id_;\n }", "private void clearId() {\n \n id_ = 0;\n }", "final protected int getId() {\n\t\treturn id;\n\t}", "public abstract Long getId();", "public void setId(Long id) \r\n {\r\n this.id = id;\r\n }", "@Override\n public long getId() {\n return this.id;\n }", "public String getId(){ return id.get(); }", "@SuppressWarnings ( \"unused\" )\n private void setId ( final Long id ) {\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(long id){\n this.id = id;\n }", "public void setId(Integer id)\r\n/* */ {\r\n/* 122 */ this.id = id;\r\n/* */ }", "public Long getId() \n {\n return id;\n }", "@Override\n\tpublic void setId(int id) {\n\n\t}", "public void test_getId() {\n assertEquals(\"'id' value should be properly retrieved.\", id, instance.getId());\n }", "@Override\r\n\tpublic Object getId() {\n\t\treturn null;\r\n\t}", "public int getID(){\n return id;\n }", "public int getId()\n {\n return id;\n }", "public String getID(){\n return Id;\n }" ]
[ "0.6896886", "0.6838461", "0.67056817", "0.66419715", "0.66419715", "0.6592331", "0.6579151", "0.6579151", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.6574321", "0.65624106", "0.65624106", "0.65441847", "0.65243006", "0.65154546", "0.6487427", "0.6477893", "0.6426692", "0.6418966", "0.6416817", "0.6401561", "0.63664836", "0.63549376", "0.63515353", "0.6347672", "0.6324549", "0.6319196", "0.6301484", "0.62935394", "0.62935394", "0.62832105", "0.62710917", "0.62661785", "0.6265274", "0.6261401", "0.6259253", "0.62559646", "0.6251244", "0.6247282", "0.6247282", "0.6245526", "0.6238957", "0.6238957", "0.6232451", "0.62247443", "0.6220427", "0.6219304", "0.6211484", "0.620991", "0.62023336", "0.62010616", "0.6192621", "0.61895776", "0.61895776", "0.61893976", "0.61893976", "0.61893976", "0.6184292", "0.618331", "0.61754644", "0.6173718", "0.6168409", "0.6166131", "0.6161708", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.6157667", "0.61556244", "0.61556244", "0.61430943", "0.61340135", "0.6128617", "0.6127841", "0.61065215", "0.61043483", "0.61043483", "0.6103568", "0.61028486", "0.61017346", "0.6101399", "0.6098963", "0.6094214", "0.6094", "0.6093529", "0.6093529", "0.6091623", "0.60896", "0.6076881", "0.60723215", "0.6071593", "0.6070138", "0.6069936", "0.6069529" ]
0.0
-1
Executes provided runnable, expects it to throw an exception. Then, it offers ways to assert on the expected exception.
public static ThrowableAssert assertThat(Runnable runnable) { return new ThrowableAssert(runnable); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void executeRunnableAndExpectError(Runnable runnable, Throwable error) {\n boolean called = false;\n try {\n CurrentSpanUtils.withSpan(span, true, runnable).run();\n } catch (Throwable e) {\n assertThat(e).isEqualTo(error);\n called = true;\n }\n assertThat(called).isTrue();\n }", "public interface ThrowingRunnable {\n\n void run() throws Throwable;\n }", "private void checkException(Runnable function, Class<?> expectedEx){\n try {\n function.run();\n assert false;\n }catch (Exception e){\n assert e.getClass() == expectedEx;\n }\n }", "public static void execute(ThrowingRunnable runnable, TestResource... resources) throws Exception {\n Resources.execute(runnable.asCallable(), resources);\n }", "private interface CheckedRunnable {\n void run() throws Exception;\n }", "public <T extends Throwable> void validateRootCause(Runnable runnable, Class<T> exceptionClass) {\n try {\n runnable.run();\n Assert.fail(\"Expected \" + exceptionClass.getName());\n } catch (Exception e) {\n Assert.assertThat(getRootCause(e), instanceOf(exceptionClass));\n }\n }", "public static void tryRun(CheckedRunnable checkedRunnable) {\n try {\n checkedRunnable.run();\n }\n catch (Exception e) {\n throw softened(e);\n }\n }", "private void executeCallableAndExpectError(Callable<Object> callable, Throwable error) {\n boolean called = false;\n try {\n CurrentSpanUtils.withSpan(span, true, callable).call();\n } catch (Throwable e) {\n assertThat(e).isEqualTo(error);\n called = true;\n }\n assertThat(called).isTrue();\n }", "@Test\n\tvoid qutTestForExeception() {\n\t\tassertThrows(MyException.class, () -> { nopt.quot(100, 0);});\n\t}", "public void testCallableNPE2() {\n try {\n Callable c = Executors.callable((Runnable) null, one);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "@Override\n protected void invokeTestRunnable(final Runnable runnable) throws Exception {\n System.out.println(\"Invoke: \" + runnable);\n runnable.run();\n }", "public void testExecute2() throws Exception {\r\n try {\r\n handler.execute(null);\r\n fail(\"IllegalArgumentException is expected\");\r\n } catch (IllegalArgumentException e) {\r\n // ok.\r\n }\r\n }", "@FunctionalInterface\n public interface CheckedRunnable {\n void run() throws Exception;\n }", "public void testCallableNPE1() {\n try {\n Callable c = Executors.callable((Runnable) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public void testCallable4() throws Exception {\n Callable c = Executors.callable(new PrivilegedExceptionAction() {\n public Object run() { return one; }});\n assertSame(one, c.call());\n }", "public static Runnable uncheck(RunnableEx runnable) {\n return () -> {\n try {\n runnable.run();\n } catch (Throwable e) {\n throw new RuntimeException(e);\n }\n };\n }", "@FunctionalInterface\npublic interface FailableRunnable {\n\n /**\n * Executes a side-effectful computation.\n *\n * @throws Exception\n * if it fails\n */\n public void run() throws Exception;\n}", "@Test\n @ConditionalIgnoreRule.ConditionalIgnore(condition = RunningOnGithubAction.class)\n public void testFailure() throws Exception {\n ExecutorService executorService = Executors.newFixedThreadPool(1);\n try {\n Future<?> future =\n executorService.submit(\n () -> {\n try {\n submitQuery(false, 0);\n } catch (SQLException e) {\n throw new RuntimeSQLException(\"SQLException\", e);\n } catch (InterruptedException e) {\n throw new IllegalStateException(\"task interrupted\", e);\n }\n });\n executorService.shutdown();\n future.get();\n fail(\"should fail and raise an exception\");\n } catch (ExecutionException ex) {\n Throwable rootCause = ex.getCause();\n assertThat(\"Runtime Exception\", rootCause, instanceOf(RuntimeSQLException.class));\n\n rootCause = rootCause.getCause();\n\n assertThat(\"Root cause class\", rootCause, instanceOf(SnowflakeSQLException.class));\n assertThat(\"Error code\", ((SnowflakeSQLException) rootCause).getErrorCode(), equalTo(390114));\n }\n }", "public int run() throws Exception;", "public void expects(Runnable runnable) {\n tests.add(runnable);\n }", "@Test(expected = WorkflowExecutionException.class)\n public void testExecuteWorkflowExecutionException() {\n action.execute(state);\n action.execute(state);\n }", "interface Runnable {\n void execute() throws Throwable;\n default void run() {\n try {\n execute();\n } catch(Throwable t) {\n throw new RuntimeException(t);\n }\n }\n }", "private void failWithException(final CronetException exception) {\n postTaskToExecutor(new Runnable() {\n @Override\n public void run() {\n failWithExceptionOnExecutor(exception);\n }\n });\n }", "public void testCallableNPE4() {\n try {\n Callable c = Executors.callable((PrivilegedExceptionAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "void execute() throws Exception;", "public void run(Runnable runnable) {\n\t\tif (!Raptor.getInstance().isDisposed() && !isDisposed) {\n\t\t\ttry {\n\t\t\t\texecutor.execute(new RunnableExceptionDecorator(runnable));\n\t\t\t} catch (RejectedExecutionException rej) {\n\t\t\t\tif (!Raptor.getInstance().isDisposed()) {\n\t\t\t\t\tLOG.error(\"Error executing runnable: \", rej);\n\t\t\t\t\tthreadDump();\n\t\t\t\t\tRaptor.getInstance().onError(\n\t\t\t\t\t\t\t\"ThreadServie has no more threads. A thread dump can be found at \"\n\t\t\t\t\t\t\t\t\t+ THREAD_DUMP_FILE_PATH, rej);\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\tLOG.info(\"Vetoing runnable in ThreadService, raptor is disposed. \" + runnable);\n\t\t}\n\t}", "public void run() throws Exception;", "@Override\n\tpublic void run(Throwable escalation) throws Throwable {\n\t\tAssert.assertFalse(\"Flow already flagged as complete\", this.isComplete);\n\t\tthis.failure = escalation;\n\t\tthis.isComplete = true;\n\t}", "protected void runTest() throws Throwable {\n\t\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t\t}", "public void afterExecute(Runnable runnable, Throwable th) {\n Task task = (Task) runnable;\n task.setFinished(true);\n task.setError(th);\n getQueue().recycleBlockedQueue();\n super.afterExecute(runnable, th);\n }", "void markFailed(Execution execution, Throwable cause);", "public void execute()\n/* */ throws Pausable, Exception\n/* */ {\n/* 378 */ errNotWoven(this);\n/* */ }", "public abstract void run() throws Exception;", "public void testCallableNPE3() {\n try {\n Callable c = Executors.callable((PrivilegedAction) null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }", "public void execute(RunnableX task, Consumer<Throwable> onError) {\n if (isCancelled())\n return;\n\n executor.execute(qryId, fragmentId(), () -> {\n try {\n task.run();\n }\n catch (Throwable e) {\n onError.accept(e);\n\n throw new IgniteInternalException(\"Unexpected exception\", e);\n }\n });\n }", "@Test(expected = NullPointerException.class)\n public void testSubmitNPE2() throws Exception {\n CompletionService<Boolean> ecs = new BoundedCompletionService<Boolean>(\n new ExecutorCompletionService<Boolean>(e));\n Runnable r = null;\n ecs.submit(r, Boolean.TRUE);\n shouldThrow();\n }", "@Test\n public void testError() {\n FutureRecordMetadata future = new FutureRecordMetadata(asyncRequest(baseOffset, new CorruptRecordException(), 50L),\n relOffset, RecordBatch.NO_TIMESTAMP, 0, 0, Time.SYSTEM);\n assertThrows(ExecutionException.class, future::get);\n }", "public interface ExceptionHelper {\n default void runConvertingToRuntime(RunnableThatThrows runnable) {\n try {\n runnable.run();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n default <T> List<T> runConvertingToRuntime(CallableThatThrows<List<T>> runnable) {\n try {\n return runnable.apply();\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n}", "abstract public void run() throws Exception;", "abstract void run() throws Exception;", "public void testCallable2() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable(), one);\n assertSame(one, c.call());\n }", "public abstract void run()\n\t\tthrows Exception;", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texecutable.feedbackExecutionError();\r\n\t\t\t\t\t}", "void dispatchException(Throwable exception);", "private void failWithExceptionOnExecutor(CronetException e) {\n mException = e;\n // Do not call into mCallback if request is complete.\n synchronized (mNativeStreamLock) {\n if (isDoneLocked()) {\n return;\n }\n mReadState = mWriteState = State.ERROR;\n destroyNativeStreamLocked(false);\n }\n try {\n mCallback.onFailed(this, mResponseInfo, e);\n } catch (Exception failException) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception notifying of failed request\",\n failException);\n }\n mInflightDoneCallbackCount.decrement();\n }", "@Test\n @SneakyThrows\n void test() {\n ExecutorService executor = Executors.newSingleThreadExecutor();\n\n Runnable runnable = () -> {\n System.out.println(\"this is a new thread !!\");\n System.out.println(\"===============\");\n try {\n Thread.sleep(3000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n };\n\n for (int i = 0; i < 3; i++) {\n executor.submit(runnable);\n }\n Thread.sleep(10 * 1000);\n\n executor.shutdown();\n\n }", "@NonBlocking\n void error(Throwable throwable);", "@Test(timeout = 4000)\n public void test009() throws Throwable {\n try { \n DBUtil.runScript(\"\", \"\", (Connection) null, false, (ErrorHandler) null);\n fail(\"Expecting exception: FileNotFoundException\");\n \n } catch(FileNotFoundException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"org.evosuite.runtime.mock.java.io.MockFileInputStream\", e);\n }\n }", "boolean assertExpected(Exception e);", "T execute() throws Exception;", "public void notifyError(RunnableInstance runnable, String message) {\n scheduler.notifyError(runnable, message);\n }", "public void testExecute3() throws Exception {\r\n try {\r\n handler.execute(actionContext);\r\n fail(\"HandlerExecutionException is expected\");\r\n } catch (HandlerExecutionException e) {\r\n // ok.\r\n }\r\n }", "@Test\n public void test15() throws Throwable {\n // Undeclared exception!\n try { \n UnivariateRealSolverUtils.solve((UnivariateRealFunction) null, 0.0, 0.0);\n fail(\"Expecting exception: IllegalArgumentException\");\n \n } catch(IllegalArgumentException e) {\n //\n // function is null\n //\n assertThrownBy(\"org.apache.commons.math.MathRuntimeException\", e);\n }\n }", "@When(\"^I execute my test case$\")\n public void iExecuteMyTestCase() throws Throwable {\n throw new PendingException();\n }", "R applyThrows(T t, U u, V v) throws E;", "void taskFinished(Throwable t);", "public void testCallable1() throws Exception {\n Callable c = Executors.callable(new NoOpRunnable());\n assertNull(c.call());\n }", "@Test\n void buildTaskEventWrongCode() {\n String args = \"do CS2103 project (at: FOREVER IT NEVER STOPS)\";\n assertThrows(DukeIoException.class, () -> Storage.buildTask(\"F\", args, true));\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n // Undeclared exception!\n try { \n DBUtil.runScript((String) null, 'Z', (Connection) null, false, (ErrorHandler) null);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "@Test\n void testDothrow() {\n Examen examen = Datos.EXAMEN;\n doThrow(IllegalArgumentException.class).when(preguntaRepository).guardarVarias(anyList());\n\n examen.setPreguntas(Datos.PREGUNTAS);\n assertThrows(IllegalArgumentException.class, () -> {\n service.guardar(examen);\n });\n }", "protected void afterExecute(Runnable r, Throwable t) {\r\n ScheduledFuture<Event> sf = (ScheduledFuture<Event>) r;\r\n Event e = null;\r\n try {\r\n e = sf.get();\r\n } catch (Exception ex) {\r\n _log.error(\"Exception occurred during execution of event\", ex);\r\n }\r\n schedule(e);\r\n }", "private interface CheckedConditionRunnable {\n void run(Condition c) throws Exception;\n }", "public abstract Value<T> run() throws Exception;", "@Test\n public void testVisitThrowingException() {\n ResetBasicData.reset();\n\n Query<Customer> query = DB.find(Customer.class).setAutoTune(false)\n .fetchQuery(\"contacts\").where().gt(\"id\", 0).order(\"id\")\n .setMaxRows(2).query();\n\n final AtomicInteger counter = new AtomicInteger(0);\n\n assertThrows(IllegalStateException.class, () -> {\n query.findEachWhile(customer -> {\n counter.incrementAndGet();\n if (counter.intValue() > 0) {\n throw new IllegalStateException(\"cause a failure\");\n }\n return true;\n });\n });\n }", "public interface Performer {\n void perform() throws PerformerException;\n}", "public void execute(Runnable runnable) {\n executorService.execute(runnable);\n }", "public void check() throws InterruptedException, ExecutionException {\n // If a thread threw an uncaught exception, re-throw it.\n final ExecutionException executionException = getExecutionException();\n if (executionException != null) {\n throw executionException;\n }\n // If this thread or another thread has been interrupted, throw InterruptedException\n if (checkAndReturn()) {\n throw new InterruptedException();\n }\n }", "@Test(expected = LockUnavilableException.class)\r\n\tpublic void testRunAllFail() throws Exception {\n\t\tRandom randomGen = Mockito.mock(Random.class);\r\n\t\twhen(randomGen.nextInt(2)).thenReturn(0);\r\n\t\tReflectionTestUtils.setField(semaphoreGatedRunner, \"randomGen\", randomGen);\r\n\t\tsemaphoreGatedRunner.setMaxNumberRunners(2);\r\n\r\n\t\twhen(mockSemaphoreDao.attemptToAcquireLock(semaphoreKey + \"-1\", timeoutMS)).thenReturn(null);\r\n\t\twhen(mockSemaphoreDao.attemptToAcquireLock(semaphoreKey + \"-0\", timeoutMS)).thenReturn(null);\r\n\t\t// run\r\n\t\tCallable<Void> call = Mockito.mock(Callable.class);\r\n\t\ttry {\r\n\t\t\tsemaphoreGatedRunner.attemptToRunAllSlots(call, null);\r\n\t\t} finally {\r\n\t\t\tverify(call, never()).call();\r\n\t\t\tverify(mockSemaphoreDao).attemptToAcquireLock(semaphoreKey + \"-1\", timeoutMS);\r\n\t\t\tverify(mockSemaphoreDao).attemptToAcquireLock(semaphoreKey + \"-0\", timeoutMS);\r\n\t\t\tverify(mockSemaphoreDao, never()).releaseLock(anyString(), anyString());\r\n\t\t\tverifyNoMoreInteractions(mockSemaphoreDao);\r\n\t\t}\r\n\t}", "public void threadFail(String reason) {\n threadFail(new AssertionError(reason));\n }", "@Test\n public void testInvokeEffectorStartFailing_MethodInDynamicTask() {\n Task<Void> task = app.getExecutionContext().submit(Tasks.<Void>builder().dynamic(true).body(new Callable<Void>() {\n @Override public Void call() throws Exception {\n testInvokeEffectorStartFailing_Method();\n return null;\n }\n }).build());\n \n assertTaskSucceeds(task);\n assertTaskHasFailedChild(task);\n }", "public void testNewFixedThreadPool4() {\n try {\n ExecutorService e = Executors.newFixedThreadPool(0);\n shouldThrow();\n } catch (IllegalArgumentException success) {}\n }", "@Test\n public void executeWithFailure() {\n new SimpleCommandFailure(\"badRequest\", HystrixRuntimeException.FailureType.COMMAND_EXCEPTION).execute();\n }", "@Test\n\tpublic void exception() {\n\t\t// ReactiveValue wraps all exceptions in CompletionException.\n\t\tCompletionException ce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new ArithmeticException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t\tassertThat(p.keys(), contains(\"key\"));\n\t\t// If we try to throw another exception second time around, we will still get the first one.\n\t\tce = assertThrows(CompletionException.class, () -> p.pin(\"key\", () -> {\n\t\t\tthrow new IllegalStateException();\n\t\t}));\n\t\tassertThat(ce.getCause(), instanceOf(ArithmeticException.class));\n\t}", "private static void execute(EventExecutor executor, Runnable task)\r\n/* 592: */ {\r\n/* 593: */ try\r\n/* 594: */ {\r\n/* 595:670 */ executor.execute(task);\r\n/* 596: */ }\r\n/* 597: */ catch (Throwable t)\r\n/* 598: */ {\r\n/* 599:672 */ rejectedExecutionLogger.error(\"Failed to submit a listener notification task. Event loop shut down?\", t);\r\n/* 600: */ }\r\n/* 601: */ }", "private static Future<?> directExecute(Runnable runnable, long delay) {\n Future<?> future = null;\n if (delay > 0) {\n /* no serial, but a delay: schedule the task */\n if (!(executor instanceof ScheduledExecutorService)) {\n throw new IllegalArgumentException(\"The executor set does not support scheduling\");\n }\n ScheduledExecutorService scheduledExecutorService = (ScheduledExecutorService) executor;\n future = scheduledExecutorService.schedule(runnable, delay, TimeUnit.MILLISECONDS);\n } else {\n if (executor instanceof ExecutorService) {\n ExecutorService executorService = (ExecutorService) executor;\n future = executorService.submit(runnable);\n } else {\n /* non-cancellable task */\n executor.execute(runnable);\n }\n }\n return future;\n }", "@Test(expected = IllegalArgumentException.class)\n\tpublic void test_voidFoo_exception() throws IllegalAccessException {\n\t\t\n\t}", "@Test(expected = SleepInterruptedException.class)\n public void shouldLetUncheckedInterruptedExceptionsPropagate() {\n timeKeeper.scheduleCallback(() -> { throw new SleepInterruptedException(); },\n THIRTY_MILLIS);\n\n new DefaultPollEvent<>(new NeverMetCondition(), timeKeeper)\n .waitUpTo(50, MILLIS);\n }", "public void execute(Runnable command) {\r\n if(dead)\r\n throw new RejectedExecutionException(getClass().getSimpleName()+\" has been shut down\");\r\n else\r\n command.run();\r\n }", "public abstract void executeOnNetwork(@NonNull Runnable runnable);", "@Test\n void checkedExceptionFromConstructorDoesNotAttemptToStoreAggregate() {\n UnitOfWork<?> uow = CurrentUnitOfWork.get();\n uow.executeWithResult(() -> testSubject.newInstance(() -> {\n throw new Exception(\"Throwing checked exception\");\n }), RuntimeException.class::isInstance);\n\n assertFalse(uow.isActive());\n assertFalse(uow.isRolledBack());\n assertTrue(uow.getExecutionResult().isExceptionResult());\n assertEquals(\"Throwing checked exception\", uow.getExecutionResult().getExceptionResult().getMessage());\n }", "public interface RoutineException {}", "protected void runTestCase(Statement testRoutine) throws Throwable {\n Throwable e = null;\n setUp();\n try {\n runTest(testRoutine);\n } catch (Throwable running) {\n e = running;\n } finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (e == null) e = tearingDown;\n }\n }\n if (e != null) throw e;\n }", "public void checkException() {\n/* 642 */ checkException(voidPromise());\n/* */ }", "void invokeRunnableInVMs(boolean catchErrors, CacheSerializableRunnable runnable,\n VM... vms) {\n for (VM vm : vms) {\n try {\n vm.invoke(runnable);\n } catch (Exception e) {\n if (!catchErrors) {\n throw e;\n }\n }\n }\n }", "void doCatch(Throwable t) throws Throwable;", "public void runBare() throws Throwable {\n Throwable exception= null;\n setUp();\n try {\n runTest();\n } catch (Throwable running) {\n exception= running;\n }\n finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (exception == null) exception= tearingDown;\n }\n }\n if (exception != null) throw exception;\n }", "Object proceed() throws Throwable;", "protected abstract void executeActionsIfError();", "@Test(timeout = 4000)\n public void test088() throws Throwable {\n ErrorHandler errorHandler0 = ErrorHandler.getDefault();\n // Undeclared exception!\n try { \n DBUtil.runScript((String) null, (Connection) null, true, errorHandler0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.io.StringReader\", e);\n }\n }", "@Test\n void testDoThrow() {\n\n doThrow(RuntimeException.class).when(dao).foo();\n // doThrow(new RuntimeException()).when(dao).foo();\n\n RuntimeException exception = Assertions.assertThrows(NullPointerException.class,\n () -> service.fetchBookById(42)\n );\n assertThat(exception.getClass(), is(equalTo(NullPointerException.class)));\n }", "private void postTaskToExecutor(Runnable task) {\n try {\n mExecutor.execute(task);\n } catch (RejectedExecutionException failException) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception posting task to executor\",\n failException);\n // If posting a task throws an exception, then there is no choice\n // but to destroy the stream without invoking the callback.\n synchronized (mNativeStreamLock) {\n mReadState = mWriteState = State.ERROR;\n destroyNativeStreamLocked(false);\n }\n }\n }", "void executeStraight(Runnable task);", "@Test(expected = IllegalStateException.class)\r\n public void dummyThrowsExceptionWhenAttacked() {\n\r\n dummy.takeAttack(AXE_ATTACK);\r\n }", "@Test\n void errorHandlingRegressionTests() {\n assertThrows(ParsingFailureException.class, () -> runAndThrow(\"parsing\"));\n\n assertThrows(PreparedStatementFailureException.class, () -> runAndThrow(\"prepared_4040\"));\n assertThrows(PreparedStatementFailureException.class, () -> runAndThrow(\"prepared_4050\"));\n assertThrows(PreparedStatementFailureException.class, () -> runAndThrow(\"prepared_4060\"));\n assertThrows(PreparedStatementFailureException.class, () -> runAndThrow(\"prepared_4070\"));\n assertThrows(PreparedStatementFailureException.class, () -> runAndThrow(\"prepared_4080\"));\n assertThrows(PreparedStatementFailureException.class, () -> runAndThrow(\"prepared_4090\"));\n\n assertThrows(IndexExistsException.class, () -> runAndThrow(\"index_exists_4300\"));\n assertThrows(IndexExistsException.class, () -> runAndThrow(\"index_exists_5000\"));\n\n assertThrows(PlanningFailureException.class, () -> runAndThrow(\"planning_4000\"));\n assertThrows(PlanningFailureException.class, () -> runAndThrow(\"planning_4321\"));\n\n assertThrows(IndexNotFoundException.class, () -> runAndThrow(\"index_not_found_12004\"));\n assertThrows(IndexNotFoundException.class, () -> runAndThrow(\"index_not_found_12016\"));\n assertThrows(IndexNotFoundException.class, () -> runAndThrow(\"index_not_found_5000\"));\n\n assertThrows(QuotaLimitedException.class, () -> runAndThrow(\"quota_limited\"));\n\n assertThrows(InternalServerFailureException.class, () -> runAndThrow(\"internal_5000\"));\n\n assertThrows(CasMismatchException.class, () -> runAndThrow(\"cas_mismatch\"));\n assertThrows(CasMismatchException.class, () -> runAndThrow(\"cas_mismatch_reason\"));\n\n assertThrows(DmlFailureException.class, () -> runAndThrow(\"dml_failure\"));\n\n assertThrows(AuthenticationFailureException.class, () -> runAndThrow(\"auth_13014\"));\n assertThrows(AuthenticationFailureException.class, () -> runAndThrow(\"auth_10000\"));\n\n assertThrows(IndexFailureException.class, () -> runAndThrow(\"index_12000\"));\n assertThrows(IndexFailureException.class, () -> runAndThrow(\"index_14000\"));\n\n assertThrows(FeatureNotAvailableException.class, () -> runAndThrow(\"query_context\"));\n assertThrows(FeatureNotAvailableException.class, () -> runAndThrow(\"preserve_expiry\"));\n\n assertThrows(UnambiguousTimeoutException.class, () -> runAndThrow(\"streaming\"));\n\n assertThrows(RateLimitedException.class, () -> runAndThrow(\"rate_limited_1191\"));\n assertThrows(RateLimitedException.class, () -> runAndThrow(\"rate_limited_1192\"));\n assertThrows(RateLimitedException.class, () -> runAndThrow(\"rate_limited_1193\"));\n assertThrows(RateLimitedException.class, () -> runAndThrow(\"rate_limited_1194\"));\n\n assertThrows(CouchbaseException.class, () -> runAndThrow(\"empty_list\"));\n assertThrows(CouchbaseException.class, () -> runAndThrow(\"unknown\"));\n\n assertThrows(DocumentNotFoundException.class, () -> runAndThrow(\"kv_notfound\"));\n assertThrows(DocumentExistsException.class, () -> runAndThrow(\"kv_exists\"));\n }", "boolean processFailure(Throwable t);", "private TestRunnableResult runRunnable(ModelFactory factory, TestRunnable runnable) {\n\t\tTestRunnableResult result = new TestRunnableResult();\n\t\tlong startMem, endMem, start, end;\n\t\tstartMem = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed();\n\t\tstart = System.currentTimeMillis();\n\t\tresult.returned = runnable.run(factory);\n\t\tend = System.currentTimeMillis();\n\t\tresult.usedTime = end - start;\n\t\tendMem = ManagementFactory.getMemoryMXBean().getHeapMemoryUsage().getUsed();\n\t\tresult.usedMemory = endMem - startMem;\n\t\treturn result;\n\t}", "void failed (Exception e);", "protected void runInvalidMoves(MarbleSolitaireModel msm,\n int[] fRows, int[] fColumns,\n int[] tRows, int[] tColumns) {\n int initScore = msm.getScore();\n String initState = msm.getGameState();\n\n if (fRows.length != fColumns.length\n && fColumns.length != tRows.length\n && tRows.length != tColumns.length) {\n fail(\"Invalid test: movement arrays must be the same length!\");\n }\n\n for (int i = 0; i < fRows.length; i++) {\n assertFalse(msm.isGameOver());\n try {\n msm.move(fRows[i], fColumns[i], tRows[i], tColumns[i]);\n fail(String.format(\"Invalid move #%d (%d, %d) -> (%d, %d) was not caught\",\n i, fRows[i], fColumns[i], tRows[i], tColumns[i]));\n } catch (IllegalArgumentException e) {\n assertEquals(initState, msm.getGameState());\n assertEquals(initScore, msm.getScore());\n }\n }\n }", "public abstract T execute() throws Exception;", "public void testNewSingleThreadExecutor3() {\n try {\n ExecutorService e = Executors.newSingleThreadExecutor(null);\n shouldThrow();\n } catch (NullPointerException success) {}\n }" ]
[ "0.75639635", "0.70609677", "0.6998547", "0.6747789", "0.63156575", "0.617796", "0.60961246", "0.60936046", "0.60014635", "0.59678996", "0.5960684", "0.5918759", "0.58728194", "0.58540446", "0.5848234", "0.58316565", "0.57863224", "0.57550013", "0.5750446", "0.57484275", "0.57453895", "0.57121813", "0.56521755", "0.56411517", "0.5568168", "0.5546243", "0.5528267", "0.55215216", "0.5507178", "0.55015606", "0.5471659", "0.54617953", "0.5454175", "0.5438642", "0.54350865", "0.5401638", "0.540148", "0.5379931", "0.53720504", "0.536759", "0.53526413", "0.53482515", "0.53393775", "0.53382295", "0.5322754", "0.5321348", "0.5317853", "0.5316188", "0.5291372", "0.5280507", "0.5258804", "0.5244553", "0.5235649", "0.5230445", "0.52264035", "0.52200866", "0.52194524", "0.5211175", "0.52066", "0.5186963", "0.51814944", "0.5176278", "0.51757485", "0.51653135", "0.51580405", "0.51519984", "0.5147789", "0.5140214", "0.51378375", "0.5135795", "0.5133234", "0.5121336", "0.5113557", "0.50998014", "0.5094728", "0.5092289", "0.5088413", "0.5080289", "0.5076927", "0.50768214", "0.50745845", "0.5068574", "0.50596154", "0.50595224", "0.505676", "0.5039215", "0.50310266", "0.5030276", "0.5023675", "0.50228524", "0.50212073", "0.50180495", "0.5016701", "0.5013055", "0.50112045", "0.50062346", "0.50060993", "0.49851722", "0.49851224", "0.4985052" ]
0.6550981
4
Tests execute method because of call to System.exit, this test will not pass. However, it is possible to debug up until that point.
public void testExecute() { aes.execute(); assertTrue(a.wasStopPollingMessagesCalled); assertTrue(osm.wasWriteCalled); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void _test_exit() throws Exception {\r\n System.exit(0);\r\n }", "public void _test_exit() throws Exception {\n System.exit(0);\n }", "public void _test_exit() throws Exception {\n System.exit(0);\n }", "public void _test_exit() throws Exception {\n System.exit(0);\n }", "@Test\r\n\tpublic void testEXIT(){\n\t}", "@Override\n\tpublic void execute() {\n\t\tSystem.exit(0);\n\t}", "@Override\n\tpublic int exit() {\n\t\treturn 0;\n\t}", "@Override\n public void execute() {\n System.out.println(\"programm closed\");\n System.exit(0);\n }", "static public void order66() {\n System.exit(0);\n }", "public void exit() throws DynamicCallException, ExecutionException{\n call(\"exit\").get();\n }", "protected void finishExecution() {\r\n\r\n\t}", "void exit() throws Exception;", "public TracingTestPreProcExit()\n {\n super();\n }", "public void testMain() throws Throwable {\n\r\n\t}", "public void a_exit() {\r\n\t\tSystem.exit(0);\r\n\t}", "protected void runAfterTest() {}", "protected void exit() {\n\t\tSystem.exit(0);\n\t}", "@Test\r\n public void test_logExit1() throws Exception {\r\n paramNames = new String[] {\"p1\"};\r\n paramValues = new Object[] {123};\r\n LoggingWrapperUtility.logExit(log, signature, value);\r\n\r\n TestsHelper.checkLog(\"logExit\",\r\n \"DEBUG\",\r\n \"Exiting method [method_signature].\",\r\n \"Output parameter: result\");\r\n }", "@Override\r\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\texecutable.feedbackExecutionError();\r\n\t\t\t\t\t}", "@Override\r\n\tpublic void execute() throws InstructionExecutionException {\n\t\tthis.robot.requestQuit();\r\n\t}", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tmyExceptionTest(90);\n\t\t\t//myExceptionTest(190);\n\t\t\tSystem.out.println(\"after exeption\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally{\n\t\t\tSystem.out.println(\"I will be executed always\");\n\t\t}\n\t\n\n\t}", "@Test\r\n public void test_logExit2() throws Exception {\r\n paramNames = new String[] {\"p1\"};\r\n paramValues = new Object[] {123};\r\n LoggingWrapperUtility.logExit(log, signature, value, new Date());\r\n\r\n TestsHelper.checkLog(\"logExit\",\r\n \"DEBUG\",\r\n \"Exiting method [method_signature], time spent in the method: \",\r\n \"Output parameter: result\");\r\n }", "static void exit()\r\n\t {\n\t\t System.exit(0);\r\n\t }", "@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\n\t}", "public Void run() {\n System.exit(0);\n return null;\n }", "abstract public void exit();", "public abstract void exit (int status);", "private void systemExit(int status) {\n Utilities.verboseLog(\" Exit status: \" + status);\n try {\n databaseCleaner.closeDatabaseCleaner();\n LOGGER.debug(\"Ending\");\n Thread.sleep(500); // cool off, then exit\n } catch (Exception e) {\n e.printStackTrace();\n System.err.println(\"InterProScan analysis failed.\");\n } finally {\n cleanUpWorkingDirectory();\n // Always exit\n if (status != 0) {\n System.err.println(\"InterProScan analysis failed. Exception thrown by StandaloneBlackBoxMaster. Check the log file for details\");\n System.exit(status);\n }\n }\n //let Run do the cleanup\n //System.exit(status);\n }", "public static int exit() throws Exception {\n\t\tisRunnerActive = false;\n\t\t(new Thread() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tif (webServer != null) {\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\twebServer.shutdown();\n\t\t\t\t\t\t} catch (Exception ignore) {\n\t\t\t\t\t\t\t// ignore\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} catch (InterruptedException e) {\n\t\t\t\t\tlog.warning(StringUtils.getStackTrace(e));\n\t\t\t\t}\n\t\t\t\ttry {\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t} catch (Throwable t) {\n\t\t\t\t\t// ignore\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t\treturn 0;\n\t}", "public Future<Void> exit() throws DynamicCallException, ExecutionException{\n return call(\"exit\");\n }", "@Override\n\t@Ignore\n\t@Test\n\tpublic void testLaunchThenKill() throws Throwable {\n\t}", "private static void exit(int i) {\n\t\t\n\t}", "private void runExit() {\n new Thread(new Runnable() {\n public void run() {\n System.exit(0);\n }\n }).start();\n }", "public void runBare() throws Throwable {\n Throwable exception= null;\n setUp();\n try {\n runTest();\n } catch (Throwable running) {\n exception= running;\n }\n finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (exception == null) exception= tearingDown;\n }\n }\n if (exception != null) throw exception;\n }", "@Test\r\n public void test_logExit2_NoValue() throws Exception {\r\n value = null;\r\n LoggingWrapperUtility.logExit(log, signature, value, new Date());\r\n\r\n TestsHelper.checkLog(\"logExit\",\r\n \"DEBUG\",\r\n \"Exiting method [method_signature], time spent in the method: \");\r\n }", "public abstract void exit();", "@Test\r\n public void test_logExit3() throws Exception {\r\n paramNames = new String[] {\"p1\"};\r\n paramValues = new Object[] {123};\r\n LoggingWrapperUtility.logExit(log, signature, value, new Date(), true, Level.INFO);\r\n\r\n TestsHelper.checkLog(\"logExit\",\r\n \"INFO\",\r\n \"] Exiting method [method_signature], time spent in the method: \",\r\n \"Output parameter: result\");\r\n }", "public void run() {\n super.run();\n if (needToExit((TestSuite)this.suite)) {\n Log.log(J2meTestRunner.class, \"Exit requested\");\n if (midlet instanceof CoverageReporter) {\n CoverageManager.writeReport(\"file://localhost/\");\n }\n midlet.notifyDestroyed();\n }\n }", "public void tearDown(boolean systemExit) {\n int status = 0;\n \n while (!atExitBlocks.empty()) {\n RubyProc proc = atExitBlocks.pop();\n try {\n proc.call(getCurrentContext(), IRubyObject.NULL_ARRAY);\n } catch (RaiseException rj) {\n RubyException raisedException = rj.getException();\n if (!getSystemExit().isInstance(raisedException)) {\n status = 1;\n printError(raisedException);\n } else {\n IRubyObject statusObj = raisedException.callMethod(\n getCurrentContext(), \"status\");\n if (statusObj != null && !statusObj.isNil()) {\n status = RubyNumeric.fix2int(statusObj);\n }\n }\n }\n }\n \n if (finalizers != null) {\n synchronized (finalizersMutex) {\n for (Iterator<Finalizable> finalIter = new ArrayList<Finalizable>(finalizers.keySet()).iterator(); finalIter.hasNext();) {\n Finalizable f = finalIter.next();\n if (f != null) {\n- f.finalize();\n+ try {\n+ f.finalize();\n+ } catch (Throwable t) {\n+ // ignore\n+ }\n }\n finalIter.remove();\n }\n }\n }\n \n synchronized (internalFinalizersMutex) {\n if (internalFinalizers != null) {\n for (Iterator<Finalizable> finalIter = new ArrayList<Finalizable>(\n internalFinalizers.keySet()).iterator(); finalIter.hasNext();) {\n Finalizable f = finalIter.next();\n if (f != null) {\n- f.finalize();\n+ try {\n+ f.finalize();\n+ } catch (Throwable t) {\n+ // ignore\n+ }\n }\n finalIter.remove();\n }\n }\n }\n \n getThreadService().disposeCurrentThread();\n \n getBeanManager().unregisterCompiler();\n getBeanManager().unregisterConfig();\n getBeanManager().unregisterParserStats();\n getBeanManager().unregisterClassCache();\n getBeanManager().unregisterMethodCache();\n \n if (systemExit && status != 0) {\n throw newSystemExit(status);\n }\n }", "@Test\r\n public void test_logExit1_NoValue() throws Exception {\r\n value = null;\r\n LoggingWrapperUtility.logExit(log, signature, value);\r\n\r\n TestsHelper.checkLog(\"logExit\",\r\n \"DEBUG\",\r\n \"Exiting method [method_signature].\");\r\n }", "private static void exit()\n {\n System.out.println(\"Graceful exit\");\n System.exit(0);\n }", "@Override\n \tpublic void exit(int code)\n \t{\n \t\tSystem.exit(code);\n \t}", "@Override\n\tpublic void runTest() throws Throwable {}", "public void exit() {\n\t\tSystem.exit(0);\n\t}", "public void exit() {\n\t\tSystem.exit(0);\n\t}", "private static void exit(){\n\t\t\n\t\tMain.run=false;\n\t\t\n\t}", "@Test\r\n public void testMain() {\r\n System.out.println(\"main\");\r\n String[] args = null;\r\n try{\r\n WinnerScreen.main(args);\r\n }catch(Exception e){\r\n //catches error that happens sometimes for unknown reason\r\n }\r\n }", "@Override\n\tpublic void exit() {\n\t\t//do nothing\n\t}", "@Override\r\n\tpublic void exit() {\n\t\t\r\n\t}", "public static void main(String [] args) throws Exception{\n\tint Systemexit= ToolRunner.run(new DriverIndianAirport(), args);\r\n\tSystem.exit(Systemexit);\r\n}", "@Override\n public boolean shouldExit() {\n return true;\n }", "void stop() {\n\t\texitTesting = true;\n\t}", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "public static void ender()\n{\n\tSystem.exit(0); \n}", "@Test\r\n\tpublic void testExecuteMachine() throws MalformedURLException {\n//\t\tassertEquals(true, MockBackLMBets.executed);\r\n//\t\tassertEquals(6000000, MockBackLMBets.marketSuspendTime);\r\n//\r\n//\t\tmachine.fireEvent(\"runner\", ctx);\r\n//\t\tassertEquals(\"backPlaced\", machine.getCurrentStateId());\r\n\r\n\t}", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "@Override\n\tpublic void exit() {\n\t\t\n\t}", "@Test\n public void testMain() throws Exception {\n //main function cannot be tested as it is dependant on user input\n System.out.println(\"main\");\n }", "@AfterTest\npublic void end()\n{\n\tlogin.s.quit();\n}", "public void quit(String dummy) {\n System.exit(1);\n }", "public void test_execute() throws Throwable {\r\n\t\t\r\n\t\tCLIService service = null;\r\n\t\t\r\n\t\t// Ping\r\n\t\ttry {\r\n\t\t\tservice = CLIServiceWrapper.getService();\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PING + \" \" + TEST_PING_ARG0);\r\n\t\t\tif ( CLIServiceTools.isResponseOkAndComplete(response) ) {\r\n\t\t\t\tPASS(TEST_PING);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PING, \"Response not ok. response=\" + response);\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PING,\"ping failed to exception:\" + e.getMessage());\r\n\t\t}\r\n\r\n\t\t// Process list - log and cli\r\n\t\ttry {\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PROCESSLIST);\r\n\t\t\tif ( (CLIServiceTools.isResponseOkAndComplete(response)) && (response.indexOf(TEST_PROCESSLIST_VALIDATION1) >= 0) &&\r\n\t\t\t\t (response.indexOf(TEST_PROCESSLIST_VALIDATION2) >= 0) && (response.indexOf(TEST_PROCESSLIST_VALIDATION3) >= 0) ) {\r\n\t\t\t\tPASS(TEST_PROCESSLIST);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PROCESSLIST, \"Response not ok. See log for response.\");\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PROCESSLIST,\"process list failed to exception:\" + e.getMessage());\r\n\t\t}\t\r\n\t\t\r\n\t\t// Process list - log only - the CLI output should not contain any validations, just the OK.\r\n\t\ttry {\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PROCESSLIST + \" =\" + CLIServiceConstants.COMMAND_PROCESSLIST_LOG_VALUE);\r\n\t\t\tif ( (CLIServiceTools.isResponseOkAndComplete(response)) && (response.indexOf(TEST_PROCESSLIST_VALIDATION1) < 0) &&\r\n\t\t\t (response.indexOf(TEST_PROCESSLIST_VALIDATION2) < 0) && (response.indexOf(TEST_PROCESSLIST_VALIDATION3) < 0) ) {\r\n\t\t\t\tPASS(TEST_PROCESSLIST_LOG);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PROCESSLIST_LOG, \"Response not ok. See log for response.\");\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PROCESSLIST_LOG,\"process list (log only) failed to exception:\" + e.getMessage());\r\n\t\t}\t\r\n\r\n\t}", "public void execute() {\n /*\n r6 = this;\n java.lang.String r0 = \"Failed to close connection after DBUnit operation: \"\n java.util.logging.Logger r1 = log\n java.lang.StringBuilder r2 = new java.lang.StringBuilder\n r2.<init>()\n java.lang.String r3 = \"Executing DBUnit operations: \"\n r2.append(r3)\n int r3 = r6.size()\n r2.append(r3)\n java.lang.String r2 = r2.toString()\n r1.info(r2)\n org.dbunit.database.IDatabaseConnection r1 = r6.getConnection() // Catch:{ all -> 0x005a }\n r6.disableReferentialIntegrity(r1) // Catch:{ all -> 0x0058 }\n java.util.Iterator r2 = r6.iterator() // Catch:{ all -> 0x0058 }\n L_0x0027:\n boolean r3 = r2.hasNext() // Catch:{ all -> 0x0058 }\n if (r3 == 0) goto L_0x0037\n java.lang.Object r3 = r2.next() // Catch:{ all -> 0x0058 }\n org.seamless.util.dbunit.DBUnitOperations$Op r3 = (org.seamless.util.dbunit.DBUnitOperations.Op) r3 // Catch:{ all -> 0x0058 }\n r3.execute(r1) // Catch:{ all -> 0x0058 }\n goto L_0x0027\n L_0x0037:\n r6.enableReferentialIntegrity(r1) // Catch:{ all -> 0x0058 }\n if (r1 == 0) goto L_0x0057\n r1.close() // Catch:{ Exception -> 0x0040 }\n goto L_0x0057\n L_0x0040:\n r1 = move-exception\n java.util.logging.Logger r2 = log\n java.util.logging.Level r3 = java.util.logging.Level.WARNING\n java.lang.StringBuilder r4 = new java.lang.StringBuilder\n r4.<init>()\n r4.append(r0)\n r4.append(r1)\n java.lang.String r0 = r4.toString()\n r2.log(r3, r0, r1)\n L_0x0057:\n return\n L_0x0058:\n r2 = move-exception\n goto L_0x005c\n L_0x005a:\n r2 = move-exception\n r1 = 0\n L_0x005c:\n if (r1 == 0) goto L_0x0079\n r1.close() // Catch:{ Exception -> 0x0062 }\n goto L_0x0079\n L_0x0062:\n r1 = move-exception\n java.util.logging.Logger r3 = log\n java.util.logging.Level r4 = java.util.logging.Level.WARNING\n java.lang.StringBuilder r5 = new java.lang.StringBuilder\n r5.<init>()\n r5.append(r0)\n r5.append(r1)\n java.lang.String r0 = r5.toString()\n r3.log(r4, r0, r1)\n L_0x0079:\n goto L_0x007b\n L_0x007a:\n throw r2\n L_0x007b:\n goto L_0x007a\n */\n throw new UnsupportedOperationException(\"Method not decompiled: org.seamless.util.dbunit.DBUnitOperations.execute():void\");\n }", "public static void main(String[] args) {\n PrintStream stderr = System.err;\n\n String suiteClassName = System.getProperty(TEST_SUITE_PROPERTY_NAME);\n if (!checkTestSuiteProperty(suiteClassName)) {\n System.exit(2);\n }\n\n int exitCode;\n try {\n exitCode = runTestsInSuite(suiteClassName, args);\n } catch (Throwable e) {\n // An exception was thrown by the runner. Print the error to the output stream so it will be\n // logged\n // by the executing strategy, and return a failure, so this process can gracefully shut down.\n e.printStackTrace();\n exitCode = 1;\n }\n\n System.err.printf(\"%nBazelTestRunner exiting with a return value of %d%n\", exitCode);\n System.err.println(\"JVM shutdown hooks (if any) will run now.\");\n System.err.println(\"The JVM will exit once they complete.\");\n System.err.println();\n\n printStackTracesIfJvmExitHangs(stderr);\n\n DateFormat format = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.getDefault());\n Date shutdownTime = new Date();\n String formattedShutdownTime = format.format(shutdownTime);\n System.err.printf(\"-- JVM shutdown starting at %s --%n%n\", formattedShutdownTime);\n System.exit(exitCode);\n }", "@Override\n public void exit() {\n super.exit();\n }", "public void exit() {\n try {\n processLine(\"exit\");\n } catch (NoSystemException ex) {\n\t\t\tLog.error(\"No System available. Please load a model before executing this command.\");\n }\n }", "protected abstract TestResult runTestImpl() throws Exception;", "@Override\n \tpublic void logProgramExit(int exitCode, String exception) {\n \t\tSystem.out.println(\"Program exited with code \" + exitCode + \" [\" + exception + \"]\");\n \t}", "public static void endStep() {\n\t\tTestNotify.log(GenLogTC() + \"has been tested.\");\n\t}", "void exit(String invocationId, Object returnValue);", "@AfterTest\n\tpublic void afterTest() {\n\t\tiDriver.quit();\n\t\tSystem.out.println(\"=====================VEGASF_419_END=====================\");\n\t}", "@After\r\n\tpublic void tearDown() throws Exception {\n\t\tdriver.quit();\r\n\r\n\t\t// TODO Figure out how to determine if the test code has failed in a\r\n\t\t// manner other than by EISTestBase.fail() being called. Otherwise,\r\n\t\t// finish() will always print the default passed message to the console.\r\n\t\tfinish();\r\n}", "@Test\n\tpublic void whenExecuteMainThenPrintToConsole() {\n\t\tByteArrayOutputStream out = new ByteArrayOutputStream();\n\t\tSystem.setOut(new PrintStream(out));\n\t\tCalculate.main(null);\n\t\tassertThat(out.toString(), is(\"Hello World\\r\\n\"));\n\t}", "private void exit() {\n audrey.setExtractingSample(false);\n // If we just extracted argument samples, let the following event know that we're done with\n // arguments.\n instrumentationContext.setLookingForFirstStatement(false);\n }", "public void execute() throws MojoExecutionException, MojoFailureException {\n \n if (skip) {\n return;\n }\n \n artifactHelper.setRepositories(localRepository, mavenProject.getRemoteArtifactRepositories());\n \n ClassLoader hostClassLoader = createHostClassLoader();\n ClassLoader bootClassLoader = createBootClassLoader(hostClassLoader);\n \n MavenContributionScanner scanner = new MavenContributionScannerImpl();\n ScanResult scanResult = scanner.scan(mavenProject); \n logContributions(scanResult);\n \n MavenRuntime runtime = createRuntime(bootClassLoader, hostClassLoader);\n\n getLog().info(\"Booting test runtime\");\n runtime.start(properties, scanResult.getExtensionContributions());\n getLog().info(\"Fabric3 test runtime booted\");\n\n getLog().info(\"Deloying user contributions\");\n runtime.deploy(scanResult.getUserContributions());\n getLog().info(\"User contributions deployed\");\n \n SurefireTestSuite surefireTestSuite = runtime.getTestSuite();\n getLog().info(\"Executing integration tests\");\n runTests(surefireTestSuite);\n getLog().info(\"Executed integration tests\");\n\n }", "private static void exit() {\n dvm.exit();\n stop = true;\n }", "@Test\n public void testitFailAtEndSingleThread() throws Exception {\n File testDir = ResourceExtractor.simpleExtractResources(getClass(), \"/mng-0095\");\n\n Verifier verifier = newVerifier(testDir.getAbsolutePath());\n verifier.setAutoclean(false);\n verifier.deleteDirectory(\"target\");\n verifier.deleteDirectory(\"subproject1/target\");\n verifier.deleteDirectory(\"subproject2/target\");\n verifier.deleteDirectory(\"subproject3/target\");\n verifier.addCliArgument(\"--fail-at-end\");\n verifier.setLogFileName(\"log-fae-mt1.txt\");\n verifier.addCliArgument(\"-Dmaven.threads.experimental=1\");\n try {\n verifier.addCliArgument(\"org.apache.maven.its.plugins:maven-it-plugin-touch:touch\");\n verifier.execute();\n verifier.verifyErrorFreeLog();\n } catch (VerificationException e) {\n // expected\n }\n\n verifier.verifyFilePresent(\"target/touch.txt\");\n verifier.verifyFileNotPresent(\"subproject1/target/touch.txt\");\n verifier.verifyFilePresent(\"subproject2/target/touch.txt\");\n verifier.verifyFileNotPresent(\"subproject3/target/touch.txt\");\n }", "@Override\r\n\tpublic void exit() {\n\r\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\texecutable.feedbackExecutionProcessRunning();\r\n\t\t\t}", "public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }", "protected abstract void executeTests() throws BuilderException;", "@Override\n\tpublic void exit() {\n\n\t}", "@After\r\n\tpublic void tearDown() throws Exception {\n\t\tdriver.quit();\r\n\r\n\t\t// TODO Figure out how to determine if the test code has failed in a\r\n\t\t// manner other than by EISTestBase.fail() being called. Otherwise,\r\n\t\t// finish() will always print the default passed message to the console.\r\n\t\tfinish();\r\n\t}", "static void fail(String message) {\n Log.error(message);\n System.exit(1);\n }", "public static void ensureExit(String utility) throws Exception {\n utilityToStart = utility;\n\n try {\n int port = TestLibrary.getUnusedRandomPort();\n Thread thread = new Thread(new AltSecurityManager(port));\n System.err.println(\"expecting RuntimeException for \" +\n \"checkListen in child process\");\n long start = System.currentTimeMillis();\n thread.start();\n thread.join(TIME_OUT);\n\n long time = System.currentTimeMillis() - start;\n System.err.println(\"waited \" + time + \" millis for \" +\n utilityToStart + \" to die\");\n\n if (time >= TIME_OUT) {\n\n // dont pollute other tests; increase the likelihood\n // that rmid will go away if it did not exit already.\n if (utility.equals(ACTIVATION)) {\n RMID.shutdown(port);\n }\n\n TestLibrary.bomb(utilityToStart +\n \" took too long to die...\");\n } else {\n System.err.println(utilityToStart +\n \" terminated on time\");\n }\n } finally {\n vm.destroy();\n vm = null;\n }\n }", "protected void runTest() throws Throwable {\n\t\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t\t}", "@Test\r\n public void test_logExit3_NoValue() throws Exception {\r\n value = null;\r\n LoggingWrapperUtility.logExit(log, signature, value, new Date(), true, Level.INFO);\r\n\r\n TestsHelper.checkLog(\"logExit\",\r\n \"INFO\",\r\n \"] Exiting method [method_signature], time spent in the method: \");\r\n }", "public void execute() {\n TestOrchestratorContext context = factory.createContext(this);\n\n PipelinesManager pipelinesManager = context.getPipelinesManager();\n ReportsManager reportsManager = context.getReportsManager();\n TestDetectionOrchestrator testDetectionOrchestrator = context.getTestDetectionOrchestrator();\n TestPipelineSplitOrchestrator pipelineSplitOrchestrator = context.getPipelineSplitOrchestrator();\n\n pipelinesManager.initialize(testTask.getPipelineConfigs());\n reportsManager.start(testTask.getReportConfigs(), testTask.getTestFramework());\n pipelineSplitOrchestrator.start(pipelinesManager);\n\n testDetectionOrchestrator.startDetection();\n testDetectionOrchestrator.waitForDetectionEnd();\n LOGGER.debug(\"test - detection - ended\");\n\n pipelineSplitOrchestrator.waitForPipelineSplittingEnded();\n pipelinesManager.pipelineSplittingEnded();\n LOGGER.debug(\"test - pipeline splitting - ended\");\n\n pipelinesManager.waitForExecutionEnd();\n reportsManager.waitForReportEnd();\n\n LOGGER.debug(\"test - execution - ended\");\n }", "@Test\n public void testExecute() throws Exception {\n ServerIdentificationInputs intputs = Inputs.getServerIdentificationInputsForAmazon();\n PowerMockito.mockStatic(ComputeFactory.class);\n PowerMockito.doReturn(computeServiceMock).when(ComputeFactory.class, \"getComputeService\", intputs);\n Mockito.doReturn(\"\").when(computeServiceMock).suspend(REGION, SERVER_ID);\n\n Map<String, String> result = toTest.execute(intputs);\n\n Assert.assertEquals(result.get(Outputs.RETURN_CODE), \"0\");\n Assert.assertEquals(result.get(Outputs.RETURN_RESULT), \"server suspended\");\n verify(computeServiceMock).suspend(REGION, SERVER_ID);\n verifyNoMoreInteractions(computeServiceMock);\n }", "static void executeTest() {\n int[] param1 = { // Checkpoint 1\n 12, 11, 10, -1, -15,};\n boolean[] expect = { // Checkpoint 2\n true, false,true, false, true,}; \n System.out.printf(\"課題番号:%s, 学籍番号:%s, 氏名:%s\\n\",\n question, gakuban, yourname);\n int passed = 0;\n for (int i = 0; i < param1.length; i++) {\n String info1 = \"\", info2 = \"\";\n Exception ex = null;\n boolean returned = false; //3\n try {\n returned = isDivable(param1[i]); //4\n if (expect[i] == (returned)) { //5\n info1 = \"OK\";\n passed++;\n } else {\n info1 = \"NG\";\n info2 = String.format(\" <= SHOULD BE %s\", expect[i]);\n }\n } catch (Exception e) {\n info1 = \"NG\";\n info2 = \"EXCEPTION!!\";\n ex = e;\n } finally {\n String line = String.format(\"*** Test#%d %s %s(%s) => \",\n i + 1, info1, method, param1[i]);\n if (ex == null) {\n System.out.println(line + returned + info2);\n } else {\n System.out.println(line + info2);\n ex.printStackTrace();\n return;\n }\n }\n }\n System.out.printf(\"Summary: %s,%s,%s,%d/%d\\n\",\n question, gakuban, yourname, passed, param1.length);\n }", "public static void runUsual() throws Exception {\r\n\t\ttestRun(0);\r\n\t}", "public void exit();", "public void finishTest() {\r\n\t\tlatch.countDown();\r\n\t}", "@Override\n public boolean exitChecker() {\n return false;\n }", "@Override\n \tprotected void doWaitExecution() throws CoreException {\n \t\ttry {\n \t\t\tstderrObserver.join();\n \t\t} catch (InterruptedException e1) {\n \t\t\te1.printStackTrace();\n \t\t}\n //\t\tSystem.err.println(\"stderr finished\");\n \t\ttry {\n \t\t\tstdoutObserver.join();\n \t\t} catch (InterruptedException e1) {\n \t\t\te1.printStackTrace();\n \t\t}\n //\t\tSystem.err.println(\"stdout finished\");\n \t\t/*\n \t\t * Still experience has shown that remote process might not have yet terminated, although stdout and stderr is closed.\n \t\t */\n \t\ttry {\n \t\t\tprocess.waitFor();\n \t\t} catch (InterruptedException e) {\n \t\t\t// Ignore\n \t\t}\n \t}", "@Override\r\n public int stop(int exitCode) {\r\n IS.stopAll();\r\n return exitCode;\r\n }", "private void processQuit() {\n System.exit(0);\n }", "@Override\n public int getExitCode() {\n return 0;\n }", "@Test(timeout = 4000)\n public void test073() throws Throwable {\n Level level0 = Level.fatal;\n ErrorHandler errorHandler0 = new ErrorHandler(\"--Yq-y_4.s9]jt\", level0);\n DBExecutionResult dBExecutionResult0 = DBUtil.runScript(\"--X\", (Connection) null, true, errorHandler0);\n assertNotNull(dBExecutionResult0);\n }", "private CommandResult executeExitCommand(Command userCommand) {\n return new CommandResult(userCommand, CommandResult.EXECUTION_SUCCESS, CommandResult.BLANK_DESCRIPTION);\n }", "public void selfTest() {\n \n \n \n /**\n * TESTING CONFIGURATION RIGHT HERE:\n */\n int total = 1; //How many tests should we run\n int start = 0; //The first test to run\n //TestStubs.storePrints(); //store prints until the end\n TestStubs.displayDebugWhileTesting(false); //shows all the debug prints (with context switches) if set to true\n \n \n //MemoryMap.selfTest();\n //Swap.selfTest();\n \n UserProcess.testing = true;\n TestStubs.debugPrint(\"SELF TESTING VMKERNEL!\");\n \n int passed = 0;\n \n for (int i = 0; i < total; i++) {\n if (runTest(i+start))\n passed += 1;\n }\n \n if (passed != total) {\n TestStubs.debugPrint(\"SOME TESTS FAILED! \" + passed + \"/\" + total + \" passed.\");\n } else {\n TestStubs.debugPrint(\"ALL TESTS PASSED! \" + passed + \"/\" + total + \" passed.\");\n }\n \n UserProcess.testing = false;\n \n\n \n //System.out.println(TestStubs.getStoredPrints());\n //TestStubs.clearAndDontStorePrints();\n \n if (passed != total) {\n System.out.flush();\n /// kernel.terminate();\n }\n \n TestStubs.disable();\n \n }" ]
[ "0.77541465", "0.769163", "0.769163", "0.769163", "0.7293237", "0.7080334", "0.6795611", "0.64929587", "0.6490158", "0.6456328", "0.6424583", "0.6402697", "0.6352013", "0.63371164", "0.62847745", "0.6282927", "0.6259199", "0.6240225", "0.6192969", "0.61673486", "0.61570257", "0.61398816", "0.612486", "0.6115551", "0.6110703", "0.6108549", "0.609892", "0.6089894", "0.60622925", "0.6053427", "0.60530126", "0.60292464", "0.60262394", "0.6024685", "0.59997946", "0.5998459", "0.59946805", "0.59881794", "0.59839785", "0.5981252", "0.59637177", "0.5946282", "0.5942212", "0.5930942", "0.5930942", "0.59184504", "0.5898312", "0.5891154", "0.5889914", "0.5881443", "0.58799297", "0.5878189", "0.5863728", "0.5863269", "0.5862587", "0.58527964", "0.58527964", "0.58371156", "0.58299404", "0.58271235", "0.5811843", "0.5809825", "0.58067244", "0.580537", "0.5803876", "0.5803467", "0.5802301", "0.5796761", "0.57955635", "0.5794928", "0.5793361", "0.5785245", "0.5778756", "0.5774504", "0.5765476", "0.57623374", "0.57579356", "0.5752636", "0.5751729", "0.575005", "0.5743732", "0.5736026", "0.5735716", "0.5734728", "0.5733649", "0.5733085", "0.572919", "0.5721773", "0.57165396", "0.570949", "0.57032526", "0.5692862", "0.56898093", "0.5687677", "0.5686557", "0.56824076", "0.56808126", "0.5679632", "0.5676553", "0.5675147" ]
0.5883639
49
index data for all the urls
public void indexURLData(HashSet<String> urls) { try { for (String url : urls) { Document document = initilizeDocumentwithFields(url.split("\t")[0]); if (document != null) { indexwriter.addDocument(document); } } indexwriter.close(); } catch (IOException e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@RequestMapping(value = \"/\", method = RequestMethod.GET)\n public List<URL> index() throws MalformedURLException {\n\n List<URL> urls = new ArrayList<URL>();\n\n urls.add(new URL(\"http://localhost:8080/halogens\"));\n urls.add(new URL(\"http://localhost:8080/neutrons\"));\n urls.add(new URL(\"http://localhost:8080/weight/50\"));\n\n return urls;\n }", "private void parseIndex() throws IOException {\n\t\tDocument doc = Jsoup.connect(WOLFF + \"/bioscopen/cinestar/\").get();\n\t\tElements movies = doc.select(\".table_agenda td[width=245] a\");\n\t\t\n\t\tSet<String> urls = new HashSet<String>();\n\t\tfor(Element movie : movies) {\n\t\t\turls.add(movie.attr(\"href\"));\n\t\t}\n\t\t\n\t\tfor(String url: urls) {\n\t\t\tparseMovie(url);\n\t\t}\n\t}", "@GetMapping(\"/\")\n public String index(Model model) {\n model.addAttribute(\"URLInfo\", listURLService.findALL());\n return \"index\";\n }", "public void controlIndex(String path)\n { \t \n \t JSONParser parser = new JSONParser();\n \t \n \t try\n \t {\n \t\t JSONArray array = (JSONArray)parser.parse(new FileReader(path));\n \t\t \n \t\t JSONObject jsonObject = new JSONObject();\n \t\t JSONObject metaObj;\n \t\t \n \t\t for(Object obj : array)\n \t\t {\n \t\t\t jsonObject = (JSONObject) obj;\n \t\t\t String p = jsonObject.get(\"p\").toString().replaceAll(\"\\\\\\\\\", \"/\");\n \t\t\t metaObj = (JSONObject) jsonObject.get(\"metadata\");\n \t\t\t \n \t\t\t String title = \"\";\n \t\t\t String description = \"\"; \n \t\t\t if(metaObj.get(\"title\")!=null)\n \t\t\t {\n \t\t\t\t title = metaObj.get(\"title\").toString();\n \t\t\t }\n \t\t\t if(metaObj.get(\"description\")!=null)\n \t\t\t {\n \t\t\t\t description = metaObj.get(\"description\").toString();\n \t\t\t }\n \t\t\t \n \t\t\t String id = p.substring(p.lastIndexOf(\"/\")+1,p.lastIndexOf(\".\"));\n \t\t\t \n \t\t\t performIndex(p,id,title,description);\n \t\t\t performMetaIndex(jsonObject.get(\"metadata\"),id);\n \t\t }\n \t\t fileWriter();\n \t\t }\n \t catch(Exception e)\n \t { \t\n \t\t e.printStackTrace();\n \t }\n }", "public void index(List<Entity> entities) {\n\t\t\n\t}", "public void indexAssets() {\n\t\tString json = null;\n\t\tString assetUrl = minecraftVersion.getAssetIndex().getUrl().toString();\n\t\ttry {\n\t\t\tjson = JsonUtil.loadJSON(assetUrl);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} finally {\n\t\t\tassetsList = (AssetIndex) JsonUtil.getGson().fromJson(json, AssetIndex.class);\n\t\t}\n\t}", "protected void index()\r\n\t{\n\t}", "public void crawlAndIndex(String url) throws Exception {\r\n\t\t// TODO : Add code here\r\n\t\tQueue<String> queue=new LinkedList<>();\r\n\t\tqueue.add(url);\r\n\t\twhile (!queue.isEmpty()){\r\n\t\t\tString currentUrl=queue.poll();\r\n\t\t\tif(internet.getVisited(currentUrl)){\r\n\t\t\t\tcontinue;\r\n\t\t\t}\r\n\t\t\tArrayList<String> urls = parser.getLinks(currentUrl);\r\n\t\t\tArrayList<String> contents = parser.getContent(currentUrl);\r\n\t\t\tupdateWordIndex(contents,currentUrl);\r\n\t\t\tinternet.addVertex(currentUrl);\r\n\t\t\tinternet.setVisited(currentUrl,true);\r\n\t\t\tfor(String u:urls){\r\n\t\t\t\tinternet.addVertex(u);\r\n\t\t\t\tinternet.addEdge(currentUrl,u);\r\n\t\t\t\tqueue.add(u);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t}", "public Result index() {\n\n\t\treturn ok();\n\t}", "@SuppressWarnings(\"unused\")\n public void buildIndex() throws IOException {\n indexWriter = getIndexWriter(indexDir);\n ArrayList <JSONObject> jsonArrayList = parseJSONFiles(JSONdir);\n indexTweets(jsonArrayList, indexWriter);\n indexWriter.close();\n }", "public String index() {\r\n\t\treturn \"index\";\r\n\t}", "public void indexing(String seedPage) {\n webCrawler wbc = new webCrawler();\n webPage wbp = new webPage();\n urlList = wbc.crawl(seedPage);\n for(int i = 0; i < urlList.size(); i++) {\n String url = urlList.get(i);\n try {\n Document doc = wbp.getContent(url);\n finalWords = wbp.getAllWords(url);\n } catch(Exception e) {\n e.printStackTrace();\n }\n }\n }", "@Async\n public void indexAllPublicBlogEntries() {\n try {\n // so as to not use all the ram, i loop through a page at a time and save the blog\n // entries in a batch of 100 at a time to ES\n // since i can't use java 8 on this project, i don't have streams.\n\n final Security sec = securityDao.findByName(\"public\");\n Pageable pageable = PageRequest.of(0, 100);\n\n Page<Entry> entries = entryRepository.findBySecurityOrderByDateDesc(sec, pageable);\n for (int i = 0; i < entries.getTotalPages(); i++) {\n final ArrayList<BlogEntry> items = new ArrayList<>();\n\n for (final Entry entry : entries) {\n items.add(convert(entry));\n }\n\n blogEntryRepository.saveAll(items);\n\n pageable = PageRequest.of(i + 1, 100);\n entries = entryRepository.findBySecurityOrderByDateDesc(sec, pageable);\n }\n } catch (final Exception e) {\n log.error(e.getMessage(), e);\n }\n }", "@Override\n public synchronized void buildIndex(){\n for(SlotData data : slotDataList){\n data.prepareReport();\n }\n }", "private void addNetworkIndexes() {\r\n try {\r\n addIndex(NodeTypes.SITE.getId(), NeoUtils.getLocationIndexProperty(basename));\r\n } catch (IOException e) {\r\n throw (RuntimeException)new RuntimeException().initCause(e);\r\n }\r\n \r\n }", "public void home_index()\n {\n Home.index(homer);\n }", "public Object run() {\n String bn = baseName.endsWith(\"/\")\n ? baseName\n : baseName + \"/\";\n\n // look for prebuilt indices first\n try {\n InputStream s = root.getResourceAsStream(bn + ICU_RESOURCE_INDEX + \".txt\");\n if (s != null) {\n ArrayList lst = new ArrayList();\n BufferedReader br = new BufferedReader(new InputStreamReader(s, \"ASCII\"));\n String line;\n while ((line = br.readLine()) != null) {\n if (line.length() != 0 && !line.startsWith(\"#\")) {\n lst.add(line);\n }\n }\n return lst;\n }\n } catch (IOException e) {\n // swallow it\n }\n\n URL url = root.getResource(bn);\n /*\n URLHandler handler = URLHandler.get(url);\n if (handler != null) {\n final ArrayList lst = new ArrayList();\n URLVisitor v = new URLVisitor() {\n public void visit(String s) {\n if (s.endsWith(\".res\") && !\"res_index.res\".equals(s)) {\n lst.add(s.substring(0, s.length() - 4)); // strip '.res'\n }\n }\n };\n handler.guide(v, false);\n return lst;\n }\n \t*/\n return null;\n }", "public void createIndex(String dataDirPath){\n\t\tFile[] files = new File(dataDirPath).listFiles();\n\n\t\tfor (File file : files) {\n\t\t\tif(!file.isDirectory()\n\t\t\t\t\t&& !file.isHidden()\n\t\t\t\t\t&& file.exists()\n\t\t\t\t\t){\n\t\t\t\t//add to Map\n\t\t\t\t// m.put(file.getAbsolutePath(), new RankModel(file,0,getOutLinks(file.getAbsolutePath())));\n\t\t\t\tallFiles.add(file.getAbsolutePath());\n\t\t\t}else{\n\t\t\t\tcreateIndex(file.getAbsolutePath());\n\t\t\t}\n\t\t}\n\t\t// return writer.numDocs();\n\t}", "public void index() {\n\t\t\n\t\tList<Filme> preferencias = new ArrayList<Filme>();\n\t\tfor( Map.Entry<Key, Integer> entry : session.getUsuario().getPreferencias().entrySet()){\n\t\t\tFilme tmp = filmeDao.getById(entry.getKey());\n\t\t\ttmp.setVotos(entry.getValue());\n\t\t\tpreferencias.add(tmp);\n\t\t}\n\t\t\n\t\t// passando todos os filmes, o usuário e as preferencias dele\n\t\tresult.include(\"filmes\", filmeDao.getAllInOrder() );\n\t\tresult.include(\"usuario\", session.getUsuario() );\n\t\tresult.include(\"preferencias\", preferencias);\n\t}", "public static void invertedIndex(String URL){\n //if the url set already contains this url, it means this url has already been processed, so return\n if(urlSet.contains(URL)){\n return;\n }\n else{\n //first add this unprocessed url to url list\n urlSet.add(URL);\n try{\n //connect this url and get its content\n URL url = new URL(URL);\n URLConnection urlCon = url.openConnection();\n BufferedReader in = new BufferedReader(new InputStreamReader(urlCon.getInputStream()));\n String urlString = \"\";\n String current;\n while((current = in.readLine()) != null)\n {\n urlString += current;\n }\n\n //by filtering the link label to get all the links in this page\n String[] urlList = urlString.split(\"<a href=\\\"\");\n\n //define regex expression to filter script label\n String scriptFilter=\"<script[^>]*?>[\\\\s\\\\S]*?<\\\\/script>\";\n\n //define regex expression to filter style label\n String styleFilter=\"<style[^>]*?>[\\\\s\\\\S]*?<\\\\/style>\";\n\n //define regex expression to filter html label\n String htmlFilter=\"<[^>]+>\";\n\n //filter all the useless labels\n Pattern scriptP=Pattern.compile(scriptFilter,Pattern.CASE_INSENSITIVE);\n Matcher scriptM=scriptP.matcher(urlString);\n urlString=scriptM.replaceAll(\"\");\n\n Pattern styleP=Pattern.compile(styleFilter,Pattern.CASE_INSENSITIVE);\n Matcher styleM=styleP.matcher(urlString);\n urlString=styleM.replaceAll(\"\");\n\n Pattern htmlP=Pattern.compile(htmlFilter,Pattern.CASE_INSENSITIVE);\n Matcher htmlM=htmlP.matcher(urlString);\n urlString=htmlM.replaceAll(\"\");\n\n //transfer content to a word array\n String[] words = urlString.split(\" \");\n for(int i = 0; i < words.length; i++){\n //System.out.println(words[i]);\n //if the hashmap doesn't contain this word, so put this word and its url pair into the hashmap\n if(!index.containsKey(words[i])){\n HashSet<String> str = new HashSet<String>();\n str.add(URL);\n index.put(words[i],str);\n }\n //if the hashmap already contains this word, update its record\n else{\n HashSet<String> str = index.get(words[i]);\n str.add(URL);\n index.put(words[i],str);\n }\n }\n //System.out.println(urlString);\n\n for(int i = 1; i < urlList.length;i++){\n //get each url in this page and transfer it to valid url, after that process each url\n int endpos = urlList[i].indexOf(\"\\\"\");\n String Url = getValidUrl(urlList[i].substring(0, endpos));\n //System.out.println(Url);\n if(Url != null){\n invertedIndex(Url);\n }\n }\n }catch(Exception e){\n System.out.println(\"can't process url : \" + URL);\n }\n }\n }", "@Test\n\tpublic void testIndexData() throws Exception {\n//\t\tJSONObject stamp = new JSONObject();\n//\t\tstamp.put(\"audit_time\", \"2018-09-18 11:41:03\");\n//\t\tstamp.put(\"update_time\", \"2018-09-18 14:09:28\");\n//\t\tMap<String, String> body = new HashMap<>();\n//\t\tbody.put(\"stamp\", stamp.toJSONString());\n//\t\tresult = vliaoIndexService.getAnchors(JsonHelper.toJson(body));\n//\t\tSystem.err.println(JsonHelper.toJson(result));\n\t\t\n//\t\tActionResult result = vliaoIndexService.getAnchors(null);\n//\t\tSystem.err.println(JsonHelper.toJson(result));\n//\t\t\n//\t\tMap<String, String> body = new HashMap<>();\n//\t\tbody.put(\"stamp\", \"2018-09-18 11:41:03\");\n//\t\tresult = vliaoIndexService.getAnchors(JsonHelper.toJson(body));\n//\t\tSystem.err.println(JsonHelper.toJson(result));\n\t\t\n//\t\tActionResult result = vliaoIndexService.getAnchors(null);\n//\t\tSystem.err.println(JsonHelper.toJson(result));\n\t\t\n//\t\tJSONObject stamp = new JSONObject();\n//\t\tstamp.put(\"index\", \"21\");\n//\t\tstamp.put(\"query_time\", \"1537264200840\");\n//\t\tMap<String, String> body = new HashMap<>();\n//\t\tbody.put(\"stamp\", stamp.toJSONString());\n//\t\tActionResult result = vliaoIndexService.getAnchors(JsonHelper.toJson(body));\n//\t\tSystem.err.println(JsonHelper.toJson(result));\n\t\t\n\t\tActionResult result = vliaoIndexService.getAnchors(null);\n\t\tSystem.err.println(JsonHelper.toJson(result));\n\t}", "public void run() {\n\t\t\tString html = \"\";\n\t\t\ttry {\n\t\t\t\thtml = HTTPFetcher.fetchHTML(this.url);\n\t\t\t} catch (UnknownHostException e) {\n\t\t\t\tSystem.out.println(\"Unknown host\");\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.out.println(\"IOException\");\n\t\t\t}\n\t\t\ttry {\n\t\t\t\tif(html != null) {\n\t\t\t\t\tthis.newLinks = LinkParser.listLinks(new URL(this.url), html);\n\t\t\t\t}\n\t\t\t} catch (MalformedURLException e) {\n\t\t\t\tSystem.out.println(\"MalformedURL\");\n\t\t\t}\n\t\t\tif(newLinks != null) {\n\t\t\t\tfor(URL theURL : newLinks) {\n\t\t\t\t\tif(!(urls.contains(theURL))) {\n\t\t\t\t\t\tsynchronized(urls) {\n\t\t\t\t\t\t\turls.add(theURL);\n\t\t\t\t\t\t}\n\t\t\t\t\t\tinnerCrawl(theURL, limit);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tInvertedIndex local = new InvertedIndex();\n\t\t\t\tString no_html = HTMLCleaner.stripHTML(html.toString());\n\t\t\t\tString[] the_words = WordParser.parseWords(no_html);\n\t\t\t\tlocal.addAll(the_words, this.url);\n\t\t\t\tindex.addAll(local);\n\t\t\t}\n\t\t}", "public static void index() {\n\t\tList<models.Todo> todos = models.Todo.findAllSorted();\t\n\t\trender(todos);\n\t}", "public static List<UrlInfo> searchAllUrl() {\n\n //getSynonyms(queryKeywords);\n\n ArrayList<Long> keywordIdList = new ArrayList<Long>();\n ArrayList<Long> finalIdList = new ArrayList<Long>();\n\n String email = Secured.getUser(ctx());\n List<UrlEntry> entryIdList = UrlEntry.find()\n .select(\"entryId\")\n .where()\n .eq(\"email\", email)\n .findList();\n for (UrlEntry entry : entryIdList) {\n finalIdList.add(entry.getEntryId());\n }\n System.out.println(\"finalIdList---\" + finalIdList);\n List<UrlInfo> urlList = UrlInfo.find().select(\"url\").where().in(\"urlEntryId\", finalIdList).findList();\n /*ArrayList<String> urls = new ArrayList<String>();\n for (UrlInfo urlInfo : urlList) {\n urls.add(urlInfo.getUrl());\n }\n System.out.println(\"urls in search----\" + urls);*/\n return urlList;\n }", "public interface Index {\n\t\n\tvoid index(AddOnInfoAndVersions infoAndVersions) throws Exception;\n\t\n\tCollection<AddOnInfoSummary> search(AddOnType type, String query) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getAllByType(AddOnType type) throws Exception;\n\t\n\tCollection<AddOnInfoAndVersions> getByTag(String tag) throws Exception;\n\t\n\tAddOnInfoAndVersions getByUid(String uid) throws Exception;\n}", "@Test\n public void retrievesIndexFromLog() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives().xpath(\"/talk\")\n .push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#2\").up().up()\n .add(\"archive\")\n .add(\"log\").attr(\"id\", \"1\").attr(\"title\", \"title1\")\n .attr(\"index\", \"1\").up()\n .add(\"log\").attr(\"id\", \"2\").attr(\"title\", \"title2\")\n .attr(\"index\", \"2\").up().up()\n .add(\"request\").attr(\"id\", \"a12345\")\n .add(\"author\").set(\"yegor256\").up()\n .add(\"args\").up()\n .add(\"type\").set(\"deploy\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n XhtmlMatchers.hasXPaths(\"/talk/request[@index='3']\")\n );\n }", "int getIndexEndpointsCount();", "@Override\r\n\tpublic void crawl_data() {\n\t\t\r\n\t}", "public CompletionStage<Result> index() {\n return fileService.list()\n .thenApplyAsync(personStream ->\n ok(views.html.index.render(personStream.collect(Collectors.toList()))), ec.current()\n );\n }", "public int addPageIndex(URL url, String urlHash, Date urlModified, int size, plasmaParserDocument document, plasmaCondenser condenser, String language, char doctype, int outlinksSame, int outlinksOther) {\n Iterator i = condenser.words();\r\n Map.Entry wentry;\r\n String word;\r\n indexRWIEntry ientry;\r\n plasmaCondenser.wordStatProp wprop;\r\n String wordHash;\r\n int urlLength = url.toString().length();\r\n int urlComps = htmlFilterContentScraper.urlComps(url.toString()).length;\r\n \r\n while (i.hasNext()) {\r\n wentry = (Map.Entry) i.next();\r\n word = (String) wentry.getKey();\r\n wprop = (plasmaCondenser.wordStatProp) wentry.getValue();\r\n // if ((s.length() > 4) && (c > 1)) System.out.println(\"# \" + s + \":\" + c);\r\n wordHash = plasmaURL.word2hash(word);\r\n ientry = newRWIEntry(urlHash,\r\n urlLength, urlComps, (document == null) ? urlLength : document.getMainLongTitle().length(),\r\n wprop.count,\r\n condenser.RESULT_SIMI_WORDS,\r\n condenser.RESULT_SIMI_SENTENCES,\r\n wprop.posInText,\r\n wprop.posInPhrase,\r\n wprop.numOfPhrase,\r\n 0,\r\n size,\r\n urlModified.getTime(),\r\n System.currentTimeMillis(),\r\n condenser.RESULT_WORD_ENTROPHY,\r\n language,\r\n doctype,\r\n outlinksSame, outlinksOther,\r\n true);\r\n addEntry(wordHash, ientry, System.currentTimeMillis(), false);\r\n }\r\n // System.out.println(\"DEBUG: plasmaSearch.addPageIndex: added \" +\r\n // condenser.getWords().size() + \" words, flushed \" + c + \" entries\");\r\n return condenser.RESULT_SIMI_WORDS;\r\n }", "com.yahoo.xpathproto.TransformTestProtos.ContentImage getImagesByHandler(int index);", "public static Result index() {\n return ok(index.render(byline, maidForm, parkingForm));\n }", "public Map<String, URLValue> loadAllURLs()\n\t{\n\t\tEntityCursor<URLEntity> results = this.env.getEntityStore().getPrimaryIndex(String.class, URLEntity.class).entities();\n\t\tMap<String, URLValue> urls = new HashMap<String, URLValue>();\n\t\tURLValue url;\n\t\tfor (URLEntity entity : results)\n\t\t{\n\t\t\turl = new URLValue(entity.getKey(), entity.getURL(), entity.getUpdatingPeriod());\n\t\t\turls.put(url.getKey(), url);\n\t\t}\n\t\tresults.close();\n\t\treturn urls;\n\t}", "private void createIndexLink()\r\n \t{\r\n \t\tif (pageTitle.contains(\"Ruby on Rails\")) {\r\n \t\t\tSimpleLogger.verbose(\" TOC file: not creating index link (no stichwort.htm*\");\r\n \t\t\treturn;\r\n \t\t}\r\n \t\tSimpleLogger.verbose(\" TOC file: creating index link...\");\r\n \t\tElement indexLink = (Element) xPathQuery(XPath.TOC_HEADING_2.query).get(0).copy();\r\n \t\tString fileExtension = \".htm\";\r\n \t\tif (((Element) indexLink.getChild(0)).getAttribute(\"href\").getValue().contains(\".html\"))\r\n \t\t\tfileExtension = \".html\";\r\n \t\t((Element) indexLink.getChild(0)).getAttribute(\"href\").setValue(\"stichwort\" + fileExtension);\r\n \t\t((Text) indexLink.getChild(0).getChild(0)).setValue(\"Index\");\r\n \t\tbodyTag.appendChild(indexLink);\r\n \r\n \t}", "java.lang.String getHotelImageURLs(int index);", "public void map()\n\t{\n\t // key is the documentId\n\t\t// value is the url\n\t\t//fetch the document using the documentId\n\t\t\n\t}", "public void start(){\n\t\tboolean readFromFile = readFromIndex();\r\n\t\tif (!readFromFile){\t\r\n\t\t\tfor (int i = 0;i<1000;++i){\r\n\t\t\t\tString file = \"../crawler/pages/page\"+i+\".html\";\r\n\t\t\t\taddFile(file);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@Test\n public void storesIndexIfNone() throws Exception {\n final String name = \"talk\";\n final Talks talks = new Talks.InDir();\n talks.create(\"\", name);\n talks.get(name).modify(\n new Directives()\n .xpath(\"/talk\").push().xpath(\"wire\").remove().pop()\n .add(\"wire\").add(\"href\").set(\"#1\").up().up()\n .add(\"request\").attr(\"id\", \"a12345\")\n .add(\"author\").set(\"yegor256\").up()\n .add(\"args\").up()\n .add(\"type\").set(\"deploy\").up()\n );\n new IndexesRequests().execute(talks);\n MatcherAssert.assertThat(\n talks.get(name).read(),\n XhtmlMatchers.hasXPaths(\"/talk/request[@index='1']\")\n );\n }", "@RequestMapping(method = RequestMethod.GET)\n public String index(Model model) {\n return INDEX_TEMPLATE;\n }", "private void indexUpdates(UpdateQueryResult updates) {\r\n Iterator<HashMap<String, String>> i = updates.getIterator();\r\n while (i.hasNext()) {\r\n HashMap<String, String> values = i.next();\r\n \r\n \t// during index default solr fields are indexed separately\r\n \tString articleId = values.get(\"KnowledgeArticleId\");\r\n \tString title = values.get(\"Title\");\r\n \tvalues.remove(\"Title\");\r\n \tString summary = values.get(\"Summary\");\r\n \tvalues.remove(\"Summary\");\r\n \t\r\n \ttry {\r\n \t\tif (UtilityLib.notEmpty(articleId) && UtilityLib.notEmpty(title)) {\r\n \t\t\t// index sObject\r\n \t\t\t// default fields every index must have\r\n \t\t\tStringBuilder sb = new StringBuilder();\r\n \t\t\tContent c = new Content();\r\n \t\t\tc.setKey(articleId);\r\n \t\t\tsb.setLength(0);\r\n \t\t\tsb.append(summary);\r\n \t\t\tc.setData(sb.toString().getBytes());\r\n \t\t\tc.addMetadata(\"Content-Type\", \"text/html\");\r\n \t\t\tc.addMetadata(\"title\", title);\r\n \t\t\t\r\n \t\t\tLOG.debug(\"Salesforce Crawler: Indexing articleId=\"+articleId+\" title=\"+title+\" summary=\"+summary);\r\n \t\t\t\r\n \t\t\t// index articleType specific fields\r\n \t\t\tfor (Entry<String, String> entry : values.entrySet()) {\r\n \t\t\t\tc.addMetadata(entry.getKey(), entry.getValue().toString());\r\n \t\t\t\tif (!entry.getKey().equals(\"Attachment__Body__s\")) {\r\n \t\t\t\t\tLOG.debug(\"Salesforce Crawler: Indexing field key=\"+entry.getKey()+\" value=\"+entry.getValue().toString());\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t\tstate.getProcessor().process(c);\r\n \t\t}\r\n } catch (Exception e) {\r\n \tUtilityLib.errorException(LOG, e);\r\n \tstate.getStatus().incrementCounter(Counter.Failed);\r\n }\r\n }\r\n }", "public void index(List<ParsedDocument> pdocs,int qid) {\n\t\ttry {\n\t\t\tint count = iw.maxDoc()+1;\n\t\t\tDocument doc = null;\n\t\t\tIndexDocument iDoc=null;\n\t\t\tfor (ParsedDocument pdoc : pdocs) {\n\t\t\t\t\n\t\t\t\tiDoc=parseDocument(pdoc);\n\t\t\t\tif(iDoc==null){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tField queryField = new Field(\"qid\", qid+\"\", Store.YES,\n\t\t\t\t\t\tIndex.NOT_ANALYZED);\n\t\t\t\tField uniqueField = new Field(\"id\", count + \"\", Store.YES,\n\t\t\t\t\t\tIndex.NOT_ANALYZED);\n\t\t\t\tField titleField = new Field(\"title\", iDoc.getTitle(),\n\t\t\t\t\t\tStore.YES, Index.ANALYZED, TermVector.YES);\n\t\t\t\tField bodyField = new Field(\"body\", iDoc.getBody(), Store.YES,\n\t\t\t\t\t\tIndex.ANALYZED, TermVector.YES);\n\t\t\t\tField urlField = new Field(\"url\", iDoc.getUrl(), Store.YES,\n\t\t\t\t\t\tIndex.NOT_ANALYZED);\n\t\t\t\tField anchorField = new Field(\"anchor\", iDoc.getAnchor(), Store.YES,\n\t\t\t\t\t\tIndex.ANALYZED, TermVector.YES);\n\n\t\t\t\tdoc = new Document();\n\t\t\t\tdoc.add(uniqueField);//标示不同的document\n\t\t\t\tdoc.add(queryField);//标示不同的query\n\t\t\t\tdoc.add(titleField);\n\t\t\t\tdoc.add(bodyField);\n\t\t\t\tdoc.add(urlField);\n\t\t\t\tdoc.add(anchorField);\n\t\t\t\t\n\t\t\t\tiw.addDocument(doc);\n\t\t\t\tcount++;\n\t\t\t}\n\t\t\tiw.commit();\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public DatasetIndex(Dataset data){\n\t\tthis();\n\t\tfor(Iterator<Example> i=data.iterator();i.hasNext();){\n\t\t\taddExample(i.next());\n\t\t}\n\t}", "private boolean hasIndexLink()\r\n \t{\r\n \t\treturn xPathQuery(XPath.INDEX_LINK.query).size() > 0;\r\n \t}", "@RequestMapping(value=\"/indexManager.go\", method={RequestMethod.GET})\r\n public String indexShow(HttpServletRequest req) {\r\n \r\n int n = service.guestcount();\r\n req.setAttribute(\"n\", n);\r\n \r\n int t = service.hostcount();\r\n req.setAttribute(\"t\", t);\r\n \r\n RowBounds rowBounds = new RowBounds(0, 3); \r\n \r\n List<HashMap<String, Object>> indexguestqnaList = service.Showindexguestqna(rowBounds); \r\n List<HashMap<String, Object>> indexhostqnaList = service.Showindexhostqna(rowBounds);\r\n List<HashMap<String, Object>> indexnoticeList = service.Showindexnotice(rowBounds);\r\n \r\n // 인덱스 페이지에 나타내기 위해서 년도를 받아오자\r\n GregorianCalendar today = new GregorianCalendar(); \r\n int year = today.get(today.YEAR);\r\n \r\n // 인덱스 페이지에 그래프 뽑아오기\r\n String Graphyear = req.getParameter(\"year\");\r\n // System.out.println(\"year : \" + Graphyear);\r\n \r\n // 인덱스 해당 년의 총 수입 뽑아오기\r\n HashMap<String, String> map = new HashMap<String, String>();\r\n map.put(\"Graphyear\", Graphyear);\r\n \r\n int totalincome = service.totalincome(map);\r\n \r\n // 오늘 접속자 수 구하기\r\n int jintianCount = service.jintianCount();\r\n \r\n // 지구본에 들어갈 Q&A 가져오기\r\n List<HashMap<String, Object>> LingqnaList = service.ShowqnaList(); \r\n \r\n // 알람 누르지 않은 갯수 구하기\r\n int LingCount = service.LingCount();\r\n \r\n req.setAttribute(\"indexguestqnaList\", indexguestqnaList); \r\n req.setAttribute(\"indexhostqnaList\", indexhostqnaList);\r\n req.setAttribute(\"indexnoticeList\", indexnoticeList);\r\n req.setAttribute(\"year\", year);\r\n req.setAttribute(\"Graphyear\", Graphyear);\r\n req.setAttribute(\"totalincome\", totalincome);\r\n req.setAttribute(\"jintianCount\", jintianCount);\r\n req.setAttribute(\"LingqnaList\", LingqnaList);\r\n req.setAttribute(\"LingCount\", LingCount);\r\n \r\n return \"Manager/index.tilesM\";\r\n }", "public abstract void updateIndex();", "public Result index() {\n try {\n List<LibraryItem> libraryItems = libraryManager.getLibraryItems();\n return ok(index.render(libraryItems));\n } catch (Exception e) {\n return notAcceptable(e.getMessage());\n }\n }", "@Override\r\n\tpublic String index() {\n\t\treturn \"服务器维护中。。。。\";\r\n\t}", "default int getIndex() {\n return meta(\"nlpcraft:nlp:index\");\n }", "public Indexer crawl() \n\t{\n\t\t// This redirection may effect performance, but its OK !!\n\t\tSystem.out.println(\"Crawling: \"+u.toString());\n\t\treturn crawl(crawlLimitDefault);\n\t}", "public void run() {\n System.out.println(\"Running Indexing\");\n Indexer.index();\n }", "public interface IIndexDataInfo {\n Index_DataInfo getDataInfo();// 获取首页的整体对象\n List<Index_DataInfo.InfoBean.FocusBean> getFocusDataFromServer();// 首页图片轮播\n List<Index_DataInfo.InfoBean.BannerBean> getBannerDataFromServer();// 首页轮播下选项\n}", "@Path(\"/index\")\n public void index(){\n }", "StorableIndexInfo getIndexInfo();", "private void setUsefulURLsInfo () {\n infoList = new ArrayList<> ();\n\n\n // item number 1\n\n Info info = new Info ();// this class will help us to save data easily !\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Autism.com\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this website has will help you identify the level of Autism of a patient ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://stackoverflow.com/\");\n\n infoList.add (info); //adding item 1 to list\n\n\n // item number 2\n info = new Info ();// save the second Url\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"We Can help solve Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this website has will help patient of Autism to get better by communicate with experts ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://www.androidauthority.com/\");\n\n infoList.add (info);//adding item number 2 to list\n\n\n // item 3\n info = new Info ();// save the third Url\n //set the title >> it can be website name or Topic title ...\n info.setInfoTitle (\"Say no for Autism\");\n\n //set the description of the Topic or the website ....\n info.setInfoDescription (\"this an article about patient of Autism and how to help them get better ...\");\n\n // we can add the url >>\n info.setInfoPageURL (\"https://developer.android.com/index.html\");\n infoList.add (info);// adding item 3 to list\n\n\n displayInfo (infoList);\n\n }", "public void onIndexUpdate();", "private Reindex() {}", "private Reindex() {}", "public Result index() {\n Logger.info(\"render top page\");\n return ok(index.render());\n }", "@Async\n public void indexAllBlogEntries() {\n try {\n Pageable pageable = PageRequest.of(0, 100);\n\n Page<Entry> entries = entryRepository.findAll(pageable);\n for (int i = 0; i < entries.getTotalPages(); i++) {\n final ArrayList<BlogEntry> items = new ArrayList<>();\n\n for (final Entry entry : entries) {\n items.add(convert(entry));\n }\n\n blogEntryRepository.saveAll(items);\n\n pageable = PageRequest.of(i + 1, 100);\n entries = entryRepository.findAll(pageable);\n }\n } catch (final Exception e) {\n log.error(e.getMessage());\n }\n }", "public void saveAll(){\n // Store postings\n for (Map.Entry<String, PostingsList> entry : this.index.entrySet()) {\n saveJSON(\"postings/t\"+hash(entry.getKey())+\".json\", entry.getValue());\n System.err.println(\"postings/t\"+hash(entry.getKey())+\".json\");\n count++;\n if (count%1000==0)\n System.err.println(\"storing \"+ count);\n }\n // Store mapping ID<->document names mapping\n this.saveJSON(\"postings/docIDs.json\", this.docIDs);\n this.saveJSON(\"postings/docLengths.json\", this.docLengths);\n }", "public static void main(String[] args) {\n\t\tIndexActionTest indexActionTest = new IndexActionTest();\n\t\tUserAccAuth userAccAuth = new UserAccAuth();\n\t\tUserAccAuth userAccAuth1 = new UserAccAuth();\n\t\tuserAccAuth1.setMarketType(1);\n\t\tuserAccAuth1.setAccountId(100004);\n\t\tuserAccAuth.setAccountId(100002);\n\t\tuserAccAuth.setBrokerId(\"PNZQ\");\n\t\tuserAccAuth1.setBrokerId(\"ITN_CJZQ\");\n\t\tuserAccAuth1.setDef(true);\n\t\tList<UserAccAuth> l = new ArrayList<UserAccAuth>();\n\t\tl.add(userAccAuth1);\n\t\tl.add(userAccAuth);\n\n\t\tString s = indexActionTest.reUrl(l);\n\t\tSystem.out.println(s);\n\t}", "public indexing() {\n initComponents();\n }", "public static void main(String[] args){\n invertedIndex(\"http://www.chenshiyu.com\");\n System.out.println(\"***************************************************\");\n search(\"Archives\");\n }", "public List<Index> getIndexes();", "@Override\n\tpublic void process(Page page) {\n\t\tDocument doc = Jsoup.parse(page.getHtml().getFirstSourceText());\n\n\t\tif (isFirst) {\n\t\t\tSystem.out.println(\"添加所有列表链接\");\n\t\t\tArrayList<String> urls = new ArrayList<String>();\n\t\t\t// 33\n\t\t\tfor (int i = 2; i < 30; i++) {\n\t\t\t\turls.add(\"http://zyjy.jiangmen.gov.cn//szqjszbgg/index_\" + i + \".htm\");\n\t\t\t}\n\t\t\tpage.addTargetRequests(urls);\n\t\t\tSystem.out.println(\"这一页一共有 \" + urls.size() + \" 条数据\");\n\n\t\t\tisFirst = false;\n\t\t}\n\n\t\tif (page.getUrl().regex(URL_LIST).match() || page.getUrl().toString().trim().equals(url)) {\n\t\t\tSystem.out.println(\"获取列表数据\");\n\n\t\t\tElements uls = doc.getElementsByAttributeValue(\"class\", \"c1-bline\");\n\t\t\tfor (Element ul : uls) {\n\t\t\t\tString url = ul.getElementsByAttributeValue(\"class\", \"f-left\").get(0).select(\"a\").attr(\"href\").trim();\n\t\t\t\tString title = ul.getElementsByAttributeValue(\"class\", \"f-left\").get(0).text();\n\t\t\t\tString data = ul.getElementsByAttributeValue(\"class\", \"f-right\").get(0).text();\n\t\t\t\tCacheHashMap.cache.put(url, title + \"###\" + data);\n\t\t\t\tMyUtils.addRequestToPage(page, url);\n\t\t\t\tSystem.out.println(url + \" \" + CacheHashMap.cache.get(url));\n\t\t\t}\n\n\t\t}\n\t\tif (page.getUrl().regex(URL_DETAILS).match()) {\n\n\t\t\tProject project = new Project();\n\t\t\tStringBuffer project_article = new StringBuffer();\n\n\t\t\tString urldetails = CacheHashMap.cache.get(page.getUrl().toString().trim());\n\t\t\tSystem.out.println(\"url\" + page.getUrl().toString().trim());\n\t\t\tSystem.out.println(\"urldetails \" + urldetails);\n\n\t\t\tString[] value = urldetails.split(\"###\");\n\t\t\tif (value != null && value.length > 1) {\n\t\t\t\tproject.setProjectName(value[0]);\n\t\t\t\tproject.setPublicStart(value[1]);\n\t\t\t}\n\n\t\t\tElements divs = doc.getElementsByAttributeValue(\"class\", \"contlist minheight\");\n\t\t\tfor (Element div : divs.get(0).children()) {\n\t\t\t\tif (div.nodeName().equals(\"table\")) {\n\t\t\t\t\tElements trs = divs.select(\"tbody\").select(\"tr\");\n\t\t\t\t\tfor (Element tr : trs) {\n\t\t\t\t\t\tproject_article.append(tr.text()).append(\"\\n\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tproject_article.append(div.text()).append(\"\\n\");\n\n\t\t\t\t}\n\t\t\t}\n\t\t\tproject.setUrl(page.getUrl().toString().trim());\n\t\t\tproject.setState(0);\n\t\t\tproject.setWebsiteType(\"江门市\");\n\t\t\tproject.setTime(MyUtils.getcurentTime());\n\t\t\tproject.setRawHtml(divs.toString());\n\n\t\t\tproject.setArticle(project_article.toString());\n\t\t\tSystem.out.println(project);\n\n\t\t\tHibernateUtil.save2Hibernate(project);\n\n\t\t}\n\n\t}", "void index() {\n for (Binding<?> binding : bindings.values()) {\n index(binding);\n }\n }", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"Scan Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "@Scheduled(fixedRate = 5000)\n public void refreshAllIndex() {\n\n HashMap<String, String> dictlist = new HashMap<>();\n\n //get the file list\n try {\n dictlist = FileUtil.subFolderList(fieryConfig.getIndexpath());\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n //load all index if not contain on folder\n for (Map.Entry<String, String> e : dictlist.entrySet()) {\n String foldername = e.getKey();\n String folderpath = e.getValue();\n if (!readerList.containsKey(foldername)) {\n log.info(\"start load index foldername:\" + foldername + \" abspath:\" + folderpath);\n //open index\n boolean ret = this.openIndex(foldername, folderpath);\n\n //warning this may cause bug\n //loaded fail? clean it\n if (!ret) {\n FileUtil.deleteDir(folderpath);\n }\n }\n }\n\n\n /////////////////////\n // recycle expire index\n /////////////////////\n for (Map.Entry<String, DirectoryReader> e : readerList.entrySet()) {\n String dbname = e.getKey();\n\n try {\n Long dbtime = Long.parseLong(dbname);\n\n if (dbtime < DateTimeHepler.getBeforDay(fieryConfig.getKeepdataday())) {\n //closed all\n if (analyzerList.containsKey(dbname)) {\n analyzerList.get(dbname).close();\n analyzerList.remove(dbname);\n }\n if (directorList.containsKey(dbname)) {\n directorList.get(dbname).close();\n directorList.remove(dbname);\n }\n if (readerList.containsKey(dbname)) {\n readerList.get(dbname).close();\n readerList.remove(dbname);\n }\n\n //remove the folder\n FileUtil.deleteDir(fieryConfig.getIndexpath() + \"/\" + dbname);\n }\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }\n\n\n /////////////////////\n // refresh already loaded index\n /////////////////////\n for (Map.Entry<String, DirectoryReader> e : readerList.entrySet()) {\n\n String dbname = e.getKey();\n DirectoryReader diskReader = e.getValue();\n\n try {\n Date start = new Date();\n\n DirectoryReader tmp = DirectoryReader.openIfChanged(diskReader);\n if (tmp != null) {\n diskReader.close();\n diskReader = tmp;\n readerList.put(dbname, diskReader);\n Date end = new Date();\n log.info(\"Reload Index:\" + dbname + \" cost:\" + (end.getTime() - start.getTime()) + \" totalcount:\" + diskReader.numDocs());\n }\n\n } catch (Exception exx) {\n exx.printStackTrace();\n log.error(exx.getMessage());\n }\n }\n /////////////////////\n //refresh the all in one searcher\n /////////////////////\n\n this.reloadSearch();\n\n }", "public interface Indexed {\n\n /**\n * index keyword and resource\n * @param resourceId keyword KAD id\n * @param entry published entry with keyword information\n * @param lastActivityTime current time from external system\n * @return percent of taken place in storage\n */\n int addKeyword(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n\n /**\n *\n * @param resourceId file KAD id\n * @param entry published entry with source information\n * @return true if source was indexed\n */\n int addSource(final KadId resourceId, final KadSearchEntry entry, long lastActivityTime);\n}", "@Override\n public void setupIndex() {\n List lst = DBClient.getList(\"SELECT a FROM AppMenu a WHERE a.moduleName='MyBranchMemberExt'\");\n if (lst!=null && !lst.isEmpty()) {\n return;\n }\n AppMenu.createAppMenuObj(\"MyBranchMemberExt\", \"Main\", \"Branch Member\", 110).save();\n AppMenu.createAppMenuObj(\"MyCenterMemberExt\", \"Main\", \"Center Member\", 120).save();\n AppMenu.createAppMenuObj(\"SearchAllMembersOnlyExt\", \"Main\", \"Search Member\", 130).save();\n AppMenu.createAppMenuObj(\"ReferenceForm\", \"Reference\", \"Reference\", 200).save();\n runUniqueIndex(8, \"firstName\", \"lastName\");\n }", "@Scheduled(fixedRate = checkRate - 1000) // Un minuto menos\n public void getUrls() {\n urlList = shortURLRepository.listAll();\n }", "public List<SoupIndex> getIndexes() {\n return indexes;\n }", "public void index() {\n Integer pageNum = getParaToInt(\"pageNum\");\n Boolean includeContent = getParaToBoolean(\"includeContent\", false);\n\n if (pageNum == null) {\n mResult.fail(102);\n renderJson(mResult);\n return;\n }\n Page<Blog> blogAbstracts;\n if (!includeContent) {\n blogAbstracts = mBlogService.queryWithoutContent(pageNum);\n } else {\n blogAbstracts = mBlogService.queryAll(pageNum);\n }\n\n if (blogAbstracts.getList().size() == 0) {\n mResult.fail(107);\n } else {\n mResult.success(blogAbstracts.getList());\n }\n renderJson(mResult);\n }", "public abstract void selectAllIndexes();", "private static void createIndex() {\n XML_Shell workFile = new XML_Shell();\n String messageFromServer = ClientService.getLastMessageFromServer();\n\n try {\n XML_Manager.stringToDom(messageFromServer, workFile);\n } catch (SAXException | ParserConfigurationException | IOException | TransformerException e) {\n e.printStackTrace();\n }\n\n }", "public int getIndex() {\n return _siteIndex;\n }", "@Override\r\n\tprotected void indexDocument(PluginServiceCallbacks callbacks, JSONResponse jsonResults, HttpServletRequest request,\r\n\t\t\tIndexing indexing) throws Exception {\n\t\t\r\n\t}", "private void readIndex() throws IOException {\n\t\t\tif (this.keys != null)\n\t\t\t\treturn;\n\t\t\tkeys = new HashMap<K, Long>(1024);\n\t\t\ttry {\n\t\t\t\twhile (index.hasNext()) {\n\t\t\t\t\tPair<K, Long> pair;// = new Pair<K, Long>(index.getSchema());\n\t\t\t\t\tpair = index.next();\n\t\t\t\t\tkeys.put(pair.key(), pair.value());\n\t\t\t\t\tif (firstKey == null)\n\t\t\t\t\t\tfirstKey = pair.key();\n\t\t\t\t\tfinalKey = pair.key();\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\n\t\t\t}finally {\n\t\t\t\tindexClosed = true;\n\t\t\t\tindex.close();\n\t\t\t}\n\t\t}", "public void searchIndex(Directory index) throws Exception{\n\t\tString searchString = getSearchString();\n\t\t\n\t\tSystem.out.println(\"Searching for '\" + searchString + \"'\");\n\n\t\tIndexReader indexReader = DirectoryReader.open(index);\n\t\tIndexSearcher indexSearcher = new IndexSearcher(indexReader);\n\n\t\tAnalyzer analyzer = new StandardAnalyzer();\n\t\t\n\t\tString query_string = \"title:\" + searchString + \" OR content:\" + searchString + \"OR important:\" + searchString + \"OR h1:\" + searchString +\n\t\t\t\t\"OR h2:\" + searchString + \"OR h3:\" + searchString + \"OR h4:\" + searchString + \"OR h5:\" + searchString + \"OR h6:\" + searchString;\n\t\tQueryParser queryParser = new QueryParser(\"title\", analyzer);\n\t\t\n\t\tTopDocs docs = indexSearcher.search(queryParser.parse(query_string), 10);\n\t\t\n\t\t\n//\t\tString[] fields = {\"content\", \"title\", \"important\", \"h1\", \"h2\", \"h3\", \"h4\", \"h5\", \"h6\"};\n//\t\tBooleanClause.Occur[] flags = \n//\t\t{\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n//\t\t\tBooleanClause.Occur.SHOULD,\n// };\n//\t\t\n//\t\tTopDocs docs = indexSearcher.search(MultiFieldQueryParser.parse(searchString, fields, flags, analyzer), 10);\n\n\t\tScoreDoc[] hits = docs.scoreDocs;\n\n\t System.out.println(\"Found \" + hits.length + \" hits.\");\n\t for(int i=0;i<hits.length;++i) {\n\t \tint docId = hits[i].doc;\n\t Document d = indexSearcher.doc(docId);\n\t System.out.println((i + 1) + \". \" + d.get(\"title\") + \"\\t\" + d.get(\"url\") + \"\\t\" + hits[i].score);\n\t }\n\t}", "public generateIndex() {\n\n\t\tthis.analyzer = \"StandardAnalyzer\";\n\t}", "private BrowseIndex() {\n }", "public Result index() {\n return ok(views.html.index.render());\n }", "public Result index() {\n return ok(views.html.index.render());\n }", "public Result index() {\n return ok(views.html.index.render());\n }", "phaseI.Hdfs.DataNodeLocation getLocations(int index);", "public int getListCount() { return this.urlSeries.size(); }", "void initiateIndexing(HarvestResultDTO harvestResult) throws DigitalAssetStoreException;", "@RequestMapping(\"/\")\n public String indexPage(Model model) {\n List<Track> list = trackDao.getAllTracks();\n model.addAttribute(\"tracks\", list);\n return \"index\";\n }", "@Override\n\tpublic Map<String, String> parseIndex(String xhtml) throws BatchException {\n\t\treturn null;\n\t}", "private List<Woacrawledurl> readCrawledUrls()\n\t{\n\t\tString hql = \"from Woacrawledurl where instanceId=\"\n\t\t\t\t+ this.param.instance.getTaskinstanceId() + \"order by id\";\n\t\tSessionFactory sessionFactory = TaskFactory.getSessionFactory(this.param.dbid);\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\tTransaction t = session.beginTransaction();\n\t\tQuery q = session.createQuery(hql);\n\t\tList<Woacrawledurl> list = q.list();\n\t\tt.commit();\n\t\treturn list;\n\t}", "public Result index() {\n\t\treturn ok(views.html.index.render());\n\t}", "public Action getIndexApiAction() {\n Thing object = new Thing.Builder()\n .setName(\"ListTest Page\") // TODO: Define a title for the content shown.\n // TODO: Make sure this auto-generated URL is correct.\n .setUrl(Uri.parse(\"http://[ENTER-YOUR-URL-HERE]\"))\n .build();\n return new Action.Builder(Action.TYPE_VIEW)\n .setObject(object)\n .setActionStatus(Action.STATUS_TYPE_COMPLETED)\n .build();\n }", "private RequestResponse handleIndexRequest(Request request, Response response) throws ServiceException {\n response.type(\"application/json\");\n\n String core = request.params(\":core\");\n if (StringUtils.isEmpty(core)) {\n throw new ServiceException(\"Failed to provide an index core for the document\");\n }\n\n ContentDocument contentDocument = new RequestToContentDocument().convert(request);\n return this.searchService.index(core, contentDocument);\n }", "@Override\n\tpublic void indexObject(List<ModelKey> list) throws ASException {\n\t\t\n\t}", "private void listAllIndices(Client client){\n\t\t\ttry {\n\t\t\t\t String[] indexList = client.admin().cluster().prepareState().execute().actionGet().getState().getMetaData().concreteAllIndices();\n\t\t\t\t System.out.println(\"Index List Size size : \" + indexList.length);\n\t\t\t\t for (String index : indexList) {\n\t\t\t\t\t System.out.println(\"Index Name \" + index);\n\t\t\t\t\t deleteIndex(client,index);\n\t\t\t }\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t }", "public void testIndexCosts() {\n this.classHandler.applyIndexes();\n }", "public interface IndexRegistry\n{\n void registerIndex(Index index);\n void unregisterIndex(Index index);\n\n Index getIndex(IndexMetadata indexMetadata);\n Collection<Index> listIndexes();\n}", "@RequestMapping(\"/\")\n public String index(final Model model) {\n return \"index\";\n }", "public IndexFile(String url) throws IOException {\n\n /*\n * creates raf\n */\n raf = new RandomAccessFile(url + _shx, \"r\");\n\n /*\n * construct Header as ShapeFileHeader\n */\n fh = new FileHeader(raf);\n\n fileMBR = fh.getFileMBR();\n\n /*\n * construct indexArray\n */\n setIndexArray();\n\n }", "protected void readIndexHead(byte[] head) {\n \t\tByteArray ba = new ByteArray(head, ByteArray.READ);\n \t\tIDLookups = new ArrayList<IDLookup>();\n \t\ttry {\n \t\t\tlastPageID = ba.readInt();\n \t\t\tba.readInt();\n \t\t\tba.readInt();\n \t\t\tint numMovies = ba.readInt();\n \t\t\tScanner sc = new Scanner(new File(inputFilename + \"_index\"));\n \t\t\tfor(int currentMovie = 0; currentMovie < numMovies; currentMovie++)\n \t\t\t\tIDLookups.add(new IDLookup(sc.nextInt(), sc.nextInt()));\n \t\t\t/* for(IDLookup l : IDLookups)\n \t\t\t\tSystem.out.println(\"read \" + l.MovieID + \" page \" + l.PageID); */\n \t\t\tsc.close();\n \t\t} catch (IOException e) { System.err.println(\"IOException in readIndexHead: \" + inputFilename); }\n \t\tCollections.sort(IDLookups); /* theoretically unnecessary if we load the movies in ID order but I'm not chancing an error here */\n \t}" ]
[ "0.67536575", "0.645567", "0.6316255", "0.62153876", "0.6090974", "0.6052649", "0.59196794", "0.5862008", "0.5841812", "0.5819607", "0.5818394", "0.58166546", "0.58113056", "0.58023185", "0.5792399", "0.5774651", "0.5770424", "0.57616806", "0.57606345", "0.5745416", "0.57267445", "0.56508666", "0.56282103", "0.5627037", "0.56154233", "0.56038356", "0.5560005", "0.5552367", "0.5551154", "0.5524969", "0.55228907", "0.5521162", "0.5512603", "0.5502992", "0.5488384", "0.5448398", "0.5430931", "0.54289675", "0.54113257", "0.5410144", "0.5406034", "0.5404237", "0.53890663", "0.5382794", "0.5370763", "0.5364182", "0.5358595", "0.5356487", "0.5341481", "0.5341432", "0.5336416", "0.5330153", "0.5319859", "0.52943134", "0.5285592", "0.5280658", "0.5280658", "0.5277617", "0.52648526", "0.52643985", "0.5263652", "0.5261438", "0.5249665", "0.5247421", "0.52409947", "0.52378273", "0.5236322", "0.52342665", "0.523126", "0.5210888", "0.52101356", "0.520378", "0.5197992", "0.51971275", "0.5183751", "0.5183634", "0.517877", "0.51729536", "0.51717585", "0.51648223", "0.5151734", "0.5148364", "0.5148364", "0.5148364", "0.51468086", "0.5146172", "0.51442856", "0.51442784", "0.51381123", "0.5137625", "0.5132651", "0.51320976", "0.51303416", "0.5120833", "0.5120463", "0.51198834", "0.5110907", "0.51074034", "0.5100543", "0.5097863" ]
0.7037817
0
Should not have restarted activity
@Override public void verifyNewCode(@NonNull InstantRunClient client, @NonNull Logcat logcat, @NonNull IDevice device) throws Exception { assertThat(logcat).doesNotContainMessageWithText(ORIGINAL_MESSAGE); assertThat(logcat).doesNotContainMessageWithText(HOTSWAP_MESSAGE); client.restartActivity(device); logcat.listenForMessage(HOTSWAP_MESSAGE).await(); assertThat(logcat).doesNotContainMessageWithText(ORIGINAL_MESSAGE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t\tLog.d(TAG, \"onRestart() - ThreeActivity - перезапуск Activity\");\n\t}", "@Override\n public void needReloain(Activity activity) {\n }", "@Override\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t\tLog.d(\"RituNavi\", \"MainTestActivity onRestart\");\n\t}", "@Override\n protected void onRestart() {\n super.onRestart();\n }", "@Override\n protected void onRestart() {\n super.onRestart();\n }", "@Override\n \tprotected void onRestart() {\n \t\tsuper.onRestart();\n \t\tLog.d(TAG, \"onRestart\");\n \t}", "@Override\r\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\r\n\t}", "@Override\r\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\r\n\t}", "@Override\r\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\r\n\t}", "@Override\n protected void onRestart() {\n super.onRestart();\n\n }", "@Override\n \tprotected void onRestart() {\n \t\tsuper.onRestart();\n \t}", "@Override\n public void onRestart() {\n super.onRestart();\n Log.d(Constants.ERROR_TAG_ACTIVITY_ONE, Constants.ON_RESTART);\n }", "@Override\r\n protected void onRestart() {\n\tsuper.onRestart();\r\n }", "protected void onRestart ()\n\t{\n\t\tsuper.onRestart ();\n\t}", "@Override\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t}", "@Override\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t}", "@Override\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t}", "@Override\n public void restart() {\n }", "private void onRestart() {\n new Handler().post(new Runnable() {\n\n @Override\n public void run()\n {\n Intent intent = getActivity().getIntent();\n intent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK\n | Intent.FLAG_ACTIVITY_NO_ANIMATION);\n getActivity().overridePendingTransition(0, 0);\n getActivity().finish();\n\n getActivity().overridePendingTransition(0, 0);\n startActivity(intent);\n }\n });\n }", "@Override\n\t\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t\tToast.makeText(getApplicationContext(), \"onRestart\", Toast.LENGTH_SHORT).show();\n\n\t\t}", "@Override\n protected void onRestart(){\n super.onRestart();\n Log.d(TAG_INFO,\"application restarted\");\n }", "@Override\n protected void onRestart(){\n super.onRestart();\n Log.d(TAG_INFO,\"application restarted\");\n }", "@Override\n protected void onRestart() {\n super.onRestart();\n Intent returnIntent = new Intent();\n setResult(RESULT_CANCELED, returnIntent);\n onRestart = true;\n finish();\n }", "@Override\n protected void onRestart() {\n super.onRestart();\n Log.v(TAG, \"Invoked onRestart()\");\n\n }", "@Override\n protected void onRestart() {\n super.onRestart();\n xHelper.log(\"goapp\",\"BoardActivity onRestart\");\n }", "@Override\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t\tLog.v(\"tag\",\"onRestart\" );\n\t}", "@Override\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t\tLog.v(TAG, \" onRestart()\");\n\t}", "@Override\r\n\tprotected void onRestart() {\n\t\tXSDK.getInstance().onRestart();\r\n\t\tsuper.onRestart();\r\n\t}", "@Override\n\tpublic void restart() {\n\t\t\n\t}", "@Override\n\tprotected void onRestart() {\n\t\t// TODO Auto-generated method stub\n\t\tsuper.onRestart();\n\t\tLog.e(\"mainactivity\", \"restarted\");\n\t}", "@Override\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t\tMCommerceApp mApp = (MCommerceApp) getApplication();\n\t\tif (mApp.isContinueShopping() == true) {\n\t\t\tmApp.setContinueShopping(false);\n\t\t\tfinish();\n\t\t}\n\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n justAfterPause = false;\n }", "public void restart() {\r\n\t\tthis.cancel = false;\r\n\t}", "public abstract void performRestartActivity(IBinder token, boolean start);", "public void restart();", "private void restartApplication() {\n android.os.Process.killProcess(android.os.Process.myPid());\r\n System.exit(0);\r\n }", "@Override\n protected void onRestart() {\n super.onRestart();\n recreate();\n }", "public void onRestart() {\r\n\t\tLog.w(LOG_TAG, \"Simple iMeeting base view = \" + this\r\n\t\t\t\t+ \" onRestart method not implement\");\r\n\t}", "protected void restart()\r\n \t{\r\n \t\tspielen();\r\n \t}", "public void retry(){\n _activity.finish();\n Intent i = _activity.getBaseContext().getPackageManager()\n .getLaunchIntentForPackage(_activity.getBaseContext().getPackageName());\n i.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n _activity.startActivity(i);\n }", "@Override\n\tprotected void onStart() {\n\t\tsuper.onRestart();\n\t}", "public void restart() {\r\n\t\tstart();\r\n\t}", "@Override\n protected void onRestart() {\n\n super.onRestart();\n\n // Shows a toast message (a pop-up message)\n Toast toast = Toast.makeText(getBaseContext(), \"FirstActivity.onRestart()\", Toast.LENGTH_SHORT);\n toast.show();\n }", "private void checkIfForceKill() {\n SharedPreferences settings = PreferenceManager\n .getDefaultSharedPreferences(this);\n boolean forceKill = settings.getBoolean(\n FORCE_EXIT_APPLICATION, false);\n\n if (forceKill) {\n //CLEAR THE FORCE_EXIT SETTINGS\n SharedPreferences.Editor editor = settings.edit();\n editor.putBoolean(FORCE_EXIT_APPLICATION, false);\n // Commit the edits!\n editor.apply();\n //HERE STOP ALL YOUR SERVICES\n finish();\n }\n }", "@Override\n protected void onResume() {\n super.onResume();\n if (is_resume) {\n is_resume = false;\n } else {\n Music.restart(mContext);\n }\n }", "@Override\r\n\tpublic boolean reActivateIt() {\n\t\treturn false;\r\n\t}", "@Override\n public boolean activityResuming(String pkg) throws RemoteException {\n Log.i(TAG, String.format(\"Resuming activity in package %s\", pkg));\n return true;\n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t\trunActivity = 0;\r\n\t}", "protected void noActiveActivity() {\n\t\tLog.i(STARTUP, \"no active activity\");\n\t\tcancelNotification();\n\t\tcreateNotification();\n\t\tstartMainService();\t\t\n\t}", "public void restartActivity() {\n finish();\n startActivity(getIntent());\n }", "public void onRestart(Bundle params) {\n }", "@Override\r\n public void onResume() {\r\n NexLog.d(LOG_TAG, \"onResume called\");\r\n activityPaused = false;\r\n }", "@Override\n protected void onRestart() {\n super.onRestart();\n if(mvTencentMapView != null) {\n mvTencentMapView.onRestart();\n }\n }", "public final void restartApp() {\r\n Intent intent = new Intent(getApplicationContext(), SplashActivity.class);\r\n intent.addFlags(32768);\r\n intent.addFlags(268435456);\r\n startActivity(intent);\r\n }", "@Override\n\tprotected void onRestart() {\n\t\tshowPhoto(0);\n\t\tsuper.onRestart();\n\t}", "private void restartApp() {\n Intent intent = new Intent(application, Launcher.class);\n int mPendingIntentId = 123;\n PendingIntent mPendingIntent =\n PendingIntent.getActivity(\n application,\n mPendingIntentId,\n intent,\n PendingIntent.FLAG_CANCEL_CURRENT\n );\n AlarmManager mgr = (AlarmManager) application.getSystemService(Context.ALARM_SERVICE);\n if (mgr != null) {\n mgr.set(AlarmManager.RTC, System.currentTimeMillis() + 100, mPendingIntent);\n }\n System.exit(0);\n }", "private void dontShowThisAgain() {\n SharedPreferences.Editor editor = prefs.edit();\n editor.putBoolean(\"isFirstAppLaunch\", false);\n editor.apply();\n }", "@Override\n\tprotected void onRestart() {\n\t\tsuper.onRestart();\n\t\ttActivityDisplay.setText(\"On Restart Called\");\n\t}", "void notifyRestart();", "private void forceRestart() {\n\n/*\t\tAlarmManager alarmMgr = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n\t\tlong timeMillis = SystemClock.elapsedRealtime() + 1000; //1 second\n\t\tIntent intent = getPackageManager().getLaunchIntentForPackage(getPackageName());\n\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP | Intent.FLAG_ACTIVITY_NEW_TASK);\n\t\talarmMgr.set(AlarmManager.ELAPSED_REALTIME, timeMillis, PendingIntent.getActivity(this, 0, intent, 0));*/\n\t\tnew Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(200);\n\t\t\t\t\tSystem.exit(0);\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\t\t}).start();\n\t}", "private void restartProcess() {\n //you can send service or broadcast intent to restart your process\n Intent intent = getBaseContext().getPackageManager()\n .getLaunchIntentForPackage(getBaseContext().getPackageName());\n PendingIntent restartIntent = PendingIntent.getActivity(getApplicationContext(), 0, intent, PendingIntent.FLAG_ONE_SHOT);\n AlarmManager mgr = (AlarmManager) getSystemService(Context.ALARM_SERVICE);\n mgr.set(AlarmManager.RTC, System.currentTimeMillis() + 1000, restartIntent); // 1秒钟后重启应用\n System.exit(0);\n }", "@Override\r\n\tprotected void onResume() {\n\t\t\r\n\t}", "@Test\n public void restartSystemTest() {\n //Setup\n launcher.launch();\n Game game = launcher.getGame();\n game.start();\n game.stop();\n assertThat(game.isInProgress()).isFalse();\n\n //Execute\n game.start();\n\n //Assert\n assertThat(game.isInProgress()).isTrue();\n }", "@Override\n protected void onPause() {\n isRunning = false;\n super.onPause();\n }", "protected void activeActivity() {\n\t\tLog.i(STARTUP, \"active activity\");\n\t\tcheckActiveActivity();\n\t}", "@Override\r\n protected void onRestart() {\n super.onRestart();\r\n mapview.onRestart();\r\n }", "protected abstract void restartImpl();", "@Override\r\n public void onRestart() {\r\n super.onRestart();\r\n refreshData();\r\n }", "@Override\n public void onRestart() {\n model.onRestartScreen(state.titulo,state.comenzar);\n }", "@Override\n protected void onRestart() {\n super.onRestart();\n MobclickAgent.onPageStart(\"ACGwenDangActivity\");\n MobclickAgent.onResume(this); // 统计时长\n }", "@Override\n protected void onResume(){\n super.onResume();\n Log.d(TAG_INFO,\"application resumed\");\n }", "@Override\n protected void onResume(){\n super.onResume();\n Log.d(TAG_INFO,\"application resumed\");\n }", "default void appWillBeClosed(boolean isRestart) {\n }", "protected void onFirstTimeLaunched() {\n }", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t\tLog.d(\"maintab\", \"maintab_MainActivity------onResume\");\r\n\r\n\t}", "public void pauseApp() {\n theIsRunning = false;\n }", "protected void restart() {\r\n\t\tthis.stop();\r\n\t\tthis.start();\r\n\t}", "private void restartActivity() {\n Intent intent = getIntent();\n finish();\n startActivity(intent);\n overridePendingTransition(R.anim.fade_in,R.anim.fade_out);\n }", "@Override\n public void onResume() {\n }", "private void markNeedRestartADBServer() {\n Log.d(\"mark mNeedRestartAdbServer to true\");\n mNeedRestartAdbServer = true;\n mStatus = STATUS.FINISHED;\n notifyResultObserver();\n return;\n }", "@Override\n\tprotected void onRestart() {\n\t\tLog.i(LOG_TAG, \"onPause\");\n\t\tsuper.onRestart();\n\t\ttemp = new StringBuilder();\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\r\n\tprotected void onResume() {\n\t\tsuper.onResume();\r\n\t}", "@Override\n public void onResume() {\n super.onResume();\n Log.d(Constants.ERROR_TAG_ACTIVITY_ONE, Constants.ON_RESUME);\n }", "private void checkFirstLaunch(){\n SharedPreferencesEditor editor = new SharedPreferencesEditor(this);\n boolean test = editor.GetBoolean(\"firstLaunch\");\n if(test){\n loadData();\n return;\n }\n startActivity(new Intent(MainActivity.this, FirstLaunch.class));\n editor.WriteBoolean(\"firstLaunch\", true);\n }", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onResume() {\n\t\t\r\n\t}", "@Override\n \tprotected void onResume() {\n \t\tsuper.onResume();\n \t\tLog.d(TAG, \"onResume\");\n \t}", "@Override\n protected void onRestart() {\n super.onRestart();\n mMapView.onRestart();\n }", "@Override\n protected void onResume() {\n super.onResume();\n Log.d(TAG, \"onResume() called\");\n }", "@Override\n public void onResume(Activity activity) {\n }" ]
[ "0.70096266", "0.6874134", "0.68523955", "0.68239063", "0.68239063", "0.6797637", "0.6781993", "0.6781993", "0.6781993", "0.67671794", "0.67596084", "0.67524517", "0.6752316", "0.6728244", "0.66349137", "0.66349137", "0.66349137", "0.6627098", "0.6616756", "0.661206", "0.6589911", "0.6589911", "0.65867054", "0.6549806", "0.6547844", "0.6500586", "0.6479455", "0.64631945", "0.6444942", "0.643618", "0.6428575", "0.64150155", "0.6412809", "0.63849086", "0.6377625", "0.63588226", "0.63571715", "0.6354541", "0.6347246", "0.6345908", "0.6344301", "0.62641263", "0.6259155", "0.6256987", "0.62429696", "0.6234304", "0.6231054", "0.62297773", "0.6229393", "0.62105334", "0.6201327", "0.6200556", "0.6199516", "0.619257", "0.61907786", "0.6167793", "0.6165752", "0.61652523", "0.6158155", "0.6155562", "0.61518174", "0.6144671", "0.6134964", "0.613253", "0.61320496", "0.61230934", "0.6122203", "0.60809076", "0.6079935", "0.60765994", "0.60763323", "0.60763323", "0.60600424", "0.6034112", "0.602959", "0.6026952", "0.6021234", "0.60178435", "0.6017207", "0.6011622", "0.601144", "0.6010517", "0.6010517", "0.6010517", "0.6010517", "0.6010517", "0.6010517", "0.6010517", "0.6010517", "0.6010517", "0.6010517", "0.60067064", "0.60044056", "0.6001627", "0.6001627", "0.6001627", "0.6001627", "0.59916437", "0.598984", "0.59860957", "0.59835905" ]
0.0
-1
We do brute force iteration to check prime...
private boolean isItPrime(int checkPrime) { int i; // We dont devide the number by itself or one for (i = 2; i < checkPrime; i++) { if (checkPrime % i == 0) { // If there is no rest after modulus, the number is divisible System.out.println("\nSorry, not a prime number"); return false; } } System.out.println("\nLooks like you found a prime buddy!"); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private synchronized void verifyNumbersPrime() {\n\t\tint primeIndex = 1;\n\t\tfor (int j = NUMBER_TWO; j <= Integer.MAX_VALUE && primeIndex < primes.length; j++) {\n\t\t\tif(isPrime(j)) {\n\t\t\t\tprimes[primeIndex++] = j;\n\t\t\t}\n\t\t}\n\t}", "public static boolean isPrime(int n) \n{ \n//base case \nif (n <= 1) \nreturn false; \n//loop executes from 2 to n-1 \nfor (int i = 2; i < n; i++) \nif (n % i == 0) \n//returns false if the condition returns true \nreturn false; \n//returns true if the condition returns false \nreturn true; \n}", "private boolean isprime(long i) {\n\t\t\n\t\tif(i<=2) \n\t\treturn true;\n\t\tfor(long n = 2;n< i;n++) {\n\t\t\tif(i%n ==0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "public static void calculatePrimeNumbers(){\n int NUM = 5000000;\n\n boolean[] flags = new boolean[NUM + 1];\n\n int count = 0;\n\n for(int i = 2; i <= NUM; i++) {\n primeNumberFlagOperation(flags, i);\n }\n\n for(int i = 2; i <= NUM; i++) {\n if(flags[i]) {\n\n // remove all multiples of prime: i\n for(int k = i + i; k <= NUM; k += i) {\n flags[k] = false;\n }\n\n count++;\n }\n }\n }", "public void findPrimeNumbers(){\n boolean [] numbers = new boolean[this.n +1];\n\n Arrays.fill(numbers,true);\n\n numbers[0]= numbers[1]=false;\n\n for (int i = P; i< numbers.length; i++) {\n if(numbers[i]) {\n for (int j = P; i*j < numbers.length; j++) {\n numbers[i*j]=false;\n }\n }\n }\n\n for (int i = 0; i < numbers.length; i++){\n if(numbers[i] == true){\n this.primeNumbers.add(i);\n }\n }\n\n }", "public static void main(String[] args) {\n int num = 1500000;\n boolean flag = false;\n for (int i = 2; i <= num / 2; ++i) {\n // condition for nonprime number\n if (num % i == 0) {\n flag = true;\n break;\n }\n }\n\n if (!flag)\n System.out.println(num + \" is a prime number.\");\n else\n System.out.println(num + \" is not a prime number.\");\n\n }", "boolean isPrime (int i) { //isCrossedOut()\n if(i == 2){\n return true;\n }\n if(i % 2 == 0 || i == 1){\n return false;\n }\n\n //Finn position i arrayet\n int bitIndex = (i-1) / 2;\n int arrayIndex = bitIndex / 8;\n bitIndex = bitIndex % 8;\n //System.out.println(\"isPrime(\"+ i +\")\");\n\n if((bitArr[arrayIndex] & bitMask[bitIndex]) == 0){\n return false;\n }\n return true;\n }", "private static void getPrime() {\n\t\tfor(int i=2;i<MAXN;i++){\n\t\t\tif(prime[i]==0){\n\t\t\t\tprime[++prime[0]]=i;\n\t\t\t}\n\t\t}\n\t}", "private boolean isPrime(int x) {\n for (int i = 2; i <= x / i; i++) {\n if (x % i == 0) {\n return false;\n }\n }\n return true;\n }", "static boolean isPrime(long n)\n {\n // Corner cases\n if (n <= 1)\n return false;\n if (n <= 3)\n return true;\n \n // This is checked so that we can skip\n // middle five numbers in below loop\n if (n % 2 == 0 || n % 3 == 0)\n return false;\n \n for (int i = 5; i * i <= n; i = i + 6)\n if (n % i == 0 || n % (i + 2) == 0)\n return false;\n \n return true;\n }", "public void checkPrime()\n {\n for (int i = 0; i<= Values2.size()-1; i++)\n {\n if (isPrime(Values2.get(i)))\n {\n Values2.remove(i);\n }\n }\n }", "public boolean isPrime()\r\n\t{\r\n\t\tif (currentNumber == 2 || currentNumber == 0)\r\n\t {\r\n\t \tprocessLastDigit();\r\n\t\t\treturn true;\r\n\t }\r\n\t\telse if (currentNumber % 2 == 0)\r\n\t {\r\n\t \treturn false;\r\n\t }\r\n \r\n\t for (int factor = 3; factor <= Math.sqrt(currentNumber); factor += 2)\r\n\t {\r\n\t if(currentNumber % factor == 0)\r\n\t {\r\n\t \treturn false;\r\n\t }\r\n\t }\r\n \tprocessLastDigit();\r\n\t return true;\r\n\t}", "public int primetest(int primenumber){ // method tests if number is prime\n\t\tfor (int j=2; j < prime.size()+2; j++){\n\t\t\tif ((primenumber % prime.get(j-2)) == 0){\n \t \t\t\treturn 0;\n \t \t\t}\n \t\t}\n \t\tprime.add(prime.size(), primenumber);\n \t\treturn 1;\n\n\t}", "static boolean isPrime(long num) {\n\t\tif(num==1)\n\t\t\treturn false;\n\t\tif(num==2 || num==3)\n\t\t\treturn true;\n\t\t\n\t\tif(num%2==0 || num%3==0)\n\t\t\treturn false;\n\t\t\n\t\tfor(int value=5; value*value<=num; value+=6)\n\t\t\tif(num%value==0 || num%(value+2)==0)\n\t\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "public static void main(String[] args) {\r\nScanner scan = new Scanner(System.in);\r\n int totalTests = scan.nextInt();\r\n\r\n for(int x = 0; x < totalTests; x++){\r\n \r\n int number = scan.nextInt();\r\n int primes=0;\r\n \r\n\r\n for(int y =2 ; y<number/2; y++){\r\n if(number%y==0)\r\n \r\n primes++;\r\n if(primes>0){\r\n break;\r\n }\r\n \r\n }\r\n\r\n if(primes>0 && number>2 || number ==1 || number ==4)\r\n System.out.println(\"Not prime\");\r\n\r\n else System.out.println(\"Prime\");\r\n \r\n \r\n }\r\n }", "public static void findPrime (int n){\n\t\tboolean [] isPrime = new boolean[n];\n\t\tisPrime[0] = false;\n\t\tisPrime[1] = true;\n\t\t\n\t\tfor(int i = 2; i< n; i++){\n\t\t\tisPrime[i]= true;\n\t\t}\n\t\tint limit = (int)Math.sqrt(n);\n\t\tfor(int i = 2; i<= limit; i++){\n\t\t\tif(isPrime[i])\n\t\t\t{\n\t\t\t\tfor(int j= i * i ; j < n; j+= i){\n\t\t\t\t\tisPrime[j] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0; i< n; i++){\n\t\t\tif(isPrime[i])\n\t\t\tSystem.out.println(i);\n\t\t}\n\t}", "private boolean isPrime(List<Long> primes, long i) {\n if (i < 2)\n return false;\n for (long prime : primes)\n if (prime > 1) {\n if (i % prime == 0) {\n return false;\n }\n }\n return true;\n }", "publci int countPrime(int n){\n boolean[] notPrime = new boolean[n];\n for (int i = 2; i * i <= n; i++){\n if(!notPrime[i]){\n for (int j = i; j * i < n; j++)\n notPrime[j * i] = true;\n }\n }\n}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt();\n \n boolean[] isNotPrime = new boolean[(N - 1 - 1) / 2 + 1];\n List<Integer> list = new ArrayList<Integer>();\n HashSet<Integer> primes = new HashSet<Integer>();\n \n list.add(2);\n primes.add(2);\n long sum = 0;\n for (int i = 1; i < isNotPrime.length; i++) {\n if (isNotPrime[i]) {\n continue;\n }\n list.add(2 * i + 1);\n primes.add(2 * i + 1);\n long nextIndex = (((long) 2 * i + 1) * (2 * i + 1) - 1) / 2;\n if (nextIndex >= isNotPrime.length) {\n continue;\n }\n for (int j = ((2 * i + 1) * (2 * i + 1) - 1) / 2; j < isNotPrime.length; j += 2 * i + 1) {\n isNotPrime[j] = true;\n }\n }\n int index = 0;\n while (index < list.size()) {\n int curPrime = list.get(index);\n index++;\n if (curPrime < 10) {\n continue;\n }\n int base = 1;\n while (curPrime / base > 9) {\n base *= 10;\n }\n int leftTruncate = curPrime;\n int rightTruncate = curPrime;\n boolean isValid = true;\n while (base != 1) {\n leftTruncate = leftTruncate - leftTruncate / base * base;\n rightTruncate = rightTruncate / 10;\n base /= 10;\n if (primes.contains(leftTruncate) == false || primes.contains(rightTruncate) == false) {\n isValid = false;\n break;\n }\n }\n if (isValid) {\n sum += curPrime;\n }\n }\n System.out.println(sum);\n scanner.close();\n }", "private boolean isPrime(int n) {\r\n for (int divisor = 2; divisor < n; divisor++) {\r\n if (n % divisor == 0) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static void main(String[] args) {\n\t\tint num =0;\n\t\tfor(int j=1;j<=100;j++) {\n\t\t\tnum=j;\t\n\t\tboolean flag = false;\n\t\tfor(int i=2;i<num;i++) {\n\t\t\tif(num%i==0) {\n\t\t\t\t//System.out.println(num+\" is not prime number\");\n\t\t\t\tflag=true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tif(flag==false) {\n\t\t\tSystem.out.println(num+\" is prime num\");\n\t\t}\n\t}\n\t}", "private static boolean isPrime(int n) {\n if (n%2==0) return false;\r\n //if not, then just check the odds\r\n for(int i=3;i*i<=n;i+=2) {\r\n if(n%i==0)\r\n return false;\r\n }\r\n return true;\r\n }", "public static void checkPrime(int n ) {\n int i, m = 0, flag = 0;\n m = n / 2;\n\n\n if (n == 0 || n == 1) {\n System.out.println(n + \" is not a prime number\");\n } else {\n for (i = 2; i < 100; i++) {\n if (n % i == 0) {\n System.out.println(n + \" is not prime number\");\n flag = 1;\n break;\n }\n }\n\n if (flag == 0) {\n System.out.println(n + \"is a prime number\");\n }\n }\n }", "public boolean isPrime(){\r\n\t\tfor (int i = 2; i<value; i++){\r\n\t\t\tif(value/i==0){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "static boolean isPrime(long n) {\n long sqrt = (long)Math.sqrt((double)n);\n int idx = Collections.binarySearch(SMALL_PRIMES, sqrt);\n return !IntStream.range(0, idx > 0 ? idx + 1 : (-idx - 1))\n .mapToLong(SMALL_PRIMES::get)\n .anyMatch(p -> n % p == 0L);\n }", "private static boolean isPrime(int i) {\n\t\tif(i == 1) {\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\tfor (int j = 2; j <= i / 2; j++) {\n\t\t\tif (i % j == 0) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private static boolean isPrime(int n) {\n\t if(n == 2 || n == 3)\n\t return true;\n\n\t if(n == 1 || n % 2 == 0)\n\t return false;\n\n\t for (int i = 3; i * i <= n; i += 2) {\n\t if (n % i == 0)\n\t return false;\n\t }\n\t return true;\n\t }", "public boolean slow_check_if_prime(int checked_n){\n\t\tint i;\n\t\tif(checked_n == 2){\n\t\t\treturn true;\n\t\t}\n\t\tfor(i=2;i<checked_n;i++){\n\t\t\tif(checked_n%i==0){\n\t\t\t\t//System.out.println(checked_n + \"%\" + i + \"==0\");\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\t//System.out.println(checked_n + \" is prime\");\n\t\treturn true;\n\t}", "public void primeNumber(int a)\n { boolean result = false;\n int i;\n if(a!=1)\n {\n for( i=2;i<a;i++)\n {\n if(a%i==0)\n {\n break;\n }\n\n }\n if(a==i)\n {\n System.out.println(i);\n result=true;\n }\n }\n }", "public static void main(String[] args) {\n\n\t\tint num = 29;\n\t\tboolean flag = false;\n\t\tfor(int i =2;i<=num/2;i++)\n\t\t{\n\t\t\tif(num%1==0)\n\t\t\t{\n\t\t\t\tflag = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(!flag)\n\t\t{\n\t\t\tSystem.out.println(\"it is prime number\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(\"it is not prime number\");\n\t\t}\n\t}", "public static boolean isPrimeIter(int n) {\n System.out.println(\"Entering isPrimeIter\");\n if (n <= 3) {\n return n > 1;\n }\n if (n % 2 == 0 || n % 3 == 0) {\n return false;\n }\n\n //check if n has a multiple between 5 and sqrt(n)\n for (int i = 5; i * i <= n; i += 6) {\n if (n % i == 0 || n % (i + 2) == 0) {\n return false;\n }\n }\n System.out.println(\"Leaving isPrimeIter\");\n return true;\n }", "public static boolean isPrime(BigInteger n) {\n\t\tglobalLog.stepIn(\"isPrime(\" + n.toString() + \")\");\n\t\tprimeLog.stepIn(\"isPrime(\" + n.toString() + \")\");\n\t\t// Use some other function if n is sufficiently small (n<=10^10)\n\t\tif (n.compareTo(BigInteger.valueOf(10000000000l)) <= 0) {\n\t\t\tprimeLog.log(\"The number \" + n.toString() + \" is small enough to be checked normally.\");\n\t\t\treturn isPrime(n.longValue());\n\t\t} else if (!n.testBit(0)) {\n\t\t\tprimeLog.log(\"The number \" + n.toString() + \" is even so it is composite.\");\n\t\t\treturn false;\n\t\t}\n\t\tprimeLog.log(\n\t\t\t\t\"The number \" + n.toString() + \"is too large and will be checked with Rabin Miller primality test.\");\n\n\t\t// Find values to the equation n=2^s*m where s is as large as possible\n\t\tint s = 0;\n\t\t// Find out how many times we can divide (n-1) by 2\n\t\tBigInteger nMinusOne = n.subtract(BigInteger.ONE);\n\t\twhile (!nMinusOne.testBit(s)) {\n\t\t\ts++;\n\t\t}\n\t\t// Find k by calculating n>>s\n\t\tBigInteger m = nMinusOne.shiftRight(s);\n\t\tprimeLog.log(n.toString() + \" - 1 = 2^\" + s + \" * \" + m.toString());\n\n\t\tint prime = 0;\n\t\tint composite = 0;\n\n\t\t// Check to see if n is prime using base a\n\t\tlong maxValue = n.bitLength() > 63 ? Long.MAX_VALUE : n.longValue();\n\t\tfor (int i = 0; i < PRIMALITY_CHECK_ITERATIONS; i++) {\n\t\t\tprimeLog.stepIn(\"Trial \" + i);\n\t\t\tBigInteger a = BigInteger.valueOf(randomLong(2, maxValue - 2));\n\t\t\tprimeLog.log(\"Checking if n is prime using a=\" + a.toString() + \".\");\n\t\t\t// First iteration is a^m % n\n\t\t\tBigInteger res = a.modPow(m, n);\n\t\t\tprimeLog.log(\"a^m % n = \" + res.toString());\n\t\t\t// On first iteration if |a^m mod n| = 1 then say it is prime\n\t\t\tif (res.equals(BigInteger.ONE) || res.equals(nMinusOne)) {\n\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is prime.\");\n\t\t\t\tprimeLog.stepOut();\n\t\t\t\tprime++;\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tboolean flag = false;\n\t\t\tfor (int j = 1; !flag && j < s; j++) {\n\t\t\t\tres = res.modPow(BigInteger.valueOf(2), n);\n\t\t\t\tprimeLog.log(\"a^(2^\" + j + \" * m) % n = \" + res.toString());\n\t\t\t\tif (res.equals(BigInteger.ONE)) {\n\t\t\t\t\t// If a^[(2^j)*m] % n = 1 then we say is is composite\n\t\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is composite.\");\n\t\t\t\t\tcomposite++;\n\t\t\t\t\tflag = true;\n\t\t\t\t} else if (res.equals(nMinusOne)) {\n\t\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is prime.\");\n\t\t\t\t\t// If a^[(2^j)*m] % n = -1 then we say is is prime\n\t\t\t\t\tprime++;\n\t\t\t\t\tflag = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!flag) {\n\t\t\t\tprimeLog.log(\"We can declare that \" + n.toString() + \" is composite.\");\n\t\t\t\tcomposite++;\n\t\t\t}\n\t\t\tprimeLog.stepOut();\n\t\t}\n\t\tprimeLog.log(\"Out of \" + (prime + composite) + \" trials, \" + prime + \" trials claimed n was prime.\");\n\t\tprimeLog.log(\"n is prime: \" + (prime > composite));\n\t\tglobalLog.appendToCurrent(\": \" + (prime > composite));\n\t\tglobalLog.stepOut();\n\t\tprimeLog.appendToCurrent(\": \" + (prime > composite));\n\t\treturn prime > composite;\n\t}", "static boolean isPrime(int a){ //isPrime function evaluates if the int is prime takes int and returns boolean\n //logic:\n //a number is prime if no other number is divisible by it other than 1 and itself.\n //algorithim: modulos every number until n to see if is divisible and modulos == 0 \n //faster way: check everynumber up until half of the the number. ( int division will cut off the decimal ) since if it is double, it will also be divisible by 2\n //not, start the loop after 1 because 1 is neither prime nor composite\n if ( a == 1){\n System.out.println(\"Error: 1 is neither prime nor composite\");\n return false;\n }//end if\n for(int i = 2; i <= (a/2); i++){\n if(a % i == 0)//if the number is divisible by any number other than itself then it is not prime.\n return false;\n }//end for\n return true; //if the number succesfully passes through the loop then it is a prime number and return true\n \n }", "private static boolean isPrime( int n )\n {\n if( n == 2 || n == 3 )\n return true;\n\n if( n == 1 || n % 2 == 0 )\n return false;\n\n for( int i = 3; i * i <= n; i += 2 )\n if( n % i == 0 )\n return false;\n\n return true;\n }", "public static void primeNumber() {\n\t\tboolean isprimeNumber = false;\n\t\tSystem.out.println(\"prime numbers between 1 and 1000 are\");\n\n\t\tfor (int i = 2; i <1000; i++) {\n\t\tif(calculation(i)==true)\n\t\t{\n\t\t\tSystem.out.println(i);\n\t\t\tprime++;\n\t\t}\n\t\t\n\t}\n\t\tSystem.out.println(prime+\" numbers are prime\");\n\t}", "public static void main(String[] args) {\n\nint count=0;\n\n\nfor(int i=13;count<100;i++){\n\tboolean a=isPrime(i);\n\tboolean b=isReversePrime(i);\n\t\n\tif(a && b){\n\t\tcount++;\n\t\tSystem.out.print(count%10 != 0 ? i+\" \":i+\"\\n\" );\n\t}\n}\n\t}", "public static void main(String[] args) {\n\n\t\tfor(int i=1; i<100; i++){\n\t\t\tint count=0, remainder=0; //variables initialized to zero.\n\n\t\t\tfor (int j=1; j<i+1; j++){\n\t\t\t\tremainder = i%j; // finding the remainder \n\t\t\t\tif(remainder==0) // if the remainder is equal to zero increment the count\n\t\t\t\t\tcount++;\n\t\t\t}\n\t\t\tif(count==2) // if the loop count is equal to two then print the number as prime.\n\t\t\t\tSystem.out.print(i+\" \");\n\t\t}\n\n\t}", "public void nextPrime()\n\t{\n\t\tint num; \n\t \n\t\tScanner limit = new Scanner(System.in); \n\t\tSystem.out.println(\"Please enter a prime number to get the next one: \"); \n\t\tnum = limit.nextInt(); \n\t\n\t\tfor(int i=num;;i++ )\n\t\t{ \n\t\t\tboolean Prime = true;\n\t\n\t\t\t//check to see if the number is prime\n\t\t\tfor(int j=2; j < 10; j++)\n\t\t\t{ \n\t\t\t\tif(i % j == 0)\n\t\t\t\t{\n\t\t\t\t\tPrime = false;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\t//if the number is prime then print it out and break from the program.\n\t\t\tif(Prime)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"Prime: \"+ i);\n\t\t\t\tif(Prime = true && i !=num){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "private static boolean isPrime(int number) {\n\n\t\tif (number <= NUMBER_ONE) {\n\t\t\treturn false; \n\t\t}\n\n\t\tfor (int i = NUMBER_TWO; i < number; i++) {\n\t\t\tif (number % i == NUMBER_ZERO) { \n\t\t\t\treturn false; \n\t\t\t}\n\t\t}\n\t\treturn true; \n\t}", "static void primeNumberSeries(){\n\t}", "private static boolean isPrime(int num) {\n\t\tfor(int divisor=2;divisor<=num/2;divisor++){\n\t\t\tif(num%divisor==0) return false;\n\t\t}\n\t\treturn true;\n\t}", "public static boolean isPrime(BigInteger n) {\n if (primes.contains(n)) {\n return true;\n } else if (n.compareTo(last(primes)) < 0) {\n return false;\n }\n for (BigInteger i = last(primes).add(ONE); i.compareTo(n) <= 0; i =\n i.add(ONE)) {\n if (i.mod(new BigInteger(\"10000\")).compareTo(ZERO) == 0) System.out.println(i);\n for (BigInteger x : primes) {\n if (i.mod(x).compareTo(ZERO) == 0) {\n break;\n } else if (x.multiply(x).compareTo(i) > 0) {\n primes.add(i);\n break;\n }\n }\n }\n return last(primes).compareTo(n) == 0;\n }", "public static void main(String[] args) {\n\t\tlong num=123456789;\r\n\t\tlong rev = 0;\r\n\r\n\t\t//boolean isprime=true;\r\n\r\n\t\tfor(int i=2;i<num;i++)\r\n\t\t{\t\r\n\t\t\twhile(num!=0)\r\n\t\t\t{\r\n\r\n\r\n\t\t\t\trev=num % 10;\r\n\t\t\t\tnum=num/10;\r\n\r\n\r\n\t\t\t\tSystem.out.println(rev);\r\n\r\n\t\t\t\tif(rev>2) {\r\n\t\t\t\t\tboolean flag=true;\r\n\t\t\t\t\tfor(int temp=2;temp<rev;temp++) {\r\n\t\t\t\t\t\tif(rev%temp==0) {\r\n\t\t\t\t\t\t\tflag=false;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif(flag)\r\n\t\t\t\t\t{\r\n\r\n\t\t\t\t\t\tSystem.out.println(rev + \"is prime number\");\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\tSystem.out.println(rev + \"is not a prime\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tSystem.out.println(rev+\" is a prime\");\r\n\t\t\t\t}\r\n\r\n\r\n\r\n\r\n\t\t\t}\r\n\t\t}\r\n\t}", "static boolean checkIsPrime(int n) {\n for (int i = 2; i <= Math.sqrt(n); i++) {\n if (n % i == 0) {\n return false;\n }\n }\n return true;\n }", "private static boolean isPrime(long n)\r\n {\r\n //Variable that will be returned, by default true\r\n boolean prime = true;\r\n //Start at 3 and increment by 2\r\n for(int i = 3;i<n/2;i=i+2)\r\n {\r\n //If the remainder of the division of n by i is 0, return prime as false \r\n if(n%i==0)\r\n {\r\n prime = false;\r\n return prime;\r\n }\r\n }\r\n //return the default value if the program gets to here\r\n return prime;\r\n }", "private static boolean isPrime(long n) {\n\t\tboolean isPrime = true;\n\t\tif (n < 2) {\n\t\t\tisPrime = false;\n\t\t} else if (n == 2) {\n\t\t\tisPrime = true;\n\t\t} else if (n % 2l == 1) {\n\t\t\tisPrime = false;\n\t\t\tprimeLog.log(n + \" is divisible by 2\");\n\t\t}\n\t\t// Check n against all odd numbers greater than 2\n\t\tfor (int i = 3; isPrime && i * i <= n; i += 2) {\n\t\t\t// If n is divisible by i then n is not prime\n\t\t\tif (n % i == 0) {\n\t\t\t\tprimeLog.log(n + \" is divisible by \" + i);\n\t\t\t\tisPrime = false;\n\t\t\t}\n\t\t}\n\t\tglobalLog.appendToCurrent(\": \" + isPrime);\n\t\tglobalLog.stepOut();\n\t\tprimeLog.appendToCurrent(\": \" + isPrime);\n\t\treturn isPrime;\n\t}", "private static boolean isProbablePrime(BigInteger n, int k) {\n if (n.compareTo(ONE) == 0)\n return false;\n if (n.compareTo(THREE) < 0)\n return true;\n int s = 0;\n BigInteger d = n.subtract(ONE);\n while (d.mod(TWO).equals(ZERO)) {\n s++;\n d = d.divide(TWO);\n }\n for (int i = 0; i < k; i++) {\n BigInteger a = uniformRandom(TWO, n.subtract(ONE));\n BigInteger x = a.modPow(d, n);\n if (x.equals(ONE) || x.equals(n.subtract(ONE)))\n continue;\n int r = 0;\n for (; r < s; r++) {\n x = x.modPow(TWO, n);\n if (x.equals(ONE))\n return false;\n if (x.equals(n.subtract(ONE)))\n break;\n }\n if (r == s) // None of the steps made x equal n-1.\n return false;\n }\n return true;\n }", "int nextPrime(int input) { //Ikke særlig optimalt dette. Hadde problemer med å iterere over binærArrayet direkte\n if(input < 2)\n return 2;\n if(input % 2 == 0){ //Unødvendig å sjekke partall.\n input++;\n }\n while(input < maxNum){\n if(isPrime(input)){\n return input;\n }\n input += 2;\n }\n return -1;\n }", "private static boolean isPrime(int n) {\r\n if (n == 2)\r\n return true;\r\n if (n <= 1 || n % 2 == 0)\r\n return false;\r\n for (int i = 3; i <= Math.sqrt(n); i+=2) {\r\n if (n % i == 0)\r\n return false;\r\n }\r\n return true;\r\n }", "private static int nextPrime(int n) {\n\t if (n % 2 == 0)\n\t n++;\n\n\t for (; !isPrime(n); n += 2)\n\t ;\n\n\t return n;\n\t }", "private static int nextPrime( int n )\n {\n if( n % 2 == 0 )\n n++;\n\n for( ; !isPrime( n ); n += 2 )\n ;\n\n return n;\n }", "public static int check_if_prime(int num, int i) {\n\t\tif (num < firstprime)\n\t\t\treturn 0; \t\t\n\t\t\n\t\t// stop condition: didn't find divisors other than self and one\n\t\telse if (i > num - 1)\n\t\t\treturn 1; \t\t\n\t\t\n\t\t// stop condition: return since found a divisor\n\t\telse if (num % i == 0)\n\t\t\treturn 0; \t\t\n\t\t\n\t\t/* Continues recursion */\n\t\treturn check_if_prime(num, i + 1); \n\t}", "public int run() {\n\n int n = 1;\n\n int primeCounter = 0;\n\n while (true) {\n\n if (isPrime.run(n) == true) {\n\n primeCounter += 1;\n\n }\n\n if (primeCounter == 10001) {\n\n break;\n\n }\n\n n += 1;\n\n }\n\n return n;\n\n }", "private static void computePrimes(boolean[] primes) {\n\t\tprimes[0] = false;\n\t\tprimes[1] = false;\n\n\t\t// Starts all numbers as primes\n\t\tfor (int x = 2; x < primes.length; x++) {\n\t\t\tprimes[x] = true;\n\t\t}\n\t\t// Checks every number above 2 for primality\n\t\tfor (int y = 2; y < primes.length; y++) {\n\t\t\tif (primes[y] == true) {\n\t\t\t\tfor (int j = y * y; j < primes.length; j += y) {\n\t\t\t\t\tprimes[j] = false;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public static void primeCheck(int num){\n \n boolean divisible = false;\n for(int i = 2;i<num;i++){\n if(num%i==0&&num!=i){\n divisible = true;\n }\n }\n if(divisible==true){\n System.out.println(\"The number is not a prime.\");\n }\n else{\n System.out.println(\"The number is a prime.\");\n }\n }", "public static void main(String[] args) {\n\n\tfor (int num=2; num<=20; num++ )\n\t\t\n\t{\n\t\tint count = 0;\n\t\tfor(int i=2; i<num;i++)\n\t\t{\n\t\t\tif (num%i==0)\n\t\t\t{\n\t\t\t\tcount = count+1;\n\t\t\t}\t\n\t\t}\n\t\tif(count==0)\n\t\t{\n\t\t\tSystem.out.println(num+\"is a prime number\");\n\t\t}\n\t\telse\n\t\t{\n\t\t\tSystem.out.println(num+\"is not a prime number\");\n\t\t}\t\n\t\t\n\t}\n}", "private static void primeCalc(int UI)\n\t{\n\t\tSystem.out.print(\"The Prime Numbers are: \");\n\t\tSystem.out.println();\n\t\t\n\t\tint P = 0;\n \n\t\twhile (++P <= UI) \n\t\t{\n\n \tint P2 = (int) Math.ceil(Math.sqrt(P));\n\n boolean Decision = false;\n\n while (P2 > 1) \n\t\t\t{\n\n \tif ((P != P2) && (P % P2 == 0)) \n\t\t\t\t{\n \tDecision = false;\n break;\n }\n\t\t\t\telse if (!Decision) \n\t\t\t\t{\n \tDecision = true;\n }\n\n --P2;\n\t\t\t}\n\n if (Decision) \n\t\t\t{\n \tSystem.out.println(P);\n \n }\n\n\t\n\t\t}\n\n\n\t}", "private static int findSpecialPrimesSum() {\n // holds whether a prime number has invalid digits\n boolean invalidDigits;\n // holds whether a number is prime or not\n boolean[] notPrime = new boolean[UPPER_BOUND];\n // number of special primes found\n int numOfSpecialPrimes = 0;\n // sum of the special primes\n int sum = 0;\n // temp variable for a number\n int tempNum;\n\n // set all non prime numbers to true\n for (int index = SMALLEST_PRIME; index < notPrime.length; index++) {\n for (int counter = index * SMALLEST_PRIME; counter < notPrime.length; counter += index) {\n notPrime[counter] = true;\n }\n }\n\n // loop through all possible values\n for (int num = DIV_10; num < notPrime.length; num++) {\n // only run if the number is prime\n if (notPrime[num] == false) {\n // check if the number ends with a 3 or 7\n if (END_DIGITS[num % DIV_10] == true) {\n tempNum = num;\n // strip the number until we get the first digit\n invalidDigits = false;\n while (tempNum >= DIV_10) {\n // check if the prime has even digits that are not 2\n if ((tempNum % DIV_10) % SMALLEST_PRIME == 0 && tempNum % DIV_10 != SMALLEST_PRIME) {\n invalidDigits = true;\n break;\n }\n tempNum /= DIV_10;\n }\n // check if the prime has invalid digits\n if (invalidDigits == true) {\n continue;\n }\n // check if the number starts with 2,3,5,7\n if (START_DIGITS[tempNum] == true) {\n // check if the number is left and right truncatable\n if (leftTruncatablePrime(num, notPrime) == true\n && rightTruncatablePrime(num, notPrime) == true) {\n numOfSpecialPrimes++;\n sum += num;\n }\n }\n }\n }\n // if all 11 primes are found, exit loop\n if (numOfSpecialPrimes == NUM_OF_PRIMES) {\n break;\n }\n }\n\n return sum;\n }", "public boolean primeCheck(Long n){\n\t\t//checks whether an int is prime or not.\n\t\t\n\t\t //check if n is a multiple of 2\n\t\t if (n%2==0) return false;\n\t\t //if not, then just check the odds\n\t\t for(int i=3;i*i<=n;i+=2) {\n\t\t if(n%i==0)\n\t\t return false;\n\t\t }\n\t\t \n\t\t return true;\n\t\t\n\t}", "private static boolean isPrime( int n )\n\t{\n\t\tif( n == 2 || n == 3 )\n\t\t\treturn true;\n\n\t\tif( n == 1 || n % 2 == 0 )\n\t\t\treturn false;\n\n\t\tfor( int i = 3; i * i <= n; i += 2 )\n\t\t\tif( n % i == 0 )\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "private static boolean isPrime(int n) {\n\t\t\n\t\tif (n <= 1) return false;\n\t\tfor (int i = 2; i * i <= n; i++) {\n\t\t\tif (n % i == 0) return false;\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "static private boolean checkPrimality(long n) {\n // first, check if even\n if (n % 2 == 0)\n return false;\n\n // now, check against odd numbers\n for (int i = 3; i < n / 2; i += 2)\n if (n % i == 0)\n return false;\n\n return true;\n }", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n System.out.println(\"Enter a number to get prime numbers below that number\");\nint givenum = sc.nextInt();\nint i,number,count;\nfor(number=1;number<=givenum;number++)\n{\n\tcount=0;\n\tfor(i=2;i<=number/2;i++)\n\t{\n\t\tif(number%i==0)\n\t\t{\n\t\t\tcount++;\n\t\t\tbreak;\n\t\t}\n\t}\nif(count==0 && number !=1)\n{\n\tSystem.out.println(number);\n}\n}\n\t}", "private static boolean isPrime(int x) {\n if (x<=1)\n return false;\n else\n return !isDivisible(x, 2);\n }", "public static void main(String[]args){\n Scanner scanner = new Scanner(System.in);\n System.out.print(\"n=\");\n int n = scanner.nextInt();\n boolean k = false;\n for(int i = 2; i <= Math.sqrt(n); ++i){\n if(n % i == 0){\n k = true;\n break;\n }\n }\n if(k){\n System.out.println(n + \" is not prime number\");\n }else{\n System.out.println(n + \" is prime number\");\n }\n }", "protected static int nextPrime(int n )\r\n\t{\r\n\t\tif( n % 2 == 0 )\r\n\t\t\tn++;\r\n\t\tfor( ; !isPrime( n ); n += 2 )\r\n\t\t\t;\r\n\t\treturn n;\r\n\t}", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n\n for(int i = 0; i < n; i++) {\n isPrime(in.nextInt());\n }\n }", "public static boolean isPrime(int x){ \n\t\t\n\t\tfor(int i = 2; i <= Math.sqrt(x); i++){\n\t\t\tif(x%i == 0){\n\t\t\t return false; \n\t\t\t}\n\t\t}\t\n\t\treturn true; \t\n\t}", "private static boolean checkPrime(int size){\n boolean prime = true;\n //if can divide by two then it is not prime\n if (size%2==0) prime = false;\n //if not, then just check the odds as all even numbers are divisible by 2\n for(int i = 3; i*i <= size; i += 2) {\n if(size % i == 0)\n prime = false;\n }\n return prime;\n }", "private boolean esPrimo(int n)\r\n {\r\n for (int i = 3; i < (int) Math.sqrt(n); i+=2) {\r\n if (n%i == 0) return false;\r\n }\r\n return true;\r\n }", "private static boolean isPrime(int n) {\n\t\tif (n == 2 || n == 3)\n\t\t\treturn true;\n\n\t\tif (n == 1 || n % 2 == 0)\n\t\t\treturn false;\n\n\t\tfor (int i = 3; i * i <= n; i += 2)\n\t\t\tif (n % i == 0)\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "private static int nextPrime(int n) { // calcula el siguiente numero primo\n\t\t\t\t\t\t\t\t\t\t\t// mallor o igual a n.\n\t\tif (n % 2 == 0)\n\t\t\tn++;\n\n\t\tfor (; !isPrime(n); n += 2)\n\t\t\t;\n\n\t\treturn n;\n\t}", "private boolean isPrime(long n) {\n return BigInteger.valueOf(n).isProbablePrime(10);\n }", "public static void main(String[] args) {\n\t\t\n\t\tlong num = 600851475143L;\n\t\t\n\t\tList<Integer> primes = BasicPrimeFinder.getPrimes((int) Math.sqrt(num));\n\t\t\n\t\tfor(int i = primes.size() - 1; i > -1; i--) {\n\t\t\t\n\t\t\tif(num % primes.get(i) == 0) {\n\t\t\t\tSystem.out.println(primes.get(i));\n\t\t\t\treturn;\n\t\t\t}\n\t\t\n\t\t}\n\t\t\n\t}", "public static boolean isPrime(MyInteger number1){\r\n\t\tfor (int i = 2; i<number1.getInt(); i++){\r\n\t\t\tif(number1.getInt()/i==0){\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean isAPrimeNumber(int x){\n for(int i = 1; i <= x;i++){\n\n //if the mod = 0 then it is a divisor\n if(x % i == 0) {\n\n //increment count\n count++;\n\n }\n //if count is greater than 2 we return true because prime numbers\n //Can only be divisble by 1 and itself\n if(count > 2){\n\n return false;\n }\n\n\n\n }\n\n //If the entire loop finishes then we return true\n return true;\n }", "public Boolean isPrime(int n) {\n if (n == 2) {\n return false;\n }\n if (n == 3) {\n return true;\n }\n if (n%2 == 0) {\n return false;\n }\n if (n%3 == 0) {\n return false;\n }\n\n int a = 5;\n int b = 2;\n\n while (a*a <= n) {\n if (n%a == 0) {\n return false;\n }\n a += b;\n b = 6 - b;\n }\n return true;\n }", "static boolean isPrime(int n)\n {\n if (n <= 1)\n return false;\n\n // Check if number is 2\n else if (n == 2)\n return true;\n\n // Check if n is a multiple of 2\n else if (n % 2 == 0)\n return false;\n\n // If not, then just check the odds\n for (int i = 3; i <= Math.sqrt(n); i += 2)\n {\n if (n % i == 0)\n return false;\n }\n return true;\n }", "private static boolean isPrime(final int n)\n\t{\n\t\tif ((n == 2) || (n == 3))\n\t\t\treturn true;\n\n\t\tif ((n == 1) || ((n & 1) == 0))\n\t\t\treturn false;\n\n\t\tfor (int a = 3; a * a <= n; a += 2)\n\t\t\tif ((n % a) == 0)\n\t\t\t\treturn false;\n\n\t\treturn true;\n\t}", "public static void sieve(int n) {\n boolean[] isTrue = new boolean[n-1];\n Arrays.fill(isTrue, true);\n\n\n int increment = 1;\n for (int i = 2; i < isTrue.length; i++) {\n increment = 1;\n for (int j = i * i; j < isTrue.length; j = increment*i) {\n isTrue[j] = false;\n increment++;\n }\n }\n\n for (int i = 2; i < isTrue.length; i++) {\n System.out.println(i + \" is a prime number? = \" + isTrue[i]);\n }\n }", "protected static boolean isPrime(int n )\r\n\t{\r\n\t\tif( n == 2 || n == 3 )\r\n\t\t\treturn true;\r\n\t\tif( n == 1 || n % 2 == 0 )\r\n\t\t\treturn false;\r\n\t\tfor( int i = 3; i * i <= n; i += 2 )\r\n\t\t\tif( n % i == 0 )\r\n\t\t\t\treturn false;\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean isPrime(int value){\n if (value == 0 || value == 1){\n return false;\n }\n // Check all numbers up to the square root of the number\n for (int i = 2; i*i < value+1; i++) {\n if (value % i == 0) {\n return false;\n }\n }\n return true;\n }", "public static boolean isPrime(int num){\n if(num<=1){\n return false;\n }\n for(int i=2;i<=(long)Math.sqrt(num) ; i++){\n if(num%i==0){\n return false;\n }\n }\n return true;\n }", "public static void main(String[] args) {\n\t\tint[] prime= new int[1229]; //only need primes up to 10000\n\t\tint n=1;\n\t\tint index=0;\n\t\tint test=0;\n\t\tfor (int i=2; (i-n)<=1229; i++) {\n\t\t\tfor (int j=2; j<=Math.sqrt(i); j++) {\n\t\t\t\tint k=i%j;\n\t\t\t\tif (k==0) {\n\t\t\t\t\tn++;\n\t\t\t\t\ttest++;\n\t\t\t\t\tj=(int)Math.sqrt(i);\n\t\t\t\t} \n\t\t\t}\n\t\t\tif (test==0) {\n\t\t\t\tprime[index]=i;\n\t\t\t\tindex++;\n\t\t\t}\n\t\t\ttest=0;\n\t\t}\n\t\t\n\t\t//use primes to find prime factorization and sum of divisors\n\t\tint [] divides= new int[1229]; //Number of times each prime divides a number\n\t\tint [] sumOfDivisors= new int[10000]; //Sum of divisors for i at index i\n\t\tint total=0;\n\t\tint sum=1;\n\t\tindex=1;\n\t\tfor (int i=2; i<=10000; i++) {\n\t\t\tint d=i;\n\t\t\tfor (int j=0; j<1229; j++) { //find prime factorization for i\n\t\t\t\twhile (d%prime[j]==0 && d>1) {\n\t\t\t\t\td=d/prime[j];\n\t\t\t\t\tdivides[j]++;\n\t\t\t\t}\t\n\t\t\t}\n\t\t\tfor (int j=0; j<1229; j++) { //use Number theory formula for sum of divisors\n\t\t\t\tsum*=(Math.pow(prime[j], divides[j]+1)-1)/(prime[j]-1);\n\t\t\t}\n\t\t\tif (sum-i<i) { //only check if sum of divisors of i is less than i\n\t\t\t\tif (sumOfDivisors[sum-i-1]==i) { //check if amicable pair\n\t\t\t\t\ttotal=total+i+sum-i; //add both to total (only happens once)\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrays.fill(divides,0); //reset divisors array\n\t\t\tsumOfDivisors[index]=sum-i; //store number of divisors\n\t\t\tsum=1;\n\t\t\tindex++;\n\t\t}\n\t\tSystem.out.print(\"The sum of all amicable numbers less than 10000 is: \");\n\t\tSystem.out.println(total);\n long endTime = System.currentTimeMillis();\n System.out.println(\"It took \" + (endTime - startTime) + \" milliseconds.\");\n\n\t}", "private static int nextPrime(int n)\n\t{\n\t\tif( n % 2 == 0 )\n\t\t\tn++;\n\n\t\tfor( ; !isPrime(n); n += 2 );\n\n\t\treturn n;\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t\t\r\n\t\tint n = 15;\r\n\t\tint count=0;\r\n\t\t\r\n\t\tfor (int i =2;i<=n-1;i++)\r\n\t\t{\r\n\t\t\tif(n%i == 0)\r\n\t\t\t{\r\n\t\t\t\tcount++;\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tif(count==0)\r\n\t\t\t\r\n\t\t{\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"Number is a prime number\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tSystem.out.println(\"Number is not a prime number\");\r\n\t\t}\r\n\t\t\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public static boolean isPrime(int num) {\n for (int i = 2; i < num; i++) {\r\n if (num % i == 0) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static void main(String[] args) {\n\t\tint i = 2;\r\n\t\tint num = 5;\r\n\t\tint temp;\r\n\t\ttemp = num % i;\r\n\t\tif (temp == 0) {\r\n\t\t\tSystem.out.println(num + \" is not a Prime Number\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(num + \" is a Prime Number\");\r\n\t\t}\r\n\r\n\t}", "public static void Prime(int number)\n\t {\n\t \tboolean isPrime=true;\n\t \tfor(int i=2;i<=number/2;i++)\n\t \t{\n\t \tint temp;\n\t \t\n\t \ttemp=number%i;\n\t \tif(temp==0) \n\t \t{\n\t \t\tisPrime=false;\n\t \t\tFactorization(number); //Calling Factorization method\n\t \t\tbreak;\n\t \t\t\n\t \t}\n\t \t\n }\n\t \tif(isPrime)\n\t \t{\n\t \t\tSystem.out.println(\"Entered number is prime number\");\n\t\t \tcheck();\t\n\t \t}\n\t}", "public void testIsPrime(){\n boolean primo = true;\n if (primo == calcula.isPrime(5)){\n estaBien = \"OK\";\n }\n else {\n estaBien = \"ERROR\";\n }\n lista.add(estaBien);\n System.out.println(\"Comprobando testIsPrime... Parametro 5... \");\n System.out.println(\"Resultado correcto: \" + primo + \" // Resultado método: \" + calcula.isPrime(5) + \" -------------> \" + estaBien);\n System.out.println(\"---------------------------------------------------------\");\n // Este ejemplo debe devolver false \n primo = false;\n if (primo == calcula.isPrime(40)){\n estaBien = \"OK\";\n }\n else {\n estaBien = \"ERROR\";\n }\n lista.add(estaBien);\n System.out.println(\"Comprobando testIsPrime... Parametro 40... \");\n System.out.println(\"Resultado correcto: \" + primo + \" // Resultado método: \" + calcula.isPrime(40) + \" -------------> \" + estaBien);\n System.out.println(\"---------------------------------------------------------\");\n // Este ejemplo debe devolver true \n primo = true;\n if (primo == calcula.isPrime(11)){\n estaBien = \"OK\";\n }\n else {\n estaBien = \"ERROR\";\n }\n lista.add(estaBien);\n System.out.println(\"Comprobando testIsPrime... Parametro 11... \");\n System.out.println(\"Resultado correcto: \" + primo + \" // Resultado método: \" + calcula.isPrime(11) + \" -------------> \" + estaBien);\n System.out.println(\"---------------------------------------------------------\");\n // Este ejemplo debe devolver false \n primo = false;\n if (primo == calcula.isPrime(25)){\n estaBien = \"OK\";\n }\n else {\n estaBien = \"ERROR\";\n }\n lista.add(estaBien);\n System.out.println(\"Comprobando testIsPrime... Parametro 25... \");\n System.out.println(\"Resultado correcto: \" + primo + \" // Resultado método: \" + calcula.isPrime(25) + \" -------------> \" + estaBien);\n System.out.println(\"---------------------------------------------------------\");\n // Este ejemplo debe devolver true \n primo = true;\n if (primo == calcula.isPrime(47)){\n estaBien = \"OK\";\n }\n else {\n estaBien = \"ERROR\";\n }\n lista.add(estaBien);\n System.out.println(\"Comprobando testIsPrime... Parametro 47... \");\n System.out.println(\"Resultado correcto: \" + primo + \" // Resultado método: \" + calcula.isPrime(47) + \" -------------> \" + estaBien);\n System.out.println(\"---------------------------------------------------------\");\n // Este ejemplo debe devolver false \n primo = false;\n if (primo == calcula.isPrime(1)){\n estaBien = \"OK\";\n }\n else {\n estaBien = \"ERROR\";\n }\n lista.add(estaBien);\n System.out.println(\"Comprobando testIsPrime... Parametro 1...\");\n System.out.println(\"Resultado correcto: \" + primo + \" // Resultado método: \" + calcula.isPrime(1) + \" -------------> \" + estaBien);\n System.out.println(\"---------------------------------------------------------\");\n // Recorremos el ArrayList para comprobar si todos son OK o hay algún ERROR\n int contador = 0;\n for (String func : lista){\n func = lista.get(contador);\n if (!func.equals(\"OK\")){\n funciona = \"NO\";\n }\n contador = contador + 1;\n }\n System.out.println(\"El método \" + funciona + \" funciona correctamente\");\n lista.clear();\n funciona = \"SI\";\n }", "private static boolean isPrime(int number){\n for(int divisor = 2; divisor <= number / 2; divisor++){\n if(number % divisor == 0){ // If true. number is not prime\n return false;\n }\n }\n return true; // Number is prime\n }", "private boolean isPrime(int n) {\n\t\tif (n == 1 || n == 2)\n\t\t\treturn true;\n\n\t\tfor (int i = 2; i < n; i++) {\n\t\t\tif (n % i == 0)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public static int nextPrime(int n) {\r\n boolean isPrime = false;\r\n int start = 2; // start at 2 and omit your if statement\r\n\r\n while (!isPrime) {\r\n // always incrememnt n at the beginning to check a new number\r\n n += 1;\r\n // redefine max boundary here\r\n int m = (int) Math.ceil(Math.sqrt(n));\r\n\r\n isPrime = true;\r\n // increment i by 1, not 2 (you're skipping numbers...)\r\n for (int i = start; i <= m; i++) {\r\n if (n % i == 0) {\r\n isPrime = false;\r\n break;\r\n }\r\n }\r\n }\r\n return n;\r\n }", "public static void main(String[] args) {\n\t\tint n = 1000;\r\n\t\tfor (int i = 1; i < 1000; i++) {\r\n\t\t\t// System.out.println(\"\\nThe number is prime = \" + (new\r\n\t\t\t// PrimeNumberRecursion().is_prime(i, i/2)));\r\n\t\t\tif(new PrimeNumberRecursion().is_prime(i, i / 2))\r\n\t\t\tSystem.out.println(\"\\nThe number \"+ i + \"is prime = \" \r\n\t\t\t\t\t+ (new PrimeNumberRecursion().is_prime(i, i / 2)));\r\n\t\t}\r\n\t}", "public static boolean isPrime(int num) {\n\n if (num <= 1) {\n return false;\n }\n\n if (num == 2) {\n return true;\n }\n\n for (int i = 3; i < num; i++) {\n\n if (num % i == 0) {\n return false;\n }\n\n }\n\n return true;\n\n }", "private boolean isOddPrime(int t) // Not the most efficient method, but it will serve\n {\n int test = 3;\n boolean foundFactor = false;\n while(test*test < t && !foundFactor)\n {\n foundFactor = (t%test == 0); // is it divisible by test\n test += 2;\n }\n\n return !foundFactor;\n }", "public static void main(String[] args) {\n Random r = new Random();\n final int min=0, max=100;\n int num = r.nextInt(max - min) + min;\n System.out.println(\"Random integer : \"+num);\n \n System.out.println(\"The first \"+num+\" prime numbers\");\n // prime number can only be divided by itself and 1\n int loop=0; \n for (int i = 2; loop < num; i++) {\n int count=0;\n for (int j = i; j >= 1; j--) {\n if (i%j == 0) {\n count++;\n }\n }\n if (count == 2) {\n System.out.print(i+\" \");\n loop++;\n }\n }System.out.println(); \n }", "private boolean isPrime(int number) {\n if (number < 2) return false;\n if (number == 2) return true;\n if (number % 2 == 0) return false;\n for (int i = 3; i * i <= number; i += 2)\n if (number % i == 0) return false;\n return true;\n }", "private static boolean isPrime(int n) {\n\t\t//check if n is less than 2\n\t\tif (n<2) return false;\n\t\t//check if n is equal 2\n\t\tif (n==2) return true;\n\t\t//check if n is a multiple of 2\n\t\tif (n%2==0) return false;\n\t\t//if not, then just check the odds\n\t\tfor(int i=3;i*i<=n;i+=2) {\n\t\t\tif(n%i==0)\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "private boolean isPrime(long num) {\n if (num < 2) // prime numbers are positive and above 1\n return false;\n long max = (long) sqrt(num); // get the rounded square root of the number to check for primality\n for (int j = 2; j <= max; j++) {\n if (num % j == 0) {\n return false; // not a prime number as is divisible\n }\n }\n return true; // optimus prime :-)\n }" ]
[ "0.7471178", "0.7332346", "0.7259012", "0.7180565", "0.7148971", "0.7138296", "0.7132716", "0.71317583", "0.7087256", "0.70629686", "0.70586145", "0.7024704", "0.69630325", "0.693005", "0.6906388", "0.69047606", "0.6883994", "0.68763316", "0.68662125", "0.6851346", "0.68435353", "0.6841449", "0.6830428", "0.6829879", "0.6820233", "0.68180186", "0.68179405", "0.681625", "0.68161273", "0.68116295", "0.6800155", "0.6798876", "0.6790998", "0.678863", "0.6786187", "0.67813134", "0.6767461", "0.676446", "0.67635953", "0.67623425", "0.6761726", "0.67566776", "0.6742604", "0.67395586", "0.6738194", "0.673555", "0.6734243", "0.67260224", "0.6724631", "0.67179954", "0.6709993", "0.67089385", "0.670149", "0.6699855", "0.6693953", "0.66933566", "0.66916764", "0.6689639", "0.6689222", "0.66864383", "0.66761255", "0.66747105", "0.6660069", "0.6651547", "0.6645212", "0.6640717", "0.66405535", "0.66393083", "0.66386133", "0.6638397", "0.6632509", "0.6621204", "0.6617954", "0.6613803", "0.6611064", "0.6609877", "0.6609614", "0.658987", "0.6586864", "0.6583071", "0.6580881", "0.6571874", "0.6570954", "0.65624064", "0.65601206", "0.6558366", "0.6557634", "0.6557433", "0.65557253", "0.65551764", "0.6553138", "0.6538125", "0.65369606", "0.65338814", "0.65213805", "0.6518999", "0.65125823", "0.65051603", "0.65045846", "0.65000767" ]
0.6677075
60
Gets the resource bundle for the specified locale.
private ResourceBundle getBundle(final Locale aLocale) { return ResourceBundle.getBundle("dsm-report", aLocale, getClass().getClassLoader()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "ResourceBundle getResourceBundle(Locale locale);", "public java.util.ResourceBundle getResourceBundle(java.util.Locale locale)\n {\n \treturn config.getResourceBundle(locale);\n }", "ResourceBundle loadBundle (String path, Locale locale);", "static public ResourceBundle getBundle() {\r\n\r\n\t\tif (resBundle == null) {\r\n\t\t\tloadBundle();\r\n\t\t}\r\n\t\treturn resBundle;\r\n\t}", "public abstract ResourceBundle getBundle();", "public org.eclipse.stardust.engine.api.runtime.ResourceBundle\n getResourceBundle(\n java.lang.String moduleId, java.lang.String bundleName, java.util.Locale locale)\n throws org.eclipse.stardust.common.error.WorkflowException;", "private static ResourceBundle getBundle(String language) {\r\n\t\tResourceBundle bundle;\r\n\r\n\t\tLocale locale = new Locale(language);\r\n\t\tbundle = ResourceBundle.getBundle(filename, locale);\r\n\r\n\t\treturn bundle;\r\n\t}", "public static ResourceBundle getBundle() {\n return NbBundle.getBundle(I18nUtil.class);\n }", "public interface BundleLoader {\n /**\n * Returns the bundle referred to by the given path, for the given locale, or null if the\n * bundle could not be loaded.\n */\n ResourceBundle loadBundle (String path, Locale locale);\n }", "protected Resource getResource(Fault fault, Locale locale) {\r\n FaultDefinition faultDefinition = fault.getFaultDefinition();\r\n String resourceBundleSource = faultDefinition.getResourceBundleSource();\r\n \r\n logger.log(Level.FINE, \"Loading resource for bundle {0}\", resourceBundleSource);\r\n \r\n Resource resource = Resource.valueOf(resourceBundleSource, locale);\r\n return resource;\r\n }", "String getString(String bundleKey, Locale locale);", "protected ResourceBundle getBundle() {\n return _bundle;\n }", "String getString(String bundleKey, String bundleBaseName, Locale locale);", "public ResourceBundle getBundle() {\r\n\t\treturn bundle;\r\n\t}", "public interface ResourceManager {\r\n\r\n\t/**\r\n\t * Adds a resource bundle to be managed by the resource manager.\r\n\t * \r\n\t * @param bundleBaseName - the base name of the bundle to add.\r\n\t * @param locales - an array with the locales to consider for the bundle to add \r\n\t */\r\n\tvoid addBundle(String bundleBaseName, Locale... locales);\r\n\t\r\n\t/**\r\n\t * Gets the localized text for the specified bundle key, and for the resource manager default locale\r\n\t * \r\n\t * @param bundleKey\t- the key of the requested text in the resource bundle\r\n\t * @return the requested localized text\r\n\t */\r\n\tString getString(String bundleKey);\r\n\r\n\t/**\r\n\t * Gets the localized text for the specified bundle key and for the specified locale.\r\n\t * \r\n\t * @param bundleKey\t- the key of the requested text in the resource bundle\r\n\t * @param locale\t- the locale of the resource bundle\r\n\t * @return the requested localized text\r\n\t */\r\n\tString getString(String bundleKey, Locale locale);\r\n\r\n\t/**\r\n\t * Gets the localized text for the specified bundle key,\r\n\t * in the resource bundle with the given base name, and for the resource manager default locale\r\n\t * \r\n\t * @param bundleKey\t\t - the key of the requested text in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the localized text should be found\r\n\t * @return the requested localized text\r\n\t */\r\n\tString getString(String bundleKey, String bundleBaseName);\r\n\r\n\t/**\r\n\t * Gets the localized text for the specified bundle key,\r\n\t * from the resource bundle with the given base name, and for the specified locale.\r\n\t * \r\n\t * @param bundleKey\t\t - the key of the requested text in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the localized text should be found\r\n\t * @param locale \t\t - the locale of the resource bundle\r\n\t * @return the requested localized text\r\n\t */\r\n\tString getString(String bundleKey, String bundleBaseName, Locale locale);\r\n\r\n\t/**\r\n\t * Gets the localized text message for the specified bundle key, and for the resource manager default locale.<br/>\r\n\t * If the requested message contains place holders, they will be substituted by the given arguments\r\n\t * \r\n\t * @param bundleKey - the key of the requested message in the resource bundle\r\n\t * @param args \t\t- an object array with substitution parameters for the message\r\n\t * @return the requested localized text message\r\n\t */\r\n\tString getMessage(String bundleKey, Object... args);\r\n\r\n\t/**\r\n\t * Gets the localized text message for the specified bundle key, and for the specified locale.<br/>\r\n\t * If the requested message contains place holders, they will be substituted by the given arguments\r\n\t * \r\n\t * @param bundleKey - the key of the requested message in the resource bundle\r\n\t * @param args \t\t- an object array with substitution parameters for the message\r\n\t * @return the requested localized text message\r\n\t */\r\n\tString getMessage(String bundleKey, Locale locale, Object... args);\r\n\r\n\t/**\r\n\t * Gets the localized text message for the specified bundle key, and for the resource manager default locale.<br/>\r\n\t * If the requested message contains place holders, they will be substituted by the given arguments\r\n\t * \r\n\t * @param bundleKey \t - the key of the requested message in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the value should be found\r\n\t * @param locale\t\t - the locale of the resource bundle\r\n\t * @param args \t\t\t - an object array with substitution parameters for the message\r\n\t * @return the requested localized text message\r\n\t */\r\n\tString getMessage(String bundleKey, String bundleBaseName, Object... args);\r\n\r\n\t/**\r\n\t * Gets the localized text message for the specified bundle key,\r\n\t * from the resource bundle with the given base name, and for the specified locale.<br/>\r\n\t * If the requested message contains place holders, they will be substituted by the given arguments\r\n\t * \r\n\t * @param bundleKey \t - the key of the requested message in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the localized text message should be found\r\n\t * @param locale\t\t - the locale of the resource bundle\r\n\t * @param args \t\t\t - the array with substitution parameters for the message\r\n\t * @return the requested localized text message\r\n\t */\r\n\tString getMessage(String bundleKey, String bundleName, Locale locale, Object... args);\r\n\t\r\n\t/**\r\n\t * Gets the localized object for the specified bundle key, and for the resource manager default locale<br/>\r\n\t * This method should be used only if resources are stored in a subclass of {@link ResourceBundle}\r\n\t * \r\n\t * @param bundleKey - the key of the requested localized object in the resource bundle\r\n\t * @return the requested localized object\r\n\t */\r\n\tObject getObject(String bundleKey);\r\n\t\r\n\t/**\r\n\t * Gets the localized object for the specified bundle key, and for specified locale<br/>\r\n\t * This method should be used only if resources are stored in a subclass of {@link ResourceBundle}\r\n\t * \r\n\t * @param bundleKey - the key of the requested localized object in the resource bundle\r\n\t * @param locale\t- the locale of the resource bundle\r\n\t * @return the requested localized object\r\n\t */\r\n\tObject getObject(String bundleKey, Locale locale);\r\n\t\r\n\t/**\r\n\t * Gets the localized object for the specified bundle key,\r\n\t * from the resource bundle with the given name, and for the resource manager default locale<br/>\r\n\t * This method should be used only if resources are stored in a subclass of {@link ResourceBundle}\r\n\t * \r\n\t * @param bundleKey \t - the key of the requested localized object in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the localized object should be found\r\n\t * @return the requested localized object\r\n\t */\r\n\tObject getObject(String bundleKey, String bundleBaseName);\r\n\t\r\n\t/**\r\n\t * Gets the localized object for the specified bundle key,\r\n\t * from the resource bundle with the given name, and for specified locale<br/>\r\n\t * This method should be used only if resources are stored in a subclass of {@link ResourceBundle}\r\n\t * \r\n\t * @param bundleKey \t - the key of the requested localized object in the resource bundle\r\n\t * @param bundleBaseName - the name of the bundle where the localized object should be found\r\n\t * @param locale\t \t - the locale of the resource bundle\r\n\t * @return the requested localized object\r\n\t */\r\n\tObject getObject(String bundleKey, String bundleBaseName, Locale locale);\r\n\t\r\n\t/**\r\n\t * Indicates if the resource manager has to return <code>null</code> if a resource is missing\r\n\t * @return <code>true</code> if the resource manager has to return <code>null</code> for missing\r\n\t * resources, <code>false</code> otherwise\r\n\t */\r\n\tboolean isNullable();\r\n\t\r\n\t/**\r\n\t * Indicates if the resource manager has to return <code>null</code> if a resource is missing\r\n\t * @param nullable - <code>true</code> if the resource manager has to return <code>null</code>\r\n\t * \t\t\t\t\t for missing resource, <code>false</code> otherwise\r\n\t */\r\n\tvoid setNullable(boolean nullable);\r\n\r\n\t/**\r\n\t * Gets a set with the locales managed by the resource manager\r\n\t * @return a set of the locales managed by the resource manager\r\n\t */\r\n\tSet<Locale> getManagedLocales();\r\n\r\n\t/**\r\n\t * Gets the locale currently used as default by the resource manager\r\n\t * @return the locale currently used as default by the resource manager\r\n\t */\r\n\tLocale getDefaultLocale();\r\n}", "private static ICUResourceBundle getBundle(ICUResourceBundleReader reader, String baseName, String localeID, ClassLoader loader)\n/* */ {\n/* 1098 */ int rootRes = reader.getRootResource();\n/* 1099 */ ICUResourceBundleImpl bundle; if (gPublicTypes[ICUResourceBundleReader.RES_GET_TYPE(rootRes)] == 2) {\n/* 1100 */ bundle = new ICUResourceBundleImpl.ResourceTable(reader, null, \"\", rootRes, null);\n/* */ } else\n/* 1102 */ throw new IllegalStateException(\"Invalid format error\");\n/* */ ICUResourceBundleImpl bundle;\n/* 1104 */ bundle.baseName = baseName;\n/* 1105 */ bundle.localeID = localeID;\n/* 1106 */ bundle.ulocale = new ULocale(localeID);\n/* 1107 */ bundle.loader = loader;\n/* 1108 */ if (bundle.reader.getUsesPoolBundle()) {\n/* 1109 */ bundle.reader.setPoolBundleKeys(((ICUResourceBundleImpl)getBundleInstance(baseName, \"pool\", loader, true)).reader);\n/* */ }\n/* */ \n/* 1112 */ UResourceBundle alias = bundle.handleGetImpl(\"%%ALIAS\", null, bundle, null, null);\n/* 1113 */ if (alias != null) {\n/* 1114 */ return (ICUResourceBundle)UResourceBundle.getBundleInstance(baseName, alias.getString());\n/* */ }\n/* 1116 */ return bundle;\n/* */ }", "protected ResourceBundle loadBundle (String path) {\n try {\n return _loader.loadBundle(path, _locale);\n } catch (MissingResourceException mre) {\n log.warning(\"Unable to resolve resource bundle\", \"path\", path, \"locale\", _locale,\n mre);\n return null;\n }\n }", "private static ResourceBundle locateBundle(final String bundleName, final String lang) {\n \n /* Validate parameters. */\n if (bundleName == null || bundleName.equals(\"\")) { throw new IllegalArgumentException(\"bundleName must be a non-empty string.\"); }\n if (lang == null || lang.equals(\"\")) { throw new IllegalArgumentException(\"lang must be a non-empty string.\"); }\n \n /* Find fallback resource bundle. */\n ResourceBundle fallback;\n try {\n fallback = ResourceBundle.getBundle(bundleName, new Locale(\"bogus\"));\n } catch (MissingResourceException e) {\n fallback = null;\n }\n \n final Locale locale = new Locale(lang);\n ResourceBundle bundle = null;\n try {\n bundle = ResourceBundle.getBundle(bundleName, locale);\n } catch (MissingResourceException e) {\n /* No bundle was found, ignore and move on. */\n }\n \n if (bundle != fallback) { return bundle; }\n \n /* Check if the fallback is actually requested. */\n if (bundle != null && bundle == fallback && locale.getLanguage().equals(Locale.getDefault().getLanguage())) { return bundle; }\n \n /* No bundle found. */\n return null;\n }", "static private void loadBundle() {\r\n\r\n\t\tfinal Locale loc;\r\n\r\n\t\t//load the default or a forced locale\r\n\t\tif (strLanguage == null) {\r\n\t\t\tloc = Locale.getDefault();\r\n\t\t}\r\n\t\telse {\r\n\t\t\tloc = new Locale(strLanguage);\r\n\t\t}\r\n\r\n\t\tresBundle = RiskUtil.getResourceBundle(TranslationBundle.class,\"Risk\",loc);\r\n\r\n\t\t// this will work MOST of the time, but does not in lobby\r\n\t\t// for some reason it stops the classes from loading, and does not find the files\r\n\t\t//resBundle = ResourceBundle.getBundle(\"net.yura.domination.engine.translation.Risk\", loc );\r\n\r\n\r\n\t}", "Messages getApplicationCatalog(Locale locale);", "public ResourceBundle getLocalQueries(String locale) {\n if (resourceBundles.containsKey(locale)) {\n return resourceBundles.get(locale);\n } else {\n resourceBundles.put(locale, ResourceBundle.getBundle(SQL_QUERIES_PATH,\n HttpParser.parseLocaleFromString(locale)));\n return resourceBundles.get(locale);\n }\n }", "public ResourceBundle getResourceBundle() {\n \t\ttry {\n \t\t\tif (resourceBundle == null)\n \t\t\t\t// resourceBundle = ResourceBundle.getBundle(\"org.eclipse.wst.xsd.ui.internal.editor.EditorPluginResources\");\n resourceBundle = Platform.getResourceBundle(getBundle());\n \t\t} catch (MissingResourceException x) {\n \t\t\tresourceBundle = null;\n \t\t}\n \t\treturn resourceBundle;\n \t}", "public MessageBundle getBundle (String path) {\n // first look in the cache\n MessageBundle bundle = _cache.get(path);\n if (bundle != null) {\n return bundle;\n }\n\n // if it's not cached, we'll need to resolve it\n ResourceBundle rbundle = loadBundle(_prefix + path);\n\n // if the resource bundle contains a special resource, we'll interpret that as a derivation\n // of MessageBundle to instantiate for handling that class\n MessageBundle customBundle = null;\n if (rbundle != null) {\n String mbclass = null;\n try {\n mbclass = rbundle.getString(MBUNDLE_CLASS_KEY).trim();\n if (!Strings.isNullOrEmpty(mbclass)) {\n customBundle = (MessageBundle)Class.forName(mbclass).newInstance();\n }\n\n } catch (MissingResourceException mre) {\n // nothing to worry about\n\n } catch (Throwable t) {\n log.warning(\"Failure instantiating custom message bundle\", \"mbclass\", mbclass,\n \"error\", t);\n }\n }\n\n // initialize our message bundle, cache it and return it (if we couldn't resolve the\n // bundle, the message bundle will cope with its null resource bundle)\n bundle = createBundle(path, rbundle, customBundle);\n _cache.put(path, bundle);\n return bundle;\n }", "private Resources getLocalizedResources(Context context) {\n Configuration conf = context.getResources().getConfiguration();\n conf = new Configuration(conf);\n conf.setLocale(new Locale(LocaleHelper.getLocaleCode(context)));\n Context localizedContext = context.createConfigurationContext(conf);\n return localizedContext.getResources();\n }", "public Bundle getBundle() {\n \t\tcheckValid();\n \n \t\treturn getBundleImpl();\n \t}", "private ResourceBundle retrieveBundle()\r\n\t{\r\n\t\tResourceBundle rsBundle = null;\r\n\r\n\t\tlogger.ctinfo(\"CTPRU00010\");\r\n\r\n\t\t// iniatializing Property file\r\n\t\tif (propertyFileName != null)\r\n\t\t{\r\n\t\t\ttry\r\n\t\t\t{\r\n\t\t\t\trsBundle = PropertyResourceBundle.getBundle(propertyFileName);\r\n\t\t\t} catch (MissingResourceException rsEx)\r\n\t\t\t{\r\n\t\t\t\tlogger.cterror(\"CTPRU00011\", rsEx, propertyFileName);\r\n\t\t\t}\r\n\t\t} else\r\n\t\t{\r\n\t\t\tlogger.cterror(\"CTPRU00012\");\r\n\t\t}\r\n\t\tlogger.ctinfo(\"CTPRU00013\");\r\n\t\treturn rsBundle;\r\n\t}", "public static ResourceBundle getBundle(final String bundleName, final String requestParamLang, final String langFromCookie, final String serviceLang, final String browserLang, final String moriaLang) {\n \n // Sanity checks.\n if (bundleName == null || bundleName.equals(\"\"))\n throw new IllegalArgumentException(\"Resource bundle name must be a non-empty string.\");\n if (moriaLang == null || moriaLang.equals(\"\"))\n throw new IllegalArgumentException(\"Default language must be a non-empty string.\");\n \n // Build array of preferred language selections.\n final Vector langSelections = new Vector();\n \n // Check URL parameter.\n if (requestParamLang != null && !requestParamLang.equals(\"\"))\n langSelections.add(requestParamLang);\n \n // Check user cookie.\n if (langFromCookie != null)\n langSelections.add(langFromCookie);\n \n // Check service default.\n if (serviceLang != null && !serviceLang.equals(\"\"))\n langSelections.add(serviceLang);\n \n // Check user's browser settings.\n if (browserLang != null && !browserLang.equals(\"\")) {\n final String[] browserLangs = sortedAcceptLang(browserLang);\n for (int i = 0; i < browserLangs.length; i++) {\n langSelections.add(browserLangs[i]);\n }\n }\n \n // Finally, add Moria default language.\n langSelections.add(moriaLang);\n \n // Locate and return resulting resource bundle.\n ResourceBundle bundle;\n for (Enumeration e = langSelections.elements(); e.hasMoreElements();) {\n bundle = locateBundle(bundleName, (String) e.nextElement());\n if (bundle != null)\n return bundle;\n }\n \n // No bundle found?\n throw new MissingResourceException(\"Resource bundle not found\", \"ResourceBundle\", bundleName);\n }", "public String getResourceBundle()\r\n {\r\n return getSemanticObject().getProperty(swb_resourceBundle);\r\n }", "File getBundle();", "public List<MessageResource> listMessageResourceByLocale(String locale);", "public ResourceBundle getResourceBundle()\n {\n return resources;\n }", "public static void setLocale(Locale locale) {\n// Recarga las entradas de la tabla con la nueva localizacion \n RESOURCE_BUNDLE = ResourceBundle.getBundle(BUNDLE_NAME, locale);\n}", "public ResourceBundle getResourceBundle()\r\n {\r\n if (bundle == null)\r\n {\r\n String propfile = getResourceBundlePropName();\r\n bundle = ResourceBundle.getBundle(propfile);\r\n }\r\n return bundle;\r\n }", "public ResourceBundle getResourceBundle() {\r\n\t\ttry {\r\n\t\t\tif (resourceBundle == null)\r\n\t\t\t\tresourceBundle = ResourceBundle.getBundle(PLUGIN_ID + \".DebugCorePluginResources\");\r\n\t\t} catch (MissingResourceException x) {\r\n\t\t\tresourceBundle = null;\r\n\t\t}\r\n\t\treturn resourceBundle;\r\n\t}", "String getLocalizedString(Locale locale);", "public ResourceBundle getResourceBundle() {\n try {\n if (resourceBundle == null) {\n resourceBundle = ResourceBundle\n .getBundle(\"org.apache.ivyde.eclipse.IvyPluginResources\");\n }\n } catch (MissingResourceException x) {\n resourceBundle = new ResourceBundle() {\n protected Object handleGetObject(String key) {\n return null;\n }\n\n public Enumeration<String> getKeys() {\n return Collections.emptyEnumeration();\n }\n\n };\n }\n return resourceBundle;\n }", "public static ICUResourceBundle createBundle(String baseName, String localeID, ClassLoader root)\n/* */ {\n/* 1020 */ String resKey = Integer.toHexString(root.hashCode()) + baseName + localeID;\n/* 1021 */ ICUResourceBundle b = (ICUResourceBundle)cache.get(resKey);\n/* 1022 */ if (b == null) {\n/* 1023 */ String resolvedName = getFullName(baseName, localeID);\n/* 1024 */ ICUResourceBundleReader reader = ICUResourceBundleReader.getReader(resolvedName, root);\n/* */ \n/* 1026 */ if (reader == null) {\n/* 1027 */ b = NULL_BUNDLE;\n/* */ } else {\n/* 1029 */ b = getBundle(reader, baseName, localeID, root);\n/* */ }\n/* 1031 */ cache.put(resKey, b);\n/* */ }\n/* 1033 */ return b == NULL_BUNDLE ? null : b;\n/* */ }", "public static UResourceBundle getBundleInstance(String baseName, String localeID,\n ClassLoader root, boolean disableFallback){\n UResourceBundle b = instantiateBundle(baseName, localeID, root, disableFallback);\n if(b==null){\n throw new MissingResourceException(\"Could not find the bundle \"+ baseName+\"/\"+ localeID+\".res\",\"\",\"\");\n }\n return b;\n }", "public MessageResource loadMessageResourceForLocale(String messageKey, String locale) throws MessageResourceLoadException;", "private static synchronized ResourceBundle getBundle() throws IdealException {\n if (stringBundle == null) {\n if (Util.log.isDebugEnabled())\n Util.log.debug(\" Initialising Strings\");\n try {\n String bundleName = Strings.class.getPackage().getName().replace('.', '/') + \"/strings\";\n stringBundle = ResourceBundle.getBundle(bundleName);\n } catch (Exception e) {\n IdealException ex = new IdealException(ErrorCodes.IMEXME01, \"Unable to load string catalog.\", e);\n ex.setSuggestedAction(\"Distribution is corrupt, redownload from the idealdesk. \");\n throw ex;\n }\n }\n return stringBundle;\n }", "protected ResourceBundle getResourceBundle() {\n\n return (ResourceBundle) getExtraData().get(ProcessListener.EXTRA_DATA_RESOURCE_BUNDLE);\n }", "public static ResourceBundle getRB() {\r\n return rb;\r\n }", "@MethodContract(\n post = {\n @Expression(\"_basename == null ? result == null\"),\n @Expression(\"_basename == EMPTY ? result == null\")\n }\n )\n ResourceBundle loadResourceBundle(final String basename);", "public Bundle getBundle(long id) {\n \t\treturn (framework.getBundle(id));\n \t}", "public static ResourceBundle getInstance() {\n\t\treturn INSTANCE;\n\t}", "public SrvI18n() {\n try { //to fix Android Java\n messages = ResourceBundle.getBundle(\"MessagesBundle\");\n } catch (Exception e) {\n Locale locale = new Locale(\"en\", \"US\");\n messages = ResourceBundle.getBundle(\"MessagesBundle\", locale);\n }\n }", "public AbstractBundle getBundleByLocation(String location) {\n \t\treturn (framework.getBundleByLocation(location));\n \t}", "private void updateBundle() {\n\n this.bundle = ResourceBundle.getBundle(\"languages\", this.locales.get(this.currentLocaleIndex));\n }", "public BundleDescription getBundle() {\n \t\treturn bundle;\n \t}", "public static ICUResourceBundle createBundle(String baseName,\n String localeID, ClassLoader root) {\n \treturn null;\n /*\n ICUResourceBundleReader reader = ICUResourceBundleReader.getReader( baseName, localeID, root);\n if (reader == null) {\n return null;\n }\n return getBundle(reader, baseName, localeID, root);\n */\n }", "String getResourceBundleName() {\n return getPackageName() + \".\" + getShortName();\n }", "public static String getLabelBundle(String key){\r\n \tFacesContext context = FacesContext.getCurrentInstance();\r\n \tResourceBundle bundle = context.getApplication().getResourceBundle(context, Constantes.RESOURCE_BUNDLE_VAR);\r\n \treturn bundle.getString(key);\r\n }", "public ICUResourceBundle getWithFallback(String path)\n/* */ throws MissingResourceException\n/* */ {\n/* 339 */ ICUResourceBundle result = null;\n/* 340 */ ICUResourceBundle actualBundle = this;\n/* */ \n/* */ \n/* 343 */ result = findResourceWithFallback(path, actualBundle, null);\n/* */ \n/* 345 */ if (result == null) {\n/* 346 */ throw new MissingResourceException(\"Can't find resource for bundle \" + getClass().getName() + \", key \" + getType(), path, getKey());\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 351 */ return result;\n/* */ }", "public String toString(Locale locale) {\n\t\tResourceBundle bundle = null;\n\n\t\tsynchronized (BUNDLE_NAME) {\n\t\t\tif (bundleMap.get(locale) == null) {\n\t\t\t\ttry {\n\t\t\t\t\tbundle = ResourceBundle.getBundle(BUNDLE_NAME, locale);\n\n\t\t\t\t\tbundleMap.put(locale, bundle);\n\t\t\t\t} catch (MissingResourceException ex) {\n\t\t\t\t\tlogger.error(\"Unable to find resource bundle '\" + BUNDLE_NAME + \"' for locale '\" + locale + \"'.\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tbundle = bundleMap.get(locale);\n\t\t\t}\n\t\t}\n\n\t\ttry {\n\t\t\tString name = this.name();\n\t\t\t// This internally uses stringbuilder so don't need to do it\n\t\t\t// ourselves\n\t\t\tString completeMsg = bundle.getString(name);\n\t\t\treturn completeMsg;\n\t\t} catch (NullPointerException e) {\n\t\t\treturn '!' + this.name() + '!';\n\t\t} catch (MissingResourceException e) {\n\t\t\treturn '!' + this.name() + '!';\n\t\t}\n\t}", "public String getResourceBundlePath() {\n return resourceBundlePath;\n }", "public ResourceBundle newBundle\r\n\t (String baseName, Locale locale, String format, ClassLoader loader, boolean reload)\r\n\t throws IllegalAccessException, InstantiationException, IOException\r\n\t {\n\t String bundleName = toBundleName(baseName, locale);\r\n\t String resourceName = toResourceName(bundleName, \"properties\");\r\n\t ResourceBundle bundle = null;\r\n\t InputStream stream = null;\r\n\t if (reload) {\r\n\t URL url = loader.getResource(resourceName);\r\n\t if (url != null) {\r\n\t URLConnection connection = url.openConnection();\r\n\t if (connection != null) {\r\n\t connection.setUseCaches(false);\r\n\t stream = connection.getInputStream();\r\n\t }\r\n\t }\r\n\t } else {\r\n\t stream = loader.getResourceAsStream(resourceName);\r\n\t }\r\n\t if (stream != null) {\r\n\t try {\r\n\t // Only this line is changed to make it to read properties files as UTF-8.\r\n\t bundle = new PropertyResourceBundle(new InputStreamReader(stream, \"UTF-8\"));\r\n\t } finally {\r\n\t stream.close();\r\n\t }\r\n\t }\r\n\t return bundle;\r\n\t }", "String getMessage(String bundleKey, Locale locale, Object... args);", "@NotNull\n @Generated\n @Selector(\"bundle\")\n public native NSBundle bundle();", "public static void loadStrings(Locale locale) {\n\t\tFileHandle baseFileHandle = Gdx.files.internal(\"i18n/Strings\");\n\t\tstrings = I18NBundle.createBundle(baseFileHandle, locale);\n\t}", "public ResourceBundle newBundle\n (String baseName, Locale locale, String format, ClassLoader loader, boolean reload)\n throws IllegalAccessException, InstantiationException, IOException\n {\n String bundleName = toBundleName(baseName, locale);\n String resourceName = toResourceName(bundleName, \"properties\");\n ResourceBundle bundle = null;\n InputStream stream = null;\n if (reload) {\n URL url = loader.getResource(resourceName);\n if (url != null) {\n URLConnection connection = url.openConnection();\n if (connection != null) {\n connection.setUseCaches(false);\n stream = connection.getInputStream();\n }\n }\n } else {\n stream = loader.getResourceAsStream(resourceName);\n }\n if (stream != null) {\n try {\n // Only this line is changed to make it to read properties files as UTF-8.\n bundle = new PropertyResourceBundle(new InputStreamReader(stream, \"UTF-8\"));\n } finally {\n stream.close();\n }\n }\n return bundle;\n }", "public static ResManager getResManager(String packageName) {\r\n ResManager rez = (ResManager) bundles.get(packageName);\r\n if (rez==null) {\r\n rez = new ResManager(packageName);\r\n bundles.put(packageName,rez);\r\n }\r\n return rez;\r\n }", "private LocalizationProvider() {\r\n\t\tthis.language = DEFAULT_LANGUAGE;\r\n\t\tthis.bundle = ResourceBundle.getBundle(\"hr.fer.zemris.java.hw11.jnotepadapp.local.languages\",\r\n\t\t\t\tLocale.forLanguageTag(language));\r\n\t}", "String getLocalization();", "@Override\n\t\tpublic ResourceBundle newBundle(String baseName, Locale locale,\n\t\t\t\tString format, ClassLoader loader, boolean reload)\n\t\t\tthrows IllegalAccessException, InstantiationException,\n\t\t\t\tIOException {\n\t\t\tString bundleName = toBundleName(baseName, locale);\n\t\t\tString resourceName = toResourceName(bundleName, BUNDLE_EXTENSION);\n\t\t\tResourceBundle bundle = null;\n\t\t\tInputStream stream = null;\n\n\t\t\t// Create the stream.\n\t\t\tif (reload || alwaysReload) {\n\t\t\t\tURL url = loader.getResource(resourceName);\n\t\t\t\tif (url != null) {\n\t\t\t\t\tURLConnection connection = url.openConnection();\n\t\t\t\t\tif (connection != null) {\n\t\t\t\t\t\tconnection.setUseCaches(false);\n\t\t\t\t\t\tstream = connection.getInputStream();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tstream = loader.getResourceAsStream(resourceName);\n\t\t\t}\n\n\t\t\t// Create the bundle.\n\t\t\tif (stream != null) {\n\t\t\t\ttry {\n\t\t\t\t\tReader reader = new InputStreamReader(stream, CHARSET);\n\t\t\t\t\tbundle = new PropertyResourceBundle(reader);\n\t\t\t\t} finally {\n\t\t\t\t\tstream.close();\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn bundle;\n\t\t}", "public Language(String lang) {\n\t\tif (INSTANCE == null) {\n\t\t\tif (lang.equals(\"en\")) {\n\t\t\t\tINSTANCE = ResourceBundle.getBundle(\"myBundle\",Locale.ENGLISH);\n\t\t\t}\n\t\t\telse {\n\t\t\t\tINSTANCE = ResourceBundle.getBundle(\"myBundle\",Locale.FRANCE);\n\t\t\t}\n\t\t}\n\t}", "public String toBundleName(String baseName, Locale locale) {\n\n \tif(locale == fallbackLocale) {\n \t \treturn DefaultResourceBundle.class.getName();\n\t\t\t}\n\n\t\t\tif(locale == Locale.ROOT) {\n \t \treturn DefaultResourceBundle.class.getName();\n \t }\n\n\t\t\tString language = locale.getLanguage();\n\t\t\tString country = locale.getCountry();\n\t\t\tString variant = locale.getVariant();\n\n\t\t\tif(language == \"\" && country == \"\" && variant == \"\") {\n \t \treturn DefaultResourceBundle.class.getName();\n \t }\n\n\t\t\treturn super.toBundleName(baseName, locale);\n }", "public String getStringResource(LocaleResource resource){\n\t\tContext c = ConnectedApp.getContextStatic();\n\t\tswitch(resource){\t\t\n\t\tcase support_contact:\n default:\n\t\t\tint resId= c.getResources().getIdentifier(resource.toString()+\"_\"+ getCountryCode().toLowerCase(Locale.US), \"string\",\n\t\t\t\t\tc.getPackageName());\n\t\t\treturn c.getString(resId);\n\t\t}\n\t\t//return null;\n\t}", "String getString(String bundleKey, String bundleBaseName);", "public java.lang.String getBundleName(){\n return localBundleName;\n }", "ResourceType getResource();", "private static ResourceBundle getResourceBundleFor(String text) {\n ResourceBundle ret;\n\n String bundle = text.split(\"\\\\.\")[0];\n\n if (\"game\".equals(bundle)) {\n ret = AppText.gameText;\n } else if (\"menu\".equals(bundle)) {\n ret = AppText.menuText;\n } else {\n ret = AppText.globalText;\n }\n\n return ret;\n }", "String getMessage(String bundleKey, String bundleName, Locale locale, Object... args);", "protected String getResourceString (String key)\n {\n try {\n if (_bundle != null) {\n return _bundle.getString(key);\n }\n \n } catch (MissingResourceException mre) {\n Log.warning(\"Missing translation message \" +\n \"[bundle=\" + _path + \", key=\" + key + \"].\");\n }\n return null;\n }", "public Locale getPageLocale(SlingHttpServletRequest request) {\r\n LOG.debug(\"in getPageLocale method\");\r\n try {\r\n Resource resource = request.getResource();\r\n LOG.debug(\"returning locale from getPageLocale\");\r\n return getLanguageManager().getLanguage(resource);\r\n\r\n } catch (Exception e) {\r\n LOG.error(\"error in getPageLocale\", e);\r\n return null;\r\n }\r\n }", "Resource getResource();", "public String getName(Resource resource, OgemaLocale locale, boolean useRelativePathAsAlias, boolean useDefaultLanguage);", "@Bean\n public IBundleFactory getBundleFactory(IInternationalizationService internationalizationService) {\n return internationalizationService.getBundleFactory(this.getClass().getClassLoader());\n }", "public static ResourceBundle newIdioma(String idioma) {\n\t\t\r\n\t\tif (bundle == null) {\r\n\t\t\t\r\n\t\t\tswitch (idioma) {\r\n\t\t\t\r\n\t\t\tcase \"Espaņol\": \r\n\t\t\t\tbundle = ResourceBundle.getBundle(\"idiomas/es_ES\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"English\":\r\n\t\t\t\tbundle = ResourceBundle.getBundle(\"idiomas/en_UK\");\r\n\t\t\t\tbreak;\r\n\t\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tbundle = ResourceBundle.getBundle(\"idiomas/es_ES\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn bundle;\r\n\t}", "String getString(String bundleKey);", "public String getDefaultResourceBundle() {\n return mDefaultResourceBundle;\n }", "private static boolean isQualifiedLocale(Locale locale) {\r\n\t\tResourceBundle rb = ResourceBundleProvider.getAdminBundle(locale);\r\n\t\tif(isAvailable(rb, locale)) {\r\n\t\t\trb = ResourceBundleProvider.getAuditEventsBundle(locale);\r\n\t\t\tif(isAvailable(rb, locale))\t{\r\n\t\t\t\trb = ResourceBundleProvider.getExceptionsBundle(locale);\r\n\t\t\t\tif(isAvailable(rb, locale))\t{\r\n\t\t\t\t\trb = ResourceBundleProvider.getFormatBundle(locale);\r\n\t\t\t\t\tif(isAvailable(rb, locale))\t{\r\n\t\t\t\t\t\trb = ResourceBundleProvider.getPageMessagesBundle(locale);\r\n\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\trb = ResourceBundleProvider.getTermsBundle(locale);\r\n\t\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\t\trb = ResourceBundleProvider.getTextsBundle(locale);\r\n\t\t\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\t\t\trb = ResourceBundleProvider.getWordsBundle(locale);\r\n\t\t\t\t\t\t\t\t\tif(isAvailable(rb, locale)) {\r\n\t\t\t\t\t\t\t\t\t\trb = ResourceBundleProvider.getWorkflowBundle(locale);\r\n\t\t\t\t\t\t\t\t\t\treturn isAvailable(rb, locale);\r\n\t\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t}\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\treturn false;\r\n\t}", "Set<Locale> getManagedLocales();", "@Bean\n public IBundleFactory getBundleFactory() {\n IInternationalizationService internationalizationService = Locator.findMBean(IInternationalizationService.class,\n IInternationalizationService.MBEAN_NAME);\n return internationalizationService.getBundleFactory(this.getClass().getClassLoader(), this.applicationContext);\n }", "@Bean\n public IBundleFactory getBundleFactory() {\n IInternationalizationService internationalizationService = Locator.findMBean(IInternationalizationService.class,\n IInternationalizationService.MBEAN_NAME);\n return internationalizationService.getBundleFactory(this.getClass().getClassLoader(), this.applicationContext);\n }", "protected synchronized static UResourceBundle instantiateBundle(String baseName, String localeID,\n ClassLoader root, boolean disableFallback){\n ULocale defaultLocale = ULocale.getDefault();\n String localeName = localeID;\n if(localeName.indexOf('@')>0){\n localeName = ULocale.getBaseName(localeID);\n }\n String fullName = \"NULL\";\n //String fullName = ICUResourceBundleReader.getFullName(baseName, localeName);\n ICUResourceBundle b = (ICUResourceBundle)loadFromCache(root, fullName, defaultLocale);\n\n // here we assume that java type resource bundle organization\n // is required then the base name contains '.' else\n // the resource organization is of ICU type\n // so clients can instantiate resources of the type\n // com.mycompany.data.MyLocaleElements_en.res and\n // com.mycompany.data.MyLocaleElements.res\n //\n final String rootLocale = (baseName.indexOf('.')==-1) ? \"root\" : \"\";\n final String defaultID = ULocale.getDefault().toString();\n\n if(localeName.equals(\"\")){\n localeName = rootLocale;\n }\n if(DEBUG) System.out.println(\"Creating \"+fullName+ \" currently b is \"+b);\n if (b == null) {\n b = ICUResourceBundle.createBundle(baseName, localeName, root);\n\n if(DEBUG)System.out.println(\"The bundle created is: \"+b+\" and disableFallback=\"+disableFallback+\" and bundle.getNoFallback=\"+(b!=null && b.getNoFallback()));\n if(disableFallback || (b!=null && b.getNoFallback())){\n addToCache(root, fullName, defaultLocale, b);\n // no fallback because the caller said so or because the bundle says so\n return b;\n }\n\n // fallback to locale ID parent\n if(b == null){\n int i = localeName.lastIndexOf('_');\n if (i != -1) {\n String temp = localeName.substring(0, i);\n b = (ICUResourceBundle)instantiateBundle(baseName, temp, root, disableFallback);\n if(b!=null && b.getULocale().equals(temp)){\n b.setLoadingStatus(ICUResourceBundle.FROM_FALLBACK);\n }\n }else{\n if(defaultID.indexOf(localeName)==-1){\n b = (ICUResourceBundle)instantiateBundle(baseName, defaultID, root, disableFallback);\n if(b!=null){\n b.setLoadingStatus(ICUResourceBundle.FROM_DEFAULT);\n }\n }else if(rootLocale.length()!=0){\n b = ICUResourceBundle.createBundle(baseName, rootLocale, root);\n if(b!=null){\n b.setLoadingStatus(ICUResourceBundle.FROM_ROOT);\n }\n }\n }\n }else{\n UResourceBundle parent = null;\n localeName = b.getLocaleID();\n int i = localeName.lastIndexOf('_');\n\n addToCache(root, fullName, defaultLocale, b);\n\n if (i != -1) {\n parent = instantiateBundle(baseName, localeName.substring(0, i), root, disableFallback);\n }else if(!localeName.equals(rootLocale)){\n parent = instantiateBundle(baseName, rootLocale, root, true);\n }\n\n if(!b.equals(parent)){\n b.setParent(parent);\n }\n }\n }\n return b;\n }", "public ICodeBaseEntry lookupResource(String resourceName) throws ResourceNotFoundException;", "protected String toDisplayString(final String name, final Locale locale) {\n try {\n return ResourceBundle.getBundle(name, locale).getString(key);\n } catch (ClassCastException | MissingResourceException ignored) {\n return key; // return the non-localized key\n }\n }", "public static Bundle get(String name, Output<String> id, @Nullable BundleState state, @Nullable com.pulumi.resources.CustomResourceOptions options) {\n return new Bundle(name, id, state, options);\n }", "public Enumeration getLocales() {\n List list = new ArrayList();\n list.add(this.locale);\n return Collections.enumeration(list);\n }", "public ResourceBundle getHelpBundle() {\n return helpBundle;\n }", "public static Properties getProperties(String locale){\n\t\tInputStream input = null;\n\t\tProperties prop = new Properties();\n\ttry {\n\n\n\t\t//input = new FileInputStream(\"../properties/messages_\"+locale+\".properties\");\n\t\tinput = AppLocaleConstant.class.getResourceAsStream(\"/properties/messages_\"+locale+\".properties\");\n\t\t// load a properties file\n\t\tprop.load(new InputStreamReader(input, Charset.forName(\"UTF-8\")));\n\n\t} catch (IOException ex) {\n\t\tex.printStackTrace();\n\t} finally {\n\t\tif (input != null) {\n\t\t\ttry {\n\t\t\t\tinput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n\treturn prop;\n\t}", "public String getName(Class<? extends Resource> resourceType, OgemaLocale locale, boolean useDefaultLanguage);", "public List<Locale> getTranslationLocales(String edition);", "public void setLocale(final Locale locale) {\r\n messages = ResourceBundle.getBundle(PATH_TO_BUNDLE_FILE, locale);\r\n }", "public String getString(String key) {\n\t\tif (RESOURCE_BUNDLE == null) {\n\t\t\tthrow new IllegalStateException(\"RESOURCE BUNDLE not yet initialized.\");\n\t\t}\n\t\ttry {\n\t\t\treturn RESOURCE_BUNDLE.getString(key);\n\t\t} catch (MissingResourceException e) {\n\t\t\tif (bundles != null) {\n\t\t\t\t// look in added bundles\n\t\t\t\tfor (int i = 0; i < bundles.size(); i++) {\n\t\t\t\t\tResourceBundle bundle = bundles.get(i);\n\t\t\t\t\ttry {\n\t\t\t\t\t\treturn bundle.getString(key);\n\t\t\t\t\t} catch (MissingResourceException mre) {\n\t\t\t\t\t\t// resource not found\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// key unkown\n\t\t\treturn '!' + key + '!';\n\t\t}\n\t}", "private MultiResourceBundle(ResourceBundle bundle) {\n this.bundles = new LinkedList<ResourceBundle>();\n merge(bundle);\n }", "public static void changeBundle(Locale language) {\r\n\t\tMessages.resourceBundle = ResourceBundle.getBundle(BUNDLE_NAME,\r\n\t\t\t\tlanguage);\r\n\t}", "void addBundle(String bundleBaseName, Locale... locales);", "protected void initBundle (MessageBundle bundle, String path, ResourceBundle rbundle) {\n MessageBundle parentBundle = null;\n try {\n parentBundle = getBundle(rbundle.getString(\"__parent\"));\n // Note: if getBundle() fails to find our parent it will log a warning and return null\n } catch (MissingResourceException mre ) {\n // no resource named __parent: it's ok.\n }\n if (parentBundle == null) {\n parentBundle = _global;\n }\n bundle.init(this, path, rbundle, parentBundle);\n }", "public static Locale getLocale() {\n return localeInfo.get();\n }" ]
[ "0.81740576", "0.75374055", "0.7376545", "0.71167445", "0.6901095", "0.67039454", "0.6685752", "0.6651759", "0.6559802", "0.6548195", "0.6523408", "0.6345898", "0.63258433", "0.6316091", "0.62970155", "0.62680805", "0.6267496", "0.6213513", "0.6177201", "0.61573654", "0.61055046", "0.6100263", "0.60860586", "0.60855687", "0.60784364", "0.60569453", "0.6044069", "0.6037636", "0.58801764", "0.5877912", "0.5853852", "0.585374", "0.58229333", "0.5808463", "0.57556903", "0.57267076", "0.5719115", "0.5713464", "0.57059705", "0.5656258", "0.5620728", "0.56088555", "0.5598473", "0.5596017", "0.55731404", "0.5517373", "0.551347", "0.55077213", "0.5502409", "0.5442906", "0.5384903", "0.53743255", "0.53697497", "0.53287166", "0.53039545", "0.5299835", "0.528115", "0.5279707", "0.5276266", "0.5275225", "0.5261158", "0.52313256", "0.5207843", "0.5171437", "0.5165357", "0.5148059", "0.5126305", "0.5117088", "0.5110406", "0.5109432", "0.51092815", "0.50955546", "0.5090483", "0.5068578", "0.5066654", "0.50625163", "0.50425637", "0.50216055", "0.50113404", "0.4989072", "0.49825427", "0.4977226", "0.49725455", "0.49725455", "0.49602056", "0.49523535", "0.49299547", "0.49206862", "0.49081033", "0.4904273", "0.49020293", "0.4896118", "0.4891602", "0.4887403", "0.4880942", "0.48617104", "0.4857568", "0.4855521", "0.48404408", "0.48299664" ]
0.7453767
2
TODO Autogenerated method stub
public void canclePraise(int po_id) { pm.canclePraise(po_id); }
{ "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
public void addOnePraise(int po_id) { pm.addOnePraise(po_id); }
{ "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
public void subCollectedNumInPostTable(int po_id) { pm.subCollectedNumInPostTable(po_id); }
{ "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
public void addCollectedNumInPostTable(int po_id) { pm.addCollectedNumInPostTable(po_id); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
public void insetPostConImg(Post post) { pm.insert(post); }
{ "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
public List<Post> getAllPostAndItsBlockPage() { return pm.getAllPostAndItsBlockPage(); }
{ "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
public int getAllPostAndItsBlockPageCount() { return pm.getAllPostAndItsBlockPageCount(); }
{ "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
public List<Post> getPostByName(String search) { return pm.getPostByName(search); }
{ "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}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "private stendhal() {\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\r\n\tpublic void dispase() {\n\r\n\t}", "@Override\n\tprotected void initialize() {\n\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.66708666", "0.65675074", "0.65229905", "0.6481001", "0.64770633", "0.64584893", "0.6413091", "0.63764185", "0.6275735", "0.62541914", "0.6236919", "0.6223816", "0.62017626", "0.61944294", "0.61944294", "0.61920846", "0.61867654", "0.6173323", "0.61328775", "0.61276996", "0.6080555", "0.6076938", "0.6041293", "0.6024541", "0.6019185", "0.5998426", "0.5967487", "0.5967487", "0.5964935", "0.59489644", "0.59404725", "0.5922823", "0.5908894", "0.5903041", "0.5893847", "0.5885641", "0.5883141", "0.586924", "0.5856793", "0.58503157", "0.58464456", "0.5823378", "0.5809384", "0.58089525", "0.58065355", "0.58065355", "0.5800514", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57912874", "0.57896614", "0.5789486", "0.5786597", "0.5783299", "0.5783299", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5773351", "0.5760369", "0.5758614", "0.5758614", "0.574912", "0.574912", "0.574912", "0.57482654", "0.5732775", "0.5732775", "0.5732775", "0.57207066", "0.57149917", "0.5714821", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57132614", "0.57115865", "0.57045746", "0.5699", "0.5696016", "0.5687285", "0.5677473", "0.5673346", "0.56716853", "0.56688815", "0.5661065", "0.5657898", "0.5654782", "0.5654782", "0.5654782", "0.5654563", "0.56536144", "0.5652585", "0.5649566" ]
0.0
-1
TODO Autogenerated method stub
public List<Post> getPrisePostById(int id) { return pm.getPrisePostByUserId(id); }
{ "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
public List<Post> getMyPostById(int id) { return pm.getMyPostById(id); }
{ "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
get the list of all the appointments
@Override public List<Cita> getAppointmentList() { // find all users List<User> users = (List<User>) userService.findAll(); // create a new arrayList of appointments List<Cita> appointments = new ArrayList<>(); // iterate over the list of all the users for (Iterator<User> user = users.iterator(); user.hasNext();) { // get the user from the forEach User getUser = user.next(); // iterate over the AppointmentList for (Cita item : getUser.getCitas()) { // check if the class is not empty if (item != null) { appointments.add(item); } } } return appointments; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic List<Appointment> getAllAppointments() {\n\t\t\t\tList<Appointment> appointmentsList = new ArrayList<Appointment>();\n\t\t\t\ttry {\n\t\t\t\t\tappointmentsList = ar.findAll();\n\t\t\t\t}catch(Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t\tappointmentsList = null;\n\t\t\t\t}\n\t\t\t\treturn appointmentsList ;\n\t}", "public List<Appointment> getAppointments(){\n return appointments;\n }", "@RequestMapping(path = \"/\", method = RequestMethod.GET)\n\tList<Appointment> findAll() {\n\t\treturn appointmentService.findAll();\n\t}", "public Iterator<Appointment> appointments() {\n return appointments.iterator();\n }", "public List<Appointment> getAllDetailsRecp();", "List<Appointment> getCurrentlyAppointment();", "public Iterator<Appointment> appointments()\n {\n return this.agenda.iterator();\n }", "@Override\n\tpublic List<Appointment> getUpcomingAppointments() {\n\t\treturn mobileDao.getUpcomingAppointments();\n\t}", "public ArrayList<Appointment> getAllAppointments() {\n ArrayList<Appointment> array_list = new ArrayList<Appointment>();\n\n SQLiteDatabase db = this.getReadableDatabase();\n Cursor res = db.rawQuery( \"SELECT * FROM bus_table \", null );\n\n res.moveToFirst();\n\n while(res.isAfterLast() == false){\n Integer id = res.getInt(res.getColumnIndex(\"ID\"));\n String Busfrom = res.getString(res.getColumnIndex(\"BUSFROM\"));\n String Busto = res.getString(res.getColumnIndex(\"BUSTO\"));\n String BusTime = res.getString(res.getColumnIndex(\"BUSTIME\"));\n String BusPrice = res.getString(res.getColumnIndex(\"BUSTICKET\"));\n String BusSeats = res.getString(res.getColumnIndex(\"BUSSEATS\"));\n Appointment appointment = new Appointment(id, Busfrom, Busto, BusTime, BusPrice,BusSeats);\n array_list.add(appointment);\n res.moveToNext();\n }\n return array_list;\n }", "private void loadAppointmentList(){\n try {\n MyDBHandler dbHandler = new MyDBHandler(this);\n appointments.clear();\n ArrayList<String> myApps = new ArrayList<String>();\n\n appointments.addAll(dbHandler.getAllAppointmentFromServiceProvider(companyID));\n\n for(Appointment appointment: appointments)\n myApps.add(dbHandler.getServiceTypeName(appointment.getServiceType_id()) + \" / \" +\n getDayName(appointment.getDay_id()) + \" at \" +\n appointment.getStart_time() + \" to \" +\n appointment.getEnd_time()\n );\n\n if(myApps.size()==0) {\n myApps.add(EMPTY_TEXT_LV2);\n }\n ArrayAdapter<String> data = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, myApps);\n lv_Appointment.setAdapter(data);\n\n }catch(Exception ex){\n Toast.makeText(this,ex.getMessage(),Toast.LENGTH_LONG).show();\n }\n }", "@GetMapping(\"/sys-appointments\")\n @Timed\n public List<SysAppointment> getAllSysAppointments() {\n log.debug(\"REST request to get all SysAppointments\");\n return sysAppointmentService.findAll();\n }", "public List<String> getFormattedAppointments(){\n List formattedAppointments = new ArrayList();\n for (int i = 0; i < appointments.size(); i++) {\n Appointment a = appointments.get(i);\n String appInfo = (\"Date and time: \" + a.getFormattedDate() + \" Doctor: \" + a.getDoctor().getName() + \" Symptom: \" + a.getSympton() + \" Status: \" + a.getStatus());\n formattedAppointments.add(appInfo);\n }\n return formattedAppointments;\n }", "public final List<Appointment> getAppointmentsFor(LocalDate date) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n LocalDate startDate = a.getInterval().getStartDate();\n LocalDate endDate = a.getInterval().getEndDate();\n return startDate.equals(date) || endDate.equals(date);\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }", "public ObservableList<Appointment> getAppointmentList() {\n ObservableList<Appointment> appointmentList = FXCollections.observableArrayList();\n Iterator it = followup.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry) it.next();\n appointmentList.add(new Appointment(\"[F] \" + pair.getKey(), (int) pair.getValue()));\n }\n it = reminders.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry) it.next();\n appointmentList.add(new Appointment(\"[R] \" + pair.getKey(), (int) pair.getValue()));\n }\n\n return appointmentList;\n }", "public java.util.List<Reference> appointment() {\n return getList(Reference.class, FhirPropertyNames.PROPERTY_APPOINTMENT);\n }", "public void showAppointments()\n {\n System.out.println(\"=== Day \" + dayNumber + \" ===\");\n int time = START_OF_DAY;\n for(Appointment appointment : appointments) {\n System.out.print(time + \": \");\n if(appointment != null) {\n System.out.println(appointment.getDescription());\n }\n else {\n System.out.println();\n }\n time++;\n }\n }", "ObservableList<Appointment> getFilteredAppointmentList();", "public List<Appointment> findBypid(int pid) {\n\t\treturn appointmentDao.findBypid(pid);\n\t}", "public static ObservableList<Appointment> getAppointmentsForMonth (int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate begin = LocalDate.now();\n LocalDate end = LocalDate.now().plusMonths(1);\n try(Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + begin + \"' AND start <= '\" + end + \"'\" );\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "public static ObservableList<Appointment> getAppoinmentsForWeek(int id) {\n ObservableList<Appointment> appointments = FXCollections.observableArrayList();\n Appointment appointment;\n LocalDate beginWeek = LocalDate.now();\n LocalDate endWeek = LocalDate.now().plusWeeks(1);\n try (Connection conn =DriverManager.getConnection(DB_URL, user, pass);\n Statement statement = conn.createStatement()) {\n ResultSet resultSet = statement.executeQuery(\"SELECT * FROM appointment WHERE customerId = '\" + id + \"' AND \" + \n \"start >= '\" + beginWeek + \"' AND start <= '\" + endWeek + \"'\");\n \n while(resultSet.next()) {\n appointment = new Appointment(resultSet.getInt(\"appointmentId\"),resultSet.getInt(\"customerId\"), resultSet.getString(\"title\"),\n resultSet.getString(\"description\"), resultSet.getString(\"location\"),resultSet.getString(\"contact\"),resultSet.getString(\"url\"), \n resultSet.getTimestamp(\"start\"), resultSet.getTimestamp(\"end\"), resultSet.getDate(\"start\"), \n resultSet.getDate(\"end\"),resultSet.getString(\"createdby\"));\n appointments.add(appointment);\n }\n \n statement.close();\n return appointments;\n } catch (SQLException e) {\n System.out.println(\"SQLException: \" + e.getMessage());\n return null;\n }\n }", "public List<Appointment> getAppointmentByStatus(AppointmentStatus a){\n List<Appointment> appList = new ArrayList();\n try{\n appointments.stream().filter((app) -> (app.getStatus()==a)).forEachOrdered((app) -> {\n appList.add(app);\n });\n return appList;\n }\n catch(Exception e){\n return appList;\n }\n }", "public ArrayList<Appointment> getAppointmentRequests()\n {\n AppointmentListSingleton appointments = AppointmentListSingleton.getInstance();\n \n return appointments.getStateList(Appointment.AppointmentState.REQUESTED);\n }", "List<Appointment> getAppointmentByCustomerNumber(long customerNumber);", "public void displayAppointmentsOnDate(Date date) {\n ArrayList<Appointment> appts = new ArrayList<>();\n String doctorID = getIntent().getStringExtra(\"doctorID\");\n\n // Get doctor's availableAppointmentIDs\n FirebaseDatabase.getInstance().getReference(Constants.FIREBASE_PATH_USERS)\n .child(doctorID)\n .child(Constants.FIREBASE_PATH_USERS_APPTS_AVAILABLE)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(DataSnapshot availableApptIDsSnapshot) {\n for (DataSnapshot availableApptIDChild : availableApptIDsSnapshot.getChildren()) { // Loop through all of doctor's availableApptIDs\n String availableApptID = availableApptIDChild.getValue(String.class);\n\n // For each availableAppointmentID, get the Appointment object\n FirebaseDatabase.getInstance().getReference(Constants.FIREBASE_PATH_APPOINTMENTS)\n .child(availableApptID)\n .addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot availableApptSnapshot) {\n Appointment appt = availableApptSnapshot.getValue(Appointment.class);\n if (appt != null && !appt.isBooked() && !appt.isPassed() && DateUtility.isSameDay(appt.getDate(), date)) {\n appts.add(appt);\n displayAppointments(appts);\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) { // Error: Appointment associated w/ availableAppointmentID not found\n Toast.makeText(getApplicationContext(), \"Error: Couldn't find available appointment\", Toast.LENGTH_SHORT).show();\n }\n });\n }\n }\n @Override\n public void onCancelled(@NonNull DatabaseError error) { // Error: No availableAppointmentIDs found\n Toast.makeText(getApplicationContext(), \"Error: No available appointments\", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public ResultSet readAll() throws SQLException {\r\n String statement = \"SELECT * FROM appointments\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }", "public Appointments(){\n\t\tsetDate(0);\n\t\tsetTime(0);\n\t\tsetClient(null);\n\t\tappointmentStatus = false;\n\t}", "public int getAppointments()\n\t{\n\t\tint appointments=0;\n\t\tString query=\"select count(*) from appointments where status=?\";\n\t\ttry\n\t\t{\n\t\t\tConnection con=DBInfo.getConn();\t\n\t\t\tPreparedStatement ps=con.prepareStatement(query);\n\t\t\tps.setString(1, \"not_donated\");\n\t\t\tResultSet res=ps.executeQuery();\n\t\t\twhile(res.next())\n\t\t\t{\n\t\t\t\tappointments=res.getInt(1);\n\t\t\t}\n\t\t\tcon.close();\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn appointments;\n\t}", "public ObservableList<Appointment> getAppointmentsByContact(int contactId) throws SQLException {\r\n ObservableList<Appointment> matchedAppointments = FXCollections.observableArrayList();\r\n String statement = \"SELECT * FROM appointments WHERE Contact_ID = \" + contactId;\r\n ResultSet rs = conn.prepareStatement(statement).executeQuery();\r\n while (rs.next()) {\r\n Appointment a = new Appointment();\r\n a.setAppointmentId(rs.getInt(\"Appointment_ID\"));\r\n a.setTitle(rs.getString(\"Title\"));\r\n a.setType(rs.getString(\"Type\"));\r\n a.setDescription(rs.getString(\"Description\"));\r\n a.setStartTime(rs.getTimestamp(\"Start\").toLocalDateTime().atZone(ZoneId.systemDefault()));\r\n a.setEndTime(rs.getTimestamp(\"End\").toLocalDateTime().atZone(ZoneId.systemDefault()));\r\n a.setCustomer(SchedulingData.findCustomer(rs.getInt(\"Customer_ID\")));\r\n //SchedulingData.findCustomer(rs.getInt(\"Customer_ID\"))\r\n //rs.getTimestamp(\"Start\").toLocalDateTime().atZone(userZone)\r\n matchedAppointments.add(a);\r\n }\r\n return matchedAppointments;\r\n\r\n }", "public String outputAppointments() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Reminders:\\n\");\n if (reminders.size() < 1) {\n sb.append(\"No reminders found.\\n\");\n } else {\n Iterator it = reminders.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry) it.next();\n sb.append(pair.getKey() + \": for \" + pair.getValue() + \" days\\n\");\n }\n }\n sb.append(\"\\nFollow-ups:\\n\");\n if (followup.size() < 1) {\n sb.append(\"No follow-ups found.\\n\");\n } else {\n Iterator it = followup.entrySet().iterator();\n while (it.hasNext()) {\n HashMap.Entry pair = (HashMap.Entry) it.next();\n sb.append(pair.getKey() + \": in \" + pair.getValue() + \" days\\n\");\n }\n }\n return sb.toString();\n }", "List<WorkingSchedule> getAll();", "@Override\n\tpublic List<Appointment> findCarAppoinmentX() {\n\t\treturn appointmentMapper.findCarAppoinmentX();\n\t}", "@FXML\n void OnActionViewAllAppointments(ActionEvent event) {\n getTableData();\n MSAppointmentsTableView.setItems(allAppointments);\n }", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and SUBSTRING(a.startMoment, 1, 10) = SUBSTRING(current_timestamp, 1, 10) order by a.startMoment asc\")\n\tCollection<Appointment> findAllTodayActiveByDoctor(int doctorId);", "public List<Events> getAllSystemEventsListForAll();", "public void clearAppointments(){\n appointments.clear();\n }", "public final List<Appointment> getAppointmentsBetween(Interval interval) {\n List<Appointment> appts = new ArrayList<>();\n\n this.appointments.stream().filter(a -> {\n return interval.intersects(a.getInterval());\n }).forEachOrdered(a -> {\n appts.add(a);\n });\n\n return appts;\n }", "List<Appointment> getAppointmentOfNMonth(int month);", "public static ResultSet getAppointments(String day,String start,String partner){\r\n\t\ttry{\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"SELECT Start,End FROM Appointment WHERE Date = ?;\");\r\n\t\t\tstmt.setString(1, day);\r\n\t\t\tdata = stmt.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "public String GetContactSchedules(List<AppointmentModel> appointments, List<ContactModel> contacts,\n LocalizationService localizationService, Locale locale) throws Exception\n {\n String report = startEndReport + startEndReport;\n String ID = localizationService.GetLocalizedMessage(\"ID\", locale);\n String title = localizationService.GetLocalizedMessage(\"title\", locale);\n String type = localizationService.GetLocalizedMessage(\"type\", locale);\n String description = localizationService.GetLocalizedMessage(\"description\", locale);\n String startDateTime = localizationService.GetLocalizedMessage(\"startdate\", locale);\n String endDateTime = localizationService.GetLocalizedMessage(\"enddate\", locale);\n String customerID = localizationService.GetLocalizedMessage(\"customerID\", locale);\n\n String header = \"\\n\" + ID + \"\\t\\t\" + customerID + \"\\t\" + title + \"\\t\\t\\t\" + type + \"\\t\\t\" + startDateTime + \"\\t\\t\\t\\t\" +\n endDateTime + \"\\t\\t\\t\" + description + \"\\n\";\n\n for (ContactModel contact : contacts)\n {\n report += \"\\n\" + contact.getContactName() + \"\\n\";\n report += header;\n\n List<AppointmentModel> contactAppointments = appointments.stream().filter(x ->\n x.getContactID() == contact.getContactID()).\n collect(Collectors.toList());\n\n for (AppointmentModel appointment : contactAppointments)\n {\n report += \"\\n\" + appointment.getAppointmentID() + \"\\t\\t\" + appointment.getCustomerID() + \"\\t\\t\\t\" + appointment.getTitle() + \"\\t\\t\" +\n appointment.getAppointmentType().toString() + \"\\t\" +\n appointment.getFormattedLocalStartDate() + \"\\t\\t\" + appointment.getFormattedLocalEndDate() + \"\\t\\t\" + appointment.getDescription() + \"\\n\";\n }\n }\n report += startEndReport + startEndReport;\n return report;\n }", "@GetMapping(\"/Appointments/{id}\")\n public List<Appointment> findAllAppointmentsForASession(@PathVariable(name=\"id\") Integer SessionId, Authentication authentication) {\n return providerServiceImpl.findAllAppointmentsForASession(SessionId, authentication.getName());\n }", "public static ResultSet getAppointments(String currentDate,String partner){\r\n\t\ttry{\r\n\t\t\t// this is how you connect\r\n\t\t\tconnection = DriverManager.getConnection(connectionString);\r\n\t\t\tstmt = connection.prepareStatement(\"SELECT * FROM Appointment WHERE Date = ? AND Partner = ? ORDER BY Start ASC;\");\r\n\t\t\tstmt.setString(1, currentDate);\r\n\t\t\tstmt.setString(2, partner);\r\n\t\t\tdata = stmt.executeQuery();\r\n\t\t}\r\n\t\tcatch (SQLException ex){\r\n\t\t\tex.printStackTrace();\r\n\t\t}\r\n\t\treturn data;\r\n\t}", "public static AppointmentTable getDefaultAppointments() {\n AppointmentTable def = new AppointmentTable();\n return def;\n }", "public final List<Meeting> listAllMeeting() {\n\t\tList<Meeting> results;\n\t\tfinal TypedQuery<Meeting> query;\n\t\tquery = em.createQuery(\"SELECT e FROM Meeting e \"\n\t\t\t\t+ \"ORDER BY e.startDate DESC \", Meeting.class);\n\t\tresults = query.getResultList();\n\t\treturn results;\n\t}", "@Test\n\tpublic void testShowAllAppointments() {\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\tHttpEntity<String> entity = new HttpEntity<String>(null, headers);\n\t\tResponseEntity<String> response = restTemplate.exchange(getRootUrl() + \"/app2\",HttpMethod.GET, entity, String.class);\n\t\tassertEquals(200, response.getStatusCodeValue());\n\t}", "@Override\n public void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n\n // Create object of CalendarInteraction class\n CalendarInteraction mCalHelper = new CalendarInteraction(getActivity());\n appointmentGetter = new AppointmentGetter();\n\n\n // Retrieve data from the calender via the CalendarHelper Class\n Cursor data = mCalHelper.getData();\n\n // Create an arraylist of AppointModels\n ArrayList<AppointModel> appointmentList = new ArrayList<>();\n\n if (data != null){\n while (data.moveToNext())\n {\n appointModel = appointmentGetter.getData(data);\n // Add the appointment model to the arraylist\n appointmentList.add(appointModel);\n }\n\n data.close();\n\n }\n\n\n // Close off the cursor\n\n // Maak de adapter hier\n AppointModel appointModel_data[] = new AppointModel[appointmentList.size()];\n\n // Create the adapter\n appointAdapter = new AppointAdapter(listener,\n R.layout.appoint_list_layout, appointModel_data);\n\n // Keep track of amount of models\n\n // Create an array of objects filled with the models from the AppointModel\n // arraylist. This array will then be used in conjunction with the appointAdapter\n // to create the list of appointments\n\n\n\n for (AppointModel a : appointmentList) {\n appointModel_data[count] = new AppointModel(\n a.getEventID(),\n a.getTime(),\n a.getDate(),\n a.getAppointName(),\n a.getWardName(),\n a.getDoctorName()\n );\n\n count += 1;\n }\n\n\n\n\n }", "@Override\n\tpublic List<AppointmentDto> getAllAppointmentHavingPitch() {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_ALL_HAVING_PITCH, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t});\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public List<Appointment> getAllDetailsDoc(int dId) throws ClassNotFoundException;", "@GetMapping(\"/appointments/consultant/{id}\")\n public List<Appointment> getAllAppointmentsByConsultantId(@PathVariable(\"id\")Long consultantId) {\n return appointmentService.findAllAppointmentsByConsultant(consultantId);\n }", "public void setupAppointments() {\n\n\t\t// // remember for animation\n\t\t// final List<AbstractClusteredDayAppointmentPane>\n\t\t// lOldClusteredDayAppointmentPanes = new\n\t\t// ArrayList<AbstractClusteredDayAppointmentPane>(\n\t\t// clusteredAppointmentPanes);\n\t\t// final List<WholedayAppointmentPane> lOldWholedayAppointmentPanes =\n\t\t// new ArrayList<WholedayAppointmentPane>(\n\t\t// wholedayAppointmentPanes);\n\t\t//\n\t\t// // clear\n\t\t// clusteredAppointmentPanes.clear();\n\t\t// wholedayAppointmentPanes.clear();\n\t\t// if (calendarObjectProperty.get() == null) {\n\t\t// return;\n\t\t// }\n\t\t//\n\t\t// // scan all appointments and filter the ones for this day\n\t\t// for (Agenda.Appointment lAppointment : getSkinnable().appointments())\n\t\t// {\n\t\t//\n\t\t// // different panes depending on the appointment time\n\t\t// if (lAppointment.isWholeDay()) {\n\t\t//\n\t\t// // if appointment falls on the same date as this day pane\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointment.getStartTime())) {\n\t\t// WholedayAppointmentPane lAppointmentPane = new\n\t\t// WholedayAppointmentPane(\n\t\t// lAppointment, this);\n\t\t// wholedayAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane.setId(lAppointmentPane.getClass()\n\t\t// .getSimpleName() + wholedayAppointmentPanes.size());\n\t\t// }\n\t\t// } else if (lAppointment.getEndTime() == null) {\n\t\t//\n\t\t// // an not-wholeday appointment without an enddate is a task\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointment.getStartTime())) {\n\t\t// TaskAppointmentPane lAppointmentPane = new TaskAppointmentPane(\n\t\t// lAppointment, this);\n\t\t// clusteredAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane\n\t\t// .setId(lAppointmentPane.getClass().getSimpleName()\n\t\t// + clusteredAppointmentPanes.size());\n\t\t// }\n\t\t// } else {\n\t\t// // appointments may span multiple days, but the appointment pane\n\t\t// // will clamp the start and end date\n\t\t// RegularAppointmentPane lAppointmentPane = new RegularAppointmentPane(\n\t\t// lAppointment, this);\n\t\t//\n\t\t// // check if the appointment falls in the same day as this day\n\t\t// // pane\n\t\t// if (isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointmentPane.start)\n\t\t// && isSameDay(calendarObjectProperty.get(),\n\t\t// lAppointmentPane.end)) {\n\t\t// clusteredAppointmentPanes.add(lAppointmentPane);\n\t\t// lAppointmentPane\n\t\t// .setId(lAppointmentPane.getClass().getSimpleName()\n\t\t// + clusteredAppointmentPanes.size());\n\t\t// }\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// // sort on start time and then decreasing duration\n\t\t// Collections.sort(clusteredAppointmentPanes,\n\t\t// new Comparator<AbstractDayAppointmentPane>() {\n\t\t// @Override\n\t\t// public int compare(AbstractDayAppointmentPane o1,\n\t\t// AbstractDayAppointmentPane o2) {\n\t\t// if (o1.startAsString.equals(o2.startAsString) == false) {\n\t\t// return o1.startAsString.compareTo(o2.startAsString);\n\t\t// }\n\t\t// return o1.durationInMS > o2.durationInMS ? -1 : 1;\n\t\t// }\n\t\t// });\n\t\t//\n\t\t// // start placing appointments in the tracks\n\t\t// AbstractClusteredDayAppointmentPane lClusterOwner = null;\n\t\t// for (AbstractClusteredDayAppointmentPane lAppointmentPane :\n\t\t// clusteredAppointmentPanes) {\n\t\t// // if there is no cluster owner\n\t\t// if (lClusterOwner == null) {\n\t\t//\n\t\t// // than the current becomes an owner\n\t\t// // only create a minimal cluster, because it will be setup fully\n\t\t// // in the code below\n\t\t// lClusterOwner = lAppointmentPane;\n\t\t// lClusterOwner.clusterTracks = new\n\t\t// ArrayList<List<AbstractClusteredDayAppointmentPane>>();\n\t\t// }\n\t\t//\n\t\t// // in which track should it be added\n\t\t// int lTrackNr = determineTrackWhereAppointmentCanBeAdded(\n\t\t// lClusterOwner.clusterTracks, lAppointmentPane);\n\t\t// // if it can be added to track 0, then we have a \"situation\". Track\n\t\t// // 0 could mean\n\t\t// // - we must start a new cluster\n\t\t// // - the appointment is still linked to the running cluster by means\n\t\t// // of a linking appointment in the higher tracks\n\t\t// if (lTrackNr == 0) {\n\t\t//\n\t\t// // So let's see if there is a linking appointment higher up\n\t\t// boolean lOverlaps = false;\n\t\t// for (int i = 1; i < lClusterOwner.clusterTracks.size()\n\t\t// && lOverlaps == false; i++) {\n\t\t// lOverlaps =\n\t\t// checkIfTheAppointmentOverlapsAnAppointmentAlreadyInThisTrack(\n\t\t// lClusterOwner.clusterTracks, i, lAppointmentPane);\n\t\t// }\n\t\t//\n\t\t// // if it does not overlap, we start a new cluster\n\t\t// if (lOverlaps == false) {\n\t\t// lClusterOwner = lAppointmentPane;\n\t\t// lClusterOwner.clusterMembers = new\n\t\t// ArrayList<AbstractClusteredDayAppointmentPane>();\n\t\t// lClusterOwner.clusterTracks = new\n\t\t// ArrayList<List<AbstractClusteredDayAppointmentPane>>();\n\t\t// lClusterOwner.clusterTracks\n\t\t// .add(new ArrayList<AbstractClusteredDayAppointmentPane>());\n\t\t// }\n\t\t// }\n\t\t//\n\t\t// // add it to the track (and setup all other cluster data)\n\t\t// lClusterOwner.clusterMembers.add(lAppointmentPane);\n\t\t// lClusterOwner.clusterTracks.get(lTrackNr).add(lAppointmentPane);\n\t\t// lAppointmentPane.clusterOwner = lClusterOwner;\n\t\t// lAppointmentPane.clusterTrackIdx = lTrackNr;\n\t\t// // for debug System.out.println(\"----\"); for (int i = 0; i <\n\t\t// // lClusterOwner.clusterTracks.size(); i++) { System.out.println(i +\n\t\t// // \": \" + lClusterOwner.clusterTracks.get(i) ); }\n\t\t// // System.out.println(\"----\");\n\t\t// }\n\t\t//\n\t\t// // laying out the appointments is fairly complex, so we use listeners\n\t\t// // and a relayout method instead of binding\n\t\t// relayout();\n\t\t//\n\t\t// // and swap the appointments; old ones out, new ones in\n\t\t// // TODO: animation? we could move the old appointments to the\n\t\t// equivalent\n\t\t// // positions on the drag pane, then animate them to their new\n\t\t// positions,\n\t\t// // remove the old, and insert the new ones.\n\t\t// // however, this needs to be cross-days, so it cannot be done here\n\t\t// (this\n\t\t// // is only one day), but after the complete setupAppointments()\n\t\t// getChildren().removeAll(lOldClusteredDayAppointmentPanes);\n\t\t// getChildren().removeAll(lOldWholedayAppointmentPanes);\n\t\t// getChildren().addAll(wholedayAppointmentPanes);\n\t\t// getChildren().addAll(clusteredAppointmentPanes);\n\t\t//\n\t\t// // we're done, now have the header updated\n\t\t// dayHeaderPane.setupAppointments();\n\t}", "public void printApp(Date dat)\n {\n if(cal.containsKey(dat)){\n List x = [];\n x = cal.get(dat);\n System.out.println(\"Your appointments for \" + dat + \"are: \\n\");\n for(int i = 0; i<x.size(); i++){\n System.out.println(x.get(i).getStartTime() + x.get(i).getEndTime() + x.get(i).getDescription());\n }\n }else{\n System.out.println(\"No appointments\");\n }\n \n }", "@RequestMapping(value=\"/host/appointments/page/{pageno}/{pagesize}\",method=RequestMethod.GET)\n\tpublic String getUserAllHostAppointmentsWithPaging(Principal principal, @PathVariable int pageno, @PathVariable int pagesize){\n\t\tif(!Account.findRole(principal.getName()).equals(\"0\")) throw new PermissionErrorException();\n\t\tList<Appointment> appointments = appointmentService.getUserAllHostAppointmentsWithPaging(Account.findMobile(principal.getName()), pageno, pagesize);\n\t\treturn JsonConverterUtil.convertSetToJsonString(appointments);\t\n\t}", "@Override\r\n\tpublic ArrayList<Activitat> getAll() {\r\n\t\tint i = 0;\r\n\t\tqueryString = \"SELECT * FROM \" + ACTIVITATTABLENAME;\r\n\t\tArrayList<Activitat> llistaActivitats = null;\r\n\t\ttry {\r\n\t\t\ts = conexio.prepareStatement(queryString);\r\n\t\t\tResultSet rs = s.executeQuery();\r\n\t\t\tllistaActivitats = new ArrayList<Activitat>();\r\n\t\t\tActivitatFactory af = af = new ActivitatFactory();\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tCalendar cal = new GregorianCalendar();\r\n\t\t\t\tcal.setTime(rs.getDate(4));\r\n\t\t\t\t\r\n\t\t\t\tllistaActivitats.add(af.creaActivitat(rs.getString(2), rs.getString(3), cal, rs.getTimestamp(5),rs.getString(6),rs.getBoolean(7)));\r\n\t\t\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\treturn llistaActivitats;\r\n\t}", "public abstract List getAllOverlapAppt(String provider, Date startTime,\r\n\t\t\tDate endTime);", "Collection<CalendarEvent> getActiveEvents(long when)\n{\n List<CalendarEvent> rslt = new ArrayList<CalendarEvent>();\n try {\n getAllEvents(when);\n rslt.addAll(cal_events);\n }\n catch (Exception e) {\n BasisLogger.logE(\"GOOGLECAL: problem getting events\",e);\n }\n return rslt;\n}", "List<Appointment> getAppointmentByLawyerNumber(long lawyerNumber);", "public static ArrayList<APIAppointment> GetAppointmentsFromSampleData(String nodeFilePath, String nodePath) {\n ArrayList<APIAppointment> API_Appointments = new ArrayList<APIAppointment>();\n\n try {\n // Get the SAXReader object \n SAXReader reader = new SAXReader();\n // Get the xml document object by sax reader. \n Document document = reader.read(nodeFilePath);\n List<Node> nodes = document.selectNodes(nodePath);\n\n // Read all the node inside xpath nodes and print the value of each \n for (Node node : nodes) {\n\n APIAppointment API_Appointment = new APIAppointment();\n API_Appointment.setAltID(\"\".equals(node.valueOf(\"AltID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"AltID\"), \"\".getClass(),\n node.valueOf(\"AltID\")));\n API_Appointment.setAttendees(\"\".equals(node.valueOf(\"Attendees\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"Attendees\"), \"\".getClass(),\n node.valueOf(\"Attendees\")));\n API_Appointment.setEnd(\"\".equals(node.valueOf(\"End\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"End\"), XMLGregorianCalendar.class,\n DatatypeFactory.newInstance().newXMLGregorianCalendar(API_Helper.ConvertLocalTimeToUTC(node.valueOf(\"End\")))));\n API_Appointment.setEventOrMeeting(\"\".equals(node.valueOf(\"EventOrMeeting\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"EventOrMeeting\"), APIEnumEventOrMeeting.class,\n APIEnumEventOrMeeting.valueOf(APIEnumEventOrMeeting.fromValue(node.valueOf(\"EventOrMeeting\")).toString())));\n API_Appointment.setGWMeetingID(\"\".equals(node.valueOf(\"GW_MeetingID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"GWMeetingID\"), \"\".getClass(),\n node.valueOf(\"GW_MeetingID\")));\n API_Appointment.setIsPrivate(\"\".equals(node.valueOf(\"IsPrivate\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"IsPrivate\"), Boolean.class,\n Boolean.parseBoolean(node.valueOf(\"IsPrivate\"))));\n API_Appointment.setLastModified(\"\".equals(node.valueOf(\"LastModified\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"LastModified\"), XMLGregorianCalendar.class,\n DatatypeFactory.newInstance().newXMLGregorianCalendar(node.valueOf(\"LastModified\"))));\n API_Appointment.setLocation(\"\".equals(node.valueOf(\"Location\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"Location\"), \"\".getClass(),\n node.valueOf(\"Location\")));\n API_Appointment.setMeetingComment(\"\".equals(node.valueOf(\"MeetingComment\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"MeetingComment\"), \"\".getClass(),\n node.valueOf(\"MeetingComment\")));\n API_Appointment.setMeetingSubject(\"\".equals(node.valueOf(\"MeetingSubject\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"MeetingSubject\"), \"\".getClass(),\n node.valueOf(\"MeetingSubject\")));\n API_Appointment.setMeetingType(\"\".equals(node.valueOf(\"MeetingType\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"MeetingType\"), APIEnumMeetingType.class,\n APIEnumMeetingType.valueOf(APIEnumMeetingType.fromValue(node.valueOf(\"MeetingType\")).toString())));\n API_Appointment.setNotifyAction(\"\".equals(node.valueOf(\"NotifyAction\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"NotifyAction\"), APIEnumPushNotifyAction.class,\n APIEnumPushNotifyAction.valueOf(APIEnumPushNotifyAction.fromValue(node.valueOf(\"NotifyAction\")).toString())));\n API_Appointment.setOrganizer(\"\".equals(node.valueOf(\"Organizer\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"Organizer\"), \"\".getClass(),\n node.valueOf(\"Organizer\")));\n API_Appointment.setRRule(\"\".equals(node.valueOf(\"RRule\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"RRule\"), \"\".getClass(),\n node.valueOf(\"RRule\")));\n API_Appointment.setRVMeetingID(\"\".equals(node.valueOf(\"RV_MeetingID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"RVMeetingID\"), \"\".getClass(),\n node.valueOf(\"RV_MeetingID\")));\n API_Appointment.setRoomID(\"\".equals(node.valueOf(\"RoomID\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"RoomID\"), \"\".getClass(),\n node.valueOf(\"RoomID\")));\n API_Appointment.setStart(\"\".equals(node.valueOf(\"Start\")) ? null\n : new JAXBElement(new QName(API_Constants.NamespaceURI, \"Start\"), XMLGregorianCalendar.class,\n DatatypeFactory.newInstance().newXMLGregorianCalendar(API_Helper.ConvertLocalTimeToUTC(node.valueOf(\"Start\")))));\n\n API_Appointment.setActions(GetActionsListFromNodeList(node));\n API_Appointment.setPreset(GetPresetFromNodeList(node));\n API_Appointment.setRolesForMeeting(GetRolesForMeetingsListFromNodeList(node));\n\n API_Appointments.add(API_Appointment);\n }\n } catch (Exception ex) {\n ApiLog.One.WriteException(ex);\n }\n return API_Appointments;\n }", "@Override\n\tpublic int getCount() {\n\t\treturn appointments_model.size();\n\t}", "public static Map appointments(String _response) throws JSONException {\r\n JSONObject obj = new JSONObject(_response);\r\n JSONArray info = obj.getJSONArray(\"appointments\");\r\n /*String apptData = null;\r\n for (int i = 0; i < info.length(); i++) {\r\n JSONObject appointment = info.getJSONObject(i);\r\n apptData = appointment.getString(\"id\");\r\n System.out.println(\"Appointment Id: \" + apptData);\r\n apptData = appointment.getString(\"title\");\r\n System.out.println(\"title: \" + apptData);\r\n apptData = appointment.getString(\"created\");\r\n System.out.println(\"created: \" + apptData);\r\n apptData = appointment.getString(\"start\");\r\n System.out.println(\"start: \" + apptData);\r\n apptData = appointment.getString(\"end\");\r\n System.out.println(\"end: \" + apptData);\r\n apptData = appointment.getString(\"note\");\r\n System.out.println(\"note: \" + apptData);\r\n System.out.println(\" \");\r\n\r\n }*/\r\n\r\n Map<String, String> apptData = new HashMap<>();\r\n for (int i = 0; i < info.length(); i++) {\r\n JSONObject appointment = info.getJSONObject(i);\r\n String id = appointment.getString(\"id\");\r\n apptData.put(\"AppointmetnId\", id);\r\n String title = appointment.getString(\"title\");\r\n apptData.put(\"title\", title);\r\n String created = appointment.getString(\"created\");\r\n apptData.put(\"created\", created);\r\n String start = appointment.getString(\"start\");\r\n apptData.put(\"start\", start);\r\n String end = appointment.getString(\"end\");\r\n apptData.put(\"end\", end);\r\n String note = appointment.getString(\"note\");\r\n apptData.put(\"note\", note);\r\n\r\n }\r\n return apptData;\r\n\r\n }", "public List<Activity> getAllActivities();", "public ResultSet getAppointmentsByMonth() throws SQLException {\r\n String statement = \"SELECT MONTH(Start) AS Month, COUNT(Title) as Amount FROM appointments GROUP BY Month\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }", "public ArrayList<Meeting> getMeetingsbyCalendarId(String calendarId) throws Exception;", "public java.util.List<CsclAppointeeMaster> findAll(int start, int end);", "private void updateAppointments(Appointment[] appointments) {\n\t\tif (appointments == null) { // Retrieve from Storage\n\t\t\ttry {\n\t\t\t\tappointments = AppointmentUtil.retrieve(getContext());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\n\t\t\tif (appointments == null) { // When there are still no menus -> Update from Server\n\t\t\t\tonRefresh();\n\t\t\t}\n\t\t} else { // Store\n\t\t\ttry {\n\t\t\t\tAppointmentUtil.store(appointments, getContext());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\tif (appointments != null) {\n\t\t\t// Only add apointments which are in the current month or future.\n\t\t\tList<Appointment> appointmentList = new ArrayList<>();\n\n\t\t\tCalendar now = Calendar.getInstance();\n\t\t\tresetCalendarToMonth(now);\n\n\t\t\tfor (Appointment appointment : appointments) {\n\t\t\t\tCalendar appointmentMonth = appointment.getDate();\n\t\t\t\tresetCalendarToMonth(appointmentMonth);\n\n\t\t\t\tif (appointmentMonth.getTimeInMillis() - now.getTimeInMillis() >= 0) { // Check if present or future month\n\t\t\t\t\tappointmentList.add(appointment);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Apply appointments\n\t\t\tappointmentAdapter.clear();\n\t\t\tappointmentAdapter.addAll(appointmentList);\n\t\t}\n\t}", "@Transactional\n\t@Override\n\tpublic List<ApplicantModel> viewAllApplicants() {\n\t\treturn applicantRepo.findAll().stream().map(course -> parser.parse(course))\n\t\t\t\t.collect(Collectors.toList());\n\t}", "public static <Customers> ObservableList<Customers> getCustomerAppointments(int customerId) {\n\n ObservableList<Customers> appointmentList = FXCollections.observableArrayList();\n try {\n String sql = \"SELECT Customer_ID FROM customers\";\n PreparedStatement ps = DBConnection.getConnection().prepareStatement(sql);\n ResultSet rs = ps.executeQuery();\n\n while(rs.next()) {\n int customerID = rs.getInt(\"Customer_ID\");\n models.Customers A = new models.Customers(customerID);\n appointmentList.add((Customers) A);\n }\n } catch (Exception throwables) {\n throwables.printStackTrace();\n }\n return appointmentList;\n }", "List<SBCallAlarm> selectAll();", "private List<Schedules> getSchedulesList(){\r\n//\t\tList<Schedules> list = new ArrayList<Schedules>();\r\n//\t\tSchedules s1 = new Schedules(1, \"Baidu\", \"BUPT\", \"2013-09-11\", \"12:30\");\r\n//\t\tSchedules s2 = new Schedules(2, \"Sina\", \"BUPT\", \"2013-09-11\", \"13:50\");\r\n//\r\n//\t\tlist.add(s1);\r\n//\t\tlist.add(s2);\r\n\t\tif (scheduleList == null) {\r\n\t\t\tscheduleList = mAppContext.scheduleGetAll();\r\n\t\t}\r\n\t\treturn scheduleList;\r\n//\t\treturn list;\r\n\t}", "com.microsoft.schemas.crm._2011.contracts.ArrayOfAppointmentsToIgnore getAppointmentsToIgnore();", "ObservableList<Booking> getUpcomingBookingList();", "@Path(\"/showAll\")\n\t@GET\n\t@Produces(MediaType.APPLICATION_JSON)\n\tpublic List<EventData> getAllEvent() throws JSONException {\n\t\tString today_frm = DateUtil.getNow(DateUtil.SHORT_FORMAT_TYPE);\n\t\tList<Event> list = eventService.getEventsByType(today_frm,\n\t\t\t\tEventType.EVENTTODAY);\n\t\tList<EventData> d = null;\n\t\tif (null != list && list.size() > 0) {\n\t\t\td = getEventsByDateList(list);\n\t\t} else {\n\t\t\td = new ArrayList<EventData>();\n\t\t}\n\t\treturn d;\n\t}", "public static String getXmlFromAppointment( Appointment appointment )\n {\n\n StringBuffer sbXml = new StringBuffer( );\n DateFormat dateFormat = new SimpleDateFormat( );\n\n \n if ( appointment.getId() == 36 ) { \n AppLogService.info(\"appointment id : \" + appointment.getId());\n }\n \n XmlUtil.beginElement( sbXml, CONSTANT_XML_APPOINTMENT );\n \n XmlUtil.addElement( sbXml, CONSTANT_XML_ID, appointment.getId());\n XmlUtil.addElement( sbXml, CONSTANT_XML_TITLE, StringEscapeUtils.escapeXml( appointment.getTitle( ) ) );\n XmlUtil.addElement( sbXml, CONSTANT_XML_DESCRIPTION, StringEscapeUtils.escapeXml( appointment.getDescription( ) ) );\n XmlUtil.addElement( sbXml, CONSTANT_XML_STARTDATE, dateFormat.format( appointment.getStartDate( ) ) );\n \n List<String> electedOfficialsList = \n appointment.getElectedOfficialList()\n .stream()\n .map(e -> e.getLastName())\n .collect(Collectors.toList( ) );\n XmlUtil.addElement( sbXml, CONSTANT_XML_ELECTEDOFFICIALS, (!electedOfficialsList.isEmpty()?StringEscapeUtils.escapeXml( electedOfficialsList.get(0) ):\"\") );\n \n List<String> lobbyList = \n appointment.getLobbyList()\n .stream()\n .map(e -> e.getName())\n .collect(Collectors.toList( ) );\n XmlUtil.addElement( sbXml, CONSTANT_XML_LOBBIES, (!lobbyList.isEmpty()?StringEscapeUtils.escapeXml( lobbyList.get(0) ):\"\") );\n XmlUtil.addElement( sbXml, CONSTANT_XML_CONTACTS, StringEscapeUtils.escapeXml( appointment.getContacts( ) ) );\n \n XmlUtil.endElement( sbXml, CONSTANT_XML_APPOINTMENT );\n\n return sbXml.toString( );\n }", "@WebMethod public List<Event> getAllEvents();", "public void addToAppointments(Appointment a){\n appointments.add(a);\n Collections.sort(appointments, (Appointment a1, Appointment a2) ->{\n return a1.getDate().compareTo(a2.getDate());\n });\n }", "public List<Alarm> getAllAlarm() {\n ArrayList<Alarm> alarmList = new ArrayList<>();\n SQLiteDatabase database = this.getReadableDatabase();\n String queryGetAll = \"SELECT * FROM \" + TABLE_NAME;\n\n Cursor cursor = database.rawQuery(queryGetAll, null);\n\n\n // Move cursor to the first row from querying, then iterator to each row.\n if (cursor.moveToFirst()) {\n do {\n // Get alarms from its ID, then add to list\n Alarm alarm = getAlarm(cursor.getInt(cursor.getColumnIndex(KEY_ID)));\n alarmList.add(alarm);\n } while (cursor.moveToNext());\n }\n cursor.close();\n return alarmList;\n }", "@Query(\"select a from Appointment a where a.schedule.doctor.id = ?1 and a.endMoment <= CURRENT_TIMESTAMP order by a.startMoment desc\")\n\tCollection<Appointment> findAllNotActiveByDoctor(int doctorId);", "public List<Meeting> getMeetings(int projectId);", "public void sortAppointments() {\n reminders = sort(reminders);\n followup = sort(followup);\n }", "List<ApplicantDetailsResponse> getAllApplicants() throws ServiceException;", "public ArrayList<String> getAttendees(){\r\n return attendees;\r\n }", "public List<LeaveApplication> getAll();", "@GetMapping\n public ResponseEntity<Iterable<TelephoneEntry>> getVacancies() {\n\n List<TelephoneEntry> entries = telephoneEntryService.findAll();\n if(entries.isEmpty()){\n return ResponseEntity.status(HttpStatus.NO_CONTENT).build();\n } else {\n return ResponseEntity.ok(entries);\n }\n }", "public void appointmentList() throws Exception {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tlogger.debug(\"-------------Appointment-------------\");\n\t\t\tSystem.out.println(\"Press:- \" + \"\\n1.Create Appointment\" + \"\\n2.See Doctor list\" + \"\\n3.EXIT\");\n\t\t\tint input = sc.nextInt();\n\t\t\tswitch (input) {\n\t\t\tcase 1:\n\t\t\t\tcreate();\n\t\t\t\tlogger.debug(\"----------Appointment Created Successfully----------\");\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tcrudDoctor.read();\n\t\t\t\tlogger.debug(\"----------This is a List of Doctors----------\");\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tclinicManagementSystem.show();\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic List<AppointmentDto> getAppointmentBySalesRep(int userId) {\n\t\t// TODO Auto-generated method stub\n\t\ttry{\n\t\t\treturn jdbcTemplate.query(FETCH_FOR_SALESREP, (rs, rownnum)->{\n\t\t\t\treturn new AppointmentDto(rs.getInt(\"appointmentId\"), rs.getTime(\"startTime\"), rs.getTime(\"endTime\"), rs.getDate(\"date\"), rs.getInt(\"physicianId\"), rs.getInt(\"userId\"), rs.getInt(\"productId\"), rs.getString(\"confirmationStatus\"), rs.getString(\"zip\"), rs.getString(\"cancellationReason\"), rs.getString(\"additionalNotes\"), rs.getBoolean(\"hasMeetingUpdate\"),rs.getBoolean(\"hasMeetingExperienceFromSR\"),rs.getBoolean(\"hasMeetingExperienceFromPH\"), rs.getBoolean(\"hasPitch\"));\n\t\t\t}, userId);\n\t\t}catch(DataAccessException e){\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "public ArrayList<String> getEvents() {\n // TODO\n return res;\n }", "@RequestMapping(value=\"/enroll/appointments/page/{pageno}/{pagesize}\",method=RequestMethod.GET)\n\tpublic String getUserAllEnrollAppointmentsWithPaging(Principal principal, @PathVariable int pageno, @PathVariable int pagesize){\n\t\tif(!Account.findRole(principal.getName()).equals(\"0\")) throw new PermissionErrorException();\n\t\tList<Appointment> appointments = appointmentService.getUserAllEnrollAppointmentsWithPaging(Account.findMobile(principal.getName()), pageno, pagesize);\n\t\treturn JsonConverterUtil.convertSetToJsonString(appointments);\t\n\t}", "List<Averia> listarAverias() throws BusinessException;", "@Override\r\n\tpublic JSONArray getAPPList(HttpServletRequest request,HttpServletResponse response) {\n\t\tJSONArray japps = new JSONArray();\r\n\t\t\r\n\t\tJSONObject japp1 = new JSONObject();\r\n\t\tjapp1.put(\"id\", \"1001\");\r\n\t\tjapp1.put(\"name\", \"公文管理\");\r\n\t\t\r\n\t\tJSONObject japp2 = new JSONObject();\r\n\t\tjapp2.put(\"id\", \"1002\");\r\n\t\tjapp2.put(\"name\", \"三项工作\");\r\n\t\t\r\n\t\tJSONObject japp3 = new JSONObject();\r\n\t\tjapp3.put(\"id\", \"1003\");\r\n\t\tjapp3.put(\"name\", \"综合事务\");\r\n\t\t\r\n\t\tjapps.add(japp1);\r\n\t\tjapps.add(japp2);\r\n\t\tjapps.add(japp3);\r\n\t\t\r\n\t\treturn japps;\r\n\t}", "@Override\n\tpublic List<Meeting> getAllMettingList() {\n\t\treturn (List<Meeting>) meetingRepository.findAll();\n\t}", "@Override\n public List<Appeal> getAllAppeals(AuthContext context) throws DSException {\n\n isContextValidFor(context, roleId -> { if(roleId == -1) throw new DSAuthException(\"Invalid Context\"); }, 1,3);\n List<Appeal> appeals = new ArrayList<>();\n try {\n //List<Map<String,Object>> data = get(\"SELECT * FROM TblAppeals\");\n List<Map<String,Object>> data = get(\"SELECT TblAppeals.*, TblDefendants.*, TblOfficerReport.* \" +\n \"FROM TblDefendants INNER JOIN (TblAppeals INNER JOIN TblOfficerReport ON TblAppeals.serialNum = TblOfficerReport.appeal) ON TblDefendants.ID = TblOfficerReport.defendant\");\n for(Map<String,Object> map: data) {\n Appeal appeal = new Appeal(map);\n Defendant defendant = new Defendant(map);\n Report report = new Report(map);\n\n appeal.setReport(report);\n appeal.setDefendant(defendant);\n\n appeals.add(appeal);\n }\n return appeals;\n } catch (SQLException e) {\n throw new DSFormatException(e.getMessage());\n }\n }", "@RequestMapping(value = \"/vacantrooms\", method = RequestMethod.GET)\n public ArrayList<Room> vacantRooms(){\n ArrayList<Room> listroom = DatabaseRoom.getVacantRooms();\n return listroom;\n }", "@RequestMapping(value = \"/allEvent\")\n\tpublic List<Events> getAllEvents() {\n\t\treturn eventDAO.getAllEventsList();\n\t}", "public ResultSet getAppointmentsByType() throws SQLException {\r\n String statement = \"SELECT DISTINCT Type as Type, COUNT(Type) as AMOUNT FROM appointments GROUP BY Type\";\r\n return conn.prepareStatement(statement).executeQuery();\r\n }", "public ArrayList<Pair<String,String>> getCalendarList() {\n ArrayList<Pair<String,String>> calendars = new ArrayList<>();\n if (ActivityCompat.checkSelfPermission(\n App.getContext(), Manifest.permission.READ_CALENDAR\n ) != PackageManager.PERMISSION_GRANTED) {\n return calendars;\n }\n\n String projection[] = {CalendarContract.Calendars._ID, CalendarContract.Calendars.CALENDAR_DISPLAY_NAME};\n\n Uri calendarQuery;\n calendarQuery = CalendarContract.Calendars.CONTENT_URI;\n\n ContentResolver contentResolver = App.getContext().getContentResolver();\n\n Cursor cursor = contentResolver.query(calendarQuery, projection, null, null, null);\n\n if(cursor == null) return calendars;\n\n if(cursor.moveToFirst()) {\n int calendarIdIndex = cursor.getColumnIndex(projection[0]);\n int calendarNameIndex = cursor.getColumnIndex(projection[1]);\n\n do {\n calendars.add(\n new Pair<>(\n cursor.getString(calendarIdIndex),\n cursor.getString(calendarNameIndex)\n )\n );\n } while(cursor.moveToNext());\n }\n\n cursor.close();\n\n return calendars;\n }", "public LiveData<List<NacAlarm>> getActiveAlarms()\n\t{\n\t\treturn this.getAlarmDao().getActiveAlarms();\n\t}", "public ArrayList<Event> getEventsByToday() {\n\t\tArrayList<Event> result = new ArrayList<Event>();\n\t\tCalendar today = Calendar.getInstance();\n\t\tfor (int i = 0; i < events.size(); i++) {\n\t\t\tif (events.get(i).getInitial_date().get(Calendar.YEAR) == today.get(Calendar.YEAR)\n\t\t\t\t\t&& events.get(i).getInitial_date().get(Calendar.MONTH) == today.get(Calendar.MONTH)\n\t\t\t\t\t&& events.get(i).getInitial_date().get(Calendar.DAY_OF_MONTH) == today.get(Calendar.DAY_OF_MONTH)) {\n\t\t\t\tresult.add(events.get(i));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@GetMapping(\"applicants\")\n public List<Applicant> readAll() {\n return applicantService.getAll();\n }", "List<Hospital> listall();", "private LiveData<List<AlarmEntity>> getAllAlarmItems(){\n // content of the database table\n return mDb.alarmDao().getAll();\n }", "@Override\n\t@GET\n\t@Path(\"/airports\")\n @Produces(MediaType.APPLICATION_JSON)\n\tpublic Response getAirports() {\n\t\t\n\t\tList<String> list = new ArrayList<String>();\n\t\tlist.addAll(mapAirportData.keySet());\n\t\tlog.debug(\"Resource requested to print all the known airports.\");\n\t\t log.debug(\"Success :\" + Response.Status.OK);\n\t\t return Response.status(Response.Status.OK).entity(list).build();\n\t}", "public static Collection getAllActivities() throws EnvoyServletException\n {\n try\n {\n return ServerProxy.getJobHandler().getAllActivities();\n }\n catch (Exception e)\n {\n throw new EnvoyServletException(e);\n }\n }" ]
[ "0.8715913", "0.8101547", "0.795079", "0.7885737", "0.7758206", "0.7737611", "0.77154124", "0.76690114", "0.7560016", "0.74063957", "0.73504496", "0.7308094", "0.72459006", "0.7180474", "0.70713234", "0.7044627", "0.69107485", "0.68552244", "0.68226945", "0.6812467", "0.6697153", "0.6679924", "0.6668034", "0.65967524", "0.656542", "0.6518534", "0.6494457", "0.648345", "0.64038587", "0.6381932", "0.63520813", "0.63484865", "0.63298976", "0.63145185", "0.63100773", "0.630406", "0.62788546", "0.6267017", "0.62351775", "0.62299836", "0.62249106", "0.6158603", "0.61576086", "0.6154253", "0.6147105", "0.6145943", "0.6130545", "0.610857", "0.6086351", "0.6082231", "0.6081334", "0.60263306", "0.6014106", "0.6008743", "0.6005443", "0.59982806", "0.5994764", "0.59941286", "0.5993688", "0.59865683", "0.59727645", "0.5967905", "0.59588295", "0.5954517", "0.5944675", "0.594306", "0.5941623", "0.59247375", "0.59237504", "0.5919906", "0.5919635", "0.5904688", "0.5904503", "0.5902341", "0.59011745", "0.58872783", "0.5887081", "0.58832675", "0.58737105", "0.5860437", "0.58510053", "0.58420295", "0.5814532", "0.5812594", "0.5808464", "0.58046895", "0.57974654", "0.57969165", "0.5795624", "0.5784446", "0.5783334", "0.57785326", "0.5778149", "0.5755441", "0.5748623", "0.57280475", "0.5726952", "0.5724087", "0.5722015", "0.5720182" ]
0.7483233
9