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
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public Collection<Curso> findByNameCurso(String Name) throws Exception { Collection<Curso> retValue = new ArrayList(); Connection c = null; PreparedStatement pstmt = null; ResultSet rs = null; try { c = DBUtils.getConnection(); pstmt = c.prepareStatement("SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor, c.nombrecurso, c.claveprofesor," + " c.clavealumno from curso c, persona p\n" + "where c.idprofesor = p.id and UPPER(c.nombrecurso) like UPPER(?)"); pstmt.setString(1, Name); rs = pstmt.executeQuery(); while (rs.next()) { retValue.add(new Curso(rs.getInt("idcurso"), rs.getString("nombrecurso"),rs.getInt("idprofesor"), rs.getString("nombreprofesor"),rs.getString("claveprofesor"), rs.getString("clavealumno"))); } // } else { // retValue = new Curso(0,null,null,0,null); // } } catch (Exception e) { e.printStackTrace(); } finally { try { if (rs != null) { rs.close(); } if (pstmt != null) { pstmt.close(); } DBUtils.closeConnection(c); } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } } return retValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77442753", "0.73745763", "0.6965507", "0.6908429", "0.6797187", "0.67738247", "0.6770793", "0.6653347", "0.66378933", "0.66238236", "0.6608154", "0.6608154", "0.65922153", "0.6585848", "0.6554524", "0.64987206", "0.6461772", "0.64494187", "0.6428624", "0.64187545", "0.6382625", "0.63818306", "0.6378436", "0.63760686", "0.6363862", "0.6359368", "0.6358748", "0.63529646", "0.63335854", "0.63335854", "0.63335854", "0.6331548", "0.6324637", "0.63223016", "0.63223016", "0.6313098", "0.62910104", "0.6278451", "0.6277943", "0.6273101", "0.6263474", "0.62461776", "0.62246966", "0.62246966", "0.62209004", "0.6202992", "0.620283", "0.61993957", "0.61990935", "0.6192765", "0.6191409", "0.61794096", "0.61794096", "0.6163539", "0.6163035", "0.6159816", "0.61455685", "0.61266595", "0.6124387", "0.61233777", "0.61219746", "0.61146545", "0.611324", "0.61075956", "0.61014634", "0.609056", "0.6089885", "0.6087785", "0.60857874", "0.608487", "0.608487", "0.6079172", "0.6059358", "0.6056012", "0.60486186", "0.6045742", "0.60416967", "0.602463", "0.6021055", "0.60157436", "0.6015653", "0.60154283", "0.60085464", "0.6006141", "0.59972876", "0.5994861", "0.59860784", "0.59860784", "0.5984869", "0.5984869", "0.59825116", "0.59815866", "0.59788644", "0.5969931", "0.59671116", "0.5965354", "0.5963944", "0.5963186", "0.5956418", "0.59511787", "0.59503233" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public boolean containsId(int Id) { try { Entity retValue = null; Connection c = null; PreparedStatement pstmt = null; ResultSet rs = null; c = DBUtils.getConnection(); pstmt = c.prepareStatement("SELECT * FROM curso where idcurso = ?"); pstmt.setInt(1, Id); rs = pstmt.executeQuery(); if (rs.next()) { return true; } } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77443457", "0.7373967", "0.6966467", "0.69094384", "0.67967474", "0.6772981", "0.6770611", "0.66534495", "0.6639043", "0.66233534", "0.6609316", "0.6609316", "0.6591667", "0.65871775", "0.65558785", "0.6499027", "0.64613366", "0.64500856", "0.6429774", "0.6419923", "0.63821", "0.6381803", "0.63796437", "0.6376284", "0.63641495", "0.63602275", "0.63592255", "0.6354011", "0.6334751", "0.6334751", "0.6334751", "0.63308305", "0.63247657", "0.6323549", "0.6323549", "0.63145983", "0.62895745", "0.627907", "0.6277435", "0.6272607", "0.62644887", "0.6246259", "0.6225688", "0.6225688", "0.6219494", "0.62021047", "0.62018913", "0.6199497", "0.61989784", "0.6193036", "0.61926675", "0.6178645", "0.6178645", "0.6164314", "0.61621976", "0.61607975", "0.61449283", "0.6125639", "0.6125443", "0.61227936", "0.61217606", "0.61135685", "0.6111885", "0.6108101", "0.61020064", "0.6090956", "0.6090679", "0.6088764", "0.6087082", "0.6085988", "0.6085988", "0.6080176", "0.6058971", "0.6057445", "0.6049156", "0.60460013", "0.6042613", "0.6023227", "0.60215026", "0.6015257", "0.6015121", "0.6013932", "0.60080487", "0.6007118", "0.5996487", "0.59942967", "0.59863853", "0.59863853", "0.5985854", "0.5985854", "0.59827286", "0.5980721", "0.5977992", "0.59701407", "0.5966106", "0.59658045", "0.59634286", "0.5962733", "0.59564614", "0.5951892", "0.595095" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public boolean containsNameCurso(String Curso) { try { Curso curso = (Curso) this.findByNameCurso(Curso); if(Curso.equals(curso.getNombre())){ return true; } ; } catch (Exception ex) { //Exception Handler } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77442753", "0.73745763", "0.6965507", "0.6908429", "0.6797187", "0.67738247", "0.6770793", "0.6653347", "0.66378933", "0.66238236", "0.6608154", "0.6608154", "0.65922153", "0.6585848", "0.6554524", "0.64987206", "0.6461772", "0.64494187", "0.6428624", "0.64187545", "0.6382625", "0.63818306", "0.6378436", "0.63760686", "0.6363862", "0.6359368", "0.6358748", "0.63529646", "0.63335854", "0.63335854", "0.63335854", "0.6331548", "0.6324637", "0.63223016", "0.63223016", "0.6313098", "0.62910104", "0.6278451", "0.6277943", "0.6273101", "0.6263474", "0.62461776", "0.62246966", "0.62246966", "0.62209004", "0.6202992", "0.620283", "0.61993957", "0.61990935", "0.6192765", "0.6191409", "0.61794096", "0.61794096", "0.6163539", "0.6163035", "0.6159816", "0.61455685", "0.61266595", "0.6124387", "0.61233777", "0.61219746", "0.61146545", "0.611324", "0.61075956", "0.61014634", "0.609056", "0.6089885", "0.6087785", "0.60857874", "0.608487", "0.608487", "0.6079172", "0.6059358", "0.6056012", "0.60486186", "0.6045742", "0.60416967", "0.602463", "0.6021055", "0.60157436", "0.6015653", "0.60154283", "0.60085464", "0.6006141", "0.59972876", "0.5994861", "0.59860784", "0.59860784", "0.5984869", "0.5984869", "0.59825116", "0.59815866", "0.59788644", "0.5969931", "0.59671116", "0.5965354", "0.5963944", "0.5963186", "0.5956418", "0.59511787", "0.59503233" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public boolean containsNameProfesor(String Name) { try { Entity retValue = null; Connection c = null; PreparedStatement pstmt = null; ResultSet rs = null; c = DBUtils.getConnection(); pstmt = c.prepareStatement("SELECT * FROM persona where nombre = ?"); pstmt.setString(1, Name); rs = pstmt.executeQuery(); if (rs.next()) { return true; } } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } return false; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77442753", "0.73745763", "0.6965507", "0.6908429", "0.6797187", "0.67738247", "0.6770793", "0.6653347", "0.66378933", "0.66238236", "0.6608154", "0.6608154", "0.65922153", "0.6585848", "0.6554524", "0.64987206", "0.6461772", "0.64494187", "0.6428624", "0.64187545", "0.6382625", "0.63818306", "0.6378436", "0.63760686", "0.6363862", "0.6359368", "0.6358748", "0.63529646", "0.63335854", "0.63335854", "0.63335854", "0.6331548", "0.6324637", "0.63223016", "0.63223016", "0.6313098", "0.62910104", "0.6278451", "0.6277943", "0.6273101", "0.6263474", "0.62461776", "0.62246966", "0.62246966", "0.62209004", "0.6202992", "0.620283", "0.61993957", "0.61990935", "0.6192765", "0.6191409", "0.61794096", "0.61794096", "0.6163539", "0.6163035", "0.6159816", "0.61455685", "0.61266595", "0.6124387", "0.61233777", "0.61219746", "0.61146545", "0.611324", "0.61075956", "0.61014634", "0.609056", "0.6089885", "0.6087785", "0.60857874", "0.608487", "0.608487", "0.6079172", "0.6059358", "0.6056012", "0.60486186", "0.6045742", "0.60416967", "0.602463", "0.6021055", "0.60157436", "0.6015653", "0.60154283", "0.60085464", "0.6006141", "0.59972876", "0.5994861", "0.59860784", "0.59860784", "0.5984869", "0.5984869", "0.59825116", "0.59815866", "0.59788644", "0.5969931", "0.59671116", "0.5965354", "0.5963944", "0.5963186", "0.5956418", "0.59511787", "0.59503233" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public void add(Curso entity) { Connection c = null; PreparedStatement pstmt = null; try { c = DBUtils.getConnection(); pstmt = c.prepareStatement("INSERT INTO curso (nombrecurso, idprofesor, claveprofesor, clavealumno) values (?, ?, ?, ?)"); pstmt.setString(1, entity.getNombre()); pstmt.setInt(2, (entity.getIdProfesor() == 0)?4:entity.getIdProfesor() ); //creo que es sin profesor confirmado o algo por el estilo pstmt.setString(3, entity.getClaveProfesor()); pstmt.setString(4, entity.getClaveAlumno()); pstmt.execute(); } catch (Exception e) { e.printStackTrace(); } finally { try { if (pstmt != null) { pstmt.close(); } DBUtils.closeConnection(c); } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77442753", "0.73745763", "0.6965507", "0.6908429", "0.6797187", "0.67738247", "0.6770793", "0.6653347", "0.66378933", "0.66238236", "0.6608154", "0.6608154", "0.65922153", "0.6585848", "0.6554524", "0.64987206", "0.6461772", "0.64494187", "0.6428624", "0.64187545", "0.6382625", "0.63818306", "0.6378436", "0.63760686", "0.6363862", "0.6359368", "0.6358748", "0.63529646", "0.63335854", "0.63335854", "0.63335854", "0.6331548", "0.6324637", "0.63223016", "0.63223016", "0.6313098", "0.62910104", "0.6278451", "0.6277943", "0.6273101", "0.6263474", "0.62461776", "0.62246966", "0.62246966", "0.62209004", "0.6202992", "0.620283", "0.61993957", "0.61990935", "0.6192765", "0.6191409", "0.61794096", "0.61794096", "0.6163539", "0.6163035", "0.6159816", "0.61455685", "0.61266595", "0.6124387", "0.61233777", "0.61219746", "0.61146545", "0.611324", "0.61075956", "0.61014634", "0.609056", "0.6089885", "0.6087785", "0.60857874", "0.608487", "0.608487", "0.6079172", "0.6059358", "0.6056012", "0.60486186", "0.6045742", "0.60416967", "0.602463", "0.6021055", "0.60157436", "0.6015653", "0.60154283", "0.60085464", "0.6006141", "0.59972876", "0.5994861", "0.59860784", "0.59860784", "0.5984869", "0.5984869", "0.59825116", "0.59815866", "0.59788644", "0.5969931", "0.59671116", "0.5965354", "0.5963944", "0.5963186", "0.5956418", "0.59511787", "0.59503233" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public void remove(Integer id) { Connection c = null; PreparedStatement pstmt = null; try { c = DBUtils.getConnection(); pstmt = c.prepareStatement("DELETE FROM curso WHERE idcurso = ?"); pstmt.setInt(1, id); pstmt.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { if (pstmt != null) { pstmt.close(); } DBUtils.closeConnection(c); } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77443457", "0.7373967", "0.6966467", "0.69094384", "0.67967474", "0.6772981", "0.6770611", "0.66534495", "0.6639043", "0.66233534", "0.6609316", "0.6609316", "0.6591667", "0.65871775", "0.65558785", "0.6499027", "0.64613366", "0.64500856", "0.6429774", "0.6419923", "0.63821", "0.6381803", "0.63796437", "0.6376284", "0.63641495", "0.63602275", "0.63592255", "0.6354011", "0.6334751", "0.6334751", "0.6334751", "0.63308305", "0.63247657", "0.6323549", "0.6323549", "0.63145983", "0.62895745", "0.627907", "0.6277435", "0.6272607", "0.62644887", "0.6246259", "0.6225688", "0.6225688", "0.6219494", "0.62021047", "0.62018913", "0.6199497", "0.61989784", "0.6193036", "0.61926675", "0.6178645", "0.6178645", "0.6164314", "0.61621976", "0.61607975", "0.61449283", "0.6125639", "0.6125443", "0.61227936", "0.61217606", "0.61135685", "0.6111885", "0.6108101", "0.61020064", "0.6090956", "0.6090679", "0.6088764", "0.6087082", "0.6085988", "0.6085988", "0.6080176", "0.6058971", "0.6057445", "0.6049156", "0.60460013", "0.6042613", "0.6023227", "0.60215026", "0.6015257", "0.6015121", "0.6013932", "0.60080487", "0.6007118", "0.5996487", "0.59942967", "0.59863853", "0.59863853", "0.5985854", "0.5985854", "0.59827286", "0.5980721", "0.5977992", "0.59701407", "0.5966106", "0.59658045", "0.59634286", "0.5962733", "0.59564614", "0.5951892", "0.595095" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public void update(Curso entity) { Connection c = null; PreparedStatement pstmt = null; try { c = DBUtils.getConnection(); pstmt = c.prepareStatement("UPDATE curso SET idprofesor = ?, nombrecurso = ?, claveprofesor = ?, clavealumno = ? WHERE idcurso = ?"); pstmt.setInt(1, entity.getIdProfesor()); pstmt.setString(2, entity.getNombre()); pstmt.setString(3, entity.getClaveProfesor()); pstmt.setString(4, entity.getClaveAlumno()); pstmt.setInt(5, entity.getIdCurso()); pstmt.executeUpdate(); } catch (Exception e) { e.printStackTrace(); } finally { try { if (pstmt != null) { pstmt.close(); } DBUtils.closeConnection(c); } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77442753", "0.73745763", "0.6965507", "0.6908429", "0.6797187", "0.67738247", "0.6770793", "0.6653347", "0.66378933", "0.66238236", "0.6608154", "0.6608154", "0.65922153", "0.6585848", "0.6554524", "0.64987206", "0.6461772", "0.64494187", "0.6428624", "0.64187545", "0.6382625", "0.63818306", "0.6378436", "0.63760686", "0.6363862", "0.6359368", "0.6358748", "0.63529646", "0.63335854", "0.63335854", "0.63335854", "0.6331548", "0.6324637", "0.63223016", "0.63223016", "0.6313098", "0.62910104", "0.6278451", "0.6277943", "0.6273101", "0.6263474", "0.62461776", "0.62246966", "0.62246966", "0.62209004", "0.6202992", "0.620283", "0.61993957", "0.61990935", "0.6192765", "0.6191409", "0.61794096", "0.61794096", "0.6163539", "0.6163035", "0.6159816", "0.61455685", "0.61266595", "0.6124387", "0.61233777", "0.61219746", "0.61146545", "0.611324", "0.61075956", "0.61014634", "0.609056", "0.6089885", "0.6087785", "0.60857874", "0.608487", "0.608487", "0.6079172", "0.6059358", "0.6056012", "0.60486186", "0.6045742", "0.60416967", "0.602463", "0.6021055", "0.60157436", "0.6015653", "0.60154283", "0.60085464", "0.6006141", "0.59972876", "0.5994861", "0.59860784", "0.59860784", "0.5984869", "0.5984869", "0.59825116", "0.59815866", "0.59788644", "0.5969931", "0.59671116", "0.5965354", "0.5963944", "0.5963186", "0.5956418", "0.59511787", "0.59503233" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public Collection<Curso> getAll() { Collection<Curso> retValue = new ArrayList(); Connection c = null; PreparedStatement pstmt = null; ResultSet rs = null; try { c = DBUtils.getConnection(); pstmt = c.prepareStatement("SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor,p.apellido as apellido, c.nombrecurso, c.claveprofesor,\n" + " c.clavealumno from curso c, persona p\n" + "where c.idprofesor = p.id"); rs = pstmt.executeQuery(); while (rs.next()) { String nombre="\""+rs.getString("nombreprofesor")+" "+rs.getString("apellido")+"\""; retValue.add(new Curso(rs.getInt("idcurso"), rs.getString("nombrecurso"), rs.getInt("idprofesor"), nombre,rs.getString("claveprofesor"), rs.getString("clavealumno"))); } } catch (Exception e) { e.printStackTrace(); } finally { try { if (rs != null) { rs.close(); } if (pstmt != null) { pstmt.close(); } DBUtils.closeConnection(c); } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } } return retValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77442753", "0.73745763", "0.6965507", "0.6908429", "0.6797187", "0.67738247", "0.6770793", "0.6653347", "0.66378933", "0.66238236", "0.6608154", "0.6608154", "0.65922153", "0.6585848", "0.6554524", "0.64987206", "0.6461772", "0.64494187", "0.6428624", "0.64187545", "0.6382625", "0.63818306", "0.6378436", "0.63760686", "0.6363862", "0.6359368", "0.6358748", "0.63529646", "0.63335854", "0.63335854", "0.63335854", "0.6331548", "0.6324637", "0.63223016", "0.63223016", "0.6313098", "0.62910104", "0.6278451", "0.6277943", "0.6273101", "0.6263474", "0.62461776", "0.62246966", "0.62246966", "0.62209004", "0.6202992", "0.620283", "0.61993957", "0.61990935", "0.6192765", "0.6191409", "0.61794096", "0.61794096", "0.6163539", "0.6163035", "0.6159816", "0.61455685", "0.61266595", "0.6124387", "0.61233777", "0.61219746", "0.61146545", "0.611324", "0.61075956", "0.61014634", "0.609056", "0.6089885", "0.6087785", "0.60857874", "0.608487", "0.608487", "0.6079172", "0.6059358", "0.6056012", "0.60486186", "0.6045742", "0.60416967", "0.602463", "0.6021055", "0.60157436", "0.6015653", "0.60154283", "0.60085464", "0.6006141", "0.59972876", "0.5994861", "0.59860784", "0.59860784", "0.5984869", "0.5984869", "0.59825116", "0.59815866", "0.59788644", "0.5969931", "0.59671116", "0.5965354", "0.5963944", "0.5963186", "0.5956418", "0.59511787", "0.59503233" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public Curso findByIdCurso(int id) throws Exception { Curso retValue = null; Connection c = null; PreparedStatement pstmt = null; ResultSet rs = null; try { c = DBUtils.getConnection(); pstmt = c.prepareStatement("SELECT c.idcurso, c.idprofesor, p.nombre as nombreprofesor, c.nombrecurso, c.claveprofesor," + " c.clavealumno from curso c, persona p\n" + "where c.idprofesor = p.id and idcurso = ?"); pstmt.setInt(1, id); rs = pstmt.executeQuery(); if (rs.next()) { retValue = new Curso(rs.getInt("idcurso"), rs.getString("nombrecurso"), rs.getInt("idprofesor"), rs.getString("nombreprofesor"),rs.getString("claveprofesor"), rs.getString("clavealumno")); } else { retValue = new Curso(0," ",0,""," "," "); } } catch (Exception e) { e.printStackTrace(); } finally { try { if (rs != null) { rs.close(); } if (pstmt != null) { pstmt.close(); } DBUtils.closeConnection(c); } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } } return retValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77442753", "0.73745763", "0.6965507", "0.6908429", "0.6797187", "0.67738247", "0.6770793", "0.6653347", "0.66378933", "0.66238236", "0.6608154", "0.6608154", "0.65922153", "0.6585848", "0.6554524", "0.64987206", "0.6461772", "0.64494187", "0.6428624", "0.64187545", "0.6382625", "0.63818306", "0.6378436", "0.63760686", "0.6363862", "0.6359368", "0.6358748", "0.63529646", "0.63335854", "0.63335854", "0.63335854", "0.6331548", "0.6324637", "0.63223016", "0.63223016", "0.6313098", "0.62910104", "0.6278451", "0.6277943", "0.6273101", "0.6263474", "0.62461776", "0.62246966", "0.62246966", "0.62209004", "0.6202992", "0.620283", "0.61993957", "0.61990935", "0.6192765", "0.6191409", "0.61794096", "0.61794096", "0.6163539", "0.6163035", "0.6159816", "0.61455685", "0.61266595", "0.6124387", "0.61233777", "0.61219746", "0.61146545", "0.611324", "0.61075956", "0.61014634", "0.609056", "0.6089885", "0.6087785", "0.60857874", "0.608487", "0.608487", "0.6079172", "0.6059358", "0.6056012", "0.60486186", "0.6045742", "0.60416967", "0.602463", "0.6021055", "0.60157436", "0.6015653", "0.60154283", "0.60085464", "0.6006141", "0.59972876", "0.5994861", "0.59860784", "0.59860784", "0.5984869", "0.5984869", "0.59825116", "0.59815866", "0.59788644", "0.5969931", "0.59671116", "0.5965354", "0.5963944", "0.5963186", "0.5956418", "0.59511787", "0.59503233" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public int cantAlumnos(String curso) throws Exception { Connection c = null; PreparedStatement pstmt = null; ResultSet rs = null; int cantAlumnos = 0; try { c = DBUtils.getConnection(); pstmt = c.prepareStatement("select count(a.id) as cant from alumno a, curso cu " + "where a.idCurso = cu.idcurso " + "and UPPER(cu.nombreCurso) like UPPER(?)"); pstmt.setString(1, curso); rs = pstmt.executeQuery(); while (rs.next()) { cantAlumnos = rs.getInt("cant"); } return cantAlumnos; } catch (Exception e) { e.printStackTrace(); } finally { try { if (rs != null) { rs.close(); } if (pstmt != null) { pstmt.close(); } DBUtils.closeConnection(c); } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } } return cantAlumnos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77443457", "0.7373967", "0.6966467", "0.69094384", "0.67967474", "0.6772981", "0.6770611", "0.66534495", "0.6639043", "0.66233534", "0.6609316", "0.6609316", "0.6591667", "0.65871775", "0.65558785", "0.6499027", "0.64613366", "0.64500856", "0.6429774", "0.6419923", "0.63821", "0.6381803", "0.63796437", "0.6376284", "0.63641495", "0.63602275", "0.63592255", "0.6354011", "0.6334751", "0.6334751", "0.6334751", "0.63308305", "0.63247657", "0.6323549", "0.6323549", "0.63145983", "0.62895745", "0.627907", "0.6277435", "0.6272607", "0.62644887", "0.6246259", "0.6225688", "0.6225688", "0.6219494", "0.62021047", "0.62018913", "0.6199497", "0.61989784", "0.6193036", "0.61926675", "0.6178645", "0.6178645", "0.6164314", "0.61621976", "0.61607975", "0.61449283", "0.6125639", "0.6125443", "0.61227936", "0.61217606", "0.61135685", "0.6111885", "0.6108101", "0.61020064", "0.6090956", "0.6090679", "0.6088764", "0.6087082", "0.6085988", "0.6085988", "0.6080176", "0.6058971", "0.6057445", "0.6049156", "0.60460013", "0.6042613", "0.6023227", "0.60215026", "0.6015257", "0.6015121", "0.6013932", "0.60080487", "0.6007118", "0.5996487", "0.59942967", "0.59863853", "0.59863853", "0.5985854", "0.5985854", "0.59827286", "0.5980721", "0.5977992", "0.59701407", "0.5966106", "0.59658045", "0.59634286", "0.5962733", "0.59564614", "0.5951892", "0.595095" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public int cantAlumnosXidCurso(int curso) throws Exception { Connection c = null; PreparedStatement pstmt = null; ResultSet rs = null; int cantAlumnos = 0; try { c = DBUtils.getConnection(); pstmt = c.prepareStatement("select count(a.id) as cant from alumno a, curso cu " + "where a.idCurso = cu.idcurso " + "and cu.idcurso = ?"); pstmt.setInt(1, curso); rs = pstmt.executeQuery(); while (rs.next()) { cantAlumnos = rs.getInt("cant"); } return cantAlumnos; } catch (Exception e) { e.printStackTrace(); } finally { try { if (rs != null) { rs.close(); } if (pstmt != null) { pstmt.close(); } DBUtils.closeConnection(c); } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } } return cantAlumnos; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77442753", "0.73745763", "0.6965507", "0.6908429", "0.6797187", "0.67738247", "0.6770793", "0.6653347", "0.66378933", "0.66238236", "0.6608154", "0.6608154", "0.65922153", "0.6585848", "0.6554524", "0.64987206", "0.6461772", "0.64494187", "0.6428624", "0.64187545", "0.6382625", "0.63818306", "0.6378436", "0.63760686", "0.6363862", "0.6359368", "0.6358748", "0.63529646", "0.63335854", "0.63335854", "0.63335854", "0.6331548", "0.6324637", "0.63223016", "0.63223016", "0.6313098", "0.62910104", "0.6278451", "0.6277943", "0.6273101", "0.6263474", "0.62461776", "0.62246966", "0.62246966", "0.62209004", "0.6202992", "0.620283", "0.61993957", "0.61990935", "0.6192765", "0.6191409", "0.61794096", "0.61794096", "0.6163539", "0.6163035", "0.6159816", "0.61455685", "0.61266595", "0.6124387", "0.61233777", "0.61219746", "0.61146545", "0.611324", "0.61075956", "0.61014634", "0.609056", "0.6089885", "0.6087785", "0.60857874", "0.608487", "0.608487", "0.6079172", "0.6059358", "0.6056012", "0.60486186", "0.6045742", "0.60416967", "0.602463", "0.6021055", "0.60157436", "0.6015653", "0.60154283", "0.60085464", "0.6006141", "0.59972876", "0.5994861", "0.59860784", "0.59860784", "0.5984869", "0.5984869", "0.59825116", "0.59815866", "0.59788644", "0.5969931", "0.59671116", "0.5965354", "0.5963944", "0.5963186", "0.5956418", "0.59511787", "0.59503233" ]
0.0
-1
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
@Override public Collection<resumenSemestre> resumenSemestre(int idCurso, int mesApertura, int mesCierre) throws Exception { Collection<resumenSemestre> retValue = new ArrayList(); Connection c = null; PreparedStatement pstmt = null; ResultSet rs = null; try { c = DBUtils.getConnection(); pstmt = c.prepareStatement("select ma.nombremateria, p.idcuestionario as test, " + "round(avg(p.puntaje),2) as promedio, cue.fechainicio, MONTH(cue.fechacierre) as mes " + "from puntuaciones p, cuestionario cue, curso cu, materia ma " + "where cu.idcurso = ma.idcurso and ma.idmateria = cue.idmateria " + "and cue.idcuestionario = p.idcuestionario and cu.idcurso = ? " + "and MONTH(cue.fechacierre) >= ? AND MONTH(cue.fechacierre) <= ? and YEAR(cue.fechacierre) = YEAR(NOW())" + "GROUP by ma.nombremateria, MONTH(cue.fechacierre) ORDER BY ma.nombremateria"); pstmt.setInt(1, idCurso ); pstmt.setInt(2, mesApertura); pstmt.setInt(3, mesCierre); rs = pstmt.executeQuery(); while (rs.next()) { retValue.add(new resumenSemestre(rs.getString("nombremateria"), rs.getInt("test"), rs.getInt("promedio"), rs.getInt("mes"))); } return retValue; } catch (Exception e) { e.printStackTrace(); } finally { try { if (rs != null) { rs.close(); } if (pstmt != null) { pstmt.close(); } DBUtils.closeConnection(c); } catch (SQLException ex) { Logger.getLogger(JdbcCursoRepository.class.getName()).log(Level.SEVERE, null, ex); } } return retValue; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void habilitar() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\t\tpublic void action()\r\n\t\t{\r\n// throw new UnsupportedOperationException(\"Not supported yet.\");\r\n\t\t}", "public void remove()\n/* */ {\n/* 99 */ throw new UnsupportedOperationException();\n/* */ }", "public void remove()\n/* */ {\n/* 110 */ throw new UnsupportedOperationException();\n/* */ }", "@Override\n public boolean isSupported() {\n return true;\n }", "@Override\n public String toString() {\n throw new UnsupportedOperationException(\"implement me!\");\n }", "private void cargartabla() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void HargaKamera() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException(); \n }", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\t\t\n\t}", "@Override\n public boolean isSupported() {\n return true;\n }", "private static UnsupportedOperationException getModificationUnsupportedException()\n {\n throw new UnsupportedOperationException(\"Illegal operation. Specified list is unmodifiable.\");\n }", "@Override\r\n public void remove() throws UnsupportedOperationException {\r\n throw new UnsupportedOperationException(\"Me ei poisteta\");\r\n }", "Boolean mo1305n() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public boolean isEnabled() {\n/* 945 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\r\n\t\t\tpublic void remove() {\r\n\t\t\t\tthrow new UnsupportedOperationException();\r\n\t\t\t}", "@Override\r\n\t\tpublic void remove() {\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "void Salvar(String nome) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "protected void input_back(){\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public UnsupportedCycOperationException() {\n super();\n }", "public int getListSelection() {\n/* 515 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove(){\r\n\t\t\tthrow new UnsupportedOperationException();\r\n\t\t}", "@SuppressWarnings(\"static-method\")\n\tpublic void open() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "@Override\n\t\t\tpublic void remove() {\n\t\t\t\tthrow new UnsupportedOperationException();\n\t\t\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "private void atualizar_tbl_pro_profs() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n//To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\t/**\n\t * feature is not supported\n\t */\n\tpublic void remove() {\n\t}", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException(\"Myö ei poisteta\");\n\t\t}", "private String printStackTrace() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n public void makeVisible() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "public void _reportUnsupportedOperation() {\n StringBuilder sb = new StringBuilder();\n sb.append(\"Operation not supported by parser of type \");\n sb.append(getClass().getName());\n throw new UnsupportedOperationException(sb.toString());\n }", "@Override\r\n public void actionPerformed(ActionEvent e) {\r\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\r\n }", "public void remove() {\r\n \r\n throw new UnsupportedOperationException();\r\n }", "public void showDropDown() {\n/* 592 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void remove() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public int zzef() {\n throw new UnsupportedOperationException();\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n public String toString() {\n throw new UnsupportedOperationException();\n //TODO: Complete this method!\n }", "@Override\n public void refresh() {\n throw new UnsupportedOperationException(\"operation not supported\");\n }", "@Override\npublic boolean isEnabled() {\n\treturn false;\n}", "@Override\n public String writeToString() {\n throw new UnsupportedOperationException();\n }", "public boolean isImportantForAccessibility() {\n/* 1302 */ throw new RuntimeException(\"Stub!\");\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 String getText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Deprecated\n/* */ public int getActions() {\n/* 289 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tprotected Object clone() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public String getDisplayVariant() {\n/* 656 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public boolean getObsolete()\n {\n return false;\n }", "@Override\n public void close() {\n throw new UnsupportedOperationException(\"Not supported yet.\");\n }", "public String getName() {\n/* 341 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\npublic boolean isEnabled() {\n\treturn true;\n}", "public int mo1265e() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public MissingMethodArgumentException() {\n }", "public ListAdapter getAdapter() {\n/* 431 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CollectionItemInfo getCollectionItemInfo() {\n/* 1114 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public CharSequence getContentDescription() {\n/* 1531 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n public void cancel() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\r\n }", "@Override\n public final void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\r\n throw new UnsupportedOperationException();\r\n }", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "public void remove() throws UnsupportedOperationException {\n\t\t\tthrow new UnsupportedOperationException( \"remove() Not implemented.\" );\n\t\t}", "public boolean isSelected() {\n/* 3021 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void chk() {\n if (clist != null)\n throw new UnsupportedOperationException();\n }", "public void remove() {\n\t\t\tthrow new UnsupportedOperationException();\n\t\t}", "@Override\n\tpublic void e() {\n\n\t}", "public boolean isEditable() {\n/* 1014 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "@Override\n\tpublic int method() {\n\t\treturn 0;\n\t}", "private void m50366E() {\n }", "@Deprecated\n\tprivate void oldCode()\n\t{\n\t}", "public boolean mo1266f() {\n throw new UnsupportedOperationException(getClass().getSimpleName());\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "@Override\n public void actionPerformed(ActionEvent ae) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "private void someUtilityMethod() {\n }", "private void someUtilityMethod() {\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "public void remove() {\n throw new UnsupportedOperationException();\n }", "private CollectionUtils() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "default boolean isDeprecated() {\n return false;\n }", "public String formNotImplemented()\r\n {\r\n return formError(\"501 Method not implemented\",\"Service not implemented, programer was lazy\");\r\n }", "@Override\n\tpublic String getMoreInformation() {\n\t\tthrow new UnsupportedOperationException();\n\t}", "public void m23075a() {\n }", "private void setText() {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "@Override\n\tpublic void dosomething() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "public int getObjectPropCode() {\n/* 108 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void toggle() {\n/* 135 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public String getSuggestSelection() {\n/* 113 */ throw new RuntimeException(\"Stub!\");\n/* */ }" ]
[ "0.77442753", "0.73745763", "0.6965507", "0.6908429", "0.6797187", "0.67738247", "0.6770793", "0.6653347", "0.66378933", "0.66238236", "0.6608154", "0.6608154", "0.65922153", "0.6585848", "0.6554524", "0.64987206", "0.6461772", "0.64494187", "0.6428624", "0.64187545", "0.6382625", "0.63818306", "0.6378436", "0.63760686", "0.6363862", "0.6359368", "0.6358748", "0.63529646", "0.63335854", "0.63335854", "0.63335854", "0.6331548", "0.6324637", "0.63223016", "0.63223016", "0.6313098", "0.62910104", "0.6278451", "0.6277943", "0.6273101", "0.6263474", "0.62461776", "0.62246966", "0.62246966", "0.62209004", "0.6202992", "0.620283", "0.61993957", "0.61990935", "0.6192765", "0.6191409", "0.61794096", "0.61794096", "0.6163539", "0.6163035", "0.6159816", "0.61455685", "0.61266595", "0.6124387", "0.61233777", "0.61219746", "0.61146545", "0.611324", "0.61075956", "0.61014634", "0.609056", "0.6089885", "0.6087785", "0.60857874", "0.608487", "0.608487", "0.6079172", "0.6059358", "0.6056012", "0.60486186", "0.6045742", "0.60416967", "0.602463", "0.6021055", "0.60157436", "0.6015653", "0.60154283", "0.60085464", "0.6006141", "0.59972876", "0.5994861", "0.59860784", "0.59860784", "0.5984869", "0.5984869", "0.59825116", "0.59815866", "0.59788644", "0.5969931", "0.59671116", "0.5965354", "0.5963944", "0.5963186", "0.5956418", "0.59511787", "0.59503233" ]
0.0
-1
TODO Autogenerated method stub
@SuppressWarnings("unchecked") @Override @Transactional public ArrayList<ApplicationUserRole> getAllRoles() throws Exception { ArrayList<ApplicationUserRole> roleList = null; try { Session session = sessionFactory.getCurrentSession(); Query query = session.createQuery("from ApplicationUserRole"); roleList = (ArrayList<ApplicationUserRole>) query.list(); } catch (Exception e) { e.printStackTrace(); throw e; } return roleList; }
{ "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 @Transactional public String addOrUpdateRole(ApplicationUserRole applicationUserRoleBean) { String ex=null; try { Session session = sessionFactory.getCurrentSession(); session.merge(applicationUserRoleBean); } catch(HibernateException e) { e.printStackTrace(); } return ex; }
{ "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
onClick for BACK option
public void backtoMain() { Intent i=new Intent(this,MainActivity.class); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void onGoBackButtonClick();", "@Override\r\n\tpublic void backButton() {\n\t\t\r\n\t}", "public void goBack() {\n goBackBtn();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\n\t\t\t}", "private void backButton() {\n navigate.goPrev(this.getClass(), stage);\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tonBackPressed();\r\n\t\t\t}", "public void back()\n\t{\n\t\tdriver.findElementById(OR.getProperty(\"BackButton\")).click();\n\t}", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tonBackPressed();\n\t\t\t}", "default public void clickBack() {\n\t\tclickMenu();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tBack();\n\t}", "@Override\n\tpublic void backButton() {\n\n\t}", "public void onBackPressed() {\n backbutton();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\ttry\n\t\t\t\t{if(wb.canGoBack())\n\t\t\t\t\twb.goBack();\n\t\t\t\t}catch(Exception e)\n\t\t\t\t{\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void clickBackButton() {\n\t\tbackButton.click();\n\n\t}", "public void actionPerformedBack(ActionListener back) {\n btnBack.addActionListener(back);\n }", "public void BackBtn(MouseEvent event) {\n\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tif (v == backBtn)\n\t\t\tfinish();\n\t}", "@Override\n\tpublic void onBackPressed()\n\t\t{\n\t\tbackPressed();\n\t\t}", "public void back() {\n Views.goBack();\n }", "void onUpOrBackClick();", "@Override\r\n\tpublic void onBackPressed()\r\n\t{\r\n\t\tif (flipper.getDisplayedChild() != 0)\r\n\t\t{\r\n\t\t\tflipper.showPrevious();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tsuper.onBackPressed();\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View v) {\n if (v.getId() == R.id.ll_back) {\n onBackPressed();\n }\n\n }", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tRotiHomeActivity.getInstance().onBackPressed();\r\n\t\t\t\r\n\t\t\t}", "@Override\n public void onClick(View v) {\n onBackPressed();\n }", "@Override\n public void onClick(View v) {\n onBackPressed();\n }", "@Override\n public void onClick(View v) {\n onBackPressed();\n }", "@Override\n public void onClick(View v) {\n onBackPressed();\n }", "public void Back(View view) {\n\n onBackPressed();\n }", "@Override\n public void onClick(View view) {\n onBackPressed(); }", "@Override\n\tpublic void onClick(View v) {\n\t\tif (v == tvBack) {\n\t\t\tthis.finish();\n\t\t}\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\texitApplication().onClick(null);\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public void backButton() {\n\n\n }", "void actionBack();", "public void clickbtnBack() {\n\t\tdriver.findElement(btnBack).click();\n\t}", "public void onClick(View arg0) {\n goBack();\n }", "public void clickBack(View view){\r\n onBackPressed();\r\n }", "@Override\n public void onBackPressed() {\n backToHome();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\t\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t\tdoBack();\r\n\t}", "public void onBackPressed() {\r\n }", "@Override\r\n\t\tpublic void onClick(View v) {\n\t\t\tswitch (v.getId()) {\r\n\t\t\tcase R.id.back:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\t\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\t\r\n\t\t}", "public abstract boolean onBackPressed();", "boolean onBackPressed();", "boolean onBackPressed();", "public void onClickBack(View view){\n onBackPressed();\n }", "@Override\n \tpublic void onBackPressed() {\n \t}", "@Override\n\tpublic void onBackPressed() {\n\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.imageButton_back:\n\t\t\tsuper.onBackPressed();\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tbackButtonHandler();\r\n\t\treturn;\r\n\t}", "public abstract boolean onBackPressed(boolean isSystemBackKey);", "private void backBtnActionPerformed(java.awt.event.ActionEvent evt) {\n backButtonFunction();\n }", "@Override\n\tpublic void onBackPressed()\n\t{\n\t}", "@Override\n public void onClick(View v) {\n switch (v.getId()) {\n case R.id.back_btn:\n onBackPressed();\n break;\n default:\n break;\n }\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\n\t\t\n\t}", "public void onClick(View v) {\n\t\t\tonBackPressed();\n\t\t}", "@Override\r\n public void onClick(View view) {\r\n finish();\r\n onBackPressed();\r\n\r\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\tif(screen.equalsIgnoreCase(\"reward\"))\n\t\t\t{\n\t\t\t\tRewards.getInstance().onBackPressed();\n\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\t\n\t\t\t\tInfo.getInstance().onBackPressed();\n\t\t\t}\n\t\t\t\n\t\t\t}", "public void keyBackIsPressed(){}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\r\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t}", "@Override\n\tpublic boolean onNaviBackClick() {\n\t\treturn false;\n\t}", "@Override\n\tpublic void onBackPressed() {\n\treturn;\n\t}", "@Override\n public void onBackPressed() {\n \tshowDialog(DLG_BUTTONS);\n }", "public void backClick(View view) {\n finish();\n }", "@Override\n\tpublic void onBackPressed() {\n\t\treturn;\n\t}", "public static void clickBackBtn() {\t\n\t\ttry {\n\t\t\tdriver.findElement(By.xpath(\"//*[@id=\\\"backquest\\\"]\")).click();\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\tSystem.out.println(\"Back button doesnt work\");\n\t\t}\n\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.backBtn:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "@Override\r\n public void onBackPressed() {\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tsuper.onBackPressed();\n\t\treturn;\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\r\n\t}", "protected void handleBack(ActionEvent event) {\n\t}", "public static void pressBack() {\n onView(isRoot()).perform(ViewActions.pressBack());\n }", "public void backButtonPressed(View view) {\n onBackPressed();\n }", "public void onBackPressed()\n {\n }", "public void goBack(View view) {\n super.onBackPressed();\n }", "@Override\n public void backPressed(){\n }", "public void setBackArrowFunction() {\n final ImageView backArrowIV = (ImageView) findViewById(R.id.backArrow);\n backArrowIV.setOnClickListener(new View.OnClickListener() {\n public void onClick(View v) {\n finish();\n }\n });\n }", "@Override\n\tpublic void onBackPressed() {\n\t\tIntent i = new Intent(this, PayOptions.class);\n\t\tstartActivity(i);\n\t\treturn;\n\t}", "@Override\n\tpublic void onBackKeyPressed() {\n\treturn;\t\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "@Override\r\n\tpublic void onBackPressed() {\n\t\tfinish();\r\n\t}", "public void onClick(View v) {\n\t\t\t\tonBackPressed();\r\n\t\t\t\tfinish();\r\n\t\t\t}", "@Override\n\tpublic void onBackPressed() {\n\t\tthis.finish();\n\t\tsuper.onBackPressed();\n\t}", "@Override\n public boolean onKeyDown(int keyCode, KeyEvent event) {\n if(keyCode==KeyEvent.KEYCODE_BACK){\n return back();\n }\n return super.onKeyDown(keyCode, event);\n }", "public void back() {\n\t\tstate.back();\n\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.img_back:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}" ]
[ "0.81905246", "0.8058654", "0.80311954", "0.8006809", "0.8006809", "0.8006809", "0.80029404", "0.7952653", "0.7952526", "0.79485434", "0.79403377", "0.79366", "0.78969544", "0.7896719", "0.7888217", "0.78251815", "0.7806822", "0.7805415", "0.77962023", "0.7790364", "0.7773653", "0.7709304", "0.7708536", "0.77058905", "0.7703941", "0.7685949", "0.7685949", "0.7685949", "0.7685949", "0.76852256", "0.76664245", "0.7663391", "0.7637971", "0.76244056", "0.7610695", "0.7602401", "0.7590434", "0.75860274", "0.7569091", "0.75583965", "0.75513333", "0.7548116", "0.7536193", "0.7530835", "0.7523319", "0.7523319", "0.7511995", "0.7504633", "0.75038725", "0.7492145", "0.7492145", "0.7492145", "0.7492145", "0.7491488", "0.74839175", "0.74784994", "0.74761665", "0.7475538", "0.7464553", "0.7463936", "0.74566", "0.7454947", "0.7447246", "0.7443221", "0.7438858", "0.7438858", "0.7431875", "0.7431875", "0.7431875", "0.7431875", "0.7431875", "0.7431875", "0.7431875", "0.7431875", "0.743087", "0.7429326", "0.74285436", "0.74196136", "0.74083084", "0.7400577", "0.739857", "0.73946166", "0.73828954", "0.7381659", "0.7381659", "0.7376061", "0.73615", "0.7359841", "0.7345154", "0.7331229", "0.73292726", "0.73246956", "0.7313905", "0.73046696", "0.7301123", "0.7301123", "0.72902536", "0.72878045", "0.7280985", "0.7277761", "0.7270685" ]
0.0
-1
To Choose the output value of DKnob
public int choisirAffichageValeur(SigneAffichage sa, DKnob sld){ int val; int pas=ts.getEntInter(); if(sa.equals(SigneAffichage.negatif)){ val=(int)((pas*2) * sld.getValue())-pas; ts.setNombreDeTrait(pas*2); }else if(sa.equals(SigneAffichage.positif)){ val=(int)((pas) * sld.getValue()); ts.setNombreDeTrait(pas); }else{ int Puissance=(int)(pas*sld.getValue()); val=(int) Math.pow(2, Puissance); ts.setNombreDeTrait(pas); } return val; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDO(int index, int value) {\n\t\tmIKar07Lib.setDigitalOutput(index, value);\n\t}", "private void PIDDrive(double output){\n if(!manual){\n \tif (top_limitSwitch.get() == false && (output<0)){\n \t\televMotor.pidWrite(0);\n \t\tcurrentStep = 4;\n \t}\n \telse if (bottom_hallEffect.get() == false && (output>0)){\n \t\televMotor.set(0);\n \t\tencReset();\n \t}\n \telse {\n \t\televMotor.pidWrite(output);\n \t}\n }\n }", "public void knobGenerated( final BumpGenerator generator, final Knob knob );", "public abstract void useOutput(double output);", "public abstract void useOutput(double output);", "public void controllerChange(int channel, int number, int value) {\n // Here we print the controller number.\n println(number);\n // If we turn knob with id 104, draw a line\n // The vertical position of the line depends on how much we turn the knob\n if(number == 104) {\n float y = map(value, 0, 127, 0, height);\n line(0, y, width, y);\n }\n // If we turn knob with id 103, draw a circle\n // The size of the circle depends on how much we turn the knob\n if(number == 103) {\n ellipse(width/2, height/2, value*2, value*2);\n }\n}", "protected void usePIDOutput(double output) {\n \tSmartDashboard.putNumber( \"TurnToAngle-PIDOutput\",output);\n\n robotDrive41.tankDrive(output,-output);\n \t//leftFront.set(output);\n \t//leftRear.set(output);\n \t//rightFront.set(output);\n \t//rightRear.set(output);\n }", "protected void outputChange( int value ) {\n final int comp = 1 - value;\n System.out.println(\n \"time \" + Simulation.time + \" \" + comp + \"->\" + value + \" \" + this\n );\n for (Wire w: outgoing) w.inputChange( value );\n }", "protected abstract void getPotentiometerValue(int value, int channelNo);", "public void chooseBiasValue() {\r\n \r\n if (biasMode.charAt(0) == 't')\r\n {\r\n for (int i=0; i < hiddenLayerContainer.getHiddenLayerContainer().size(); i++){\r\n hiddenLayerContainer.getHiddenLayerContainer().get(i).setBiasActive(true);\r\n }\r\n outputLayer.setBiasActive(true);\r\n }\r\n }", "public void doubleTileValue() {\n value = value*2;\n label.setText(Integer.toString(value));\n if (value > 4) {\n label.setForeground(other);\n } \n }", "public int getOfYourChoiceOutput() {\n return ofYourChoiceOutput;\n }", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:24:54.459 -0400\", hash_original_method = \"83F3538632BF73896EB15A683899A7FF\", hash_generated_method = \"EA5B209910E5170099228440681166CF\")\n \n public static int getBandCommand(){\n \tdouble taintDouble = 0;\n \n \treturn (int)taintDouble;\n }", "public void pidWrite(double output) {\n setTension(-output);//This is inverted so the PIDController moves the tension towards the setpoint.\n }", "protected void usePIDOutput(double output) {\n\t\n if(output >= 0.0)\n this.shooter.setShooterMotor(output);\n ScraperBike.debugToTable(\"PIDOutput\", output);\n }", "public void sliderChange(int r, int g, int b)\n {\n String outPutR;\n String outPutG;\n String outPutB;\n \n //************output to binary()*******//\n if(binaryRBtn.isSelected() == true)\n { \n outPutR = Integer.toBinaryString(r);\n outPutG = Integer.toBinaryString(g);\n outPutB = Integer.toBinaryString(b);\n\n messageRed = (\"\" + outPutR); \n messageGreen = (\"\" + outPutG);\n messageBlue = (\"\" + outPutB);\n }\n //********output to hex()************//\n else if(hexDecRBtn.isSelected() == true)\n {\n outPutR = Integer.toHexString(r);\n outPutG = Integer.toHexString(g);\n outPutB = Integer.toHexString(b);\n \n \n messageRed = (\"\" + outPutR);\n messageGreen = (\"\" + outPutG);\n messageBlue = (\"\" + outPutB);\n }\n //**********output to Octal()********//\n else if(octalRBtn.isSelected() == true)\n {\n outPutR = Integer.toOctalString(r);\n outPutG = Integer.toOctalString(g);\n outPutB = Integer.toOctalString(b);\n \n \n messageRed = (\"\" + outPutR);\n messageGreen = (\"\" + outPutG);\n messageBlue = (\"\" + outPutB);\n }\n //*********output to decimal()********//\n else if(decimalRBtn.isSelected() == true)\n {\n outPutR = Integer.toString(r);\n outPutG = Integer.toString(g);\n outPutB = Integer.toString(b);\n \n \n messageRed = (\"\" + outPutR);\n messageGreen = (\"\" + outPutG);\n messageBlue = (\"\" + outPutB);\n }\n \n //******Bar Display rise and fall()******//\n redHeight=1; \n greenHeight=1; \n blueHeight=1;\n \n redHeight += rSliderValue;\n greenHeight += gSliderValue;\n blueHeight += bSliderValue;\n \n redYvalue = 475;\n redYvalue -=rSliderValue;\n \n greenYvalue = 475;\n greenYvalue -=gSliderValue;\n \n blueYvalue = 475;\n blueYvalue -=bSliderValue;\n \n repaint();\n \n }", "protected abstract void useOutput(float output, float setpoint);", "@Override\n public double getOutput() {\n return this.inputValue;\n }", "@Override\n public void output(Word value){ \n Integer integerValue = value.getUnsignedValue();\n int intValue = (int)integerValue; \n guiDisplay.append(String.valueOf((char)intValue)); \n guiDisplay.setCaretPosition(guiDisplay.getDocument().getLength());\n }", "public void pidWrite(double output) {\n set(output);\n }", "@Override\n public void valueChanged(double control_val) {\n playbackRate.setValue((float)control_val);\n // Write your DynamicControl code above this line\n }", "private void outputMe() {\n\t\tif (changeCount > 2) changeCount = 4 - (changeCount & 1);\n\t\tif (outputValue) {\n\t\t\tSystem.out.append( trueArray[ changeCount ] );\n\t\t} else {\n\t\t\tSystem.out.append( falseArray[ changeCount ] );\n\t\t}\n\t\tchangeCount = 0;\n\t}", "public void output() {\n System.out.printf(\"Dien tich: %.2f \\n\", getArea());\n System.out.printf(\"Chu vi: %.2f \\n\", getPeripheral());\n }", "public void setGivenNum(double input) {\n givenNum = input;\n }", "public void setOutput(int output) {\n Output = output;\n }", "public void setDmaValue(int value);", "@Override\n\tprotected void usePIDOutput(double output) {\n\t\tarm.set(output);\n\t}", "@Override\n\t\t\tpublic void pidWrite(double output) {\n\t\t\t\tRobotMap.robotDrive.tankDrive(output, output);\n\t\t\t}", "private void outputAnswer(double c){\n\t\tprint(\"c = \" + c);\n\t}", "public double getDxOutput() {\r\n return dxOutput;\r\n }", "public int getDmaValue();", "@Override\n protected void usePIDOutput(double output) {\n liftmotor.pidWrite(output);\n\n // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=OUTPUT\n }", "@Override\n\tpublic void pidWrite(double output) {\n\t\t\n\t\toutput = turn;\n\t\t\n\t\tleftValue = stick + output;\n\t\trightValue = stick - output;\n\t\t\n\t\tthis.tankDrive(leftValue, rightValue);\n\t\t\n\n\t}", "private void feedback_output(){\r\n\t\tif(up){controller_computer.gui_computer.PressedBorderUp();}\r\n\t\tif(down){controller_computer.gui_computer.PressedBorderDown();}\r\n\t\tif(right){controller_computer.gui_computer.PressedBorderRight();}\r\n\t\tif(left){controller_computer.gui_computer.PressedBorderLeft();}\r\n\t}", "private void setRedstoneOutput(final short value) {\n // Clamp to valid redstone range.\n final short validatedValue = (short)Math.max(0, Math.min(15, value));\n if (validatedValue == output) {\n return;\n }\n\n output = validatedValue;\n\n // If the value changed, make sure we're saved.\n getCasing().markDirty();\n\n // Notify neighbors, avoid multiple world updates per tick.\n scheduledNeighborUpdate = true;\n\n sendData();\n }", "private void setTipPercentage(){\n System.out.println(\"You indicated the service quality was \"+\n serviceQuality+\". What percentage tip would you like to leave?\");\n tipRate=keyboard.nextDouble();\n \n \n }", "public abstract double value(Instance output, Instance example);", "@AbstractCustomGlobal.GlobalMethod(menuText=\"Set Threshold Probability\")\n public void setThreshold() {\n if(Tools.getGlobalTime()!=0){\n JOptionPane.showMessageDialog(null, \"You can change this probability only when the simulation start\",\"Alert\", JOptionPane.INFORMATION_MESSAGE);\n return;\n }\n String answer = JOptionPane.showInputDialog(null, \"Set the probability that a node can be selected to run.\");\n // Show an information message\n try{\n double k = Double.parseDouble(answer);\n Iterator<Node> it = Tools.getNodeList().iterator();\n while(it.hasNext()){\n Node n = it.next();\n if(n.getClass() == MSNode.class){\n MSNode n1 = (MSNode)n;\n n1.setThresholdProbability(k);\n }\n if(n.getClass() == MS2Node.class){\n MS2Node n1 = (MS2Node)n;\n n1.setThresholdProbability(k);\n }\n }\n JOptionPane.showMessageDialog(null, \"Well done you have set this value:\"+k,\"Notice\", JOptionPane.INFORMATION_MESSAGE);\n }catch(NumberFormatException e){\n JOptionPane.showMessageDialog(null, \"You must insert a valid double \", \"Alert\", JOptionPane.INFORMATION_MESSAGE);\n }\n }", "private void setB(float dB) {\n EditText field = (EditText) findViewById(R.id.valB);\n SeekBar sb = (SeekBar) findViewById(R.id.seekB);\n\n b = dB;\n if (b < 1) {\n b = 1.0f;\n } else if (b > 2) {\n b = 2.0f;\n }\n\n field.setText(String.valueOf(b));\n\n if ((b - 1) * 100 <= sb.getMax()) {\n sb.setProgress((int)((b - 1) * 100));\n }\n }", "@FXML\n private void pickDiscFour() {\n activeDisc = \"Disc 4\";\n discSwitchButton.setText(\"Disc 4\");\n displayFilesFromDisc();\n }", "public void setup() {\n \n frameRate(10);\n background(51);\n stroke(255);\n textSize(20);\n text(\"Click the mouse to change the digit\", 1, 15);\n float r = 40;\n d = new Display(r, r, 200, 40);\n // d1 = new Display(r * 5, 10, 20, 10);\n // d2 = new Display(r * 10, 10, 20, 10);\n // d3 = new Display(r * 15, 10, 20, 10);\n // d4 = new Display(r * 20, 10, 20, 10);\n // d5 = new Display(r * 25, 10, 20, 10);\n // d6 = new Display(r * 30, 10, 20, 10);\n // d7 = new Display(r * 35, 10, 20, 10);\n // d8 = new Display(r * 40, 10, 20, 10);\n // d9 = new Display(r * 45, 10, 20, 10);\n d.updatei(0);\n}", "public String _setvalue(int _v) throws Exception{\n_mvalue = (int) (__c.Max(_mmin,__c.Min(_mmax,_v)));\n //BA.debugLineNum = 149;BA.debugLine=\"Draw\";\n_draw();\n //BA.debugLineNum = 150;BA.debugLine=\"End Sub\";\nreturn \"\";\n}", "public void displayBmi () {\n\t\t\tSystem.out.println (\"Underweight =< 18.5\\nNormal weight = 18.5-24.9\\nOverweight = 25 - 29.9\\nObese = 30 or higher\");\n\t\t}", "public void ShowData() {\t\n\t\t\t\n\t\t\tShort SR0= cpu.getR0();\n\t\t\tString strR0 = String.format(\"%16s\",Integer.toBinaryString(SR0.intValue())).replace(' ', '0');\n\t\t\tif(strR0.length()>16){\n\t\t\t\tstrR0=strR0.substring(strR0.length()-16,strR0.length());\n\t\t\t}\n\t\t\tint a = 0;\n\t\t\twhile(a < strR0.length()) {\n\t\t\t\tchar[] chara = strR0.toCharArray();\n\t\t\t\tif (chara[a] == '1') {\n\t\t\t\t\tR0[a].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR0[a].setSelected(false);\n\t\t\t\t}\n\t\t\t\ta++;\n\t\t\t}\n\n\t\t\tShort SR1 = cpu.getR1();\n\t\t\tString strR1 = String.format(\"%16s\",Integer.toBinaryString(SR1.intValue())).replace(' ', '0');\n\t\t\tif(strR1.length()>16){\n\t\t\t\tstrR1=strR1.substring(strR1.length()-16,strR1.length());\n\t\t\t}\n\t\t\tint b = 0;\n\t\t\twhile(b < strR1.length()) {\n\t\t\t\tchar[] charb = strR1.toCharArray();\n\t\t\t\tif (charb[b] == '1') {\n\t\t\t\t\tR1[b].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR1[b].setSelected(false);\n\t\t\t\t}\n\t\t\t\tb++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SR2 = cpu.getR2();\n\t\t\tString strR2 = String.format(\"%16s\",Integer.toBinaryString(SR2.intValue())).replace(' ', '0');\n\t\t\tif(strR2.length()>16){\n\t\t\t\tstrR2=strR2.substring(strR2.length()-16,strR2.length());\n\t\t\t}\n\t\t\tint c = 0;\n\t\t\twhile(c < strR2.length()) {\n\t\t\t\tchar[] charc = strR2.toCharArray();\n\t\t\t\tif (charc[c] == '1') {\n\t\t\t\t\tR2[c].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR2[c].setSelected(false);\n\t\t\t\t}\n\t\t\t\tc++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SR3 = cpu.getR3();\n\t\t\tString strR3 = String.format(\"%16s\",Integer.toBinaryString(SR3.intValue())).replace(' ', '0');\n\t\t\tif(strR3.length()>16){\n\t\t\t\tstrR3=strR3.substring(strR3.length()-16,strR3.length());\n\t\t\t}\n\t\t\tint d = 0;\n\t\t\twhile(d < strR3.length()) {\n\t\t\t\tchar[] chard = strR3.toCharArray();\n\t\t\t\tif (chard[d] == '1') {\n\t\t\t\t\tR3[d].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tR3[d].setSelected(false);\n\t\t\t\t}\n\t\t\t\td++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SX1 = cpu.getX1();\n\t\t\tString strX1 = String.format(\"%16s\",Integer.toBinaryString(SX1.intValue())).replace(' ', '0');\n\t\t\tif(strX1.length()>16){\n\t\t\t\tstrX1=strX1.substring(strX1.length()-16,strX1.length());\n\t\t\t}\n\t\t\tint f = 0;\n\t\t\twhile(f < strX1.length()) {\n\t\t\t\tchar[] charf = strX1.toCharArray();\n\t\t\t\tif (charf[f] == '1') {\n\t\t\t\t\tX1[f].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tX1[f].setSelected(false);\n\t\t\t\t}\n\t\t\t\tf++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SX2 = cpu.getX2();\n\t\t\tString strX2 = String.format(\"%16s\",Integer.toBinaryString(SX2.intValue())).replace(' ', '0');\n\t\t\tif(strX2.length()>16){\n\t\t\t\tstrX2=strX2.substring(strX2.length()-16,strX2.length());\n\t\t\t}\n\t\t\tint g = 0;\n\t\t\twhile(g < strX2.length()) {\n\t\t\t\tchar[] charg = strX2.toCharArray();\n\t\t\t\tif (charg[g] == '1') {\n\t\t\t\t\tX2[g].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tX2[g].setSelected(false);\n\t\t\t\t}\n\t\t\t\tg++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SX3 = cpu.getX3();\n\t\t\tString strX3 = String.format(\"%16s\",Integer.toBinaryString(SX3.intValue())).replace(' ', '0');\n\t\t\tif(strX3.length()>16){\n\t\t\t\tstrX3=strX3.substring(strX3.length()-16,strX3.length());\n\t\t\t}\n\t\t\tint h = 0;\n\t\t\twhile(h < strX3.length()) {\n\t\t\t\tchar[] charh = strX3.toCharArray();\n\t\t\t\tif (charh[h] == '1') {\n\t\t\t\t\tX3[h].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tX3[h].setSelected(false);\n\t\t\t\t}\n\t\t\t\th++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SMAR = cpu.getMar();\n\t\t\tString strMAR = String.format(\"%16s\",Integer.toBinaryString(SMAR.intValue())).replace(' ', '0');\n\t\t\tif(strX3.length()>16){\n\t\t\t\tstrMAR=strMAR.substring(strMAR.length()-16,strMAR.length());\n\t\t\t}\n\t\t\tint j = 0;\n\t\t\twhile(j < strMAR.length()) {\n\t\t\t\tchar[] charj = strMAR.toCharArray();\n\t\t\t\tif (charj[j] == '1') {\n\t\t\t\t\tMAR[j].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tMAR[j].setSelected(false);\n\t\t\t\t}\n\t\t\t\tj++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SMBR = cpu.getMbr();\n\t\t\tString strMBR = String.format(\"%16s\",Integer.toBinaryString(SMBR.intValue())).replace(' ', '0');\n\t\t\tif(strMBR.length()>16){\n\t\t\t\tstrMBR=strMBR.substring(strMBR.length()-16,strMBR.length());\n\t\t\t}\n\t\t\tint k = 0;\n\t\t\twhile(k < strMBR.length()) {\n\t\t\t\tchar[] chark = strMBR.toCharArray();\n\t\t\t\tif (chark[k] == '1') {\n\t\t\t\t\tMBR[k].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tMBR[k].setSelected(false);\n\t\t\t\t}\n\t\t\t\tk++;\n\t\t\t}\n\t\t\t\n\t\t\tShort SIR = cpu.getIr();\n\t\t\tString strIR = String.format(\"%16s\",Integer.toBinaryString(SIR.intValue())).replace(' ', '0');\n\t\t\tif(strIR.length()>12){\n\t\t\t\tstrIR=strIR.substring(strIR.length()-16,strIR.length());\n\t\t\t}\n\t\t\tint l = 0;\n\t\t\twhile(l < strIR.length()) {\n\t\t\t\tchar[] charl = strIR.toCharArray();\n\t\t\t\tif (charl[l] == '1') {\n\t\t\t\t\tIR[l].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tIR[l].setSelected(false);\n\t\t\t\t}\n\t\t\t\tl++;\n\t\t\t}\t\t\t\n\t\t\t\n\t\t\tShort SPC = cpu.getPc();\n\t\t\tString strPC = String.format(\"%12s\",Integer.toBinaryString(SPC.intValue())).replace(' ', '0');\n\t\t\tif(strPC.length()>12){\n\t\t\t\tstrPC=strPC.substring(strPC.length()-16,strPC.length());\n\t\t\t}\n\t\t\tint m = 0;\n\t\t\twhile(m < strPC.length()) {\n\t\t\t\tchar[] charm = strPC.toCharArray();\n\t\t\t\tif (charm[m] == '1') {\n\t\t\t\t\tPC[m].setSelected(true);\n\t\t\t\t} else {\n\t\t\t\t\tPC[m].setSelected(false);\n\t\t\t\t}\n\t\t\t\tm++;\n\t\t\t}\t\t\t\n\t\t\t\n\t}", "public void driver(Input i) //data type is Input \n\t{\n\t\tintensity = i.setIntensity();\n\t\tsetTime();\n\t\tcalcCalories(); \n\t\t//debug:\n\t\tJOptionPane.showMessageDialog(null, \"Time biking: \" + bikeTime + \" minutes and calories consumed: \" + bikeCal);\n\t\t\t\n\t}", "private void dSliderStateChanged(javax.swing.event.ChangeEvent evt) {//GEN-FIRST:event_dSliderStateChanged\n float tmp_value = ((float)this.dSlider.getValue())/10;\n this.paramDLabel.setText(\"\" + tmp_value);\n }", "public void setBikeNum(int NewValue){\n bike = NewValue;\n }", "void setValue(double value);", "public void setPercentOutput(double value) {\n motor.set(ControlMode.PercentOutput, value);\n }", "@Override\n public void valueChanged(double control_val) {\n loop_end.setValue((float)control_val);\n // Write your DynamicControl code above this line \n }", "public void setVariableD(int value, String comment) {\r\n if (value >=0 && value <= 127) {\r\n sliderD.setValue(value);\r\n labelD.setText(\" variableD = \" + value + \" \");\r\n variableD = value;\r\n }\r\n if (comment.length() > 18) {\r\n commentLabD.setText(\" \" + comment.substring(0, 16) + \"...\");\r\n } else commentLabD.setText(\" \" + comment +\" \");\r\n }", "public void set_constant(double cutoff)\r\n\t{\r\n\t\tthis.switchValue = (int)cutoff;\t\r\n\t}", "public void getPaintPrice(){\n System.out.println(\"Enter the price per gallon of paint: \");\n this.pricePerGallon = INPUT.nextDouble();\n }", "public void setHigh(double value){high = value;}", "private void sample() {\n Number value = gauge.get();\n this.inner.set(value != null ? value.doubleValue() : 0);\n }", "double getLabel();", "protected double returnPIDInput() {\n\t\t\n ScraperBike.debugToTable(\"PIDInput\", RobotMap.shootEncoder.getRate()*60);\n \n return RobotMap.shootEncoder.getRate()*60;\n }", "@FXML\n private void pickDiscFive() {\n activeDisc = \"Disc 5\";\n discSwitchButton.setText(\"Disc 5\");\n displayFilesFromDisc();\n }", "int getSelectedSpriteValue();", "@Override\n\tpublic double selectPower(int vid) {\n\t\treturn vb.selectPower(vid);\n\t}", "protected void choseInterface() {\n\t\tint temp=Integer.parseInt(textField.getText());\r\n\t\tif(temp>0 && temp<=counter)\r\n\t\t{\r\n\t\t\tindex=temp; // index is he index of network inerface object to see which object need to be opened\r\n\t\t\tenableButtons();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tJOptionPane.showMessageDialog(null, \"Outsde of Range. # interfaces = 1-\"+(counter)+\".\");\r\n\t\t}\r\n\t\ttextField.setText(\"\");\r\n\t}", "public static void getBattleChoice() {\n \t\tMainGame.display.disp(\"What do you want to do?:\");\r\n \t\tMainGame.display.Enable(MainGame.display.attack, MainGame.display.defend, MainGame.display.heal);\r\n \t}", "@Override\n public void usePIDOutput(double output)\n {\n /* uses additive values to keep it moving forward, but adjusts them based on the output so it can turn while moving straight */\n target.setLeft(this.additiveLeft + output);\n target.setRight(this.additiveRight - output);\n }", "public void setDm(double value) {\n this.dm = value;\n }", "public void setAirPressure(double airpress){airpressval.setText(Double.toString(airpress));}", "public void changeVarLabel() {\n if (inHouse.isSelected()) {\n varLabel.setText(\"Machine ID\");\n variableTextField.setPromptText(\"Machine ID...\");\n variableTextField.setMaxLength(9);\n int textLength = partId.getText().length();\n variableTextField.setText(variableTextField.getText().replaceAll(\"[^\\\\d.]\", \"\"));\n variableTextField.positionCaret(textLength);\n } else if (outsourced.isSelected()) {\n varLabel.setText(\"Company Name\");\n variableTextField.setPromptText(\"Company Name...\");\n variableTextField.setMaxLength(26);\n }\n }", "@Override\n\tpublic void useSavedNumber(double num)\n\t{\n\t\tString[] options = {\"Solubility - before\", \"Solubility - after\", \"Pressure - before\", \"Pressure - after\"};\n\t\tString result = (String)JOptionPane.showInputDialog(panel, \"Choose where to use the number.\", \"Choose number\", JOptionPane.PLAIN_MESSAGE, null, \n\t\t\t\toptions, options[0]);\n\t\tif(result == null) return;\n\t\tif(result.equals(options[0])) solubility.setBeforeValue(num);\n\t\telse if(result.equals(options[1])) solubility.setAfterValue(num);\n\t\telse if(result.equals(options[2])) pressure.setBeforeValue(num);\n\t\telse pressure.setAfterValue(num);\n\t}", "public void setOutputPower(double power) {\n double powerOutput = (double) ((int) Math.round(power * 10) / 10.0);\n outputPower.set(powerOutput);\n }", "public void digitalWrite(int pin, byte value) { // pack this bit into..\r\n int portNumber = (pin >> 3) & 0x0F; // ..8-bit port & send to Ardu\r\n int digiData = digitalOutputData[portNumber & MDB_msk];\r\n if (SpeakEasy){\r\n System.out.println(\"F%%F/digiWrite #\" + pin + \" = \" + value);\r\n }\r\n if ((int) value == 0){\r\n digiData = digiData & ~(1 << (pin & 7));\r\n } else {\r\n digiData = digiData | (1 << (pin & 7));\r\n }\r\n digitalOutputData[portNumber & MDB_msk] = digiData;\r\n Send3bytes(DIGITAL_MESSAGE | portNumber, digiData, -1);\r\n }", "public void disconnectSerial(int theValue) \n{\n //check to make sure we're in run mode and that the serial port is connected\n if(running ==1 && sPort != null)\n {\n sPort.stop();//stop/disconnect the serial port \n sPort = null;//set the serial port to null, incase another function checks for connectivity\n //curIdField.setValue(\"No Servo Connected\");//change current id field to a prompt\n //curIdField.valueLabel().style().marginLeft = 0;\n //dynaModelNameField.setValue(\"\");//change model name field to nothing\n //servoScanned = 0; //disconnecting the serial port also disconnects any currently connected sercos\n //hide the scan set and test group\n controGroup.setVisible(false);\n // setGroup.setVisible(false);\n // testGroup.setVisible(false);\n //make visible the statup prompt\n startupGroup.setVisible(true);\n\n //unlock connect button and change apperance, lock disconnect button and change apperance\n connectButton.unlock();\n connectButton.setColorBackground(color(2,52,77));\n autoSearchButton.unlock();\n autoSearchButton.setColorBackground(color(2,52,77));\n disconnectButton.lock();\n disconnectButton.setColorBackground(color(200));\n \n }\n}", "@Override\r\n\tpublic void setComputerValue() {\n\t\trps.setCom((int) (Math.random() * 3 + 1));\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(final ActionEvent evt) {\n\t\t\t\tdoSendOn(440, 1001);\n\t\t\t\tsecondSynthButtonOn.setEnabled(false);\n\t\t\t\tsecondSynthButtonOff.setEnabled(true);\n\t\t\t\tslider2.setEnabled(true);\n\t\t\t\tslider2.setValue(2050);\n\t\t\t\ttextBox2.setEnabled(true);\n\t\t\t\ttextBox2.setText(\"440.0\");\n\t\t\t}", "public void set(double d);", "private double selectDouble(String prompt) {\n System.out.println(\"\\n\" + prompt);\n return input.nextDouble();\n }", "@Override\r\n public void onAction(String name, boolean isPressed, float tpf)\r\n {\n slideLabel.setText(String.format(\"Value : %1.2f\", slider.getValues()[0]));\r\n }", "@FXML\n private void pickDiscTwo() {\n activeDisc = \"Disc 2\";\n discSwitchButton.setText(\"Disc 2\");\n displayFilesFromDisc();\n }", "public void set(int value) {\n\t\ttem = value;\n\t\tSystem.out.println(\"\\tAir conditioner is set to \" + tem +\" degrees\");\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tif (settingTonic) {\n\t\t\tif (setTonicLed.isHigh())\n\t\t\t\tsetTonicLed.low();\n\t\t\telse\n\t\t\t\tsetTonicLed.high();\n\t\t}\n\t\tif (settingHarmonicInterval) {\n\t\t\tif (setHarmIntLed.isHigh())\n\t\t\t\tsetHarmIntLed.low();\n\t\t\telse\n\t\t\t\tsetTonicLed.high();\n\t\t}\n\t\tif (settingScaleType) {\n\t\t\tif (setScaleLed.isHigh())\n\t\t\t\tsetScaleLed.low();\n\t\t\telse\n\t\t\t\tsetScaleLed.high();\n\t\t}\n\n\t}", "private void setValue(final BalloonNormal balloon) {\r\n int chance = random.nextInt(100) + 1;\r\n rightAnswer = rightAnswers.get(round);\r\n\r\n if (round < rightAnswers.size() - 1) {\r\n nextRightAnswer = rightAnswers.get(round + 1);\r\n if (!isRightAnswerOnScreen() && (chance > 50 || visibleBalloons.size() >= 2)) {\r\n balloon.setValue(rightAnswer);\r\n } else if (chance > 66 && visibleBalloons.size() >= 3 && !isNextRightAnswerOnScreen()) {\r\n for (int i = 0; i < visibleBalloons.size(); i++) {\r\n if (visibleBalloons.get(i) instanceof BalloonNormal) {\r\n BalloonNormal balloonNormal = (BalloonNormal) visibleBalloons.get(i);\r\n if (balloonNormal.getValue() == rightAnswer && balloonNormal.getCenterY() < height * 0.25) {\r\n balloon.setValue(nextRightAnswer);\r\n } else {\r\n /*balloon.setValue(values.get(0));\r\n values.add(values.get(0));\r\n values.remove(values.get(0));*/\r\n manipulationsWithWrongBalloon(balloon, chance, rightAnswer);\r\n }\r\n }\r\n }\r\n } else {\r\n /*balloon.setValue(values.get(0));\r\n values.add(values.get(0));\r\n values.remove(values.get(0));*/\r\n manipulationsWithWrongBalloon(balloon, chance, rightAnswer);\r\n }\r\n } else {\r\n if (!isRightAnswerOnScreen()) {\r\n balloon.setValue(rightAnswer);\r\n } else {\r\n /*balloon.setValue(values.get(0));\r\n values.add(values.get(0));\r\n values.remove(values.get(0));*/\r\n manipulationsWithWrongBalloon(balloon, chance, rightAnswer);\r\n }\r\n }\r\n\r\n String text = Double.toString(balloon.getValue());\r\n if (text.endsWith(\".0\")) {\r\n text = text.substring(0, text.length() - 2);\r\n }\r\n\r\n text = text.replace(\".\", \",\");\r\n\r\n final String finalText = text;\r\n gameActivity.runOnUiThread(new Runnable() {\r\n @Override\r\n public void run() {\r\n ((TextView) balloon.layoutForBalloon.getChildAt(1)).setText(finalText);\r\n }\r\n });\r\n }", "public void setAirHumidity(double airhum){humidityval.setText(Double.toString(airhum));}", "private void displayMotorsPower() {\n int powers = Motor.A.getPower() * 100\n + Motor.B.getPower() * 10\n + Motor.C.getPower(); \n LCD.showNumber(powers);\n }", "int getDisplayValue();", "public void calcOutput()\n\t{\n\t}", "@FXML\n private void pickDiscOne() {\n activeDisc = \"Disc 1\";\n discSwitchButton.setText(\"Disc 1\");\n displayFilesFromDisc();\n }", "@Override\n public void onChanged(Double aDouble) {\n if (aDouble*1000 < 1) {\n etOutputValue.setText(\"0.0\");\n } else {\n DecimalFormat decimalFormat = new DecimalFormat(\"#,##0.###\");\n etOutputValue.setText(decimalFormat.format(aDouble));\n }\n }", "public void setArmTalon(double outputval) {\n\t\tarmMotor.set(outputval);\n\t}", "@DSGenerator(tool_name = \"Doppelganger\", tool_version = \"2.0\", generated_on = \"2014-03-25 14:14:32.602 -0400\", hash_original_method = \"2C13F5CAE2C3F5ED8EB78A310FFF5923\", hash_generated_method = \"63CAA9B4D44623D32629ABB156F7399E\")\n \n public static boolean setBandCommand(int band){\n \tdouble taintDouble = 0;\n \ttaintDouble += band;\n \n \treturn ((taintDouble) == 1);\n }", "public abstract void setValue(double fltValue);", "@Override\n\tpublic void setChoice(Input in, Output out) throws IOException {\n\t\t\n\t}", "public double getValue()\n\t{\n\t\treturn ifD1.getValue();// X100 lux\n\t}", "public void alg_REQAlg(){\r\nswitch (productIndex.value){\r\ncase 0:\r\r\n\tprice.value=10;\r\r\ncase 1:\t\r\r\n\tprice.value=20;\r\r\ncase 2:\r\r\n\tprice.value=30;\r\r\ndefault:\r\n\tprice.value=1;\r\r\n}\r\n}", "public void setSelPort(int d, int index) {\n \tsetSelPort(d, index, true);\n }", "private void defaultButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_defaultButtonActionPerformed\n ampBox.setText(\"5\");\n durBox.setText(\"150\");\n freqBox.setText(\"20\");\n owBox.setText(\"15\"); \n }", "public double getControl(String k) {\n\t\t\n\t\tdouble value=0;\n\t\t\n\t\tif (quantData.containsKey(k)) {\n\t\t\tvalue = quantData.get(k);\n\t\t} else {\n\t\t\tSystem.out.println(\"Key not found\");\n\t\t\tvalue = 0.0;\n\t\t}\n\t\t\n\t\treturn value;\n\t\t\t\n\t}", "@FXML\n private void pickDiscThree() {\n activeDisc = \"Disc 3\";\n discSwitchButton.setText(\"Disc 3\");\n displayFilesFromDisc();\n }", "int getD();", "public void DIRECT()//TODO rececheck!\n {\n ea = IMMBYTE();\n ea |= konami.dp << 8;\n }", "public abstract void setLOD(int lod);", "public void switchToLabel() {\n if (deckPanel.getVisibleWidget() == LABEL_INDEX) {\n return;\n }\n // Fires the ValueChanged event.\n setValue(textArea.getText(), true);\n deckPanel.showWidget(LABEL_INDEX);\n }", "static void sueldo7diasl(){\nSystem.out.println(\"Ejemplo estructura Condicional Multiple 1 \");\nString descuenta=\"\";\n//datos de entrada xd\nint ganancias= teclado.nextInt();\nif(ganancias<=150){\ndescuenta=\"0.5\";\n}else if (ganancias>150 && ganancias<300){\n descuenta=\"0.7\";}\n else if (ganancias>300 && ganancias<450){\n descuenta=\"0.9\";}\n //datos de salida:xd\n System.out.println(\"se le descuenta : \"+descuenta);\n}", "public void setNPI(int value) {\r\n this.npi = value;\r\n }" ]
[ "0.59708804", "0.5961661", "0.5957772", "0.5806473", "0.5806473", "0.5774547", "0.57534176", "0.56822526", "0.5625849", "0.56238306", "0.5609856", "0.56084013", "0.5579565", "0.55588394", "0.5522016", "0.55109334", "0.55000883", "0.54916996", "0.54643327", "0.5460568", "0.54388267", "0.5430622", "0.54076916", "0.53895825", "0.5389567", "0.53893113", "0.53769106", "0.5364476", "0.53508765", "0.53476137", "0.530843", "0.53032655", "0.53000295", "0.52930987", "0.52714914", "0.5266993", "0.5227279", "0.52080667", "0.52056867", "0.5204323", "0.51926416", "0.5157459", "0.51521933", "0.514372", "0.51433843", "0.51428694", "0.51422435", "0.5139283", "0.51349807", "0.51299024", "0.5115631", "0.5112892", "0.51103365", "0.51051086", "0.5092769", "0.5080052", "0.5079701", "0.5067902", "0.5065807", "0.50654095", "0.50624406", "0.50582033", "0.505611", "0.50551647", "0.5053913", "0.5050948", "0.50508076", "0.5048166", "0.5046059", "0.50429803", "0.5025827", "0.501208", "0.50111383", "0.50086284", "0.5006939", "0.50060296", "0.5002062", "0.5000085", "0.49991065", "0.49986044", "0.49950913", "0.49942115", "0.49921402", "0.4990841", "0.49861175", "0.49845353", "0.49838635", "0.49728292", "0.49721232", "0.49658418", "0.49619555", "0.49618286", "0.49597487", "0.49546903", "0.49534804", "0.49530873", "0.4952475", "0.49510464", "0.49468955", "0.49459815", "0.494574" ]
0.0
-1
TODO pourquoi cela engendre une erreur ? Toast.makeText(this, "WRONG ANSWER!", Toast.LENGTH_SHORT).show();
@Override public void onClick(View v) { String url = "https://club-omnisports-des-ulis.assoconnect.com/billetterie/offre/146926-a-adhesion-karate-2020-2021"; Intent i = new Intent(Intent.ACTION_VIEW); i.setData(Uri.parse(url)); startActivity(i); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"UnusedParameters\")\n private void openWrongAnswer(@SuppressWarnings(\"UnusedParameters\") View view) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(MainActivity.this);\n alertDialogBuilder.setTitle(\"INCORRECT ANSWER\");\n alertDialogBuilder.setMessage(\"The correct answer is: \\n\" + currentQ.getANSWER() + \"\\n Ref: \" + currentQ.getREFERENCE());\n // set negative button: No message\n alertDialogBuilder.setNegativeButton(\"Continue\" ,new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n checkFinish();\n // cancel the alert box and put a Toast to the user\n dialog.cancel();\n }\n });\n alertDialogBuilder.setPositiveButton(\"Challenge Answer\" ,new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,int id) {\n submitBug();\n // Add information to Review List for display after completion of test\n\n\n // cancel the alert box and put a Toast to the user\n dialog.cancel();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n // show alert\n alertDialog.show();\n alertDialog.getWindow().getAttributes();\n TextView msgTxt = (TextView) alertDialog.findViewById(android.R.id.message);\n msgTxt.setTextSize(20);\n msgTxt.setGravity(Gravity.CENTER_HORIZONTAL);\n }", "public void correctAnswer(){\n AlertDialog.Builder dialogBoxAns = new AlertDialog.Builder(this);\n //set title to dialog box\n dialogBoxAns.setTitle(\"Results\");\n //set correct message to dialog box\n dialogBoxAns.setMessage((Html.fromHtml(\"<font color='#39FF14'> CORRECT! </font> \")));\n //set button to dialog box\n dialogBoxAns.setPositiveButton(\"OK\", null);\n //create new dialog box\n AlertDialog dialog = dialogBoxAns.create();\n dialog.show();\n }", "public void wrongClick(View view) {\n if (roundOne[questionId].getCorrect_answer().equals(\"False\")) {\n Toast.makeText(getApplicationContext(), \"Juiste Antwoord\",\n Toast.LENGTH_SHORT).show();\n score += 5;\n } else {\n Toast.makeText(getApplicationContext(), \"Foute Antwoord\",\n Toast.LENGTH_SHORT).show();\n }\n questionId++;\n setQuestion(questionId);\n }", "void showError() {\n Toast.makeText(this, \"Please select answers to all questions.\", Toast.LENGTH_SHORT).show();\n }", "public void wrongAnswer(){\n String textWrong = \"<font color='#BF0000'> WRONG! </font>\"+brandName ;\n //build new object in dialog box\n AlertDialog.Builder dialogBoxAns = new AlertDialog.Builder(this);\n //set title to dialog box\n dialogBoxAns.setTitle(\"Results\");\n //set wrong message to dialog box\n dialogBoxAns.setMessage((Html.fromHtml(textWrong)));\n //set button to dialog box\n dialogBoxAns.setPositiveButton(\"OK\", null);\n //create new dialog box\n AlertDialog dialog = dialogBoxAns.create();\n dialog.show();\n }", "private void showIncorrectAnswerDialogueBox() {\n\t\tString _title = getString(R.string.incorrectansweralertdialoguetitle);\n\t\tString _message = getString(R.string.incorrectansweralertdialoguemessage);\n\t\tUtilityMethods.createAlertDialog(_title, _message,\n\t\t\t\tAnalysisActivity.this);\n\t}", "public void displayAnswer(){\r\n String message = \"That is the correct answer!\";\r\n\r\n Toast.makeText(QuizActivity.this,\r\n message, Toast.LENGTH_SHORT).show();\r\n }", "private void answerResultAlert(String feedback){\n AlertDialog.Builder showResult = new AlertDialog.Builder(this);\n\n showResult.setTitle(feedback);\n showResult.setMessage(currentQuestion.getExplanation());\n showResult.setCancelable(false); //if this is not set, the user may click outside the alert, cancelling it. no cheating this way\n showResult.setNeutralButton(\"ok\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n //only when the ok is clicked will continue to run the program\n setUpQuestions();\n }\n });\n showResult.create();\n showResult.show();\n }", "@Override\n public void onIncorrect(String answer) {\n System.out.println(\"incorrect\");\n }", "private void catcher() {\n String text;\n\n if (getTextFromEditText(R.id.distanceEdit).equals(\"\")) {\n text = getResourceString(R.string.err_no_distance);\n } else if (getTextFromEditText(R.id.fuelEdit).equals(\"\")) {\n text = getResourceString(R.string.err_no_fuel);\n } else {\n text = getResourceString(R.string.err_wrong_vals);\n }\n\n makeToast(text);\n }", "private void showResultAsToast(int nbOfCorrectAnswers) {\n String msg = \"\";\n\n if(nbOfCorrectAnswers == 4) {\n msg = \"Genius ! LOL !! \" + nbOfCorrectAnswers + \"/4\";\n } else if (nbOfCorrectAnswers < 4) {\n msg = \"You can do better than this! \" + nbOfCorrectAnswers + \"/4\";\n }\n\n // The Toast method helps to show a message that shows the number of correct answers\n Toast.makeText(this, msg, Toast.LENGTH_LONG).show();\n }", "@SuppressWarnings(\"UnusedParameters\")\n private void openRightAnswer(View view) {\n AlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(MainActivity.this);\n alertDialogBuilder.setTitle(\"Answer\");\n alertDialogBuilder.setMessage(\"Correct!\");\n // set negative button: No message\n alertDialogBuilder.setNegativeButton(\"Continue\",new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog,int id) {\n checkFinish();\n // cancel the alert box\n dialog.cancel();\n }\n });\n\n AlertDialog alertDialog = alertDialogBuilder.create();\n // show alert\n alertDialog.show();\n alertDialog.getWindow().getAttributes();\n TextView msgTxt = (TextView) alertDialog.findViewById(android.R.id.message);\n msgTxt.setTextSize(30);\n msgTxt.setGravity(Gravity.CENTER_HORIZONTAL);\n }", "public void wrongAnswer() {\n if (quizGeneralState.checkAndPerformAction(QuizGeneralState.QuizAction.WRONG)) {\n quizStateChanger.wrongAnswerGiven();\n }\n }", "java.lang.String getCorrectAnswer();", "private void validarResp(){\n String respIngresada = txtRespuesta.getText().toString();\n\n if(respIngresada.equals(respuesta)){\n //Habilita el prox paso\n viewFlipper.showNext();\n pasoFlipper = 1;\n } else {\n txtRespuesta.setError(getString(R.string.error_resp_incorrecta));\n txtRespuesta.requestFocus();\n }\n }", "private void doAgainAsk() {\n\t\tfinal int answerId = getIntent().getIntExtra(BUNDLE_PARAM_ANSWERID, -1);\n\t\tfinal String askToId = getIntent().getStringExtra(BUNDLE_PARAM_ASKTOUSERID);\n\t\tfinal int appItemid = getIntent().getIntExtra(BUNDLE_PARAM_APPITEMID, 0);\n\t\t// final String senderId =\n\t\t// getIntent().getStringExtra(BUNDLE_PARAM_SENDERID);\n\t\t// final String senderName =\n\t\t// getIntent().getStringExtra(BUNDLE_PARAM_SENDERNAME);\n\t\t// final String sendSource =\n\t\t// getIntent().getStringExtra(BUNDLE_PARAM_SENDSOURCE);\n\t\tUserInfo info = UserInfo.getInstance();\n\t\tif (!info.isLogin()) {\n\t\t\tLogger.error(\"replyanswer\", \"not login\");\n\t\t\treturn;\n\t\t}\n\t\tString content = etContent.getText().toString();\n\t\tif (StringUtils.isEmpty(content)) {\n\t\t\tshowToast(\"请输入提问内容\");\n\t\t\treturn;\n\t\t}\n\t\tcontent = mIAskListPresenter.handleInsertStock(content);\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"againaskUserid\", info.getUserId());\n\t\tparams.put(\"anwserId\", String.valueOf(answerId));\n\t\tparams.put(\"asktouserid\", askToId);\n\t\tparams.put(\"againaskUsername\", info.getUserName());\n\t\tparams.put(\"askid\", String.valueOf(appItemid));\n\t\tparams.put(\"source\", \"爱投顾手机客户端\");\n\t\tparams.put(\"content\", content);\n\t\t// etContent.setHint(\"输入您的提问。。。\");\n\t\t// doReply.setText(\"追问\");\n\n\t\tJsonRequest<TouguBaseResult> request = new JsonRequest<TouguBaseResult>(Method.POST, NetUrlMyInfo.AGAINASK, params, new RequestHandlerListener<TouguBaseResult>(getContext()) {\n\n\t\t\t@Override\n\t\t\tpublic void onStart(Request request) {\n\t\t\t\tsuper.onStart(request);\n\t\t\t\tshowDialog(request);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onEnd(Request request) {\n\t\t\t\tsuper.onEnd(request);\n\t\t\t\thideDialog(request);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String id, TouguBaseResult data) {\n\t\t\t\t// Toast.makeText(ReplyActivity.this, \"赞成功\",\n\t\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t\tif (data.getRetCode() == 0) {\n\t\t\t\t\tIntent intent = new Intent(IAskListPresenter.ACTION_ASK_REFRESH);\n\t\t\t\t\tintent.putExtra(IAskListPresenter.BUNDLE_ASKID, appItemid);\n\t\t\t\t\tintent.putExtra(IAskListPresenter.BUNDLE_STATUS, IAskListPresenter.ANSWER_STATU_REASK);\n\t\t\t\t\tsendBroadcast(intent);\n\t\t\t\t\tshowToast(\"追问成功\");\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t\t// Toast.makeText(ReplyActivity.this, data.getMsg(),\n\t\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}, TouguBaseResult.class);\n\n\t\tsend(request);\n\t}", "public void checkAnswer(View view) {\n TextView tv=findViewById(R.id.question);\n String question=tv.getText().toString();\n\n //split the question into numbers\n String [] numbers=question.split(\"X\");\n\n\n //convert the numbers into integer\n Integer num1, num2;\n num1=Integer.valueOf(numbers[0]);\n num2=Integer.valueOf(numbers[1]);\n\n\n user=findViewById(R.id.printAns);\n ans=findViewById(R.id.answer);\n Integer uer=Integer.parseInt(ans.getText().toString());\n\n\n\n int total=uer;\n\n\n if (num1*num2==total){\n user.setText(\"Your answer is correct\");\n\n }else{\n user.setText(\"Try Again\");\n }\n\n\n\n }", "public void Correct(View view) {\n\n TextView textview = (TextView) findViewById(R.id.textViewer);\n CharSequence text = textview.getText();\n String temp = text.toString(); //extracting the number from question string\n String[] s = temp.split(\" \");\n String n = s[0];\n int prime = Integer.parseInt(n);\n\n Context context = getApplicationContext();\n\n int i, flag = 0;\n if (prime == 1) {\n flag = 1;\n }\n for (i = 2; i <= prime / 2; ++i) {\n // condition for nonprime number\n if (prime % i == 0) {\n flag = 1;\n break;\n }\n }\n\n if(flag==0 && pressed>=1 && clicked>=1)\n {\n Toast.makeText(context, \"Correct but you have taken hint and cheated\", Toast.LENGTH_SHORT).show();\n }\n else if (flag == 0 && pressed>=1) {\n\n Toast.makeText(context, \"Correct but you have taken hint\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag==0 && clicked>=1)\n {\n Toast.makeText(context, \"Correct but you have cheated\", Toast.LENGTH_SHORT).show();\n }\n else if(flag==0)\n {\n Toast.makeText(context, \"Correct\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag==1 && clicked>=1 && pressed>=1)\n {\n Toast.makeText(context, \" Not Correct but you have taken hint and cheated\", Toast.LENGTH_SHORT).show();\n }\n\n else if (flag == 1 && pressed>=1) {\n\n Toast.makeText(context, \" Not Correct but you have taken hint\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag==1 && clicked>=1)\n {\n Toast.makeText(context, \" Not Correct but you have cheated\", Toast.LENGTH_SHORT).show();\n }\n\n\n else if(flag==1)\n {\n Toast.makeText(context, \" Not Correct\", Toast.LENGTH_SHORT).show();\n }\n }", "private void doAgainAnaswer() {\n\t\tfinal int answerToId = getIntent().getIntExtra(BUNDLE_PARAM_ANSWERTOUSERID, 0);\n\t\t// final String senderId =\n\t\t// getIntent().getStringExtra(BUNDLE_PARAM_SENDERID);\n\t\t// final String senderName =\n\t\t// getIntent().getStringExtra(BUNDLE_PARAM_SENDERNAME);\n\t\t// final String sendSource =\n\t\t// getIntent().getStringExtra(BUNDLE_PARAM_SENDSOURCE);\n\n\t\tUserInfo info = UserInfo.getInstance();\n\t\tif (!info.isLogin()) {\n\t\t\tLogger.error(\"replyanswer\", \"not login\");\n\t\t\treturn;\n\t\t}\n\t\tString content = etContent.getText().toString();\n\t\tcontent = mIAskListPresenter.handleInsertStock(content);\n\t\t// content = addImageToContent(content);\n\t\tif (StringUtils.isEmpty(content)) {\n\t\t\tshowToast(\"请输入回答内容\");\n\t\t\treturn;\n\t\t}\n\t\tMap<String, String> params = new HashMap<String, String>();\n\t\tparams.put(\"userId\", info.getUserId());\n\t\tparams.put(\"username\", info.getUserName());\n\t\tparams.put(\"againAskId\", String.valueOf(answerToId));\n\t\tparams.put(\"source\", \"爱投顾手机客户端\");\n\t\tparams.put(\"content\", content);\n\t\tif (!StringUtils.isEmpty(imageUrl)) {\n\t\t\tparams.put(\"images\", NetUrlLoginAndRegist.UPLOAD_PREFIX + imageUrl);\n\t\t}\n\t\t// etContent.setHint(\"输入您的提问。。。\");\n\t\t// doReply.setText(\"追问\");\n\n\t\tJsonRequest<TouguBaseResult> request = new JsonRequest<TouguBaseResult>(Method.POST, NetUrlMyInfo.AGAINASK, params, new RequestHandlerListener<TouguBaseResult>(getContext()) {\n\n\t\t\t@Override\n\t\t\tpublic void onStart(Request request) {\n\t\t\t\tsuper.onStart(request);\n\t\t\t\tshowDialog(request);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onEnd(Request request) {\n\t\t\t\tsuper.onEnd(request);\n\t\t\t\thideDialog(request);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(String id, TouguBaseResult data) {\n\t\t\t\t// Toast.makeText(ReplyActivity.this, \"赞成功\",\n\t\t\t\t// Toast.LENGTH_SHORT).show();\n\t\t\t\tif (data.getRetCode() == 0) {\n\t\t\t\t\tsendBroadcast(new Intent(IAskListPresenter.ACTION_ASK_REFRESH));\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t\tToast.makeText(ReplyActivity.this, data.getMsg(), Toast.LENGTH_SHORT).show();\n\t\t\t}\n\t\t}, TouguBaseResult.class);\n\n\t\tsend(request);\n\t}", "public void Incorrect(View view) {\n TextView textview = (TextView) findViewById(R.id.textViewer);\n CharSequence s = textview.getText();\n String temp = s.toString();\n String[] text = temp.split(\" \");\n String n = text[0];\n int prime = Integer.parseInt(n);\n\n Context context = getApplicationContext();\n\n int i, flag = 0;\n if (prime == 1) {\n flag = 1;\n }\n for (i = 2; i <= prime / 2; ++i) {\n // condition for nonprime number\n if (prime % i == 0) {\n flag = 1;\n break;\n }\n }\n\n if (flag != 0 && clicked>=1 && pressed>=1) {\n\n Toast.makeText(context, \"Correct but you have cheated and taken hint\", Toast.LENGTH_SHORT).show();\n }\n else if(flag!=0 && clicked>=1)\n {\n Toast.makeText(context, \"Correct but you have cheated\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag!=0 && pressed>=1)\n {\n Toast.makeText(context, \"Correct but you have taken hint\", Toast.LENGTH_SHORT).show();\n }\n else if(flag!=0)\n {\n Toast.makeText(context, \"Correct\", Toast.LENGTH_SHORT).show();\n }\n else if(flag==0 && clicked>=1 && pressed>=1)\n {\n Toast.makeText(context, \"Not Correct but you have taken hint and cheated\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag==0 && pressed>=1) {\n Toast.makeText(context, \"Not Correct but you have taken hint\", Toast.LENGTH_SHORT).show();\n }\n else if(flag==0 && clicked>=1)\n {\n Toast.makeText(context, \"Not Correct but you have cheated\", Toast.LENGTH_SHORT).show();\n }\n\n else if(flag==0)\n {\n Toast.makeText(context, \"Not Correct\", Toast.LENGTH_SHORT).show();\n }\n }", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n try {\n HelpCenter.sendQuestion(\"\", URLEncoder.encode(questionEdit.getText().toString(), \"utf-8\"));\n } catch(Exception e){\n\n }\n }", "private void incorrectDialog() {\n // Update score.\n updateScore(scoreDecrease);\n\n // Show Dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"TRUMPED! This Tweet is \" + (realTweet ? \"real\" : \"fake\"));\n //builder.setPositiveButton(\"OK\", (dialog, which) -> chooseRandomTweet());\n builder.setOnDismissListener(unused -> chooseRandomTweet());\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "@Override\n\t\t\tpublic void onClick(View arg0) {\n\t\t\t\tString ans1 = editbangundatar.getText().toString();\n\t\t\t\tint answer = Integer.parseInt(editbangundatar.getText().toString());\n\t\t\t\tif(answer == 16){\n\t\t\t\t\t\n\t\t\t\t\tToast.makeText(getActivity(), \"True\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tToast.makeText(getActivity(), \"Maaf, jawaban anda salah\", Toast.LENGTH_LONG).show();\n\t\t\t\t}\n\t\t\t}", "public void q1Submit(View view) {\n\n EditText editText = (EditText) findViewById(R.id.q1enterEditText);\n String q1answer = editText.getText().toString().trim();\n\n //Nested if statements to check if the answer is correct or not, then to assign 2 points if it's correct.\n if ((q1answer.toLowerCase().equals(getString(R.string.q1AnswerCheck1))) || (q1answer.toLowerCase().equals(getString(R.string.q1AnswerCheck2)))) {\n if (isNotAnsweredQ1) {\n display(pointCounter += 2);\n Toast.makeText(this, getString(R.string.correct1), Toast.LENGTH_SHORT).show();\n isNotAnsweredQ1 = false;\n }\n } else {\n Toast.makeText(this, getString(R.string.thinkAgain), Toast.LENGTH_SHORT).show();\n }\n }", "@FXML\n\tprivate void answerQuestion() {\n\t\tint correctAnsID = 0;\n\t\ttry {\n\t\t\tswitch (((RadioButton) answerGroup.getSelectedToggle()).getId()) {\n\t\t\tcase \"ans1Check\":\n\t\t\t\tcorrectAnsID = 1;\n\t\t\t\tbreak;\n\t\t\tcase \"ans2Check\":\n\t\t\t\tcorrectAnsID = 2;\n\t\t\t\tbreak;\n\t\t\tcase \"ans3Check\":\n\t\t\t\tcorrectAnsID = 3;\n\t\t\t\tbreak;\n\t\t\tcase \"ans4Check\":\n\t\t\t\tcorrectAnsID = 4;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\terrorLabel.setVisible(true);\n\t\t}\n\n\t\t// nothing is selected\n\t\tif (correctAnsID == 0) { \n\t\t\terrorLabel.setVisible(true);\n\t\t\t// correct answer\n\t\t} else if (question.getCorrect_ans() == correctAnsID) {\n\t\t\tcontrol.setScore(control.getScore() + question.getScore());\n\t\t\thandleAlertAndWindow(AlertType.INFORMATION, \"Congrats! :D\",\n\t\t\t\t\t\"You received \" + question.getScore() + \" points\");\n\t\t\t// wrong answer\n\t\t} else {\n\t\t\tcontrol.setScore(control.getScore() + question.getPenalty());\n\n\t\t\thandleAlertAndWindow(AlertType.ERROR, \"Uh oh! :(\",\n\t\t\t\t\t\"You lost \" + question.getPenalty() + \" points\");\n\t\t}\n\n\t\t// reset the eaten question\n\t\tViewLogic.playGameController.getControl().setQuestionEaten(null);\n\t}", "private void showErrorDialogue() {\n\t\ttry {\n\t\t\tnew AlertDialog.Builder(mContext)\n\t\t\t\t\t.setTitle(\"Something unfortunate happened...\")\n\t\t\t\t\t.setMessage(\"Your device was not able to verify activation. Please check your internet connection and ensure you are using the latest version of the application.\")\n\t\t\t\t\t.setNeutralButton(\"Close\", new DialogInterface.OnClickListener() {\n\t\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\n\t\t\t\t\t\t\tdialog.dismiss();\n\t\t\t\t\t\t}\n\t\t\t\t\t})\n\t\t\t\t\t.show();\n\t\t} catch (Exception e) {\n\t\t\t//not in main activity, not a problem\n\t\t\tLog.w(TAG, e.getMessage());\n\t\t}\n\t}", "private void checkAsk(FyQuestion q, FyAnswer a) {\n\t\treturn;\r\n\t}", "String answerStatement(boolean answer) {\n String answerStatement = getResources().getString(R.string.wrong);\n if (answer) {\n answerStatement = getResources().getString(R.string.correct);\n }\n return answerStatement;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(false);\n\t\t\t\t\n\t\t\t}", "public void incorrectAnswer(View view) {\n\n // Update correct count\n deck.getCard(deckPos).setNumIncorrect(deck.getCard(deckPos).getNumIncorrect() + 1);\n\n // Set to question and update counter\n isQuestion = true;\n deckPos ++;\n\n // If not last card - Update card\n if(!(deckPos == deck.deckLength)) {\n displayCard(deck.getCard(deckPos), isQuestion);\n } else {\n finishQuiz();\n }\n\n // Set quiz counts.\n quiz.setIncorrectCount(quiz.getIncorrectCount() + 1);\n }", "private void checkAnswer() {\n this.convertAnswerString();\n\n StringBuilder answer = new StringBuilder(currentAnswer);\n\n if (answer.toString().equals(selectedWord)) {\n gameOver = true;\n Toast toast = Toast.makeText(getApplicationContext(), \"You Win!!!\", Toast.LENGTH_LONG);\n toast.show();\n }\n\n if (currentAnswer.length() == this.selectedLength && !gameOver) {\n Toast toast = Toast.makeText(getApplicationContext(), \"Sorry! Wrong Answer!\", Toast.LENGTH_LONG);\n toast.show();\n }\n }", "public void onClick(View view) {\n Button answer = (Button) view;\n // jika jawaban benar, score bertambah\n if (answer.getText() == mAnswer){\n mScore = mScore + 1;\n Toast.makeText(MainActivity.this, \"Benar!\", Toast.LENGTH_SHORT).show();\n }else\n Toast.makeText(MainActivity.this, \"Salah!\", Toast.LENGTH_SHORT).show();\n\n updateScore(mScore);\n updateQuestion();\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"Uh-oh! something went wrong, please try again.\",Toast.LENGTH_SHORT).show();\n }", "private void correctDialog() {\n // Update score.\n updateScore(scoreIncrease);\n\n // Show Dialog.\n AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setMessage(\"Correct! This Tweet is \" + (realTweet ? \"real\" : \"fake\"));\n //builder.setPositiveButton(\"OK\", (dialog, which) -> chooseRandomTweet());\n builder.setOnDismissListener(unused -> chooseRandomTweet());\n AlertDialog dialog = builder.create();\n dialog.show();\n }", "private void wrongAnswerButtonOnClick()\r\n {\r\n //if the button clicked has the wrong answer, then do the following;\r\n noOfLifelines += 1;\r\n\r\n vibrate();\r\n noMPlayer.start();\r\n streak = 0;\r\n streakEditText.setText(streak + \"\");\r\n\r\n if(noOfLifelines == 1) {\r\n Toast.makeText(getApplicationContext(), \"WRONG!!\", Toast.LENGTH_SHORT).show();\r\n lifeline1.setVisibility(View.INVISIBLE);\r\n }\r\n\r\n else if(noOfLifelines == 2) {\r\n Toast.makeText(getApplicationContext(), \"WRONG!!\", Toast.LENGTH_SHORT).show();\r\n lifeline2.setVisibility(View.INVISIBLE);\r\n }\r\n\r\n else if(noOfLifelines == 3)\r\n {\r\n newPlayer.insertPlayerStatsToDatabase(player, year, score + \"\", streak + \"\");\r\n\r\n Toast.makeText(getApplicationContext(), \"WRONG and GAME OVER!!\", Toast.LENGTH_SHORT).show();\r\n\r\n lifeline3.setVisibility(View.INVISIBLE);\r\n\r\n if(backgroundMusicPlayer.isPlaying()) {\r\n backgroundMusicPlayer.stop();\r\n }\r\n gameOverMPlayer.start();\r\n\r\n questionsTV.setVisibility(View.GONE);\r\n questionNoTV.setVisibility(View.GONE);\r\n answer1Btn.setVisibility(View.GONE);\r\n answer2Btn.setVisibility(View.GONE);\r\n answer3Btn.setVisibility(View.GONE);\r\n\r\n starImgView.setVisibility(View.INVISIBLE);\r\n gameOverTV.setVisibility(View.VISIBLE);\r\n gameOverImgView.setVisibility(View.VISIBLE);\r\n viewLBBtn.setVisibility(View.VISIBLE);\r\n }\r\n }", "@Override\r\n\tpublic void checkAnswer() {\n\t\t\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tcheckAnswer(true);\n\t\t\t\t\n\t\t\t}", "@Override\n public void onClick(View v) {\n if (\"\".equals(answer_content.getText().toString() + \"\")) {\n Toast.makeText(AnswerQuestionActivity.this, \"请输入您的答案!\", 0)\n .show();\n } else {\n showprocessdialog();\n if (imgList.size() > 0) {\n uploadImg(imgList);\n sumbmit.setEnabled(false);\n } else {\n showprocessdialog();\n sumbmit.setEnabled(false);\n publishQueston();\n }\n\n }\n }", "public void showErrorMessage(){\n Toast.makeText(context, R.string.generic_error_message, Toast.LENGTH_LONG).show();\n }", "private void verifyQuestion(Answer answer) {\n // If is running, stop the question timer\n //(Hard mode)\n timerQuestion.stop();\n \n //if (challengeModel.getChallenge().getCurrentCorrectAnswer()) {\n if (challengeModel.getChallenge().getQuestionsList().get(challengeModel.getChallenge().getCurrentQuestionNumber()-1).getAnswer() == answer) {\n imgCenter.setIcon(Resources.getImageCorrect());\n labelAnswerResult.setText(\"Correto \");\n labelClarification.setText(\"\");\n }\n else {\n imgCenter.setIcon(Resources.getImageIncorrect());\n // Show clarification\n labelAnswerResult.setText(\"\");\n labelClarification.setText(\"<HTML><B>Esclarecimento: </B>\"+challengeModel.getChallenge().getCurrentRuleClarification()+\"</HTML>\");\n }\n \n showAnswerResult(answer);\n }", "private void errorPopUp() {\n new AlertDialog.Builder(mActivity)\n .setTitle(\"Oops\")\n .setMessage(\"Please choose an emotional state or enter a date and time\")\n .setPositiveButton(\"Ok\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n //Go back without changing anything\n dialogInterface.dismiss();\n }\n })\n .create()\n .show();\n }", "int getWrongAnswers();", "public void whyDialog(final TextView questionTextView, final ImageButton[] answerButtons, final TextView scoreTextView, final String whyAnswer){\n AlertDialog alertDialog = new AlertDialog.Builder(PlayActivity.this,R.style.AlertDialogStyleNeutral).create();\n alertDialog.setCanceledOnTouchOutside(false);\n alertDialog.setCancelable(false);\n alertDialog.setMessage(whyAnswer);\n alertDialog.setButton(AlertDialog.BUTTON_NEUTRAL, getString(R.string.next_question),\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n newQuestion(questionTextView, answerButtons, scoreTextView);\n dialog.dismiss();\n isPaused=false;\n\n }\n });\n alertDialog.show();\n }", "@Override\n public void onClick(View v) {\n\n if(radio_g.getCheckedRadioButtonId()==-1)\n {\n Toast.makeText(getApplicationContext(), \"Please select one choice\", Toast.LENGTH_SHORT).show();\n return;\n }\n RadioButton uans = (RadioButton) findViewById(radio_g.getCheckedRadioButtonId());\n String ansText = uans.getText().toString();\n// Toast.makeText(getApplicationContext(), ansText, Toast.LENGTH_SHORT).show();\n if(ansText.equals(answers[flag])) {\n correct++;\n }\n else {\n wrong++;\n }\n\n flag++;\n if(flag<questions.length)\n {\n textView.setText(questions[flag]);\n rb1.setText(opt[flag*4]);\n rb2.setText(opt[flag*4 +1]);\n rb3.setText(opt[flag*4 +2]);\n rb4.setText(opt[flag*4 +3]);\n }\n else\n {\n marks=correct;\n Intent in = new Intent(getApplicationContext(),Cpp_Result.class);\n startActivity(in);\n }\n radio_g.clearCheck();\n }", "private void mensajeErrorSinDatos() {\r\n\tAlertDialog.Builder builder = new AlertDialog.Builder(this);\r\n\tbuilder.setMessage(R.string.txtErrorSinDatos).setCancelable(false)\r\n\t\t.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\r\n\t\t public void onClick(DialogInterface dialog, int id) {\r\n\t\t\tListaRutasActivity.this.finish();\r\n\t\t }\r\n\t\t});\r\n\tAlertDialog alert = builder.create();\r\n\talert.show();\r\n }", "public void checkAnswer(String a){\r\n if(a.equals(answer)) {\r\n displayAnswer();\r\n score++;\r\n }\r\n else{\r\n Toast.makeText(QuizActivity.this,\r\n \"Incorrect Choice\", Toast.LENGTH_SHORT).show();\r\n }\r\n\r\n }", "@Override\n public void onOkButtonClicked() {\n\n\n String reasonMsg1 = backToOrderView.editText.getText().toString();\n reasonMsg = reasonMsg1.trim();\n\n if (reasonMsg.length() == 0) {\n Toast.makeText(getApplicationContext(), \"Please give reason...\", Toast.LENGTH_LONG).show();\n\n } else {\n\n\n // sendNotificationToUser(\"driver_cancel\");\n updateTripStatusApi(\"driver_cancel_at_pickup\", controller.pref.getTRIP_ID(), reasonMsg);\n\n\n }\n }", "private void getAllQuestion(){\r\n\r\n if(ques.getText().toString().equals(\"\")||opt1.getText().toString().equals(\"\")||opt2.getText().toString().equals(\"\")||\r\n opt3.getText().toString().equals(\"\")||correct.getText().toString().equals(\"\")){\r\n Toast.makeText(getBaseContext(), \"Please fill all fields\", Toast.LENGTH_LONG).show();\r\n }\r\n else{\r\n\r\n int c = Integer.parseInt((correct.getText().toString()));\r\n if (c > 3) {\r\n Toast.makeText(getBaseContext(), \"Invalid Correct answer\", Toast.LENGTH_LONG).show();\r\n } else {\r\n\r\n setQuestions();\r\n }\r\n finishQuiz();\r\n }\r\n }", "boolean hasCorrectAnswer();", "private void popupCorrection() {\n\t\tQuestionShortAnswer questionShortAnswer = DbTableQuestionShortAnswer.getShortAnswerQuestionWithId(currentQ.getId());\n\t\tString studentAnswer = textAnswer.getText().toString();\n\t\t//get the right answers\n\t\tArrayList<String> rightAnswers = questionShortAnswer.getAnswers();\n\n\t\t//compare the student answer with the right answers\n\t\tString correction = \"\";\n\t\tif (rightAnswers.contains(studentAnswer)) {\n\t\t\tcorrection = \"<font size='5' color='green'>Right :-)</font> <br/>\" + studentAnswer;\n\t\t} else {\n\t\t\tcorrection = studentAnswer + \"<br/><font size='5' color='red'>Unfortunately, this wasn't the right answer :-( </font>\";\n\t\t\tif (rightAnswers.size() == 0) {\n\t\t\t\tcorrection += \"The right answer was EMPTY ANSWER\";\n\t\t\t} else if (rightAnswers.size() == 1) {\n\t\t\t\tcorrection += \"The right answer was:<br/>\" + rightAnswers.get(0);\n\t\t\t} else {\n\t\t\t\tcorrection += \"The right answer was for example:<br/>\" + rightAnswers.get(0);\n\t\t\t}\n\t\t}\n\t\ttextAnswer.setText(Html.fromHtml(correction));\n\t}", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\n\t\t\t\t\t String input_text = userInput.getText().toString();\n\t\t\t\t\t \n\t\t\t\t\t if (!input_text.isEmpty()){\n\t\t\t\t\t \t\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tgetActivity(),\n\t\t \"You've entered: \"+userInput.getText()+\"\\nas your response.\\nPress next button to continue.\",\n\t\t Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//hash the number before set as response\n\t\t\t\t\t\t\t\tinput_text = Encoder.hashPhoneNumber(input_text);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//setting the response for that survey question\n\t\t\t\t\t\t\t\teventbean.setTieResponse(input_text);\n\t\t\t\t\t\n\t\t\t\t\t\t\t\tresponse_tv.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// show user input as question answer\n\t\t\t\t\t\t\t\tString response = userInput.getText().toString();\n\t\t\t\t\t\t\t\tresponse_tv.setText(response);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// notify the activity to enable going next\n\t\t\t\t\t\t\t\tresponseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"X\",\"0\");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t \t}else{\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\tToast.makeText(\n\t\t\t\t\t \t\t\t\tgetActivity(),\n\t\t \"You have NOT entered your response.\",\n\t\t Toast.LENGTH_SHORT).show();\n\t\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 static void hitWrong()\n\t{\n\t\troundEnd();\n\t\tlblUpdate.setText(\"You have answer incorrectly. You lose.\");\n\t}", "@Override\n public void onFailed(String text) {\n view.onFailed(\"Greska u dohvacanju favorita!\");\n }", "@Override\n public void accept(String error) {\n Toast.makeText(EtudiantSemestreActivity.this, error, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n String hAnsFill = hintPut.getText().toString();\n Log.i(easyShort.TAG,hAnsFill);\n Log.i(easyShort.TAG,hintAns);\n if (hAnsFill.equals(hintAns)) {\n // New dialog box showing password\n\n AlertDialog.Builder myBuilder = new AlertDialog.Builder(entryApp.this);\n myBuilder.setTitle(\"Your password\").setMessage(\"Your password: \"+userPass).setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n myBuilder.create();\n myBuilder.show();\n } else {\n Toast.makeText(entryApp.this,\"Wrong answer!!\",Toast.LENGTH_SHORT).show();\n }\n }", "private void exibe_mensagem(String msg){\n Toast.makeText(getApplicationContext(), msg, Toast.LENGTH_LONG).show();\n }", "public void displayInorrectResponse(int x) {\n\t\t\t\t\tswitch (x) {\n\t\t case 1: System.out.println(\"No. Please try again.\");;\n\t\t break;\n\t\t case 2: System.out.println(\"Wrong. Try once more.\");;\n\t\t break;\n\t\t case 3: System.out.println(\"Donít give up!\");\n\t\t break;\n\t\t case 0: System.out.println(\"No. Keep trying.\");\n\t\t break;\n\t\t\t\t}}", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Please Enter Correct User Name And Password\", Toast.LENGTH_SHORT).show();\n }", "public void onClick(DialogInterface dialog, int which) {\n Toast.makeText(getApplicationContext(), \"Please Enter Correct User Name And Password\", Toast.LENGTH_SHORT).show();\n }", "private void Ignorado() {\n Dialogo(R.string.ignorada);\n }", "@Override\n public void onError() {\n Toast.makeText(getApplicationContext(), \"아이디랑 비밀번호를 확인해 주세요.\", Toast.LENGTH_LONG).show();\n }", "public void onClick(DialogInterface dialog, int id) {\n if(hideMissed==true) {\n OnMissedClicked();\n System.out.println(\"onMissedClicked....\"+1);\n }\n else{\n String alrt=MiraConstants.LANGUAGE.equals(MiraConstants.HINDI)?\" अलर्ट \":\"ALERT\";\n String msg=MiraConstants.LANGUAGE.equals(MiraConstants.HINDI)?\"अभी यह टीका छूटी हुई खुराक नहीं माना जा सकता\":\"Currently this vaccine cannot be considered as missed dose\";\n AlertDialog.Builder dialog12 = myAlertDialog(1,alrt,msg);\n dialog12.setPositiveButton(android.R.string.ok, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.cancel();\n\n }\n });\n dialog12.show();\n\n// Toast.makeText(getApplicationContext(),\"You can't missed dose..\",Toast.LENGTH_SHORT).show();\n }\n }", "public void onClick(View view) {\n quesCounter++;\n if (quesCounter < 4) {\n //returning a feedback saying \"correct answer\" if the user has chosen the correct answer and\n //\"incorrect answer\" otherwise\n if (question[quesNumber].isAnsTrue()) {\n Toast.makeText(TopicQuiz.this, \"Incorrect Answer\", Toast.LENGTH_SHORT).show();\n\n\n } else {\n Toast.makeText(TopicQuiz.this, \"Correct Answer\", Toast.LENGTH_SHORT).show();\n rightQuesCounter++;\n }\n //incrementing quesNumber to move to the next question\n quesNumber++;\n questionTextView.setText(question[quesNumber].getQuesStatement());\n } else {\n if (question[quesNumber].isAnsTrue()) {\n Toast.makeText(TopicQuiz.this, \"Incorrect Answer\", Toast.LENGTH_SHORT).show();\n\n\n } else {\n Toast.makeText(TopicQuiz.this, \"Correct Answer\", Toast.LENGTH_SHORT).show();\n rightQuesCounter++;\n }\n\n //Checking to see if the rightQuesCounter worked or not\n Log.d(TAG, \"You have got \" + rightQuesCounter + \" questions right!\");\n\n //Having an intent to move to the Result screen while passing the rightQuesCounter to get the result\n Intent intent = new Intent(TopicQuiz.this, Result.class);\n intent.putExtra(\"rightQuesCounter\", rightQuesCounter);\n intent.putExtra(\"language\",topic);\n\n\n startActivity(intent);\n }\n }", "@Override\n\t\t\tpublic void onFailure(int arg0, String arg1) {\n\t\t\t\tToast.makeText(MainActivity.this, \"submit failure\", Toast.LENGTH_LONG).show();\n\t\t\t}", "@Override\n public void onClick(View v) {\n String textoDigitado = caixaTexto.getText().toString();\n\n if (textoDigitado.isEmpty()) {\n // String vazia\n AlertDialog.Builder dialogo = new AlertDialog.Builder(MainActivity.this);\n dialogo.setMessage(\"Digite a idade do Cachorro!\");\n dialogo.setNeutralButton(\"Ok\", null);\n dialogo.show();\n\n } else {\n\n int valorDigitado = Integer.parseInt(textoDigitado);\n int resultadoFinal = valorDigitado * 7;\n\n resultadoIdade.setText(\"A idade do cachorro em anos humanos é \" + resultadoFinal + \" ano(s)\");\n\n }\n }", "private void checkAnswer(boolean userPressedTrue) {\n boolean answerIsTrue = questions[mCurrentIndex].isAnswerTrue();\n int messageResId = 0;\n if (answerIsTrue == userPressedTrue) {\n messageResId = R.string.correct_toast;\n correct++;\n } else {\n messageResId = R.string.incorrect_toast;\n }\n Toast.makeText(QuizActivity.this, messageResId, Toast.LENGTH_SHORT).show();\n }", "@Override\n public void onClick(View view) {\n\n if (l.getText().length()<1 && m.getText().length()<1 && n.getText().length()<1 && o.getText().length()<1 && p.getText().length()<1) {\n\n Toast toast3 = Toast.makeText(Main2Activity.this, \"Please Enter Valid Input\", Toast.LENGTH_LONG);\n toast3.show();\n\n }\n\n\n //If the content is correct returning back to the main screen\n else {\n startActivity(new Intent(Main2Activity.this, MainActivity.class));\n\n }\n\n }", "public void setCorrect_answer(String correct_answer) {\n this.correct_answer=correct_answer;\n }", "@OnClick(R.id.buttonConfirmSymptoms)\n public void buttonConfirmSymptoms() {\n if (sharedPreferences.getInt(\"symptomCounter\", 0) == 0) {\n Toast.makeText(ExaminationActivity.this, getString(R.string.not_enough), Toast.LENGTH_SHORT).show();\n } else {\n startActivity(new Intent(ExaminationActivity.this, DiagnoseActivity.class));\n finish();\n }\n }", "private void alertDialoge() {\n builder.setMessage(R.string.dialoge_desc).setTitle(R.string.we_request_again);\n\n builder.setCancelable(false)\n .setPositiveButton(R.string.give_permissions, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n requestPermission();\n }\n })\n .setNegativeButton(R.string.dont_ask_again, new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // Action for 'Don't Ask Again' Button\n // the sharedpreferences value is true\n editor.putBoolean(getResources().getString(R.string.dont_ask_again), true);\n editor.commit();\n dialog.cancel();\n }\n });\n //Creating dialog box\n AlertDialog alert = builder.create();\n alert.show();\n }", "private void MissPIBox(View v){\n\t\t//create an alert box with specified properties\n\t\tnew AlertDialog.Builder(this)\n\t\t.setTitle(\"Error\")\n\t\t.setMessage(\"Sorry, please enter the prescription information\")\n\t\t.setNeutralButton(\"ok\", null)\n \t.show();\n\t}", "@Override\n public void onClick(View view) {\n\n if(mQuestions.getType(QuestionNum) == \"radiobutton\") {\n if (mQuestions.getCoorectAnswers(QuestionNum).equals(mAnswer)) {\n\n mScore++;\n displayToastCorrectAnswer(); // wyswietlenie Toastu\n } else {\n displayToastWrongAnswer();\n\n }\n\n Handler handler = new Handler(); // zmiana widoku po pytaniu\n handler.postDelayed(new Runnable() {\n @Override\n public void run() { // opoznienie wyswietlenia\n updateQuestions();\n\n }\n }, 1000);\n\n }\n\n SystemClock.sleep(1000); // opoznienie dzialania nastepnych metod\n\n if(QuestionNum == mQuestions.getLength() -1){ // sprawdzenie czy to jest ostatnie pytanie\n\n Intent intent_result = new Intent(MainActivity.this, ResultActivity.class);\n intent_result.putExtra(\"totalQuestions\",mQuestions.getLength());\n intent_result.putExtra(\"finalScore\", mScore);\n\n startActivity(intent_result); // ta metoda uruchamia nam aktywnosc wyswietlajaca wynik\n\n QuestionNum = 0;\n mQuizNum = 0;\n mScore = 0;\n }else {\n QuestionNum++;\n mQuizNum++;\n }\n updateQuestions();\n\n }", "public void checkAnswer() {\n }", "@Override\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MainActivity.this, getResources().getString(R.string.error_not_respond), Toast.LENGTH_LONG).show();\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n\n Toast.makeText(CreateNoteActivity.this, \"\" + e.getLocalizedMessage(), Toast.LENGTH_SHORT).show();\n\n }", "@Override\n public void onClick(View v) {\n indexResponseTo0();\n System.out.println(\"Answer: \"+ new Gson().toJson(mAnswerCheckAll,AnswerCheckAll.class));\n AnswerManager.getInstance().put_answer2(new Gson().toJson(mAnswerCheckAll,AnswerCheckAll.class));\n if(mType == null) {\n // ((SurveyActivity) mContext).go_to_next();\n AlertDialog.Builder builder = new AlertDialog.Builder(FragmentCheckAll.this.getActivity());\n builder.setTitle(\n \"Submit response?\")\n .setMessage(\"Do you wish to submit your response?\")\n .setCancelable(false)\n .setPositiveButton(\"Ok\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int id) {\n ((SurveyActivity) mContext).event_survey_completed(AnswerManager.getInstance());\n }\n })\n .setNegativeButton(\"Cancel\",\n new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog,\n int id) {\n dialog.cancel();\n }\n }).create().show();\n }\n else {\n postAnswer();\n ((SurveysActivity) mContext).go_to_next();\n }\n }", "public void onClick(DialogInterface dialog,int id) {\n\t\t\t\t\t\t\n\t\t\t\t\t String input_text = userInput.getText().toString(); \n\t\t\t\t\t \n\t\t\t\t\t if (!input_text.isEmpty()){\n\t\t\t\t\t \t\n\t\t\t\t\t\t\t\tToast.makeText(\n\t\t\t\t\t\t\t\t\t\tgetActivity(),\n\t\t \"You've entered: \"+userInput.getText()+\"\\nas your response.\\nPress next button to continue.\",\n\t\t Toast.LENGTH_SHORT).show();\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// setting the response for that survey question\n\t\t\t\t\t\t\t\teventbean.setTextResponse(input_text);\n\t\t\t \t\t\t\t\n\t\t\t\t\t\t\t\tresponse_tv.setVisibility(View.VISIBLE);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// show user input as question answer\n\t\t\t\t\t\t\t\tString response = userInput.getText().toString();\n\t\t\t\t\t\t\t\tresponse_tv.setText(response);\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t// notify the activity to enable going next\n\t\t\t\t\t\t\t\tresponseCallBack.onEventResponded(eventbean.getIndex(),eventbean.getQid(),\"X\",\"0\");\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t \t}else{\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t\tToast.makeText(\n\t\t\t\t\t \t\t\t\tgetActivity(),\n\t\t \"You have NOT entered your response.\",\n\t\t Toast.LENGTH_SHORT).show();\n\t\t\t\t\t \t\t\n\t\t\t\t\t \t}\n\t\t\t\t\t }", "private void showErrorAlert()\n {\n \tAlertDialog.Builder builder = new AlertDialog.Builder(this);\n \tbuilder.setMessage(getResources().getString(R.string.app_error_str))\n \t .setCancelable(false)\n \t .setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n \t public void onClick(DialogInterface dialog, int id) {\n \t dialog.cancel();\n \t }\n \t });\n \t \n \tAlertDialog alert = builder.create();\n \talert.show();\n }", "private boolean checkTextViewAnswer(int resourceId, String correctAnswer){\n TextView textView = findViewById(resourceId);\n return textView.getText().toString().equals(correctAnswer);\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n dialog.dismiss();\n //Display err toast msg\n Toast.makeText(getApplicationContext(), e.getMessage(), Toast.LENGTH_SHORT).show();\n }", "private void checkAnswer()\r\n\t{\r\n\t\t//Submission to the model and getting 'true' if correct and 'false' otherwise\r\n\t\tboolean response = quizModel.isCorrect(group.getSelection().getActionCommand());\r\n\t\t\r\n\t\t//Updating score label based on result\r\n\t\tif (response == true)\r\n\t\t{\r\n\t\t\tscoreLabel.setText(\"<html><div style='text-align: center;'>\" + \"Score = \" + quizModel.getScore() + \"<br>Correct answer!\" + \"</div></html>\");\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tscoreLabel.setText(\"<html><div style='text-align: center;'>\" + \"Score = \" + quizModel.getScore() + \"<br>Incorrect answer!\" + \"</div></html>\");\r\n\t\t}\r\n\t}", "@Override\n public void onClick(View v) {\n String url = csp_server+\"/\"+userId+\"/answer/\"+questionId;\n AnswerQuestion ansq = new AnswerQuestion();\n String finalAns = \"No\";\n if(answer)\n finalAns = \"Yes\";\n ansq.execute(url, finalAns);\n Log.d(\"Notification-debug\", \"Submit button\");\n finish();\n\n }", "private void showCorrectAnswerDialogueBox() {\n\n\t\tupdateImageView(currentQuestionNumber);\n\n\t\t// check if all other questions are answered\n\t\tif (StoreAnalysisStateApplication.stageCleared) {\n\t\t\t// this call is specifically for updating fragment in description\n\t\t\t// tab\n\n\t\t\tString _title = getString(R.string.levelcleared);\n\t\t\tString _message = getString(R.string.analysislevelclearedmessage);\n\t\t\tUtilityMethods.createAlertDialog(_title, _message,\n\t\t\t\t\tAnalysisActivity.this);\n\n\t\t} else {\n\n\t\t\tString _title = getString(R.string.correctansweralertdialoguetitle);\n\t\t\tString _message = getString(R.string.correctansweralertdialoguemessage);\n\t\t\tUtilityMethods.createAlertDialog(_title, _message,\n\t\t\t\t\tAnalysisActivity.this);\n\t\t}\n\n\t\tdisableRadioOptions();\n\t}", "private void validateQuestion(){\n int checkedRadioButtonId = Question.getCheckedRadioButtonId();\n\n // If the correct question has been chosen, update the score & display a toast message\n if (checkedRadioButtonId == R.id.radio4_question1) {\n score = score + 2;\n }\n }", "@Override\n\tpublic void solve(String result) {\n\t\tSystem.out.println(\"你告诉我的答案是--->\"+result); \n\t}", "public void showResult(boolean isCorrect, String answer){\n if(isCorrect){\n mResultText.setText(\"CORRECT!\");\n mResultText.setTextColor(getResources().getColor(android.R.color.holo_green_light));\n } else {\n mResultText.setText(\"WRONG!\");\n mResultText.setTextColor(getResources().getColor(android.R.color.holo_red_light));\n mCorrectAnswerText.setText(\"Correct answer is \"+ answer);\n }\n }", "@Override\n public void onClick(View v) {\n String question = newQuestion.getText().toString();\n String opt1 = option1.getText().toString();\n String opt2 = option2.getText().toString();\n\n // Checks that all fields are filled before continuing.\n if (question.equals(\"\") || opt1.equals(\"\") || opt2.equals(\"\")) {\n // Displays Toast if at least one field is empty.\n Toast.makeText(SurveyActivity.this, \"Please fill in all fields before submitting\", Toast.LENGTH_SHORT).show();\n } else {\n // Creates new Intent to return to MainActivity.\n Intent surveyIntent = new Intent();\n // Adds string values to Extra.\n surveyIntent.putExtra(EXTRA_FROM_SURVEY_QUESTION, question);\n surveyIntent.putExtra(EXTRA_FROM_SURVEY_OPT1, opt1);\n surveyIntent.putExtra(EXTRA_FROM_SURVEY_OPT2, opt2);\n setResult(RESULT_OK, surveyIntent);\n finish();\n }\n }", "@Override\n public void onFailure(@NonNull Exception e) {\n Toast.makeText(getApplicationContext(),\"\"+e.getMessage(),Toast.LENGTH_SHORT).show();\n\n }", "public void checkAnswer(View view) {\n\n mButton = (Button) view;\n\n if (mButton.getText().toString().equals(questionsInList.get(0).getRightAnswer())) {\n //Toast.makeText(this, \"Correct answer\", Toast.LENGTH_SHORT).show();\n questionNumberIncrement();\n checkIfLastQuestion();\n\n mHandler.postDelayed(r, 1200);\n\n try {\n questionsInList.removeFirst();\n }catch (IllegalArgumentException e){\n e.printStackTrace();\n }\n\n countSessionPoints();\n setCurrentQuestion();\n iterator = (ListIterator) questionsInList.iterator();\n\n } else {\n Toast.makeText(this, \"Wrong answer\", Toast.LENGTH_SHORT).show();\n wrongAnswer();\n\n }\n\n\n }", "@Override\n public void onQuedadaCreadaError() {\n btn_publicar.setEnabled(true);\n Snackbar.make(myView,\"Error al crear la quedada\", Snackbar.LENGTH_SHORT).show();\n\n }", "public void onClick(final View v) {\n if (textInputLayout_email.getText().toString().isEmpty() || textInputLayout_email.getText().toString().equals(\"\")) {\n mensaje=getResources().getString(R.string.debe_indicar_nombre_usuario_registrado);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n } else {\n // Para cerrar el teclado antes de mostrar el AlertDialog\n InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);\n inputMethodManager.hideSoftInputFromWindow(textInputLayout_email.getWindowToken(), 0);\n //Dialogo que confirma el cambio de contraseña informado al usuario que se\n // le enviara un correo con la nueva contraseña auto generada.\n AlertDialog alertDialog = new AlertDialog.Builder(RecordarPass.this).create();\n alertDialog.setTitle(getResources().getString(R.string.recordarpasstitulo));\n alertDialog.setMessage(getResources().getString(R.string.mensaje_recordar_pass));\n alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, getResources().getString(R.string.aceptar), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n JSONObject json = new JSONObject();\n try {\n json.put(Tags.USUARIO, textInputLayout_email.getText().toString());\n //Se hace la peticion al servidor con el json que lleva dentro el email del usuario.\n json = JSONUtil.hacerPeticionServidor(\"usuarios/java/recuperar_contrasena/\", json);\n\n\n String p = json.getString(Tags.RESULTADO);\n //Comprobamos la conexión con el servidor\n if (p.contains(Tags.ERRORCONEXION)) {\n //Si no conecta imprime un snackbar\n mensaje=getResources().getString(R.string.error_conexion);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n\n// return false;\n }\n else if (p.contains(Tags.OK)) {\n //Si el servidor devuelve OK y se ha generado una nueva\n // contraseña porque el usuario es correcto, tendra que mirar\n // el su correo para poder acceder a la apliacion con la nueva contraseña.\n mensaje= getResources().getString(R.string.mensaje_enviado);\n Snackbar.make(v, mensaje, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n finish();\n }\n //resultado falla por otro error\n else if (p.contains(Tags.ERROR)) {\n String msg = json.getString(Tags.MENSAJE);\n Snackbar.make(v, msg, Snackbar.LENGTH_LONG).setAction(\"Action\", null).show();\n\n// return false;\n }\n } catch (JSONException e) {\n e.printStackTrace();\n }\n dialog.dismiss();\n }\n });\n\n alertDialog.setButton(AlertDialog.BUTTON_NEGATIVE, getResources().getString(R.string.cancelar), new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int which) {\n dialog.dismiss();\n }\n });\n alertDialog.show();\n }\n }", "private void correctError()\r\n\t{\r\n\t\t\r\n\t}", "public void onClick(View view){\n RadioButton answer = (RadioButton) view;\n if (answer.getText() == manswer) {\n mScore = mScore + 1;\n Toast.makeText(Quiz.this, \"Correct\", Toast.LENGTH_LONG).show();\n }else{\n Toast.makeText(Quiz.this, \"InCorrect\", Toast.LENGTH_LONG).show();\n }\n updateScore(mScore);\n updateQuestion();\n\n }", "private void rightAnswerButtonOnClick()\r\n {\r\n //if the button clicked has the correct answer, then do the following;\r\n\r\n yesMPlayer.start();\r\n updateQuestion();\r\n\r\n Toast.makeText(getApplicationContext(), \"CORRECT!\", Toast.LENGTH_SHORT).show();\r\n\r\n score += 100;\r\n scoreEditText.setText(score + \"\");\r\n\r\n streak += 1;\r\n streakEditText.setText(streak + \"\");\r\n\r\n questionPos += 1;\r\n questionNoTV.setText(\"Question \" + noOfQuestion + \" of 10\");\r\n\r\n if (score == 1000) {\r\n newPlayer.insertPlayerStatsToDatabase(player, year, score + \"\", streak + \"\");\r\n //Toast.makeText(getApplicationContext(), \"OVERRRRRR\\t\" + score, Toast.LENGTH_SHORT).show();\r\n }\r\n }", "@UiThread\n public void showCorrectAnswer(@NonNull final TextQuestionHolder holder) {\n //format the correct answer to be displayable, and display it\n String correctText = correctAnswers.get(0);\n correctText = correctText.replace(\"[s]\", \" \");\n TextView possibleSolutionView = holder.possibleSolutionLayout.findViewById(R.id.possibleSolutionTextView);\n possibleSolutionView.setText(correctText);\n\n final Context context = holder.answerEditText.getContext();\n if(ThemeUtils.isDarkTheme()) { //recolor text on dark theme for better visibility\n holder.answerDisplayer.setTextColor(ContextCompat.getColor(context, android.R.color.black));\n }\n holder.answerDisplayer.setText(holder.answerEditText.getText());\n holder.answerDisplayer.setVisibility(View.VISIBLE);\n holder.answerEditText.setVisibility(View.GONE);\n if(isCorrect()) {\n holder.questionIcon.setImageResource(R.drawable.tick_icon);\n holder.answerDisplayer.setBackgroundResource(R.drawable.correct_answer_background);\n holder.answerDisplayer.setTag(R.drawable.correct_answer_background); //tag is used in testing\n } else {\n if(!isAnswered()) holder.answerDisplayer.setText(context.getString(R.string.no_answer_given));\n holder.questionIcon.setImageResource(R.drawable.problem_icon);\n holder.answerDisplayer.setBackgroundResource(R.drawable.incorrect_background);\n holder.answerDisplayer.setTag(R.drawable.incorrect_background); //tag is used in testing\n holder.possibleSolutionLayout.setVisibility(View.VISIBLE);\n }\n }", "public void setAnswer(String answer) {\r\n this.answer = answer;\r\n }", "public void checkAnswers(View view){\n int result = 0;\n\n if (checkRadioButtonAnswer(R.id.first_answer, R.id.first_answer3)){\n result = result + 1;\n }\n\n if (checkTextViewAnswer(R.id.second_answer, \"lions\")){\n result = result + 1;\n }\n\n if (checkRadioButtonAnswer(R.id.third_answer, R.id.third_answer1)){\n result = result + 1;\n }\n\n if (checkRadioButtonAnswer(R.id.fourth_answer, R.id.fourth_answer3)){\n result = result + 1;\n }\n\n if (checkRadioButtonAnswer(R.id.fifth_answer, R.id.fifth_answer3)){\n result = result + 1;\n }\n\n if (checkRadioButtonAnswer(R.id.sixth_answer, R.id.sixth_answer2)){\n result = result + 1;\n }\n\n if (checkCheckBoxAnswer(R.id.seventh_answer1, true) &&\n checkCheckBoxAnswer(R.id.seventh_answer2, true) &&\n checkCheckBoxAnswer(R.id.seventh_answer3, true) &&\n checkCheckBoxAnswer(R.id.seventh_answer4, false)){\n result = result + 1;\n }\n\n /**\n * A toast message is shown which represents the scored points out of the total 7.\n */\n Toast.makeText(this, \"Result: \" + Integer.toString(result) + \"/7\", Toast.LENGTH_SHORT).show();\n }", "public void correctDialog() {\n final Dialog dialogCorrect = new Dialog(MainQuiz.this);\n dialogCorrect.requestWindowFeature(Window.FEATURE_NO_TITLE);\n if (dialogCorrect.getWindow() != null) {\n ColorDrawable colorDrawable = new ColorDrawable(Color.TRANSPARENT);\n dialogCorrect.getWindow().setBackgroundDrawable(colorDrawable);\n }\n dialogCorrect.setContentView(R.layout.right_answer);\n dialogCorrect.setCancelable(false);\n dialogCorrect.show();\n\n //Since the dialog is show to user just pause the timer in background\n onPause();\n\n\n TextView correctText = (TextView) dialogCorrect.findViewById(R.id.correctText);\n Button buttonNext = (Button) dialogCorrect.findViewById(R.id.dialogNext);\n\n correctText.setTypeface(bs);\n buttonNext.setTypeface(bs);\n\n\n buttonNext.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n\n dialogCorrect.dismiss();\n //increment question number\n qid++;\n //get the que and option put in currentQuestion\n currentQust = QuestionLList.get(qid);\n //show new question\n updateQueAndOptions();\n resetColor();\n enableButton();\n }\n });\n }", "public void illFormattedAnswer() {\n\n if (currentTeam.getTeamIndex() == teamIndex) {\n announcementsLabel.setText(\"You had an illformatted answer. Please try again\");\n } else {\n announcementsLabel.setText(currentTeam.getTeamName() + \" had an illformatted answer. They get to answer again.\");\n }\n }", "public boolean replyResult(int answer){\n \t_numberOfChoice = answer;\r\n return false;\r\n }", "@Override\r\n public void onErrorResponse(VolleyError error) {\n Toast.makeText(MyQuestionActivity.this, \"网络请求失败\", Toast.LENGTH_SHORT).show();\r\n }" ]
[ "0.7111581", "0.7092634", "0.7014837", "0.6980618", "0.6887127", "0.6774242", "0.6647867", "0.65926075", "0.6563203", "0.6552553", "0.65450954", "0.65294516", "0.65231454", "0.64403975", "0.64228886", "0.6357057", "0.63430303", "0.6332161", "0.632474", "0.63080204", "0.629446", "0.62902766", "0.62884283", "0.62697095", "0.62646943", "0.6258356", "0.6250732", "0.62445134", "0.6220017", "0.621412", "0.6203302", "0.62020093", "0.61971325", "0.61938643", "0.61846036", "0.61826235", "0.6164748", "0.6158379", "0.6151477", "0.61390096", "0.6124092", "0.611127", "0.6103886", "0.6096087", "0.6074293", "0.607342", "0.60624206", "0.603951", "0.6032728", "0.6027055", "0.602339", "0.60115296", "0.5992242", "0.5989777", "0.5985412", "0.59844387", "0.5978011", "0.5976462", "0.5976462", "0.59729373", "0.5960622", "0.59498507", "0.59414774", "0.59375113", "0.5930681", "0.5908109", "0.5891282", "0.58823365", "0.58661425", "0.5862913", "0.58610636", "0.58539593", "0.5846663", "0.5846456", "0.5842187", "0.5838972", "0.5834185", "0.5826427", "0.5825188", "0.5818415", "0.58078116", "0.58070016", "0.57985926", "0.579789", "0.57952756", "0.57888544", "0.5788084", "0.578502", "0.5784775", "0.57779145", "0.5777537", "0.5774245", "0.5774036", "0.57738376", "0.5767087", "0.5759918", "0.5752626", "0.57401836", "0.5739622", "0.573931", "0.57390577" ]
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_main, menu); return true; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tMenuInflater inflater = getMenuInflater();\n \tinflater.inflate(R.menu.main_activity_actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.actions, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n \tgetMenuInflater().inflate(R.menu.actions, menu);\n \treturn super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.actions_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main_actions, menu);\n\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n\t\tinflater.inflate(R.menu.action_bar_menu, menu);\r\n\t\tmMenu = menu;\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.act_bar_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_actions, menu);\r\n\t\treturn true;\r\n //return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\r\n\t inflater.inflate(R.menu.action_bar_all, menu);\r\n\t return super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\t super.onCreateOptionsMenu(menu);\n\t\tMenuInflater muu= getMenuInflater();\n\t\tmuu.inflate(R.menu.cool_menu, menu);\n\t\treturn true;\n\t\t\n\t\t\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.adventure_archive, menu);\r\n\t\treturn true;\r\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.archive_menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n \tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n \t\tinflater.inflate(R.menu.main, menu);\n \t\tsuper.onCreateOptionsMenu(menu, inflater);\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.action_menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.action_menu, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater bow=getMenuInflater();\n\t\tbow.inflate(R.menu.menu, menu);\n\t\treturn true;\n\t\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\t\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\t\t\n\t\t/* Inflate the menu; this adds items to the action bar if it is present */\n\t\tgetMenuInflater().inflate(R.menu.act_main, menu);\t\t\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflate = getMenuInflater();\n inflate.inflate(R.menu.menu, ApplicationData.amvMenu.getMenu());\n return true;\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.menu, menu);\n\t\t\treturn true; \n\t\t\t\t\t\n\t\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.main, menu);\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) \n {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_bar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_item, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tinflater.inflate(R.menu.menu, menu);\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t MenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t return super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t inflater.inflate(R.menu.menu, menu);\n\t \n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t\t//menu.clear();\n\t\tinflater.inflate(R.menu.soon_to_be, menu);\n\t\t//getActivity().getActionBar().show();\n\t\t//getActivity().getActionBar().setBackgroundDrawable(\n\t\t\t\t//new ColorDrawable(Color.rgb(223, 160, 23)));\n\t\t//return true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n this.getMenuInflater().inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.main, menu);\n }", "@Override\n\tpublic void onCreateOptionsMenu( Menu menu, MenuInflater inflater )\n\t{\n\t\tsuper.onCreateOptionsMenu( menu, inflater );\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\r\n\t\treturn super.onCreateOptionsMenu(menu);\r\n\t}", "@Override\r\n public boolean onCreateOptionsMenu(Menu menu) {\r\n \t// We must call through to the base implementation.\r\n \tsuper.onCreateOptionsMenu(menu);\r\n \t\r\n MenuInflater inflater = getMenuInflater();\r\n inflater.inflate(R.menu.main_menu, menu);\r\n\r\n return true;\r\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main, menu);//Menu Resource, Menu\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n inflater.inflate(R.menu.inter_main, menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.action, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu (Menu menu){\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.menu_main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.custom_action_bar, menu);\n\t\treturn true;\n\t}", "public void initMenubar() {\n\t\tremoveAll();\n\n\t\t// \"File\"\n\t\tfileMenu = new FileMenuD(app);\n\t\tadd(fileMenu);\n\n\t\t// \"Edit\"\n\t\teditMenu = new EditMenuD(app);\n\t\tadd(editMenu);\n\n\t\t// \"View\"\n\t\t// #3711 viewMenu = app.isApplet()? new ViewMenu(app, layout) : new\n\t\t// ViewMenuApplicationD(app, layout);\n\t\tviewMenu = new ViewMenuApplicationD(app, layout);\n\t\tadd(viewMenu);\n\n\t\t// \"Perspectives\"\n\t\t// if(!app.isApplet()) {\n\t\t// perspectivesMenu = new PerspectivesMenu(app, layout);\n\t\t// add(perspectivesMenu);\n\t\t// }\n\n\t\t// \"Options\"\n\t\toptionsMenu = new OptionsMenuD(app);\n\t\tadd(optionsMenu);\n\n\t\t// \"Tools\"\n\t\ttoolsMenu = new ToolsMenuD(app);\n\t\tadd(toolsMenu);\n\n\t\t// \"Window\"\n\t\twindowMenu = new WindowMenuD(app);\n\n\t\tadd(windowMenu);\n\n\t\t// \"Help\"\n\t\thelpMenu = new HelpMenuD(app);\n\t\tadd(helpMenu);\n\n\t\t// support for right-to-left languages\n\t\tapp.setComponentOrientation(this);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp=getMenuInflater();\n\t\tblowUp.inflate(R.menu.welcome_menu, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.listing, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.item, menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.resource, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater= getMenuInflater();\n inflater.inflate(R.menu.menu,menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.home_action_bar, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.template, menu);\n\t\treturn true;\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n Log.d(\"onCreateOptionsMenu\", \"create menu\");\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.socket_activity_actions, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_menu, menu);//Menu Resource, Menu\n\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.actionbar, menu);\n return true;\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(toolbar_res, menu);\n updateMenuItemsVisibility(menu);\n return true;\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t// \n\t\tMenuInflater mi = getMenuInflater();\n\t\tmi.inflate(R.menu.thumb_actv_menu, menu);\n\t\t\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t\tsuper.onCreateOptionsMenu(menu, inflater);\n\t}", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.swag_list_activity_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n super.onCreateOptionsMenu(menu, inflater);\n\n }", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n MenuInflater inflater = getMenuInflater();\n inflater.inflate(R.menu.main_menu, menu);\n return super.onCreateOptionsMenu(menu);\n }", "@Override\n\tpublic boolean onCreateOptionsMenu(android.view.Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\n\t\treturn true;\n\t}", "public void onCreateOptionsMenu(Menu menu, MenuInflater inflater){\n }", "@Override\n\t\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\t\tgetMenuInflater().inflate(R.menu.main, menu);\n\t\t\treturn true;\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.jarvi, menu);\n\t\treturn super.onCreateOptionsMenu(menu);\n\t}", "@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 public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.action_bar, menu);\n return true;\n }", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n \tpublic boolean onCreateOptionsMenu(Menu menu) {\n \t\tgetMenuInflater().inflate(R.menu.main, menu);\n \t\treturn true;\n \t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tsuper.onCreateOptionsMenu(menu);\n\t\tMenuInflater blowUp = getMenuInflater();\n\t\tblowUp.inflate(R.menu.status, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.menu, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n\tpublic void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n\t}", "@Override\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tMenuInflater inflater = getMenuInflater();\n\t\tinflater.inflate(R.menu.main, menu);\n\t\treturn true;\n\t}", "@Override\r\n\tpublic boolean onCreateOptionsMenu(Menu menu) {\n\t\tgetMenuInflater().inflate(R.menu.ui_main, menu);\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onCreateOptionsMenu(Menu menu) {\n getMenuInflater().inflate(R.menu.main_activity_actions, menu);\n return true;\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }", "@Override\n public void onCreateOptionsMenu(Menu menu, MenuInflater inflater) {\n inflater.inflate(R.menu.menu_main, menu);\n super.onCreateOptionsMenu(menu, inflater);\n }" ]
[ "0.7246451", "0.7201833", "0.7195169", "0.7176824", "0.71071094", "0.7039687", "0.70379424", "0.7011622", "0.70095545", "0.69799995", "0.6945173", "0.69389343", "0.6933555", "0.69172555", "0.69172555", "0.68906796", "0.688355", "0.687496", "0.6874772", "0.68613136", "0.68613136", "0.68613136", "0.68613136", "0.6852252", "0.6846455", "0.6818823", "0.6816676", "0.68122935", "0.68119055", "0.68119055", "0.6805087", "0.68003947", "0.6797015", "0.67904633", "0.6789411", "0.67871827", "0.6782913", "0.67593676", "0.6756442", "0.6747255", "0.6742987", "0.6742987", "0.6740183", "0.67392707", "0.67249876", "0.67237884", "0.67217875", "0.67217875", "0.6719964", "0.6711429", "0.6706682", "0.67035955", "0.6699167", "0.66980296", "0.6696009", "0.6694031", "0.66855574", "0.66825926", "0.66825926", "0.6682556", "0.66795844", "0.6678825", "0.6676161", "0.66680866", "0.66665506", "0.66625977", "0.6657122", "0.6657122", "0.6657122", "0.6656225", "0.6653723", "0.6653723", "0.6653723", "0.66520125", "0.6651581", "0.6649255", "0.6648212", "0.6646545", "0.6646233", "0.66460145", "0.6645477", "0.6644324", "0.66441935", "0.6642723", "0.66420346", "0.66412085", "0.6638387", "0.6633755", "0.66334134", "0.66321", "0.663127", "0.663127", "0.663127", "0.6628276", "0.6627496", "0.6626989", "0.6625628", "0.6623483", "0.6620039", "0.66181844", "0.66181844" ]
0.0
-1
Handle action bar item clicks here. The action bar will automatically handle clicks on the Home/Up button, so long as you specify a parent activity in AndroidManifest.xml.
@Override public boolean onOptionsItemSelected(MenuItem item) { int id = item.getItemId(); switch (item.getItemId()){ case R.id.action_settings: startActivity(new Intent(this,SettingsActivity.class)); break; case R.id.action_search: startActivity(new Intent(this,SearchActivity.class)); break; } return super.onOptionsItemSelected(item); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean onOptionsItemSelected(MenuItem item) { Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n\n //\n // HANDLE BACK BUTTON\n //\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // Back button clicked\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // app icon in action bar clicked; goto parent activity.\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n switch (id) {\r\n case android.R.id.home:\r\n // app icon in action bar clicked; go home\r\n this.finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // app icon in action bar clicked; go home\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n Log.e(\"clik\", \"action bar clicked\");\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\t public boolean onOptionsItemSelected(MenuItem item) {\n\t int id = item.getItemId();\n\t \n\t\t\tif (id == android.R.id.home) {\n\t\t\t\t// Respond to the action bar's Up/Home button\n\t\t\t\t// NavUtils.navigateUpFromSameTask(this);\n\t\t\t\tonBackPressed();\n\t\t\t\treturn true;\n\t\t\t}\n\t \n\t \n\t return super.onOptionsItemSelected(item);\n\t }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n // Respond to the action bar's Up/Home button\r\n case android.R.id.home:\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n\n switch (item.getItemId()) {\n case android.R.id.home:\n\n // app icon in action bar clicked; goto parent activity.\n this.finish();\n return true;\n default:\n\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle presses on the action bar items\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n case R.id.action_clear:\n return true;\n case R.id.action_done:\n\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onActionHomePressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId())\n {\n case android.R.id.home :\n super.onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId ()) {\n case android.R.id.home:\n onBackPressed ();\n return true;\n\n default:\n break;\n }\n return super.onOptionsItemSelected ( item );\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t switch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\t// app icon in action bar clicked; go home \n\t\t\tIntent intent = new Intent(this, Kelutral.class); \n\t\t\tintent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP); \n\t\t\tstartActivity(intent); \n\t\t\treturn true;\t\t\n\t case R.id.Search:\n\t \treturn onSearchRequested();\n\t\tcase R.id.AppInfo:\n\t\t\t// Place holder menu item\n\t\t\tIntent newIntent = new Intent(Intent.ACTION_VIEW,\n\t\t\t\t\tUri.parse(\"http://forum.learnnavi.org/mobile-apps/\"));\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\n\t\tcase R.id.Preferences:\n\t\t\tnewIntent = new Intent(getBaseContext(), Preferences.class);\n\t\t\tstartActivity(newIntent);\n\t\t\treturn true;\t\n\t }\n\t return false;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n onBackPressed();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // Intent homeIntent = new Intent(this, MainActivity.class);\n // homeIntent.addFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP);\n // startActivity(homeIntent);\n finish();\n return true;\n default:\n return (super.onOptionsItemSelected(item));\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // setResult and close the activity when Action Bar Up Button clicked.\n if (item.getItemId() == android.R.id.home) {\n setResult(RESULT_CANCELED);\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n // This ID represents the Home or Up button. In the case of this\n // activity, the Up button is shown. Use NavUtils to allow users\n // to navigate up one level in the application structure. For\n // more details, see the Navigation pattern on Android Design:\n //\n // http://developer.android.com/design/patterns/navigation.html#up-vs-back\n //\n \tgetActionBar().setDisplayHomeAsUpEnabled(false);\n \tgetFragmentManager().popBackStack();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == android.R.id.home){\n onBackPressed();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@RequiresApi(api = Build.VERSION_CODES.M)\n @Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif(item.getItemId()==android.R.id.home)\r\n\t\t{\r\n\t\t\tgetActivity().onBackPressed();\r\n\t\t}\r\n\t\treturn super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if(item.getItemId()==android.R.id.home){\n super.onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n onBackPressed();\n return false;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n //Back arrow\n case android.R.id.home:\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // android.R.id.home是Android内置home按钮的id\n finish();\n break;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n super.onBackPressed();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n this.onBackPressed();\n return false;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Handle action bar item clicks here. The action bar will\n // automatically handle clicks on the Home/Up button, so long\n // as you specify a parent activity in AndroidManifest.xml.\n int id = item.getItemId();\n\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n return true;\n default:\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n switch (item.getItemId()) {\r\n\r\n case android.R.id.home:\r\n /*Intent i= new Intent(getApplication(), MainActivity.class);\r\n i.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK | Intent.FLAG_ACTIVITY_CLEAR_TOP);\r\n startActivity(i);*/\r\n onBackPressed();\r\n finish();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case android.R.id.home:\n this.finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n // Pass the event to ActionBarDrawerToggle, if it returns\n // true, then it has handled the app icon touch event\n if (mDrawerToggle.onOptionsItemSelected(item)) {\n return true;\n }\n\n // Handle your other action bar items...\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n // Respond to the action bar's Up/Home button\n case android.R.id.home:\n NavUtils.navigateUpFromSameTask(getActivity());\n return true;\n case R.id.action_settings:\n Intent i = new Intent(getActivity(), SettingsActivity.class);\n startActivity(i);\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n //Fixes the Up Button\n if(id == android.R.id.home) {\n BuildRoute.this.finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()){\n case android.R.id.home:\n onBackPressed();\n break;\n }\n return true;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if (id == android.R.id.home) {\n NavUtils.navigateUpFromSameTask(this);\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n break;\r\n }\r\n return true;\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tif (item.getItemId() == android.R.id.home) {\n\t\t\tfinish();\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n onBackPressed();\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if ( id == android.R.id.home ) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.home) {\r\n NavUtils.navigateUpFromSameTask(this);\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_about) {\r\n AboutDialog();\r\n return true;\r\n }\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == R.id.action_exit) {\r\n finish();\r\n return true;\r\n }\r\n\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n\n this.finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n//noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n// finish the activity\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item)\n {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if( id == android.R.id.home ) // Back button of the actionbar\n {\n finish();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\t\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\tswitch (item.getItemId()) {\r\n\t\t\tcase android.R.id.home:\r\n\t\t\t\tfinish();\r\n\t\t\t\tbreak;\r\n\t\t\tdefault:\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\t\t\treturn super.onOptionsItemSelected(item);\r\n\t\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n return true;\n }\n return false;\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n\n if(id == android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n\n if (item.getItemId() == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\r\n\t\tcase android.R.id.home:\r\n\t\t\tsetResult(RESULT_OK, getIntent());\r\n\t\t\tfinish();\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n // If we got here, the user's action was not recognized.\n // Invoke the superclass to handle it.\n return super.onOptionsItemSelected(item);\n\n }\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n\n case android.R.id.home:\n this.finish();\n return true;\n }\n return true;\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\tbreak;\n\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == android.R.id.home) {\n\t\t\tfinish();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n if (id == android.R.id.home) {\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n onBackPressed();\n //NavUtils.navigateUpFromSameTask(this);\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n // todo: goto back activity from here\n finish();\n return true;\n\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\r\n // Handle item selection\r\n switch (item.getItemId()) {\r\n case android.R.id.home:\r\n onBackPressed();\r\n return true;\r\n\r\n case me.cchiang.lookforthings.R.id.action_sample:\r\n// Snackbar.make(parent_view, item.getTitle() + \" Clicked \", Snackbar.LENGTH_SHORT).show();\r\n return true;\r\n default:\r\n return super.onOptionsItemSelected(item);\r\n }\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case android.R.id.home:\n finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n\n\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tonBackPressed();\n\t\t\treturn true;\n\t\tcase R.id.scan_menu:\n\t\t\tonScan();\n\t\t\tbreak;\n\t\tcase R.id.opt_about:\n\t\t\t//onAbout();\n\t\t\tbreak;\n\t\tcase R.id.opt_exit:\n\t\t\tfinish();\n\t\t\tbreak;\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t\treturn true;\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == android.R.id.home) {\n super.onBackPressed();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id) {\n case android.R.id.home:\n this.finish();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "@Override\n public boolean onOptionsItemSelected(@NonNull MenuItem item) {\n if (item.getItemId() == android.R.id.home) {\n onBackPressed();\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n switch (id) {\n case android.R.id.home:\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n\n case android.R.id.home:\n finish();\n return true;\n\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if(id==android.R.id.home){\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\r\n\t switch (item.getItemId()) {\r\n\t \t// back to previous page\r\n\t case android.R.id.home:\r\n\t finish();\r\n\t return true;\r\n\t }\r\n\t return super.onOptionsItemSelected(item);\r\n\t}", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n if (id == android.R.id.home) {\n finish();\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\r\n\r\n //noinspection SimplifiableIfStatement\r\n if (id == android.R.id.home) {\r\n // finish the activity\r\n onBackPressed();\r\n return true;\r\n }\r\n\r\n return super.onOptionsItemSelected(item);\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId())\n {\n case android.R.id.home:\n this.finish();\n return (true);\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == android.R.id.home) {\n finish();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n switch (id){\n case R.id.home:{\n NavUtils.navigateUpFromSameTask(this);\n return true;\n }\n }\n return super.onOptionsItemSelected(item);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n switch(item.getItemId())\n {\n case android.R.id.home:\n super.onBackPressed();\n break;\n }\n\n return super.onOptionsItemSelected(item);\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tswitch (item.getItemId()) {\n\t\tcase android.R.id.home:\n\t\t\tfinish();\n\t\t\treturn true;\n\n\t\tdefault:\n\t\t\treturn super.onOptionsItemSelected(item);\n\t\t}\n\t}", "@Override\r\n public boolean onOptionsItemSelected(MenuItem item) {\n\r\n int id = item.getItemId();\r\n if(id==android.R.id.home){\r\n finish();\r\n return true;\r\n }\r\n return super.onOptionsItemSelected(item);\r\n }" ]
[ "0.79041183", "0.7805934", "0.77659106", "0.7727251", "0.7631684", "0.7621701", "0.75839096", "0.75300384", "0.74873656", "0.7458051", "0.7458051", "0.7438486", "0.742157", "0.7403794", "0.7391802", "0.73870087", "0.7379108", "0.7370295", "0.7362194", "0.7355759", "0.73454577", "0.734109", "0.73295504", "0.7327726", "0.73259085", "0.73188347", "0.731648", "0.73134047", "0.7303978", "0.7303978", "0.7301588", "0.7298084", "0.72932935", "0.7286338", "0.7283324", "0.72808945", "0.72785115", "0.72597474", "0.72597474", "0.72597474", "0.725962", "0.7259136", "0.7249966", "0.7224023", "0.721937", "0.7216621", "0.72045326", "0.7200649", "0.71991026", "0.71923256", "0.71851367", "0.7176769", "0.7168457", "0.71675026", "0.7153402", "0.71533287", "0.71352696", "0.71350807", "0.71350807", "0.7129153", "0.7128639", "0.7124181", "0.7123387", "0.7122983", "0.71220255", "0.711715", "0.711715", "0.711715", "0.711715", "0.7117043", "0.71169263", "0.7116624", "0.71149373", "0.71123946", "0.7109806", "0.7108778", "0.710536", "0.7098968", "0.70981944", "0.7095771", "0.7093572", "0.7093572", "0.70862055", "0.7082207", "0.70808214", "0.7080366", "0.7073644", "0.7068183", "0.706161", "0.7060019", "0.70598614", "0.7051272", "0.70374316", "0.70374316", "0.7035865", "0.70352185", "0.70352185", "0.7031749", "0.703084", "0.7029517", "0.7018633" ]
0.0
-1
Compares to days and returns the difference in the first value that is different starting from day > hour > minute. Is used to check if the second time is within the next day and to measure the difference of times. Other MUST be the greater day in order to handle going from Sunday to Monday. ex. originalTime.compareTo(otherTime) : if originalTime is Sunday and otherTime is Monday, it will correctly tell that it's the next day, but if original is Monday and other is Sunday, the comparison will return the difference of the days instead of the hours
public int compareTo(Time other) { // if both times have a date, return the difference if there is one, else // continue with standard comparison if (this.date != null && other.date != null) { if (this.date.compareTo(other.date) != 0) { return this.date.compareTo(other.date); } } boolean nextDay = DayOfWeek.isNextDay(this.day, other.day); // if other day is not the day after this day and days aren't the same if (!nextDay && !DayOfWeek.isSameDay(this.day, other.day)) { return this.day - other.day; // if other day is day after this day } else if (nextDay) { return this.hour - (other.hour + 24); // add 24 to represent next day // if day is the same } else { if (this.hour != other.hour) { return this.hour - other.hour; } else { return this.minute - other.minute; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected int compareTime(Date first, Date second) {\n\t\treturn first.compareTo(second);\n\t}", "private int sameDateCompare(Deadline other) {\n if (!this.hasTime() && other.hasTime()) {\n return -1;\n } else if (this.hasTime() && !other.hasTime()) {\n return 1;\n } else if (this.hasTime() && other.hasTime()) {\n TimeWrapper thisTimeWrapper = this.getTime();\n TimeWrapper otherTimeWrapper = other.getTime();\n return thisTimeWrapper.compareTo(otherTimeWrapper);\n }\n return 0;\n }", "public int compareTo(TimeSpan other) {\n\t\tif (this.hours == other.hours) { // if the hours are the same then compare the minutes\n\t\t\tif (this.minutes > other.minutes) {\n\t\t\t\treturn 1;\n\t\t\t} else if (this.minutes < other.minutes) {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t} else if (this.hours > other.hours) {\n\t\t\treturn 1;\n\t\t} else if (this.hours < other.hours) {\n\t\t\treturn -1;\n\t\t} // else if the timespans are the same\n\t\treturn 0;\n\t}", "public static int compareTime(String time1, String time2)\r\n/* 83: */ {\r\n/* 84:110 */ String[] timeArr1 = (String[])null;\r\n/* 85:111 */ String[] timeArr2 = (String[])null;\r\n/* 86:112 */ timeArr1 = time1.split(\":\");\r\n/* 87:113 */ timeArr2 = time2.split(\":\");\r\n/* 88:114 */ int minute1 = Integer.valueOf(timeArr1[0]).intValue() * 60 + \r\n/* 89:115 */ Integer.valueOf(timeArr1[1]).intValue();\r\n/* 90:116 */ int minute2 = Integer.valueOf(timeArr2[0]).intValue() * 60 + \r\n/* 91:117 */ Integer.valueOf(timeArr2[1]).intValue();\r\n/* 92:118 */ return minute1 - minute2;\r\n/* 93: */ }", "public int compareTo(LessonDateTime other) {\n if (equals(other)) {\n return 0;\n } else {\n LocalDate currentDate = LocalDate.now(DEFAULT_TIME_ZONE);\n DayOfWeek currentWeekday = DayOfWeek.getLessonWeekDay(currentDate);\n Integer currentToThis = DayOfWeek.distanceBetweenTwoDay(currentWeekday, getWeekday());\n Integer currentToOther = DayOfWeek.distanceBetweenTwoDay(currentWeekday, other.getWeekday());\n int result = currentToThis.compareTo(currentToOther);\n return result == 0\n ? getStartTime().compareTo(other.getStartTime())\n : result;\n }\n }", "private int compareTimes(String time1, String time2) {\n \n String[] timeOneSplit = time1.trim().split(\":\");\n String[] timeTwoSplit = time2.trim().split(\":\");\n \n \n if (timeOneSplit.length == 2 && timeTwoSplit.length == 2) {\n \n String[] minutesAmPmSplitOne = new String[2];\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(0, timeOneSplit[1].length() - 2);\n minutesAmPmSplitOne[1] = timeOneSplit[1].trim().substring(timeOneSplit[1].length() - 2, timeOneSplit[1].length());\n\n String[] minutesAmPmSplitTwo = new String[2];\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(0, timeTwoSplit[1].length() - 2);\n minutesAmPmSplitTwo[1] = timeTwoSplit[1].trim().substring(timeTwoSplit[1].length() - 2, timeTwoSplit[1].length());\n \n int hourOne = Integer.parseInt(timeOneSplit[0]);\n int hourTwo = Integer.parseInt(timeTwoSplit[0]);\n \n //increment hours depending on am or pm\n if (minutesAmPmSplitOne[1].trim().equalsIgnoreCase(\"pm\")) {\n hourOne += 12;\n }\n if (minutesAmPmSplitTwo[1].trim().equalsIgnoreCase(\"pm\")) {\n hourTwo += 12;\n }\n \n if (hourOne < hourTwo) {\n \n return -1;\n }\n else if (hourOne > hourTwo) {\n \n return 1;\n }\n else {\n \n int minutesOne = Integer.parseInt(minutesAmPmSplitOne[0]);\n int minutesTwo = Integer.parseInt(minutesAmPmSplitTwo[0]);\n \n if (minutesOne < minutesTwo) {\n \n return -1;\n }\n else if (minutesOne > minutesTwo) {\n \n return 1;\n }\n else {\n \n return 0;\n }\n }\n }\n //time1 exists, time 2 doesn't, time 1 comes first!\n else if (timeOneSplit.length == 2 && timeTwoSplit.length != 2) {\n return -1;\n }\n else {\n return 1;\n }\n }", "public int compare(TimeEntry t1, TimeEntry t2) {\n\t\t\t\t\treturn t1.getTime().compareTo(t2.getTime());\n\t\t\t\t//return 1;\n\t\t\t }", "public int compareTimes(String rhsTime, String lhsTime) {\n Date rhsDate = parseDate_stringToTime(rhsTime);\n Date lhsDate = parseDate_stringToTime(lhsTime);\n\n if (rhsDate.getHours() == lhsDate.getHours()) {\n if (rhsDate.getMinutes() == lhsDate.getMinutes()) {\n return 0;\n } else return rhsDate.getMinutes() - lhsDate.getMinutes();\n } else {\n return rhsDate.getHours() - lhsDate.getHours();\n }\n }", "static int calculateTimeDelta(TimeInterval interval_1, TimeInterval interval_2) {\n TimeInterval earlier;\n TimeInterval later;\n if (interval_1.getStartTime().before(interval_2.getStartTime())) {\n earlier = interval_1;\n later = interval_2;\n } else {\n earlier = interval_2;\n later = interval_1;\n }\n\n return (int) (later.getStartTime().getTime() - earlier.getStopTime().getTime());\n }", "private long getTimeDifference(Time timeValue1, Time timeValue2){\n return (timeValue2.getTime()-timeValue1.getTime())/1000;\n }", "public int compareTo(ScheduleTime compare) {\n return (this.startHours - compare.startHours) * 100 + (this.startMins - compare.startMins);\n }", "@Override\n\tpublic int compareTo(TimeInt other) {\n\t\tif (this.time < other.time) {\n\t\t\treturn -1;\n\t\t} else if (this.time > other.time) {\n\t\t\treturn 1;\n\t\t} else {\n\t\t\treturn 0;\n\t\t}\n\n\t}", "public int compareHours(String hora1, String hora2) {\n \tString[] strph1=hora1.split(\":\");\n \tString[] strph2=hora2.split(\":\");\n \tInteger[] ph1= new Integer[3];\n \tInteger[] ph2= new Integer[3];\n\n \tfor(int i=0;i<strph1.length;i++) {\n \t\tph1[i]=Integer.parseInt(strph1[i]);\n \t}\n \tfor(int i=0;i<strph2.length;i++) {\n \t\tph2[i]=Integer.parseInt(strph2[i]);\n \t}\n\n \tif(ph1[0]>ph2[0]) {\n \t\treturn 1;\n \t}\n \telse if(ph1[0]<ph2[0]) {\n \t\treturn -1;\n \t}\n \telse{//si las horas son iguales\n \t\tif(ph1[1]>ph2[1]) {\n \t\t\treturn 1; \n \t\t}\n \t\telse if(ph1[1]<ph2[1]) {\n \t\t\treturn -1;\n \t\t}\n \t\telse{//si los minutos son iguales\n \t\t\tif(ph1[2]>ph2[2]) {\n \t\t\t\treturn 1;\n \t\t\t}\n \t\t\telse if(ph1[1]<ph2[1]) {\n \t\t\t\treturn -1;\n \t\t\t}\n \t\t\telse {\n \t\t\t\treturn 0;\n \t\t\t}\n \t\t}\n \t}\n\n }", "public static long calculateBySecondsCompareNow(long timeday) {\n\t\tSimpleDateFormat formatter = new SimpleDateFormat(\"yyyyMMddHHmmss\");\n\t\tParsePosition pos = new ParsePosition(0);\n\t\tDate dt1 = formatter.parse(String.valueOf(timeday), pos);\n\t\tDate date = new Date();\n\t\treturn dt1.getTime() - date.getTime();\n\t\t\n\t}", "public static int[] getElapsedTime(Date first, Date second) {\n if (first.compareTo(second) == 1 ) {\n return null;\n }\n int difDays = 0;\n int difHours = 0;\n int difMinutes = 0;\n\n Calendar c = Calendar.getInstance();\n c.setTime(first);\n int h1 = c.get(Calendar.HOUR_OF_DAY);\n int m1 = c.get(Calendar.MINUTE);\n\n c.setTime(second);\n int h2 = c.get(Calendar.HOUR_OF_DAY);\n int m2 = c.get(Calendar.MINUTE);\n\n if (sameDay(first, second)) {\n difHours = h2 - h1;\n } else {\n difDays = getNumberOfDays(first, second)-1;\n if (h1 >= h2) {\n difDays--;\n difHours = (24 - h1) + h2;\n } else {\n difHours = h2 - h1;\n }\n }\n\n if (m1 >= m2) {\n difHours--;\n difMinutes = (60 - m1) + m2;\n } else {\n difMinutes = m2 - m1;\n }\n\n int[] result = new int[3];\n result[0] = difDays;\n result[1] = difHours;\n result[2] = difMinutes;\n return result;\n }", "public int compareTo(Punch another) {\n return ((new DateTime(time)).compareTo(another.getTime()));\n }", "private static int compareDateTime(XMLGregorianCalendar dt1, XMLGregorianCalendar dt2) {\n // Returns codes are -1/0/1 but also 2 for \"Indeterminate\"\n // which occurs when one has a timezone and one does not\n // and they are less then 14 hours apart.\n\n // F&O has an \"implicit timezone\" - this code implements the XMLSchema\n // compare algorithm.\n\n int x = dt1.compare(dt2) ;\n return convertComparison(x) ;\n }", "@Override\n public int compareTo(Booking other) {\n // Push new on top\n other.updateNewQuestion(); // update NEW button\n this.updateNewQuestion();\n\n\n String[] arr1 = other.time.split(\":\");\n String[] arr2 = this.time.split(\":\");\n// Date thisDate = new Date(this.getCalendarYear(), this.getCalendarMonth(), this.getCalendarDay(), Integer.getInteger(arr2[0]), Integer.getInteger(arr2[1]));\n// if (this.newQuestion != other.newQuestion) {\n// return this.newQuestion ? 1 : -1; // this is the winner\n// }\n\n\n if (this.calendarYear == other.calendarYear) {\n if (this.calendarMonth == other.calendarMonth) {\n if (this.calendarDay == other.calendarDay) {\n if (Integer.parseInt(arr2[0]) == Integer.parseInt(arr1[0])) { // hour\n if (Integer.parseInt(arr2[1]) == Integer.parseInt(arr1[1])) { // minute\n return 0;\n } else {\n return Integer.parseInt(arr1[1]) > Integer.parseInt(arr2[1]) ? -1 : 1;\n }\n } else {\n return Integer.parseInt(arr1[0]) > Integer.parseInt(arr2[0]) ? -1 : 1;\n }\n }\n else\n return other.calendarDay > this.calendarDay ? -1 : 1;\n }\n else\n return other.calendarMonth > this.calendarMonth ? -1 : 1;\n }\n else\n return other.calendarYear > this.calendarYear ? -1 : 1;\n\n\n// if (this.echo == other.echo) {\n// if (other.calendarMonth == this.calendarMonth) {\n// return 0;\n// }\n// return other.calendarMonth > this.calendarMonth ? -1 : 1;\n// }\n// return this.echo - other.echo;\n }", "private static int compareEndTimes(TaskItem task1, TaskItem task2) {\n\t\tif (task1 instanceof FloatingTask) {\n\t\t\tif (task2 instanceof FloatingTask) {\n\t\t\t\treturn 0;\n\t\t\t} else {\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t} else if (task1 instanceof DeadlinedTask) {\n\t\t\tif (task2 instanceof FloatingTask) {\n\t\t\t\treturn 1;\n\t\t\t} else if (task2 instanceof DeadlinedTask) {\n\t\t\t\tDate endTime1 = ((DeadlinedTask) task1).getEndTime();\n\t\t\t\tDate endTime2 = ((DeadlinedTask) task2).getEndTime();\n\t\t\t\treturn endTime2.compareTo(endTime1);\n\t\t\t} else {\n\t\t\t\tDate endTime1 = ((DeadlinedTask) task1).getEndTime();\n\t\t\t\tDate endTime2 = ((TimedTask) task2).getEndTime();\n\t\t\t\treturn endTime2.compareTo(endTime1);\n\t\t\t}\n\t\t} else {\n\t\t\tif (task2 instanceof FloatingTask) {\n\t\t\t\treturn 1;\n\t\t\t} else if (task2 instanceof DeadlinedTask) {\n\t\t\t\tDate endTime1 = ((TimedTask) task1).getEndTime();\n\t\t\t\tDate endTime2 = ((DeadlinedTask) task2).getEndTime();\n\t\t\t\treturn endTime2.compareTo(endTime1);\n\t\t\t} else {\n\t\t\t\tDate endTime1 = ((TimedTask) task1).getEndTime();\n\t\t\t\tDate endTime2 = ((TimedTask) task2).getEndTime();\n\t\t\t\treturn endTime2.compareTo(endTime1);\n\t\t\t}\n\t\t}\n\t}", "static int gregorianTimeDifference(GregorianCalendar fromTime, GregorianCalendar toTime) {\n\t\tDate fromDate = fromTime.getTime();\n\t\tDate toDate = toTime.getTime();\n\t\tlong fromLong = fromDate.getTime();\n\t\tlong toLong = toDate.getTime();\n\t\tlong timeDifference = toLong - fromLong;\n\t\tint intDiff = (int) timeDifference;\n\t\treturn intDiff;\n\t}", "@Override\n\tpublic int compareTo(FlightTime fT) {\n\t\tint comparison = 0;\n\t\tif(!timeType.equals(fT.timeType)) {\n\t\t\tif(timeType.equals(AM) && fT.timeType.equals(PM))\n\t\t\t\tcomparison = -1;\n\t\t\telse\n\t\t\t\tcomparison = 1;\n\t\t}\n\t\telse if(hour != fT.hour)\n\t\t\tcomparison = hour - fT.hour;\n\t\telse\n\t\t\tcomparison = minute - fT.minute;\n\t\treturn comparison;\n\t}", "protected double difftime(double t2, double t1) {\n\t\treturn t2 - t1;\n\t}", "@Override\n\tpublic int compare(Player o1, Player o2) {\n\t\treturn (int) (o1.getTime() - o2.getTime());\t\t\t\t\t\t\t\t\t\t//returns the time difference, if big, then player two is better \n\t}", "public int compare(DurationEdge other) {\n\t\t\treturn sign * Long.valueOf(other.get()).compareTo(get());\n\t\t}", "public long dayDiffCalculator(String a, String b){\n\n long dateDiff = 0;\n\n Date d1 = null;\n Date d2 = null;\n\n try{\n d1 = sdf.parse(a);\n d2 = sdf.parse(b);\n\n long diff = d2.getTime() - d1.getTime();\n\n long diffSeconds = diff / 1000 % 60;\n long diffMinutes = diff / (60 * 1000) % 60;\n long diffHours = diff / (60 * 60 * 1000) % 24;\n long diffDays = diff / (24 * 60 * 60 * 1000);\n\n dateDiff = diffDays;\n\n } catch (Exception e){}\n\n return dateDiff;\n }", "public int getDifferenceInDate(String sPreviousDate, String sCurrentDate) {\n Calendar calPrevious = null;\n Calendar calCurrent = null;\n String[] arrTempDate = null;\n long longPreviousDate = 0;\n long longCurrentTime = 0;\n int timeDelay = 0;\n try {\n if (sPreviousDate.contains(\":\") && sCurrentDate.contains(\":\")) {\n arrTempDate = sPreviousDate.split(\":\");\n calPrevious = Calendar.getInstance();\n calPrevious.set(Integer.parseInt(arrTempDate[0]), (Integer.parseInt(arrTempDate[1]) - 1),\n Integer.parseInt(arrTempDate[2]), Integer.parseInt(arrTempDate[3]), Integer.parseInt(arrTempDate[4]));\n arrTempDate = sCurrentDate.split(\":\");\n\n calCurrent = Calendar.getInstance();\n calCurrent.set(Integer.parseInt(arrTempDate[0]), (Integer.parseInt(arrTempDate[1]) - 1),\n Integer.parseInt(arrTempDate[2]), Integer.parseInt(arrTempDate[3]), Integer.parseInt(arrTempDate[4]));\n longPreviousDate = Long.parseLong(new SimpleDateFormat(\"yyyyMMddHHmm\").format(calPrevious.getTime()));\n longCurrentTime = Long.parseLong(new SimpleDateFormat(\"yyyyMMddHHmm\").format(calCurrent.getTime()));\n ///println(\"Previous Time In Int= \"+longPreviousDate);\n //println(\"Current Time In Int= \"+longCurrentTime);\n if (longCurrentTime > longPreviousDate) {\n while (true) {\n timeDelay++;\n calCurrent.add(Calendar.MINUTE, -1);\n longCurrentTime = Long.parseLong(new SimpleDateFormat(\"yyyyMMddHHmm\").format(calCurrent.getTime()));\n //println(\"Previous Time In Int= \"+longPreviousDate);\n //println(\"Current Time In Int= \"+longCurrentTime);\n if (longCurrentTime < longPreviousDate) {\n break;\n }\n }\n }\n }\n } catch (Exception e) {\n println(\"getDifferenceInDate : Exception : \" + e.toString());\n } finally {\n return timeDelay;\n }\n }", "public void calculateTimeDifferences() {\n\n findExits();\n\n try {\n\n\n if (accumulate.size() > 0) {\n\n for (int i = 1; i < accumulate.size() - 1; i++) {\n if (accumulate.get(i).value > accumulate.get(i - 1).value\n && timeOfExists.size() > 0) {\n\n double timeOfEntry = accumulate.get(i).timeOfChange;\n double timeOfExit = timeOfExists.get(0);\n\n timeOfExists.remove(timeOfExit);\n timeOfChanges.add(timeOfExit - timeOfEntry);\n }\n\n }\n }\n } catch (IndexOutOfBoundsException exception) {\n LOG_HANDLER.logger.severe(\"calculateTimeDifferences \"\n + \"Method as thrown an OutOfBoundsException: \"\n + exception\n + \"Your timeOfChanges seems to be null\");\n }\n }", "@Override\n\t\t\tpublic int compare(Map.Entry<T, Integer> e1, Map.Entry<T, Integer> e2)\n\t\t\t{\n\n\t\t\t\treturn - (e1.getValue() - e2.getValue());\n\t\t\t}", "@Override\n\t\tpublic int compareTo(pair2 o) {\n\t\t\tif (this.time == o.time) {\n\t\t\t\treturn o.status - this.status;\n\t\t\t} else {\n\t\t\t\treturn this.time - o.time;\n\t\t\t}\n\t\t}", "public static double getAttHour(String time1, String time2)\r\n/* 178: */ throws ParseException\r\n/* 179: */ {\r\n/* 180:258 */ double hour = 0.0D;\r\n/* 181:259 */ DateFormat fulDate = new SimpleDateFormat(\"HH:mm\");\r\n/* 182:260 */ long t12 = fulDate.parse(\"12:00\").getTime();\r\n/* 183:261 */ long t13 = fulDate.parse(\"13:00\").getTime();\r\n/* 184:262 */ long t1 = fulDate.parse(time1).getTime();\r\n/* 185:263 */ long PERHOUR = 3600000L;\r\n/* 186:264 */ if (time2 == null)\r\n/* 187: */ {\r\n/* 188:265 */ if (t12 - t1 > 0L) {\r\n/* 189:266 */ hour = (t12 - t1) / PERHOUR;\r\n/* 190: */ }\r\n/* 191: */ }\r\n/* 192: */ else\r\n/* 193: */ {\r\n/* 194:269 */ long t2 = fulDate.parse(time2).getTime();\r\n/* 195:270 */ if ((t1 <= t12) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 196:271 */ hour = (t12 - t1) / PERHOUR;\r\n/* 197:272 */ } else if ((t1 <= t12) && (t2 >= t13)) {\r\n/* 198:273 */ hour = (t2 - t1) / PERHOUR - 1.0D;\r\n/* 199:274 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t12) && (t2 <= t13)) {\r\n/* 200:275 */ hour = 0.0D;\r\n/* 201:276 */ } else if ((t1 >= t12) && (t1 <= t13) && (t2 >= t13)) {\r\n/* 202:277 */ hour = (t2 - t13) / PERHOUR;\r\n/* 203: */ } else {\r\n/* 204:279 */ hour = (t2 - t1) / PERHOUR;\r\n/* 205: */ }\r\n/* 206: */ }\r\n/* 207:282 */ DecimalFormat df = new DecimalFormat(\"#.0\");\r\n/* 208:283 */ return Double.parseDouble(df.format(hour));\r\n/* 209: */ }", "public static String calcualte_timeDifference(String datetobeFormatted) {\n\n int days = 0,hours = 0,minutes = 0,seconds = 0,weeks=0;\n try {\n Calendar c = Calendar.getInstance();\n SimpleDateFormat df_current = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n String formattedDate = df_current.format(c.getTime());\n Date date_current = df_current.parse(formattedDate);\n\n SimpleDateFormat df = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date date = df.parse(datetobeFormatted);\n\n\n DateTime dt1 = new DateTime(date);\n DateTime dt2 = new DateTime(date_current);\n\n days = Days.daysBetween(dt1, dt2).getDays();\n hours = Hours.hoursBetween(dt1, dt2).getHours() % 24;\n minutes = Minutes.minutesBetween(dt1, dt2).getMinutes() % 60;\n seconds = Seconds.secondsBetween(dt1, dt2).getSeconds() % 60;\n weeks = Weeks.weeksBetween(dt1, dt2).getWeeks();\n\n\n Log.i(\"Date \",datetobeFormatted);\n Log.i(\"Days \",(Days.daysBetween(dt1, dt2).getDays() + \" days, \"));\n //Log.i(\"Days \",Hours.hoursBetween(dt1, dt2).getHours() % 24 + \" hours, \");\n //Log.i(\"Days \",Minutes.minutesBetween(dt1, dt2).getMinutes() % 60 + \" minutes, \");\n\n\n\n } catch (ParseException e) {\n e.printStackTrace();\n }\n if(weeks>1)\n {\n return weeks+\"w\";\n }else\n {\n return days+\"d\";\n }\n /* else if(hours>1 && days<1)\n {\n return hours+\"h\";\n }\n else if(minutes>1 && hours<1)\n {\n return minutes+\"m\";\n }else\n {\n return seconds+\"s\";\n }*/\n }", "public int compareTo(Message other){\n if(time < other.time) {\n return -1;\n } else { // assume one comes before the other in all instances\n return 1;\n }\n }", "public static TimeOfTheDay getMatchingTimeOfTheDay(Calendar now){\n Calendar compareTime = Calendar.getInstance();\n compareTime.set(Calendar.YEAR, now.get(Calendar.YEAR));\n compareTime.set(Calendar.MONTH, now.get(Calendar.MONTH));\n compareTime.set(Calendar.DAY_OF_MONTH, now.get(Calendar.DAY_OF_MONTH));\n compareTime.set(Calendar.HOUR_OF_DAY, END_OF_NIGHT);\n compareTime.set(Calendar.MINUTE, 0);\n compareTime.set(Calendar.SECOND, 0);\n compareTime.set(Calendar.MILLISECOND, 0);\n\n // Is it night?\n if (now.before(compareTime)){\n return NIGHT;\n }\n\n // Then it might be Morning?\n compareTime.set(Calendar.HOUR_OF_DAY, END_OF_MORNING);\n if (now.before(compareTime)){\n return MORNING;\n }\n\n // Then it is midday?\n compareTime.set(Calendar.HOUR_OF_DAY, END_OF_MIDDAY);\n if (now.before(compareTime)){\n return MIDDAY;\n }\n\n //Then it is afternoon?\n compareTime.set(Calendar.HOUR_OF_DAY, END_OF_AFTERNOON);\n if (now.before(compareTime)){\n return AFTERNOON;\n }\n\n // Then it is evening?\n compareTime.set(Calendar.HOUR_OF_DAY, END_OF_EVENING);\n if (now.before(compareTime)){\n return EVENING;\n }\n\n //In this case it is really late!\n return NIGHT;\n }", "@Override\r\n\t\t\t\tpublic int compare(Comparendo o1, Comparendo o2) \r\n\t\t\t\t{\n\t\t\t\t\treturn o1.fechaHora.compareTo(o2.fechaHora);\r\n\t\t\t\t}", "public static int compararDataTime(Date data1, Date data2) {\r\n\t\tlong dataTime1 = data1.getTime();\r\n\t\tlong dataTime2 = data2.getTime();\r\n\t\tint result;\r\n\t\tif (dataTime1 == dataTime2) {\r\n\t\t\tresult = 0;\r\n\t\t} else if (dataTime1 < dataTime2) {\r\n\t\t\tresult = -1;\r\n\t\t} else {\r\n\t\t\tresult = 1;\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "private String getTimeDifference(long actualTime) {\n\t\tlong seconds = actualTime % (1000 * 60);\n\t\tlong minutes = actualTime / (1000 * 60);\n\n\t\tString result = null;\n\n\t\tif (minutes < 10) {\n\t\t\tresult = \"0\" + minutes + \":\";\n\t\t} else {\n\t\t\tresult = minutes + \":\";\n\t\t}\n\n\t\tif (seconds < 10) {\n\t\t\tresult += \"0\" + seconds;\n\t\t} else {\n\t\t\tString sec = seconds + \"\";\n\t\t\tresult += sec.substring(0, 2);\n\t\t}\n\n\t\treturn result;\n\t}", "public Interval diff(Interval other) {\n\t\treturn this.plus(other.mul(new Interval(\"-1\", \"-1\")));\n\t}", "@Override\n\t\t\tpublic int compare(NjRepayOfflineLine o1, NjRepayOfflineLine o2) {\n\t\t\t\treturn (int) (o1.getPlanRepayDay().getTime() - o2.getPlanRepayDay().getTime());\n\t\t\t}", "public long getDifference(final long timeValue) {\n return stamp - timeValue;\n }", "public int compare(TimeInterval ti) {\r\n\t\tlong diff = 0;\r\n\t\tfor (int field = 8; field >= 1; field--) {\r\n\t\t\tdiff += (getNumberOfIntervals(field) - ti\r\n\t\t\t\t\t.getNumberOfIntervals(field))\r\n\t\t\t\t\t* getMaximumNumberOfMinutesInField(field);\r\n\t\t}\r\n\t\tif (diff == 0)\r\n\t\t\treturn 0;\r\n\t\telse if (diff > 0)\r\n\t\t\treturn 1;\r\n\t\telse\r\n\t\t\treturn -1;\r\n\t}", "public double getWaitTime(Flight flight2) {\n Calendar date1 = createNewCalendar(arrivalDateTime);\n Calendar date2 = createNewCalendar(flight2.getDepartureDateTime());\n // get the difference in time in milliseconds\n double timeDifference = date2.getTimeInMillis() - date1.getTimeInMillis();\n // convert to hours\n return timeDifference / (1000 * 60 * 60);\n }", "public int compareTo(Instruction other){\n return this.arrivalTime - other.arrivalTime;\n }", "public static int CalcularDiferenciaDiasFechas(Date fecha1, Date fecha2){\n Calendar cal1 = Calendar.getInstance();\r\n Calendar cal2 = Calendar.getInstance();\r\n cal1.setTime(fecha1);\r\n cal2.setTime(fecha2);\r\n // conseguir la representacion de la fecha en milisegundos\r\n long milis1 = cal1.getTimeInMillis();\r\n long milis2 = cal2.getTimeInMillis();\r\n // calcular la diferencia en milisengundos\r\n long diff = milis2 - milis1;\r\n // calcular la diferencia en horas\r\n Long diffHours = diff / (24 * 60 * 60 * 1000);\r\n return diffHours.intValue();\r\n }", "public int compare(Object o1, Object o2)\r\n/* 237: */ {\r\n/* 238:196 */ DisgustingMoebiusTranslator.ThingTimeTriple x = (DisgustingMoebiusTranslator.ThingTimeTriple)o1;\r\n/* 239:197 */ DisgustingMoebiusTranslator.ThingTimeTriple y = (DisgustingMoebiusTranslator.ThingTimeTriple)o2;\r\n/* 240:198 */ if (DisgustingMoebiusTranslator.this.mode == DisgustingMoebiusTranslator.this.stop)\r\n/* 241: */ {\r\n/* 242:199 */ if (x.to > y.to) {\r\n/* 243:200 */ return 1;\r\n/* 244: */ }\r\n/* 245:203 */ return -1;\r\n/* 246: */ }\r\n/* 247:206 */ if (DisgustingMoebiusTranslator.this.mode == DisgustingMoebiusTranslator.this.start)\r\n/* 248: */ {\r\n/* 249:207 */ if (x.from > y.from) {\r\n/* 250:208 */ return 1;\r\n/* 251: */ }\r\n/* 252:211 */ return -1;\r\n/* 253: */ }\r\n/* 254:214 */ return 0;\r\n/* 255: */ }", "public static long getDateDiffer(Calendar cal1, Calendar cal2){\n long millis1 = cal1.getTimeInMillis();\n long millis2 = cal2.getTimeInMillis();\n\n // Calculate difference in milliseconds\n long diff = millis2 - millis1;\n\n // Calculate difference in seconds\n long diffSeconds = diff / 1000;\n\n // Calculate difference in minutes\n long diffMinutes = diff / (60 * 1000);\n\n // Calculate difference in hours\n long diffHours = diff / (60 * 60 * 1000);\n\n // Calculate difference in days\n long diffDays = diff / (24 * 60 * 60 * 1000);\n\n System.out.println(\"In milliseconds: \" + diff + \" milliseconds.\");\n System.out.println(\"In seconds: \" + diffSeconds + \" seconds.\");\n System.out.println(\"In minutes: \" + diffMinutes + \" minutes.\");\n System.out.println(\"In hours: \" + diffHours + \" hours.\");\n System.out.println(\"In days: \" + diffDays + \" days.\");\n\n return diffDays;\n }", "public static void main(String[] args) {\n\t\tint[] time1 = new int[2];// 0,0 by default\n\t\tint[] time2 = new int[2];// 0,0 by default\n\n\t\t// System.out.println(time1[0]); //0\n\n\t\ttime1[0] = 19;\n\t\ttime1[1] = 10;\n\n\t\ttime2[0] = 11;\n\t\ttime2[1] = 18;\n\n\t\t// Before comparing, check if both arrays have\n\t\t// valid hour/minute;\n\n\t\tif (time1[0] < 0 || time1[1] > 23) {\n\t\t\tSystem.out.println(\"Time1 has invalid hour\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time1[1] < 0 || time1[1] > 59) {\n\t\t\tSystem.out.println(\"Time1 has invalid minute\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time2[0] < 0 || time2[1] > 23) {\n\t\t\tSystem.out.println(\"Time2 has invalid hour\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (time2[1] < 0 || time2[1] > 59) {\n\t\t\tSystem.out.println(\"Time2 has invalid minute\");\n\t\t\treturn;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"*****COMPARE ARRAYS*****\");\n\t\t\n\t\t//COMPARE ARRAYS and tell which one is earlier\n\t\t\n\t\tif (time1[0] < time2[0]) {\n\t\t\tSystem.out.println(\"Time1 is earlier\");\n\t\t}else if (time2[0] < time1[0]) {\n\t\t\tSystem.out.println(\"Time2 is earlier\");\n\t\t}else { //hours are equal. check minutes\n\t\t\tif (time1[1] < time2[1]) {\n\t\t\t\tSystem.out.println(\"Time1 is earlier\");\n\t\t\t} else if (time2[1] < time1[1]) {\n\t\t\t\tSystem.out.println(\"Time2 is earlier\");\n\t\t\t}else { //minutes are equal\n\t\t\t\tSystem.out.println(\"Same time!\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "@Override\n public int compareTo(Calendar anotherCalendar) {\n return compareDays(super.getCalendarImplementation().getFirstDayOfWeek(), anotherCalendar.getFirstDayOfWeek());\n }", "@Override\n public int compareTo(Event e) {\n\n if(this.getAllDay() && !e.getAllDay()){\n return -1;\n }\n\n else if(e.getAllDay() && !this.getAllDay()){\n return 1;\n }\n\n else if(this.getAllDay() && e.getAllDay()){\n return 0;\n }\n\n else {\n int event1 = parseTime(this.getStartTime());\n int event2 = parseTime(e.getStartTime());\n\n if(event1 - event2 < 0){\n return -1;\n }\n\n else if(event1 - event2 > 0){\n return 1;\n }\n\n else {\n return 0;\n }\n }\n }", "private double getSolutionDifference(int[] solution1, int[] solution2){\n double solutionDifference = 0;\n double solutionValue1 = calculateSolutionValue(solution1);\n double solutionValue2 = calculateSolutionValue(solution2);\n\n if(solutionValue1 >= solutionValue2){\n solutionDifference = solutionValue1 - solutionValue2;\n }\n else{\n solutionDifference = solutionValue2 - solutionValue1;\n }\n\n return solutionDifference;\n }", "public int compare(TimeSpan std1, TimeSpan std2) {\n\t\t\t//ascending order\n\t\t\treturn std1.start - std2.start;\n\t\t}", "public String twoDatesBetweenTime(Date oldtime)\n {\n int day = 0;\n int hh = 0;\n int mm = 0;\n int ss =0;\n SimpleDateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n Date oldDate = oldtime;\n Date cDate = new Date();\n Long timeDiff = cDate.getTime() - oldDate.getTime();\n day = (int) TimeUnit.MILLISECONDS.toDays(timeDiff);\n hh = (int) (TimeUnit.MILLISECONDS.toHours(timeDiff) - TimeUnit.DAYS.toHours(day));\n mm = (int) (TimeUnit.MILLISECONDS.toMinutes(timeDiff) - TimeUnit.HOURS.toMinutes(TimeUnit.MILLISECONDS.toHours(timeDiff)));\n ss = (int) (TimeUnit.MILLISECONDS.toSeconds(timeDiff)- TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS.toMinutes(timeDiff)));\n DecimalFormat formatter = new DecimalFormat(\"00\");\n String hhf = formatter.format(hh);\n String mmf = formatter.format(mm);\n String ssf = formatter.format(ss);\n return hhf+\":\"+mmf+\":\"+ssf;\n }", "public static double getDifferenceHours(long currTime, long prevTime) {\n\n\n //TODO: Fix rounding errors associated with seconds and subsequent calculations\n long x = currTime - prevTime;\n Log.d(\"getDifferenceHours\", \"currTime: \" + currTime);\n Log.d(\"getDifferenceHours\", \"prevTime: \" + prevTime);\n\n Log.d(\"getDifferenceHours\", \"diff: \" + Long.toString(x));\n double y = x / 1000;\n Log.d(\"getDifferenceHours\", \"y: \" + y);\n double z = y / 60;\n Log.d(\"getDifferenceHours\", \"z: \" + z);\n double c = z / 60;\n Log.d(\"getDifferenceHours\", \"c: \" + c);\n return c;\n }", "private int compareToHelper(PokerHand other) {\n int output=0;\n if (this.HandType > other.getHandType()){\n //System.out.println(\"\");\n output = -1;\n }else if (this.HandType < other.getHandType()) {\n //System.out.println(\"\");\n output = 1;\n } else{\n //this is the trouble case\n if(this.Hand[0].getValue()==other.Hand[0].getValue()) {\n /*\n if((this.HandType==9)||(this.HandType==8)||(this.HandType==7)||(this.HandType==4)||(this.HandType==3)){\n //if you have paris, compare pair primary ans secondary\n if(this.pairprimary==other.pairprimary){\n if(this.pairsecondary==other.pairsecondary){\n\n }\n }\n }else{\n */\n if(this.Hand.length==1){\n //System.out.println(\"\");\n output = 0;\n }else{//same exact hand\n PokerHand thisCopy = new PokerHand(\n Arrays.copyOfRange(this.Hand,1,this.Hand.length),this.HandType);\n output = -(thisCopy.compareTo(new PokerHand(\n Arrays.copyOfRange(other.Hand,1,other.Hand.length),other.getHandType())));\n }\n //}\n }else{\n //System.out.println(\"\");\n output = (this.Hand[0].getValue()-other.Hand[0].getValue());\n }\n\n }\n //System.out.print(output+\",\");\n return output;\n }", "public static long CalcularDiferenciaHorasFechas(Date fecha1, Date fecha2){\n Calendar cal1 = Calendar.getInstance();\r\n Calendar cal2 = Calendar.getInstance();\r\n cal1.setTime(fecha1);\r\n cal2.setTime(fecha2);\r\n // conseguir la representacion de la fecha en milisegundos\r\n long milis1 = cal1.getTimeInMillis();\r\n long milis2 = cal2.getTimeInMillis();\r\n // calcular la diferencia en milisengundos\r\n long diff = milis2 - milis1;\r\n // calcular la diferencia en horas\r\n long diffHours = diff / (60 * 60 * 1000);\r\n return diffHours;\r\n }", "public int compare(Meeting meetingOne, Meeting meetingTwo) {\n return meetingOne.getDate().compareTo(meetingTwo.getDate());\n }", "@Override\n\tpublic int compareTo(Tile another) {\n\n\t\tfloat diference = (distanceToStart + distanceToEnd) - (another.distanceToStart + another.distanceToEnd);\n\n\t\tif( diference < 0 )\n\t\t\treturn -1;\n\t\telse if ( diference > 0)\n\t\t\treturn 1;\n\t\telse\n\t\t\treturn 0;\n\t}", "public void calculateHours(String time1, String time2) {\n Date date1, date2;\n int days, hours, min;\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"hh:mm aa\", Locale.US);\n try {\n date1 = simpleDateFormat.parse(time1);\n date2 = simpleDateFormat.parse(time2);\n\n long difference = date2.getTime() - date1.getTime();\n days = (int) (difference / (1000 * 60 * 60 * 24));\n hours = (int) ((difference - (1000 * 60 * 60 * 24 * days)) / (1000 * 60 * 60));\n min = (int) (difference - (1000 * 60 * 60 * 24 * days) - (1000 * 60 * 60 * hours)) / (1000 * 60);\n hours = (hours < 0 ? -hours : hours);\n SessionHour = hours;\n SessionMinit = min;\n Log.i(\"======= Hours\", \" :: \" + hours + \":\" + min);\n\n if (SessionMinit > 0) {\n if (SessionMinit < 10) {\n SessionDuration = SessionHour + \":\" + \"0\" + SessionMinit + \" hrs\";\n } else {\n SessionDuration = SessionHour + \":\" + SessionMinit + \" hrs\";\n }\n } else {\n SessionDuration = SessionHour + \":\" + \"00\" + \" hrs\";\n }\n } catch (ParseException e) {\n e.printStackTrace();\n }\n }", "private void CompararTiempo(String HoraInicio, String HoraFin){\n String[] TiempoInicial = HoraInicio.split(\":\");\n int horaI = Integer.valueOf(TiempoInicial[0]);\n int minuteI = Integer.valueOf(TiempoInicial[1]);\n\n String[] TiempoFinal = HoraFin.split(\":\");\n int horaF = Integer.valueOf(TiempoFinal[0]);\n int minuteF = Integer.valueOf(TiempoFinal[1]);\n\n if (horaF >= horaI){\n if (horaF == horaI && minuteF<=minuteI) {\n Toast.makeText(getApplicationContext(), \"La Hora de finalizacion no puede ser menor a la Hora de Inicio.\", Toast.LENGTH_SHORT).show();\n }\n else{\n etHoraFin.setText(HoraFin);\n }\n\n }else{\n Toast.makeText(getApplicationContext(), \"La Hora de finalizacion no puede ser menor a la Hora de Inicio.\", Toast.LENGTH_SHORT).show();\n }\n\n }", "@Override\n\t\tpublic int compareTo(Event other) {\n\t\t\tif (this.time < other.time + 1.0e-9) return -1;\n\t\t\telse if (this.time > other.time - 1.0e-9) return 1;\n\t\t\telse {\n\t\t\t\tif(this.active > other.active) return 1;\n\t\t\t\telse return -1;\n\t\t\t}\n\t\t}", "public static int secondsDifference(String start, String end) {\n int difference; //difference is initialized,and will be returned at the end.\n //firstsec is the amount of seconds past midnight in the start time, and\n //secondsec is the amount of seconds past midnight in the end time. In order to\n //calculate this, secondsAfterMidnight() method was called for start and end.\n int firstsec = secondsAfterMidnight(start); \n int secondsec = secondsAfterMidnight(end);\n //If start or end returns -1 through secondsAfterMidnight(), then the input was \n //not proper, so difference is set to -99999.\n if (firstsec == -1 || secondsec == -1){\n difference = -99999;\n }else { //if both inputs are proper, then proceed to calculating difference.\n difference = secondsec - firstsec;\n }\n return difference; //difference is returned to main. \n }", "@Override\n\t\t\tpublic int compare(Integer a, Integer b) {\n\t\t\t\treturn guessCount[a - 1] - guessCount[b - 1];\n\t\t\t}", "private long getDaysBetween(LocalDateTime d1, LocalDateTime d2) {\n return d1.until(d2,DAYS);\n }", "@Override\n public long deltaTo(Counter otherCounter)\n {\n return otherCounter.getAsLong() - this.getAsLong();\n }", "@Override\n public int compare(Todo td1, Todo td2) {\n\n // if td1 is null, then it should come after td2\n if (td1.getDueDate() == null && td2.getDueDate()!= null) {\n return GREATER;\n }\n // if td2 is null, then it should come after td1\n if (td1.getDueDate() != null && td2.getDueDate() == null) {\n return LESS;\n }\n // if both null, they are equal\n if (td1.getDueDate() == null && td2.getDueDate() == null) {\n return EQUAL;\n }\n // else, make into date object\n String td1Due = td1.getDueDate();\n String td2Due = td2.getDueDate();\n String[] td1DateRes = td1Due.split(\"/\");\n String[] td2DateRes = td2Due.split(\"/\");\n\n // Not caring about invalid formatting yet here\n // if both not null ,we create a date object, and let it compare themselves\n Date td1Date = new Date(td1DateRes[MONTH_INDEX],td1DateRes[DAY_INDEX],td1DateRes[YEAR_INDEX]);\n Date td2Date = new Date(td2DateRes[MONTH_INDEX],td2DateRes[DAY_INDEX],td2DateRes[YEAR_INDEX]);\n\n return td1Date.compareTo(td2Date);\n }", "private static int hoursDifference(Date date1, Date date2,TypeDate typeDate) {\n\n\t\tfinal int MILLI_TO_HOUR = 1000 * 60 * 60;\n\t\tfinal int MILLI_TO_DAY = MILLI_TO_HOUR*24;\n\t\tfinal int MILLI_TO_WEEK = MILLI_TO_DAY*7;\n\n\t\tint result=0;\n\t\tswitch (typeDate) {\n\n\t\tcase HOUR:\n\t\t\tresult= (int) (date2.getTime() - date1.getTime()) / MILLI_TO_HOUR;\n\t\t\tbreak;\n\n\t\tcase DAY:\n\t\t\tresult= (int) (date2.getTime() - date1.getTime()) / MILLI_TO_DAY;\n\t\t\tbreak;\n\n\t\tcase WEEK:\n\t\t\tresult= (int) (date2.getTime() - date1.getTime()) / MILLI_TO_WEEK;\n\t\t\tbreak;\n\n\t\t}\n\t\treturn result;\n\t}", "public double getPreferredConsecutiveHours();", "@Override\n\tpublic int compareTo(Time t) {\n\t\tif (this.getIndex() < t.getIndex())\n\t\t\treturn 1;\n\t\telse if (this.getIndex() == t.getIndex())\n\t\t\treturn 0;\n\t\telse\n\t\t\treturn -1;\n\t}", "private int getDifferenceDays(Date d1, Date d2) {\n int daysdiff = 0;\n long diff = d2.getTime() - d1.getTime();\n long diffDays = diff / (24 * 60 * 60 * 1000) + 1;\n daysdiff = (int) diffDays;\n return daysdiff;\n }", "private int compareTimeSpan(ProcessorDistributionKey key)\n {\n int result = 0;\n result = myTimeSpan.compareTo(key.myTimeSpan);\n\n if (result == 0)\n {\n if (myConstraintKey == null)\n {\n if (key.myConstraintKey != null)\n {\n result = 1;\n }\n }\n else if (key.myConstraintKey == null)\n {\n result = -1;\n }\n else if (!myConstraintKey.equals(key.myConstraintKey))\n {\n result = myConstraintKey.hashCode() - key.myConstraintKey.hashCode();\n\n // Just in case the hash codes are coincident.\n if (result == 0)\n {\n result = System.identityHashCode(myConstraintKey) - System.identityHashCode(key.myConstraintKey);\n }\n }\n }\n\n return result;\n }", "public static int computeDifference(int numOne, int numTwo) {\n\n\n int dif = Math.abs(numOne - numTwo);\n\n switch (dif) {\n\n case 24:\n return 23;\n case 23:\n return 22;\n case 22:\n return 21;\n case 21:\n return 20;\n case 20:\n return 19;\n case 19:\n return 18;\n case 18:\n return 17;\n case 17:\n return 16;\n case 16:\n return 15;\n case 15:\n return 14;\n case 14:\n return 13;\n case 13:\n return 12;\n case 12:\n return 11;\n case 11:\n return 10;\n case 10:\n return 9;\n case 9:\n return 8;\n case 8:\n return 7;\n case 7:\n return 6;\n case 6:\n return 5;\n case 5:\n return 4;\n case 4:\n return 3;\n case 3:\n return 2;\n case 2:\n return 1;\n default:\n return 0;\n }\n }", "public double fineAsToHours(int numOfDays,int h1,int h2,int m1, int m2){\n double fine=0.0;\n int y=0;\n\n //if overdue is minus there is no need to calculate a fine\n if(numOfDays<0){\n fine=0.0;\n }\n\n //if it is 0 if the reader returns book on or before the due hour, again no fine\n //if reader returns book after due hour minutes will be taken in to count\n else if(numOfDays==0){\n if(h2<=h1){\n fine=0.0;\n }\n else{\n //ex:if due=10.30, returnTime=12.20, fine will be charged only for 10.30 to 11.30 period\n //which is returnTime-1-due\n if(m2<m1){\n y=(h2-h1)-1;\n fine=y*0.2;\n }\n //if returnTime=12.45 fine will be charged for 10.30 to 12.45 period\n //which is returnTime-due\n else if(m2>=m1){\n y=h2-h1;\n fine=y*0.2;\n }\n }\n }\n\n //if over due is 3days or less\n else if(numOfDays<=3){\n //ex: due=7th 10.30, returned=9th 9.30\n //finr will be charged for 24h and the extra hours from 8th, and extra hours from 9th\n if(h2<=h1){\n y=((numOfDays-1)*24)+((24-h1)+h2);\n fine=y*0.2;\n }\n else{\n //ex: due=7th 10.30, returned= 9th 12.15\n //total 2*24h will be added. plus, time period frm 9th 10.30 to 11.30\n if(m2<m1){\n y=(numOfDays*24)+((h2-h1)-1);\n fine=y*0.2;\n }\n else if(m2>=m1){\n //returned=9th 12.45\n //total 2*24h, plus 2hours difference from 10.30 to 12.30\n y=(numOfDays*24)+(h2-h1);\n fine=y*0.2;\n }\n }\n\n }\n\n\n //same logic and will multiply the 1st 3 days form 0.2 as to the requirement\n\n else if(numOfDays>3){\n if(h2<=h1){\n y=((numOfDays-4)*24)+((24-h1)+h2);\n fine=(y*0.5)+(24*3*0.2);\n }\n\n else{\n if(m2<m1){\n y=((numOfDays-3)*24)+((h2-h1)-1);\n fine=(y*0.5)+(3*24*0.2);\n }\n\n else if(m2>m1){\n y=((numOfDays-3)*24)+(h2-h1);\n fine=(y*0.5)+(3*24*0.2);\n }\n }\n\n\n }\n\n return fine;\n\n }", "@Override\n public int compareTo(Streak other) {\n return -Integer.compare(value, other.value);\n }", "public int getDifference(DaysBetween dt1, DaysBetween dt2)\n {\n // COUNT TOTAL NUMBER OF DAYS BEFORE FIRST DATE 'dt1'\n \n // initialize count using years and day\n int n1 = dt1.y * 365 + dt1.d;\n \n // Add days for months in given date\n for (int i = 0; i < dt1.m - 1; i++) \n {\n n1 += monthDays[i];\n }\n \n // Since every leap year is of 366 days,\n // Add a day for every leap year\n n1 += countLeapYears(dt1);\n \n // SIMILARLY, COUNT TOTAL NUMBER OF DAYS BEFORE 'dt2'\n int n2 = dt2.y * 365 + dt2.d;\n for (int i = 0; i < dt2.m - 1; i++)\n {\n n2 += monthDays[i];\n }\n n2 += countLeapYears(dt2);\n \n // return difference between two counts\n return (n2 - n1);\n }", "private static int compareDuration(Duration duration1, Duration duration2) {\n return XSDDuration.durationCompare(duration1, duration2);\n }", "@Override\r\n\t\t\tpublic int compare(Entry<Integer, Double> o1, Entry<Integer, Double> o2) {\n\t\t\t\tif ((o1.getValue()-o2.getValue())>0) {\r\n\t\t\t\t\t\r\n\t\t\t\t\treturn 1;\r\n\t\t\t\t} else if ((o1.getValue()-o2.getValue())<0) {\r\n\t\t\t\t\treturn -1;\r\n\t\t\t\t} else {\r\n\t\t\t\t\treturn 0;\r\n\t\t\t\t}\r\n\t\t\t}", "public int compare(Description o1, Description o2) {\n\t\t\tif (isNew(o1))\n\t\t\t\treturn -1;\n\t\t\tif (isNew(o2))\n\t\t\t\treturn 1;\n\t\t\t// Then most recently failed first\n\t\t\tint result= getFailure(o2).compareTo(getFailure(o1)); \n\t\t\treturn result != 0\n\t\t\t\t? result\n\t\t\t\t// Then shorter tests first\n\t\t\t\t: fDurations.get(o1).compareTo(fDurations.get(o2));\n\t\t}", "@Override\n\t\t\tpublic int compare(Interval o1, Interval o2) {\n\t\t\t\treturn o1.start-o2.start;\n\t\t\t}", "public static float diffDate(String timeStart, String timeStop) throws Exception {\n SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT, Locale.ENGLISH);\n Date firstDate = sdf.parse(timeStart);\n Date secondDate = sdf.parse(timeStop);\n long diffInMilliSeconds = Math.abs(secondDate.getTime() - firstDate.getTime());\n return TimeUnit.MINUTES.convert(diffInMilliSeconds, TimeUnit.MILLISECONDS) / 60f;\n }", "@Test\n public void testCompareTo () {\n CountDownTimer s1 = new CountDownTimer(5, 59, 00);\n CountDownTimer s2 = new CountDownTimer(6, 01, 00);\n CountDownTimer s3 = new CountDownTimer(5, 50, 20);\n CountDownTimer s4 = new CountDownTimer(\"5:59:00\");\n\n assertTrue(s2.compareTo(s1) > 0);\n assertTrue(s3.compareTo(s1) < 0);\n assertTrue(s1.compareTo(s4) == 0);\n assertTrue(CountDownTimer.compareTo(s2, s4) > 0);\n assertTrue(CountDownTimer.compareTo(s3, s1) < 0);\n assertTrue(CountDownTimer.compareTo(s1, s4) == 0);\n }", "@Override\n\t\t\tpublic int compare( Entry<Exercice, Integer> o1, Entry<Exercice, Integer> o2 )\n\t\t\t{\n\t\t\t\treturn - o1.getValue().compareTo( o2.getValue() );\n\t\t\t}", "public String getNextTimeFromDayTime(int day,String time){\n \t\tString res = \"00:00:00\";\n //\t\tif(existDayTime(day,time)){\n //\t\t\t// SELECT time FROM time WHERE day = 0 AND ID = 1+(SELECT ID FROM time WHERE day= 0 AND time ='16:00:00')\n //\t\t\tSQLiteDatabase db= this.getReadableDatabase();\n //\t\t\tCursor c = db.rawQuery(\"SELECT time FROM time \" +\n //\t\t\t\t\t\t\t\t \"WHERE day = \"+day+\" \" +\n //\t\t\t\t\t\t\t\t \"AND ID = 1+(SELECT ID \" +\n //\t\t\t\t\t\t\t\t \t\t\t \"FROM time \" +\n //\t\t\t\t\t\t\t\t \t\t\t \"WHERE day=\"+day+\" \" +\n //\t\t\t\t\t\t\t\t \t\t\t \"AND time ='\"+time+\"')\",null);\n //\t\t\tif(c != null){\n //\t\t\t\tc.moveToFirst();\n //\t\t\t\tres = c.getString(0);\n //\t\t\t}\n //\t\t\tdb.close();\n //\t\t\treturn res;\n //\t\t} else {\n \t\t\t// TODO: else Pfad klappt immer, if nicht notwendig!\n \t\t\t// SELECT time FROM time WHERE day = 1 AND time(time) > time('18:00:00')\n \t\t\tLog.v(\"test\",\"DB-Zeit \"+time);\n \t\t\tLog.v(\"test\",\"Tag \"+String.valueOf(day));\n \t\t\tSQLiteDatabase db = this.getReadableDatabase();\n \t\t\tCursor c = db.rawQuery(\"SELECT time FROM time \" +\n \t\t\t\t\t\t\t\t \"WHERE day = \"+day+\" \" +\n \t\t\t\t\t\t\t\t \"AND time(time) > time('\"+time+\"')\",null);\n \t\t\tif(c != null){\n \t\t\t\tc.moveToFirst();\n \t\t\t\tres = c.getString(0);\n\t\t\t} else {\n\t\t\t\t// TODO: als Test, wenn Zeit fr heute nicht mehr vorhanden, nimm nchsten Tag\n\t\t\t\tres = getFirstTimeFromDay((1+day)%7);\n \t\t\t}\n \t\t\t//db.close();\n \t\t\tLog.v(\"test\",String.valueOf(res));\n \t\t\treturn res;\n //\t\t}\n \t}", "@Override\r\n\tpublic int connectingTime() {\r\n\t\tint totalTime = 0;\r\n\t\tfor (int i = 0; i < flights.size()-1; i++) {\r\n\t\t\tString time1 = \"\" + flights.get(i).getData().getArrivalTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time1.length() < 4)\r\n\t\t\t\ttime1 = \"0\" + time1;\r\n\t\t\t\r\n\t\t\tString time2 = \"\" + flights.get(i+1).getData().getDepartureTime();\r\n\t\t\tif (time1.length() < 3)\r\n\t\t\t\ttime1 = \"00\" + time1;\r\n\t\t\tif (time2.length() < 4)\r\n\t\t\t\ttime2 = \"0\" + time2;\r\n\t\t\tSimpleDateFormat format = new SimpleDateFormat(\"HHmm\");\r\n\t\t\tDate date1 = null;\r\n\t\t\tDate date2 = null;\r\n\r\n\t\t\ttry {\r\n\t\t\t\tdate1 = format.parse(time1);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\ttry {\r\n\t\t\t\tdate2 = format.parse(time2);\r\n\t\t\t} catch (ParseException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t\tlong difference = 0;\r\n\t\t\tdifference = date2.getTime() - date1.getTime();\r\n\t\t\tif(difference < 0) {\r\n\t\t\t\tdifference += 24*60*60*1000;\r\n\t\t\t}\r\n\t\t\ttotalTime += difference;\r\n\t\t}\r\n\t\treturn totalTime;\r\n\t}", "public String greaterTime(String time2) {\r\n\r\n\t\tint compare = _time.compareTo(time2);\r\n\r\n\t\tif (compare > 0) {\r\n\t\t\treturn _time;\r\n\t\t}\r\n\r\n\t\telse if (compare < 0) {\r\n\t\t\treturn time2;\r\n\t\t}\r\n\r\n\t\telse {\r\n\t\t\treturn _time; // If both the times are the same, return the first time as the greater time in order for the overlap checking to function properly \r\n\t\t}\r\n\t}", "boolean IFbefore(Date day1, int ID1, Date day2, int ID2){\n if (day1.compareTo(day2) < 0) return true;\n if (day1.compareTo(day2) > 0) return false;\n if (ID1 < ID2) return true;\n return false;\n }", "@Override\r\n\tpublic int compare(Map.Entry<Integer, Integer> o1,\r\n\t\t\tMap.Entry<Integer, Integer> o2) {\n\t\treturn o2.getValue() - o1.getValue();\r\n\t}", "@Override\n public int compareTo(PartialSolution other) {\n if (this.getCostUnderestimate() == other.getCostUnderestimate()) {\n int numTasksThis = 0;\n int numTasksOther = 0;\n for (ScheduledTask task : this) {\n numTasksThis++;\n }\n for (ScheduledTask task : other) {\n numTasksOther++;\n }\n return numTasksOther - numTasksThis;\n }\n return this.getCostUnderestimate() - other.getCostUnderestimate();\n }", "public double getDifference()\n {\n return first - second;\n }", "@Override\n public int compare(Map.Entry<String, Integer> o1,\n Map.Entry<String, Integer> o2) {\n return o1.getValue()-o2.getValue();\n }", "public int compareTo(Calendar anotherCalendar) {\n return cal.compareTo(anotherCalendar);\n }", "private static String getPrettyTimeDiffInMinutes(Calendar c1, Calendar c2) {\n\t\tif (c1.getTimeZone() == null || c2.getTimeZone() == null \n\t\t\t\t|| c1.getTimeZone().getRawOffset() != c2.getTimeZone().getRawOffset()) {\n\t\t\treturn \"N.A.\";\n\t\t}\n\t\telse {\n\t\t\t//Log.d(TAG, \"c2: \" + c2 + \", c1: \" + c1);\n\t\t\tlong diff = c2.getTimeInMillis() - c1.getTimeInMillis();\n\t\t\t\n\t\t\tif (diff / Utils.DAY_SCALE != 0) {\n\t\t\t\treturn \"many days ago\";\n\t\t\t}\n\t\t\telse if (diff / Utils.HOUR_SCALE != 0) {\n\t\t\t\treturn \"many hours ago\";\n\t\t\t}\n\t\t\telse {\n\t\t\t\treturn (diff / Utils.MINUTE_SCALE) + \" min(s) ago\";\n\t\t\t}\n\t\t}\n\t}", "public static int diff(Date date1, Date date2) {\n Calendar c1 = Calendar.getInstance();\n Calendar c2 = Calendar.getInstance();\n\n c1.setTime(date1);\n c2.setTime(date2);\n int diffDay = 0;\n\n if (c1.before(c2)) {\n diffDay = countDiffDay(c1, c2);\n } else {\n diffDay = countDiffDay(c2, c1);\n }\n\n return diffDay;\n }", "public static long substract(Date source, Date target) {\n long t = STARDARD_FROM_TIMEMILLS;\n long sTimeMills = source.getTime() - t;\n long tTimeMills = target.getTime() - t;\n if (sTimeMills < tTimeMills) {\n long temp = sTimeMills;\n sTimeMills = tTimeMills;\n tTimeMills = temp;\n }\n long start = sTimeMills / TIME_MILLS_ONE_DAY;\n long end = tTimeMills / TIME_MILLS_ONE_DAY;\n return start - end;\n }", "public int findMinDifference(List<String> timePoints) {\n List<Integer> p = new ArrayList<>();\n for(String time:timePoints){\n String[] hm = time.split(\":\");\n int h = Integer.parseInt(hm[0]);\n int m = Integer.parseInt(hm[1]);\n p.add(h*60 + m);\n if(h<12){\n p.add((h+24)*60+m);\n }\n }\n int diff = Integer.MAX_VALUE;\n Collections.sort(p);\n for(int i=1; i<p.size(); i++){\n diff = Math.min(p.get(i)-p.get(i-1), diff);\n }\n return diff;\n }", "public static int countDiffDay(Calendar c1, Calendar c2) {\n int returnInt = 0;\n while (!c1.after(c2)) {\n c1.add(Calendar.DAY_OF_MONTH, 1);\n returnInt++;\n }\n\n if (returnInt > 0) {\n returnInt = returnInt - 1;\n }\n\n return (returnInt);\n }", "public void substraiTempo(Tempo tempo2) {\n\t\tint tempo1EmSec = this.horas*3600 + this.minutos*60 + this.segundos;\n\t\tint tempo2EmSec = tempo2.horas*3600 + tempo2.minutos*60 + tempo2.segundos; \n\t\tint resultado = (tempo1EmSec>tempo2EmSec)? tempo1EmSec - tempo2EmSec : tempo2EmSec - tempo1EmSec;\n\t\t\n\t\tif(resultado != 0) { //Verificando se os tempos não são iguais\n\t\t\t//Atribuindo o resultado da substração dos tempos em horas, minutos e segundos.\n\t\t\tthis.horas = resultado / 3600;\n\t\t\tint aux = resultado % 3600;\n\t\t\tthis.minutos = aux / 60;\n\t\t\tthis.segundos = aux % 60;\n\t\t}\n\t}", "static int compare(EpochTimeWindow left, EpochTimeWindow right) {\n long leftValue = left.isEmpty() ? Long.MIN_VALUE : left.getBeginTime();\n long rightValue = right.isEmpty() ? Long.MIN_VALUE : right.getBeginTime();\n\n int result = Long.compare(leftValue, rightValue);\n if (0 != result) {\n return result;\n }\n\n leftValue = left.isEmpty() ? Long.MIN_VALUE : left.getEndTime();\n rightValue = right.isEmpty() ? Long.MIN_VALUE : right.getEndTime();\n\n result = Long.compare(leftValue, rightValue);\n return result;\n }", "@Override\n\tpublic int compareTo(Edge arg0) {\n\t\treturn arg0.time - this.time;\n\t}", "@Override\n\t\t\tpublic int compare(LiveAlarm object1, LiveAlarm object2) {\n\t\t\t\tlong start1 = object1.startT;\n\t\t\t\tlong start2 = object2.startT;\n\t\t\t\t\n\t\t\t\tif (start1 < start2) return -1;\n\t\t\t\tif (start1 == start2) return 0;\n\t\t\t\tif (start1 > start2) return 1;\n\t\t\t\t\n\t\t\t\treturn 0;//to suppress the compiler error;\n\t\t\t}", "private String getTimestampDifference(){\r\n Log.d(TAG, \"getTimestampDifference: getting timestamp difference.\");\r\n\r\n String difference = \"\";\r\n Calendar c = Calendar.getInstance();\r\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\", Locale.UK);\r\n sdf.setTimeZone(TimeZone.getTimeZone(\"Asia/Dubai\"));//google 'android list of timezones'\r\n Date today = c.getTime();\r\n sdf.format(today);\r\n Date timestamp;\r\n\r\n final String photoTimestamp = mJobPhoto.getDate_created();\r\n try{\r\n timestamp = sdf.parse(photoTimestamp);\r\n difference = String.valueOf(Math.round(((today.getTime() - timestamp.getTime()) / 1000 / 60 / 60 / 24 )));\r\n }catch (ParseException e){\r\n Log.e(TAG, \"getTimestampDifference: ParseException: \" + e.getMessage() );\r\n difference = \"0\";\r\n }\r\n return difference;\r\n }", "@Override\n\t\t\tpublic int compare(MyInteger arg0, MyInteger arg1) {\n\t\t\t\treturn arg0.getValue() - arg1.getValue();\n\t\t\t}" ]
[ "0.6641294", "0.63598984", "0.6188271", "0.6029386", "0.6007323", "0.5943239", "0.59247327", "0.5894559", "0.5878421", "0.5785165", "0.57614064", "0.5691455", "0.5592859", "0.5558029", "0.5519357", "0.5508608", "0.55074805", "0.54724455", "0.5436398", "0.53720665", "0.5350563", "0.53053236", "0.5241327", "0.52346873", "0.5229191", "0.5227808", "0.52039975", "0.51902854", "0.51838017", "0.5174965", "0.516001", "0.5141361", "0.51401114", "0.5135013", "0.51085615", "0.5099697", "0.50988007", "0.5096539", "0.5054594", "0.50539094", "0.50530696", "0.50282395", "0.5011039", "0.500522", "0.499107", "0.49909192", "0.4987658", "0.49852657", "0.49769092", "0.49594498", "0.4929617", "0.49223328", "0.48966682", "0.48954773", "0.48856238", "0.48829615", "0.4876057", "0.48691666", "0.48296827", "0.48257822", "0.4823497", "0.48166776", "0.4813875", "0.4810564", "0.47987682", "0.4776123", "0.47580504", "0.4750739", "0.47451043", "0.47447348", "0.4741673", "0.4733911", "0.47235495", "0.47219324", "0.47211307", "0.47151828", "0.4713273", "0.47062334", "0.4704748", "0.47022015", "0.46994376", "0.46885058", "0.46871853", "0.46711844", "0.4667851", "0.4665101", "0.46518558", "0.464598", "0.464178", "0.46331644", "0.4632082", "0.46212566", "0.46182576", "0.46156526", "0.46009335", "0.45953184", "0.45909053", "0.4586118", "0.45821297", "0.45784655" ]
0.77310956
0
Returns value of date
public LocalDate getDate() { return this.date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Date getDate();", "Date getDate();", "Date getDate();", "public java.util.Date getValue() {\n return this.value;\n }", "public String Get_date() \n {\n \n return date;\n }", "java.lang.String getDate();", "String getDate();", "String getDate();", "public final Date dateValue() {\n if (calValue != null)\n return calValue.getTime();\n else\n return null;\n }", "public SSDate getValue() {\n return box.getValue();\n }", "ValuationDate getValuationDate();", "public Date getVALUE_DATE() {\r\n return VALUE_DATE;\r\n }", "public Date getVALUE_DATE() {\r\n return VALUE_DATE;\r\n }", "Date getForDate();", "long getDate();", "public int getDate() {\n return date ;\n }", "public Date getdate() {\n\t\treturn new Date(date.getTime());\n\t}", "public int getDate(){\n return date;\n }", "public int getDate() {\n return date;\n }", "public int getDate() {\n return date;\n }", "public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}", "public String getDate()\r\n\t{\r\n\t\treturn date;\r\n\t}", "public Date getDate(){\n\t\treturn date;\n\t}", "LocalDate getDate();", "public Date getDate()\n\t{\n\t\treturn date;\n\t}", "public String getDate()\n {\n return day + \"/\" + month + \"/\" + year;\n }", "Date getDateField();", "@NotNull\r\n public String getDate() {\r\n return date;\r\n }", "public long getDate() {\n return date;\n }", "public String getDate() {\r\n return date;\r\n }", "public java.util.Date getDate() {\n\t}", "public Date getDate() {\n\t\n\t\treturn date;\n\t\n\t}", "public String getDate() {\n return date;\n }", "public Date getDate() {\r\n return date;\r\n }", "public Date getDate() {\r\n return date;\r\n }", "public Date getDate() {\r\n return date;\r\n }", "public Date getDate()\n {\n return date;\n }", "public int getDate() {\n\t\treturn date;\n\t}", "public Date getDate() {\n return date;\n }", "public String getDate()\n\t\t{\n\t\t\treturn date;\n\t\t}", "public Date date()\n\t{\n\t\treturn this.date;\n\t}", "public long getDate() {\n return date;\n }", "public String getDate() {\r\n\t\treturn date;\r\n\t}", "public Date date (){\r\n\t\t\treturn _date;\r\n\t\t}", "public Date getDate() {\r\n\t\treturn date;\r\n\t}", "public Date getDate() {\r\n\t\treturn date;\r\n\t}", "public String getDate(){\n\t\t\n\t\treturn this.date;\n\t}", "protected synchronized Date getDateValue(String tag) {\n Date date = new Date(0L);\n if (actualProperties != null) {\n long dateTime = Long.decode(actualProperties.getProperty(tag, \"0\"));\n date.setTime(dateTime);\n }\n return date;\n }", "public String getDate() {\n return date;\n }", "public String getDate() {\n return date;\n }", "public String getDate() {\n return date;\n }", "public String getDate() {\n return date;\n }", "public String getDate() {\n return date;\n }", "java.lang.String getToDate();", "public Date getGioBatDau();", "public long getDate() {\n\t\treturn date;\n\t}", "public long getDate() {\n\t\treturn date;\n\t}", "public String getDate() {\n\t\treturn date;\n\t}", "public String getDate() {\n\t\treturn date;\n\t}", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate() {\n return date;\n }", "public Date getDate()\n {\n return this.date;\n }", "public String getDate(){\n return date;\n }", "public Date getDate() {\n\t\treturn date;\n\t}", "public Date getDate() {\n\t\treturn date;\n\t}", "public String getDate() {\r\n\t\treturn this.date;\r\n\t}", "public Date GetDate();", "public java.lang.String getDate() {\n return date;\n }", "public Date getDate() {\r\n\t\treturn this.date;\r\n\t}", "public Date date() {\r\n\t\treturn date;\r\n\t}", "public long getDate()\r\n/* 204: */ {\r\n/* 205:309 */ return getFirstDate(\"Date\");\r\n/* 206: */ }", "public String getdate() {\n\t\treturn date;\n\t}", "public String getDate(){\n return date;\n }", "Date getEDate();", "public String getDate(){\n\n return this.date;\n }", "java.lang.String getFoundingDate();", "public Date getDate() {\n return this.date;\n }", "public String getDate() {\n return this.date;\n }", "public String getDate() {\n return this.date;\n }", "@Override\n public Date getDate() {\n return date;\n }", "public String getDate() {\n\t\treturn this.date;\n\t}", "public Date getDate() {\n\t\treturn date_;\n\t}", "public Date getDate(){\n\t\treturn day.date;\n\t}", "public long getDate() {\n return date_;\n }", "public Date getDate() {\n\t\treturn _date;\n\t}", "public final native int getDate() /*-{\n return this.getDate();\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 String getReturnDate() {\n\t\treturn returnDateElement.getAttribute(\"value\");\n\t}", "public String getDate() {\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n\t\treturn sdf.format(txtDate.getDate());\n\t}" ]
[ "0.77154934", "0.77154934", "0.77154934", "0.758669", "0.7418569", "0.73691404", "0.7350037", "0.7350037", "0.7337949", "0.73032343", "0.7294657", "0.729324", "0.729324", "0.72304255", "0.71639913", "0.71233994", "0.70856726", "0.70700926", "0.70231724", "0.70231724", "0.6997645", "0.6997645", "0.69442827", "0.69293725", "0.6927583", "0.6905702", "0.69000345", "0.68755317", "0.68729204", "0.68675935", "0.68660265", "0.68559223", "0.68556947", "0.68501985", "0.68501985", "0.68501985", "0.68468696", "0.6842531", "0.68424964", "0.68368495", "0.6831562", "0.68280065", "0.6825689", "0.6813686", "0.680795", "0.680795", "0.6802233", "0.6797987", "0.6784118", "0.6784118", "0.6784118", "0.6784118", "0.6784118", "0.6769098", "0.67669094", "0.67644966", "0.67644966", "0.6761455", "0.6761455", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.67610216", "0.6756307", "0.6747711", "0.6747668", "0.6747668", "0.6742835", "0.6737449", "0.67362916", "0.673472", "0.67330444", "0.6732676", "0.6729396", "0.6724439", "0.67090696", "0.66975313", "0.6694224", "0.6693372", "0.6692781", "0.6692781", "0.6690303", "0.66865116", "0.6682006", "0.66742676", "0.6669116", "0.6658753", "0.66360104", "0.663041", "0.6626795", "0.66173476" ]
0.0
-1
Returns value of day
public int getDay() { return this.day; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getDay();", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "@java.lang.Override public int getDayValue() {\n return day_;\n }", "io.dstore.values.TimestampValue getDay();", "public int getDay()\n {\n return day;\n }", "public int getDay() {\r\n return day;\r\n }", "public int getDay() {\n return day;\n }", "public Integer getDay()\n {\n return this.day;\n }", "public int getDay(){\n\t\treturn day;\n\t}", "public int getDay() {\n\treturn day;\n }", "io.dstore.values.TimestampValue getFromDay();", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\r\n\t\treturn (this.day);\r\n\t}", "public int getDay(){\n\t return this.day;\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "public Date getDay() {\r\n return day;\r\n }", "io.dstore.values.StringValue getDay();", "public Date getDay() {\n return day;\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\n return day;\n }", "public byte getDay() {\r\n return day;\r\n }", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "public int getDay() {\n\t\treturn day;\n\t}", "io.dstore.values.TimestampValue getToDay();", "public byte getDay() {\n return day;\n }", "private Date getdDay() {\n\t\treturn this.dDay;\r\n\t}", "public int getDay() {\r\n return FormatUtils.uint8ToInt(mDay);\r\n }", "String getDayofservice();", "public int getDayOrNight() {\n return getStat(dayOrNight);\n }", "public io.dstore.values.TimestampValue getDay() {\n return day_ == null ? io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n }", "public String getDay() {\n return day.getText();\n }", "public String getDay() {\n return this.day;\n }", "public io.dstore.values.TimestampValue getDay() {\n if (dayBuilder_ == null) {\n return day_ == null ? io.dstore.values.TimestampValue.getDefaultInstance() : day_;\n } else {\n return dayBuilder_.getMessage();\n }\n }", "public Date getDate(){\n\t\treturn day.date;\n\t}", "public String getDay() {\n\t\treturn day;\n\t}", "Integer getStartDay();", "public Number getDayDate() {\n return (Number) getAttributeInternal(DAYDATE);\n }", "public double getDayPresent() {\n return dayPresent;\n }", "public java.lang.String getDay()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAY$0, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "@java.lang.Override public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);\n return result == null ? app.onepass.apis.DayOfWeek.UNRECOGNIZED : result;\n }", "@java.lang.Override\n public app.onepass.apis.DayOfWeek getDay() {\n @SuppressWarnings(\"deprecation\")\n app.onepass.apis.DayOfWeek result = app.onepass.apis.DayOfWeek.valueOf(day_);\n return result == null ? app.onepass.apis.DayOfWeek.UNRECOGNIZED : result;\n }", "public int GetDay(){\n\t\treturn this.date.get(Calendar.DAY_OF_WEEK);\n\t}", "public int getCurrentDay() {\n return daysPassed;\n }", "public int getToday() {\n \treturn 0;\n }", "public SSDate getValue() {\n return box.getValue();\n }", "public String getDay() {\n\n\t\treturn day;\n\t}", "private Double[] getDayValue24(DayEM dayEm) {\n\n\t Double[] dayValues = new Double[24];\n\n\t /* OPF-610 정규화 관련 처리로 인한 주석\n\t dayValues[0] = (dayEm.getValue_00() == null ? 0 : dayEm.getValue_00());\n\t dayValues[1] = (dayEm.getValue_01() == null ? 0 : dayEm.getValue_01());\n\t dayValues[2] = (dayEm.getValue_02() == null ? 0 : dayEm.getValue_02());\n\t dayValues[3] = (dayEm.getValue_03() == null ? 0 : dayEm.getValue_03());\n\t dayValues[4] = (dayEm.getValue_04() == null ? 0 : dayEm.getValue_04());\n\t dayValues[5] = (dayEm.getValue_05() == null ? 0 : dayEm.getValue_05());\n\t dayValues[6] = (dayEm.getValue_06() == null ? 0 : dayEm.getValue_06());\n\t dayValues[7] = (dayEm.getValue_07() == null ? 0 : dayEm.getValue_07());\n\t dayValues[8] = (dayEm.getValue_08() == null ? 0 : dayEm.getValue_08());\n\t dayValues[9] = (dayEm.getValue_09() == null ? 0 : dayEm.getValue_09());\n\t dayValues[10] = (dayEm.getValue_10() == null ? 0 : dayEm.getValue_10());\n\t dayValues[11] = (dayEm.getValue_11() == null ? 0 : dayEm.getValue_11());\n\t dayValues[12] = (dayEm.getValue_12() == null ? 0 : dayEm.getValue_12());\n\t dayValues[13] = (dayEm.getValue_13() == null ? 0 : dayEm.getValue_13());\n\t dayValues[14] = (dayEm.getValue_14() == null ? 0 : dayEm.getValue_14());\n\t dayValues[15] = (dayEm.getValue_15() == null ? 0 : dayEm.getValue_15());\n\t dayValues[16] = (dayEm.getValue_16() == null ? 0 : dayEm.getValue_16());\n\t dayValues[17] = (dayEm.getValue_17() == null ? 0 : dayEm.getValue_17());\n\t dayValues[18] = (dayEm.getValue_18() == null ? 0 : dayEm.getValue_18());\n\t dayValues[19] = (dayEm.getValue_19() == null ? 0 : dayEm.getValue_19());\n\t dayValues[20] = (dayEm.getValue_20() == null ? 0 : dayEm.getValue_20());\n\t dayValues[21] = (dayEm.getValue_21() == null ? 0 : dayEm.getValue_21());\n\t dayValues[22] = (dayEm.getValue_22() == null ? 0 : dayEm.getValue_22());\n\t dayValues[23] = (dayEm.getValue_23() == null ? 0 : dayEm.getValue_23());\n\t\t\t*/\n\t \n\t return dayValues;\n\t }", "public int getDay() {\n if (USE_SERIALIZABLE) {\n return childBuilder.getDay();\n } else {\n // @todo Replace with real Builder object if possible\n return convertNullToNOT_SET(childBuilderElement.getAttributeValue(\"day\"));\n }\n }", "public final native int getDay() /*-{\n return this.getDay();\n }-*/;", "public java.lang.String getDay() {\r\n return localDay;\r\n }", "public java.lang.String getDay() {\r\n return localDay;\r\n }", "public io.dstore.values.StringValue getDay() {\n if (dayBuilder_ == null) {\n return day_ == null ? io.dstore.values.StringValue.getDefaultInstance() : day_;\n } else {\n return dayBuilder_.getMessage();\n }\n }", "public io.dstore.values.StringValue getDay() {\n return day_ == null ? io.dstore.values.StringValue.getDefaultInstance() : day_;\n }", "public java.util.Date getValue() {\n return this.value;\n }", "public int getLBR_ProtestDays();", "public static int getTodaysDay() {\t\r\n\t\t\r\n\t\tTime time = new Time();\r\n\t\ttime.setToNow();\r\n\t\treturn time.monthDay;\t\r\n\t\t\r\n\t}", "public static String DiaActual(){\n java.util.Date fecha = new Date();\n int dia = fecha.getDay();\n String myDia=null;\n switch (dia){\n case 1:\n myDia=\"LUNES\";\n break;\n case 2:\n myDia=\"MARTES\";\n break;\n case 3:\n myDia=\"MIERCOLES\";\n break;\n case 4:\n myDia=\"JUEVES\";\n break;\n case 5:\n myDia=\"VIERNES\";\n break;\n case 6:\n myDia=\"SABADO\";\n break;\n case 7:\n myDia=\"DOMINGO\";\n break; \n }\n return myDia;\n }", "public final Date dateValue() {\n if (calValue != null)\n return calValue.getTime();\n else\n return null;\n }", "ValuationDate getValuationDate();", "Date getDate();", "Date getDate();", "Date getDate();", "public int getDay()\n\t{\n\t\treturn this.dayOfMonth;\n\t}", "Date getForDate();", "long getDate();", "public static long getDayNumber() {\n return getSecondsSinceEpoch() / SECS_TO_DAYS;\n }", "Integer getEndDay();", "public BigDecimal getCheckDay() {\n return checkDay;\n }", "public String getValueFromDay(Student student){\n monday = studentDAO.getValueFromDay(student, \"monday\");\n tuesday = studentDAO.getValueFromDay(student, \"tuesday\");\n wednesday = studentDAO.getValueFromDay(student, \"wednesday\");\n thursday = studentDAO.getValueFromDay(student, \"thursday\");\n friday = studentDAO.getValueFromDay(student, \"friday\");\n int largest = Math.max(monday,Math.max(tuesday,Math.max(wednesday,Math.max(thursday,friday))));\n if (largest == monday){\n return \"Monday\";\n } else if (largest == tuesday) {\n return \"Tuesday\";\n } else if (largest == wednesday){\n return \"Wednesday\";\n } else if (largest == thursday){\n return \"Thursday\";\n } else if (largest == friday){\n return \"Friday\";\n } else {\n return \"No absence, ggwp ;)\";\n }\n }", "private Date getDataFine() {\n return (Date)this.getCampo(DialogoStatistiche.nomeDataFine).getValore();\n }", "int getSchedulingValue();", "public int getMday() {\n return mday;\n }", "public Integer getPresentDays()\r\n/* 48: */ {\r\n/* 49:51 */ return this.presentDays;\r\n/* 50: */ }", "public int getDateDay(int columnIndex) {\n DateDayVector vector = (DateDayVector) table.getVector(columnIndex);\n return vector.get(rowNumber);\n }", "io.dstore.values.TimestampValueOrBuilder getDayOrBuilder();", "public static int getCurrentDay()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.DATE);\n\t}", "public Day getDay(int dayVal) {\n int startDay = (dayVal + this.start) % 7; // calculate remainder taking into account start day\n return Day.fromValue(startDay);\n }", "private Day getDay(int day, int month) {\n return mainForm.getDay(day, month);\n }", "Double getValue();", "static int getDay(byte[] bytes) {\n return readBits(bytes, DAY_POS, DAY_BITS);\n }", "public int determineDayRandomly() {\n\t\treturn 0;\r\n\t}", "static double userOnDay(final float rate, final int day) {\n return Math.pow(rate, day);\n }", "public Date getGioBatDau();", "public int getDate(){\n return date;\n }", "public int valoreGiornoSettimana(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tcal.setTimeZone(italia);\n\t\tcal.setTime(new Date());\n\t\treturn cal.get(Calendar.DAY_OF_WEEK);\n\t}", "Date getStartDay();", "public int getDate() {\n return date ;\n }", "boolean getDayNull();", "public Date getVALUE_DATE() {\r\n return VALUE_DATE;\r\n }", "public Date getVALUE_DATE() {\r\n return VALUE_DATE;\r\n }", "double getValue();", "double getValue();", "double getValue();" ]
[ "0.7703517", "0.7619068", "0.7612617", "0.74303216", "0.7366842", "0.7302915", "0.72836494", "0.72330236", "0.7188198", "0.7176261", "0.71518964", "0.7076442", "0.70754576", "0.70377696", "0.7035885", "0.7035885", "0.7035885", "0.7035885", "0.7035885", "0.69888014", "0.69805354", "0.6956647", "0.69414204", "0.69414204", "0.69414204", "0.6941029", "0.693808", "0.693808", "0.693808", "0.68897134", "0.68865407", "0.6880612", "0.68014383", "0.6671941", "0.66575974", "0.6630942", "0.66019994", "0.65995145", "0.659916", "0.65849924", "0.6536219", "0.6518016", "0.6497975", "0.6459513", "0.6458059", "0.645187", "0.64398885", "0.64086884", "0.640854", "0.64068633", "0.6372256", "0.6371045", "0.6347371", "0.63397056", "0.6315398", "0.6305845", "0.6305845", "0.62892044", "0.62634456", "0.6252887", "0.62479204", "0.6231314", "0.622877", "0.62056834", "0.6197951", "0.6170075", "0.6170075", "0.6170075", "0.61544824", "0.6154227", "0.61416763", "0.61147755", "0.6094584", "0.6065592", "0.60548735", "0.60280806", "0.6027218", "0.6016006", "0.60141504", "0.6010308", "0.59986365", "0.5979662", "0.59790045", "0.597443", "0.5970514", "0.59597284", "0.5957889", "0.5954326", "0.59336585", "0.59161633", "0.59156007", "0.5904774", "0.5900816", "0.5899525", "0.58981323", "0.58981323", "0.589657", "0.589657", "0.589657" ]
0.68498856
33
Returns value of hour
public int getHour() { return this.hour; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getHour();", "public int getHour()\n {\n return hour;\n }", "public int getHour() { return this.hour; }", "public int getHour() \n { \n return hour; \n }", "public Integer getHour() {\n return hour;\n }", "Integer getStartHour();", "public double getHour() {\n\t\treturn this.hour;\n\t}", "public int getHour(){\n return hour;\n }", "public Integer getHour() {\n\t\treturn hour;\n\t}", "public int getHour() {\n return dateTime.getHour();\n }", "public int getHour() {\n\t\treturn hour;\n\t}", "public int getHour() {\n\t\treturn hour;\n\t}", "private int getHour() {\n\t\tString time = getPersistedString(this.defaultValue);\n\t\tif (time == null || !time.matches(VALIDATION_EXPRESSION)) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn Integer.valueOf(time.split(\":|/\")[0]);\n\t}", "public int getHour() {\n\t\tthis.hour = this.total % 12;\n\t\treturn this.hour;\n\t}", "Integer getEndHour();", "@Override\r\n\tpublic int getHH() {\n\t\treturn HH;\r\n\t}", "public String getHours();", "float hour() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n case SOUTH_4M:\n case SOUTH_16M:\n return 0f;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * At 10h33m, Orion is about to set in the west and the\n * Pointers of the Big Dipper are near the meridian.\n */\n return 10.55f;\n }\n throw new IllegalStateException();\n }", "public int hourOfDay() {\r\n\t\treturn mC.get(Calendar.HOUR_OF_DAY);\r\n\t}", "public int getHour() {\n return hour; // returns the appointment's hour in military time\n }", "public double getHours() {\r\n return hours;\r\n }", "public double getHours() {\r\n return hours;\r\n }", "public int getHours(){\n return (int) totalSeconds/3600;\n }", "public int getHours() {\r\n return FormatUtils.uint8ToInt(mHours);\r\n }", "public int getStartHour() {\n return startHour; // stub\n }", "private int getHours() {\n //-----------------------------------------------------------\n //Preconditions: none.\n //Postconditions: returns the value for the data field hours.\n //-----------------------------------------------------------\n\n return this.hours;\n\n }", "public String calculateHour() {\n\t\tString hora;\n\t\tString min;\n\t\tString seg;\n\t\tString message;\n\t\tCalendar calendario = new GregorianCalendar();\n\t\tDate horaActual = new Date();\n\t\tcalendario.setTime(horaActual);\n\n\t\thora = calendario.get(Calendar.HOUR_OF_DAY) > 9 ? \"\" + calendario.get(Calendar.HOUR_OF_DAY)\n\t\t\t\t: \"0\" + calendario.get(Calendar.HOUR_OF_DAY);\n\t\tmin = calendario.get(Calendar.MINUTE) > 9 ? \"\" + calendario.get(Calendar.MINUTE)\n\t\t\t\t: \"0\" + calendario.get(Calendar.MINUTE);\n\t\tseg = calendario.get(Calendar.SECOND) > 9 ? \"\" + calendario.get(Calendar.SECOND)\n\t\t\t\t: \"0\" + calendario.get(Calendar.SECOND);\n\n\t\tmessage = hora + \":\" + min + \":\" + seg;\n\t\treturn message;\n\n\t}", "public long getElapsedTimeHour() {\n return running ? ((((System.currentTimeMillis() - startTime) / 1000) / 60 ) / 60) : 0;\n }", "public int getStartHour() {\n\treturn start.getHour();\n }", "public double getHours(){\n return hours;\n }", "public final flipsParser.hour_return hour() throws RecognitionException {\n flipsParser.hour_return retval = new flipsParser.hour_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token char_literal374=null;\n Token string_literal375=null;\n Token string_literal376=null;\n Token string_literal377=null;\n Token string_literal378=null;\n\n CommonTree char_literal374_tree=null;\n CommonTree string_literal375_tree=null;\n CommonTree string_literal376_tree=null;\n CommonTree string_literal377_tree=null;\n CommonTree string_literal378_tree=null;\n RewriteRuleTokenStream stream_250=new RewriteRuleTokenStream(adaptor,\"token 250\");\n RewriteRuleTokenStream stream_251=new RewriteRuleTokenStream(adaptor,\"token 251\");\n RewriteRuleTokenStream stream_252=new RewriteRuleTokenStream(adaptor,\"token 252\");\n RewriteRuleTokenStream stream_249=new RewriteRuleTokenStream(adaptor,\"token 249\");\n RewriteRuleTokenStream stream_253=new RewriteRuleTokenStream(adaptor,\"token 253\");\n\n try {\n // flips.g:559:2: ( ( 'h' | 'hr' | 'hrs' | 'hour' | 'hours' ) -> HOUR )\n // flips.g:559:4: ( 'h' | 'hr' | 'hrs' | 'hour' | 'hours' )\n {\n // flips.g:559:4: ( 'h' | 'hr' | 'hrs' | 'hour' | 'hours' )\n int alt143=5;\n switch ( input.LA(1) ) {\n case 249:\n {\n alt143=1;\n }\n break;\n case 250:\n {\n alt143=2;\n }\n break;\n case 251:\n {\n alt143=3;\n }\n break;\n case 252:\n {\n alt143=4;\n }\n break;\n case 253:\n {\n alt143=5;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 143, 0, input);\n\n throw nvae;\n }\n\n switch (alt143) {\n case 1 :\n // flips.g:559:5: 'h'\n {\n char_literal374=(Token)match(input,249,FOLLOW_249_in_hour3249); \n stream_249.add(char_literal374);\n\n\n }\n break;\n case 2 :\n // flips.g:559:9: 'hr'\n {\n string_literal375=(Token)match(input,250,FOLLOW_250_in_hour3251); \n stream_250.add(string_literal375);\n\n\n }\n break;\n case 3 :\n // flips.g:559:14: 'hrs'\n {\n string_literal376=(Token)match(input,251,FOLLOW_251_in_hour3253); \n stream_251.add(string_literal376);\n\n\n }\n break;\n case 4 :\n // flips.g:559:20: 'hour'\n {\n string_literal377=(Token)match(input,252,FOLLOW_252_in_hour3255); \n stream_252.add(string_literal377);\n\n\n }\n break;\n case 5 :\n // flips.g:559:27: 'hours'\n {\n string_literal378=(Token)match(input,253,FOLLOW_253_in_hour3257); \n stream_253.add(string_literal378);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 560:2: -> HOUR\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(HOUR, \"HOUR\"));\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public final native int getHours() /*-{\n return this.getHours();\n }-*/;", "public int getHours() {\n return this.hours;\n }", "public int getEndHour() {\n\treturn end.getHour();// s\n }", "public String getHourActualStart() {\n return hourStartInput.getAttribute(\"value\");\n }", "public static int getHourOfTime(long time){\n \t//time-=59999;\n \tint retHour=0;\n \tlong edittime=time;\n \twhile (edittime>=60*60*1000){\n \t\tedittime=edittime-60*60*1000;\n \t\tretHour++;\n \t}\n \tretHour = retHour % 12;\n \tif (retHour==0){ retHour=12; }\n \treturn retHour;\n }", "public int getLogHour(int index)\n {\n return m_Log.get(index).getHour();\n }", "private String getHours() {\n StringBuilder hoursSB = new StringBuilder();\n\n if (hours > 0) {\n hoursSB.append(hours);\n } else {\n hoursSB.append(\"0\");\n }\n\n return hoursSB.toString();\n }", "public int getHour() {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.getHour():int, dex: in method: gov.nist.javax.sip.header.SIPDate.getHour():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.getHour():int\");\n }", "public void sethourNeed(Integer h){hourNeed=h;}", "public int getIntervalHours();", "public String getCurrentHours() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public int getHourFraction()\n {\n return (int)Math.floor(hours);\n }", "@java.lang.Override\n public int getStartHour() {\n return startHour_;\n }", "public int[] getHours() {\n return hours;\n }", "public double getPerHour() {\r\n return perHour;\r\n }", "@java.lang.Override\n public int getStartHour() {\n return startHour_;\n }", "Long getTemperatureForLastHour();", "private static int getHours(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(0)) * 10) + Character.getNumericValue(time.charAt(1));\n\t}", "static int getHour(byte[] bytes) {\n if (HOUR_POS < bytes.length * 8) {\n return readBits(bytes, HOUR_POS, HOUR_BITS);\n }\n return 0;\n }", "public static int getCurrentHour()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.HOUR_OF_DAY);\n\t}", "public static SimpleDateFormat getHourFormat() {\n return new SimpleDateFormat(\"HH:mm\");\n }", "public int generateHour() {\n Random random = new Random();\n int hour = random.nextInt(8);\n\n return hour;\n }", "public String getFullHour()\n {\n\n String str = \"\";\n\n if (hour < 10)\n {\n str += \"0\";\n }\n str += hour + \":\";\n\n if (minute < 10)\n {\n str += \"0\";\n }\n str += minute;\n\n return str;\n }", "public String getHora() {\n Calendar calendario = new GregorianCalendar();\n SimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n return sdf.format(calendario.getTime());\n }", "public Integer getMaxHour() {\r\n return maxHour;\r\n }", "public int getHour() {\n/* 60 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public int[] getHours() {\n int[] hoursArray = {this.hours, this.overtimeHours};\n return hoursArray;\n }", "public double totalHours(){\n return (this._startingHour - this._endingHour);\n }", "public void setHour(Pair<Double, Double> value) {\r\n\t\thour = value;\r\n\t}", "public int getHoursOfCurrentTime() {\n SimpleDateFormat formatter = new SimpleDateFormat(\"HH\", Locale.getDefault());\n Date curTime = new Date(System.currentTimeMillis());\n return Integer.parseInt(formatter.format(curTime));\n }", "public String getHourActualEnd() {\n return hourEndInput.getAttribute(\"value\");\n }", "public void setHour(Integer hour) {\n this.hour = hour;\n }", "public int getFinishHour() {\n return finishHour;\n }", "protected static int getHour(String dateTime) {\n return Integer.parseInt(dateTime.substring(7, 9));\n }", "public void setHour(int hour)\n {\n this.hour = hour;\n }", "public String displayHours() {\n String hrs=day+\" Hours: \" +getStartHours()+ \" to \"+get_endingHour();\n return hrs;\n }", "public float getHourHeight() {\n return config.hourHeight;\n }", "public void setHour(int nHour) { m_nTimeHour = nHour; }", "public static final long getTicksPerHour() {\n return p().TICKS_PER_RLHOUR;\n }", "private LocalDateTime getStartHour() {\n\t\treturn MoneroHourly.toLocalDateTime(startTimestamp);\r\n\t}", "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }", "public String toString() {\n return hour+\" \"+minute;\r\n }", "public double getPriceperhour() {\n return priceperhour;\n }", "static long getHoursPart(Duration d) {\n long u = (d.getSeconds() / 60 / 60) % 24;\n\n return u;\n }", "public String getCurrentTimeHourMin() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "private static String intToHour(int intHour) {\r\n\t\tswitch (intHour) {\r\n\t\tcase 1:\r\n\t\t\treturn \"6am\";\r\n\t\tcase 2:\r\n\t\t\treturn \"7am\";\r\n\t\tcase 3:\r\n\t\t\treturn \"8am\";\r\n\t\tcase 4:\r\n\t\t\treturn \"9am\";\r\n\r\n\t\tcase 5:\r\n\t\t\treturn \"10am\";\r\n\r\n\t\tcase 6:\r\n\t\t\treturn \"11am\";\r\n\r\n\t\tcase 7:\r\n\t\t\treturn \"12pm\";\r\n\r\n\t\tcase 8:\r\n\t\t\treturn \"1pm\";\r\n\r\n\t\tcase 9:\r\n\t\t\treturn \"2pm\";\r\n\r\n\t\tcase 10:\r\n\t\t\treturn \"3pm\";\r\n\r\n\t\tcase 11:\r\n\t\t\treturn \"4pm\";\r\n\r\n\t\tcase 12:\r\n\t\t\treturn \"5pm\";\r\n\r\n\t\tcase 13:\r\n\t\t\treturn \"6pm\";\r\n\r\n\t\tcase 14:\r\n\t\t\treturn \"7pm\";\r\n\r\n\t\tcase 15:\r\n\t\t\treturn \"8pm\";\r\n\t\tdefault:\r\n\t\t\treturn \"\";\r\n\t\t}// end switch\r\n\t}", "@DISPID(53)\r\n\t// = 0x35. The runtime will prefer the VTID if present\r\n\t@VTID(51)\r\n\tint actualCPUTime_Hours();", "public int getUpHours() {\n return (int)((_uptime % 86400000) / 3600000);\n }", "private KilometersPerHour() {}", "public String getDateHourRepresentation()\n\t{\n\t\tchar[] charArr = new char[13];\n\t\tcharArr[2] = charArr[5] = charArr[10] = '/';\n\t\tint day = m_day;\n\t\tint month = m_month;\n\t\tint year = m_year;\n\t\tint hour = m_hour;\n\t\tfor(int i = 0; i < 2; i++)\n\t\t{\n\t\t\tcharArr[1 - i] = Character.forDigit(day % 10, 10);\n\t\t\tcharArr[4 - i] = Character.forDigit(month % 10, 10);\n\t\t\tcharArr[12 - i] = Character.forDigit(hour % 10, 10);\n\t\t\tday /= 10;\n\t\t\tmonth /= 10;\n\t\t\thour /=10;\n \t\t}\n\t\tfor(int i = 0; i < 4; i++)\n\t\t{\n\t\t\tcharArr[9 - i] = Character.forDigit(year % 10, 10);\n\t\t\tyear /= 10;\n\t\t}\n\t\treturn new String(charArr);\n\t}", "public String dar_hora(){\n Date date = new Date();\n DateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n return dateFormat.format(date).toString();\n }", "public static double hoursSpent()\r\n {\r\n double howlong = 24.0;\r\n return howlong;\r\n }", "public int getMinHours() {\r\n return minHours;\r\n }", "public double getHourAngle(Coordinates c, long time) throws AstrometryException;", "public String getTime() {\n boolean pastNoon = hour >= 12;\n if(pastNoon && hour == 12) {\n return hour + \"pm\";\n }\n else if(pastNoon) {\n return (hour - 12) + \"pm\";\n }\n else if(hour == 0) {\n return \"12am\";\n }\n else {\n return hour + \"am\";\n }\n }", "public String getHoraInicial(){\r\n return fechaInicial.get(Calendar.HOUR_OF_DAY)+\":\"+fechaInicial.get(Calendar.MINUTE);\r\n }", "@Override\n public String onHourChange(long hour) {\n return null;\n }", "public void setHour(int hour) {\n\t\tthis.hour = hour;\n\t}", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "public int minuteOfHour() {\r\n\t\treturn mC.get(Calendar.MINUTE);\r\n\t}", "@java.lang.Override\n public int getFinishHour() {\n return finishHour_;\n }", "public double getPreferredConsecutiveHours();", "public int getHora(){\n return minutosStamina;\n }", "@java.lang.Override\n public int getFinishHour() {\n return finishHour_;\n }", "public Time4 setHour( int hour ) \r\n { \r\n this.hour = ( hour >= 0 && hour < 24 ? hour : 0 ); \r\n\r\n return this; // enables chaining\r\n }", "public double getFirstVisibleHour() {\n return (config.drawingConfig.currentOrigin.y * -1) / config.hourHeight;\n }", "public static final Function<Date,Date> setHour(final int value) {\r\n return new Set(Calendar.HOUR, value);\r\n }", "public String getCurrentTimeHourMinSec() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "Integer getMinute();" ]
[ "0.8526235", "0.8096326", "0.79681075", "0.7946046", "0.79192895", "0.78852826", "0.7879227", "0.7861208", "0.7839138", "0.7786073", "0.7779137", "0.7779137", "0.7717212", "0.7550141", "0.7450477", "0.73981476", "0.73873025", "0.7325455", "0.73076135", "0.7285622", "0.72849196", "0.72849196", "0.72115743", "0.7193886", "0.71590376", "0.70418847", "0.7022617", "0.702096", "0.6994726", "0.69870967", "0.69671464", "0.69464463", "0.69310504", "0.6844943", "0.68156606", "0.6760959", "0.67218477", "0.6660647", "0.6650657", "0.66416717", "0.66408855", "0.66239756", "0.66062486", "0.6602086", "0.6595126", "0.6566205", "0.655818", "0.6548631", "0.6543633", "0.65328485", "0.6524742", "0.64754605", "0.64628446", "0.6454588", "0.6440907", "0.64380544", "0.64341414", "0.6424279", "0.63981396", "0.63861626", "0.63444376", "0.63442165", "0.6324618", "0.63132626", "0.6300549", "0.6271191", "0.626818", "0.62511504", "0.6236449", "0.62285435", "0.6211953", "0.6175897", "0.61547077", "0.6122998", "0.61065084", "0.606949", "0.60562885", "0.60427594", "0.6030704", "0.6020909", "0.6017363", "0.6013697", "0.5998461", "0.5994909", "0.59411716", "0.59354377", "0.5930011", "0.589948", "0.5895545", "0.589149", "0.58850735", "0.58847994", "0.5871956", "0.5862525", "0.58569884", "0.58562136", "0.5842895", "0.5838811", "0.5836535", "0.58236164" ]
0.7685178
13
Returns value of minute
public int getMinute() { return this.minute; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Integer getMinute();", "public int getMinute() {\n return minute;\n }", "public int getMinute()\n {\n return minute;\n }", "public int getMinute() {\n return minute;\n }", "public int getMinute() { return this.minute; }", "public int getMinute() {\n\t\treturn minute;\n\t}", "public int getMinute() {\n return dateTime.getMinute();\n }", "private int getMinute() {\n\t\tString time = getPersistedString(this.defaultValue);\n\t\tif (time == null || !time.matches(VALIDATION_EXPRESSION)) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn Integer.valueOf(time.split(\":|/\")[1]);\n\t}", "public int minuteOfHour() {\r\n\t\treturn mC.get(Calendar.MINUTE);\r\n\t}", "public double getMinutes() {\n\t\tdouble v = value * (180.0d / Math.PI);\n\t\tv -= getDegrees();\n\t\treturn 60 * v; // 60 minutes in one degree.\n\t}", "public int getMinutes(){\n return (int) ((totalSeconds%3600)/60);\n }", "public String getMinutes();", "public int getMinutes() {\n return this.minutes;\n }", "public int getStartMinute() {\n\treturn start.getMinute();\n }", "public final flipsParser.minute_return minute() throws RecognitionException {\n flipsParser.minute_return retval = new flipsParser.minute_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal379=null;\n Token string_literal380=null;\n Token string_literal381=null;\n Token string_literal382=null;\n\n CommonTree string_literal379_tree=null;\n CommonTree string_literal380_tree=null;\n CommonTree string_literal381_tree=null;\n CommonTree string_literal382_tree=null;\n RewriteRuleTokenStream stream_257=new RewriteRuleTokenStream(adaptor,\"token 257\");\n RewriteRuleTokenStream stream_254=new RewriteRuleTokenStream(adaptor,\"token 254\");\n RewriteRuleTokenStream stream_256=new RewriteRuleTokenStream(adaptor,\"token 256\");\n RewriteRuleTokenStream stream_255=new RewriteRuleTokenStream(adaptor,\"token 255\");\n\n try {\n // flips.g:564:2: ( ( 'min' | 'mins' | 'minute' | 'minutes' ) -> MINUTE )\n // flips.g:564:4: ( 'min' | 'mins' | 'minute' | 'minutes' )\n {\n // flips.g:564:4: ( 'min' | 'mins' | 'minute' | 'minutes' )\n int alt144=4;\n switch ( input.LA(1) ) {\n case 254:\n {\n alt144=1;\n }\n break;\n case 255:\n {\n alt144=2;\n }\n break;\n case 256:\n {\n alt144=3;\n }\n break;\n case 257:\n {\n alt144=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 144, 0, input);\n\n throw nvae;\n }\n\n switch (alt144) {\n case 1 :\n // flips.g:564:5: 'min'\n {\n string_literal379=(Token)match(input,254,FOLLOW_254_in_minute3275); \n stream_254.add(string_literal379);\n\n\n }\n break;\n case 2 :\n // flips.g:564:11: 'mins'\n {\n string_literal380=(Token)match(input,255,FOLLOW_255_in_minute3277); \n stream_255.add(string_literal380);\n\n\n }\n break;\n case 3 :\n // flips.g:564:18: 'minute'\n {\n string_literal381=(Token)match(input,256,FOLLOW_256_in_minute3279); \n stream_256.add(string_literal381);\n\n\n }\n break;\n case 4 :\n // flips.g:564:27: 'minutes'\n {\n string_literal382=(Token)match(input,257,FOLLOW_257_in_minute3281); \n stream_257.add(string_literal382);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 565:2: -> MINUTE\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(MINUTE, \"MINUTE\"));\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "public Date getTimestampMinute() {\n\treturn timestampMinute;\n }", "public int getMinutes(){\r\n return Minutes;\r\n }", "public int getMinutes() {\n\t\treturn minutes;\n\t}", "public void setMinute(int value) {\n this.minute = value;\n }", "public int getStartMinute() {\n return startMinute;\n }", "public void setMinute(int value) {\n this.minute = value;\n }", "public static int getCurrentMinute()\n\t{\n\t\treturn Calendar.getInstance().get(Calendar.MINUTE);\n\t}", "@Contract(pure = true)\n\tpublic int getSecondsFromMinute() {\n\t\treturn (getSeconds() - getMinutes() * 60);\n\t}", "public int getMinutes() {\r\n return FormatUtils.uint8ToInt(mMinutes);\r\n }", "@Contract(pure = true)\n\tpublic int getMinutes() {\n\t\treturn getSeconds() / 60;\n\t}", "public final native int getMinutes() /*-{\n return this.getMinutes();\n }-*/;", "static long getMinutesPart(Duration d) {\n long u = (d.getSeconds() / 60) % 60;\n\n return u;\n }", "private String getMinutes() {\n StringBuilder minutesSB = new StringBuilder();\n\n if (minutes > 0) {\n if (String.valueOf(minutes).length() < 2) {\n minutesSB.append(\"0\");\n }\n minutesSB.append(minutes);\n } else {\n minutesSB.append(\"0\");\n }\n\n return minutesSB.toString();\n }", "public int getLogMinute(int index)\n {\n return m_Log.get(index).getMinute();\n }", "public int[] getMinutes() {\n return minutes;\n }", "public static int getMinuteOfTime(long time){\n \t//time-=59999;\n \tif (time==0) { return 0; }\n \tint retMin=0;\n \tlong editMin = time % (60 * 60 * 1000) ;\n \tint oneMin = 1000 * 60;\n \twhile ((retMin*oneMin) < (editMin - 59999)){\n \t\tretMin++;\n \t}\n \treturn retMin;\n }", "public final native double setMinutes(int minutes) /*-{\n this.setMinutes(minutes);\n return this.getTime();\n }-*/;", "public Number getMinutesPerDay()\r\n {\r\n return (m_minutesPerDay);\r\n }", "public int getLaMinutes() {\n return laMinutes;\n }", "public static final long getTicksPerMinute() {\n return p().TICKS_PER_RLMIN;\n }", "public int getMinute() {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e3 in method: gov.nist.javax.sip.header.SIPDate.getMinute():int, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.getMinute():int\");\n }", "public Integer getMinTime() {\n return minTime;\n }", "public int getMinuteFraction()\n {\n return (((int)(hours*100.0)%100)*60)/100;\n }", "public void setMinute(int minute)\n {\n this.minute = minute;\n }", "public final native double setMinutes(int minutes, int seconds, int millis) /*-{\n this.setMinutes(minutes, seconds, millis);\n return this.getTime();\n }-*/;", "public Time4 setMinute( int minute ) \r\n { \r\n this.minute = \r\n ( minute >= 0 && minute < 60 ) ? minute : 0;\r\n\r\n return this; // enables chaining\r\n }", "public int getIntervalMinutes();", "public final native double setMinutes(int minutes, int seconds) /*-{\n this.setMinutes(minutes, seconds);\n return this.getTime();\n }-*/;", "public int getLoMinutes() {\n return loMinutes;\n }", "static int getMinute(byte[] bytes) {\n if (MINUTE_POS < bytes.length * 8) {\n return readBits(bytes, MINUTE_POS, MINUTE_BITS);\n }\n return 0;\n }", "private static int getMinutes(String time) {\n\t\treturn (Character.getNumericValue(time.charAt(3)) * 10) + Character.getNumericValue(time.charAt(4));\n\t}", "public String getTime(){\n String mt=\"\";\n String hr=\"\";\n if(minute<10){\n mt=0+(String.valueOf(minute));\n }\n\n else{\n mt=String.valueOf(minute);\n }\n\n if(hour<10){\n hr=0+(String.valueOf(hour));\n }\n else{\n hr=String.valueOf(hour);\n }\n //return hour:minute\n return (hr+\":\"+mt);\n }", "public String getCurrentMinutes() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "public void setMinute(int nMinute) { m_nTimeMin = nMinute; }", "public final double getMinTime() {\n\t\treturn minTime;\n\t}", "protected String mo3406c() {\n return \"Minute\";\n }", "protected static int getMinute(String dateTime) {\n return Integer.parseInt(dateTime.substring(9, 11));\n }", "public int timeToMinute (int time){\n\t\tif (time<100){\n\t\t\treturn time;\n\t\t}\n\t\telse {\n\t\t\tint hour = time/100;\n\t\t\tint min = time %100;\n\t\t\treturn hour*60 + min;\n\t\t}\n\t\t\n\t}", "public int getEndMinute() {\n\treturn end.getMinute();\n }", "public int parseTimeForMinute(String time)\n\t{\n\t\ttry {\n\t\t\tDate date = new SimpleDateFormat(\"hh:mma\", Locale.ENGLISH).parse(time);\n\t\t\t\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\tint minute = date.getMinutes();\n\t\t\treturn minute;\n\t\t} catch (ParseException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn -1;\t\n\t}", "public SpinnerNumberModel getMinutesModel() {\n\treturn this.minutesModel;\n }", "public void setMinute(int minute) {\n\t\tthis.minute = minute;\n\t}", "public MyTime nextMinute(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\t\t\n\t\tif (minute!=59){\n\t\t\tminute++;\n\t\t}\n\t\telse{\n\t\t\tminute = 0;\n\t\t\tif (hours!=23){\n\t\t\t\thour++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thour = 0;\n\t\t\t}\n\t\t\n\t\t}\n\t\n\t\t\n\t\treturn new MyTime(hour,minute,second);\n\t}", "public double getMon6059() {\r\n\t\treturn mon6059;\r\n\t}", "private String getMinutesInTime(int time) {\n String hour = String.valueOf(time / 60);\n String minutes = String.valueOf(time % 60);\n\n if(minutes.length() < 2) {\n minutes = \"0\" + minutes;\n }\n\n return hour + \":\" + minutes;\n\n }", "public int getFinishMinute() {\n return finishMinute;\n }", "private int secToMin(int sec){\n return sec/60;\n }", "public int getMinute() {\n/* 79 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private static String minuteInWord(final int minute) {\n\t\tif( minute == 0 ) {\n\t\t\treturn \"o' clock\";\n\t\t}else if(minute == 15 || minute == 30) {\n\t\t\treturn getFromNumber(minute).getWord();\n\t\t} else {\n\t\t\treturn getFromNumber(minute).getWord() + (minute > 1 ? \" minutes\" : \" minute\");\n\t\t}\n\t}", "protected int convertToMinutes() {\n\t\treturn this.getMinutes() + (this.getHours() * 60);\n\t}", "public String getMinutesStr(){\n \n // return zero\n if (this.getMinutes()==0){\n return \"00\";\n }\n // pad single digit with zero\n else if (this.getMinutes() < 10){\n return '0' + Integer.toString(this.getMinutes()); \n }\n // return double digit\n else {\n return Integer.toString(this.getMinutes());\n }\n\n }", "public long getMinTime()\n {\n return times[0];\n }", "public void setMinute(int minute) \n { \n if (minute < 0 || minute >= 60)\n throw new IllegalArgumentException(\"minute must be 0-59\");\n\n this.minute = minute; \n }", "public static Double convertSecondToMinute(final Object seconds) {\n final Double sec = ProcessData.getDouble(seconds);\n if (ProcessData.isValid(sec)) {\n return new Double(sec / 60);\n }\n return 0D;\n }", "public void setMinutes(int minutes) {\n this.minutes = minutes;\n }", "public static DateTime floorToMinute(DateTime value) {\n if (value == null) {\n return null;\n }\n return new DateTime(value.getYear(), value.getMonthOfYear(), value.getDayOfMonth(), value.getHourOfDay(), value.getMinuteOfHour(), 0, 0, value.getZone());\n }", "public Time( int minutes ) {\n this.minutes = minutes;\n }", "private double convertSecondsToMinutes(int seconds) {\r\n int sec = seconds;\r\n int min = 0;\r\n while (sec > 60) {\r\n sec -= 60;\r\n min++;\r\n }\r\n return Double.valueOf(min + \".\" + sec);\r\n }", "public int getDurationMinutes() {\n return durationMinutes;\n }", "public long getMinutesAsleep() {\n return minutesAsleep;\n }", "public List<Integer> getByMinute() {\n\t\treturn byMinute;\n\t}", "public static int convert(int minutes) {\n return minutes * 60;\n }", "@Override\n\tpublic void get_time_int(ShortHolder heure, ShortHolder min) {\n\t\t\n\t}", "private int convertProgressToMinutes(int progress) {\n return progress * MINUTE_PER_PROGRESS;\n }", "public String getCurrentTimeHourMin() {\n\t\t\t\t// DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\n\t\t\t\t// need to change after the date format is decided\n\t\t\t\tDateFormat dateFormat = new SimpleDateFormat(\"HH:mm\");\n\t\t\t\tDate date = new Date();\n\t\t\t\treturn dateFormat.format(date);\n\t\t\t}", "@Test public void shouldGive60MinFor150cent() {\r\n // First hour: $1.5\r\n assertEquals( 60 /*minutes*/, rs.calculateTime(150) ); \r\n }", "public int getSecond() {\n return dateTime.getSecond();\n }", "@Deprecated\n/* */ @RecentlyNonNull\n/* */ public Integer getCurrentMinute() {\n/* 115 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setMinutes(String minutes) {\n this.minutes = parseMinutes(minutes);\n }", "public String toString() {\n return hour+\" \"+minute;\r\n }", "@DISPID(54)\r\n\t// = 0x36. The runtime will prefer the VTID if present\r\n\t@VTID(52)\r\n\tint actualCPUTime_Minutes();", "private String readableTime(Integer minutes) {\r\n String time = \"\";\r\n if (minutes / 60.0 > 1) {\r\n time = (minutes / 60) + \" hrs, \"\r\n + (minutes % 60) + \" min\";\r\n } else {\r\n time = minutes + \" min\";\r\n }\r\n return time;\r\n }", "public DateTimeFormatterBuilder appendSecondOfMinute(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.secondOfMinute(), minDigits, 2);\r\n }", "public long getElapsedMinutes() {\n\t\tlong elapsed;\n\t\tif (running) {\n\t\t\telapsed = (System.nanoTime() - startTime);\n\t\t} else {\n\t\t\telapsed = (stopTime - startTime);\n\t\t}\n\t\treturn elapsed / nsPerMm;\n\t}", "public static String getHHMM()\r\n/* 74: */ {\r\n/* 75: 94 */ String nowTime = \"\";\r\n/* 76: 95 */ Date now = new Date();\r\n/* 77: 96 */ SimpleDateFormat formatter = new SimpleDateFormat(\"HH:mm\");\r\n/* 78: 97 */ nowTime = formatter.format(now);\r\n/* 79: 98 */ return nowTime;\r\n/* 80: */ }", "public DateTimeFormatterBuilder appendMinuteOfHour(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.minuteOfHour(), minDigits, 2);\r\n }", "@Override\r\n\tpublic int getPlayTimeSeconds() {\r\n\t\treturn this.minutes * 60 + this.seconds;\r\n\t}", "public DateTimeFormatterBuilder appendMinuteOfDay(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.minuteOfDay(), minDigits, 4);\r\n }", "public Number getMinutesPerWeek()\r\n {\r\n return m_minutesPerWeek;\r\n }", "public static final Function<Date,Date> setMinute(final int value) {\r\n return new Set(Calendar.MINUTE, value);\r\n }", "public final native int getUTCMinutes() /*-{\n return this.getUTCMinutes();\n }-*/;", "@Test\n public void floorToMinute() throws Exception {\n DateTime dt0 = new DateTime(2009,6,24,23,30,30,789,DateTimeZone.forID(\"America/Los_Angeles\"));\n\n //\n // floor to nearest minute\n //\n DateTime dt1 = DateTimeUtil.floorToMinute(dt0);\n\n Assert.assertEquals(2009, dt1.getYear());\n Assert.assertEquals(6, dt1.getMonthOfYear());\n Assert.assertEquals(24, dt1.getDayOfMonth());\n Assert.assertEquals(23, dt1.getHourOfDay());\n Assert.assertEquals(30, dt1.getMinuteOfHour());\n Assert.assertEquals(0, dt1.getSecondOfMinute());\n Assert.assertEquals(0, dt1.getMillisOfSecond());\n Assert.assertEquals(DateTimeZone.forID(\"America/Los_Angeles\"), dt1.getZone());\n\n //\n // floor null\n //\n DateTime dt2 = DateTimeUtil.floorToMinute(null);\n Assert.assertNull(dt2);\n }", "public double getMon60310() {\r\n\t\treturn mon60310;\r\n\t}", "public int getTempoMili() {\n return tempoMili;\n }", "public double getMon6055() {\r\n\t\treturn mon6055;\r\n\t}" ]
[ "0.8432913", "0.8220267", "0.82194746", "0.8208407", "0.81881243", "0.7917632", "0.79104954", "0.7690177", "0.761984", "0.7581677", "0.747282", "0.7373096", "0.73335505", "0.73245335", "0.73159367", "0.72970194", "0.729479", "0.72390944", "0.7231989", "0.72256213", "0.7204126", "0.71497077", "0.70993316", "0.7094615", "0.7042546", "0.68566096", "0.6690154", "0.6647343", "0.6641701", "0.6636647", "0.6613677", "0.6609546", "0.66077036", "0.66033363", "0.6578681", "0.6562518", "0.65548974", "0.65518415", "0.6498649", "0.64873475", "0.6481775", "0.6459148", "0.6458436", "0.6442259", "0.6354774", "0.6345942", "0.6344371", "0.6342078", "0.6334833", "0.6333687", "0.6316479", "0.629209", "0.62829036", "0.6247111", "0.62012047", "0.61857975", "0.6179966", "0.61408895", "0.6133759", "0.6133188", "0.6112047", "0.6088627", "0.60786426", "0.6068434", "0.6063552", "0.6044479", "0.60361665", "0.6035987", "0.60173947", "0.59808415", "0.595607", "0.59486264", "0.59482235", "0.59429854", "0.59356636", "0.5923404", "0.589941", "0.58614475", "0.5861104", "0.5860233", "0.5852712", "0.5847447", "0.5841105", "0.5828444", "0.58112544", "0.57857347", "0.576678", "0.5755678", "0.57503736", "0.57418376", "0.57330656", "0.57115203", "0.5687754", "0.5687629", "0.56869286", "0.5686755", "0.5680889", "0.56801283", "0.5664049", "0.56415445" ]
0.78290325
7
Sets new value of date
public void setDate(LocalDate date) { this.date = date; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void setDate(Date data);", "public void setValue(java.util.Date value) {\n this.value = value;\n }", "public void SetDate(Date date);", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "public void setDate(Date date) {\n\t\n\t\tthis.date = date;\n\t\n\t}", "public void setDate(Date date) {\r\n this.date = date;\r\n }", "public void setValue(SSDate value) {\n box.setValue(value);\n }", "public void setDate(long value) {\n this.date = value;\n }", "public void setDate(Date newDate) {\n this.currentDate = newDate;\n }", "public void setDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "public void updateDate(Date date);", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n Logger.d(TAG, \"The date is null\");\n }\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(Date date) {\n this.date = date;\n }", "public void setDate(int dt) {\n date = dt;\n }", "public void setDate(java.util.Calendar value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "public void setDate() {\n this.date = new Date();\n }", "void setDate(java.lang.String date);", "void setDate(int index, Date value) throws SQLException;", "public void setDate(Date date) {\n mDate = date;\n }", "public void setServiceDate(java.util.Date value);", "public void setDate(DateTime \n date) {\n this.date = date;\n }", "public void setDate(int date){\n this.date = date;\n }", "public void setDate(java.util.Date param){\n \n this.localDate=param;\n \n\n }", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setDate(Date date) {\n\t\tthis.date = date;\n\t}", "public void setData (Date date) {\r\n\t\tthis.data=date;\r\n\t\t\r\n\t}", "public void setDate(Date date) {\n\t\t\n\t\tdate_ = date;\n\t}", "public void setDate(final Date date) {\n this.date = date;\n }", "void setDate(int index, Date value, Calendar cal)\n throws SQLException;", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setDate(String parName, Date parVal) throws HibException;", "public void setDate(Date date) {\n\t\tthis._date = date;\n\t}", "public void setDate(Date date) {\r\n \t\tthis.startDate = date;\r\n \t}", "private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}", "public void setDate(Date date) {\n if (date != null) {\n this.mDate = (Date) date.clone();\n } else {\n this.mDate = null;\n }\n }", "public void setInputDateValue(String value){\n WebElement hiredateField = driver.findElement(hiredateLocator); \n \n setValue(hiredateField, value);\n \n }", "public void setDate(long date)\r\n/* 199: */ {\r\n/* 200:299 */ setDate(\"Date\", date);\r\n/* 201: */ }", "public static void setDate( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "public void setDatetest( java.sql.Date newValue ) {\n __setCache(\"datetest\", newValue);\n }", "public void setDate(long date) {\r\n\t\tthis.date = new Date(date);\r\n\t}", "public void setDate(Calendar date) {\n\tthis.date = date;\n }", "public void setDate(Calendar date)\n {\n this.date = date;\n }", "public final void setDate(LocalDate date) {\n dateProperty().set(date);\n }", "public void setDateassemb( java.sql.Date newValue ) {\n __setCache(\"dateassemb\", newValue);\n }", "public void updateDate()\n\t{\n\t\t// Translate year, month and day into a Date object.\n\t\tmDate = new GregorianCalendar(mYear, mMonth, mDay, mHour, mMin).getTime();\n\t\t\n\t\t// Update arguments to preserve selected value on rotation.\n\t\tgetArguments().putSerializable(CrimeFragment.EXTRA_DATE, mDate);\n\t}", "public Builder setDate(long value) {\n bitField0_ |= 0x00000002;\n date_ = value;\n onChanged();\n return this;\n }", "public void setDate(Date date) {\n setDate(date, null);\n }", "void setCreateDate(Date date);", "void setBirthDate(Date birthDate);", "public static void setDate(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.util.Calendar value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "public abstract void setDate(Timestamp uneDate);", "public void setDate(String date){\n this.date = date;\n }", "public void setARRIVAL_AT_LOC_DATE(java.sql.Date value)\n {\n if ((__ARRIVAL_AT_LOC_DATE == null) != (value == null) || (value != null && ! value.equals(__ARRIVAL_AT_LOC_DATE)))\n {\n _isDirty = true;\n }\n __ARRIVAL_AT_LOC_DATE = value;\n }", "public void setToDate(Date toDate)\r\n/* 33: */ {\r\n/* 34:39 */ this.toDate = toDate;\r\n/* 35: */ }", "public void updateBDate() {\n bDate = new Date();\n }", "private void setDate() {\n Date date = new Date();\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n datetxt2.setText(sdf.format(date));\n }", "public void setCreateDate(java.util.Date newVal) {\n if ((newVal != null && this.createDate != null && (newVal.compareTo(this.createDate) == 0)) || \n (newVal == null && this.createDate == null && createDate_is_initialized)) {\n return; \n } \n try {\n this.createDate = (java.util.Date)newVal.clone();\n } catch (Exception e) {\n // do nothing\n }\n\n createDate_is_modified = true; \n createDate_is_initialized = true; \n }", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "public void setDate(String newDate)\n\t{\n\t\tthis.date = newDate;\n\t}", "public void setDateOfExamination(java.util.Date param){\n \n this.localDateOfExamination=param;\n \n\n }", "@Test\r\n\tpublic void testSetDate() {\n\t\tfail(\"Not yet implemented\");\r\n\t}", "public void setDateTime(Date date)\n\t{\n\t\tint nHour, nMin;\n\n\t\tCalendar cal = Calendar.getInstance(); //Get calender\n\t\tcal.setTime(date); //Set given date\n\t\tnHour = cal.get(Calendar.HOUR_OF_DAY);\n\t\tnMin = cal.get(Calendar.MINUTE);\n\n\t\tsetDateTime(nHour, nMin, date);\n\t}", "public void setStartDate(java.util.Date value);", "abstract public void setServiceAppointment(Date serviceAppointment);", "public void setDatepr( java.sql.Date newValue ) {\n __setCache(\"datepr\", newValue);\n }", "void setUpdatedDate(Date updatedDate);", "public void setDate(Calendar date) {\r\n\t\tthis.date = date;\r\n\t}", "public void setStartDate(Date s);", "public void setDate (String s) {\n date = s;\n }", "public void setEditDate(Date editDate)\r\n/* */ {\r\n/* 193 */ this.editDate = editDate;\r\n/* */ }", "@Override\n public void setDate(Date value, Calendar cal) throws SQLException {\n if (value == null) {\n setNull();\n return;\n }\n\n setDate(getDatatypeCoder().encodeDate(value, cal));\n }", "public void setDate(long date) {\n\t\tthis.date = date;\n\t}", "public void setDate(java.util.Calendar date) {\n this.date = date;\n }", "public void setDate(java.util.Calendar date) {\n this.date = date;\n }", "public void setDate(String date){\n this.date = date;\n }", "protected synchronized void setDateValue(String tag, Date date) {\n if (actualProperties != null) {\n long dateTime = date.getTime();\n actualProperties.put(tag, Long.toString(dateTime));\n }\n }", "public void setDateTime(@NonNull final Calendar date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(DatePicker.class.getName())))\n .perform(PickerActions.setDate(date.get(Calendar.YEAR), date.get(Calendar.MONTH) + 1, date.get(Calendar.DAY_OF_MONTH)));\n new Dialog().confirmDialog();\n onView(withClassName(equalTo(TimePicker.class.getName())))\n .perform(PickerActions.setTime(date.get(Calendar.HOUR_OF_DAY), date.get(Calendar.MINUTE)));\n new Dialog().confirmDialog();\n }", "public void setPickerDate(@NonNull final LocalDateTime date) {\n onView(viewMatcher).perform(click());\n onView(withClassName(equalTo(DatePicker.class.getName())))\n .perform(PickerActions.setDate(date.getYear(), date.getMonth().getValue(), date.getDayOfMonth()));\n new Dialog().confirmDialog();\n }", "public void setDueDate(Date d){dueDate = d;}", "public com.luisjrz96.streaming.birthsgenerator.models.BirthInfo.Builder setDate(long value) {\n validate(fields()[5], value);\n this.date = value;\n fieldSetFlags()[5] = true;\n return this;\n }", "public void setDate(String date) {\r\n this.date = date;\r\n }", "public void setBirthday(Date birthday);", "public void setRequestDate(Date requestDate);", "public void setBudgetDate(Date value) {\n setAttributeInternal(BUDGETDATE, value);\n }", "public void testGetSetDate() {\n exp = new Experiment(\"10\");\n Date date = new Date();\n exp.setDate(date);\n assertEquals(\"get/setDate does not work\", date, exp.getDate());\n }", "private String setDate() {\n SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd\");\n return sdf.format(new Date());\n }", "public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }", "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 }" ]
[ "0.8374569", "0.8066164", "0.8052985", "0.7668812", "0.7595603", "0.75379854", "0.7533389", "0.75242406", "0.7523191", "0.7477651", "0.7469257", "0.7464658", "0.7454969", "0.7454969", "0.7454969", "0.74484575", "0.7446039", "0.7446039", "0.7446039", "0.7446039", "0.7446039", "0.7446039", "0.7446039", "0.7446039", "0.7446039", "0.7413162", "0.7403339", "0.73982584", "0.7348107", "0.7346833", "0.7344998", "0.7329745", "0.73286766", "0.73209393", "0.73181635", "0.7277978", "0.7277978", "0.7277978", "0.7277237", "0.72717303", "0.72669464", "0.7237596", "0.72309196", "0.72216696", "0.72153723", "0.7199966", "0.71955264", "0.7193586", "0.71588695", "0.71428895", "0.71241647", "0.7080278", "0.7079966", "0.70715165", "0.7052175", "0.70507365", "0.7041989", "0.7033129", "0.70275116", "0.7010627", "0.7005364", "0.7002805", "0.69849324", "0.69837976", "0.69760793", "0.69741637", "0.6949164", "0.6948617", "0.6944891", "0.69324094", "0.6928479", "0.6926168", "0.6924351", "0.69221085", "0.6917691", "0.6915763", "0.6912877", "0.69080687", "0.6899646", "0.68978137", "0.6888929", "0.68769455", "0.68762475", "0.6869663", "0.6868881", "0.68682444", "0.68682444", "0.6861318", "0.68564445", "0.68459463", "0.6824047", "0.6814316", "0.68102586", "0.6809571", "0.67993087", "0.67873865", "0.67780566", "0.6769302", "0.67675924", "0.6759679", "0.67483443" ]
0.0
-1
Sets new value of day
public void setDay(int day) { this.day = day; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\r\n this.day = day;\r\n }", "public void setDay(Date day) {\n this.day = day;\n }", "public void updateDay(int value)\n {\n this.currentCalendar.add(Calendar.DAY_OF_MONTH, value);\n }", "public void setDay(int day) {\r\n this.day = day;\r\n }", "public void setDay(int day)\n {\n this.day = day;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\n this.day = value;\n }", "public void setDay(byte value) {\r\n this.day = value;\r\n }", "public void setDay(byte value) {\n this.day = value;\n }", "private void setCurrentDay() {\n Calendar c = Calendar.getInstance();\n\n year = c.get(Calendar.YEAR);\n month = c.get(Calendar.MONTH);\n day = c.get(Calendar.DAY_OF_MONTH);\n hour = c.get(Calendar.HOUR_OF_DAY);\n minute = c.get(Calendar.MINUTE);\n }", "public void setDay(int day) {\n if(day < 1 || day > 31) {\n this.day = 1;\n } else {\n this.day = day;\n }\n\n if(month == 2 && this.day > 29) {\n this.day = 29;\n } else if((month==4 || month==6 || month==8 || month==11) && this.day > 30) {\n this.day = 30;\n }\n }", "void setDate(Date data);", "public Builder setDayValue(int value) {\n \n day_ = value;\n onChanged();\n return this;\n }", "public void setValue(java.util.Date value) {\n this.value = value;\n }", "public void setDay(final int day) {\n\t\tthis.day = day;\n\t}", "public void setDay(int day) {\r\n if ((day >= 1) && (day <= 31)) {\r\n this.day = day; //Validate day if true set else throws an exception\r\n } else {\r\n throw new IllegalArgumentException(\"Invalid Day!\");\r\n }\r\n\r\n }", "public void setDay(java.lang.String day)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DAY$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DAY$0);\n }\n target.setStringValue(day);\n }\n }", "public void setDay(final short day) {\r\n\t\tthis.day = day;\r\n\t}", "void setDayOrNight(int day) {\n setStat(day, dayOrNight);\n }", "public void setValue(SSDate value) {\n box.setValue(value);\n }", "public boolean setDay(int newDay) {\n\t\tthis.day = newDay;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType);\n\t\treturn true;\n\t}", "@Override\n\t\t\tpublic void setValue(Date value) {\n\t\t\t\tsuper.setValue(value);\n\t\t\t\tstart_cal_date = value.getTime();\n\t\t\t\tinfo_loader.load();\n\t\t\t}", "public void setDayDate(Number value) {\n setAttributeInternal(DAYDATE, value);\n }", "public void xsetDay(org.apache.xmlbeans.XmlString day)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlString target = null;\n target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(DAY$0, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(DAY$0);\n }\n target.set(day);\n }\n }", "public void setDay(int day)\r\n {\n \tif (!(day <= daysInMonth(month) || (day < 1)))\r\n\t\t{\r\n \t\tthrow new IllegalArgumentException(\"Bad day: \" + day);\r\n\t\t}\r\n this.day = day;\r\n }", "@JsonSetter(\"joiningDay\")\n public void setJoiningDay (Days value) { \n this.joiningDay = value;\n notifyObservers(this.joiningDay);\n }", "public void setDay(Day day, int dayNum) {\n\t\tif (dayNum <= days.length) {\n\t\t\tdays[dayNum - 1] = day;\n\t\t}\n\t}", "public void setDay(java.lang.String param) {\r\n localDayTracker = param != null;\r\n\r\n this.localDay = param;\r\n }", "public void setDay(java.lang.String param) {\r\n localDayTracker = param != null;\r\n\r\n this.localDay = param;\r\n }", "public void setDate(int day,int month,int year){\n this.day=day;\n this.month=month;\n this.year=year;\n }", "public boolean setDay(int value) {\r\n if (!FormatUtils.uint8RangeCheck(value)) {\r\n return false;\r\n }\r\n mDay = FormatUtils.intToUint8(value);\r\n updateGattCharacteristic();\r\n return true;\r\n }", "public void setMday(int value) {\n this.mday = value;\n }", "public void setInputDateValue(String value){\n WebElement hiredateField = driver.findElement(hiredateLocator); \n \n setValue(hiredateField, value);\n \n }", "public void setDay(int day) throws InvalidDateException {\r\n\t\tif (day <= 31 & day >= 1) {\r\n\t\t\tthis.day = day;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic day for the date (between 1 and 31) !\");\r\n\t\t}\r\n\t}", "public void setCalendarDay(int day)\n {\n this.currentCalendar.set(Calendar.DAY_OF_MONTH, day);\n }", "public void setDay(int year, int month, int day) {\n cal = Calendar.getInstance();\n cal.set(year, month, day);\n }", "private void changeNextDay(){\n\t\tplanet.getClimate().nextDay();\n\t}", "public boolean setDay(int newDay, boolean check) {\n\t\tthis.day = newDay;\n\t\tdeltatIsValid = false;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType); // ->\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// erzeugt\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// JD\n\t\tif (check) {\n\t\t\tdouble oldYear = this.year;\n\t\t\tdouble oldMonth = this.month;\n\t\t\tIDate dt = swe_revjul(this.jd, this.calType); // -> erzeugt neues\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Datum\n\t\t\tthis.year = dt.year;\n\t\t\tthis.month = dt.month;\n\t\t\tthis.day = dt.day;\n\t\t\tthis.hour = dt.hour;\n\t\t\treturn (this.year == oldYear && this.month == oldMonth && this.day == newDay);\n\t\t}\n\t\treturn true;\n\t}", "public void setDate(java.util.Calendar value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "private Day(int value) {\r\n\t\tthis.value = value;\r\n\t}", "public void updateDate(Date date);", "public void setDate( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), DATE, value);\r\n\t}", "private void setValue(long date, double value) {\n\t\tLong longDate = new Long(date);\n\t\tDouble v = (Double) values.get(longDate);\n\t\tif (v != null) // if already present, add to it\n\t\t\tv = new Double(v.doubleValue() + value);\n\t\telse\n\t\t\tv = new Double(value);\n\t\tvalues.put(longDate,v);\n\t}", "public static void setDate(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.util.Calendar value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "public void setDate(int dt) {\n date = dt;\n }", "public void SetDate(Date date);", "void setDate(int index, Date value, Calendar cal)\n throws SQLException;", "public void setDay(int year, int month, int day)\n\t{\n\t\t m_calendar.set(year,month-1,day);\n\n\t}", "private void setCurrentDate(Date date)\n {\n date.setTime(System.currentTimeMillis());\n }", "public void setOne(int day, int hour, Integer newValue) {\r\n weekData[day][hour] = newValue;\r\n }", "public static void setDate( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, DATE, value);\r\n\t}", "void setDate(int index, Date value) throws SQLException;", "abstract public void setServiceAppointment(Date serviceAppointment);", "public void setDate(long value) {\n this.date = value;\n }", "String updateDay(String userName, Day day);", "@Override\n\tprotected void setNextSiegeDate()\n\t{\n\t\tif(_siegeDate.getTimeInMillis() < Calendar.getInstance().getTimeInMillis())\n\t\t{\n\t\t\t_siegeDate = Calendar.getInstance();\n\t\t\t// Осада не чаще, чем каждые 4 часа + 1 час на подготовку.\n\t\t\tif(Calendar.getInstance().getTimeInMillis() - getSiegeUnit().getLastSiegeDate() * 1000L > 14400000)\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 1);\n\t\t\telse\n\t\t\t{\n\t\t\t\t_siegeDate.setTimeInMillis(getSiegeUnit().getLastSiegeDate() * 1000L);\n\t\t\t\t_siegeDate.add(Calendar.HOUR_OF_DAY, 5);\n\t\t\t}\n\t\t\t_database.saveSiegeDate();\n\t\t}\n\t}", "public void updateChangedDate(int year, int month, int day);", "public void setDay(String day) {\n\n\t\tthis.day = day;\n\t}", "void updateChangedDate(int year, int month, int day);", "public void setBirthday(Date birthday);", "public void setDate(int month, int day) {\r\n this.month = month;\r\n this.day = day;\r\n }", "private void setDay() {\n Boolean result = false;\n for (int i = 0; i < 7; ++i) {\n if(mAlarmDetails.getRepeatingDay(i))\n result = true;\n mAlarmDetails.setRepeatingDay(i, mAlarmDetails.getRepeatingDay(i));\n }\n if(!result)\n mAlarmDetails.setRepeatingDay((Calendar.getInstance().get(Calendar.DAY_OF_WEEK) - 1), true);\n }", "public void setDate(Date newDate) {\n this.currentDate = newDate;\n }", "public void setDate(int day, int month, int year, int hour, int minute) // Maybe\n\n {\n this.day = day;\n this.month = month;\n this.year = year;\n this.hour = hour;\n this.minute = minute;\n }", "void setDaytime(boolean daytime);", "public void setValue(SSDate value, boolean fireEvents) {\n box.setValue(value, fireEvents);\n }", "public void setDate(int month, int day) {\r\n\t\tString dayString = \"\";\r\n\t\tif(day < 10)\r\n\t\t{\r\n\t\t\tfor(int i = 0; i < 10; i++)\r\n\t\t\t{\r\n\t\t\t\tif(day == i)\r\n\t\t\t\t{\r\n\t\t\t\t\tdayString = \"0\" + i;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.date = month + \"-\" + dayString;\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tthis.date = month + \"-\" + day;\r\n\t\t}\r\n\t}", "private void setDate() {\n\t\tthis.date = Integer.parseInt(this.year + String.format(\"%02d\", this.calenderWeek));\n\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n currentDate.set(year, monthOfYear, dayOfMonth);\n updateLabel();\n }", "public void setDay(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.setDay(int):void, dex: in method: gov.nist.javax.sip.header.SIPDate.setDay(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setDay(int):void\");\n }", "public void setServiceDate(java.util.Date value);", "public void setDay(Calendar cal) {\n this.cal = (Calendar) cal.clone();\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 setDailyValues(){\n //set updateTime\n SimpleDateFormat t = new SimpleDateFormat(\"h:mm:ss a\");\n updatedTime = \"Last updated: \" + t.format(new Date(System.currentTimeMillis()));\n \n //set maxTemp and minTemp\n maxTemp = Integer.toString(weather.getMaxTemp());\n minTemp = Integer.toString(weather.getMinTemp());\n \n //set sunriseTime and sunsetTime\n SimpleDateFormat sr = new SimpleDateFormat(\"h:mm a\");\n sunriseTime = sr.format(new Date(weather.getSunrise()*1000));\n SimpleDateFormat ss = new SimpleDateFormat(\"h:mm a\");\n sunsetTime = sr.format(new Date(weather.getSunset()*1000));\n }", "public void setValue(double newvalue){\n value = newvalue;\n }", "public void setCalDay() {\n\t\tfloat goal_bmr;\n\t\tif(gender==\"male\") {\n\t\t\tgoal_bmr= (float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age + 5);\n\t\t}\n\t\telse {\n\t\t\tgoal_bmr=(float) (10 * (weight+loseGainPerWeek) + 6.25 * height - 5 * age - 161);\n\t\t}\n\t\tswitch (gymFrequency) {\n\t\tcase 0:calDay = goal_bmr*1.2;\n\t\t\t\tbreak;\n\t\tcase 1:\n\t\tcase 2:\n\t\tcase 3:calDay = goal_bmr*1.375;\n\t\t\t\tbreak;\n\t\tcase 4:\n\t\tcase 5:calDay = goal_bmr*1.55;\n\t\t\n\t\t\t\tbreak;\n\t\tcase 6:\n\t\tcase 7:calDay = goal_bmr*1.725;\n\t\t\t\tbreak;\n\t\t}\n\t}", "public void setDate(int date){\n this.date = date;\n }", "public abstract void setDate(Timestamp uneDate);", "@Override\n public Date set(final int index, final Date value) {\n final long date = value.getTime();\n final Date previous = get(index);\n switch (index) {\n case 0: date1 = date; break;\n case 1: date2 = date; break;\n }\n modCount++;\n return previous;\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n DateEdit.setText(day + \"/\" + (month + 1) + \"/\" + year);\n }", "public void onDateSet(DatePicker view, int year, int month, int day) {\n DateEdit.setText(day + \"/\" + (month + 1) + \"/\" + year);\n }", "public void setCurrentDate(String d) {\n currentDate = d;\n }", "public Builder setDay(\n io.dstore.values.TimestampValue.Builder builderForValue) {\n if (dayBuilder_ == null) {\n day_ = builderForValue.build();\n onChanged();\n } else {\n dayBuilder_.setMessage(builderForValue.build());\n }\n\n return this;\n }", "protected void setDateTime(LocalDateTime date) {\n updateDateTime(date);\n //isWeekly = true;\n }", "public void setData (Date date) {\r\n\t\tthis.data=date;\r\n\t\t\r\n\t}", "@Override\n public void onDateSet(DatePicker view, int year, int monthOfYear,\n int dayOfMonth) {\n myCalendar.set(Calendar.YEAR, year);\n myCalendar.set(Calendar.MONTH, monthOfYear);\n myCalendar.set(Calendar.DAY_OF_MONTH, dayOfMonth);\n updateDays();\n }", "public void setDate(String parName, Date parVal) throws HibException;", "public Builder setDay(app.onepass.apis.DayOfWeek value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n day_ = value.getNumber();\n onChanged();\n return this;\n }", "public void setFechaFacturado(java.util.Calendar param){\n \n this.localFechaFacturado=param;\n \n\n }", "public static final Function<Date,Date> setDay(final int value) {\r\n return new Set(Calendar.DATE, value);\r\n }", "public void updateDate()\n\t{\n\t\t// Translate year, month and day into a Date object.\n\t\tmDate = new GregorianCalendar(mYear, mMonth, mDay, mHour, mMin).getTime();\n\t\t\n\t\t// Update arguments to preserve selected value on rotation.\n\t\tgetArguments().putSerializable(CrimeFragment.EXTRA_DATE, mDate);\n\t}", "@Override\n\tprotected void setDate() {\n\n\t}", "public void setGregorianChange(int year, int month, int day) {\n\t\tthis.year = year;\n\t\tthis.month = month;\n\t\tthis.day = day;\n\t\tdeltatIsValid = false;\n\t\tthis.calType = SE_GREG_CAL;\n\t\tif (this.year < year || (this.year == year && this.month < month)\n\t\t\t\t|| (this.year == year && this.month == month && this.day < day)) {\n\t\t\tthis.calType = SE_JUL_CAL;\n\t\t}\n\t\tthis.jdCO = swe_julday(year, month, day, 0., SE_GREG_CAL);\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType);\n\t}" ]
[ "0.7448509", "0.7448509", "0.7448509", "0.7448509", "0.7448509", "0.7387934", "0.73325866", "0.7303752", "0.72569835", "0.72040766", "0.71901697", "0.71901697", "0.71901697", "0.7183511", "0.7171456", "0.70335954", "0.6994333", "0.6979366", "0.6979103", "0.697014", "0.69433385", "0.6934311", "0.6927547", "0.69020313", "0.6882679", "0.6846592", "0.6827535", "0.6822274", "0.6800672", "0.6799571", "0.6772186", "0.66952735", "0.6670289", "0.66653025", "0.66653025", "0.66583955", "0.6645298", "0.6641467", "0.6640025", "0.66280645", "0.6627017", "0.6622625", "0.6618277", "0.6616343", "0.6606486", "0.6601651", "0.6599144", "0.6598137", "0.65435696", "0.651252", "0.65109736", "0.65086347", "0.6506717", "0.650654", "0.6505354", "0.64969414", "0.64921457", "0.6467947", "0.64279497", "0.64040625", "0.6358648", "0.6355477", "0.6355265", "0.63093156", "0.6303226", "0.6299745", "0.6291319", "0.6290071", "0.62668556", "0.61918306", "0.61891913", "0.6188583", "0.61848533", "0.6167719", "0.61498356", "0.6146762", "0.61326075", "0.6132171", "0.61238915", "0.61130667", "0.61044216", "0.6089612", "0.6073956", "0.6063762", "0.60631174", "0.60579723", "0.60579723", "0.6050309", "0.60343885", "0.6029927", "0.6025671", "0.6024592", "0.60204434", "0.60137665", "0.6013465", "0.60032773", "0.59985036", "0.59932786", "0.5991367" ]
0.70201313
16
Sets new value of hour
public void setHour(int hour) { this.hour = hour; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setHour(Pair<Double, Double> value) {\r\n\t\thour = value;\r\n\t}", "public void setHour(int newHour) {\n hour = newHour; // sets the appointment's hour to the input in military time\n }", "public void setHour(int nHour) { m_nTimeHour = nHour; }", "public void setHour(int hour)\n {\n this.hour = hour;\n }", "public void setHour(int hour){\n if(hour < 0 || hour > 23) {System.out.println(\"wrong input!\"); return;}\n this.hour = hour;\n }", "public void setHour(int hour) \n { \n if (hour < 0 || hour >= 24)\n throw new IllegalArgumentException(\"hour must be 0-23\");\n\n this.hour = hour;\n }", "public void setHour(Integer hour) {\n this.hour = hour;\n }", "public Time4 setHour( int hour ) \r\n { \r\n this.hour = ( hour >= 0 && hour < 24 ? hour : 0 ); \r\n\r\n return this; // enables chaining\r\n }", "public void setHour(int hour) throws BlablakidException {\n\t\tif(checkTime(hour,this.minutes)==false) {\n\t\t\tthrow new BlablakidException(\"The hour introduced is wrong : \"+hour);\n\t\t}\n\t\telse {\n\t\tthis.hour = hour;\n\t\t}\n\t}", "private void setTime(int hour, int minute){\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hour);\n calendar.set(Calendar.MINUTE, minute);\n\n persistLong(calendar.getTimeInMillis());\n\n notifyChanged();\n notifyDependencyChange(shouldDisableDependents());\n }", "public void setHours(int x, double h) {\r\n hours[x] = h;\r\n }", "public void updateChangedTime(int hour, int minute);", "public void sethourNeed(Integer h){hourNeed=h;}", "public boolean setHour(double newHour) {\n\t\tthis.hour = newHour;\n\t\tthis.jd = swe_julday(this.year, this.month, this.day, this.hour, this.calType);\n\t\treturn true;\n\t}", "public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }", "public void setTime(String newHour) { // setTime sets the appointment's hour in standard time\n \n // this divides the newHour string into the hour part and the 'am'/'pm' part\n int timeHour = Integer.parseInt(newHour.substring(0, newHour.length()-2)); // the number of the hour\n String timeAmPm = newHour.substring(newHour.length()-2); // whether it is 'am' or 'pm'\n\n // 4 possible cases exist and are handled in this order:\n // 1. after midnight/before noon\n // 2. midnight (12am)\n // 3. noon (12pm)\n // 4. afternoon\n if(timeAmPm.equalsIgnoreCase(\"am\") && timeHour != 12) {\n this.hour = timeHour;\n }\n else if(timeAmPm.equalsIgnoreCase(\"am\")) {\n this.hour = 0;\n }\n else if(timeHour == 12){\n this.hour = timeHour;\n }\n else {\n this.hour = timeHour + 12;\n }\n }", "public void setHour(int hour) throws InvalidDateException {\r\n\t\tif (hour < 24 & hour >= 0) {\r\n\t\t\tthis.hour = hour;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic hour for the date (between 0 and 23) !\");\r\n\t\t}\r\n\t}", "public void setHour(int hour) {\n/* 51 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public void setHours(double hours) {\r\n this.hours = hours;\r\n }", "public void increaseHour() {\n\t\tthis.total++;\n\t}", "public boolean setHours(int value) {\r\n if (!FormatUtils.uint8RangeCheck(value)) {\r\n return false;\r\n }\r\n mHours = FormatUtils.intToUint8(value);\r\n updateGattCharacteristic();\r\n return true;\r\n }", "public Builder setStartHour(int value) {\n \n startHour_ = value;\n onChanged();\n return this;\n }", "public static final Function<Date,Date> setHour(final int value) {\r\n return new Set(Calendar.HOUR, value);\r\n }", "public Builder setFinishHour(int value) {\n \n finishHour_ = value;\n onChanged();\n return this;\n }", "public void setOne(int day, int hour, Integer newValue) {\r\n weekData[day][hour] = newValue;\r\n }", "public static void setHour(String HourString) {\n\t\thour = HourString;\n\t}", "public void setHours(int hours) {\n this.hours = hours;\n }", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }", "@Override\r\n public boolean setHours(int hours) {\r\n if(hours<0||hours>23)\r\n {\r\n return false;\r\n }\r\n calendar.set(Calendar.HOUR_OF_DAY, hours);\r\n return true;\r\n }", "public int getHour() { return this.hour; }", "public void update(int hour, int value) {\n for (int i = hour; i < prefixSum.length; i++) {\n if (i + 1 < prefixSum.length)\n prefixSum[i + 1][0]+= value;\n\n prefixSum[i][1]+=value;\n }\n }", "public void setWorkingHour (int newWorkingHour) {\n this.workingHour = newWorkingHour;\n }", "public void setHours(String hours) {\n this.hours = parseHours(hours);\n }", "public final native double setHours(int hours) /*-{\n this.setHours(hours);\n return this.getTime();\n }-*/;", "public void setEHour(int ehour)\r\n\t{\r\n\t\tthis.ehour = ehour;\r\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }", "public void advanceHour(long hour) {\n clock = Clock.offset(clock, Duration.ofHours(hour));\n }", "@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getEndtime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getEndtime().set(Calendar.MINUTE, minute);\n updateEndTime();\n }", "@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getStarttime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getStarttime().set(Calendar.MINUTE, minute);\n updateStartTime();\n }", "public void setHours(int hours) {\n\t\tthis.hours = hours;\n\t}", "public void setHours(int[] hours) {\n if (hours == null)\n hours = new int[] {};\n this.hours = hours;\n }", "public void setHour(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: null in method: gov.nist.javax.sip.header.SIPDate.setHour(int):void, dex: in method: gov.nist.javax.sip.header.SIPDate.setHour(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setHour(int):void\");\n }", "public Builder setHour(final int hour) {\n this.hour = hour;\n return this;\n }", "public void setTime(int hour, int minute, int second)\r\n\t{\r\n\t\tHours.setValue(hour);\r\n\t\tMinutes.setValue(minute);\r\n\t\tSeconds.setValue(second);\r\n\t\t\r\n\t\tupdateTime();\r\n\t}", "public int getHour() \n { \n return hour; \n }", "Integer getHour();", "public void setAditionalNightHours(int hours){\r\n\t this.addings = (double)(40*hours);\r\n }", "public void setHours(double hours) {\r\n // if hours is negative, hours is 0\r\n if (hours < 0) {\r\n this.hours = 0;\r\n }\r\n else {\r\n this.hours = hours;\r\n }\r\n // calls calculateSalary to update the salary once hours is changed\r\n calculateSalary();\r\n }", "public int getHour(){\n return hour;\n }", "public final native double setHours(int hours, int mins) /*-{\n this.setHours(hours, mins);\n return this.getTime();\n }-*/;", "public int getHour()\n {\n return hour;\n }", "public Time4( int hour ) \r\n { \r\n this.setTime( hour, 0, 0 ); \r\n }", "public void setPriceperhour(int priceperhour) {\n this.priceperhour = priceperhour;\n }", "public void updateHour() {\n\t\thilo = new Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tLabelHora.setText(calculateHour());\n\t\t\t}\n\t\t});\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tThread.sleep(1000);\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t}\n\n\t\t\t// UI update is run on the Application thread\n\t\t\tPlatform.runLater(hilo);\n\t\t}\n\t}", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n String newValue = String.format(\"%d:%02d\", hourOfDay, minute);\n mPrefs.edit().putString(mPreference.getKey(), newValue).apply();\n mPreference.setSummary(DateFormatter.getSummaryTimestamp(getActivity(), newValue));\n mListener.onPreferenceChange(mPreference, newValue);\n SettingsFragment.updateAlarmManager(getActivity(), true);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t47Hour47 = hourOfDay1;\n t47Minute47 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t47Hour47, t47Minute47);\n //set selected time on text view\n\n\n timeS24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime24.setText(timeS24);\n }", "public final native double setHours(int hours, int mins, int secs) /*-{\n this.setHours(hours, mins, secs);\n return this.getTime();\n }-*/;", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n et_time.setText(et_time.getText() + \"\" + hourOfDay + \":\" + minute);\n }", "float hour() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n case SOUTH_4M:\n case SOUTH_16M:\n return 0f;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * At 10h33m, Orion is about to set in the west and the\n * Pointers of the Big Dipper are near the meridian.\n */\n return 10.55f;\n }\n throw new IllegalStateException();\n }", "public static void setTime(Clock clock, int hour, int minute, int second) {\n\t\tif (hour < 0 || hour > 24) {\r\n\t\t\thour = 0;\r\n\t\t}\r\n\t\tif (minute < 0 || minute > 60) {\r\n\t\t\tminute = 0;\r\n\t\t}\r\n\t\tif (second < 0 || second > 60) {\r\n\t\t\tsecond = 0;\r\n\t\t}\r\n\r\n\t\tclock.setHour(hour);\r\n\t\tclock.setMinute(minute);\r\n\t\tclock.setSecond(second);\r\n\r\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n editASLTStime.setText((((hourOfDay < 10) ? \"0\" + hourOfDay : hourOfDay) + \":\" + ((minute < 10) ? \"0\" + minute : minute) + \":00\"));\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t48Hour48 = hourOfDay1;\n t48Minute48 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t48Hour48, t48Minute48);\n //set selected time on text view\n\n\n timeE24 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime24.setText(timeE24);\n }", "void updateTaskHours(int id, float hours);", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t40Hour40 = hourOfDay1;\n t40Minute40 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t40Hour40, t40Minute40);\n //set selected time on text view\n\n\n timeE20 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime20.setText(timeE20);\n }", "public Integer getHour() {\n return hour;\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t26Hour26 = hourOfDay1;\n t26Minute26 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t26Hour26, t26Minute26);\n //set selected time on text view\n\n\n timeE13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime13.setText(timeE13);\n }", "void setTime(final int time);", "public final native double setHours(int hours, int mins, int secs, int ms) /*-{\n this.setHours(hours, mins, secs, ms);\n return this.getTime();\n }-*/;", "public int getHour() {\n\t\treturn hour;\n\t}", "public int getHour() {\n\t\treturn hour;\n\t}", "public DateHour(int year, int month, int day, int hour)\n\t{\n\t\tm_year = year;\n\t\tm_month = month;\n\t\tm_day = day;\n\t\tm_hour = hour;\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t36Hour36 = hourOfDay1;\n t36Minute36 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t36Hour36, t36Minute36);\n //set selected time on text view\n\n\n timeE18 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime18.setText(timeE18);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(0, 0, 0, hourOfDay, minute, 0);\n Date date = calendar.getTime();\n SimpleDateFormat sdf = new SimpleDateFormat(\"hh.mm aa\", Locale.getDefault());\n\n mBinding.time.setText(sdf.format(date));\n }", "public static void setTime(){\n\t\tCalendar cal = Calendar.getInstance();\n\t\tif (!JsonUtils.RUNNING_LOCALLY){\n\t\t\tcal.set(Calendar.HOUR_OF_DAY, cal.get(Calendar.HOUR_OF_DAY) - 4); //account for UTC offset because of lambda\n\t\t}\n\t\tCURRENT_TIME = formatTime(cal.getTime().toString());\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t46Hour46 = hourOfDay1;\n t46Minute46 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t46Hour46, t46Minute46);\n //set selected time on text view\n\n\n timeE23 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime23.setText(timeE23);\n }", "public void setHourlyRate(double hr)\n\t{\n\t\thourlyRate = hr;\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t50Hour50 = hourOfDay1;\n t50Minute50 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t50Hour50, t50Minute50);\n //set selected time on text view\n\n\n timeE25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime25.setText(timeE25);\n }", "public void onTimeSet(TimePicker tp, int hourOfDay,\n\t\t\t\t\t\t\tint minute) {\n\t\t\t\t\t\tString s1 = String.valueOf(hourOfDay);\n\t\t\t\t\t\tString s2 = String.valueOf(minute);\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tContentValues cvtime = new ContentValues();// 实例化ContentValues\n\t\t\t\t\t\tcvtime.put(\"time_hour\", hourOfDay);\n\t\t\t\t\t\tcvtime.put(\"time_min\", minute);// 添加要更改的字段及内容\n\t\t\t\t\t\tString whereClause = \"time_number=?\";\n\t\t\t\t\t\tString[] whereday = new String[] { String.valueOf(i) };\n\t\t\t\t\t\tdb.update(\"time\", cvtime, whereClause,\n\t\t\t\t\t\t\t\twhereday);\n\n\t\t\t\t\t\tif (minute < 10) {\n\t\t\t\t\t\t\ts2 = \"0\" + s2;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (hourOfDay < 10) {\n\t\t\t\t\t\t\ts1 = \"0\" + s1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttv.setText(s1 + \":\" + s2);\n\n\t\t\t\t\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t44Hour44 = hourOfDay1;\n t44Minute44 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t44Hour44, t44Minute44);\n //set selected time on text view\n\n\n timeE22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime22.setText(timeE22);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t16Hour16 = hourOfDay1;\n t16Minute16 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t16Hour16, t16Minute16);\n //set selected time on text view\n\n\n timeE8 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime8.setText(timeE8);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t42Hour42 = hourOfDay1;\n t42Minute42 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t42Hour42, t42Minute42);\n //set selected time on text view\n\n\n timeE21 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime21.setText(timeE21);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t18Hour18 = hourOfDay1;\n t18Minute18 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t18Hour18, t18Minute18);\n //set selected time on text view\n\n\n timeE9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime9.setText(timeE9);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t20Hour20 = hourOfDay1;\n t20Minute20 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t20Hour20, t20Minute20);\n //set selected time on text view\n\n\n timeE10 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime10.setText(timeE10);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t38Hour38 = hourOfDay1;\n t38Minute38 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t38Hour38, t38Minute38);\n //set selected time on text view\n\n\n timeE19 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime19.setText(timeE19);\n }", "public Integer getHour() {\n\t\treturn hour;\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n Toast.makeText(Settings.this, \"\"+hourOfDay + \":\" + minute, Toast.LENGTH_SHORT).show();\n hour = hourOfDay;\n minutes = minute;\n switch(v.getId()){\n case R.id.bMorning:\n ed.putInt(\"morningHour\",hour);\n ed.putInt(\"morningMinute\", minutes);\n ed.commit();\n morning.setText(hour + \":\" + minutes);\n break;\n case R.id.bAfternoon:\n ed.putInt(\"afternoonHour\",hour);\n ed.putInt(\"afternoonMinute\", minutes);\n ed.commit();\n afternoon.setText(hour + \":\" + minutes);\n break;\n case R.id.bNight:\n ed.putInt(\"nightHour\",hour);\n ed.putInt(\"nightMinute\", minutes);\n ed.commit();\n night.setText(hour + \":\" + minutes);\n break;\n }\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t34Hour34 = hourOfDay1;\n t34Minute34 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t34Hour34, t34Minute34);\n //set selected time on text view\n\n\n timeE17 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime17.setText(timeE17);\n }", "@Override\n public String onHourChange(long hour) {\n return null;\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t17Hour17 = hourOfDay1;\n t17Minute17 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t17Hour17, t17Minute17);\n //set selected time on text view\n\n\n timeS9 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime9.setText(timeS9);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t12Hour12 = hourOfDay1;\n t12Minute12 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t12Hour12, t12Minute12);\n //set selected time on text view\n\n\n timeE6 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime6.setText(timeE6);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t43Hour43 = hourOfDay1;\n t43Minute43 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t43Hour43, t43Minute43);\n //set selected time on text view\n\n\n timeS22 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime22.setText(timeS22);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t24Hour24 = hourOfDay1;\n t24Minute24 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t24Hour24, t24Minute24);\n //set selected time on text view\n\n\n timeE12 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime12.setText(timeE12);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t49Hour49 = hourOfDay1;\n t49Minute49 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t49Hour49, t49Minute49);\n //set selected time on text view\n\n\n timeS25 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime25.setText(timeS25);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n }", "Integer getStartHour();", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t25Hour25 = hourOfDay1;\n t25Minute25 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t25Hour25, t25Minute25);\n //set selected time on text view\n\n\n timeS13 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime13.setText(timeS13);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t22Hour22 = hourOfDay1;\n t22Minute22 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t22Hour22, t22Minute22);\n //set selected time on text view\n\n\n timeE11 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime11.setText(timeE11);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t28Hour28 = hourOfDay1;\n t28Minute28 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t28Hour28, t28Minute28);\n //set selected time on text view\n\n\n timeE14 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editETime14.setText(timeE14);\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay1, int minute1) {\n\n t31Hour31 = hourOfDay1;\n t31Minute31 = minute1;\n\n Calendar calendar = Calendar.getInstance();\n\n //set hour and minute\n calendar.set(0, 0, 0, t31Hour31, t31Minute31);\n //set selected time on text view\n\n\n timeS16 = String.valueOf((DateFormat.format(\"hh:mm aa\", calendar)));\n editSTime16.setText(timeS16);\n }" ]
[ "0.8037714", "0.78229177", "0.76715016", "0.7615237", "0.7594638", "0.74451244", "0.7390777", "0.7342483", "0.7294107", "0.72424567", "0.71679425", "0.711898", "0.71169466", "0.70791703", "0.70356613", "0.70175344", "0.69967115", "0.6995775", "0.69940645", "0.69636256", "0.6956586", "0.6922242", "0.68653625", "0.6767169", "0.6759482", "0.6727563", "0.67041427", "0.66564894", "0.66447", "0.6644369", "0.66169435", "0.6615189", "0.66120356", "0.6602083", "0.6600711", "0.65649134", "0.65281445", "0.65010047", "0.6461543", "0.64500844", "0.64282405", "0.6406024", "0.63957536", "0.63878345", "0.63861525", "0.63696444", "0.63467616", "0.63356334", "0.6335198", "0.6302529", "0.62839735", "0.6242881", "0.62339216", "0.6230989", "0.62127566", "0.6212625", "0.621261", "0.61966413", "0.6196101", "0.61853516", "0.617713", "0.6173112", "0.61690235", "0.6152128", "0.61403507", "0.61333615", "0.61322623", "0.6130467", "0.6125657", "0.6125657", "0.61176246", "0.611699", "0.6114989", "0.6112928", "0.61087817", "0.6108028", "0.6107092", "0.60946715", "0.60838264", "0.6083736", "0.6080149", "0.60728234", "0.6071697", "0.60709137", "0.60672075", "0.6061519", "0.6054647", "0.6049269", "0.6045719", "0.6038829", "0.60359645", "0.60352963", "0.60330665", "0.6032391", "0.6029927", "0.6027312", "0.60268116", "0.6024539", "0.6022655", "0.6021151" ]
0.728357
9
Sets new value of minute
public void setMinute(int minute) { this.minute = minute; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setMinute(int value) {\n this.minute = value;\n }", "public void setMinute(int value) {\n this.minute = value;\n }", "public void setMinute(int minute)\n {\n this.minute = minute;\n }", "public Time4 setMinute( int minute ) \r\n { \r\n this.minute = \r\n ( minute >= 0 && minute < 60 ) ? minute : 0;\r\n\r\n return this; // enables chaining\r\n }", "public void setMinute(int nMinute) { m_nTimeMin = nMinute; }", "public void setMinute(int minute) \n { \n if (minute < 0 || minute >= 60)\n throw new IllegalArgumentException(\"minute must be 0-59\");\n\n this.minute = minute; \n }", "public void setTime(double minutes) {\n\t\t// implement this method.\n\n\t}", "public int getMinute() { return this.minute; }", "public void setMinutes(String minutes) {\n this.minutes = parseMinutes(minutes);\n }", "public int getMinute() {\n return minute;\n }", "public void setMinutes(int minutes) {\n this.minutes = minutes;\n }", "public int getMinute() {\n return minute;\n }", "private void setTime(int hour, int minute){\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hour);\n calendar.set(Calendar.MINUTE, minute);\n\n persistLong(calendar.getTimeInMillis());\n\n notifyChanged();\n notifyDependencyChange(shouldDisableDependents());\n }", "public final native double setMinutes(int minutes, int seconds, int millis) /*-{\n this.setMinutes(minutes, seconds, millis);\n return this.getTime();\n }-*/;", "public final native double setMinutes(int minutes) /*-{\n this.setMinutes(minutes);\n return this.getTime();\n }-*/;", "public final native double setMinutes(int minutes, int seconds) /*-{\n this.setMinutes(minutes, seconds);\n return this.getTime();\n }-*/;", "public void setTimestampMinute(Date timestampMinute) {\n\tthis.timestampMinute = timestampMinute;\n }", "public void setMinute(int minute) {\n/* 70 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "public int getMinute()\n {\n return minute;\n }", "public void setBeatsPerMinute( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}", "public void setMinute(int minute) throws InvalidDateException {\r\n\t\tif (minute < 60 & minute >= 0) {\r\n\t\t\tthis.minute = minute;\r\n\t\t} else {\r\n\t\t\tthrow new InvalidDateException(\"Please enter a realistic minute for the date (between 0 and 59) !\");\r\n\t\t}\r\n\t}", "Integer getMinute();", "public void setBeatsPerMinute(java.lang.Integer value) {\r\n\t\tBase.set(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}", "public static void setBeatsPerMinute( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}", "public void setMinute(int r1) throws java.lang.IllegalArgumentException {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e9 in method: gov.nist.javax.sip.header.SIPDate.setMinute(int):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: gov.nist.javax.sip.header.SIPDate.setMinute(int):void\");\n }", "public void setMinutes(int[] minutes) {\n if (minutes == null)\n minutes = new int[] {};\n this.minutes = minutes;\n }", "public static final Function<Date,Date> setMinute(final int value) {\r\n return new Set(Calendar.MINUTE, value);\r\n }", "public int getMinute() {\n\t\treturn minute;\n\t}", "public static void setBeatsPerMinute(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.Integer value) {\r\n\t\tBase.set(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}", "public void setTime(int hour, int minute, int second){\r\n this.hour = hour ; /*when it was hour,minutes,second it was a new variable for this function bt as we used this.It gained access to the global ones. */\r\n this.minute = minute; \r\n this.second = second;\r\n }", "public void setMinutes(int minutes) throws BlablakidException {\n\t\tif(checkTime(this.hour, minutes)==false) {\n\t\t\tthrow new BlablakidException(\"The minute introduced is wrong : \"+minutes);\n\t\t}\n\t\telse {\n\t\t\tthis.minutes = minutes;\n\t\t}\n\t}", "public void setTime(int mins, int sec){\r\n this.Minutes = mins;\r\n this.Seconds = sec;\r\n }", "public void onTimeSet(TimePicker tp, int hourOfDay,\n\t\t\t\t\t\t\tint minute) {\n\t\t\t\t\t\tString s1 = String.valueOf(hourOfDay);\n\t\t\t\t\t\tString s2 = String.valueOf(minute);\n\t\t\t\t\t\t\n\n\t\t\t\t\t\tContentValues cvtime = new ContentValues();// 实例化ContentValues\n\t\t\t\t\t\tcvtime.put(\"time_hour\", hourOfDay);\n\t\t\t\t\t\tcvtime.put(\"time_min\", minute);// 添加要更改的字段及内容\n\t\t\t\t\t\tString whereClause = \"time_number=?\";\n\t\t\t\t\t\tString[] whereday = new String[] { String.valueOf(i) };\n\t\t\t\t\t\tdb.update(\"time\", cvtime, whereClause,\n\t\t\t\t\t\t\t\twhereday);\n\n\t\t\t\t\t\tif (minute < 10) {\n\t\t\t\t\t\t\ts2 = \"0\" + s2;\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (hourOfDay < 10) {\n\t\t\t\t\t\t\ts1 = \"0\" + s1;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\ttv.setText(s1 + \":\" + s2);\n\n\t\t\t\t\t}", "public void uneMinuteDePlus() {\n\t\tthis.m = m+1 > 59 ? 0 : m+1;\n\t}", "public void updateChangedTime(int hour, int minute);", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n int timeToSet = (hourOfDay * 1000 + (minute * 1000)/60 + 18000) % 24000;\n prompt.sendCommand(CommandSet.getCommand(CommandSet.TIME) + \"set \"+timeToSet, new ResponseToastGenerator(getActivity(), \n new CommandResponseEvaluator(EvaluatorType.time),\n R.string.time_set_ok, R.string.time_set_failed));\n }", "public int getMinute() {\n\t\treturn this.minute;\n\t}", "void setTime(final int time);", "public boolean setMinutes(int value) {\r\n if (!FormatUtils.uint8RangeCheck(value)) {\r\n return false;\r\n }\r\n mMinutes = FormatUtils.intToUint8(value);\r\n updateGattCharacteristic();\r\n return true;\r\n }", "public Time( int minutes ) {\n this.minutes = minutes;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "public Date getTimestampMinute() {\n\treturn timestampMinute;\n }", "public void addBeatsPerMinute( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}", "public void setTime(double time) {_time = time;}", "public MyTime nextMinute(){\n\t\tint second = getSeconds();\n\t\tint minute = getMinute();\n\t\tint hour = getHours();\n\t\t\n\t\tif (minute!=59){\n\t\t\tminute++;\n\t\t}\n\t\telse{\n\t\t\tminute = 0;\n\t\t\tif (hours!=23){\n\t\t\t\thour++;\n\t\t\t}\n\t\t\telse{\n\t\t\t\thour = 0;\n\t\t\t}\n\t\t\n\t\t}\n\t\n\t\t\n\t\treturn new MyTime(hour,minute,second);\n\t}", "public int getMinute() {\n return dateTime.getMinute();\n }", "public void setSecond(int second) \n { \n if (second < 0 || second >= 60)\n throw new IllegalArgumentException(\"second must be 0-59\");\n\n this.second = second; \n }", "@Deprecated\n/* */ public void setCurrentMinute(@RecentlyNonNull Integer currentMinute) {\n/* 107 */ throw new RuntimeException(\"Stub!\");\n/* */ }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "private void setTime(long value) {\n \n time_ = value;\n }", "public void setTime(int hour, int minute, int second)\r\n\t{\r\n\t\tHours.setValue(hour);\r\n\t\tMinutes.setValue(minute);\r\n\t\tSeconds.setValue(second);\r\n\t\t\r\n\t\tupdateTime();\r\n\t}", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n\n time = 3600 * hour + 60 * minute;\n\n\n }", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n String newValue = String.format(\"%d:%02d\", hourOfDay, minute);\n mPrefs.edit().putString(mPreference.getKey(), newValue).apply();\n mPreference.setSummary(DateFormatter.getSummaryTimestamp(getActivity(), newValue));\n mListener.onPreferenceChange(mPreference, newValue);\n SettingsFragment.updateAlarmManager(getActivity(), true);\n }", "private int getMinute() {\n\t\tString time = getPersistedString(this.defaultValue);\n\t\tif (time == null || !time.matches(VALIDATION_EXPRESSION)) {\n\t\t\treturn -1;\n\t\t}\n\n\t\treturn Integer.valueOf(time.split(\":|/\")[1]);\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getStarttime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getStarttime().set(Calendar.MINUTE, minute);\n updateStartTime();\n }", "public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n et_time.setText(et_time.getText() + \"\" + hourOfDay + \":\" + minute);\n }", "public edu.pa.Rat.Builder setTime(int value) {\n validate(fields()[0], value);\n this.time = value;\n fieldSetFlags()[0] = true;\n return this; \n }", "public void setTime(java.lang.Integer value) {\n this.time = value;\n }", "public void setMin(int min) throws MinuteInputException{\n\t\tif (min < 0)\n\t\t\tthrow new MinuteInputException(\"Invalid minute\");\n\t\tthis.min = min;\n\t}", "public void addMinutes(int minutes)\n {\n\n int h = minutes / 60;\n int m = minutes - (h * 60);\n\n hour += h;\n\n if (minute == 30 && m == 30)\n {\n minute = 0;\n hour++;\n }\n else\n {\n minute += m;\n }\n }", "public int getStartMinute() {\n return startMinute;\n }", "public void setLaMinutes(int laMinutes) {\n this.laMinutes = laMinutes;\n }", "public void addBeatsPerMinute(java.lang.Integer value) {\r\n\t\tBase.add(this.model, this.getResource(), BEATSPERMINUTE, value);\r\n\t}", "public DateTimeFormatterBuilder appendMinuteOfDay(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.minuteOfDay(), minDigits, 4);\r\n }", "@Override\n public void onTimeSet(TimePicker timePicker, int hour, int minute) {\n String str_min = \"\" + minute;\n if (minute < 10) {\n str_min = \"0\" + minute;\n }\n btnHoraCitaver.setText(hour + \":\" + str_min);\n }", "public self minute(int currentMinute) {\n\t\tfor (X vaporView : members)\n\t\t\tvaporView.minute(currentMinute);\n\t\treturn (self) this;\n\n\t}", "public Builder setMinuteOfHour(final int minuteOfHour) {\n this.minuteOfHour = minuteOfHour;\n return this;\n }", "public DateTimeFormatterBuilder appendMinuteOfHour(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.minuteOfHour(), minDigits, 2);\r\n }", "public static void addBeatsPerMinute( Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.add(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}", "private void setTime(long value) {\n bitField0_ |= 0x00000002;\n time_ = value;\n }", "public int getMinutes(){\r\n return Minutes;\r\n }", "@Override\n public void onTimeSet(TimePicker view, int hour, int minute) {\n trigger.getEndtime().set(Calendar.HOUR_OF_DAY, hour);\n trigger.getEndtime().set(Calendar.MINUTE, minute);\n updateEndTime();\n }", "public void setMon6059(double mon6059) {\r\n\t\tthis.mon6059 = mon6059;\r\n\t}", "public void setTime(){\r\n \r\n }", "public final flipsParser.minute_return minute() throws RecognitionException {\n flipsParser.minute_return retval = new flipsParser.minute_return();\n retval.start = input.LT(1);\n\n CommonTree root_0 = null;\n\n Token string_literal379=null;\n Token string_literal380=null;\n Token string_literal381=null;\n Token string_literal382=null;\n\n CommonTree string_literal379_tree=null;\n CommonTree string_literal380_tree=null;\n CommonTree string_literal381_tree=null;\n CommonTree string_literal382_tree=null;\n RewriteRuleTokenStream stream_257=new RewriteRuleTokenStream(adaptor,\"token 257\");\n RewriteRuleTokenStream stream_254=new RewriteRuleTokenStream(adaptor,\"token 254\");\n RewriteRuleTokenStream stream_256=new RewriteRuleTokenStream(adaptor,\"token 256\");\n RewriteRuleTokenStream stream_255=new RewriteRuleTokenStream(adaptor,\"token 255\");\n\n try {\n // flips.g:564:2: ( ( 'min' | 'mins' | 'minute' | 'minutes' ) -> MINUTE )\n // flips.g:564:4: ( 'min' | 'mins' | 'minute' | 'minutes' )\n {\n // flips.g:564:4: ( 'min' | 'mins' | 'minute' | 'minutes' )\n int alt144=4;\n switch ( input.LA(1) ) {\n case 254:\n {\n alt144=1;\n }\n break;\n case 255:\n {\n alt144=2;\n }\n break;\n case 256:\n {\n alt144=3;\n }\n break;\n case 257:\n {\n alt144=4;\n }\n break;\n default:\n NoViableAltException nvae =\n new NoViableAltException(\"\", 144, 0, input);\n\n throw nvae;\n }\n\n switch (alt144) {\n case 1 :\n // flips.g:564:5: 'min'\n {\n string_literal379=(Token)match(input,254,FOLLOW_254_in_minute3275); \n stream_254.add(string_literal379);\n\n\n }\n break;\n case 2 :\n // flips.g:564:11: 'mins'\n {\n string_literal380=(Token)match(input,255,FOLLOW_255_in_minute3277); \n stream_255.add(string_literal380);\n\n\n }\n break;\n case 3 :\n // flips.g:564:18: 'minute'\n {\n string_literal381=(Token)match(input,256,FOLLOW_256_in_minute3279); \n stream_256.add(string_literal381);\n\n\n }\n break;\n case 4 :\n // flips.g:564:27: 'minutes'\n {\n string_literal382=(Token)match(input,257,FOLLOW_257_in_minute3281); \n stream_257.add(string_literal382);\n\n\n }\n break;\n\n }\n\n\n\n // AST REWRITE\n // elements: \n // token labels: \n // rule labels: retval\n // token list labels: \n // rule list labels: \n // wildcard labels: \n retval.tree = root_0;\n RewriteRuleSubtreeStream stream_retval=new RewriteRuleSubtreeStream(adaptor,\"rule retval\",retval!=null?retval.tree:null);\n\n root_0 = (CommonTree)adaptor.nil();\n // 565:2: -> MINUTE\n {\n adaptor.addChild(root_0, (CommonTree)adaptor.create(MINUTE, \"MINUTE\"));\n\n }\n\n retval.tree = root_0;\n }\n\n retval.stop = input.LT(-1);\n\n retval.tree = (CommonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n\n }\n catch (RecognitionException re) {\n reportError(re);\n recover(input,re);\n \tretval.tree = (CommonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n\n }\n finally {\n }\n return retval;\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n editASLTStime.setText((((hourOfDay < 10) ? \"0\" + hourOfDay : hourOfDay) + \":\" + ((minute < 10) ? \"0\" + minute : minute) + \":00\"));\n }", "public static void addBeatsPerMinute(Model model, org.ontoware.rdf2go.model.node.Resource instanceResource, java.lang.Integer value) {\r\n\t\tBase.add(model, instanceResource, BEATSPERMINUTE, value);\r\n\t}", "@Override\n public void onTimeSet(TimePicker timePicker, int selectedHour, int selectedMinute) {\n mHour = selectedHour;\n mMinute = selectedMinute;\n if(selectedMinute<10){\n remTime.setText(selectedHour + \":0\" + selectedMinute);\n }\n else {\n remTime.setText(selectedHour + \":\" + selectedMinute);\n }\n }", "public DateTimeFormatterBuilder appendSecondOfMinute(int minDigits) {\r\n return appendDecimal(DateTimeFieldType.secondOfMinute(), minDigits, 2);\r\n }", "public Time4 setTime( int hour, int minute, int second )\r\n {\r\n this.setHour( hour ); // set hour\r\n this.setMinute( minute ); // set minute\r\n this.setSecond( second ); // set second\r\n\r\n return this; // enables chaining\r\n }", "public void setMinTime(Integer minTime) {\n this.minTime = minTime;\n }", "public Time4 setSecond( int second ) \r\n { \r\n this.second = \r\n ( second >= 0 && second < 60 ) ? second : 0;\r\n\r\n return this; // enables chaining\r\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(0, 0, 0, hourOfDay, minute, 0);\n Date date = calendar.getTime();\n SimpleDateFormat sdf = new SimpleDateFormat(\"hh.mm aa\", Locale.getDefault());\n\n mBinding.time.setText(sdf.format(date));\n }", "public int getStartMinute() {\n\treturn start.getMinute();\n }", "public static void setTime(Clock clock, int hour, int minute, int second) {\n\t\tif (hour < 0 || hour > 24) {\r\n\t\t\thour = 0;\r\n\t\t}\r\n\t\tif (minute < 0 || minute > 60) {\r\n\t\t\tminute = 0;\r\n\t\t}\r\n\t\tif (second < 0 || second > 60) {\r\n\t\t\tsecond = 0;\r\n\t\t}\r\n\r\n\t\tclock.setHour(hour);\r\n\t\tclock.setMinute(minute);\r\n\t\tclock.setSecond(second);\r\n\r\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n }", "public void setTime(){\n Date currentDate = new Date();\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putLong(\"WAIT_TIME\", currentDate.getTime() + 1800000); //30 min\n editor.commit();\n }", "public void setHopMinutes(int i, int m) {\n \t\t((Hop) hops.get(i)).setMinutes(m);\n \t\tCollections.sort(hops, new ingrComparator());\n \t}", "public void setLoMinutes(int loMinutes) {\n this.loMinutes = loMinutes;\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay,\n int minute) {\n txtTime.setText(hourOfDay + \":\" + minute);\n }", "public int getMinutes() {\n return this.minutes;\n }", "public void setTime( org.ontoware.rdf2go.model.node.Node value) {\r\n\t\tBase.set(this.model, this.getResource(), TIME, value);\r\n\t}", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n txtview_time_result.setText(\"Time : \"+hourOfDay+\":\"+minute);\n }", "public void setTime(){\n\t\tthis.time = this.endTime - this.startTime;\t//calculate the time difference\n\t\t\n\t\t//now since the time is in milliseconds, convert the nanotime\n\t\tlong totalSeconds = (this.time / 1000000000);\n\t\t//Format the above seconds. So it will have at least \n\t\tint minute = (int)(totalSeconds/60);\n\t\tdouble second = totalSeconds - (minute*60);\t//get the remaining second part\n\t\t\n\t\tDecimalFormat minuteFormat = new DecimalFormat(\"##0\");\n\t\tDecimalFormat secondFormat = new DecimalFormat(\"###\");\t//so we only get the 3 digits\n\t\tString minutePart = minuteFormat.format(minute);\t//get the string for the second part\n\t\tString secondPart = secondFormat.format(second);\n\t\t\n\t\t\n\t\tString result = minutePart + \":\" + secondPart;\n\t\t\n\t\t//each time we set time, change the bounds\n\t\tthis.timeLabel.setText(String.valueOf(result));//set the JLabel text\n\t\t//when we set the time label, also set its location\n\t\tthis.timeLabel.setSize(timeLabel.getPreferredSize().width, \n\t\t\t\ttimeLabel.getPreferredSize().height);\n\t}", "public void setTime(Time time) {\n this.time = time; // assigns the time argument value to the time attribute\n }", "@Override\n public void onTimeSet(TimePicker view, int hourOfDay, int minute) {\n Calendar calendar = Calendar.getInstance();\n calendar.set(Calendar.HOUR_OF_DAY, hourOfDay);\n calendar.set(Calendar.MINUTE, minute - 2);\n calendar.set(Calendar.SECOND, 0);\n\n startAlarm(calendar);\n }" ]
[ "0.8396857", "0.83577734", "0.782914", "0.77473164", "0.7666828", "0.7642078", "0.725997", "0.72007275", "0.70306903", "0.7016869", "0.70031625", "0.6997947", "0.6937338", "0.68982065", "0.6870712", "0.6862794", "0.68532264", "0.68218607", "0.6811469", "0.6804104", "0.67740864", "0.67095333", "0.6685732", "0.6653051", "0.6645638", "0.66231555", "0.65815926", "0.65797096", "0.6521108", "0.6488957", "0.645514", "0.645301", "0.6450104", "0.6429467", "0.64095205", "0.64076924", "0.6399594", "0.63733894", "0.63552016", "0.634911", "0.6341087", "0.6341087", "0.6341087", "0.6337525", "0.6317007", "0.63124937", "0.6300964", "0.6286998", "0.6275289", "0.62601274", "0.62371397", "0.62371397", "0.62371397", "0.62371397", "0.6221245", "0.6183797", "0.61792415", "0.61680466", "0.61547124", "0.61533916", "0.6147123", "0.61122924", "0.6105201", "0.61050785", "0.60980606", "0.6093246", "0.6070696", "0.60499716", "0.6042343", "0.603121", "0.6013202", "0.6008829", "0.60086083", "0.59914577", "0.59869474", "0.59869057", "0.5984888", "0.598218", "0.5967929", "0.5959961", "0.5947643", "0.59321266", "0.59258085", "0.5925174", "0.5922609", "0.5914209", "0.5910982", "0.5908722", "0.5906119", "0.5885412", "0.58852303", "0.58824354", "0.5872712", "0.58622414", "0.58606845", "0.5837722", "0.5818311", "0.5816622", "0.5813116", "0.5807816" ]
0.75297344
6
heading is in DEGREES TODO Make an Enum to specify units (DEGREES, RADIANS, STRAIGHT, RIGHT, ETC.)
public Pose() { x = 0; y = 0; heading = 90; originalHeading = 90; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "float getHeading();", "float getHeading();", "float getHeading();", "public static double getHeading(double heading) {\n double newHeading;\n if (heading >=0.0 && heading < 90.0)\n newHeading = -1.0;\n else if (heading >= 90.0 && heading < 180.0)\n newHeading = -0.33;\n else if (heading >= 180.0 && heading < 270.0)\n newHeading = 0.33;\n else if (heading >= 270.0 && heading < 360.0)\n newHeading = 1.0;\n else\n newHeading = -1.0;\n return newHeading;\n }", "double normalizeHeading(double h) {\n double nh = h;\n if( h>-180 && h<180 ) {\n } else if( h <= -180 ) {\n nh = h+360;\n } else if( h > 180 ) {\n nh = h-360;\n }\n return nh;\n }", "public double getHeadingInDegrees(){\r\n double headingRadians = calculateHeadingRadians();\r\n return headingRadians * 180 / Math.PI;\r\n }", "public Heading(Double compassHeading) {\n\t\tthis.compassHeading = compassHeading;\n\t}", "public float getHeading() {\n return heading_;\n }", "public float getHeading() {\n return heading_;\n }", "public float getHeading() {\n return heading_;\n }", "public float getHeading() {\n return heading_;\n }", "public float getHeading() {\n return heading_;\n }", "public float getHeading() {\n return heading_;\n }", "double getHeadingDiff(double init_h) {\n double curr_h = getHeading();\n double diff_h = init_h - curr_h;\n if( diff_h>=360.0 ) diff_h -= 360.0;\n else if( diff_h<=-360.0 ) diff_h += 360.0;\n return diff_h ;\n }", "double normaliseHeading(double ang) {\r\n\t\tif (ang > 2 * PI)\r\n\t\t\tang -= 2 * PI;\r\n\t\tif (ang < 0)\r\n\t\t\tang += 2 * PI;\r\n\t\treturn ang;\r\n\t}", "private float getHeading() {\n Orientation anglesA = robot.imu.getAngularOrientation(\n AxesReference.INTRINSIC, AxesOrder.ZYX, AngleUnit.DEGREES);\n return AngleUnit.DEGREES.normalize(\n AngleUnit.DEGREES.fromUnit(anglesA.angleUnit, anglesA.firstAngle));\n }", "public Builder setHeading(float value) {\n bitField0_ |= 0x00000001;\n heading_ = value;\n onChanged();\n return this;\n }", "private static double calcHeading(double angleA, double angleB) { \n\t\t\n\t\tdouble heading;\n\t\t\n\t\tif (angleA < angleB){\n\t\t\theading = 45 - (angleA + angleB) /2 ;\n\t\t}else {\n\t\t\theading = 225 - (angleA + angleB) /2 ;\t\n\t\t}\n\t\treturn heading;\n\t}", "public Builder setHeading(float value) {\n bitField0_ |= 0x00000001;\n heading_ = value;\n onChanged();\n return this;\n }", "public double getRolledHeading() {\n double heading = 360.0 - getRawHeading();\n if (lastHeading < 100 && heading > 300) {\n rotationAmt--;\n } else if (heading < 100 && lastHeading > 300) {\n rotationAmt++;\n }\n lastHeading = heading;\n return heading + rotationAmt * 360.0;\n }", "public Builder setHeading(float value) {\n bitField0_ |= 0x00000002;\n heading_ = value;\n onChanged();\n return this;\n }", "public double getWidthInDeg();", "public Rotation2d getHeading() {\n return Rotation2d.fromDegrees(Math.IEEEremainder(gyro.getAngle(), 360) * (Const.kGyroReversed ? -1.0 : 1.0));\n }", "public Double getCompassHeading() {\n\t\treturn compassHeading;\n\t}", "public double getHeading() {\n return Rotation2d.fromDegrees(m_gyro.getAngle()).getDegrees();\n }", "public static float getH(float side, HexOrientation orientation)\n\t{\n\t\treturn MathUtils.sinDeg(30) * side;\n\t}", "String getUnits();", "String getUnits();", "String getUnits();", "public Unit<Angle> microradian() {return microradian;}", "public int heading() {\n\t\theading = heading + 5;\n\t\tif (heading >= 359) {\n\t\t\t//Setting the heading to 0\n\t\t\tsetHeading(0);\n\t\t}\n\t\t//Returning the heading\n\t\treturn heading;\n\t}", "Units getUnits();", "public interface DisplacementSensor {\n\n // return current heading reported by sensor, in degrees.\n // convention is positive angles CCW, wrapping from 359-0\n public float getDisp();\n\n}", "DefinedUnitType getDefinedUnit();", "public double headingTo(GeoPoint gp) {\n // Implementation hints:\n // 1. You may find the mehtod Math.atan2() useful when\n // implementing this method. More info can be found at:\n // http://docs.oracle.com/javase/8/docs/api/java/lang/Math.html\n //\n // 2. Keep in mind that in our coordinate system, north is 0\n // degrees and degrees increase in the clockwise direction. By\n // mathematical convention, \"east\" is 0 degrees, and degrees\n // increase in the counterclockwise direction.\n\n // I will put this point in the (0,0) and compute the atan2 on the\n // diifernce between them.\n checkRep();\n double x = (gp.latitude - this.latitude) * KM_PER_DEGREE_LATITUDE;\n double y = (gp.longitude - this.longitude) * KM_PER_DEGREE_LONGITUDE;\n double theta = Math.toDegrees(Math.atan2(x, y));\n theta = theta < 0 ? 360 + theta : theta;\n if (theta >= 0 && theta <= 90)\n return 90 - theta;\n return 360 - (theta - 90);\n }", "@JsProperty(name = \"heading\")\n public native double heading();", "public double getHeading() {\n return imu.getAngularOrientation().firstAngle;\n }", "public static Heading add(Heading a1, Heading a2) {\r\n return new Heading(HeadingType.DEGREES, a1.degreeNum + a2.degreeNum);\r\n }", "@MavlinkFieldInfo(\n position = 9,\n unitSize = 2,\n description = \"Vehicle heading (yaw angle), 0.0..359.99 degrees. If unknown, set to: UINT16_MAX\"\n )\n public final int hdg() {\n return this.hdg;\n }", "private org.gwtbootstrap3.client.ui.Heading get_f_Heading50() {\n return build_f_Heading50();\n }", "public float calculateIdealHeading(double currentHeading, Vector2 target) {\n\t\tdouble delta_x = target.x() - position.x();\r\n\t\tdouble delta_y = target.y() - position.y();\r\n\t\tdouble idealAngle = Math.toDegrees(Math.atan(delta_x / delta_y));\r\n\t\treturn (float)idealAngle;\r\n\t}", "public double getError(double desiredHeading) {\n return desiredHeading - getHeading();\n }", "protected static float tokHertz(int unit, float value) {\n \t\tswitch (unit) {\n \t\tcase CSSPrimitiveValue.CSS_HZ:\n \t\t\treturn (value * 1000);\n \t\tcase CSSPrimitiveValue.CSS_KHZ:\n \t\t\treturn value;\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "public String getUnitOfViewAngle() {\n \treturn \"degrees\";\n }", "public double getHeightInDeg();", "double getHeading() {\n if( CACHE_IMU_READING && loop_cnt_==last_imu_read_loop_id_ ) {\n // return the existing heading when getHeading() is called in the same loop\n return heading_ ;\n }\n\n heading_ = 0;\n if( USE_IMU && imu_!=null && imu_init_ok_ ) {\n imu_angles_ = imu_.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX); // acquiring angles are expensive, keep it minimal\n // IMU can automatically detect orientation, and return heading as first angle, 2020/01/25\n heading_ = AngleUnit.DEGREES.normalize(imu_angles_.firstAngle);\n last_imu_read_loop_id_ = loop_cnt_;\n } else if( USE_IMU2 && imu2_!=null && imu2_init_ok_ ) {\n // use IMU2 if IMU failed\n imu2_angles_ = imu2_.getAngularOrientation().toAxesReference(AxesReference.INTRINSIC).toAxesOrder(AxesOrder.ZYX);\n heading_ = AngleUnit.DEGREES.normalize(imu2_angles_.firstAngle);\n last_imu_read_loop_id_ = loop_cnt_;\n }\n return heading_;\n }", "float getDir() {\n return degrees(_rotVector.heading());\n }", "public static float headingToArc(float pHeading, boolean pTurnRight){\n pHeading %= 360;\n pHeading = pHeading < 0 ? 360 + pHeading : pHeading;\n pHeading = 360 - pHeading;\n pHeading = pTurnRight ? pHeading - 90 : pHeading + 90;\n return pHeading;\n }", "DefiningUnitType getDefiningUnit();", "protected final void setHeading(final int heading) {\n if (heading < 1 || heading > 6) {\n throw new IllegalArgumentException(\n \"Heading parameter must be between 1 and 6 (inclusive\");\n }\n if (heading < 5)\n setBold(true);\n setFontSize((int) (getFontSize() * HEADING_MULT[heading]));\n }", "public double calculateHeadingRadians(){\r\n if(coordinateHistory.size() > 2){\r\n GPSCoordinate firstPoint = coordinateHistory.get(coordinateHistory.size() - 2);\r\n GPSCoordinate secondPoint = coordinateHistory.get(coordinateHistory.size() - 1);\r\n \r\n if(!firstPoint.compareTo(secondPoint)){\r\n double latA = firstPoint.getLatitude();\r\n double longA = firstPoint.getLongitude();\r\n double latB = secondPoint.getLatitude();\r\n double longB = secondPoint.getLongitude();\r\n\r\n double X = Math.cos(latB) * Math.sin(longB - longA);\r\n double Y = (Math.cos(latA) * Math.sin(latB)) - (Math.sin(latA) * Math.cos(latB) * Math.cos(longB - longA));\r\n\r\n headingRadians = - Math.atan2(X, Y);\r\n return headingRadians;\r\n }else{\r\n return headingRadians;\r\n }\r\n }else{\r\n return headingRadians;\r\n }\r\n }", "public static double calculateHeading(double compassRadians, Location readFrom){\n GeomagneticField field = new GeomagneticField((float)readFrom.getLatitude(), (float)readFrom.getLongitude(), (float)readFrom.getHeight(), System.currentTimeMillis());\n float declination = field.getDeclination();\n return compassRadians + Math.toRadians(declination);\n }", "public float getInterpolatedHeading (float u) {\r\n\r\n float newHeading;\r\n \r\n // if linear interpolation\r\n if (this.linear == 1) {\r\n\r\n newHeading = keyFrame[1].heading + \r\n ((keyFrame[2].heading - keyFrame[1].heading) * u);\r\n } else {\r\n\r\n newHeading = h0 + u * (h1 + u * (h2 + u * h3));\r\n\r\n }\r\n\r\n return newHeading;\r\n }", "public void setCompassHeading(Double compassHeading) {\n\t\tthis.compassHeading = compassHeading;\n\t}", "private static double radToDeg(float rad)\r\n/* 30: */ {\r\n/* 31:39 */ return rad * 180.0F / 3.141592653589793D;\r\n/* 32: */ }", "String getUnit();", "public double turn (double degrees) {\n setHeading(getHeading() + degrees);\n return Math.abs(degrees);\n }", "private KilometersPerHour() {}", "public void initHeading(Direction heading)\r\n\t{\r\n\t\tthis.currentDirection=heading;\r\n\t}", "private String getUnits(Unit units, int value) {\n if (units == Unit.FEET) {\n if (value == 1) return \" foot\";\n return \" feet\";\n }\n if (value == 1) return \" inch\";\n return \" inches\";\n }", "public interface HDGSentence extends HeadingSentence {\n\n\t/**\n\t * Get magnetic deviation.\n\t * \n\t * @return Deviation, in degrees.\n\t */\n\tdouble getDeviation();\n\n\t/**\n\t * Get magnetic variation. Returns negative values for easterly variation\n\t * and positive for westerly.\n\t * \n\t * @return Variation, in degrees.\n\t */\n\tdouble getVariation();\n\n\t/**\n\t * Set magnetic deviation. Provide negative values to set easterly deviation\n\t * and positive to set westerly. Sets also the correct direction indicator\n\t * according to value (East/West).\n\t * \n\t * @param deviation Deviation, in degrees.\n\t * @throws IllegalArgumentException If value is out of range [-180..180].\n\t */\n\tvoid setDeviation(double deviation);\n\n\t/**\n\t * Set magnetic variation. Provide negative values to set easterly variation\n\t * and positive to set westerly. Sets also the correct direction indicator\n\t * according to value (East/West).\n\t * \n\t * @param variation Variation, in degrees.\n\t * @throws IllegalArgumentException If value is out of range [-180..180].\n\t */\n\tvoid setVariation(double variation);\n}", "int getToughness(Unit unit);", "public double getH();", "LengthUnit(double metres) {\n/* 24 */ this.metres = metres;\n/* 25 */ this.dx = new Dx(1.0D, this);\n/* */ }", "public Unit<Length> kilometre() {return kilometre;}", "public Unit<Angle> radian() {return radian;}", "public String getUnit();", "private org.gwtbootstrap3.client.ui.Heading get_f_Heading18() {\n return build_f_Heading18();\n }", "private org.gwtbootstrap3.client.ui.Heading get_f_Heading30() {\n return build_f_Heading30();\n }", "protected static float toHertz(int unit, float value) {\n \t\tswitch (unit) {\n \t\tcase CSSPrimitiveValue.CSS_HZ:\n \t\t\treturn value;\n \t\tcase CSSPrimitiveValue.CSS_KHZ:\n \t\t\treturn (value / 1000);\n \t\tdefault:\n \t\t\tthrow new DOMException(DOMException.INVALID_ACCESS_ERR, \"\");\n \t\t}\n \t}", "TimeUnit getUnit();", "public Unit<Pressure> hectopascal() {return hectopascal;}", "String getUnitsString();", "private void setNPCInitialHeading()\n {\n float alpha = (float) (Math.PI/2 - Math.atan2(end.getZ()-begin.getZ(), end.getX()-begin.getX()));\n npc.setAngle(alpha);\n npc.setSpeed(NPC.walkSpeed);//this automatically sets the \"walk\" anim so no need for this line:\n //npc.setAnimation(\"walk\");\n npc.setHeadingUpdateTime();\n }", "public void changeHeading(int newHeading)\n\t{\n\t\theading = newHeading;\n\t}", "public void setUnit(Length units) {\n unit = units;\n }", "double readImuHeading() {\n double h = -360.0;\n if( USE_IMU && imu_!=null && imu_init_ok_ ) {\n h = imu_.getAngularOrientation().firstAngle;\n }\n return h;\n }", "public Heading() {\n\t\tthis(MIN);\n\t}", "public Heading getHeading()\n {\n\treturn this.heading;\n }", "public abstract double toBasicUnit(double unit);", "private org.gwtbootstrap3.client.ui.Heading get_f_Heading40() {\n return build_f_Heading40();\n }", "public void autonZeroHeading() {\n \tString direction = SmartDashboard.getString(\"Calibration_Orientation\", \"North\");\n \tswitch (direction) {\n \t\tdefault: zeroHeading();\n \t\t\tbreak;\n \t\tcase \"North\": zeroHeading(0.0);\n \t\t\tbreak;\n \t\tcase \"South\": zeroHeading(180.0);\n \t\t\tbreak;\n \t\tcase \"East\": zeroHeading(-90.0);\n \t\t\tbreak;\n \t\tcase \"West\": zeroHeading(90.0);\n \t\t\tbreak;\n \t\tcase \"-135\" : zeroHeading(135.0);\n \t\t\tbreak;\n \t}\n }", "public void setH(Double h);", "public static void main(String[] args) {\n\t\tfloat cm = 12.5f;\r\n\t\tfloat inch = 0.3937f * cm;\r\n\t\tSystem.out.printf(\"a. %.2f cm = %.2f inch\\n\", cm, inch);\r\n\r\n\t\t// b. inch to cm\r\n\t\tinch = 4.92f;\r\n\t\tcm = inch / 0.3937f;\r\n\t\tSystem.out.printf(\"b. %.2f inch = %.2f cm\\n\", inch, cm);\r\n\r\n\t\t// c. feet to meter\r\n\t\tfloat feet = 4.92f;\r\n\t\tfloat meter = feet / 3.2808f;\r\n\t\tSystem.out.printf(\"c. %.2f feet = %.2f meter\\n\", feet, meter);\r\n\r\n\t\t// d. meter to feet\r\n\t\tmeter = 1.50f;\r\n\t\tfeet = meter * 3.2808f;\r\n\t\tSystem.out.printf(\"d. %.2f meter = %.2f feet\\n\", meter, feet);\r\n\r\n\t\t// e. pound to kg\r\n\t\tfloat lb = 158.73f;\r\n\t\tfloat kg = lb / 2.2046f;\r\n\t\tSystem.out.printf(\"e. %.2f lb = %.2f kg\\n\", lb, kg);\r\n\r\n\t\t// f. kg to pound\r\n\t\tkg = 72.00f;\r\n\t\tlb = kg * 2.2046f;\r\n\t\tSystem.out.printf(\"f. %.2f kg = %.2f lb\\n\", kg, lb);\r\n\r\n\t\t// g. km to mile\r\n\t\tfloat km = 42.35f;\r\n\t\tfloat mile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"g. %.2f km = %.2f mile\\n\", km, mile);\r\n\r\n\t\t// h. mile to km\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"h. %.2f mile = %.2f km\\n\", mile, km);\r\n\r\n\t\t// i. km/h to mile/h\r\n\t\tkm = 42.35f;\r\n\t\tmile = km * 0.62137f;\r\n\t\tSystem.out.printf(\"i. %.2f km/h = %.2f mile/h\\n\", km, mile);\r\n\r\n\t\t// j. mile/h to km/h\r\n\t\tmile = 26.32f;\r\n\t\tkm = mile / 0.62137f;\r\n\t\tSystem.out.printf(\"j. %.2f mile/h = %.2f km/h\\n\", mile, km);\r\n\t}", "public Length getUnit() {\n return unit;\n }", "double getStartH();", "TraceDefinedUnitsView definedUnits();", "public double calculateDegToRetreat() {\r\n\t\tdouble newDeg = (degToAttack + 180) % 360;\r\n\t\tSystem.out.println(newDeg);\r\n\t\treturn newDeg;\r\n\t}", "public float calculateDeltaIdealHeading(double currentHeading, Vector2 target) {\r\n\t\t//first calculate the angle from here to the target\r\n\t\tdouble delta_x = target.x() - position.x();\r\n\t\tdouble delta_y = target.y() - position.y();\r\n\t\tdouble idealAngle = Math.toDegrees(Math.atan(delta_x / delta_y));\r\n\t\tdouble deltaAngle = idealAngle - currentHeading;\r\n\t\treturn (float)deltaAngle;\r\n\t}", "String describe() {\n switch (this) {\n case NORTH_4M:\n return \"north\";\n case NORTH_16M:\n return \"north_16m\";\n case SOUTH_4M:\n return \"south\";\n case SOUTH_16M:\n return \"south_16m\";\n case WILTSHIRE_4M:\n return \"wiltshire\";\n case WILTSHIRE_16M:\n return \"wiltshire_16m\";\n }\n return \"?\";\n }", "@Override\n protected AngularSpeedUnit getDefaultUnit() {\n return AngularSpeedUnit.RADIANS_PER_SECOND;\n }", "float hour() {\n switch (this) {\n case NORTH_4M:\n case NORTH_16M:\n case SOUTH_4M:\n case SOUTH_16M:\n return 0f;\n case WILTSHIRE_4M:\n case WILTSHIRE_16M:\n /*\n * At 10h33m, Orion is about to set in the west and the\n * Pointers of the Big Dipper are near the meridian.\n */\n return 10.55f;\n }\n throw new IllegalStateException();\n }", "public Direction getCurrentHeading()\r\n\t{\r\n\t\treturn this.currentDirection;\r\n\t\t\r\n\t}", "public double getHeardPercentEng() {\n return heardPercentEng;\n }", "public final native int getHeading() /*-{\n return this.getHeading() || 0;\n }-*/;", "int getLumMod(){\n return getPercentageValue(\"lumMod\");\n }", "public String getHeading() {\n return heading;\n }", "public String getHeading() {\n return heading;\n }", "public Degree() {\n\t\tsuper();\n\t}", "ChronoUnit getUnit();", "public void setH(double value) {\n this.h = value;\n }" ]
[ "0.7018102", "0.7018102", "0.7018102", "0.6669876", "0.6645381", "0.6487939", "0.6484133", "0.62860537", "0.62860537", "0.6256835", "0.6222133", "0.6122461", "0.6122461", "0.61069256", "0.6061555", "0.6049833", "0.5907962", "0.5892087", "0.58785254", "0.581684", "0.58034736", "0.5798981", "0.57371247", "0.57240593", "0.570102", "0.56555307", "0.564596", "0.564596", "0.564596", "0.56366384", "0.56069815", "0.5597859", "0.55894184", "0.5589315", "0.5581897", "0.55807745", "0.5536096", "0.5511442", "0.5495138", "0.5480065", "0.5471365", "0.5471303", "0.5463657", "0.5435864", "0.5429759", "0.5426839", "0.54162127", "0.5411939", "0.5404349", "0.5398556", "0.53980243", "0.53954095", "0.5390361", "0.5389615", "0.5362357", "0.5356885", "0.5355953", "0.53523195", "0.5349142", "0.5343302", "0.53362167", "0.5324725", "0.52892786", "0.52847415", "0.5280924", "0.525964", "0.52578634", "0.52523804", "0.5213072", "0.5208794", "0.5197794", "0.5197639", "0.51942134", "0.51922107", "0.5188032", "0.5183887", "0.5159033", "0.51588404", "0.51578104", "0.51563716", "0.51506764", "0.515019", "0.51489705", "0.5146554", "0.514586", "0.5139567", "0.51376736", "0.51350677", "0.51318336", "0.51277685", "0.5110928", "0.5109093", "0.51046276", "0.50975734", "0.5074645", "0.5072147", "0.506587", "0.506587", "0.50656116", "0.5062396", "0.5059262" ]
0.0
-1
Determine the safe temperature to cook the meat at
public void setTemperatureNeededToCookAt(double t) { temp = t; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double GetMashTemperature() {\n\t\treturn msc.GetMashTemperature();\n\t}", "static int calcCoolingTime(int temperature, int amount) {\n // the time in melting reipes assumes updating 5 times a second\n // we update 20 times a second, so get roughly a quart of those values\n return IMeltingRecipe.calcTimeForAmount(temperature, amount);\n }", "public double getTemperature() {return temperature;}", "float getTemperature();", "public static int getTemperature() {\n\t\t\n\t\tSystem.out.println(\"Enter temperature value : \");\n\t\tint inputValue = sc.nextInt();\n\t\treturn inputValue;\n\t}", "public int getTempCoolDown() {\n return tempCoolDown;\n }", "public double autoMaintain(double temperature) {\n\t\tthis.temperature = 3.0;\n\t\treturn temperature;\n\t}", "public int getTemperature() {\n return temperature;\n }", "public int getTemperature() {\n\t\treturn temperature;\n\t}", "public int getTemperature() {\n return temperature;\n }", "public float getTempFarenheit() {\n float tempF = 0;\n float tempC;\n if (readings.size() > 0) {\n tempC = readings.get(readings.size() - 1).temperature;\n tempF = (float) ((tempC * 1.8) + 32);\n\n }\n return tempF;\n }", "private double measureTemp() {\n try {\n analog0 = blueTooth.sensor(0);\n analog1 = blueTooth.sensor(1);\n return ((analog0 - analog1) * 5 * 100) / 1024.0;\n } catch (TimeoutException ex) {\n Logger.getLogger(TempMeasure.class.getName()).log(Level.SEVERE, null, ex);\n }\n return ((analog0 - analog1) * 5 * 100) / 1024.0;\n }", "public String getTemperature() {\r\n\t\treturn temperature;\r\n\t}", "public double getBlockAmbientTemperature(int x, int y, int z) {\n World world = asBukkit();\n if (world == null) return 0;\n Block block = world.getBlockAt(x, y, z);\n double temp = getAmbientTemperature(5, 15, x, y, z);\n\n // Apply modifier if block has sunlight.\n if (block.getLightFromSky() > 0) {\n double directSunAmplifier = TEMPERATURES.getDirectSunAmplifier() - 1;\n byte skyLight = block.getLightFromSky();\n double percent = skyLight / 15D;\n temp *= directSunAmplifier * percent + 1;\n }\n\n // Apply modifier if block is in a \"cave\"\n if (((block.getLightFromSky() <= 6 && block.getLightLevel() < 6)\n || block.getType() == Material.CAVE_AIR)\n && block.getLightLevel() != 15) {\n double amp = TEMPERATURES.getCaveModifier() - 1;\n byte light = block.getLightLevel();\n double percent = (15D - light) / 15D;\n temp *= amp * percent + 1;\n }\n return temp;\n }", "public double calculatedConsuption(){\n\tint tressToSow=0;\n\n\tif (kiloWatts >=1 && kiloWatts <= 1000){\n\t\ttressToSow = 8;\n\t}\n\telse if (kiloWatts >=1001 && kiloWatts <=3000){\n\t\ttressToSow = 35;\n\t}\n\telse if (kiloWatts > 3000){\n\t\ttressToSow=500;\n\t}\n\treturn tressToSow;\n\t}", "public int getTemperature() {\n return VirtualHardwareManager.getInstance().getTemperature();\n }", "public String getTemperature() {\n\t\treturn temperature;\n\t}", "public void setTempCoolDown(int tempCoolDown) {\n this.tempCoolDown = tempCoolDown;\n }", "public float getTemperature() {\n\t\treturn (float) getRawTemperature() / 100f;\n\t}", "public Float getTemperature () {\n return temperature;\n }", "public double externalTemperature(double t0, double min, double max)\n {\n double left = t0 - min;\n double right = max - t0;\n int sign = Math.random() * (left + right) > left ? 1 : -1;\n t0 += sign * Math.random();\n return t0;\n }", "public float getTemperatureMin() {\n return temperatureMin;\n }", "@Override\n\tpublic int getTemperature() throws emException, TException {\n\t\treturn 0;\n\t}", "private int calculateTemp(){\n\n int time = (int) Bukkit.getServer().getWorld(worldName).getTime();\n\n // Calculate temp (y value) on a manipulated sine wave\n return (int) Math.round(\n Math.sin( (time * 0.000262) - ( (peakTime/24000.0) * Math.PI * 2 ) + (0.5 * Math.PI) ) * ((maxTemp-minTemp)/2.0)\n + (minTemp + ((maxTemp-minTemp)/2.0))\n );\n }", "public void perferredTemperature(double mintemp, double maxtemp) {\n\t\tSystem.out.println(\"Preferredtemperature method\");\n\t\tminTemperature = mintemp;\n\t\tmaxTemperature = maxtemp;\n\t\t\n\t}", "public String getTemperature() {\n return temperature;\n }", "public static void temperatureConversion()\n\t{\n\t\tSystem.out.println(\"enter temperature in farenheit\");\n\t\tdouble mTemperatureFarenheit = scanner.nextDouble();\n\t\t\t\n\t\tdouble mToCelcius = ((mTemperatureFarenheit - 32) / 1.8);\n\t\tdouble mToFarenheit = ((mToCelcius * 1.8) + 32);\n\t\tSystem.out.println(\"temperature in celcius is \" + mToCelcius);\n\t\tSystem.out.println(\"temperature in farenheit is \" +mToFarenheit);\n\t\t\n\t}", "@Override \n public double getTemperature() { \n return pin.getValue();\n }", "public double getCurrentTemperature() {\n return this.currentTemperature;\n }", "public double get_thermal_reading() {\n\t\t\n\t\treturn 0;\n\t}", "@Test\n\tpublic void testGetValue() {\n\n\t\tTemperature belowMinTemp;\n\t\tTemperature minimumTemp;\n\t\tTemperature averageTemp;\n\n\t\tfinal double THRESHOLD = 1e-6; // maximum allowable error\n\n\t\t// Celsius\n\t\ttry {\n\t\t\tbelowMinTemp = new Temperature(-273.16, Temperature.Units.CELSIUS);\n\t\t} catch (IllegalArgumentException ex) {\n\t\t\tassertTrue(\"Cannot have celsius lower than -273.15\",\n\t\t\t\t\tex instanceof IllegalArgumentException);\n\t\t}\n\t\tminimumTemp = new Temperature(-273.15, Temperature.Units.CELSIUS);\n\t\taverageTemp = new Temperature(33.3333, Temperature.Units.CELSIUS);\n\n\t\tassertTrue(\"Minimum Celsius should be -273.15\",\n\t\t\t\tminimumTemp.getValue() == -273.15);\n\t\tassertEquals(\"An average temperature in Celsius\", 33.3333,\n\t\t\t\taverageTemp.getValue(), THRESHOLD);\n\n\t\t// Fahrenheit\n\t\ttry {\n\t\t\tbelowMinTemp = new Temperature(-459.68,\n\t\t\t\t\tTemperature.Units.FAHRENHEIT);\n\t\t} catch (IllegalArgumentException ex) {\n\t\t\tassertTrue(\"Cannot have fahrenheit below -459.67\",\n\t\t\t\t\tex instanceof IllegalArgumentException);\n\t\t}\n\t\tminimumTemp = new Temperature(-459.67, Temperature.Units.FAHRENHEIT);\n\t\taverageTemp = new Temperature(99.9999, Temperature.Units.FAHRENHEIT);\n\n\t\tassertTrue(\"Minimum Fahrenheit should be -459.67\",\n\t\t\t\tminimumTemp.getValue() == -459.67);\n\t\tassertEquals(\"An average temperature in Celsius\", 99.9999,\n\t\t\t\taverageTemp.getValue(), THRESHOLD);\n\n\t\t// Kelvin\n\t\ttry {\n\t\t\tbelowMinTemp = new Temperature(-0.00001, Temperature.Units.KELVIN);\n\t\t} catch (IllegalArgumentException ex) {\n\t\t\tassertTrue(\"Cannot have negative kelvin\",\n\t\t\t\t\tex instanceof IllegalArgumentException);\n\t\t}\n\t\tminimumTemp = new Temperature(0, Temperature.Units.KELVIN);\n\t\taverageTemp = new Temperature(300, Temperature.Units.KELVIN);\n\n\t\tassertTrue(\"Minimum Kelvin should be zero\", minimumTemp.getValue() == 0);\n\t\tassertEquals(\"An average temperature in Kelvin\", 300,\n\t\t\t\taverageTemp.getValue(), THRESHOLD);\n\n\t}", "public double calculatedConsuption(){\nint tressToSow=0;\n\nif (getKiloWatts() >=1 && getKiloWatts() <= 1000){\n\ttressToSow = 8;\n}\nelse if (getKiloWatts() >=1001 && getKiloWatts ()<=3000){\n\ttressToSow = 35;\n}\nelse if (getKiloWatts() > 3000){\n\ttressToSow=500;\n}\nreturn tressToSow;\n}", "public double getTemperatureCelsius() {\n return temperatureCelsius;\n }", "public void setTemp(int temp) {\n \tthis.temperature = temp;\n }", "private static Temperature getNewTemperature() {\n System.out.println(\"Enter an initial temperature reading, which\");\n System.out.print(\"should be a number optionally followed by C or F: \"); \n String response = input.nextLine().trim(); \n if (echo) { System.out.println(response); }\n double initVal = parseOutNum(response);\n char scale = Character.toUpperCase(parseOutScale(response));\n\n if (scale == CEL_SCALE_CODE) { \n System.out.printf(\"Calling Temperature(%f,true)\\n\", initVal);\n return new Temperature(initVal, true);\n }\n else if (scale == FAH_SCALE_CODE) {\n System.out.printf(\"Calling Temperature(%f,false)\\n\", initVal);\n return new Temperature(initVal, false);\n }\n else { // no scale indicated\n System.out.printf(\"Calling Temperature(%f)\\n\", initVal);\n return new Temperature(initVal);\n }\n }", "public float getTempCelsius() {\n float tempC = 0;\n if (readings.size() > 0) {\n tempC = readings.get(readings.size() - 1).temperature;\n }\n return tempC;\n }", "FloatResource temperatureCoefficient();", "private void checkHeatLevels()\n {\n // Computer is switched on and has power reserves.\n if (this.isPowered() && this.isRedstonePowered())\n {\n if (this.getEnergyStored(ForgeDirection.UNKNOWN) <= this.getMaxEnergyStored(ForgeDirection.UNKNOWN))\n {\n // Running computer consumes energy from internal reserve.\n this.consumeInternalEnergy(this.getEnergyConsumeRate());\n }\n\n // Running computer generates heat with excess energy it wastes.\n if (!this.isHeatAboveZero() && worldObj.getWorldTime() % 5L == 0L)\n {\n if (!this.isOverheating() && !this.isHeatedPastTriggerValue())\n {\n // Raise heat randomly from zero to five if we are not at optimal temperature.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(10));\n }\n else if (!this.isOverheating() && this.isHeatedPastTriggerValue() && this.getFluidAmount() > FluidContainerRegistry.BUCKET_VOLUME)\n {\n // Computer has reached operating temperature and has water to keep it cool.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(2));\n }\n else if (!this.isOverheating() && this.getFluidAmount() <= FluidContainerRegistry.BUCKET_VOLUME)\n {\n // Computer is running but has no water to keep it cool.\n this.setHeatLevelValue(this.getHeatLevelValue() + worldObj.rand.nextInt(5));\n }\n }\n }\n\n // Water acts as coolant to keep running computer components cooled.\n if (!this.isHeatAboveZero() && !this.isFluidTankEmpty() && this.isPowered() && this.isRedstonePowered() && worldObj.getWorldTime() % 16L == 0L)\n {\n if (this.getHeatLevelValue() <= this.getHeatLevelMaximum() && this.isHeatAboveZero())\n {\n // Some of the water evaporates in the process of cooling off the computer.\n // Note: water is drained in amount of heat computer has so hotter it gets\n // the faster it will consume water up to rate of one bucket\n // every few ticks.\n if (this.getFluidAmount() >= this.getHeatLevelValue())\n {\n // The overall heat levels of the computer drop so long as there is water though.\n this.removeFluidAmountExact(this.getHeatLevelValue() / 4);\n this.decreaseHeatValue();\n }\n }\n }\n else if (this.isHeatAboveZero() && worldObj.getWorldTime() % 8L == 0L)\n {\n // Computer will slowly dissipate heat while powered off but nowhere near as fast with coolant.\n this.decreaseHeatValue();\n }\n }", "public void setTemperature(Float temperature) {\n this.temperature = temperature;\n }", "public void setTemperature(int value) {\n this.temperature = value;\n }", "public Double getThermistorCelsiusTemperature()\n {\n return finchController.getThermistorCelsiusTemperature();\n }", "@Override\r\n public int getTemperature(){\r\n return 10;\r\n }", "@Override\n public double getBaseTempCool(Integer thermostatId) {\n\n String ql = \"SELECT te FROM PartitionedThermostatEvent te WHERE te.thermostatId = :thermostatId ORDER BY te.id.eventSysTime DESC\";\n Map<String, Object> paramVals = new HashMap<String, Object>();\n paramVals.put(\"thermostatId\", thermostatId);\n PartitionedThermostatEvent thEvent = findByQuery(ql, paramVals);\n double deltaEE = thEvent.getDeltaEE();\n double baseTemp = thEvent.getNewSetting();\n\n // deltaEE for cool = new setting - base temperature\n // deltaEE is greater than zero or less than zero\n if (deltaEE != 0) {\n baseTemp = baseTemp - deltaEE;\n }\n\n return baseTemp;\n }", "private void setTemp(int temperature) {\n\t\tthis.temperature.setValue(temperature);\n\t}", "public Double getOutdoorTemperature() {\n return outdoorTemperature;\n }", "public float getminTemp() {\n Reading minTempReading = null;\n float minTemp = 0;\n if (readings.size() >= 1) {\n minTemp = readings.get(0).temperature;\n for (int i = 1; i < readings.size(); i++) {\n if (readings.get(i).temperature < minTemp) {\n minTemp = readings.get(i).temperature;\n }\n }\n } else {\n minTemp = 0;\n }\n return minTemp;\n }", "public IntegerProperty getTemp() {\n\t\treturn temperature;\n\t}", "public double getExternalTemperature() {\r\n return externalTemperature;\r\n }", "public void setTemperature(String temperature) {\n this.temperature = temperature;\n }", "public double getHumidity() {\n\t\treturn (int)(Math.random()*101);//模拟一个随机湿度\n\t}", "int askForTempMin();", "public AlarmTemperature getTemperature() {\n\t\treturn this.temperature;\n\t}", "public static int getCelsius(int temperature) {\n\t\t\n\t\tint celsiusResult = (temperature - 32)* 5/9;\n\t\treturn celsiusResult;\n\t}", "private void updateTemperatureImage(float temperature) {\n \t\t\n \t\t//determine which drawable to use\n \t\tif(temperature < maxColdTemp) {\n \t\t\tif(coldTempDrawable == null) {\n \t\t\t\tcoldTempDrawable = getResources().getDrawable(R.drawable.temperature_cold);\n \t\t\t}\n \t\t\ttemperatureImgView.setImageDrawable(coldTempDrawable);\n \t\t} else if(temperature > minHotTemp) {\n \t\t\tif(hotTempDrawable == null) {\n \t\t\t\thotTempDrawable = getResources().getDrawable(R.drawable.temperature_hot);\n \t\t\t}\n \t\t\ttemperatureImgView.setImageDrawable(hotTempDrawable);\n \t\t} else {\n \t\t\tif(warmTempDrawable == null) {\n \t\t\t\twarmTempDrawable = getResources().getDrawable(R.drawable.temperature_warm);\n \t\t\t}\n \t\t\ttemperatureImgView.setImageDrawable(warmTempDrawable);\n \t\t}\n \t}", "static int calcCoolingTime(FluidStack fluid) {\n return calcCoolingTime(fluid.getFluid().getAttributes().getTemperature(fluid) - 300, fluid.getAmount());\n }", "public String getCurrentTempInVancouver() throws IOException, JSONException {\n JSONObject json = readJsonFromUrl(theURL);\n JSONObject main = (JSONObject) json.get(\"main\");\n double kelvinD = 987654;\n int kelvinI = 987654;\n double c;\n try {\n kelvinD = (Double) main.get(\"temp\");\n } catch (ClassCastException e) {\n kelvinI = (Integer) main.get(\"temp\");\n }\n if (kelvinD != 987654) {\n c = kelvinD - 273.15;\n } else {\n c = kelvinI - 273.15;\n }\n double ccOneDecimal = Math.round(c * 10) / 10.0;\n return ccOneDecimal + \"°C\";\n }", "public double getParcelTemperature() {\r\n return parcelTemperature;\r\n }", "public double getHumidityTemperature() {\r\n return humidityTemperature;\r\n }", "public static int getModemTemperature() {\n\t\treturn 0;\n\t}", "@Override\n public int getEngineCritHeat() {\n int engineCritHeat = 0;\n if (!isShutDown() && getEngine().isFusion()) {\n engineCritHeat += 5 * getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_CT);\n engineCritHeat += 5 * getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_LT);\n engineCritHeat += 5 * getHitCriticals(CriticalSlot.TYPE_SYSTEM, Mech.SYSTEM_ENGINE, Mech.LOC_RT);\n }\n return engineCritHeat;\n }", "public int getTempOfStock() {\n // store the biggest min temp. and smallest max temp.\n int smallestMaxTemp = 0, biggestMinTemp = Integer.MAX_VALUE;\n // for each item in stock\n for (int i = 0; i < this._noOfItems; i++) {\n FoodItem currentItem = this._stock[i];\n // if first, don't compare at all.\n if (i == 0) {\n smallestMaxTemp = currentItem.getMaxTemperature();\n biggestMinTemp = currentItem.getMinTemperature();\n }\n else {\n // check and set the smallest max and biggest min:\n smallestMaxTemp = Math.min(currentItem.getMaxTemperature(), smallestMaxTemp);\n biggestMinTemp = Math.max(currentItem.getMinTemperature(), biggestMinTemp);\n // check if there's no value between both values:\n if ((smallestMaxTemp - biggestMinTemp) < 0)\n // so the values are invalid, there's no range between so we'll return Integer.MAX_VALUE authout continuing.\n return Integer.MAX_VALUE;\n }\n }\n return biggestMinTemp;\n }", "public static int getFarhenheit(int temperature) {\n\t\t\n\t\tint farenResult = (temperature * 9/5)+ 32;\n\t\treturn farenResult;\n\t}", "public Double getIndoorTemperature() {\n return indoorTemperature;\n }", "public String getCpuTemperature_huawei(){\n\n String maxTemp = \"\";\n try {\n RandomAccessFile reader = new RandomAccessFile( \"/sys/class/thermal/thermal_zone1/temp\", \"r\" );\n\n boolean done = false;\n while ( ! done ) {\n String line = reader.readLine();\n if ( null == line ) {\n done = true;\n break;\n }\n maxTemp =line;\n }\n\n } catch ( IOException ex ) {\n ex.printStackTrace();\n }\n return String.valueOf(Double.parseDouble(maxTemp) / 1000);\n }", "private void eatCookedMeal(double eatingTime) {\n\t\t// Obtain the dry mass of the dessert\n\t\tdouble dryMass = cookedMeal.getDryMass();\n\t\t// Proportion of meal being eaten over this time period.\n\t\tdouble proportion = person.getEatingSpeed() * eatingTime;\n\n\t\tif (cumulativeProportion > dryMass) {\n\t\t\tdouble excess = cumulativeProportion - dryMass;\n\t\t\tcumulativeProportion = cumulativeProportion - excess;\n\t\t\tproportion = proportion - excess;\n\t\t}\n\n\t\tif (proportion > MIN) {\n\t\t\t// Add to cumulativeProportion\n\t\t\tcumulativeProportion += proportion;\n\t\t\t// Food amount eaten over this period of time.\n\t\t\tdouble hungerRelieved = RATIO * proportion / dryMass;\n\t\t\t\t\t\n//\t\t\tlogger.info(person + \" ate '\" + cookedMeal.getName()\n//\t\t\t\t\t+ \" currentHunger \" + Math.round(currentHunger*100.0)/100.0\n//\t\t\t\t\t+ \" hungerRelieved \" + Math.round(hungerRelieved*100.0)/100.0\n//\t\t\t\t\t+ \" proportion \" + Math.round(proportion*1000.0)/1000.0\n//\t\t\t\t\t+ \" EatingSpeed \" + Math.round(person.getEatingSpeed()*1000.0)/1000.0\n//\t\t\t\t\t+ \" foodConsumptionRate \" + Math.round(foodConsumptionRate*1000.0)/1000.0);\n\t\t\t\n\t\t\t// Change the hunger level after eating\n\t\t\treduceHunger(hungerRelieved);\n\t\n\t\t\t// Reduce person's stress over time from eating a cooked meal.\n\t\t\t// This is in addition to normal stress reduction from eating task.\n\t\t\tdouble stressModifier = STRESS_MODIFIER * (cookedMeal.getQuality() + 1D);\n\t\t\tdouble newStress = condition.getStress() + (stressModifier * eatingTime);\n\t\t\tcondition.setStress(newStress);\n\t\n\t\t\t// Add caloric energy from meal.\n\t\t\tdouble caloricEnergyFoodAmount = proportion / dryMass * PhysicalCondition.FOOD_COMPOSITION_ENERGY_RATIO;\n\t\t\tcondition.addEnergy(caloricEnergyFoodAmount);\n\t\t}\n\t}", "private void setHeatTemp(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_setHeatTemp\n\n String tempStr = this.heatTempTextField.getText();\n if (Double.parseDouble(tempStr) < 60.0 || Double.parseDouble(tempStr) > 80.0 ){\n\n System.out.println(\"Error. Please set a temperature between 60.0 - 80.0\");\n }else{\n // turn on heat and transmit the temp\n this.setTemp = Double.parseDouble(tempStr);\n this.turnOnHeat(Double.parseDouble(tempStr));\n }\n }", "public void setTemperature(int value) {\n\t\tthis.temperature = value;\n\t}", "private void getTemperature() {\r\n \t\r\n \t//Get the date from the DateService class\r\n \tDate theDate = theDateService.getDate(); \r\n \t\r\n \t//Increment the number of readings\r\n \tlngNumberOfReadings ++;\r\n \tdouble temp = 0.0;\r\n \tString rep = \"\";\r\n \t\r\n \t//Assume that the TMP36 is connected to AIN4\r\n \trep = this.theTemperatureService.readTemperature(\"4\");\r\n \tpl(rep);\r\n \ttemp = this.theTemperatureService.getTheTemperature();\r\n \t\r\n \t//All details necessary to send this reading are present so create a new TemperatureReading object\r\n \tTemperatureReading theReading = new TemperatureReading(temp, theDate, lngNumberOfReadings);\r\n \tthis.send(theReading);\r\n \t\r\n }", "public void calculatePointTemp(Point point) {\n WorldItem containedItem = point.getContainedItem();\n\n // Maintain temperature if the item here is flammable and on fire\n if (containedItem instanceof FlammableItem) {\n if (((FlammableItem) containedItem).isOnFire()) {\n return;\n }\n }\n\n // Temperature factors\n double radQDot = calcRadQDot(point);\n double convQDot = calcConvQDot(point);\n double totalQDot = radQDot + convQDot;\n\n point.setCurrentTemp(point.getCurrentTemp() + (KW_DEGREE_INCREASE * totalQDot));\n }", "double getTempo();", "private float getHeatOfVaporization(Fluid fluid) {\n\t\tif(fluid == null) { throw new IllegalArgumentException(\"Cannot pass a null fluid to getHeatOfVaporization\"); } // just in case\n\n\t\t// TODO: Make a registry for this, do a lookup\n\t\treturn 4f; // TE converts 1mB steam into 2 RF of work in a steam turbine, so we assume it's 50% efficient.\n\t}", "public double getTemperature(int frame, int res_cent) {\r\n\t\tdouble tempSpeed = this.getSpeed(frame, res_cent);\r\n\t\tdouble tempSpeed2 = tempSpeed * tempSpeed;\r\n\t\tdouble mass = 0.002; //kilogram per mole, assumed as 0.002 (2g/mol)\r\n\t\tdouble gas_constant = 8.314;// unit: J/(mol * K)\r\n\t\t\r\n\t\t//Apply the equation\r\n\t\tdouble temperatureK = tempSpeed2 * mass / gas_constant /3;\r\n\t\t\r\n\t\t//Apply logarithm to convert it to celcius\r\n\t\t//this is not an exact method but the speed of particles are\r\n\t\t//much slower than the gas particles in real life\r\n\t\tdouble temperatureC = Math.log(1000000*temperatureK);\r\n\t\t\r\n\t\treturn temperatureC ;\r\n\t}", "protected byte[] getMeasuredFloorTemperature() {return null;}", "public String getTemperatureInCelcius(float temp)\n {\n\n temp = ((temp - 32) * 5) / 9;\n\n return Float.toString(temp);\n }", "@SuppressWarnings(\"RedundantCast\")\n private static double calculateFoodPotential(AltoClef mod) {\n double potentialFood = 0;\n for (ItemStack food : mod.getItemStorage().getItemStacksPlayerInventory(true)) {\n potentialFood += getFoodPotential(food);\n }\n int potentialBread = (int) (mod.getItemStorage().getItemCount(Items.WHEAT) / 3) + mod.getItemStorage().getItemCount(Items.HAY_BLOCK) * 3;\n potentialFood += Objects.requireNonNull(Items.BREAD.getFoodComponent()).getHunger() * potentialBread;\n // Check smelting\n ScreenHandler screen = mod.getPlayer().currentScreenHandler;\n if (screen instanceof SmokerScreenHandler) {\n potentialFood += getFoodPotential(StorageHelper.getItemStackInSlot(SmokerSlot.INPUT_SLOT_MATERIALS));\n potentialFood += getFoodPotential(StorageHelper.getItemStackInSlot(SmokerSlot.OUTPUT_SLOT));\n }\n return potentialFood;\n }", "public String weather() {\r\n\t\treturn weather(random.nextInt(4));\r\n\t}", "public void cheat() {\r\n\t\t\t\tnourriture += population*10;\r\n\t\t\t\tarmee += population/2;\r\n\t\t\t\tpopulation += armee*tailleArmee;\r\n\t\t\t}", "public byte getTemperature_unit() throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\treturn __io__block.readByte(__io__address + 11);\n\t\t} else {\n\t\t\treturn __io__block.readByte(__io__address + 11);\n\t\t}\n\t}", "public static double convertKeltoCel(double temp){\r\n return temp - 273;\r\n }", "public boolean isValidTemperature() {\n\t\treturn false;\n\t}", "private double calculateTemp(){\n if (!((Double)mplTemp).isNaN() && !((Double)shtTemp).isNaN()){\n return (mplTemp + shtTemp)/2;\n }\n\n return Double.NaN;\n }", "public static float getCpuTemperature() throws IOException, InterruptedException, NumberFormatException {\n \treturn pi4jSystemInfoConnector.getCpuTemperature();\r\n }", "private int getPartialWingHeatBonus() {\n int bonus = 0;\n if (game != null) {\n switch (game.getPlanetaryConditions().getAtmosphere()) {\n case PlanetaryConditions.ATMO_VACUUM:\n bonus = 0;\n break;\n case PlanetaryConditions.ATMO_TRACE:\n bonus = 1;\n break;\n case PlanetaryConditions.ATMO_THIN:\n bonus = 2;\n break;\n case PlanetaryConditions.ATMO_STANDARD:\n bonus = 3;\n break;\n case PlanetaryConditions.ATMO_HIGH:\n bonus = 3;\n break;\n case PlanetaryConditions.ATMO_VHIGH:\n bonus = 3;\n break;\n default:\n bonus = 3;\n }\n } else {\n bonus = 3;\n }\n\n return bonus;\n }", "protected byte[] getMeasuredRoomTemperature() {return null;}", "public double calculateTemper(Double utilization)\n {\n float a = (float) 32.4031331148812;\n float b = (float) -0.105871112063592;\n float c = (float) 0.019012207217;\n float d = (float) -0.000103336673855697;\n double targetTemper = a + b * utilization + Math.pow(c,2) * utilization + Math.pow(d,3) * utilization;\n return targetTemper;\n }", "public double getTemp() {\n\t\treturn currentTemp;\n\t}", "public HLAfloat32BE getTemperature() { return this.temperature; }", "@NonNull\n public Integer getMinTemp() {\n return minTemp;\n }", "public float getTemperatureMax() {\n return temperatureMax;\n }", "public void setClimate(float temp, MaxThermostateMode mode, Date until) {\n\t\tif (until != null && config.mode == MaxThermostateMode.TEMPORARY)\n\t\t\tthrow new IllegalArgumentException(\"An until date may only be set in temporary mode.\");\n\n\t\tpersistence.beginTransaction();\n\n\t\t// validate and correct temperatures\n\t\tif (temp < MaxUtil.MIN_TEMPERATURE) {\n\t\t\ttemp = MaxUtil.MIN_TEMPERATURE;\n\t\t} else if (temp > MaxUtil.MAX_TEMPERATURE) {\n\t\t\ttemp = MaxUtil.MAX_TEMPERATURE;\n\t\t}\n\n\t\t// handle boost params\n\t\tif (mode == MaxThermostateMode.BOOST) {\n\t\t\t// save state before boost for a restore if boost is switched off via setBoostMode()\n\t\t\tif (config.mode != MaxThermostateMode.BOOST) {\n\t\t\t\tconfig.modeBeforeBoost = config.mode;\n\t\t\t}\n\t\t\tCalendar boostUntil = GregorianCalendar.getInstance();\n\t\t\tboostUntil.add(Calendar.MINUTE, config.boostDurationMins);\n\t\t\tconfig.boostUntil = boostUntil.getTime();\n\t\t} else {\n\t\t\tconfig.modeBeforeBoost = mode;\n\t\t}\n\n\t\t// handle auto mode params\n\t\tif (mode == MaxThermostateMode.AUTO) {\n\t\t\tuntil = null;\n\t\t\t// if the minimum temperature is given we correct the value to actual from the current week profile\n\t\t\tif (temp <= MaxUtil.MIN_TEMPERATURE) {\n\t\t\t\ttemp = getCurrentTemperatureFromWeekProfile();\n\t\t\t}\n\t\t}\n\n\t\t// handle maual mode\n\t\tif (mode == MaxThermostateMode.MANUAL) {\n\t\t\tuntil = null;\n\t\t}\n\n\t\t// common handling\n\t\tconfig.mode = mode;\n\t\tconfig.temperature = temp;\n\t\tconfig.temporaryUntil = until;\n\n\t\t// set time out marker to false\n\t\tfor (MaxComponent current : config.devices.values()) {\n\t\t\tif (current instanceof Thermostat) {\n\t\t\t\tcurrent.setTimedOut(false);\n\t\t\t}\n\t\t}\n\n\t\t// persist changes\n\t\tpersistence.commitTransaction();\n\n\t\t// send temperature to all thermostates. they should react automatically like their link partners. but sometimes they miss\n\t\t// an update. so get sure that all thermostates get their update\n\t\tfor (MaxComponent current : config.devices.values()) {\n\t\t\tif (current instanceof Thermostat) {\n\t\t\t\tMaxSetTemperatureMessage outMessage = new MaxMessageCreator(config).getSetTempForDevice(current.getAdress());\n\t\t\t\tqueueManager.putOutMessage(outMessage);\n\t\t\t\tSystem.out.println(\"Climate Manager - setClimate(): sending climate message:\\n\" + outMessage);\n\t\t\t}\n\t\t}\n\n\t\tcallBackMananger.roomConfigurationChanged();\n\t}", "public static Temperature getInitialTemperature(char inputValue) {\n\t\tdouble doubleValue;\n\t\tdoubleValue = TestTemperature.getTemperatureInput(\"Temperature :\");\n\t\tTemperature temp = createTemperature(inputValue, doubleValue);\n\t\treturn temp;\n\t}", "@Test\n public void shouldReturnMinimumAmbientAirTemperature() {\n\n Integer testInput = 0;\n Integer expectedValue = -40;\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 }", "public float getTemperatureInFahrenheit() {\n\t\tif(this.metric==Metric.CELSIUS) {\n\t\t\treturn(this.temperature*(9/5)+32);\n\t\t}else if(this.metric==Metric.KELVIN) {\n\t\t\treturn (9*(this.temperature - 273)/5 + 32);\n\t\t}\n\t\treturn this.temperature;\n\t\t\n\t}", "public float getCurrentTemp(){\n return currentTemp;\n }", "public void updateCelcius(){\n tempInC = ( (tempInF - 32)/9 ) * 5;\n }", "public double getTemp(){\n return currentTemp;\n }", "public int getheat_setting()\n {\n return heat_setting;\n }", "public double getBeerXmlStandardTunSpecHeat() {\n return this.tunSpecificHeat;\n }", "int surfaceTemperature(C config);", "public double getHigh(){\n return /*home*/ this.high /*and eat everything*/;\r\n //then go to sleep for a day or three \r\n }" ]
[ "0.6981907", "0.6510981", "0.6452902", "0.63965166", "0.6381603", "0.6381517", "0.6301702", "0.6291674", "0.6233554", "0.61957365", "0.6187263", "0.6178402", "0.60796416", "0.6065215", "0.604229", "0.6028819", "0.601069", "0.60025364", "0.60005444", "0.59887785", "0.5955262", "0.59427935", "0.5939542", "0.593524", "0.5930519", "0.5924024", "0.5915974", "0.5908136", "0.589589", "0.5870937", "0.5868679", "0.58647186", "0.58574784", "0.58518195", "0.58489275", "0.5842865", "0.58371454", "0.5831878", "0.582138", "0.5821009", "0.5820329", "0.58148724", "0.5812064", "0.58068144", "0.5803207", "0.5796978", "0.57951456", "0.57853925", "0.57822657", "0.57595134", "0.57381123", "0.5729169", "0.5728085", "0.5715326", "0.5714084", "0.5696748", "0.56899697", "0.5683855", "0.5682163", "0.5676442", "0.5674517", "0.566999", "0.56574625", "0.56347454", "0.5631417", "0.5625835", "0.56244206", "0.56164134", "0.5605681", "0.5603744", "0.55825883", "0.55735326", "0.5563506", "0.5561081", "0.5554134", "0.5549864", "0.55464226", "0.5543562", "0.55336416", "0.5527521", "0.5517762", "0.5511058", "0.550734", "0.5504274", "0.5496646", "0.5495652", "0.5481351", "0.547794", "0.5477854", "0.5470697", "0.5469148", "0.5464741", "0.54625595", "0.5459081", "0.5458747", "0.54532605", "0.54492927", "0.5436087", "0.54352087", "0.5432496" ]
0.6547842
1
/ Servico que faz um delete logico na entidade ItemRetirada
public void deleteLogico(Long itemRetiradaId) { ItemRetirada itemRetirada = this.repository.findById(itemRetiradaId).get(); this.itemService.atualizaEstoque(itemRetirada, Servico.ENTRADA); this.repository.deleteLogico(itemRetiradaId); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void deleteItem(Object toDelete) {}", "@Override\n\tpublic void delete(Object entidade) {\n\t\t\n\t}", "public abstract boolean delete(Log log) throws DataException;", "@Override\n\tpublic Item delete() {\n\t\treadAll();\n\t\tLOGGER.info(\"\\n\");\n\t\t//user can select either to delete a customer from system with either their id or name\n\t\tLOGGER.info(\"Do you want to delete record by Item ID\");\n\t\tlong id = util.getLong();\n\t\titemDAO.deleteById(id);\n\t\t\t\t\n\t\t\t\t\n\t\treturn null;\n\t}", "public void deleteItem() {\n\t\t\tAsyncCallback<BmUpdateResult> callback = new AsyncCallback<BmUpdateResult>() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-deleteItem(): ERROR \" + caught.toString());\n\t\t\t\t}\n\n\t\t\t\t@Override\n\t\t\t\tpublic void onSuccess(BmUpdateResult result) {\n\t\t\t\t\tstopLoading();\n\t\t\t\t\tprocessItemDelete(result);\n\t\t\t\t}\n\t\t\t};\n\n\t\t\t// Llamada al servicio RPC\n\t\t\ttry {\n\t\t\t\tif (!isLoading()) {\n\t\t\t\t\tstartLoading();\n\t\t\t\t\tgetUiParams().getBmObjectServiceAsync().delete(bmoRequisitionItem.getPmClass(), bmoRequisitionItem, callback);\n\t\t\t\t}\n\t\t\t} catch (SFException e) {\n\t\t\t\tstopLoading();\n\t\t\t\tshowErrorMessage(this.getClass().getName() + \"-deleteItem(): ERROR \" + e.toString());\n\t\t\t}\n\t\t}", "@Override\n\tpublic boolean delete(Item obj) {\n\t\ttry{\n\t\t\tString query=\"DELETE FROM items WHERE id = ?\";\n\t\t\tPreparedStatement state = conn.prepareStatement(query,ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);\n\t\t\tstate.setInt(1, obj.getIndex());\n\t\t\tint nb_rows = state.executeUpdate();\n\t\t\tSystem.out.println(\"Deleted \"+nb_rows+\" lines\");\n\t\t\tstate.close();\n\t\t\t\n\t\t\t// Notify the Dispatcher on a suitable channel.\n\t\t\tthis.publish(EntityEnum.ITEM.getValue());\n\t\t\t\n\t\t\treturn true;\n\t\t} catch (SQLException e){\n\t\t\tJOptionPane jop = new JOptionPane();\n\t\t\tjop.showMessageDialog(null, e.getMessage(),\"PostgreSQLItemDao.delete -- ERROR!\",JOptionPane.ERROR_MESSAGE);\n\t\t\treturn false;\n\t\t} catch (Exception e){\n\t\t\te.printStackTrace();\n\t\t\treturn false;\n\t\t}\t\n\t}", "private void excluirAction() {\r\n Integer i = daoPedido.excluir(this.pedidoVO);\r\n\r\n if (i != null && i > 0) {\r\n msg = activity.getString(R.string.SUCCESS_excluido, pedidoVO.toString());\r\n Toast.makeText(activity, msg + \"(\" + i + \")\", Toast.LENGTH_SHORT).show();\r\n Log.i(\"DB_INFO\", \"Sucesso ao Alterar: \" + this.pedidoVO.toString());\r\n\r\n// this.adapter.remove(this.pedidoVO);\r\n this.refreshData(2);\r\n } else {\r\n msg = activity.getString(R.string.ERROR_excluir, pedidoVO.toString());\r\n Toast.makeText(activity, msg, Toast.LENGTH_SHORT).show();\r\n Log.e(\"DB_INFO\", \"Erro ao Excluir: \" + this.pedidoVO.toString());\r\n }\r\n }", "@Override\n public void deleteItem(P_CK t) {\n \n }", "@Override\n\tpublic void delete(MedioPago entidad) {\n\t\t\n\t}", "@Override\n public int delete( J34SiscomexOrigemDi j34SiscomexOrigemDi ) {\n return super.doDelete(j34SiscomexOrigemDi);\n }", "@Override\n\tpublic void delete(Medico i) throws Exception {\n\t\t\n\t}", "void deleteItem(IDAOSession session, int id);", "public DeleteItemOutcome deleteItem(PrimaryKey primaryKey);", "@Override\n public int delete( J34SiscomexMercadoriaAdi j34SiscomexMercadoriaAdi ) {\n return super.doDelete(j34SiscomexMercadoriaAdi);\n }", "@Override\n\tpublic void delete(CorsoDiLaurea corso) {\n\t\t\n\t}", "public void delete(MainItemOrdered mainItemOrdered);", "@Override\n @LogMethod\n public void delete(long id) throws InventoryException {\n T entity = repository.getByKey(id);\n repository.delete(entity);\n }", "@Override\r\npublic int delete(int id) {\n\treturn detalle_pedidoDao.delete(id);\r\n}", "@Override\n\t@RequestMapping(value=ZuelControllerValue.Manage+\"deleteItem\")\n\tpublic ZuelResult deleteItem(Long id) throws Exception {\n\t\treturn service.deleteItem(id);\n\t}", "@Override\r\n\tpublic int delete(ActionContext arg0) throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\r\n\t\tpublic boolean deleteItem() {\n\t\t\treturn false;\r\n\t\t}", "public Integer DeletarTodos(){\n\n //REMOVENDO OS REGISTROS CADASTRADOS\n return databaseUtil.GetConexaoDataBase().delete(\"tb_log\",\"log_ID = log_ID\",null);\n\n }", "void onItemDeleted();", "@Override\n\tpublic void delete(Unidade obj) {\n\n\t}", "public Boolean execDeleteByFK(String fk){\n System.out.println(\"InterventoLogics - execDeleteByFK: \"+ fk);\n ContentInterventoRequestBean req = new ContentInterventoRequestBean();\n req.setFk(fk);\n InterventoClient client = new InterventoClient(req);\n\n try {\n //CERCO L'UUID\n client.getByFk();\n List<InterventoWorkableBean> reqList = client.getResList();\n\n //ELIMINO SE CONTENUTO è PRESENTE\n if(!reqList.isEmpty()){\n System.out.println(\"Contenuto trovato - execDeleteByFK: \"+ fk);\n req.setUuid(reqList.get(0).getUuid());\n client = new InterventoClient(req);\n client.del();\n }else{\n System.out.println(\"Contenuto non trovato - execDeleteByFK: \"+ fk);\n return false;\n }\n }catch(Exception e){\n e.printStackTrace();\n return false;\n }\n return true;\n }", "public void operationDelete() {\n\r\n\t\tstatusFeldDelete();\r\n\t}", "public void delete(ItemsPk pk) throws ItemsDaoException;", "@Override\n\tpublic String delete() throws Exception {\n\t\treturn null;\n\t}", "public void delete(TipologiaStrutturaPk pk) throws TipologiaStrutturaDaoException;", "@Override\n public void delete(ClientAuditTrailHolder oldObj_) throws Exception\n {\n\n }", "@Override\n\tprotected String onDelete(HttpServletRequest req, HttpServletResponse resp, FunctionItem fi,\n\t\t\tHashtable<String, String> params, String action, L l, S s) throws Exception {\n\t\treturn null;\n\t}", "@Override\n\tpublic void deleteDBDlItemById(long paramLong)\n\t{\n\n\t}", "@Override\n\tpublic void delete(BatimentoCardiaco t) {\n\t\t\n\t}", "public void eliminar(Producto producto) throws IWDaoException;", "@RequestMapping(value=\"/deleteitem.htm\")\n\t@ResponseBody\n\tpublic String deleteItem(HttpServletRequest request,HttpServletResponse response) throws Exception{\n\t\tlog.info(\"inside deleteItem()\");\n\t\tJSONObject obj=new JSONObject();\n\t\tString error=null;\n\t\ttry{\n\t\t\tString status=\"NOT DELETED\";\n\t\t\tJSONObject json=JsonParser.getJson(request, response);\n\t\t\tSystem.out.println(json.toString());\n\t\t\tSystem.out.println(request.getHeaderNames());\n\t\t\tSystem.out.println(request.getContentLength()+request.getContentType());\n\t\t\tInteger itemId=json.getInt(\"itemid\");\n\t\t\tSystem.out.println(itemId);\n\t\t\tthis.itemService.deleteItem(itemId);\n\t\t\tstatus=\"DELETED ITEM\";\n\t\t\tobj.accumulate(\"status\", status);\n\t\t\treturn obj.toString();\t\n\t\t}\n\t\tcatch(ItemNotFoundException e){\n\t\t\t\n\t\t\tString message=\"Item Not Found\";\n\t\t\tlog.error(message+\"\"+e.toString());\n\t\t\tobj.accumulate(\"status\", message);\n\t\t\treturn obj.toString();\n\t\t\t\n\t\t}\n\t\tcatch(Exception e){\n\t\t\t\n\t\t\tlog.error(\"Error While Deleting Item\"+e.toString());\n\t\t\tobj.accumulate(\"status\", \"some error while deleting item\");\n\t\t\treturn obj.toString();\n\t\t}\n\t}", "public void delete(HrCStatitem entity);", "public void eliminar(CategoriaArticuloServicio categoriaArticuloServicio)\r\n/* 24: */ {\r\n/* 25:53 */ this.categoriaArticuloServicioDao.eliminar(categoriaArticuloServicio);\r\n/* 26: */ }", "@Override\n\tpublic int delete(PrestationCDI obj) throws DAOException {\n\t\treturn 0;\n\t}", "protected abstract void doDelete();", "public DeleteItemOutcome deleteItem(DeleteItemSpec spec);", "@Override\r\n\tpublic void delete(int eno) {\n\r\n\t}", "@Override\n\tpublic void delete(Long arg0) {\n\n\t}", "@Override\n\tpublic void delete(Long arg0) {\n\n\t}", "void checkItemForDelete(Object item, java.sql.Statement stmt) throws PrismsRecordException;", "public void delete(DatiBancariPk pk) throws DatiBancariDaoException;", "void deleteAveria(Long idAveria) throws BusinessException;", "@DeleteMapping(\"/produtos/{id}\")\n @Timed\n public ResponseEntity<Void> deleteProduto(@PathVariable Long id) {\n log.debug(\"REST request to delete Produto : {}\", id);\n\n//////////////////////////////////REQUER PRIVILEGIOS\n if (PrivilegioService.podeDeletar(cargoRepository, ENTITY_NAME)) {\n produtoRepository.delete(id);\n } else {\n log.error(\"TENTATIVA DE EXCUIR SEM PERMISSÃO BLOQUEADA! \" + ENTITY_NAME + \" : {}\", id);\n return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, \"privilegios insuficientes.\", \"Este usuario não possui privilegios sufuentes para deletar esta entidade.\")).body(null);\n }\n//////////////////////////////////REQUER PRIVILEGIOS\n return ResponseEntity.ok().headers(HeaderUtil.createEntityDeletionAlert(ENTITY_NAME, id.toString())).build();\n }", "private void deleteitem() {\n if (mCurrentItemInfoUri != null) {\n DialogInterface.OnClickListener yesButtonClickListener =\n new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialogInterface, int i) {\n mProgressbarView.setVisibility(View.VISIBLE);\n ContentValues values = null;\n new updateDeleteItemToDbTask().execute(values);\n }\n };\n // Show dialog that there are unsaved changes\n showConfirmationDeleteDialog(yesButtonClickListener);\n }\n }", "@Override\n\tpublic void delete(Translator entity) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Pedido arg0) {\n\n\t}", "@Override\r\n\tpublic int delete() throws Exception {\n\t\treturn 0;\r\n\t}", "@Override\r\n\tpublic void delete(Long arg0) {\n\t\t\r\n\t}", "@Override\n\tpublic void softDelete(Registro registro) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Long arg0) {\n\t\t\n\t}", "@Override\n\tpublic void excluir(Produto entidade) {\n\n\t}", "void onDeleteItem(E itemElementView);", "public void eliminarTipoPago(String codTipoPago) throws Exception {\n if (this.tiposPagos.containsKey(codTipoPago)) {\r\n this.generarAuditoria(\"BAJA\", \"TIPOPAGO\", codTipoPago, \"\", GuiIngresar.getUsuario());\r\n this.tiposPagos.remove(codTipoPago);\r\n setChanged();\r\n notifyObservers();\r\n //retorno = true;\r\n } else {\r\n throw new Exception(\"El tipo pago no Existe\");\r\n }\r\n //return retorno;\r\n }", "public void eliminar(Long id) throws AppException;", "public Integer Excluir(int ID){\n\n //EXCLUINDO REGISTRO E RETORNANDO O NÚMERO DE LINHAS AFETADAS\n return databaseUtil.GetConexaoDataBase().delete(\"tb_log\",\"log_ID = ?\", new String[]{Integer.toString(ID)});\n }", "public int delete( Integer idConge ) ;", "@Override\n\tpublic int delete(ReplyVO vo) throws Exception {\n\t\tlog.info(\"delete().vo : \" + vo);\n\t\treturn mapper.delete(vo);\n\t}", "public void deleteParticipacao(Integer id) {\n participacaoRepository.deleteById(id);\n //listClient();\n \n}", "@Override\n\tpublic void delete(Iscrizioni o)\n\t\t\tthrows ClassNotFoundException, SQLException, NotHandledTypeException, NamingException, ParseException {\n\t\tIscrizioni i = em.find(Iscrizioni.class, o.getIdIscrizione());\n\t\tem.remove(i);\n//\t\tObject[] campi = { o.getIdIscrizione() };\n//\t\tString sql = \"DELETE FROM `iscrizioni` WHERE `idIscrizione` = ? \";\n//\t\tDBHandler dbHandler = new DBHandler();\n//\t\tdbHandler.sql(sql, campi);\n\t}", "@Override\n\t@Action(\"delete\")\n\t@LogInfo(optType=\"删除\")\n\tpublic String delete() throws Exception {\n\t\ttry {\n\t\t\tString str=sampleManager.deleteEntity(deleteIds);\n\t\t\tStruts2Utils.getRequest().setAttribute(LogInfo.MESSAGE_ATTRIBUTE, \"删除数据:单号:\"+str);\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t\trenderText(\"删除失败:\" + e.getMessage());\n\t\t\tlog.error(\"删除数据信息失败\",e);\n\t\t}\n\t\treturn null;\n\t}", "@Override\n\tpublic int delete(String id) {\n\t\treturn sysActionLogDao.delete(id);\n\t}", "public String eliminar()\r\n/* 88: */ {\r\n/* 89: */ try\r\n/* 90: */ {\r\n/* 91:101 */ this.servicioMotivoLlamadoAtencion.eliminar(this.motivoLlamadoAtencion);\r\n/* 92:102 */ addInfoMessage(getLanguageController().getMensaje(\"msg_info_eliminar\"));\r\n/* 93: */ }\r\n/* 94: */ catch (Exception e)\r\n/* 95: */ {\r\n/* 96:104 */ addErrorMessage(getLanguageController().getMensaje(\"msg_error_eliminar\"));\r\n/* 97:105 */ LOG.error(\"ERROR AL ELIMINAR DATOS\", e);\r\n/* 98: */ }\r\n/* 99:107 */ return \"\";\r\n/* 100: */ }", "private void delete() {\n\n\t}", "@Override\r\n\tpublic void delete(Integer arg0) {\n\t\t\r\n\t}", "private Delete() {}", "private Delete() {}", "void onDeleteSuccess(int position);", "public void eliminarMensaje(InfoMensaje m) throws Exception;", "@Override\n public void delete(LineEntity entity) {\n\n }", "@Override\n\tpublic void delete() {\n\n\t}", "@Override\n public void delete(Long id) throws Exception {\n\n }", "void onItemDelete(int position);", "int deleteByPrimaryKey(String itemFlow);", "public void delete(CbmCItemFininceItem entity);", "private void onItemDeleted() {\n Log.i(\"BasketFragment\",\"deleted\");\n }", "@Override\n\tpublic void delete(Integer arg0) {\n\t\t\n\t}", "@Override\r\n\tpublic void eliminar(Long idRegistro) {\n\t\t\r\n\t}", "@Override\n public void delete(ReporteAccidente rep) {\n repr.delete(rep);\n }", "@Override\r\n\tpublic void delete(int r_idx) throws Exception {\n\r\n\t}", "@Override\n\tpublic void delete(String id) throws Exception {\n\n\t}", "@Override\r\n\tpublic void del(Integer id) {\n\t\t\r\n\t}", "@Override\r\n\tpublic String delete() {\n\t\treturn \"delete\";\r\n\t}", "public OrderItem deleteOrderItem(OrderItem orderItem)\n\t{\n\t\tif(findOrderItemById(orderItem.getId())==null)\n\t\t{\n\t\t\tSystem.out.println(\"Comanda si produsele care se doresc sterse nu exista\");\n\t\t\treturn null;\n\t\t}\n\t\tOrderItem orderIt=orderItemDAO.delete(orderItem);\n\t\treturn orderIt;\n\t}", "@Override\n public void onClick(DialogInterface dialogInterface, int i) {\n new AgendamentoDAO(MainActivity.this).delete(agendamentos.get(position));\n\n // Remover o item da lista de agendamentos que está em memória\n agendamentos.remove(position);\n\n // Atualizar lista\n adapter.notifyItemRemoved(position);\n\n // Avisar o usuário\n Toast.makeText(MainActivity.this, R.string.agendamento_excluido, Toast.LENGTH_LONG).show();\n }", "@Override\n\t\tpublic void delete() {\n\n\t\t}", "public int delete(o dto);", "public DeleteItemOutcome deleteItem(String hashKeyName, Object hashKeyValue);", "@Override\n\tpublic void delete(Recipe entity) {\n\t\t\n\t}", "public Inventory inventoryDelete (TheGroceryStore g, LinkedList<Inventory> deleter) throws ItemNotFoundException;", "@Override\n\tpublic void doDelete(String product) throws SQLException {\n\t\t\n\t}", "@Override\n\tpublic void remover(int idServico) throws SQLException {\n\t\t\n\t}", "@Override\n\tpublic void remover(Parcela entidade) {\n\n\t}", "void onDelete();", "public void deleteEquipoComunidad(EquipoComunidad equipoComunidad);", "int deleteByPrimaryKey(String idTipoComprobante) throws SQLException;", "@Override\n\tpublic void delete(Serializable id) {\n\n\t}" ]
[ "0.70666236", "0.69546837", "0.6950299", "0.6868034", "0.68215406", "0.6812205", "0.67653143", "0.67561686", "0.6697838", "0.6677535", "0.6664929", "0.65911585", "0.65751845", "0.65511185", "0.6523369", "0.6491416", "0.6489318", "0.64868426", "0.64615196", "0.64491665", "0.6445448", "0.64398617", "0.6426061", "0.6415266", "0.6414004", "0.6385145", "0.6374537", "0.6364458", "0.63630563", "0.6334769", "0.6329974", "0.6328913", "0.6301167", "0.6299096", "0.629613", "0.6291237", "0.6287553", "0.6287525", "0.6286408", "0.6273212", "0.62627274", "0.62541145", "0.62541145", "0.62522507", "0.6246559", "0.6241681", "0.62359387", "0.6235643", "0.622862", "0.6216669", "0.62091374", "0.62017524", "0.6188109", "0.61873204", "0.61609966", "0.6158696", "0.615641", "0.615175", "0.6151599", "0.61508155", "0.6150595", "0.6147035", "0.61409026", "0.61310697", "0.6126234", "0.6124696", "0.6119328", "0.6119256", "0.61092997", "0.61092997", "0.6107468", "0.6105409", "0.6105334", "0.61043173", "0.6101704", "0.61015457", "0.6097547", "0.60951626", "0.6087248", "0.6086896", "0.6086485", "0.6085131", "0.6085079", "0.6078869", "0.607368", "0.6072125", "0.6070349", "0.6070203", "0.6069256", "0.6066034", "0.6061222", "0.6054958", "0.6047704", "0.60471016", "0.6046417", "0.60411024", "0.60357785", "0.60287744", "0.60261524", "0.6025017" ]
0.7639893
0
36: invokevirtual 38 // Method myMethod1:(Ljava/lang/Integer;Ljava/lang/Double;Ljava/lang/String;Lmethod/analyzer/ParentClass;IDFC)V
public List<Method> getInvokedMethods(List<String> byteCodeLines) { byteCodeLines = trimByteCodeLines(byteCodeLines); List<Method> invokedMethods = new ArrayList<Method>(); String methodIdentifierKeyword = "// Method"; for (String line : byteCodeLines) { if (line.contains(methodIdentifierKeyword) && !line.contains("\"<init>\"")) { String invokedMethodCallString = line.substring( line.indexOf(methodIdentifierKeyword) + methodIdentifierKeyword.length()).trim(); invokedMethods.add(new Method(invokedMethodCallString, new InvokedMethodParser())); } } return invokedMethods; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void myMethod2() {\n\t\t\n\t}", "@Override\n\tpublic void javaMethodBaseWithTwoParams(long longParam, double doubleParam) {\n\t\t\n\t}", "public class_1036 method_2126(class_689 param1, double param2, double param4, double param6, float param8, boolean param9, boolean param10) {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\n\tpublic void myMethod() {\n\t\t\n\t}", "protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_2259(String param1, double param2, double param4, double param6, int param8, double param9, double param11, double param13, double param15) {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\r\n\tpublic void method1() {\n\t}", "@Override\r\n\tpublic void method1() {\n\t\t\r\n\t\tSystem.out.println(\"method1\");\r\n\t\t\r\n\t}", "private static class_1205 method_6442(String param0, int param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method1()\r\n\t{\r\n\t}", "@Override\n\tpublic void VisitMethodCallNode(MethodCallNode Node) {\n\n\t}", "@Override\r\n\tpublic void Method1() {\n\t\t\r\n\t}", "private java.lang.reflect.Method m16124a(java.lang.Class r3, java.lang.String r4, java.lang.Class[] r5) {\n /*\n r2 = this;\n r0 = 0\n if (r3 == 0) goto L_0x0028\n boolean r1 = r2.m16125a((java.lang.Object) r4)\n if (r1 == 0) goto L_0x000a\n goto L_0x0028\n L_0x000a:\n r3.getMethods() // Catch:{ Exception -> 0x0015 }\n r3.getDeclaredMethods() // Catch:{ Exception -> 0x0015 }\n java.lang.reflect.Method r3 = r3.getDeclaredMethod(r4, r5) // Catch:{ Exception -> 0x0015 }\n return r3\n L_0x0015:\n java.lang.reflect.Method r3 = r3.getMethod(r4, r5) // Catch:{ Exception -> 0x001a }\n return r3\n L_0x001a:\n java.lang.Class r1 = r3.getSuperclass()\n if (r1 == 0) goto L_0x0028\n java.lang.Class r3 = r3.getSuperclass()\n java.lang.reflect.Method r0 = r2.m16124a((java.lang.Class) r3, (java.lang.String) r4, (java.lang.Class[]) r5)\n L_0x0028:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.onesignal.shortcutbadger.impl.OPPOHomeBader.m16124a(java.lang.Class, java.lang.String, java.lang.Class[]):java.lang.reflect.Method\");\n }", "public void method_1883(class_64 var1) {\r\n var1.method_279(this);\r\n }", "public class_1293 method_7079(Class param1, String param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void method_115() {}", "public void method1() {\n }", "public void method_7080(String param1, class_1293 param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "public abstract void method1();", "@Override\n public double callJavaMath(String methodName, Object[] args) {\n\treturn 0;\n }", "private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\n\tpublic String visitMethodCall(MethodCallContext ctx) {\n\t\tint childrenNo=ctx.children.size();\n\t\tParseTree lastChild=ctx.children.get(childrenNo-1);\n\t\tString returnType;\n\t\tString methodName;\n\t\tif(lastChild instanceof TerminalNode){\n\t\t\tList<String> argTypes=new ArrayList<>();\n\t\t\tStack<String> ids=new Stack<>();\n\t\t\tParseTree n=ctx.children.get(childrenNo-2);\n\t\t\tif (childrenNo<=4){\n\t\t\t\tif(!(n instanceof TerminalNode)){\n\t\t\t\t\tmethodName=ctx.getChild(childrenNo-4).getText();\n\t\t\t\t\tMethodRecord mRec=(MethodRecord) table.lookup(methodName);\n\t\t\t\t\tif (mRec==null)throw new RuntimeException(\"method \"+methodName+ \" is not declared\");\n\t\t\t\t\tList<VarRecord> paramList=(List<VarRecord>) mRec.getParameters();\n\t\t\t\t\tList<ParseTree> arguments= new ArrayList<>();\n\t\t\t\t\tfor(int i=0;i<=n.getChildCount();i+=2){\n\t\t\t\t\t\targuments.add(n.getChild(i));\n\t\t\t\t\t}\n\t\t\t\t\tif(paramList.size()!=arguments.size())throw new RuntimeException(\"Incorrect number of arguments\");\n\t\t\t\t\telse for(int i=0;i<=paramList.size()-1;i++){\n\t\t\t\t\t\tString actualType=visit(arguments.get(i));\n\t\t\t\t\t\tString declaredType=paramList.get(i).getReturnType();\n\t\t\t\t\t\tif(!actualType.equals(declaredType)) throw new RuntimeException(\"Incorrect argument type\");\n\t\t\t\t\t}//checking arguments complete\n\t\t\t\t\treturn mRec.getReturnType();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tClassRecord cRec;\n\t\t\t\t\t\tmethodName=ctx.getChild(childrenNo-3).getText();\n\t\t\t\t\t\tcRec=(ClassRecord) table.lookup(methodName);\n\t\t\t\t\t\tMethodRecord mRec=cRec.getMethod(methodName);\n\t\t\t\t\t\tif (mRec==null)throw new RuntimeException(\"method \"+methodName+ \" is not declared\");\n\t\t\t\t\t\treturn mRec.getReturnType();\n\t\t\t\t\t}\n\t\t\t}else \n\t\t\tif(!(n instanceof TerminalNode)){\n\t\t\t\tmethodName=ctx.getChild(childrenNo-4).getText();\n\t\t\t\t//checking charAt(i) \n\t\t\t\tif(methodName.equals(\"charAt\")){\n\t\t\t\t\tif(n.getChildCount()!=1) throw new RuntimeException(\"Incorrect number of arguments on charAt()function\");\n\t\t\t\t\telse {\n\t\t\t\t\t\tString charArgType=visit(n);\t\t//check argument type is int\n\t\t\t\t\t\tif (!charArgType.equals(\"int\")) throw new RuntimeException(\"ARgument i on function charAt(i) must be of type int\");\n\t\t\t\t\t}\n\t\t\t\t\tString objectType=table.lookup(ctx.getChild(childrenNo-6).getText()).getReturnType();\n\t\t\t\t\tif (!objectType.equals(\"String\")) throw new RuntimeException(\".charAt(i) is applicable only to Strings\");\n\t\t\t\t}\n\t\t\t\tfor(int i=0;i<=n.getChildCount();i+=2){\n\t\t\t\t\targTypes.add(visit(n.getChild(i)));\n\t\t\t\t}\n\t\t\tfor(int i=childrenNo-4;i>=0;i-=2){\n\t\t\t\tids.push(ctx.getChild(i).getText());\n\t\t\t}\n\t\t\t}else{ \n\t\t\t\t//checking .length()\n\t\t\t\tmethodName=ctx.getChild(childrenNo-3).getText();\n\t\t\t\tif(methodName.equals(\"length\")){\n\t\t\t\t\tString objectType=table.lookup(ctx.getChild(childrenNo-5).getText()).getReturnType();\n\t\t\t\t\tif (!objectType.equals(\"String\")) throw new RuntimeException(\".length() is applicale only to Strings\");\n\t\t\t\t}\n\t\t\t\targTypes=null;\n\t\t\t\tfor(int i=childrenNo-3;i>=0;i-=2){\n\t\t\t\t\tids.push(ctx.getChild(i).getText());\n\t\t\t\t}\n\t\t\t}\n\t\t\tint count=ids.size();\n\t\t\tClassRecord cRec=null;\n\t\t\tRecord r;\n\t\t\tfor(int i=0;i<=count-2;i++){\n\t\t\t\tString key=ids.pop();\n\t\t\t\tr= table.lookup(key);\t\t\t\t\n\t\t\t\tcRec=(ClassRecord)table.lookup(r.Type);\n\t\t\t\tif (cRec==null) throw new RuntimeException(\"Class \"+key+\" is not declared\");\t\t\t\t\n\t\t\t}\n\t\t\t//last item in stack is the method Identifier\n\t\t\tMethodRecord mRec=cRec.getMethod(ids.pop());\n\t\t\tif (mRec==null)throw new RuntimeException(\"Method not declared in class \"+cRec.getName());\n\t\t\treturnType=mRec.getReturnType();\n\t\t\tif(methodName.equals(\"charAt\")) returnType=\"char\";\n\t\t\tif(methodName.equals(\"length\"))returnType=\"int\";\n\t\t\t//checking arguments \n\t\t\tif(argTypes==null) return returnType;\n\t\t\telse {\t\t\t\t\n\t\t\t\tList<VarRecord> parameters=(List<VarRecord>) mRec.getParameters();\n\t\t\t\tif(parameters.size()!=argTypes.size()) throw new RuntimeException(\"Incorect number of arguments on method call\");\n\t\t\t\telse{\n\t\t\t\t\tfor(int i=0;i<argTypes.size();i++){\n\t\t\t\t\t\tif(!argTypes.get(i).equals((parameters.get(i).getReturnType()))) throw new RuntimeException (\"incorrect argument type\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} return returnType;\n\t\t}\telse \t\t\t\t\t\t// last node is a RuleNode\n\t\t\t{\n\t\t\t\tif (childrenNo==3){\t\t\t\t\t\n\t\t\t\tString leftType=visit(ctx.getChild(0)); //also checks the first method for undeclared ids\n\t\t\t\t//ClassRecord cRec=(ClassRecord) table.lookup(ctx.getChild(0).getText());\n\t\t\t\tParseTree node=ctx.getChild(2);\n\t\t\t\t//checking charAt function\n\t\t\t\tif((node.getChildCount()==4)&&(node.getChild(3) instanceof TerminalNode)){\t\t\t\n\t\t\t\t\tif (node.getChild(0).getText().equals(\"charAt\")){\n\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"charAt() only applicable to Strings\");\n\t\t\t\t\t\tString argType=visit(node.getChild(2));\n\t\t\t\t\t\tif (!argType.equals(\"int\")) throw new RuntimeException(\"Incorrect argument in charAt()\");\n\t\t\t\t\t\treturn \"char\";\n\t\t\t\t\t}\n\t\t\t\t}else if(node.getChildCount()==3&&((node.getChild(2) instanceof TerminalNode))){\n\t\t\t\t\tif(node.getChild(0).getText().equals(\"length\")){\n\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"length() only applicable to Strings\");\n\t\t\t\t\t\telse return \"int\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t{String mName=ctx.getChild(2).getChild(0).getText();\n\t\t\t\tClassRecord tempCR=(ClassRecord) table.lookup(ctx.getChild(0).getChild(0).getText());\n\t\t\t\tMethodRecord mRec=tempCR.getMethod(mName);\n\t\t\t\tif(mRec==null)throw new RuntimeException(\"method \"+mName+\" is not declared in class \"+tempCR.getName());\n\t\t\t\treturn mRec.getReturnType(); //visit the last methodCall in the chain \n\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (childrenNo==5){\n\t\t\t\t\tString leftType=visit(ctx.getChild(1)); //also checks the first method for undeclared ids\n\t\t\t\t\tParseTree node=ctx.getChild(4);\n\t\t\t\t\t//checking charAt function\n\t\t\t\t\tif((node.getChildCount()==4)&&(node.getChild(3) instanceof TerminalNode)){\t\t\t\n\t\t\t\t\t\tif (node.getChild(0).getText().equals(\"charAt\")){\n\t\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"charAt() only applicable to Strings\");\n\t\t\t\t\t\t\telse return visit(node);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else if(node.getChildCount()==3&&((node.getChild(2) instanceof TerminalNode))){\n\t\t\t\t\t\tif(node.getChild(0).getText().equals(\"length\")){\n\t\t\t\t\t\t\tif (!leftType.equals(\"String\")) throw new RuntimeException(\"length() only applicable to Strings\");\n\t\t\t\t\t\t\telse return visit(node);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tClassRecord cR=(ClassRecord)table.lookup(leftType);\n\t\t\t\t\tMethodRecord mRec=cR.getMethod(node.getChild(0).getText());\n\t\t\t\t\treturn mRec.getReturnType(); //visit the last methodCall in the chain \n\t\t\t\t}\n\t\t\t}\n\t\treturn null; //debuggin purposes. should be unreachable\n\t}", "static void method1()\r\n {\n }", "@Override\r\n\tpublic void method2() {\n\t\tSystem.out.println(\"method2....\");\r\n\t}", "public void amethod() {\n\t}", "public int method_7084(String param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "void method1();", "public void method_2111(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\r\n\tpublic void Method2() {\n\t\t\r\n\t}", "@Override\n\tpublic void method1() {\n\t\tSystem.out.println(\"Hello from MyInterface1 method1() x = \"+MyInterface1.X);\n\t}", "public String visit(MessageSend n, MethodType argu) {\r\n\r\n //argu.SetTransferedArg();\r\n String temp1 = n.f0.accept(this, argu);\r\n this.callCounter++;\r\n String classType = this.callMap.get(callCounter);\r\n //String classType = argu.getThisType();\r\n //argu.CleanTransferedArg();\r\n //System.out.println(classType);\r\n\r\n n.f2.accept(this, argu);\r\n Integer vtableOffset = methodOffsets.get(classType + \".\" + n.f2.f0.toString())/8;\r\n\r\n emit(\"; \" + classType + \".\" + n.f2.f0.toString() + \" \" + \": \" + vtableOffset.toString() + \"\\n\");\r\n String temp2 = newTemp();\r\n emit(temp2 + \" = bitcast \" + temp1 + \" to i8***\\n\");\r\n String temp3 = newTemp();\r\n emit(temp3 + \" = load i8**, i8*** \" + temp2 + \"\\n\");\r\n String temp4 = newTemp();\r\n String temp5 = newTemp();\r\n String temp6 = newTemp();\r\n String temp7 = newTemp();\r\n emit(temp4 + \" = getelementptr i8*, i8** \" + temp3 + \", i32 \" + vtableOffset + \"\\n\");\r\n emit(temp5 + \"= load i8*, i8** \" + temp4 + \"\\n\");\r\n\r\n\r\n emit(temp6 + \" = bitcast i8* \" + temp5 + \" to \" + typeConverter(symbolTable.classes.get(classType).methods.get(n.f2.f0.toString()).returnType) + \" (i8*\");\r\n for(String arg : symbolTable.classes.get(classType).methods.get(n.f2.f0.toString()).arguments.keySet()){\r\n emit(\", \" + typeConverter(symbolTable.classes.get(classType).methods.get(n.f2.f0.toString()).arguments.get(arg)[0]));\r\n }\r\n emit(\")*\\n\");\r\n\r\n n.f4.accept(this, argu);\r\n\r\n emit(temp7 + \" = call \" + typeConverter(symbolTable.classes.get(classType).methods.get(n.f2.f0.toString()).returnType) + \" \" + temp6 + \"(\" + temp1);\r\n for(String arg : argu.tempCallArgumentsCodeG.values()){\r\n emit(\", \" + arg);\r\n }\r\n\r\n\r\n argu.tempCallArgumentsCodeG.clear();\r\n /*\r\n %_4 = bitcast i8* %_3 to i8***\r\n %_5 = load i8**, i8*** %_4\r\n %_6 = getelementptr i8*, i8** %_5, i32 0\r\n %_7 = load i8*, i8** %_6\r\n %_8 = bitcast i8* %_7 to i1 (i8*,i32)*\r\n\t %_9 = call i1 %_8(i8* %_3, i32 16)\r\n */\r\n\r\n emit(\")\\n\");\r\n\r\n return typeConverter(symbolTable.classes.get(classType).methods.get(n.f2.f0.toString()).returnType) + \" \" + temp7;\r\n }", "public void method_193() {}", "@Override\r\npublic int method() {\n\treturn 0;\r\n}", "@Override\n\tpublic void method2() {\n\n\t}", "class_1069 method_105(int var1, int var2);", "public void method_192() {}", "@Override\r\n\tpublic void a1() {\n\t\t\r\n\t}", "public void method_197(class_1549 var1, long var2) {}", "public void method_4270() {}", "void method_115();", "@Override\n\tpublic int method1() {\n\t\treturn 20;\n\t}", "@Override\r\n\tpublic void myMethod() throws ArithmeticException{\n\t}", "class_1069 method_104(int var1, int var2);", "public boolean method_2088(class_689 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\r\n\tpublic void PrimitiveOperation2() {\n\t\tSystem.out.println(\"Concrete class B method 2 implemation\");\r\n\t}", "protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }", "protected final Object dynamicMethod(GeneratedMessageLite.MethodToInvoke paramMethodToInvoke, Object paramObject1, Object paramObject2) {\n }", "public static void method2(){\n\t\t\n\t}", "protected void method_1144(bcb var1) {\r\n if(var1 instanceof class_157) {\r\n this.method_865(var1);\r\n }\r\n\r\n }", "protected void method_2090(class_689 var1) {\r\n super.method_2090(var1);\r\n this.field_1865.method_9478(var1.method_3845(), var1);\r\n String[] var10000 = class_752.method_4253();\r\n class_689[] var3 = var1.method_3955();\r\n String[] var2 = var10000;\r\n if(var3 != null) {\r\n int var4 = 0;\r\n\r\n while(var4 < var3.length) {\r\n this.field_1865.method_9478(var3[var4].method_3845(), var3[var4]);\r\n ++var4;\r\n if(var2 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n }", "private final java.lang.reflect.Method tryGetMethod(java.lang.Class<?> r7, java.lang.String r8, java.lang.Class<?>[] r9, java.lang.Class<?> r10) {\n /*\n r6 = this;\n r0 = 0\n int r1 = r9.length // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.Object[] r1 = java.util.Arrays.copyOf(r9, r1) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.Class[] r1 = (java.lang.Class[]) r1 // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.reflect.Method r1 = r7.getDeclaredMethod(r8, r1) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r2 = \"result\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r1, r2) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.Class r2 = r1.getReturnType() // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r2 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r2, (java.lang.Object) r10) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r2 == 0) goto L_0x001d\n r0 = r1\n goto L_0x005d\n L_0x001d:\n java.lang.reflect.Method[] r7 = r7.getDeclaredMethods() // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r1 = \"declaredMethods\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r7, r1) // Catch:{ NoSuchMethodException -> 0x005d }\n int r1 = r7.length // Catch:{ NoSuchMethodException -> 0x005d }\n r2 = 0\n r3 = 0\n L_0x0029:\n if (r3 >= r1) goto L_0x005d\n r4 = r7[r3] // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r5 = \"method\"\n kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r4, r5) // Catch:{ NoSuchMethodException -> 0x005d }\n java.lang.String r5 = r4.getName() // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r5, (java.lang.Object) r8) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r5 == 0) goto L_0x0055\n java.lang.Class r5 = r4.getReturnType() // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r5 = kotlin.jvm.internal.Intrinsics.areEqual((java.lang.Object) r5, (java.lang.Object) r10) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r5 == 0) goto L_0x0055\n java.lang.Class[] r5 = r4.getParameterTypes() // Catch:{ NoSuchMethodException -> 0x005d }\n kotlin.jvm.internal.Intrinsics.checkNotNull(r5) // Catch:{ NoSuchMethodException -> 0x005d }\n boolean r5 = java.util.Arrays.equals(r5, r9) // Catch:{ NoSuchMethodException -> 0x005d }\n if (r5 == 0) goto L_0x0055\n r5 = 1\n goto L_0x0056\n L_0x0055:\n r5 = 0\n L_0x0056:\n if (r5 == 0) goto L_0x005a\n r0 = r4\n goto L_0x005d\n L_0x005a:\n int r3 = r3 + 1\n goto L_0x0029\n L_0x005d:\n return r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: kotlin.reflect.jvm.internal.KDeclarationContainerImpl.tryGetMethod(java.lang.Class, java.lang.String, java.lang.Class[], java.lang.Class):java.lang.reflect.Method\");\n }", "@Override\n\tpublic Object javaMethodBaseForMikhail(float first, float second,\n NativeObject firstObj, NativeObject secondObj) {\n\t\treturn null;\n\t}", "public void method_2112(int param1, int param2, int param3, aji param4, int param5, int param6) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void startMethod (Symbol methodName, java.lang.Object[] args) throws G2AccessException;", "public void method_213(String var1) {}", "@Override\n\tpublic double javaMethodBaseWithDoubleRet() {\n\t\treturn 0;\n\t}", "@Override\r\npublic void method2() {\n\t\r\n}", "public void method_2116(class_689 param1, boolean param2) {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void method_2251() {\r\n this.method_2181();\r\n this.field_1823.method_128(this.field_1824, this.field_1850.method_2383().method_8922());\r\n this.field_1826.method_7081();\r\n }", "public abstract boolean method_1028(class_44 var1);", "@Override\n public void method1() {\n\n // we have 2 method (this method1 and method2 from A) in this class. Not the abstract.\n }", "static void method1(){\n\t\tSystem.out.println(\"Method 1\");\n\t}", "public void method2() {\n }", "boolean m25333a(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r0 = this;\n java.lang.Class.forName(r1);\t Catch:{ ClassNotFoundException -> 0x0005 }\n r1 = 1;\n return r1;\n L_0x0005:\n r1 = 0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mapbox.android.core.location.c.a(java.lang.String):boolean\");\n }", "@Override\n\tpublic void b1() {\n\t\t\n\t}", "void method1() // violation\n {\n }", "AnonymousClass1(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.1.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "@Override\n\tpublic void javaMethodBaseWithNSStringArg(xNSString string) {\n\t\t\n\t}", "protected final com.p111d.p112a.p121c.p134k.C7119d m3865a(com.p111d.p112a.p121c.aa r14, com.p111d.p112a.p121c.p128f.C1451n r15, com.p111d.p112a.p121c.C5354j r16, com.p111d.p112a.p121c.C1545o<?> r17, com.p111d.p112a.p121c.p131i.C1478f r18, com.p111d.p112a.p121c.p131i.C1478f r19, com.p111d.p112a.p121c.p128f.C5328e r20, boolean r21) {\n /*\n r13 = this;\n r0 = r13;\n r5 = r16;\n r1 = r19;\n r11 = r20;\n r2 = r0.f4676d;\n r3 = r0.f4673a;\n r2 = r2.refineSerializationType(r3, r11, r5);\n r3 = 1;\n if (r2 == r5) goto L_0x0058;\n L_0x0012:\n r4 = r2.m11531e();\n r6 = r16.m11531e();\n r7 = r4.isAssignableFrom(r6);\n if (r7 != 0) goto L_0x0056;\n L_0x0020:\n r7 = r6.isAssignableFrom(r4);\n if (r7 != 0) goto L_0x0056;\n L_0x0026:\n r1 = new java.lang.IllegalArgumentException;\n r2 = new java.lang.StringBuilder;\n r3 = \"Illegal concrete-type annotation for method '\";\n r2.<init>(r3);\n r3 = r20.mo1360b();\n r2.append(r3);\n r3 = \"': class \";\n r2.append(r3);\n r3 = r4.getName();\n r2.append(r3);\n r3 = \" not a super-type of (declared) class \";\n r2.append(r3);\n r3 = r6.getName();\n r2.append(r3);\n r2 = r2.toString();\n r1.<init>(r2);\n throw r1;\n L_0x0056:\n r4 = r3;\n goto L_0x005b;\n L_0x0058:\n r4 = r21;\n r2 = r5;\n L_0x005b:\n r6 = r0.f4676d;\n r6 = r6.findSerializationTyping(r11);\n r7 = 0;\n if (r6 == 0) goto L_0x006f;\n L_0x0064:\n r8 = com.p111d.p112a.p121c.p122a.C1397f.C1396b.DEFAULT_TYPING;\n if (r6 == r8) goto L_0x006f;\n L_0x0068:\n r4 = com.p111d.p112a.p121c.p122a.C1397f.C1396b.STATIC;\n if (r6 != r4) goto L_0x006e;\n L_0x006c:\n r4 = r3;\n goto L_0x006f;\n L_0x006e:\n r4 = r7;\n L_0x006f:\n r6 = 0;\n if (r4 == 0) goto L_0x0077;\n L_0x0072:\n r2 = r2.mo3385d();\n goto L_0x0078;\n L_0x0077:\n r2 = r6;\n L_0x0078:\n if (r1 == 0) goto L_0x00bc;\n L_0x007a:\n if (r2 != 0) goto L_0x007d;\n L_0x007c:\n r2 = r5;\n L_0x007d:\n r4 = r2.mo3394u();\n if (r4 != 0) goto L_0x00b6;\n L_0x0083:\n r1 = new java.lang.IllegalStateException;\n r3 = new java.lang.StringBuilder;\n r4 = \"Problem trying to create BeanPropertyWriter for property '\";\n r3.<init>(r4);\n r4 = r15.mo1398a();\n r3.append(r4);\n r4 = \"' (of type \";\n r3.append(r4);\n r4 = r0.f4674b;\n r4 = r4.m3615a();\n r3.append(r4);\n r4 = \"); serialization type \";\n r3.append(r4);\n r3.append(r2);\n r2 = \" has no content\";\n r3.append(r2);\n r2 = r3.toString();\n r1.<init>(r2);\n throw r1;\n L_0x00b6:\n r1 = r2.mo3383b(r1);\n r8 = r1;\n goto L_0x00bd;\n L_0x00bc:\n r8 = r2;\n L_0x00bd:\n r1 = r0.f4675c;\n r2 = r15.mo1423y();\n r1 = r1.m3138a(r2);\n r1 = r1.m3139b();\n r2 = com.p111d.p112a.p113a.C1329q.C1327a.USE_DEFAULTS;\n if (r1 != r2) goto L_0x00d1;\n L_0x00cf:\n r1 = com.p111d.p112a.p113a.C1329q.C1327a.ALWAYS;\n L_0x00d1:\n r2 = com.p111d.p112a.p121c.p134k.C1501m.C15001.f4671a;\n r1 = r1.ordinal();\n r1 = r2[r1];\n switch(r1) {\n case 1: goto L_0x00ef;\n case 2: goto L_0x00e5;\n case 3: goto L_0x00df;\n case 4: goto L_0x00dd;\n default: goto L_0x00dc;\n };\n L_0x00dc:\n goto L_0x0127;\n L_0x00dd:\n r7 = r3;\n goto L_0x0127;\n L_0x00df:\n r1 = com.p111d.p112a.p121c.p134k.C7119d.f20265c;\n L_0x00e1:\n r10 = r1;\n r9 = r3;\n goto L_0x013d;\n L_0x00e5:\n r1 = r16.mo3560a();\n if (r1 == 0) goto L_0x00ec;\n L_0x00eb:\n goto L_0x00df;\n L_0x00ec:\n r9 = r3;\n r10 = r6;\n goto L_0x013d;\n L_0x00ef:\n if (r8 != 0) goto L_0x00f3;\n L_0x00f1:\n r1 = r5;\n goto L_0x00f4;\n L_0x00f3:\n r1 = r8;\n L_0x00f4:\n r2 = r0.f4675c;\n r2 = r2.m3139b();\n r4 = com.p111d.p112a.p113a.C1329q.C1327a.NON_DEFAULT;\n if (r2 != r4) goto L_0x0107;\n L_0x00fe:\n r2 = r15.mo1398a();\n r1 = r0.m3864a(r2, r11, r1);\n goto L_0x010b;\n L_0x0107:\n r1 = com.p111d.p112a.p121c.p134k.C1501m.m3863a(r1);\n L_0x010b:\n if (r1 != 0) goto L_0x010e;\n L_0x010d:\n goto L_0x00e1;\n L_0x010e:\n r2 = r1.getClass();\n r2 = r2.isArray();\n if (r2 == 0) goto L_0x0139;\n L_0x0118:\n r2 = java.lang.reflect.Array.getLength(r1);\n r3 = r1.getClass();\n r4 = new com.d.a.c.m.b$1;\n r4.<init>(r3, r2, r1);\n r10 = r4;\n goto L_0x013c;\n L_0x0127:\n r1 = r16.mo3391n();\n if (r1 == 0) goto L_0x013b;\n L_0x012d:\n r1 = r0.f4673a;\n r2 = com.p111d.p112a.p121c.C5387z.WRITE_EMPTY_JSON_ARRAYS;\n r1 = r1.m18737a(r2);\n if (r1 != 0) goto L_0x013b;\n L_0x0137:\n r1 = com.p111d.p112a.p121c.p134k.C7119d.f20265c;\n L_0x0139:\n r10 = r1;\n goto L_0x013c;\n L_0x013b:\n r10 = r6;\n L_0x013c:\n r9 = r7;\n L_0x013d:\n r12 = new com.d.a.c.k.d;\n r1 = r0.f4674b;\n r4 = r1.mo1376f();\n r1 = r12;\n r2 = r15;\n r3 = r11;\n r6 = r17;\n r7 = r18;\n r1.<init>(r2, r3, r4, r5, r6, r7, r8, r9, r10);\n r1 = r0.f4676d;\n r1 = r1.findNullSerializer(r11);\n if (r1 == 0) goto L_0x015f;\n L_0x0157:\n r2 = r14;\n r1 = r2.mo2929c(r1);\n r12.mo3537b(r1);\n L_0x015f:\n r1 = r0.f4676d;\n r1 = r1.findUnwrappingNameTransformer(r11);\n if (r1 == 0) goto L_0x016d;\n L_0x0167:\n r2 = new com.d.a.c.k.a.r;\n r2.<init>(r12, r1);\n r12 = r2;\n L_0x016d:\n return r12;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.d.a.c.k.m.a(com.d.a.c.aa, com.d.a.c.f.n, com.d.a.c.j, com.d.a.c.o, com.d.a.c.i.f, com.d.a.c.i.f, com.d.a.c.f.e, boolean):com.d.a.c.k.d\");\n }", "@Override\n\tpublic long javaMethodBaseWithLongLongRet() {\n\t\treturn 0;\n\t}", "AnonymousClass2(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public static int m22557b(java.lang.String r1) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r0 = com.google.android.gms.internal.measurement.dr.m11788a(r1);\t Catch:{ zzyn -> 0x0005 }\n goto L_0x000c;\n L_0x0005:\n r0 = com.google.android.gms.internal.measurement.zzvo.f10281a;\n r1 = r1.getBytes(r0);\n r0 = r1.length;\n L_0x000c:\n r1 = m22576g(r0);\n r1 = r1 + r0;\n return r1;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.gms.internal.measurement.zzut.b(java.lang.String):int\");\n }", "public abstract void mo53562a(C18796a c18796a);", "protected void method_2091(class_689 var1) {\r\n String[] var10000 = class_752.method_4253();\r\n super.method_2091(var1);\r\n this.field_1865.method_9481(var1.method_3845());\r\n class_689[] var3 = var1.method_3955();\r\n String[] var2 = var10000;\r\n if(var3 != null) {\r\n int var4 = 0;\r\n\r\n while(var4 < var3.length) {\r\n this.field_1865.method_9481(var3[var4].method_3845());\r\n ++var4;\r\n if(var2 == null) {\r\n break;\r\n }\r\n }\r\n }\r\n\r\n }", "@Override\n\tpublic void f1() {\n\n\t}", "public void callmetoo(){\r\n\tSystem.out.println(\"This is a concrete method\");\r\n\t}", "void method_114(int var1, int var2);", "default int foo (){\n System.out.println(\"this is bytecode G1.foo()\");\n return -1;\n }", "public long mo915b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:14)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r4 = this;\n r0 = -1;\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n if (r2 == 0) goto L_0x000d;\t Catch:{ NumberFormatException -> 0x000e }\n L_0x0006:\n r2 = r4.f18088d;\t Catch:{ NumberFormatException -> 0x000e }\n r2 = java.lang.Long.parseLong(r2);\t Catch:{ NumberFormatException -> 0x000e }\n r0 = r2;\n L_0x000d:\n return r0;\n L_0x000e:\n return r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.c.b.b():long\");\n }", "public void method_1548(class_63 var1) {\r\n var1.method_261(this);\r\n }", "@Override\n\tpublic void method2() {\n\t\tSystem.out.println(\"Hello from MyInterface1 method2() \");\n\t}", "public int testmethod1()\n\t{\n\t\treturn 0;\n\t\t\n\t}", "public int myOtherMethod (BaseType[] btArray) /*\n\t\n\tFor instance, the following method specifies an array of double to use as its single argument\n\n\t*/", "public void method8(int i) {\n }", "int apply(MethodVisitor methodVisitor, Method method);", "public int method_2494(int var1) {\r\n return this.method_2493();\r\n }", "@Override\n\tpublic void outAMethodCallExpr(AMethodCallExpr node){\n\t\tString methodName = node.getId().getText();\n\t\tType targetType = nodeTypes.get(node.getTarget());\n\t\tboxIt(targetType); \n\t\tClassAttributes targetClass = topLevelSymbolTable.get(targetType.getTypeName());\n\t\tMethodAttributes methodAttributes = targetClass.getMethod(methodName);\n\t\tif (!(node.getTarget() instanceof ASuperExpr)){\n\t\t\til.append(fi.createInvoke(targetType.getTypeName(), methodName, getBecelType(methodAttributes.getReturnType()), getBecelType(methodAttributes.getParameterTypes()) , Constants.INVOKEVIRTUAL));\n\t\t}\n\t\telse {\n\t\t\til.append(fi.createInvoke(targetType.getTypeName(), methodName, getBecelType(methodAttributes.getReturnType()), getBecelType(methodAttributes.getParameterTypes()), Constants.INVOKESPECIAL)); \n\t\t}\n\t\tunboxIt(methodAttributes.getReturnType()); \n\t}", "@Test(timeout = 4000)\n public void test116() throws Throwable {\n Frame frame0 = new Frame();\n Type[] typeArray0 = new Type[9];\n Type type0 = Type.getReturnType(\"Zu.y \");\n typeArray0[0] = type0;\n Type type1 = Type.DOUBLE_TYPE;\n typeArray0[1] = type1;\n Type type2 = Type.DOUBLE_TYPE;\n typeArray0[2] = type2;\n Type type3 = Type.INT_TYPE;\n typeArray0[3] = type3;\n Type type4 = Type.VOID_TYPE;\n typeArray0[4] = type4;\n Type type5 = Type.BOOLEAN_TYPE;\n typeArray0[5] = type5;\n Type type6 = Type.FLOAT_TYPE;\n typeArray0[6] = type6;\n Type type7 = Type.SHORT_TYPE;\n type2.toString();\n typeArray0[7] = type7;\n Class<Integer> class0 = Integer.class;\n Type.getType(class0);\n Type[] typeArray1 = new Type[1];\n typeArray1[0] = type0;\n Type.getMethodDescriptor(type1, typeArray1);\n ClassWriter classWriter0 = new ClassWriter(9);\n Item item0 = classWriter0.key;\n // Undeclared exception!\n try { \n frame0.execute(10, (-2776), (ClassWriter) null, item0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"wheel.asm.Frame\", e);\n }\n }", "void method2();", "private void m14210a(java.io.IOException r4, java.io.IOException r5) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/509891820.run(Unknown Source)\n*/\n /*\n r3 = this;\n r0 = f12370a;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = f12370a;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = 1;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1 = new java.lang.Object[r1];\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r2 = 0;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r1[r2] = r5;\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n r0.invoke(r4, r1);\t Catch:{ InvocationTargetException -> 0x000f, InvocationTargetException -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: okhttp3.internal.connection.RouteException.a(java.io.IOException, java.io.IOException):void\");\n }", "public void method_1()\n {\n System.out.println(\"Interface method.\");\n }", "static /* synthetic */ double m308-set1(android.location.GpsClock r1, double r2) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e7 in method: android.location.GpsClock.-set1(android.location.GpsClock, double):double, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: android.location.GpsClock.-set1(android.location.GpsClock, double):double\");\n }", "public void method_6349() {\r\n super.method_6349();\r\n }", "@Override\n\t\t\tpublic MethodVisitor visitMethod(int access, String name, String desc, String signature, String[] exceptions) {\n\t\t\t\tboolean isSynthetic = ClassInfoUtils.checkAccess(access, Opcodes.ACC_SYNTHETIC);\n\t\t\t\tboolean isNative = ClassInfoUtils.checkAccess(access, Opcodes.ACC_NATIVE);\n\t\t\t\tboolean isInterface = ClassInfoUtils.checkAccess(access, Opcodes.ACC_INTERFACE);\n\t\t\t\tboolean isAbstract = ClassInfoUtils.checkAccess(access, Opcodes.ACC_ABSTRACT);\n\t\t\t\t\n\t\t\t\tMethodVisitor mv = super.visitMethod(access, name, desc, signature, exceptions);\n\t\t\t\tif (name.equals(\"toString\") && desc.equals(\"()Ljava/lang/String;\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"equals\") && desc.equals(\"(Ljava/lang/Object;)Z\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (name.equals(\"hashCode\") && desc.equals(\"()I\")) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else if (isSynthetic || isNative || isInterface || isAbstract) {\n\t\t\t\t\treturn mv;\n\t\t\t\t} else {\n\t\t\t\t\tmv = new DependencyAnalyzer(className, \n\t\t\t\t\t\t\taccess, \n\t\t\t\t\t\t\tname, \n\t\t\t\t\t\t\tdesc, \n\t\t\t\t\t\t\tsignature, \n\t\t\t\t\t\t\texceptions, \n\t\t\t\t\t\t\tmv, \n\t\t\t\t\t\t\ttrue,\n\t\t\t\t\t\t\tfalse, \n\t\t\t\t\t\t\ttrue, \n\t\t\t\t\t\t\ttrue);\n\t\t\t\t\t//mv = new CalleeAnalyzer(className, access, name, desc, signature, exceptions, mv, true);\n\t\t\t\t\treturn mv;\n\t\t\t\t}\n\t\t\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "public void testMethod1() throws JavaModelException {\n\t\tASTNode node = buildAST(\n\t\t\t\"public class X<K, V> {\\n\" +\n\t\t\t\" /*start*/void foo(int i, Object o, java.lang.String s, Class[] c, X<K, V> x) {\\n\" +\n\t\t\t\" }/*end*/\\n\" +\n\t\t\t\"}\"\n\t\t);\n\t\tIBinding binding = ((MethodDeclaration) node).resolveBinding();\n\t\tassertNotNull(\"No binding\", binding);\n\t\tIJavaElement element = binding.getJavaElement();\n\t\tassertElementEquals(\n\t\t\t\"Unexpected Java element\",\n\t\t\t\"foo(int, Object, java.lang.String, Class[], X<K,V>) [in X [in [Working copy] X.java [in <default> [in <project root> [in P]]]]]\",\n\t\t\telement\n\t\t);\n\t\tassertTrue(\"Element should exist\", element.exists());\n\t}", "public abstract byte[] instrumentMethod();", "@Override\n\tpublic void myMethod() {\n\t\tSystem.out.println(\"D\");\n\t\tB.super.myMethod();\n\t}", "@Override\n public void m1() {\n System.out.println(\"In B.m1()\");\n }", "public void method_1455(class_57 var1) {\r\n this.method_2032((class_64)var1);\r\n }" ]
[ "0.6376166", "0.63528514", "0.6199845", "0.6103591", "0.6102073", "0.6060484", "0.59904623", "0.5982039", "0.59593683", "0.5947416", "0.592381", "0.5922406", "0.5880623", "0.58612686", "0.5842817", "0.5819024", "0.5812513", "0.57790196", "0.57752436", "0.57603854", "0.5732669", "0.57277966", "0.57104456", "0.57035667", "0.5639833", "0.56278485", "0.5614393", "0.5609296", "0.5600836", "0.55778694", "0.55694926", "0.5567208", "0.5552371", "0.55425125", "0.5542078", "0.55410415", "0.5538426", "0.55290693", "0.5527004", "0.5523307", "0.5521704", "0.55124015", "0.5510784", "0.5496076", "0.5493322", "0.5492018", "0.5489542", "0.5489542", "0.54799134", "0.54728186", "0.54626536", "0.5458389", "0.5457973", "0.5455965", "0.5455882", "0.54549414", "0.5449987", "0.54459774", "0.543927", "0.5430126", "0.5428406", "0.54108155", "0.54023653", "0.53837097", "0.5377826", "0.53766966", "0.53763616", "0.53738576", "0.53648835", "0.5355736", "0.5344073", "0.5341547", "0.53408635", "0.53388333", "0.53253275", "0.5323528", "0.53218454", "0.5319504", "0.5315562", "0.53119326", "0.5309995", "0.5300344", "0.5290829", "0.52856", "0.5280948", "0.527875", "0.5275524", "0.5271264", "0.5269991", "0.52696365", "0.526909", "0.5265297", "0.5262859", "0.5260377", "0.5257348", "0.52520454", "0.5251934", "0.52449733", "0.5243474", "0.5235341", "0.5233131" ]
0.0
-1
output the value of available, maximum, allocation, and need
public void getState();
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract String getMaxUsage();", "private void cmdInfoProg() {\n long total = Runtime.getRuntime().totalMemory();\n long free = Runtime.getRuntime().freeMemory();\n NumberFormat nf = NumberFormat.getInstance();\n Log.println(\"(mem: \"\n + NumberFormat.getPercentInstance().format(\n (double) free / (double) total) + \" = \"\n + nf.format(free) + \" bytes free, \" + nf.format(total)\n + \" bytes total)\");\n }", "public Double getTotalAvailable(){\n return totalAvailable;\n }", "int getTotalFree();", "public double getAvailable() {\r\n\t\treturn this.capacity - flow;\r\n\t}", "public static void showMemoryInfo()\r\n\t{ \r\n\t\tRuntime rt = Runtime.getRuntime(); \r\n\t\tpf(\"Maxx : \\t %d Kb\\n\", rt.maxMemory() / 1024); \r\n\t\tpf(\"Free : \\t %d Kb\\n\", rt.freeMemory() / 1024); \r\n\t\tpf(\"Totl : \\t %d Kb\\n\", rt.totalMemory() / 1024); \r\n\t\tpf(\"Used : \\t %d Kb\\n\", (rt.totalMemory()-rt.freeMemory()) / 1024); \r\n\t}", "public int getCapacity( )\n {\n // Implemented by student.\n }", "int askForTempMax();", "private String getSeatsAvailable(){\n int Available= CourseCapacity - RegisteredStudents.size();\n return Available+\"/\"+ CourseCapacity;\n }", "void printMax(){\r\n\t\tSystem.out.printf(\"\\nThe stock with the highest value is \" + maxNode.stockName + \" with a value of $%.2f%n\",maxNode.stockValue);\r\n\t}", "long getAvailableSpace() throws IOException;", "public static int getSupplyUsed() {\n return Atlantis.getBwapi().getSelf().getSupplyUsed() / 2;\n }", "public BigDecimal getAvailable() {\n return available;\n }", "int available() {\n return numAvailable;\n }", "public float getCapacity();", "public int available() {\n return numAvailable;\n }", "public BigDecimal getLiterAllocation();", "public void utilization() {\r\n\t\tfloat fAktuell = this.aktuelleLast;\r\n\t\tfloat fMax = this.raumsonde.getMaxNutzlast();\r\n\t\tfloat prozent = fAktuell / fMax * 100;\r\n\r\n\t\tSystem.out.println(\" \" + fAktuell + \"/\" + fMax + \" (\" + prozent + \"%)\");\r\n\t}", "public int passengers(){\n return currentCapacity(); \n }", "public static int totalSupply() {\n return totalSupplyGet();\n }", "private int currentCapacity(){\n int total = 0;\n \n for(int i = Elevator.MIN_FLOOR; i <= Elevator.MAX_FLOOR; i++){\n total += destinedPassengers[i];\n }\n \n return total;\n }", "public double getOccupiedCpus () { return getCpuBaseResource().getOccupiedCapacity(); }", "public long getFreeSpace(){\n return freeSpace;\n }", "public double getOccupiedRamGB () { return getRamBaseResource().getOccupiedCapacity(); }", "public synchronized int getAvailableCapacity() {\n \n return (max_capacity-this.capacity);\n }", "public int getAvailableCount();", "public double evaluateLoad() {\n double result = 0;\n result += cpuLoad;\n if (freeSystemMem < 1024 * 100) result += 80;\n if (freeSystemMem < 1024 * 20) result += 100;\n if (diskUsage>50)result+=10;\n if (diskUsage>80)result+=40;\n if (diskUsage>90)result+=150;\n if (diskUsage>95)result+=200;\n System.out.println(diskUsage);\n return result;\n }", "public static int getSupplyFree() {\n return getSupplyTotal() - getSupplyUsed();\n }", "public long memoriaRamDisponivel(){\n return hardware.getMemory().getAvailable();\n }", "public BigInteger getMaxUses() {\r\n return maxUses;\r\n }", "@Override\n public int requestAvailableCapacity() {\n int total = facility.getCapacity();\n for (Facility facility : facilities) {\n total += facility.getCapacity();\n }\n return total;\n }", "public static String retornaPercentualUsadoDeMemoriaJVM() {\r\n\t\tRuntime runtime = Runtime.getRuntime();\r\n\t\t\r\n\t\tlong max = runtime.maxMemory();\r\n\t\tlong free = runtime.freeMemory();\r\n\t\tlong used = max - free;\r\n\r\n\t\tNumberFormat format = NumberFormat.getInstance();\r\n\r\n\t\t// Retorna o percentual da memoria usada\r\n\t\tString percentualMemoriaUsada = format.format(((used * 100) / max));\r\n\r\n\t\treturn percentualMemoriaUsada;\r\n\t}", "public final long getAvailable()\n\t{\n\t\treturn entrySize - entryOffset;\n\t}", "BigDecimal getCacheSpaceAvailable();", "public void setTotalAvailable(Double totalAvailable){\n this.totalAvailable = totalAvailable;\n }", "public static String getMemoryInfo() {\r\n\t\tRuntime rt = Runtime.getRuntime();\r\n\t\tint maxMemory = (int)(rt.maxMemory() / (1024 * 1024)); // Max memory in MB\r\n\t\tint currentTotalMemory = (int)(rt.totalMemory() / (1024 * 1024)); // Total memory in MB\r\n\t\tdouble freeMemory = (double)(((int)rt.freeMemory()) / (1024.0 * 1024.0)); // Free memory in MB with decimal places\r\n\t\treturn \"Current Memory (Heap) Size: \" + currentTotalMemory + \" MB\" + \r\n\t\t\t\t\"\\nMaximum Memory Size: \" + maxMemory + \" MB\" +\r\n\t\t\t\t\"\\nMemory Free: \" + String.format(\"%.1f\", freeMemory) + \" MB\" +\r\n\t\t\t\t\"\\n\\n(Reserved areas not included)\";\r\n\t}", "@Override\n public String toString() {\n return String.format(\"ServerID=%d, UsedCPU=%d, LeftoverCPU=%f, UsedMemory=%d, \" +\n \"LeftoverMemory=%f\",\n pm.getID(),\n used_cpu, getLeftoverCPUPercentile(),\n used_mem, getLeftoverMemoryPercentile());\n }", "public Integer getFreeSlots() {\n return AvailableSlots.size();\n }", "public void printMax() {\n MaxCalculation max1 = new MaxCalculation(0, 29);\n MaxCalculation max2 = new MaxCalculation(30, 59);\n MaxCalculation max3 = new MaxCalculation(60, 89);\n max1.setDaemon(true);\n max2.setDaemon(true);\n max3.setDaemon(true);\n max1.start();\n max2.start();\n max3.start();\n\n try {\n max1.join();\n max2.join();\n max3.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n\n int max = max1.value;\n if (max2.value > max) max = max2.value;\n if (max3.value > max) max = max3.value;\n\n System.out.println(\"the max value is \" + max);\n }", "public int getSpace(){\n // iterate through nodes\n int totalSpace = 0;\n Collection<SupplyNode> nodeCol = t.values();\n Iterator<SupplyNode> it = nodeCol.iterator();\n \n // multiply resource count by resource space\n while (it.hasNext()){\n SupplyNode s = it.next();\n totalSpace += (s.getCurrent()*s.getResource().getCost());\n }\n \n // return\n return totalSpace;\n }", "abstract int getMaxMemoryUsage();", "@TargetApi(16)\n /*\n -------------------------------------get ram statistics----------------------------\n gets ram usage from system\n possible args:\n \"in use\" - returns the amount of ram in use in kb\n \"free\" - returns the amount of free ram in kb\n Default: returns the percentage of free ram avalible\n */\n private double getRamStatistics(String args) throws Exception\n {\n RandomAccessFile reader = new RandomAccessFile(\"/proc/meminfo\", \"r\");\n int numLine = 0;\n List<String> allLines = new ArrayList<String>();\n while(true) {\n String line = reader.readLine();\n if(line == null)\n {\n break;\n }\n else\n {\n allLines.add(line);\n }\n }\n int totalRam = getNumFromLine(allLines.get(0).split(\" \"));\n int ramFree = getNumFromLine(allLines.get(1).split((\" \")));\n if(args.toLowerCase() == freeArg)\n {\n return(ramFree);\n }\n else if(args.toLowerCase() == inUseArg)\n {\n return(totalRam - ramFree);\n }\n else\n {\n double retVal = (double)ramFree / (double)totalRam;\n return(retVal);\n }\n }", "public Long usage() {\n return this.usage;\n }", "public BigDecimal getMaxLifeUsage () \n\t{\n\t\tBigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MaxLifeUsage);\n\t\tif (bd == null)\n\t\t\t return Env.ZERO;\n\t\treturn bd;\n\t}", "@java.lang.Override\n public int getAvailableCapacity() {\n return availableCapacity_;\n }", "public int getCapacity() {\n switch (getID()) {\n case 5509:\n return 3;\n case 5510:\n case 5511:\n return 6;\n case 5512:\n case 5513:\n return 9;\n case 5514:\n case 5515:\n default:\n return 12;\n }\n }", "@java.lang.Override\n public int getAvailableCapacity() {\n return availableCapacity_;\n }", "public double getQueueFree(){\n\t\treturn unitSpaceAvailable;\n\t}", "@Override\n\t\tpublic long usage() {\n\t\t\t\n\t\t\treturn super.usage();\n\t\t}", "static boolean Safe(int Processes, int Resourses, int Allocation[][], int Need[][], int Available[]) {\n\t\tint n = Processes;\n\t\tint m = Resourses;\n\t\tint cnt = 0 ; \n\t\tint cnt2 = 0 ; \n\t\tint[][] AllocationTemp = new int[n][m];\n\t\tint[][] NeedTemp = new int[n][m];\n\t\tboolean[] Finish ; \n\t\tint[] Work = new int [m]; \n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tAllocationTemp[i][j] = Allocation[i][j];\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\tNeedTemp[i][j] = Need[i][j];\n\t\t\t}\n\t\t}\n\t\t// Initialize Work .\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tWork[i] = Available[i];\n\t\t}\n\t\tSystem.out.println(\"Available: \") ;\n\t\tfor (int i =0 ; i < m; i++ )\n\t\t{\n\t\t\tSystem.out.print(Work[i]+\" \");\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t\tSystem.out.println(\"Allocation:\");\n\t\tfor (int i = 0 ; i < n ; i++ )\n\t\t{\n\t\t\tfor (int j = 0 ; j < m ; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(Allocation[i][j] + \" \") ; \n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t\tSystem.out.println(\"Need :\");\n\t\tfor (int i = 0 ; i < n ; i++ )\n\t\t{\n\t\t\tfor (int j = 0 ; j < m ; j++)\n\t\t\t{\n\t\t\t\tSystem.out.print(Need[i][j] + \" \") ; \n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t\t// Initialize Finish For the first Time == False\n\t\tFinish = new boolean[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tFinish[i] = false;\n\t\t}\n\t\twhile(cnt<n&&cnt2<n) {\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tboolean Check = true; \n\t\t\t\t// Step Two .\n\t\t\t\tif (Finish[i] == false) // not allocated\n\t\t\t\t{\n\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\tif (NeedTemp[i][j] > Work[j]) {\n\t\t\t\t\t\t\tCheck = false; // must be wait .\n\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\telse if (NeedTemp[i][j] == Work[j])\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tCheck = true ; \n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t \n\t\t\t\t\t}\n\t\t\t\t\tif (Check) // if available resources are greater than el needed .\n\t\t\t\t\t{\n\t\t\t\t\t\tfor (int j = 0; j < m; j++) {\n\t\t\t\t\t\t\t// Step 3\n\t\t\t\t\t\t\tWork[j] = Work[j]+ AllocationTemp[i][j];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"P\" + i + \" this process must be in safe sequence in safe algorithm . \");\n\t\t\t\t\t\tS_Sequence[cnt++] = i;\n\t\t\t\t\t\tFinish[i] = true;\n\n\t\t\t\t\t} \n\t\t\t\t\telse {\n\t\t\t\t\t System.out.println(\"P\" + i + \" this process must be wait in safe algorithm . \");\n\t\t\t\t\t\tUn_Sequence[cnt] = i;\n\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tcnt2++;\n\t\t\t}\n\n\t\tif (cnt > n) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\treturn true;\n\t\t}\n\n\t}", "public int getFreeSpace() {\n return capacity - storage;\n }", "@Override\n\tpublic String getCapacity() {\n\t\treturn \"ÔØÈËÊý£º\"+humanNum+\"ÈË\";\n\t}", "public double getOccupiedHdGB () { return getHdBaseResource().getOccupiedCapacity(); }", "public static void printUsage() {\n System.out.println(\"*****\\t*****\\t*****\");\n System.out.println(\"Usage:\");\n System.out.println(\"par/seq, L/B, N, M, C, output file\");\n System.out.println(\"Using type of calculation: par(parallel) or seq(sequential)\");\n System.out.println(\"Using numbers: L - Long, B - BigInteger\");\n System.out.println(\"Program finds all prime numbers in range [N, M]\");\n System.out.println(\"That ends with number C\");\n System.out.println(\"N, M, C should be whole numbers and N must be less than M!\");\n System.out.println(\"Output is written into file \\\"output file\\\", first number is \");\n System.out.println(\"The quantity of prime numbers and after - all found prime numbers\");\n System.out.println(\"*****\\t*****\\t*****\");\n }", "public static void main(String[] args) {\n\t\tvalues = new int[]{6,1,2,7,9};\n\t\tSystem.out.println(maxStolenGoods());\n\t}", "public int getRemainingUses() {\n return remainingUses;\n }", "String getMax_res();", "public void honourMaxCount() {\n // Get free and total counts\n int freeCount = getFreeLaunchers().size();\n int totalCount = getTotalLaunchers().size();\n\n // Scale down if max is exceeded, irrespective of free buffer count\n if (totalCount > maxCount) {\n log.info(\"Scaling down until [freeBufferCount] \" + freeBufferCount + \" is met since [Max Count] \"\n + maxCount + \" has been exceeded.\");\n\n while (freeCount <= freeBufferCount){\n log.info(\"Scaling DOWN: REASON -> [Total Count] \" + totalCount + \" > [Max Count] \" + maxCount);\n scaleDown();\n freeCount = getFreeLaunchers().size();\n }\n\n totalCount = getTotalLaunchers().size();\n freeCount = getFreeLaunchers().size();\n\n log.info(\"Stats after scale down operation: [Total Count] \" + totalCount + \", [Free Count] \" + freeCount);\n\n return;\n }\n\n // Don't scale down if there are not enough free launchers\n if (freeCount <= freeBufferCount) {\n log.info(\"Not scaling down since [Free Count] \" + freeCount + \" <= [Free Buffer Size] \" +\n freeBufferCount + \"...\");\n return;\n }\n\n // Don't scale down if the desired count is not exceeded\n if (totalCount <= desiredCount) {\n log.info(\"Not scaling down since [Total Count] \" + totalCount + \" <= [Desired Count] \" +\n desiredCount + \"...\");\n return;\n }\n\n // Scale down if desired count is exceeded, but with more free launchers than buffer count by stepDown count\n // TODO: to test scale down\n if ((freeCount - stepDown) >= freeBufferCount) {\n log.info(\"Scaling DOWN: REASON -> [Total Count] \" + totalCount + \" > [Desired Count] \" + desiredCount +\n \" AND [Free Count] - [Step Down] \" + freeCount + \" - \" + stepDown +\n \" >= [Free Buffer Count] \" + freeBufferCount);\n\n scaleDown();\n return;\n }\n\n // If after scaling down there wouldn't be enough free launchers, don't scale down\n log.info(\"Not scaling down since [Free Count] + [Step Down] \" + freeCount + \" + \" + stepDown +\n \" < [Free Buffer Count] \" + freeBufferCount);\n }", "int askForTempMin();", "private long getSystemMemoryInGB() {\n long memorySize = ((com.sun.management.OperatingSystemMXBean) ManagementFactory\n .getOperatingSystemMXBean()).getTotalPhysicalMemorySize();\n return memorySize / ONE_BILLION;\n }", "long getMaxMemory();", "public void getResults() {\n\t\tSystem.out.println(\"|V| : \" + g.getV());\n\t\tSystem.out.println(\"|E| : \" + g.getE());\n\t\tSystem.out.println(\"Max flow : \" + g.getVertex(sink).e);\n\t\tSystem.out.println(\"Run time : \" + (System.currentTimeMillis()-timeStart) + \" ms\"+\"\\n\");\n\t}", "private static void JVMInfo() {\n System.out.println(\"Available processors (cores): \" +\n Runtime.getRuntime().availableProcessors());\n\n /* Total amount of free memory available to the JVM */\n System.out.println(\"Free memory (bytes): \" +\n Runtime.getRuntime().freeMemory());\n\n /* This will return Long.MAX_VALUE if there is no preset limit */\n long maxMemory = Runtime.getRuntime().maxMemory();\n /* Maximum amount of memory the JVM will attempt to use */\n System.out.println(\"Maximum memory (bytes): \" +\n (maxMemory == Long.MAX_VALUE ? \"no limit\" : maxMemory));\n\n /* Total memory currently in use by the JVM */\n System.out.println(\"Total memory (bytes): \" +\n Runtime.getRuntime().totalMemory());\n\n }", "@VTID(15)\r\n excel.XlAllocationValue getAllocationValue();", "public static void getMemoryUsage(){\r\n MemoryMeasurement actMemoryStatus = new MemoryMeasurement();\r\n //MemoryMeasurement.printMemoryUsage(actMemoryStatus);\r\n memoryUsageList.add(actMemoryStatus);\r\n }", "int getMinAvailable(ClusterSpec clusterSpec);", "public void displayAllInfo(){\nSystem.out.println(\"Dimensions of the room - length in feet : \" + room.getLengthInFeet() + \" width in feet :\" + room.getWidthInFeet());\nSystem.out.println(\"Price per square foot :\" + pricePerSquareFoot);\nSystem.out.println(\"Total Cost :\" + calculateTotalCost());\n}", "public int freeCapacity() {\n\t\treturn this.capacity - this.flow;\n\t}", "public long getMinFree() {\n return params.getMinimumFree() * 1024 * 1024;\n }", "private long getCurrentJvmMaxMemoryInGB() throws IOException {\n String currentXmx = getCurrentXmxValue();\n char units = '-';\n Long value = 0L;\n if (currentXmx.length() > 1) {\n units = currentXmx.charAt(currentXmx.length() - 1);\n value = Long.parseLong(currentXmx.substring(0, currentXmx.length() - 1));\n } else {\n throw new IOException(\"No memory setting found in String: \" + currentXmx);\n }\n //some older .conf files might have the units as megabytes instead of gigabytes\n switch (units) {\n case 'g':\n case 'G':\n return value;\n case 'm':\n case 'M':\n return value / MEGA_IN_GIGA;\n default:\n throw new IOException(\"Units were not recognized as parsed: \" + units);\n }\n }", "private void execute(){\n readFromConsole();\n getMaxValue();\n }", "int getUsedPoints();", "int getUsedPoints();", "int getUsedPoints();", "Integer diskSizeGB();", "public Integer getFreePermits() {\n return (Integer) getAttributeInternal(FREEPERMITS);\n }", "public void print() {\n\t\tSystem.out.println(\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName+\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)+\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress);\r\n\t}", "int range() {\n\t\treturn mpg * fuelcap;\n\t}", "public int getFreeSpace() {\n\t\treturn this.getWeightLimit() - this.getCarriedWeight();\n\t}", "public static long getMemoryFree() throws IOException, InterruptedException {\n \treturn pi4jSystemInfoConnector.getMemoryFree();\r\n }", "long getUsedSpace() throws IOException;", "public long getTotalSpace(){\n return totalSpace;\n }", "public void print_dev() {\n\t\tSystem.out.println(\r\n\t\t\t\t\t\t\t\t\t\"[System] 펫 정보입니다.\\n 이름 : \"+TMGCSYS.tmgcName\r\n\t\t\t\t\t\t\t\t+\t\", 레벨 : \"+TMGCSYS.tmgcLV+\", 경험치 : \"+TMGCSYS.tmgcEXP+\"/\"+(100*TMGCSYS.tmgcLV)\r\n\t\t\t\t\t\t\t\t+\t\", 체력 : \"+TMGCSYS.tmgcHP+\", 스트레스 : \"+TMGCSYS.tmgcStress+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Function Limit Count\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Eat : \"+TMGCSYS.tmgcLimitEat+\", Sleep : \"+TMGCSYS.tmgcLimitSleep\r\n\t\t\t\t\t\t\t\t+\t\", Walk : \"+TMGCSYS.tmgcLimitWalk+\", Study : \"+TMGCSYS.tmgcLimitStudy+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Ability\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" STR : \"+TMGCSYS.tmgcSTR+\", INT : \"+TMGCSYS.tmgcINT\r\n\t\t\t\t\t\t\t\t+\t\", DEB : \"+TMGCSYS.tmgcDEB+\", HET : \"+TMGCSYS.tmgcHET+\"\\n\\n\\n\"\r\n\t\t\t\t\t\t\t\t+\t\" Character Job : \"+TMGCSYS.tmgc2ndJob\r\n\t\t\t\t\t\t\t\t);\r\n\t}", "public String getStatistics() {\n return \"Bounds = (\" + x1 + \", \" + y1 + \"), (\" + x2 + \", \" + y2 + \")\\n\" +\n \"Number of Nodes = \" + numNodes + \"\\n\";\n }", "public int getTotalSupply() {\n if (this.totalSupply == -1) {\n int tempTotalSupply = 0;\n for (G good : this.goods) {\n tempTotalSupply += good.getSupply();\n }\n this.totalSupply = tempTotalSupply;\n }\n return this.totalSupply;\n }", "public long getMemoryInternalAvail() {\n StatFs stat = new StatFs(Environment.getDataDirectory().getPath());\n long blockSize = stat.getBlockSize();\n long availableBlocks = stat.getAvailableBlocks();\n return availableBlocks * blockSize;\n }", "default long getUnusedMemory() {\n return getMaxMemory() - getMemory();\n }", "public double usagePercentage() {\n return 1.0 * (this.rectangleCount() - 1) / (this.M * this.nodeCount()); // -1 in order to ignore de root\n }", "public int getUses() {\n return statUse.getDenominator();\n }", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "int getMaxMP();", "private String needs() {\r\n\t\tint[] needs=tile.getLifeNeedsMet();\r\n\t\tString out=\"Needs Met: \"+needs[0]+\" || Needs Not Met: \"+needs[1];\r\n\t\treturn out;\r\n\t}", "public void lastChanceGas()\n {\n System.out.print( \"Tank capacity: \" );\n int capacity = scan.nextInt();\n System.out.print( \"Gage reading: \" );\n int gage = scan.nextInt();\n System.out.print( \"Miles per gallon: \" );\n int mpg = scan.nextInt();\n double gasLeft = capacity * ( gage * 0.01 );\n double milesDriveable = gasLeft * mpg;\n if ( milesDriveable >= 200 )\n {\n System.out.println( \"Safe to Proceed!\" );\n }\n else\n {\n System.out.println( \"Get Gas!\" );\n }\n\n }", "private int getPRFurthestUse() {\n int max = -1;\n int maxPR = -1;\n for (int i = 0; i < numPhysRegs - 1; i++) {\n if (PRNU[i] > max) {\n max = PRNU[i];\n maxPR = i;\n }\n }\n return maxPR; // no free physical register\n }", "public double getOCapacity() {\n return oCapacity;\n }", "static double reliability(vmnode vm, jobnode[] jobs, int[] assigned, int ind) {\n double pow, bw, mem;\n pow = bw = mem = 0;\n\n for (int i = 0; i < jobs.length; i++) {\n if (assigned[i] == ind) {\n pow = pow + 1.0 * jobs[i].pow;\n bw = bw + 1.0 * jobs[i].bw;\n }\n }\n pow = 0.5 * (vm.powavail * 1.0 / pow);\n bw = 0.3 * (vm.bwavail * 1.0 / bw);\n mem = 0.2 * (vm.memavail + vm.memused) / vm.memused;\n if (vm.memused == 0.0) {\n return 1000000.0;\n }\n return (pow + bw + mem);\n }", "public static long getMemoryTotal() throws IOException, InterruptedException {\n \treturn pi4jSystemInfoConnector.getMemoryTotal();\r\n }" ]
[ "0.65452415", "0.63880825", "0.6266721", "0.62633127", "0.61961", "0.603995", "0.6009172", "0.5967984", "0.59283197", "0.5927236", "0.5895346", "0.58882105", "0.58685756", "0.584302", "0.5839423", "0.58100533", "0.580401", "0.5797698", "0.573201", "0.5727939", "0.57239133", "0.57209766", "0.5699915", "0.5691477", "0.5687882", "0.56798005", "0.56614536", "0.5652061", "0.56159997", "0.55785066", "0.55747455", "0.5563215", "0.5551714", "0.55403066", "0.5536336", "0.55335754", "0.5526416", "0.5522515", "0.5522325", "0.55198246", "0.5519679", "0.5512613", "0.55100375", "0.548296", "0.5471141", "0.54573834", "0.54427123", "0.54383034", "0.5433657", "0.54335946", "0.54321635", "0.54318786", "0.542421", "0.5408202", "0.5395747", "0.53885704", "0.53854465", "0.53782994", "0.5372599", "0.5370507", "0.5369535", "0.5368521", "0.5366615", "0.536188", "0.5358779", "0.535438", "0.5345045", "0.53423357", "0.5339152", "0.5336229", "0.5328887", "0.53163546", "0.53163546", "0.53163546", "0.53135234", "0.53122616", "0.531135", "0.5308371", "0.53077507", "0.53045416", "0.5300882", "0.530085", "0.5296052", "0.529592", "0.5295218", "0.5289208", "0.52853435", "0.52793723", "0.52793676", "0.5273698", "0.5273698", "0.5273698", "0.5273698", "0.5273698", "0.5273698", "0.5269864", "0.52673066", "0.5266101", "0.52630025", "0.52615076", "0.5258882" ]
0.0
-1
The main is called when the class is directly executed from the command line.
public static void main(String[] args) { BatchTestRunner.run(GetObjectByIdNoValidationInstanceNotInDatastore.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main()\n\t{\n\t}", "public static void main() {\n }", "public static void main() {\n \n }", "public static void main(){\n\t}", "public Main() {\n\t\tsuper();\n\t}", "public Main() {}", "public static void main(String[] args) {}", "public static void main(String[] args) {}", "public static void main(String[] args) {\n new Main();\n }", "public static void main(String[] args) {\r\n// Use for unit testing\r\n }", "public void main(){\n }", "static void main(String[] args)\n {\n }", "public static void main (String []args){\n }", "public static void main(String[] args) {\n new Main();\r\n }", "public Main() {\n }", "public Main() {\r\n }", "public Main() {\r\n }", "public Main() {\n }", "public Main() {\n }", "public static void main (String[]args) throws IOException {\n }", "public static void main(String [] args){\n Main m = new Main(args);\n }", "public static void main(String[] args) {\n \n\n }", "public static void main(String[] args) {\n\t \t\n\t \t\n\t }", "public static void main(String[] args) {\r\n \r\n }", "public static void main(String[] args) {\r\n \r\n }", "static void main(String[] args) {\n }", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public Main() {\n \n \n }", "public Main() {\r\n\t}", "public static void main(String[] args) { }", "public static void main(String[] args) {\n new Main().run();\n }", "public static void main(String[] args){\r\n\t\t\r\n\tSystem.out.println(\"main method(-)\");\r\n\t\r\n\t}", "public static void main(String[] args) {\t}", "public static void main(String[] args) {\n\n\t\t\n\t\tSystem.out.println(\"This is my class \");\n\t}", "public static void main(String []args){\n }", "public static void main(String []args){\n }", "public static void main(String[] args) {\n new Program();\n }", "private Main() {}", "public void main(String[] args) {\n\t}", "public static void main(String[] args) {\n \n \n \n \n }", "public static void main(String[] args) {\n\t\tnew Main();\n\t}", "public static void main(String[] args) {\n\t\tnew Main();\n\t}", "public static void main(String[] args) {\n\t\tnew Main();\n\t}", "public static void main(String[] args) {\n\t\tnew Main();\n\t}", "public static void main(String[] args) {\n\t\tnew Main();\n\t}", "public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException {\n }", "public static void main(String[] args) {\n \n }", "public static void main(String []args){\n\n }", "public static void main(String[] args) {\n\t\t\n\t\tnew Main();\n\t\t\n\t}", "private Main() {\n\n super();\n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main (String[] args)\r\n {\n }", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main(String args[]) {}", "public static void main(String... args) {\n doMain().run();\n }", "public static void main(String[] args)\r\n {\r\n }", "public static void main(String[] args)\r\n {\r\n }", "public static void main (String[] args) {\r\n\t\t \r\n\t\t}", "static public void main(String[] args) {\n\t}", "private Main() {\n }", "public static void main (String[] args) {\n }", "public static void main(String[] args)\n {\n\n }", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "public static void main(String[] args) {\r\n }", "public static void main(String[] args) {\r\n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String args[]) throws IOException {\r\n\t\t\r\n\t}", "public static void main(String[] args)\n {\n\t\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main (String[] args) {\n\n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args)\r\n {\r\n \r\n \r\n \r\n }", "private Main ()\n {\n super ();\n }", "public static void main(String[] args) \r\n\t{\n\t}", "public static void main( String[] args )\n {\n }", "public static void main( String[] args )\n {\n }", "public static void main(String[] args) {\n System.out.println(\"in main\");\n }", "public static void main (String args[]) {\n\t\t\n }", "public static void main(String[] args) // every Java program starts with a main method or function\r\n\t{\n\t}", "public static void main(String[] args) {\n \r\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(\"In Main\");\r\n\t}", "public static void main(String[] args) {\n \n\t}", "public static void main(String[] args) {\n System.out.println(\"Class 1\");\n }", "public static void main(String[] args) {\n demoClass();\n }", "public static void main(String[] args) {\n demoClass();\n }", "public static void main(String[] args) throws IOException {\n \t\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args)\n {\n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n\t \t\n\t \t\n\t}" ]
[ "0.82405615", "0.8141903", "0.80236", "0.79468924", "0.78564095", "0.7839792", "0.7814834", "0.7814834", "0.78084373", "0.7773009", "0.776184", "0.77419174", "0.77407646", "0.7726362", "0.77198267", "0.7686448", "0.7686448", "0.76680124", "0.76680124", "0.7667554", "0.76656014", "0.7664779", "0.76647264", "0.7664672", "0.7664672", "0.76619714", "0.76574856", "0.76526827", "0.7645876", "0.76415545", "0.76391345", "0.7633428", "0.7619278", "0.7613694", "0.7612219", "0.7612219", "0.76113683", "0.7605217", "0.76005405", "0.758862", "0.7585709", "0.7585709", "0.7585709", "0.7585709", "0.7585709", "0.75848234", "0.75838244", "0.7579336", "0.75711316", "0.7568084", "0.7565665", "0.7565665", "0.7565665", "0.7565665", "0.7565665", "0.7565665", "0.75602823", "0.755389", "0.755389", "0.755389", "0.75502354", "0.75483656", "0.75483656", "0.75481784", "0.754705", "0.7545837", "0.75451785", "0.7543177", "0.7540496", "0.75379086", "0.75379086", "0.75370884", "0.75370884", "0.7532193", "0.7531676", "0.75313824", "0.75313824", "0.75313824", "0.75312674", "0.75212914", "0.7512507", "0.75114816", "0.7508558", "0.7508299", "0.7508053", "0.7508053", "0.75061256", "0.75037324", "0.7502689", "0.74962336", "0.7492675", "0.7490033", "0.74894595", "0.7487558", "0.7487558", "0.7487256", "0.7486607", "0.7486607", "0.7486607", "0.7483941", "0.7481975" ]
0.0
-1
method 1 extra space o(n) and time o(n)
private static void missRepeat1(int[] a) { int miss = -1; int repeat = -1; int[] b = new int[a.length]; for(int x : a) { if(b[x-1] != 0) { repeat = x; } b[x-1]++; } for(int i=0; i<b.length; i++) { if(b[i]==0) { miss = i+1; break; } } System.out.println(repeat + " " + miss); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "public static int example4(int[] arr) { // O(1)\r\n\t\tint n = arr.length, prefix = 0, total = 0; // O(1), O(1), (1)\r\n\t\tfor (int j = 0; j < n; j++) { // loop from 0 to n-1 // O(n)\r\n\t\t\tprefix += arr[j];\r\n\t\t\ttotal += prefix;\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: The method contains a (for) loop and it runs (n) times.This loop\r\n\t\t * dominates the runtime.We always aim for the worse-case and maximum time. The\r\n\t\t * answer is it is linear time of O(n) notation.\r\n\t\t * \r\n\t\t */\r\n\t}", "static void UseArrayList(ArrayList<Integer> myList2){\r\n\t\tLong start = System.currentTimeMillis();\r\n\t\tfor (int n=0; n<myList2.size();n++)\r\n\t\t{\r\n\t\t\tfor (int m=n+1; m<myList2.size();m++){\r\n\t\t\t\tif( myList2.get(n)== myList2.get(m) ) {System.out.println(\"Duplicate found \"+myList2.get(n));}\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong End = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Total time taken for executing this code is: \" + (End-start));\r\n\t}", "public static int example2(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j += 2) // note the increment of 2 // O(1)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Once Again, we have a (for) loop and it runs (n) times and this\r\n\t\t * for loop dominates the runtime.So this is linear time and the answer is O(n).\r\n\t\t * \r\n\t\t */\r\n\t}", "@Override\r\n public long problem1(int size) {\r\n StringBuilder sb = new StringBuilder();\r\n long start = System.currentTimeMillis();\r\n for (int i=0; i<size; i++) {\r\n sb.append(i);\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs2=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size2=:\"+hs2.size());\r\n\t\t\t\tIterator<String> iter = hs2.iterator();\r\n\t\t\t\twhile(iter.hasNext()){\r\n\t\t\t\t String result = iter.next();\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time2=: \"+(end-start));\r\n\t\t\t}", "protected static int m34121a(int i, long j, List<C22441c> list) {\n C22441c c22441c;\n AppMethodBeat.m2504i(114774);\n Object obj = 1;\n while (i < sJS.size()) {\n try {\n Object obj2;\n c22441c = (C22441c) sJS.get(i);\n if (obj == null || c22441c.endTime <= j) {\n list.add(c22441c);\n obj2 = obj;\n } else {\n C22441c c22441c2 = new C22441c();\n c22441c2.sJY = c22441c.sJY;\n c22441c2.startTime = j;\n c22441c2.endTime = c22441c.endTime;\n list.add(c22441c2);\n obj2 = null;\n }\n i++;\n obj = obj2;\n } catch (Exception e) {\n AppMethodBeat.m2505o(114774);\n return -1;\n }\n }\n if (list.size() == 0) {\n c22441c = new C22441c();\n c22441c.sJY = sJQ;\n c22441c.startTime = j;\n c22441c.endTime = System.currentTimeMillis();\n list.add(c22441c);\n } else {\n c22441c = new C22441c();\n c22441c.sJY = sJQ;\n c22441c.startTime = sJP.startTime;\n c22441c.endTime = System.currentTimeMillis();\n list.add(c22441c);\n }\n int size = sJS.size();\n AppMethodBeat.m2505o(114774);\n return size;\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs1=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size1=:\"+hs1.size());\r\n\t\t\t\tfor(String result:hs1){\r\n\t\t\t\t\tresult.toString();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time1=: \"+(end-start));\r\n\t\t\t}", "public int[] squareUp(int n) {\r\n int[]arreglo=new int[(n*n)]; // O(1)\r\n if(n==0){ // O(1)\r\n return arreglo; // O(1)\r\n }\r\n for(int i=n-1;i<arreglo.length;i=i+n){ // O(n)\r\n for (int j=i;j>=i-(i/n);j--){ // O(1)\r\n arreglo[j]=1+(i-j); // O(1)\r\n }\r\n }\r\n return arreglo; // O(1)\r\n}", "public static void main(String[] args) \n\t{\n\t \n\t\tlong startTimer = System.currentTimeMillis();\n\t\t//mrethod 1\n\t\tint res=Utility.binarySearchWord();\n\t\tif(res==-1)\n\t\t\tSystem.out.println(\"your word not found\");\n\t\t else\n\t\t System.out.println(\"your word found at index:\"+res);\n\t\tlong first=System.currentTimeMillis();\n\t\tSystem.out.println((first-startTimer)/1000+\"seconds\");\n\t \n\t\t//method 2\n\t\tint res1=Utility.binarySearchForInteger();\n\t\tif(res1==-1)\n\t\t\tSystem.out.println(\"your no. not found\");\n\t\t else\n\t\t System.out.println(\"your no.found at index:\"+res1);\n\t\tlong second=System.currentTimeMillis();\n\t\tSystem.out.println((second-first)/1000+\"seconds\");\n\t\t\n\t\t//method 3\n\t\tint res3[]=Utility.bubbleSortForIntegers();\n\t\tfor(int i=0;i<res3.length;i++)\n\t\t\tSystem.out.println(res3[i]);\n\t\tlong third=System.currentTimeMillis();\n\t\tSystem.out.println((third-second)/1000+\"seconds\");\n\t\t\n\t\t//method 4\n\t\tString res4[]=Utility.bubbleSortForStrings();\n\t\tfor(int i=0;i<res4.length;i++)\n\t\t\tSystem.out.println(res4[i]);\n\t\tlong fourth=System.currentTimeMillis();\n\t\tSystem.out.println((fourth-third)/1000+\"seconds\");\n\t\t\n\t\t//method 5\n\t\tint res5[]=Utility.insertionSortForInteger();\n\t\tfor(int i=0;i<res5.length;i++)\n\t\t\tSystem.out.println(res5[i]);\n\t\tlong fifth=System.currentTimeMillis();\n\t\tSystem.out.println((fifth-fourth)/1000+\"seconds\");\n\t\t\n\t\t//method 6\n\t\tString res6[]=Utility.insertionSortForString();\n\t\tfor(int i=0;i<res6.length;i++)\n\t\t\tSystem.out.println(res6[i]);\n\t\tlong sixth=System.currentTimeMillis();\n\t\tSystem.out.println((sixth-fifth)/1000+\"seconds\");\n\t}", "private void faster() {\n BigInteger[] denoms = new BigInteger[1000];\n BigInteger[] nums = new BigInteger[1000];\n\n nums[0] = BigInteger.valueOf(3);\n denoms[0] = BigInteger.valueOf(2);\n\n for (int i = 1; i < 1000; i++) {\n denoms[i] = nums[i - 1].add(denoms[i - 1]);\n nums[i] = denoms[i].add(denoms[i - 1]);\n }\n\n int count = 0;\n for (int i = 1; i < 1000; i++) {\n if (nums[i].toString().length() > denoms[i].toString().length()) {\n count++;\n }\n }\n this.answer = count;\n }", "@Override\n\tpublic int isFast() {\n\t\treturn 2;\n\t}", "private static int runBenchmark(int n) {\n int result = 0;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n result = benchmarkedMethod();\n }\n }\n return result;\n }", "public static int example1(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\t}", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "public static void main(String[] args) {\n\t\t\n\t\tint A[]= new int[100000000];\n\t\tfor(int i = 0; i < 100000000; i++) {\n\t\t A[i] = (int)(Math.random() * 100) + 1;\n }\n double duration = 0;\n long end = 0;\n long start = 0;\n start = System.currentTimeMillis();\n System.out.println(start);\n MinValueIndex(A, 6);\n end = System.currentTimeMillis();\n\t\tduration = end-start;\n\t\tSystem.out.println(end); \n\t\tduration = duration / 5;\n\t\tSystem.out.println(duration);\n\t}", "public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(UFTest.class.getResource(\"/\").getPath()+\"1.5/largeUF.txt\"));\n String str = bufferedReader.readLine();\n UFLJWQU uf = new UFLJWQU(Integer.parseInt(str));\n long beginTime =System.currentTimeMillis();\n while ((str = bufferedReader.readLine())!=null){\n String[] array = str.split(\" \");\n int p = Integer.parseInt(array[0]);\n int q = Integer.parseInt(array[1]);\n if(uf.connected(p,q)) continue;\n uf.union(p,q);\n// System.out.println(p+\" -- \"+q);\n }\n System.out.println(uf.count());\n System.out.println(\"cost time :\"+(System.currentTimeMillis() - beginTime));\n }", "public int[] fix34(int[] nums) {\r\n\tint i=0; // O(1)\r\n while(i<nums.length && nums[i]!=3) // O(n)\r\n i++; // n+1\r\n int j=i; // O(1)\r\n while(j+1<nums.length && nums[j+1]!=4) // O(n)\r\n j++; // n+1\r\n while(i<nums.length){ // O(n)\r\n if(nums[i]==3){ // O(1)\r\n int temp=nums[i+1]; // O(1)\r\n nums[i+1]=nums[j+1]; //O(1)\r\n nums[j+1]=temp; // O(1)\r\n while(j+1<nums.length && nums[j+1] != 4) //O(n)\r\n j++; // n+1\r\n }\r\n i++; // n+1\r\n }\r\n return nums; //O(1)\r\n}", "private static int betterSolution(int n) {\n return n*n*n;\n }", "@Override public short getComplexity() {\n return 0;\n }", "private static void task2(int nUMS, BinarySearchTree<Integer> t) {\n\t\tSystem.out.println(\"Binary Search Started...\");\n\t double search_start = 0, search_end = 0;\n\t int totalkeymatched = 0;\n\n\t search_start = System.nanoTime();\n\t \n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n\t \t\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (t.contains(checker)) {\n\t\n//\t System.out.println(\"Key Matches\");\n\t totalkeymatched++;\n\t \t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each search: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t System.out.println(\"TOTAL MATCHES \" + totalkeymatched);\n\t\t\n\t}", "private int find(int p){\n while(p!=id[p]){\n p=id[p];\n eachDoUnionArrayAccessTimes+=2; //遍历读取某个元素算一次,设置值也算一次,所以加2次\n }\n eachDoUnionArrayAccessTimes++; //查询p的时候依然会读取一次\n return p;\n }", "public static void main(String[] args) {\n\t\tThread thread1=new Thread(new Runnable(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs1=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size1=:\"+hs1.size());\r\n\t\t\t\tfor(String result:hs1){\r\n\t\t\t\t\tresult.toString();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time1=: \"+(end-start));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tThread thread2=new Thread(new Runnable(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs2=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size2=:\"+hs2.size());\r\n\t\t\t\tIterator<String> iter = hs2.iterator();\r\n\t\t\t\twhile(iter.hasNext()){\r\n\t\t\t\t String result = iter.next();\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time2=: \"+(end-start));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\tthread1.start();\r\n\t\tthread2.start();\r\n\r\n\t\r\n\t}", "private static void arrayInserionTime() {\n\t\t String[] namesArray = new String[1000];\n\t\t \n\t long startTime = System.nanoTime();\n\t \n\t for (int i = 0; i < namesArray.length; i++)\n\t {\n\t namesArray[i] = \"Name\"+i;\n\t }\n\t \n\t long endTime = System.nanoTime(); \n\t \n\t System.out.println(\"Time taken by Array : \"+(endTime - startTime)/1000+\"us\");\n\t \n\t ArrayList<String> nameList = new ArrayList<String>(); \n\t \n\t startTime = System.nanoTime();\n\t \n\t for (int i = 0; i <= 1000; i++)\n\t {\n\t nameList.add(\"Name\"+i);\n\t }\n\t \n\t endTime = System.nanoTime();\n\t \n\t System.out.println(\"Time taken by ArrayList : \"+(endTime-startTime)/1000+\"us\");\n\n\t}", "private static void task03(int nUMS, AVLTree<Integer> h) {\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Deletion in the table...\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\tif(h.isEmpty() == false)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\th.remove(i);\n\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tSystem.out.println(\"Is it empty \" + h.isEmpty());\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}", "private static int benchmarkedMethod() {\n return 3;\n }", "public static boolean addUpToFast(int[] array, int n){\n\t\tHashSet<Integer> hs = new HashSet<Integer>();\n\t\tfor(int i = 0; i < array.length; i++){\n\t\t\tif(hs.contains(n-array[i]))\n\t\t\t\treturn true;\n\t\t\ths.add(array[i]);\n\t\t}\n\t\treturn false;\n\t}", "@Test\n public void timeAppendObject() {\n Object o =\n new Object() {\n @Override\n public String toString() {\n return \"constant\";\n }\n };\n BenchmarkState state = mPerfStatusReporter.getBenchmarkState();\n while (state.keepRunning()) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < mLength; ++j) {\n sb.append(o);\n }\n }\n }", "private static void task3(int nUMS, BinarySearchTree<Integer> t) {\n\t\t\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Deletion in the table...\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\tif(t.isEmpty() == false)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tt.remove(i);\n\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tSystem.out.println(\"Is it empty \" + t.isEmpty());\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }", "public long problem2b(){\r\n LinkedList<String> linkList = new LinkedList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n linkList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start; \r\n }", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "public static void main(String[] args) {\n\t\tArrayList<Integer> array = new ArrayList<>();\n\t\tLinkedList<Integer> linked = new LinkedList<>();\n\t\t\n\t\tlong aStart = System.currentTimeMillis();\n\t\tint i;\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tarray.add(i);\n\t\t}\n\t\tlong aEnd = System.currentTimeMillis();\n\t\tlong aTime = aEnd - aStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+aTime+\"ms\");\n\t\t\n\t\t\n\t\tlong lStart = System.currentTimeMillis();\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t\tlong lEnd = System.currentTimeMillis();\n\t\tlong lTime = lEnd - lStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+lTime+\"ms\");\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t\t\n\t\t\n\t\taStart = System.currentTimeMillis();\n\t\tfor(i = 0; i<1000000; i++){\n\t\t\tarray.add(i);\n\t\t}\n\t\taEnd = System.currentTimeMillis();\n\t\taTime = aEnd - aStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+aTime+\"ms\");\n\t\t\n\t\t\n\t\tlStart = System.currentTimeMillis();\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t\tlEnd = System.currentTimeMillis();\n\t\tlTime = lEnd - lStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+lTime+\"ms\");\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t TreeSet<Integer> treeSet = new TreeSet<Integer>();\n\t\t \n\t\t treeSet.add(21);\n\t\t treeSet.add(10);\n\t\t treeSet.add(25);\n\t\t // treeSet.add(null);\n\t\t treeSet.add(25);\n\t\t //treeSet.add(null);\n\t\t long start = System.currentTimeMillis();\n\t\t Iterator<Integer> iterator = treeSet.iterator();\n\t\t while(iterator.hasNext())\n\t\t {\n\t\t\t System.out.println(iterator.next());\n\t\t }\n\t\t long end = System.currentTimeMillis();\n\t\t System.out.println(end - start);\n\t}", "private static void doStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.stream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doStream(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "public static void arraySpeedTestRemove0() {\n ArrayList<Integer> list = new ArrayList<Integer>();\n\t\tfor(int n = 0; n < 8000000; n++) {\n list.add(n);\n }\n\n //Displaying quantity of elements\n\t\tSystem.out.println(\"*** Quantity of elements in the collection: \" + list.size());\n\n //Deleting last element in the collection\n long begin = System.currentTimeMillis();\n\t\tlist.remove(list.size()-1);\n long end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing last element has taken: \" + (end - begin) + \"ms\");\n\n //Deleting first element from collection\n begin = System.currentTimeMillis();\n\t\tlist.remove(0);\n end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing first element has taken: \" + (end - begin) + \"ms\");\n}", "public static void main(String[] args) {\n\t\tfinal long startTime = System.nanoTime();\r\n\t\t\r\n\t\tint [] plop = {1,1,1,2,2,3};\r\n\t\tSystem.out.println(removeDuplicates2(plop));\r\n\t\t\r\n\r\n\t\tfinal long duration = System.nanoTime() - startTime;\r\n\t\tSystem.out.println(duration);\r\n\t\t\r\n\t}", "public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}", "public static void main(String[] args) {\n float[] fb=new float[9];\n fb[0]=(int)12;\n fb[1]=(byte)13;\n fb[2]=(short)8;\n fb[3]=12.021f;\n // fb[4]=23443.43d;\n// fb[4]='a';\n// for(int i=0;i<=4;i++) {\n// \t System.out.println(fb[i]);\n// }\n List<Integer> lis1=new ArrayList<>();\n List<Integer> lis2=new ArrayList<>();\n lis1.add(2);\n lis1.add(4);\n lis1.add(16);\n lis1.add(32);\n lis1.add(96);\n lis1.add(123);\n lis1.add(435);\n lis1.add(234);\n lis1.add(100);\n lis1.add(122);\n lis1.add(240);\n lis1.add(350);\n java.util.Iterator<Integer> itr= lis1.iterator();\n //while(itr.hasNext()) {\n // itr.remove();\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n\n \t System.out.println(lis1);\n // \n// long startTime = System.currentTimeMillis();\n// getTotalX(lis1,lis2);\n// System.out.println(\"Time taken by 2 * o(n^2) \" + (System.currentTimeMillis() - startTime) + \"ms\"); \n// \n \t\t \n\t}", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "public int findDuplicate(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n\n int slow = nums[0];\n int fast = nums[nums[0]];\n\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n\n fast = 0;\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n}", "public static void main(String[] args) {\n\t\tint size = 600_000_000;\n\t\tint[] mas = new int[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tmas[i] = i;\n\t\t}\n\n\t\t// positive test\n\t\tint target = size - 1;\n\n\t\tlong start = System.currentTimeMillis();\n\t\tlinearSearchTestPositive(mas, target, target);\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(end - start);\n\n\n\t\tlong start1 = System.currentTimeMillis();\n\t\tbinarySearchTestPositive(mas, target, target);\n\t\tlong end1 = System.currentTimeMillis();\n\t\tSystem.out.println(end1 - start1);\n\t}", "public static void main (String []args) {\n\tlong first = System.currentTimeMillis();\n\tlong sum=0;\n\tfor (int i = 0; i < 100000; i++) {\n\t String[] str = strings();\n\t sum += str[0].charAt(0);\n\t}\n\tlong done = System.currentTimeMillis();\n\n\tSystem.out.println ((done - first)*1000);\n\tSystem.out.println (sum);\n }", "private static void task1(int nUMS, BinarySearchTree<Integer> t, GenerateInt generateInt) {\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...Binary Tree\" );\n\t\t int count=1;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\tt.insert(i);\n//\t\t\t\tSystem.out.println(i);\n\t\t\t\tcount = i;\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }", "private boolean slowEquals(byte[] a, byte[] b)\n {\n int diff = a.length ^ b.length;\n for(int i = 0; i < a.length && i < b.length; i++)\n diff |= a[i] ^ b[i];\n return diff == 0;\n }", "static int runningTime(int[] arr) {\n return insertionSort(arr);\n \n }", "private static boolean slowEquals(final byte[] a, final byte[] b) {\n int diff = a.length ^ b.length;\n for (int i = 0; i < a.length && i < b.length; i++) {\n diff |= a[i] ^ b[i];\n }\n return diff == 0;\n }", "public static int[] exe1(int[] arr){ // Solution O(n) in time and constant in Memory\n int nzeros=0;\n\n for (int i=0; i<arr.length; i++) {\n arr[i-nzeros] = arr[i];\n if (arr[i] == 0) {\n nzeros++;\n }\n }\n for (int i=arr.length-1; i>arr.length-nzeros-1; i--) {\n arr[i] = 0;\n }\n\n return arr;\n }", "public static void s1AscendingTest() {\n int key = 903836722;\n SortingLab<Integer> sli = new SortingLab<Integer>(key);\n int M = 600000;\n int N = 1000;\n double start;\n double elapsedTime;\n System.out.print(\"Sort 1 Ascending\\n\");\n for (; N < M; N *= 2) {\n Integer[] ai = getRandomArray(N, Integer.MAX_VALUE);\n Arrays.sort(ai);\n start = System.nanoTime();\n sli.sort1(ai);\n elapsedTime = (System.nanoTime() - start) / 1_000_000_000d;\n System.out.print(N + \"\\t\");\n System.out.printf(\"%4.3f\\n\", elapsedTime);\n }\n }", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "public static void main(String args[] ) throws Exception {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] seqArray = new int[n];\n for (int i = 0; i < n; i++) {\n seqArray[i] = scanner.nextInt();\n }\n // getSeqValue(seqArray); //this method is an accepted one on Hackerrank but time complexity is not order n; i.e. !O(n);\n getLinearOrderY(seqArray); // trying to get O(n) time complexity;\n }", "private static void task222(int nUMS, RedBlackBST<Integer, Integer> i) {\n\t\tSystem.out.println(\"RED BLAST BST Started Search...\");\n\t double search_start = 0, search_end = 0;\n\t int totalkeymatched = 0;\n\n\t search_start = System.nanoTime();\n\t \n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n\t \t\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (i.contains(checker)) {\n\t\n//\t System.out.println(\"Key Matches\");\n\t totalkeymatched++;\n\t \t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each search: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t System.out.println(\"TOTAL MATCHES \" + totalkeymatched);\n\n\t}", "private int d(amj paramamj)\r\n/* 50: */ {\r\n/* 51: 70 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 52: 71 */ if ((this.a[i] != null) && (this.a[i].b() == paramamj.b()) && (this.a[i].d()) && (this.a[i].b < this.a[i].c()) && (this.a[i].b < p_()) && ((!this.a[i].f()) || (this.a[i].i() == paramamj.i())) && (amj.a(this.a[i], paramamj))) {\r\n/* 53: 72 */ return i;\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: 75 */ return -1;\r\n/* 57: */ }", "public static int solveEfficient(int n) {\n if (n == 0 || n == 1)\n return 1;\n\n int n1 = 1;\n int n2 = 1;\n int sum = 0;\n\n for (int i = 2; i <= n; i++) {\n sum = n1 + n2;\n n1 = n2;\n n2 = sum;\n }\n return sum;\n }", "@Override\n protected long timeTest(Collection210X dataStructure, int n)\n {\n Random random = new Random(CPUClock.getNumTicks());\n Integer item = random.nextInt(2 * n);\n\n // Makes sure item being added is odd, and so not already in the data structure\n if (item % 2 == 0) {\n item = item ++;\n }\n\n final long start = CPUClock.getNumTicks();\n dataStructure.add(item);\n final long end = CPUClock.getNumTicks();\n\n return end - start;\n }", "static int linearLogTime(int[] n, int[] m) {\n if(n == null || n.length == 0 || m == null || m.length == 0) return -1;\n int sum = 0;\n for(int i = 0; i < n.length; ++i) {\n sum += logTime(m, 0, m.length, 15);\n }\n return sum;\n }", "private static void task033(int nUMS, RedBlackBST<Integer, Integer> i) {\n\t\t\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Deletion in the table...\" );\n\t int count=0;\n\t\tfor( int j = 1; j <= nUMS; j++)\n\t\t{\n\t\t\tif(i.isEmpty() == false)\n\t\t\t{\n\t\t\t\n\t\t\ti.delete(j);\n\t\t\t\n\t\t\t}\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tSystem.out.println(\"Is it empty \" + i.isEmpty());\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\n\t\t\n\t}", "private static void task03333(int nUMS, SplayTree<Integer> j) {\n\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Deletion in the table...\" );\n\t int count=0;\n\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t{\n\t\t\tif(j.isEmpty() == false)\n\t\t\t{\n\t\t\t\n\t\t\tj.remove(i);\n\t\t\t\n\t\t\t}\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tSystem.out.println(\"Is it empty \" + j.isEmpty());\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t}", "public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }", "private static boolean slowEquals(byte[] a, byte[] b) {\n\t int diff = a.length ^ b.length;\n\t for(int i = 0; i < a.length && i < b.length; i++)\n\t diff |= a[i] ^ b[i];\n\t return diff == 0;\n\t }", "static /* synthetic */ void m34120F(int i, long j) {\n AppMethodBeat.m2504i(114776);\n C22440b c22440b;\n if (i == 11) {\n c22440b = new C22440b();\n c22440b.startTime = System.currentTimeMillis();\n sJR.put(Long.valueOf(j), c22440b);\n AppMethodBeat.m2505o(114776);\n return;\n }\n if (i == 12) {\n if (!sJR.containsKey(Long.valueOf(j))) {\n new C22440b().startTime = System.currentTimeMillis();\n AppMethodBeat.m2505o(114776);\n return;\n }\n } else if (i == 13) {\n c22440b = (C22440b) sJR.get(Long.valueOf(j));\n if (c22440b != null) {\n c22440b.endTime = System.currentTimeMillis();\n sJT.add(c22440b);\n sJR.remove(Long.valueOf(j));\n }\n }\n AppMethodBeat.m2505o(114776);\n }", "static int logTime(int[] n, int start, int end, int val) {\n if(n == null || n.length == 0) return -1;\n int mid = (start + end) / 2;\n if(val < n[mid]) logTime(n, 0, mid, val);\n if(val > n[mid]) logTime(n, mid + 1, n.length, val);\n return n[mid];\n }", "private static void task22(int nUMS, AVLTree<Integer> h) {\n\t\t\n\t\tSystem.out.println(\"AVL Started...\");\n\t double search_start = 0, search_end = 0;\n\t int totalkeymatched = 0;\n\n\t search_start = System.nanoTime();\n\t \n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n\t \t\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (h.contains(checker)) {\n\t\n//\t System.out.println(\"Key Matches\");\n\t totalkeymatched++;\n\t \t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each search: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t System.out.println(\"TOTAL MATCHES \" + totalkeymatched);\n\t\t\n\t\t\n\t}", "private static void task2222(int nUMS, SplayTree<Integer> j) {\n\t\tSystem.out.println(\"SPLAY Started Search...\");\n\t double search_start = 0, search_end = 0;\n\t int totalkeymatched = 0;\n\n\t search_start = System.nanoTime();\n\t \n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n\t \t\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (j.contains(checker)) {\n\t\n//\t System.out.println(\"Key Matches\");\n\t totalkeymatched++;\n\t \t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each search: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t System.out.println(\"TOTAL MATCHES \" + totalkeymatched);\n\n\t}", "private static void task4(int nUMS, BinarySearchTree<Integer> t) {\n\t\t\n\t\tdouble search_start = 0, search_end = 0;\n\n\t System.out.println(\"SPLAY DELETION Started...\");\n\t search_start = System.nanoTime();\n\t int count = 0;\n\t \t\n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (t.contains(checker)) {\n\t t.remove(checker);\n//\t System.out.println(\"INT Removed\");\n\t count++;\n\t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each deletion: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t \n\t System.out.println(\"TOTAL REMOVES\" + count);\n\n\t\t\n\t\t\n\t}", "private static boolean slowEquals(byte[] a, byte[] b) {\r\n int diff = a.length ^ b.length;\r\n for (int i = 0; i < a.length && i < b.length; i++) {\r\n diff |= a[i] ^ b[i];\r\n }\r\n return diff == 0;\r\n }", "private static void doParallelStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.parallelStream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doParallelStream(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }", "public static void doFor(){\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n int ans = 0;\n for (Person p: personCopy){\n if (p.getHeight() > 180){\n ans++;\n }\n }\n System.out.println(\"doFor(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "public static int getBetterApproach(int n){\n\t\t\n\t\tint t[] = new int[n+1];\n\t\t\n if(n<=2)\n return n;\n \n\t\tt[0] = 0;\n\t\tt[1] = 1;\n\t\tt[2] = 2;\n\t\tfor(int i = 3;i<=n;i++){\n\t\t\tt[i] = t[i-1] + t[i-2];\n\t\t}\n\t\treturn t[n];\n\t}", "public static void main(String[] args) {\n\t\tint a[]= {15,3,7,1,9,2};\n\t\tsubarraysum(a,11);//Time complexity O(n^2) space O(1)\n\n\t\tsubarraysum_reducecomplexity(a,11,a.length); //Time complexity O(n) space O(1)\n\n\t}", "public static void main(String[] args) { int n = 100000000;\n// Integer[] array = ArrayGenerator.randomGenerator(n, n);\n// Integer[] arr = Arrays.copyOf(array, array.length);\n// PerformanceSort.test(\"QuickSort\", array);\n// PerformanceSort.test(\"MergeSort\", arr);\n// Integer[] array1 = ArrayGenerator.orderGenerator(n);\n// Integer[] arr1 = Arrays.copyOf(array1, array1.length);\n// PerformanceSort.test(\"QuickSort\", array1);\n// PerformanceSort.test(\"MergeSort\", arr1);\n//\n int n = 5000000;\n Integer[] array = ArrayGenerator.randomGenerator(n, 3);\n Integer[] arr = Arrays.copyOf(array, array.length);\n\n PerformanceSort.test(\"QuickSort3\", array);\n PerformanceSort.test(\"QuickSort2\", arr);\n// Integer[] array = new Integer[]{1, 8, 7, 6, 4};\n// PerformanceSort.test(\"QuickSort2\", array);\n\n }", "static int size_of_ori(String passed){\n\t\treturn 2;\n\t}", "public static void s1RandomTest() {\n int key = 903836722;\n SortingLab<Integer> sli = new SortingLab<Integer>(key);\n int M = 600000;\n int N = 1000;\n double start;\n double elapsedTime;\n System.out.print(\"Sort 1 Random\\n\");\n for (; N < M; N *= 2) {\n Integer[] ai = getRandomArray(N, Integer.MAX_VALUE);\n start = System.nanoTime();\n sli.sort1(ai);\n elapsedTime = (System.nanoTime() - start) / 1_000_000_000d;\n System.out.print(N + \"\\t\");\n System.out.printf(\"%4.3f\\n\", elapsedTime);\n }\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}", "@Test\n public void test2(){\n times = new ArrayList<Long>();\n for(int i = 0; i<threadnums.length; i++){\n BSTInterface tree = new LockFreeBST();\n makeThread2(tree, threadnums[i]);\n\n\n System.out.println( \"When there are \"+threadnums[i] + \"threads, there are \"+tree.getNum() + \" nodes\");\n\n long startTime=System.currentTimeMillis();\n for(int k = 0; k<100; k++)\n tree.search(totalnum/2);\n long endTime=System.currentTimeMillis();\n System.out.println( \"When there are \"+threadnums[i] + \"threads, the search takes \"+ (endTime-startTime) + \" ms\");\n }\n for(int i = 0; i<threadnums.length; i++){\n System.out.println(\"When there are \"+threadnums[i]+\" threads, \"+\"it takes \"+times.get(i)+\" ms\");\n }\n }", "public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }", "public static void main(String[] args){\n int s = 80;\n int n = (int) Math.pow(10, 7);\n Integer[] a = new Integer[n];\n Random rand = new Random();\n for (int i = 0; i < n; i++){\n a[i] = (int) (n*rand.nextDouble());\n }\n double binTime = binSearchT(s, a);\n double linTime = linSearchT(s, a);\n System.out.println(\"binTime: \"+ binTime);\n System.out.println(\"linTime: \"+ linTime);\n\n }", "private static void sortingMemo() {\n\t\t\n\t}", "public void n()\r\n/* 515: */ {\r\n/* 516:523 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 517:524 */ if (this.a[i] != null)\r\n/* 518: */ {\r\n/* 519:525 */ this.d.a(this.a[i], true, false);\r\n/* 520:526 */ this.a[i] = null;\r\n/* 521: */ }\r\n/* 522: */ }\r\n/* 523:529 */ for (i = 0; i < this.b.length; i++) {\r\n/* 524:530 */ if (this.b[i] != null)\r\n/* 525: */ {\r\n/* 526:531 */ this.d.a(this.b[i], true, false);\r\n/* 527:532 */ this.b[i] = null;\r\n/* 528: */ }\r\n/* 529: */ }\r\n/* 530: */ }", "private static void task11(int nUMS, AVLTree<Integer> h, GenerateInt generateInt) {\n\t\t\n\t\t \tlong start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...AVL TREE\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\th.insert(i);\n\t\t\t\tcount = i;\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}", "public static void main(String[] args){\n int MIN = Integer.parseInt(args[0]);\n MAX = Integer.parseInt(args[1]);\n cutoffs = new int[args.length - 2];\n cache = new ArrayList<IndexedArrayList<SuperSavvyTrieHelper2>>();\n for (int i = 2; i < args.length; i++){\n cutoffs[i - 2] = Integer.parseInt(args[i]);\n cache.add(new IndexedArrayList<SuperSavvyTrieHelper2>());\n }\n for (int i = 0; i < cutoffs.length / 2; i++){\n int temp = cutoffs[i];\n cutoffs[i] = cutoffs[cutoffs.length - 1 - i];\n cutoffs[cutoffs.length - 1 - i] = temp;\n }\n multiplicitiesUsed = new boolean[MAX + 1];\n basesUsed = new DoublyLinkedArray(MAX + 1);\n SuperSavvyTrieHelper2.setCorrespondance(basesUsed);\n /*\n long count1 = lowerRecursion(MAX, 0);\n long count2 = middleRecursion(MAX, 0);\n long count3 = upperRecursion(MAX, 0);\n long total = count1 + count2 + count3;\n System.out.printf(\"%d + %d + %d = %d\\n\", count1, count2, count3, total);\n */\n hitCounts = new long[cutoffs.length];\n missCounts = new long[cutoffs.length];\n statCollector = new StatCollector(cutoffs);\n\n long startTime = System.nanoTime();\n long[] values = new long[MAX - MIN + 1];\n for (int i = MIN; i <= MAX; i++) {\n values[i - MIN] = upperRecursionWrapper(i);\n }\n //long[] testValues = new long[] {1752443,1911046, 2067456,2249444,2429337, 2647532,2852449,3101167,3350292,3632299,3916575};\n for (int i = 0; i < values.length; i++){\n //if (testValues[i] != values[i]){\n System.out.printf(\"%d: %d\\n\", i + MIN, values[i]);\n //}\n }\n long endTime = System.nanoTime();\n System.out.printf(\"%f,\", (double)(endTime - startTime) / 1000000000.0);\n long totalMissCounts = 0;\n long totalMissWeight1 = 0;\n long totalMissWeight2 = 0;\n long totalMissWeight3 = 0;\n /*\n for (int i = 0; i < cutoffs.length; i++){\n long totalCounts = hitCounts[i] + missCounts[i];\n totalMissCounts += missCounts[i];\n totalMissWeight1 += missCounts[i] * cutoffs[i];\n totalMissWeight2 += (hitCounts[i] / missCounts[i]) * cutoffs[i];\n totalMissWeight3 += (hitCounts[i] - missCounts[i]) * cutoffs[i] * cutoffs[i];\n System.out.printf(\"\\tCache %d: %d/%d/%d (%.5f%%)\", cutoffs[i], hitCounts[i], missCounts[i], totalCounts, (double) hitCounts[i] / totalCounts);\n }\n System.out.printf(\"\\t\\tMissCounts: %d, weighted: %d, ratio: %d, diff^2: %d\\n\", totalMissCounts, totalMissWeight1, totalMissWeight2, totalMissWeight3);\n */\n statCollector.printAll();\n }", "public static void main(String[] args) {\n\t\tint p[]=new int[200];\n\t\tint n;int count=0;\n\t\tint pp=0;\n\t\tfor(int i=2;i<1000;i++) {\n\t\t\tint flag=1;\n\t\t\tfor(int j=2;j<i;j++) {\n\t\t\t\tif(i%j==0) {\n\t\t\t\t\tflag++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t//checking if flag is 0 or not\t\n\t\t\t}if(flag==1) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(i);\n\t\t\t \n\t\t\t\tp[pp]=i;\n\t\t\t pp++;\n\t\t\t count++;\n\t\t\t}\n\t}\n\t\tn=count;\n\t//for(int i=0;i<p.length;i++) {\n\t//if(p[i]!=0)\n\t //System.out.println(p[i]);\n\t//}\n\tint k=0;\n\tint count1=0;\n\tboolean b=false;\n\tint aa[]=new int[200];\t\n\t//calling my stack class \n\tMyStack m=new MyStack();\n\n\tfor(int i=0;i<p.length-2;i++) {\n\t\tfor(int j=i+1;j<p.length;j++) {\n\t\tif(p[i]!=0&&p[j]!=0)\n\t\t//calling check method anagram calss\t\n\t\t\tb=AnaQueue.check(p[i],p[j]);\n\t\tif(b==true) {\n\t\t\tSystem.out.println(p[i]+\" \"+p[j]);\n\t\t\taa[k]=p[i];\n\t\t\tm.push(p[i]);\n\t\t//\tSystem.out.println(aa[k]);\n\t\t\tk++; \n\t\t\taa[k]=p[j];\n\t\t\tk++;\n\t\t\tm.push(p[j]);\n\t\t\tcount1++;\n//\t\t\tif(p[i]==aa[k-2]) {\n//\t\t\t\tSystem.out.println(p[i]+\" \"+aa[k-2]);\n//\t\t\t}\n\t\t//\tSystem.out.println(aa[k]);\n\t\t//\tSystem.out.println(aa[k-1]+\" \"+aa[k-2]);\n\t\t\t\t}\n\t\t}\n\n\n\t}\n\t//for(int i=0;i<count1*2;i++)\n\t//{int a=m.popint();\n\t//if(p[i]!=0)\n\t\t//System.out.println(a);\n\t//}\n\t//for(int t=0;t<aa.length;t++) {\n\t\t//if(aa[t]!=0) {\n\t\t//\tSystem.out.println(aa[t]);\n\t\t//}\n\t//}\n\tSystem.out.println(\"this is for stack\");\n\tSystem.out.println(\" ************************\");\n\n\tm.reverse();\n\t System.out.println(count1); \n\tSystem.out.println(\"this for queue\");\n\tSystem.out.println(\" ************************\");\n\tMyQueue mq=new MyQueue(count1*2);\n\tfor(int i=0;i<p.length-2;i++) {\n\t\tfor(int j=i+1;j<p.length;j++) {\n\t\tif(p[i]!=0&&p[j]!=0)\n\t\t\tb=AnaQueue.check(p[i],p[j]);\n\t\tif(b==true) {\n\t\t\t//System.out.println(p[i]+\" \"+p[j]);\n\t\t\t//aa[k]=p[i];\n\t\t\tmq.enqueue(p[i]);\n\t\t//\tSystem.out.println(aa[k]);\n\t\t\t//k++; \n\t\t\t//aa[k]=p[j];\n\t\t\t//k++;\n\t\t\tmq.enqueue(p[j]);\n\t\t\t\n//\t\t\tif(p[i]==aa[k-2]) {\n//\t\t\t\tSystem.out.println(p[i]+\" \"+aa[k-2]);\n//\t\t\t}\n\t\t//\tSystem.out.println(aa[k]);\n\t\t//\tSystem.out.println(aa[k-1]+\" \"+aa[k-2]);\n\t\t\t\t}\n\t\t}\n\n\n\t}\n\t//for(int i=0;i<(count1*2)-1;i++);\n\t//{\n\t//int a=mq.dequeue();\n\t//System.out.println(a);\n\t//}\n\tSystem.out.println(mq);\n\n\n\t}", "private void cpu_jogada(){\n\n for(i=0;i<8;i++){\n for(j=0;j<8;j++){\n if(matriz[i][j] == jd2){\n // verificarAtaque(i,j,jd2);\n //verificarAtaque as posssibilidades de\n // ataque : defesa : aleatorio\n //ataque tem prioridade 1 - ve se tem como comer quem ataca\n //defesa tem prioridade 2 - ou movimenta a peca que esta sob ataque ou movimenta a outa para ajudar\n //aleatorio nao tem prioridade -- caso nao esteja sob ataque ou defesa\n }\n }\n }\n }", "static long nPolyNTime(int[] n) {\n int temp = n.length;\n long sum = 0;\n if(n == null || n.length == 0) return -1;\n for(int i = 0; i < n.length; ++i) {\n while(temp --> 0) {\n for(int j = 0; j < n.length; ++j) {\n sum += n[i] + n[j];\n }\n }\n }\n return sum;\n }", "protected int getTimesOptimized()\r\n {\r\n return timesOptimized;\r\n }", "static int find(int[] arr){\n\t\tif(arr.length==1) return -1;\n\t\tint slow = arr[0] , fast = arr[arr[0]];\n\t\twhile(slow!=fast){\n\t\t\tslow = arr[slow];\n\t\t\tfast = arr[arr[fast]];\n\t\t}\n\t\tslow = 0;\n\t\twhile(slow!=fast){\n\t\t\tslow = arr[slow];\n\t\t\tfast = arr[fast];\n\t\t}\n\t\treturn slow;\n\n\t}", "private static void task111(int nUMS, RedBlackBST<Integer, Integer> i, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...RED BLAST BST TREE\" );\n\t int count=0;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\ti.put(z, z);\n\t\t\tcount = z;\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t}", "@Test\n public void test1(){\n times = new ArrayList<Long>();\n for(int i = 0; i<threadnums.length; i++){\n BSTInterface tree = new LockFreeBST();\n makeThread1(tree, threadnums[i]);\n\n System.out.println( \"When there are \"+threadnums[i] + \" threads, there are \"+tree.getNum() + \" nodes\");\n\n long startTime=System.currentTimeMillis();\n for(int k = 0; k<100; k++)\n tree.search(totalnum/2);\n long endTime=System.currentTimeMillis();\n System.out.println( \"When there are \"+threadnums[i] + \"threads, the search takes \"+ (endTime-startTime) + \" ms\");\n }\n for(int i = 0; i<threadnums.length; i++){\n System.out.println(\"When there are \"+threadnums[i]+\" threads, \"+\"it takes \"+times.get(i)+\" ms\");\n }\n }", "public void testPerformance() {\n \t}", "public boolean a(amj paramamj)\r\n/* 268: */ {\r\n/* 269:293 */ if ((paramamj == null) || (paramamj.b == 0) || (paramamj.b() == null)) {\r\n/* 270:294 */ return false;\r\n/* 271: */ }\r\n/* 272: */ try\r\n/* 273: */ {\r\n/* 274:298 */ if (!paramamj.g())\r\n/* 275: */ {\r\n/* 276: */ do\r\n/* 277: */ {\r\n/* 278:301 */ i = paramamj.b;\r\n/* 279:302 */ paramamj.b = e(paramamj);\r\n/* 280:303 */ } while ((paramamj.b > 0) && (paramamj.b < i));\r\n/* 281:304 */ if ((paramamj.b == i) && (this.d.by.d))\r\n/* 282: */ {\r\n/* 283:306 */ paramamj.b = 0;\r\n/* 284:307 */ return true;\r\n/* 285: */ }\r\n/* 286:309 */ return paramamj.b < i;\r\n/* 287: */ }\r\n/* 288:312 */ int i = j();\r\n/* 289:313 */ if (i >= 0)\r\n/* 290: */ {\r\n/* 291:314 */ this.a[i] = amj.b(paramamj);\r\n/* 292:315 */ this.a[i].c = 5;\r\n/* 293:316 */ paramamj.b = 0;\r\n/* 294:317 */ return true;\r\n/* 295: */ }\r\n/* 296:318 */ if (this.d.by.d)\r\n/* 297: */ {\r\n/* 298:320 */ paramamj.b = 0;\r\n/* 299:321 */ return true;\r\n/* 300: */ }\r\n/* 301:323 */ return false;\r\n/* 302: */ }\r\n/* 303: */ catch (Throwable localThrowable)\r\n/* 304: */ {\r\n/* 305:325 */ b localb = b.a(localThrowable, \"Adding item to inventory\");\r\n/* 306:326 */ j localj = localb.a(\"Item being added\");\r\n/* 307: */ \r\n/* 308:328 */ localj.a(\"Item ID\", Integer.valueOf(alq.b(paramamj.b())));\r\n/* 309:329 */ localj.a(\"Item data\", Integer.valueOf(paramamj.i()));\r\n/* 310:330 */ localj.a(\"Item name\", new ahc(this, paramamj));\r\n/* 311: */ \r\n/* 312: */ \r\n/* 313: */ \r\n/* 314: */ \r\n/* 315: */ \r\n/* 316: */ \r\n/* 317:337 */ throw new u(localb);\r\n/* 318: */ }\r\n/* 319: */ }", "public static void main(String[] args) {\n long startTime = System.nanoTime();\n Board b = new Board();\n b.board = InitialPositions.kiwiPeteBoard; // perft test\n\n int p2 = 0;\n int p3 = 0;\n int p4 = 0;\n int p5 = 0;\n\n List<Move> p1Moves = b.validMoves();\n int p1 = p1Moves.size();\n for (Move m : p1Moves){\n b.makeMove(m);\n List<Move> p2Moves = b.validMoves();\n p2 += p2Moves.size();\n for (Move n : p2Moves){\n b.makeMove(n);\n List<Move> p3Moves = b.validMoves();\n for (Move m3 : p3Moves){\n b.makeMove(m3);\n List<Move> moves4 = b.validMoves();\n p4 += moves4.size();\n for (Move m4 : moves4){\n b.makeMove(m4);\n p5 += b.validMoves().size();\n b.undoMove(m4);\n }\n b.undoMove(m3);\n }\n p3 += p3Moves.size();\n b.undoMove(n);\n }\n b.undoMove(m);\n }\n System.out.println();\n System.out.println(p1);\n System.out.println(p2);\n System.out.println(p3);\n System.out.println(p4);\n System.out.println(p5); // 193690690\n System.out.println(\"Time taken: \"+(System.nanoTime()-startTime)); // with int castles : 35003485400\n }", "public static void checkSpeed(int testSize) {\r\n\t\tSystem.out.println(\"Beginning checkSpeed indexOf test of size \" + testSize);\r\n\t\t\r\n\t\t// keep track of starting time before constructing\r\n\t\tlong start = System.currentTimeMillis();\r\n\t\t\r\n\t\t// fill up the list with even numbers\r\n\t\tint dot = testSize / 10;\r\n\t\tSortedIntList list = new SortedIntList(false, testSize);\r\n\t\tSystem.out.print(\" Building list of the first \" + testSize + \" multiples of 2: \");\r\n\t\tboolean addTooSlow = false;\r\n\t\tfor (int i = 0; i < testSize; i++) {\r\n\t\t\tlist.add(2 * i);\r\n\t\t\tif (i % dot == 0) {\r\n\t\t\t\tSystem.out.print(\".\");\r\n\t\t\t}\r\n\t\t\tif (!addTooSlow && System.currentTimeMillis() >= start + testSize / 20) {\r\n\t\t\t\tSystem.out.print(\" (add is too slow) \");\r\n\t\t\t\taddTooSlow = true;\r\n\t\t\t}\r\n\t\t}\r\n\t\tSystem.out.println();\r\n\t\tdouble elapsed = (System.currentTimeMillis() - start)/1000.0;\r\n\t\t// System.out.println(\" construction took \" + elapsed + \" seconds\");\r\n\t\t\r\n\t\t// keep track of starting time before indexOf tests\r\n\t\tSystem.out.print(\" Checking indexOf each element: \");\r\n\t\tstart = System.currentTimeMillis();\r\n\t\tdot = testSize / 10;\r\n\t\tfor (int i = 0; i < testSize; i++) {\r\n\t\t\tfor (int j = 0; j < 100; j++) {\r\n\t\t\t\tint actualIndex = list.indexOf(2 * i);\r\n\t\t\t\tif (actualIndex != i) {\r\n\t\t\t\t\tSystem.out.println();\r\n\t\t\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\t\"\\n\\nindexOf \" + 2 * i + \" should have returned: \" +\r\n\t\t\t\t\ti + \",\\n but your method actually returned: \" +\r\n\t\t\t\t\tactualIndex + \"\\n\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tif (System.currentTimeMillis() >= start + testSize / 5) {\r\n\t\t\t\tSystem.out.println();\r\n\t\t\t\tthrow new RuntimeException(\r\n\t\t\t\t\"\\n\\nindexOf appears to be running too slowly.\\n\");\r\n\t\t\t}\r\n\t\t\tif (i % dot == 0) {\r\n\t\t\t\tSystem.out.print(\".\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tdouble elapsed2 = (System.currentTimeMillis() - start)/1000.0;\r\n\t\tif (addTooSlow) {\r\n\t\t\tSystem.out.println();\r\n\t\t\tthrow new RuntimeException(\r\n\t\t\t\"\\n\\nYour add method appears to have run too slowly. (runtime: \" + elapsed + \" seconds)\\n\");\r\n\t\t}\r\n\t\tSystem.out.println(\"\\n Passed! (runtime: \" + elapsed2 + \" seconds)\\n\");\r\n\t}", "public static void main(String[] args) {\n\t\tlong start = System.currentTimeMillis();\r\n\t\t Scanner sc = new Scanner(System.in);\r\n\t int length = sc.nextInt();\r\n\t \r\n\t int[] n = new int[length];\r\n\t \r\n\t for (int i = 0; i < n.length ; ++i) n[i] = sc.nextInt();\r\n\t sc.close();\t \r\n\t Arrays.sort(n);\r\n\t \r\n\t for (int i = 0; i < n.length ; ++i) System.out.println(n[i]);\r\n\t long end = System.currentTimeMillis();\r\n\t System.out.println((end-start)/1000.0);\r\n\t}", "private static void get4ElementsSumCountFastest(String inputLine, int target) {\n String[] arr = inputLine.split(\" \");\n if (arr.length < 3) {\n System.out.println(0);\n return;\n }\n\n Map<Integer, Set<String>> pairSumMap = new HashMap<>();\n List<Integer> list = new ArrayList<>(arr.length);\n for (String s : arr) {\n list.add(Integer.parseInt(s.trim()));\n }\n\n int sum = 0, diff = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n sum = list.get(i) + list.get(j);\n if (sum < target) {\n pairSumMap.putIfAbsent(sum, new HashSet<>());\n pairSumMap.get(sum).add(i + \"-\" + j);\n }\n }\n }\n\n for (Map.Entry<Integer, Set<String>> mk : pairSumMap.entrySet()) {\n diff = target - mk.getKey();\n if (pairSumMap.containsKey(diff)) {\n Set<String> indexesList = mk.getValue();\n for (String index : indexesList) {\n int indexOrgX = Integer.parseInt(index.split(\"-\")[0]);\n int indexOrgY = Integer.parseInt(index.split(\"-\")[1]);\n for (String newIdx : pairSumMap.get(diff)) {\n int indexNewX = Integer.parseInt(newIdx.split(\"-\")[0]);\n int indexNewY = Integer.parseInt(newIdx.split(\"-\")[1]);\n if (indexOrgX != indexNewX && indexOrgX != indexNewY && indexOrgY != indexNewX && indexOrgY != indexNewY) {\n System.out.println(1);\n return;\n }\n }\n }\n }\n }\n System.out.println(0);\n }", "public DatosIteracion mejorIteracionOptimizada(\r\n\t\t\tArrayList<DatosIteracion> datos) {\r\n\t\tDatosIteracion d = new DatosIteracion(\"auxiliar\");\r\n\t\tLectura l = new Lectura(999999, 0, 0);\r\n\t\td.getValoresLecturas().add(l);\r\n\r\n\t\tfor (int i = 0; i < datos.size(); i++) {\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) < (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\td = datos.get(i);\r\n\t\t\t}\r\n\r\n\t\t\tif ((d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (d.getValoresLecturas(\r\n\t\t\t\t\td.getValoresLecturas().size() - 1).getTiempo() + 1)) == (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getCapturados() / (datos\r\n\t\t\t\t\t.get(i)\r\n\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t.getTiempo() + 1))) {\r\n\r\n\t\t\t\tif (d.getValoresLecturas(d.getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo() > datos\r\n\t\t\t\t\t\t.get(i)\r\n\t\t\t\t\t\t.getValoresLecturas(\r\n\t\t\t\t\t\t\t\tdatos.get(i).getValoresLecturas().size() - 1)\r\n\t\t\t\t\t\t.getTiempo()) {\r\n\r\n\t\t\t\t\td = datos.get(i);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn d;\r\n\t}", "public static void main(String[] args) {\n for (int N = 100; N <= 100000; N *= 10) {\n int[] nums = new int[N];\n Random random = new Random();\n for (int i = 0; i < N; i++) {\n nums[i] = random.nextInt(N * 10);\n }\n Long start = 0L, end = 0L;\n int[] quickSortArray = Arrays.copyOf(nums, nums.length);\n int[] InsertSortArray = Arrays.copyOf(nums, nums.length);\n int[] shellSortArray = Arrays.copyOf(nums, nums.length);\n int[] bubbleSortArray = Arrays.copyOf(nums, nums.length);\n int[] selectionSortArray = Arrays.copyOf(nums, nums.length);\n int[] mergeSortArray = Arrays.copyOf(nums, nums.length);\n System.out.println(\"数据量为:\" + N);\n start = System.currentTimeMillis();\n QuickSort.quickSort(quickSortArray, 0, N - 1);\n end = System.currentTimeMillis();\n System.out.println(\"快速排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n InsertSort.insertSort(InsertSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"插入排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n ShellSort.shellSort(shellSortArray, 8);\n end = System.currentTimeMillis();\n System.out.println(\"希尔排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n BubbleSort.bubbleSort(bubbleSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"冒泡排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n SelectionSort.selectionSort(selectionSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"选择排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n start = System.currentTimeMillis();\n MergeSort.mergeSort(mergeSortArray);\n end = System.currentTimeMillis();\n System.out.println(\"归并排序运行时间\" + 1.0 * (end - start) / 1000 + \"s\");\n }\n }", "private static void task0111(int nUMS, RedBlackBST<Integer, Integer> i, GenerateInt generateInt) {\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Fill in the table...RedBlast BST Tree\" );\n\t int count=1;\n\t\tfor( int z = 1; z <= nUMS; z++)\n\t\t{\n\t\t\t \t\t \n\t\t\ti.put(GenerateInt.generateNumber(), GenerateInt.generateNumber());\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\t\t\tcount = z;\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}", "public static void s1DescendingTest() {\n int key = 903836722;\n SortingLab<Integer> sli = new SortingLab<Integer>(key);\n int M = 600000;\n int N = 1000;\n double start;\n double elapsedTime;\n System.out.print(\"Sort 1 Descending\\n\");\n for (; N < M; N *= 2) {\n Integer[] ai = getRandomArray(N, Integer.MAX_VALUE);\n Arrays.sort(ai);\n Integer[] bi = new Integer[ai.length];\n int count = 0;\n for (int i = ai.length - 1; i >= 0; i--) {\n bi[count] = ai[i];\n count++;\n }\n start = System.nanoTime();\n sli.sort1(bi);\n elapsedTime = (System.nanoTime() - start) / 1_000_000_000d;\n System.out.print(N + \"\\t\");\n System.out.printf(\"%4.3f\\n\", elapsedTime);\n }\n }" ]
[ "0.6337833", "0.62423337", "0.6169822", "0.5828919", "0.5818344", "0.5790775", "0.5753473", "0.5618844", "0.5449486", "0.5439291", "0.542995", "0.54262495", "0.5371234", "0.53521556", "0.53339696", "0.5322248", "0.5302593", "0.5292838", "0.5277412", "0.5270034", "0.5267193", "0.526348", "0.52557176", "0.5252557", "0.52418846", "0.52407485", "0.523183", "0.52256763", "0.5214829", "0.5197932", "0.5192031", "0.5188716", "0.5174222", "0.5172291", "0.51506984", "0.5126628", "0.5126129", "0.5122226", "0.5119945", "0.5119503", "0.5117665", "0.51118535", "0.51094335", "0.5099613", "0.50956714", "0.5094783", "0.5082488", "0.50811744", "0.50709903", "0.5070916", "0.50527257", "0.505061", "0.50485736", "0.5044592", "0.5036257", "0.5024062", "0.5016689", "0.50154287", "0.5012989", "0.50114346", "0.5002877", "0.50004107", "0.49986598", "0.499598", "0.4993602", "0.4993154", "0.4987693", "0.49819314", "0.49805623", "0.49731156", "0.49692142", "0.49653482", "0.49621105", "0.49548218", "0.4935213", "0.49232998", "0.49192452", "0.4916547", "0.4914421", "0.49042678", "0.49008358", "0.48876676", "0.48842713", "0.48796672", "0.4869583", "0.48604384", "0.48598248", "0.4858659", "0.48524183", "0.48522803", "0.48519644", "0.48516163", "0.48468307", "0.48354077", "0.4835164", "0.4834509", "0.48281166", "0.4827114", "0.48270825", "0.48258415", "0.48237604" ]
0.0
-1
method 2 extra space o(1) and time o(n)
private static void missRepeat2(int[] a) { int miss = -1; int repeat = -1; for(int x : a) { if(a[Math.abs(x)-1] > 0) { a[Math.abs(x)-1] = - a[Math.abs(x)-1]; } else if (a[Math.abs(x)-1] < 0){ repeat = Math.abs(x); } } for(int i=0; i<a.length; i++) { if(a[i]>0) { miss = i+1; break; } } System.out.println(repeat + " " + miss); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int f1(int N) {\n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n) \n x++; \n return x; \n \n }", "public static int f2(int N) { \n int x = 0; //O(1)\n for(int i = 0; i < N; i++) // O(n)\n // O(n)`\n for(int j = 0; j < i; j++) \n x++;\n return x;\n }", "@Override\r\n public long problem2() {\r\n ArrayList<String> arrList = new ArrayList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n arrList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis(); \r\n return end - start; \r\n }", "public static int example2(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j += 2) // note the increment of 2 // O(1)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Once Again, we have a (for) loop and it runs (n) times and this\r\n\t\t * for loop dominates the runtime.So this is linear time and the answer is O(n).\r\n\t\t * \r\n\t\t */\r\n\t}", "public static int example4(int[] arr) { // O(1)\r\n\t\tint n = arr.length, prefix = 0, total = 0; // O(1), O(1), (1)\r\n\t\tfor (int j = 0; j < n; j++) { // loop from 0 to n-1 // O(n)\r\n\t\t\tprefix += arr[j];\r\n\t\t\ttotal += prefix;\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: The method contains a (for) loop and it runs (n) times.This loop\r\n\t\t * dominates the runtime.We always aim for the worse-case and maximum time. The\r\n\t\t * answer is it is linear time of O(n) notation.\r\n\t\t * \r\n\t\t */\r\n\t}", "public int[] squareUp(int n) {\r\n int[]arreglo=new int[(n*n)]; // O(1)\r\n if(n==0){ // O(1)\r\n return arreglo; // O(1)\r\n }\r\n for(int i=n-1;i<arreglo.length;i=i+n){ // O(n)\r\n for (int j=i;j>=i-(i/n);j--){ // O(1)\r\n arreglo[j]=1+(i-j); // O(1)\r\n }\r\n }\r\n return arreglo; // O(1)\r\n}", "static void UseArrayList(ArrayList<Integer> myList2){\r\n\t\tLong start = System.currentTimeMillis();\r\n\t\tfor (int n=0; n<myList2.size();n++)\r\n\t\t{\r\n\t\t\tfor (int m=n+1; m<myList2.size();m++){\r\n\t\t\t\tif( myList2.get(n)== myList2.get(m) ) {System.out.println(\"Duplicate found \"+myList2.get(n));}\r\n\t\t\t}\r\n\t\t}\r\n\t\tLong End = System.currentTimeMillis();\r\n\t\tSystem.out.println(\"Total time taken for executing this code is: \" + (End-start));\r\n\t}", "@Override\r\n public long problem1(int size) {\r\n StringBuilder sb = new StringBuilder();\r\n long start = System.currentTimeMillis();\r\n for (int i=0; i<size; i++) {\r\n sb.append(i);\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start;\r\n }", "public static int example1(int[] arr) { // O(1)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n)\r\n\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\t}", "private static int betterSolution(int n) {\n return n*n*n;\n }", "private static int runBenchmark(int n) {\n int result = 0;\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < n; j++) {\n result = benchmarkedMethod();\n }\n }\n return result;\n }", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs2=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size2=:\"+hs2.size());\r\n\t\t\t\tIterator<String> iter = hs2.iterator();\r\n\t\t\t\twhile(iter.hasNext()){\r\n\t\t\t\t String result = iter.next();\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time2=: \"+(end-start));\r\n\t\t\t}", "public static int f5(int N) { \n int x = 0;\n // log(n)\n for(int i = N; i > 0; i = i/2)\n // O(n) + O(n/2) + O(n/4)\n x += f1(i);\n \n return x; \n \n }", "public int[] fix34(int[] nums) {\r\n\tint i=0; // O(1)\r\n while(i<nums.length && nums[i]!=3) // O(n)\r\n i++; // n+1\r\n int j=i; // O(1)\r\n while(j+1<nums.length && nums[j+1]!=4) // O(n)\r\n j++; // n+1\r\n while(i<nums.length){ // O(n)\r\n if(nums[i]==3){ // O(1)\r\n int temp=nums[i+1]; // O(1)\r\n nums[i+1]=nums[j+1]; //O(1)\r\n nums[j+1]=temp; // O(1)\r\n while(j+1<nums.length && nums[j+1] != 4) //O(n)\r\n j++; // n+1\r\n }\r\n i++; // n+1\r\n }\r\n return nums; //O(1)\r\n}", "public static boolean addUpToFast(int[] array, int n){\n\t\tHashSet<Integer> hs = new HashSet<Integer>();\n\t\tfor(int i = 0; i < array.length; i++){\n\t\t\tif(hs.contains(n-array[i]))\n\t\t\t\treturn true;\n\t\t\ths.add(array[i]);\n\t\t}\n\t\treturn false;\n\t}", "public static int solveEfficient(int n) {\n if (n == 0 || n == 1)\n return 1;\n\n int n1 = 1;\n int n2 = 1;\n int sum = 0;\n\n for (int i = 2; i <= n; i++) {\n sum = n1 + n2;\n n1 = n2;\n n2 = sum;\n }\n return sum;\n }", "private int find(int p){\n while(p!=id[p]){\n p=id[p];\n eachDoUnionArrayAccessTimes+=2; //遍历读取某个元素算一次,设置值也算一次,所以加2次\n }\n eachDoUnionArrayAccessTimes++; //查询p的时候依然会读取一次\n return p;\n }", "protected static int m34121a(int i, long j, List<C22441c> list) {\n C22441c c22441c;\n AppMethodBeat.m2504i(114774);\n Object obj = 1;\n while (i < sJS.size()) {\n try {\n Object obj2;\n c22441c = (C22441c) sJS.get(i);\n if (obj == null || c22441c.endTime <= j) {\n list.add(c22441c);\n obj2 = obj;\n } else {\n C22441c c22441c2 = new C22441c();\n c22441c2.sJY = c22441c.sJY;\n c22441c2.startTime = j;\n c22441c2.endTime = c22441c.endTime;\n list.add(c22441c2);\n obj2 = null;\n }\n i++;\n obj = obj2;\n } catch (Exception e) {\n AppMethodBeat.m2505o(114774);\n return -1;\n }\n }\n if (list.size() == 0) {\n c22441c = new C22441c();\n c22441c.sJY = sJQ;\n c22441c.startTime = j;\n c22441c.endTime = System.currentTimeMillis();\n list.add(c22441c);\n } else {\n c22441c = new C22441c();\n c22441c.sJY = sJQ;\n c22441c.startTime = sJP.startTime;\n c22441c.endTime = System.currentTimeMillis();\n list.add(c22441c);\n }\n int size = sJS.size();\n AppMethodBeat.m2505o(114774);\n return size;\n }", "public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}", "public static void main(String args[] ) throws Exception {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int[] seqArray = new int[n];\n for (int i = 0; i < n; i++) {\n seqArray[i] = scanner.nextInt();\n }\n // getSeqValue(seqArray); //this method is an accepted one on Hackerrank but time complexity is not order n; i.e. !O(n);\n getLinearOrderY(seqArray); // trying to get O(n) time complexity;\n }", "static int[] sol1(int[]a, int n){\r\n\t\tMap <Integer,Integer> map= new HashMap();\r\n\t\tfor (int i = 0; i< a.length; i++){\r\n\t\t\tmap.put(a[i],i);\r\n\t\t}\r\n\t\tArrays.sort(a);\r\n\t\tint i = 0; \r\n\t\tint j = a.length -1;\r\n\t\twhile (i <= j){\r\n\t\t\tif(a[i]+a[j]>n) j--;\r\n\t\t\telse if (a[i]+a[j]<n) i++;\r\n\t\t\telse break;\r\n\t\t}\r\n\t\tint[] ans= {map.get(a[i]),map.get(a[j])};\r\n\t\treturn ans;\r\n\t}", "private void faster() {\n BigInteger[] denoms = new BigInteger[1000];\n BigInteger[] nums = new BigInteger[1000];\n\n nums[0] = BigInteger.valueOf(3);\n denoms[0] = BigInteger.valueOf(2);\n\n for (int i = 1; i < 1000; i++) {\n denoms[i] = nums[i - 1].add(denoms[i - 1]);\n nums[i] = denoms[i].add(denoms[i - 1]);\n }\n\n int count = 0;\n for (int i = 1; i < 1000; i++) {\n if (nums[i].toString().length() > denoms[i].toString().length()) {\n count++;\n }\n }\n this.answer = count;\n }", "public static int getBetterApproach(int n){\n\t\t\n\t\tint t[] = new int[n+1];\n\t\t\n if(n<=2)\n return n;\n \n\t\tt[0] = 0;\n\t\tt[1] = 1;\n\t\tt[2] = 2;\n\t\tfor(int i = 3;i<=n;i++){\n\t\t\tt[i] = t[i-1] + t[i-2];\n\t\t}\n\t\treturn t[n];\n\t}", "private int d(@Nullable K ☃) {\r\n/* 127 */ return (xq.f(System.identityHashCode(☃)) & Integer.MAX_VALUE) % this.b.length;\r\n/* */ }\r\n/* */ private int b(@Nullable K ☃, int i) {\r\n/* */ int j;\r\n/* 131 */ for (j = i; j < this.b.length; j++) {\r\n/* 132 */ if (this.b[j] == ☃) {\r\n/* 133 */ return j;\r\n/* */ }\r\n/* 135 */ if (this.b[j] == a) {\r\n/* 136 */ return -1;\r\n/* */ }\r\n/* */ }", "public void sum2(int n){\n int sum =0; //1\n for (int j = 0; j < n; j++) //2n+2\n for (int k = 0; k < n; k++) //2n+2\n sum += k + j; //1\n for (int l = 0; l < n; l++) //2n+2\n sum += l; //1\n }", "@Override public short getComplexity() {\n return 0;\n }", "public static int[] exe1(int[] arr){ // Solution O(n) in time and constant in Memory\n int nzeros=0;\n\n for (int i=0; i<arr.length; i++) {\n arr[i-nzeros] = arr[i];\n if (arr[i] == 0) {\n nzeros++;\n }\n }\n for (int i=arr.length-1; i>arr.length-nzeros-1; i--) {\n arr[i] = 0;\n }\n\n return arr;\n }", "public int findDuplicate(int[] nums) {\n if(nums == null || nums.length == 0) return 0;\n\n int slow = nums[0];\n int fast = nums[nums[0]];\n\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[nums[fast]];\n }\n\n fast = 0;\n while(slow != fast) {\n slow = nums[slow];\n fast = nums[fast];\n }\n\n return slow;\n}", "public static void main(String[] args) \n\t{\n\t \n\t\tlong startTimer = System.currentTimeMillis();\n\t\t//mrethod 1\n\t\tint res=Utility.binarySearchWord();\n\t\tif(res==-1)\n\t\t\tSystem.out.println(\"your word not found\");\n\t\t else\n\t\t System.out.println(\"your word found at index:\"+res);\n\t\tlong first=System.currentTimeMillis();\n\t\tSystem.out.println((first-startTimer)/1000+\"seconds\");\n\t \n\t\t//method 2\n\t\tint res1=Utility.binarySearchForInteger();\n\t\tif(res1==-1)\n\t\t\tSystem.out.println(\"your no. not found\");\n\t\t else\n\t\t System.out.println(\"your no.found at index:\"+res1);\n\t\tlong second=System.currentTimeMillis();\n\t\tSystem.out.println((second-first)/1000+\"seconds\");\n\t\t\n\t\t//method 3\n\t\tint res3[]=Utility.bubbleSortForIntegers();\n\t\tfor(int i=0;i<res3.length;i++)\n\t\t\tSystem.out.println(res3[i]);\n\t\tlong third=System.currentTimeMillis();\n\t\tSystem.out.println((third-second)/1000+\"seconds\");\n\t\t\n\t\t//method 4\n\t\tString res4[]=Utility.bubbleSortForStrings();\n\t\tfor(int i=0;i<res4.length;i++)\n\t\t\tSystem.out.println(res4[i]);\n\t\tlong fourth=System.currentTimeMillis();\n\t\tSystem.out.println((fourth-third)/1000+\"seconds\");\n\t\t\n\t\t//method 5\n\t\tint res5[]=Utility.insertionSortForInteger();\n\t\tfor(int i=0;i<res5.length;i++)\n\t\t\tSystem.out.println(res5[i]);\n\t\tlong fifth=System.currentTimeMillis();\n\t\tSystem.out.println((fifth-fourth)/1000+\"seconds\");\n\t\t\n\t\t//method 6\n\t\tString res6[]=Utility.insertionSortForString();\n\t\tfor(int i=0;i<res6.length;i++)\n\t\t\tSystem.out.println(res6[i]);\n\t\tlong sixth=System.currentTimeMillis();\n\t\tSystem.out.println((sixth-fifth)/1000+\"seconds\");\n\t}", "@Override\n\tpublic int isFast() {\n\t\treturn 2;\n\t}", "@Override\r\n\t\t\tpublic void run() {\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs1=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size1=:\"+hs1.size());\r\n\t\t\t\tfor(String result:hs1){\r\n\t\t\t\t\tresult.toString();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time1=: \"+(end-start));\r\n\t\t\t}", "private int d(amj paramamj)\r\n/* 50: */ {\r\n/* 51: 70 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 52: 71 */ if ((this.a[i] != null) && (this.a[i].b() == paramamj.b()) && (this.a[i].d()) && (this.a[i].b < this.a[i].c()) && (this.a[i].b < p_()) && ((!this.a[i].f()) || (this.a[i].i() == paramamj.i())) && (amj.a(this.a[i], paramamj))) {\r\n/* 53: 72 */ return i;\r\n/* 54: */ }\r\n/* 55: */ }\r\n/* 56: 75 */ return -1;\r\n/* 57: */ }", "private static int benchmarkedMethod() {\n return 3;\n }", "public static void main(String[] args) {\n\t\t\n\t\tint A[]= new int[100000000];\n\t\tfor(int i = 0; i < 100000000; i++) {\n\t\t A[i] = (int)(Math.random() * 100) + 1;\n }\n double duration = 0;\n long end = 0;\n long start = 0;\n start = System.currentTimeMillis();\n System.out.println(start);\n MinValueIndex(A, 6);\n end = System.currentTimeMillis();\n\t\tduration = end-start;\n\t\tSystem.out.println(end); \n\t\tduration = duration / 5;\n\t\tSystem.out.println(duration);\n\t}", "private void d() {\n Queue<c> queue;\n Queue<c> queue2 = queue = i;\n synchronized (queue2) {\n long l2 = System.currentTimeMillis();\n Iterator iterator = i.iterator();\n while (iterator.hasNext()) {\n if (l2 - ((c)iterator.next()).a < 60000L) continue;\n iterator.remove();\n }\n if (i.size() >= 15) {\n for (int i2 = 0; i2 < 5; ++i2) {\n i.remove();\n }\n }\n return;\n }\n }", "private int e(amj paramamj)\r\n/* 202: */ {\r\n/* 203:221 */ alq localalq = paramamj.b();\r\n/* 204:222 */ int i = paramamj.b;\r\n/* 205: */ \r\n/* 206:224 */ int j = d(paramamj);\r\n/* 207:225 */ if (j < 0) {\r\n/* 208:226 */ j = j();\r\n/* 209: */ }\r\n/* 210:228 */ if (j < 0) {\r\n/* 211:229 */ return i;\r\n/* 212: */ }\r\n/* 213:231 */ if (this.a[j] == null)\r\n/* 214: */ {\r\n/* 215:232 */ this.a[j] = new amj(localalq, 0, paramamj.i());\r\n/* 216:233 */ if (paramamj.n()) {\r\n/* 217:234 */ this.a[j].d((fn)paramamj.o().b());\r\n/* 218: */ }\r\n/* 219: */ }\r\n/* 220:238 */ int k = i;\r\n/* 221:239 */ if (k > this.a[j].c() - this.a[j].b) {\r\n/* 222:240 */ k = this.a[j].c() - this.a[j].b;\r\n/* 223: */ }\r\n/* 224:242 */ if (k > p_() - this.a[j].b) {\r\n/* 225:243 */ k = p_() - this.a[j].b;\r\n/* 226: */ }\r\n/* 227:246 */ if (k == 0) {\r\n/* 228:247 */ return i;\r\n/* 229: */ }\r\n/* 230:250 */ i -= k;\r\n/* 231:251 */ this.a[j].b += k;\r\n/* 232:252 */ this.a[j].c = 5;\r\n/* 233: */ \r\n/* 234:254 */ return i;\r\n/* 235: */ }", "public static void main(String[] args) {\n\t\tfinal long startTime = System.nanoTime();\r\n\t\t\r\n\t\tint [] plop = {1,1,1,2,2,3};\r\n\t\tSystem.out.println(removeDuplicates2(plop));\r\n\t\t\r\n\r\n\t\tfinal long duration = System.nanoTime() - startTime;\r\n\t\tSystem.out.println(duration);\r\n\t\t\r\n\t}", "public long problem2b(){\r\n LinkedList<String> linkList = new LinkedList<>();\r\n long start = System.currentTimeMillis(); \r\n for(int i = 0; i<1234567; i++){\r\n linkList.add(Integer.toString(i));\r\n }\r\n long end = System.currentTimeMillis();\r\n return end - start; \r\n }", "static int linearLogTime(int[] n, int[] m) {\n if(n == null || n.length == 0 || m == null || m.length == 0) return -1;\n int sum = 0;\n for(int i = 0; i < n.length; ++i) {\n sum += logTime(m, 0, m.length, 15);\n }\n return sum;\n }", "private static void task2(int nUMS, BinarySearchTree<Integer> t) {\n\t\tSystem.out.println(\"Binary Search Started...\");\n\t double search_start = 0, search_end = 0;\n\t int totalkeymatched = 0;\n\n\t search_start = System.nanoTime();\n\t \n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n\t \t\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (t.contains(checker)) {\n\t\n//\t System.out.println(\"Key Matches\");\n\t totalkeymatched++;\n\t \t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each search: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t System.out.println(\"TOTAL MATCHES \" + totalkeymatched);\n\t\t\n\t}", "public static void main(String[] args) {\n float[] fb=new float[9];\n fb[0]=(int)12;\n fb[1]=(byte)13;\n fb[2]=(short)8;\n fb[3]=12.021f;\n // fb[4]=23443.43d;\n// fb[4]='a';\n// for(int i=0;i<=4;i++) {\n// \t System.out.println(fb[i]);\n// }\n List<Integer> lis1=new ArrayList<>();\n List<Integer> lis2=new ArrayList<>();\n lis1.add(2);\n lis1.add(4);\n lis1.add(16);\n lis1.add(32);\n lis1.add(96);\n lis1.add(123);\n lis1.add(435);\n lis1.add(234);\n lis1.add(100);\n lis1.add(122);\n lis1.add(240);\n lis1.add(350);\n java.util.Iterator<Integer> itr= lis1.iterator();\n //while(itr.hasNext()) {\n // itr.remove();\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n \t System.out.println(itr.next());\n\n \t System.out.println(lis1);\n // \n// long startTime = System.currentTimeMillis();\n// getTotalX(lis1,lis2);\n// System.out.println(\"Time taken by 2 * o(n^2) \" + (System.currentTimeMillis() - startTime) + \"ms\"); \n// \n \t\t \n\t}", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "static int logTime(int[] n, int start, int end, int val) {\n if(n == null || n.length == 0) return -1;\n int mid = (start + end) / 2;\n if(val < n[mid]) logTime(n, 0, mid, val);\n if(val > n[mid]) logTime(n, mid + 1, n.length, val);\n return n[mid];\n }", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "static long nPolyNTime(int[] n) {\n int temp = n.length;\n long sum = 0;\n if(n == null || n.length == 0) return -1;\n for(int i = 0; i < n.length; ++i) {\n while(temp --> 0) {\n for(int j = 0; j < n.length; ++j) {\n sum += n[i] + n[j];\n }\n }\n }\n return sum;\n }", "public static void s1AscendingTest() {\n int key = 903836722;\n SortingLab<Integer> sli = new SortingLab<Integer>(key);\n int M = 600000;\n int N = 1000;\n double start;\n double elapsedTime;\n System.out.print(\"Sort 1 Ascending\\n\");\n for (; N < M; N *= 2) {\n Integer[] ai = getRandomArray(N, Integer.MAX_VALUE);\n Arrays.sort(ai);\n start = System.nanoTime();\n sli.sort1(ai);\n elapsedTime = (System.nanoTime() - start) / 1_000_000_000d;\n System.out.print(N + \"\\t\");\n System.out.printf(\"%4.3f\\n\", elapsedTime);\n }\n }", "public static void main(String[] args) {\n\t\tint a[]= {15,3,7,1,9,2};\n\t\tsubarraysum(a,11);//Time complexity O(n^2) space O(1)\n\n\t\tsubarraysum_reducecomplexity(a,11,a.length); //Time complexity O(n) space O(1)\n\n\t}", "private static void task03(int nUMS, AVLTree<Integer> h) {\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Deletion in the table...\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\tif(h.isEmpty() == false)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\th.remove(i);\n\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tSystem.out.println(\"Is it empty \" + h.isEmpty());\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\n\t\t\n\t}", "private static void task3(int nUMS, BinarySearchTree<Integer> t) {\n\t\t\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Deletion in the table...\" );\n\t\t int count=0;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\tif(t.isEmpty() == false)\n\t\t\t\t{\n\t\t\t\t\n\t\t\t\tt.remove(i);\n\t\t\t\t\n\t\t\t\t}\n//\t\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tSystem.out.println(\"Is it empty \" + t.isEmpty());\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }", "public static void main(String[] args) throws IOException {\n BufferedReader bufferedReader = new BufferedReader(new FileReader(UFTest.class.getResource(\"/\").getPath()+\"1.5/largeUF.txt\"));\n String str = bufferedReader.readLine();\n UFLJWQU uf = new UFLJWQU(Integer.parseInt(str));\n long beginTime =System.currentTimeMillis();\n while ((str = bufferedReader.readLine())!=null){\n String[] array = str.split(\" \");\n int p = Integer.parseInt(array[0]);\n int q = Integer.parseInt(array[1]);\n if(uf.connected(p,q)) continue;\n uf.union(p,q);\n// System.out.println(p+\" -- \"+q);\n }\n System.out.println(uf.count());\n System.out.println(\"cost time :\"+(System.currentTimeMillis() - beginTime));\n }", "public static int ulam(int n) {\n\n List<Integer> list = new ArrayList<>();\n list.add(1);\n list.add(2);\n\n int i = 3;\n while (list.size() < n) {\n\n int count = 0;\n for (int j = 0; j < list.size() - 1; j++) {\n\n for (int k = j + 1; k < list.size(); k++) {\n if (list.get(j) + list.get(k) == i)\n count++;\n if (count > 1)\n break;\n }\n if (count > 1)\n break;\n }\n if (count == 1)\n list.add(i);\n i++;\n }\n return list.get(n - 1);\n }", "private static void doStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.stream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doStream(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "public static void main(String[] args) {\n\t\tThread thread1=new Thread(new Runnable(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs1=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size1=:\"+hs1.size());\r\n\t\t\t\tfor(String result:hs1){\r\n\t\t\t\t\tresult.toString();\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time1=: \"+(end-start));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\tThread thread2=new Thread(new Runnable(){\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\t// TODO Auto-generated method stub\r\n\t\t\t\tlong start=System.currentTimeMillis();\r\n\t\t\t\tHashSetAdd hsd=new HashSetAdd();\r\n\t\t\t\tHashSet<String> hs2=hsd.add();\r\n\t\t\t\tSystem.out.println(\"size2=:\"+hs2.size());\r\n\t\t\t\tIterator<String> iter = hs2.iterator();\r\n\t\t\t\twhile(iter.hasNext()){\r\n\t\t\t\t String result = iter.next();\r\n\t\t\t\t }\r\n\t\t\t\t\r\n\t\t\t\tlong end=System.currentTimeMillis();\r\n\t\t\t\tSystem.out.println(\"time2=: \"+(end-start));\r\n\t\t\t}\r\n\t\t\t\r\n\t\t});\r\n\t\t\r\n\t\t\r\n\t\tthread1.start();\r\n\t\tthread2.start();\r\n\r\n\t\r\n\t}", "public static void main(String[] args) \n {\n int[] numOfPoints = { 1000, 10000, 7000, 10000, 13000 };\n for(int count = 0; count < numOfPoints.length; count++)\n {\n List<Point> pointsTobeUsed = new ArrayList<Point>();\n int current = numOfPoints[count];\n int inc = 0;\n \n //creating list of points to be used\n for(int x = 0; x <= current; x++)\n {\n \n if(x <= current/2)\n {\n pointsTobeUsed.add(new Point(x,x));\n \n }\n else\n {\n pointsTobeUsed.add(new Point(x, x - (1 + 2*(inc)) ) );\n inc++;\n }\n }\n \n //n logn implementation of Pareto optimal\n long timeStart = System.currentTimeMillis();\n \n // n logn quicksort\n pointsTobeUsed = quickSort(pointsTobeUsed, 0, pointsTobeUsed.size() -1 );\n \n \n \n ParetoOptimal(pointsTobeUsed);\n \n \n long timeEnd = System.currentTimeMillis();\n System.out.println(\"final:\" + \" exper: \" + (timeEnd - timeStart) + \" N: \" + current ); \n }\n }", "static int getMissingByAvoidingOverflow(int a[], int n)\n\t {\n\t int total = 2;\n\t for (int i = 3; i <= (n + 1); i++)\n\t {\n\t total =total+ i -a[i - 2];\n\t //total =total- a[i - 2];\n\t }\n\t return total;\n\t }", "public void sum(int n) {\n int sum = 0;\n for (int j = 0; j < n; j++) // 2n+2\n sum += j;\n for (int k = 0; k < n; k++) // 2n+2\n sum += k;\n for (int l = 0; l < n; l++) //2n+2\n sum += l;\n }", "private static void task1(int nUMS, BinarySearchTree<Integer> t, GenerateInt generateInt) {\n\t\t long start = System.nanoTime();\n\t\t System.out.println( \"Fill in the table...Binary Tree\" );\n\t\t int count=1;\n\t\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t\t{\n\t\t\t\t \t\t \n\t\t\t\tt.insert(i);\n//\t\t\t\tSystem.out.println(i);\n\t\t\t\tcount = i;\n\n\t\t\t}\n\t\t\tSystem.out.println(\"Total Size \" + count);\n\t\t\tlong end = System.nanoTime();;\n\t\t\tlong elapsedTime = end - start;\n\t\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t\t \n\t\t }", "public static void main (String []args) {\n\tlong first = System.currentTimeMillis();\n\tlong sum=0;\n\tfor (int i = 0; i < 100000; i++) {\n\t String[] str = strings();\n\t sum += str[0].charAt(0);\n\t}\n\tlong done = System.currentTimeMillis();\n\n\tSystem.out.println ((done - first)*1000);\n\tSystem.out.println (sum);\n }", "public static int efficientOne(int n) {\r\n\t\tif (n < 2)\r\n\t\t\treturn n;\r\n\t\tint prevPrev = 0;\r\n\t\tint prev = 1;\r\n\t\tint fib = 0;\r\n\t\tfor (int i = 2; i <= n; i++) {\r\n\t\t\tfib = prev + prevPrev;\r\n\t\t\tprevPrev = prev;\r\n\t\t\tprev = fib;\r\n\t\t}\r\n\t\treturn fib;\r\n\t}", "public void n()\r\n/* 515: */ {\r\n/* 516:523 */ for (int i = 0; i < this.a.length; i++) {\r\n/* 517:524 */ if (this.a[i] != null)\r\n/* 518: */ {\r\n/* 519:525 */ this.d.a(this.a[i], true, false);\r\n/* 520:526 */ this.a[i] = null;\r\n/* 521: */ }\r\n/* 522: */ }\r\n/* 523:529 */ for (i = 0; i < this.b.length; i++) {\r\n/* 524:530 */ if (this.b[i] != null)\r\n/* 525: */ {\r\n/* 526:531 */ this.d.a(this.b[i], true, false);\r\n/* 527:532 */ this.b[i] = null;\r\n/* 528: */ }\r\n/* 529: */ }\r\n/* 530: */ }", "static int[] OnepassSol1(int[]a, int n){\r\n Map<Integer, Integer> map = new HashMap<>();\r\n for (int i = 0; i < a.length; i++) {\r\n int complement = n - a[i];\r\n if (map.containsKey(complement)) {\r\n return new int[] { map.get(complement), i };\r\n }\r\n map.put(a[i], i);\r\n }\r\n int[] ans = {-1,-1};\r\n return ans;\r\n }", "public static void arraySpeedTestRemove0() {\n ArrayList<Integer> list = new ArrayList<Integer>();\n\t\tfor(int n = 0; n < 8000000; n++) {\n list.add(n);\n }\n\n //Displaying quantity of elements\n\t\tSystem.out.println(\"*** Quantity of elements in the collection: \" + list.size());\n\n //Deleting last element in the collection\n long begin = System.currentTimeMillis();\n\t\tlist.remove(list.size()-1);\n long end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing last element has taken: \" + (end - begin) + \"ms\");\n\n //Deleting first element from collection\n begin = System.currentTimeMillis();\n\t\tlist.remove(0);\n end = System.currentTimeMillis();\n\n //Displaying time of deletion\n\t\tSystem.out.println(\"*** Removing first element has taken: \" + (end - begin) + \"ms\");\n}", "public void missingNumberEfficient2(int[] array, int n) {\n\t\t\n\t\tint X = 0;\n\t\tint Y = 0;\n\t\t\n\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\tX ^= array[i];\n\t\t}\n\t\t\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tY ^= i;\n\t\t}\n\t\t\n\t\tSystem.out.println(\"Missing Number is : \" + (X ^ Y));\n\t}", "static int runningTime(int[] arr) {\n return insertionSort(arr);\n \n }", "public static void main(String[] args) {\n\t\tArrayList<Integer> array = new ArrayList<>();\n\t\tLinkedList<Integer> linked = new LinkedList<>();\n\t\t\n\t\tlong aStart = System.currentTimeMillis();\n\t\tint i;\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tarray.add(i);\n\t\t}\n\t\tlong aEnd = System.currentTimeMillis();\n\t\tlong aTime = aEnd - aStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+aTime+\"ms\");\n\t\t\n\t\t\n\t\tlong lStart = System.currentTimeMillis();\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t\tlong lEnd = System.currentTimeMillis();\n\t\tlong lTime = lEnd - lStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+lTime+\"ms\");\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t\t\n\t\t\n\t\taStart = System.currentTimeMillis();\n\t\tfor(i = 0; i<1000000; i++){\n\t\t\tarray.add(i);\n\t\t}\n\t\taEnd = System.currentTimeMillis();\n\t\taTime = aEnd - aStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+aTime+\"ms\");\n\t\t\n\t\t\n\t\tlStart = System.currentTimeMillis();\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t\tlEnd = System.currentTimeMillis();\n\t\tlTime = lEnd - lStart;\n\t\tSystem.out.println(\"Elapsed Time for the array and \"+i+\" elements : \"+lTime+\"ms\");\n\t\tfor(i = 0; i<100000; i++){\n\t\t\tlinked.add(i);\n\t\t}\n\t}", "private static int f(int n, int complete, int other, int[] arr) {\n if(n<=0)\n return 0;\n int res=0;\n ArrayList<Integer>list=new ArrayList<Integer>();\n for(int a:arr)\n if(a>0)\n list.add(a);\n int brr[]=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n while(brr.length!=0){\n int index=0;\n for(int i=1;i<brr.length;i++)\n if(brr[index]<brr[i])\n index=i;\n for(int i=0;i<brr.length;i++){\n if(index==i)\n brr[i]-=complete;\n else\n brr[i]-=other;\n }\n list=new ArrayList<Integer>();\n for(int a:brr)\n if(a>0)\n list.add(a);\n brr=new int[list.size()];\n for(int i=0;i<brr.length;i++)\n brr[i]=list.get(i);\n res++;\n }\n return res;\n }", "@Test\n public void timeAppendObject() {\n Object o =\n new Object() {\n @Override\n public String toString() {\n return \"constant\";\n }\n };\n BenchmarkState state = mPerfStatusReporter.getBenchmarkState();\n while (state.keepRunning()) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < mLength; ++j) {\n sb.append(o);\n }\n }\n }", "static long arrayManipulation(int n, int[][] queries) {\r\n long result = 0, sum = 0;\r\n long[] arr = new long[n];\r\n for(int i = 0; i < queries.length; i++){\r\n int firstIndex = queries[i][0] - 1;\r\n int lastIndex = queries[i][1] - 1;\r\n long numberToAdd = queries[i][2];\r\n arr[firstIndex] += numberToAdd;\r\n if (lastIndex+1 < n)\r\n arr[lastIndex+1] -= numberToAdd;\r\n }\r\n\r\n for(long l : arr){\r\n sum += l;\r\n if(sum > result)\r\n result = sum;\r\n }\r\n\r\n return result;\r\n }", "public static void main(String[] args) {\n\t\t TreeSet<Integer> treeSet = new TreeSet<Integer>();\n\t\t \n\t\t treeSet.add(21);\n\t\t treeSet.add(10);\n\t\t treeSet.add(25);\n\t\t // treeSet.add(null);\n\t\t treeSet.add(25);\n\t\t //treeSet.add(null);\n\t\t long start = System.currentTimeMillis();\n\t\t Iterator<Integer> iterator = treeSet.iterator();\n\t\t while(iterator.hasNext())\n\t\t {\n\t\t\t System.out.println(iterator.next());\n\t\t }\n\t\t long end = System.currentTimeMillis();\n\t\t System.out.println(end - start);\n\t}", "@Override\n protected long timeTest(Collection210X dataStructure, int n)\n {\n Random random = new Random(CPUClock.getNumTicks());\n Integer item = random.nextInt(2 * n);\n\n // Makes sure item being added is odd, and so not already in the data structure\n if (item % 2 == 0) {\n item = item ++;\n }\n\n final long start = CPUClock.getNumTicks();\n dataStructure.add(item);\n final long end = CPUClock.getNumTicks();\n\n return end - start;\n }", "static int recursiva1(int n)\n\t\t{\n\t\tif (n==0)\n\t\t\treturn 10; \n\t\tif (n==1)\n\t\t\treturn 20; \n\t\treturn recursiva1(n-1) - recursiva1 (n-2);\t\t\n\t\t}", "private static int[] p2(int[] ar, int n) {\n int[] p2 = new int[n];\n Arrays.fill(p2, n);\n Stack<Integer> st = new Stack<>();\n for (int i = 0; i < n; i++) {\n while (st.size() != 0 && ar[i] < ar[st.peek()]) {\n p2[st.peek()] = i;\n st.pop();\n }\n st.push(i);\n }\n return p2;\n }", "public static void main(String[] args) {\n\t\tint p[]=new int[200];\n\t\tint n;int count=0;\n\t\tint pp=0;\n\t\tfor(int i=2;i<1000;i++) {\n\t\t\tint flag=1;\n\t\t\tfor(int j=2;j<i;j++) {\n\t\t\t\tif(i%j==0) {\n\t\t\t\t\tflag++;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t//checking if flag is 0 or not\t\n\t\t\t}if(flag==1) {\n\t\t\t\t\n\t\t\t\tSystem.out.println(i);\n\t\t\t \n\t\t\t\tp[pp]=i;\n\t\t\t pp++;\n\t\t\t count++;\n\t\t\t}\n\t}\n\t\tn=count;\n\t//for(int i=0;i<p.length;i++) {\n\t//if(p[i]!=0)\n\t //System.out.println(p[i]);\n\t//}\n\tint k=0;\n\tint count1=0;\n\tboolean b=false;\n\tint aa[]=new int[200];\t\n\t//calling my stack class \n\tMyStack m=new MyStack();\n\n\tfor(int i=0;i<p.length-2;i++) {\n\t\tfor(int j=i+1;j<p.length;j++) {\n\t\tif(p[i]!=0&&p[j]!=0)\n\t\t//calling check method anagram calss\t\n\t\t\tb=AnaQueue.check(p[i],p[j]);\n\t\tif(b==true) {\n\t\t\tSystem.out.println(p[i]+\" \"+p[j]);\n\t\t\taa[k]=p[i];\n\t\t\tm.push(p[i]);\n\t\t//\tSystem.out.println(aa[k]);\n\t\t\tk++; \n\t\t\taa[k]=p[j];\n\t\t\tk++;\n\t\t\tm.push(p[j]);\n\t\t\tcount1++;\n//\t\t\tif(p[i]==aa[k-2]) {\n//\t\t\t\tSystem.out.println(p[i]+\" \"+aa[k-2]);\n//\t\t\t}\n\t\t//\tSystem.out.println(aa[k]);\n\t\t//\tSystem.out.println(aa[k-1]+\" \"+aa[k-2]);\n\t\t\t\t}\n\t\t}\n\n\n\t}\n\t//for(int i=0;i<count1*2;i++)\n\t//{int a=m.popint();\n\t//if(p[i]!=0)\n\t\t//System.out.println(a);\n\t//}\n\t//for(int t=0;t<aa.length;t++) {\n\t\t//if(aa[t]!=0) {\n\t\t//\tSystem.out.println(aa[t]);\n\t\t//}\n\t//}\n\tSystem.out.println(\"this is for stack\");\n\tSystem.out.println(\" ************************\");\n\n\tm.reverse();\n\t System.out.println(count1); \n\tSystem.out.println(\"this for queue\");\n\tSystem.out.println(\" ************************\");\n\tMyQueue mq=new MyQueue(count1*2);\n\tfor(int i=0;i<p.length-2;i++) {\n\t\tfor(int j=i+1;j<p.length;j++) {\n\t\tif(p[i]!=0&&p[j]!=0)\n\t\t\tb=AnaQueue.check(p[i],p[j]);\n\t\tif(b==true) {\n\t\t\t//System.out.println(p[i]+\" \"+p[j]);\n\t\t\t//aa[k]=p[i];\n\t\t\tmq.enqueue(p[i]);\n\t\t//\tSystem.out.println(aa[k]);\n\t\t\t//k++; \n\t\t\t//aa[k]=p[j];\n\t\t\t//k++;\n\t\t\tmq.enqueue(p[j]);\n\t\t\t\n//\t\t\tif(p[i]==aa[k-2]) {\n//\t\t\t\tSystem.out.println(p[i]+\" \"+aa[k-2]);\n//\t\t\t}\n\t\t//\tSystem.out.println(aa[k]);\n\t\t//\tSystem.out.println(aa[k-1]+\" \"+aa[k-2]);\n\t\t\t\t}\n\t\t}\n\n\n\t}\n\t//for(int i=0;i<(count1*2)-1;i++);\n\t//{\n\t//int a=mq.dequeue();\n\t//System.out.println(a);\n\t//}\n\tSystem.out.println(mq);\n\n\n\t}", "static int find(int[] arr){\n\t\tif(arr.length==1) return -1;\n\t\tint slow = arr[0] , fast = arr[arr[0]];\n\t\twhile(slow!=fast){\n\t\t\tslow = arr[slow];\n\t\t\tfast = arr[arr[fast]];\n\t\t}\n\t\tslow = 0;\n\t\twhile(slow!=fast){\n\t\t\tslow = arr[slow];\n\t\t\tfast = arr[fast];\n\t\t}\n\t\treturn slow;\n\n\t}", "private static void arrayInserionTime() {\n\t\t String[] namesArray = new String[1000];\n\t\t \n\t long startTime = System.nanoTime();\n\t \n\t for (int i = 0; i < namesArray.length; i++)\n\t {\n\t namesArray[i] = \"Name\"+i;\n\t }\n\t \n\t long endTime = System.nanoTime(); \n\t \n\t System.out.println(\"Time taken by Array : \"+(endTime - startTime)/1000+\"us\");\n\t \n\t ArrayList<String> nameList = new ArrayList<String>(); \n\t \n\t startTime = System.nanoTime();\n\t \n\t for (int i = 0; i <= 1000; i++)\n\t {\n\t nameList.add(\"Name\"+i);\n\t }\n\t \n\t endTime = System.nanoTime();\n\t \n\t System.out.println(\"Time taken by ArrayList : \"+(endTime-startTime)/1000+\"us\");\n\n\t}", "private static void task222(int nUMS, RedBlackBST<Integer, Integer> i) {\n\t\tSystem.out.println(\"RED BLAST BST Started Search...\");\n\t double search_start = 0, search_end = 0;\n\t int totalkeymatched = 0;\n\n\t search_start = System.nanoTime();\n\t \n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n\t \t\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (i.contains(checker)) {\n\t\n//\t System.out.println(\"Key Matches\");\n\t totalkeymatched++;\n\t \t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each search: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t System.out.println(\"TOTAL MATCHES \" + totalkeymatched);\n\n\t}", "public boolean a(amj paramamj)\r\n/* 268: */ {\r\n/* 269:293 */ if ((paramamj == null) || (paramamj.b == 0) || (paramamj.b() == null)) {\r\n/* 270:294 */ return false;\r\n/* 271: */ }\r\n/* 272: */ try\r\n/* 273: */ {\r\n/* 274:298 */ if (!paramamj.g())\r\n/* 275: */ {\r\n/* 276: */ do\r\n/* 277: */ {\r\n/* 278:301 */ i = paramamj.b;\r\n/* 279:302 */ paramamj.b = e(paramamj);\r\n/* 280:303 */ } while ((paramamj.b > 0) && (paramamj.b < i));\r\n/* 281:304 */ if ((paramamj.b == i) && (this.d.by.d))\r\n/* 282: */ {\r\n/* 283:306 */ paramamj.b = 0;\r\n/* 284:307 */ return true;\r\n/* 285: */ }\r\n/* 286:309 */ return paramamj.b < i;\r\n/* 287: */ }\r\n/* 288:312 */ int i = j();\r\n/* 289:313 */ if (i >= 0)\r\n/* 290: */ {\r\n/* 291:314 */ this.a[i] = amj.b(paramamj);\r\n/* 292:315 */ this.a[i].c = 5;\r\n/* 293:316 */ paramamj.b = 0;\r\n/* 294:317 */ return true;\r\n/* 295: */ }\r\n/* 296:318 */ if (this.d.by.d)\r\n/* 297: */ {\r\n/* 298:320 */ paramamj.b = 0;\r\n/* 299:321 */ return true;\r\n/* 300: */ }\r\n/* 301:323 */ return false;\r\n/* 302: */ }\r\n/* 303: */ catch (Throwable localThrowable)\r\n/* 304: */ {\r\n/* 305:325 */ b localb = b.a(localThrowable, \"Adding item to inventory\");\r\n/* 306:326 */ j localj = localb.a(\"Item being added\");\r\n/* 307: */ \r\n/* 308:328 */ localj.a(\"Item ID\", Integer.valueOf(alq.b(paramamj.b())));\r\n/* 309:329 */ localj.a(\"Item data\", Integer.valueOf(paramamj.i()));\r\n/* 310:330 */ localj.a(\"Item name\", new ahc(this, paramamj));\r\n/* 311: */ \r\n/* 312: */ \r\n/* 313: */ \r\n/* 314: */ \r\n/* 315: */ \r\n/* 316: */ \r\n/* 317:337 */ throw new u(localb);\r\n/* 318: */ }\r\n/* 319: */ }", "private static void fun2(List<String> ac1, List<List<String>> result, int index) {\n\t\tString key = ac1.get(0);\r\n\t\tfor(int i=index;i<result.size();i++){\r\n\t\t\tList<String> res=result.get(i);\r\n\t\t\tif(res.get(0).equals(key)){\r\n\t\t\t\t//check if any one of the value is repeated\r\n\t\t\t\tboolean check=fun3(res,ac1);\r\n\t\t\t\tif(check){\r\n\t\t\t\t\tfor(int j=1;j<ac1.size();j++){\r\n\t\t\t\t\t\tres.add(ac1.get(i));\r\n\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private static void doParallelStream() {\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n long ans = personCopy.parallelStream().filter(p -> p.getHeight() > 180).count();\n System.out.println(\"doParallelStream(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "static int size_of_ori(String passed){\n\t\treturn 2;\n\t}", "public static void s1RandomTest() {\n int key = 903836722;\n SortingLab<Integer> sli = new SortingLab<Integer>(key);\n int M = 600000;\n int N = 1000;\n double start;\n double elapsedTime;\n System.out.print(\"Sort 1 Random\\n\");\n for (; N < M; N *= 2) {\n Integer[] ai = getRandomArray(N, Integer.MAX_VALUE);\n start = System.nanoTime();\n sli.sort1(ai);\n elapsedTime = (System.nanoTime() - start) / 1_000_000_000d;\n System.out.print(N + \"\\t\");\n System.out.printf(\"%4.3f\\n\", elapsedTime);\n }\n }", "public static void s1DescendingTest() {\n int key = 903836722;\n SortingLab<Integer> sli = new SortingLab<Integer>(key);\n int M = 600000;\n int N = 1000;\n double start;\n double elapsedTime;\n System.out.print(\"Sort 1 Descending\\n\");\n for (; N < M; N *= 2) {\n Integer[] ai = getRandomArray(N, Integer.MAX_VALUE);\n Arrays.sort(ai);\n Integer[] bi = new Integer[ai.length];\n int count = 0;\n for (int i = ai.length - 1; i >= 0; i--) {\n bi[count] = ai[i];\n count++;\n }\n start = System.nanoTime();\n sli.sort1(bi);\n elapsedTime = (System.nanoTime() - start) / 1_000_000_000d;\n System.out.print(N + \"\\t\");\n System.out.printf(\"%4.3f\\n\", elapsedTime);\n }\n }", "private boolean slowEquals(byte[] a, byte[] b)\n {\n int diff = a.length ^ b.length;\n for(int i = 0; i < a.length && i < b.length; i++)\n diff |= a[i] ^ b[i];\n return diff == 0;\n }", "private static void task4(int nUMS, BinarySearchTree<Integer> t) {\n\t\t\n\t\tdouble search_start = 0, search_end = 0;\n\n\t System.out.println(\"SPLAY DELETION Started...\");\n\t search_start = System.nanoTime();\n\t int count = 0;\n\t \t\n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (t.contains(checker)) {\n\t t.remove(checker);\n//\t System.out.println(\"INT Removed\");\n\t count++;\n\t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each deletion: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t \n\t System.out.println(\"TOTAL REMOVES\" + count);\n\n\t\t\n\t\t\n\t}", "public static void main(String[] args) { int n = 100000000;\n// Integer[] array = ArrayGenerator.randomGenerator(n, n);\n// Integer[] arr = Arrays.copyOf(array, array.length);\n// PerformanceSort.test(\"QuickSort\", array);\n// PerformanceSort.test(\"MergeSort\", arr);\n// Integer[] array1 = ArrayGenerator.orderGenerator(n);\n// Integer[] arr1 = Arrays.copyOf(array1, array1.length);\n// PerformanceSort.test(\"QuickSort\", array1);\n// PerformanceSort.test(\"MergeSort\", arr1);\n//\n int n = 5000000;\n Integer[] array = ArrayGenerator.randomGenerator(n, 3);\n Integer[] arr = Arrays.copyOf(array, array.length);\n\n PerformanceSort.test(\"QuickSort3\", array);\n PerformanceSort.test(\"QuickSort2\", arr);\n// Integer[] array = new Integer[]{1, 8, 7, 6, 4};\n// PerformanceSort.test(\"QuickSort2\", array);\n\n }", "public static void doFor(){\n ArrayList<Person> personCopy = new ArrayList<>(person);\n long l = System.currentTimeMillis();\n int ans = 0;\n for (Person p: personCopy){\n if (p.getHeight() > 180){\n ans++;\n }\n }\n System.out.println(\"doFor(): \" + ans);\n long e = System.currentTimeMillis();\n System.out.println(\"Cost time: \" + (e - l) + \"ms\");\n System.out.println(\"----------------------------\");\n }", "private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}", "private static void get4ElementsSumCountFastest(String inputLine, int target) {\n String[] arr = inputLine.split(\" \");\n if (arr.length < 3) {\n System.out.println(0);\n return;\n }\n\n Map<Integer, Set<String>> pairSumMap = new HashMap<>();\n List<Integer> list = new ArrayList<>(arr.length);\n for (String s : arr) {\n list.add(Integer.parseInt(s.trim()));\n }\n\n int sum = 0, diff = 0;\n for (int i = 0; i < arr.length; i++) {\n for (int j = i + 1; j < arr.length; j++) {\n sum = list.get(i) + list.get(j);\n if (sum < target) {\n pairSumMap.putIfAbsent(sum, new HashSet<>());\n pairSumMap.get(sum).add(i + \"-\" + j);\n }\n }\n }\n\n for (Map.Entry<Integer, Set<String>> mk : pairSumMap.entrySet()) {\n diff = target - mk.getKey();\n if (pairSumMap.containsKey(diff)) {\n Set<String> indexesList = mk.getValue();\n for (String index : indexesList) {\n int indexOrgX = Integer.parseInt(index.split(\"-\")[0]);\n int indexOrgY = Integer.parseInt(index.split(\"-\")[1]);\n for (String newIdx : pairSumMap.get(diff)) {\n int indexNewX = Integer.parseInt(newIdx.split(\"-\")[0]);\n int indexNewY = Integer.parseInt(newIdx.split(\"-\")[1]);\n if (indexOrgX != indexNewX && indexOrgX != indexNewY && indexOrgY != indexNewX && indexOrgY != indexNewY) {\n System.out.println(1);\n return;\n }\n }\n }\n }\n }\n System.out.println(0);\n }", "public static void main(String[] args) {\n\t\tint size = 600_000_000;\n\t\tint[] mas = new int[size];\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tmas[i] = i;\n\t\t}\n\n\t\t// positive test\n\t\tint target = size - 1;\n\n\t\tlong start = System.currentTimeMillis();\n\t\tlinearSearchTestPositive(mas, target, target);\n\t\tlong end = System.currentTimeMillis();\n\t\tSystem.out.println(end - start);\n\n\n\t\tlong start1 = System.currentTimeMillis();\n\t\tbinarySearchTestPositive(mas, target, target);\n\t\tlong end1 = System.currentTimeMillis();\n\t\tSystem.out.println(end1 - start1);\n\t}", "static int sum(int n) {\n\t\tif(n==1) \n\t\t\treturn 1;\n\t\treturn n+sum(n-1);\n\t}", "private static boolean slowEquals(final byte[] a, final byte[] b) {\n int diff = a.length ^ b.length;\n for (int i = 0; i < a.length && i < b.length; i++) {\n diff |= a[i] ^ b[i];\n }\n return diff == 0;\n }", "private static void task03333(int nUMS, SplayTree<Integer> j) {\n\n\t\tlong start = System.nanoTime();\n\t System.out.println( \"Deletion in the table...\" );\n\t int count=0;\n\t\tfor( int i = 1; i <= nUMS; i++)\n\t\t{\n\t\t\tif(j.isEmpty() == false)\n\t\t\t{\n\t\t\t\n\t\t\tj.remove(i);\n\t\t\t\n\t\t\t}\n//\t\t\tSystem.out.println(GenerateInt.generateNumber());\n\n\t\t}\n\t\tSystem.out.println(\"Total Size \" + count);\n\t\tSystem.out.println(\"Is it empty \" + j.isEmpty());\n\t\tlong end = System.nanoTime();;\n\t\tlong elapsedTime = end - start;\n\t\tSystem.out.println(elapsedTime + \" NanoSeconds\");\n\t\tSystem.out.println(\"Average Time \" + elapsedTime/nUMS);\n\t}", "int mo13159a(List<Log> list);", "public static void main(String[] args){\n int s = 80;\n int n = (int) Math.pow(10, 7);\n Integer[] a = new Integer[n];\n Random rand = new Random();\n for (int i = 0; i < n; i++){\n a[i] = (int) (n*rand.nextDouble());\n }\n double binTime = binSearchT(s, a);\n double linTime = linSearchT(s, a);\n System.out.println(\"binTime: \"+ binTime);\n System.out.println(\"linTime: \"+ linTime);\n\n }", "int minOperations(int[] arr) {\n // Write your code here\n Set<String> set = new HashSet<>();//store visited string\n Queue<String> queue = new LinkedList<>(); // store next strs\n int counter = 0;\n\n queue.offer(getKey(arr));\n set.add(getKey(arr));\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n List<String> curs = new ArrayList<>();\n while (size > 0) {\n curs.add(queue.poll());\n size--;\n }\n\n for(String cur : curs) {\n if (isIncreasing(cur)) {\n return counter;\n }\n\n for(int i = 0; i < cur.length(); i++) {\n String next = reverseString(cur, i);\n if (!set.contains(next)) {\n set.add(next);\n queue.offer(next);\n }\n }\n }\n\n counter++;\n }\n\n return counter;\n }", "private int A(int n, int m) {\n int res = 1;\n for (int i = 0; i < m; n++)\n res *= n;\n return res;\n }", "static long[] radixsort(int arr[], int n)\r\n\r\n {\n\r\n int m = getMax(arr, n);\r\n\r\n long st = System.nanoTime();\r\n\r\n\r\n\r\n for (int exp = 1; m/exp > 0; exp *= 10)\r\n\r\n countSort(arr, n, exp);\r\n\r\n \r\n\r\n long et = System.nanoTime();\r\n\r\n threeVals[2] = et - st;\r\n\r\n return threeVals;\r\n\r\n }", "static /* synthetic */ void m34120F(int i, long j) {\n AppMethodBeat.m2504i(114776);\n C22440b c22440b;\n if (i == 11) {\n c22440b = new C22440b();\n c22440b.startTime = System.currentTimeMillis();\n sJR.put(Long.valueOf(j), c22440b);\n AppMethodBeat.m2505o(114776);\n return;\n }\n if (i == 12) {\n if (!sJR.containsKey(Long.valueOf(j))) {\n new C22440b().startTime = System.currentTimeMillis();\n AppMethodBeat.m2505o(114776);\n return;\n }\n } else if (i == 13) {\n c22440b = (C22440b) sJR.get(Long.valueOf(j));\n if (c22440b != null) {\n c22440b.endTime = System.currentTimeMillis();\n sJT.add(c22440b);\n sJR.remove(Long.valueOf(j));\n }\n }\n AppMethodBeat.m2505o(114776);\n }", "private static void task2222(int nUMS, SplayTree<Integer> j) {\n\t\tSystem.out.println(\"SPLAY Started Search...\");\n\t double search_start = 0, search_end = 0;\n\t int totalkeymatched = 0;\n\n\t search_start = System.nanoTime();\n\t \n\t for (int z = 0; z < nUMS; z++) {\n\t \tint checker= GenerateInt.generateNumber();\n\t \t\n//\t \tSystem.out.println(GenerateStrings.getAlphaNumericString(limit));\n\t if (j.contains(checker)) {\n\t\n//\t System.out.println(\"Key Matches\");\n\t totalkeymatched++;\n\t \t }\n\t }\n\t search_end = System.nanoTime();\n\t System.out.println(\"Average time for each search: \" + (search_end - search_start) / nUMS + \" nanoseconds\");\n\t System.out.println(\"TOTAL MATCHES \" + totalkeymatched);\n\n\t}", "public int a(alq paramalq, int paramInt1, int paramInt2, fn paramfn)\r\n/* 120: */ {\r\n/* 121:137 */ int i = 0;\r\n/* 122: */ amj localamj;\r\n/* 123: */ int k;\r\n/* 124:138 */ for (int j = 0; j < this.a.length; j++)\r\n/* 125: */ {\r\n/* 126:139 */ localamj = this.a[j];\r\n/* 127:140 */ if (localamj != null) {\r\n/* 128:143 */ if ((paramalq == null) || (localamj.b() == paramalq)) {\r\n/* 129:146 */ if ((paramInt1 <= -1) || (localamj.i() == paramInt1)) {\r\n/* 130:149 */ if ((paramfn == null) || (cy.a(paramfn, localamj.o(), true)))\r\n/* 131: */ {\r\n/* 132:153 */ k = paramInt2 <= 0 ? localamj.b : Math.min(paramInt2 - i, localamj.b);\r\n/* 133:154 */ i += k;\r\n/* 134:155 */ if (paramInt2 != 0)\r\n/* 135: */ {\r\n/* 136:156 */ this.a[j].b -= k;\r\n/* 137:157 */ if (this.a[j].b == 0) {\r\n/* 138:158 */ this.a[j] = null;\r\n/* 139: */ }\r\n/* 140:160 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 141:161 */ return i;\r\n/* 142: */ }\r\n/* 143: */ }\r\n/* 144: */ }\r\n/* 145: */ }\r\n/* 146: */ }\r\n/* 147: */ }\r\n/* 148: */ }\r\n/* 149:165 */ for (j = 0; j < this.b.length; j++)\r\n/* 150: */ {\r\n/* 151:166 */ localamj = this.b[j];\r\n/* 152:167 */ if (localamj != null) {\r\n/* 153:170 */ if ((paramalq == null) || (localamj.b() == paramalq)) {\r\n/* 154:173 */ if ((paramInt1 <= -1) || (localamj.i() == paramInt1)) {\r\n/* 155:176 */ if ((paramfn == null) || (cy.a(paramfn, localamj.o(), false)))\r\n/* 156: */ {\r\n/* 157:180 */ k = paramInt2 <= 0 ? localamj.b : Math.min(paramInt2 - i, localamj.b);\r\n/* 158:181 */ i += k;\r\n/* 159:182 */ if (paramInt2 != 0)\r\n/* 160: */ {\r\n/* 161:183 */ this.b[j].b -= k;\r\n/* 162:184 */ if (this.b[j].b == 0) {\r\n/* 163:185 */ this.b[j] = null;\r\n/* 164: */ }\r\n/* 165:187 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 166:188 */ return i;\r\n/* 167: */ }\r\n/* 168: */ }\r\n/* 169: */ }\r\n/* 170: */ }\r\n/* 171: */ }\r\n/* 172: */ }\r\n/* 173: */ }\r\n/* 174:193 */ if (this.f != null)\r\n/* 175: */ {\r\n/* 176:194 */ if ((paramalq != null) && (this.f.b() != paramalq)) {\r\n/* 177:195 */ return i;\r\n/* 178: */ }\r\n/* 179:197 */ if ((paramInt1 > -1) && (this.f.i() != paramInt1)) {\r\n/* 180:198 */ return i;\r\n/* 181: */ }\r\n/* 182:200 */ if ((paramfn != null) && (!cy.a(paramfn, this.f.o(), false))) {\r\n/* 183:201 */ return i;\r\n/* 184: */ }\r\n/* 185:204 */ j = paramInt2 <= 0 ? this.f.b : Math.min(paramInt2 - i, this.f.b);\r\n/* 186:205 */ i += j;\r\n/* 187:206 */ if (paramInt2 != 0)\r\n/* 188: */ {\r\n/* 189:207 */ this.f.b -= j;\r\n/* 190:208 */ if (this.f.b == 0) {\r\n/* 191:209 */ this.f = null;\r\n/* 192: */ }\r\n/* 193:211 */ if ((paramInt2 > 0) && (i >= paramInt2)) {\r\n/* 194:212 */ return i;\r\n/* 195: */ }\r\n/* 196: */ }\r\n/* 197: */ }\r\n/* 198:217 */ return i;\r\n/* 199: */ }" ]
[ "0.66411436", "0.64639163", "0.6164798", "0.6011568", "0.59822357", "0.5708563", "0.5708227", "0.5645393", "0.55679286", "0.54936206", "0.5453294", "0.5408978", "0.5394527", "0.5360224", "0.5357854", "0.53478575", "0.5345907", "0.5344003", "0.5318471", "0.5316722", "0.5308674", "0.5307848", "0.530607", "0.52465284", "0.5225933", "0.52222216", "0.5220797", "0.5218025", "0.52009755", "0.5193862", "0.5191275", "0.51730686", "0.5162659", "0.5156138", "0.51468706", "0.5142716", "0.51368195", "0.51339436", "0.5127452", "0.512312", "0.51204616", "0.5109089", "0.50988376", "0.5097737", "0.5073097", "0.50704277", "0.5067344", "0.5059236", "0.50567937", "0.505599", "0.5048745", "0.50419205", "0.5040945", "0.50377274", "0.50364786", "0.50325847", "0.50278926", "0.5021524", "0.50136966", "0.50092125", "0.50017416", "0.4987873", "0.49827573", "0.49814177", "0.49783763", "0.49758273", "0.49727482", "0.49573374", "0.49572095", "0.49570346", "0.49562678", "0.49492615", "0.4942061", "0.4929081", "0.49267742", "0.4922555", "0.49142087", "0.4913359", "0.49132866", "0.4909299", "0.49086848", "0.49057168", "0.490402", "0.49035335", "0.49013397", "0.48936808", "0.48934275", "0.48900962", "0.4889495", "0.48879427", "0.4886119", "0.4884523", "0.4882578", "0.4876379", "0.48719302", "0.48627338", "0.48588237", "0.48566827", "0.4852623", "0.48503882", "0.48399484" ]
0.0
-1
TODO Autogenerated method stub
@Override public void run() { IndexServer is = new IndexServer(3002,"/src/P2Pfile/Peer2/filefolder" ); System.out.println("Peer2Server Start"); is.ConnectionAccept(); }
{ "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 Add_Friend(String username,Object friend) { if(friend!=null && friend instanceof valueobject.Friend){ DAO.all_interface friendDao = DB.ObjectFactory.getFriendDao(); User one = DB.ObjectFactory.getUserObject(); one.setName(username); int userid = this.GetKey(one); Friend frd = (Friend)friend; frd.setUserid(userid); int i = friendDao.Add((Object)frd); if(i==friendDao.OPERATE_SUCCESS){ return this.OPERATE_OK; }else if(i==friendDao.OPERATE_ERROR){ return this.OPERATE_ERROR; } } return this.OTHER_ERROR; }
{ "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 Delete_Friend(Object key) { DAO.all_interface friendDao = DB.ObjectFactory.getFriendDao(); int i = friendDao.Delete(key); if(i == friendDao.OPERATE_SUCCESS){ return this.OPERATE_OK; }else if(i==friendDao.OPERATE_ERROR){ return this.OPERATE_ERROR; }else{ return this.OTHER_ERROR; } }
{ "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 Delete_User(String name) { 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
public List<Friend> Get_All_Friends(String username) { return this.Get_Friends_By_Query(username, ""); }
{ "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<Friend> Get_Friends_By_Query(String username,String queryName) { String sql_where = "userid in (select userid from user where name='"+username+"')"; if(queryName!=null&&queryName.length()>0) sql_where = sql_where+" and name like '%"+queryName+"%'"; List<Friend> result = new LinkedList(); List<Object> friends = DB.ObjectFactory.getFriendDao().GetBy(sql_where); for(Object o:friends){ Friend frd = (Friend)o; result.add(frd); } return result; }
{ "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 Update_User(String name, String oldPassword, String newPassword) { 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
Interface that enables IHE Actors to write stuff to the MESA test log, when appropriate.
public interface IMesaLogger { /** * Writes a text string to the MESA log * * @param message The text string to display */ public void writeString(String message); /** * Writes a SOAP message to the MESA log * * @param message The SOAP message to display */ public void writeSoapMessage(SOAPMessage message); /** * Writes out an Axiom OMElement message to the logger. * * @param message the element to display */ public void writeAxiomElementMessage(OMElement message); /** * Writes an HL7 message to the MESA log * * @param message the HL7 message to display */ public void writeHL7Message(Message message); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public interface TestReporterAppender {\n\n void logMessage(String sMessage, boolean bError);\n\n void logMessage(String sMessage, Throwable t);\n\n void init();\n\n void traceExecution(CommandRequest cRequest, OpResult rResult);\n\n void traceExecution(HttpOpRequest request);\n}", "@Override\n public void logs() {\n \n }", "public void recordLog(){\r\n\t\tthis.finishLog(resourceFiles.getString(\"PathHepparIITestDirectory\") + \"/\" + TEST_FILE_NAME); \r\n\t}", "abstract void initiateLog();", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "@Override\n public void log()\n {\n }", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "abstract protected void _log(TrackingActivity activity) throws Exception;", "@Test\npublic void testAppend() throws Exception { \n Syslog.Append(\"SylogTest\",\"testAppend\",\"Test ok\");\n}", "@Override\r\n\tprotected void setup() {\n\t\tlog=LogManager.getLogger();\r\n\t\tmyAgent.addGoal(new SendMsgGoal());\r\n//\t\tlog.info(\"Send message goal is added\");\r\n\t\t\r\n\t}", "void log() {\n\t\tm_drivetrain.log();\n\t\tm_forklift.log();\n\t}", "public interface Loggable {\n void writeToLog(String message);\n void closeLog();\n}", "@Test\r\n\tpublic void logTest() {\r\n\t\tlogger.info(\"Testando info\");\r\n\t\tlogger.debug(\"nao sera logado\" + \"Nice\");\r\n\t\tlogger.error(\"This is Error message\", new Exception(\"Testing\"));\r\n\t}", "public void LogIt(ExtentTest logger,String StepInfo){\r\n logger.log(Status.INFO,StepInfo);\r\n }", "public void logData(){\n }", "public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}", "@Test\n public void shouldLogMessage() {\n ILogger logger = new SysoutLogger();\n logger.log(\"hello\");\n assertThat(outContent.toString(), is(\"hello\" + System.getProperty(\"line.separator\")));\n }", "@Override\n public void log() {\n switch (this.level) {\n case trace: if (!this.logger.isTraceEnabled()) return;\n break;\n case debug: if (!this.logger.isDebugEnabled()) return;\n break;\n case info: if (!this.logger.isInfoEnabled()) return;\n break;\n case warn: if (!this.logger.isWarnEnabled()) return;\n break;\n case error: if (!this.logger.isErrorEnabled()) return;\n break;\n }\n\n if (this.logger.getClass().equals(ch.qos.logback.classic.Logger.class)) {\n if (!((ch.qos.logback.classic.Logger)this.logger).isAdditive()) {\n return;\n }\n }\n\n this.mdcWriters.forEach(MDCWriter::write);\n\n switch (this.level) {\n case trace:\n this.logger.trace(this.message, this.args.toJavaArray());\n break;\n case debug:\n this.logger.debug(this.message, this.args.toJavaArray());\n break;\n case info:\n this.logger.info(this.message, this.args.toJavaArray());\n break;\n case warn:\n this.logger.warn(this.message, this.args.toJavaArray());\n break;\n case error:\n this.logger.error(this.message, this.args.toJavaArray());\n break;\n }\n }", "protected void log(String msg) {\n\t\tif(isLogging) {\n\t\t\tSystem.out.println(\"[TRACKER \" + id() + \"] \" + msg);\n\t\t}\n\t}", "protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}", "@Override\n public void append( LogEvent event ) {\n long eventTimestamp;\n if (event instanceof AbstractLoggingEvent) {\n eventTimestamp = ((AbstractLoggingEvent) event).getTimestamp();\n } else {\n eventTimestamp = System.currentTimeMillis();\n }\n LogEventRequest packedEvent = new LogEventRequest(Thread.currentThread().getName(), // Remember which thread this event belongs to\n event, eventTimestamp); // Remember the event time\n\n if (event instanceof AbstractLoggingEvent) {\n AbstractLoggingEvent dbLoggingEvent = (AbstractLoggingEvent) event;\n switch (dbLoggingEvent.getEventType()) {\n\n case START_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the test case id, which we will later pass to ATS agent\n testCaseState.setTestcaseId(eventProcessor.getTestCaseId());\n\n // clear last testcase id\n testCaseState.clearLastExecutedTestcaseId();\n\n //this event has already been through the queue\n return;\n }\n case END_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the last executed test case id\n testCaseState.setLastExecutedTestcaseId(testCaseState.getTestcaseId());\n\n // clear test case id\n testCaseState.clearTestcaseId();\n // this event has already been through the queue\n return;\n }\n case GET_CURRENT_TEST_CASE_STATE: {\n // get current test case id which will be passed to ATS agent\n ((GetCurrentTestCaseEvent) event).setTestCaseState(testCaseState);\n\n //this event should not go through the queue\n return;\n }\n case START_RUN:\n\n /* We synchronize the run start:\n * Here we make sure we are able to connect to the log DB.\n * We also check the integrity of the DB schema.\n * If we fail here, it does not make sense to run tests at all\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n Level level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n // create the queue logging thread and the DbEventRequestProcessor\n if (queueLogger == null) {\n initializeDbLogging(null);\n }\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, false);\n //this event has already been through the queue\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n return;\n case END_RUN: {\n /* We synchronize the run end.\n * This way if there are remaining log events in the Test Executor's queue,\n * the JVM will not be shutdown prior to committing all events in the DB, as\n * the END_RUN event is the last one in the queue\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n //this event has already been through the queue\n return;\n }\n case DELETE_TEST_CASE: {\n // tell the thread on the other side of the queue, that this test case is to be deleted\n // on first chance\n eventProcessor.requestTestcaseDeletion( ((DeleteTestCaseEvent) dbLoggingEvent).getTestCaseId());\n // this event is not going through the queue\n return;\n }\n default:\n // do nothing about this event\n break;\n }\n }\n\n passEventToLoggerQueue(packedEvent);\n }", "@Test\r\n public void oneMoreTest() {\n ConfigureAppender.configureFileAppender(\"oneMoreTest\");\r\n LOG.info(\"Other test\");\r\n LOG.debug(\"Checking the configuration of the file appender\");\r\n\r\n byte[] biteArray;\r\n try {\r\n// biteArray = FileUtils.readFileToByteArray(new File(System.getProperty(\"user.dir\") + \"/Log4j/oneMoreTest1.log\"));\r\n biteArray = FileUtils.readFileToByteArray(new File(System.getProperty(\"user.dir\") + \"/Log4j/oneMoreTest.log\"));\r\n } catch (IOException ex){\r\n biteArray = null;\r\n }\r\n Allure.getLifecycle().addAttachment(\"Other Test logs\", \"text/plain\", \"log\", biteArray);\r\n }", "public void infoLog(String testStep,ExtentReports report,ExtentTest logger)\n\t{\n\t\tcurrentTestStep = testStep;\n\t\tlogger.log(Status.INFO, \"Step: \"+(++i)+\" \"+testStep );\n\t\treport.flush();\n\t}", "@Override\n\tpublic void log(String msg) throws IOException {\n\t\t\n\t}", "void setupFileLogging();", "public void logSensorData () {\n\t}", "private void doIt() {\n\t\tlogger.debug(\"hellow this is the first time I use Logback\");\n\t\t\n\t}", "@Override\n\tpublic void activity() {\n\t\tSystem.out.println(\"studying\");\n\t}", "private void logMessage(ReceivedStuff mess, User user, boolean iAmSender){\n HistMessage histMessage = new HistMessage(mess, iAmSender, new Date());\n user.addMessage(histMessage);\n }", "public interface LogViewer {\n\n\t/**\n\t * General application info.\n\t * @param text\n\t */\n\tvoid info(String text);\n\t\n\t/**\n\t * General error info.\n\t * @param text\n\t */\n\tvoid err(String text);\n\t\n\t/**\n\t * Info related to GA.\n\t * @param text\n\t */\n\tvoid gaInfo(String text);\n\t\n\t/**\n\t * Info related to ANTS.\n\t * @param text\n\t */\n\tvoid antsInfo(String text);\n\t\n\t/**\n\t * Info related to BA.\n\t * @param text\n\t */\n\tvoid baInfo(String text);\n}", "@Test\n\tpublic void customUserLogger() throws Exception {\n\t\t\n\t\tfinal AuthenticationHandler ah = mock(AuthenticationHandler.class);\n\t\tfinal JsonServerSyslog sysLog = mock(JsonServerSyslog.class);\n\t\tfinal JsonServerSyslog userLog = mock(JsonServerSyslog.class);\n\t\t\n\t\twhen(sysLog.getServiceName()).thenReturn(\"myserv\");\n\t\t\n\t\tfinal FakeServer fs = new FakeServer(ah, false, sysLog, userLog);\n\t\t\n\t\tfs.logErr(\"oh crap\");\n\t\tfs.logInfo(\"oh goody\");\n\t\tfs.logDebug(\"oh what?\");\n\t\t\n\t\tverify(userLog).logErr(\"oh crap\");\n\t\tverify(userLog).logInfo(\"oh goody\");\n\t\tverify(userLog).logDebug(\"oh what?\");\n\t\t\n\t\tverify(sysLog).getServiceName();\n\t\tverifyNoMoreInteractions(sysLog);\n\t}", "private void logToFile() {\n }", "public interface InstrumenterLogger {\n\n void important(String msg, Object... args);\n\n void lessImportant(String msg, Object... args);\n}", "private HeaderBrandingTest()\n\t{\n\t\tBaseTest.classLogger = LoggerFactory.getLogger( HeaderBrandingTest.class );\n\t}", "@Override\n\tpublic void onEnable() {\n\t\tMBEPlugin Mbes = (MBEPlugin) this.getPluginManager().getPlugin(\"MbEssentials\");\n\t\t\n\t\t//Get the LogManager from the plugin\n\t\tLogManager log = Mbes.getLogManager();\n\t\t\n\t\t//Make a logger. The string tells the logmanager where to create the log\n\t\tLogger myLog = new Logger(\"plugins\\\\\"); \n\t\t// You can do this Logger myLog = new Logger(new File(\"plugins\\\\mylog.txt\")); it will overide the default name \n\t\t\n\t\t//Attach logger to the logManager\n\t\tlog.attachLogger(myLog);\n\t\t\t\n\t\t\t//write to the log\n\t\t\tlog.writeLog(\"Im logging this\",myLog,false); //Its false so it can log it using the default formatting\n\t\t\t// You can also do this log.writeLog(\"Im logging this\",myLog.getId(),false);\n\t\t}", "private void log(String msg) {\r\n\t\tif(this.out != null) {\r\n\t\t\tthis.out.println(msg);\r\n\t\t\tthis.out.flush();\r\n\t\t}\r\n\t}", "public interface ILog {\n\n /**\n * Send an information level log message, used by time-related log.\n *\n * @param tag Used to identify the source of a log message. It usually identifies\n * the class or activity where the log call occurs.\n * @param msg The message you would like logged.\n */\n void info(String tag, String msg);\n\n\n /**\n * Send an warning level log message, used by exception-related log.\n *\n * @param tag Used to identify the source of a log message. It usually identifies\n * the class or activity where the log call occurs.\n * @param msg The message you would like logged.\n */\n void warn(String tag, String msg);\n}", "public void log (Object msg) {\n getLogEvent().addMessage (msg);\n }", "@Test\n\tpublic final void testWriteMessagesForOrderTesting() {\n\t\tfor (int curLogMessage = 1; curLogMessage < 3000; curLogMessage++) {\n\t\t\tLog.trace(\"This is log message #%s\", curLogMessage);\n\t\t}\n\t}", "abstract protected void _log(TrackingEvent event) throws Exception;", "public ThreadTest(String testName) {\n\n super(testName);\n\n logger = LogManager.getLogger(testName);//T1.class.getName()\n\n }", "private void divertLog() {\n wr = new StringWriter(1000);\n LogTarget[] lt = { new WriterTarget(wr, fmt) };\n SampleResult.log.setLogTargets(lt);\n }", "@Test\n public void testAuditLogger() throws IOException {\n Configuration conf = new HdfsConfiguration();\n conf.set(DFSConfigKeys.DFS_NAMENODE_AUDIT_LOGGERS_KEY, TestAuditLogger.DummyAuditLogger.class.getName());\n MiniDFSCluster cluster = new MiniDFSCluster.Builder(conf).build();\n try {\n cluster.waitClusterUp();\n Assert.assertTrue(TestAuditLogger.DummyAuditLogger.initialized);\n TestAuditLogger.DummyAuditLogger.resetLogCount();\n FileSystem fs = cluster.getFileSystem();\n long time = System.currentTimeMillis();\n fs.setTimes(new Path(\"/\"), time, time);\n Assert.assertEquals(1, TestAuditLogger.DummyAuditLogger.logCount);\n } finally {\n cluster.shutdown();\n }\n }", "private void Log(String action) {\r\n\t}", "void logTiMessages(final String msg);", "public interface ILogger {\r\n //name of columns for measuring multiple values together\r\n public void init(String... names) throws IOException;\r\n //datapoints per column for measuring multiple values together\r\n public void log(Object... vals) throws IOException;\r\n //all datapoints where submitted so clean up\r\n public void finish() throws IOException;\r\n}", "void printHellow() {\n logger.debug(\"hellow world begin....\");\n logger.info(\"it's a info message\");\n logger.warn(\"it's a warning message\");\n loggerTest.warn(\"from test1 :....\");\n loggerTest.info(\"info from test1 :....\");\n\n // print internal state\n LoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n StatusPrinter.print(lc);\n }", "@Override\n public void init() throws Exception {\n // allocate a new logger\n Logger logger = Logger.getLogger(\"processinfo\");\n\n // add some extra output channels, using mask bit 6\n try {\n outputStream = new FileOutputStream(filename);\n logger.addOutput(new PrintWriter(outputStream), new BitMask(MASK.APP));\n } catch (Exception e) {\n LoggerFactory.getLogger(TcpdumpReporter.class).error(e.getMessage());\n }\n\n }", "public interface Logger {\n public void writeLog();\n}", "@Override\n\tpublic void onTestStart(ITestResult arg0) {\n\t\tSystem.out.println(\"when test started\");\n\t\t\n\t}", "@Override\n\tpublic void onStart(ITestContext arg0) {\n\t\tSystem.out.println(\"Test Started\" + arg0.getName() + \",\" + new Date());\n\n\t}", "@Override\n public void log(String message) {\n }", "public interface LoggingManager {\n \n /**\n * Method configure is called at Shark start up, to configure\n * implementation of LoggingManager.\n *\n * @param cus an instance of CallbackUtilities used to get\n * properties for configuring logging in Shark.\n *\n * @exception RootException Thrown if configuring doesn't succeed.\n */\n void configure (CallbackUtilities cus) throws RootException;\n \n /**\n * Log a message object with the <i>ERROR</i> Level.\n *\n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void error (String msg) throws RootException;\n \n /**\n * Log a message object with the <i>ERROR</i> Level.\n *\n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void error (String msg, RootException ex) throws RootException;\n \n /**\n * Log a message object with the <i>ERROR</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void error (String channel, String msg) throws RootException;\n \n /**\n * Log a message object with the <i>ERROR</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void error (String channel, String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>WARN</i> Level.\n *\n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void warn (String msg) throws RootException;\n\n /**\n * Log a message object with the <i>WARN</i> Level.\n *\n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void warn (String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>WARN</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void warn (String channel,String msg) throws RootException;\n\n /**\n * Log a message object with the <i>WARN</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void warn (String channel, String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>INFO</i> Level.\n *\n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void info (String msg) throws RootException;\n\n /**\n * Log a message object with the <i>INFO</i> Level.\n *\n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void info (String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>INFO</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void info (String channel, String msg) throws RootException;\n\n /**\n * Log a message object with the <i>INFO</i> Level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void info (String channel, String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>DEBUG</i> level.\n *\n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void debug (String msg) throws RootException;\n\n /**\n * Log a message object with the <i>DEBUG</i> level.\n *\n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void debug (String msg, RootException ex) throws RootException;\n\n /**\n * Log a message object with the <i>DEBUG</i> level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n *\n * @exception RootException If something unexpected happens.\n *\n */\n void debug (String channel, String msg) throws RootException;\n\n /**\n * Log a message object with the <i>DEBUG</i> level.\n *\n * @param channel the log channel to be used for logging. \n * @param msg the message to log.\n * @param ex the exception to log, including its stack trace. \n *\n * @exception RootException If something unexpected happens.\n *\n */\n void debug (String channel, String msg, RootException ex) throws RootException;\n\n\n}", "@Override\n public void testPeriodic() {\n //Diagnostics.writeString(\"State\", \"TEST\");\n }", "public Logger(int ActorID, int TargetID, Action action){\n this.date = new Date();\n this.actorID = ActorID;\n this.targetID = TargetID;\n this.action = action;\n }", "@Override\n public void setLogTracer(LogTracer log) {\n\n }", "@Override\r\n\tpublic void onTestStart(ITestResult result) {\n\t\tSystem.out.println(\"TC on Test start\"+\" \"+result.getName());\r\n\t}", "@Test\n\tpublic void test() {\n\t\tLoggerContext lc = (LoggerContext) LoggerFactory.getILoggerFactory();\n\t\t// print logback's internal status\n\t\tStatusPrinter.print(lc);\n\t\t\n\t\tLOG.trace(\"this is a trace message\");\n\n\t\tLOG.debug(\"this is a debug message\");\n\n\t\tLOG.info(\"this is an info message\");\n\n\t\tLOG.warn(\"this is a warn message\");\n\n\t\tLOG.error(\"this is an error message\");\n\n\t}", "public interface Actor extends LogicalHandled\n{\t\n\t/**\n\t * This is the actors action, which will be called at each step\n\t */\n\tpublic void act();\n}", "private void write(String msg) {\n\t\tIterator<LogListener> listeners = this.eventListeners.iterator();\n\t\twhile (listeners.hasNext()) {\n\t\t\tlisteners.next().writeLog(msg);\n\t\t}\n\t}", "protected abstract void info(String msg);", "@Override\n protected void log(String tag, String msg) {\n Log.i(tag, \"[you can use your custom logger here \\\"]\" + msg);\n }", "private void log(String message) {\n if (this.listener != null) {\n message = \"CollabNet Tracker: \" + message;\n this.listener.getLogger().println(message);\n }\n }", "private void logUser() {\n }", "private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }", "protected void logToScreen() {\r\n\t\tif (smscListener != null) {\r\n\t\t\tsynchronized (processors) {\r\n\t\t\t\tdisplayInfo = !displayInfo;\r\n\t\t\t\tint procCount = processors.count();\r\n\t\t\t\tSimulatorPDUProcessor proc;\r\n\t\t\t\tfor (int i = 0; i < procCount; i++) {\r\n\t\t\t\t\tproc = (SimulatorPDUProcessor) processors.get(i);\r\n\t\t\t\t\tproc.setDisplayInfo(displayInfo);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tfactory.setDisplayInfo(displayInfo);\r\n\t\t}\r\n\t}", "protected final void log(String msg)\r\n {\r\n Debug.println(\"Server: \" + msg);\r\n }", "protected void sinkImpl(String msg) {\n opensimCommonJNI.LogSink_sinkImpl(swigCPtr, this, msg);\n }", "@SuppressWarnings(\"unused\")\n protected void info(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isInfoEnabled()) {\n this.getContainer().getLogger().info(msg);\n }\n }", "@Override\n public void onTestStart(ITestResult tr) {\n StatusPrinter.printTestStart(tr);\n }", "public abstract void logKenaiUsage(Object... parameters);", "public interface LogNode {\n\n // Instructs first LogNode in the list to print the log data provided\n\n public void println(int priority, String tag, String msg, Throwable tr);\n}", "public void writereport() {\n\t\n}", "private static void log(String aMsg){\n\t System.out.println(aMsg);\n\t }", "protected void setUp() throws Exception {\r\n printStream = new PrintStream(new FileOutputStream(FILE));\r\n\r\n logFactory = new BasicLogFactory(printStream);\r\n\r\n log = (BasicLog) logFactory.createLog(NAME);\r\n }", "public void enableLogging();", "@Override\r\n protected void append(LoggingEvent event)\r\n {\n String category = event.getLoggerName();\r\n String logMessage = event.getRenderedMessage();\r\n String nestedDiagnosticContext = event.getNDC();\r\n String threadDescription = event.getThreadName();\r\n String level = event.getLevel().toString();\r\n long time = event.timeStamp;\r\n LocationInfo locationInfo = event.getLocationInformation();\r\n\r\n // Add the logging event information to a LogRecord\r\n Log4JLogRecord record = new Log4JLogRecord();\r\n\r\n record.setCategory(category);\r\n record.setMessage(logMessage);\r\n record.setLocation(locationInfo.fullInfo);\r\n record.setMillis(time);\r\n record.setThreadDescription(threadDescription);\r\n\r\n if (nestedDiagnosticContext != null) {\r\n record.setNDC(nestedDiagnosticContext);\r\n } else {\r\n record.setNDC(\"\");\r\n }\r\n\r\n if (event.getThrowableInformation() != null) {\r\n record.setThrownStackTrace(event.getThrowableInformation());\r\n }\r\n\r\n try {\r\n record.setLevel(LogLevel.valueOf(level));\r\n } catch (LogLevelFormatException e) {\r\n // If the priority level doesn't match one of the predefined\r\n // log levels, then set the level to warning.\r\n record.setLevel(LogLevel.WARN);\r\n }\r\n MgcLogBrokerMonitor monitor = Lf5MainWindowController.getMonitor();\r\n if (monitor != null) {\r\n monitor.addMessage(record);\r\n }\r\n }", "@Test\n\tpublic void addTaskOutput(){\n\t}", "public void testGetTaskActorE(){\n }", "public void log(String msg) {\n\n\t}", "public void logThis(String log, Theory theory)\n {\n }", "public interface ILog {\n /**\n * 打印日志\n * @param L 虚拟机地址,可通过 {@link org.luaj.vm2.Globals#getGlobalsByLState(long)}获取\n */\n void l(long L, String tag, String log);\n\n /**\n * 打印错误日志\n * @param L 虚拟机地址,可通过 {@link org.luaj.vm2.Globals#getGlobalsByLState(long)}获取\n */\n void e(long L, String tag, String log);\n}", "void write(TestResult testResult);", "private void log(String msg) {\r\n\t\tif (logger != null) {\r\n\t\t\tlogger.append(msg);\r\n\t\t\tlogger.println();\r\n\t\t}\r\n\t}", "private static void _logInfo ()\n {\n System.err.println (\"Logging is enabled using \" + log.getClass ().getName ());\n }", "public LogScrap() {\n\t\tconsumer = bin->Conveyor.LOG.debug(\"{}\",bin);\n\t}", "public interface FsmLogger {\n\t/**\n\t * Get name of the logger.\n\t * \n\t * @return the name\n\t */\n\tpublic String getName();\n\n\t/**\n\t * Log a fatal message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void fatal(String message);\n\n\t/**\n\t * Log a fatal message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void fatal(String message, Throwable throwable);\n\n\t/**\n\t * Log an error message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void error(String message);\n\n\t/**\n\t * Log an error message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void error(String message, Throwable throwable);\n\n\t/**\n\t * Log a warning message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void warn(String message);\n\n\t/**\n\t * Log a warning message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void warn(String message, Throwable throwable);\n\n\t/**\n\t * Log an info message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void info(String message);\n\n\t/**\n\t * Log an info message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void info(String message, Throwable throwable);\n\n\t/**\n\t * Log a debug message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void debug(String message);\n\n\t/**\n\t * Log a debug message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void debug(String message, Throwable throwable);\n\n\t/**\n\t * Log a trace message.\n\t * \n\t * @param message\n\t * the message\n\t */\n\tpublic void trace(String message);\n\n\t/**\n\t * Log a trace message.\n\t * \n\t * @param message\n\t * the message\n\t * @param throwable\n\t * a throwable object\n\t */\n\tpublic void trace(String message, Throwable throwable);\n\n\t/**\n\t * Get status of info messages logging in this logger.\n\t * \n\t * @return true if logging of info messages is enabled otherwise false\n\t */\n\tpublic boolean isInfoEnabled();\n\n\t/**\n\t * Get status of debug messages logging in this logger.\n\t * \n\t * @return true if logging of debug messages is enabled otherwise false\n\t */\n\tpublic boolean isDebugEnabled();\n\n\t/**\n\t * Get status of trace messages logging in this logger.\n\t * \n\t * @return true if logging of trace messages is enabled otherwise false\n\t */\n\tpublic boolean isTraceEnabled();\n}", "abstract void logMessage(String message);", "protected void logTestMessage(String message)\r\n {\r\n System.out.println(_MESSAGE_PREFIX + message);\r\n }", "@Override\r\n\tpublic void onTestStart(ITestResult arg0) {\n\t\t\r\n\t}", "public static void LogIt(String action, File entity) {\n\t\t\r\n\t}", "public abstract WriteResult writeSystemLog(Log log);", "@Override\n\tpublic void log(String string, String text) {\n\t\tSystem.out.println(\"Loguer dans le console =>\"+text);\n\t}", "public void logComponente (int aTipo, String aComponente, String aMensagem )\n\t{\n\t\tlogComponente(0,aTipo,aComponente,aMensagem,\" \");\n\t}", "@Test\n\tpublic void testAgentLogsFinal() {\n\t\tReporter reporter = mock(Reporter.class);\n\t\tparty = new ShineParty(reporter);\n\t\tparty.connect(connection);\n\t\tparty.notifyChange(settings);\n\t\tparty.notifyChange(new Finished(null));\n\n\t\tverify(reporter).log(eq(Level.INFO),\n\t\t\t\teq(\"Final ourcome:Finished[null]\"));\n\t}", "@Test\n\tpublic void logObjectMessage() {\n\t\tlogger.log(org.jboss.logging.Logger.Level.DEBUG, 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(2, null, Level.DEBUG, null, null, 42, (Object[]) null);\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.log(org.jboss.logging.Logger.Level.WARN, 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(2, null, Level.WARN, null, null, 42, (Object[]) null);\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "public interface PxVideoRecorderDebugListener {\n void debugLog(String title, String message);\n}" ]
[ "0.629585", "0.60143363", "0.59299874", "0.58979017", "0.58073425", "0.58073425", "0.58073425", "0.5806224", "0.580325", "0.57714057", "0.5769922", "0.5763016", "0.5753879", "0.5747951", "0.57306767", "0.57242805", "0.5680526", "0.5669924", "0.56263876", "0.56037235", "0.5590987", "0.55842906", "0.5517122", "0.5516874", "0.5516405", "0.5515588", "0.551101", "0.54914975", "0.5487999", "0.54713076", "0.54655915", "0.54531455", "0.54350066", "0.54212195", "0.5420555", "0.54197013", "0.5417148", "0.54070336", "0.5405839", "0.54026026", "0.53933954", "0.53815603", "0.53802437", "0.5378833", "0.53687495", "0.536469", "0.5356456", "0.53486466", "0.5346686", "0.53449994", "0.5341517", "0.53133625", "0.53003544", "0.52959114", "0.52923095", "0.52916294", "0.52713233", "0.52702296", "0.52657074", "0.5261061", "0.52557135", "0.525458", "0.5250733", "0.52483606", "0.5241405", "0.52260387", "0.5221146", "0.52163476", "0.52010363", "0.51963377", "0.5193897", "0.51850003", "0.51813054", "0.5179869", "0.51765466", "0.5174233", "0.51657057", "0.5163429", "0.5157353", "0.51563287", "0.51511836", "0.5144703", "0.51428616", "0.5139786", "0.51282996", "0.51278436", "0.5125641", "0.51197326", "0.51195896", "0.51187575", "0.5114558", "0.5110897", "0.5107269", "0.5098046", "0.50975263", "0.50971264", "0.5092219", "0.50910527", "0.5083912", "0.5081708" ]
0.630191
0
Writes a text string to the MESA log
public void writeString(String message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void log(String text) {\r\n open();\r\n if (mCurrentFileStream != null) {\r\n try {\r\n mCurrentFileStream.write((text + \"\\r\\n\").getBytes());\r\n mCurrentFileStream.flush();\r\n } catch (IOException e) {\r\n Log.e(LOG_TAG, \"Failed writing log message\", e);\r\n close();\r\n }\r\n }\r\n }", "public void log(String text) {\n }", "public void log(String txt);", "void write(String text);", "@Override\n public void log(String text) {\n jTextAreaLog.append(text+\"\\n\");\n }", "protected void writeLog(String text){\n File logFile = new File(logFilePath);\n try {\n FileWriter fr = new FileWriter(logFile, true);\n fr.write(String.format(\"%s:\\t%s\\n\", getCurrentDate(), text));\n fr.close();\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "@Override\n public void write(String text) {\n }", "public void textLogger(String text) {\n loggerTextarea.append(text + \"\\n\");\n }", "public void appendLog(String text) {\r\n\t\tFile logFile = new File(\"sdcard/\" + application.LOGFILENAME);\r\n\t\tif (!logFile.exists()) {\r\n\t\t\ttry {\r\n\t\t\t\tlogFile.createNewFile();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}\r\n\t\ttry {\r\n\t\t\tBufferedWriter buf = new BufferedWriter(new FileWriter(logFile, true));\r\n\t\t\tCalendar calendar = Calendar.getInstance();\r\n\t\t\ttry {\r\n\t\t\t\tSystem.err.println(\"Logged Date-Time : \" + calendar.getTime().toLocaleString());\r\n\t\t\t} catch (Throwable e) {\r\n\t\t\t}\r\n\t\t\tbuf.append(\"Logged Date-Time : \" + calendar.getTime().toLocaleString());\r\n\t\t\tbuf.append(\"\\n\\n\");\r\n\t\t\tbuf.append(text);\r\n\t\t\tbuf.newLine();\r\n\t\t\tbuf.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "private static void writeLog(String s) {\n if (logFile == null) createLogFile();\n LogTools.println(s);\n LogTools.flush();\n }", "@Override\n\tpublic void log(String string, String text) {\n\t\tSystem.out.println(\"Loguer dans le console =>\"+text);\n\t}", "private static void dosyaYazici(String text)\n {\n File log = new File(\"log.txt\");\n try\n {\n if (!log.exists())\n {\n log.createNewFile();\n }\n FileWriter fileWriter = new FileWriter(log,true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.append(text+\"\\n\");\n bufferedWriter.close();\n //System.out.print(\"TEST\");\n }\n catch (IOException e)\n {\n System.out.print(\"DOSYA HATASI!\");\n e.printStackTrace();\n }\n\n }", "private void PrintLogMessageOnTextChat(String message)\n\t{\n\t\tApplicationManager.textChat.writeLog(message);\n\n\t}", "private static synchronized void writeLog(String text, int level )\n\t{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tsb.append(\"[\"+DateUtil.toTime(System.currentTimeMillis(),DateUtil.DATE_FORMATE_HOUR_MINUTE_SECOND)+\"]\");\n\t\tswitch (level) {\n\t\tcase Log.VERBOSE:\n\t\t\tsb.append(\"[VERBOSE]\\t\");\n\t\t\tbreak;\n\t\tcase Log.DEBUG:\n\t\t\tsb.append(\"[DEBUG]\\t\");\n\t\t\tbreak;\n\t\tcase Log.INFO:\n\t\t\tsb.append(\"[INFO ]\\t\");\n\t\t\tbreak;\n\t\tcase Log.WARN:\n\t\t\tsb.append(\"[WARN ]\\t\");\n\t\t\tbreak;\n\t\tcase Log.ERROR:\n\t\t\tsb.append(\"[ERROR]\\t\");\n\t\t\tbreak;\n\t\t}\n\t\t\n\t\tRandomAccessFile raf = null;\n\t\ttry {\n\t\t\tString fileName = PERSIST_PATH+\"_\"+DateUtil.toTime(System.currentTimeMillis(), DateUtil.DATE_DEFAULT_FORMATE);\n\t\t\tFile logFile = new File(fileName);\n\t\t\tif(!logFile.exists())\n\t\t\t{\n\t\t\t\tUtil.initExternalDir(false);\n\t\t\t\tlogFile.createNewFile();\n\t\t\t}\n\t\t\traf = new RandomAccessFile(fileName, \"rw\");\n\t\t\traf.seek(raf.length());\n\t\t\traf.writeBytes(sb.toString()+text+\"\\r\\n\");\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tif(raf!=null)\n\t\t\t{\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}\n\t\t\t}\n\t\t}\n\t}", "void saveLog(LogInfo logText);", "static void log(String text) {\n\t\tif (LoggingConfig.BUFFER_VERBOSE) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}", "public static void logMessage(String s)\n\t{\n\t\tSystem.out.println(s);\n\t\tlog += s + \"\\n\\n\";\n\t\toutputArea.setText(log);\n\t}", "void writeText(FsPath path, String text);", "private void writeToLog(String logMessage) throws IOException {\n\t\tLogWriter.write(logMessage);\n\t\tLogWriter.newLine();\n\t}", "protected void log(String text) {\n\t\tif (ontology != null) {\n\t\t\tontology.log(text);\n\t\t}\n\t}", "private String logString(String s) {\n Log.i(\"write string\", s);\n return s;\n }", "protected void log(String s ) {\r\n\tmessageSB.append( s ).append(\"\\r\\n\");\r\n }", "public void write(String text) throws IOException {\r\n writer.write(text);\r\n writer.flush();\r\n }", "public void writeText(String text) throws IOException {\n byte[] bytes = text.getBytes(UTF8);\n writeFrame(WebSocketMessage.OPCODE_TEXT, ByteBuffer.wrap(bytes), true, true);\n endWrite();\n }", "public void write(String text) {\n\t\tSystem.out.println(\"[byAnnotations] - Write to file: \" + text);\n\t}", "public static void addTextToLog(String str) {\n\t\tif(!isTestMode)\n\t\tPlatform.runLater(() -> txtMsgArea.appendText(str));\t\n\t}", "private static void writeLog(String log) {\n\t\twriteLog(log, true);\n\t}", "void log(String string);", "void storeLogMessage(String log)\n {\n logImage += log + \"\\n\";\n System.out.println(logImage);\n printFile(\"Log.txt\");\n }", "public void add_to_log(String s){\n }", "public static void append(String text) {\n messageLogger.add(text);\n }", "public void logChat(String text) {\n\t\ttry {\n\n\t\t\tDateFormat df = new SimpleDateFormat(\"'On' MM/dd/yyyy 'at' HH:mm:ss\");\n\t\t\tDate d = new Date();\n\n\t\t\tchatLog.add(df.format(d) + \", \" + c.getDisplayName() + \" said: \" + text + \"\");\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\n\t\t} finally {\n\t\t\twriteChatLog();\n\t\t}\n\t}", "private void logInfo(String msgText) {\n System.out.println (\"[INFO] \" + msgText);\n \n }", "private static void log(String aMsg){\n\t System.out.println(aMsg);\n\t }", "public synchronized void writeLogMessage(String message){\n\t\tTimestamp timeStamp= new Timestamp(System.currentTimeMillis());\n\t\tString key = this.sessionName + \" \" + timeStamp;\n\t\tString value = message; \n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(this.filename, true)));\n\t\t\tout.println(key + \" : \" + value);\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"There was an error writing to the log\");\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void addText(String text) {\n this.historyTextLog.append(text);\n }", "public static void log(String s) {\n m_output += \" | \" + s;\n }", "public void writeMessage(String s) {\n isActive = true;\n start = System.currentTimeMillis();\n message = s;\n\n //attempt at typing effect for text\n final Animation animation = new Transition() {\n {\n setCycleDuration(Duration.millis(duration / 2 * 1000));\n }\n\n @Override\n protected void interpolate(double frac) {\n final int lenght = message.length();\n final int n = Math.round(lenght * (float) frac);\n printMessage = message.substring(0, n);\n }\n };\n animation.play();\n }", "public void write(String str) {\n Log.d(TAG, \"-> \"+str);\n mmOutStream.println(str);\n mmOutStream.flush();\n }", "private void log(String message) {\n System.out.println( message );\n sb.append( message ).append( \"\\n\" );\n }", "private void logMessage(String msg) {\n\n\t\tlog.logMsg(\"(L\" + lexAnalyser.getLineCount() + \")\" + msg + \"\\n\");\n\n\t\t// System.out.println(\"(L\" + lexAnalyser.getLineCount() + \")\" + msg);\n\n\t}", "void log(String line);", "public void log(String entry) throws IOException{\n out.write(entry + System.getProperty(\"line.separator\", \"\\r\\n\"));\n out.flush();\n }", "private void setLogScreen(String text){\n\t\t\t\n\t\tscreenUI.clearScreen();\n\t\tscreenUI.drawText(2, 1, text);\n\t}", "public void saveToLog(String log){\n \n File logfile = new File(System.getProperty(\"user.home\"), \"db_logfile\" + DwenguinoBlocklyArduinoPlugin.startTimestamp + \".txt\");\n try {\n BufferedWriter bWriter = new BufferedWriter(new PrintWriter(logfile));\n bWriter.write(log);\n bWriter.flush();\n bWriter.close();\n \n } catch (IOException ex) {\n Logger.getLogger(DwenguinoBlocklyServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void println(String string) {\n // make sure that the global weka log picks it up\n System.out.println(string); \n logStatusMessage(string);\n }", "public final void toLogFile() {\n\t\tRetroTectorEngine.toLogFile(\"Error message from \" + THESTRINGS[0] + \":\");\n\t\tfor (int i=1; i<THESTRINGS.length; i++) {\n\t\t\tRetroTectorEngine.toLogFile(THESTRINGS[i]);\n\t\t}\n\t}", "public void print( final String pText )\n {\n this.aLog.append( pText );\n this.aLog.setCaretPosition( this.aLog.getDocument().getLength() );\n }", "protected void logMsg(String message) {\n\t\tlogTextArea.appendText(message + \"\\n\");\n\t}", "@Override\n\tpublic void log(String msg) throws IOException {\n\t\t\n\t}", "public void text(String message) {\n text.append(message);\n }", "public static void saveOutputLog(String logText, File file)\n {\n try(BufferedWriter bw = new BufferedWriter(new FileWriter(file)))\n {\n bw.write(logText);\n }\n \n catch(IOException e)\n {\n JOptionPane.showMessageDialog(null, \"[Error] Failed to save output log\");\n }\n }", "public static void write(String message) {\n System.out.println(message);\n }", "private static void append(String text) {\n // Print the same text to STDOUT\n System.out.println(text);\n\n try {\n outputFileBuffer.write(text+\"\\n\");\n outputFileBuffer.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writeToConsole(String text) {\n consoleToWrite += text;\n\n class ConsoleNodeWriteConsole implements Runnable {\n public void run() {\n if (consoleTextArea != null) {\n consoleTextArea.appendText(consoleToWrite);\n\n List<Trigger> triggers = getProgram().getFlowController().getActiveTriggers(getContainedText(), \"New line\");\n for (Trigger trigger : triggers) {\n NodeRunParams nodeRunParams = new NodeRunParams();\n nodeRunParams.setOneTimeVariable(consoleToWrite);\n Program.runHelper(trigger.getParent().getNextNodeToRun(), getProgram().getFlowController().getReferenceID(), trigger.getParent(), false, true, null, nodeRunParams);\n }\n\n consoleToWrite = \"\";\n }\n }\n }\n\n Platform.runLater(new ConsoleNodeWriteConsole());\n }", "public void showMsg(final String msg){\n \tcounter++;\n \tlong currTime = System.currentTimeMillis();\n \tSimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yy HH:mm:ss\");\n\n Platform.runLater(()->logTxtArea.appendText(\"[\" + sdf.format(currTime) + \"] \" + msg + \"\\n\"));\n \n \t\n \tif(counter > 100){\n \t\ttry(FileWriter fw = new FileWriter(\"C:\\\\M.A.T files\\\\Log file.txt\", true);\n\t\t\t\t BufferedWriter bw = new BufferedWriter(fw);\n\t\t\t\t PrintWriter out = new PrintWriter(bw))\n\t\t\t\t{\n \t\t\t\tString textAreaText = logTxtArea.getText().replaceAll(\"\\n\", System.getProperty(\"line.separator\"));\n \t\t\t\tout.println(textAreaText);\n\t\t\t\t logTxtArea.clear();\n\t\t\t\t counter = 0;\n\t\t\t\t logTxtArea.appendText(\"Data was exported to log file.\\n\");\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tlogTxtArea.appendText(\"Failed to export to log file.\\n\");\n\t\t\t\t\tcounter = 0;\n\t\t\t\t e.printStackTrace();\n\t\t\t\t}\n \t}\n }", "private void write(String msg)\r\n {\r\n System.out.println(msg);\r\n if (report_ != null) {\r\n report_.write(msg);\r\n }\r\n }", "public static void log(String toLog)\n {\n System.out.println(\"Log: \" + toLog);\n SmartDashboard.putString(\"Log\", toLog);\n }", "private void logError(String msgText) {\n System.out.println (\"[ERROR] \" + msgText);\n \n }", "public static void log(String file, String data) {\n\t\ttry {\n\t\t\twriteData(file, data);\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"Fatal error while logging Data!\");\n\t\t}\n\t}", "public void write(String text) throws ShellIOException;", "public void log(String msg) {\n\n\t}", "public static void log(String s) {\r\n log.println(s);\r\n }", "public void println( final String pText )\n {\n this.print( pText + \"\\n\" );\n aLog.setCaretPosition(aLog.getDocument().getLength());\n \n }", "synchronized void trace(String msg) {\n articleTextArea.append(msg);\n articleTextArea.append(\"\\n\");\n }", "public void println(String str) {\n\t\t\t\tLogger.log(new LogEvent(LOGID, str));\n\t\t\t}", "private void writeToLogFile(String message)\r\n {\n try\r\n {\r\n logWriter.write(message);\r\n logWriter.newLine();\r\n }\r\n catch (Exception ex)\r\n {\r\n System.out.println(\"Error writing message '\" + message +\r\n \"' to log file : \" + ex.getMessage());\r\n System.exit(1);\r\n }\r\n }", "private void writeOutputLine(String textLine) {\n String outputText = Calendar.getInstance().getTime().toString();\n if (textLine != null) {\n outputText = outputText + \" : \" + textLine;\n }\n try {\n this.bufferedWriter.write(outputText);\n this.bufferedWriter.newLine();\n this.bufferedWriter.flush();\n } catch (IOException e) {\n LOG.error(\"Can not write text line.\", e);\n }\n }", "public void log(String s) {\n\t\tSystem.out.println(s);\n\t}", "public void writeToControllerGameLog(String message) {\n controller.getUIController().writeToLogBox(message);\n }", "public abstract void outWrite(final String msg);", "private void log(String s) {\n RlogEx.i(TAG, s);\n }", "private static void writeDataLog(String string, String result) throws IOException {\n\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(new File(string), true));\n\t\tbw.write(result);\n\t\tbw.newLine();\n\t\tbw.flush();\n\t\tbw.close();\n\t}", "public void writeText(String text) throws IOException {\n markEndAttributes(false);\n write(encode(text));\n }", "public static void log(String str)\r\n\t{\n\t}", "void write(String message) {\n this.message = message;\n }", "private static void writeOutput(String text) {\n try {\n FileWriter outputWriter = new FileWriter(\"output.txt\", true);\n outputWriter.write(text);\n outputWriter.close();\n } catch (Exception e) {\n System.out.println(\"Could not write to file output.txt\");\n }\n }", "public static void log(String message) {\n\t\t\r\n\t\ttry{\r\n\t\t if(!log.exists()){\r\n\t\t System.out.println(\"We had to make a new file.\");\r\n\t\t log.createNewFile();\r\n\t\t }\r\n\r\n\t\t FileWriter fileWriter = new FileWriter(log, !firstWrite);\r\n\r\n\t\t BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\r\n\t\t bufferedWriter.write(message + '\\n');\r\n\t\t bufferedWriter.close();\r\n\t\t} catch(IOException e) {\r\n\t\t System.out.println(\"COULD NOT LOG!!\");\r\n\t\t}\r\n\t\t\r\n\t\tfirstWrite = false;\r\n\t}", "public final void log(String string) {\n context.getBot().log(manifest.name(), string);\n }", "public void log(String data) {\n String lineFeed = this.addLineFeed ? this.lineSeparator : \"\";\n String logEntry = String.format(\"%s: %s%s\", this.prefix, data, lineFeed);\n stream.print(logEntry);\n }", "public abstract WriteResult writeSystemLog(Log log);", "private void log(String message) {\n System.out.println(message);\n }", "public void writeln(String text) throws ShellIOException;", "private void _writeString(String text)\n/* */ throws IOException\n/* */ {\n/* 908 */ int len = text.length();\n/* 909 */ if (len > this._outputEnd) {\n/* 910 */ _writeLongString(text);\n/* 911 */ return;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 916 */ if (this._outputTail + len > this._outputEnd) {\n/* 917 */ _flushBuffer();\n/* */ }\n/* 919 */ text.getChars(0, len, this._outputBuffer, this._outputTail);\n/* */ \n/* 921 */ if (this._characterEscapes != null) {\n/* 922 */ _writeStringCustom(len);\n/* 923 */ } else if (this._maximumNonEscapedChar != 0) {\n/* 924 */ _writeStringASCII(len, this._maximumNonEscapedChar);\n/* */ } else {\n/* 926 */ _writeString2(len);\n/* */ }\n/* */ }", "public void log(String message) {\n\t}", "public static void addTextToLog(String str, TextArea txtAreaMsg) {\n\t\tPlatform.runLater(() -> txtAreaMsg.appendText(str));\n\t}", "public boolean outputText(String incomingText)\n\t{\n\t\ttxtArea.append(\"[\"+getTimeStamp()+\"] \"+ incomingText +\"\\n\");\n\t\tSystem.out.println(\"[\"+getTimeStamp()+\"] \"+ incomingText +\"\\n\");//##testing##\n\t\treturn true;\n\t}", "public synchronized void write(String data){\n\t\tlog.debug(\"[SC] Writing \"+data, 4);\n\t\twriteBuffer.add(data.getBytes());\n\t}", "public void writeString(String s) throws Exception {\r\n\tout.write(s.getBytes());\r\n}", "private void write(String msg) {\n\t\tIterator<LogListener> listeners = this.eventListeners.iterator();\n\t\twhile (listeners.hasNext()) {\n\t\t\tlisteners.next().writeLog(msg);\n\t\t}\n\t}", "private void log(String message) {\n System.out.println(message);\n }", "@Override\n public void log(String message) {\n }", "private void log(String s) {\n Rlog.i(TAG, s);\n }", "private static final void log(String msg) {\n\t\tlog.println(msg);\n\t}", "public void print(String string){\n // make sure that the global weka log picks it up\n System.out.print(string);\n logStatusMessage(string); \n }", "public void writeLog(String log){\n //Create, if no files.\n if(!this.loggingFile.exists()){\n try {\n this.loggingFile.createNewFile();\n FileWriter fileWriter = new FileWriter(this.loggingFile, true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(log);\n bufferedWriter.newLine();\n bufferedWriter.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n //Open the file.\n else{\n try {\n synchronized (this.loggingFile) {\n FileWriter fileWriter = new FileWriter(this.loggingFile, true);\n BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\n bufferedWriter.write(log);\n bufferedWriter.newLine();\n bufferedWriter.close();\n }\n }catch (IOException e){\n e.printStackTrace();\n }\n }\n\n }", "public void log(final String s) {\n if (this.logWatcher == null) { return; }\n final Date date = Calendar.getInstance().getTime();\n final Timestamp time = new Timestamp(date.getTime());\n this.logWatcher.add(\"[\" + time.toString() + \"] \" + s);\n }" ]
[ "0.7341987", "0.7312364", "0.7183276", "0.7132122", "0.71305084", "0.7056477", "0.6840403", "0.6816011", "0.67731744", "0.67684317", "0.67334", "0.66485304", "0.66485226", "0.6619251", "0.6610486", "0.65324277", "0.64806116", "0.64239824", "0.6368429", "0.6351072", "0.63111347", "0.6303236", "0.6302043", "0.62521863", "0.6209653", "0.6184757", "0.6154048", "0.6145285", "0.61383975", "0.6128435", "0.61166286", "0.61148757", "0.6112387", "0.6088382", "0.60730904", "0.6036471", "0.6036471", "0.6036471", "0.60357624", "0.6017804", "0.6012045", "0.6009093", "0.60052425", "0.59980214", "0.5991966", "0.59857553", "0.59805423", "0.5971128", "0.59583527", "0.5957903", "0.5953838", "0.59375066", "0.59131026", "0.590641", "0.589395", "0.58923364", "0.5881107", "0.5874144", "0.5861351", "0.58541226", "0.5852349", "0.58406264", "0.5828829", "0.58237433", "0.5822241", "0.5819844", "0.5810503", "0.5798904", "0.5794741", "0.5787342", "0.5777443", "0.5774084", "0.5773526", "0.5771392", "0.57611215", "0.5757397", "0.57536244", "0.57516295", "0.5750536", "0.57480925", "0.57480323", "0.57368183", "0.573432", "0.572998", "0.5729543", "0.57219404", "0.5713652", "0.57116526", "0.5708708", "0.57051975", "0.5704099", "0.57006526", "0.57004035", "0.569759", "0.5692864", "0.56850433", "0.56801975", "0.5678048", "0.5658995", "0.5650553" ]
0.6600334
15
Writes a SOAP message to the MESA log
public void writeSoapMessage(SOAPMessage message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public abstract void writeTo(OutputStream out)\n throws SOAPException, IOException;", "public void LoggerService(String Code) {\n\n\t\tSoapObject soapResult = null;\n\t\tSoapSerializationEnvelope envelope = null;\n\t\tHttpTransportSE androidHttpTransport = null;\n\n\t\ttry {\n\n\t\t\tSoapObject request = new SoapObject(\n\t\t\t\t\tcurContext.getString(R.string.WEBSERVICE_NAMESPACE),\n\t\t\t\t\tcurContext.getString(R.string.ICA_LOG_METHOD_NAME));\n\n\t\t\tPropertyInfo inf_email = new PropertyInfo();\n\t\t\tinf_email.setName(\"studentcode\");\n\t\t\tinf_email.setValue(Code);\n\t\t\trequest.addProperty(inf_email);\n\n\t\t\tenvelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);\n\t\t\tenvelope.dotNet = true;\n\t\t\tenvelope.setOutputSoapObject(request);\n\n\t\t\tandroidHttpTransport = new HttpTransportSE(\n\t\t\t\t\tcurContext.getString(R.string.SOAP_URL));\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tandroidHttpTransport.call(\n\t\t\t\t\tcurContext.getString(R.string.ICA_LOG_SOAP_ACTION),\n\t\t\t\t\tenvelope);\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\ttry {\n\t\t\tsoapResult = (SoapObject) envelope.bodyIn;\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tif (soapResult != null) {\n\t\t}\n\n\t}", "private static void printSOAPResponse(SOAPMessage soapResponse) throws Exception {\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n \n ByteArrayOutputStream stream = new ByteArrayOutputStream();\n soapResponse.writeTo(stream);\n String message = new String(stream.toByteArray(), \"utf-8\");\n \n \n Source sourceContent = soapResponse.getSOAPPart().getContent();\n System.out.print(\"\\nResponse SOAP Message = \");\n StreamResult result = new StreamResult(System.out);\n transformer.transform(sourceContent, result);\n \n \n \n }", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeToLog(String sMsg)\r\n {\r\n wsBaseCommandExecuter.writeToLog(sMsg);\r\n }", "private void log(String message) {\n\t\tif (isLoggerOn) {\n\t\t\tSystem.out.println(\"JaxbConverter: \" + message);\n\t\t}\n\t}", "public void writeAxiomElementMessage(OMElement message);", "public void writeResponse(OutputStream out, ServiceTunnelResponse msg) throws Exception {\n boolean compressed = isUseCompression();\r\n StringBuilder buf = new StringBuilder();\r\n buf.append(\"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=\\\"http://schemas.xmlsoap.org/soap/encoding/\\\" xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\">\\n\");\r\n buf.append(\"<SOAP-ENV:Body>\\n\");\r\n if (msg.getException() == null) {\r\n buf.append(\" <response status=\\\"OK\\\"\");\r\n Object x = msg.getData();\r\n if (x != null) {\r\n buf.append(\" type=\\\"\" + x.getClass().getSimpleName() + \"\\\"\");\r\n }\r\n else {\r\n buf.append(\" type=\\\"\\\"\");\r\n }\r\n buf.append(\" compressed=\\\"\" + compressed + \"\\\"\");\r\n buf.append(\"/>\\n\");\r\n }\r\n else {\r\n buf.append(\" <response status=\\\"ERROR\\\">\\n\");\r\n buf.append(\" <exception type=\\\"\" + msg.getException().getClass().getSimpleName() + \"\\\">\");\r\n buf.append(msg.getException().getMessage());\r\n buf.append(\"</exception>\\n\");\r\n buf.append(\" </response>\\n\");\r\n }\r\n buf.append(\" <data>\");\r\n long y = System.nanoTime();\r\n setData(buf, msg, compressed);\r\n y = System.nanoTime() - y;\r\n if (LOG.isDebugEnabled()) LOG.debug(\"message encoding took \" + y + \" nanoseconds\");\r\n buf.append(\"</data>\\n\");\r\n buf.append(\" <info\");\r\n buf.append(\" origin=\\\"\" + m_originAddress + \"\\\"\");\r\n buf.append(\"/>\\n\");\r\n buf.append(\"</SOAP-ENV:Body>\");\r\n buf.append(\"</SOAP-ENV:Envelope>\");\r\n //\r\n if (LOG.isDebugEnabled()) {\r\n out = new DebugOutputStream(out);\r\n }\r\n try {\r\n out.write(buf.toString().getBytes(\"UTF-8\"));\r\n }\r\n finally {\r\n if (LOG.isDebugEnabled()) {\r\n String sentData = ((DebugOutputStream) out).getContent(\"UTF-8\");\r\n int lastWrittenCharacter = ((DebugOutputStream) out).getLastWrittenCharacter();\r\n Throwable lastThrownException = ((DebugOutputStream) out).getLastThrownException();\r\n LOG.debug(\"lastWrittenCharacter=\" + lastWrittenCharacter + \",lastThrownException=\" + lastThrownException + \", sentData: \" + sentData);\r\n }\r\n }\r\n }", "public abstract WriteResult writeSystemLog(Log log);", "private void log(String message) {\r\n\t\tif (AxisDisplaySettingsPanel.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}", "public void save(XmlWriter w) throws Throwable {\n w.add(\"log\", new String[] { \"type\", type().toString(), \"time\",\n new SimpleDateFormat(DateTime.DATE_TIME_FORMAT).format(time()) }, message());\n }", "public String execute(SOAPMessage message) throws FIFException;", "public void writeRequest(OutputStream out, ServiceTunnelRequest msg) throws Exception {\n boolean compressed = isUseCompression();\r\n StringBuilder buf = new StringBuilder();\r\n buf.append(\"<SOAP-ENV:Envelope SOAP-ENV:encodingStyle=\\\"http://schemas.xmlsoap.org/soap/encoding/\\\" xmlns:SOAP-ENV=\\\"http://schemas.xmlsoap.org/soap/envelope/\\\">\\n\");\r\n buf.append(\"<SOAP-ENV:Body>\\n\");\r\n buf.append(\" <request version=\\\"\");\r\n buf.append(msg.getVersion());\r\n buf.append(\"\\\" compressed=\\\"\");\r\n buf.append(compressed);\r\n buf.append(\"\\\" format=\\\"\");\r\n buf.append(msg.getLocale().toString());\r\n buf.append(\"\\\" language=\\\"\");\r\n buf.append(msg.getNlsLocale().toString());\r\n buf.append(\"\\\" service=\\\"\");\r\n buf.append(msg.getServiceInterfaceClassName());\r\n buf.append(\"\\\" operation=\\\"\");\r\n buf.append(msg.getOperation());\r\n buf.append(\"\\\"/>\\n\");\r\n buf.append(\" <data>\");\r\n long y = System.nanoTime();\r\n setData(buf, msg, compressed);\r\n y = System.nanoTime() - y;\r\n if (LOG.isDebugEnabled()) LOG.debug(\"message encoding took \" + y + \" nanoseconds\");\r\n buf.append(\"</data>\\n\");\r\n buf.append(\" <info\");\r\n buf.append(\" origin=\\\"\" + m_originAddress + \"\\\"\");\r\n buf.append(\"/>\\n\");\r\n buf.append(\"</SOAP-ENV:Body>\");\r\n buf.append(\"</SOAP-ENV:Envelope>\");\r\n //\r\n if (LOG.isDebugEnabled()) {\r\n out = new DebugOutputStream(out);\r\n }\r\n try {\r\n out.write(buf.toString().getBytes(\"UTF-8\"));\r\n }\r\n finally {\r\n if (LOG.isDebugEnabled()) {\r\n String sentData = ((DebugOutputStream) out).getContent(\"UTF-8\");\r\n int lastWrittenCharacter = ((DebugOutputStream) out).getLastWrittenCharacter();\r\n Throwable lastThrownException = ((DebugOutputStream) out).getLastThrownException();\r\n LOG.debug(\"lastWrittenCharacter=\" + lastWrittenCharacter + \",lastThrownException=\" + lastThrownException + \", sentData: \" + sentData);\r\n }\r\n }\r\n }", "protected void logging(Message message) throws Fault {\n\t\tif (message.containsKey(LoggingMessage.ID_KEY)) {\n return;\n }\n String id = (String)message.getExchange().get(LoggingMessage.ID_KEY);\n if (id == null) {\n id = LoggingMessage.nextId();\n message.getExchange().put(LoggingMessage.ID_KEY, id);\n }\n message.put(LoggingMessage.ID_KEY, id);\n final LoggingMessage buffer \n = new LoggingMessage(\"Inbound Message\\n--------------------------\", id);\n\n Integer responseCode = (Integer)message.get(Message.RESPONSE_CODE);\n if (responseCode != null) {\n buffer.getResponseCode().append(responseCode);\n }\n\n String encoding = (String)message.get(Message.ENCODING);\n\n if (encoding != null) {\n buffer.getEncoding().append(encoding);\n }\n String httpMethod = (String)message.get(Message.HTTP_REQUEST_METHOD);\n if (httpMethod != null) {\n buffer.getHttpMethod().append(httpMethod);\n }\n String ct = (String)message.get(Message.CONTENT_TYPE);\n if (ct != null) {\n buffer.getContentType().append(ct);\n }\n Object headers = message.get(Message.PROTOCOL_HEADERS);\n\n if (headers != null) {\n buffer.getHeader().append(headers);\n }\n String uri = (String)message.get(Message.REQUEST_URL);\n if (uri != null) {\n buffer.getAddress().append(uri);\n String query = (String)message.get(Message.QUERY_STRING);\n if (query != null) {\n buffer.getAddress().append(\"?\").append(query);\n }\n }\n \n if (!isShowBinaryContent() && isBinaryContent(ct)) {\n buffer.getMessage().append(BINARY_CONTENT_MESSAGE).append('\\n');\n log.handle(RequestLogController.getInstance().getRequestLogLevel(), \n \t\tbuffer.toString());\n return;\n }\n \n InputStream is = message.getContent(InputStream.class);\n if (is != null) {\n CachedOutputStream bos = new CachedOutputStream();\n if (threshold > 0) {\n bos.setThreshold(threshold);\n }\n try {\n // use the appropriate input stream and restore it later\n InputStream bis = is instanceof DelegatingInputStream \n ? ((DelegatingInputStream)is).getInputStream() : is;\n \n IOUtils.copyAndCloseInput(bis, bos);\n bos.flush();\n bis = bos.getInputStream();\n \n // restore the delegating input stream or the input stream\n if (is instanceof DelegatingInputStream) {\n ((DelegatingInputStream)is).setInputStream(bis);\n } else {\n message.setContent(InputStream.class, bis);\n }\n\n if (bos.getTempFile() != null) {\n //large thing on disk...\n buffer.getMessage().append(\"\\nMessage (saved to tmp file):\\n\");\n buffer.getMessage().append(\"Filename: \" + bos.getTempFile().getAbsolutePath() + \"\\n\");\n }\n if (bos.size() > limit) {\n buffer.getMessage().append(\"(message truncated to \" + limit + \" bytes)\\n\");\n }\n writePayload(buffer.getPayload(), bos, encoding, ct); \n \n bos.close();\n } catch (Exception e) {\n throw new Fault(e);\n }\n }\n log.handle(RequestLogController.getInstance().getRequestLogLevel(), \n \t\tbuffer.toString());\n\t}", "@Override\n public void writeTo(MwsWriter w) {\n w.write(\"http://mws.amazonservices.com/Finances/2015-05-01\", \"PayWithAmazonEvent\",this);\n }", "@Override\n public void log(String message) {\n }", "void log(Message message);", "private void write(String msg)\r\n {\r\n System.out.println(msg);\r\n if (report_ != null) {\r\n report_.write(msg);\r\n }\r\n }", "protected final void log(String msg)\r\n {\r\n Debug.println(\"Server: \" + msg);\r\n }", "public void log(String msg) {\n\n\t}", "void writeData(String messageToBeSent) {\n\n try {\n if (clientSocket != null) {\n outputStream = clientSocket.getOutputStream();\n ObjectOutputStream objectOutputStream = new ObjectOutputStream(outputStream);\n objectOutputStream.writeObject(messageToBeSent);\n outputStream.flush();\n }\n\n if (getLog().isDebugEnabled()) {\n getLog().debug(\"Artifact configurations and test cases data sent to the synapse agent successfully\");\n }\n } catch (IOException e) {\n getLog().error(\"Error while sending deployable data to the synapse agent \", e);\n }\n }", "public void trace(String msg) {\n\t\tif (this.logLevel <= BackupLogger.TRACE) {\n\t\t\twrite(\"TRCE \" + msg);\n\t\t\tSystem.out.println(\"TRCE \" + msg);\n\t\t}\n\t}", "public void log (Object msg) {\n getLogEvent().addMessage (msg);\n }", "public void writeLineToLog(String message){\n if(logWriter!=null) {\n logWriter.writeToLog(message);\n }\n else{\n logWriter = new CleanSweepLogWriterImpl();\n logWriter.writeToLog(message);\n }\n }", "public void log(String message) {\n\t}", "private void writeToLogFile(String message)\r\n {\n try\r\n {\r\n logWriter.write(message);\r\n logWriter.newLine();\r\n }\r\n catch (Exception ex)\r\n {\r\n System.out.println(\"Error writing message '\" + message +\r\n \"' to log file : \" + ex.getMessage());\r\n System.exit(1);\r\n }\r\n }", "private static String printSOAPResponse(SOAPMessage soapResponse) throws Exception {\n \tif(soapResponse==null)\n \t\treturn \"\";\n TransformerFactory transformerFactory = TransformerFactory.newInstance();\n Transformer transformer = transformerFactory.newTransformer();\n Source sourceContent = soapResponse.getSOAPPart().getContent();\n System.out.print(\"\\nResponse SOAP Message = \");\n StreamResult result = new StreamResult(System.out);\n transformer.transform(sourceContent, result);\n \n System.out.println();\n StringWriter writer = new StringWriter();\n transformer.transform(sourceContent, new StreamResult(writer));\n String output = writer.toString();\n int ind = output.indexOf(\"<S\");\n System.out.println(\"NOW IS: \"+output.substring(ind));\n return output;\n }", "public static SOAPMessage sendSOAPMessage(final SOAPMessage message, final URL endpoint) {\n ToopKafkaClient.send(EErrorLevel.INFO, () -> \"Sending AS4 SOAP message to \" + endpoint.toExternalForm());\n try {\n final SOAPConnection connection = soapConnectionFactory.createConnection();\n return connection.call(message, endpoint);\n } catch (final SOAPException e) {\n throw new MEException(EToopErrorCode.ME_001, e);\n }\n }", "public static void log(String message) {\n int niveau = JournalLogger.ERROR;\n \n JournalLogger.log(niveau, JournalLogger.FAC_FLOW_SVC,\n niveau,message, null);\n }", "private void writeToLog(String logMessage) throws IOException {\n\t\tLogWriter.write(logMessage);\n\t\tLogWriter.newLine();\n\t}", "private void write(String msg) {\n\t\tIterator<LogListener> listeners = this.eventListeners.iterator();\n\t\twhile (listeners.hasNext()) {\n\t\t\tlisteners.next().writeLog(msg);\n\t\t}\n\t}", "public void writeToControllerGameLog(String message) {\n controller.getUIController().writeToLogBox(message);\n }", "public static String writeBody(Node soapElement) throws TransformerException {\n DOMSource source = new DOMSource(soapElement);\n StringWriter stringResult = new StringWriter();\n TransformerFactory.newInstance().newTransformer().transform(source, new StreamResult(stringResult));\n return stringResult.toString();\n }", "public void trace(String msg) {\n LOGGER_BASE.trace(msg);\n }", "public void writeHL7Message(Message message);", "private void log() {\n\t\t\n//\t\tif (trx_loggin_on){\n\t\t\n\t\tif ( transLogModelThreadLocal.get().isTransLoggingOn() ) {\n\t\t\t\n\t\t\tTransLogModel translog = transLogModelThreadLocal.get();\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.put(entry.getKey().toString(), ((entry.getValue() == null)? \"\":entry.getValue()));\n\t\t\t}\n\t\t\ttransactionLogger.info(\"\"); // don't really need a msg here\n\t\t\t\n\t\t\t// TODO MDC maybe conflic with existing MDC using in the project\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesConText().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\tfor (Entry<Attr, String> entry : translog.getAttributesOnce().entrySet()) {\n\t\t\t\tMDC.remove(entry.getKey().toString());\n\t\t\t}\n\t\t\t\n\t\t\ttranslog.getAttributesOnce().clear();\n\t\t}\n\t\t\n\t}", "private static void writeLog(String log) {\n\t\twriteLog(log, true);\n\t}", "public void logMessage( Object p_msg);", "@Override\n public void writeXml(XmlWriter xmlWriter) {\n try {\n xmlWriter.element(\"debug\")\n .attribute(\"message\", message)\n .pop();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writeToLog(Level level, Object msg) {\n\t\tif(this.loggingFlag)\n\t\t\tthis.logger.log(level, \"MonitoringAgent\" + \": \" + msg);\n\t}", "public synchronized void writeLogMessage(String message){\n\t\tTimestamp timeStamp= new Timestamp(System.currentTimeMillis());\n\t\tString key = this.sessionName + \" \" + timeStamp;\n\t\tString value = message; \n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(this.filename, true)));\n\t\t\tout.println(key + \" : \" + value);\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"There was an error writing to the log\");\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t}", "public abstract void saveChanges() throws SOAPException;", "public interface IMesaLogger {\n\n\t/**\n\t * Writes a text string to the MESA log\n\t * \n\t * @param message The text string to display\n\t */\n\tpublic void writeString(String message);\n\n\t/**\n\t * Writes a SOAP message to the MESA log\n\t * \n\t * @param message The SOAP message to display\n\t */\n\tpublic void writeSoapMessage(SOAPMessage message);\n\n\t/**\n\t * Writes out an Axiom OMElement message to the logger.\n\t * \n\t * @param message the element to display\n\t */\n\tpublic void writeAxiomElementMessage(OMElement message);\n\n\t/**\n\t * Writes an HL7 message to the MESA log\n\t * \n\t * @param message the HL7 message to display\n\t */\n\tpublic void writeHL7Message(Message message);\n}", "boolean log(String msg) {\n String name = \"log_peer[\" + id + \"]\" + \".log\";\n java.util.Date date = new java.util.Date();\n Timestamp ts = new Timestamp(date.getTime());\n msg = \"[\" + ts + \"]: \" + msg;\n try (PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(name, true)))) {\n out.println(msg);\n } catch (IOException e) {\n //exception handling left as an exercise for the reader\n System.out.println(e);\n return false;\n }\n return true;\n }", "private void log(String msg) {\r\n\t\tif(this.out != null) {\r\n\t\t\tthis.out.println(msg);\r\n\t\t\tthis.out.flush();\r\n\t\t}\r\n\t}", "private static void writeLog(Exception e) {\n if (logFile == null) createLogFile();\n LogTools.trace(e);\n LogTools.flush();\n }", "protected void trace(String msg)\r\n\t{\r\n\t\tm_stream.println(msg);\r\n\t}", "private static void write(String message) {\n\t\tFile log = new File(filePath);\t// File for the database log\n\t\tboolean isNew = false;\t\t\t// Stores if the file created is a new or an old one\n\t\t\n\t\ttry {\n\t\t\tif (!log.exists()) {\n\t\t\t\tisNew = log.createNewFile();\n\t\t\t} // End if\n\t\t\tPrintWriter pw = new PrintWriter(new FileWriter(log, true));\n\t\t\t\n\t\t\tif (Boolean.TRUE.equals(isNew)) {\n\t\t\t\tpw.append(\"Database operations log:\");\n\t\t\t} // End if\n\t\t\tpw.append(message);\n\t\t\tpw.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void log(String message) {\n System.out.println(message);\n }", "public void write(String message) {\n\t Log.d(TAG, \"...Данные для отправки: \" + message + \"...\");\n\t byte[] msgBuffer = message.getBytes();\n\t try {\n\t mmOutStream.write(msgBuffer);\n\t } catch (IOException e) {\n\t Log.d(TAG, \"...Ошибка отправки данных: \" + e.getMessage() + \"...\"); \n\t }\n\t }", "@Override\n\tpublic void write(Message arg0) throws JMSException {\n\n\t}", "@Override\n\tpublic void log(String msg) throws IOException {\n\t\t\n\t}", "private void logTx(String message) throws IOException {\n\t\tlog.write(\"TX \" + System.currentTimeMillis() +\n\t\t\t\": \" + message + \"\\n\");\n\t}", "public void doLog() {\n SelfInvokeTestService self = (SelfInvokeTestService)context.getBean(\"selfInvokeTestService\");\n self.selfLog();\n //selfLog();\n }", "private static final void log(String msg) {\n\t\tlog.println(msg);\n\t}", "private static void log(String aMsg){\n\t System.out.println(aMsg);\n\t }", "private void logToFile() {\n }", "void write(String message) {\n this.message = message;\n }", "protected void logParsedMessage()\n {\n if (log.isInfoEnabled())\n {\n StringBuffer buf = new StringBuffer(\"Parsed EASMessage:\");\n buf.append(\"\\n OOB alert = \").append(isOutOfBandAlert());\n buf.append(\"\\n sequence_number = \").append(this.sequence_number);\n buf.append(\"\\n protocol_version = \").append(this.protocol_version);\n buf.append(\"\\n EAS_event_ID = \").append(this.EAS_event_ID);\n buf.append(\"\\n EAS_originator_code = \").append(this.EAS_originator_code).append(\": \").append(\n getOriginatorText());\n buf.append(\"\\n EAS_event_code = \").append(this.EAS_event_code);\n buf.append(\"\\n nature_of_activation_text = \").append(getNatureOfActivationText(new String[] { \"eng\" }));\n buf.append(\"\\n alert_message_time_remaining = \").append(getAlertMessageTimeRemaining()).append(\" seconds\");\n buf.append(\"\\n event_start_time = \").append(this.event_start_time);\n buf.append(\"\\n event_duration = \").append(this.event_duration).append(\" minutes\");\n buf.append(\"\\n alert_priority = \").append(getAlertPriority());\n buf.append(\"\\n details_OOB_source_ID = \").append(this.details_OOB_source_ID);\n buf.append(\"\\n details_major_channel_number = \").append(this.details_major_channel_number);\n buf.append(\"\\n details_minor_channel_number = \").append(this.details_minor_channel_number);\n buf.append(\"\\n audio_OOB_source_ID = \").append(this.audio_OOB_source_ID);\n buf.append(\"\\n alert_text = \").append(getAlertText(new String[] { \"eng\" }));\n buf.append(\"\\n location_code_count = \").append(this.m_locationCodes.size());\n for (int i = 0; i < this.m_locationCodes.size(); ++i)\n {\n buf.append(\"\\n location[\").append(i).append(\"]: \").append(this.m_locationCodes.get(i).toString());\n }\n buf.append(\"\\n exception_count = \").append(this.m_exceptions.size());\n for (int i = 0; i < this.m_exceptions.size(); ++i)\n {\n buf.append(\"\\n exception[\").append(i).append(\"]: \").append(this.m_exceptions.get(i).toString());\n }\n buf.append(\"\\n descriptor count = \").append(this.m_descriptors.size());\n for (int i = 0; i < this.m_descriptors.size(); ++i)\n {\n buf.append(\"\\n descriptor[\").append(i).append(\"]: \").append(this.m_descriptors.get(i).toString());\n }\n buf.append(\"\\n isAudioChannelAvailable = \").append(isAudioChannelAvailable());\n buf.append(\"\\n number of audio sources = \").append(this.m_audioFileSources.size());\n for (int i = 0; i < this.m_audioFileSources.size(); ++i)\n {\n buf.append(\"\\n audio file source[\").append(i).append(\"]: \").append(\n this.m_audioFileSources.get(i).toString());\n }\n buf.append(\"\\n m_detailsChannelLocator = \").append(this.m_detailsChannelLocator);\n buf.append(\"\\n m_eventReceivedTime = \").append(new Date(this.m_eventReceivedTime));\n buf.append(\"\\n m_eventStartTime = \").append(new Date(this.m_eventStartTime));\n buf.append(\"\\n m_eventExpirationTime = \").append(new Date(this.m_eventExpirationTime));\n if (log.isInfoEnabled())\n {\n log.info(buf.toString());\n }\n }\n }", "private void log(String message) {\n System.out.println( message );\n sb.append( message ).append( \"\\n\" );\n }", "private static void print(Object msg){\n if (WAMClient.Debug){\n System.out.println(msg);\n }\n\n }", "public void write(String message) {\n Log.d(TAG, \"...Данные для отправки: \" + message + \"...\");\n byte[] msgBuffer = message.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n Log.d(TAG, \"...Ошибка отправки данных: \" + e.getMessage() + \"...\");\n }\n }", "public void write(String message) {\n System.out.println(\"Sent \" + message + \" to client \" + client + \".\");\n out.println(message);\n }", "public void log(String msg) {\n if(Debug.isEnabled()){ \n filterConfig.getServletContext().log(msg); //Shows in the Tomcat logs \n Debug.println(msg);\n }\n }", "private static void addToLog(String message) {\n\t\ttry {\n\t\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yy HH:mm:ss:SS\");\n\t\t\tDate dateobj = new Date();\n\t\t\tlog.write(df.format(dateobj) + \": \" + message + \"\\n\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error With the Log File\");\n\t\t\tSystem.err.println(\"Exiting...\");\n\t\t\tSystem.exit(1);\n\t\t};\n\t}", "public void serializeLogs();", "private static void writeLog(String s) {\n if (logFile == null) createLogFile();\n LogTools.println(s);\n LogTools.flush();\n }", "private void log(String message) {\n System.out.println(message);\n }", "private void log(String msg) {\r\n\t\tif (logger != null) {\r\n\t\t\tlogger.append(msg);\r\n\t\t\tlogger.println();\r\n\t\t}\r\n\t}", "public void trace(Object message)\n/* */ {\n/* 141 */ this.logger.trace(message);\n/* */ }", "public void log(String message) {\n log(message, MSG_INFO);\n }", "public void logMessage(HistoricalMessage message) {\n if (message.getBody() != null) {\r\n logQueue.add(message);\r\n }\r\n }", "@Override\n public void log()\n {\n }", "void log(HandlerInput input, String message) {\n System.out.printf(\"[%s] [%s] : %s]\\n\",\n input.getRequestEnvelope().getRequest().getRequestId().toString(),\n new Date(),\n message);\n }", "public static void any() {\n\t\tlong date = System.currentTimeMillis();\n\t\tString body = IO.readContentAsString(request.body);\n\t\tif (body == null) {\n\t\t\terror(StatusCode.INTERNAL_ERROR,\n\t\t\t\t\t\"Message is malformed (null body)...\");\n\t\t}\n\n\t\tDocument soapMessage = XML.getDocument(body);\n\t\tif (soapMessage == null) {\n\t\t\terror(StatusCode.INTERNAL_ERROR,\n\t\t\t\t\t\"Message is malformed (not XML)...\");\n\t\t}\n\n\t\t// parse the body and calculate required data...\n\t\tNode n = XPath.selectNode(\"//ReportListBean\", soapMessage);\n\t\tif (n == null) {\n\t\t\terror(StatusCode.INTERNAL_ERROR,\n\t\t\t\t\t\"Message is malformed (not a valid report)...\");\n\t\t}\n\n\t\t// can be optimized...\n\t\tString reportList = XMLHelper.createStringFromDOMNode(n, true);\n\t\tif (reportList == null) {\n\t\t\terror(StatusCode.INTERNAL_ERROR,\n\t\t\t\t\t\"Message is malformed (can not generate reportList)...\");\n\t\t}\n\n\t\tReportListBean reportListBean = null;\n\t\ttry {\n\t\t\treportListBean = JAXBHelper.unmarshall(new ByteArrayInputStream(\n\t\t\t\t\treportList.getBytes()));\n\t\t} catch (MessageExchangeException e) {\n\t\t\terror(StatusCode.INTERNAL_ERROR, e.getMessage());\n\t\t}\n\n\t\tMessage message = new Message();\n\t\tfor (ReportBean report : reportListBean.getReports()) {\n\t\t\tif (\"t1\".equalsIgnoreCase(report.getType())) {\n\t\t\t\tmessage.t1 = report.getDate();\n\t\t\t} else if (\"t2\".equalsIgnoreCase(report.getType())) {\n\t\t\t\tmessage.t2 = report.getDate();\n\t\t\t} else if (\"t3\".equalsIgnoreCase(report.getType())) {\n\t\t\t\tmessage.t3 = report.getDate();\n\t\t\t} else if (\"t4\".equalsIgnoreCase(report.getType())) {\n\t\t\t\tmessage.t4 = report.getDate();\n\t\t\t}\n\n\t\t\t// monitoring api needs to be fixed since all informations are the\n\t\t\t// same for the target\n\t\t\tmessage.endpoint = report.getEndpoint();\n\t\t\tmessage.itf = report.getItf();\n\t\t\tmessage.service = report.getServiceName();\n\t\t\tmessage.operation = report.getOperation();\n\t\t}\n\t\tmessage.date = date;\n\t\tmessage.exception = false;\n\t\tWebSocket.liveStream.publish(message);\n\t\t\n\t\trender(\"Services/MonitoringService_Response.xml\");\n\t}", "private org.apache.axiom.soap.SOAPEnvelope toEnvelope(org.apache.axiom.soap.SOAPFactory factory, net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo param, boolean optimizeContent, javax.xml.namespace.QName methodQName)\n throws org.apache.axis2.AxisFault{\n\n \n try{\n\n org.apache.axiom.soap.SOAPEnvelope emptyEnvelope = factory.getDefaultEnvelope();\n emptyEnvelope.getBody().addChild(param.getOMElement(net.wit.webservice.TerminalServiceXmlServiceStub.GetDirectSrvInfo.MY_QNAME,factory));\n return emptyEnvelope;\n } catch(org.apache.axis2.databinding.ADBException e){\n throw org.apache.axis2.AxisFault.makeFault(e);\n }\n \n\n }", "@Override\n\tpublic ReturnCode loggerWrite(byte[] buffer, int len) {\n\t\t\n\t\tSystem.out.println(new String(buffer));\n\t\treturn InstaMsg.ReturnCode.SUCCESS;\n\t}", "private void log(String msg) {\n\t\tSystem.out.println(new Date() + \": \" + msg);\n\t}", "public void logs(Object message) {\n System.out.println(message.toString());\n }", "protected void sinkImpl(String msg) {\n opensimCommonJNI.LogSink_sinkImpl(swigCPtr, this, msg);\n }", "protected abstract void onPrintBorderedMessage(int logLevel, String tag, String msg);", "@Override\n\tpublic void writeToDeviceReport(XmlSerializer serializer) throws IOException {\n\t\tthis.serializer = serializer;\n\t\t\n serializer.startTag(DeviceReportWriter.XMLNS, \"log_subreport\");\n \n try {\n\t\t\tif(storage != null) {\n\t\t\t\tif(Logger._() != null) {\n\t\t\t\t\tLogger._().serializeLogs(this);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tserializeLog(entry);\n\t\t\t}\n } finally {\n \tserializer.endTag(DeviceReportWriter.XMLNS, \"log_subreport\");\n }\n\t}", "public static void log(String message) {\n SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\n Timestamp timestamp = new Timestamp(System.currentTimeMillis());\n String log = sdf.format(timestamp) + \" - \" + message;\n System.out.println(log);\n try {\n writeLogToFile(log, LOG_FILE_PATH);\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n }", "public static void log(String message) {\n\t\t\r\n\t\ttry{\r\n\t\t if(!log.exists()){\r\n\t\t System.out.println(\"We had to make a new file.\");\r\n\t\t log.createNewFile();\r\n\t\t }\r\n\r\n\t\t FileWriter fileWriter = new FileWriter(log, !firstWrite);\r\n\r\n\t\t BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\r\n\t\t bufferedWriter.write(message + '\\n');\r\n\t\t bufferedWriter.close();\r\n\t\t} catch(IOException e) {\r\n\t\t System.out.println(\"COULD NOT LOG!!\");\r\n\t\t}\r\n\t\t\r\n\t\tfirstWrite = false;\r\n\t}", "public void logData(){\n }", "private void debugLog(String msg)\n {\n m_log.log(\"[\" + m_appName + \"] :\" + msg);\n }", "public void log(String message) {\n\t\tlogger.info(message);\n\t}", "static public void trace(String msg) {\n if (isVerbose()) {\n System.out.println(msg);\n }\n }", "@Override\n\tpublic void trace(Object message) {\n\n\t}", "void log(String message) {\n System.out.println(buildMessage(message));\n }", "public void sendMessage(String message) {\n\t\tSystem.out.println(\"DEBUG : response sent by server = \" + message);\n\t\tprinter.println(message);\n\t}", "private void logMessage(String msg) {\n\n\t\tlog.logMsg(\"(L\" + lexAnalyser.getLineCount() + \")\" + msg + \"\\n\");\n\n\t\t// System.out.println(\"(L\" + lexAnalyser.getLineCount() + \")\" + msg);\n\n\t}", "@Override\r\n\tprotected void logMessage(String message) {\n\t\t\r\n\t}", "void logTiMessages(final String msg);", "public void writeEvent(LogEvent logEvent) throws Exception {\n appendObjectToLog(logEvent);\n }", "@Override\n public void log(String tag, com.microsoft.identity.client.Logger.LogLevel logLevel, String message, boolean containsPII) {\n }", "public void sendMessageToLog(String message) {\n LogMessage msg = new LogMessage();\n msg.setMessage(message);\n msg.setUser(loginBean.getLoggedInUser());\n msg.setDate(new Date());\n context.createProducer().send(myQueue, msg);\n }", "@WebService(name = \"iTmsLogisticsOrderWsService\", targetNamespace = \"http://www.aurora-framework.org/schema\")\n@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)\n@XmlSeeAlso({\n ObjectFactory.class\n})\npublic interface ITmsLogisticsOrderWsService {\n\n\n /**\n *\n * @param tmsLogisticsOrderRequestPart\n * @return\n * returns org.aurora_framework.schema.SoapResponse\n */\n @WebMethod(action = \"execute\")\n @WebResult(name = \"soapResponse\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderResponse_part\")\n public SoapResponse execute(\n @WebParam(name = \"logisticsOrderRequest\", targetNamespace = \"http://www.aurora-framework.org/schema\", partName = \"tmsLogisticsOrderRequest_part\")\n LogisticsOrderRequest tmsLogisticsOrderRequestPart);\n\n}" ]
[ "0.59146786", "0.5834862", "0.5721179", "0.5719315", "0.5719315", "0.5719315", "0.5679898", "0.5420353", "0.54099184", "0.53489745", "0.53140795", "0.52031296", "0.519511", "0.5180897", "0.51772976", "0.5171082", "0.51165044", "0.50823396", "0.5051093", "0.50507957", "0.5048513", "0.5042748", "0.5036955", "0.5035709", "0.50329083", "0.50221175", "0.5020042", "0.5018345", "0.50175893", "0.5017472", "0.5001851", "0.49974722", "0.49753883", "0.49519673", "0.49514797", "0.49460384", "0.49423587", "0.49270034", "0.49235106", "0.49226415", "0.48978516", "0.4890014", "0.4869725", "0.48536575", "0.48517394", "0.48499078", "0.48442706", "0.4843052", "0.48338512", "0.483304", "0.4830678", "0.4822923", "0.48216143", "0.48199904", "0.48160684", "0.48081353", "0.47964597", "0.47930983", "0.4782487", "0.47802588", "0.47784385", "0.4773381", "0.4765817", "0.47567448", "0.47523433", "0.47500682", "0.4744425", "0.4742365", "0.47399178", "0.47355267", "0.47123286", "0.4698237", "0.4672444", "0.4664127", "0.46572876", "0.46563637", "0.4644434", "0.46431166", "0.46401143", "0.46394622", "0.46270102", "0.46245134", "0.46235526", "0.46220413", "0.46143144", "0.46128458", "0.46066052", "0.46043748", "0.4602372", "0.46001542", "0.45983356", "0.45954245", "0.4589398", "0.458642", "0.4585465", "0.45846763", "0.45843565", "0.4583991", "0.45828617", "0.457197" ]
0.757193
0
Writes out an Axiom OMElement message to the logger.
public void writeAxiomElementMessage(OMElement message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "private void write(String msg)\r\n {\r\n System.out.println(msg);\r\n if (report_ != null) {\r\n report_.write(msg);\r\n }\r\n }", "private void log(String msg) {\r\n\t\tif(this.out != null) {\r\n\t\t\tthis.out.println(msg);\r\n\t\t\tthis.out.flush();\r\n\t\t}\r\n\t}", "public interface IMesaLogger {\n\n\t/**\n\t * Writes a text string to the MESA log\n\t * \n\t * @param message The text string to display\n\t */\n\tpublic void writeString(String message);\n\n\t/**\n\t * Writes a SOAP message to the MESA log\n\t * \n\t * @param message The SOAP message to display\n\t */\n\tpublic void writeSoapMessage(SOAPMessage message);\n\n\t/**\n\t * Writes out an Axiom OMElement message to the logger.\n\t * \n\t * @param message the element to display\n\t */\n\tpublic void writeAxiomElementMessage(OMElement message);\n\n\t/**\n\t * Writes an HL7 message to the MESA log\n\t * \n\t * @param message the HL7 message to display\n\t */\n\tpublic void writeHL7Message(Message message);\n}", "protected void log(Object msg) {\n\t\n\t\tSystem.out.println(\"MusicDataAccessor: \" + msg);\n\t}", "void outputMsg(OscilloscopeMsg omsg) {\n System.out.print(\"id = \" + omsg.get_id());\n // System.out.print(\"count = \" + omsg.get_count());\n System.out.print(\"temperature = \" + omsg.get_temperature());\n System.out.print(\"humidity = \" + omsg.get_humidity());\n System.out.print(\"light = \" + omsg.get_light());\n // System.out.print(\"current_time = \" + omsg.get_current_time());\n // System.out.print(\"token = \" + omsg.get_token());\n // System.out.print(\"readings = \" + omsg.get_readings());\n System.out.print(\"\\n\");\n }", "private void write(String msg) {\n\t\tIterator<LogListener> listeners = this.eventListeners.iterator();\n\t\twhile (listeners.hasNext()) {\n\t\t\tlisteners.next().writeLog(msg);\n\t\t}\n\t}", "public void log (Object msg) {\n getLogEvent().addMessage (msg);\n }", "public void writeToLog(Level level, Object msg) {\n\t\tif(this.loggingFlag)\n\t\t\tthis.logger.log(level, \"MonitoringAgent\" + \": \" + msg);\n\t}", "void out( Object msg );", "private void log(String msg) {\r\n\t\tif (logger != null) {\r\n\t\t\tlogger.append(msg);\r\n\t\t\tlogger.println();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void log(String msg) throws IOException {\n\t\t\n\t}", "private void log(String message) {\r\n\t\tif (AxisDisplaySettingsPanel.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}", "private static void print(Object msg){\n if (WAMClient.Debug){\n System.out.println(msg);\n }\n\n }", "@Override\n\tpublic void write(Message arg0) throws JMSException {\n\n\t}", "void serialize(GeneratedMessage msg, OutputStream out) throws IOException;", "public void writeOutput(String msg){\n msg = \"Message:\" + username + \" : \" + msg;//koristi se zbog parsiranja u metodi readInput\n out.println(msg);\n }", "public abstract void outWrite(final String msg);", "@Override\n public void writeXml(XmlWriter xmlWriter) {\n try {\n xmlWriter.element(\"debug\")\n .attribute(\"message\", message)\n .pop();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void logMessage( Object p_msg);", "final void out (String msg) { if (m_debugMode) { Logger.println (msg); } }", "private void writeToLog(String logMessage) throws IOException {\n\t\tLogWriter.write(logMessage);\n\t\tLogWriter.newLine();\n\t}", "public void logs(Object message) {\n System.out.println(message.toString());\n }", "public void writeSoapMessage(SOAPMessage message);", "private void writeMessage(Message message) throws IOException {\n Message.Command temp = message.getCommand();\n if (temp != Message.Command.GET_RESERVED && temp != Message.Command.GET_AVAILABLE) {\n connectionLoggerService.add(\"Bank : \" + message.toString());\n }\n objectOutputStream.reset();\n objectOutputStream.writeObject(message);\n }", "@Override\n\tpublic ReturnCode loggerWrite(byte[] buffer, int len) {\n\t\t\n\t\tSystem.out.println(new String(buffer));\n\t\treturn InstaMsg.ReturnCode.SUCCESS;\n\t}", "public void writeToLog(String sMsg)\r\n {\r\n wsBaseCommandExecuter.writeToLog(sMsg);\r\n }", "public void logMsg(String msg) {\r\n if (this.logger != null) {\r\n logger.info(msg);\r\n }\r\n }", "void write(String message) {\n this.message = message;\n }", "public void log(String msg) {\n\n\t}", "@Override\r\n public void writeMessage(Message msg) throws IOException {\n final StringBuilder buf = new StringBuilder();\r\n msg.accept(new DefaultVisitor() {\r\n\r\n @Override\r\n public void visitNonlocalizableTextFragment(VisitorContext ctx,\r\n NonlocalizableTextFragment fragment) {\r\n buf.append(fragment.getText());\r\n }\r\n\r\n @Override\r\n public void visitPlaceholder(VisitorContext ctx, Placeholder placeholder) {\r\n buf.append(placeholder.getTextRepresentation());\r\n }\r\n\r\n @Override\r\n public void visitTextFragment(VisitorContext ctx, TextFragment fragment) {\r\n buf.append(fragment.getText());\r\n }\r\n });\r\n out.write(buf.toString().getBytes(UTF8));\r\n }", "private void log(String message) {\n\t\tif (isLoggerOn) {\n\t\t\tSystem.out.println(\"JaxbConverter: \" + message);\n\t\t}\n\t}", "private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}", "void log(Message message);", "public void info(String msg) {\n LOGGER_BASE.info(msg);\n }", "private static void log(String aMsg){\n\t System.out.println(aMsg);\n\t }", "public void writeToControllerGameLog(String message) {\n controller.getUIController().writeToLogBox(message);\n }", "public static void write(String message) {\n System.out.println(message);\n }", "private static void log(String msg) {\n System.out.println(msg);\n }", "public abstract WriteResult writeSystemLog(Log log);", "public void logInfo( String msg ) {\r\n\t\tlogger.log( Level.INFO, logPrefix + \" \" + msg );\r\n\t}", "public void writeMsg(MamaMsg msg, MamaDictionary dictionary, MamaSubscription subscription);", "@SuppressWarnings(\"unused\")\n protected void info(String msg) {\n if (this.getContainer() != null && this.getContainer().getLogger().isInfoEnabled()) {\n this.getContainer().getLogger().info(msg);\n }\n }", "public void write(String message) {\n System.out.println(\"Sent \" + message + \" to client \" + client + \".\");\n out.println(message);\n }", "private ACLMessage respondToLogMessage(ACLMessage request, Action a) {\n\t\t\n\t\tLogMessage logMessage = (LogMessage) a.getAction();\t\t\n\t\tString message = logMessage.getMessage();\n\t\tgetLogger().log(Level.INFO, message);\n\t\t\n\t\treturn null;\n\t}", "public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }", "private static final void log(String msg) {\n\t\tlog.println(msg);\n\t}", "private void sendMessage(ChatMessage msg) {\n try {\n sOutput.writeObject(msg);\n } catch (IOException e) {\n e.printStackTrace();\n }\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 }", "private void log(String message) {\n System.out.println(message);\n }", "private void log(String msg) {\n\t\tSystem.out.println(new Date() + \": \" + msg);\n\t}", "public static void info(String msg) {\n\t\tlog.info(\"[iCart] \" + msg);\n\t}", "private void logMessage(String msg) {\n\n\t\tlog.logMsg(\"(L\" + lexAnalyser.getLineCount() + \")\" + msg + \"\\n\");\n\n\t\t// System.out.println(\"(L\" + lexAnalyser.getLineCount() + \")\" + msg);\n\n\t}", "@Test\n\tpublic void logObjectMessage() {\n\t\tlogger.log(org.jboss.logging.Logger.Level.DEBUG, 42);\n\n\t\tif (debugEnabled) {\n\t\t\tverify(provider).log(2, null, Level.DEBUG, null, null, 42, (Object[]) null);\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\n\t\tlogger.log(org.jboss.logging.Logger.Level.WARN, 42);\n\n\t\tif (warnEnabled) {\n\t\t\tverify(provider).log(2, null, Level.WARN, null, null, 42, (Object[]) null);\n\t\t} else {\n\t\t\tverify(provider, never()).log(anyInt(), anyString(), any(), any(), any(), any(), any());\n\t\t}\n\t}", "@Test\n public void shouldLogMessage() {\n ILogger logger = new SysoutLogger();\n logger.log(\"hello\");\n assertThat(outContent.toString(), is(\"hello\" + System.getProperty(\"line.separator\")));\n }", "public synchronized void sendMessage(OutputStream out, Message msg) throws IOException {\n if (msg.getPayload() == null) {\n //System.out.println(sdf.format(Calendar.getInstance().getTime()) + \" The payload is null\");\n msg.setLength(1);\n } else {\n msg.setLength(msg.getPayload().length + 1);\n }\n out.write(intToByteArray(msg.getLength()));\n //System.out.println(sdf.format(Calendar.getInstance().getTime()) + \" in sendMessage: length: \" + msg.getLength() + \" & Message Type \" + msg.getType());\n out.write(msg.getType());\n\n\n if (msg.getPayload() != null) {\n out.write(msg.getPayload());\n }\n out.flush();\n }", "@Override\n public void log(String message) {\n }", "public synchronized void log(String msg) {\n\t\tSystem.err.println(msg);\n\t}", "void sendMessage(String message) {\n writer.println(message);\n }", "void log(HandlerInput input, String message) {\n System.out.printf(\"[%s] [%s] : %s]\\n\",\n input.getRequestEnvelope().getRequest().getRequestId().toString(),\n new Date(),\n message);\n }", "public void setupLogging() {\n\t\ttry {\n\t\t\t_logger = Logger.getLogger(QoSModel.class);\n\t\t\tSimpleLayout layout = new SimpleLayout();\n\t\t\t_appender = new FileAppender(layout,_logFileName+\".txt\",false);\n\t\t\t_logger.addAppender(_appender);\n\t\t\t_logger.setLevel(Level.ALL);\n\t\t\tSystem.setOut(createLoggingProxy(System.out));\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\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 abstract OMElement serialize();", "final void out (String msg1, String msg2) { if (m_debugMode) { Logger.print (msg1); Logger.println (msg2); } }", "@Override\n\tpublic void info(Message msg) {\n\n\t}", "public void logthis(String msg) {\n logger.append(msg + \"\\n\");\n Log.d(TAG, msg);\n }", "public void debugWriteData(INode node) {\n\t\t\tif(isLog4jEnabled){\n\t\t\t\n stringBuffer.append(TEXT_21);\n stringBuffer.append(label);\n stringBuffer.append(TEXT_22);\n stringBuffer.append(cid );\n stringBuffer.append(TEXT_23);\n \n\t\t\t}\n\t\t}", "public void sendLoggerMessage(String msg) {\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 loggerMessage = Message.makeLoggerMessage(getUserName(), msg);\n\t\tsocketConnection.print(loggerMessage);\n\t}", "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}", "protected void log(String msg) {\n\t\tif(isLogging) {\n\t\t\tSystem.out.println(\"[TRACKER \" + id() + \"] \" + msg);\n\t\t}\n\t}", "@Override\n\tpublic void log(Level level, Marker marker, Message msg) {\n\n\t}", "private static void log( java.io.PrintStream out, String message )\r\n { // Log message if requested\r\n if (out != null)\r\n {\r\n out.println(message);\r\n }\r\n }", "private void log(String message) {\n System.out.println(message);\n }", "@Override\n public void log() {\n switch (this.level) {\n case trace: if (!this.logger.isTraceEnabled()) return;\n break;\n case debug: if (!this.logger.isDebugEnabled()) return;\n break;\n case info: if (!this.logger.isInfoEnabled()) return;\n break;\n case warn: if (!this.logger.isWarnEnabled()) return;\n break;\n case error: if (!this.logger.isErrorEnabled()) return;\n break;\n }\n\n if (this.logger.getClass().equals(ch.qos.logback.classic.Logger.class)) {\n if (!((ch.qos.logback.classic.Logger)this.logger).isAdditive()) {\n return;\n }\n }\n\n this.mdcWriters.forEach(MDCWriter::write);\n\n switch (this.level) {\n case trace:\n this.logger.trace(this.message, this.args.toJavaArray());\n break;\n case debug:\n this.logger.debug(this.message, this.args.toJavaArray());\n break;\n case info:\n this.logger.info(this.message, this.args.toJavaArray());\n break;\n case warn:\n this.logger.warn(this.message, this.args.toJavaArray());\n break;\n case error:\n this.logger.error(this.message, this.args.toJavaArray());\n break;\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}", "protected final void log(String msg)\r\n {\r\n Debug.println(\"Server: \" + msg);\r\n }", "public void info(String msg) {\n\t\tif (this.logLevel <= BackupLogger.INFO) {\n\t\t\twrite(\"INFO \" + msg);\n\t\t\tSystem.out.println(\"INFO \" + msg);\n\t\t}\n\t}", "private void print(String msg)\n {\n m_log.log(msg);\n m_vbox.write(\" \" + msg);\n }", "public void write(Item item) throws XPathException {\n ExpressionLocation loc = new ExpressionLocation();\n if (locationId != -1) {\n LocationProvider provider = getPipelineConfiguration().getLocationProvider();\n loc.setSystemId(provider.getSystemId(locationId));\n loc.setLineNumber(provider.getLineNumber(locationId));\n }\n listener.message(new XdmNode((NodeInfo)item), terminate, loc);\n }", "public static void writeMessage(String message) {\n writeMessage(Level.INFO, message);\n }", "public void log(HttpServletRequest request, HttpServletResponse response) {\n\t\tObjectNode ecs = getLoggableMessage(request, response);\n\t\tlog.info(new ObjectMessage(ecs));\n\t}", "public interface MessageOutput {\n\n /**\n * Log the debug message.\n */\n void println(String message);\n}", "private void printMsg(String msg) {\n Log.i(\"memorycat_log_tag\",msg);\n }", "void messageWriter(MessageWriter messageWriter);", "public void write(Order_Item _o) {\n\t\tthis.write(_o.get_id() + \" \" + this.format.format(_o.get_delivery_time_stamp()).toString());\n\t}", "public abstract void writeTo(OutputStream out)\n throws SOAPException, IOException;", "private void log(String message) {\r\n\t\tif (ChartFrameSelectParametersMenuActionListener.printLog && Main.isLoggingEnabled()) {\r\n\t\t\tSystem.out.println(this.getClass().getName() + \".\" + message);\r\n\t\t}\r\n\t}", "protected void sinkImpl(String msg) {\n opensimCommonJNI.LogSink_sinkImpl(swigCPtr, this, msg);\n }", "String formatMessage(LogMessage ioM);", "private void log(String message) {\n System.out.println( message );\n sb.append( message ).append( \"\\n\" );\n }", "@Override\n public void log()\n {\n }", "@Override\n\tpublic void log(Level level, Marker marker, Object message) {\n\n\t}", "public void info(Object message)\n/* */ {\n/* 145 */ if (message != null) {\n/* 146 */ getLogger().info(String.valueOf(message));\n/* */ }\n/* */ }", "public void write_to_NN(Msg m) throws IOException, ClassNotFoundException {\n\toos.writeObject(m);\n\toos.flush();\n }", "java.lang.String getLogMessage();", "private void write(String msg) throws IOException {\n if (connectedSwitch) {\n outStream.writeBytes(msg + \";\");\n outStream.flush();\n } else {\n Log.e(TAG, \"Socket disconnected\");\n }\n }", "ExtendedCommonLogger() {\n this.msgbuf = new byte[128];\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.6051882", "0.6051882", "0.6051882", "0.59328556", "0.5875262", "0.5874003", "0.5849145", "0.5797664", "0.5738066", "0.5729208", "0.5720983", "0.56980395", "0.5658284", "0.5653406", "0.56495166", "0.56456065", "0.563499", "0.554461", "0.5538534", "0.55298007", "0.5511963", "0.55082536", "0.5508081", "0.54968816", "0.54902613", "0.54818606", "0.54778636", "0.5446576", "0.54171336", "0.5395767", "0.5383579", "0.53685504", "0.5357594", "0.5348461", "0.53308254", "0.532192", "0.53112197", "0.5273796", "0.5272088", "0.52573234", "0.5215035", "0.5199673", "0.51981175", "0.5197892", "0.51952136", "0.51864225", "0.51818895", "0.51730245", "0.5159213", "0.5135834", "0.51356435", "0.513134", "0.51297206", "0.512329", "0.511382", "0.51127785", "0.51107895", "0.51075274", "0.51069725", "0.50983626", "0.5078514", "0.5077241", "0.5077192", "0.50716656", "0.50654", "0.5057832", "0.5057459", "0.5048749", "0.5047777", "0.50476605", "0.503241", "0.5025861", "0.50257033", "0.5013523", "0.50129694", "0.49976417", "0.49966073", "0.49961156", "0.49882716", "0.49879548", "0.4975571", "0.4975165", "0.4952899", "0.494536", "0.4945192", "0.49316326", "0.49312666", "0.49194333", "0.49149606", "0.49126086", "0.49063963", "0.49060753", "0.49054846", "0.49024191", "0.4902115", "0.49005198", "0.4893506", "0.48929447", "0.4892941", "0.4891684" ]
0.7179352
0
Writes an HL7 message to the MESA log
public void writeHL7Message(Message message);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "public void writeLog() {\n\n\t}", "@Override\n\tpublic ReturnCode loggerWrite(byte[] buffer, int len) {\n\t\t\n\t\tSystem.out.println(new String(buffer));\n\t\treturn InstaMsg.ReturnCode.SUCCESS;\n\t}", "private void write(String msg)\r\n {\r\n System.out.println(msg);\r\n if (report_ != null) {\r\n report_.write(msg);\r\n }\r\n }", "private void logMessage(String msg) {\n\n\t\tlog.logMsg(\"(L\" + lexAnalyser.getLineCount() + \")\" + msg + \"\\n\");\n\n\t\t// System.out.println(\"(L\" + lexAnalyser.getLineCount() + \")\" + msg);\n\n\t}", "public void writeMassege() {\n m = ChatClient.message;\n jtaChatHistory.setText(\"You : \" + m);\n //writeMassageServer();\n }", "public final void toLogFile() {\n\t\tRetroTectorEngine.toLogFile(\"Error message from \" + THESTRINGS[0] + \":\");\n\t\tfor (int i=1; i<THESTRINGS.length; i++) {\n\t\t\tRetroTectorEngine.toLogFile(THESTRINGS[i]);\n\t\t}\n\t}", "private void writeToLog(String logMessage) throws IOException {\n\t\tLogWriter.write(logMessage);\n\t\tLogWriter.newLine();\n\t}", "boolean log(String msg) {\n String name = \"log_peer[\" + id + \"]\" + \".log\";\n java.util.Date date = new java.util.Date();\n Timestamp ts = new Timestamp(date.getTime());\n msg = \"[\" + ts + \"]: \" + msg;\n try (PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(name, true)))) {\n out.println(msg);\n } catch (IOException e) {\n //exception handling left as an exercise for the reader\n System.out.println(e);\n return false;\n }\n return true;\n }", "protected void logParsedMessage()\n {\n if (log.isInfoEnabled())\n {\n StringBuffer buf = new StringBuffer(\"Parsed EASMessage:\");\n buf.append(\"\\n OOB alert = \").append(isOutOfBandAlert());\n buf.append(\"\\n sequence_number = \").append(this.sequence_number);\n buf.append(\"\\n protocol_version = \").append(this.protocol_version);\n buf.append(\"\\n EAS_event_ID = \").append(this.EAS_event_ID);\n buf.append(\"\\n EAS_originator_code = \").append(this.EAS_originator_code).append(\": \").append(\n getOriginatorText());\n buf.append(\"\\n EAS_event_code = \").append(this.EAS_event_code);\n buf.append(\"\\n nature_of_activation_text = \").append(getNatureOfActivationText(new String[] { \"eng\" }));\n buf.append(\"\\n alert_message_time_remaining = \").append(getAlertMessageTimeRemaining()).append(\" seconds\");\n buf.append(\"\\n event_start_time = \").append(this.event_start_time);\n buf.append(\"\\n event_duration = \").append(this.event_duration).append(\" minutes\");\n buf.append(\"\\n alert_priority = \").append(getAlertPriority());\n buf.append(\"\\n details_OOB_source_ID = \").append(this.details_OOB_source_ID);\n buf.append(\"\\n details_major_channel_number = \").append(this.details_major_channel_number);\n buf.append(\"\\n details_minor_channel_number = \").append(this.details_minor_channel_number);\n buf.append(\"\\n audio_OOB_source_ID = \").append(this.audio_OOB_source_ID);\n buf.append(\"\\n alert_text = \").append(getAlertText(new String[] { \"eng\" }));\n buf.append(\"\\n location_code_count = \").append(this.m_locationCodes.size());\n for (int i = 0; i < this.m_locationCodes.size(); ++i)\n {\n buf.append(\"\\n location[\").append(i).append(\"]: \").append(this.m_locationCodes.get(i).toString());\n }\n buf.append(\"\\n exception_count = \").append(this.m_exceptions.size());\n for (int i = 0; i < this.m_exceptions.size(); ++i)\n {\n buf.append(\"\\n exception[\").append(i).append(\"]: \").append(this.m_exceptions.get(i).toString());\n }\n buf.append(\"\\n descriptor count = \").append(this.m_descriptors.size());\n for (int i = 0; i < this.m_descriptors.size(); ++i)\n {\n buf.append(\"\\n descriptor[\").append(i).append(\"]: \").append(this.m_descriptors.get(i).toString());\n }\n buf.append(\"\\n isAudioChannelAvailable = \").append(isAudioChannelAvailable());\n buf.append(\"\\n number of audio sources = \").append(this.m_audioFileSources.size());\n for (int i = 0; i < this.m_audioFileSources.size(); ++i)\n {\n buf.append(\"\\n audio file source[\").append(i).append(\"]: \").append(\n this.m_audioFileSources.get(i).toString());\n }\n buf.append(\"\\n m_detailsChannelLocator = \").append(this.m_detailsChannelLocator);\n buf.append(\"\\n m_eventReceivedTime = \").append(new Date(this.m_eventReceivedTime));\n buf.append(\"\\n m_eventStartTime = \").append(new Date(this.m_eventStartTime));\n buf.append(\"\\n m_eventExpirationTime = \").append(new Date(this.m_eventExpirationTime));\n if (log.isInfoEnabled())\n {\n log.info(buf.toString());\n }\n }\n }", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7) {\n\n\t}", "public abstract WriteResult writeSystemLog(Log log);", "void log(Message message);", "void write(LogBuffer lb) throws IOException\n {\n try {\n if (lb.rewind)\n {\n channel.position(0);\n ++rewindCounter;\n lb.rewind = false;\n }\n\n bytesWritten += channel.write(lb.buffer);\n position = channel.position();\n } catch (IOException e) {\n // BUG 303907 - add message to IOException\n IOException ioe = new IOException(\"LogFile.write(): attempting to write \" + \n file.getName() + \" [\" + e.getMessage() + \"]\");\n ioe.setStackTrace(e.getStackTrace());\n throw ioe;\n }\n }", "private void write(String msg) {\n\t\tIterator<LogListener> listeners = this.eventListeners.iterator();\n\t\twhile (listeners.hasNext()) {\n\t\t\tlisteners.next().writeLog(msg);\n\t\t}\n\t}", "public int write(byte[] buffer) {\n router.write(buffer, Constants.MESSAGE_ALL, null);\n return Constants.SUCCESS;\n }", "public void log (Object msg) {\n getLogEvent().addMessage (msg);\n }", "public interface IMesaLogger {\n\n\t/**\n\t * Writes a text string to the MESA log\n\t * \n\t * @param message The text string to display\n\t */\n\tpublic void writeString(String message);\n\n\t/**\n\t * Writes a SOAP message to the MESA log\n\t * \n\t * @param message The SOAP message to display\n\t */\n\tpublic void writeSoapMessage(SOAPMessage message);\n\n\t/**\n\t * Writes out an Axiom OMElement message to the logger.\n\t * \n\t * @param message the element to display\n\t */\n\tpublic void writeAxiomElementMessage(OMElement message);\n\n\t/**\n\t * Writes an HL7 message to the MESA log\n\t * \n\t * @param message the HL7 message to display\n\t */\n\tpublic void writeHL7Message(Message message);\n}", "@Override\n\tpublic void log(String msg) throws IOException {\n\t\t\n\t}", "public void log(String msg) {\n\n\t}", "public void writeToLog(Level level, Object msg) {\n\t\tif(this.loggingFlag)\n\t\t\tthis.logger.log(level, \"MonitoringAgent\" + \": \" + msg);\n\t}", "void write(String message) {\n this.message = message;\n }", "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 }", "public synchronized void writeLogMessage(String message){\n\t\tTimestamp timeStamp= new Timestamp(System.currentTimeMillis());\n\t\tString key = this.sessionName + \" \" + timeStamp;\n\t\tString value = message; \n\t\ttry {\n\t\t\tPrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter(this.filename, true)));\n\t\t\tout.println(key + \" : \" + value);\n\t\t\tout.close();\n\t\t} catch (FileNotFoundException e) {\n\t\t\tSystem.out.println(\"There was an error writing to the log\");\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t}", "public void logMessage( Object p_msg);", "@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0, Object p1, Object p2,\n\t\t\tObject p3, Object p4, Object p5, Object p6, Object p7) {\n\n\t}", "public void writeToLog(String sMsg)\r\n {\r\n wsBaseCommandExecuter.writeToLog(sMsg);\r\n }", "@Override\r\n public void writeMessage(Message msg) throws IOException {\n final StringBuilder buf = new StringBuilder();\r\n msg.accept(new DefaultVisitor() {\r\n\r\n @Override\r\n public void visitNonlocalizableTextFragment(VisitorContext ctx,\r\n NonlocalizableTextFragment fragment) {\r\n buf.append(fragment.getText());\r\n }\r\n\r\n @Override\r\n public void visitPlaceholder(VisitorContext ctx, Placeholder placeholder) {\r\n buf.append(placeholder.getTextRepresentation());\r\n }\r\n\r\n @Override\r\n public void visitTextFragment(VisitorContext ctx, TextFragment fragment) {\r\n buf.append(fragment.getText());\r\n }\r\n });\r\n out.write(buf.toString().getBytes(UTF8));\r\n }", "public abstract void outWrite(final String msg);", "private static void addToLog(String message) {\n\t\ttry {\n\t\t\tDateFormat df = new SimpleDateFormat(\"dd/MM/yy HH:mm:ss:SS\");\n\t\t\tDate dateobj = new Date();\n\t\t\tlog.write(df.format(dateobj) + \": \" + message + \"\\n\");\n\t\t} catch (IOException e) {\n\t\t\tSystem.err.println(\"Error With the Log File\");\n\t\t\tSystem.err.println(\"Exiting...\");\n\t\t\tSystem.exit(1);\n\t\t};\n\t}", "private static void log(String aMsg){\n\t System.out.println(aMsg);\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 void onLogMessage(String message);", "private void log(String msg) {\r\n\t\tif (logger != null) {\r\n\t\t\tlogger.append(msg);\r\n\t\t\tlogger.println();\r\n\t\t}\r\n\t}", "public void writeLog(){\n\t\ttry\n\t\t{\n\t\t\tFileWriter writer = new FileWriter(\"toptrumps.log\");\n\t\t\twriter.write(log);\n\t\t\twriter.close();\n\t\t\tSystem.out.println(\"log saved to toptrumps.log\");\n\t\t\t\n\t\t\tDataBaseCon.gameInfo(winName, countRounds, roundWins);\n\t\t\tDataBaseCon.numGames();\n\t\t\tDataBaseCon.humanWins();\n\t\t\tDataBaseCon.aIWins();\n\t\t\tDataBaseCon.avgDraws();\n\t\t\tDataBaseCon.maxDraws();\n\t\t\t\n\t\t} catch (IOException e)\n\t\t{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void writeMessageInDataFile(String message){\n try {\n String messageToWrite = \"\\n\" + this + message;\n messagesManager.add(messageToWrite); // adds last message to last 15 messages queue\n Files.write(Paths.get(\"messages.txt\"), messageToWrite.getBytes(), StandardOpenOption.APPEND); // writes last message in messages database\n }catch (IOException e) {\n System.err.println(\"*** ERROR ***\\nCouldn't write in data file.\");\n }\n }", "public void log(String entry) throws IOException{\n out.write(entry + System.getProperty(\"line.separator\", \"\\r\\n\"));\n out.flush();\n }", "public boolean reportMsg(byte[] msgBuffer ) throws IOException;", "private static void write(String message) {\n\t\tFile log = new File(filePath);\t// File for the database log\n\t\tboolean isNew = false;\t\t\t// Stores if the file created is a new or an old one\n\t\t\n\t\ttry {\n\t\t\tif (!log.exists()) {\n\t\t\t\tisNew = log.createNewFile();\n\t\t\t} // End if\n\t\t\tPrintWriter pw = new PrintWriter(new FileWriter(log, true));\n\t\t\t\n\t\t\tif (Boolean.TRUE.equals(isNew)) {\n\t\t\t\tpw.append(\"Database operations log:\");\n\t\t\t} // End if\n\t\t\tpw.append(message);\n\t\t\tpw.close();\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void log(String msg) {\r\n\t\tif(this.out != null) {\r\n\t\t\tthis.out.println(msg);\r\n\t\t\tthis.out.flush();\r\n\t\t}\r\n\t}", "@Override\n public void log(String message) {\n }", "public void write(String message){\n this.write(message, false);\n }", "public void LogHardAta() { // (simple turn-on to log NotFirm diagnostics)\r\n int info;\r\n if (GotFirmVersion == 0){\r\n info = GetFirmwareRev();\r\n }\r\n if (GotFirmVersion > 18 * 0x10000) { // >: HardAta is installed..\r\n ShowLogging = true;\r\n Send3bytes(Arduino.REPORT_INFO, 8, 7); // = 0xFA (250)\r\n if (SpeakEasy){\r\n System.out.println(\" (F%%F/LogHardAta)\");\r\n }\r\n } else{\r\n System.out.println(\" (F%%F/Can'tLog,NoHard)\");\r\n }\r\n }", "public void writeLog(Exception e, String... data){\r\n // Print to console for us to read\r\n System.out.println(\"Error: \" + e);\r\n System.out.print(\"Log: \");\r\n for(int i = 0; i < data.length; i ++){\r\n System.out.println(data[i]);\r\n }\r\n System.out.println(\"\");\r\n \r\n // Write to file\r\n try{\r\n bw.append(\"Error: \" + e);\r\n bw.append(System.lineSeparator());\r\n bw.append(\"Log: \");\r\n for(int i = 0; i < data.length; i ++){\r\n bw.append(data[i]);\r\n bw.append(System.lineSeparator());\r\n }\r\n bw.append(System.lineSeparator());\r\n bw.close();\r\n }\r\n catch(IOException ioe){\r\n System.out.println(\"Error creating file in DLException.java\\nError: \" + ioe);\r\n }\r\n }", "public void log(String message) {\n logger.log(\"[\" + game.getName() + \"] \" + message);\n }", "public void WriteMessage(byte[] message)\r\n {\r\n try {\r\n out.write(new Integer(message.length).byteValue());\r\n out.write(message);\r\n out.flush();\r\n }catch (Exception e){\r\n System.out.println(e);\r\n }\r\n }", "public void log(String message) {\n\t}", "protected void append(LoggingEvent event) {\n if(sh != null) {\n sh.send(layout.format(event));\n if(layout.ignoresThrowable()) {\n String[] s = event.getThrowableStrRep();\n if (s != null) {\n StringBuilder buf = new StringBuilder();\n for(int i = 0; i < s.length; i++) {\n buf.append(s[i]);\n buf.append(EOL);\n }\n sh.send(buf.toString());\n }\n }\n }\n }", "public void writeToControllerGameLog(String message) {\n controller.getUIController().writeToLogBox(message);\n }", "private void writeToLogFile(String message)\r\n {\n try\r\n {\r\n logWriter.write(message);\r\n logWriter.newLine();\r\n }\r\n catch (Exception ex)\r\n {\r\n System.out.println(\"Error writing message '\" + message +\r\n \"' to log file : \" + ex.getMessage());\r\n System.exit(1);\r\n }\r\n }", "protected final void log(String msg)\r\n {\r\n Debug.println(\"Server: \" + msg);\r\n }", "public static void write(String channel, String msg) {\n\t\ttry {\n\t\t\tDate date = new Date();\n\t\t\tFormat day = new SimpleDateFormat(\"dd-MMM-yyyy\");\n\t\t\tFormat time = new SimpleDateFormat(\"HH:mm:ss\");\n\t\t\t\n\t\t\tBufferedWriter out = new BufferedWriter(new FileWriter(IrcConfig.logPath + channel + \"-\" + day.format(date), true));\n\t\t\tout.write(\"[\" + time.format(date) + \"] \" + msg + \"\\n\");\n\t\t\tout.close();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\tSystem.out.println(\"Something went wrong with writing to a file: \" + e.getMessage());\n\t\t}\n\t}", "abstract protected void logInternal(int level, String message);", "public void writereport() {\n\t\n}", "public void record(SystemHealthProto.SystemHealthMetric message) {\n record(null, false, message, null, null);\n }", "private static final void log(String msg) {\n\t\tlog.println(msg);\n\t}", "private static void writeLog(String log) {\n\t\twriteLog(log, true);\n\t}", "@Override\n\tpublic void log(Level level, String message, Object p0, Object p1, Object p2, Object p3,\n\t\t\tObject p4, Object p5, Object p6, Object p7, Object p8) {\n\n\t}", "protected final void message(String message) {\r\n Harness.log(name, message);\r\n }", "public void logthis(String msg) {\n logger.append(msg + \"\\n\");\n Log.d(TAG, msg);\n }", "private static void print(Object msg){\n if (WAMClient.Debug){\n System.out.println(msg);\n }\n\n }", "public static void log(String message) {\n\t\t\r\n\t\ttry{\r\n\t\t if(!log.exists()){\r\n\t\t System.out.println(\"We had to make a new file.\");\r\n\t\t log.createNewFile();\r\n\t\t }\r\n\r\n\t\t FileWriter fileWriter = new FileWriter(log, !firstWrite);\r\n\r\n\t\t BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);\r\n\t\t bufferedWriter.write(message + '\\n');\r\n\t\t bufferedWriter.close();\r\n\t\t} catch(IOException e) {\r\n\t\t System.out.println(\"COULD NOT LOG!!\");\r\n\t\t}\r\n\t\t\r\n\t\tfirstWrite = false;\r\n\t}", "public void writeToLogFile(String entry) {\r\n\t\ttry{\r\n\t\t\tStringBuilder out = new StringBuilder(50);\r\n\t\t\tCalendar cal = Calendar.getInstance();\r\n\t\t SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW);\r\n\t\t out.append(sdf.format(cal.getTime()) + \";\" + entry);\r\n\t\t \r\n\t\t this.write(out);\r\n\t\t}catch (Exception e){\r\n\t\t System.err.println(\"Error: \" + e.getMessage());\r\n\t\t}\r\n\t}", "public void writeOutput(String msg){\n msg = \"Message:\" + username + \" : \" + msg;//koristi se zbog parsiranja u metodi readInput\n out.println(msg);\n }", "private void writeChatLog() {\n\t\tif (chatLog.size() < 100) {\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\n\t\t\tBufferedWriter log = new BufferedWriter(new FileWriter(Data.CHAT_LOG, true));\n\n\t\t\ttry {\n\n\t\t\t\tfor (int i = 0; i < chatLog.size(); i++) {\n\t\t\t\t\tlog.write(chatLog.get(i));\n\t\t\t\t\tlog.newLine();\n\t\t\t\t}\n\n\t\t\t} finally {\n\t\t\t\tlog.close();\n\t\t\t\tchatLog.clear();\n\t\t\t}\n\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "protected void sinkImpl(String msg) {\n opensimCommonJNI.LogSink_sinkImpl(swigCPtr, this, msg);\n }", "private void logIt(String msg) {\n\tSystem.out.println(\"PLATINUM-SYNC-LOG: \" + msg);\n}", "abstract void logMessage(String message);", "@Override\n\tpublic void log(Level level, String message, Object p0) {\n\n\t}", "public void writeMsg(MamaMsg msg, MamaDictionary dictionary, MamaSubscription subscription);", "public void saveToLog(String log){\n \n File logfile = new File(System.getProperty(\"user.home\"), \"db_logfile\" + DwenguinoBlocklyArduinoPlugin.startTimestamp + \".txt\");\n try {\n BufferedWriter bWriter = new BufferedWriter(new PrintWriter(logfile));\n bWriter.write(log);\n bWriter.flush();\n bWriter.close();\n \n } catch (IOException ex) {\n Logger.getLogger(DwenguinoBlocklyServer.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public abstract WriteResult writeUserLog(User user, Log log);", "public void mo1607a() {\r\n if (this.f4603a.f4592h != null) {\r\n Message.obtain(this.f4603a.f4598n, 3).sendToTarget();\r\n }\r\n }", "public void write(String message) {\n Log.d(TAG, \"...Data to send: \" + message + \"...\");\n byte[] msgBuffer = message.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n Log.d(TAG, \"...Error data send: \" + e.getMessage() + \"...\");\n }\n }", "public void write(String message) {\n Log.d(TAG, \"...Data to send: \" + message + \"...\");\n byte[] msgBuffer = message.getBytes();\n try {\n mmOutStream.write(msgBuffer);\n } catch (IOException e) {\n Log.d(TAG, \"...Error data send: \" + e.getMessage() + \"...\");\n }\n }", "@Override\n\tpublic void publish(LogRecord record) {\n\tSystem.err.println(formatter.format(record));\n\tLogInfo info = new LogInfo(record.getTime(), \n\t\t\t\t record.getSource()+\":\"+record.getLevel(), \n\t\t\t\t formatter.format(record));\n\ttry {\n\t Telemetry.getInstance().publish(\"LOG\", info);\n\t} catch (Exception e) {\n\t System.err.println(\"Telemetry log error...\");\n\t e.printStackTrace();\n\t}\n }", "void saveLog(LogInfo logText);", "public void writeChatServerMessage(String message) {\n\t\tSystem.out.println(\"WRITING \" + message);\n\t\tif(m_chatSession != null)\n\t\t\tm_chatSession.write(message);\n\t}", "public void writeToExceptionLog(String report);", "@Override\n public void write(DataOutput dataOutput) throws IOException {\n dataOutput.writeUTF(logTimestamp);\n dataOutput.writeUTF(logID);\n dataOutput.writeUTF(userNumber);\n dataOutput.writeUTF(menuName);\n }", "@Override\n\tpublic void log(Level level, Marker marker, String message, Object p0) {\n\n\t}", "public void log(String message)\n {\n try \n {\n BufferedWriter errorLogWriter = new BufferedWriter(new FileWriter(this.errorLog));\n errorLogWriter.write(Logger.dateFormat.format(Calendar.getInstance().getTime()));\n errorLogWriter.write(message);\n errorLogWriter.close();\n }\n catch (IOException ex)\n {\n System.err.println(\"Cannot write into log : \" + ex.getMessage());\n }\n }", "public void logEvent(String message) {\n System.out.println(\"PC Log.listener: \"+message);\n\n }", "public void logMessage(String msg) {\n messageLogs.add(msg);\n }", "protected void log(String s ) {\r\n\tmessageSB.append( s ).append(\"\\r\\n\");\r\n }", "public void logPublicMessage(Message message) {\r\n\r\n\t\ttry(FileWriter fw = new FileWriter(\"public_logfile.txt\", true);\r\n\t\t\t\tBufferedWriter bw = new BufferedWriter(fw);\r\n\t\t\t\tPrintWriter out = new PrintWriter(bw))\r\n\t\t{\r\n\t\t\tout.print(\"<\" + message.getNickName() + \"> \" + message.getMesssage());\r\n\t\t\tSystem.out.println(\"<\" + message.getNickName() + \"> \" + message.getMesssage());\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\r\n\t}", "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/* */ }", "private void writeLog(){\n\t\tStringBuilder str = new StringBuilder();\r\n\t\tstr.append(System.currentTimeMillis() + \", \");\r\n\t\tstr.append(fileInfo.getCreator() + \", \");\r\n\t\tstr.append(fileInfo.getFileName() + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(networkSize + \", \");\r\n\t\tstr.append(fileInfo.getN1() + \", \");\r\n\t\tstr.append(fileInfo.getK1() + \", \");\r\n\t\tstr.append(fileInfo.getN2() + \", \");\r\n\t\tstr.append(fileInfo.getK2() + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT)+ \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.encryStart, logger.encryStop) + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \"\\n\");\r\n\t\t\r\n\t\tString tmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getKeyStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\r\n\t\t\r\n\t\ttmp=\"\t\";\r\n\t\tfor(Integer i : fileInfo.getFileStorage())\r\n\t\t\ttmp += i + \",\";\r\n\t\ttmp += \"\\n\";\r\n\t\tstr.append(tmp);\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.FILE_CREATION, str.toString());\t\t\r\n\t\t\r\n\t\t// Topology Discovery\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"TopologyDisc, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.topStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.topStart, logger.topEnd-Constants.TOPOLOGY_DISCOVERY_TIMEOUT ) + \", \");\r\n\t\tstr.append(\"\\n\");\t\t\t\t\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\r\n\t\t\r\n\t\t// Optimization\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"Optimization, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(logger.optStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.optStart, logger.optStop) + \", \");\r\n\t\tstr.append(\"\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t\t\r\n\t\t\r\n\t\t// File Distribution\r\n\t\tstr.delete(0, str.length()-1);\r\n\t\tstr.append(Node.getInstance().getNodeId() + \", \");\t\t\t\r\n\t\tstr.append(\"FileDistribution, \");\r\n\t\tstr.append(networkSize + \", \" + n1 + \", \" + k1 + \", \" + n2 + \", \" + k2 + \", \");\r\n\t\tstr.append(fileInfo.getFileLength() + \", \");\r\n\t\tstr.append(logger.distStart + \", \");\r\n\t\tstr.append(logger.getDiff(logger.distStart, logger.distStop) + \", \");\r\n\t\tstr.append(\"\\n\\n\");\r\n\t\t//dataLogger.appendSensorData(LogFileName.TIMES, str.toString());\t\t\r\n\t}", "private void log(String message) {\n if (this.listener != null) {\n message = \"CollabNet Tracker: \" + message;\n this.listener.getLogger().println(message);\n }\n }", "public static void writeMessage(String message) {\n writeMessage(Level.INFO, message);\n }", "public void logPM(String to, String message) {\n\t\ttry {\n\n\t\t\tDateFormat df = new SimpleDateFormat(\"'On' MM/dd/yyyy 'at' HH:mm:ss\");\n\t\t\tDate d = new Date();\n\t\t\tBufferedWriter log = new BufferedWriter(new FileWriter(Data.PM_LOG, true));\n\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\t\tlog.write(df.format(d) + \", [From: \" + c.getDisplayName() + \"] [To: \" + to + \"] [Message: \" + message + \"]\");\n\t\t\t\t\t\n\t\t\t} finally {\n\t\t\t\tlog.newLine();\n\t\t\t\tlog.close();\n\t\t\t}\n\n\t\t} catch (IOException ioe) {\n\t\t\tioe.printStackTrace();\n\t\t}\n\t}", "private void log(String message) {\n System.out.println( message );\n sb.append( message ).append( \"\\n\" );\n }", "private void writeEntry(FileHandle fh, long address, LogData entry)\n throws IOException {\n ByteBuf metadataBuffer = Unpooled.buffer();\n ICorfuPayload.serialize(metadataBuffer, entry.getMetadataMap());\n int entrySize = entry.getData().writerIndex() + metadataBuffer.writerIndex() + 24;\n long pos = fh.getFilePointer().getAndAdd(entrySize);\n ByteBuffer o = fh.getMapForRegion((int) pos, entrySize);\n o.putInt(0x4C450000); // Flags\n o.putLong(address); // the log unit address\n o.putInt(entrySize); // Size\n o.putInt(metadataBuffer.writerIndex()); // the metadata size\n o.put(metadataBuffer.nioBuffer());\n o.put(entry.getData().nioBuffer());\n metadataBuffer.release();\n o.putShort(2, (short) 1); // written flag\n o.flip();\n }", "@Test\n\tpublic final void testWriteTraceFullFormat() {\n\t\t// do one that should be pinned on US\n\t\tLog.writeMessage(LogMessageSeverity.VERBOSE, LogWriteMode.QUEUED, 0, null, null,\n\t\t\t\t\"This message should be verbose and ascribed to the LogTests class.\", null);\n\t\tLog.writeMessage(LogMessageSeverity.CRITICAL, LogWriteMode.QUEUED, 1, null, null,\n\t\t\t\t\"This message should be critical and ascribed to whatever is calling our test class.\", null);\n\t\tLog.writeMessage(LogMessageSeverity.ERROR, LogWriteMode.QUEUED, -1, null, null,\n\t\t\t\t\"This message should be error and also ascribed to the LogTests class.\", null);\n\t}", "public void write(ByteBuffer buffer) throws IOException {\n _channel.write(buffer);\n }", "private static void writeLog(Exception e) {\n if (logFile == null) createLogFile();\n LogTools.trace(e);\n LogTools.flush();\n }", "public static void writeFile(String msg){\n\t\ttry { \n File f1 = new File(\"/Users/snehithraj/eclipse-workspace/ThreePhaseCommit/src/ServerDB.txt\");\n if(!f1.exists()) {\n f1.createNewFile();\n } \n FileWriter fileWriter = new FileWriter(f1.getName(),true);\n BufferedWriter bw = new BufferedWriter(fileWriter);\n bw.write(msg);\n bw.close();\n } catch(IOException e){\n e.printStackTrace();\n }\n }", "@Override\n\tpublic void onEnable() {\n\t\tMBEPlugin Mbes = (MBEPlugin) this.getPluginManager().getPlugin(\"MbEssentials\");\n\t\t\n\t\t//Get the LogManager from the plugin\n\t\tLogManager log = Mbes.getLogManager();\n\t\t\n\t\t//Make a logger. The string tells the logmanager where to create the log\n\t\tLogger myLog = new Logger(\"plugins\\\\\"); \n\t\t// You can do this Logger myLog = new Logger(new File(\"plugins\\\\mylog.txt\")); it will overide the default name \n\t\t\n\t\t//Attach logger to the logManager\n\t\tlog.attachLogger(myLog);\n\t\t\t\n\t\t\t//write to the log\n\t\t\tlog.writeLog(\"Im logging this\",myLog,false); //Its false so it can log it using the default formatting\n\t\t\t// You can also do this log.writeLog(\"Im logging this\",myLog.getId(),false);\n\t\t}", "public void writeScrobble(Scrobble scrobble) {\n Track track = scrobble.track();\n ScrobbleStatus status = scrobble.status();\n ScrobbleLogEntry logEntry = new ScrobbleLogEntry();\n logEntry.timestamp = scrobble.timestamp();\n logEntry.artist = track.artist();\n logEntry.track = track.track();\n logEntry.status = scrobble.status().getErrorCode();\n\n if (track.album().isPresent()) {\n logEntry.album = track.album().get();\n }\n if (track.albumArtist().isPresent()) {\n logEntry.albumArtist = track.albumArtist().get();\n }\n if (status.getDbId() > -1) {\n logEntry.id = status.getDbId();\n }\n\n logEntry.save();\n scrobble.status().setDbId(logEntry.id);\n\n eventBus.post(ScroballDBUpdateEvent.create(scrobble));\n }" ]
[ "0.57188016", "0.57188016", "0.57188016", "0.5519719", "0.5463746", "0.54396194", "0.53776807", "0.53401893", "0.53246063", "0.5290816", "0.5286417", "0.5269029", "0.52636206", "0.5235417", "0.52193063", "0.5202988", "0.51813763", "0.5174775", "0.514719", "0.513735", "0.51166695", "0.5114106", "0.510961", "0.51050955", "0.51034033", "0.5100783", "0.504804", "0.50204295", "0.50186664", "0.49872112", "0.49808735", "0.4934439", "0.49235383", "0.49084875", "0.49075636", "0.48968065", "0.48888594", "0.48809975", "0.48774457", "0.48764694", "0.4874076", "0.48702297", "0.48639295", "0.48571113", "0.48362955", "0.4834083", "0.48291948", "0.48276022", "0.48249424", "0.48248306", "0.48182938", "0.48049313", "0.48039526", "0.48030457", "0.48029768", "0.4800863", "0.47947976", "0.47925955", "0.47817454", "0.47782102", "0.47699845", "0.476284", "0.4759937", "0.47559965", "0.4755181", "0.47542208", "0.47514212", "0.47454345", "0.47413573", "0.47323176", "0.47290558", "0.47273892", "0.47237974", "0.4720734", "0.4717254", "0.4717254", "0.47168148", "0.47131503", "0.4711891", "0.4711285", "0.4696829", "0.46934518", "0.46843475", "0.46810207", "0.46795443", "0.46692988", "0.4664141", "0.46585432", "0.46577936", "0.4656235", "0.4655864", "0.46550608", "0.46524498", "0.46522287", "0.46500424", "0.4647297", "0.46465003", "0.46435028", "0.46417776", "0.46415406" ]
0.78193134
0
~ Methods implement FarragoSessionExecutableStmt
public ResultSet execute(FarragoSessionRuntimeContext runtimeContext) { try { runtimeContext.setStatementClassLoader(stmtClassLoader); if (xmiFennelPlan != null) { runtimeContext.loadFennelPlan(xmiFennelPlan); } // NOTE jvs 1-May-2004: This sequence is subtle. We can't open all // Fennel tuple streams yet, since some may take Java streams as // input, and the Java streams are created by stmtMethod.invoke // below (which calls the generated execute stmtMethod to obtain an // iterator). This means that the generated execute must NOT try to // prefetch any data, since the Fennel streams aren't open yet. In // particular, Java iterator implementations must not do prefetch in // the constructor (always wait for hasNext/next). TupleIter iter = (TupleIter) stmtMethod.invoke( null, new Object[] { runtimeContext }); FarragoTupleIterResultSet resultSet = new FarragoTupleIterResultSet( iter, rowClass, rowType, fieldOrigins, runtimeContext, null); // instantiate and initialize all generated FarragoTransforms. for (FarragoTransformDef tdef : transformDefs) { tdef.init(runtimeContext); } if (xmiFennelPlan != null) { // Finally, it's safe to open all streams. runtimeContext.openStreams(); } runtimeContext = null; resultSet.setOpened(); return resultSet; } catch (IllegalAccessException e) { throw Util.newInternal(e); } catch (InvocationTargetException e) { throw Util.newInternal(e); } finally { if (runtimeContext != null) { runtimeContext.closeAllocation(); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void execute() {}", "abstract protected void execute();", "protected void execute() {\n\t\t\n\t}", "abstract void exec();", "protected abstract void execute();", "public void execute() {\n\t\t\n\t}", "public void execute(){\n\t\t\n\t}", "@Override\n public void execute() {}", "@Override\r\n\tpublic void execute() {\n }", "@Override\n\tpublic void execute() {\n\t\t\n\t}", "@Override\n public void Execute() {\n\n }", "R execute();", "public abstract void execute();", "public abstract void execute();", "public abstract void execute();", "protected void execute()\n\t{\n\t}", "protected void execute() {\n\n\t}", "public void execute() {\r\n\t\r\n\t}", "public abstract int execute();", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n\t}", "protected void execute() {\r\n }", "CommandResult execute();", "protected void execute()\n {\n }", "public void execute() {\n\n\t}", "@Override\n public void execute(RuntimeStep exe, RuntimePlan plan) {\n }", "public final PythonParser.exec_stmt_return exec_stmt() throws RecognitionException {\n PythonParser.exec_stmt_return retval = new PythonParser.exec_stmt_return();\n retval.start = input.LT(1);\n\n PythonTree root_0 = null;\n\n Token EXEC123=null;\n Token IN125=null;\n Token COMMA126=null;\n PythonParser.test_return t1 = null;\n\n PythonParser.test_return t2 = null;\n\n PythonParser.expr_return expr124 = null;\n\n\n PythonTree EXEC123_tree=null;\n PythonTree IN125_tree=null;\n PythonTree COMMA126_tree=null;\n\n\n stmt stype = null;\n\n try {\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:5: ( EXEC expr[expr_contextType.Load] ( IN t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Load] )? )? )\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:7: EXEC expr[expr_contextType.Load] ( IN t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Load] )? )?\n {\n root_0 = (PythonTree)adaptor.nil();\n\n EXEC123=(Token)match(input,EXEC,FOLLOW_EXEC_in_exec_stmt3319); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n EXEC123_tree = (PythonTree)adaptor.create(EXEC123);\n adaptor.addChild(root_0, EXEC123_tree);\n }\n pushFollow(FOLLOW_expr_in_exec_stmt3321);\n expr124=expr(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, expr124.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:40: ( IN t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Load] )? )?\n int alt61=2;\n int LA61_0 = input.LA(1);\n\n if ( (LA61_0==IN) ) {\n alt61=1;\n }\n switch (alt61) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:41: IN t1= test[expr_contextType.Load] ( COMMA t2= test[expr_contextType.Load] )?\n {\n IN125=(Token)match(input,IN,FOLLOW_IN_in_exec_stmt3325); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n IN125_tree = (PythonTree)adaptor.create(IN125);\n adaptor.addChild(root_0, IN125_tree);\n }\n pushFollow(FOLLOW_test_in_exec_stmt3329);\n t1=test(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, t1.getTree());\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:75: ( COMMA t2= test[expr_contextType.Load] )?\n int alt60=2;\n int LA60_0 = input.LA(1);\n\n if ( (LA60_0==COMMA) ) {\n alt60=1;\n }\n switch (alt60) {\n case 1 :\n // /run/media/abhi/0cc7e6ad-008e-43cd-b47d-f3ed6f127f92/home/abhi/dacapo-9.12-bach-src (2)/benchmarks/bms/jython/build/grammar/Python.g:862:76: COMMA t2= test[expr_contextType.Load]\n {\n COMMA126=(Token)match(input,COMMA,FOLLOW_COMMA_in_exec_stmt3333); if (state.failed) return retval;\n if ( state.backtracking==0 ) {\n COMMA126_tree = (PythonTree)adaptor.create(COMMA126);\n adaptor.addChild(root_0, COMMA126_tree);\n }\n pushFollow(FOLLOW_test_in_exec_stmt3337);\n t2=test(expr_contextType.Load);\n\n state._fsp--;\n if (state.failed) return retval;\n if ( state.backtracking==0 ) adaptor.addChild(root_0, t2.getTree());\n\n }\n break;\n\n }\n\n\n }\n break;\n\n }\n\n if ( state.backtracking==0 ) {\n\n stype = new Exec(EXEC123, actions.castExpr((expr124!=null?((PythonTree)expr124.tree):null)), actions.castExpr((t1!=null?((PythonTree)t1.tree):null)), actions.castExpr((t2!=null?((PythonTree)t2.tree):null)));\n \n }\n\n }\n\n retval.stop = input.LT(-1);\n\n if ( state.backtracking==0 ) {\n\n retval.tree = (PythonTree)adaptor.rulePostProcessing(root_0);\n adaptor.setTokenBoundaries(retval.tree, retval.start, retval.stop);\n }\n if ( state.backtracking==0 ) {\n\n retval.tree = stype;\n\n }\n }\n\n catch (RecognitionException re) {\n errorHandler.reportError(this, re);\n errorHandler.recover(this, input,re);\n retval.tree = (PythonTree)adaptor.errorNode(input, retval.start, input.LT(-1), re);\n }\n finally {\n }\n return retval;\n }", "@Override\r\n\tprotected void execute() {\r\n\t}", "public void execute();", "public void execute();", "public void execute();", "public void execute();", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\n public void execute() {\n }", "@Override\n\tpublic void execute(ByteBuffer buff) {\n\t\t\n\t}", "@Override\n\tpublic void execute() {\n\t}", "@Override\n\tpublic void execute(TridentTuple arg0, TridentCollector arg1) {\n\n\t}", "public void execute() {\n }", "@Override\r\n\tpublic void execute() {\n\r\n\t}", "public int execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "void execute();", "public void Execute() {\n\n }", "@Override\n protected void execute() {\n \n }", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "protected void execute() {\n \t// literally still do nothing\n }", "AlgNode handleConditionalExecute( AlgNode node, Statement statement, LogicalQueryInformation queryInformation );", "protected void execute() {\n\n\n \n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n }", "@Override\n protected void execute() {\n\n }", "public interface IStmt {\n\n String toStr();\n PrgState execute(PrgState state) throws StmtException;\n\n}", "@Override\n\tpublic Object execute() {\n\n\t\treturn null;\n\t}", "public void execute() {\n // empty\n }", "void execute(VirtualFrame frame);", "public void exec();", "public void execute(){\n\n }", "@Override\r\n\tpublic String execute(String script) {\n\t\treturn script+\"sb\";\r\n\t}", "@Override\n\tprotected void doExecute() throws InstructionExecutionException {\n\t\n\t}", "final public SqlStatement ScriptStatement() throws ParseException {SqlStatement st = null;\n switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) {\n case USE:\n case CREATE:\n case DROP:\n case SET:\n case INSERT:\n case ALTER:\n case LOCK:\n case UNLOCK:\n case START:\n case COMMIT:\n case 117:{\n st = Statement();\n jj_consume_token(117);\n break;\n }\n case 0:{\n jj_consume_token(0);\n break;\n }\n default:\n jj_la1[1] = jj_gen;\n jj_consume_token(-1);\n throw new ParseException();\n }\nreturn st;\n}", "ProgramState execute(ProgramState state) ;", "private void executeQuery() {\n }", "public void execute() {\n execute0();\n }", "boolean execute();", "public boolean execute();", "private void executeImmediate(String stmtText) throws SQLException\n {\n // execute the statement and auto-close it as well\n try (final Statement statement = this.createStatement();)\n {\n statement.execute(stmtText);\n }\n }", "@Override\n\tpublic String execute() {\n\t\treturn null;\n\t}", "@Override\n\tpublic String execute() {\n\t\treturn null;\n\t}", "public abstract void executeVoid(VirtualFrame frame);", "public abstract String initExecute() throws Exception;", "private Stmt stmt(){\n \n switch(lexer.token){\n case IDENT:\n \n if (symbolTable.get(lexer.getStringValue()) instanceof Procedure) \n return procedureCall();\n \n //can´t be a function\n else if (symbolTable.get(lexer.getStringValue()) instanceof Function)\n lexer.error(\"Function was expected \\n\");\n \n //assignstmt\n else \n return assignstmt();\n \n case BEGIN:\n return cmpstmt();\n case IF:\n return ifstmt();\n case WHILE:\n return whilestmt();\n case WRITE:\n return writestmt();\n case WRITELN:\n return writelnstmt();\n case READ:\n return readstmt();\n case RETURN:\n return returnStmt();\n default:\n lexer.error(\"missing statment\\n\");\n }\n \n return null;\n }", "protected abstract Object execute(JdbcChannel con,\n PreparedStatement stmt,\n String flags)\n throws ProcedureException;", "@Override\r\n\tprotected void processExecute() {\n\r\n\t}", "public void prepareExecuteNoSelect() {\n setCallFromStatement();\n // The statement is no longer require so can be released.\n clearStatement();\n\n super.prepareExecuteNoSelect();\n }", "protected abstract void executeHelper();", "public String execute() {\n\r\n\t return \"\";\r\n\t }", "protected abstract void execute() throws Exception;", "void execute() throws TMQLLexerException;", "public boolean execute( ) throws OdaException\n \t{\n \t\tlogger.logp( java.util.logging.Level.FINE,\n \t\t\t\tStatement.class.getName( ),\n \t\t\t\t\"execute\",\n \t\t\t\t\"Statement.execute( )\" );\n \t\tassertNotNull( preStat );\n \t\ttry\n \t\t{\n \t\t\tif ( maxrows >= 0 && !maxRowsUpToDate )\n \t\t\t{\n \t\t\t\tpreStat.setMaxRows( maxrows );\n \t\t\t\tmaxRowsUpToDate = true;\n \t\t\t}\n \t\t\t/* redirect the call to JDBC preparedStatement.execute() */\n \t\t\treturn preStat.execute( );\n \t\t}\n \t\tcatch ( SQLException e )\n \t\t{\n \t\t\tthrow new JDBCException( ResourceConstants.QUERY_EXECUTE_FAIL, e );\n \t\t}\n \t}" ]
[ "0.62572587", "0.61271465", "0.61243075", "0.6096992", "0.60805386", "0.6059745", "0.60558", "0.6036736", "0.60334677", "0.6013294", "0.5999603", "0.59799176", "0.5978044", "0.5978044", "0.5978044", "0.59267855", "0.5897225", "0.58904046", "0.58761406", "0.5850047", "0.5850047", "0.5850047", "0.5850047", "0.5850047", "0.5850047", "0.5850047", "0.5850047", "0.5850047", "0.5850047", "0.5850047", "0.5850047", "0.5844342", "0.5829238", "0.58187115", "0.58184093", "0.58172023", "0.58143", "0.5813547", "0.5805239", "0.5804735", "0.5804735", "0.5804735", "0.5804735", "0.57910186", "0.57910186", "0.57760954", "0.57760954", "0.5740142", "0.57135046", "0.5701361", "0.5700085", "0.5698079", "0.56903976", "0.56872666", "0.56797904", "0.56797904", "0.56797904", "0.56797904", "0.56797904", "0.56797904", "0.56797904", "0.5673552", "0.56616646", "0.5659032", "0.5659032", "0.5659032", "0.56589067", "0.563872", "0.5633393", "0.5632877", "0.5632877", "0.5632877", "0.5627018", "0.5599348", "0.55895084", "0.55813134", "0.55739874", "0.55686164", "0.5567835", "0.55593973", "0.5553248", "0.55427253", "0.5542123", "0.55224913", "0.55179167", "0.55164135", "0.55112004", "0.5508701", "0.55047786", "0.55047786", "0.55047166", "0.55011845", "0.549571", "0.54944", "0.5488461", "0.54583544", "0.5454037", "0.5434265", "0.54299647", "0.5427495", "0.54087096" ]
0.0
-1
Create a new bit output stream based on an existing Java OutputStream.
public NonBlockingBitOutputStream (@Nonnull final OutputStream aOS, @Nonnull final ByteOrder aByteOrder) { ValueEnforcer.notNull (aOS, "OutputStream"); ValueEnforcer.notNull (aByteOrder, "ByteOrder"); m_aOS = aOS; m_bHighOrderBitFirst = aByteOrder.equals (ByteOrder.LITTLE_ENDIAN); m_nBufferedBitCount = 0; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected OutputStream _createDataOutputWrapper(DataOutput out)\n/* */ {\n/* 1520 */ return new DataOutputAsStream(out);\n/* */ }", "public OutputStream createOutputStream() throws IOException {\n/* 213 */ return this.stream.createOutputStream();\n/* */ }", "public OutputStream getOutputStream();", "public ShpOutputStream(OutputStream os) {\n BufferedOutputStream bos = new BufferedOutputStream(os);\n _leos = new LittleEndianOutputStream(bos);\n }", "OutputStream getOutputStream() throws IOException;", "public OutputStream createOutputStream() throws IOException\n {\n return stream.createOutputStream();\n }", "public abstract void writeToStream(java.io.DataOutputStream output) throws java.io.IOException;", "OutputStream getOutputStream();", "protected abstract OutputStream getStream() throws IOException;", "@NotNull OutputStream openOutputStream() throws IOException;", "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 }", "OutputStream createStream(String location);", "public OutputStream getOutputStream() throws IOException;", "public OutputStream createOutputStream(COSName filter) throws IOException {\n/* 225 */ return this.stream.createOutputStream((COSBase)filter);\n/* */ }", "public OutputStream openOutputStream() throws IOException {\n return new FileOutputStream(this);\n }", "public final void setOutputStream(final OutputStream newOutputStream) {\n this.outputStream = newOutputStream;\n }", "public OutputStream openOutputStream() throws IOException {\n\n\tthrow new IllegalArgumentException(\"Not supported\");\n }", "public TarOutputStream( OutputStream os ) {\n\t\tthis( os, TarBuffer.DEFAULT_BLKSIZE, TarBuffer.DEFAULT_RCDSIZE );\n\t\t}", "public interface ImageOutputStream extends ImageInputStream, DataOutput {\n\n /**\n * Writes a single byte to the stream at the current position.\n * The 24 high-order bits of <code>b</code> are ignored.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write. Implementers can use the\n * {@link ImageOutputStreamImpl#flushBits flushBits}\n * method of {@link ImageOutputStreamImpl ImageOutputStreamImpl}\n * to guarantee this.\n *\n * @param b an <code>int</code> whose lower 8 bits are to be\n * written.\n *\n * @exception IOException if an I/O error occurs.\n */\n void write(int b) throws IOException;\n\n /**\n * Writes a sequence of bytes to the stream at the current\n * position. If <code>b.length</code> is 0, nothing is written.\n * The byte <code>b[0]</code> is written first, then the byte\n * <code>b[1]</code>, and so on.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param b an array of <code>byte</code>s to be written.\n *\n * @exception NullPointerException if <code>b</code> is\n * <code>null</code>.\n * @exception IOException if an I/O error occurs.\n */\n void write(byte b[]) throws IOException;\n\n /**\n * Writes a sequence of bytes to the stream at the current\n * position. If <code>len</code> is 0, nothing is written.\n * The byte <code>b[off]</code> is written first, then the byte\n * <code>b[off + 1]</code>, and so on.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write. Implementers can use the\n * {@link ImageOutputStreamImpl#flushBits flushBits}\n * method of {@link ImageOutputStreamImpl ImageOutputStreamImpl}\n * to guarantee this.\n *\n * @param b an array of <code>byte</code>s to be written.\n * @param off the start offset in the data.\n * @param len the number of <code>byte</code>s to write.\n *\n * @exception IndexOutOfBoundsException if <code>off</code> is\n * negative, <code>len</code> is negative, or <code>off +\n * len</code> is greater than <code>b.length</code>.\n * @exception NullPointerException if <code>b</code> is\n * <code>null</code>.\n * @exception IOException if an I/O error occurs.\n */\n void write(byte b[], int off, int len) throws IOException;\n\n /**\n * Writes a <code>boolean</code> value to the stream. If\n * <code>v</code> is true, the value <code>(byte)1</code> is\n * written; if <code>v</code> is false, the value\n * <code>(byte)0</code> is written.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param v the <code>boolean</code> to be written.\n *\n * @exception IOException if an I/O error occurs.\n */\n void writeBoolean(boolean v) throws IOException;\n\n /**\n * Writes the 8 low-order bits of <code>v</code> to the\n * stream. The 24 high-order bits of <code>v</code> are ignored.\n * (This means that <code>writeByte</code> does exactly the same\n * thing as <code>write</code> for an integer argument.)\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param v an <code>int</code> containing the byte value to be\n * written.\n *\n * @exception IOException if an I/O error occurs.\n */\n void writeByte(int v) throws IOException;\n\n /**\n * Writes the 16 low-order bits of <code>v</code> to the\n * stream. The 16 high-order bits of <code>v</code> are ignored.\n * If the stream uses network byte order, the bytes written, in\n * order, will be:\n *\n * <pre>\n * (byte)((v &gt;&gt; 8) &amp; 0xff)\n * (byte)(v &amp; 0xff)\n * </pre>\n *\n * Otherwise, the bytes written will be:\n *\n * <pre>\n * (byte)(v &amp; 0xff)\n * (byte)((v &gt;&gt; 8) &amp; 0xff)\n * </pre>\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param v an <code>int</code> containing the short value to be\n * written.\n *\n * @exception IOException if an I/O error occurs.\n */\n void writeShort(int v) throws IOException;\n\n /**\n * This method is a synonym for {@link #writeShort writeShort}.\n *\n * @param v an <code>int</code> containing the char (unsigned\n * short) value to be written.\n *\n * @exception IOException if an I/O error occurs.\n *\n * @see #writeShort(int)\n */\n void writeChar(int v) throws IOException;\n\n /**\n * Writes the 32 bits of <code>v</code> to the stream. If the\n * stream uses network byte order, the bytes written, in order,\n * will be:\n *\n * <pre>\n * (byte)((v &gt;&gt; 24) &amp; 0xff)\n * (byte)((v &gt;&gt; 16) &amp; 0xff)\n * (byte)((v &gt;&gt; 8) &amp; 0xff)\n * (byte)(v &amp; 0xff)\n * </pre>\n *\n * Otheriwse, the bytes written will be:\n *\n * <pre>\n * (byte)(v &amp; 0xff)\n * (byte)((v &gt;&gt; 8) &amp; 0xff)\n * (byte)((v &gt;&gt; 16) &amp; 0xff)\n * (byte)((v &gt;&gt; 24) &amp; 0xff)\n * </pre>\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param v an <code>int</code> containing the value to be\n * written.\n *\n * @exception IOException if an I/O error occurs.\n */\n void writeInt(int v) throws IOException;\n\n /**\n * Writes the 64 bits of <code>v</code> to the stream. If the\n * stream uses network byte order, the bytes written, in order,\n * will be:\n *\n * <pre>\n * (byte)((v &gt;&gt; 56) &amp; 0xff)\n * (byte)((v &gt;&gt; 48) &amp; 0xff)\n * (byte)((v &gt;&gt; 40) &amp; 0xff)\n * (byte)((v &gt;&gt; 32) &amp; 0xff)\n * (byte)((v &gt;&gt; 24) &amp; 0xff)\n * (byte)((v &gt;&gt; 16) &amp; 0xff)\n * (byte)((v &gt;&gt; 8) &amp; 0xff)\n * (byte)(v &amp; 0xff)\n * </pre>\n *\n * Otherwise, the bytes written will be:\n *\n * <pre>\n * (byte)(v &amp; 0xff)\n * (byte)((v &gt;&gt; 8) &amp; 0xff)\n * (byte)((v &gt;&gt; 16) &amp; 0xff)\n * (byte)((v &gt;&gt; 24) &amp; 0xff)\n * (byte)((v &gt;&gt; 32) &amp; 0xff)\n * (byte)((v &gt;&gt; 40) &amp; 0xff)\n * (byte)((v &gt;&gt; 48) &amp; 0xff)\n * (byte)((v &gt;&gt; 56) &amp; 0xff)\n * </pre>\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param v a <code>long</code> containing the value to be\n * written.\n *\n * @exception IOException if an I/O error occurs.\n */\n void writeLong(long v) throws IOException;\n\n /**\n * Writes a <code>float</code> value, which is comprised of four\n * bytes, to the output stream. It does this as if it first\n * converts this <code>float</code> value to an <code>int</code>\n * in exactly the manner of the <code>Float.floatToIntBits</code>\n * method and then writes the int value in exactly the manner of\n * the <code>writeInt</code> method.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param v a <code>float</code> containing the value to be\n * written.\n *\n * @exception IOException if an I/O error occurs.\n */\n void writeFloat(float v) throws IOException;\n\n /**\n * Writes a <code>double</code> value, which is comprised of four\n * bytes, to the output stream. It does this as if it first\n * converts this <code>double</code> value to an <code>long</code>\n * in exactly the manner of the\n * <code>Double.doubleToLongBits</code> method and then writes the\n * long value in exactly the manner of the <code>writeLong</code>\n * method.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param v a <code>double</code> containing the value to be\n * written.\n *\n * @exception IOException if an I/O error occurs.\n */\n void writeDouble(double v) throws IOException;\n\n /**\n * Writes a string to the output stream. For every character in\n * the string <code>s</code>, taken in order, one byte is written\n * to the output stream. If <code>s</code> is <code>null</code>, a\n * <code>NullPointerException</code> is thrown.\n *\n * <p> If <code>s.length</code> is zero, then no bytes are\n * written. Otherwise, the character <code>s[0]</code> is written\n * first, then <code>s[1]</code>, and so on; the last character\n * written is <code>s[s.length-1]</code>. For each character, one\n * byte is written, the low-order byte, in exactly the manner of\n * the <code>writeByte</code> method. The high-order eight bits of\n * each character in the string are ignored.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param s a <code>String</code> containing the value to be\n * written.\n *\n * @exception NullPointerException if <code>s</code> is\n * <code>null</code>.\n * @exception IOException if an I/O error occurs.\n */\n void writeBytes(String s) throws IOException;\n\n /**\n * Writes a string to the output stream. For every character in\n * the string <code>s</code>, taken in order, two bytes are\n * written to the output stream, ordered according to the current\n * byte order setting. If network byte order is being used, the\n * high-order byte is written first; the order is reversed\n * otherwise. If <code>s</code> is <code>null</code>, a\n * <code>NullPointerException</code> is thrown.\n *\n * <p> If <code>s.length</code> is zero, then no bytes are\n * written. Otherwise, the character <code>s[0]</code> is written\n * first, then <code>s[1]</code>, and so on; the last character\n * written is <code>s[s.length-1]</code>.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param s a <code>String</code> containing the value to be\n * written.\n *\n * @exception NullPointerException if <code>s</code> is\n * <code>null</code>.\n * @exception IOException if an I/O error occurs.\n */\n void writeChars(String s) throws IOException;\n\n /**\n * Writes two bytes of length information to the output stream in\n * network byte order, followed by the\n * <a href=\"../../../java/io/DataInput.html#modified-utf-8\">modified\n * UTF-8</a>\n * representation of every character in the string <code>s</code>.\n * If <code>s</code> is <code>null</code>, a\n * <code>NullPointerException</code> is thrown. Each character in\n * the string <code>s</code> is converted to a group of one, two,\n * or three bytes, depending on the value of the character.\n *\n * <p> If a character <code>c</code> is in the range\n * <code>&#92;u0001</code> through <code>&#92;u007f</code>, it is\n * represented by one byte:\n *\n * <p><pre>\n * (byte)c\n * </pre>\n *\n * <p> If a character <code>c</code> is <code>&#92;u0000</code> or\n * is in the range <code>&#92;u0080</code> through\n * <code>&#92;u07ff</code>, then it is represented by two bytes,\n * to be written in the order shown:\n *\n * <p> <pre><code>\n * (byte)(0xc0 | (0x1f &amp; (c &gt;&gt; 6)))\n * (byte)(0x80 | (0x3f &amp; c))\n * </code></pre>\n *\n * <p> If a character <code>c</code> is in the range\n * <code>&#92;u0800</code> through <code>uffff</code>, then it is\n * represented by three bytes, to be written in the order shown:\n *\n * <p> <pre><code>\n * (byte)(0xe0 | (0x0f &amp; (c &gt;&gt; 12)))\n * (byte)(0x80 | (0x3f &amp; (c &gt;&gt; 6)))\n * (byte)(0x80 | (0x3f &amp; c))\n * </code></pre>\n *\n * <p> First, the total number of bytes needed to represent all\n * the characters of <code>s</code> is calculated. If this number\n * is larger than <code>65535</code>, then a\n * <code>UTFDataFormatException</code> is thrown. Otherwise, this\n * length is written to the output stream in exactly the manner of\n * the <code>writeShort</code> method; after this, the one-, two-,\n * or three-byte representation of each character in the string\n * <code>s</code> is written.\n *\n * <p> The current byte order setting is ignored.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * <p><strong>Note:</strong> This method should not be used in\n * the implementation of image formats that use standard UTF-8,\n * because the modified UTF-8 used here is incompatible with\n * standard UTF-8.\n *\n * @param s a <code>String</code> containing the value to be\n * written.\n *\n * @exception NullPointerException if <code>s</code> is\n * <code>null</code>.\n * @exception java.io.UTFDataFormatException if the modified UTF-8\n * representation of <code>s</code> requires more than 65536 bytes.\n * @exception IOException if an I/O error occurs.\n */\n void writeUTF(String s) throws IOException;\n\n /**\n * Writes a sequence of shorts to the stream at the current\n * position. If <code>len</code> is 0, nothing is written.\n * The short <code>s[off]</code> is written first, then the short\n * <code>s[off + 1]</code>, and so on. The byte order of the\n * stream is used to determine the order in which the individual\n * bytes are written.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param s an array of <code>short</code>s to be written.\n * @param off the start offset in the data.\n * @param len the number of <code>short</code>s to write.\n *\n * @exception IndexOutOfBoundsException if <code>off</code> is\n * negative, <code>len</code> is negative, or <code>off +\n * len</code> is greater than <code>s.length</code>.\n * @exception NullPointerException if <code>s</code> is\n * <code>null</code>.\n * @exception IOException if an I/O error occurs.\n */\n void writeShorts(short[] s, int off, int len) throws IOException;\n\n /**\n * Writes a sequence of chars to the stream at the current\n * position. If <code>len</code> is 0, nothing is written.\n * The char <code>c[off]</code> is written first, then the char\n * <code>c[off + 1]</code>, and so on. The byte order of the\n * stream is used to determine the order in which the individual\n * bytes are written.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param c an array of <code>char</code>s to be written.\n * @param off the start offset in the data.\n * @param len the number of <code>char</code>s to write.\n *\n * @exception IndexOutOfBoundsException if <code>off</code> is\n * negative, <code>len</code> is negative, or <code>off +\n * len</code> is greater than <code>c.length</code>.\n * @exception NullPointerException if <code>c</code> is\n * <code>null</code>.\n * @exception IOException if an I/O error occurs.\n */\n void writeChars(char[] c, int off, int len) throws IOException;\n\n /**\n * Writes a sequence of ints to the stream at the current\n * position. If <code>len</code> is 0, nothing is written.\n * The int <code>i[off]</code> is written first, then the int\n * <code>i[off + 1]</code>, and so on. The byte order of the\n * stream is used to determine the order in which the individual\n * bytes are written.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param i an array of <code>int</code>s to be written.\n * @param off the start offset in the data.\n * @param len the number of <code>int</code>s to write.\n *\n * @exception IndexOutOfBoundsException if <code>off</code> is\n * negative, <code>len</code> is negative, or <code>off +\n * len</code> is greater than <code>i.length</code>.\n * @exception NullPointerException if <code>i</code> is\n * <code>null</code>.\n * @exception IOException if an I/O error occurs.\n */\n void writeInts(int[] i, int off, int len) throws IOException;\n\n /**\n * Writes a sequence of longs to the stream at the current\n * position. If <code>len</code> is 0, nothing is written.\n * The long <code>l[off]</code> is written first, then the long\n * <code>l[off + 1]</code>, and so on. The byte order of the\n * stream is used to determine the order in which the individual\n * bytes are written.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param l an array of <code>long</code>s to be written.\n * @param off the start offset in the data.\n * @param len the number of <code>long</code>s to write.\n *\n * @exception IndexOutOfBoundsException if <code>off</code> is\n * negative, <code>len</code> is negative, or <code>off +\n * len</code> is greater than <code>l.length</code>.\n * @exception NullPointerException if <code>l</code> is\n * <code>null</code>.\n * @exception IOException if an I/O error occurs.\n */\n void writeLongs(long[] l, int off, int len) throws IOException;\n\n /**\n * Writes a sequence of floats to the stream at the current\n * position. If <code>len</code> is 0, nothing is written.\n * The float <code>f[off]</code> is written first, then the float\n * <code>f[off + 1]</code>, and so on. The byte order of the\n * stream is used to determine the order in which the individual\n * bytes are written.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param f an array of <code>float</code>s to be written.\n * @param off the start offset in the data.\n * @param len the number of <code>float</code>s to write.\n *\n * @exception IndexOutOfBoundsException if <code>off</code> is\n * negative, <code>len</code> is negative, or <code>off +\n * len</code> is greater than <code>f.length</code>.\n * @exception NullPointerException if <code>f</code> is\n * <code>null</code>.\n * @exception IOException if an I/O error occurs.\n */\n void writeFloats(float[] f, int off, int len) throws IOException;\n\n /**\n * Writes a sequence of doubles to the stream at the current\n * position. If <code>len</code> is 0, nothing is written.\n * The double <code>d[off]</code> is written first, then the double\n * <code>d[off + 1]</code>, and so on. The byte order of the\n * stream is used to determine the order in which the individual\n * bytes are written.\n *\n * <p> If the bit offset within the stream is non-zero, the\n * remainder of the current byte is padded with 0s\n * and written out first. The bit offset will be 0 after the\n * write.\n *\n * @param d an array of <code>doubles</code>s to be written.\n * @param off the start offset in the data.\n * @param len the number of <code>double</code>s to write.\n *\n * @exception IndexOutOfBoundsException if <code>off</code> is\n * negative, <code>len</code> is negative, or <code>off +\n * len</code> is greater than <code>d.length</code>.\n * @exception NullPointerException if <code>d</code> is\n * <code>null</code>.\n * @exception IOException if an I/O error occurs.\n */\n void writeDoubles(double[] d, int off, int len) throws IOException;\n\n /**\n * Writes a single bit, given by the least significant bit of the\n * argument, to the stream at the current bit offset within the\n * current byte position. The upper 31 bits of the argument are\n * ignored. The given bit replaces the previous bit at that\n * position. The bit offset is advanced by one and reduced modulo\n * 8.\n *\n * <p> If any bits of a particular byte have never been set\n * at the time the byte is flushed to the destination, those\n * bits will be set to 0 automatically.\n *\n * @param bit an <code>int</code> whose least significant bit\n * is to be written to the stream.\n *\n * @exception IOException if an I/O error occurs.\n */\n void writeBit(int bit) throws IOException;\n\n /**\n * Writes a sequence of bits, given by the <code>numBits</code>\n * least significant bits of the <code>bits</code> argument in\n * left-to-right order, to the stream at the current bit offset\n * within the current byte position. The upper <code>64 -\n * numBits</code> bits of the argument are ignored. The bit\n * offset is advanced by <code>numBits</code> and reduced modulo\n * 8. Note that a bit offset of 0 always indicates the\n * most-significant bit of the byte, and bytes of bits are written\n * out in sequence as they are encountered. Thus bit writes are\n * always effectively in network byte order. The actual stream\n * byte order setting is ignored.\n *\n * <p> Bit data may be accumulated in memory indefinitely, until\n * <code>flushBefore</code> is called. At that time, all bit data\n * prior to the flushed position will be written.\n *\n * <p> If any bits of a particular byte have never been set\n * at the time the byte is flushed to the destination, those\n * bits will be set to 0 automatically.\n *\n * @param bits a <code>long</code> containing the bits to be\n * written, starting with the bit in position <code>numBits -\n * 1</code> down to the least significant bit.\n *\n * @param numBits an <code>int</code> between 0 and 64, inclusive.\n *\n * @exception IllegalArgumentException if <code>numBits</code> is\n * not between 0 and 64, inclusive.\n * @exception IOException if an I/O error occurs.\n */\n void writeBits(long bits, int numBits) throws IOException;\n\n /**\n * Flushes all data prior to the given position to the underlying\n * destination, such as an <code>OutputStream</code> or\n * <code>File</code>. Attempting to seek to the flushed portion\n * of the stream will result in an\n * <code>IndexOutOfBoundsException</code>.\n *\n * @param pos a <code>long</code> containing the length of the\n * stream prefix that may be flushed to the destination.\n *\n * @exception IndexOutOfBoundsException if <code>pos</code> lies\n * in the flushed portion of the stream or past the current stream\n * position.\n * @exception IOException if an I/O error occurs.\n */\n void flushBefore(long pos) throws IOException;\n}", "final public x10.io.OutputStreamWriter x10$io$OutputStreamWriter$$init$S(final x10.core.io.OutputStream out) {\n {\n \n //#line 41 \"/home/induk/workspace/x10-2.4.3-src/x10.runtime/src-x10/x10/io/OutputStreamWriter.x10\"\n final x10.io.Writer this$91109 = this;\n \n //#line 41 \"/home/induk/workspace/x10-2.4.3-src/x10.runtime/src-x10/x10/io/OutputStreamWriter.x10\"\n \n \n //#line 17 \"/home/induk/workspace/x10-2.4.3-src/x10.runtime/src-x10/x10/io/OutputStreamWriter.x10\"\n final x10.io.OutputStreamWriter this$91123 = this;\n \n //#line 42 \"/home/induk/workspace/x10-2.4.3-src/x10.runtime/src-x10/x10/io/OutputStreamWriter.x10\"\n this.out = ((x10.core.io.OutputStream)(out));\n }\n return this;\n }", "public OutputStream createOutputStream(COSName filter) throws IOException\n {\n return stream.createOutputStream(filter);\n }", "OutputPort createOutputPort();", "void write(final OutputStream byteStream, final N source, String encoding) throws IOException, XdmMarshalException;", "public PipedOutputStream() {\n }", "public OutputStream openOutputStream() throws IOException {\n // TODO: this mode is not set yet.\n // \tif ((parent.mode & Connector.WRITE) == 0)\n // \t\tthrow new IOException(\"read-only connection\");\n ensureOpen();\n ensureNotDone();\n\n if (outputStreamOpened)\n throw new IOException(\"no more output streams available\");\n\n if (privateOutput == null) {\n // there are 3 bytes operation headers and 3 bytes body headers //\n privateOutput = new PrivateOutputStream(this, maxPacketSize - 6);\n }\n\n outputStreamOpened = true;\n\n return privateOutput;\n }", "void mo6321a(OutputStream outputStream, Object obj);", "OutputStream getOutputStream()\n {\n return outputStream;\n }", "int writeTo(OutputStream out) throws IOException;", "public SnappyOutputStream(OutputStream out)\n throws IOException\n {\n this(out, true);\n }", "ObjectOutputStream newObjectOutputStream(OutputStream out) throws Exception;", "public static SnappyOutputStream newChecksumFreeBenchmarkOutputStream(OutputStream out)\n throws IOException\n {\n return new SnappyOutputStream(out, false);\n }", "public interface BitOutput {\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Writes a 1-bit boolean value. This method writes {@code 0b1} for {@code true}\n\t * and {@code 0b0} for {@code false}.\n\t *\n\t * @param value the value to write.\n\t * @throws IOException if an I/O error occurs\n\t */\n\tvoid writeBoolean( boolean value ) throws IOException;\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Writes a {@code byte} value.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of bits for value; between {@code 1} and\n\t * {@code 7 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeByte( boolean unsigned, int size, byte value ) throws IOException;\n\n\t/**\n\t * Writes a {@code short} value.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of bits for value; between {@code 1} and\n\t * {@code 15 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeShort( boolean unsigned, int size, short value ) throws IOException;\n\n\t/**\n\t * Writes an {@code int} value. Only the lower specified number of bits are\n\t * written.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of bits for value; between {@code 1} and\n\t * {@code 31 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeInt( boolean unsigned, int size, int value ) throws IOException;\n\n\t/**\n\t * Writes a {@code long} value. Only the lower specified number of bits are\n\t * written.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of valid bits for value; between {@code 1} and\n\t * {@code 63 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeLong( boolean unsigned, int size, long value ) throws IOException;\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Writes a {@code char} value.\n\t *\n\t * @param size the number of bits for value; between {@code 1} and {@code 16},\n\t * both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeChar( int size, char value ) throws IOException;\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Aligns to specified number of bytes by padding zero bits.\n\t *\n\t * @param bytes the number of bytes to align; must be positive.\n\t * @return the number of zero bits padded while aligning.\n\t * @throws IllegalArgumentException if {@code bytes} is less than or equals to\n\t * {@code 0}.\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tlong align( int bytes ) throws IOException;\n}", "public static void write(OutputStream output, byte value) throws IOException {\n output.write(new byte[] { value });\n }", "String write(InputStream content, boolean noPin);", "public BitOutputStream(String file, int byteSize) {\n try {\n output = new FileOutputStream(file);\n this.byteSize = byteSize;\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n digits = numDigits = 0;\n }", "default BitStream bitStream() {\n return bitStream(0);\n }", "public static OutputArchive fromOutputStream(OutputStream stream) throws IOException {\n if (stream instanceof ObjectOutput) {\n return new OutputArchive((ObjectOutput) stream);\n } else {\n return new OutputArchive(new ObjectOutputStream(stream));\n }\n }", "public Pack200CompressorOutputStream(final OutputStream out)\n throws IOException {\n this(out, Pack200Strategy.IN_MEMORY);\n }", "private static void m17788a(OutputStream outputStream, int i) {\n outputStream.write((i >> 0) & 255);\n outputStream.write((i >> 8) & 255);\n outputStream.write((i >> 16) & 255);\n outputStream.write((i >> 24) & 255);\n }", "public TarOutputStream( OutputStream os, int blockSize ) {\n\t\tthis( os, blockSize, TarBuffer.DEFAULT_RCDSIZE );\n\t\t}", "public DefOutputStream(OutputStream out) throws IOException {\n\t\t\tthis(out, 512);\n\t\t}", "OutputStream serialize(OutputStream toSerialize);", "public OutputStream openOutputStream(String path) throws SystemException;", "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 void toStream (OutputStream outputStream)\n throws IOException\n {\n this.logDebug(\"toStream 1/2: outputStream = \" + outputStream);\n\n try\n {\n\tswitch ( this.useMode )\n\t {\n\t case UseMode.SERVE : toStream_SERVE(outputStream); break;\n\t default : this.signalNotRepresentableAsStream();\n\t }\n }\n catch (Exception exception)\n {\n\tthrow new IOException (exception.getMessage());\n }\n\n this.logDebug(\"toStream 2/2\");\n }", "public OutputStream outputWrap(OutputStream os) \n throws IOException {\n this.ros.open(os);\n return this.ros;\n }", "private static AOutput<ByteBuffer> export(final Consumer<StreamFinishedEvent> listener,\n final AOutput<ByteBuffer> stream) {\n return AOutputProxyFactory.createProxy(Vat.current(), CountingOutput.countIfNeeded(stream, listener));\n }", "public static OutputStream wrapOutput(OutputStream out) throws IOException {\r\n out.write(MARKER);\r\n return new DeflaterOutputStream(new Base64EncoderOutputStream(out));\r\n // you'd think the wrap order would be reversed, but it's not\r\n }", "@Override\n\tpublic void write(OutStream outStream) {\n\t}", "public void write(OutputStream arg0) throws IOException {\n\n\t}", "public final OutputStream getOutputStream() {\n return outputStream;\n }", "void serialize(@NotNull OutputStream out) throws IOException;", "public static ByteArrayOutputStream getOutputStream() {\n \t\treturn bos;\n \t}", "void write(final OutputStream byteStream, final N source, final SerializationParams config) throws IOException, XdmMarshalException;", "public OutputStream getOutputStream() {\n\t\treturn toMonet;\n\t}", "public BlockOutputStream(OutputStream out) {\n\t\t\t// always use a buffered stream, even though we know how\n\t\t\t// much bytes to write/read, since this is just faster for\n\t\t\t// some reason\n\t\t\tsuper(new BufferedOutputStream(out));\n\t\t}", "private ObjectOutputStream getOutputStream() {\n\t\t// retornamos el stream de salida\n\t\treturn this.outputStream;\n\t}", "public static final void transcodeAndWrite(byte[] input, \r\n java.io.OutputStream os,\r\n int offset, int length, int input_encoding, int output_encoding)\r\n throws TranscodeException,\r\n IOException {\n int k = offset;\r\n int c;\r\n while (k < offset + length) {\r\n long l = decode(input, k, input_encoding);\r\n k = (int) (l >> 32);\r\n c = (int) l;\r\n encodeAndWrite(os, c, output_encoding);\r\n }\r\n }", "String write(byte[] content, boolean noPin);", "void generateContent(OutputStream output) throws Exception;", "public void setOutputStream(OutputStream outputStream) {\n this.outputStream = outputStream;\n }", "public OutputStream getOutputStream()\n {\n if (m_Port != 0) {\n return new SimpleSerialOutputStream(this);\n }\n else {\n System.out.println(\"###ERROR: You can't get input stream because serial port wasn't opened\");\n }\n return null;\n }", "public OutputStreamWriter(OutputStream os) {\n out = Helper.getStreamWriter(os);\n }", "private void openOutputStream() {\n\t\tPrintStreamManagement.openOutputStream();\n\t}", "public static OutputStream connect(OutputStream out, InputStream in) {\n return new FilterOutputStream(out) {\n public void close() {\n IO.close(out, in);\n }\n };\n }", "private void createOutputStream() throws IOException {\n try {\n oStream = new ObjectOutputStream(socket.getOutputStream());\n }\n catch(IOException e) {\n throw e;\n }\n }", "public OutputStream getOutputStream() throws IOException {\n \t\t \tOutputStream stream = new RSuiteOutputStream();\r\n \t\t \r\n \t\t \tClassLoader saved = Thread.currentThread().getContextClassLoader();\r\n\t\t\ttry {\r\n\t\t\t\t Thread.currentThread().setContextClassLoader(this.getClass().getClassLoader());\r\n\t\t\t\t \r\n\t\t\t\t log.println(\"CREATED RSUITE OUTPUT STREAM.\");\t\t\t\t \r\n\t\t\t\t log.println(\"RETURNING RSUITE OUTPUT STREAM TO OXYGEN...\");\r\n\t\t\t}\r\n\t\t\tcatch(Throwable t){\r\n\t\t\t\tif (log != null) t.printStackTrace(log);\r\n\t\t\t}\r\n\t\t\tfinally{\r\n\t\t\t\tThread.currentThread().setContextClassLoader(saved);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\treturn stream;\r\n\t\t}", "public static BufferedOutputStream get(OutputStream out) {\n if(out == null || out instanceof BufferedOutputStream) {\n return (BufferedOutputStream)out;\n }\n return new BufferedOutputStream(out);\n }", "public OutputStream getStream()\r\n {\r\n return mStream;\r\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 OutputStream writeBinaryStream() throws IOException {\n return writeStream(WebSocketMessage.OPCODE_BINARY);\n }", "public abstract PrintStream getOutputStream();", "private PrintWriter\n\tgetStreamWriter(\n\t\tOutputStream\toutputStream)\n\t{\n\t\treturn(new PrintWriter(outputStream, true));\n\t}", "public static AisPacketStream newStream() {\n return new AisPacketStreamImpl();\n }", "public org.apache.xmlbeans.XmlAnySimpleType addNewOutputEncoding()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.XmlAnySimpleType target = null;\n target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_attribute_user(OUTPUTENCODING$18);\n return target;\n }\n }", "protected abstract void _write(DataOutput output) throws IOException;", "public CompressibleByteArrayOutputStream(int pcompressionThreshold) {\r\n bop = new ReusableByteArrayOutputStream(pcompressionThreshold < 32 ? 32 : pcompressionThreshold > DEFAULT_COMPRESSION_THRESHOLD ? DEFAULT_COMPRESSION_THRESHOLD : pcompressionThreshold);\r\n compressionThreshold = pcompressionThreshold;\r\n compressionEnabled = true;\r\n abandonCompressionEnabled = true;\r\n }", "public static void generate(Stream stream, PrintStream output) {\n generate(SparseStream.fromStream(stream, Ownership.None), output);\n }", "@Override \n public void write(OutputStream output) throws IOException, \n WebApplicationException {\n IOUtils.copy(inputStream, output); \n }", "public void writeTo(OutputStream arg0) throws IOException {\n\t\t\r\n\t}", "public synchronized OutputStream getOutputStream() throws IOException {\n/* 229 */ return this.delegate.getOutputStream();\n/* */ }", "protected OutputStream decorateOutputStream(HttpExchange exchange, OutputStream os)\n/* */ throws IOException\n/* */ {\n/* 181 */ return os;\n/* */ }", "public static OutputStream nullOutput() {\n if(nullOut == null) {\n nullOut = new NullOutputStream();\n }\n return nullOut;\n }", "public OutputStream getOutputStream() {\n return outStream;\n }", "public static IOR makeIOR(InputStream paramInputStream) {\n/* 98 */ return (IOR)new IORImpl(paramInputStream);\n/* */ }", "@Override\n public Writer getOutputStreamWriter() throws IOException {\n return new OutputStreamWriter(getOutputStream());\n }", "@Override\n public OutputStream openOutputStream() throws IOException {\n final ByteArrayOutputStream baos = new ByteArrayOutputStream();\n return new FilterOutputStream(baos){\n @Override\n public void close() throws IOException {\n writeManifestJarEntry(readManifest(baos));\n }\n };\n }", "public void mWriteByte(OutputStream oOutputStream,int out) { //Cast the byt to an array\n byte[] out1=new byte[1];\n out1[0]= (byte) out;\n mWriteByte(oOutputStream,out1);\n }", "void toXml(OutputStream out, boolean format) throws IOException;", "private void writeObject(\n ObjectOutputStream aOutputStream\n ) throws IOException {\n aOutputStream.defaultWriteObject();\n }", "public OutputStream getOutputStream() {\n return this.outputStream;\n }", "public abstract void write(DataOutput out) throws IOException;", "public static OutputStream getOutputStream(final AsyncChannel out, final boolean copy) {\n return new OutputStream() {\n public void write(int b) {\n out.send(new byte[] { (byte) b }, false);\n }\n \n public void write(byte b[]) throws IOException {\n out.send(b, copy);\n }\n \n public void write(byte b[], int off, int len) throws IOException {\n out.send(b, off, len, copy);\n }\n };\n }", "public OutputStream getOutputStream()\n\t{\n\t\treturn null;\n\t}", "int writeTo(byte[] iStream, int pos, ORecordVersion version);", "@Override\n public MessageStream toMessageStream(OutputStream output) {\n return new BinaryDataStream(output, mFilePath);\n }", "public OutputStream getOutputStream() {\n\t\treturn outputStream;\n\t}", "private void writeObject(ObjectOutputStream _stream)\n/* 428: */ throws IOException\n/* 429: */ {\n/* 430:503 */ _stream.defaultWriteObject();\n/* 431:504 */ writeCustomData(_stream);\n/* 432: */ }", "public MyHTTPOutputStream(OutputStream os) {\n\t\tsuper(os);\n\t\tthis.myRequest = \"\";\n\t\tthis.myReply = \"\";\n\t}", "public OutputStream openOutputStream() throws IOException {\n return response.getOutputStream();\n }" ]
[ "0.62750983", "0.6183617", "0.58654326", "0.58355904", "0.5797282", "0.57931346", "0.5776477", "0.57709897", "0.5741643", "0.5694345", "0.56625324", "0.55820936", "0.5570396", "0.54730207", "0.54729724", "0.54708534", "0.5372276", "0.5352622", "0.53444433", "0.5335462", "0.53214735", "0.53037935", "0.5295031", "0.52846134", "0.52752686", "0.52682644", "0.5263274", "0.52440554", "0.5241512", "0.52383983", "0.5219261", "0.52022904", "0.5171332", "0.5152844", "0.5119816", "0.50792444", "0.507326", "0.50649893", "0.5045402", "0.5044876", "0.50246114", "0.50161314", "0.50001746", "0.49891642", "0.49799788", "0.49795225", "0.49739754", "0.49614447", "0.49566337", "0.4952888", "0.49528658", "0.4950975", "0.4949132", "0.49490884", "0.4948493", "0.49403885", "0.49339777", "0.49304068", "0.49292362", "0.49283326", "0.49249426", "0.49233264", "0.48894396", "0.48855168", "0.48760727", "0.48744914", "0.48711395", "0.48679206", "0.48473188", "0.48425165", "0.48417833", "0.48404127", "0.48392975", "0.48389736", "0.48193926", "0.4813375", "0.4809293", "0.4789404", "0.4787861", "0.47836855", "0.47781914", "0.47734547", "0.47661152", "0.47660705", "0.4762854", "0.47579896", "0.4753484", "0.47479123", "0.4740366", "0.47366259", "0.47283325", "0.47265333", "0.4726252", "0.47243437", "0.46957573", "0.4695705", "0.46782693", "0.4677232", "0.46765465", "0.46753487" ]
0.51176995
35
Write a single bit to the stream. It will only be flushed to the underlying OutputStream when a byte has been completed or when flush() manually.
public void writeBit (final int aBit) throws IOException { if (m_aOS == null) throw new IllegalStateException ("BitOutputStream is already closed"); if (aBit != CGlobal.BIT_NOT_SET && aBit != CGlobal.BIT_SET) throw new IllegalArgumentException (aBit + " is not a bit"); if (aBit == CGlobal.BIT_SET) if (m_bHighOrderBitFirst) m_nBuffer |= (aBit << (7 - m_nBufferedBitCount)); else m_nBuffer |= (aBit << m_nBufferedBitCount); ++m_nBufferedBitCount; if (m_nBufferedBitCount == CGlobal.BITS_PER_BYTE) flush (); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeBit(int bit) throws IOException;", "public void writeBit(int bit) {\n if (bit < 0 || bit > 1)\n throw new IllegalArgumentException(\"Illegal bit: \" + bit);\n digits += bit << numDigits;\n numDigits++;\n if (numDigits == this.byteSize) {\n flush();\n }\n }", "public void write(boolean b) {\n write(b ? 1 : 0);\n }", "@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }", "public void write( int b ) throws IOException {\n\t\tthis.oneBuf[0] = (byte) b;\n\t\tthis.write( this.oneBuf, 0, 1 );\n\t\t}", "public void writeByte(int value)\n throws java.io.IOException {\n\n outputStream.writeByte(value);\n }", "public void write(int b) throws IOException\n {\n this.out.write(b); // write the byte b to the Stream\n }", "@Override\n public void write(int oneByte) throws IOException {\n currentRead++;\n if (currentRead % callback.interval() == 0) {\n callback.callback(currentRead);\n }\n outstream.write(oneByte);\n }", "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 }", "@Override\r\n\tpublic synchronized void write(int b)\r\n\t{\r\n\t}", "public void write(int b) throws IOException;", "public void write(int b) throws IOException\n {\n checkThreshold(1);\n getStream().write(b);\n written++;\n }", "public static byte set(byte value, int bit){\n return (byte)(value|(1<<bit));\n }", "void writeByte(byte value);", "public boolean writeByte(byte val) {\n try {\n m_DataOutputStream.writeByte(val);\n }\n catch (IOException e) {\n return false;\n }\n return true;\n }", "public synchronized void write(final int b) throws IOException {\n\t\tthis.singleIntArray[0] = (byte) (0xFF & b);\n\t\twrite(singleIntArray, 0, 1);\n\t}", "public interface BitOutput {\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Writes a 1-bit boolean value. This method writes {@code 0b1} for {@code true}\n\t * and {@code 0b0} for {@code false}.\n\t *\n\t * @param value the value to write.\n\t * @throws IOException if an I/O error occurs\n\t */\n\tvoid writeBoolean( boolean value ) throws IOException;\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Writes a {@code byte} value.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of bits for value; between {@code 1} and\n\t * {@code 7 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeByte( boolean unsigned, int size, byte value ) throws IOException;\n\n\t/**\n\t * Writes a {@code short} value.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of bits for value; between {@code 1} and\n\t * {@code 15 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeShort( boolean unsigned, int size, short value ) throws IOException;\n\n\t/**\n\t * Writes an {@code int} value. Only the lower specified number of bits are\n\t * written.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of bits for value; between {@code 1} and\n\t * {@code 31 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeInt( boolean unsigned, int size, int value ) throws IOException;\n\n\t/**\n\t * Writes a {@code long} value. Only the lower specified number of bits are\n\t * written.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of valid bits for value; between {@code 1} and\n\t * {@code 63 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeLong( boolean unsigned, int size, long value ) throws IOException;\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Writes a {@code char} value.\n\t *\n\t * @param size the number of bits for value; between {@code 1} and {@code 16},\n\t * both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeChar( int size, char value ) throws IOException;\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Aligns to specified number of bytes by padding zero bits.\n\t *\n\t * @param bytes the number of bytes to align; must be positive.\n\t * @return the number of zero bits padded while aligning.\n\t * @throws IllegalArgumentException if {@code bytes} is less than or equals to\n\t * {@code 0}.\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tlong align( int bytes ) throws IOException;\n}", "void writeByte(int v) throws IOException;", "@Override\n\tpublic void writeByte(int b) throws IOException {\n\t\t\n\t}", "public void write(int b) throws IOException {\n baos.write(b);\n }", "@Override\r\n\t\t\tpublic void write(int b) throws IOException {\n\t\t\t}", "public StreamWriter write(byte value)\r\n {\r\n\t\ttry {\r\n\t\t\t_stream.write(new byte[] { value });\r\n\t\t} catch (IOException ex) {\r\n\t\t}\r\n\t\treturn this;\r\n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "public abstract void writeByte(byte b) throws IOException;", "void writeBits(long bits, int numBits) throws IOException;", "@Override\n public void write(int b) {\n try {\n out.write(b);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void write(OutputStream output, byte value) throws IOException {\n output.write(new byte[] { value });\n }", "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 }", "void writeBoolean(boolean v) throws IOException;", "public void write(int datum) throws IOException {\n if (!_open)\n return;\n datum &= 0xff;\n long _here = position();\n\n // Are we synced up?\n if (_here == _digestvalidto) {\n\n // Yes, digest the byte and move the valid to pointer.\n _digest.update((byte) datum);\n _digestvalidto++; // JMC: Was missing.\n\n } // Otherwise, advancing of the position will destroy the digest sync.\n\n datum = _head.crypt((byte) datum, _here);\n _backing.write(datum);\n }", "@Override\n\tpublic void WriteByte(byte value)\n\t{\n\t\tthrow new UnsupportedOperationException(\"TarInputStream WriteByte not supported\");\n\t}", "public void mWriteByte(OutputStream oOutputStream,byte[] out) {\n synchronized (this) {\n if (mStateGet()!= cKonst.eSerial.kBT_Connected1) {\n return;\n }\n try { //Maybe the steam was closed by receiver\n oOutputStream.write(out);\n } catch (IOException e) {\n mStateSet(cKonst.eSerial.kBT_BrokenConnection);\n }\n }\n }", "public void write(int b) throws IOException\n\t{\n\t\tout.write(b);\n\t\tmd5.update((byte) (b & 0xff));\n\t}", "String byteOrBooleanWrite();", "private static void writeByte(boolean rs, int data) {\n int highData = ((data >>> NIBBLE_SIZE) & NIBBLE_MASK); //Parte Alta do data\n int lowData = (data & NIBBLE_MASK); //Parte Baixa do data\n writeNibble(rs,highData);\n writeNibble(rs,lowData);\n Time.sleep(WRITEBYTE_SLEEP_TIME);\n }", "public void mWriteByte(OutputStream oOutputStream,int out) { //Cast the byt to an array\n byte[] out1=new byte[1];\n out1[0]= (byte) out;\n mWriteByte(oOutputStream,out1);\n }", "public void setBit(int index, boolean bit)\n\t{\n\t\tif (index + 1 > bits.size()) bits.ensureCapacity(index + 1);\n\t\tbits.add(index, bit);\n\t}", "public void sendBool(boolean b) {\n try {\n dOut.writeBoolean(b);\n dOut.flush();\n } catch (IOException e) {\n System.out.println(\"Could not send boolean\");\n e.printStackTrace();\n }\n }", "void writeBool(boolean value);", "public static void writeBit(int[][] matrix, int col, int row, boolean bit, int mask) {\n matrix[col][row] = maskColor(col, row, bit, mask);\n }", "@Override\n\tpublic void write(int value) {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\tCpuMem.getInstance().writeMem(address, value);\n\t}", "public void write(long time, boolean value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\n }", "public void setFlag(short flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t} else {\n\t\t\t__io__block.writeShort(__io__address + 6, flag);\n\t\t}\n\t}", "void bytesRealWriteFlowControl(long write)\r\n/* 179: */ {\r\n/* 180:355 */ this.realWrittenBytes.addAndGet(write);\r\n/* 181: */ }", "@Override\n public void write(int i) throws IOException {\n if (pos == BUFFER_SIZE) {\n flush();\n }\n buffer[pos++] = (byte)i;\n }", "public void writeBoolean(boolean bool) throws IOException {\n DebugLog.stdoutPrintln(\"\tmarshalling bool\" + bool, DebugLog.BSF_LOG_L3);\n fDataOutputStream.writeBoolean(bool);\n\t}", "void setBit(int index, int value);", "public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }", "String write(byte[] content, boolean noPin);", "private void byteOut(){\n if(nrOfWrittenBytes >= 0){\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else if(c < 0x8000000){\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=c>>>19;\n c &= 0x7FFFF;\n cT=8;\n }\n else{\n b++;\n if(b==0xFF){\n // Delay 0xFF byte\n delFF = true;\n c &= 0x7FFFFFF;\n b=c>>>20;\n c &= 0xFFFFF;\n cT=7;\n }\n else{\n // Write delayed 0xFF bytes\n if (delFF) {\n out.write(0xFF);\n delFF = false;\n nrOfWrittenBytes++;\n }\n out.write(b);\n nrOfWrittenBytes++;\n b=((c>>>19)&0xFF);\n c &= 0x7FFFF;\n cT=8;\n }\n }\n }\n else {\n // NOTE: carry bit can never be set if the byte buffer was empty\n b= (c>>>19);\n c &= 0x7FFFF;\n cT=8;\n nrOfWrittenBytes++;\n }\n }", "public void write(DataOutput output) throws IOException {\n output.writeShort(this.data);\n }", "public void set()\n\t{\n\t\tbitHolder.setValue(1);\n\t}", "@Override\n public void write (byte[] b) throws IOException {\n byte currByte = b[b[0] + 1];\n int counter = 0;\n for (int i = 0; i < b[0] + 1; i++) {\n out.write(b[i]);\n }\n for (int i = b[0] + 1; i < b.length; i++) {\n if (currByte == 0 && b[i] == 1 || currByte == 1 && b[i] == 0) {\n if (counter <= 255) {\n out.write((byte) counter);\n } else {\n OutOfByteSize(counter);\n }\n counter = 1;\n currByte = b[i];\n } else {\n counter++;\n }\n }\n\n }", "public ByteBuf writeByte(int value)\r\n/* 533: */ {\r\n/* 534:544 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 535:545 */ return super.writeByte(value);\r\n/* 536: */ }", "public boolean write(int b) throws FTD2XXException {\n byte[] c = new byte[1];\n c[0] = (byte) b;\n return (write(c) == 1) ? true : false;\n }", "public StreamWriter write(short value)\r\n {\r\n \tif(order() == ByteOrder.LITTLE_ENDIAN){\r\n\t\t\t_buffer[0] = (byte) (value & 0xFF);\r\n\t\t\t_buffer[1] = (byte) ((value & 0xFF00) >> 8);\r\n \t}else{\r\n _buffer[0] = (byte)(value >> 8);\r\n _buffer[1] = (byte)value;\r\n \t}\r\n _stream.write(_buffer,0,2);\r\n\t\treturn this;\r\n }", "protected void writeBooleanValue(boolean v) throws IOException {\n _generator.writeBoolean(v);\n }", "void setBit(int index, boolean value);", "public StreamWriter write(int value) {\r\n\t\tif(order() == ByteOrder.LITTLE_ENDIAN){\r\n\t\t\t_buffer[0] = (byte) (value & 0xFF);\r\n\t\t\t_buffer[1] = (byte) ((value & 0xFF00) >> 8);\r\n\t\t\t_buffer[2] = (byte) ((value & 0xFF0000) >> 16);\r\n\t\t\t_buffer[3] = (byte) ((value & 0xFF000000) >> 24);\r\n\t\t}else{\r\n\t\t\t_buffer[0] = (byte) (value >> 24);\r\n\t\t\t_buffer[1] = (byte) (value >> 16);\r\n\t\t\t_buffer[2] = (byte) (value >> 8);\r\n\t\t\t_buffer[3] = (byte) value;\r\n\t\t}\r\n\t\t_stream.write(_buffer,0,4);\r\n\t\treturn this;\r\n\t}", "public void writeByte(byte b) throws SerialPortException {\n\t\tport.writeByte(b);\n\t\tif(debug) {\n\t\t\tSystem.out.println(\"<0x\"+ b + \">\");\n\t\t}\n\t\t\n\t}", "String write(InputStream content, boolean noPin);", "public final void write2(int b) throws Exception{\r\n\tb += 32768;\r\n\tif (b < 0)\r\n\t\tb = 0;\r\n\twrite(b & 0xFF);\r\n\twrite((b >> 8) & 0xFF);\r\n\t//System.out.println(\"orig=\" + (b-32768) + \" wrote=\" + b + \" 1=\" + (b & 0xFF) + \" 2=\" + ((b >> 8) & 0xFF));\r\n}", "@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}", "public int writeByte(byte src) {\n try {\n out.write(src);\n return 0;\n } catch (IOException e) {\n print(\"Error writing byte to \" + portName);\n }\n return -1;\n }", "protected abstract void write( int value ) throws IOException;", "void write(StreamOption streamOpt);", "public void writeUnsignedByte(int i) throws IOException {\r\n\t\tthis.writeByte(i);\r\n\t\t// this.writeByte((byte) (i % 128));\r\n\t}", "public void write(long time, Binary value) {\n timeEncoder.encode(time, timeOut);\n valueEncoder.encode(value, valueOut);\n statistics.update(time, value);\n }", "@Override\n public void write(int b) throws IOException {\n byte ib = (byte) b;\n long p = df.position();\n // If not at the end yet,\n if (p < df.size()) {\n // Get the current value,\n byte cur_b = df.get();\n // If the value we are inserting is different,\n if (cur_b != ib) {\n // Reposition and put the new value,\n df.position(p);\n df.put(ib);\n// ++change_count;\n }\n }\n // At the end so write the byte,\n else {\n df.put(ib);\n }\n }", "public void send(short b) {\n\t\t// If we're using send to send 255, we need to escape it.\n\t\tif (b == IAC) {\n\t\t\toutWriter.write(new short[] {IAC, IAC});\n\t\t} else {\n\t\t\ttry {\n\t\t\t\toutWriter.write(b);\n\t\t\t} catch (IOException ioe) {\n\t\t\t\tSystem.err.println(ioe.toString());\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic synchronized void write(byte[] b, int off, int len)\r\n\t{\r\n\t}", "public void writeInt(int i) throws IOException {\n\t\tmBuffer[mBufferLength+3] = (byte) i;\n\t\tmBuffer[mBufferLength+2] = (byte) (i>>>8);\n\t\tmBuffer[mBufferLength+1] = (byte) (i>>>16);\n\t\tmBuffer[mBufferLength] = (byte) (i>>>24);\n\n\n\t\t\n\n\n\t\tmBufferLength += 4;\n\n\t\t// TODO: on the first filling of the buffer, flush when bufferLength+offset is at the end of a segment\n\t\tif (firstFill && ((mBufferLength >= firstFillThreshold))) {\n\t\t\tthis.flush();\n\t\t\tfirstFill = false;\n\t\t}\n\n\t\tif (mBufferLength == BUFFER_SIZE){\n\t\t\tthis.flush();\n\t\t}\n\t}", "public void send(boolean bool) {\r\n\t\tif (s != null) {\r\n\t\t\ttry {\r\n\t\t\t\tdos.writeByte(LiteServer.BOOL_CONST);\r\n\t\t\t\tdos.writeBoolean(bool);\r\n\t\t\t\tif (autoFlush) {\r\n\t\t\t\t\tdos.flush();\r\n\t\t\t\t}\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\r\n\t\t} else {\r\n\t\t\t// if the socket is null\r\n\t\t}\r\n\r\n\t}", "public static byte setBit(byte input, int position, boolean val){\n return val? (byte) (input | (1 << position)):(byte) (input & ~(1 << position));\n }", "void writeShort(int v) throws IOException;", "private void flushWrite() throws IOException, BadDescriptorException {\n if (reading || !modes.isWritable() || buffer.position() == 0) return; // Don't bother\n \n int len = buffer.position();\n buffer.flip();\n int n = descriptor.write(buffer);\n \n if(n != len) {\n // TODO: check the return value here\n }\n buffer.clear();\n }", "private static void m17788a(OutputStream outputStream, int i) {\n outputStream.write((i >> 0) & 255);\n outputStream.write((i >> 8) & 255);\n outputStream.write((i >> 16) & 255);\n outputStream.write((i >> 24) & 255);\n }", "public void setBit(int pos, int bit) {\r\n\t\tflagBits[pos] = bit;\r\n\t}", "@Override\r\n public void write(int value) throws IOException {\r\n super.write(value);\r\n if (!(inWrite1 || inWrite3)) {\r\n /*if (!Helper.NEW_IO_HANDLING && null != IoNotifier.fileNotifier) {\r\n IoNotifier.fileNotifier.notifyWrite(recId, 1);\r\n } else {*/\r\n if (null != RecorderFrontend.instance) {\r\n RecorderFrontend.instance.writeIo(recId, \r\n null, 1, StreamType.FILE);\r\n }\r\n //}\r\n }\r\n }", "public void write(byte b[]) throws IOException\n {\n checkThreshold(b.length);\n getStream().write(b);\n written += b.length;\n }", "public NonBlockingBitOutputStream (@Nonnull final OutputStream aOS, @Nonnull final ByteOrder aByteOrder)\n {\n ValueEnforcer.notNull (aOS, \"OutputStream\");\n ValueEnforcer.notNull (aByteOrder, \"ByteOrder\");\n\n m_aOS = aOS;\n m_bHighOrderBitFirst = aByteOrder.equals (ByteOrder.LITTLE_ENDIAN);\n m_nBufferedBitCount = 0;\n }", "private void saveByte(int inputByte) throws IOException {\n if (byteBuffer != null) {\n if (bufferPointer == maxBytesInMemory) {\n // Need to switch to file\n storeFile = Files.createTempFile(\"TIKA_streamstore_\", \".tmp\").toFile();\n storeOutputStream = new BufferedOutputStream(new FileOutputStream(storeFile));\n // Save what we have so far in buffer\n storeOutputStream.write(byteBuffer, 0, bufferPointer);\n // Write the new byte\n storeOutputStream.write(inputByte);\n byteBuffer = null; // release for garbage collection\n } else {\n // Continue writing to buffer\n byteBuffer[bufferPointer++] = (byte) inputByte;\n }\n } else {\n storeOutputStream.write(inputByte);\n }\n }", "private void doWrite() throws IOException {\n\t\t\tbb.flip();\n\t\t\tsc.write(bb);\n\t\t\tbb.compact();\n\n\t\t\tupdateInterestOps();\n\t\t}", "public void onWrite(int value) {\n \t\t\tboolean newLatch = (value & 1) != 0;\n \t\t\tif (newLatch != joyLatch) {\n \t\t\t\tcurButton = 0;\n \t\t\t}\n \t\t\tjoyLatch = newLatch;\n \t\t}", "void writeInt(int value);", "private EfficientTerminalSet setBit(int index, boolean value) {\n int[] newData = data.clone();\n int blockIndex = index / 32;\n int bitIndex = index % 32;\n if (value)\n newData[blockIndex] |= 1 << bitIndex;\n else\n newData[blockIndex] &= ~(1 << bitIndex);\n return new EfficientTerminalSet(terminals, indices, newData);\n }", "public void write(int c) throws IOException{\r\n if(closed){\r\n throw new IOException(\"The stream is not open.\");\r\n }\r\n getBuffer().append((char)c);\r\n }", "@Override\n public void write(ByteBuffer b, int off, int len)\n throws IOException {\n byteBufferStreamOutput.write(b, off, len);\n }", "void write(byte b[]) throws IOException;", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 4, flag);\n\t\t}\n\t}", "public int getBit() {\r\n return _bit;\r\n }", "public abstract void write(byte[] b);", "public void setFlag(int flag) throws IOException\n\t{\n\t\tif ((__io__pointersize == 8)) {\n\t\t\t__io__block.writeInt(__io__address + 20, flag);\n\t\t} else {\n\t\t\t__io__block.writeInt(__io__address + 12, flag);\n\t\t}\n\t}", "@Override\r\n\tpublic Buffer appendUnsignedByte(short b) {\n\t\tbuffer.putShort((short) (b & 0xff));\r\n\t\treturn this;\r\n\t}", "public int write(byte[] b, int off, int len)\n {\n synchronized (this) {\n if (!open) {\n return 0;\n }\n\n writing = true;\n started = true;\n reset = false;\n timeTracker.start();\n }\n line.start();\n int written = line.write(b, off, len);\n synchronized (this) {\n // drain() might be waiting, so we should wake it up.\n notifyAll();\n writing = false;\n\t\t\tif (!reset) {\n\t\t\t\ttotalWritten += written;\n\t\t\t} else if (reset && open) {\n\t\t\t\t// Flush what we just wrote to keep it reset.\n\t\t\t\tline.flush();\n\t\t\t}\n return written;\n }\n }", "private void writeByteAt(int pos, int val) {\n dest[pos] = (byte) val;\n }", "public void writeBits (final int aValue, @Nonnegative final int nNumBits) throws IOException\n {\n ValueEnforcer.isBetweenInclusive (nNumBits, \"NumberOfBits\", 1, CGlobal.BITS_PER_INT);\n\n for (int i = nNumBits - 1; i >= 0; i--)\n writeBit ((aValue >> i) & 1);\n }", "public void digitalWrite(int pin, byte value) { // pack this bit into..\r\n int portNumber = (pin >> 3) & 0x0F; // ..8-bit port & send to Ardu\r\n int digiData = digitalOutputData[portNumber & MDB_msk];\r\n if (SpeakEasy){\r\n System.out.println(\"F%%F/digiWrite #\" + pin + \" = \" + value);\r\n }\r\n if ((int) value == 0){\r\n digiData = digiData & ~(1 << (pin & 7));\r\n } else {\r\n digiData = digiData | (1 << (pin & 7));\r\n }\r\n digitalOutputData[portNumber & MDB_msk] = digiData;\r\n Send3bytes(DIGITAL_MESSAGE | portNumber, digiData, -1);\r\n }", "public void write(int c) throws IOException {\n ensureOpen();\n out.write(c);\n }", "public void write(OutputBitStream stream, boolean hasColorTransform)\n throws IOException {\n stream.writeUnsignedBits(0, 2);\n stream.writeBooleanBit(hasBlendMode);\n stream.writeBooleanBit(hasFilters);\n stream.writeBooleanBit(hitState);\n stream.writeBooleanBit(downState);\n stream.writeBooleanBit(overState);\n stream.writeBooleanBit(upState);\n stream.writeUI16(characterId);\n stream.writeUI16(placeDepth);\n placeMatrix.write(stream);\n if (hasColorTransform) {\n if (colorTransform != null) {\n colorTransform.write(stream);\n } else {\n new CXformWithAlpha().write(stream);\n }\n }\n if (hasFilters) {\n Filter.writeFilters(filters, stream);\n }\n if (hasBlendMode) {\n stream.writeUI8(blendMode.getCode());\n }\n }" ]
[ "0.7382214", "0.68624103", "0.6381648", "0.6281653", "0.6206935", "0.6183738", "0.61550736", "0.6113436", "0.6103282", "0.60918415", "0.6088055", "0.6070716", "0.59693754", "0.59231037", "0.5895445", "0.58921397", "0.58835495", "0.58519536", "0.5828566", "0.5793284", "0.57636243", "0.5754145", "0.57430774", "0.5677428", "0.5664923", "0.5647119", "0.5643732", "0.5603694", "0.55989015", "0.5568006", "0.55561954", "0.55421543", "0.5539547", "0.5512625", "0.54083014", "0.5376085", "0.5371066", "0.5352308", "0.5343438", "0.53414536", "0.5328202", "0.53112626", "0.5306854", "0.529523", "0.52873325", "0.52838147", "0.52791023", "0.5268907", "0.5266084", "0.5259573", "0.52405715", "0.5235242", "0.52176195", "0.5184943", "0.51711017", "0.51673865", "0.5157902", "0.5154704", "0.51510644", "0.51452476", "0.51432985", "0.5126431", "0.51184636", "0.5112782", "0.510661", "0.51016694", "0.5082848", "0.50781393", "0.5069711", "0.506256", "0.50620806", "0.50593555", "0.50395966", "0.5037179", "0.50222987", "0.50216854", "0.5016699", "0.49941027", "0.49750823", "0.49749756", "0.495778", "0.49567744", "0.49530756", "0.4946602", "0.49411577", "0.49410373", "0.49291378", "0.49120396", "0.4908422", "0.49076223", "0.4892483", "0.4890907", "0.4889081", "0.48722705", "0.48668274", "0.48667046", "0.48663804", "0.4861585", "0.48588774", "0.4855772" ]
0.73036
1
Write the specified number of bits from the int value to the stream. Corresponding to the InputStream, the bits are written starting at the highest bit ( >> aNumberOfBits ), going down to the lowest bit ( >> 0 ).
public void writeBits (final int aValue, @Nonnegative final int nNumBits) throws IOException { ValueEnforcer.isBetweenInclusive (nNumBits, "NumberOfBits", 1, CGlobal.BITS_PER_INT); for (int i = nNumBits - 1; i >= 0; i--) writeBit ((aValue >> i) & 1); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void writeBits(long bits, int numBits) throws IOException;", "static void encodeInt(DataOutput os, int i) throws IOException {\n if (i >> 28 != 0)\n os.write((i >> 28) & 0x7f);\n if (i >> 21 != 0)\n os.write((i >> 21) & 0x7f);\n if (i >> 14 != 0)\n os.write((i >> 14) & 0x7f);\n if (i >> 7 != 0)\n os.write((i >> 7) & 0x7f);\n os.write((i & 0x7f) | (1 << 7));\n }", "void writeBit(int bit) throws IOException;", "public void writeInt(int i) throws IOException {\n\t\twriteByte((byte) (i >> 24));\n\t\twriteByte((byte) (i >> 16));\n\t\twriteByte((byte) (i >> 8));\n\t\twriteByte((byte) i);\n\t}", "public void writeInt(int value)\n throws java.io.IOException {\n\n if (isBigEndian) {\n outputStream.writeByte((value >> 24) & 0xFF);\n outputStream.writeByte((value >> 16) & 0xFF);\n outputStream.writeByte((value >> 8) & 0xFF);\n outputStream.writeByte(value & 0xFF);\n } else {\n outputStream.writeByte(value & 0xFF);\n outputStream.writeByte((value >> 8) & 0xFF);\n outputStream.writeByte((value >> 16) & 0xFF);\n outputStream.writeByte((value >> 24) & 0xFF);\n }\n }", "public StreamWriter write(int value) {\r\n\t\tif(order() == ByteOrder.LITTLE_ENDIAN){\r\n\t\t\t_buffer[0] = (byte) (value & 0xFF);\r\n\t\t\t_buffer[1] = (byte) ((value & 0xFF00) >> 8);\r\n\t\t\t_buffer[2] = (byte) ((value & 0xFF0000) >> 16);\r\n\t\t\t_buffer[3] = (byte) ((value & 0xFF000000) >> 24);\r\n\t\t}else{\r\n\t\t\t_buffer[0] = (byte) (value >> 24);\r\n\t\t\t_buffer[1] = (byte) (value >> 16);\r\n\t\t\t_buffer[2] = (byte) (value >> 8);\r\n\t\t\t_buffer[3] = (byte) value;\r\n\t\t}\r\n\t\t_stream.write(_buffer,0,4);\r\n\t\treturn this;\r\n\t}", "public static int writeInt(OutputStream target, int value) throws IOException {\n target.write(value >>> 24);\n target.write(value >>> 16);\n target.write(value >>> 8);\n target.write(value);\n return Integer.BYTES;\n }", "private void writeInt(DataOutputStream out, int n) throws IOException {\n int result = ((n & 0xFF) << 24) | ((n & 0xFF00) << 8) | ((n & 0xFF0000) >> 8) | ((n & 0xFF000000) >> 24);\n out.writeInt(result);\n }", "public void write(int b) throws IOException\n {\n checkThreshold(1);\n getStream().write(b);\n written++;\n }", "public void write(int b) throws IOException;", "public static void write4bytes(int value, OutputStream outputStream) throws IOException {\n outputStream.write(value >>> 3 * 8);\n outputStream.write(value >>> 2 * 8 & 255);\n outputStream.write(value >>> 1 * 8 & 255);\n outputStream.write(value & 255);\n }", "void writeInt(int value);", "public void writeBit (final int aBit) throws IOException\n {\n if (m_aOS == null)\n throw new IllegalStateException (\"BitOutputStream is already closed\");\n if (aBit != CGlobal.BIT_NOT_SET && aBit != CGlobal.BIT_SET)\n throw new IllegalArgumentException (aBit + \" is not a bit\");\n\n if (aBit == CGlobal.BIT_SET)\n if (m_bHighOrderBitFirst)\n m_nBuffer |= (aBit << (7 - m_nBufferedBitCount));\n else\n m_nBuffer |= (aBit << m_nBufferedBitCount);\n\n ++m_nBufferedBitCount;\n if (m_nBufferedBitCount == CGlobal.BITS_PER_BYTE)\n flush ();\n }", "protected abstract void write( int value ) throws IOException;", "@Override\n public void write(final int byteVal) throws IOException {\n write(new byte[] { (byte) (byteVal & 0xFF) });\n }", "public void write(int b) throws IOException\n {\n this.out.write(b); // write the byte b to the Stream\n }", "void writeInt(int v) throws IOException;", "void writeInt(int i) throws IOException;", "public synchronized void write(final int b) throws IOException {\n\t\tthis.singleIntArray[0] = (byte) (0xFF & b);\n\t\twrite(singleIntArray, 0, 1);\n\t}", "private static void m17788a(OutputStream outputStream, int i) {\n outputStream.write((i >> 0) & 255);\n outputStream.write((i >> 8) & 255);\n outputStream.write((i >> 16) & 255);\n outputStream.write((i >> 24) & 255);\n }", "public void writeInt(int i) throws IOException {\n\t\tmBuffer[mBufferLength+3] = (byte) i;\n\t\tmBuffer[mBufferLength+2] = (byte) (i>>>8);\n\t\tmBuffer[mBufferLength+1] = (byte) (i>>>16);\n\t\tmBuffer[mBufferLength] = (byte) (i>>>24);\n\n\n\t\t\n\n\n\t\tmBufferLength += 4;\n\n\t\t// TODO: on the first filling of the buffer, flush when bufferLength+offset is at the end of a segment\n\t\tif (firstFill && ((mBufferLength >= firstFillThreshold))) {\n\t\t\tthis.flush();\n\t\t\tfirstFill = false;\n\t\t}\n\n\t\tif (mBufferLength == BUFFER_SIZE){\n\t\t\tthis.flush();\n\t\t}\n\t}", "public void write(int b) throws IOException {\n baos.write(b);\n }", "public void writeByte(int value)\n throws java.io.IOException {\n\n outputStream.writeByte(value);\n }", "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 }", "public void writeBit(int bit) {\n if (bit < 0 || bit > 1)\n throw new IllegalArgumentException(\"Illegal bit: \" + bit);\n digits += bit << numDigits;\n numDigits++;\n if (numDigits == this.byteSize) {\n flush();\n }\n }", "public void write( int b ) throws IOException {\n\t\tthis.oneBuf[0] = (byte) b;\n\t\tthis.write( this.oneBuf, 0, 1 );\n\t\t}", "@Override\n\tpublic void write(int value) {\n\t\tint lowByte = getFirstArg();\n\t\tint highByte = getSecondArg();\n\t\tint address = highByte;\n\t\taddress = address << 8;\n\t\taddress |= lowByte;\n\t\tCpuMem.getInstance().writeMem(address, value);\n\t}", "@Override\r\n\t\t\tpublic void write(int b) throws IOException {\n\t\t\t}", "public void write(int b) throws IOException\n\t{\n\t\tout.write(b);\n\t\tmd5.update((byte) (b & 0xff));\n\t}", "private static int writeBits(byte[] bytes, int value, int pos, int len) {\n assert(value > 0 && pos + len <= bytes.length * 8);\n int ind = pos / 8;\n int lastPos = 0;\n for (int i = 0; i < len; i++) {\n int bi = (pos + i) % 8;\n if ((value & (1 << (len - i - 1))) != 0) {\n bytes[ind] |= 1 << (7 - bi);\n lastPos = pos + i;\n }\n if (bi == 7) {\n ind++;\n }\n }\n return lastPos;\n }", "public BinaryEncoder writeInt(int i) throws IOException {\n // Compute the zig-zag value. First double the value and flip the bit if the input is negative.\n int val = (i << 1) ^ (i >> 31);\n\n if ((val & ~0x7f) != 0) {\n output.write(0x80 | val & 0x7f);\n val >>>= 7;\n while (val > 0x7f) {\n output.write(0x80 | val & 0x7f);\n val >>>= 7;\n }\n }\n output.write(val);\n\n return this;\n }", "public final void write2(int b) throws Exception{\r\n\tb += 32768;\r\n\tif (b < 0)\r\n\t\tb = 0;\r\n\twrite(b & 0xFF);\r\n\twrite((b >> 8) & 0xFF);\r\n\t//System.out.println(\"orig=\" + (b-32768) + \" wrote=\" + b + \" 1=\" + (b & 0xFF) + \" 2=\" + ((b >> 8) & 0xFF));\r\n}", "@Override\r\n public void write(int value) throws IOException {\r\n super.write(value);\r\n if (!(inWrite1 || inWrite3)) {\r\n /*if (!Helper.NEW_IO_HANDLING && null != IoNotifier.fileNotifier) {\r\n IoNotifier.fileNotifier.notifyWrite(recId, 1);\r\n } else {*/\r\n if (null != RecorderFrontend.instance) {\r\n RecorderFrontend.instance.writeIo(recId, \r\n null, 1, StreamType.FILE);\r\n }\r\n //}\r\n }\r\n }", "public void write(int ints) {\n try {\n mOutStream.writeInt(ints);\n Log.i(\"TRANSFER\", \"wrote \" + ints);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void setInt(byte [] buffer, int offset, int value) {\r\n\t\tbuffer[offset++] = (byte)((value & 0xFF000000) >>> 24);\r\n\t\tbuffer[offset++] = (byte)((value & 0x00FF0000) >>> 16);\r\n\t\tbuffer[offset++] = (byte)((value & 0x0000FF00) >>> 8);\r\n\t\tbuffer[offset] = (byte)((value & 0x000000FF));\r\n\t}", "@Override\r\n\tpublic synchronized void write(int b)\r\n\t{\r\n\t}", "@Override\n public void write(int b) {\n try {\n out.write(b);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void writeUnsignedByte(int i) throws IOException {\r\n\t\tthis.writeByte(i);\r\n\t\t// this.writeByte((byte) (i % 128));\r\n\t}", "static void write32( int dword, OutputStream out )\n throws IOException\n {\n out.write( dword );\n out.write( dword >> 8 );\n out.write( dword >> 16 );\n out.write( dword >> 24 );\n }", "void writeByte(int v) throws IOException;", "public void write(int pVal) throws IOException {\n mPrintWriter.write(pVal);\n }", "public interface BitOutput {\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Writes a 1-bit boolean value. This method writes {@code 0b1} for {@code true}\n\t * and {@code 0b0} for {@code false}.\n\t *\n\t * @param value the value to write.\n\t * @throws IOException if an I/O error occurs\n\t */\n\tvoid writeBoolean( boolean value ) throws IOException;\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Writes a {@code byte} value.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of bits for value; between {@code 1} and\n\t * {@code 7 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeByte( boolean unsigned, int size, byte value ) throws IOException;\n\n\t/**\n\t * Writes a {@code short} value.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of bits for value; between {@code 1} and\n\t * {@code 15 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeShort( boolean unsigned, int size, short value ) throws IOException;\n\n\t/**\n\t * Writes an {@code int} value. Only the lower specified number of bits are\n\t * written.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of bits for value; between {@code 1} and\n\t * {@code 31 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeInt( boolean unsigned, int size, int value ) throws IOException;\n\n\t/**\n\t * Writes a {@code long} value. Only the lower specified number of bits are\n\t * written.\n\t *\n\t * @param unsigned a flag for indicating unsigned value; {@code true} for\n\t * unsigned, {@code false} for signed.\n\t * @param size the number of valid bits for value; between {@code 1} and\n\t * {@code 63 + (unsigned ? 0 : 1)}, both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeLong( boolean unsigned, int size, long value ) throws IOException;\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Writes a {@code char} value.\n\t *\n\t * @param size the number of bits for value; between {@code 1} and {@code 16},\n\t * both inclusive.\n\t * @param value the value to write\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tvoid writeChar( int size, char value ) throws IOException;\n\n\t// -----------------------------------------------------------------------------------------------------------------\n\n\t/**\n\t * Aligns to specified number of bytes by padding zero bits.\n\t *\n\t * @param bytes the number of bytes to align; must be positive.\n\t * @return the number of zero bits padded while aligning.\n\t * @throws IllegalArgumentException if {@code bytes} is less than or equals to\n\t * {@code 0}.\n\t * @throws IOException if an I/O error occurs.\n\t */\n\tlong align( int bytes ) throws IOException;\n}", "public ByteBuf writeInt(int value)\r\n/* 551: */ {\r\n/* 552:562 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 553:563 */ return super.writeInt(value);\r\n/* 554: */ }", "@Override\n\tpublic void writeByte(int b) throws IOException {\n\t\t\n\t}", "public void writeLong(long i) throws IOException {\n\t\twriteInt((int) (i >> 32));\n\t\twriteInt((int) i);\n\t}", "int nextBits(int bits);", "void writeShort(int v) throws IOException;", "private static int setBits(int n) {\r\n int highestBitValue = 1;\r\n int c = 0;\r\n\r\n while (highestBitValue < n) {\r\n highestBitValue = highestBitValue * 2;\r\n }\r\n\r\n \r\n int currentBitValue = highestBitValue;\r\n while (currentBitValue > 0) {\r\n if (currentBitValue <= n) {\r\n\r\n n -= currentBitValue;\r\n c++;\r\n }\r\n currentBitValue = currentBitValue / 2;\r\n }\r\n\r\n return c;\r\n }", "public static int setBit(final int intValue, final Bits bit) {\n return setFlag(intValue, bit, true);\n }", "void setBinaryStream(int index, InputStream stream, int count)\n throws SQLException;", "BitStream bitStream(int startIndex);", "public static @NonNull Buffer writeVarInt(@NonNull Buffer buffer, int value) {\n while (true) {\n if ((value & ~0x7F) == 0) {\n buffer.writeByte((byte) value);\n return buffer;\n } else {\n buffer.writeByte((byte) ((value & 0x7F) | 0x80));\n value >>>= 7;\n }\n }\n }", "public OurIntegerCanPayloadTranslator(WriteableCanMailbox payload, int numBits, boolean signed) {\n super(payload, (numBits + 7)/8);\n this.numBits = numBits;\n this.signed = signed;\n }", "public void write( OutputStream stream, short[] shorts, int offset, int numShorts ) throws IOException\n {\n int limit = offset + numShorts;\n\t\tfor( int i=offset; i<limit; i++ )\n\t\t{\n short sample = shorts[i];\n stream.write( sample >> 8 ); // high byte\n stream.write( sample ); // low byte\n\t\t}\n\t}", "static void write16( int word, OutputStream out )\n throws IOException\n {\n out.write( word );\n out.write( word >> 8 );\n }", "public static void writeInteger(DataOutputStream dos,Integer data) throws IOException{\r\n\t\tif(data != null){\r\n\t\t\tdos.writeBoolean(true);\r\n\t\t\tdos.writeInt(data.intValue());\r\n\t\t}\r\n\t\telse\r\n\t\t\tdos.writeBoolean(false);\r\n\t}", "public void setValue(int value) {\n BitSet b = new BitSet();\n addIntToBitset(b, value, 0, 32);\n setMessagePayload(b, getByteSize());\n }", "public ByteBuf writeIntLE(int value)\r\n/* 871: */ {\r\n/* 872:880 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 873:881 */ return super.writeIntLE(value);\r\n/* 874: */ }", "public StreamWriter write(short value)\r\n {\r\n \tif(order() == ByteOrder.LITTLE_ENDIAN){\r\n\t\t\t_buffer[0] = (byte) (value & 0xFF);\r\n\t\t\t_buffer[1] = (byte) ((value & 0xFF00) >> 8);\r\n \t}else{\r\n _buffer[0] = (byte)(value >> 8);\r\n _buffer[1] = (byte)value;\r\n \t}\r\n _stream.write(_buffer,0,2);\r\n\t\treturn this;\r\n }", "private static int getRightShiftedNumberBufAsInt(int numberBuf,\n long bitPos, int nrBits, ByteOrder byteOrder) throws BitBufferException {\n\n // number of bits integer buffer needs to be shifted to the right in\n // order to reach the last bit in last byte\n long shiftBits;\n if (byteOrder == ByteOrder.BigEndian)\n shiftBits = 7 - ((nrBits + bitPos + 7) % 8);\n else\n shiftBits = bitPos % 8;\n\n return numberBuf >> shiftBits;\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\n protected void writeInternal(int index, int value) {\n\n }", "@Override\n\tpublic void write(DataOutput dout) throws IOException {\n\t\tdout.writeLong(this.time);\n\t\tdout.writeInt(this.intVal);\n\t}", "public void writeUnsignedShortLittleEndian(int i) throws IOException {\r\n\t\tshort s = (short) (i & 0x0000ffff);\r\n\t\tthis.writeShort(Short.reverseBytes(s));\r\n\t}", "public int readAsInt(int nrBits) {\n return readAsInt(bitPos, nrBits, ByteOrder.BigEndian);\n }", "private byte[] intToBits(int number, int n) {\n\t\tbyte[] bits = new byte[n];\n\t\t\n\t\tString bitString = Integer.toBinaryString(number);\n\t\twhile (bitString.length() < n) {\n\t\t\tbitString = \"0\" + bitString;\n\t\t}\n\t\t\n\t\tfor(int i = 0, maxLen = bits.length; i < maxLen; i++) {\n\t\t\tbits[i] = (byte) (bitString.charAt(i) == 1 ? 1 : 0);\n\t\t}\n\t\t\n\t\treturn bits;\n\t}", "public void writeNumber(short s)\n/* */ throws IOException\n/* */ {\n/* 602 */ _verifyValueWrite(\"write a number\");\n/* 603 */ if (this._cfgNumbersAsStrings) {\n/* 604 */ _writeQuotedShort(s);\n/* 605 */ return;\n/* */ }\n/* */ \n/* 608 */ if (this._outputTail + 6 >= this._outputEnd) {\n/* 609 */ _flushBuffer();\n/* */ }\n/* 611 */ this._outputTail = NumberOutput.outputInt(s, this._outputBuffer, this._outputTail);\n/* */ }", "public void writeIntArray(int[] array) throws IOException {\n\t\tfor (int a : array) {\n\t\t\tthis.writeInt(a);\n\t\t}\n\t}", "private static void writeToBuffer(int index, RandomAccessFile fos) {\n\n try {\n\n // x is the current integer value to be written.\n int x;\n // loc is the current location in the buffer to be written.\n int loc = 0;\n\n // iterates through each value in the sorted integer array.\n for (int k = 0; k < index; k++) {\n // gets the current integer.\n x = ints[k];\n\n // checks if the buffer is full.\n if (loc == BUF_SIZE) {\n // if the buffer is full, write its contents out to the file.\n fos.write(buf);\n // the buffer has been emptied, so set its current location back to the start.\n loc = 0;\n }\n\n // convert the current integer value to be written to a byte array.\n buf[loc] = (byte) (x >> 24);\n buf[loc + 1] = (byte) (x >> 16);\n buf[loc + 2] = (byte) (x >> 8);\n buf[loc + 3] = (byte) (x);\n\n // increment the location in the buffer now that a value has been written in.\n loc += BYTES_TO_INTS;\n }\n\n if (loc > 0) {\n // if there are any values left over in the buffer, write them out to the file.\n fos.write(buf, 0, loc);\n\n }\n } catch (IOException e){\n e.printStackTrace();\n }\n }", "public void setSizeInBits(final int size) {\n\t\tthis.sizeinbits = size;\n\t}", "public final void writeInt(final int data, final boolean endianess) throws IOException {\r\n\r\n if (endianess == FileDicomBaseInner.BIG_ENDIAN) {\r\n byteBuffer4[0] = (byte) (data >>> 24);\r\n byteBuffer4[1] = (byte) (data >>> 16);\r\n byteBuffer4[2] = (byte) (data >>> 8);\r\n byteBuffer4[3] = (byte) (data & 0xff);\r\n } else {\r\n byteBuffer4[0] = (byte) (data & 0xff);\r\n byteBuffer4[1] = (byte) (data >>> 8);\r\n byteBuffer4[2] = (byte) (data >>> 16);\r\n byteBuffer4[3] = (byte) (data >>> 24);\r\n }\r\n\r\n raFile.write(byteBuffer4);\r\n }", "public static int writeInt(byte[] target, int offset, int value) {\n target[offset] = (byte) (value >>> 24);\n target[offset + 1] = (byte) (value >>> 16);\n target[offset + 2] = (byte) (value >>> 8);\n target[offset + 3] = (byte) value;\n return Integer.BYTES;\n }", "@Override\n protected void serialize(OutputStream os) throws IOException {\n writeInt(os,_gateCounter);\n }", "public void write(DataOutput output) throws IOException {\n output.writeShort(this.data);\n }", "private void writeByte(int val) {\n dest[destPos++] = (byte) val;\n }", "static int bitLengthForInt(int n) {\n return 32 - Integer.numberOfLeadingZeros(n);\n }", "@Override\n public void write(DataOutput out) throws IOException {\n out.writeInt(numberOfIterations);\n }", "protected abstract void writeInternal(int index, int value);", "private static int numBytesFromBits(int bits) {\n \t\treturn (bits + 7) >> 3;\n \t}", "@Override\n\tpublic void serializeTo(DataOutputStream output) throws IOException\n\t{\n\t\toutput.writeLong(value);\n\t}", "public void set(int value)\n\t{\n\t\tbitHolder.setValue(value);\n\t}", "static int intToBytes(int int_value, byte[] dest, int index) {\n dest[index + 0] = (byte) (int_value & 0xff);\n dest[index + 1] = (byte) ((int_value >> 8) & 0xff);\n dest[index + 2] = (byte) ((int_value >> 16) & 0xff);\n dest[index + 3] = (byte) ((int_value >> 24) & 0xff);\n return 4;\n }", "void setBits(int... values);", "public void writeInt(String actionName, Integer value) throws IllegalStateException {\n\t\tif (!canPerformAction(actionName, Action.ACTION_WRITE, Value.VALUE_INTEGER)) {\n\t\t\tthrow new IllegalStateException(\"\\twriteInt in \" + this.name + \" is not supported\");\n\t\t}\n\t\tNetworkClient.getInstance().writeInt(this.name, actionName, value);\n\t}", "public static int _setBit(final int originalInt,final int bitIndex) {\n return originalInt | _getMask(bitIndex);\n }", "public void write(int b) throws IOException {\n/* 54 */ this.appendable.append((char)b);\n/* */ }", "public void grabarInt(int x) throws IOException\r\n {\r\n maestro.writeInt(x); \r\n }", "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 }", "protected void setBitAt(final int bitIndex) {\n _bitMap = _setBit(_bitMap,\n \t\t\t\t (Numbers.INTEGER_WIDTH*8-1)-bitIndex-1);\n }", "int writeTo(OutputStream out) throws IOException;", "public static int getBitsNumber(int n) {\r\n\t\treturn (int) (Math.log(n) / Math.log(2.0) + 0.9999);\r\n\t}", "public void write(int c) throws IOException {\n ensureOpen();\n out.write(c);\n }", "public static int toInteger(BitSet bits) {\n int i, value;\n value = 0;\n i = bits.nextSetBit(0);\n while (i >= 0) {\n value += Math.pow(2, i);\n i = bits.nextSetBit(i + 1);\n }\n return value;\n }", "public void write(SecureObject o, int value){\n o.currentValue = value;\n //System.out.println(o.name +\" was written as \" + value);\n }", "public static int writeLong(OutputStream target, long value) throws IOException {\n target.write((byte) (value >>> 56));\n target.write((byte) (value >>> 48));\n target.write((byte) (value >>> 40));\n target.write((byte) (value >>> 32));\n target.write((byte) (value >>> 24));\n target.write((byte) (value >>> 16));\n target.write((byte) (value >>> 8));\n target.write((byte) value);\n return Long.BYTES;\n }", "@Override\n\tpublic void write(DataOutput out) throws IOException {\n\t\tout.writeInt(bytes);\n\t\tout.write(buffer);\t\t\n\t}", "public void writeShort(short i) throws IOException {\n\t\twriteByte((byte) (i >> 8));\n\t\twriteByte((byte) i);\n\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 setBit(int index, int value);", "protected void setBit(long bitIndex) {\r\n\t long intIndex = (bitIndex >>> ADDRESS_BITS_PER_UNIT);\r\n\t bits[(int)(intIndex / ONE_MB_INTS)][(int)(intIndex % ONE_MB_INTS)] \r\n\t |= 1 << (bitIndex & BIT_INDEX_MASK);\r\n\t }" ]
[ "0.75539684", "0.65938956", "0.6479795", "0.6440481", "0.6436055", "0.6388251", "0.62809914", "0.6249815", "0.6180217", "0.6176746", "0.61518824", "0.6136407", "0.6042642", "0.601091", "0.59830916", "0.59516233", "0.5939045", "0.5918052", "0.5907059", "0.589231", "0.58569926", "0.5831636", "0.5792813", "0.57579905", "0.57358646", "0.57040787", "0.5661437", "0.56549513", "0.5649076", "0.5624712", "0.5584581", "0.5515031", "0.53938866", "0.5354105", "0.5340637", "0.5329153", "0.53066456", "0.526653", "0.52538073", "0.52513623", "0.5235175", "0.52324784", "0.519351", "0.51841575", "0.5178752", "0.5171971", "0.5133678", "0.513072", "0.51300967", "0.512719", "0.5122916", "0.5121348", "0.5115656", "0.51056427", "0.51004297", "0.5093323", "0.5087635", "0.5083816", "0.5066039", "0.50626725", "0.5056489", "0.5056489", "0.5038471", "0.49999788", "0.49947315", "0.49763626", "0.49695352", "0.49683267", "0.49368376", "0.49277267", "0.49224976", "0.49141738", "0.49050954", "0.48986796", "0.48955718", "0.48663372", "0.48651683", "0.48613033", "0.48358294", "0.483214", "0.48305133", "0.48284966", "0.48282743", "0.48281643", "0.48169097", "0.4813304", "0.4813011", "0.4810646", "0.47916466", "0.47821078", "0.4770437", "0.47681513", "0.4766976", "0.47666878", "0.47654945", "0.47648674", "0.47624597", "0.47559884", "0.47537193", "0.47449464" ]
0.7504852
1
Write the current cache to the stream and reset the buffer.
public void flush () throws IOException { if (m_nBufferedBitCount > 0) { if (m_nBufferedBitCount != CGlobal.BITS_PER_BYTE) if (LOGGER.isDebugEnabled ()) LOGGER.debug ("Flushing BitOutputStream with only " + m_nBufferedBitCount + " bits"); m_aOS.write ((byte) m_nBuffer); m_nBufferedBitCount = 0; m_nBuffer = 0; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void flush() throws IOException {\n // nothing to do with cached bytes\n }", "@Override\n public void write(OutputStream outputStream) throws IOException {\n try {\n final Stopwatch watch = new Stopwatch();\n IOUtils.copy(inputStream, outputStream);\n LOGGER.debug(\"Streamed from the cache without resolving in {}\",\n watch);\n } finally {\n inputStream.close();\n // N.B.: Restlet will close the output stream.\n }\n }", "public static void flush() {\n try {\n sDiskLruCache.flush();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void flush() {\n\r\n int inflatedSize = buffer.position();\r\n deflator.setInput(buffer.getBuffer(), 0, inflatedSize);\r\n deflator.finish();\r\n int deflatedSize = deflator.deflate(compressionBuffer.array());\r\n deflator.reset();\r\n\r\n try {\r\n outputStream.writeInt(deflatedSize);\r\n outputStream.writeInt(inflatedSize);\r\n outputStream.write(compressionBuffer.array(), 0, deflatedSize);\r\n }\r\n catch (IOException e) {\r\n throw new RuntimeException(\"Failed to write compressed data to stream\", e);\r\n }\r\n\r\n buffer.clear();\r\n compressionBuffer.clear();\r\n }", "public void 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(){\r\n mBufferData.clear();\r\n }", "@Override\n public void flush() throws IOException {\n byteBufferStreamOutput.flush();\n }", "public void flush() throws IOException\n {\n getStream().flush();\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 checkStreamState();\n flushIOBuffers();\n }", "public void close() throws IOException {\n maxStreamPos = cache.length();\n\n seek(maxStreamPos);\n flushBefore(maxStreamPos);\n super.close();\n cache.close();\n cache = null;\n cacheFile.delete();\n cacheFile = null;\n stream.flush();\n stream = null;\n StreamCloser.removeFromQueue(closeAction);\n }", "@Override\n\tpublic void flushBuffer() throws IOException {\n\t}", "public void flush(){\n\t\ttry{\n\t\t\tse.write(buffer, 0, bufferPos);\n\t\t\tbufferPos = 0;\n\t\t\tse.flush();\n\t\t}catch(IOException ioex){\n\t\t\tfailures = true;\n\t\t}\n\t}", "@Override\n public void flushBuffer() throws IOException {\n\n }", "@Override\n public void reset() throws IOException {\n\td.numObjectsCached = 0;\n\td.reset();\n }", "public void flush() {\n final Collection<MappedPage> cachedPages = cache.getValues();\n for (final MappedPage mappedPage : cachedPages)\n mappedPage.flush();\n }", "private void writeObject(final ObjectOutputStream out) throws IOException\n\t{\n\t\t// Read the data\n\t\tif (dfos.isInMemory())\n\t\t{\n\t\t\tcachedContent = get();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tcachedContent = null;\n\t\t\tdfosFile = dfos.getFile();\n\t\t}\n\n\t\t// write out values\n\t\tout.defaultWriteObject();\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 }", "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}", "@Override\n\tpublic void clear() {\n\t\twriteLock.lock();\n\t\ttry {\n\t\t\tcache.clear();\n\t\t} finally {\n\t\t\twriteLock.unlock();\n\t\t}\n\t}", "public void close() throws IOException {\n // nothing to do with cached bytes\n }", "public void flush()\r\n {\r\n if ( content != null )\r\n {\r\n content.flush();\r\n }\r\n }", "public void flush() {\n wasFlushed = true;\n }", "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 }", "private BufferedWriter openCacheFile() throws IOException {\n boolean hasLock = false;\n while (!hasLock) {\n synchronized (this) {\n if (!lock) {\n lock = true;\n hasLock = true;\n }\n }\n if (!hasLock) try {\n Thread.sleep(1000);\n } catch (Exception e) {\n }\n }\n tmpFile = new File(cacheDir, \"changeLog.tmp\");\n if (tmpFile.exists()) tmpFile.delete();\n tmpFile.createNewFile();\n BufferedWriter out = new BufferedWriter(new FileWriter(tmpFile));\n if (cacheFile.exists()) {\n BufferedReader in = new BufferedReader(new FileReader(cacheFile));\n String nextLine = in.readLine();\n while (nextLine != null) {\n out.write(nextLine);\n out.newLine();\n nextLine = in.readLine();\n }\n in.close();\n }\n return out;\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}", "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 synchronized void flush() throws IOException {\n\t\tcheckNotClosed();\n\t\ttrimToSize();\n\t\tjournalWriter.flush();\n\t}", "public void flush() {\n flushed = true;\n }", "public synchronized void reset() {\n java.util.Arrays.fill(buffer, (byte) 0);\n writeHead = 0;\n cumulativeWritten = 0;\n synchronized (allReaders) {\n for (Reader reader : allReaders) {\n reader.reset();\n }\n }\n }", "@Override\r\n public void flush ()\r\n {\r\n }", "public void flush();", "public void flush();", "public void flush();", "public void flush();", "public void flush() {\n writer.flush();\n }", "public void dispose( String cache )\r\n throws IOException\r\n {\r\n // nothing needs to be done\r\n }", "private void flushWrite() throws IOException, BadDescriptorException {\n if (reading || !modes.isWritable() || buffer.position() == 0) return; // Don't bother\n \n int len = buffer.position();\n buffer.flip();\n int n = descriptor.write(buffer);\n \n if(n != len) {\n // TODO: check the return value here\n }\n buffer.clear();\n }", "void writeCurrentBuffer();", "public void flush() throws IOException;", "public void flush() throws IOException;", "public void flush() throws IOException;", "public void flush() {\n synchronized (getLock()) {\n sIndexWritersCache.flush(this);\n sIndexReadersCache.removeIndexReader(this);\n }\n }", "@Override\n public void flush()\n {\n }", "public void syncCache() {\n for (String s : this.cache.keySet()) {\n JsonDocument document = this.cache.get(s);\n document.save(new File(directory, s + \".json\"));\n }\n }", "void flushToOutputStream(OutputStream outputStream) throws IOException;", "public void flush() {\n\t\t\n\t}", "@Override\r\n\tpublic void flush() {\n\t\t\r\n\t}", "@Override\n public void flush() {\n }", "@Override\n public void flush() {\n }", "@Override\n public void flush() {\n }", "@Override\n protected void writeStreamHeader() throws IOException {\n reset();\n }", "public abstract void flush();", "public abstract void resetBytesWritten();", "@Override\n public void clearCache() {\n }", "@Override\n\t\tpublic void flush() throws IOException {\n\t\t\twriteBlock(true);\n\t\t\tout.flush();\n\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\tif (debug) {\n\t\t\t\tlog.flush();\n\t\t\t}\n\t\t}", "@Override\n public void flush() throws IOException {\n }", "public void flushBuffer() throws IOException {\n this.response.flushBuffer();\n }", "private void clearResetCache() {\n for(IoBuffer buf : resetCache) {\n buf.free();\n }\n resetCache = null;\n }", "public void flushBuffers()\n throws IOException\n {\n pool.moveToStart();\n Buffer buffer;\n while (pool.getValue() != null)\n {\n buffer = pool.remove();\n if (buffer.isDirty())\n {\n file.seek(buffer.getBlockNumber() * BLOCK_SIZE);\n file.write(buffer.readBlock());\n diskWrites++;\n }\n }\n }", "@Override\r\n\tpublic void flush() {\n\t}", "public void flush() throws IOException {\n mPrintWriter.flush();\n }", "private void writeInMemoryData() throws IOException {\n out.write(totalBitsInChunk);\n\n /* write chunk of bytes itself */\n out.write(chunk, 0, chunkIndex < chunk.length ? chunkIndex + 1 : chunkIndex);\n out.flush();\n\n zeroChunk();\n }", "void resetCache();", "public void storeInCache() {\r\n lockValueStored = IN_CACHE;\r\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}", "@Override\r\npublic boolean writeEntries(CacheObject obj) {\n\t\r\n\ttry {\r\n\t\t\r\n\t\tthis.writer.append(\"[\"+obj.toString()+\"]\\r\\n\");\r\n\t\tthis.writer.flush();\r\n\t} catch (IOException e) {\r\n\t\tSystem.out.println(\"Error Occured while writing into File :\"+ e.getMessage());\r\n\t\te.printStackTrace();\r\n\t\t\r\n\t} \r\n\t\r\n\treturn false;\r\n}", "private void outRestore() throws IOException {\n if (lastWriteOffset > 0) {\n outSeek(lastWriteOffset);\n lastWriteOffset = -1;\n }\n }", "@Override\n\tpublic void flush() {\n\t}", "private void reset()\r\n {\r\n log.info(\"{0}: Resetting cache\", logCacheName);\r\n\r\n try\r\n {\r\n storageLock.writeLock().lock();\r\n\r\n if (dataFile != null)\r\n {\r\n dataFile.close();\r\n }\r\n\r\n final File dataFileTemp = new File(rafDir, fileName + \".data\");\r\n Files.delete(dataFileTemp.toPath());\r\n\r\n if (keyFile != null)\r\n {\r\n keyFile.close();\r\n }\r\n final File keyFileTemp = new File(rafDir, fileName + \".key\");\r\n Files.delete(keyFileTemp.toPath());\r\n\r\n dataFile = new IndexedDisk(dataFileTemp, getElementSerializer());\r\n keyFile = new IndexedDisk(keyFileTemp, getElementSerializer());\r\n\r\n this.recycle.clear();\r\n this.keyHash.clear();\r\n }\r\n catch (final IOException e)\r\n {\r\n log.error(\"{0}: Failure resetting state\", logCacheName, e);\r\n }\r\n finally\r\n {\r\n storageLock.writeLock().unlock();\r\n }\r\n }", "public void flush()\r\n\tthrows IOException\r\n\t{\r\n\tgetWriter().flush();\r\n\treturn;\r\n\t}", "public void flush() throws IOException {\n try {\n out.flush();\n } catch (IOException ioe) {\n String msg = \"Failed to flush \" + this;\n LOG.error(msg, ioe);\n throw new IOException(msg, ioe);\n }\n }", "public void clear() {\n streams.clear();\n }", "public void resetBuffer() {\n this.response.resetBuffer();\n }", "public void clearCache();", "public void clear() {\n cache.clear();\n }", "protected void writeToCache(TileInfo tile,byte[] data)\n {\n final RemoteTileFetchInfo info = (tile != null) ? tile.fetchInfo : null;\n final File cacheFile = (info != null) ? info.cacheFile : null;\n if (cacheFile == null || data == null || data.length < 1)\n return;\n\n final File parent = cacheFile.getParentFile();\n if (parent != null && !parent.isDirectory() && !parent.mkdirs()) {\n return;\n }\n\n try (OutputStream fOut = new FileOutputStream(cacheFile)) {\n fOut.write(data);\n } catch (Exception e) {\n Log.w(\"RemoteTileFetcher\", \"Failed to write cache\", e);\n }\n }", "void clearCache();", "void clearCache();", "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 void flushCache()\n {\n cachedDecomposition = null;\n cachedCentroid = null;\n cachedBounds = null;\n }", "@Override\n public void flush()\n throws XMLStreamException\n {\n try {\n mWriter.flush();\n } catch (IOException ie) {\n throw new WstxIOException(ie);\n }\n }", "public void flush() throws IOException {\n\t\t// TODO implement me\n\t}", "void flush() throws IOException;", "void flush() throws IOException;", "void flush() throws IOException;", "void flushBuffer();", "public void seek(long pos) throws IOException {\n checkClosed();\n\n if (pos < flushedPos) {\n throw new IndexOutOfBoundsException();\n }\n\n cache.seek(pos);\n this.streamPos = cache.getFilePointer();\n maxStreamPos = Math.max(maxStreamPos, streamPos);\n this.bitOffset = 0;\n }", "public StreamWriter write(byte[] buffer)\r\n {\r\n \t_stream.write(buffer,0,buffer.length);\r\n\t\treturn this;\r\n }", "public void clear() {\n this.cache.clear();\n }", "private void flushCache()\n {\n Entry<Integer, String> eldestEntry;\n File oldestFile;\n long eldestFileSize;\n int count = 0;\n\n int MAX_DELETE_FILE = 4;\n int MAX_CACHE_FILE_ALLOW = 1000;\n\n while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n {\n eldestEntry = mLinkedHashMap.entrySet().iterator().next();\n oldestFile = new File(eldestEntry.getValue());\n eldestFileSize = oldestFile.length();\n mLinkedHashMap.remove(eldestEntry.getKey());\n oldestFile.delete();\n cacheSize = mLinkedHashMap.size();\n cacheByteSize -= eldestFileSize;\n count++;\n }// while (count < MAX_DELETE_FILE && (cacheSize > MAX_CACHE_FILE_ALLOW || cacheByteSize > maxCacheByteSize))\n }", "public void flush () {\n\t\ttracker.flush();\n\t}", "void flush();", "void flush();", "void flush();", "void flush();", "void flush();" ]
[ "0.7185766", "0.66448516", "0.6196303", "0.60597956", "0.5956738", "0.5956467", "0.5927725", "0.5879097", "0.5830112", "0.5695371", "0.5652917", "0.56518126", "0.5637477", "0.56295735", "0.56115365", "0.55749166", "0.5557118", "0.55533534", "0.5540078", "0.55305594", "0.5527377", "0.55074126", "0.5505089", "0.549903", "0.54832244", "0.54656804", "0.5454422", "0.5450936", "0.5446668", "0.5444765", "0.5439146", "0.54342455", "0.54342455", "0.54342455", "0.54342455", "0.54296", "0.54227215", "0.5412009", "0.5403643", "0.5391486", "0.5391486", "0.5391486", "0.53885716", "0.533157", "0.53285325", "0.53089935", "0.5293742", "0.5293426", "0.5291298", "0.5291298", "0.5291298", "0.5278965", "0.5277042", "0.5273342", "0.52526337", "0.5242816", "0.5241138", "0.52405375", "0.52336484", "0.52199036", "0.5216336", "0.52156025", "0.5211654", "0.52088606", "0.5200732", "0.5190149", "0.5190149", "0.5190149", "0.5190149", "0.5178893", "0.5160896", "0.51602536", "0.51577514", "0.5133847", "0.5126741", "0.51232225", "0.5117614", "0.51153433", "0.51075155", "0.5103655", "0.5095728", "0.5095728", "0.50945914", "0.5075321", "0.5067887", "0.5058391", "0.5056001", "0.5056001", "0.5056001", "0.505568", "0.5053399", "0.5051434", "0.5039792", "0.50335723", "0.50228244", "0.5016931", "0.5016931", "0.5016931", "0.5016931", "0.5016931" ]
0.535311
43
Flush the data and close the underlying output stream.
public void close () { StreamHelper.flush (this); StreamHelper.close (m_aOS); m_aOS = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void close() {\n this.output.flush();\n this.output.close();\n }", "public void close() {\n try { out.flush(); } catch (Exception e) {}; // just to be sure\n \n cleanup();\n }", "public void flush() throws IOException\n {\n getStream().flush();\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 }", "public void close() throws IOException\n {\n try\n {\n flush();\n }\n catch (IOException ignored)\n {\n // ignore\n }\n getStream().close();\n }", "@Override\n public void close() throws IOException {\n flush();\n }", "public static void flush() {\n if (outputEnabled)\n out.flush();\n }", "@Override\n public void flush() throws IOException {\n byteBufferStreamOutput.flush();\n }", "public static void end()\n {\n if(out!=null) {\n out.println(\"close \" + name);\n out.flush();\n }\n }", "public void close() throws IOException {\n\t\tout.flush();\n\t\tout.close();\n\t}", "public void close() {\n if (numDigits > 0)\n flush();\n try {\n output.close();\n } catch (IOException e) {\n throw new RuntimeException(e.toString());\n }\n }", "public void flush() throws IOException;", "public void flush() throws IOException;", "public void flush() throws IOException;", "public void flush() throws IOException {\n mPrintWriter.flush();\n }", "public void closeStream() {\n output.close();\n input.close();\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 close() {\r\n\t\tflush();\r\n\t\ttry {\r\n\t\t\tdos.close();\r\n\t\t\ts.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}\r\n\r\n\t}", "public void flush(){\r\n mBufferData.clear();\r\n }", "public void flush() throws IOException {\n try {\n out.flush();\n } catch (IOException ioe) {\n String msg = \"Failed to flush \" + this;\n LOG.error(msg, ioe);\n throw new IOException(msg, ioe);\n }\n }", "public void flush()\r\n\tthrows IOException\r\n\t{\r\n\tgetWriter().flush();\r\n\treturn;\r\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 }", "public void flush() throws IOException {\n\t\t// TODO implement me\n\t}", "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}", "public void close() {\n this.output = null;\n }", "public void close() throws IOException {\n\t\tif (keyClass != null) {\n\t\t keySerializer.close();\n\t\t valueSerializer.close();\n\t\t}\n\n\t\t// Write EOF_MARKER for key/value length\n\t\tWritableUtils.writeVInt(out, EOF_MARKER);\n\t\tWritableUtils.writeVInt(out, EOF_MARKER);\n\t\tdecompressedBytesWritten += 2 * WritableUtils.getVIntSize(EOF_MARKER);\n \n\t\t//Flush the stream\n\t\tout.flush();\n \n\t\tif (compressOutput) {\n\t\t // Flush\n\t\t compressedOut.finish();\n\t\t compressedOut.resetState();\n\t\t}\n \n\t\t// Close the underlying stream iff we own it...\n\t\tif (ownOutputStream) {\n\t\t out.close();\n\t\t}\n\t\telse {\n\t\t // Write the checksum\n\t\t checksumOut.finish();\n\t\t}\n\n\t\tcompressedBytesWritten = rawOut.getPos() - start;\n\n\t\tif (compressOutput) {\n\t\t // Return back the compressor\n\t\t CodecPool.returnCompressor(compressor);\n\t\t compressor = null;\n\t\t}\n\n\t\tout = null;\n\t\tif(writtenRecordsCounter != null) {\n\t\t writtenRecordsCounter.increment(numRecordsWritten);\n\t\t}\n\t }", "public synchronized void close() throws IOException {\n\t\t\tfinish();\n\t\t\tout.close();\n\t\t}", "public void flush() {\n\t\t\n\t}", "@Override\n public void flush() throws IOException {\n }", "public void flush() {\n\r\n int inflatedSize = buffer.position();\r\n deflator.setInput(buffer.getBuffer(), 0, inflatedSize);\r\n deflator.finish();\r\n int deflatedSize = deflator.deflate(compressionBuffer.array());\r\n deflator.reset();\r\n\r\n try {\r\n outputStream.writeInt(deflatedSize);\r\n outputStream.writeInt(inflatedSize);\r\n outputStream.write(compressionBuffer.array(), 0, deflatedSize);\r\n }\r\n catch (IOException e) {\r\n throw new RuntimeException(\"Failed to write compressed data to stream\", e);\r\n }\r\n\r\n buffer.clear();\r\n compressionBuffer.clear();\r\n }", "public void flush() {\n writer.flush();\n }", "@Override\n public void flush() throws IOException {\n checkStreamState();\n flushIOBuffers();\n }", "public void flush();", "public void flush();", "public void flush();", "public void flush();", "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 close() {\n backingIterator.close();\n outputBuffer.close();\n isClosed = true;\n }", "public void flush()\r\n {\r\n if ( content != null )\r\n {\r\n content.flush();\r\n }\r\n }", "protected void close() {\n\t\tif(sOutput != null) {\n\t\t\ttry {\n\t\t\t\tsOutput.close();\n\t\t\t} catch (IOException e) {\n\t\t\t\tSystem.err.println(\"error closing output stream\");\n\t\t\t}\n\t\t\t\n\t\t\tsOutput = null;\n\t\t}\n\t}", "void flush() throws IOException;", "void flush() throws IOException;", "void flush() throws IOException;", "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/* */ }", "protected void close()\n {\n out.close();\n }", "@Override\n\t\tpublic void flush() throws IOException {\n\t\t\twriteBlock(true);\n\t\t\tout.flush();\n\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\t// it's a bit nasty if an exception is thrown from the log,\n\t\t\t// but ignoring it can be nasty as well, so it is decided to\n\t\t\t// let it go so there is feedback about something going wrong\n\t\t\tif (debug) {\n\t\t\t\tlog.flush();\n\t\t\t}\n\t\t}", "public void shutdown() {\n try {\n this.writer.close();\n } catch (IOException e) {\n log.warn(i18n.getString(\"problemCloseOutput\", e), e);\n }\n }", "public void flush() throws IOException {\n dos.flush();\n }", "public abstract void flush();", "@Override\n protected void done() throws IOException {\n if (this.closeable instanceof Flushable) {\n ((Flushable)((Object)this.closeable)).flush();\n }\n if (!this.ignoreCloseExceptions) {\n this.closeable.close();\n return;\n }\n try {\n this.closeable.close();\n return;\n }\n catch (IOException iOException) {\n return;\n }\n }", "public void close()\n throws IOException\n {\n outstream.close();\n }", "public synchronized void flush() throws IOException {\n\t\tcheckNotClosed();\n\t\ttrimToSize();\n\t\tjournalWriter.flush();\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}", "@Override\r\n public void flush ()\r\n {\r\n }", "@Override\n\t\tpublic void close() throws IOException {\n\t\t\tout.close();\n\t\t}", "@Override\r\n\tpublic void flush() {\n\t\t\r\n\t}", "public void flush() {\n flushed = true;\n }", "@Override\n public void flush()\n throws XMLStreamException\n {\n try {\n mWriter.flush();\n } catch (IOException ie) {\n throw new WstxIOException(ie);\n }\n }", "@Override\n public void flush() throws IOException {\n FileDescriptor myFd = fd;\n if (myFd == null) throw new IOException(\"socket closed\");\n\n // Loop until the output buffer is empty.\n Int32Ref pending = new Int32Ref(0);\n while (true) {\n try {\n // See linux/net/unix/af_unix.c\n Os.ioctlInt(myFd, OsConstants.TIOCOUTQ, pending);\n } catch (ErrnoException e) {\n throw e.rethrowAsIOException();\n }\n\n if (pending.value <= 0) {\n // The output buffer is empty.\n break;\n }\n\n try {\n Thread.sleep(10);\n } catch (InterruptedException ie) {\n break;\n }\n }\n }", "public void flush() throws Exception{\r\n\tout.flush();\r\n}", "private void closeOutputStream() {\n\t\tPrintStreamManagement.closeOutputStream();\n\t}", "void flushToOutputStream(OutputStream outputStream) throws IOException;", "@Override\n public void close() throws IOException \n { \n decorator.flush(entries);\n }", "@Override\n public void flush()\n {\n }", "@Override\n public void close() throws IOException\n {\n _out.close();\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}", "public synchronized void flush() throws IOException {\n if (sink != null) {\n synchronized (sink) {\n sink.notifyAll();\n }\n }\n }", "@Override\n public void flush() {\n }", "@Override\n public void flush() {\n }", "@Override\n public void flush() {\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}", "public void close() throws IOException {\n for(IoBuffer buf : data) {\n buf.free();\n }\n data.clear();\n super.close();\n }", "public void close_report() {\n if (output != null) {\n output.flush();\n output.close();\n }\n }", "public void flush() throws IOException {\n // nothing to do with cached bytes\n }", "public void close() {\n try {\n out.close();\n } catch (java.io.IOException ioe) {\n }\n ;\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}", "public void flushStreamSpecs();", "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 close() throws IOException {\n\t\tthis.finish();\n\t\tthis.buffer.close();\n\t\t}", "static public void flushPrintStream() {\n \t out.flush();\n }", "public void flush() {\n wasFlushed = true;\n }", "public void flush() throws IOException {\n if (firstMessage != null) {\n writer.messageWrite(firstMessage);\n }\n firstMessage = null;\n }", "public void close(){\r\n\t\tif(managedOutputSocket != null) managedOutputSocket.close();\r\n\t\tmanagedOutputSocket = null;\r\n\t\tsuper.close();\r\n\t}", "public void close(){\n\t\ttry {\n\t\t\tout.close();\n\t\t\tout = null;\n\t\t}\n\t\tcatch (IOException e){\n\t\t\tSystem.out.println(\"Problem closing file.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "void flush() throws EDIStreamException;", "@Override\n public void close(){\n outObject = \"close-\";\n try {\n out.writeObject(outObject);\n } catch (IOException ex) {\n }\n }", "@Override\n public void flush () throws IOException\n {\n if ((null == _topParts) || (null == _mmDelimiter))\n throw new EOFException(\"No parsing in progress to flush\");\n if (null == this.out)\n throw new EOFException(\"No underlying output stream to flush\");\n this.out.flush();\n }", "@Override\n public void close() {\n LOG.info(\"Closing stream writer:\" + streamName);\n shutdown();\n try {\n awaitTermination(1, TimeUnit.MINUTES);\n } catch (InterruptedException ignored) {\n }\n }", "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 }" ]
[ "0.7499195", "0.7429289", "0.72625047", "0.7160761", "0.7141077", "0.7127868", "0.7063722", "0.7058587", "0.7009032", "0.69720453", "0.6936616", "0.6726618", "0.6726618", "0.6726618", "0.6715964", "0.6679421", "0.66646886", "0.6638646", "0.6625574", "0.66143566", "0.6606098", "0.6574006", "0.65610373", "0.65535694", "0.6520802", "0.64878404", "0.64760476", "0.64455724", "0.6413064", "0.6409667", "0.6407064", "0.63962245", "0.6394133", "0.6394133", "0.6394133", "0.6394133", "0.6392965", "0.6392278", "0.6389161", "0.6387844", "0.6368333", "0.6368333", "0.6368333", "0.6356851", "0.6334496", "0.631498", "0.6296468", "0.62924045", "0.62635624", "0.6251468", "0.62398434", "0.6239006", "0.6226546", "0.6215931", "0.6204044", "0.6160311", "0.61469364", "0.6140988", "0.6135633", "0.6110664", "0.6102084", "0.60994154", "0.6071666", "0.6052554", "0.6045194", "0.6043656", "0.6040509", "0.6039024", "0.6039024", "0.6039024", "0.6028259", "0.6028259", "0.6028259", "0.6028259", "0.6016896", "0.601342", "0.6010441", "0.6008667", "0.6004136", "0.6004136", "0.6004136", "0.6004136", "0.6004136", "0.6004136", "0.6004136", "0.6004136", "0.5998433", "0.59924686", "0.5991528", "0.5988801", "0.5941851", "0.5938841", "0.59296495", "0.59285593", "0.5922858", "0.59116095", "0.5909759", "0.590803", "0.58956486", "0.58909976" ]
0.6856476
11
Checks if a given string is null, blank or empty and returns true if so. Mostly useful for LocalData strings because they can be unpredictable when not explicitly assigned a value.
public static boolean isBlankOrNullString(String s){ return s == null || s.isEmpty() || s.equalsIgnoreCase(""); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static boolean isNullOrEmpty(String string) {\n return string == null || string.isEmpty();\n }", "public static final boolean isBlank(final String string) {\n return Objects.isNull(string) || string.isEmpty();\n }", "public static boolean isBlank(String str) {\n\t\tboolean flag = false;\n\t\tif (str == null || \"\".equals(str.trim())) {\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "public boolean isNullOrEmpty(String str){\n \treturn str!=null && !str.isEmpty() ? false : true;\n }", "public static boolean stringNullOrEmpty ( String string ) {\r\n if ( string == null ) return true;\r\n if ( string.isEmpty() ) return true;\r\n return false;\r\n }", "public static boolean isNullOrEmpty(String strIn)\r\n {\r\n return (strIn == null || strIn.equals(\"\"));\r\n }", "static boolean isNullOrEmpty(String str){\n if(str == null){\n return true;\n }\n if(str.isEmpty()){\n return true;\n }\n if(str.length() == 0){\n return true;\n }\n if(str.equalsIgnoreCase(\" \")){\n return true;\n }\n return false;\n }", "public static boolean isBlank(String str) {\n\n\t\treturn trimAndConvertEmptyToNull(str) == null;\n\n\t}", "public static boolean isBlank(String str) {\n return StringUtils.isBlank(str);\n }", "public static Boolean IsStringNullOrEmpty(String value) {\n\t\treturn value == null || value == \"\" || value.length() == 0;\n\t}", "public static boolean isBlank(String str)\n {\n if( str == null || str.length() == 0 )\n return true;\n return false;\n }", "public static boolean isNullOrEmpty(String str) {\n return str == null || str.isEmpty();\n }", "public static boolean isNullOrEmpty(String string) {\r\n\t\treturn string == null || string.isEmpty();\r\n\t}", "public static boolean isNullOrEmpty(String string) {\n return string == null || string.isEmpty();\n }", "public static boolean checkNullOrEmptyString(String inputString) {\n\t\treturn inputString == null || inputString.trim().isEmpty();\n\t}", "public static boolean isNotBlank(String str) {\n\t\tboolean flag = false;\n\t\tif (str != null && !\"\".equals(str)) {\n\t\t\tflag = true;\n\t\t}\n\t\treturn flag;\n\t}", "public static boolean isBlank(String str) {\n return (str == null || str.trim().length() == 0);\n }", "public static boolean isBlank(String str) {\n return (str == null || str.trim().length() == 0);\n }", "public static boolean isBlank(String str) {\n return (str == null || str.trim().length() == 0);\n }", "public static final boolean isNullOrEmpty(final String str) {\n\t\treturn (str == null || str.isEmpty());\n\t}", "public static boolean isEmptyString(String theString)\n {\n return (theString == null || theString.length() == 0 || theString.equalsIgnoreCase(\"null\"));\n }", "public static boolean notEmpty(String str) {\n return str != null && !\"\".equals(str) && !\"null\".equalsIgnoreCase(str);\n }", "public static boolean isNotEmpty(String str) {\n\treturn null != str && !str.trim().isEmpty();\n }", "private static boolean isBlank(String str)\r\n/* 254: */ {\r\n/* 255: */ int length;\r\n/* 256:300 */ if ((str == null) || ((length = str.length()) == 0)) {\r\n/* 257:301 */ return true;\r\n/* 258: */ }\r\n/* 259: */ int length;\r\n/* 260:302 */ for (int i = length - 1; i >= 0; i--) {\r\n/* 261:303 */ if (!Character.isWhitespace(str.charAt(i))) {\r\n/* 262:304 */ return false;\r\n/* 263: */ }\r\n/* 264: */ }\r\n/* 265:306 */ return true;\r\n/* 266: */ }", "public static boolean isStringEmpty(String str) {\r\n return (str == null) || \"\".equals(str.trim());\r\n }", "public static boolean isNullOrEmpty(final String s) {\n return (s == null) || s.trim().equals(\"\");\n }", "public static boolean isBlankOrNull(String string) {\n\n //check if parameter is null\n if (string == null) return true;\n\n //check if string is empty\n if (string.isEmpty()) return true;\n\n //check if string consists of whitespaces only\n if (string.trim().isEmpty()) return true;\n\n //after all checks are negative\n return false;\n\n }", "public static boolean checkEmptiness(String str) {\r\n return str != null && !str.trim().equals(\"\");\r\n }", "public static boolean isBlank(String text) {\n return text == null || isBlank(text.toCharArray());\n }", "public static boolean isBlank(String str) {\n int strLen;\n if (str != null && (strLen = str.length()) != 0) {\n for (int i = 0; i < strLen; ++i) {\n if (!Character.isWhitespace(str.charAt(i))) {\n return false;\n }\n }\n return true;\n } else {\n return true;\n }\n }", "public static boolean isNotNull(String txt){\n return txt!=null && txt.trim().length()>0 ? true: false;\n }", "public static boolean isEmptyString(String s) {\n return (s==null || s.equals(\"\"));\n }", "public static boolean isNotEmpty(String string) {\n\t\treturn string != null || !\"\".equals(string);\n\t}", "public static boolean isNullOrEmpty(String string) {\n\t\treturn string == null || string.length() == 0;\n\t}", "public static boolean isBlank(String str) {\r\n int strLen;\r\n if (str == null || (strLen = str.length()) == 0) {\r\n return true;\r\n }\r\n for (int i = 0; i < strLen; i++) {\r\n if ((Character.isWhitespace(str.charAt(i)) == false)) {\r\n return false;\r\n }\r\n }\r\n return true;\r\n }", "public static boolean isBlank(String value) {\r\n return ((value == null) || (value.trim().length() == 0));\r\n }", "public static boolean isNotBlank(String str) {\n return !StringUtil.isBlank(str);\n }", "public static boolean isNullOrEmptyString(Object obj) {\r\n\t\treturn (obj instanceof String) ? ((String)obj).trim().equals(\"\") : obj==null;\r\n\t}", "public static boolean isBlank(String str) {\n int strLen;\n if (str == null || (strLen = str.length()) == 0) {\n return true;\n }\n for (int i = 0; i < strLen; i++) {\n if ((!Character.isWhitespace(str.charAt(i)))) {\n return false;\n }\n }\n return true;\n }", "public static boolean isNotNull(String txt){\n\t\treturn txt!=null && txt.trim().length()>0 ? true: false;\n\t}", "private static boolean isBlank(CharSequence str) {\n int strLen;\n if (str == null || (strLen = str.length()) == 0) {\n return true;\n }\n for (int i = 0; i < strLen; i++) {\n if ((Character.isWhitespace(str.charAt(i)) == false)) {\n return false;\n }\n }\n return true;\n }", "public static final boolean isNullOrWhitespace(final String str) {\n\t\treturn (str == null || str.trim().isEmpty());\n\t}", "public static boolean isNullOrEmpty(String text) {\n if (text == null || text.equals(\"\")) {\n return true;\n } else {\n return false;\n }\n }", "public static boolean isNotEmpty(String value) {\n\t\treturn value != null && !value.trim().isEmpty();\n\t}", "public static boolean isEmptyOrNullString (final String in) {\n\t\treturn StringUtils.EMPTY_STRING.equals(in);\n\t}", "public static boolean isNullOrEmptyNotTrim(final String s) {\r\n\t\treturn (s == null || s.length() == 0);\r\n\t}", "public static boolean isBlank(String value) {\n return value == null || value.trim().length() == 0;\n }", "public static boolean isBlank(String value) {\n return value == null || value.trim().length() == 0;\n }", "public static boolean isBlank(String string) {\n if (string == null || string.length() == 0)\n return true;\n\n int l = string.length();\n for (int i = 0; i < l; i++) {\n if (!isWhitespace(string.codePointAt(i)))\n return false;\n }\n return true;\n }", "public static boolean isNotNull(String txt) {\n return txt != null && txt.trim().length() > 0 ? true : false;\n }", "public static boolean isNotBlank(String str) {\r\n return !StringUtil.isBlank(str);\r\n }", "private boolean checkForEmptyString(Object value)\n\t{\n\t\tif (value == null || value.toString().isEmpty()) \n\t\t\treturn true;\n\t\treturn false;\n\t}", "protected boolean notEmpty(String s) {\n return s != null && s.length() != 0;\n }", "private boolean hasValue (String s) { return s != null && s.length() != 0; }", "public static boolean isBlank(String s) {\n if (s == null || s.isEmpty()) {\n return true;\n }\n int len = s.length();\n if (len == 1) {\n return Character.isWhitespace(s.charAt(0));\n }\n if (!Character.isWhitespace(s.charAt(len - 1))) {\n return false;\n }\n return is(s, Character::isWhitespace);\n }", "public static boolean isNullOrEmpty(String text) {\n return text == null || text.trim().isEmpty() || text.trim().equals(\"null\");\n }", "public static boolean nullOrEmpty(String value) {\n\t\tif (null == value || \"\".equals(value.trim()) || \"null\".equalsIgnoreCase(value.trim())) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public static boolean isNotNull(String str) {\n\t\tif(str==null||\"\".equals(str.trim())||\"NULL\".equals(str.trim().toUpperCase())){\n\t\t\treturn false ;\n\t\t}\n\t\treturn true;\n\t}", "public static final boolean isEmptyStr(String str)\n\t{\n\t\tif (null == str || \"\".equals(str))\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public static boolean isStringFullEmpty(String string) {\n\t\treturn !string.isBlank() && !string.isEmpty();\n\t}", "public static boolean isNullOrEmpty(final String s) {\r\n\t\treturn (s == null || s.trim().length() == 0);\r\n\t}", "@Contract(\"null -> true\")\n public static boolean isBlankOrNull(final String arg) {\n return (arg == null || arg.replaceAll(\"\\\\s\", \"\").length() == 0);\n }", "public static boolean isNullOrEmpty(String content){\n return (content !=null && !content.trim().isEmpty() ? false :true);\n }", "public static boolean nullity(String param) {\n return (param == null || param.trim().equals(\"\"));\n }", "public static boolean notNullNotBlank(String input) {\n if (null != input && !input.trim().equals(\"\"))\n return true;\n\n return false;\n }", "public static boolean isNotEmpty(String str) {\n return !StringUtil.isEmpty(str);\n }", "public static boolean isEmpty(String string) {\n\treturn null == string || string.trim().isEmpty();\n }", "private static boolean hasString(String value) {\n if (!value.trim().equals(\"\") && value.length() > 0) {\n return true;\n }\n\n return false;\n\n }", "public static boolean IsNullOrEmpty(String text) {\n\t\treturn text == null || text.length() == 0;\n\t}", "public static boolean isNotBlank(String value) {\r\n return !isBlank(value);\r\n }", "private static boolean isEmpty(String str) {\n return str == null || str.trim().isEmpty();\n }", "private boolean checkForEmpty(String str){\r\n\t\tString sourceStr = str;\r\n\t\tif(StringUtils.isBlank(sourceStr)){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}", "public static boolean isEmpty(CharSequence str) {\n if (str == null || str.length() == 0 || \"null\".equals(str))\n return true;\n else\n return false;\n }", "public static boolean isValid(String str) {\r\n\t\tif(str != null && !str.isEmpty())\r\n\t\t\treturn true;\r\n\t\treturn false;\r\n\t}", "public static boolean isNullOrEmpty(String param) {\n return param == null || param.trim().length() == 0;\n }", "public static boolean isEmpty(String aString)\r\n {\r\n return aString==null || aString.trim().length()==0;\r\n }", "public static boolean isEmpty(String value)\n {\n return (isNull(value)) || value.trim().length() == 0;\n }", "public static boolean isEmpty(String value)\n {\n return (isNull(value)) || value.trim().length() == 0;\n }", "public boolean isNotEmpty(String input){\r\n if(input == null) return false;\r\n if(input.isEmpty()) return false;\r\n return true;\r\n }", "public static boolean isNotEmpty(String str) {\r\n return !StringUtil.isEmpty(str);\r\n }", "public static boolean isEmpty(String string) {\n\t\treturn string == null || \"\".equals(string);\n\t}", "public static boolean isEmpty(final String value) {\n\t\treturn value == null || value.trim().length() == 0 || \"null\".endsWith(value);\n\t}", "public static boolean isEmptyString(String text) {\n return (text == null || text.trim().length() == 0);\n }", "private boolean isEmpty(String string) {\n\t\treturn string == null || string.isEmpty();\n\t}", "public static Boolean isBlank(String value) {\n return StringUtils.isBlank(value);\n }", "public static boolean isEmpty(String s) {\n return s == null || s.isEmpty();\n }", "public static boolean isEmpty(String value) {\n return (value == null || value.trim().equals(\"\"));\n }", "public static boolean isEmpty(String str) {\n return StringUtils.isEmpty(str);\n }", "public static boolean isNotBlank(String value) {\n return !isBlank(value);\n }", "protected boolean isEmpty(String s) {\n return s == null || s.trim().isEmpty();\n }", "abstract boolean canMatchEmptyString();", "private boolean isEmpty(String str) {\n return (str == null) || (str.equals(\"\"));\n }", "public static boolean isEmpty(String value) {\n return ((value == null) || (value.trim().length() == 0));\n }", "private boolean isEmpty(String s) {\n return s == null || \"\".equals(s);\n }", "public static boolean isNotEmpty(String value) {\n return !isEmpty(value);\n }", "public static boolean isEmpty(String input) {\n if (input == null || input.isEmpty() || (\"\").equals(input.trim()))\n return true;\n return false;\n }", "public static boolean isNotEmpty(String text) {\r\n\t\treturn (!(text == null || text.isEmpty() || text.length() == 0 || text.equals(\"\")));\r\n\t}", "public static final boolean isNull(String value) {\r\n return value == null || (value.length() == NULL_VALUE.length() && value.toUpperCase().equals(NULL_VALUE));\r\n }", "public static boolean isNotBlank(String s) {\r\n System.out.println(\"MyUtils#isNotBlank\");\r\n return true;\r\n }", "public static boolean isEmpty(String s) {\n\t\treturn s != null && s.length() == 0;\n\t}" ]
[ "0.79323953", "0.7895362", "0.78867465", "0.78657144", "0.78355724", "0.7791323", "0.7773504", "0.7760261", "0.7755227", "0.7753756", "0.7735256", "0.7725751", "0.7724159", "0.77158666", "0.7698668", "0.76969206", "0.7628927", "0.7628927", "0.7628927", "0.7619387", "0.7618386", "0.76150614", "0.75947803", "0.75921726", "0.75785005", "0.7572833", "0.7563228", "0.75583625", "0.7555141", "0.75501364", "0.75241846", "0.7523032", "0.7521778", "0.7514692", "0.75030494", "0.7489223", "0.7479486", "0.7467079", "0.74614614", "0.745961", "0.74528104", "0.7444315", "0.7441391", "0.7437966", "0.7423878", "0.7419316", "0.74147266", "0.74147266", "0.74130815", "0.74008477", "0.73885286", "0.7383607", "0.73831093", "0.73779815", "0.73729074", "0.7349767", "0.7339688", "0.7339639", "0.7337134", "0.7333106", "0.73221016", "0.72856414", "0.72835565", "0.7280604", "0.7271379", "0.7263951", "0.72415566", "0.7227099", "0.722077", "0.72171503", "0.7214416", "0.7206828", "0.7203971", "0.7203499", "0.719448", "0.718373", "0.71828306", "0.71828306", "0.71746707", "0.71732205", "0.7170978", "0.7149012", "0.71387833", "0.7135111", "0.7115453", "0.70961404", "0.70752424", "0.70735806", "0.70690215", "0.7034374", "0.7025179", "0.7018859", "0.7010549", "0.700946", "0.69903624", "0.6989938", "0.6984134", "0.6970881", "0.69675106", "0.69610095" ]
0.80071306
0
called when the mod should be initialized
public void initialize(Game game);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void initModules()\n {\n\n }", "public void init() {\r\n\r\n\t}", "private void init() {\n\n\t}", "private void init() {\n\n\n\n }", "public void autonomousInit() {\n \n }", "protected void _init(){}", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "private void init() {\n }", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "public void init() {\n\n\t}", "protected void init() {\n\t}", "protected void init() {\n\t}", "public void init() {\n\t\t\n\t}", "public void init(){\n \n }", "private void init() {\n }", "protected void init() {\n }", "protected void init() {\n eachModule(ModuleHandler.INSTANCE::depends);\n \n // init, only enabled modules are run\n eachEnabledModule(ModuleHandler.INSTANCE::init);\n \n // listen for server world loading events\n // LoadWorldCallback.EVENT.register(server -> eachEnabledModule(m ->\n // m.loadWorld(server)));\n }", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {\n\t}", "public void init() {}", "public void init() {}", "public void init() {\n \n }", "public void init() {\n\t\n\t}", "public void init()\n {\n }", "@Override\n public void autonomousInit() {\n \n }", "protected void init(){\n }", "private void initialize() {\n\t}", "protected void initialize()\n\t{\n\t}", "@Override\n public void runInit() {\n }", "@Override\n public void autonomousInit() {\n }", "@Override\n public void autonomousInit() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "public void init() {\n }", "private void initialize() {\n }", "private void _init() {\n }", "public void init() {\n\r\n\t}", "public void init() {\n\r\n\t}", "public void autonomousInit() {\n }", "public void autonomousInit() {\n }", "public void init() {\n\t\t}", "private void initialize() {\n\t\t\n\t}", "@Override\r\n\tprotected void processInit() {\n\t\t\r\n\t}", "public void init() {\n\n }", "public void init() {\n\n }", "public void autonomousInit() {\n\t\t\n\t}", "public void init() { }", "public void init() { }", "public void init()\n { \t\n }", "public static void init() {\n\t\t\n\t}", "protected void initialize()\r\n {\n }", "@Override\n\tpublic void autonomousInit() {\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\r\n\tpublic final void init() {\r\n\r\n\t}", "public void initialize() {\n\t}", "public void initialize() {\n\t}", "protected void initialize() {\n\t\t\n\t}", "protected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "protected void initialize() {\r\n }", "protected void initialize() {\r\n }", "protected void init() {\n // to override and use this method\n }", "public void initialize() {\r\n }", "@Override\r\n\tpublic void init() {\n\t\tsuper.init();\r\n\t}", "protected void onInit() {\n\t}", "public void init(){\r\n\t\t\r\n\t}", "@Override\r\n\tprotected void processInit() {\n\r\n\t}", "public void initialize() {\n // TODO\n }", "protected void initialize() {\n\n\t}", "public void initialize () {\n }", "protected void initialize() {\n\n }", "public static void init() {\n\n }", "public final void init() {\n onInit();\n }", "public void initialize() {\n }", "protected void initialize() {}", "protected void initialize() {}", "protected void initialize() {\n\t}", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "protected void initialize() {\n }", "public static void init() {\n }" ]
[ "0.7788447", "0.7701383", "0.76790607", "0.7666945", "0.766515", "0.7658357", "0.76489204", "0.76489204", "0.76489204", "0.76489204", "0.763324", "0.763324", "0.763324", "0.76122326", "0.76122326", "0.7597996", "0.7590685", "0.7590647", "0.75902146", "0.7585857", "0.75835186", "0.75835186", "0.75835186", "0.757872", "0.757872", "0.756313", "0.75562423", "0.7555979", "0.7555561", "0.75535697", "0.75505", "0.7546441", "0.7546412", "0.7545986", "0.7545986", "0.7542492", "0.7542492", "0.7542492", "0.7542492", "0.75369704", "0.75339806", "0.75216097", "0.75216097", "0.75188994", "0.75188994", "0.7515341", "0.75139457", "0.7509455", "0.75090444", "0.75090444", "0.7487117", "0.74596524", "0.74596524", "0.7458042", "0.74565583", "0.74536586", "0.7445187", "0.7430475", "0.74278396", "0.742742", "0.742742", "0.7416233", "0.7416233", "0.7403112", "0.7402798", "0.7402798", "0.7402047", "0.73941886", "0.73933643", "0.739293", "0.7392893", "0.7391742", "0.7390858", "0.7388959", "0.7387125", "0.73857844", "0.73843944", "0.73775166", "0.7363612", "0.7362699", "0.7362699", "0.73530966", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7341679", "0.7339666" ]
0.0
-1
called when the mod should be deinitialized
public void deinitialize(Game game);
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void deinit() {\n\t\tsafeLocationTask.cancel();\n\t\t//Deinit all remaining worlds\n\t\tworlds.values().forEach(WorldHandler::deinit);\n\t\t//Clear members\n\t\tworlds.clear();\n\t\toptions = null;\n\t}", "public void unInit() {\n this.bdv = null;\n this.brz = null;\n }", "public void unloaded(){\n\t\tloaded=false;\n\t}", "public void performUninitialisation() {\n \t\t// subclasses can override the behaviour for this method\n \t}", "private void onModuleDestroy() {\n //!\n //! Handle the destroy notification.\n //!\n mLifecycle.onPause();\n mLifecycle.onDispose();\n\n //!\n //! Unload resource module.\n //!\n mResources.onModuleDestroy();\n mResources.unloadAll();\n\n //!\n //! Unload input module.\n //!\n mInputThread.cancel();\n mInput.onModuleDestroy();\n\n //!\n //! Unload audio module.\n //!\n mAudioThread.cancel();\n mAudio.onModuleDestroy();\n\n //!\n //! Unload render module.\n //!\n //! NOTE: Update the render to destroy all render component(s)\n //!\n mRender.onModuleDestroy();\n\n //!\n //! Unload display module.\n //!\n mDisplay.onModuleDestroy();\n }", "private void onModuleDestroy() {\n //!\n //! Handle the destroy notification.\n //!\n mLifecycle.onPause();\n mLifecycle.onDispose();\n\n //!\n //! Unload resource module.\n //!\n mResources.onModuleDestroy();\n\n mResources.unloadAll();\n\n //!\n //! Unload input module.\n //!\n mInputThread.cancel();\n mInput.onModuleDestroy();\n\n //!\n //! Unload audio module.\n //!\n mAudioThread.cancel();\n mAudio.onModuleDestroy();\n\n //!\n //! Unload render module.\n //!\n //! NOTE: Update the render to destroy all render component(s)\n //!\n mRender.onModuleUpdate();\n mRender.onModuleDestroy();\n\n //!\n //! Unload display module.\n //!\n mDisplay.onModuleDestroy();\n }", "@Override\n protected void onDestroy() {\n Initialization.exit(this);\n super.onDestroy();\n }", "public static void destroy() {\n handler = null;\n initialized = false;\n }", "protected void reset(){\n inited = false;\n }", "@Override\n\tpublic void onDestroy() {\n\t\tsuper.DeInit();\n\t\tsuper.onDestroy();\n\t}", "public static void destruct() {\n\t\tinstance = null;\n\t}", "public static void DrivingNavi_clean(){\n navInitManager = null;\n\n }", "@PreDestroy\r\n\tprivate void deinit() {\n\t if ((threadPool != null) &&\r\n\t (!threadPool.isShutdown())) {\r\n\t \r\n\t threadPool.shutdown();\r\n\t threadPool = null;\r\n }\r\n\t}", "public void cleanUp(){\n glDeleteTextures(ID);\n }", "public void unLoad() {\n try{\n deInitialize();\n iMenu.unLoad();\n }catch(Exception e){\n Logger.loggerError(\"Menu canvas unload Error\"+e.toString());\n }\n }", "public void uninitialize()\n {\n System.out.println(\"Real time session unitializing...\");\n for (ChannelSession channelSession : channelSessions)\n {\n if (channelSession.channel() == null)\n {\n if (channelSession.channel() == null)\n {\n channelSession.uninit(error);\n System.exit(TransportReturnCodes.SUCCESS);\n }\n \n closeDictAndItemStreams();\n }\n closeDictAndItemStreams();\n }\n\n // flush before exiting\n flushChannel();\n\n closeChannel();\n }", "private void reinit() {\n init();\n }", "public void unloadGameTextures()\r\n {\n }", "public void onDestroy() {\n if ((getChangingConfigurations() & 128) == 128 && this.f12125b != null) {\n this.f12125b.mo6021b(true);\n }\n super.onDestroy();\n }", "void decoller();", "@Override\r\n\tprotected void destroyLogic() {\n\r\n\t}", "public void postInit() {\n }", "void deactivate() {\n\t\tanimalTemplate = null;\n\t\tscope=null;\n\t\ttriggerOnID=false;\n\t\tstate = null;\n\t\tlog.debug(bundleMarker, \"deactivating...\");\n\t}", "public static void destroyIfInitalized() {\n if ( instance != null )\n {\n instance.destroy();\n instance = null;\n }\n }", "@Override\n\tpublic void unloadResources() {\n\t\ttextureManager.unLoadTextures();\n\t}", "public void shutdown() {\n\t\tInput.cleanUp();\n\t\tVAO.cleanUp();\n\t\tTexture2D.cleanUp();\n\t\tResourceLoader.cleanUp();\n\t}", "@Override\n\tpublic void detalhar() {\n\t\t\n\t}", "public static void destroy() {\n\t}", "void destroy() {\n INSTANCE = null;\n }", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "@Override\n\tpublic void afterInit() {\n\t\t\n\t}", "public static void deinitialisePanel(){\n\t\tif(BrewPanelStatus.equals(\"Initialised\")) {\n\t\t\tBrewPanel.setVisible(false);\n\t\t\ttabbedBrewPane.removeAll();\n\t\t\tBrewPanel.removeAll();\n\t\t\tLegacyApp.WineBrewDBFrame.getContentPane().remove(BrewPanel);\n\t\t\tBrewPanelStatus = \"DeInitialised\";\n\t\t}\n\t}", "public void initAfterUnpersistence() {\n //From a legacy bundle\n if (sources == null) {\n sources = Misc.newList(getName());\n }\n super.initAfterUnpersistence();\n openData();\n }", "public static void Finalize() {\n isReady = false;\n\n try {\n for (RemoteField f : exported)\n UnicastRemoteObject.unexportObject(f, true);\n if (registry != null)\n UnicastRemoteObject.unexportObject(registry, true);\n } catch (Exception e) {\n e.printStackTrace();\n System.exit(-1);\n }\n }", "public void shutdown(){\n\t\tAndroidSensorDataManagerSingleton.cleanup();\n\t}", "@Override public void postInit()\n\t\t{\n\t\t}", "@After\n public void teardown() {\n RoboGuice.Util.reset();\n }", "public void onChunkUnload()\n {\n //RadioMod.logger.info(\"Unload\");\n RadioMod.instance.musicManager.radioSources.get(this.uuid).stopMusic();\n }", "public void destroy() {\n\t\texcludeItem = null;\r\n\t\tloginPage=null;\r\n\t\tloaginAction=null;\r\n\t\tauthority = null;\r\n\t}", "@Override\n protected void onDestroy() {\n engine = null;\n\n super.onDestroy();\n }", "private void init() {\n clearCaches();\n }", "public void unload() {\n releasePressureToReturn();\n releasePressureToShooter();\n latch(false);\n// reloaded = false;\n }", "@Override\n public void destroy() {\n // clean up any resources created by initialize\n }", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\t\t\r\n\t}", "void postInit();", "void postInit();", "@Override\n\tpublic void postInit() {\n\t\t\n\t}", "public static void shutdown()\n\t{\n\t\tinstance = null;\n\t}", "void minecraftChunkUnloaded() {\n\t\tthis.lastUnloadingTime = System.currentTimeMillis();\n\t}", "@Override\r\n\tpublic void destroy()\r\n\t{\n\t\t\r\n\t}", "void destruct()\n\t{\n\t\t super.destruct();\n\t\tlistenerList = null;\n\t}", "protected void onFinalInit() {\n\n }", "@Override\r\n public void destroy() {\n }", "@Override\r\n public void destroy() {\n }", "public void onDestroy(){\n\t\tsuper.onDestroy();\n\t\tdoUnbind();\n\t}", "@Override\n public void destroy() {\n }", "@Override\n public void destroy() {\n }", "@Override\n public void destroy() {\n }", "@Override\n public void destroy() {\n }", "@Override\n public void destroy() {\n }", "@Override\n public void onDestroy() {\n mPluginManager = null;\n \n super.onDestroy();\n }", "public void tearDown() {\n instance = null;\n }", "public void destroy()\r\n\t{\r\n\t\tlog.fine(\"destroy\");\r\n\t}", "public void reInit() {\n super.reInit();\n m_strPackage = null;\n if (m_subPackages != null) {\n m_subPackages.clear();\n }\n }", "static void clearCache() {\n CONFIG_VALUES = null;\n RUN_MODE = null;\n }", "@Override\n public void destroy() {\n\n }", "@Override\n public void destroy() {\n\n }", "@Override\n public void destroy() {\n\n }", "@Override\r\n\tpublic void destroy() {\n\t}", "@Override\r\n\t\tpublic void destroy() {\n\t\t\t\r\n\t\t}", "public void cleanup() {\n\t\tref.removeEventListener(listener);\n\t\tmodels.clear();\n\t\tmodelNames.clear();\n\t\tmodelNamesMapping.clear();\n\t}", "public void shutdown() {\r\n //shut down MbModule\r\n super.shutdown();\r\n }", "@Override\n\tpublic void destroy() {\n\t\t// Do nothing\n\t}", "void destroy() {\n destroyCache();\n }", "public void unload(){ \n load.unloadFirst(); \n }", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@Override\r\n\tprotected void onDestroy() {\n\t\tsuper.onDestroy();\r\n\t}", "@AfterClass\n\tpublic static void teardown() {\n\t\tdataMunger = null;\n\n\t}", "@Override\n \tprotected void onDestroy() {\n \t\tsuper.onDestroy();\n \t}", "@Override\n public void destroy() {\n }", "public void reset() {\n //mLoader.reset();\n start();\n }", "void deactivate(){\n \tthis.config.clear();\n\t\tlog.debug(bundleMarker,\"deactivating...\");\n\t}", "public void estDisponible() {\n\n\t}", "@Override\r\n\tpublic void destroy() {\n\r\n\t}", "@Override\r\n\tpublic void destroy() {\n\r\n\t}" ]
[ "0.7635833", "0.7244844", "0.71360904", "0.6962539", "0.6949151", "0.6945195", "0.6820373", "0.68159163", "0.67155004", "0.66619825", "0.6545442", "0.6490356", "0.6463049", "0.6455565", "0.6440304", "0.63790166", "0.63626146", "0.6292889", "0.62855756", "0.62733924", "0.6264895", "0.62629485", "0.6259426", "0.6258333", "0.6216249", "0.62005883", "0.61947435", "0.6183035", "0.61805874", "0.6173888", "0.6173888", "0.6168226", "0.61654544", "0.61591005", "0.61571", "0.615697", "0.614182", "0.6140936", "0.61349833", "0.6131048", "0.61305493", "0.61303204", "0.61266285", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61199826", "0.61196923", "0.61196923", "0.61148095", "0.6111086", "0.6108443", "0.6107345", "0.6102928", "0.60944206", "0.6087922", "0.6087922", "0.60868704", "0.6081132", "0.6081132", "0.6081132", "0.6081132", "0.6081132", "0.60781366", "0.60669965", "0.60585666", "0.6056919", "0.60552067", "0.60533124", "0.60533124", "0.60533124", "0.60515034", "0.6047883", "0.60462487", "0.6045836", "0.6044914", "0.6044215", "0.6044009", "0.6041113", "0.6041113", "0.6041113", "0.6041113", "0.6039376", "0.60364735", "0.60352975", "0.6034319", "0.60268843", "0.6024857", "0.60209554", "0.60209554" ]
0.6608201
10
TODO Autogenerated method stub
public static void main(String[] args) { Scanner s = new Scanner(System.in); System.out.println("Enter the value of n :"); int n = s.nextInt(); System.out.println("Enter the value of r :"); int r = s.nextInt(); int nPr = getPermutations(n,r); System.out.println("The permutation value = " + nPr); }
{ "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 Using the property (n)P(r) = n (n1)P(r1)
private static int getPermutations(int n, int r) { if(r == 0) return 1; return (n * getPermutations(n-1 , r-1)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static long nPr(int n, int r) {\n if(r > n)\n return 0;\n if(r == 0)\n return 1;\n\n return nPr(n-1, r) + r * nPr(n-1, r-1);\n }", "public ResultPoint getRp1() {\n return rp1;\n }", "public void setAllP(){\n\t\tAllP=(AllR%PerR==0)?(AllR/PerR):(AllR/PerR+1);\n\t}", "private static long nPr(int[] frequency, int i, int n, int r)\n { \n //nao ha mais posicoes disponiveis para incluir elementos de permutacao\n if (r == 0) return 1;\n \n //retornara o calculo de nPr\n long npr = 0;\n \n //numero de elementos que ainda sobrarao, no proximo nivel de recursao,\n //para serem distribuidos pelas posicoes restantes\n n = n - frequency[i]; \n \n //chama o metodo recursivamente enquanto o numero de elementos que \n //restarem para serem distribuidos for maior ou igual ao numero de \n //posicoes disponiveis no proximo nivel de recursao\n for (\n int assignedsElements = Math.min(r, frequency[i]); \n (assignedsElements >= 0) && (n >= r - assignedsElements);\n assignedsElements--\n )\n \n //nCr() retorna o numero de maneiras que se pode distribuir \n //<assignedsElements> elementos de permutacao em <r> posicoes\n //Eh multiplicado pelas permutacoes que ainda se pode fazer nas \n //posicoes restantes com os elementos restantes\n npr += nCr(r, assignedsElements)\n * \n nPr(frequency, i+1, n, r - assignedsElements);\n \n return npr;\n }", "public static long nPr(int n, int r)\n throws IllegalArgumentException\n {\n if ((r > n) || (r < 0) || (n < 0))\n throw new IllegalArgumentException();\n long npr = 1;\n for (int p = n - r + 1; p <= n; p++)\n npr *= p;\n return npr;\n }", "public void calcP() {\r\n\t\tthis.setP(sick/people.size());\r\n\t}", "public int getP() {\r\n\t\treturn this.p;\r\n\t}", "public BigInteger getP() {return(p);}", "public Vect3 PerpR() {\n\t\treturn new Vect3(y,-x,0);\n\t}", "public Z getP() {\n return mP;\n }", "protected final IntervalNode getP() {\n\treturn(this.p);\n }", "public Point getP1(){\n return this.p1;\n }", "private static String bigIntegerNChooseRModP(int N, int R, int P) {\n if (R == 0) return \"1\";\n BigInteger num = BigInteger.ONE;\n BigInteger den = BigInteger.ONE;\n while (R > 0) {\n num = num.multiply(BigInteger.valueOf(N));\n den = den.multiply(BigInteger.valueOf(R));\n BigInteger gcd = num.gcd(den);\n num = num.divide(gcd);\n den = den.divide(gcd);\n N--;\n R--;\n }\n num = num.divide(den);\n num = num.mod(BigInteger.valueOf(P));\n return num.toString();\n }", "public ResultPoint getRp2() {\n return rp2;\n }", "public byte[] getP1P2() {\n\treturn new byte[]{getP1(), getP2()};\n }", "public int getP1Points() {\n return p1Points;\n }", "public double getPerimiter(){return (2*height +2*width);}", "static int[] permutationEquation(int[] p) {\n int[] ret = new int[p.length];\n HashMap<Integer,Integer> values = new HashMap<>();\n for(int i = 0; i < p.length; i++){\n values.put(p[i],i+1);\n }\n for(int i = 1; i <=p.length; i++){\n int index1 = values.get(i);\n int index2 = values.get(index1);\n ret[i-1] = index2;\n }\n return ret;\n }", "public void setPerR(int PerR){\n\t\tthis.PerR=PerR;\n\t}", "public Node<T1> getPnode() {\r\n\t\treturn pnode;\r\n\t}", "public double Poids () {return this.masse()*G/(this.r*this.r);}", "public VectorN getR()\n\t{\n\t\tVectorN out = new VectorN(3);\n\t\tout.x[0] = this.rv.x[0];\n\t\tout.x[1] = this.rv.x[1];\n\t\tout.x[2] = this.rv.x[2];\n\t\treturn out;\n\t}", "public static long compute(int N, int R, int P) {\n if (R == 0) return 1;\n\n long[] factorial = new long[N + 1];\n factorial[0] = 1;\n\n for (int i = 1; i <= N; i++) {\n factorial[i] = factorial[i - 1] * i % P;\n }\n\n return (factorial[N]\n * ModularInverse.modInv(factorial[R], P)\n % P\n * ModularInverse.modInv(factorial[N - R], P)\n % P)\n % P;\n }", "Term getP();", "LP getLp();", "public String getPn() { return this.pn; }", "public Point getP2(){\n return this.p2;\n }", "public double getProbabilityP() {\n return this.mProbabilityP;\n }", "public int getP2Points() {\n return p2Points;\n }", "public int get_num_p(){ return num_p; }", "public Matrix P0 ();", "public byte[] getP() {\n return p;\n }", "void calculatePR( int iteration){\n\t\t\n\t\ttotal_nodes = inlinks.size();\n\t\tfor(String page : inlinks.keySet()){\n\t\t\tPageRank.put(page, (1/(double)(total_nodes)));\n\t\t\tinit_PageRank.put(page, (1/(double)(total_nodes)));\n\t\t}\n \n double ppx = 0.0;\n boolean cond = true;\n int itr =1;\n // while(iteration >0){ //Used for Graph page rank calculation; c\n while(cond){ \n \tSystem.out.println(\"Iteration\"+itr); \n double sinkPR = 0;\n for(String s: sink){\n \tsinkPR = sinkPR + (PageRank.get(s)); //calculate total sink PR\n }\n \n double entropy = 0.0;\n \n for(String s: PageRank.keySet()){\n \tdouble newPR;\n \tnewPR = (1.0 -d)/total_nodes;\n \tnewPR = newPR + (d*sinkPR)/total_nodes;\n \tSet<String> in = inlinks.get(s); //pages pointing to P\n \tif(in != null){\n \t\tfor(String s1 : in){\n \t\t\tnewPR = newPR + d* (PageRank.get(s1)/outlinks_count.get(s1)); \t\t \n \t\t}\n \t} \n \t\tnew_PageRank.put(s, newPR);\n \t\tentropy = entropy + (newPR*(Math.log(newPR)/Math.log(2))); //entroPy calculation\n \t}\n \n PageRank.putAll(new_PageRank);\n ppx = Math.pow(2,-1*entropy);\n System.out.println(\"perplexity : \"+ ppx);\n ppx_list.add(ppx);\n if(ppx_list.size()>5) \n \tcond= !check(4);\n \n itr++;\n \t\n //\t iteration --; //Used for page Rank Calculation of Graph\n } \n\t}", "public String toString() {\r\n\t\treturn \"P\";\r\n\t}", "@java.lang.Override\n public double getPValue() {\n return pValue_;\n }", "@Override\n public void pp(){\n PP=3+2*nivel;\n }", "public double prom () {\n return this.sum()/this.size();\n }", "public Node getp() {\n\t\treturn this.p;\n\t}", "@java.lang.Override\n public double getPValue() {\n return pValue_;\n }", "private Proof addNRightEquality(int n, Proof p) {\n Equals eq = (Equals) p.lastExpr();\n Expression a = eq.firstArgument;\n Expression b = eq.secondArgument;\n if (n == 0) {\n Proof equalitySymConvert = equalitySymConvert(faxm6Gen(b));\n Proof equalitySymConvert1 = equalitySymConvert(faxm6Gen(a));\n Proof equalityRightConvert = equalityRightConvert(equalitySymConvert1, p);\n return equalityShuffle(equalitySymConvert, equalityRightConvert);\n }\n n = n - 1;\n Proof sucResp1 = faxm1Convert(addNRightEquality(n, p));\n Proof eqSubL = equalityRightConvert(equalitySymConvert(faxm5Gen(a, intToLit(n))), sucResp1);\n return equalityShuffle(equalitySymConvert(faxm5Gen(b, intToLit(n))), eqSubL);\n }", "@Override\r\n public double calPx() {\n return this.n.getPx(); \r\n }", "public ResultPoint getRp3() {\n return rp3;\n }", "@Override\n public int compare(Pen p1, Pen p2) {\n int r1 = p1.remaining();\n int r2 = p2.remaining();\n if(r1 == 1) r1 = 7;\n if(r2 == 1) r2 = 7;\n return Integer.compare(r1,r2);\n }", "public Percolation(int n){\n\t\tif (n <= 0)\n\t\t\tthrow new IllegalArgumentException(\"input must be greater than 0\");\n\t\tstoreVar = n; \n\t\tgrid = new boolean[n*n + 2]; \n\t\tfullgrid = new boolean[n*n + 2];\n\t\tvirtualTop = 0; \n\t\tvirtualBottom = grid.length-1; \n\t\tgrid[0] = true; \n\t\tgrid[grid.length-1] = true; \n\t\tfullgrid[0] = true;\n\t\tunionFind = new WeightedQuickUnionUF(grid.length);\n\t\tbackwash = new WeightedQuickUnionUF(n*n + 1);\n\t\topenSites = 0;\n\n\t}", "@Override\n public int precedence() {\n return 1;\n }", "@Override\n public int precedence() {\n return 1;\n }", "public static long nCPr(int n, int r)\n throws IllegalArgumentException\n {\n /*\n chamada de nPr() verifica se argumentos n e r sao validos\n */\n return (r == 0) ? 1 : nPr(n,r) / r; \n }", "private void setP1( Point p1 ){\n this.p1=p1;\n }", "public Vect3 PerpL() {\n\t\treturn new Vect3(-y,x,0);\n\t}", "public Point getPoint1() {\r\n return p1;\r\n }", "public double getProbRecombinacion() {\n return getDouble(params.probRecombinacion, PROP_PROB_RECOMB, 0.5);\n }", "private Double getProzent(Double points)\r\n \t{\r\n \t\treturn points / totalPoints;\r\n \t}", "protected Point getNewPointRelatively(Point p){\n\t\treturn new Point((int) (p.getX()-CELL_SIZE),(int) (p.getY()-CELL_SIZE));\n\t}", "@Override\n\tProp getp1() {\n\t\treturn null;\n\t}", "public Unit<Dimensionless> ppm() {return ppm;}", "public void setp(Node n) {\n\t\tp = n;\n\t}", "public Image getP(){\n\t\treturn a;\n\t}", "public Matrix getPheromones() {\n\t\treturn Pheromones;\n\t}", "public int calcProjOnCntOverHRange(int nLeft, int nRightP1) {\n if (nLeft >= nRightP1) {\n return 0; // invalid range.\n }\n byte[] blistProjs = new byte[nRightP1 - nLeft]; // initial value is 0.\n ImageChops imgChops = ExprSeperator.extractConnectedPieces(this);\n for (int idx = 0; idx < imgChops.mlistChops.size(); idx ++) {\n ImageChop chopThis = imgChops.mlistChops.get(idx);\n for (int idx1 = Math.max(nLeft, chopThis.getLeftInOriginalImg());\n idx1 < Math.min(nRightP1, chopThis.getRightP1InOriginalImg()); idx1 ++) {\n blistProjs[idx1 - nLeft] = 1;\n }\n }\n\n int nSumOn = 0;\n for (int idx = 0; idx < nRightP1 - nLeft; idx ++) {\n nSumOn += blistProjs[idx];\n }\n return nSumOn;\n }", "public java.lang.Integer getPRDIXREL() {\n return PRDIXREL;\n }", "int permute(int p) {\n int index = wrap(p);\n if (_map != null && _map.containsKey(index)) {\n return _map.get(index);\n } else {\n return index;\n }\n }", "public int mirrorReflection(int p, int q) {\n int k = 1;\n while (q * k % p != 0)\n k++;\n if (q * k / p % 2 != 0)\n return k % 2 == 0 ? 2 : 1;\n return k % 2 ==0 ? -1 : 0;\n }", "public P primeiro() {\n\t\treturn this.primeiro;\n\t}", "public void multiply(Polynomial p1) {\n\t\tPolynomial p=new Polynomial();\r\n\t\t// taking 2 loops to multiply the coeff and storing it in this newly created polnomial\r\n\t\tfor(int i=0;i<p1.DynArray.length;i++) {\r\n\t\t\tfor(int j=0;j<this.DynArray.length;j++) {\r\n\t\t\t\t// checking if degree is smaller to initial degree then storing\r\n\t\t\t\tif(i + j <=p.degree)\r\n\t\t\t\t\tp.setDegreeCoefficient( i + j ,p.DynArray[i+j]+p1.DynArray[i] * this.DynArray[j]);\r\n\t\t\t\telse\r\n\t\t\t\t\t// otherwise we'll not have anythig there to add so just putting multiply result\r\n\t\t\t\t\t// this is similar step just like u do in maths multiplication\r\n\t\t\t\t\tp.setDegreeCoefficient(i + j ,p1.DynArray[i] * this.DynArray[j]);\r\n\t\t\t}\r\n\t\t}\r\n//\t\t// p2 -> this\r\n//\t\tint[] updatedArr = new int[10];\r\n//\t\t\r\n//\t\tfor(int i = 0; i < this.DynArray.length; i++) {\r\n//\t\t\tint[] temp = new int[10];\r\n//\t\t\tfor(int j = 0 ; j < p1.DynArray.length; j++) {\r\n//\t\t\t\tint index = i+j;\r\n//\t\t\t\ttemp[index] = this.DynArray[i]*p1.DynArray[j];\r\n//\t\t\t}\r\n//\t\t\t// adding empty arr/ updatedArr and temp arr\r\n//\t\t\tfor(int j = 0 ; j <temp.length; j++) {\r\n//\t \t\t\tupdatedArr[j] = updatedArr[j] + temp[j];\r\n//\t\t\t}\r\n//\t\t}\r\n//\t\t\r\n//\t\t// coping all elements from updatedArr to p2/ this\r\n//\t\tfor(int i=0;i<updatedArr.length;i++) {\r\n//\t\t\tthis.DynArray[i] = updatedArr[i];\r\n//\t\t}\r\n\t}", "public Percolation(int n) {\n this.count = n;\n\n\n }", "public Processor(int n, Point p, int r, Color color) {\n super(n, p, r, color);\n child = new LinkedList<>();\n }", "double getPValue();", "protected abstract void setPpl();", "private int mapping(int p, int q) {\n if (p < 1 || q < 1)\n throw new IllegalArgumentException(\"either p or q or both are below 1\");\n// return -1;\n int k = count * (p - 1) + q - 1;\n return k;\n }", "int kelilingPP(int a, int b){\r\n return 2*(a+b);\r\n }", "public Percolation(int n) {\n if (n < 1) {\n throw new IllegalArgumentException();\n }\n this.n = n;\n this.virtualTop = n * n;\n this.virtualBottom = n * n + 1;\n this.open = new boolean[n * n];\n this.quickUnion = new WeightedQuickUnionUF(virtualBottom);\n this.backwashQuickUnion = new WeightedQuickUnionUF(virtualBottom + 1);\n this.count = 0;\n }", "private double logicalAnd() {\n\t\tdouble q = p<=0.5?p:1-p;\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('t') + q * configMap.get('m') + p * configMap.get('a');\n\t}", "public Percolation(int n) {\n // constructor\n count = n;\n uf = new WeightedQuickUnionUF(count * count + 2);\n idOpen = new int[n * n + 2];\n for (int j = 0; j < (n * n + 2); j++) {\n idOpen[j] = 0;\n }\n }", "@Override\n public int precedence() {\n return 2;\n }", "@Override\n public int precedence() {\n return 2;\n }", "@Override\r\n\tpublic double calculate() {\n\r\n\t\treturn n1 + n2;\r\n\t}", "public static void perm(int n, int[] p, int[] pi, int[] dir) {\n if (n >= p.length) {\r\n for (int i = 0; i < p.length; i++)\r\n \t System.out.print(p[i]);\r\n return;\r\n }\r\n\r\n perm(n+1, p, pi, dir);\r\n for (int i = 0; i <= n-1; i++) {\r\n\r\n // swap \r\n \t System.out.printf(\" (%d %d)\\n\", pi[n], pi[n] + dir[n]);\r\n int z = p[pi[n] + dir[n]];\r\n p[pi[n]] = z;\r\n p[pi[n] + dir[n]] = n;\r\n pi[z] = pi[n];\r\n pi[n] = pi[n] + dir[n]; \r\n\r\n perm(n+1, p, pi, dir); \r\n }\r\n dir[n] = -dir[n];\r\n }", "public Parameter multiplyParameter(Parameter otherPram);", "private static long combination(int n, int r) {\n if (r > n || n <= 0 || r <= 0) {\n throw new IllegalArgumentException(\"r must be smaller than n and both n and r must be positive ints\");\n }\n long result = 1;\n for (int i = r + 1; i <= n; i++) {\n result = result * i;\n }\n long nMinusRFactorial = factorial(n - r);\n result = result / nMinusRFactorial;\n// System.out.println(\"C(\" + n + \", \" + r + \") = \" + result);\n return result;\n }", "public Percolation(int n){\n if(n <= 0) throw new IllegalArgumentException(\"n must be at least one.\");\n this.n = n;\n this.size = (n * n) + 2;\n weightedUnion = new WeightedQuickUnionUF(size);\n openings = new boolean[size];\n }", "public Percolation(int n) {\n if (n <= 0) {\n throw new IllegalArgumentException(\"Percolation grid size : \" + n + \" is <= 0\");\n }\n\n size = n;\n gridNumber = size * size;\n gridGraphVirtualTopBottom = new WeightedQuickUnionUF(gridNumber + 2); // 0 to gridNumber+1\n gridGraphVirtualTop = new WeightedQuickUnionUF(gridNumber + 1); // 0 to gridNumber \n virtualTopGridIndex = gridNumber;\n virtualBottomGridIndex = gridNumber + 1;\n gridState = new boolean[size][size];\n }", "public Boolean evaluatePP (int fnr) throws CGException {\n return Boolean.TRUE;\n }", "public Boolean evaluatePP (int fnr) throws CGException {\n return Boolean.TRUE;\n }", "public Percolation(int n) {\n if (n < 1) throw new IllegalArgumentException(\"n is not positive\");\n virtualTopId = 0;\n virtualBottomId = n * n + 1;\n size = n;\n grid = new boolean[n][n];\n final int componentAmount = n * n + 2;\n mainUnion = new WeightedQuickUnionUF(componentAmount);\n backwashAwareUnion = new WeightedQuickUnionUF(componentAmount);\n }", "@Override public int hashCode() {\n\t\t// for details on the use of result and prime below, see Effective Java, 2E, page 47-48\n\t\tint result = 7; // arbitrary number\n\t\tint prime = 31; // this ensures order matters\n\t\t\n\t\t// factor in each field used in the equals method\n\t\tresult = prime * result + numerator;\n\t\tresult = prime * result + denominator;\n\t\t\n\t\treturn result;\n\t}", "@Override\n\tProp getp2() {\n\t\treturn null;\n\t}", "@Override\r\n public void AjouterPropositionAReponse(long idP, long idR) {\r\n QuestionReponse r = questionReponseFacade.RechercherReponseParID(idR);\r\n QuestionProposition p = questionPropositionFacade.RechercherPropositionParID(idP);\r\n //questionReponseFacade.AjouterListPropositionAReponse(p, r);\r\n }", "public Long getPps() {\n return this.Pps;\n }", "String RamanujanPIFormula()\n\t{\n\n\t\tdouble mulFactor = 2.0 * Math.sqrt(2.0) / 9801.0;\n\t\t\n\t\tBigDecimal mulFactorBigDecimal = new BigDecimal( mulFactor );\n\t\t\n\t\tBigDecimal _4 = new BigDecimal(4);\n\t\tBigDecimal _1103 = new BigDecimal(1103);\n\t\tBigDecimal _26390 = new BigDecimal(26390);\n\t\tBigDecimal _396 = new BigDecimal(396);\n\n\t\tBigDecimal sum = new BigDecimal(0.0);\n\t\t\t\t\n\t\tfor(int k=0; k<100; k++)\n\t\t{\t\t\t\n\t\t\tBigDecimal numer = Factorial( 4*k ).multiply( _1103.add( _26390.multiply( new BigDecimal(k) ) ) ) ;\n\t\t\t\n\t\t\tBigDecimal denom = Factorial(k).pow(4).multiply( _396.pow( 4*k ) );\n\t\t\t\n\t\t\tsum = sum.add ( numer.divide( denom, 1000, RoundingMode.HALF_UP ) );\n\t\t}\n\t\t\n\t\tsum = sum.multiply(mulFactorBigDecimal);\n\t\t\n\t\tsum = BigDecimal.ONE.divide( sum, 1000, RoundingMode.HALF_UP );\n\t\t\n\t\treturn \"\"+sum;\n\t}", "public int getR() {\r\n\t\treturn r;\r\n\t}", "public double getR(){\n return Math.sqrt(this.x * this.x + this.y * this.y);\n }", "public Percolation(int n) {\n if (n <= 0) throw new IllegalArgumentException(\"Bad Input\");\n else {\n size = n;\n // mainObject includes the vsite1 and vsite2 hence it is 2 nos. greater.\n mainObject = new WeightedQuickUnionUF(n * n + 2);\n\n grid = new boolean[n][n];\n vsite1 = 0;\n vsite2 = n*n+1;\n }\n }", "@Override\n public int howManyXp() {\n return 2;\n }", "@Test\n public void testPPermutation() {\n FieldMatrix<Dfp> matrix = new Array2DRowFieldMatrix<>(Dfp25.getField(), testData);\n FieldMatrix<Dfp> p = new FieldLUDecomposition<>(matrix).getP();\n\n FieldMatrix<Dfp> ppT = p.multiply(p.transpose());\n FieldMatrix<Dfp> id =\n new Array2DRowFieldMatrix<>(Dfp25.getField(),\n p.getRowDimension(), p.getRowDimension());\n for (int i = 0; i < id.getRowDimension(); ++i) {\n id.setEntry(i, i, Dfp25.ONE);\n }\n TestUtils.assertEquals(id, ppT);\n\n for (int i = 0; i < p.getRowDimension(); i++) {\n int zeroCount = 0;\n int oneCount = 0;\n int otherCount = 0;\n for (int j = 0; j < p.getColumnDimension(); j++) {\n final Dfp e = p.getEntry(i, j);\n if (e.equals(Dfp25.ZERO)) {\n ++zeroCount;\n } else if (e.equals(Dfp25.ONE)) {\n ++oneCount;\n } else {\n ++otherCount;\n }\n }\n Assert.assertEquals(p.getColumnDimension() - 1, zeroCount);\n Assert.assertEquals(1, oneCount);\n Assert.assertEquals(0, otherCount);\n }\n\n for (int j = 0; j < p.getColumnDimension(); j++) {\n int zeroCount = 0;\n int oneCount = 0;\n int otherCount = 0;\n for (int i = 0; i < p.getRowDimension(); i++) {\n final Dfp e = p.getEntry(i, j);\n if (e.equals(Dfp25.ZERO)) {\n ++zeroCount;\n } else if (e.equals(Dfp25.ONE)) {\n ++oneCount;\n } else {\n ++otherCount;\n }\n }\n Assert.assertEquals(p.getRowDimension() - 1, zeroCount);\n Assert.assertEquals(1, oneCount);\n Assert.assertEquals(0, otherCount);\n }\n }", "public amj p()\r\n/* 543: */ {\r\n/* 544:583 */ return this.f;\r\n/* 545: */ }", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 * n2;\r\n\t}", "@Override\r\n\tpublic double calculate() {\n\t\treturn n1 / n2;\r\n\t}", "public static int[] prc(int[] arr,int p)\r\n {\n char[][] barr=new char[arr.length][];\r\n /*for(int i=0;i<barr.length;i++)\r\n barr[i] = new StringBuilder(\"\");*/\r\n int[] onesarr=new int[barr.length];\r\n int odd,even;\r\n odd=even=0;\r\n for(int i=0;i<arr.length;i++)\r\n {\r\n barr[i]=(Integer.toBinaryString(p^arr[i])).toCharArray();\r\n }\r\n\r\n /*for(int i=0;i<barr.length;i++)\r\n System.out.print(barr[i]+\" \");\r\n System.out.println();*/\r\n /*for(int i=0;i<barr.length;i++)\r\n {\r\n char[] tmp=new char[barr[i].length()];\r\n barr[i].getChars(0, barr[i].length(), tmp, 0);\r\n int t=0;\r\n for(int j=0;j<tmp.length;j++)\r\n {\r\n if(tmp[j]=='1')\r\n t++;\r\n }\r\n onesarr[i]=t;\r\n }*/\r\n for(int i=0;i<barr.length;i++)\r\n {\r\n int t=0;\r\n for(int j=0;j<barr[i].length;j++)\r\n {\r\n if(barr[i][j]=='1')\r\n t++;\r\n }\r\n onesarr[i]=t;\r\n }\r\n /*for(int i=0;i<onesarr.length;i++)\r\n System.out.print(onesarr[i]+\" \");\r\n System.out.println();*/\r\n for(int i=0;i<onesarr.length;i++)\r\n {\r\n if(onesarr[i]%2==0)\r\n even++;\r\n else\r\n odd++;\r\n }\r\n int[] ansarr=new int[2];\r\n ansarr[0]=even;\r\n ansarr[1]=odd;\r\n return ansarr; \r\n }", "RSAKeygen(){\n Random rnd = new Random();\n p = BigInteger.probablePrime(bitlength, rnd);\n BigInteger eTmp = BigInteger.probablePrime(bitlength, rnd);\n\n while(p.equals(eTmp)){\n eTmp = BigInteger.probablePrime(bitlength,rnd);\n }\n\n q = eTmp;\n n = p.multiply(q);\n }", "double p(int M) {\n\t\tif (M == 0) {\n\t\t\treturn 1.0;\n\t\t}\n\t\tdouble m = M;\n\t\treturn ((m - 1) / (m + 1)) * p(M - 2);\n\t}" ]
[ "0.638482", "0.62999386", "0.62463075", "0.6135575", "0.6134556", "0.60696006", "0.59873027", "0.59344417", "0.5865074", "0.5831498", "0.5831238", "0.58296573", "0.5793831", "0.57891506", "0.5674402", "0.5652108", "0.5541175", "0.55362105", "0.5533367", "0.5527229", "0.5466588", "0.545497", "0.5372887", "0.53541654", "0.5352055", "0.53488624", "0.5347659", "0.53459334", "0.5334607", "0.5321265", "0.5320234", "0.5316563", "0.5310288", "0.5305687", "0.5301758", "0.529963", "0.5279015", "0.52734965", "0.5272308", "0.5264921", "0.52539825", "0.52397007", "0.5216914", "0.52082956", "0.52076745", "0.52076745", "0.52072716", "0.51979303", "0.5195161", "0.51846033", "0.5181237", "0.51809067", "0.5165321", "0.5145803", "0.5139178", "0.5125683", "0.51238406", "0.51044166", "0.5103377", "0.5096079", "0.50907695", "0.50877684", "0.50809383", "0.50808793", "0.5080616", "0.50628144", "0.50585467", "0.50488317", "0.50431615", "0.50284266", "0.5023621", "0.5020522", "0.500727", "0.5004804", "0.5004804", "0.50036776", "0.5001981", "0.49946126", "0.49901912", "0.49855083", "0.4983863", "0.49813688", "0.49813688", "0.4980047", "0.49750003", "0.4970779", "0.49649993", "0.49564332", "0.49537203", "0.49477652", "0.49472514", "0.49471736", "0.49408552", "0.49397781", "0.49387252", "0.49382776", "0.49356103", "0.4934419", "0.49297723", "0.4925523" ]
0.5892612
8
Constructor for AES. Constructs a 4x4 byte matrix for each 128bit string.
public AES (String currentLine) { int cursor = currentLine.length(); int[][] currentState = new int[4][4]; for(int row = 0; row < currentState.length; row++) { for(int col = 0; col < currentState[row].length; col++) { String pair = currentLine.substring(cursor-2, cursor); int pairHex = Integer.valueOf(pair, 16); currentState[row][col] = pairHex; cursor = cursor-2; } } printTranspose(currentState, true, true); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public StringToStringTableVector()\n {\n\n m_blocksize = 8;\n m_mapSize = m_blocksize;\n m_map = new StringToStringTable[m_blocksize];\n }", "private AES() {\r\n\r\n }", "private AES() {\n }", "public StringToStringTableVector(int blocksize)\n {\n\n m_blocksize = blocksize;\n m_mapSize = blocksize;\n m_map = new StringToStringTable[blocksize];\n }", "public MainMemory(int numRows) {\n\t\tmemory = new char[numRows][128];\n\t\tavailBytes = numRows * 128;\n\t\tfor (int i = 0; i < memory.length; i++) {\n\t\t\tfor (int j = 0; j < memory[i].length; j++) {\n\t\t\t\tmemory[i][j] = '-';\n\t\t\t}\n\t\t}\n\t}", "public void CreateCipher() {\n String key = \"IWantToPassTAP12\"; // 128 bit key\n aesKey = new javax.crypto.spec.SecretKeySpec(key.getBytes(), \"AES\");\n try {\n this.cipher = Cipher.getInstance(\"AES\");\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void initialize() {\n\t\tString alphabet = \"abcdefghijklmnopqrstuvwxyz\";\n\t\tint N = alphabet.length();\n\n\t\tRandom r = new Random();\n\t\tString key = \"\";\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tkey+= alphabet.charAt(r.nextInt(N));\n\t\t}\n\t\tthis.key = key;\n\t}", "private static String encrypt(String str) {\n\n String result = \"\";\n\n /* STEP 1: remove spaces */\n str = str.replaceAll(\"\\\\s+\", \"\");\n\n /* STEP 2: calculate dimensions */\n double dim = Math.sqrt(str.length());\n int rows = (int) Math.floor(dim);\n int columns = (int) Math.ceil(dim);\n\n /* STEP 3: check dimensions */\n if(columns*rows < str.length()) {\n if(columns > rows) {\n rows = columns;\n } else {\n columns = rows;\n }\n }\n\n /* STEP 4: build resulting string from column and index offset */\n for(int i = 0; i < columns; i++) {\n for(int j = 0; j < rows; j++) {\n if(j*columns+i < str.length())\n result += str.charAt(j*columns+i);\n }\n if(i < columns-1)\n result += \" \";\n }\n\n return result;\n }", "public String initAesOperations() throws NoSuchAlgorithmException, NoSuchPaddingException, Base64DecodingException, DecoderException {\n byte[] aesKeyBytes = new byte[16];\n this.randomize.nextBytes(aesKeyBytes);\n this.aesKey = new SecretKeySpec(aesKeyBytes, \"AES\");\n this.aesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n return Hex.encodeHexString(aesKeyBytes);\n }", "public String cipher() {\n int[] r1taps = {13, 16, 17, 18};\n int[] r2taps = {20, 21};\n int[] r3taps = {7, 20, 21, 22};\n\n // Set register size and majority bits\n final int R1 = 19;\n final int R1M = 8;\n final int R2 = 22;\n final int R2M = 10;\n final int R3 = 23;\n final int R3M = 10;\n\n // Initialize variables\n String bs = \"\";\n byte[] key = HexStringToBytes(symKey);\n BitSet keySet = new BitSet();\n BitSet keyStream = new BitSet();\n BitSet messageSet = new BitSet();\n\n // Create a byte array length of sample message\n byte[] messageArray = new byte[message.length()];\n\n // Convert the sample message to a byte array\n try {\n messageArray = message.getBytes(\"ISO-8859-1\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e);\n }\n\n // Convert message sample byte array to string\n String as = \"\";\n for (int i = 0; i < messageArray.length; i++) {\n byte b1 = messageArray[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n as += s;\n }\n\n // Convert string of bits to a BitSet\n messageSet = BitStringToBitSet(as);\n\n // Creates string from key byte array\n for (int i = 0; i < 8; i++) {\n byte b1 = key[i];\n String s = String.format(\"%8s\", Integer.toBinaryString(b1 & 0xFF))\n .replace(' ', '0');\n bs += s;\n }\n\n // Convert string of bits to a BitSet\n keySet = BitStringToBitSet(bs);\n\n // Initialize registers\n BitSet r1 = new BitSet();\n BitSet r2 = new BitSet();\n BitSet r3 = new BitSet();\n\n // Process key into registers\n for (int i = 0; i < 64; i++) {\n r1 = ShiftSet(r1, R1, keySet.get(i) ^ Tap(r1, r1taps));\n r2 = ShiftSet(r2, R2, keySet.get(i) ^ Tap(r2, r2taps));\n r3 = ShiftSet(r3, R3, keySet.get(i) ^ Tap(r3, r3taps));\n }\n\n // Clock additional 100 times for additional security (GSM standard)\n for (int i = 0; i < 100; i++) {\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n }\n\n // Create keystream as long as the sample message\n for (int i = 0; i < message.length() * 8; i++) {\n\n // Get keystream bit\n keyStream.set(i, r1.get(R1 - 1) ^ r2.get(R2 - 1) ^ r3.get(R3 - 1));\n\n // Shift majority registers\n int maj = 0;\n boolean[] ar = {false, false, false};\n if (r1.get(R1M) == true) {\n ar[0] = true;\n maj += 1;\n }\n if (r2.get(R2M) == true) {\n ar[1] = true;\n maj += 1;\n }\n if (r3.get(R3M) == true) {\n ar[2] = true;\n maj += 1;\n }\n // If majority is false (0 bit)\n if (maj <= 1) {\n if (ar[0] == false) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == false) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == false) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n // Else majority is true\n } else {\n if (ar[0] == true) {\n r1 = ShiftSet(r1, R1, Tap(r1, r1taps));\n }\n if (ar[1] == true) {\n r2 = ShiftSet(r2, R2, Tap(r2, r2taps));\n }\n if (ar[2] == true) {\n r3 = ShiftSet(r3, R3, Tap(r3, r3taps));\n }\n }\n\n }\n\n // XOR the message with the created keystream and return as string\n messageSet.xor(keyStream);\n return BitStringToText(ReturnSet(messageSet, message.length() * 8));\n }", "public Add128(){\n key = new byte[128];\n Random rand = new Random();\n rand.nextBytes(key);\n }", "public CharCharMap() {\n this(DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR);\n }", "public Base64StringKeyGenerator() {\n this(DEFAULT_KEY_LENGTH);\n }", "private static String m5297cj() {\n try {\n KeyGenerator instance = KeyGenerator.getInstance(\"AES\");\n instance.init(128);\n return Base64.encodeToString(instance.generateKey().getEncoded(), 0);\n } catch (Throwable unused) {\n return null;\n }\n }", "public void initAesOperations(byte[] aesKeyBytes) throws NoSuchAlgorithmException, NoSuchPaddingException, Base64DecodingException, DecoderException {\n this.aesKey = new SecretKeySpec(Hex.decodeHex(new String(aesKeyBytes).toCharArray()), \"AES\");\n this.aesCipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n }", "public EWAHCompressedBitmap(final String values) {\n\t\tthis.buffer = new long[defaultbuffersize];\n\t\tthis.rlw = new RunningLengthWord(this.buffer, 0);\n\t\treadFromBitsString(values);\n\t}", "private void initializeCipherinitVector() {\n try {\n cipher = Cipher.getInstance(\"AES/CBC/NoPadding\");\n } catch (NoSuchAlgorithmException e) {\n\n e.printStackTrace();\n } catch (NoSuchPaddingException e) {\n e.printStackTrace();\n }\n\n /* set Application Master Key */\n bytesKey = KEY_APP_MASTER.getBytes();\n\n /* Initialize init vector of 16 bytes with 0xCD. It could be anything */\n byte[] ivSpec = new byte[16];\n Arrays.fill(ivSpec, (byte) 0xCD);\n iv = new IvParameterSpec(ivSpec);\n\n }", "private Aes128Encryption(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {\n super(builder);\n }", "public MHKEncryption_Array(){\n\t\t\tBigInteger wgenerator = new BigInteger(\"2\");\n\t\t\twsum = BigInteger.ZERO;\n\t\t\tfor(int i = 0;i < 640;i++){\n\t\t\t\twgenerator = wgenerator.multiply(new BigInteger(\"2\")).subtract(BigInteger.ONE); \n\t\t\t\tw[i] = wgenerator;\n\t\t\t\twsum = wsum.add(wgenerator);\n\t\t\t}\n\t}", "private static byte[] m24637b(Context context, byte[] bArr, String str) {\n SecretKeySpec secretKeySpec = new SecretKeySpec(m24635a(context, str), \"AES\");\n try {\n Cipher instance = Cipher.getInstance(\"AES/ECB/NoPadding\");\n instance.init(2, secretKeySpec);\n return instance.doFinal(bArr);\n } catch (Exception e) {\n C5264a.m21622c(\"ENC\", \"AES cipher error, dec failed\");\n e.printStackTrace();\n return null;\n }\n }", "public Memoria() {\n for (int i=0; i<320; i++)\n slots[i]=\"\";\n }", "public Builder setAes128(\n com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption value) {\n if (aes128Builder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n encryptionMode_ = value;\n onChanged();\n } else {\n aes128Builder_.setMessage(value);\n }\n encryptionModeCase_ = 4;\n return this;\n }", "public SessionKey (String keyString) {\n byte[] keyByte = Base64.getDecoder().decode(keyString.getBytes());\n //Decodes a Base64 encoded String into a byte array\n int keyLength = keyByte.length;\n this.secretKey = new SecretKeySpec(keyByte, 0, keyLength, \"AES\");\n //Construct secret key from the given byte array.\n }", "public Cipher()\n {\n CodecInterface base64UriCodec = new Base64UriCodec();\n AsymmetricBlockCipher rsaCipher = new OAEPEncoding(\n new RSAEngine(),\n new SHA1Digest()\n );\n BufferedBlockCipher aesCipher = new PaddedBufferedBlockCipher(\n new CBCBlockCipher(new AESEngine()),\n new PKCS7Padding()\n );\n Digest sha1Digest = new SHA1Digest();\n SecureRandom random = new SecureRandom();\n\n this.encryptionCipher = new EncryptionCipher(\n base64UriCodec,\n rsaCipher,\n aesCipher,\n sha1Digest,\n random\n );\n this.decryptionCipher = new DecryptionCipher(\n base64UriCodec,\n rsaCipher,\n aesCipher,\n sha1Digest\n );\n }", "public CaesarCipherOne(int key) {this.key=key;}", "public EnScrypt() {}", "public AsciiDataEncoder() {\n\t}", "public Builder clearAes128() {\n if (aes128Builder_ == null) {\n if (encryptionModeCase_ == 4) {\n encryptionModeCase_ = 0;\n encryptionMode_ = null;\n onChanged();\n }\n } else {\n if (encryptionModeCase_ == 4) {\n encryptionModeCase_ = 0;\n encryptionMode_ = null;\n }\n aes128Builder_.clear();\n }\n return this;\n }", "public TextAreaEntropy(String text, int rows, int columns) {\r\n super(text, rows, columns);\r\n initComponents();\r\n }", "public SunJCEBlockCipherFactory() {\n\t\t\tsuper(\"AES_128/ECB/NoPadding\", \"SunJCE\");\n\t\t}", "public static void main(String[] args) throws Exception {\n String keyString = \"1bobui76m677W1eCxjFM79mJ189G2zxo\";\n String input = \"john doe i a dead man sdhfhdshfihdoifo\";\n\n // setup AES cipher in CBC mode with PKCS #5 padding\n Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\n // setup an IV (initialization vector) that should be\n // randomly generated for each input that's encrypted\n byte[] iv = new byte[cipher.getBlockSize()];\n new SecureRandom().nextBytes(iv);\n IvParameterSpec ivSpec = new IvParameterSpec(iv);\n\n // hash keyString with SHA-256 and crop the output to 128-bit for key\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n digest.update(keyString.getBytes());\n byte[] key = new byte[16];\n System.arraycopy(digest.digest(), 0, key, 0, key.length);\n SecretKeySpec keySpec = new SecretKeySpec(key, \"AES\");\n\n // encrypt\n cipher.init(Cipher.ENCRYPT_MODE, keySpec, ivSpec);\n byte[] encrypted = cipher.doFinal(input.getBytes(\"UTF-8\"));\n System.out.println(\"encrypted: \" + new String(encrypted));\n\n // include the IV with the encrypted bytes for transport, you'll\n // need the same IV when decrypting (it's safe to send unencrypted)\n\n // decrypt\n cipher.init(Cipher.DECRYPT_MODE, keySpec, ivSpec);\n byte[] decrypted = cipher.doFinal(encrypted);\n System.out.println(\"decrypted: \" + new String(decrypted, \"UTF-8\"));\n }", "static String encryption(String s) {\n\n s = s.replaceAll(\" \",\"\");\n StringBuffer sb = new StringBuffer(s);\n int len = sb.length();\n int L = (int)Math.floor(Math.sqrt(len));\n int M = (int)Math.ceil(Math.sqrt(len));\n int p = M;\n List<String> list = new ArrayList<>();\n for (int i = 0; i < sb.length();) {\n if(i+M < sb.length()){\n list.add(sb.substring(i, i+M));\n }else{\n list.add(sb.substring(i, len));\n }\n i=i+M;\n }\n\n StringBuffer[] tps = new StringBuffer[M];\n for (int i = 0; i < M ; i++) {\n StringBuffer tpsi = new StringBuffer();\n for (String str:\n list) {\n if(i < str.length())\n tpsi.append(str.charAt(i));\n }\n tps[i] = tpsi;\n }\n\n StringBuffer ans = new StringBuffer();\n for (StringBuffer str:\n tps) {\n ans.append(str.toString()+\" \");\n }\n return ans.toString();\n }", "public SparseEncoding(String value) {\n String[] values = value.split(\",\");\n row = Integer.parseInt(values[0]);\n col = Integer.parseInt(values[1]);\n val = Integer.parseInt(values[2]);\n src = values[3].charAt(0);\n }", "public static byte[] m24636a(Context context, String str, String str2) {\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n try {\n SecretKeySpec secretKeySpec = new SecretKeySpec(m24635a(context, str2), \"AES\");\n Cipher instance = Cipher.getInstance(\"AES/ECB/NoPadding\");\n instance.init(1, secretKeySpec);\n return instance.doFinal(str.getBytes(\"UTF-8\"));\n } catch (Exception e) {\n C5264a.m21622c(\"ENC\", \"AES cipher error, enc failed\");\n e.printStackTrace();\n return null;\n }\n }", "public static SecretKey toAes128Key(String s) {\n try {\n // turn secretKey into 256 bit hash\n MessageDigest digest = MessageDigest.getInstance(\"SHA-256\");\n digest.reset();\n digest.update(s.getBytes(\"UTF-8\"));\n\n // Due to the stupid US export restriction JDK only ships 128bit version.\n return new SecretKeySpec(digest.digest(), 0, 128 / 8, \"AES\");\n } catch (NoSuchAlgorithmException e) {\n throw new Error(e);\n } catch (UnsupportedEncodingException e) {\n throw new Error(e);\n }\n }", "Matrix()\n {\n x = new Vector();\n y = new Vector();\n z = new Vector();\n }", "public Add128(byte[] bytekey) {\n key=bytekey;\n }", "public StringEncrypter(String key, String initialVector) throws Exception {\r\n\t\tif (key == null || key.equals(\"\"))\r\n\t\t\tthrow new Exception(\"The key can not be null or an empty string.\");\r\n\r\n\t\tif (initialVector == null || initialVector.equals(\"\"))\r\n\t\t\tthrow new Exception(\"The initial vector can not be null or an empty string.\");\r\n\r\n\t\t// Create a AES algorithm.\r\n\t\tthis.rijndael = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\r\n\r\n\t\t// Initialize an encryption key and an initial vector.\r\n\t\tMessageDigest md5 = MessageDigest.getInstance(\"MD5\");\r\n\t\tthis.key = new SecretKeySpec(md5.digest(key.getBytes(\"UTF8\")), \"AES\");\r\n\t\tthis.initalVector = new IvParameterSpec(md5.digest(initialVector.getBytes(\"UTF8\")));\r\n\t}", "private char[] encryptBlock(byte[] bytes, int i)\r\n {\r\n // every block of 3 bytes is going to 4*6 bits array of chars\r\n char[] base64chars = new char[4];\r\n // block of 32 bits\r\n int bits32 = 0;\r\n // space left on byte array\r\n int space = bytes.length - i - 1;\r\n int blockSize = (space >= 2) ? 2 : space;\r\n\r\n for (int k = 0; k <= blockSize; k++)\r\n {\r\n // if value is signed we need to keep\r\n // need to keep sign bit 100000000 if byte is signed.\r\n int val = (bytes[i + k] & SIGN) == 0 ? bytes[i + k] : bytes[i + k] + SIGN256;\r\n // shift bits left to build one 32 bits block\r\n bits32 += val << (8 * (2 - k));\r\n }\r\n\r\n for (int j = 0; j < 4; j++)\r\n {\r\n // shift bits to right and take 6 bits using mask\r\n int bit6 = bits32 >>> (6 * (3 - j)) & BIT6_MASK;\r\n base64chars[j] = (convertToBase64Alpabet(bit6));\r\n if (space < 1)\r\n {\r\n base64chars[2] = '=';\r\n }\r\n if (space < 2)\r\n {\r\n base64chars[3] = '=';\r\n }\r\n\r\n }\r\n return base64chars;\r\n }", "public Connect4() {\n gameMode = 0;\n board = new char[6][7];\n for (int r = 0; r < 6; r++) {\n for (int c = 0; c < 7; c++) {\n board[r][c] = ' ';\n }\n }\n\t}", "Sequence(String inString) {\r\n // Allocate bytes for the sequence\r\n seqArray = new byte[(int)Math.ceil(inString.length() / 4.0)];\r\n seqLength = inString.length();\r\n\r\n for (int i = 0; i < inString.length(); i++) {\r\n // Begin at the start of byte minus 2, then subtract\r\n // the number of bits into the byte we are\r\n int bytePos = 6 - (i % 4) * 2;\r\n // Divide by the current position in string to find current byte\r\n int currByte = i / 4;\r\n char currChar = inString.charAt(i);\r\n if (currChar == 'A') {\r\n seqArray[currByte] |= 0 << bytePos;\r\n }\r\n else if (currChar == 'C') {\r\n seqArray[currByte] |= 1 << bytePos;\r\n }\r\n else if (currChar == 'G') {\r\n seqArray[currByte] |= 2 << bytePos;\r\n }\r\n else if (currChar == 'T') {\r\n seqArray[currByte] |= 3 << bytePos;\r\n }\r\n else {\r\n System.out.print(\"Could not create sequence!\");\r\n }\r\n }\r\n }", "public Board() {\n\t\tmarkCount = 0;\n\t\ttheBoard = new char[3][];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\ttheBoard[i] = new char[3];\n\t\t\tfor (int j = 0; j < 3; j++)\n\t\t\t\ttheBoard[i][j] = SPACE_CHAR;\n\t\t}\n\t}", "private void initMatrix(Canvas canvas) {\n\t\tint height = canvas.getHeight();\n\t\tint width = canvas.getWidth();\n\t\tchar[][] matrix = canvas.getMatrix();\n\n\t\tif (matrix == null) {\n\t\t\tmatrix = new char[width][height];\n\t\t\tfor (int i = 0; i < width; i++) {\n\t\t\t\tfor (int j = 0; j < height; j++) {\n\t\t\t\t\tmatrix[i][j] = SPACE;\n\t\t\t\t}\n\t\t\t}\n\t\t\tcanvas.setMatrix(matrix);\n\t\t}\n\t}", "public EncryptionAlgorithms()\n\t{\n\t\tkexAlgs = new LinkedList<KexAlgs>();\n\t\tcipherAlgs = new LinkedList<Ciphers>();\n\t\thmacAlgs = new LinkedList<Hmacs>();\n\t\tcompAlgs = new LinkedList<CompAlgs>();\n\t}", "public final String mo5960az(String str) {\n try {\n if (TextUtils.isEmpty(str)) {\n return null;\n }\n byte[] bArr = new byte[16];\n new SecureRandom().nextBytes(bArr);\n Cipher instance = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n String string = C1251i.m5302ck().getString(f3976js, null);\n if (TextUtils.isEmpty(string)) {\n string = m5297cj();\n C1251i.m5302ck().putString(f3976js, string);\n }\n if (TextUtils.isEmpty(string)) {\n return null;\n }\n byte[] aA = m5293aA(string);\n if (aA == null) {\n return null;\n }\n instance.init(1, new SecretKeySpec(aA, \"AES\"), new IvParameterSpec(bArr));\n return Base64.encodeToString(m5292a(bArr, instance.doFinal(str.getBytes(AudienceNetworkActivity.WEBVIEW_ENCODING))), 2);\n } catch (Throwable unused) {\n return null;\n }\n }", "public byte[][] keyExpansion(byte[] key) {\n\n int keySizeBits = key.length*8;\n\n //Define N as the length of the key in 32-bit words:\n //4 words for AES-128, 6 words for AES-192, and 8 words for AES-256\n int N = 0;\n if(keySizeBits == 128) N = 4;\n else if (keySizeBits == 192) N = 6;\n else if(keySizeBits == 256)N = 8;\n else throw new RuntimeException(\"UnsupportedKeySizeException\");\n\n //Define K_0, K_1, ... K_(N-1) as the 32-bit words of the original key\n byte[][] K = new byte[N][4];\n byte[] keyBytes = key;\n for(int i = 0; i < N; i++) {\n byte[] subBytes = new byte[]{keyBytes[4*i], keyBytes[4*i+1], keyBytes[4*i+2], keyBytes[4*i+3]};\n K[i] = subBytes;\n }\n\n //Define W_0, W_1, ... W_(4R-1) as the 32-bit words of the expanded key\n int R = 0;\n if(keySizeBits == 128) R = 11;\n else if (keySizeBits == 192) R = 13;\n else if(keySizeBits == 256)R = 15;\n else throw new RuntimeException(\"UnsupportedKeySizeException\");\n byte[][] W = new byte[4*R][4];\n\n for(int i = 0; i < 4*R; i++) {\n if(i < N)\n W[i] = K[i];\n else if(i >= N && i%N == 0)\n W[i] = applyXor(applyXor(W[i-N],subWord(rotWord(W[i-1]),false)),\n new byte[]{(byte)rConst(i/N), 0, 0, 0});\n else if(i >= N && N > 6 && i%4 == 0)\n W[i] = applyXor(W[i-N], rotWord(W[i-1]));\n else W[i] = applyXor(W[i-N], W[i-1]);\n\n /*\n StringBuilder builder = new StringBuilder();\n builder.append(\"W[\"+i+\"]=\");\n builder.append(Integer.toHexString(W[i][0])+\" \");\n builder.append(Integer.toHexString(W[i][1])+\" \");\n builder.append(Integer.toHexString(W[i][2])+\" \");\n builder.append(Integer.toHexString(W[i][3])+\" \");\n\n System.out.println(new String(builder));\n */\n\n }\n\n return W;\n }", "private static Map<CryptoAlgorithm, String> createExactCipherMapping() {\n HashMap<CryptoAlgorithm, String> map = new HashMap<>();\n map.put(CryptoAlgorithm.AES_CBC, \"AES/CBC/PKCS5PADDING\");\n return Collections.unmodifiableMap(map);\n }", "public KeePassDataBaseV1() {\n\t entries = new ArrayList<Entry>();\n\t\tgroups = new ArrayList<Group>();\n\t\t\n\t\thash = HashFactory.getHash(Hash.SHA_256);\n\t\tcipher = CipherFactory.getCipher(Cipher.AES);\n\t}", "public TextAreaEntropy(int rows, int columns) {\r\n super(rows, columns);\r\n initComponents();\r\n }", "public static byte[] generateRandomKey_AES128() {\n return ByteUtil.randomBytes(16);\n }", "public final C9192a m38587a(String str) {\n this.f31332a.f37138c = str;\n return this;\n }", "public static byte[][] generate256Texts(int activePosition) {\n final int numOfTexts = 256;\n final int lengthOfText = 16;\n Random random = new Random();\n\n byte[][] plainTexts = new byte[numOfTexts][];\n\n plainTexts[0] = new byte[lengthOfText];\n\n //Generating of the 1st plain text and setting 0 to active byte\n for (int i = 0; i < lengthOfText; i++) {\n plainTexts[0][i] = (byte) random.nextInt(numOfTexts);\n }\n plainTexts[0][activePosition] = 0;\n\n //Copying of bytes of the 1st plain text to other 255 texts and changing of active byte of each\n for (int i = 1; i < numOfTexts; i++) {\n plainTexts[i] = new byte[lengthOfText];\n plainTexts[i] = plainTexts[0].clone();\n plainTexts[i][activePosition] = (byte) i;\n }\n\n MainFrame.printToConsole(String.format(\"256 texts with active position %1$d are generated\\n\", activePosition + 1));\n return plainTexts;\n }", "@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption getAes128() {\n if (aes128Builder_ == null) {\n if (encryptionModeCase_ == 4) {\n return (com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption) encryptionMode_;\n }\n return com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption\n .getDefaultInstance();\n } else {\n if (encryptionModeCase_ == 4) {\n return aes128Builder_.getMessage();\n }\n return com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption\n .getDefaultInstance();\n }\n }", "public KeySet(int iterationNumber) {\n\n this.iterationNumber = iterationNumber;\n numKeys = Encryptor.getNumKeys()\n + IndexCurve.curve(iterationNumber, 0, 2);\n passwordHashAlpha = Encryptor.getPasswordHashAlpha();\n passwordHashBeta = Encryptor.getPasswordHashBeta();\n\n keys = new String[2][numKeys];\n\n for (int i = 0; i < numKeys; i++) {\n keys[0][i] = createKey(i, passwordHashAlpha);\n }\n for (int i = 0; i < numKeys; i++) {\n keys[1][i] = createKey(i, passwordHashBeta);\n }\n\n }", "public static String [][] inMixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x0E,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[2][c], 16)) ^ GMul(0x09, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (GMul(0x09,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (GMul(0x0D,Integer.parseInt(s[0][c], 16)) ^ GMul(0x09, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x0B,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[1][c], 16)) ^ GMul(0x09, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "public static void main(String[] args) {\n\t\tString str = \"sentfrommyiphone\";\n\t\tString s = str.toUpperCase();\n\t\tString[] array = new String[16];\n\t\tString[] array1 = new String[16];\n\t\tfor (int i = 0; i < str.length(); i++) {\n\t\t\tarray[i] = String.valueOf(s.charAt(i));\n\t\t}\n\t\t{\n\n\t\t\tarray1[0] = array[14];\n\t\t\tarray1[1] = array[10];\n\t\t\tarray1[2] = array[1];\n\t\t\tarray1[3] = array[9];\n\t\t\tarray1[4] = array[15];\n\t\t\tarray1[5] = array[2];\n\t\t\tarray1[6] = array[6];\n\t\t\tarray1[7] = array[13];\n\t\t\tarray1[8] = array[3];\n\t\t\tarray1[9] = array[12];\n\t\t\tarray1[10] = array[8];\n\t\t\tarray1[11] = array[5];\n\t\t\tarray1[12] = array[0];\n\t\t\tarray1[13] = array[4];\n\t\t\tarray1[14] = array[7];\n\t\t\tarray1[15] = array[12];\n\t\t}\n\t\tSystem.out.println(\"plaintext:\" + str);\n\t\tSystem.out.print(\"cipher:\");\n\t\tfor (int i = 0; i < array1.length; i++) {\n\t\t\tSystem.out.print(array1[i]);\n\t\t}\n\t}", "public MultiKey(int zBitLength) {\n\t\tthis(MiniData.getRandomData(zBitLength/8), DEFAULT_KEYS_PER_LEVEL, DEFAULT_LEVELS);\n\t}", "public Base64StringKeyGenerator(Base64.Encoder encoder) {\n this(encoder, DEFAULT_KEY_LENGTH);\n }", "public SymbolTable(int capacity){\r\n\t\tN = 0;\r\n\t\tM = capacity;\r\n\t\tkeys = new String[M];\r\n\t\tvals = new Character[M];\r\n\t}", "public static String [][] MixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x02,Integer.parseInt(s[0][c], 16)) ^ GMul(0x03, Integer.parseInt(s[1][c], 16)) ^ Integer.parseInt(s[2][c], 16) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ GMul(0x02, Integer.parseInt(s[1][c], 16)) ^ GMul(0x03, Integer.parseInt(s[2][c], 16)) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ Integer.parseInt(s[1][c], 16) ^ GMul(0x02, Integer.parseInt(s[2][c], 16)) ^ GMul(0x03, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x03, Integer.parseInt(s[0][c], 16)) ^ Integer.parseInt(s[1][c], 16) ^ Integer.parseInt(s[2][c], 16) ^ GMul(0x02, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "public TransformationMatrix() {\n\t\ta11 = 1; a12 = 0; a13 = 0; a14 = 0;\n\t\ta21 = 0; a22 = 1; a23 = 0; a24 = 0;\n\t\ta31 = 0; a32 = 0; a33 = 1; a34 = 0;\n\t}", "protected AESCrypto(Context context, int iterations) throws NoAlgorithmAvailableException {\n // Call superclass\n super(context);\n // Check availability of provoders\n providerCheckAESCrypto();\n // Apply Googles fix for the pseudo random number generator for API-Levels 16-18\n prng = new AtomicBoolean(false);\n fixPrng();\n // set the iteration count\n PBE_ITERATIONS = iterations;\n }", "public void setup(Map attributes) {\n // find out which cipher algorithm to use\n boolean newCipher = true;\n String underlyingCipher = (String) attributes.get(CIPHER);\n if (underlyingCipher == null) {\n if (cipher == null) { // happy birthday\n // ensure we have a reliable implementation of this cipher\n cipher = CipherFactory.getInstance(Registry.RIJNDAEL_CIPHER);\n } else { // we already have one. use it as is\n newCipher = false;\n }\n } else { // ensure we have a reliable implementation of this cipher\n cipher = CipherFactory.getInstance(underlyingCipher);\n }\n\n // find out what block size we should use it in\n int cipherBlockSize = 0;\n Integer bs = (Integer) attributes.get(IBlockCipher.CIPHER_BLOCK_SIZE);\n if (bs != null) {\n cipherBlockSize = bs.intValue();\n } else {\n if (newCipher) { // assume we'll use its default block size\n cipherBlockSize = cipher.defaultBlockSize();\n } // else use as is\n }\n\n // get the key material\n byte[] key = (byte[]) attributes.get(IBlockCipher.KEY_MATERIAL);\n if (key == null) {\n throw new IllegalArgumentException(IBlockCipher.KEY_MATERIAL);\n }\n\n // now initialise the cipher\n HashMap map = new HashMap();\n if (cipherBlockSize != 0) { // only needed if new or changed\n map.put(IBlockCipher.CIPHER_BLOCK_SIZE, new Integer(cipherBlockSize));\n }\n map.put(IBlockCipher.KEY_MATERIAL, key);\n try {\n cipher.init(map);\n } catch (InvalidKeyException x) {\n throw new IllegalArgumentException(IBlockCipher.KEY_MATERIAL);\n }\n\n // at this point we have an initialised (new or otherwise) cipher\n // ensure that remaining params make sense\n\n cipherBlockSize = cipher.currentBlockSize();\n BigInteger counterRange = TWO_FIFTY_SIX.pow(cipherBlockSize);\n\n // offset, like the underlying cipher key is not cloneable\n // always look for it and throw an exception if it's not there\n Object obj = attributes.get(OFFSET);\n // allow either a byte[] or a BigInteger\n BigInteger r;\n if (obj instanceof BigInteger) {\n r = (BigInteger) obj;\n } else { // assume byte[]. should be same length as cipher block size\n byte[] offset = (byte[]) obj;\n if (offset.length != cipherBlockSize) {\n throw new IllegalArgumentException(OFFSET);\n }\n\n r = new BigInteger(1, offset);\n }\n\n int wantBlockNdxLength = -1; // number of octets in the block index\n Integer i = (Integer) attributes.get(BLOCK_INDEX_LENGTH);\n if (i != null) {\n wantBlockNdxLength = i.intValue();\n if (wantBlockNdxLength < 1) {\n throw new IllegalArgumentException(BLOCK_INDEX_LENGTH);\n }\n }\n\n int wantSegmentNdxLength = -1; // number of octets in the segment index\n i = (Integer) attributes.get(SEGMENT_INDEX_LENGTH);\n if (i != null) {\n wantSegmentNdxLength = i.intValue();\n if (wantSegmentNdxLength < 1) {\n throw new IllegalArgumentException(SEGMENT_INDEX_LENGTH);\n }\n }\n\n // if both are undefined check if it's a reuse\n if ((wantBlockNdxLength == -1) && (wantSegmentNdxLength == -1)) {\n if (blockNdxLength == -1) { // new instance\n throw new IllegalArgumentException(BLOCK_INDEX_LENGTH+\", \"+SEGMENT_INDEX_LENGTH);\n } // else reuse old values\n } else { // only one is undefined, set it to BLOCK_LENGTH/2 minus the other\n int limit = cipherBlockSize / 2;\n if (wantBlockNdxLength == -1) {\n wantBlockNdxLength = limit - wantSegmentNdxLength;\n } else if (wantSegmentNdxLength == -1) {\n wantSegmentNdxLength = limit - wantBlockNdxLength;\n } else if ((wantSegmentNdxLength + wantBlockNdxLength) > limit) {\n throw new IllegalArgumentException(BLOCK_INDEX_LENGTH+\", \"+SEGMENT_INDEX_LENGTH);\n }\n // save new values\n blockNdxLength = wantBlockNdxLength;\n segmentNdxLength = wantSegmentNdxLength;\n }\n\n // get the segment index as a BigInteger\n BigInteger s = (BigInteger) attributes.get(SEGMENT_INDEX);\n if (s == null) {\n if (segmentNdx == null) { // segment index was never set\n throw new IllegalArgumentException(SEGMENT_INDEX);\n }\n // reuse; check if still valid\n if (segmentNdx.compareTo(TWO_FIFTY_SIX.pow(segmentNdxLength)) > 0) {\n throw new IllegalArgumentException(SEGMENT_INDEX);\n }\n } else {\n if (s.compareTo(TWO_FIFTY_SIX.pow(segmentNdxLength)) > 0) {\n throw new IllegalArgumentException(SEGMENT_INDEX);\n }\n segmentNdx = s;\n }\n\n // The initial counter of the keystream segment with segment index s is\n // defined as follows, where r denotes the Offset:\n //\n // C[0] = (s * (256^BLOCK_INDEX_LENGTH) + r) modulo (256^BLOCK_LENGTH)\n //\n C0 = segmentNdx\n .multiply(TWO_FIFTY_SIX.pow(blockNdxLength))\n .add(r)\n .modPow(BigInteger.ONE, counterRange);\n }", "protected SimpleMatrix() {}", "@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption getAes128() {\n if (encryptionModeCase_ == 4) {\n return (com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption) encryptionMode_;\n }\n return com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption.getDefaultInstance();\n }", "public GridElement(int rows, int cols)\n\t{\n\t\tm_rows = rows;\n\t\tm_cols = cols;\n\t\tm_textLayout = new TextLayout[rows][cols];\n\t\tm_iterator = new AttributedCharacterIterator[rows][cols];\n\t\tm_rowHeight = new int[rows];\n\t\tm_colWidth = new int[cols];\n\t\t//\texplicit init\n\t\tfor (int r = 0; r < m_rows; r++)\n\t\t{\n\t\t\tm_rowHeight[r] = 0;\n\t\t\tfor (int c = 0; c < m_cols; c++)\n\t\t\t{\n\t\t\t\tm_textLayout[r][c] = null;\n\t\t\t\tm_iterator[r][c] = null;\n\t\t\t}\n\t\t}\n\t\tfor (int c = 0; c < m_cols; c++)\n\t\t\tm_colWidth[c] = 0;\n\t}", "public static String encrypt(String strToEncrypt)\n {\n try\n {\n Cipher cipher = Cipher.getInstance(\"AES/ECB/PKCS5Padding\");\n final SecretKeySpec secretKey = new SecretKeySpec(key, \"AES\");\n cipher.init(Cipher.ENCRYPT_MODE, secretKey);\n final String encryptedString = Base64.encodeBase64String(cipher.doFinal(strToEncrypt.getBytes()));\n return encryptedString;\n }\n catch (Exception e)\n {\n e.printStackTrace();\n }\n return null;\n\n }", "public Cipher getCipherAES() throws NoSuchPaddingException, NoSuchAlgorithmException {\n return Cipher.getInstance(\"AES_256/ECB/PKCS5Padding\");\n }", "public StrElement(boolean[][] str)\n\t\t\tthrows IllegalArgumentException {\n\t\tfor (int i = 1; i < str.length; i++) {\n\t\t\tif (str[i].length != str[0].length)\n\t\t\t\tthrow new IllegalArgumentException();\n\t\t}\n\n\t\tif (str.length % 2 == 0 || str[0].length % 2 == 0)\n\t\t\tthrow new IllegalArgumentException();\n\n\t\tthis.f1 = str;\n\t}", "public static byte[] encryptText(String plainText,SecretKey secKey) throws Exception{\n\r\n Cipher aesCipher = Cipher.getInstance(\"AES\");\r\n\r\n aesCipher.init(Cipher.ENCRYPT_MODE, secKey);\r\n\r\n byte[] byteCipherText = aesCipher.doFinal(plainText.getBytes());\r\n\r\n return byteCipherText;\r\n\r\n}", "@java.lang.Override\n public com.google.cloud.video.livestream.v1.Encryption.Aes128EncryptionOrBuilder\n getAes128OrBuilder() {\n if ((encryptionModeCase_ == 4) && (aes128Builder_ != null)) {\n return aes128Builder_.getMessageOrBuilder();\n } else {\n if (encryptionModeCase_ == 4) {\n return (com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption) encryptionMode_;\n }\n return com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption\n .getDefaultInstance();\n }\n }", "public SunPKCS11BlockCipherFactory() throws Exception {\n\t\t\tsuper(\"AES_128/ECB/NoPadding\", getProvider());\n\t\t}", "@SuppressWarnings(\"deprecation\")\n @Test\n public void AesWithIVBlock() throws IOException {\n byte[] bytes = \"hello, my name is inigo montoya\".getBytes();\n\n SecureRandom rand = new SecureRandom(entropySeed.getBytes());\n\n PaddedBufferedBlockCipher aesEngine = new PaddedBufferedBlockCipher(new CBCBlockCipher(new AESFastEngine()));\n\n byte[] key = new byte[32]; // 256bit key\n byte[] iv = new byte[aesEngine.getUnderlyingCipher().getBlockSize()];\n\n // note: the IV needs to be VERY unique!\n rand.nextBytes(key);\n rand.nextBytes(iv);\n\n\n byte[] encryptAES = CryptoAES.encryptWithIV(aesEngine, key, iv, bytes, logger);\n byte[] decryptAES = CryptoAES.decryptWithIV(aesEngine, key, encryptAES, logger);\n\n if (Arrays.equals(bytes, encryptAES)) {\n fail(\"bytes should not be equal\");\n }\n\n if (!Arrays.equals(bytes, decryptAES)) {\n fail(\"bytes not equal\");\n }\n }", "public Builder setAes128(\n com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption.Builder builderForValue) {\n if (aes128Builder_ == null) {\n encryptionMode_ = builderForValue.build();\n onChanged();\n } else {\n aes128Builder_.setMessage(builderForValue.build());\n }\n encryptionModeCase_ = 4;\n return this;\n }", "public static void generateRoundKeys(String input){\n int i =0;\n\t\tfor (int col1 = 0; col1 <=3; col1++) {\t\t\t\n for (int row1 = 0; row1 <=3; row1 = row1+1) {\n\t\t\toriginalKey[row1][col1] = input.substring(i,i+2);\n\t\t\ti=i+2;\n } \n\t\t} \n //take the original key and make it be the first four columns of W\n for(int row2 = 0; row2<=3; row2++){\n for(int col2 = 0; col2 < 4; col2++){\n W[row2][col2] = originalKey[row2][col2];\n }\n } \n //Starting to create next 40 columns of W\n //temporary matrix temp_w for processing\n String[][] temp_w = null;\n for(int column = 4; column<=43; column++){\n /*Part 1 : if the index of column is not divisible by 4, \n XOR the fourth past and last column with respect to column index*/\n if(column % 4 != 0){\n for(int row = 0; row<=3; row++){\n W[row][column] = performXOR(W[row][column-4], W[row][column-1]); \n }\n }\n else {\n /*Part 2 : if the index of column is divisible by 4,\n step 1: Use temp matrix temp_w to store previous column values.\n Tanspose previous column values to row values\n step 2 : Shif to the left of column values of temp_w*/\n temp_w = new String[1][4]; \n \n temp_w[0][0] = W[1][column - 1];\n temp_w[0][1] = W[2][column - 1];\n temp_w[0][2] = W[3][column - 1];\n temp_w[0][3] = W[0][column - 1];\n \n //step 3 : transform each of the four bytes in temp_w using an S-box function\n for(int m =0 ; m<1; m++){\n for(int n =0; n<=3 ; n++){\n int x = Integer.parseInt(temp_w[m][n].split(\"\")[0],16);\n int y = Integer.parseInt(temp_w[m][n].split(\"\")[1],16);\n temp_w[m][n] = SBOX[x][y]; \n\t\t\t}\n }\n \n //step 4 : Getting RCon coefficient values and performing XOR operation\n //find number of round\n int numRound = column/4;\n //get RCon of the same column number form Rcon table and xOR with first element\n temp_w[0][0] = performXOR(RCON[0][numRound],temp_w[0][0]);\n \n //step 5 : Perform final XOR\n for(int row3 = 0; row3<=3; row3++){\n W[row3][column] = performXOR(W[row3][column-4], temp_w[0][row3]);\n }\n \n }\n }\n \n //Printing Round Keys\n int Rounds = 1;\n int k = 0;\n while (Rounds <=11){ \n for(int column1 = 0; column1<=3; k++, column1++){\n for(int row =0; row<=3; row++){\n System.out.print(W[row][k]);\n }\n } \n System.out.println();\n Rounds++;\n } \n System.out.println(\"\");\n }", "public void stringcon()\n {\n int i,j,k;\n int temp[]=new int[8];\n int a[]=new int[32];\n i=0;\n j=0;\n for(i=0;i<10000;i++)\n bytes[i]=0;\n i=0;\n maxbinary1=0;\n for(i=0;i<24;i++)\n a[i]=binary[i];\n for(i=0;i<24;i++)\n maxbinary1+=a[i]*Math.pow(2,23-i);\n maxbinary2=maxbinary1*8;\n ivalue=0;\n for(i=24,j=0;i<32;i++,j++)\n {\n a[j]=binary[i];\n ivalue+=a[j]*Math.pow(2,7-j);\n }\n if(ivalue==73)\n {\n i=32;\n while(i<maxbinary2)\n {\n for(k=0;k<=7;k++)\n temp[k]=binary[i++];\n for(k=0;k<=7;k++)\n bytes[j]+=temp[k]*Math.pow(2,7-k);\n j++;\n }\n String s=JOptionPane.showInputDialog(this,\"Enter key with 16 letters\");\n char ch[]=new char[s.length()];\n ch=s.toCharArray();\n try\n {\n FileOutputStream f=new FileOutputStream(\"key1.txt\");\n for(i=0;i<ch.length;i++)\n f.write(ch[i]);\n f.close();\n FileOutputStream fout=new FileOutputStream(\"enc1.txt\");\n DataOutputStream d=new DataOutputStream(fout);\n \t\ti=8;\n while(i<(maxbinary1))\n \t\t {\n \t\t\td.write(bytes[i]);\n\t\t i++;\n \t\t }\n fout.close();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n\n ideaalgo b=new ideaalgo();\n b.procedure();\n b.decryption(\"enc1.txt\");\n try\n {\n BufferedReader d;\n StringBuffer sb=new StringBuffer();\n d=new BufferedReader(new FileReader(\"dec.txt\"));\n String line;\n while((line=d.readLine())!=null)\n sb.append(line+\"\\n\");\n ta.setText(sb.toString());\n d.close();\n }\ncatch(Exception e)\n {\n System.out.println(e);\n }\n }\n}", "private String teaEncrypt(String plaintext, String password) {\n if (plaintext.length() == 0) {\n return (\"\"); // nothing to encrypt\n }\n // 'escape' plaintext so chars outside ISO-8859-1 work in single-byte packing, but keep\n // spaces as spaces (not '%20') so encrypted text doesn't grow too long (quick & dirty)\n String asciitext = plaintext;\n int[] v = strToLongs(asciitext); // convert string to array of longs\n\n if (v.length <= 1) {\n int[] temp = new int[2];\n temp[0] = 0; // algorithm doesn't work for n<2 so fudge by adding a null\n temp[1] = v[0];\n v = temp;\n }\n int[] k = strToLongs(password.substring(0, 16).toLowerCase()); // simply convert first 16 chars of password as\n // key\n int n = v.length;\n\n // int z = v[n - 1], y = v[0], delta = 0x9E3779B9;\n // int mx, e, q = (int) Math.floor(6 + 52 / n), sum = 0;\n int z = v[n - 1];\n int y = v[0];\n int delta = 0x9E3779B9;\n int mx;\n int e;\n int q = (int) Math.floor(6 + 52 / n);\n int sum = 0;\n\n while (q-- > 0) { // 6 + 52/n operations gives between 6 & 32 mixes on each word\n sum += delta;\n e = sum >>> 2 & 3;\n for (int p = 0; p < n; p++) {\n y = v[(p + 1) % n];\n mx = (z >>> 5 ^ y << 2) + (y >>> 3 ^ z << 4) ^ (sum ^ y) + (k[p & 3 ^ e] ^ z);\n z = v[p] += mx;\n }\n }\n\n String ciphertext = longsToHexStr(v);\n\n return ciphertext;\n }", "public EWAHCompressedBitmap() {\n\t\tthis.buffer = new long[defaultbuffersize];\n\t\tthis.rlw = new RunningLengthWord(this.buffer, 0);\n\t}", "private Base64(){}", "private static final byte[] CMAC (byte[] data, int bits){\n\t\tbyte[] tag = new byte[16];\n\t\tbyte[] key = new byte[16];\n\t\tfor (int i=0;i<key.length;i++) key[i] = 0;\n\t\t\n\t\tBlockCipher cipher = new AES();\n\t\tcipher.makeKey(key, bits, BlockCipher.DIR_ENCRYPT);\n\t\tCMAC cmac = new CMAC(cipher);\n\t\tcmac.init();\n\t\tcmac.update(data);\n\t\tcmac.finish(false);\n\t\tcmac.getTag(tag, cipher.blockSize());\n\t\treturn tag;\n\t}", "public interface AES {\n\n public String encrypt(String strToEncrypt);\n\n public String decrypt(String strToDecrypt);\n\n public String getSecretKeyWord();\n}", "public void constructArray(){\n\t\tfor (int col = 0; col < cols; col++){\n\t\t\tfor (int row = 0; row < rows; row++){\n\t\t\t\tmap[col][row] = new Pixel();\n\t\t\t}\n\t\t}\n\t}", "public MyHashTableCC(){\n\t\tm_arraylists = new MyArraylist[DIFF_CHARACTERS];\n\n\t\tfor (int i = 0; i < m_arraylists.length; i++){\n\t\t\tm_arraylists[i] = new MyArraylist();\n\t\t}\n\t}", "public Encrypt3DESSamples() {\n }", "public String tableExample() {\n\t\tString ret = AESMain2.AESEncrypt(plaintext, key);\n\t\tret += \"\\n\\n\" + AESMain2.AESDecrypt(ciphertext, key);\n\t\treturn ret;\n\t}", "public SerializingStringSetTranscoder(){\r\n\t\tthis(CachedData.MAX_SIZE);\r\n\t}", "@SuppressWarnings(\"deprecation\")\n @Test\n public void AesBlock() throws IOException {\n byte[] bytes = \"hello, my name is inigo montoya\".getBytes();\n\n SecureRandom rand = new SecureRandom(entropySeed.getBytes());\n\n PaddedBufferedBlockCipher aesEngine = new PaddedBufferedBlockCipher(new CBCBlockCipher(new AESFastEngine()));\n\n byte[] key = new byte[32];\n byte[] iv = new byte[16];\n\n // note: the IV needs to be VERY unique!\n rand.nextBytes(key); // 256bit key\n rand.nextBytes(iv); // 16bit block size\n\n\n byte[] encryptAES = CryptoAES.encrypt(aesEngine, key, iv, bytes, logger);\n byte[] decryptAES = CryptoAES.decrypt(aesEngine, key, iv, encryptAES, logger);\n\n if (Arrays.equals(bytes, encryptAES)) {\n fail(\"bytes should not be equal\");\n }\n\n if (!Arrays.equals(bytes, decryptAES)) {\n fail(\"bytes not equal\");\n }\n }", "@Override\n\tpublic String encryptAES(byte[] key, String plainText) {\n\t\ttry {\n\t\t\tbyte[] clean = plainText.getBytes();\n\t\n\t // Generating IV.\n\t int ivSize = 16;\n\t byte[] iv = new byte[ivSize];\n\t SecureRandom random = new SecureRandom();\n\t random.nextBytes(iv);\n\t IvParameterSpec ivParameterSpec = new IvParameterSpec(iv);\n\t Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t SecretKeySpec secretKeySpec = new SecretKeySpec(key, \"AES\");\n\t cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec);\n\t byte[] encrypted = cipher.doFinal(clean);\n\t byte[] encryptedIVAndText = new byte[ivSize + encrypted.length];\n\t System.arraycopy(iv, 0, encryptedIVAndText, 0, ivSize);\n\t System.arraycopy(encrypted, 0, encryptedIVAndText, ivSize, encrypted.length);\n\n\t return DatatypeConverter.printHexBinary(encryptedIVAndText);\n\t\t}\n\t\tcatch(Exception e) {\n\t\t\t\n\t\t}\n\t\treturn null;\n\t}", "@SuppressLint(\"TrulyRandom\")\n private static byte[] encrypt(byte[] bytes, SecretKey aesKey) throws NoSuchAlgorithmException, NoSuchPaddingException, InvalidKeyException, IllegalBlockSizeException, BadPaddingException, InvalidAlgorithmParameterException {\n Cipher cipher = Cipher.getInstance(decodeBytesToString(new byte[]{-70, -77, -122, -114, 56, 56, -114, 7, 53, -68, -80, -117, 10, 32, 58, -72, 62, 59, 60, 86})); // AES/CBC/PKCS5Padding\n IvParameterSpec ivSpec = new IvParameterSpec(decodeBytesToString(IV).getBytes());\n cipher.init(Cipher.ENCRYPT_MODE, aesKey, ivSpec);\n return cipher.doFinal(bytes);\n }", "private void storeSequence128(long[] longs, int index ){\n if (longs != null) {\n int len = longs.length;\n\n int chunks = (len - 1) / NUM_LONG_IN_CHUNK + 1;\n int position;\n GetDnaBitStringFragmentKey key;\n long[] writeMe = new long[4];\n\n int chunk;\n for (chunk = 0; chunk < chunks-1; chunk++) {\n position = chunk * 128;\n key = new GetDnaBitStringFragmentKey(index, position);\n for (int k = 0; k < 4; k++) {\n writeMe[k] = longs[k + position / 32];\n }\n\n// System.err.println(key+\"\\t\"+key.key+\"\\t\"+ Arrays.toString(writeMe));\n sequence128db.put(key.toBytes(), RocksDbKlue.longArrayToBytes(writeMe));\n }\n\n //last chunk may be short\n position = chunk * 128;\n key = new GetDnaBitStringFragmentKey(index, position);\n for (int k = 0; k < 4; k++) {\n if (k + position / 32 < longs.length){\n writeMe[k] = longs[k + position / 32];\n } else {\n writeMe[k] = 0L;\n }\n }\n\n sequence128db.put(key.toBytes(), RocksDbKlue.longArrayToBytes(writeMe));\n }\n }", "@Test\n public void testCipherNew() throws Exception {\n long start = System.currentTimeMillis();\n for(int i=0; i<max; i++) {\n Cipher cipher = Cipher.getInstance(\"AES/OFB8/NoPadding\"); // corresponds to the protection initialized above\n cipher.init(Cipher.ENCRYPT_MODE, key, iv); \n byte[] ciphertext = cipher.doFinal(plaintext);\n }\n long stop = System.currentTimeMillis();\n log.debug(\"testCipherNew {} ms\", stop-start);\n }", "public Affettatore(String str) {\n this (str, \" \\t\\n\\r\\f\");\n }", "public static void main(String[] args) throws IOException {\n char[][] key = new char[8][8];\n\n String[] lines = new String[8];\n\n File fileCardan = new File(\"cardan.txt\");\n\n Scanner fileScanner = new Scanner(fileCardan);\n\n for (int i = 0; i < 8; i++) {\n lines[i] = fileScanner.nextLine();\n }\n\n for (int i = 0; i < 8; i++) {\n for (int j = 0; j < 8; j++) {\n key[i][j] = lines[i].charAt(j);\n }\n\n }\n\n // reading text from input.txt file and getting count of 64 char blocks\n String text = new String(Files.readAllBytes(Paths.get(\"input.txt\")));\n\n int blocksCount = text.length() / 64 + 1;\n\n FileWriter fw = new FileWriter(\"encode.txt\");\n\n // encoding all 64 char blocks\n for (int i = 0; i < blocksCount; i++) {\n\n char[][] res;\n if(64+i*64 > text.length())\n res = encode(key, text.substring(i*64));\n else\n res = encode(key, text.substring(i*64,64+i*64));\n fileWrite(res,fw);\n\n }\n\n fw.close();\n\n text = new String(Files.readAllBytes(Paths.get(\"encode.txt\")));\n\n fw = new FileWriter(\"decode.txt\");\n\n for (int i = 0; i < blocksCount; i++) {\n\n fw.write(decode(text.substring(i*64,i*64+64),key));\n\n }\n\n fw.close();\n\n\n\n }", "public C6515e mo26405a(char[] cArr, String str) {\n C7397x.m35664a(str);\n for (char a : cArr) {\n mo26404a(a, str);\n }\n return this;\n }", "public MultiKey(final K key1, final K key2, final K key3, final K key4) {\n this(newArray(key1, key2, key3, key4), false);\n }", "public StringTable(int maxSize) \n\t{\n\t\tfor (int j = 0; j < length; j++){ //fills table with empty slots\n\t\t\tTable[j] = new Record(\" \");\n\t\t}\n\t}", "public CompactHashMap() {\n\t\tthis(INITIAL_SIZE);\n\t}", "public com.google.cloud.video.livestream.v1.Encryption.Aes128Encryption.Builder\n getAes128Builder() {\n return getAes128FieldBuilder().getBuilder();\n }", "@java.lang.Override\n public boolean hasAes128() {\n return encryptionModeCase_ == 4;\n }", "public Board() {\n this.board = new byte[][] { new byte[3], new byte[3], new byte[3] };\n }" ]
[ "0.6050834", "0.60236204", "0.59200853", "0.5408499", "0.53191715", "0.53101444", "0.517656", "0.51412016", "0.5111494", "0.50994253", "0.50989586", "0.50732255", "0.50553656", "0.5050662", "0.50466466", "0.5013163", "0.49629205", "0.49216986", "0.49111834", "0.48970872", "0.48876387", "0.48708847", "0.4867903", "0.48616028", "0.4845865", "0.4837444", "0.483207", "0.48049778", "0.47704977", "0.47559562", "0.47558126", "0.47542962", "0.4740182", "0.47337383", "0.47305208", "0.47214353", "0.471312", "0.47112337", "0.4706521", "0.47010955", "0.46968", "0.46933585", "0.46885887", "0.46764478", "0.4674468", "0.46744627", "0.4664207", "0.46565074", "0.46527144", "0.4651404", "0.464777", "0.46449897", "0.46443343", "0.46431902", "0.46355873", "0.46315235", "0.46310204", "0.46294186", "0.46244708", "0.4622201", "0.46208775", "0.461866", "0.4610811", "0.46099782", "0.46067408", "0.46035194", "0.4603382", "0.45948398", "0.45937574", "0.45786005", "0.45727998", "0.45515597", "0.4545112", "0.45427677", "0.45329148", "0.45318222", "0.45318002", "0.4527708", "0.45222074", "0.45212543", "0.45191094", "0.4518283", "0.4516244", "0.45055783", "0.45006517", "0.44982386", "0.44909775", "0.4488983", "0.4482392", "0.447216", "0.446948", "0.44666076", "0.44635066", "0.44634897", "0.44601426", "0.44556803", "0.44530624", "0.44520003", "0.44451126", "0.4444795" ]
0.5996995
2
mixColumns operation for encryption phase.
private static int[][] mixColumns(int[][] state, int round) { int[][] result = new int[state.length][state[0].length]; for(int row=0; row<state.length; row++) result[row] = multRow(state[row]); System.out.println("After mixColumns("+round+"):"); printTranspose(result, false, false); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mixColumns(int[][] arr) {//method for mixColumns\n int[][] tarr = new int[4][4];\n for (int i = 0; i < 4; i++) {\n System.arraycopy(arr[i], 0, tarr[i], 0, 4);\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n arr[i][j] = mcHelper(tarr, galois, i, j);\n }\n }\n }", "private static int[][] invMixColumns(int[][] state, int round)\n\t{\n\t\tint[][] result = new int[state.length][state[0].length];\n\t\t\n\t\tfor(int row=0; row<state.length; row++)\n\t\t\tresult[row] = invMultRow(state[row]);\n\t\t\n\t\tSystem.out.println(\"After invMixColumns(\"+round+\"):\");\n\t\tprintTranspose(result, false, false);\t\t\n\t\treturn result;\n\t}", "public static String [][] inMixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x0E,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[2][c], 16)) ^ GMul(0x09, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (GMul(0x09,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (GMul(0x0D,Integer.parseInt(s[0][c], 16)) ^ GMul(0x09, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x0B,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[1][c], 16)) ^ GMul(0x09, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "public static String [][] MixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x02,Integer.parseInt(s[0][c], 16)) ^ GMul(0x03, Integer.parseInt(s[1][c], 16)) ^ Integer.parseInt(s[2][c], 16) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ GMul(0x02, Integer.parseInt(s[1][c], 16)) ^ GMul(0x03, Integer.parseInt(s[2][c], 16)) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ Integer.parseInt(s[1][c], 16) ^ GMul(0x02, Integer.parseInt(s[2][c], 16)) ^ GMul(0x03, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x03, Integer.parseInt(s[0][c], 16)) ^ Integer.parseInt(s[1][c], 16) ^ Integer.parseInt(s[2][c], 16) ^ GMul(0x02, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "public void encrypt() {\n // JOptionPane.showMessageDialog(null, \"Encrypting ... Action-Type = \" + DES_action_type);\n int[] flipped_last2_cipher_rounds = new int[64];\n for (int i = 0; i < 32; i++) {\n flipped_last2_cipher_rounds[i] = DES_cipher_sequence[17][i];\n flipped_last2_cipher_rounds[32 + i] = DES_cipher_sequence[16][i];\n }\n DES_ciphertext = select(flipped_last2_cipher_rounds, FP);\n }", "public void flipHorizontal() {\n\t\t\tfor(int row = 0; row < TILE_DIM; row++) {\n\t\t\t\tString tmp = \"\";\n\t\t\t\tfor(int col = TILE_DIM-1; col >= 0; col--) {\n\t\t\t\t\ttmp += this.data[row].charAt(col);\n\t\t\t\t}\n\t\t\t\tthis.data[row] = tmp;\n\t\t\t}\n\t\t\tcomputeHashes();\n\t\t}", "private void rotateColumn(Integer column) {\n \t\t\n \t\tArrayList<Block> blocks = game.getSlot().getBlocks();\n \t\t\n \t\tArrayList<String> last = new ArrayList<String>();\n \t\tlast.add(blocks.get(column+6).getTypeId() + \":\" + blocks.get(column+6).getData());\n \t\tlast.add(blocks.get(column+3).getTypeId() + \":\" + blocks.get(column+3).getData());\n \t\t\n \t\t//Get the id and split it\n \t\tint s1 = 1;\n \t\tbyte s2 = 0;\n \t\tString id = getNext();\n \t\t\n \t\t// Prevent silly-looking duplicate blocks\n \t\twhile(id.equalsIgnoreCase(last.get(0))) {\n \t\t\tid = getNext();\n \t\t}\n \t\t\n \t\t//Since the id is not the same (see above) we can go ahead and split it up\n \t\tString[] mSplit = id.split(\"\\\\:\");\n \t\t\tif (mSplit.length == 2) {\n \t\t\t\ts1 = Integer.parseInt(mSplit[0]);\n \t\t\t\ts2 = Byte.parseByte(mSplit[1]);\n \t\t\t}else {\n \t\t\t\ts1 = Integer.parseInt(mSplit[0]);\n \t\t\t}\n \t\t\n \t\t// First column\n \t\tblocks.get(column+6).setTypeIdAndData(s1, s2, false);\n \t\t\n \t\t// Second Column\n \t\tint c2ID = 1;\n \t\tbyte c2Byte = 0;\n \t\tString[] column2 = last.get(0).split(\"\\\\:\");\n \t\t\tif (column2.length == 2) {\n \t\t\t\tc2ID = Integer.parseInt(column2[0]);\n \t\t\t\tc2Byte = Byte.parseByte(column2[1]);\n \t\t\t}else {\n \t\t\t\tc2ID = Integer.parseInt(column2[0]);\n \t\t\t}\n \t\tblocks.get(column+3).setTypeIdAndData(c2ID, c2Byte, false);\n \t\t\n \t\t// Third Column\n \t\tint c3ID = 1;\n \t\tbyte c3Byte = 0;\n \t\tString[] column3 = last.get(1).split(\"\\\\:\");\n \t\t\tif (column3.length == 2) {\n \t\t\t\tc3ID = Integer.parseInt(column3[0]);\n \t\t\t\tc3Byte = Byte.parseByte(column3[1]);\n \t\t\t}else {\n \t\t\t\tc3ID = Integer.parseInt(column3[0]);\n \t\t\t}\n \t\tblocks.get(column).setTypeIdAndData(c3ID, c3Byte, false);\n \t\t\n \t}", "protected AbstractMatrix3D vColumnFlip() {\n\tif (columns>0) {\n\t\tcolumnZero += (columns-1)*columnStride;\n\t\tcolumnStride = -columnStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "@Override\r\n public void transformColumns(DataStorage dataStorage0, DataStorage dataStorage1, DataStorage dataStorage2, long startColumn, long columns, long power2length, long length, boolean isInverse, int modulus)\r\n throws ApfloatRuntimeException\r\n {\n assert (length == 3 * power2length);\r\n\r\n // Check that the data storages use consecutive sections of the same memory array\r\n if (!dataStorage0.isCached() || !dataStorage1.isCached() || !dataStorage2.isCached() ||\r\n startColumn > Integer.MAX_VALUE || columns > Integer.MAX_VALUE)\r\n {\r\n throw new ApfloatInternalException(\"Data must be stored in memory\");\r\n }\r\n\r\n ArrayAccess arrayAccess0 = dataStorage0.getArray(DataStorage.READ_WRITE, startColumn, (int) columns),\r\n arrayAccess1 = dataStorage1.getArray(DataStorage.READ_WRITE, startColumn, (int) columns),\r\n arrayAccess2 = dataStorage2.getArray(DataStorage.READ_WRITE, startColumn, (int) columns);\r\n\r\n if (arrayAccess0.getLongData() != arrayAccess1.getLongData() || arrayAccess1.getLongData() != arrayAccess2.getLongData() ||\r\n arrayAccess1.getOffset() != arrayAccess0.getOffset() + columns || arrayAccess2.getOffset() != arrayAccess1.getOffset() + columns)\r\n {\r\n throw new ApfloatInternalException(\"Data must be stored consecutively in memory\");\r\n }\r\n\r\n setModulus(MODULUS[modulus]); // Modulus\r\n long w = (isInverse ?\r\n getInverseNthRoot(PRIMITIVE_ROOT[modulus], length) :\r\n getForwardNthRoot(PRIMITIVE_ROOT[modulus], length)), // Forward/inverse n:th root\r\n w3 = modPow(w, (long) power2length), // Forward/inverse 3rd root\r\n ww = modMultiply(w, w),\r\n w1 = negate(modDivide((long) 3, (long) 2)),\r\n w2 = modAdd(w3, modDivide((long) 1, (long) 2));\r\n\r\n LongKernel kernel = LongKernel.getInstance();\r\n kernel.setOp(isInverse ? LongKernel.INVERSE_TRANSFORM_COLUMNS : LongKernel.TRANSFORM_COLUMNS);\r\n kernel.setArrayAccess(arrayAccess0);\r\n kernel.setStartColumn((int) startColumn);\r\n kernel.setColumns((int) columns); \r\n kernel.setW(w);\r\n kernel.setWw(ww);\r\n kernel.setW1(w1);\r\n kernel.setW2(w2);\r\n kernel.setModulus(MODULUS[modulus]);\r\n\r\n kernel.execute((int) columns);\r\n }", "void encrypt()\n {\n try\n {\n size=fin.available();\n p=size%8;\n if(p!=0)\n np=8-p;\n size+=np;\n if(p==0)\n nl=size/8;\n else\n nl=size/8+1;\n buf=new byte[8];\n buf1=new byte[size+10];\n fin.read(buf1);\n int enc[]=new int[size];\n mark=-8;\n k2=0;\n for(k=0;k<nl;k++)\n {\n mark+=8;\n for(int k1=0;k1<8;k1++)\n buf[k1]=buf1[mark+k1];\n i=0;\n\t for(i=0;i<4;i++)\n x[i]=0;\n\t j1=0;i1=0;\n while( i1<=3)\n {\n\t if((j1+1)%2==0)\n\t {\n\t x[i1]|=buf[j1]; // dividing 64 bit cipher block into four 16 bit registers\n\t i1++;\n\t\t }\n\t else\n {\n\t x[i1]=buf[j1];\n\t x[i1]<<=8;\n }\n j1++;\n\t }\n // 7 rounds and 14 steps\n for(i=0 ; i <48 ; )\n {\n step1=mul(x[0],z[i+0]);\n step2=(x[1]+z[i+1])%65536;\n step3=(x[2]+z[i+2])%65536;\n step4=mul(x[3],z[i+3]);\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[i+4]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[i+5]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step13;\n x[2]=step12;\n x[3]=step14;\n i=i+6;\n }\n x[0]=mul(x[0],z[48]);\n x[1]=(x[1]+z[49])%65536;\n x[2]=(x[2]+z[50])%65536;\n x[3]=mul(x[3],z[51]);\n for(int t=0;t<4;t++)\n {\n ft1 =x[t]&255;\n ft=x[t]>>8;\n fenc.write((char)ft);\n fenc.write((char)ft1);\n }\n}\nfin.close();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n}", "private void prga(){\n int i = 0;\n int a = 0;\n int b = 0;\n StringBuilder sb = new StringBuilder();\n fileEncrypted.clear();\n\n byte[] code = new byte[filePlain.size()];\n while (i<filePlain.size()){\n a = (a + 1) % 256;\n b = (b + s_box.get(a)) % 256;\n Collections.swap(s_box, a, b);\n\n int key_int = s_box.get((s_box.get(a) + s_box.get(b))% 256);\n byte cypher = (byte) (key_int^filePlain.get(i));\n\n fileEncrypted.add(cypher);\n sb.append((char)cypher);\n code[i] = cypher;\n i++;\n }\n\n System.out.println(\"aaa\");\n// export file\n Helper.exportFile(code, extension, true);\n }", "private void writeColumnsFromBag(ByteBuffer key, DataBag bag) throws IOException\n {\n List<Mutation> mutationList = new ArrayList<Mutation>();\n for (Tuple pair : bag)\n {\n Mutation mutation = new Mutation();\n if (DataType.findType(pair.get(1)) == DataType.BAG) // supercolumn\n {\n SuperColumn sc = new SuperColumn();\n sc.setName(objToBB(pair.get(0)));\n List<org.apache.cassandra.thrift.Column> columns = new ArrayList<org.apache.cassandra.thrift.Column>();\n for (Tuple subcol : (DataBag) pair.get(1))\n {\n org.apache.cassandra.thrift.Column column = new org.apache.cassandra.thrift.Column();\n column.setName(objToBB(subcol.get(0)));\n column.setValue(objToBB(subcol.get(1)));\n column.setTimestamp(FBUtilities.timestampMicros());\n columns.add(column);\n }\n if (columns.isEmpty())\n {\n if (allow_deletes)\n {\n mutation.deletion = new Deletion();\n mutation.deletion.super_column = objToBB(pair.get(0));\n mutation.deletion.setTimestamp(FBUtilities.timestampMicros());\n }\n else\n throw new IOException(\"SuperColumn deletion attempted with empty bag, but deletes are disabled, set \" +\n PIG_ALLOW_DELETES + \"=true in environment or allow_deletes=true in URL to enable\");\n }\n else\n {\n sc.columns = columns;\n mutation.column_or_supercolumn = new ColumnOrSuperColumn();\n mutation.column_or_supercolumn.super_column = sc;\n }\n }\n else\n mutation = mutationFromTuple(pair);\n mutationList.add(mutation);\n // for wide rows, we need to limit the amount of mutations we write at once\n if (mutationList.size() >= 10) // arbitrary, CFOF will re-batch this up, and BOF won't care\n {\n writeMutations(key, mutationList);\n mutationList.clear();\n }\n }\n // write the last batch\n if (mutationList.size() > 0)\n writeMutations(key, mutationList);\n }", "public static void encrypt() throws IOException{\n\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(inFilename));\n\t\tBufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(outFilename));\n\n\t\tSecureRandom randomGen = new SecureRandom(); //used for the salt and the padding\n\t\tbyte[] key; //holds the encryption key\n\n\t\t//get the file length\n\t\tlong fileLength = (new File(inFilename)).length();\n\n\t\t//write the file header marker\n\t\tout.write(FILE_HEADER);\n\n\t\t/* STAGE 1 - generate encryption key */\n\t\t//find the number of bytes we have to pad and write it to the file\n\t\tint numPad;\n\t\tif (fileLength % 8 == 0)\n\t\t\tnumPad = 0;\n\t\telse\n\t\t\tnumPad = (int)(8 - (fileLength % 8));\n\t\tout.write(numPad);\n\t\t//generate a 128-byte random salt and write it to the file\n\t\tbyte[] salt = new byte[128];\n\t\trandomGen.nextBytes(salt);\n\t\tout.write(salt);\n\t\t//generate the message for CubeHash: (password + #padded bits + random salt)\n\t\tbyte[] message = new byte[password.length + 1 + salt.length];\n\t\tSystem.arraycopy(password, 0, message, 0, password.length); //add the password\n\t\tmessage[password.length] = (byte)numPad; //add #padded bits\n\t\tSystem.arraycopy(salt, 0, message, password.length + 1, salt.length); //add random salt\n\t\t//finally, generate the encryption key\n\t\tkey = CryptoLib.CubeHash.doCubeHash(message);\n\n\t\t/* STAGE 2 - apply encryption */\n\t\tint currPiece = 0; //keeps track of which piece of the key is being used\n\t\tbyte[] currData = new byte[8]; //holds the piece of data currently being encrypted\n\n\t\t//split the key into 4 pieces of 128 bits each\n\t\tbyte[][] keyPieces = new byte[4][16];\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tSystem.arraycopy(key, i*16, keyPieces[i], 0, 16);\n\t\t}\n\n\t\t//loop through the file (except the last block), 8 bytes at a time\n\t\tfor (long i = 0; i < fileLength - 8; i += 8){\n\t\t\t//put a chunk of data in currData\n\t\t\tin.read(currData);\n\n\t\t\t//do TEA(key, RC4(key, data)), then write to file\n\t\t\tout.write(CryptoLib.TEA.doTEA(keyPieces[currPiece],\n\t\t\t\t\t\tCryptoLib.RC4.doRC4(keyPieces[currPiece], currData)));\n\n\t\t\t//increment currPiece\n\t\t\tcurrPiece = (currPiece + 1) % 4;\n\t\t}\n\n\t\t//deal with the last block of data:\n\t\t//first, read it..\n\t\tin.read(currData);\n\t\t//..pad it with random data..\n\t\tfor (int i = 7; i >= (8 - numPad); i--){\n\t\t\tcurrData[i] = (byte)randomGen.nextInt();\n\t\t}\n\t\t//..then encrypt it\n\t\tout.write(CryptoLib.TEA.doTEA(keyPieces[currPiece],\n\t\t\t\t\tCryptoLib.RC4.doRC4(keyPieces[currPiece], currData)));\n\n\t\t/* STAGE 3 - done! */\n\t\tin.close();\n\t\tout.close();\n\t\tSystem.out.println(\"\\nEncryption complete.\");\n\t}", "public void mixDownChannels() {\n\t\tfloat[] firstChannel = getChannel(0);\n\t\tint localSampleCount = getSampleCount();\n\t\tfor (int ch = getChannelCount() - 1; ch > 0; ch--) {\n\t\t\tfloat[] thisChannel = getChannel(ch);\n\t\t\tfor (int i = 0; i < localSampleCount; i++) {\n\t\t\t\tfirstChannel[i] += thisChannel[i];\n\t\t\t}\n\t\t\tremoveChannel(ch);\n\t\t}\n\t}", "@Test\n public void NoneHoldoutMultipleTEColumnsWithFoldColumnTest() {\n String targetColumnName = \"ColC\";\n String foldColumn = \"fold_column\";\n fr = new TestFrameBuilder()\n .withName(\"testFrame\")\n .withColNames(\"ColA\", \"ColB\", targetColumnName, foldColumn)\n .withVecTypes(Vec.T_CAT, Vec.T_CAT, Vec.T_CAT, Vec.T_NUM)\n .withDataForCol(0, ar(\"a\", \"b\", \"b\", \"b\", \"a\"))\n .withDataForCol(1, ar(\"d\", \"e\", \"d\", \"e\", \"e\"))\n .withDataForCol(2, ar(\"2\", \"6\", \"6\", \"6\", \"6\"))\n .withDataForCol(3, ar(1, 2, 2, 3, 2))\n .build();\n\n String[] teColumns = {\"ColA\", \"ColB\"};\n TargetEncoder tec = new TargetEncoder(teColumns);\n\n Map<String, Frame> targetEncodingMap = tec.prepareEncodingMap(fr, targetColumnName, foldColumn);\n\n Frame resultWithEncoding = tec.applyTargetEncoding(fr, targetColumnName, targetEncodingMap, TargetEncoder.DataLeakageHandlingStrategy.None, foldColumn, false, 0, false,1234, true);\n\n Vec expected = dvec(0.5, 1, 0.5, 1, 1);\n assertVecEquals(expected, resultWithEncoding.vec(4), 1e-5);\n\n Vec expected2 = dvec(0.5, 0.5, 1, 1, 1);\n assertVecEquals(expected2, resultWithEncoding.vec(5), 1e-5);\n\n expected.remove();\n expected2.remove();\n encodingMapCleanUp(targetEncodingMap);\n resultWithEncoding.delete();\n }", "void encrypt(ChannelBuffer buffer, Channel c);", "public static final byte[] encryptData(final byte data[]) {\n\n for (int j = 0; j < 6; j++) {\n byte remember = 0;\n byte dataLength = (byte) (data.length & 0xFF);\n // printByteArray(data);\n if (j % 2 == 0) {\n for (int i = 0; i < data.length; i++) {\n byte cur = data[i];\n cur = BitTools.rollLeft(cur, 3);\n cur += dataLength;\n cur ^= remember;\n remember = cur;\n cur = BitTools.rollRight(cur, (int) dataLength & 0xFF);\n cur = ((byte) ((~cur) & 0xFF));\n cur += 0x48;\n dataLength--;\n data[i] = cur;\n }\n } else {\n for (int i = data.length - 1; i >= 0; i--) {\n byte cur = data[i];\n cur = BitTools.rollLeft(cur, 4);\n cur += dataLength;\n cur ^= remember;\n remember = cur;\n cur ^= 0x13;\n cur = BitTools.rollRight(cur, 3);\n dataLength--;\n data[i] = cur;\n }\n }\n //System.out.println(\"enc after iteration \" + j + \": \" + HexTool.toString(data) + \" al: \" + al);\n }\n return data;\n }", "private static void mixBlock(long[] src, int start, long[] h) {\n\t\th[0] += src[start]; \n\t\th[2] ^= h[10]; \n\t\th[11] ^= h[0]; \n\t\th[0] = (h[0] << 11) | (h[0] >>> 53); \n\t\th[11] += h[1];\n\t\t\n\t\th[1] += src[start+1]; \n\t\th[3] ^= h[11]; \n\t\th[0] ^= h[1]; \n\t\th[1] = (h[1] << 32) | (h[1] >>> 32); \n\t\th[0] += h[2];\n\n\t\th[2] += src[start+2]; \n\t\th[4] ^= h[0]; \n\t\th[1] ^= h[2]; \n\t\th[2] = (h[2] << 43) | (h[2] >>> 21); \n\t\th[1] += h[3];\n\t\n\t\th[3] += src[start+3]; \n\t\th[5] ^= h[1]; \n\t\th[2] ^= h[3]; \n\t\th[3] = (h[3] << 31) | (h[3] >>> 33); \n\t\th[2] += h[4];\n\n\t\th[4] += src[start+4]; \n\t\th[6] ^= h[2]; \n\t\th[3] ^= h[4]; \n\t\th[4] = (h[4] << 17) | (h[4] >>> 47); \n\t\th[3] += h[5];\n\n\t\th[5] += src[start+5]; \n\t\th[7] ^= h[3]; \n\t\th[4] ^= h[5]; \n\t\th[5] = (h[5] << 28) | (h[5] >>> 36); \n\t\th[4] += h[6];\n\n\t\th[6] += src[start+6]; \n\t\th[8] ^= h[4]; \n\t\th[5] ^= h[6]; \n\t\th[6] = (h[6] << 39) | (h[6] >>> 25); \n\t\th[5] += h[7];\n\n\t\th[7] += src[start+7]; \n\t\th[9] ^= h[5]; \n\t\th[6] ^= h[7]; \n\t\th[7] = (h[7] << 57) | (h[7] >>> 7); \n\t\th[6] += h[8];\n\n\t\th[8] += src[start+8]; \n\t\th[10] ^= h[6]; \n\t\th[7] ^= h[8]; \n\t\th[8] = (h[8] << 55) | (h[8] >>> 9); \n\t\th[7] += h[9];\n\n\t\th[9] += src[start+9]; \n\t\th[11] ^= h[7]; \n\t\th[8] ^= h[9]; \n\t\th[9] = (h[9] << 54) | (h[9] >>> 10); \n\t\th[8] += h[10];\n\n\t\th[10] += src[start+10]; \n\t\th[0] ^= h[8]; \n\t\th[9] ^= h[10]; \n\t\th[10] = (h[10] << 22) | (h[10] >>> 42); \n\t\th[9] += h[11];\n\n\t\th[11] += src[start+11]; \n\t\th[1] ^= h[9]; \n\t\th[10] ^= h[11]; \n\t\th[11] = (h[11] << 46) | (h[11] >>> 18); \n\t\th[10] += h[0];\t\t\n\t}", "private void addColumns() {\n\n List<Integer> colIds = new ArrayList<>();\n List<String> colNames = new ArrayList<>();\n List<ColumnDescriptor> tupleDescription = context.getTupleDescription();\n for (int i = 0; i < tupleDescription.size(); i++) {\n ColumnDescriptor col = tupleDescription.get(i);\n if (col.isProjected() && hiveIndexes.get(i) != null) {\n colIds.add(hiveIndexes.get(i));\n colNames.add(col.columnName());\n }\n }\n jobConf.set(READ_ALL_COLUMNS, \"false\");\n jobConf.set(READ_COLUMN_IDS_CONF_STR, StringUtils.join(colIds, \",\"));\n jobConf.set(READ_COLUMN_NAMES_CONF_STR, StringUtils.join(colNames, \",\"));\n }", "public void transform() {\r\n\r\n\t\tint x, y, i;\r\n\t\tComplex[] row = new Complex[width];\r\n\t\tfor (x = 0; x < width; ++x)\r\n\t\t\trow[x] = new Complex();\r\n\t\tComplex[] column = new Complex[height];\r\n\t\tfor (y = 0; y < height; ++y)\r\n\t\t\tcolumn[y] = new Complex();\r\n\r\n\t\tint direction;\r\n\t\tif (spectral)\r\n\t\t\tdirection = -1; // inverse transform\r\n\t\telse\r\n\t\t\tdirection = 1; // forward transform\r\n\r\n\t\t// Perform FFT on each row\r\n\r\n\t\tfor (y = 0; y < height; ++y) {\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\trow[x].re = data[i].re;\r\n\t\t\t\trow[x].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(row, width);\r\n\t\t\tfft(row, width, log2w, direction);\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\tdata[i].re = row[x].re;\r\n\t\t\t\tdata[i].im = row[x].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Perform FFT on each column\r\n\r\n\t\tfor (x = 0; x < width; ++x) {\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tcolumn[y].re = data[i].re;\r\n\t\t\t\tcolumn[y].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(column, height);\r\n\t\t\tfft(column, height, log2h, direction);\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tdata[i].re = column[y].re;\r\n\t\t\t\tdata[i].im = column[y].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (spectral)\r\n\t\t\tspectral = false;\r\n\t\telse\r\n\t\t\tspectral = true;\r\n\r\n\t}", "@Test\n public void testInjectOnCompact() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n Map<Key, Value> input = new HashMap<>();\n input.put(new Key(\"aTablet1\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"kTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n input.put(new Key(\"zTablet2\", \"\", \"cq\"), new Value(\"7\".getBytes(StandardCharsets.UTF_8)));\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset, input);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(input);\n expect.putAll(HardListIterator.allEntriesToInject);\n // we will not read back the entry that has a column visibility because this is a compaction write and we don't have the credentials\n for (Iterator<Map.Entry<Key, Value>> iterator = expect.entrySet().iterator();\n iterator.hasNext();\n ) {\n if (iterator.next().getKey().getColumnVisibilityData().length() > 0)\n iterator.remove();\n }\n\n // attach InjectIterator, flush and compact. Compaction blocks.\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n List<IteratorSetting> itlist = new ArrayList<>();\n itlist.add(itset);\n itset = new IteratorSetting(16, DebugIterator.class);\n itlist.add(itset);\n StopWatch sw = new StopWatch();\n sw.start();\n conn.tableOperations().compact(tableName, null, null, itlist, true, true);\n\n// CompactionConfig cc = new CompactionConfig()\n// .setCompactionStrategy(CompactionStrategyConfigUtil.DEFAULT_STRATEGY)\n// .setStartRow(null).setEndRow(null).setIterators(itlist)\n// .setFlush(true).setWait(true);\n// conn.tableOperations().compact(tableName, cc);\n\n sw.stop();\n log.debug(\"compaction took \" + sw.getTime() + \" ms\");\n\n // read back both tablets in parallel\n BatchScanner scan = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n Range rng = new Range();\n scan.setRanges(Collections.singleton(rng));\n log.debug(\"Results of scan on table \" + tableName + ':');\n Map<Key, Value> actual = new TreeMap<>(TestUtil.COMPARE_KEY_TO_COLQ); // only compare row, colF, colQ\n for (Map.Entry<Key, Value> entry : scan) {\n Key k = entry.getKey();\n Value v = entry.getValue();\n log.debug(k + \" \" + v);\n Assert.assertFalse(\"Duplicate entry found: \" + k, actual.containsKey(k)); // passes because not scan-time iterator\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }", "public void rotateColumn(int a, int b) {\n for (int i = 0; i < b; i++) {\n char last = screen[screen.length - 1][a];\n for (int j = screen.length - 2; j >= 0; j--) {\n screen[j + 1][a] = screen[j][a];\n }\n screen[0][a] = last;\n }\n }", "@Override\n\t\tpublic void transform()\n\t\t{\n\t\t\tif(!isRed)\n\t\t\t{\n\t\t\t\tcells[0].setCol(cells[0].getCol()+1);\n\t\t\t\tcells[1].setCol(cells[1].getCol()+1);\n\t\t\t\tcells[2].setCol(cells[2].getCol()-1);\n\t\t\t\tcells[3].setCol(cells[3].getCol()-1);\n\t\t\t\t//Changes colors to red\n\t\t\t\tfor(int i = 0; i < cells.length; i ++)\n\t\t\t\t{\n\t\t\t\t\tBlock temp = cells[i].getBlock();\n\t\t\t\t\tcells[i].setBlock(new Block(Color.RED,temp.isMagic()));\n\t\t\t\t}\n\t\t\t\tisRed = true;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcells[0].setCol(cells[0].getCol()-1);\n\t\t\t\tcells[1].setCol(cells[1].getCol()-1);\n\t\t\t\tcells[2].setCol(cells[2].getCol()+1);\n\t\t\t\tcells[3].setCol(cells[3].getCol()+1);\n\t\t\t\t//changes colors to green\n\t\t\t\tfor(int i = 0; i < cells.length; i ++)\n\t\t\t\t{\n\t\t\t\t\tBlock temp = cells[i].getBlock();\n\t\t\t\t\tcells[i].setBlock(new Block(Color.GREEN,temp.isMagic()));\n\t\t\t\t}\n\t\t\t\tisRed = false;\n\t\t\t}\n\t\t\t\n\t\t}", "void decrypt(ChannelBuffer buffer, Channel c);", "private static int[] invMultRow(int[] column)\n\t{\n\t\tint[] result = new int[column.length];\n\t\t\n\t\tfor(int row=0; row<invMultCon.length; row++)\n\t\t\tfor(int col=0; col<invMultCon[row].length; col++)\n\t\t\t\tresult[row] ^= galoisMult(invMultCon[row][col],column[col]);\n\t\t\n\t\treturn result;\n\t}", "@Override\n public Matrix dct(final MatrixView in) {\n check(in);\n double[][] out = new double[in.getRows()][in.getColumns()];\n double tmpm0 = 0, tmpm1 = 0, tmpm2 = 0, tmpm3 = 0, tmpm4 = 0, tmpm5 = 0, tmpm6 = 0, tmpm7 = 0;\n double tmpm20 = 0, tmpm21 = 0, tmpm22 = 0, tmpm23 = 0, tmpm24 = 0, tmpm25 = 0, tmpm26 = 0, tmpm27 = 0;\n\n for (int my = 0; my < in.getRows(); my += SIZE) {\n for (int mx = 0; mx < in.getColumns(); mx += SIZE) {\n\n for (int i = 0; i < SIZE; i++) { // HT\n\n tmpm0 = in.getInt(my + i, mx + 0);\n tmpm1 = in.getInt(my + i, mx + 1);\n tmpm2 = in.getInt(my + i, mx + 2);\n tmpm3 = in.getInt(my + i, mx + 3);\n tmpm4 = in.getInt(my + i, mx + 4);\n tmpm5 = in.getInt(my + i, mx + 5);\n tmpm6 = in.getInt(my + i, mx + 6);\n tmpm7 = in.getInt(my + i, mx + 7);\n\n tmpm20 = tmpm0 + tmpm7;\n tmpm27 = tmpm0 - tmpm7;\n tmpm21 = tmpm1 + tmpm6;\n tmpm26 = tmpm1 - tmpm6;\n tmpm22 = tmpm2 + tmpm5;\n tmpm25 = tmpm2 - tmpm5;\n tmpm23 = tmpm3 + tmpm4;\n tmpm24 = tmpm3 - tmpm4;\n\n double outmyi[] = out[my + i];\n\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n tmpm4 = tmpm24;\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm7 = tmpm27;\n outmyi[mx + 0] = (tmpm0 + tmpm1) * Z4;\n outmyi[mx + 4] = (tmpm0 - tmpm1) * Z4;\n outmyi[mx + 2] = (tmpm2 * Z6) + (tmpm3 * Z2);\n outmyi[mx + 6] = (tmpm3 * Z6) - (tmpm2 * Z2);\n tmpm24 = tmpm4 + tmpm5;\n tmpm27 = tmpm7 + tmpm6;\n tmpm25 = tmpm4 - tmpm5;\n tmpm26 = tmpm7 - tmpm6;\n outmyi[mx + 1] = (tmpm24 * Z7) + (tmpm27 * Z1);\n outmyi[mx + 5] = (tmpm25 * Z3) + (tmpm26 * Z5);\n outmyi[mx + 7] = (tmpm27 * Z7) - (tmpm24 * Z1);\n outmyi[mx + 3] = (tmpm26 * Z3) - (tmpm25 * Z5);\n }\n\n for (int i = 0; i < SIZE; i++) { // VT\n tmpm20 = out[my + 0][mx + i] + out[my + 7][mx + i];\n tmpm27 = out[my + 0][mx + i] - out[my + 7][mx + i];\n tmpm21 = out[my + 1][mx + i] + out[my + 6][mx + i];\n tmpm26 = out[my + 1][mx + i] - out[my + 6][mx + i];\n tmpm22 = out[my + 2][mx + i] + out[my + 5][mx + i];\n tmpm25 = out[my + 2][mx + i] - out[my + 5][mx + i];\n tmpm23 = out[my + 3][mx + i] + out[my + 4][mx + i];\n tmpm24 = out[my + 3][mx + i] - out[my + 4][mx + i];\n\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n tmpm4 = tmpm24;\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm7 = tmpm27;\n out[my + 0][mx + i] = (tmpm0 + tmpm1) * Z4;\n out[my + 4][mx + i] = (tmpm0 - tmpm1) * Z4;\n out[my + 2][mx + i] = (tmpm2 * Z6) + (tmpm3 * Z2);\n out[my + 6][mx + i] = (tmpm3 * Z6) - (tmpm2 * Z2);\n tmpm24 = tmpm4 + tmpm5;\n tmpm27 = tmpm7 + tmpm6;\n tmpm25 = tmpm4 - tmpm5;\n tmpm26 = tmpm7 - tmpm6;\n out[my + 1][mx + i] = (tmpm24 * Z7) + (tmpm27 * Z1);\n out[my + 5][mx + i] = (tmpm25 * Z3) + (tmpm26 * Z5);\n out[my + 7][mx + i] = (tmpm27 * Z7) - (tmpm24 * Z1);\n out[my + 3][mx + i] = (tmpm26 * Z3) - (tmpm25 * Z5);\n }\n }\n }\n\n return new DoubleMatrix(in.getRows(), in.getColumns(), out);\n }", "void decryption(String file)\n {\n try\n {\n fdec=new DataOutputStream(new FileOutputStream(\"dec.txt\"));\n fenc1=new FileInputStream(file);\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n try\n {\n size=fenc1.available();\n np=0;\n p=size%8;\n if(p!=0)\n np=8-p;\n size+=np;\n if(p==0)\n nl=size/8;\n else\n nl=size/8+1;\n buf1=new byte[size+10];\n buf=new byte[8];\n fenc1.read(buf1);\n mark=-8;\n int arr[]=new int [8];\n for(k1=0;k1<nl;k1++)\n {\n mark+=8;\n for(int k2=0;k2<8;k2++)\n buf[k2]=buf1[mark+k2];\n for(int k2=0;k2<8;k2++)\n\t {\n\t arr[k2]=0;\n\t if(buf[k2]>=0)\n\t arr[k2]=buf[k2];\n\t else\n\t arr[k2]=buf[k2]+256;\n }\n\t j1=0;i1=0;\n while( i1<=3)\n\t\t {\n\t\t if((j1+1)%2==0)\n\t {\n x[i1]|=arr[j1]; // dividing 64 bit cypher block into four 16 bit registers\n\t i1++;\n\t\t }\n\t else\n\t {\n\t \t x[i1]=arr[j1];\n\t x[i1]<<=8;\n\t }\n\t j1++;\n\t }\n for(int t=0;t<4;t++)\n {\n\t ft1 =x[t]&255;\n\t ft=x[t]>>8;\n\t }\n step1=mul( x[0] , minverse( z[48] ));\n step2=( x[1] + ainverse( z[49] )) % 65536;\n step3=( x[2] + ainverse( z[50] )) % 65536;\n step4=mul( x[3] , minverse( z[51] ));\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[46]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[47]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step12;\n x[2]=step13;\n x[3]=step14;\n// 2nd round\n\tint j2=40;\n\t\tfor(j1=1;j1<=7;j1++)\n \t\t {\n step1=mul( x[0] , minverse( z[j2+2] ));\n step2=( x[1] + ainverse( z[j2+4] )) % 65536;\n step3=( x[2] + ainverse( z[j2+3] )) % 65536;\n t=step2;\n step2=step3;\n step3=t;\n step4=mul( x[3] , minverse( z[j2+5] ));\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[j2+0]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[j2+1]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step12;\n x[2]=step13;\n x[3]=step14;\n j2=j2-6;\n }\n x[0]=mul(x[0],minverse(z[0]));\n x[1]=(x[1]+ainverse(z[2]))%65536;\n x[2]=(x[2]+ainverse(z[1]))%65536;\n x[3]=mul(x[3],minverse(z[3]));\n t=x[1];\n x[1]=x[2];\n x[2]=t;\n\t for(int t=0;t<4;t++)\n {\n\t ft1 =x[t]&255;\n\t ft=x[t]>>8;\n\t fdec.write((char)ft);\n\t fdec.write((char)ft1);\n\t }\n }\n\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n }", "public static void decrypt() throws IOException{\n\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(inFilename));\n\t\tBufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(outFilename));\n\n\t\tbyte[] key; //holds the encryption key\n\n\t\t//get the file length\n\t\tlong fileLength = (new File(inFilename)).length();\n\n\t\t//check the file header marker\n\t\tbyte[] actualHeader = new byte[FILE_HEADER.length];\n\t\tin.read(actualHeader); //read header from the file\n\t\tif (!Arrays.equals(actualHeader, FILE_HEADER)){\n\t\t\tSystem.out.println(\"The file was not encrypted with this program.\");\n\t\t\tSystem.exit(-1); //-1 is an error code\n\t\t}\n\n\t\t/* STAGE 1 - generate decryption key */\n\t\t//read the #padded bits and random salt from the file\n\t\tbyte[] dataFromFile = new byte[129]; //1 byte for #padded bits + 128 bytes for salt\n\t\tin.read(dataFromFile);\n\t\t//separate the #padded bits for use later\n\t\tint numPad = (int)(dataFromFile[0]);\n\t\t//next, generate the message for CubeHash: (password + dataFromFile)\n\t\tbyte[] message = new byte[password.length + dataFromFile.length];\n\t\tSystem.arraycopy(password, 0, message, 0, password.length); //add the password\n\t\tSystem.arraycopy(dataFromFile, 0, message, password.length, dataFromFile.length); //add dataFromFile\n\t\t//finally, (re)generate the encryption key\n\t\tkey = CryptoLib.CubeHash.doCubeHash(message);\n\n\t\t/* STAGE 2 - apply decryption */\n\t\tint currPiece = 0; //keeps track of which piece of the key is being used\n\t\tbyte[] currData = new byte[8]; //holds the data currently being decrypted\n\n\t\t//split the key into 4 pieces of 128 bits each\n\t\tbyte[][] keyPieces = new byte[4][16];\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tSystem.arraycopy(key, i*16, keyPieces[i], 0, 16);\n\t\t}\n\n\t\t//loop through the rest of the file (except the last block), 8 bytes at a time\n\t\tfor (long i = FILE_HEADER.length + 129; i < fileLength - 8; i += 8){\n\t\t\t//put a chunk of data in currData\n\t\t\tin.read(currData);\n\n\t\t\t//do RC4(key, unTEA(key, data)), then write to file\n\t\t\tout.write(CryptoLib.RC4.doRC4(keyPieces[currPiece],\n\t\t\t\t\t\tCryptoLib.TEA.doUnTEA(keyPieces[currPiece], currData)));\n\n\t\t\t//increment currPiece\n\t\t\tcurrPiece = (currPiece + 1) % 4;\n\t\t}\n\n\t\t//deal with the last chunk of data:\n\t\t//first, read it..\n\t\tin.read(currData);\n\t\t//..decrypt it..\n\t\tcurrData = CryptoLib.RC4.doRC4(keyPieces[currPiece],\n\t\t\t\tCryptoLib.TEA.doUnTEA(keyPieces[currPiece], currData));\n\t\t//..then write it to the file\n\t\tout.write(currData, 0, (8 - numPad));\n\n\t\t/* STAGE 3 - done! */\n\t\tin.close();\n\t\tout.close();\n\t\tSystem.out.println(\"\\nDecryption complete.\");\n\t}", "public byte[] Tencryption() {\n int[] ciphertext = new int[message.length];\n\n for (int j = 0, k = 1; j < message.length && k < message.length; j = j + 2, k = k + 2) {\n sum = 0;\n l = message[j];\n r = message[k];\n for (int i = 0; i < 32; i++) {\n sum = sum + delta;\n l = l + (((r << 4) + key[0]) ^ (r + sum) ^ ((r >> 5) + key[1]));\n r = r + (((l << 4) + key[2]) ^ (l + sum) ^ ((l >> 5) + key[3]));\n }\n ciphertext[j] = l;\n ciphertext[k] = r;\n }\n return this.Inttobyte(ciphertext);\n\n }", "Map<String, ByteBuffer> getColumns(String columnFamily, String key, boolean reversed, String... columns);", "private static boolean ignoringEncryptColumn(String datasetName, String tableName, int index, List<String> listColumn) {\n String path = System.getProperty(\"user.dir\") + \"/src/test/resources/schema/\" + tableName + \".json\";\n JSONObject jsonObject = readJSON_FILE(path);\n boolean returnValue = false;\n List<String> listofcolumn = listColumn;\n String column = listofcolumn.get(index);\n\n String table = datasetName + \".\" + tableName;\n if (table.equals(jsonObject.get(\"name\").toString())) {\n JSONArray fields = (JSONArray) jsonObject.get(\"fields\");\n // loop through the json schema\n for (int i = 0; i < fields.size(); i++) {\n JSONObject childObject = (JSONObject) fields.get(i);\n String JSONColumnName = childObject.get(\"name\").toString();\n // matching with column name\n if (column.toUpperCase().equals(JSONColumnName.toUpperCase())) {\n boolean encrypt = (boolean) childObject.get(\"encrypt\");\n if (encrypt) {\n returnValue = encrypt;\n break;\n } else {\n returnValue = encrypt;\n break;\n }\n }\n }\n }\n return returnValue;\n }", "void deleteColumns(String columnFamily, String key, String... columns);", "public void subBytes(int[][] arr) {\n for (int i = 0; i < arr.length; i++) {//Sub-Byte subroutine\n for (int j = 0; j < arr[0].length; j++) {\n int hex = arr[j][i];\n arr[j][i] = sbox[hex / 16][hex % 16] ^ 0x42;\n }\n }\n }", "int cubeCol() {\n return c; \n }", "private static int[] multRow(int[] column)\n\t{\n\t\tint[] result = new int[column.length];\n\t\t\n\t\tfor(int row=0; row<multCon.length; row++)\n\t\t\tfor(int col=0; col<multCon[row].length; col++)\n\t\t\t\tresult[row] ^= galoisMult(multCon[row][col],column[col]);\n\t\t\n\t\treturn result;\n\t}", "public static void inverseTransform() {\r\n \tint start = BinaryStdIn.readInt();\r\n \tString str = BinaryStdIn.readString();;\r\n \tchar[] lastCol = str.toCharArray();\r\n \tint[] count = new int[256];\r\n \tfor (char c : lastCol) {\r\n \t\tcount[c]++;\r\n \t}\r\n \tfor (int i = 1; i < count.length; i++) {\r\n \t\tcount[i] += count[i - 1];\r\n \t}\r\n \tint[] next = new int[lastCol.length];\r\n \tchar[] firstCol = new char[lastCol.length];\r\n \tfor (int i = lastCol.length - 1; i >= 0; i--) {\r\n \t\tint index = --count[lastCol[i]];\r\n \t\tfirstCol[index] = lastCol[i];\r\n \t\tnext[index] = i;\r\n \t}\r\n \tint sum = 0;\r\n \twhile (sum < lastCol.length) {\r\n \t\tBinaryStdOut.write(firstCol[start]);\r\n \t\tstart = next[start];\r\n \t\tsum++;\r\n \t}\r\n \tBinaryStdOut.close();\r\n }", "public static void rotate90CCWRowColInts(int[] rows, int[] cols, int count) {\r\n\t\tint r, c;\r\n\t\tfor (int i = 0; i < count; i++) {\r\n\t\t\tr = 2 - cols[i];\r\n\t\t\tc = rows[i];\r\n\t\t\trows[i] = r;\r\n\t\t\tcols[i] = c;\r\n\t\t}\r\n\t}", "public final MF addKeys(String... columns) {\n for(String col : columns) {\n addColumnDefinition(col, identity.addKey());\n }\n return (MF) this;\n }", "void updateDecrypt() {\r\n\r\n for (int i = 0; i < 56; i++) {\r\n queue.set(i, queue.get(i + 8));\r\n }\r\n\r\n //adding results of plaintext XOR keystream to ciphertext\r\n ciphertext.addAll(xor(plaintext, keystream));\r\n\r\n //takes last 8 bits of ciphertext and copies to right 8 bits in queue \r\n int ciphertextIndexOfLast = ciphertext.size();\r\n\r\n //notice here the bits being pushed into queue are from the ciphertext generated during encryption. although the information\r\n //is stored in a variable named \"plaintext,\" the encrypted ciphertext is what was actually passed into that plaintext variable\r\n //for decryption\r\n for (int i = ciphertextIndexOfLast - 8; i < ciphertextIndexOfLast; i++) {\r\n queue.set((i - ((ciphertextIndexOfLast - 8)) + 56), plaintext.get(i));\r\n }\r\n\r\n //using the new queue, populates registers with new data\r\n resetRegisters(queue);\r\n\r\n }", "private char[] encryptBlock(byte[] bytes, int i)\r\n {\r\n // every block of 3 bytes is going to 4*6 bits array of chars\r\n char[] base64chars = new char[4];\r\n // block of 32 bits\r\n int bits32 = 0;\r\n // space left on byte array\r\n int space = bytes.length - i - 1;\r\n int blockSize = (space >= 2) ? 2 : space;\r\n\r\n for (int k = 0; k <= blockSize; k++)\r\n {\r\n // if value is signed we need to keep\r\n // need to keep sign bit 100000000 if byte is signed.\r\n int val = (bytes[i + k] & SIGN) == 0 ? bytes[i + k] : bytes[i + k] + SIGN256;\r\n // shift bits left to build one 32 bits block\r\n bits32 += val << (8 * (2 - k));\r\n }\r\n\r\n for (int j = 0; j < 4; j++)\r\n {\r\n // shift bits to right and take 6 bits using mask\r\n int bit6 = bits32 >>> (6 * (3 - j)) & BIT6_MASK;\r\n base64chars[j] = (convertToBase64Alpabet(bit6));\r\n if (space < 1)\r\n {\r\n base64chars[2] = '=';\r\n }\r\n if (space < 2)\r\n {\r\n base64chars[3] = '=';\r\n }\r\n\r\n }\r\n return base64chars;\r\n }", "protected void setEncrypted() {\n content = this.aesKey.encrypt(this.content);\n }", "public ArrayList<Integer> encryptCycle() {\r\n\r\n for (int i = 0; i < 416; i++) {\r\n for (int j = 0; j < 8; j++) {\r\n pulse();\r\n }\r\n update();\r\n }\r\n return ciphertext;\r\n }", "private void generateCipher()\n {\n for (int i = 0; i < 26; i++)\n {\n if (((i + shiftKey) < 26) && ((i + shiftKey) >= 0))\n {\n cipherAlphabet[i] = Alphabet[i + shiftKey];\n }\n else\n {\n cipherAlphabet[i] = Alphabet[(i + shiftKey) - 26];\n }\n } \n }", "public void update() {\n // If no previous columns, use new columns and return\n if(this.columns == null || this.columns.size() == 0) {\n if(this.newColumns.size() > 0){\n finish(newColumns);\n }\n return;\n }\n \n // If no new columns, retain previous columns and return\n if(this.newColumns.size() == 0) {\n this.index = 0;\n this.column = this.columns.get(index);\n return;\n }\n \n // Merge previous columns with new columns\n // There will be no overlapping\n List<ColumnCount> mergeColumns = new ArrayList<ColumnCount>(\n columns.size() + newColumns.size());\n index = 0;\n newIndex = 0;\n column = columns.get(0);\n newColumn = newColumns.get(0);\n while(true) {\n int ret = Bytes.compareTo(\n column.getBuffer(), column.getOffset(),column.getLength(), \n newColumn.getBuffer(), newColumn.getOffset(), newColumn.getLength());\n \n // Existing is smaller than new, add existing and iterate it\n if(ret <= -1) {\n mergeColumns.add(column);\n if(++index == columns.size()) {\n // No more existing left, merge down rest of new and return \n mergeDown(mergeColumns, newColumns, newIndex);\n finish(mergeColumns);\n return;\n }\n column = columns.get(index);\n continue;\n }\n \n // New is smaller than existing, add new and iterate it\n mergeColumns.add(newColumn);\n if(++newIndex == newColumns.size()) {\n // No more new left, merge down rest of existing and return\n mergeDown(mergeColumns, columns, index);\n finish(mergeColumns);\n return;\n }\n newColumn = newColumns.get(newIndex);\n continue;\n }\n }", "public MultipartEncrypted(ContentType ct) {\r\n super(\"mixed\");\r\n cType = ct;\r\n }", "public void setColumns(Column[] newColumns) { columns = newColumns; }", "public void addColumns(Column[] cols) {\n\n\t\t//\t\t\tAllocate a new array.\n\t\tint number = cols.length;\n\t\tint cnt = columns.length + number;\n\t\tColumn[] newColumns = new Column[cnt];\n\n\t\t// copy current columns.\n\t\tSystem.arraycopy(columns, 0, newColumns, 0, columns.length);\n\n\t\t//\t\t\tANCA: need to expand the Column[] cols\n\n\t\tfor (int k = 0; k < cols.length; k++) {\n\n\t\t\tString columnClass = (cols[k].getClass()).getName();\n\t\t\tColumn expandedColumn = null;\n\n\t\t\t//if col is the first column in the table add it as is and initialize subset\n\t\t\tint numRows = super.getNumRows();\n\t\t\tif (columns.length == 0) {\n\t\t\t\tif (subset.length == 0) {\n\t\t\t\t\tnumRows = cols[k].getNumRows();\n\t\t\t\t\tsubset = new int[numRows];\n\t\t\t\t\tfor (int i = 0; i < this.getNumRows(); i++) {\n\t\t\t\t\t\tsubset[i] = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// LAM-tlr, I moved this down from inside the above condition. If it is\n\t\t\t\t// inside the condition above, after the first column is added, the rest of\n\t\t\t\t// the columns are empty.\n\t\t\t\texpandedColumn = cols[k];\n\t\t\t} else {\n\t\t\t\t// LAM-tlr, I moved this down from above. If we are to use the column\n\t\t\t\t// as is, we don't need to reallocate it.\n\t\t\t\ttry {\n\t\t\t\t\texpandedColumn =\n\t\t\t\t\t\t(Column) Class.forName(columnClass).newInstance();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t}\n\t\t\t\texpandedColumn.addRows(numRows);\n\t\t\t\texpandedColumn.setLabel(cols[k].getLabel());\n\t\t\t\texpandedColumn.setComment(cols[k].getComment());\n\t\t\t\texpandedColumn.setIsScalar(cols[k].getIsScalar());\n\t\t\t\texpandedColumn.setIsNominal(cols[k].getIsNominal());\n\n\t\t\t\t//initialize all values as missing for the beginning\n\t\t\t\tfor (int j = 0; j < numRows; j++)\n\t\t\t\t\texpandedColumn.setValueToMissing(true, j);\n\n\t\t\t\t//set the elements of the column where appropriate as determined by subset\n\t\t\t\tObject el;\n\t\t\t\tfor (int i = 0; i < subset.length; i++) {\n\t\t\t\t\tel = cols[k].getObject(i);\n\t\t\t\t\texpandedColumn.setObject(el, subset[i]);\n\t\t\t\t\texpandedColumn.setValueToMissing(false, subset[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tnewColumns[columns.length + k] = expandedColumn;\n\t\t}\n\t\tcolumns = newColumns;\n\n\t}", "void procedure()\n {\n try\n {\n fkey=new FileInputStream(file2);\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n keybuf= new byte[16];\n try\n {\n fkey.read(keybuf);\n z= new int[52];\n j1=0;\n i1=0;\n for(i=0;i<52;i++)\n z[i]=0;\n while( i1<8)\n {\n if((j1+1)%2==0)\n {\n z[i1]|=keybuf[j1]; // dividing 64 bit cypher block into four 16 bit registers\n\t i1++;\n }\n else\n \t {\n\t z[i1]=keybuf[j1];\n\t z[i1]<<=8;\n }\n\t j1++;\n }\n i=0;\n\t for(j1=1;j1<=5;j1++)\n\t {\n\t i++;\n\t z[i+7]=((z[i]<<9)&0xfe00)|((z[i+1]>>7)&0x1ff);\n\t z[i+8]=((z[i+1]<<9)&0xfe00)|((z[i+2]>>7)&0x1ff);\n\t z[i+9]=((z[i+2]<<9)&0xfe00)|((z[i+3]>>7)&0x1ff);\n\t z[i+10]=((z[i+3]<<9)&0xfe00)|((z[i+4]>>7)&0x1ff);\n\t z[i+11]=((z[i+4]<<9)&0xfe00)|((z[i+5]>>7)&0x1ff);\n\t z[i+12]=((z[i+5]<<9)&0xfe00)|((z[i+6]>>7)&0x1ff);\n z[i+13]=((z[i+6]<<9)&0xfe00)|((z[i-1]>>7)&0x1ff);\n\t z[i+14]=((z[i-1]<<9)&0xfe00)|((z[i]>>7)&0x1ff);\n\t i=i+7;\n\t }\n i1=41;\n\t z[48]=((z[i1]<<9)&0xfe00)|((z[i1+1]>>7)&0x1ff);\n\t z[49]=((z[i1+1]<<9)&0xfe00)|((z[i1+2]>>7)&0x1ff);\n\t z[50]=((z[i1+2]<<9)&0xfe00)|((z[i1+3]>>7)&0x1ff);\n\t z[51]=((z[i1+3]<<9)&0xfe00)|((z[i1+4]>>7)&0x1ff);\n}\ncatch(Exception e)\n{\nSystem.out.println(e);\n}\n}", "public void testCaesar(){\n String msg = \"At noon be in the conference room with your hat on for a surprise party. YELL LOUD!\";\n \n /*String encrypted = encrypt(msg, key);\n System.out.println(\"encrypted \" +encrypted);\n \n String decrypted = encrypt(encrypted, 26-key);\n System.out.println(\"decrypted \" + decrypted);*/\n \n \n String encrypted = encrypt(msg, 15);\n System.out.println(\"encrypted \" +encrypted);\n \n }", "private void renameColumns()\r\n {\r\n \tfor (int i=0;i<this.tempTableAColumnsShortName.size();i++)\r\n \t{\r\n \t\tthis.requete.append(\"\\n ALTER TABLE \"+this.tempTableA+\" RENAME \"+this.tempTableAColumnsShortName.get(i)+\" TO \"+this.tempTableAColumnsLongName.get(i)+\";\");\r\n \t}\r\n \t\r\n \tfor (int i=0;i<this.allCols.size();i++)\r\n \t{\r\n \t\tthis.requete.append(\"\\n ALTER TABLE \"+this.tempTableA+\" RENAME i\"+i+\" TO i_\" + this.allCols.get(i)+\";\");\r\n \t\tif (colData.get(this.allCols.get(i))!=null)\r\n \t\t{\r\n \t\t\tthis.requete.append(\"\\n ALTER TABLE \"+this.tempTableA+\" RENAME v\"+i+\" TO v_\" + this.allCols.get(i)+\";\");\r\n \t\t}\r\n \t}\r\n \t\t\r\n }", "public void swapColumns( int c1, int c2 ) {\n\tfor (int r = 0; r < this.size(); r++){\n\t Object c1Val = matrix[r][c1];\n\t matrix[r][c1] = matrix[r][c2];\n\t matrix[r][c2] = c1Val;\n\t}\n }", "private void aretes_aW(){\n\t\tthis.cube[4] = this.cube[16]; \n\t\tthis.cube[16] = this.cube[23];\n\t\tthis.cube[23] = this.cube[37];\n\t\tthis.cube[37] = this.cube[30];\n\t\tthis.cube[30] = this.cube[4];\n\t}", "private void transpose() {\n Utils.transpose(this._board);\n }", "public void invert() {\n \n float[] result = new float[16];\n System.arraycopy(IDENTITY, 0, result, 0, 16);\n \n for(int i = 0; i < 4; i++){\n int i4 = i*4;\n \n // make sure[i,i] is != 0\n \n for(int j = 0; matrix[i4+i] == 0 && j < 4; j++){\n if(j != i && matrix[j*4+i] != 0){\n transform(i, 1, j, matrix, result);\n }\n }\n \n // ensure tailing 0s\n \n for(int j = 0; j < i; j++){\n if(matrix[i4+j] != 0){\n transform(i, -matrix[i4+j]/matrix[j*4+j], j, matrix, result);\n }\n }\n\n if(matrix[i4+i] == 0){\n throw new IllegalArgumentException(\"Not invertable\");\n }\n\n // dump(\"row \"+i+\" leading zeros\", matrix, result);\n }\n \n for(int i = 3; i >= 0; i--){\n int i4 = i*4;\n if(matrix[i4+i] != 1){\n float f = matrix[i4+i];\n matrix[i4+i] = 1;\n for(int j = 0; j < 4; j++){\n result[i4+j] /= f;\n if(j > i){\n matrix[i4+j] /= f;\n }\n }\n }\n\n// dump(\"row \"+i+\" leading 1\", matrix, result);\n \n for(int j = i+1; j < 4; j++){\n if(matrix[i*4+j] != 0){\n transform(i, -matrix[i*4+j], j, matrix, result);\n }\n }\n\n// dump(\"row \"+i+\" tailing 0\", matrix, result);\n\n }\n\n matrix = result;\n }", "public int calcColumnsHash() {\n int retHash = -1;\n if ( this.attData!=null ) {\n StringBuffer columnsList = new StringBuffer(100);\n Iterator<String> it = this.attData.keySet().iterator();\n while (it.hasNext()) {\n columnsList.append(it.next());\n }\n retHash = columnsList.toString().hashCode();\n }\n return retHash;\n }", "public void setColumns(ArrayList tmp) {\n this.columns = tmp;\n }", "public static void main(String[] args) \r\n {\n String message1 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\r\n System.out.println(encrypt (message1, 3));\r\n System.out.println(decrypt (encrypt(message1,3) ,3));\r\n System.out.println(encrypt(message1.toLowerCase(),5));\r\n \r\n System.out.println(decrypt(encrypt(message1.toLowerCase() ,5 ) ,5));\r\n }", "public void setColumns(int columns)\n {\n this.columns = columns;\n }", "public org.apache.spark.mllib.linalg.distributed.BlockMatrix transpose () { throw new RuntimeException(); }", "public void flipVertical() {\n\t\t\tthis.data = flipGridVertical(data);\n\t\t\tcomputeHashes();\n\t\t}", "@Override\n public void postKey(SQLiteDatabase database) {\n if (!isMigratedV3(mContext, database)) {\n database.rawExecSQL(\"PRAGMA cipher_migrate;\");\n setMigratedV3(mContext, database, true);\n }\n\n }", "private void arretes_fW(){\n\t\tthis.cube[4] = this.cube[1]; \n\t\tthis.cube[1] = this.cube[3];\n\t\tthis.cube[3] = this.cube[7];\n\t\tthis.cube[7] = this.cube[5];\n\t\tthis.cube[5] = this.cube[4];\n\t}", "private void encryptionAlgorithm() {\n\t\ttry {\n\t\t\t\n\t\t\tFileInputStream fileInputStream2=new FileInputStream(\"D:\\\\program\\\\key.txt\");\n\t\t\tchar key=(char)fileInputStream2.read();\n\t\t\tSystem.out.println(key);\n\t\t\tFileInputStream fileInputStream1=new FileInputStream(\"D:\\\\program\\\\message.txt\");\n\t\t\tint i=0;\n\t\t\t\n\t\t\tStringBuilder message=new StringBuilder();\n\t\t\twhile((i= fileInputStream1.read())!= -1 )\n\t\t\t{\n\t\t\t\tmessage.append((char)i);\n\t\t\t}\n\t\t\tString s=message.toString();\n\t\t\tchar[] letters=new char[s.length()];\n\t\t\tStringBuilder en=new StringBuilder();\n\t\t\tfor(int j = 0;j < letters.length;j++)\n\t\t\t{\n\t\t\t\ten.append((char)(byte)letters[j]+key);\n\t\t\t}\t\t\n\t\t\tFileOutputStream fileoutput=new FileOutputStream(\"D:\\\\program\\\\encryptedfile.txt\");\n\t\t\t\n\t\t\tfileInputStream1.close();\n\t\t\tfileInputStream2.close();\n\t\t\t\n\t\t}\n\t\tcatch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tcatch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\t\n\t}", "private int hashMath (int r, int c, int columns) {\n return currentState[r][c];\n }", "Encryption encryption();", "@Test\n @Ignore(\"KnownBug: ACCUMULO-3645 Fixed in Accumulo 1.7.0\")\n public void testInjectOnCompact_Empty() throws Exception {\n Connector conn = tester.getConnector();\n\n // create table, add table split, write data\n final String tableName = getUniqueNames(1)[0];\n SortedSet<Text> splitset = new TreeSet<>();\n splitset.add(new Text(\"f\"));\n TestUtil.createTestTable(conn, tableName, splitset);\n\n // expected data back\n Map<Key, Value> expect = new HashMap<>(HardListIterator.allEntriesToInject);\n // we will not read back the entry that has a column visibility because this is a compaction write and we don't have the credentials\n for (Iterator<Map.Entry<Key, Value>> iterator = expect.entrySet().iterator();\n iterator.hasNext();\n ) {\n if (iterator.next().getKey().getColumnVisibilityData().length() > 0)\n iterator.remove();\n }\n\n // attach InjectIterator, flush and compact. Compaction blocks.\n IteratorSetting itset = new IteratorSetting(15, InjectIterator.class);\n StopWatch sw = new StopWatch();\n sw.start();\n conn.tableOperations().compact(tableName, null, null, Collections.singletonList(itset), true, true);\n sw.stop();\n log.debug(\"compaction took \" + sw.getTime() + \" ms\");\n\n // read back both tablets in parallel\n BatchScanner scan = conn.createBatchScanner(tableName, Authorizations.EMPTY, 2);\n// Key startKey = new Key(new Text(\"d\"), cf, cq);\n Range rng = new Range();\n scan.setRanges(Collections.singleton(rng));\n log.debug(\"Results of scan on table \" + tableName + ':');\n Map<Key, Value> actual = new TreeMap<>(TestUtil.COMPARE_KEY_TO_COLQ); // only compare row, colF, colQ\n for (Map.Entry<Key, Value> entry : scan) {\n Key k = entry.getKey();\n Value v = entry.getValue();\n log.debug(k + \" \" + v);\n Assert.assertFalse(\"Duplicate entry found: \" + k, actual.containsKey(k));\n actual.put(k, v);\n }\n Assert.assertEquals(expect, actual);\n\n // delete test data\n conn.tableOperations().delete(tableName);\n }", "public BigInteger[] encrypt(byte[] bytes) {\n BigInteger[] biResults = new BigInteger[bytes.length];\n for (int i = 0; i < bytes.length; i++) {\n byte b = bytes[i];\n biResults[i] = encrypt(BigInteger.valueOf(b));\n }\n return biResults;\n }", "private static int mix32(int k) {\n k = (k ^ (k >>> 16)) * 0x85ebca6b;\n k = (k ^ (k >>> 13)) * 0xc2b2ae35;\n return k ^ (k >>> 16);\n }", "public Column[] getColumns() {return columns;}", "public void preConcatenate(AffineTransform3D Tx) {\r\n\t\tthis.set(MatrixMult(Tx, this));\r\n\t}", "public void cols(String...columns) {\n\t\tthis.columnList = columns;\n\t}", "public static void shuffle(Column[] tab, int iter, boolean mixup){\n\n for (int i = 0; i < iter; i++) {\n for (int j = 0; j < tab.length; j++) {\n int new_rand_index = (int) Math.floor(Math.random() * tab.length);\n if (new_rand_index != j) {\n // swap the value\n int temp = tab[new_rand_index].value;\n tab[new_rand_index] = tab[j];\n tab[j].value = temp;\n\n }\n }\n }\n\n for (int i = 0; i < tab.length; i++) {\n if (Math.random() > 0.1 && mixup){\n tab[i].value = tab[i].value + (int) Math.floor(Math.random() * 3);\n }\n\n }\n\n }", "public static void main(String[] args){\n\t\tSystem.out.println(mixString(\"12345\",\"abcde\")); //should be 1a2b3c4d5e\n\t\tSystem.out.println(mixString(\"howdy\",\"hello\")); //should be hhoewldlyo\n\t}", "public void AudioColumna() {\r\n\t\ttry {\r\n\t\t\treprocol.AbrirFichero(\"C:\\\\Temp\\\\Sonidos\\\\Column.wav\");\r\n\t\t} catch (Exception ex) {\r\n\t\t\tSystem.out.println(\"Error: \" + ex.getMessage());\r\n\t\t}\r\n\r\n\t}", "private Matriks Transpose(){\r\n\t\tMatriks Mhasil = new Matriks(KolEff,BrsEff);\r\n\t\tfor(int i=0;i<BrsEff;i++){\r\n\t\t\tfor(int j=0;j<KolEff;j++){\r\n\t\t\t\tMhasil.Elmt[j][i] = this.Elmt[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Mhasil;\r\n\t}", "private void compactHorizontally (List<List<NodeRealizer>> cellColumns)\n {\n int centerIndex = (cellColumns.size () - 1) / 2;\n List<NodeRealizer> minXList = cellColumns.get (centerIndex);\n List<NodeRealizer> maxXList = cellColumns.get (centerIndex);\n for (int i = 1; i <= centerIndex; i++)\n {\n List<NodeRealizer> leftList = cellColumns.get (centerIndex - i);\n moveToRight (leftList, minXList);\n minXList = leftList;\n List<NodeRealizer> rightList = cellColumns.get (centerIndex + i);\n moveToLeft (rightList, maxXList);\n maxXList = rightList;\n }\n if (cellColumns.size () % 2 == 0)\n {\n List<NodeRealizer> rightList = cellColumns.get (cellColumns.size () - 1);\n moveToLeft (rightList, maxXList);\n }\n }", "@Override\n public void putAll(byte keys[][], byte values[][]) throws Exception {\n BufferedMutator mutator = getNextConnection().getBufferedMutator(dataTableName);\n for (int i = 0; i < keys.length; i++) {\n byte[] actualKey = transformKey(keys[i]);\n Put put = new Put(actualKey);\n put.addColumn(this.columnFamily, this.columnName, values[i]);\n mutator.mutate(put);\n }\n mutator.close();\n }", "protected void doPadding(byte[] paramArrayOfByte, int paramInt)\r\n/* 107: */ {\r\n/* 108:172 */ int i = flush();\r\n/* 109:173 */ this.tmpBuf[i] = Byte.MIN_VALUE;\r\n/* 110:174 */ for (int j = i + 1; j < 32; j++) {\r\n/* 111:175 */ this.tmpBuf[j] = 0;\r\n/* 112: */ }\r\n/* 113:176 */ update(this.tmpBuf, i, 32 - i);\r\n/* 114:177 */ for (j = 0; j < i + 1; j++) {\r\n/* 115:178 */ this.tmpBuf[j] = 0;\r\n/* 116: */ }\r\n/* 117:179 */ update(this.tmpBuf, 0, 32);\r\n/* 118:180 */ encodeBEInt(this.V00 ^ this.V10 ^ this.V20, paramArrayOfByte, paramInt + 0);\r\n/* 119:181 */ encodeBEInt(this.V01 ^ this.V11 ^ this.V21, paramArrayOfByte, paramInt + 4);\r\n/* 120:182 */ encodeBEInt(this.V02 ^ this.V12 ^ this.V22, paramArrayOfByte, paramInt + 8);\r\n/* 121:183 */ encodeBEInt(this.V03 ^ this.V13 ^ this.V23, paramArrayOfByte, paramInt + 12);\r\n/* 122:184 */ encodeBEInt(this.V04 ^ this.V14 ^ this.V24, paramArrayOfByte, paramInt + 16);\r\n/* 123:185 */ encodeBEInt(this.V05 ^ this.V15 ^ this.V25, paramArrayOfByte, paramInt + 20);\r\n/* 124:186 */ encodeBEInt(this.V06 ^ this.V16 ^ this.V26, paramArrayOfByte, paramInt + 24);\r\n/* 125:187 */ if (getDigestLength() == 32) {\r\n/* 126:188 */ encodeBEInt(this.V07 ^ this.V17 ^ this.V27, paramArrayOfByte, paramInt + 28);\r\n/* 127: */ }\r\n/* 128: */ }", "protected Set<String> filterColumns() {\n return columnSelectionMap.keySet();\n }", "public final MF ignoreColumns(Predicate<? super K> predicate) {\n \treturn addColumnProperty(predicate, new IgnoreProperty());\n\t}", "protected int _addColumns(DBField cols[], int ndx)\n throws SQLException, DBException\n {\n // Drop a column:\n // MySQL: ALTER TABLE <TableName> DROP COLUMN <ColumnName>\n\n /* existing column map */\n Map<String,DBField> colMap = this.getExistingColumnMap(false);\n if (colMap == null) {\n return 0;\n }\n\n /* column index */\n if ((cols == null) || (ndx < 0) || (ndx >= cols.length)) {\n return 0;\n }\n \n /* count columns */\n int colCount = 0;\n\n /* create \"ALTER\" command sentence */\n StringBuffer sb = new StringBuffer();\n DBProvider dbp = DBProvider.getProvider();\n String xtableName = this.getTranslatedTableName();\n if (dbp.getID() == DBProvider.DB_MYSQL) {\n // MySQL: ALTER TABLE <table> ...\n // Character Set Notes:\n // - Show all available character sets:\n // mysql> show character set;\n // - Show all available collations:\n // mysql> show collation;\n // - Show current database character set defaults (as configured in 'my.cnf'):\n // mysql> show variables like \"character_set_%\"; // \"character_set_database\"\n // mysql> show variables like \"collation_%\"; // \"collation_database\"\n // - Default character-set/collation in 'my.cnf':\n // default-character-set=utf8 \n // default-collation=utf8_general_ci \n // - References:\n // http://dev.mysql.com/doc/refman/5.0/en/charset-configuration.html\n // http://www.phpwact.org/php/i18n/utf-8/mysql\n sb.append(\"ALTER TABLE \").append(xtableName); // DB_MYSQL\n for (;ndx < cols.length; ndx++){\n if (colCount > 0) { sb.append(\",\"); }\n DBField col = cols[ndx];\n String colName = col.getName();\n if (colMap.containsKey(colName)) {\n // Change an existing column name:\n // MySQL: ALTER TABLE <TableName> CHANGE <column> <column> <type> [CHARACTER SET utf8 [COLLATE utf8_general_ci]]\n sb.append(\" CHANGE \").append(colName).append(\" \").append(col.getFieldDefinition());\n //TODO: [MAMUN] need to handle the column name - mamun.\n if (col.isAutoIncrement()) {\n //sb.append(\" NOT NULL\");\n sb.append(\" auto_increment\");\n }\n if (col.isUTF8()) {\n sb.append(\" CHARACTER SET utf8\");\n }\n Print.logInfo(\"Changing column: \" + xtableName + \".\" + col.getFieldDefinition());\n } else {\n // Add a new column:\n // MySQL: ALTER TABLE <TableName> ADD COLUMN <column> <type> [CHARACTER SET utf8 [COLLATE utf8_general_ci]]\n sb.append(\" ADD COLUMN \").append(col.getFieldDefinition());\n if (col.isAutoIncrement()) {\n // This will likely fail because 'auto_increment' is only valid on primary keys //sb.append(\" NOT NULL\");\n //sb.append(\" NOT NULL\");\n sb.append(\" auto_increment\");\n //sb.append(\", ADD PRIMARY KEY (\"+colName+\")\");\n } else\n if (col.isUTF8()) {\n sb.append(\" CHARACTER SET utf8\");\n }\n Print.logInfo(\"Adding column: \" + xtableName + \".\" + col.getFieldDefinition());\n }\n colCount++;\n }\n } else\n if (dbp.getID() == DBProvider.DB_SQLSERVER) {\n // SQLServer: ALTER TABLE '<table>' ALTER COLUMN ...\n sb.append(\"ALTER TABLE \").append(xtableName); // DB_SQLSERVER\n DBField col = cols[ndx];\n String colName = col.getName();\n if (colMap.containsKey(colName)) {\n // Change an existing column name:\n // SQLServer: ALTER TABLE <table> ALTER COLUMN <column> <type>\n sb.append(\" ALTER COLUMN \").append(col.getFieldDefinition());\n Print.logInfo(\"Changing column: \" + xtableName + \".\" + col.getFieldDefinition());\n } else {\n // Add a new column:\n // SQLServer: ALTER TABLE <table> ADD <column> <type>\n sb.append(\" ADD \").append(col.getFieldDefinition());\n Print.logInfo(\"Adding column: \" + xtableName + \".\" + col.getFieldDefinition());\n }\n colCount++;\n } else\n if (dbp.getID() == DBProvider.DB_DERBY) {\n // Derby: ALTER TABLE <table> ...\n sb.append(\"ALTER TABLE \").append(xtableName); // DB_DERBY\n DBField col = cols[ndx];\n String colName = col.getName();\n if (colMap.containsKey(colName)) {\n // Change an existing column name:\n // Derby: ALTER TABLE <table> ALTER <column> SET DATA TYPE <type>\n sb.append(\" ALTER \").append(colName).append(\" SET DATA TYPE \").append(col.getFieldDefinition());\n } else {\n // Add a new column:\n // Derby: ALTER TABLE <table> ADD COLUMN <column> <type>\n sb.append(\" ADD COLUMN \").append(col.getFieldDefinition());\n Print.logInfo(\"Adding column: \" + xtableName + \".\" + col.getFieldDefinition());\n }\n colCount++;\n }\n\n /* execute */\n if (sb.length() > 0) {\n Print.logInfo(\"Executing SQL 'ALTER TABLE ...'\"); // + sb);\n DBConnection dbc = null;\n try {\n dbc = DBConnection.getDBConnection_write();\n dbc.executeUpdate(sb.toString());\n } finally {\n DBConnection.release(dbc);\n }\n }\n \n return colCount;\n\n }", "public void setColumns(int columns) {\n\t\tthis.columns = columns;\n\t}", "public void rotateCCW() {\n for (Vector2D vec : template) {\n CCW.matrixVectorProductInPlace(vec);\n }\n }", "private void coins_fW(){\n\t\tthis.cube[4] = this.cube[0]; \n\t\tthis.cube[0] = this.cube[6];\n\t\tthis.cube[6] = this.cube[8];\n\t\tthis.cube[8] = this.cube[2];\n\t\tthis.cube[2] = this.cube[4];\n\t}", "public MHKEncryption_Array(){\n\t\t\tBigInteger wgenerator = new BigInteger(\"2\");\n\t\t\twsum = BigInteger.ZERO;\n\t\t\tfor(int i = 0;i < 640;i++){\n\t\t\t\twgenerator = wgenerator.multiply(new BigInteger(\"2\")).subtract(BigInteger.ONE); \n\t\t\t\tw[i] = wgenerator;\n\t\t\t\twsum = wsum.add(wgenerator);\n\t\t\t}\n\t}", "public List<byte[]> getColumns(){\n List<byte[]> list = new ArrayList<byte[]>();\n Iterator<Pair<String ,byte[]>> iter =outList.iterator();\n if(iter.hasNext()){\n byte[] col = iter.next().getSecond();\n if(null != col)\n list.add(col);\n }\n return list;\n }", "DataFrameColumn<R,C> col(C colKey);", "private void CreateCompression() {\n double[][] Ydct = new double[8][8];\n double[][] Cbdct = new double[8][8];\n double[][] Crdct = new double[8][8];\n\n /*\n Tenemos que coger una matriz de 8x8 que sera nuestro pixel a comprimir. Si la matriz se sale de los parametros\n altura y anchura, haremos padding con 0, para que sea negro.\n */\n\n\n for (int i = 0; i < height; i += 8) {\n for (int j = 0; j < width; j += 8) {\n for (int x = 0; x < 8; ++x) {\n for (int y = 0; y < 8; ++y) {\n if (i + x >= height || j + y >= width) {\n Ydct[x][y] = 0;\n Cbdct[x][y] = 0;\n Crdct[x][y] = 0;\n } else {\n Ydct[x][y] = (double) imagenYCbCr[x + i][y + j][0] - 128;\n Cbdct[x][y] = (double) imagenYCbCr[x + i][y + j][1] - 128;\n Crdct[x][y] = (double) imagenYCbCr[x + i][y + j][2] - 128;\n }\n }\n }\n\n\n /*\n Haremos el DCT2 de cada componente de color para el pixel\n */\n\n\n Ydct = dct2(Ydct);\n Cbdct = dct2(Cbdct);\n Crdct = dct2(Crdct);\n\n /*\n Quantizamos los DCT de cada componente del color\n */\n\n for (int v = 0; v < 8; ++v) {\n for (int h = 0; h < 8; ++h) {\n Ydct[v][h] = Math.round(Ydct[v][h] / QtablesLuminance[quality][v][h]);\n Cbdct[v][h] = Math.round(Cbdct[v][h] / QtablesChrominance[quality][v][h]);\n Crdct[v][h] = Math.round(Crdct[v][h] / QtablesChrominance[quality][v][h]);\n\n }\n }\n\n\n /*\n Hacemos el encoding con Huffman HAY QUE RECORRER EN ZIGZAG CADA MATRIZ\n */\n\n int u = 1;\n int k = 1;\n int contador = 0;\n for (int element = 0; element < 64; ++element, ++contador) {\n Yencoding.add((int) Ydct[u - 1][k - 1]);\n Cbencoding.add((int) Cbdct[u - 1][k - 1]);\n Crencoding.add((int) Crdct[u - 1][k - 1]);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n }\n }\n }\n }", "public void encipher(ByteBuffer buf, final int offset, final int size)\r\n\t{\r\n\t\tint count = size / 8;\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t\t_crypt.processBlock(buf, offset + i * 8);\r\n\t}", "protected RowDescriptor encryptedRowDescriptor(RowDescriptor descriptor, ExtendedTypeMap typeMap) {\n\n ColumnDescriptor[] originalColumns = descriptor.getColumns();\n int len = originalColumns.length;\n\n ExtendedType[] originalConverters = descriptor.getConverters();\n ExtendedType[] encryptedConverters = new ExtendedType[len];\n\n for (int i = 0; i < len; i++) {\n DbAttribute attribute = originalColumns[i].getAttribute();\n\n ExtendedType t = originalConverters[i];\n\n if (attribute != null && columnMapper.isEncrypted(attribute)) {\n\n // only char or binary columns can store encrypted data\n if (TypesMapping.isBinary(attribute.getType())) {\n t = typeMap.getRegisteredType(byte[].class);\n } else if (TypesMapping.isCharacter(attribute.getType())) {\n t = typeMap.getRegisteredType(String.class);\n }\n // else - warning?\n }\n\n encryptedConverters[i] = t;\n }\n\n return new RowDescriptor(originalColumns, encryptedConverters);\n }", "public void resizeColumns() {\n }", "private void preprocess() {\n\t\t// do the whole process for the rows\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tint sumOfHints = rowHints.get(i).stream().mapToInt(Integer::valueOf).sum();\n\t\t\tint minimalOccupiedSpace = sumOfHints + rowHints.get(i).size() - 1; // always 1 space between blocks\n\t\t\tint pos = 0;\n\t\t\tfor (int k = 0; k < rowHints.get(i).size(); k++) {\n\t\t\t\tpos = pos + rowHints.get(i).get(k) - 1;\n\t\t\t\tint difference = width - minimalOccupiedSpace - rowHints.get(i).get(k);\n\t\t\t\t// if the difference is < 0: we can certainly fill a part of the matrix!\n\t\t\t\tif (difference < 0) {\n\t\t\t\t\tfor (int j = pos; j > pos + difference; j--) {\n\t\t\t\t\t\tpreprocessed[i][j] = FILLED;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpos += 2; // +2 because there is at least 1 space in between\n\t\t\t}\n\t\t}\n\t\t// now repeat the same for the columns\n\t\tfor (int j = 0; j < width; j++) {\n\t\t\tint sumOfHints = colHints.get(j).stream().mapToInt(Integer::valueOf).sum();\n\t\t\tint minimalOccupiedSpace = sumOfHints + colHints.get(j).size() - 1; // always 1 space between blocks\n\t\t\tint pos = 0;\n\t\t\tfor (int k = 0; k < colHints.get(j).size(); k++) {\n\t\t\t\tpos = pos + colHints.get(j).get(k) - 1;\n\t\t\t\tint difference = height - minimalOccupiedSpace - colHints.get(j).get(k);\n\t\t\t\tif (difference < 0) {\n\t\t\t\t\tfor (int i = pos; i > pos + difference; i--) {\n\t\t\t\t\t\tpreprocessed[i][j] = FILLED;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tpos += 2;\n\t\t\t}\n\t\t}\n\t}", "private void initColumns() {\n columnNames = new LinkedList<String>();\n columnNames.add(\"table.ededb.datatable.action\");\n columnNames.add(\"table.ededb.datatable.filename\");\n columnNames.add(\"table.ededb.datatable.mime\");\n columnNames.add(\"table.ededb.datatable.size\");\n columnNames.add(\"table.ededb.datatable.localcopy\");\n }", "public void setColumns(int a, int b) {\n this.a = a;\n this.b = b;\n }", "void applyMixims() {\n if (this.applied) {\n throw new IllegalStateException(\"Mixims already applied to target class \" + this.className);\n }\n this.applied = true;\n \n MiximApplicatorStandard applicator = this.createApplicator();\n applicator.apply(this.mixims);\n this.applySignature();\n this.upgradeMethods();\n this.checkMerges();\n }", "private void generateColumns() {\n\t\tSquare[] squareArr=new Square[squares.length];\n\t\tfor (int i=0; i<squares.length; i++) {\n\t\t\tfor (int j=0; j<squares.length; j++) {\n\t\t\t\tsquareArr[j]=squares[j][i];\n\t\t\t}\n\t\t\tcolumns[i]=new Column(squareArr);\n\t\t}\n\t}", "public void decrypt() {\n try {\n // Create input and output streams\n System.out.println(\"Loading files\");\n FileInputStream in = new FileInputStream(this.input);\n FileOutputStream out = new FileOutputStream(this.output);\n\n // Skip IV values\n in.getChannel().position(cipher.getBlockSize());\n\n /*\n Using CipherInputStream object to read from encrypted file\n cipherIn reads data from input stream and and returns the decrypted value\n */\n System.out.println(\"Creating cipher stream\");\n CipherInputStream cipherIn = new CipherInputStream(in, this.cipher);\n\n System.out.println(\"Starting file decryption\");\n byte[] buffer = new byte[Common.BLOCK_SIZE];\n int len;\n // Reading from the input stream\n while ((len = cipherIn.read(buffer)) != -1)\n // Write the decrypted message to output stream\n out.write(buffer, 0, len);\n\n // Close all streams\n System.out.println(\"Closing file streams\");\n cipherIn.close();\n out.flush();\n out.close();\n\n System.out.println(\"Decryption complete\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "private void transpose() {\n\n // Make a copy of current orientation of rgb and energy arrays.\n int[][] rgbCopy = new int[width][height];\n for (int col = 0; col < width; col++) {\n rgbCopy[col] = rgb[col].clone();\n }\n double[][] energyCopy = new double[width][height];\n for (int col = 0; col < width; col++) {\n energyCopy[col] = energy[col].clone();\n }\n\n // Swap axes.\n int temp = width;\n width = height;\n height = temp;\n\n // Re-init arrays with swapped dimensions.\n rgb = new int[width][height];\n energy = new double[width][height];\n\n // Swap individual pixels in rgb and energy arrays.\n for (int col = 0; col < width; col++) {\n for (int row = 0; row < height; row++) {\n rgb[col][row] = rgbCopy[row][col];\n energy[col][row] = energyCopy[row][col];\n }\n }\n }", "com.google.protobuf.ByteString getColumnBytes();", "public void evaluate_ciphertext_matrix() {\n // DES_Plaintext_Matrix := Die 65x64 Matrix der Plaintexte \"p + e_i\"\n // Initialisierung\n for (int z = 0; z < 65; z++)\n for (int s = 0; s < 64; s++)\n DES_Plaintext_Matrix[z][s] = DES_plaintext[s];\n\n for (int z = 1; z < 65; z++)\n DES_Plaintext_Matrix[z][64 - z] = 1 ^ DES_Plaintext_Matrix[z][64 - z];\n\n int[][] cipher_sequence_temporarily = new int[18][32];\n int[] m0_m1 = new int[64];\n\n int[][] K = new int[16][48];\n if (DES_action_type == 0)\n K = DES_K;\n else {\n K = DES_reversed_K;\n }\n\n // JOptionPane.showMessageDialog(null, \"Evaluating DES(k,p+e_i) && Action-Type = \" +\n // DES_action_type);\n\n // Initialisierung\n intialize_matrix(cipher_sequence_temporarily);\n\n for (int k = 0; k < 65; k++) {\n m0_m1 = select(DES_Plaintext_Matrix[k], IP);\n\n for (int j = 0; j < 32; j++) {\n cipher_sequence_temporarily[0][j] = m0_m1[j];\n cipher_sequence_temporarily[1][j] = m0_m1[32 + j];\n }\n\n // Befuellung aus der Matrix \"cipher_sequence_temporarily\"\n for (int i = 2; i < 18; i++) {\n int[] input_SBoxes = exclusive_or(expand_32bit(cipher_sequence_temporarily[i - 1]), K[i - 2]);\n int[] fmK = select(lookup_SBoxes(input_SBoxes), P);\n cipher_sequence_temporarily[i] = exclusive_or(cipher_sequence_temporarily[i - 2], fmK);\n }\n\n int[][] flipped_last2_cipher_rounds_matrix = new int[65][64];\n for (int a = 0; a < 32; a++)\n flipped_last2_cipher_rounds_matrix[k][a] = cipher_sequence_temporarily[17][a];\n\n for (int a = 32; a < 64; a++)\n flipped_last2_cipher_rounds_matrix[k][a] = cipher_sequence_temporarily[16][a - 32];\n\n DES_Ciphertext_Matrix[k] = select(flipped_last2_cipher_rounds_matrix[k], FP);\n }\n }" ]
[ "0.6721018", "0.5743963", "0.54735863", "0.5465374", "0.5366066", "0.5121568", "0.48870662", "0.48537695", "0.48482668", "0.47484595", "0.471116", "0.46927047", "0.4674261", "0.46345162", "0.46277127", "0.4596374", "0.45759636", "0.45203853", "0.4510442", "0.45077837", "0.45032674", "0.44510773", "0.44441578", "0.44294035", "0.4417308", "0.44163334", "0.43845543", "0.43731162", "0.43607685", "0.43574008", "0.43549266", "0.43181723", "0.43152508", "0.43023154", "0.4293348", "0.42921555", "0.4286321", "0.42662868", "0.42609718", "0.42439765", "0.42256445", "0.42193177", "0.4212985", "0.42106003", "0.42102355", "0.42049095", "0.42020762", "0.41982868", "0.41925302", "0.41885093", "0.41801566", "0.41775453", "0.41764486", "0.41581044", "0.41381532", "0.41320917", "0.41309574", "0.4126639", "0.41257194", "0.40827394", "0.40775618", "0.40734586", "0.4071311", "0.40587193", "0.40576226", "0.4057546", "0.40561092", "0.40494654", "0.40467793", "0.40467602", "0.40465298", "0.404343", "0.40419495", "0.40384334", "0.40338516", "0.40327573", "0.4029288", "0.4027859", "0.40277126", "0.40237308", "0.40207994", "0.40202352", "0.40184894", "0.40155223", "0.40122887", "0.400853", "0.4006111", "0.4002079", "0.39967224", "0.39897972", "0.3981419", "0.3979264", "0.3978476", "0.39781913", "0.39770335", "0.39764377", "0.39759767", "0.3974846", "0.39741924", "0.3973816" ]
0.5445015
4
invMixColumns operation for decryption phase.
private static int[][] invMixColumns(int[][] state, int round) { int[][] result = new int[state.length][state[0].length]; for(int row=0; row<state.length; row++) result[row] = invMultRow(state[row]); System.out.println("After invMixColumns("+round+"):"); printTranspose(result, false, false); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mixColumns(int[][] arr) {//method for mixColumns\n int[][] tarr = new int[4][4];\n for (int i = 0; i < 4; i++) {\n System.arraycopy(arr[i], 0, tarr[i], 0, 4);\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n arr[i][j] = mcHelper(tarr, galois, i, j);\n }\n }\n }", "public void decrypt() {\n try {\n // Create input and output streams\n System.out.println(\"Loading files\");\n FileInputStream in = new FileInputStream(this.input);\n FileOutputStream out = new FileOutputStream(this.output);\n\n // Skip IV values\n in.getChannel().position(cipher.getBlockSize());\n\n /*\n Using CipherInputStream object to read from encrypted file\n cipherIn reads data from input stream and and returns the decrypted value\n */\n System.out.println(\"Creating cipher stream\");\n CipherInputStream cipherIn = new CipherInputStream(in, this.cipher);\n\n System.out.println(\"Starting file decryption\");\n byte[] buffer = new byte[Common.BLOCK_SIZE];\n int len;\n // Reading from the input stream\n while ((len = cipherIn.read(buffer)) != -1)\n // Write the decrypted message to output stream\n out.write(buffer, 0, len);\n\n // Close all streams\n System.out.println(\"Closing file streams\");\n cipherIn.close();\n out.flush();\n out.close();\n\n System.out.println(\"Decryption complete\");\n } catch (Exception e) {\n System.out.println(\"Error: \" + e.getMessage());\n }\n }", "public static void decrypt() throws IOException{\n\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(inFilename));\n\t\tBufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(outFilename));\n\n\t\tbyte[] key; //holds the encryption key\n\n\t\t//get the file length\n\t\tlong fileLength = (new File(inFilename)).length();\n\n\t\t//check the file header marker\n\t\tbyte[] actualHeader = new byte[FILE_HEADER.length];\n\t\tin.read(actualHeader); //read header from the file\n\t\tif (!Arrays.equals(actualHeader, FILE_HEADER)){\n\t\t\tSystem.out.println(\"The file was not encrypted with this program.\");\n\t\t\tSystem.exit(-1); //-1 is an error code\n\t\t}\n\n\t\t/* STAGE 1 - generate decryption key */\n\t\t//read the #padded bits and random salt from the file\n\t\tbyte[] dataFromFile = new byte[129]; //1 byte for #padded bits + 128 bytes for salt\n\t\tin.read(dataFromFile);\n\t\t//separate the #padded bits for use later\n\t\tint numPad = (int)(dataFromFile[0]);\n\t\t//next, generate the message for CubeHash: (password + dataFromFile)\n\t\tbyte[] message = new byte[password.length + dataFromFile.length];\n\t\tSystem.arraycopy(password, 0, message, 0, password.length); //add the password\n\t\tSystem.arraycopy(dataFromFile, 0, message, password.length, dataFromFile.length); //add dataFromFile\n\t\t//finally, (re)generate the encryption key\n\t\tkey = CryptoLib.CubeHash.doCubeHash(message);\n\n\t\t/* STAGE 2 - apply decryption */\n\t\tint currPiece = 0; //keeps track of which piece of the key is being used\n\t\tbyte[] currData = new byte[8]; //holds the data currently being decrypted\n\n\t\t//split the key into 4 pieces of 128 bits each\n\t\tbyte[][] keyPieces = new byte[4][16];\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tSystem.arraycopy(key, i*16, keyPieces[i], 0, 16);\n\t\t}\n\n\t\t//loop through the rest of the file (except the last block), 8 bytes at a time\n\t\tfor (long i = FILE_HEADER.length + 129; i < fileLength - 8; i += 8){\n\t\t\t//put a chunk of data in currData\n\t\t\tin.read(currData);\n\n\t\t\t//do RC4(key, unTEA(key, data)), then write to file\n\t\t\tout.write(CryptoLib.RC4.doRC4(keyPieces[currPiece],\n\t\t\t\t\t\tCryptoLib.TEA.doUnTEA(keyPieces[currPiece], currData)));\n\n\t\t\t//increment currPiece\n\t\t\tcurrPiece = (currPiece + 1) % 4;\n\t\t}\n\n\t\t//deal with the last chunk of data:\n\t\t//first, read it..\n\t\tin.read(currData);\n\t\t//..decrypt it..\n\t\tcurrData = CryptoLib.RC4.doRC4(keyPieces[currPiece],\n\t\t\t\tCryptoLib.TEA.doUnTEA(keyPieces[currPiece], currData));\n\t\t//..then write it to the file\n\t\tout.write(currData, 0, (8 - numPad));\n\n\t\t/* STAGE 3 - done! */\n\t\tin.close();\n\t\tout.close();\n\t\tSystem.out.println(\"\\nDecryption complete.\");\n\t}", "void decrypt(ChannelBuffer buffer, Channel c);", "protected AbstractMatrix3D vColumnFlip() {\n\tif (columns>0) {\n\t\tcolumnZero += (columns-1)*columnStride;\n\t\tcolumnStride = -columnStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "void decryption(String file)\n {\n try\n {\n fdec=new DataOutputStream(new FileOutputStream(\"dec.txt\"));\n fenc1=new FileInputStream(file);\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n try\n {\n size=fenc1.available();\n np=0;\n p=size%8;\n if(p!=0)\n np=8-p;\n size+=np;\n if(p==0)\n nl=size/8;\n else\n nl=size/8+1;\n buf1=new byte[size+10];\n buf=new byte[8];\n fenc1.read(buf1);\n mark=-8;\n int arr[]=new int [8];\n for(k1=0;k1<nl;k1++)\n {\n mark+=8;\n for(int k2=0;k2<8;k2++)\n buf[k2]=buf1[mark+k2];\n for(int k2=0;k2<8;k2++)\n\t {\n\t arr[k2]=0;\n\t if(buf[k2]>=0)\n\t arr[k2]=buf[k2];\n\t else\n\t arr[k2]=buf[k2]+256;\n }\n\t j1=0;i1=0;\n while( i1<=3)\n\t\t {\n\t\t if((j1+1)%2==0)\n\t {\n x[i1]|=arr[j1]; // dividing 64 bit cypher block into four 16 bit registers\n\t i1++;\n\t\t }\n\t else\n\t {\n\t \t x[i1]=arr[j1];\n\t x[i1]<<=8;\n\t }\n\t j1++;\n\t }\n for(int t=0;t<4;t++)\n {\n\t ft1 =x[t]&255;\n\t ft=x[t]>>8;\n\t }\n step1=mul( x[0] , minverse( z[48] ));\n step2=( x[1] + ainverse( z[49] )) % 65536;\n step3=( x[2] + ainverse( z[50] )) % 65536;\n step4=mul( x[3] , minverse( z[51] ));\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[46]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[47]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step12;\n x[2]=step13;\n x[3]=step14;\n// 2nd round\n\tint j2=40;\n\t\tfor(j1=1;j1<=7;j1++)\n \t\t {\n step1=mul( x[0] , minverse( z[j2+2] ));\n step2=( x[1] + ainverse( z[j2+4] )) % 65536;\n step3=( x[2] + ainverse( z[j2+3] )) % 65536;\n t=step2;\n step2=step3;\n step3=t;\n step4=mul( x[3] , minverse( z[j2+5] ));\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[j2+0]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[j2+1]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step12;\n x[2]=step13;\n x[3]=step14;\n j2=j2-6;\n }\n x[0]=mul(x[0],minverse(z[0]));\n x[1]=(x[1]+ainverse(z[2]))%65536;\n x[2]=(x[2]+ainverse(z[1]))%65536;\n x[3]=mul(x[3],minverse(z[3]));\n t=x[1];\n x[1]=x[2];\n x[2]=t;\n\t for(int t=0;t<4;t++)\n {\n\t ft1 =x[t]&255;\n\t ft=x[t]>>8;\n\t fdec.write((char)ft);\n\t fdec.write((char)ft1);\n\t }\n }\n\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n }", "public void encrypt() {\n // JOptionPane.showMessageDialog(null, \"Encrypting ... Action-Type = \" + DES_action_type);\n int[] flipped_last2_cipher_rounds = new int[64];\n for (int i = 0; i < 32; i++) {\n flipped_last2_cipher_rounds[i] = DES_cipher_sequence[17][i];\n flipped_last2_cipher_rounds[32 + i] = DES_cipher_sequence[16][i];\n }\n DES_ciphertext = select(flipped_last2_cipher_rounds, FP);\n }", "void updateDecrypt() {\r\n\r\n for (int i = 0; i < 56; i++) {\r\n queue.set(i, queue.get(i + 8));\r\n }\r\n\r\n //adding results of plaintext XOR keystream to ciphertext\r\n ciphertext.addAll(xor(plaintext, keystream));\r\n\r\n //takes last 8 bits of ciphertext and copies to right 8 bits in queue \r\n int ciphertextIndexOfLast = ciphertext.size();\r\n\r\n //notice here the bits being pushed into queue are from the ciphertext generated during encryption. although the information\r\n //is stored in a variable named \"plaintext,\" the encrypted ciphertext is what was actually passed into that plaintext variable\r\n //for decryption\r\n for (int i = ciphertextIndexOfLast - 8; i < ciphertextIndexOfLast; i++) {\r\n queue.set((i - ((ciphertextIndexOfLast - 8)) + 56), plaintext.get(i));\r\n }\r\n\r\n //using the new queue, populates registers with new data\r\n resetRegisters(queue);\r\n\r\n }", "@Override\r\n public void transformColumns(DataStorage dataStorage0, DataStorage dataStorage1, DataStorage dataStorage2, long startColumn, long columns, long power2length, long length, boolean isInverse, int modulus)\r\n throws ApfloatRuntimeException\r\n {\n assert (length == 3 * power2length);\r\n\r\n // Check that the data storages use consecutive sections of the same memory array\r\n if (!dataStorage0.isCached() || !dataStorage1.isCached() || !dataStorage2.isCached() ||\r\n startColumn > Integer.MAX_VALUE || columns > Integer.MAX_VALUE)\r\n {\r\n throw new ApfloatInternalException(\"Data must be stored in memory\");\r\n }\r\n\r\n ArrayAccess arrayAccess0 = dataStorage0.getArray(DataStorage.READ_WRITE, startColumn, (int) columns),\r\n arrayAccess1 = dataStorage1.getArray(DataStorage.READ_WRITE, startColumn, (int) columns),\r\n arrayAccess2 = dataStorage2.getArray(DataStorage.READ_WRITE, startColumn, (int) columns);\r\n\r\n if (arrayAccess0.getLongData() != arrayAccess1.getLongData() || arrayAccess1.getLongData() != arrayAccess2.getLongData() ||\r\n arrayAccess1.getOffset() != arrayAccess0.getOffset() + columns || arrayAccess2.getOffset() != arrayAccess1.getOffset() + columns)\r\n {\r\n throw new ApfloatInternalException(\"Data must be stored consecutively in memory\");\r\n }\r\n\r\n setModulus(MODULUS[modulus]); // Modulus\r\n long w = (isInverse ?\r\n getInverseNthRoot(PRIMITIVE_ROOT[modulus], length) :\r\n getForwardNthRoot(PRIMITIVE_ROOT[modulus], length)), // Forward/inverse n:th root\r\n w3 = modPow(w, (long) power2length), // Forward/inverse 3rd root\r\n ww = modMultiply(w, w),\r\n w1 = negate(modDivide((long) 3, (long) 2)),\r\n w2 = modAdd(w3, modDivide((long) 1, (long) 2));\r\n\r\n LongKernel kernel = LongKernel.getInstance();\r\n kernel.setOp(isInverse ? LongKernel.INVERSE_TRANSFORM_COLUMNS : LongKernel.TRANSFORM_COLUMNS);\r\n kernel.setArrayAccess(arrayAccess0);\r\n kernel.setStartColumn((int) startColumn);\r\n kernel.setColumns((int) columns); \r\n kernel.setW(w);\r\n kernel.setWw(ww);\r\n kernel.setW1(w1);\r\n kernel.setW2(w2);\r\n kernel.setModulus(MODULUS[modulus]);\r\n\r\n kernel.execute((int) columns);\r\n }", "private static int[] invMultRow(int[] column)\n\t{\n\t\tint[] result = new int[column.length];\n\t\t\n\t\tfor(int row=0; row<invMultCon.length; row++)\n\t\t\tfor(int col=0; col<invMultCon[row].length; col++)\n\t\t\t\tresult[row] ^= galoisMult(invMultCon[row][col],column[col]);\n\t\t\n\t\treturn result;\n\t}", "public static double [][] inv(double [][] a) {\n int N = a.length;\n double [] col = new double[N];\n int [] indx = new int[N];\n double [][] y = new double[N][N];\n \n double d = ludcmp(a, indx);\n for (int j=0; j<N; j++ ) {\n for (int i=0; i<N; i++) \n col[i] = 0.0;\n col[j] = 1.0;\n lubksb(a, indx, col);\n for (int i=0; i<N; i++)\n y[i][j] = col[i];\n }\n return y; \n }", "private static int[][] mixColumns(int[][] state, int round)\n\t{\n\t\tint[][] result = new int[state.length][state[0].length];\n\t\t\n\t\tfor(int row=0; row<state.length; row++)\n\t\t\tresult[row] = multRow(state[row]);\n\t\t\n\t\tSystem.out.println(\"After mixColumns(\"+round+\"):\");\n\t\tprintTranspose(result, false, false);\t\t\n\t\treturn result;\n\t}", "public void invert() {\n \n float[] result = new float[16];\n System.arraycopy(IDENTITY, 0, result, 0, 16);\n \n for(int i = 0; i < 4; i++){\n int i4 = i*4;\n \n // make sure[i,i] is != 0\n \n for(int j = 0; matrix[i4+i] == 0 && j < 4; j++){\n if(j != i && matrix[j*4+i] != 0){\n transform(i, 1, j, matrix, result);\n }\n }\n \n // ensure tailing 0s\n \n for(int j = 0; j < i; j++){\n if(matrix[i4+j] != 0){\n transform(i, -matrix[i4+j]/matrix[j*4+j], j, matrix, result);\n }\n }\n\n if(matrix[i4+i] == 0){\n throw new IllegalArgumentException(\"Not invertable\");\n }\n\n // dump(\"row \"+i+\" leading zeros\", matrix, result);\n }\n \n for(int i = 3; i >= 0; i--){\n int i4 = i*4;\n if(matrix[i4+i] != 1){\n float f = matrix[i4+i];\n matrix[i4+i] = 1;\n for(int j = 0; j < 4; j++){\n result[i4+j] /= f;\n if(j > i){\n matrix[i4+j] /= f;\n }\n }\n }\n\n// dump(\"row \"+i+\" leading 1\", matrix, result);\n \n for(int j = i+1; j < 4; j++){\n if(matrix[i*4+j] != 0){\n transform(i, -matrix[i*4+j], j, matrix, result);\n }\n }\n\n// dump(\"row \"+i+\" tailing 0\", matrix, result);\n\n }\n\n matrix = result;\n }", "public static void inverseTransform() {\r\n \tint start = BinaryStdIn.readInt();\r\n \tString str = BinaryStdIn.readString();;\r\n \tchar[] lastCol = str.toCharArray();\r\n \tint[] count = new int[256];\r\n \tfor (char c : lastCol) {\r\n \t\tcount[c]++;\r\n \t}\r\n \tfor (int i = 1; i < count.length; i++) {\r\n \t\tcount[i] += count[i - 1];\r\n \t}\r\n \tint[] next = new int[lastCol.length];\r\n \tchar[] firstCol = new char[lastCol.length];\r\n \tfor (int i = lastCol.length - 1; i >= 0; i--) {\r\n \t\tint index = --count[lastCol[i]];\r\n \t\tfirstCol[index] = lastCol[i];\r\n \t\tnext[index] = i;\r\n \t}\r\n \tint sum = 0;\r\n \twhile (sum < lastCol.length) {\r\n \t\tBinaryStdOut.write(firstCol[start]);\r\n \t\tstart = next[start];\r\n \t\tsum++;\r\n \t}\r\n \tBinaryStdOut.close();\r\n }", "public Matrix inverse(){\r\n \tint n = this.nrow;\r\n \tif(n!=this.ncol)throw new IllegalArgumentException(\"Matrix is not square\");\r\n \tdouble[] col = new double[n];\r\n \tdouble[] xvec = new double[n];\r\n \tMatrix invmat = new Matrix(n, n);\r\n \tdouble[][] invarray = invmat.getArrayReference();\r\n \tMatrix ludmat;\r\n\r\n\t \tludmat = this.luDecomp();\r\n \tfor(int j=0; j<n; j++){\r\n \t\tfor(int i=0; i<n; i++)col[i]=0.0D;\r\n \t\tcol[j]=1.0;\r\n \t\txvec=ludmat.luBackSub(col);\r\n \t\tfor(int i=0; i<n; i++)invarray[i][j]=xvec[i];\r\n \t}\r\n \t\treturn invmat;\r\n \t}", "public void cinv_() {\n TH.THTensor_(cinv)(this, this);\n }", "public CubieCube inverseCube() {\n\n CubieCube clone = this.clone();\n for (int i = 0; i < edgesValues.length; i++) {\n clone.eo[i] = this.eo[clone.ep[i]];\n }\n for (int i = 0; i < cornerValues.length; i++) {\n char ori = this.co[clone.cp[i]];\n if (ori >= 3)\n clone.co[i] = ori;\n else {\n clone.co[i] = (char) -ori;\n if (clone.co[i] < 0)\n clone.co[i] += 3;\n }\n }\n return clone;\n }", "public void mixDownChannels() {\n\t\tfloat[] firstChannel = getChannel(0);\n\t\tint localSampleCount = getSampleCount();\n\t\tfor (int ch = getChannelCount() - 1; ch > 0; ch--) {\n\t\t\tfloat[] thisChannel = getChannel(ch);\n\t\t\tfor (int i = 0; i < localSampleCount; i++) {\n\t\t\t\tfirstChannel[i] += thisChannel[i];\n\t\t\t}\n\t\t\tremoveChannel(ch);\n\t\t}\n\t}", "public static String [][] inMixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x0E,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[2][c], 16)) ^ GMul(0x09, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (GMul(0x09,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (GMul(0x0D,Integer.parseInt(s[0][c], 16)) ^ GMul(0x09, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x0B,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[1][c], 16)) ^ GMul(0x09, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "@Override\n public Matrix dct(final MatrixView in) {\n check(in);\n double[][] out = new double[in.getRows()][in.getColumns()];\n double tmpm0 = 0, tmpm1 = 0, tmpm2 = 0, tmpm3 = 0, tmpm4 = 0, tmpm5 = 0, tmpm6 = 0, tmpm7 = 0;\n double tmpm20 = 0, tmpm21 = 0, tmpm22 = 0, tmpm23 = 0, tmpm24 = 0, tmpm25 = 0, tmpm26 = 0, tmpm27 = 0;\n\n for (int my = 0; my < in.getRows(); my += SIZE) {\n for (int mx = 0; mx < in.getColumns(); mx += SIZE) {\n\n for (int i = 0; i < SIZE; i++) { // HT\n\n tmpm0 = in.getInt(my + i, mx + 0);\n tmpm1 = in.getInt(my + i, mx + 1);\n tmpm2 = in.getInt(my + i, mx + 2);\n tmpm3 = in.getInt(my + i, mx + 3);\n tmpm4 = in.getInt(my + i, mx + 4);\n tmpm5 = in.getInt(my + i, mx + 5);\n tmpm6 = in.getInt(my + i, mx + 6);\n tmpm7 = in.getInt(my + i, mx + 7);\n\n tmpm20 = tmpm0 + tmpm7;\n tmpm27 = tmpm0 - tmpm7;\n tmpm21 = tmpm1 + tmpm6;\n tmpm26 = tmpm1 - tmpm6;\n tmpm22 = tmpm2 + tmpm5;\n tmpm25 = tmpm2 - tmpm5;\n tmpm23 = tmpm3 + tmpm4;\n tmpm24 = tmpm3 - tmpm4;\n\n double outmyi[] = out[my + i];\n\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n tmpm4 = tmpm24;\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm7 = tmpm27;\n outmyi[mx + 0] = (tmpm0 + tmpm1) * Z4;\n outmyi[mx + 4] = (tmpm0 - tmpm1) * Z4;\n outmyi[mx + 2] = (tmpm2 * Z6) + (tmpm3 * Z2);\n outmyi[mx + 6] = (tmpm3 * Z6) - (tmpm2 * Z2);\n tmpm24 = tmpm4 + tmpm5;\n tmpm27 = tmpm7 + tmpm6;\n tmpm25 = tmpm4 - tmpm5;\n tmpm26 = tmpm7 - tmpm6;\n outmyi[mx + 1] = (tmpm24 * Z7) + (tmpm27 * Z1);\n outmyi[mx + 5] = (tmpm25 * Z3) + (tmpm26 * Z5);\n outmyi[mx + 7] = (tmpm27 * Z7) - (tmpm24 * Z1);\n outmyi[mx + 3] = (tmpm26 * Z3) - (tmpm25 * Z5);\n }\n\n for (int i = 0; i < SIZE; i++) { // VT\n tmpm20 = out[my + 0][mx + i] + out[my + 7][mx + i];\n tmpm27 = out[my + 0][mx + i] - out[my + 7][mx + i];\n tmpm21 = out[my + 1][mx + i] + out[my + 6][mx + i];\n tmpm26 = out[my + 1][mx + i] - out[my + 6][mx + i];\n tmpm22 = out[my + 2][mx + i] + out[my + 5][mx + i];\n tmpm25 = out[my + 2][mx + i] - out[my + 5][mx + i];\n tmpm23 = out[my + 3][mx + i] + out[my + 4][mx + i];\n tmpm24 = out[my + 3][mx + i] - out[my + 4][mx + i];\n\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n tmpm4 = tmpm24;\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm7 = tmpm27;\n out[my + 0][mx + i] = (tmpm0 + tmpm1) * Z4;\n out[my + 4][mx + i] = (tmpm0 - tmpm1) * Z4;\n out[my + 2][mx + i] = (tmpm2 * Z6) + (tmpm3 * Z2);\n out[my + 6][mx + i] = (tmpm3 * Z6) - (tmpm2 * Z2);\n tmpm24 = tmpm4 + tmpm5;\n tmpm27 = tmpm7 + tmpm6;\n tmpm25 = tmpm4 - tmpm5;\n tmpm26 = tmpm7 - tmpm6;\n out[my + 1][mx + i] = (tmpm24 * Z7) + (tmpm27 * Z1);\n out[my + 5][mx + i] = (tmpm25 * Z3) + (tmpm26 * Z5);\n out[my + 7][mx + i] = (tmpm27 * Z7) - (tmpm24 * Z1);\n out[my + 3][mx + i] = (tmpm26 * Z3) - (tmpm25 * Z5);\n }\n }\n }\n\n return new DoubleMatrix(in.getRows(), in.getColumns(), out);\n }", "public ArrayList<Integer> decryptCycle() {\r\n\r\n for (int i = 0; i < 416; i++) {\r\n for (int j = 0; j < 8; j++) {\r\n pulse();\r\n }\r\n updateDecrypt();\r\n }\r\n return ciphertext;\r\n }", "public BigIntegerMod decrypt(Ciphertext ciphertext);", "void encrypt()\n {\n try\n {\n size=fin.available();\n p=size%8;\n if(p!=0)\n np=8-p;\n size+=np;\n if(p==0)\n nl=size/8;\n else\n nl=size/8+1;\n buf=new byte[8];\n buf1=new byte[size+10];\n fin.read(buf1);\n int enc[]=new int[size];\n mark=-8;\n k2=0;\n for(k=0;k<nl;k++)\n {\n mark+=8;\n for(int k1=0;k1<8;k1++)\n buf[k1]=buf1[mark+k1];\n i=0;\n\t for(i=0;i<4;i++)\n x[i]=0;\n\t j1=0;i1=0;\n while( i1<=3)\n {\n\t if((j1+1)%2==0)\n\t {\n\t x[i1]|=buf[j1]; // dividing 64 bit cipher block into four 16 bit registers\n\t i1++;\n\t\t }\n\t else\n {\n\t x[i1]=buf[j1];\n\t x[i1]<<=8;\n }\n j1++;\n\t }\n // 7 rounds and 14 steps\n for(i=0 ; i <48 ; )\n {\n step1=mul(x[0],z[i+0]);\n step2=(x[1]+z[i+1])%65536;\n step3=(x[2]+z[i+2])%65536;\n step4=mul(x[3],z[i+3]);\n step5=step1^step3;\n step6=step2^step4;\n step7=mul(step5,z[i+4]);\n step8=(step6+step7)%65536;\n step9=mul(step8,z[i+5]);\n step10=(step7+step9)%65536;\n step11=step1^step9;\n step12=step3^step9;\n step13=step2^step10;\n step14=step4^step10;\n x[0]=step11;\n x[1]=step13;\n x[2]=step12;\n x[3]=step14;\n i=i+6;\n }\n x[0]=mul(x[0],z[48]);\n x[1]=(x[1]+z[49])%65536;\n x[2]=(x[2]+z[50])%65536;\n x[3]=mul(x[3],z[51]);\n for(int t=0;t<4;t++)\n {\n ft1 =x[t]&255;\n ft=x[t]>>8;\n fenc.write((char)ft);\n fenc.write((char)ft1);\n }\n}\nfin.close();\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n}", "public void flipVertical() {\n\t\t\tthis.data = flipGridVertical(data);\n\t\t\tcomputeHashes();\n\t\t}", "private void blockDecrypt (byte[] in, int off, byte[] out, int outOff) {\n int L = (in[off++] & 0xFF) << 24 |\n (in[off++] & 0xFF) << 16 |\n (in[off++] & 0xFF) << 8 |\n in[off++] & 0xFF;\n int R = (in[off++] & 0xFF) << 24 |\n (in[off++] & 0xFF) << 16 |\n (in[off++] & 0xFF) << 8 |\n in[off ] & 0xFF;\n int a;\n\n for (int i = ROUNDS; i > 0;) { // subkeys in reverse order\n a = R ^ sKey[--i];\n L ^= P[S[ a & 0xFFF] & 0xFF] |\n P[S[(a >>> 8) & 0xFFF] & 0xFF] << 1 |\n P[S[(a >>> 16) & 0xFFF] & 0xFF] << 2 |\n P[S[(a >>> 24 | a << 8) & 0xFFF] & 0xFF] << 3;\n\n a = L ^ sKey[--i];\n R ^= P[S[ a & 0xFFF] & 0xFF] |\n P[S[(a >>> 8) & 0xFFF] & 0xFF] << 1 |\n P[S[(a >>> 16) & 0xFFF] & 0xFF] << 2 |\n P[S[(a >>> 24 | a << 8) & 0xFFF] & 0xFF] << 3;\n }\n out[outOff++] = (byte)(R >>> 24);\n out[outOff++] = (byte)(R >>> 16);\n out[outOff++] = (byte)(R >>> 8);\n out[outOff++] = (byte) R;\n out[outOff++] = (byte)(L >>> 24);\n out[outOff++] = (byte)(L >>> 16);\n out[outOff++] = (byte)(L >>> 8);\n out[outOff ] = (byte) L;\n }", "@Override\n\tpublic void Decrypt(Object key) {\n\n\t}", "public static final byte[] decryptData(final byte data[]) {\n for (int j = 1; j <= 6; j++) {\n byte remember = 0;\n byte dataLength = (byte) (data.length & 0xFF);\n byte nextRemember = 0;\n\n if (j % 2 == 0) {\n for (int i = 0; i < data.length; i++) {\n byte cur = data[i];\n cur -= 0x48;\n cur = ((byte) ((~cur) & 0xFF));\n cur = BitTools.rollLeft(cur, (int) dataLength & 0xFF);\n nextRemember = cur;\n cur ^= remember;\n remember = nextRemember;\n cur -= dataLength;\n cur = BitTools.rollRight(cur, 3);\n data[i] = cur;\n dataLength--;\n }\n } else {\n for (int i = data.length - 1; i >= 0; i--) {\n byte cur = data[i];\n cur = BitTools.rollLeft(cur, 3);\n cur ^= 0x13;\n nextRemember = cur;\n cur ^= remember;\n remember = nextRemember;\n cur -= dataLength;\n cur = BitTools.rollRight(cur, 4);\n data[i] = cur;\n dataLength--;\n }\n }\n //System.out.println(\"dec after iteration \" + j + \": \" + HexTool.toString(data));\n }\n return data;\n }", "@Override\n public void decrypt() {\n algo.decrypt();\n String cypher = vigenereAlgo(false);\n this.setValue(cypher);\n }", "public void removeFromEncryptTables(entity.LoadEncryptTable element);", "protected AbstractMatrix3D vSliceFlip() {\n\tif (slices>0) {\n\t\tsliceZero += (slices-1)*sliceStride;\n\t\tsliceStride = -sliceStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "public byte[] Tdecryption() {\n int[] plaintext = new int[message.length];\n\n for (int j = 0, k = 1; j < message.length && k < message.length; j = j + 2, k = k + 2) {\n sum = delta << 5;\n l = message[j];\n r = message[k];\n for (int i = 0; i < 32; i++) {\n r = r - (((l << 4) + key[2]) ^ (l + sum) ^ ((l >> 5) + key[3]));\n l = l - (((r << 4) + key[0]) ^ (r + sum) ^ ((r >> 5) + key[1]));\n sum = sum - delta;\n }\n plaintext[j] = l;\n plaintext[k] = r;\n }\n return this.Inttobyte(plaintext);\n }", "public void setInverted(boolean inv) {\n/* 69 */ int dat = getData() & 0x7;\n/* 70 */ if (inv) {\n/* 71 */ dat |= 0x8;\n/* */ }\n/* 73 */ setData((byte)dat);\n/* */ }", "static void decryptCBC(String filename, String key, String IV) {\n try {\n Scanner s = new Scanner(new File(filename + EXT), \"UTF-8\");\n File newFile = new File(filename + \"_dec\" + EXT);\n newFile.delete();\n newFile.createNewFile();\n PrintWriter w = new PrintWriter(newFile);\n processHeader(s, w);\n cipherBlock = hexStringToBits(IV);\n while (s.hasNext()) {\n readBlock(s);\n int[] temp = new int[128];\n for (int i = 0; i < block.length; i++) {\n temp[i] = block[i];\n }\n block = stateToBits(AES.decrypt(bitsToHexString(block), key));\n block = xor(block, cipherBlock);\n cipherBlock = temp;\n writeBlock(w);\n }\n w.flush();\n w.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public DecryptionCipherInterface decryptionCipher()\n {\n return this.decryptionCipher;\n }", "private static int decrypt(int index) {\n\t int k1_inv = 9; \n\t int k2 = 1;\n\t // add 26 to index to avoid error when (index - k2) <= 0\n\t index = (((index+26) - k2)*(k1_inv))%26;\n\t return index;\n }", "public void vreflect() {\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n int h= 0;\n int k= cols-1;\n //invariant: columns 0..h-1 and k+1.. have been inverted\n while (h < k) {\n // Swap column h with column k\n // invariant: pixels 0..c-1 of columns h and k have been swapped\n for (int c= 0; c != rows; c= c+1) {\n currentIm.swapPixels(c, h, c, k);\n }\n \n h= h+1; k= k-1;\n }\n \n }", "private void calcPartInverse(int i, int i1, int i2, int i3, int i4, Radical1 op1, Radical1 op2, Radical1 op3, Radical1 op4, Radical1 l1) {\r\n\t\taddR(l1, mulR(values[i], subR(mulR(values[i1], values[i2], op3), mulR(values[i3], values[i4], op4), op2), op1), l1);\r\n\t}", "public void subBytes(int[][] arr) {\n for (int i = 0; i < arr.length; i++) {//Sub-Byte subroutine\n for (int j = 0; j < arr[0].length; j++) {\n int hex = arr[j][i];\n arr[j][i] = sbox[hex / 16][hex % 16] ^ 0x42;\n }\n }\n }", "void rotateInv() {\n startAnimation(allSubCubes(), Axis.Y, Direction.ANTICLOCKWISE);\n rotateCubeSwap();\n rotateCubeSwap();\n rotateCubeSwap();\n }", "public static String [][] MixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x02,Integer.parseInt(s[0][c], 16)) ^ GMul(0x03, Integer.parseInt(s[1][c], 16)) ^ Integer.parseInt(s[2][c], 16) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ GMul(0x02, Integer.parseInt(s[1][c], 16)) ^ GMul(0x03, Integer.parseInt(s[2][c], 16)) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ Integer.parseInt(s[1][c], 16) ^ GMul(0x02, Integer.parseInt(s[2][c], 16)) ^ GMul(0x03, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x03, Integer.parseInt(s[0][c], 16)) ^ Integer.parseInt(s[1][c], 16) ^ Integer.parseInt(s[2][c], 16) ^ GMul(0x02, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "@Test\n\tpublic void testEncryptDecrypt() {\n\t\tfor (int i = 0; i < CONFIDENCE; ++i) {\n\t\t\tP plain = getRandomPlaintext();\n\t\t\tR rnd = getPK().getRandom(getRand());\n\t\t\tC cipher = getPK().encrypt(plain, rnd);\n\t\t\t\n\t\t\tP plain2 = getSK().decrypt(cipher);\n\t\t\t\n\t\t\tassertTrue(\"Decryption didn't work\", plain.equals(plain2));\n\t\t}\n\t}", "public Fp12_2Over3Over2 inverse() {\n final Fp6_3Over2 t0 = c0.square();\n final Fp6_3Over2 t1 = c1.square();\n final Fp6_3Over2 t2 = t0.sub(mulByNonResidue(t1));\n final Fp6_3Over2 t3 = t2.inverse();\n\n return new Fp12_2Over3Over2(c0.mul(t3), c1.mul(t3).negate(), Fp12Parameters);\n }", "int cubeCol() {\n return c; \n }", "public static byte[]\r\n blockDecrypt (byte[] in, int inOffset, Object sessionKey) {\r\nif (DEBUG) trace(IN, \"blockDecrypt(\"+in+\", \"+inOffset+\", \"+sessionKey+\")\");\r\nif (DEBUG && debuglevel > 6) System.out.println(\"CT=\"+toString(in, inOffset, BLOCK_SIZE));\r\n //\r\n // ....\r\n //\r\n byte[] result = new byte[BLOCK_SIZE];\r\n \t int i;\r\n\t for ( i = 0; i < frog_Algorithm.BLOCK_SIZE; i++ ) result[i] = in[i+inOffset];\r\n\t result = frog_procs.decryptFrog( result, ((frog_InternalKey) sessionKey).keyD );\r\n\r\nif (DEBUG && debuglevel > 6) {\r\nSystem.out.println(\"PT=\"+toString(result));\r\nSystem.out.println();\r\n}\r\nif (DEBUG) trace(OUT, \"blockDecrypt()\");\r\n return result;\r\n }", "@Around(\"decryptPointCut()\")\n public Object aroundDecrypt(ProceedingJoinPoint joinPoint) throws Throwable {\n Object responseObj = joinPoint.proceed(); // 方法执行\n handleDecrypt(responseObj); // 解密CryptField注解字段\n return responseObj;\n\n }", "@Override\n public void decrypt(byte[] text) {\n if ( text.length != blockSize()) throw new IllegalArgumentException(\"text.length != cipher.blockSize())\");\n byte []temp = new byte[nonce.length];\n System.arraycopy(text, 0, temp, 0, blockSize());\n ciper.setKey(key);\n ciper.decrypt(text);\n xor_nonce(text);\n System.arraycopy(temp, 0, nonce, 0, blockSize());\n }", "public void flipV() {\r\n int tmp, sym;\r\n for (int col = 0; col < pixels.length; ++col) {\r\n for (int row = 0; row < pixels[col].length / 2; ++row) {\r\n // find the column index of the vertically symmetric pixel\r\n sym = pixels[col].length - 1 - row;\r\n // swap the pixel value between the two\r\n tmp = pixels[col][row];\r\n pixels[col][row] = pixels[col][sym];\r\n pixels[col][sym] = tmp;\r\n }\r\n }\r\n this.pix2img();\r\n }", "@Override\n public byte[] decrypt(byte[] ciphertext) {\n ECPoint point = checkPointOnCurve(ciphertext);\n BigInteger privateKeyInverse = privateKey.getS().modInverse(privateKey.getParams().getOrder());\n return point.multiply(privateKeyInverse).getEncoded(true);\n }", "private void rotateColumn(Integer column) {\n \t\t\n \t\tArrayList<Block> blocks = game.getSlot().getBlocks();\n \t\t\n \t\tArrayList<String> last = new ArrayList<String>();\n \t\tlast.add(blocks.get(column+6).getTypeId() + \":\" + blocks.get(column+6).getData());\n \t\tlast.add(blocks.get(column+3).getTypeId() + \":\" + blocks.get(column+3).getData());\n \t\t\n \t\t//Get the id and split it\n \t\tint s1 = 1;\n \t\tbyte s2 = 0;\n \t\tString id = getNext();\n \t\t\n \t\t// Prevent silly-looking duplicate blocks\n \t\twhile(id.equalsIgnoreCase(last.get(0))) {\n \t\t\tid = getNext();\n \t\t}\n \t\t\n \t\t//Since the id is not the same (see above) we can go ahead and split it up\n \t\tString[] mSplit = id.split(\"\\\\:\");\n \t\t\tif (mSplit.length == 2) {\n \t\t\t\ts1 = Integer.parseInt(mSplit[0]);\n \t\t\t\ts2 = Byte.parseByte(mSplit[1]);\n \t\t\t}else {\n \t\t\t\ts1 = Integer.parseInt(mSplit[0]);\n \t\t\t}\n \t\t\n \t\t// First column\n \t\tblocks.get(column+6).setTypeIdAndData(s1, s2, false);\n \t\t\n \t\t// Second Column\n \t\tint c2ID = 1;\n \t\tbyte c2Byte = 0;\n \t\tString[] column2 = last.get(0).split(\"\\\\:\");\n \t\t\tif (column2.length == 2) {\n \t\t\t\tc2ID = Integer.parseInt(column2[0]);\n \t\t\t\tc2Byte = Byte.parseByte(column2[1]);\n \t\t\t}else {\n \t\t\t\tc2ID = Integer.parseInt(column2[0]);\n \t\t\t}\n \t\tblocks.get(column+3).setTypeIdAndData(c2ID, c2Byte, false);\n \t\t\n \t\t// Third Column\n \t\tint c3ID = 1;\n \t\tbyte c3Byte = 0;\n \t\tString[] column3 = last.get(1).split(\"\\\\:\");\n \t\t\tif (column3.length == 2) {\n \t\t\t\tc3ID = Integer.parseInt(column3[0]);\n \t\t\t\tc3Byte = Byte.parseByte(column3[1]);\n \t\t\t}else {\n \t\t\t\tc3ID = Integer.parseInt(column3[0]);\n \t\t\t}\n \t\tblocks.get(column).setTypeIdAndData(c3ID, c3Byte, false);\n \t\t\n \t}", "public String tableDecrypt(String ciphertext, String key) {\n\t\treturn AESMain2.AESDecrypt(ciphertext, key);\n\t}", "protected AbstractMatrix3D vRowFlip() {\n\tif (rows>0) {\n\t\trowZero += (rows-1)*rowStride;\n\t\trowStride = -rowStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "public static byte[] decrypt(byte[] decrypt, SecretKeySpec keySpec)\n {\n\tbyte[] message = null;\n\t\t\n\ttry {\n\t // Extract the cipher parameters from the end of the input array\n\t byte[] cipherText = new byte[decrypt.length - AES_PARAM_LEN];\n\t byte[] paramsEnc = new byte[AES_PARAM_LEN];\n\t\t\t\n\t System.arraycopy(decrypt, 0, cipherText, 0, cipherText.length);\n\t System.arraycopy(decrypt, cipherText.length, paramsEnc, 0, paramsEnc.length);\n\n\t // Initialize the parameters\n\t AlgorithmParameters params = AlgorithmParameters.getInstance(\"AES\");\n\t params.init(paramsEnc);\n\t \n\t // Initialize the cipher for decryption\n\t Cipher cipher = Cipher.getInstance(\"AES/CBC/PKCS5Padding\");\n\t cipher.init(Cipher.DECRYPT_MODE, keySpec, params);\n\t\t\t\n\t // Decrypt the ciphertext\n\t message = cipher.doFinal(cipherText);\n\n\t} catch (Exception e) {\n\t e.printStackTrace();\n\t}\n\t\t\n\treturn message;\n }", "protected void engineInitDecrypt (Key key)\n throws KeyException {\n Key[] keys = splitKey(key);\n\n des1.initDecrypt(keys[2]);\n des2.initEncrypt(keys[1]);\n des3.initDecrypt(keys[0]);\n }", "@Override\n public int finalDecrypt(byte[] text) {\n if ( text.length != blockSize()) throw new IllegalArgumentException(\"text.length != cipher.blockSize())\");\n decrypt(text);\n int n = 0;\n for(int i = text.length-1; text[i] == 0x00; --i){\n n += 1;\n }\n return text.length - n - 1;\n }", "private Matriks Transpose(){\r\n\t\tMatriks Mhasil = new Matriks(KolEff,BrsEff);\r\n\t\tfor(int i=0;i<BrsEff;i++){\r\n\t\t\tfor(int j=0;j<KolEff;j++){\r\n\t\t\t\tMhasil.Elmt[j][i] = this.Elmt[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Mhasil;\r\n\t}", "public static void encrypt() throws IOException{\n\t\tBufferedInputStream in = new BufferedInputStream(new FileInputStream(inFilename));\n\t\tBufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(outFilename));\n\n\t\tSecureRandom randomGen = new SecureRandom(); //used for the salt and the padding\n\t\tbyte[] key; //holds the encryption key\n\n\t\t//get the file length\n\t\tlong fileLength = (new File(inFilename)).length();\n\n\t\t//write the file header marker\n\t\tout.write(FILE_HEADER);\n\n\t\t/* STAGE 1 - generate encryption key */\n\t\t//find the number of bytes we have to pad and write it to the file\n\t\tint numPad;\n\t\tif (fileLength % 8 == 0)\n\t\t\tnumPad = 0;\n\t\telse\n\t\t\tnumPad = (int)(8 - (fileLength % 8));\n\t\tout.write(numPad);\n\t\t//generate a 128-byte random salt and write it to the file\n\t\tbyte[] salt = new byte[128];\n\t\trandomGen.nextBytes(salt);\n\t\tout.write(salt);\n\t\t//generate the message for CubeHash: (password + #padded bits + random salt)\n\t\tbyte[] message = new byte[password.length + 1 + salt.length];\n\t\tSystem.arraycopy(password, 0, message, 0, password.length); //add the password\n\t\tmessage[password.length] = (byte)numPad; //add #padded bits\n\t\tSystem.arraycopy(salt, 0, message, password.length + 1, salt.length); //add random salt\n\t\t//finally, generate the encryption key\n\t\tkey = CryptoLib.CubeHash.doCubeHash(message);\n\n\t\t/* STAGE 2 - apply encryption */\n\t\tint currPiece = 0; //keeps track of which piece of the key is being used\n\t\tbyte[] currData = new byte[8]; //holds the piece of data currently being encrypted\n\n\t\t//split the key into 4 pieces of 128 bits each\n\t\tbyte[][] keyPieces = new byte[4][16];\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tSystem.arraycopy(key, i*16, keyPieces[i], 0, 16);\n\t\t}\n\n\t\t//loop through the file (except the last block), 8 bytes at a time\n\t\tfor (long i = 0; i < fileLength - 8; i += 8){\n\t\t\t//put a chunk of data in currData\n\t\t\tin.read(currData);\n\n\t\t\t//do TEA(key, RC4(key, data)), then write to file\n\t\t\tout.write(CryptoLib.TEA.doTEA(keyPieces[currPiece],\n\t\t\t\t\t\tCryptoLib.RC4.doRC4(keyPieces[currPiece], currData)));\n\n\t\t\t//increment currPiece\n\t\t\tcurrPiece = (currPiece + 1) % 4;\n\t\t}\n\n\t\t//deal with the last block of data:\n\t\t//first, read it..\n\t\tin.read(currData);\n\t\t//..pad it with random data..\n\t\tfor (int i = 7; i >= (8 - numPad); i--){\n\t\t\tcurrData[i] = (byte)randomGen.nextInt();\n\t\t}\n\t\t//..then encrypt it\n\t\tout.write(CryptoLib.TEA.doTEA(keyPieces[currPiece],\n\t\t\t\t\tCryptoLib.RC4.doRC4(keyPieces[currPiece], currData)));\n\n\t\t/* STAGE 3 - done! */\n\t\tin.close();\n\t\tout.close();\n\t\tSystem.out.println(\"\\nEncryption complete.\");\n\t}", "public void evaluate_ciphertext_matrix() {\n // DES_Plaintext_Matrix := Die 65x64 Matrix der Plaintexte \"p + e_i\"\n // Initialisierung\n for (int z = 0; z < 65; z++)\n for (int s = 0; s < 64; s++)\n DES_Plaintext_Matrix[z][s] = DES_plaintext[s];\n\n for (int z = 1; z < 65; z++)\n DES_Plaintext_Matrix[z][64 - z] = 1 ^ DES_Plaintext_Matrix[z][64 - z];\n\n int[][] cipher_sequence_temporarily = new int[18][32];\n int[] m0_m1 = new int[64];\n\n int[][] K = new int[16][48];\n if (DES_action_type == 0)\n K = DES_K;\n else {\n K = DES_reversed_K;\n }\n\n // JOptionPane.showMessageDialog(null, \"Evaluating DES(k,p+e_i) && Action-Type = \" +\n // DES_action_type);\n\n // Initialisierung\n intialize_matrix(cipher_sequence_temporarily);\n\n for (int k = 0; k < 65; k++) {\n m0_m1 = select(DES_Plaintext_Matrix[k], IP);\n\n for (int j = 0; j < 32; j++) {\n cipher_sequence_temporarily[0][j] = m0_m1[j];\n cipher_sequence_temporarily[1][j] = m0_m1[32 + j];\n }\n\n // Befuellung aus der Matrix \"cipher_sequence_temporarily\"\n for (int i = 2; i < 18; i++) {\n int[] input_SBoxes = exclusive_or(expand_32bit(cipher_sequence_temporarily[i - 1]), K[i - 2]);\n int[] fmK = select(lookup_SBoxes(input_SBoxes), P);\n cipher_sequence_temporarily[i] = exclusive_or(cipher_sequence_temporarily[i - 2], fmK);\n }\n\n int[][] flipped_last2_cipher_rounds_matrix = new int[65][64];\n for (int a = 0; a < 32; a++)\n flipped_last2_cipher_rounds_matrix[k][a] = cipher_sequence_temporarily[17][a];\n\n for (int a = 32; a < 64; a++)\n flipped_last2_cipher_rounds_matrix[k][a] = cipher_sequence_temporarily[16][a - 32];\n\n DES_Ciphertext_Matrix[k] = select(flipped_last2_cipher_rounds_matrix[k], FP);\n }\n }", "public void CBCDecrypt(InputStream fis, OutputStream fos)\n throws IOException,\n ShortBufferException,\n IllegalBlockSizeException,\n BadPaddingException\n {\n\n byte[] buffer = new byte[blockSize];\n int noBytes = 0;\n byte[] cipherBlock =\n new byte[decryptCipher.getOutputSize(buffer.length)];\n int cipherBytes;\n while((noBytes = fis.read(buffer))!=-1)\n {\n cipherBytes =\n decryptCipher.update(buffer, 0, noBytes, cipherBlock);\n fos.write(cipherBlock, 0, cipherBytes);\n }\n //allways call doFinal\n cipherBytes = decryptCipher.doFinal(cipherBlock,0);\n fos.write(cipherBlock,0,cipherBytes);\n\n //close the files\n fos.close();\n fis.close();\n }", "String decryptHiddenField(String encrypted);", "private void CreateDecompression() {\n int iteradorY = 0;\n int iteradorarray = 0;\n int fila = 0;\n int columna = 0;\n while (iteradorY < width / 8 * height / 8) {\n int u = 1;\n int k = 1;\n double[][] Y = new double[8][8];\n double[][] CB = new double[8][8];\n double[][] CR = new double[8][8];\n for (int element = 0; element < 64; ++element) {\n Y[u - 1][k - 1] = (double) Ydes.get(iteradorarray);\n CB[u - 1][k - 1] = (double) CBdes.get(iteradorarray);\n CR[u - 1][k - 1] = (double) CRdes.get(iteradorarray);\n if ((k + u) % 2 != 0) {\n if (k < 8)\n k++;\n else\n u += 2;\n if (u > 1)\n u--;\n } else {\n if (u < 8)\n u++;\n else\n k += 2;\n if (k > 1)\n k--;\n }\n iteradorarray++;\n }\n ++iteradorY;\n //DESQUANTIZAMOS\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Y[m][n] = Y[m][n] * QtablesLuminance[quality][m][n];\n CB[m][n] = CB[m][n] * QtablesChrominance[quality][m][n];\n CR[m][n] = CR[m][n] * QtablesChrominance[quality][m][n];\n }\n }\n //INVERSA DE LA DCT2\n double[][] Ydct = dct3(Y);\n double[][] CBdct = dct3(CB);\n double[][] CRdct = dct3(CR);\n\n //SUMAR 128\n for (int m = 0; m < 8; ++m) {\n for (int n = 0; n < 8; ++n) {\n Ydct[m][n] = Ydct[m][n] + 128;\n CBdct[m][n] = CBdct[m][n] + 128;\n CRdct[m][n] = CRdct[m][n] + 128;\n int[] YCbCr = {(int) Ydct[m][n], (int) CBdct[m][n], (int) CRdct[m][n]};\n int[] RGB = YCbCrtoRGB(YCbCr);\n if (fila + m < height & columna + n < width) {\n FinalR[fila + m][columna + n] = RGB[0];\n FinalG[fila + m][columna + n] = RGB[1];\n FinalB[fila + m][columna + n] = RGB[2];\n }\n }\n }\n if (columna + 8 < width) columna = columna + 8;\n else {\n fila = fila + 8;\n columna = 0;\n }\n }\n }", "@Test\n @DependsOnMethod(\"testDimensionReduction\")\n public void testDimensionAugmentation() throws TransformException {\n transform = new ProjectiveTransform(Matrices.create(4, 3, new double[] {\n 0, 1, 0,\n 1, 0, 0,\n 0, 0, 0,\n 0, 0, 1}));\n\n assertInstanceOf(\"inverse\", CopyTransform.class, transform.inverse());\n verifyTransform(new double[] {2,3, 6,0, 2, Double.NaN},\n new double[] {3,2,0, 0,6,0, Double.NaN, 2, 0});\n }", "@Override\n public InputStream decrypt(InputStream in, DecryptionKey privateKey) throws IOException {\n byte[] keyLenBytes = new byte[4];\n int triesLeft = 10;\n for (int i = 0; i < 4; i++) {\n while (in.read(keyLenBytes, i, 1) < 1 && --triesLeft > 0) {\n ;\n }\n }\n if (triesLeft == 0)\n throw new IOException(\"didn't get keylen data from ciphertext\");\n int keyLen = ByteBuffer.wrap(keyLenBytes).getInt();\n\n //Deserialize the encapsulated key\n byte[] encapsulatedKeyBytes = new byte[keyLen];\n triesLeft = 10;\n for (int i = 0; i < keyLen; i++) {\n while (in.read(encapsulatedKeyBytes, i, 1) < 1 && --triesLeft > 0) {\n ; //TODO: don't read byte by byte...\n }\n }\n if (triesLeft == 0)\n throw new IOException(\"couldn't read encapulated key from ciphertext\");\n CipherText encapsulatedKey =\n kem.restoreEncapsulatedKey(new JSONConverter().deserialize(new String(encapsulatedKeyBytes)));\n\n //decaps the encapsulated key\n SymmetricKey symmetricKey = kem.decaps(encapsulatedKey, privateKey);\n\n //Return a stream where caller can read the decrypted payload\n return symmetricScheme.decrypt(in, symmetricKey);\n }", "public static short[][] inverseModQ(short[][] entries, short q) {\n\n if (Arithmetic.isPrime(q)) {\n int dimension = entries.length;\n\n /*\n if (dimension == 0) {\n return null;\n }\n if (entries[0].length != dimension) {\n return null;\n }\n*/\n short[][] entriesCopy = new short[dimension][dimension];\n for (int i = 0; i < dimension; i++) {\n System.arraycopy(entries[i], 0, entriesCopy[i], 0, dimension);\n }\n\n short[][] inv = new short[dimension][dimension];\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n if (i == j) {\n inv[i][j] = 1;\n } else {\n inv[i][j] = 0;\n }\n }\n }\n\n\n for (int k = 0; k < dimension; k++) {\n\n if (entriesCopy[k][k] == 0) { //switch rows; return 0 if not possible\n boolean notFound = true;\n for (int j = k + 1; j < dimension && notFound; j++) {\n if (entriesCopy[j][k] != 0) {\n notFound = false;\n short[] temp = new short[dimension];\n System.arraycopy(entriesCopy[j], 0, temp, 0, dimension);\n System.arraycopy(entriesCopy[k], 0, entriesCopy[j], 0, dimension);\n System.arraycopy(temp, 0, entriesCopy[k], 0, dimension);\n temp = new short[dimension];\n System.arraycopy(inv[j], 0, temp, 0, dimension);\n System.arraycopy(inv[k], 0, inv[j], 0, dimension);\n System.arraycopy(temp, 0, inv[k], 0, dimension);\n }\n }\n if (notFound) {\n return null;\n }\n }\n\n short dInv = Arithmetic.findInverse(entriesCopy[k][k], q);\n for (int l = 0; l < dimension; l++) {\n entriesCopy[k][l] = Arithmetic.reducedProduct(dInv, entriesCopy[k][l], q);\n inv[k][l] = Arithmetic.reducedProduct(dInv, inv[k][l], q);\n }\n\n for (int j = 0; j < dimension; j++) { //add - a[j][k] * a[k][k]^(-1) times kth row to the jth row\n if (j != k) {\n short factor = Arithmetic.reduce(-entriesCopy[j][k], q);// * dInv;\n for (int l = 0; l < dimension; l++) {\n entriesCopy[j][l] = Arithmetic.reducedSum(entriesCopy[j][l], Arithmetic.reducedProduct(factor, entriesCopy[k][l], q), q);\n inv[j][l] = Arithmetic.reducedSum(inv[j][l], Arithmetic.reducedProduct(factor, inv[k][l], q), q);\n //System.out.print(\"inv[\" + j + \"][\" +l + \"] = \" + inv[j][l] + \" \");\n }\n }\n }\n }\n return inv;\n }\n return null;\n }", "public static int[] xnsDesDecrypt(int[] key, int[] data) throws Exception {\r\n\t\tif (data == null || data.length == 0) {\r\n\t\t\tthrow new IllegalArgumentException(\"Argument 'data' may not be null or empty\");\r\n\t\t}\r\n\t\t\r\n\t\tECBProcessor processor = getDecrypter(key);\r\n\t\tint[] checksum = { 0, 0, 0, 0 };\r\n\t\tint[] inBlock = { 0, 0, 0, 0 };\r\n\t\tint[] lastInBlock = { 0, 0, 0, 0 }; // this is the initialization vector in case of the first block\r\n\t\tint[] outBlock;\r\n\t\t\r\n\t\tint[] result = new int[((data.length + 3) / 4) * 4]; // data.length should always be a multiple of 4 for encrypted data, but who knows\r\n\t\tint resultPos = 0;\r\n\t\t\r\n\t\tint dataPos = 0;\r\n\t\tint remaining = data.length;\r\n\t\twhile(remaining > 0) {\r\n\t\t\t// build input block\r\n\t\t\tfor (int i = 0; i < 4; i++, dataPos++) {\r\n\t\t\t\tif (dataPos < data.length) {\r\n\t\t\t\t\tinBlock[i] = data[dataPos];\r\n\t\t\t\t} else {\r\n\t\t\t\t\tinBlock[i] = 0;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// decrypt the block\r\n\t\t\toutBlock = toWords(processor.process(inBlock));\r\n\t\t\t\r\n\t\t\t// block chaining xor and append it to the result\r\n\t\t\txor(lastInBlock, outBlock); // lastInBlock ^ outBlock -> ouBlock\r\n\t\t\t\r\n\t\t\t// remember the inBlock just decrypted for next block\r\n\t\t\tfor (int i = 0; i < 4; i++) {\r\n\t\t\t\tlastInBlock[i] = inBlock[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// handle checksum: cumulate if not the last block, else xor the last block with the checksum\r\n\t\t\tif (remaining > 4) {\r\n\t\t\t\t// not the last block\r\n\t\t\t\txor(outBlock, checksum); // outBlock ^ checksum -> checksum\r\n\t\t\t} else {\r\n\t\t\t\t// last block: apply current checksum to inBlock before processing it \r\n\t\t\t\txor(checksum, outBlock); // checksum ^ outBlock -> outBlock\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// append current outBlock to the result\r\n\t\t\tfor (int i = 0; i < outBlock.length; i++) {\r\n\t\t\t\tresult[resultPos++] = outBlock[i];\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\t// this block is done\r\n\t\t\tremaining -= 4;\r\n\t\t}\r\n\t\t\r\n\t\treturn result;\t\r\n\t}", "private boolean isFlipped(){\n switch(this.orientation){\n case \"0\": case\"1\": case\"2\": case\"3\": return false;\n case \"4\": case\"5\": case\"6\": case\"7\": return true;\n default: return false;\n }\n }", "public Decryption(int key)\n {\n // initialise instance variables\n shiftKey = key;\n generateCipher();\n }", "private BigInteger decrypt(BigInteger encryptedMessage) {\n return encryptedMessage.modPow(d, n);\n }", "public void verticalFlip(Image im, int x, int y, int pixels, GraphicsContext gc2) {\n //permite que la imagen se pueda editar\n imageView = new ImageView(im);\n SnapshotParameters snap = new SnapshotParameters();\n //selecciona el bloque que se va a voltear\n snap.setViewport(new Rectangle2D(x, y, pixels, pixels));\n im = imageView.snapshot(snap, null);\n //voltea la imagen\n gc2.drawImage(im, 0, 0, pixels, pixels, x + pixels, y, -pixels, pixels);\n }", "@Override\n public void Invert() {\n\t \n }", "@Test\n\tpublic void testEliminationByColumn(){\n\t\tsetBoardUp();\n\t\tColumn col = new Column(board, 1);\n\t\tint[] toBeRemoved = {1, 3, 4};\n\t\tint[] fromCesll = {1, 2, 3, 5, 6, 8};\n\t\talgorithm.applyEliminationInColumn(col);\n\t\tboolean condition = true;\n\t\tfor(int i = 0; i < toBeRemoved.length; i++)\n\t\t\tfor(int j = 0; j < fromCesll.length; j++)\n\t\t\t\tcondition &= !col.cell[fromCesll[j]].possibilities.contains(toBeRemoved[i]);\t\t\n\t\tassertTrue(condition);\n\t}", "public CryptObject reencrypt(Ciphertext ciphertext);", "public void invert() {\n int len= currentIm.getRows() * currentIm.getCols();\n \n // invert all pixels (leave alpha/transparency value alone)\n \n // invariant: pixels 0..p-1 have been complemented.\n for (int p= 0; p < len; p= p+1) {\n int rgb= currentIm.getPixel(p);\n int red= 255 - DM.getRed(rgb);\n int blue= 255 - DM.getBlue(rgb);\n int green= 255 - DM.getGreen(rgb);\n int alpha= DM.getAlpha(rgb);\n currentIm.setPixel(p,\n (alpha << 24) | (red << 16) | (green << 8) | blue);\n }\n }", "@LargeTest\n public void testIntrinsicsConvolve3x3() {\n TestAction ta = new TestAction(TestName.INTRINSICS_CONVOLVE_3X3);\n runTest(ta, TestName.INTRINSICS_CONVOLVE_3X3.name());\n }", "@SuppressWarnings(\"deprecation\")\n @Test\n public void AesWithIVBlockStream() throws IOException {\n byte[] originalBytes = \"hello, my name is inigo montoya\".getBytes();\n ByteArrayInputStream inputStream = new ByteArrayInputStream(originalBytes);\n ByteArrayOutputStream outputStream = new ByteArrayOutputStream();\n\n SecureRandom rand = new SecureRandom(entropySeed.getBytes());\n\n PaddedBufferedBlockCipher aesEngine = new PaddedBufferedBlockCipher(new CBCBlockCipher(new AESFastEngine()));\n\n byte[] key = new byte[32];\n byte[] iv = new byte[16];\n\n // note: the IV needs to be VERY unique!\n rand.nextBytes(key); // 256bit key\n rand.nextBytes(iv); // 128bit block size\n\n\n boolean success = CryptoAES.encryptStreamWithIV(aesEngine, key, iv, inputStream, outputStream, logger);\n\n if (!success) {\n fail(\"crypto was not successful\");\n }\n\n byte[] encryptBytes = outputStream.toByteArray();\n\n inputStream = new ByteArrayInputStream(outputStream.toByteArray());\n outputStream = new ByteArrayOutputStream();\n\n success = CryptoAES.decryptStreamWithIV(aesEngine, key, inputStream, outputStream, logger);\n\n\n if (!success) {\n fail(\"crypto was not successful\");\n }\n\n byte[] decryptBytes = outputStream.toByteArray();\n\n if (Arrays.equals(originalBytes, encryptBytes)) {\n fail(\"bytes should not be equal\");\n }\n\n if (!Arrays.equals(originalBytes, decryptBytes)) {\n fail(\"bytes not equal\");\n }\n }", "public abstract void setDecryptMode();", "public void decipher(ByteBuffer buf, final int offset, final int size)\r\n\t{\r\n\t\tint count = size / 8;\r\n\t\tfor (int i = 0; i < count; i++)\r\n\t\t\t_decrypt.processBlock(buf, offset + i * 8);\r\n\t}", "public void flipHorizontal() {\n\t\t\tfor(int row = 0; row < TILE_DIM; row++) {\n\t\t\t\tString tmp = \"\";\n\t\t\t\tfor(int col = TILE_DIM-1; col >= 0; col--) {\n\t\t\t\t\ttmp += this.data[row].charAt(col);\n\t\t\t\t}\n\t\t\t\tthis.data[row] = tmp;\n\t\t\t}\n\t\t\tcomputeHashes();\n\t\t}", "public static String[] decryptAESBlock(byte[] data) {\n byte[] decrypted = CryptoUtil.decryptAESCBC(AES_DATA_KEY_BYTES, data);\n if (decrypted == null) {\n throw new RuntimeException(\"Failed to decrypt\");\n }\n\n int offset = 0;\n String[] result = new String[5];\n result[0] = HexUtil.byteArrayToHexString(decrypted, offset, 4);\n offset += 4;\n result[1] = HexUtil.byteArrayToHexString(decrypted, offset, 16);\n offset += 16;\n\n int index = -1;\n while (offset < decrypted.length && decrypted[offset] != 0) {\n int c = decrypted[offset] & 0xff;\n\n switch (c) {\n case 0xF1: {\n index = 2;\n result[index] = \"\";\n break;\n }\n case 0xF2: {\n index = 3;\n result[index] = \"\";\n break;\n }\n case 0xF3: {\n index = 4;\n result[index] = \"\";\n break;\n }\n default: {\n if (index != -1) {\n result[index] += (char) c;\n }\n }\n }\n offset++;\n }\n\n if (offset >= (decrypted.length - 2) || decrypted[offset] != 0\n || CryptoUtil.crcccit(decrypted, 0, offset + 1) != (((decrypted[offset + 1] & 0xff) << 8)) + (decrypted[offset + 2] & 0xff)) {\n throw new RuntimeException(\"Wrong key\");\n }\n\n return result;\n }", "public void invertImage()\r\n {\r\n BufferedImage toInvert;\r\n if (isChanged || isBlured )\r\n {\r\n toInvert = cropedEdited;\r\n }\r\n else\r\n {\r\n toInvert = cropedPart;\r\n }\r\n for (int x = 0; x < toInvert.getWidth(); x++) {\r\n for (int y = 0; y < toInvert.getHeight(); y++) {\r\n int rgba = toInvert.getRGB(x, y);\r\n Color col = new Color(rgba, true);\r\n col = new Color(255 - col.getRed(),\r\n 255 - col.getGreen(),\r\n 255 - col.getBlue());\r\n toInvert.setRGB(x, y, col.getRGB());\r\n }\r\n }\r\n repaint();\r\n }", "private void prga(){\n int i = 0;\n int a = 0;\n int b = 0;\n StringBuilder sb = new StringBuilder();\n fileEncrypted.clear();\n\n byte[] code = new byte[filePlain.size()];\n while (i<filePlain.size()){\n a = (a + 1) % 256;\n b = (b + s_box.get(a)) % 256;\n Collections.swap(s_box, a, b);\n\n int key_int = s_box.get((s_box.get(a) + s_box.get(b))% 256);\n byte cypher = (byte) (key_int^filePlain.get(i));\n\n fileEncrypted.add(cypher);\n sb.append((char)cypher);\n code[i] = cypher;\n i++;\n }\n\n System.out.println(\"aaa\");\n// export file\n Helper.exportFile(code, extension, true);\n }", "public static byte[] aesDecrypt(byte[] ciphertext, SecretKey decryptionKey) {\n\t\t\n\t\tbyte[] result = null;\n\t\tCipher cipher;\n\t\ttry {\n\t\t\t// Using our custom-constant salt and iteration count\n\t\t\tcipher = Cipher.getInstance(\"PBEWithSHA256And256BitAES-CBC-BC\");\n\t\t\tbyte[] salt = \"Extr3m3lyS3cr3tSalt!\".getBytes();\n\t\t\tint count = 20;\n\t\t\tPBEParameterSpec pbeParamSpec = new PBEParameterSpec(salt, count);\n\t\t\tcipher.init(Cipher.DECRYPT_MODE, decryptionKey, pbeParamSpec);\n\t\t\tresult = cipher.doFinal(ciphertext);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\n\t\treturn result;\n\t}", "IVec3 mult(float k);", "protected void processBlock(byte[] paramArrayOfByte)\r\n/* 150: */ {\r\n/* 151:236 */ int i5 = decodeBEInt(paramArrayOfByte, 0);\r\n/* 152:237 */ int i6 = decodeBEInt(paramArrayOfByte, 4);\r\n/* 153:238 */ int i7 = decodeBEInt(paramArrayOfByte, 8);\r\n/* 154:239 */ int i8 = decodeBEInt(paramArrayOfByte, 12);\r\n/* 155:240 */ int i9 = decodeBEInt(paramArrayOfByte, 16);\r\n/* 156:241 */ int i10 = decodeBEInt(paramArrayOfByte, 20);\r\n/* 157:242 */ int i11 = decodeBEInt(paramArrayOfByte, 24);\r\n/* 158:243 */ int i12 = decodeBEInt(paramArrayOfByte, 28);\r\n/* 159:244 */ int j = this.V00 ^ this.V10;\r\n/* 160:245 */ int k = this.V01 ^ this.V11;\r\n/* 161:246 */ int m = this.V02 ^ this.V12;\r\n/* 162:247 */ int n = this.V03 ^ this.V13;\r\n/* 163:248 */ int i1 = this.V04 ^ this.V14;\r\n/* 164:249 */ int i2 = this.V05 ^ this.V15;\r\n/* 165:250 */ int i3 = this.V06 ^ this.V16;\r\n/* 166:251 */ int i4 = this.V07 ^ this.V17;\r\n/* 167:252 */ j ^= this.V20;\r\n/* 168:253 */ k ^= this.V21;\r\n/* 169:254 */ m ^= this.V22;\r\n/* 170:255 */ n ^= this.V23;\r\n/* 171:256 */ i1 ^= this.V24;\r\n/* 172:257 */ i2 ^= this.V25;\r\n/* 173:258 */ i3 ^= this.V26;\r\n/* 174:259 */ i4 ^= this.V27;\r\n/* 175:260 */ int i = i4;\r\n/* 176:261 */ i4 = i3;\r\n/* 177:262 */ i3 = i2;\r\n/* 178:263 */ i2 = i1;\r\n/* 179:264 */ i1 = n ^ i;\r\n/* 180:265 */ n = m ^ i;\r\n/* 181:266 */ m = k;\r\n/* 182:267 */ k = j ^ i;\r\n/* 183:268 */ j = i;\r\n/* 184:269 */ this.V00 = (j ^ this.V00);\r\n/* 185:270 */ this.V01 = (k ^ this.V01);\r\n/* 186:271 */ this.V02 = (m ^ this.V02);\r\n/* 187:272 */ this.V03 = (n ^ this.V03);\r\n/* 188:273 */ this.V04 = (i1 ^ this.V04);\r\n/* 189:274 */ this.V05 = (i2 ^ this.V05);\r\n/* 190:275 */ this.V06 = (i3 ^ this.V06);\r\n/* 191:276 */ this.V07 = (i4 ^ this.V07);\r\n/* 192:277 */ this.V00 = (i5 ^ this.V00);\r\n/* 193:278 */ this.V01 = (i6 ^ this.V01);\r\n/* 194:279 */ this.V02 = (i7 ^ this.V02);\r\n/* 195:280 */ this.V03 = (i8 ^ this.V03);\r\n/* 196:281 */ this.V04 = (i9 ^ this.V04);\r\n/* 197:282 */ this.V05 = (i10 ^ this.V05);\r\n/* 198:283 */ this.V06 = (i11 ^ this.V06);\r\n/* 199:284 */ this.V07 = (i12 ^ this.V07);\r\n/* 200:285 */ i = i12;\r\n/* 201:286 */ i12 = i11;\r\n/* 202:287 */ i11 = i10;\r\n/* 203:288 */ i10 = i9;\r\n/* 204:289 */ i9 = i8 ^ i;\r\n/* 205:290 */ i8 = i7 ^ i;\r\n/* 206:291 */ i7 = i6;\r\n/* 207:292 */ i6 = i5 ^ i;\r\n/* 208:293 */ i5 = i;\r\n/* 209:294 */ this.V10 = (j ^ this.V10);\r\n/* 210:295 */ this.V11 = (k ^ this.V11);\r\n/* 211:296 */ this.V12 = (m ^ this.V12);\r\n/* 212:297 */ this.V13 = (n ^ this.V13);\r\n/* 213:298 */ this.V14 = (i1 ^ this.V14);\r\n/* 214:299 */ this.V15 = (i2 ^ this.V15);\r\n/* 215:300 */ this.V16 = (i3 ^ this.V16);\r\n/* 216:301 */ this.V17 = (i4 ^ this.V17);\r\n/* 217:302 */ this.V10 = (i5 ^ this.V10);\r\n/* 218:303 */ this.V11 = (i6 ^ this.V11);\r\n/* 219:304 */ this.V12 = (i7 ^ this.V12);\r\n/* 220:305 */ this.V13 = (i8 ^ this.V13);\r\n/* 221:306 */ this.V14 = (i9 ^ this.V14);\r\n/* 222:307 */ this.V15 = (i10 ^ this.V15);\r\n/* 223:308 */ this.V16 = (i11 ^ this.V16);\r\n/* 224:309 */ this.V17 = (i12 ^ this.V17);\r\n/* 225:310 */ i = i12;\r\n/* 226:311 */ i12 = i11;\r\n/* 227:312 */ i11 = i10;\r\n/* 228:313 */ i10 = i9;\r\n/* 229:314 */ i9 = i8 ^ i;\r\n/* 230:315 */ i8 = i7 ^ i;\r\n/* 231:316 */ i7 = i6;\r\n/* 232:317 */ i6 = i5 ^ i;\r\n/* 233:318 */ i5 = i;\r\n/* 234:319 */ this.V20 = (j ^ this.V20);\r\n/* 235:320 */ this.V21 = (k ^ this.V21);\r\n/* 236:321 */ this.V22 = (m ^ this.V22);\r\n/* 237:322 */ this.V23 = (n ^ this.V23);\r\n/* 238:323 */ this.V24 = (i1 ^ this.V24);\r\n/* 239:324 */ this.V25 = (i2 ^ this.V25);\r\n/* 240:325 */ this.V26 = (i3 ^ this.V26);\r\n/* 241:326 */ this.V27 = (i4 ^ this.V27);\r\n/* 242:327 */ this.V20 = (i5 ^ this.V20);\r\n/* 243:328 */ this.V21 = (i6 ^ this.V21);\r\n/* 244:329 */ this.V22 = (i7 ^ this.V22);\r\n/* 245:330 */ this.V23 = (i8 ^ this.V23);\r\n/* 246:331 */ this.V24 = (i9 ^ this.V24);\r\n/* 247:332 */ this.V25 = (i10 ^ this.V25);\r\n/* 248:333 */ this.V26 = (i11 ^ this.V26);\r\n/* 249:334 */ this.V27 = (i12 ^ this.V27);\r\n/* 250:335 */ this.V14 = (this.V14 << 1 | this.V14 >>> 31);\r\n/* 251:336 */ this.V15 = (this.V15 << 1 | this.V15 >>> 31);\r\n/* 252:337 */ this.V16 = (this.V16 << 1 | this.V16 >>> 31);\r\n/* 253:338 */ this.V17 = (this.V17 << 1 | this.V17 >>> 31);\r\n/* 254:339 */ this.V24 = (this.V24 << 2 | this.V24 >>> 30);\r\n/* 255:340 */ this.V25 = (this.V25 << 2 | this.V25 >>> 30);\r\n/* 256:341 */ this.V26 = (this.V26 << 2 | this.V26 >>> 30);\r\n/* 257:342 */ this.V27 = (this.V27 << 2 | this.V27 >>> 30);\r\n/* 258:343 */ for (int i13 = 0; i13 < 8; i13++)\r\n/* 259: */ {\r\n/* 260:344 */ i = this.V00;\r\n/* 261:345 */ this.V00 |= this.V01;\r\n/* 262:346 */ this.V02 ^= this.V03;\r\n/* 263:347 */ this.V01 ^= 0xFFFFFFFF;\r\n/* 264:348 */ this.V00 ^= this.V03;\r\n/* 265:349 */ this.V03 &= i;\r\n/* 266:350 */ this.V01 ^= this.V03;\r\n/* 267:351 */ this.V03 ^= this.V02;\r\n/* 268:352 */ this.V02 &= this.V00;\r\n/* 269:353 */ this.V00 ^= 0xFFFFFFFF;\r\n/* 270:354 */ this.V02 ^= this.V01;\r\n/* 271:355 */ this.V01 |= this.V03;\r\n/* 272:356 */ i ^= this.V01;\r\n/* 273:357 */ this.V03 ^= this.V02;\r\n/* 274:358 */ this.V02 &= this.V01;\r\n/* 275:359 */ this.V01 ^= this.V00;\r\n/* 276:360 */ this.V00 = i;\r\n/* 277:361 */ i = this.V05;\r\n/* 278:362 */ this.V05 |= this.V06;\r\n/* 279:363 */ this.V07 ^= this.V04;\r\n/* 280:364 */ this.V06 ^= 0xFFFFFFFF;\r\n/* 281:365 */ this.V05 ^= this.V04;\r\n/* 282:366 */ this.V04 &= i;\r\n/* 283:367 */ this.V06 ^= this.V04;\r\n/* 284:368 */ this.V04 ^= this.V07;\r\n/* 285:369 */ this.V07 &= this.V05;\r\n/* 286:370 */ this.V05 ^= 0xFFFFFFFF;\r\n/* 287:371 */ this.V07 ^= this.V06;\r\n/* 288:372 */ this.V06 |= this.V04;\r\n/* 289:373 */ i ^= this.V06;\r\n/* 290:374 */ this.V04 ^= this.V07;\r\n/* 291:375 */ this.V07 &= this.V06;\r\n/* 292:376 */ this.V06 ^= this.V05;\r\n/* 293:377 */ this.V05 = i;\r\n/* 294:378 */ this.V04 ^= this.V00;\r\n/* 295:379 */ this.V00 = ((this.V00 << 2 | this.V00 >>> 30) ^ this.V04);\r\n/* 296:380 */ this.V04 = ((this.V04 << 14 | this.V04 >>> 18) ^ this.V00);\r\n/* 297:381 */ this.V00 = ((this.V00 << 10 | this.V00 >>> 22) ^ this.V04);\r\n/* 298:382 */ this.V04 = (this.V04 << 1 | this.V04 >>> 31);\r\n/* 299:383 */ this.V05 ^= this.V01;\r\n/* 300:384 */ this.V01 = ((this.V01 << 2 | this.V01 >>> 30) ^ this.V05);\r\n/* 301:385 */ this.V05 = ((this.V05 << 14 | this.V05 >>> 18) ^ this.V01);\r\n/* 302:386 */ this.V01 = ((this.V01 << 10 | this.V01 >>> 22) ^ this.V05);\r\n/* 303:387 */ this.V05 = (this.V05 << 1 | this.V05 >>> 31);\r\n/* 304:388 */ this.V06 ^= this.V02;\r\n/* 305:389 */ this.V02 = ((this.V02 << 2 | this.V02 >>> 30) ^ this.V06);\r\n/* 306:390 */ this.V06 = ((this.V06 << 14 | this.V06 >>> 18) ^ this.V02);\r\n/* 307:391 */ this.V02 = ((this.V02 << 10 | this.V02 >>> 22) ^ this.V06);\r\n/* 308:392 */ this.V06 = (this.V06 << 1 | this.V06 >>> 31);\r\n/* 309:393 */ this.V07 ^= this.V03;\r\n/* 310:394 */ this.V03 = ((this.V03 << 2 | this.V03 >>> 30) ^ this.V07);\r\n/* 311:395 */ this.V07 = ((this.V07 << 14 | this.V07 >>> 18) ^ this.V03);\r\n/* 312:396 */ this.V03 = ((this.V03 << 10 | this.V03 >>> 22) ^ this.V07);\r\n/* 313:397 */ this.V07 = (this.V07 << 1 | this.V07 >>> 31);\r\n/* 314:398 */ this.V00 ^= RC00[i13];\r\n/* 315:399 */ this.V04 ^= RC04[i13];\r\n/* 316: */ }\r\n/* 317:401 */ for (i13 = 0; i13 < 8; i13++)\r\n/* 318: */ {\r\n/* 319:402 */ i = this.V10;\r\n/* 320:403 */ this.V10 |= this.V11;\r\n/* 321:404 */ this.V12 ^= this.V13;\r\n/* 322:405 */ this.V11 ^= 0xFFFFFFFF;\r\n/* 323:406 */ this.V10 ^= this.V13;\r\n/* 324:407 */ this.V13 &= i;\r\n/* 325:408 */ this.V11 ^= this.V13;\r\n/* 326:409 */ this.V13 ^= this.V12;\r\n/* 327:410 */ this.V12 &= this.V10;\r\n/* 328:411 */ this.V10 ^= 0xFFFFFFFF;\r\n/* 329:412 */ this.V12 ^= this.V11;\r\n/* 330:413 */ this.V11 |= this.V13;\r\n/* 331:414 */ i ^= this.V11;\r\n/* 332:415 */ this.V13 ^= this.V12;\r\n/* 333:416 */ this.V12 &= this.V11;\r\n/* 334:417 */ this.V11 ^= this.V10;\r\n/* 335:418 */ this.V10 = i;\r\n/* 336:419 */ i = this.V15;\r\n/* 337:420 */ this.V15 |= this.V16;\r\n/* 338:421 */ this.V17 ^= this.V14;\r\n/* 339:422 */ this.V16 ^= 0xFFFFFFFF;\r\n/* 340:423 */ this.V15 ^= this.V14;\r\n/* 341:424 */ this.V14 &= i;\r\n/* 342:425 */ this.V16 ^= this.V14;\r\n/* 343:426 */ this.V14 ^= this.V17;\r\n/* 344:427 */ this.V17 &= this.V15;\r\n/* 345:428 */ this.V15 ^= 0xFFFFFFFF;\r\n/* 346:429 */ this.V17 ^= this.V16;\r\n/* 347:430 */ this.V16 |= this.V14;\r\n/* 348:431 */ i ^= this.V16;\r\n/* 349:432 */ this.V14 ^= this.V17;\r\n/* 350:433 */ this.V17 &= this.V16;\r\n/* 351:434 */ this.V16 ^= this.V15;\r\n/* 352:435 */ this.V15 = i;\r\n/* 353:436 */ this.V14 ^= this.V10;\r\n/* 354:437 */ this.V10 = ((this.V10 << 2 | this.V10 >>> 30) ^ this.V14);\r\n/* 355:438 */ this.V14 = ((this.V14 << 14 | this.V14 >>> 18) ^ this.V10);\r\n/* 356:439 */ this.V10 = ((this.V10 << 10 | this.V10 >>> 22) ^ this.V14);\r\n/* 357:440 */ this.V14 = (this.V14 << 1 | this.V14 >>> 31);\r\n/* 358:441 */ this.V15 ^= this.V11;\r\n/* 359:442 */ this.V11 = ((this.V11 << 2 | this.V11 >>> 30) ^ this.V15);\r\n/* 360:443 */ this.V15 = ((this.V15 << 14 | this.V15 >>> 18) ^ this.V11);\r\n/* 361:444 */ this.V11 = ((this.V11 << 10 | this.V11 >>> 22) ^ this.V15);\r\n/* 362:445 */ this.V15 = (this.V15 << 1 | this.V15 >>> 31);\r\n/* 363:446 */ this.V16 ^= this.V12;\r\n/* 364:447 */ this.V12 = ((this.V12 << 2 | this.V12 >>> 30) ^ this.V16);\r\n/* 365:448 */ this.V16 = ((this.V16 << 14 | this.V16 >>> 18) ^ this.V12);\r\n/* 366:449 */ this.V12 = ((this.V12 << 10 | this.V12 >>> 22) ^ this.V16);\r\n/* 367:450 */ this.V16 = (this.V16 << 1 | this.V16 >>> 31);\r\n/* 368:451 */ this.V17 ^= this.V13;\r\n/* 369:452 */ this.V13 = ((this.V13 << 2 | this.V13 >>> 30) ^ this.V17);\r\n/* 370:453 */ this.V17 = ((this.V17 << 14 | this.V17 >>> 18) ^ this.V13);\r\n/* 371:454 */ this.V13 = ((this.V13 << 10 | this.V13 >>> 22) ^ this.V17);\r\n/* 372:455 */ this.V17 = (this.V17 << 1 | this.V17 >>> 31);\r\n/* 373:456 */ this.V10 ^= RC10[i13];\r\n/* 374:457 */ this.V14 ^= RC14[i13];\r\n/* 375: */ }\r\n/* 376:459 */ for (i13 = 0; i13 < 8; i13++)\r\n/* 377: */ {\r\n/* 378:460 */ i = this.V20;\r\n/* 379:461 */ this.V20 |= this.V21;\r\n/* 380:462 */ this.V22 ^= this.V23;\r\n/* 381:463 */ this.V21 ^= 0xFFFFFFFF;\r\n/* 382:464 */ this.V20 ^= this.V23;\r\n/* 383:465 */ this.V23 &= i;\r\n/* 384:466 */ this.V21 ^= this.V23;\r\n/* 385:467 */ this.V23 ^= this.V22;\r\n/* 386:468 */ this.V22 &= this.V20;\r\n/* 387:469 */ this.V20 ^= 0xFFFFFFFF;\r\n/* 388:470 */ this.V22 ^= this.V21;\r\n/* 389:471 */ this.V21 |= this.V23;\r\n/* 390:472 */ i ^= this.V21;\r\n/* 391:473 */ this.V23 ^= this.V22;\r\n/* 392:474 */ this.V22 &= this.V21;\r\n/* 393:475 */ this.V21 ^= this.V20;\r\n/* 394:476 */ this.V20 = i;\r\n/* 395:477 */ i = this.V25;\r\n/* 396:478 */ this.V25 |= this.V26;\r\n/* 397:479 */ this.V27 ^= this.V24;\r\n/* 398:480 */ this.V26 ^= 0xFFFFFFFF;\r\n/* 399:481 */ this.V25 ^= this.V24;\r\n/* 400:482 */ this.V24 &= i;\r\n/* 401:483 */ this.V26 ^= this.V24;\r\n/* 402:484 */ this.V24 ^= this.V27;\r\n/* 403:485 */ this.V27 &= this.V25;\r\n/* 404:486 */ this.V25 ^= 0xFFFFFFFF;\r\n/* 405:487 */ this.V27 ^= this.V26;\r\n/* 406:488 */ this.V26 |= this.V24;\r\n/* 407:489 */ i ^= this.V26;\r\n/* 408:490 */ this.V24 ^= this.V27;\r\n/* 409:491 */ this.V27 &= this.V26;\r\n/* 410:492 */ this.V26 ^= this.V25;\r\n/* 411:493 */ this.V25 = i;\r\n/* 412:494 */ this.V24 ^= this.V20;\r\n/* 413:495 */ this.V20 = ((this.V20 << 2 | this.V20 >>> 30) ^ this.V24);\r\n/* 414:496 */ this.V24 = ((this.V24 << 14 | this.V24 >>> 18) ^ this.V20);\r\n/* 415:497 */ this.V20 = ((this.V20 << 10 | this.V20 >>> 22) ^ this.V24);\r\n/* 416:498 */ this.V24 = (this.V24 << 1 | this.V24 >>> 31);\r\n/* 417:499 */ this.V25 ^= this.V21;\r\n/* 418:500 */ this.V21 = ((this.V21 << 2 | this.V21 >>> 30) ^ this.V25);\r\n/* 419:501 */ this.V25 = ((this.V25 << 14 | this.V25 >>> 18) ^ this.V21);\r\n/* 420:502 */ this.V21 = ((this.V21 << 10 | this.V21 >>> 22) ^ this.V25);\r\n/* 421:503 */ this.V25 = (this.V25 << 1 | this.V25 >>> 31);\r\n/* 422:504 */ this.V26 ^= this.V22;\r\n/* 423:505 */ this.V22 = ((this.V22 << 2 | this.V22 >>> 30) ^ this.V26);\r\n/* 424:506 */ this.V26 = ((this.V26 << 14 | this.V26 >>> 18) ^ this.V22);\r\n/* 425:507 */ this.V22 = ((this.V22 << 10 | this.V22 >>> 22) ^ this.V26);\r\n/* 426:508 */ this.V26 = (this.V26 << 1 | this.V26 >>> 31);\r\n/* 427:509 */ this.V27 ^= this.V23;\r\n/* 428:510 */ this.V23 = ((this.V23 << 2 | this.V23 >>> 30) ^ this.V27);\r\n/* 429:511 */ this.V27 = ((this.V27 << 14 | this.V27 >>> 18) ^ this.V23);\r\n/* 430:512 */ this.V23 = ((this.V23 << 10 | this.V23 >>> 22) ^ this.V27);\r\n/* 431:513 */ this.V27 = (this.V27 << 1 | this.V27 >>> 31);\r\n/* 432:514 */ this.V20 ^= RC20[i13];\r\n/* 433:515 */ this.V24 ^= RC24[i13];\r\n/* 434: */ }\r\n/* 435: */ }", "Map<String, ByteBuffer> getColumns(String columnFamily, String key, boolean reversed, String... columns);", "public void runDecrypt(String filePath) {\n try {\n byte[] paramArrayOfbyte = Files.readAllBytes(Paths.get(filePath));\n if (paramArrayOfbyte.length >= 1024 && ((paramArrayOfbyte[0] == 73 && paramArrayOfbyte[1] == 71\n && paramArrayOfbyte[2] == 69 && paramArrayOfbyte[3] == 70)\n || (paramArrayOfbyte[0] == 67 && paramArrayOfbyte[1] == 68 && paramArrayOfbyte[2] == 69\n && paramArrayOfbyte[3] == 70))) {\n // TODO: figure out why it only selects 1024 bytes.\n if (paramArrayOfbyte.length != 1024) {\n byte[] arrayOfByte = new byte[1024];\n System.arraycopy(paramArrayOfbyte, 0, arrayOfByte, 0, 1024);\n paramArrayOfbyte = arrayOfByte;\n }\n\n // Not sure why needing this section?\n byte[] arrayOfByte1 = new byte[12];\n byte[] arrayOfByte2 = new byte[12];\n System.arraycopy(paramArrayOfbyte, 4, arrayOfByte1, 0, 12);\n System.arraycopy(paramArrayOfbyte, 16, arrayOfByte2, 0, 12);\n\n // Init the most important object.\n com.b.a.b.aa.a h = new com.b.a.b.aa.a(new com.b.a.b.aa.b() {\n public byte[] a() {\n return null;\n }\n\n public int b() {\n return 3;\n }\n });\n\n String str1 = (new String(paramArrayOfbyte, 28, 32)).intern();\n // String str2 = a.a(this.n, str1);\n String str2 = Decrypt.DECRYPTION_KEY;\n int i = h.a(str2.getBytes());\n byte[] guessResult = h.b();\n h.b(guessResult); // Digest, this also sets com.b.a.a.aa.a.b. (The hashmap)\n if (i != 0)\n System.out.println(Dumper.dump(h.a(i)));\n else\n System.out.println(\"error in i.\");\n\n // Using the official file reader.\n net.zamasoft.reader.book.a.b randomAccessFile = new net.zamasoft.reader.book.a.b(new File(filePath));\n System.out.println(\"file length: \" + randomAccessFile.length());\n System.out.println(\"key: \" + com.b.a.a.a.c.a.getBLatest());\n ArrayList<Byte> bytes = new ArrayList<>();\n while (!randomAccessFile.isEOF()) {\n byte b = (byte) randomAccessFile.read();\n bytes.add(b);\n }\n assert randomAccessFile.length() == bytes.size();\n byte[] bs = new byte[bytes.size()];\n for (int ii = 0; ii < bs.length; ii++) {\n bs[ii] = bytes.get(ii);\n }\n System.out.println(\"bytes length: \" + bytes.size());\n System.out.println(new String(bs, \"utf-8\"));\n } else {\n System.out.println(\"NOOOOOOOO!\");\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n }", "public byte[] decrypt(BigInteger[] bytes) {\n byte[] byteResults = new byte[bytes.length];\n for (int i = 0; i < bytes.length; i++) {\n BigInteger bi = bytes[i];\n byteResults[i] = decrypt(bi).byteValue();\n }\n return byteResults;\n }", "public void decrypt(String key, InputStream inputDataStream, OutputStream outDataStream) throws IOException, InvalidCipherTextException {\n bcAES = new BouncyCastleAPI_AES_CBC(key.getBytes(), initializationVector);\n bcAES.InitCiphers();\n bcAES.CBCDecrypt(inputDataStream, outDataStream);\n }", "public byte[] mo10696d(byte[] bArr) {\n try {\n SecretKeySpec secretKeySpec = new SecretKeySpec(mo10697e(), \"AES\");\n Cipher instance = Cipher.getInstance(\"AES/GCM/NOPADDING\");\n instance.init(1, secretKeySpec);\n byte[] doFinal = instance.doFinal(bArr);\n this.f725c.mo10706b(this.f724b, new String(Base64.encode(instance.getIV(), 0)));\n return doFinal;\n } catch (InvalidKeyException | NoSuchAlgorithmException | NoSuchPaddingException e) {\n Log.e(f722e, \"Error while encrypting the input.\", e);\n throw new C0863e(e);\n } catch (BadPaddingException | IllegalBlockSizeException e2) {\n throw new C0861c(\"The AES decrypted input is invalid.\", e2);\n }\n }", "protected CipherIV getCipherAndIVFromFile(String filename) throws IOException {\n byte[] cipher = super.readBytesFromFile(filename + CIPHER_PART);\n byte[] iv = super.readBytesFromFile(filename + IV_PART);\n return new CipherIV(cipher, iv);\n }", "private static void mixBlock(long[] src, int start, long[] h) {\n\t\th[0] += src[start]; \n\t\th[2] ^= h[10]; \n\t\th[11] ^= h[0]; \n\t\th[0] = (h[0] << 11) | (h[0] >>> 53); \n\t\th[11] += h[1];\n\t\t\n\t\th[1] += src[start+1]; \n\t\th[3] ^= h[11]; \n\t\th[0] ^= h[1]; \n\t\th[1] = (h[1] << 32) | (h[1] >>> 32); \n\t\th[0] += h[2];\n\n\t\th[2] += src[start+2]; \n\t\th[4] ^= h[0]; \n\t\th[1] ^= h[2]; \n\t\th[2] = (h[2] << 43) | (h[2] >>> 21); \n\t\th[1] += h[3];\n\t\n\t\th[3] += src[start+3]; \n\t\th[5] ^= h[1]; \n\t\th[2] ^= h[3]; \n\t\th[3] = (h[3] << 31) | (h[3] >>> 33); \n\t\th[2] += h[4];\n\n\t\th[4] += src[start+4]; \n\t\th[6] ^= h[2]; \n\t\th[3] ^= h[4]; \n\t\th[4] = (h[4] << 17) | (h[4] >>> 47); \n\t\th[3] += h[5];\n\n\t\th[5] += src[start+5]; \n\t\th[7] ^= h[3]; \n\t\th[4] ^= h[5]; \n\t\th[5] = (h[5] << 28) | (h[5] >>> 36); \n\t\th[4] += h[6];\n\n\t\th[6] += src[start+6]; \n\t\th[8] ^= h[4]; \n\t\th[5] ^= h[6]; \n\t\th[6] = (h[6] << 39) | (h[6] >>> 25); \n\t\th[5] += h[7];\n\n\t\th[7] += src[start+7]; \n\t\th[9] ^= h[5]; \n\t\th[6] ^= h[7]; \n\t\th[7] = (h[7] << 57) | (h[7] >>> 7); \n\t\th[6] += h[8];\n\n\t\th[8] += src[start+8]; \n\t\th[10] ^= h[6]; \n\t\th[7] ^= h[8]; \n\t\th[8] = (h[8] << 55) | (h[8] >>> 9); \n\t\th[7] += h[9];\n\n\t\th[9] += src[start+9]; \n\t\th[11] ^= h[7]; \n\t\th[8] ^= h[9]; \n\t\th[9] = (h[9] << 54) | (h[9] >>> 10); \n\t\th[8] += h[10];\n\n\t\th[10] += src[start+10]; \n\t\th[0] ^= h[8]; \n\t\th[9] ^= h[10]; \n\t\th[10] = (h[10] << 22) | (h[10] >>> 42); \n\t\th[9] += h[11];\n\n\t\th[11] += src[start+11]; \n\t\th[1] ^= h[9]; \n\t\th[10] ^= h[11]; \n\t\th[11] = (h[11] << 46) | (h[11] >>> 18); \n\t\th[10] += h[0];\t\t\n\t}", "public static byte [] decrypt(byte [] cipherText, SecretKey key){\r\n\t\ttry {\r\n\t\t\tbyte [] initVector = unpackFromByteArray(cipherText, 0);\r\n\t\t\tint cursor = initVector.length+2;\t\t\t\r\n\t\t\tCipher cipher = Cipher.getInstance(symmetricKeyCryptoMode);\r\n\t\t\tcipher.init(Cipher.DECRYPT_MODE, key, new IvParameterSpec(initVector));\t\t\t\r\n\t\t\treturn cipher.doFinal(cipherText,cursor,cipherText.length-cursor);\r\n\t\t} catch (Exception e){\r\n\t\t\tthrow new ModelException(ExceptionReason.INVALID_PARAMETER, \"Error decrypting cipherText \"+cipherText,e);\r\n\t\t}\r\n\t}", "public static int[][][] flipVertically(int[][][] source) {\n\n\t\tint[][][] verticalTemp = source;\n\t\tint[][][] vertical = new int[source.length][source[0].length][3]; \n\t\tint rows = (vertical.length) - 1; \n\n\t\t// Using one loop to swift the content\n\t\tfor (int i = 0; i < (rows + 1); i++) { \n\t\t\tvertical[i] = verticalTemp[rows - i];\n\t\t}\n\t\treturn vertical;\n\t}", "void procedure()\n {\n try\n {\n fkey=new FileInputStream(file2);\n }\n catch(Exception e)\n {\n System.out.println(e);\n }\n keybuf= new byte[16];\n try\n {\n fkey.read(keybuf);\n z= new int[52];\n j1=0;\n i1=0;\n for(i=0;i<52;i++)\n z[i]=0;\n while( i1<8)\n {\n if((j1+1)%2==0)\n {\n z[i1]|=keybuf[j1]; // dividing 64 bit cypher block into four 16 bit registers\n\t i1++;\n }\n else\n \t {\n\t z[i1]=keybuf[j1];\n\t z[i1]<<=8;\n }\n\t j1++;\n }\n i=0;\n\t for(j1=1;j1<=5;j1++)\n\t {\n\t i++;\n\t z[i+7]=((z[i]<<9)&0xfe00)|((z[i+1]>>7)&0x1ff);\n\t z[i+8]=((z[i+1]<<9)&0xfe00)|((z[i+2]>>7)&0x1ff);\n\t z[i+9]=((z[i+2]<<9)&0xfe00)|((z[i+3]>>7)&0x1ff);\n\t z[i+10]=((z[i+3]<<9)&0xfe00)|((z[i+4]>>7)&0x1ff);\n\t z[i+11]=((z[i+4]<<9)&0xfe00)|((z[i+5]>>7)&0x1ff);\n\t z[i+12]=((z[i+5]<<9)&0xfe00)|((z[i+6]>>7)&0x1ff);\n z[i+13]=((z[i+6]<<9)&0xfe00)|((z[i-1]>>7)&0x1ff);\n\t z[i+14]=((z[i-1]<<9)&0xfe00)|((z[i]>>7)&0x1ff);\n\t i=i+7;\n\t }\n i1=41;\n\t z[48]=((z[i1]<<9)&0xfe00)|((z[i1+1]>>7)&0x1ff);\n\t z[49]=((z[i1+1]<<9)&0xfe00)|((z[i1+2]>>7)&0x1ff);\n\t z[50]=((z[i1+2]<<9)&0xfe00)|((z[i1+3]>>7)&0x1ff);\n\t z[51]=((z[i1+3]<<9)&0xfe00)|((z[i1+4]>>7)&0x1ff);\n}\ncatch(Exception e)\n{\nSystem.out.println(e);\n}\n}", "public FImage inverse() {\n\t\tfinal int cs = real.getCols();\n\t\tfinal int rs = real.getRows();\n\n\t\tfinal FloatFFT_2D fft = new FloatFFT_2D(rs, cs);\n\t\tfinal float[][] prepared = new float[rs][cs * 2];\n\t\tfor (int y = 0; y < rs; y++) {\n\t\t\tfor (int x = 0; x < cs; x++) {\n\t\t\t\tprepared[y][x * 2] = real.pixels[y][x];\n\t\t\t\tprepared[y][1 + x * 2] = imaginary.pixels[y][x];\n\t\t\t}\n\t\t}\n\n\t\tfft.complexInverse(prepared, true);\n\n\t\tfinal FImage image = new FImage(cs, rs);\n\t\tFourierTransform.unprepareData(prepared, image, centre);\n\n\t\treturn image;\n\t}", "public static void setIv(byte[] bytes)\r\n/* 174: */ {\r\n/* 175: */ try\r\n/* 176: */ {\r\n/* 177:148 */ setPropertyBytes(\"aesiv\", bytes);\r\n/* 178: */ }\r\n/* 179: */ catch (Exception e)\r\n/* 180: */ {\r\n/* 181:150 */ log.warning(\"Error setting secret: \" + e.getMessage());\r\n/* 182: */ }\r\n/* 183: */ }", "public void rotateCCW() {\n for (Vector2D vec : template) {\n CCW.matrixVectorProductInPlace(vec);\n }\n }", "public static void main(String[] args) \r\n {\n String message1 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZ\";\r\n System.out.println(encrypt (message1, 3));\r\n System.out.println(decrypt (encrypt(message1,3) ,3));\r\n System.out.println(encrypt(message1.toLowerCase(),5));\r\n \r\n System.out.println(decrypt(encrypt(message1.toLowerCase() ,5 ) ,5));\r\n }", "private char decrypt(char ch) {\n char chUC = Character.toUpperCase(ch);\n int cind = ALPHABET.indexOf(chUC);\n // do not decrypt non letters\n if (cind == -1) return ch;\n \n // index of decrypted character\n int dind = (cind - key) % 26;\n \n // java can return negative from modulo:\n if (dind <0) dind+=26;\n \n // decrypted uppercase character\n char dch = ALPHABET.charAt(dind);\n \n // check original case and return decrypted char\n if (Character.isUpperCase(ch)) return dch;\n else return Character.toLowerCase(dch);\n }", "public void multiplyTheCorners(CubieCube multiplier) {\n\n char[] cornerPerms = new char[cornerValues.length];\n char[] cornerOrientation = new char[cornerValues.length];\n\n for (int i = 0; i < cornerValues.length; i++) {\n\n cornerPerms[i] = cp[multiplier.cp[i]];\n\n char oriA = co[multiplier.cp[i]];\n char oriB = multiplier.co[i];\n char oriResult = 0;\n\n // check if the cube are regular or mirrored\n // regular * regular = regular\n if (oriA < 3 && oriB < 3) {\n oriResult = (char) (oriA + oriB);\n if (oriResult >= 3)\n oriResult -= 3;\n }\n\n //regular * mirrored = mirrored\n else if (oriA < 3 && oriB >= 3) {\n oriResult = (char) (oriA + oriB); ;\n if (oriResult >= 6)\n oriResult -= 3;\n }\n\n // mirrored* regular = mirrored\n else if (oriA >= 3 && oriB < 3) {\n oriResult = (char) ((oriA - oriB) & 0xff);\n if (oriResult < 3) {\n oriResult += 3;\n }\n }\n\n //mirrored * mirrored = regular\n else if (oriA >= 3 && oriB >= 3) {\n oriResult = (char) ((oriA - oriB) & 0xff);\n if (oriResult < 0)\n oriResult += 3;\n }\n\n cornerOrientation[i] = oriResult;\n }\n\n this.cp = cornerPerms;\n this.co = cornerOrientation;\n }", "public void decrypt(LVValue value) throws LRException\n\t{\n\t\tDataHRecordData myData=(DataHRecordData)getData();\n\t\tString key=myData.encryptKey.getStringValue();\n\t\tHashtable table=(Hashtable)LUEncrypt.decrypt(value.getStringValue(),key);\n\t\t// Rebuild the record from the fields in the table\n\t\tmyData.record=createRecord(myData.spec,table);\n\t}" ]
[ "0.58584523", "0.54096663", "0.5167713", "0.512276", "0.5016665", "0.50042856", "0.49825838", "0.497546", "0.48332843", "0.4827154", "0.47235057", "0.4692337", "0.46863773", "0.46734044", "0.4663254", "0.46355313", "0.4620511", "0.46001437", "0.4527417", "0.4526227", "0.45102832", "0.45075357", "0.44752735", "0.44700292", "0.44530562", "0.44451025", "0.4394072", "0.4368339", "0.43602312", "0.43520388", "0.43471763", "0.43425694", "0.43177277", "0.43152887", "0.43097195", "0.42967668", "0.42835912", "0.42736796", "0.42696232", "0.42628133", "0.42540866", "0.4253425", "0.42526922", "0.4249655", "0.42426756", "0.42340267", "0.42284128", "0.42266446", "0.42238703", "0.42111665", "0.4209356", "0.41939488", "0.41819248", "0.4159081", "0.41542706", "0.41440424", "0.41413674", "0.41403222", "0.4139145", "0.41328493", "0.41247857", "0.41239497", "0.41201517", "0.4113752", "0.40995333", "0.409304", "0.40857616", "0.40799204", "0.40773058", "0.40751547", "0.40739253", "0.40735593", "0.40622297", "0.40563798", "0.40437034", "0.4036998", "0.403429", "0.40287715", "0.40252006", "0.4009363", "0.40047294", "0.3999296", "0.39987946", "0.39969903", "0.39918736", "0.39890215", "0.39802513", "0.39771628", "0.39741877", "0.3973803", "0.39714026", "0.39626083", "0.39545673", "0.3952558", "0.39406958", "0.393663", "0.39251947", "0.39226353", "0.391827", "0.39154068" ]
0.6156358
0
Helper method to mixColumns that matrix "multiplies" row by column
private static int[] multRow(int[] column) { int[] result = new int[column.length]; for(int row=0; row<multCon.length; row++) for(int col=0; col<multCon[row].length; col++) result[row] ^= galoisMult(multCon[row][col],column[col]); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void mixColumns(int[][] arr) {//method for mixColumns\n int[][] tarr = new int[4][4];\n for (int i = 0; i < 4; i++) {\n System.arraycopy(arr[i], 0, tarr[i], 0, 4);\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n arr[i][j] = mcHelper(tarr, galois, i, j);\n }\n }\n }", "private static int[][] mixColumns(int[][] state, int round)\n\t{\n\t\tint[][] result = new int[state.length][state[0].length];\n\t\t\n\t\tfor(int row=0; row<state.length; row++)\n\t\t\tresult[row] = multRow(state[row]);\n\t\t\n\t\tSystem.out.println(\"After mixColumns(\"+round+\"):\");\n\t\tprintTranspose(result, false, false);\t\t\n\t\treturn result;\n\t}", "private static int[][] invMixColumns(int[][] state, int round)\n\t{\n\t\tint[][] result = new int[state.length][state[0].length];\n\t\t\n\t\tfor(int row=0; row<state.length; row++)\n\t\t\tresult[row] = invMultRow(state[row]);\n\t\t\n\t\tSystem.out.println(\"After invMixColumns(\"+round+\"):\");\n\t\tprintTranspose(result, false, false);\t\t\n\t\treturn result;\n\t}", "public static String [][] MixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x02,Integer.parseInt(s[0][c], 16)) ^ GMul(0x03, Integer.parseInt(s[1][c], 16)) ^ Integer.parseInt(s[2][c], 16) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ GMul(0x02, Integer.parseInt(s[1][c], 16)) ^ GMul(0x03, Integer.parseInt(s[2][c], 16)) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ Integer.parseInt(s[1][c], 16) ^ GMul(0x02, Integer.parseInt(s[2][c], 16)) ^ GMul(0x03, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x03, Integer.parseInt(s[0][c], 16)) ^ Integer.parseInt(s[1][c], 16) ^ Integer.parseInt(s[2][c], 16) ^ GMul(0x02, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "public static String [][] inMixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x0E,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[2][c], 16)) ^ GMul(0x09, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (GMul(0x09,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (GMul(0x0D,Integer.parseInt(s[0][c], 16)) ^ GMul(0x09, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x0B,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[1][c], 16)) ^ GMul(0x09, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }", "public void matrixMultiply(Matrix m) {\n if (cols == m.getRows()) {\n ArrayList<double[]> result = newMatrix(rows, m.getCols());\n for (int i=0; i<rows; i++) {\n for (int k=0; k<m.getCols(); k++) {\n double sum = 0;\n for (int j=0; j<cols; j++) {\n sum += matrix.get(i)[j] * m.get(j, k);\n }\n result.get(i)[k] = sum;\n }\n }\n setMatrix(result, rows, m.getCols()); // Rows is that of original matrix, Columns is that of the multiplying matrix\n }\n else {\n throw new MatrixMultiplicationDimensionException();\n }\n }", "@Test\n public void testSetMatrixColumn() {\n final Matrix33d mBase = getMatrix();\n final Matrix33d m = getMatrix();\n final Vector3d v = new Vector3d(D10, D11, D12);\n\n m.setMatrixColumn(v, 1);\n for (int i = 0; i < m.getA().length; i++) {\n if (i > 2 && i < 6) {\n // compare the row set to the vector values\n int vectorIndex = i - 3;\n assertEquals(m.getA()[i], v.a[vectorIndex]);\n } else {\n assertEquals(m.getA()[i], mBase.getA()[i]);\n }\n }\n }", "Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }", "public static int[][] transposeMultMatrix(int initialValue,int rows,int columns)\n {\n int[][] ori = new int[rows][columns];\n int[][] orit = new int[columns][rows];\n int[][] res = new int[rows][rows];\n int i,j;\n for(i=0; i<rows; i++) {\n for(j=0; j<columns; j++) {\n ori[i][j] = initialValue;\n orit[j][i] = initialValue;\n initialValue++;\n }\n }\n int xi,yj;\n for(i=0; i<rows; i++) {\n for(j=0; j<rows; j++) {\n for(xi=0,yj=0; xi<columns&&yj<columns; xi++,yj++) {\n res[i][j] += ori[i][xi]*orit[yj][j];\n }\n }\n }\n return res;\n }", "private static BigInteger[][] multiply (BigInteger a[][], BigInteger b[][])\n {\n BigInteger x = (a[0][0].multiply(b[0][0])).add(a[0][1].multiply(b[1][0]));\n BigInteger y = (a[0][0].multiply(b[0][1])).add(a[0][1].multiply(b[1][1]));\n BigInteger z = (a[1][0].multiply(b[0][0])).add(a[1][1].multiply(b[1][0]));\n BigInteger w = (a[1][0].multiply(b[0][1])).add(a[1][1].multiply(b[1][1]));\n \n return new BigInteger[][]{{x, y},{z, w}};\n }", "private static int[] invMultRow(int[] column)\n\t{\n\t\tint[] result = new int[column.length];\n\t\t\n\t\tfor(int row=0; row<invMultCon.length; row++)\n\t\t\tfor(int col=0; col<invMultCon[row].length; col++)\n\t\t\t\tresult[row] ^= galoisMult(invMultCon[row][col],column[col]);\n\t\t\n\t\treturn result;\n\t}", "public double[] getColumnPackedCopy() {\n double[] vals = new double[m*n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n vals[i+j*m] = data[i][j];\n }\n }\n return vals;\n }", "public T concatColumns( SimpleBase... matrices ) {\n convertType.specify0(this, matrices);\n T A = convertType.convert(this);\n\n int numCols = A.numCols();\n int numRows = A.numRows();\n for (int i = 0; i < matrices.length; i++) {\n numRows = Math.max(numRows, matrices[i].numRows());\n numCols += matrices[i].numCols();\n }\n\n SimpleMatrix combined = SimpleMatrix.wrap(convertType.commonType.create(numRows, numCols));\n\n A.ops.extract(A.mat, 0, A.numRows(), 0, A.numCols(), combined.mat, 0, 0);\n int col = A.numCols();\n for (int i = 0; i < matrices.length; i++) {\n Matrix m = convertType.convert(matrices[i]).mat;\n int cols = m.getNumCols();\n int rows = m.getNumRows();\n A.ops.extract(m, 0, rows, 0, cols, combined.mat, 0, col);\n col += cols;\n }\n\n return (T)combined;\n }", "public long[][] smultiply(int i){\n\t\tint sl = this.mat.length; //jumps to method sideLength to obtain the side length n of the matrix A\n\t\t//the global record contains an array of columns, where each column is an array of row elements. i.e.\n\t\t//the record contains the transpose of matrix A, where every row in the record is a column in A\n\t\t//a temporary 2D array tempMatA, and is made equal to the transpose of A\n\t\tlong[][] tempMatA = transpose(this.mat);\n\t\tlong[][] tempMat2 = new long[sl][sl]; //creates a temporary 2D matrix of the same size as tempMatA\n\t\tlong[][] outMat = new long[sl][sl];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"+\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//return matrix must be re-transposed to return a the proper format of 2D array for the global array\n\t\toutMat = transpose(outMat);\n\t\treturn outMat;\n\t}", "public Row3 smultiply(int i){\n\t\tRow3 tempRec = this.mat; //creates a temporary duplicate of the global record\n\t\tlong[][] tempMatA = new long[3][3]; //creates the matrix A as a 2D array\n\t\ttempMatA[0][0] = tempRec.r1.col1;\n\t\ttempMatA[0][1] = tempRec.r1.col2;\n\t\ttempMatA[0][2] = tempRec.r1.col3;\n\t\ttempMatA[1][0] = tempRec.r2.col1;\n\t\ttempMatA[1][1] = tempRec.r2.col2;\n\t\ttempMatA[1][2] = tempRec.r2.col3;\n\t\ttempMatA[2][0] = tempRec.r3.col1;\n\t\ttempMatA[2][1] = tempRec.r3.col2;\n\t\ttempMatA[2][2] = tempRec.r3.col3;\n\t\t\n\t\tlong[][] tempMat2 = new long[3][3]; //creates a 2D array of the same size as A\n\t\tlong[][] outMat = new long[3][3];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//after matrix multiplication is performed, the respective elements of the 2D array tempMatA are stored in\n\t\t//the temporary register tempRec2, which is then returned\n\t\tcolRow3 a1 = new colRow3(outMat[0][0], outMat[0][1], outMat[0][2]);\n\t\tcolRow3 b1 = new colRow3(outMat[1][0], outMat[1][1], outMat[1][2]);\n\t\tcolRow3 c1 = new colRow3(outMat[2][0], outMat[2][1], outMat[2][2]);\n\t\tRow3 tempRec2 = new Row3(a1, b1, c1);\n\t\treturn tempRec2;\n\t}", "public static Matrix product(Matrix m) {\n int rows_c = m.rows(), cols_c = m.cols();\n Matrix d;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c, m);\n for (int col = 1; col <= cols_c; col++) {\n double prodCol = 1D;\n for (int row = 1; row <= rows_c; row++) {\n prodCol = prodCol * m.get(row, col);\n }\n d.set(1, col, prodCol);\n }\n }\n return d;\n }", "public static BigDecimal[][] multiplyMatrices(BigDecimal[][] m1, BigDecimal[][] m2){\n\t\t\n\t\tint size = m1.length;\n\t\t\n\t\tBigDecimal[][] next = new BigDecimal[size][size];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tfor(int j = 0; j < size; j++){\n\t\t\t\tBigDecimal current = new BigDecimal(0);\n\t\t\t\tfor(int k = 0; k < size; k++)\n\t\t\t\t\tcurrent = current.add(m1[i][k].multiply(m2[k][j]));\n\n\t\t\t\tnext[i][j] = current;\n\t\t\t}\n\t\t}\n\t\treturn next;\n\t}", "public static int[][] multiply(int[][] x,int[][] y){\n int[][] result = new int[x.length][x.length];\n int[] tempRow = new int[x.length];\n int[] tempCol = new int[x.length];\n for (int i = 0; i < x.length; i++) {\n for (int j = 0; j < x.length; j++) {\n //make 2 array then multiple respective number and add them up\n for (int k = 0; k < x.length; k++) {\n tempRow[k] = x[i][k];\n }\n for (int k = 0; k < x.length; k++) {\n tempCol[k] = y[k][j];\n }\n for (int k = 0; k < x.length; k++) {\n result[i][j] += tempRow[k]*tempCol[k];\n }\n }\n }\n return result;\n }", "private int[] columnSum(int[][] matrix) {\n int[] result = new int[matrix.length];\n for(int i = 0; i < matrix.length; i++) {\n result[i] = 0;\n for(int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j];\n }\n }\n return result;\n }", "private void generateColumns() {\n\t\tSquare[] squareArr=new Square[squares.length];\n\t\tfor (int i=0; i<squares.length; i++) {\n\t\t\tfor (int j=0; j<squares.length; j++) {\n\t\t\t\tsquareArr[j]=squares[j][i];\n\t\t\t}\n\t\t\tcolumns[i]=new Column(squareArr);\n\t\t}\n\t}", "private static double[] matrixMultiply(double[][] bezier, double[] matrixVars) {\r\n\t\tdouble[] result = {0,0,0,0};\r\n\t\tfor (int i = 0; i < bezier.length; i++) {\r\n\t\t\tfor (int j=0; j < matrixVars.length; j++) {\r\n\t\t\t\tresult[i] += bezier[i][j]*matrixVars[j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n }", "Matrix dot(Matrix m){\n if(this.cols != m.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n double[][] tmp_this = this.asArray();\n double[][] tmp_m = m.asArray();\n Matrix matrix_to_return = new Matrix(this.rows, m.cols);\n for(int i=0; i<matrix_to_return.rows; i++){\n for(int j=0; j<matrix_to_return.cols; j++){\n for(int k=0; k<matrix_to_return.rows; k++)\n matrix_to_return.data[i*this.cols + j] += tmp_this[i][k] * tmp_m[k][j];\n }\n }\n return matrix_to_return;\n }", "static float[] mulMM(float[] m1, float[] m2){\n \t\n \t\tif(m1.length != 16 || m2.length != 16){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n \t\n float[] result = new float[16];\n for(int i = 0; i < 4; i++){ \n for(int j = 0; j < 4; j++){ \n float rij = 0;\n for(int k = 0; k < 4; k++){\n rij += m1[j*4+k] * m2[i+4*k];\n }\n// result[i*4+j] = rij;\n result[i+j*4] = rij;\n }\n }\n return result;\n }", "Matrix scalarMult(double x){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n itRow.moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(i, c.column, (x*c.value));\n itRow.moveNext();\n }\n }\n\n return newM;\n }", "public static @NotNull Matrix mult(@NotNull Matrix matrA, @NotNull Matrix matrB) {\n final int compatibleValue = matrA.getColumnCount();\n if (compatibleValue != matrB.getRowCount()) {\n throw new IllegalArgumentException(\n \"Error @ MatrixMultiplication.mult() :: incompatible matrix matrA.columns != matrB.rows\");\n }\n\n final int rowCount = matrA.getRowCount();\n final int colCount = matrB.getColumnCount();\n final Matrix.Builder result = new Matrix.Builder(rowCount, colCount);\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < colCount; j++) {\n int val = 0;\n for (int k = 0; k < compatibleValue; k++) {\n val += matrA.get(i, k) * matrB.get(k, j);\n }\n result.set(i, j, val);\n }\n }\n\n return result.build();\n }", "public final void transpose() {\n\tfloat tmp = m01;\n\tm01 = m10;\n\tm10 = tmp;\n\n\ttmp = m02;\n\tm02 = m20;\n\tm20 = tmp;\n\n\ttmp = m12;\n\tm12 = m21;\n\tm21 = tmp;\n\n }", "private static ArrayList<ArrayList<Integer>> transposeMatrix(ArrayList<ArrayList<Integer>> matrix){\r\n\t\tint numRows = matrix.size();\r\n\t\tint numCols = matrix.get(0).size();\r\n\t\tArrayList<ArrayList<Integer>> newMat = new ArrayList<ArrayList<Integer>>();\r\n\t\t//Put this in second for-loop to not have to loop twice?\r\n\t\tfor(int i = 0; i < numCols; i++) newMat.add(new ArrayList<Integer>());\r\n\t\tfor(int i = 0; i < numRows; i++){\r\n\t\t\tfor (int j = 0; j < numCols; j++){\r\n\t\t\t\tnewMat.get(j).add(matrix.get(i).get(j));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn newMat;\r\n\t}", "public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }", "public static void multiply(int[][] matrix1, int[][] matrix2) {\n\t\t int matrix1row = matrix1.length;\r\n\t\t int matrix1column = matrix1[0].length;//same as rows in B\r\n\t\t int matrix2column = matrix2[0].length;\r\n\t\t int[][] matrix3 = new int[matrix1row][matrix2column];\r\n\t\t for (int i = 0; i < matrix1row; i++) {//outer loop refers to row position\r\n\t\t for (int j = 0; j < matrix2column; j++) {//refers to column position\r\n\t\t for (int k = 0; k < matrix1column; k++) {\r\n\t\t \t //adds the products of row*column elements until the row/column is complete\r\n\t\t \t //updates to next row/column\r\n\t\t matrix3[i][j] = matrix3[i][j] + matrix1[i][k] * matrix2[k][j];\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t print(matrix3);\r\n\t\t }", "public void phitransposeMatrix()\n {\n double [][] martixtranspose;\n martixtranspose = new double[1][x + 1];\n int i = 0;\n while (i <= x) {\n martixtranspose[0][i] = Math.pow(arraylistofprices.size(), i);\n\n i++;\n }\n phiT = new Matrix(martixtranspose);\n }", "private int[][] addOneCol(int[][] ints) {\n\n int vertexLength = getRow(ints);\n int edgesLength = getCol(ints);\n\n int[][] temp = new int[vertexLength][edgesLength + 1];\n for (int i = 0; i < vertexLength; i++) {\n for (int j = 0; j < edgesLength; j++) {\n temp[i][j] = ints[i][j];\n }\n }\n return temp;\n }", "public double[] colmultiply(double[][] M, double[] V, int nrow, int ncol, int len) {\n\t\tif (ncol != len) {\n\t\t\tSystem.out.println(\"Not conformable for multiplication.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tdouble[] P = new double[nrow];\n\t\tfor (int i = 0; i < nrow; i++) {\n\t\t\tP[i] = 0;\n\t\t\tfor (int j = 0; j < ncol; j++)\n\t\t\t\tP[i] += M[i][j] * V[j];\n\t\t}\n\t\treturn P;\n\t}", "public static void testMulRec() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.multiplyRec(m1, m2, 0);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static Matrix columns(double[][] csrs) {\n\t\tMatrix m = rows(csrs);\n\t\treturn m.transpose();\n\t}", "private static void multiplyArray(double [][] matrixA, double [][] matrixB, double [][] matrixC) {\n\t\t\n\t\tmatrixC[0][0] = ((matrixA[0][0] * matrixB[0][0]) + (matrixA[0][1] * matrixB[1][0]));\n\t\tmatrixC[0][1] = ((matrixA[0][0] * matrixB[0][1]) + (matrixA[0][1] * matrixB[1][1]));\n\t\tmatrixC[1][0] = ((matrixA[1][0] * matrixB[0][0]) + (matrixA[1][1] * matrixB[1][0]));\n\t\tmatrixC[1][1] = ((matrixA[1][0] * matrixB[0][1]) + (matrixA[1][1] * matrixB[1][1]));\n\t}", "private static int[][] rotateMartix(int[][] matrix) {\n for(int i=0;i<matrix.length;i++) {\n for(int j=i;j< matrix.length;j++) {\n int tmp=matrix[i][j];\n matrix[i][j]=matrix[j][i];\n matrix[j][i]=tmp;\n }\n }\n //swap columns\n for(int i=0;i<matrix.length;i++){\n int low = 0;\n int high = matrix.length-1;\n\n while(low < high)\n {\n int temp = matrix[i][low];\n matrix[i][low] = matrix[i][high];\n matrix[i][high] = temp;\n\n low++;\n high--;\n }\n }\n return matrix;\n }", "public void swapColumns( int c1, int c2 ) {\n\tfor (int r = 0; r < this.size(); r++){\n\t Object c1Val = matrix[r][c1];\n\t matrix[r][c1] = matrix[r][c2];\n\t matrix[r][c2] = c1Val;\n\t}\n }", "public static double[][] multiplicacaoMatriz(double[][] a, double[][] b) {\n\t\t// linha por coluna\n\n\t\tif (a == null || b == null)\n\t\t\tthrow new NullPointerException(\"Argumentos nulos\");\n\n\t\tif (a[0].length != b.length)\n\t\t\tthrow new IllegalArgumentException(\"Numero de linhas de \\\"A\\\" � diferente de colunas de \\\"B\\\"\");\n\n\t\tfinal double[][] resultado = new double[a.length][b[0].length];\n\n\t\tfor (int x = 0; x < resultado.length; x++)\n\t\t\tfor (int y = 0; y < resultado[0].length; y++) {\n\n\t\t\t\tdouble acomulador = 0;\n\t\t\t\tfor (int i = 0; i < a[0].length; i++)\n\t\t\t\t\tacomulador += a[x][i] * b[i][y];\n\n\t\t\t\tresultado[x][y] = acomulador;\n\t\t\t}\n\n\t\treturn resultado;\n\t}", "@Test\n public void testGetMatrixColumn() {\n final Matrix33d m = getMatrix();\n final Vector3d expected = V2;\n final Vector3d v = new Vector3d();\n m.getMatrixColumn(v, 1);\n assertEquals(v.toString(), expected.toString());\n }", "public static double[][] multiplyMatrices(double[][] firstMatrix, double[][] secondMatrix, int r1, int c1, int c2) {\r\n\t double[][] product = new double[r1][c2];\r\n\t for(int i = 0; i < r1; i++) {\r\n\t for (int j = 0; j < c2; j++) {\r\n\t for (int k = 0; k < c1; k++) {\r\n\t product[i][j] += firstMatrix[i][k] * secondMatrix[k][j];\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t return product;\r\n\t }", "private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }", "public Matrix multiplyTransposeSelf(Matrix m) {\n\t\tMatrix newMatrix = new Matrix(nbColumns, m.getNbColumns());\n\t\tmultiplyTransposeA(this, m, newMatrix);\n\n\t\treturn newMatrix;\n\t}", "public Matriz punto(Matriz B) {\n\t\tMatriz A = this;\n\t\tif (A.getColumnas() != B.getFilas()) { throw new RuntimeException(\"Dimensiones no compatibles.\"); }\n\t\t\n\t\tMatriz C = new Matriz(A.getFilas(), B.getColumnas());\n\t\tfor (int i = 0 ; i < C.getFilas() ; i++) {\n\t\t\tfor (int j = 0 ; j < C.getColumnas() ; j++) {\n\t\t\t\tfor (int k = 0 ; k < A.getColumnas() ; k++) {\n\t\t\t\t\tC.setValor(i, j, C.getValor(i, j) + (A.getValor(i, k) * B.getValor(k, j)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn C;\n\t}", "public Mat2 mult(Mat2 m) {\n\t\tdouble[][] newData = new double[rows][m.cols];\n\t\t//if(rows != m.cols) throw new IllegalArgumentException(\"cannot multiply a \" + rows + \" by \" + cols + \n\t\t\t//\t\" matrix and a \" + m.rows + \" by \" + m.cols + \" matrix\");\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<m.cols; j++) {\n\t\t\t\tdouble total = 0.0;\n\t\t\t\tfor(int c=0; c<cols; c++) {\n\t\t\t\t\ttotal += data[i][c] * m.data[c][j];\n\t\t\t\t}\n\t\t\t\tnewData[i][j] = total;\n\t\t\t}\n\t\t}\n\t\treturn new Mat2(newData);\n\t}", "public Matrix mult(Matrix MatrixB) {\n\t\tDouble[][] newValue = new Double[row][MatrixB.col()];\r\n\t\tVector[] MatBcol = MatrixB.getCol();\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < row; x++) {\r\n\t\t\tfor (int y = 0; y < MatrixB.col(); y++) {\r\n\t\t\t\tVector rowVecI = rowVec[x];\r\n\t\t\t\tVector colVecI = MatBcol[y];\r\n\t\t\t\tnewValue[x][y] = rowVecI.DotP(colVecI);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newValue);\r\n\t}", "public Matrix times(double[][] bmat){\r\n \t int nr=bmat.length;\r\n \tint nc=bmat[0].length;\r\n\r\n \tif(this.ncol!=nr)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, nc);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}", "public static double[][] multiplyMatrixes( double[][] m1, double[][] m2 ) {\n double[][] result = new double[3][3];\n multiplyMatrixes( m1, m2, result );\n return result;\n }", "static public double[][] MatrixMult( double [][] A , double [][] B) {\n\t// A [NxK] * B[KxZ] = M[NxZ]\n\tif ( A.length == 0 || B.length == 0 || A[0].length != B.length ) {\n\t System.out.println( \"Matrix Mult Error, Invalid Input Matricies\" );\n\t return new double[1][1];\n\t}\n\tint Rows = A.length , Cols = B[0].length;\n\tdouble [][] M = new double[Rows][Cols];\n\tfor( int i = 0; i < Rows ; i++ ) {\n\t for( int j = 0; j < Cols ; j++ ) {\n\t\tM[i][j] = multRowByCol( A , B , i , j );\n\t }\n\t}\n\treturn M;\n }", "public Matrix multiplyTransposeM(Matrix m) {\n\t\tMatrix newMatrix = new Matrix(nbRows, m.getNbRows());\n\t\tmultiplyTransposeB(this, m, newMatrix);\n\n\t\treturn newMatrix;\n\t}", "public void multL(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = m.a11*a11 + m.a12*a21 + m.a13*a31;\n\t\tb12 = m.a11*a12 + m.a12*a22 + m.a13*a32;\n\t\tb13 = m.a11*a13 + m.a12*a23 + m.a13*a33;\n\t\tb14 = m.a11*a14 + m.a12*a24 + m.a13*a34 + m.a14;\n\t\tb21 = m.a21*a11 + m.a22*a21 + m.a23*a31;\n\t\tb22 = m.a21*a12 + m.a22*a22 + m.a23*a32;\n\t\tb23 = m.a21*a13 + m.a22*a23 + m.a23*a33;\n\t\tb24 = m.a21*a14 + m.a22*a24 + m.a23*a34 + m.a24;\n\n\t\tb31 = m.a31*a11 + m.a32*a21 + m.a33*a31;\n\t\tb32 = m.a31*a12 + m.a32*a22 + m.a33*a32;\n\t\tb33 = m.a31*a13 + m.a32*a23 + m.a33*a33;\n\t\tb34 = m.a31*a14 + m.a32*a24 + m.a33*a34 + m.a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}", "Matrix(Matrix first, Matrix second) {\n if (first.getColumns() == second.getRows()) {\n this.rows = first.getRows();\n this.columns = second.getColumns();\n matrix = new int[first.getRows()][second.getColumns()];\n for (int col = 0; col < this.getColumns(); col++) {\n int sum;\n int commonality = first.getColumns(); // number to handle summation loop\n for (int rw = 0; rw < this.getRows(); rw++) {\n sum = 0;\n // summation loop\n for (int x = 0; x < commonality; x++) {\n sum += first.getValue(rw, x) * second.getValue(x, col);\n }\n matrix[rw][col] = sum;\n }\n\n }\n } else {\n System.out.println(\"Matrices cannot be multiplied\");\n }\n }", "public Matrix times(Matrix bmat){\r\n \tif(this.ncol!=bmat.nrow)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, bmat.ncol);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<bmat.ncol; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat.matrix[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}", "Matrix mul(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = this.data[i] * w;\n }\n return matrix_to_return;\n }", "public byte[][] multiplyMatricesFiniteField(byte[][] m1, byte[][] m2) {\n\n byte[][] result = new byte[m1.length][m2[0].length];\n\n int rows = m1.length;\n int cols = m2[0].length;\n\n for(int i = 0; i < rows; i++) {\n int sum = 0;\n for(int j = 0; j < cols; j++) {\n for(int k = 0; k < 4; k++) {\n sum ^= multiplyPolynomialsMod(m1[i][k],m2[k][j], reductionPolynomial);\n }\n result[i][j] = (byte)sum;\n }\n }\n\n return result;\n }", "private int[] transformHelper(double[][] tranformationMat, int[] rGB) {\n int[] rGBNew = new int[3];\n for (int i = 0; i < rGB.length; i++) {\n for (int j = 0; j < tranformationMat[0].length; j++) { // tranformationMat size\n rGBNew[i] += tranformationMat[i][j] * rGB[j];\n }\n }\n\n return rGBNew;\n }", "protected AbstractMatrix3D vColumnFlip() {\n\tif (columns>0) {\n\t\tcolumnZero += (columns-1)*columnStride;\n\t\tcolumnStride = -columnStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "public void rightMultiply(Matrix other){\n \tdouble[][] temp = new double[4][4];\n\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n \t\t array[i][j] += other.array[i][k] * temp[k][j];\n\t\t}\n\t }\n\t}\n }", "public void multR(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = a11*m.a11 + a12*m.a21 + a13*m.a31;\n\t\tb12 = a11*m.a12 + a12*m.a22 + a13*m.a32;\n\t\tb13 = a11*m.a13 + a12*m.a23 + a13*m.a33;\n\t\tb14 = a11*m.a14 + a12*m.a24 + a13*m.a34 + a14;\n\t\tb21 = a21*m.a11 + a22*m.a21 + a23*m.a31;\n\t\tb22 = a21*m.a12 + a22*m.a22 + a23*m.a32;\n\t\tb23 = a21*m.a13 + a22*m.a23 + a23*m.a33;\n\t\tb24 = a21*m.a14 + a22*m.a24 + a23*m.a34 + a24;\n\n\t\tb31 = a31*m.a11 + a32*m.a21 + a33*m.a31;\n\t\tb32 = a31*m.a12 + a32*m.a22 + a33*m.a32;\n\t\tb33 = a31*m.a13 + a32*m.a23 + a33*m.a33;\n\t\tb34 = a31*m.a14 + a32*m.a24 + a33*m.a34 + a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}", "public static double[] sumEachColumn(double[][] a) {\n \n double[] out = new double[a[0].length];\n for (int r = 0; r < a.length; ++r) {\n for (int c = 0; c < a[r].length; ++c) {\n out[c] += a[r][c];\n }\n }\n \n return out;\n }", "public Matrix xMatrixTranspose(){\n if(!this.pcaDone)this.pca();\n double denom = this.nItems;\n if(!super.nFactorOption)denom -= 1.0;\n Matrix mat = dataMinusMeansTranspose.times(1.0/Math.sqrt(denom));\n return mat;\n }", "public void addColumns(Column[] cols) {\n\n\t\t//\t\t\tAllocate a new array.\n\t\tint number = cols.length;\n\t\tint cnt = columns.length + number;\n\t\tColumn[] newColumns = new Column[cnt];\n\n\t\t// copy current columns.\n\t\tSystem.arraycopy(columns, 0, newColumns, 0, columns.length);\n\n\t\t//\t\t\tANCA: need to expand the Column[] cols\n\n\t\tfor (int k = 0; k < cols.length; k++) {\n\n\t\t\tString columnClass = (cols[k].getClass()).getName();\n\t\t\tColumn expandedColumn = null;\n\n\t\t\t//if col is the first column in the table add it as is and initialize subset\n\t\t\tint numRows = super.getNumRows();\n\t\t\tif (columns.length == 0) {\n\t\t\t\tif (subset.length == 0) {\n\t\t\t\t\tnumRows = cols[k].getNumRows();\n\t\t\t\t\tsubset = new int[numRows];\n\t\t\t\t\tfor (int i = 0; i < this.getNumRows(); i++) {\n\t\t\t\t\t\tsubset[i] = i;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t// LAM-tlr, I moved this down from inside the above condition. If it is\n\t\t\t\t// inside the condition above, after the first column is added, the rest of\n\t\t\t\t// the columns are empty.\n\t\t\t\texpandedColumn = cols[k];\n\t\t\t} else {\n\t\t\t\t// LAM-tlr, I moved this down from above. If we are to use the column\n\t\t\t\t// as is, we don't need to reallocate it.\n\t\t\t\ttry {\n\t\t\t\t\texpandedColumn =\n\t\t\t\t\t\t(Column) Class.forName(columnClass).newInstance();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(e);\n\t\t\t\t}\n\t\t\t\texpandedColumn.addRows(numRows);\n\t\t\t\texpandedColumn.setLabel(cols[k].getLabel());\n\t\t\t\texpandedColumn.setComment(cols[k].getComment());\n\t\t\t\texpandedColumn.setIsScalar(cols[k].getIsScalar());\n\t\t\t\texpandedColumn.setIsNominal(cols[k].getIsNominal());\n\n\t\t\t\t//initialize all values as missing for the beginning\n\t\t\t\tfor (int j = 0; j < numRows; j++)\n\t\t\t\t\texpandedColumn.setValueToMissing(true, j);\n\n\t\t\t\t//set the elements of the column where appropriate as determined by subset\n\t\t\t\tObject el;\n\t\t\t\tfor (int i = 0; i < subset.length; i++) {\n\t\t\t\t\tel = cols[k].getObject(i);\n\t\t\t\t\texpandedColumn.setObject(el, subset[i]);\n\t\t\t\t\texpandedColumn.setValueToMissing(false, subset[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tnewColumns[columns.length + k] = expandedColumn;\n\t\t}\n\t\tcolumns = newColumns;\n\n\t}", "private RealMatrix scalarMultiplication(RealMatrix matrix1, RealMatrix matrix2) {\n\t\tdouble a = matrix1.getEntry(0, 0);\n\t\tdouble b = matrix1.getEntry(1, 0);\n\t\tdouble c = matrix1.getEntry(2, 0);\n\t\tdouble d = matrix1.getEntry(3, 0);\n\t\t\n\t\tdouble[][] result = new double[matrix2.getRowDimension()][matrix2.getColumnDimension()];\n\t\t\n\t\tfor (int i=0; i < matrix2.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < matrix2.getColumnDimension(); j++) {\n\t\t\t\tif (i == 0) result[i][j] = a * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 1) result[i][j] = b * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 2) result[i][j] = c * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 3) result[i][j] = d * matrix2.getEntry(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MatrixUtils.createRealMatrix(result);\n\t}", "public void makeColumnStochastic() {\n \n for(T col : getSecondDimension()) {\n \n double sum = 0.0;\n \n // sum all values of the current column\n for(T row : getFirstDimension()) {\n \n sum += get(row, col);\n \n }\n \n // divide each value by the sum\n for(T row : getFirstDimension()) {\n \n set(row, col, get(row, col) / sum);\n \n }\n }\n \n }", "Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }", "public static Matrix columns(double[] cs) {\n\t\tMatrix m = rows(cs);\n\t\treturn m.transpose();\n\t}", "public void concat(Matrix matrix) {\n\t\t\n\t}", "Matrix transpose(){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n // if(!itRow[i].isEmpty()){\n itRow.moveFront();\n // itRow[i].moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(c.column, i, c.value);\n itRow.moveNext();\n }\n }\n return newM;\n }", "public static Matrix3D times(Matrix3D A, Matrix3D B) {\n Matrix3D C = new Matrix3D();\n for (int i=0 ; i<=2 ; i++) { // loop over each row of A\n for (int j=0 ; j<=2 ; j++) { // loop over each column of B\n // Calculate the dot product of the ith row of A with the jth column of B:\n double v = 0;\n for (int k=0 ; k<=2 ; k++) { // loop over each item in the row/column\n v += A.d[i][k] * B.d[k][j];\n }\n C.set(i,j,v);\n }\n }\n return C;\n }", "public static int[][] matrixMultiply(int[][] matA, int[][] matB)\n {\n if(isRect(matA)== false || isRect(matB)== false || matA[0].length != matB.length)\n {\n System.out.println(\"You cant not multiply these matrices\");\n int[][] matC = {{}};\n return matC;\n }\n else\n {\n int[][] matC = new int[matA.length][matB[0].length];\n for(int i = 0; i < matA.length; i++)\n for(int j = 0; j < matB[0].length; j++)\n for(int k = 0; k < matA[0].length; k++)\n {\n matC[i][j] += matA[i][k] * matB[k][j];\n }\n return matC;\n }\n }", "private static int[][] sparseMatrixMultiplyBruteForce (int[][] A, int[][] B) {\n int[][] result = new int[A.length][B[0].length];\n\n for(int i = 0; i < result.length; i++) {\n for(int j = 0; j < result[0].length; j++) {\n int sum = 0;\n for(int k = 0; k < A[0].length; k++) {\n sum += A[i][k] * B[k][j];\n }\n result[i][j] = sum;\n }\n }\n return result;\n }", "public Matrix rowMultiply(int row, int weight) {\n\t\treturn rowMultiply(row, new ComplexNumber(new Fraction(weight)));\n\t}", "public Matrix multiply(Matrix other) {\n if (this.cols != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, other.cols); //Matrix full of zeros\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < other.cols; j++) {\n for (int k = 0; k < this.cols; k++) {\n result.data[i][j] += (this.data[i][k] * other.data[k][j]);\n }\n }\n }\n\n return result;\n }", "private static AffineTransform3D MatrixMult(AffineTransform3D matLeft,\r\n\t\t\tAffineTransform3D matRight) {\r\n\r\n\t\tAffineTransform3D m = new AffineTransform3D();\r\n\t\tm.M11 = (matRight.M11 * matLeft.M11) + (matRight.M21 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M13) + (matRight.M41 * matLeft.M14);\r\n\t\tm.M12 = (matRight.M12 * matLeft.M11) + (matRight.M22 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M13) + (matRight.M42 * matLeft.M14);\r\n\t\tm.M13 = (matRight.M13 * matLeft.M11) + (matRight.M23 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M13) + (matRight.M43 * matLeft.M14);\r\n\t\tm.M14 = (matRight.M14 * matLeft.M11) + (matRight.M24 * matLeft.M12)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M13) + (matRight.M44 * matLeft.M14);\r\n\t\tm.M21 = (matRight.M11 * matLeft.M21) + (matRight.M21 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M23) + (matRight.M41 * matLeft.M24);\r\n\t\tm.M22 = (matRight.M12 * matLeft.M21) + (matRight.M22 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M23) + (matRight.M42 * matLeft.M24);\r\n\t\tm.M23 = (matRight.M13 * matLeft.M21) + (matRight.M23 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M23) + (matRight.M43 * matLeft.M24);\r\n\t\tm.M24 = (matRight.M14 * matLeft.M21) + (matRight.M24 * matLeft.M22)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M23) + (matRight.M44 * matLeft.M24);\r\n\t\tm.M31 = (matRight.M11 * matLeft.M31) + (matRight.M21 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M33) + (matRight.M41 * matLeft.M34);\r\n\t\tm.M32 = (matRight.M12 * matLeft.M31) + (matRight.M22 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M33) + (matRight.M42 * matLeft.M34);\r\n\t\tm.M33 = (matRight.M13 * matLeft.M31) + (matRight.M23 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M33) + (matRight.M43 * matLeft.M34);\r\n\t\tm.M34 = (matRight.M14 * matLeft.M31) + (matRight.M24 * matLeft.M32)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M33) + (matRight.M44 * matLeft.M34);\r\n\t\tm.M41 = (matRight.M11 * matLeft.M41) + (matRight.M21 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M31 * matLeft.M43) + (matRight.M41 * matLeft.M44);\r\n\t\tm.M42 = (matRight.M12 * matLeft.M41) + (matRight.M22 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M32 * matLeft.M43) + (matRight.M42 * matLeft.M44);\r\n\t\tm.M43 = (matRight.M13 * matLeft.M41) + (matRight.M23 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M33 * matLeft.M43) + (matRight.M43 * matLeft.M44);\r\n\t\tm.M44 = (matRight.M14 * matLeft.M41) + (matRight.M24 * matLeft.M42)\r\n\t\t\t\t+ (matRight.M34 * matLeft.M43) + (matRight.M44 * matLeft.M44);\r\n\r\n\t\treturn m;\r\n\t}", "@Override\n\tpublic IMatrix nMultiply(IMatrix other) {\n\n\t\tif (this.getColsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For matrix multiplication first matrix must have same number of columns as number of rows of the other matrix!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = other.getColsCount();\n\t\tint innerDimension = this.getColsCount();\n\t\tdouble[][] p = new double[m][n];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble sum = 0;\n\t\t\t\tfor (int k = 0; k < innerDimension; k++) {\n\t\t\t\t\tsum += this.get(i, k) * other.get(k, j);\n\t\t\t\t}\n\t\t\t\tp[i][j] = sum;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(m, n, p, true);\n\t}", "public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.columnCount != B.rowCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.rowCount, B.columnCount);\n for (int i = 0; i < C.rowCount; i++)\n for (int j = 0; j < C.columnCount; j++)\n for (int k = 0; k < A.columnCount; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }", "public Matrix multiplyOtherMatrixToFront(Matrix other) {\n Matrix output = Matrix(rows, other.columns);\n for (int a = 0; a < rows; a++)\n {\n for (int b = 0; b < other.columns; b++)\n {\n for (int k = 0; k < columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }", "public void multiplyOtherMatrixToEnd(Matrix other){\n Matrix output = Matrix(other.rows, columns);\n for (int a = 0; a < other.rows; a++)\n {\n for (int b = 0; b < columns; b++)\n {\n for (int k = 0; k < other.columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }", "public Matrix times(Matrix B) throws JPARSECException {\n if (B.m != n) {\n throw new JPARSECException(\"Matrix inner dimensions must agree.\");\n }\n Matrix X = new Matrix(m,B.n);\n double[][] C = X.getArray();\n double[] Bcolj = new double[n];\n for (int j = 0; j < B.n; j++) {\n for (int k = 0; k < n; k++) {\n Bcolj[k] = B.data[k][j];\n }\n for (int i = 0; i < m; i++) {\n double[] Arowi = data[i];\n double s = 0;\n for (int k = 0; k < n; k++) {\n s += Arowi[k]*Bcolj[k];\n }\n C[i][j] = s;\n }\n }\n return X;\n }", "public static int[][] matrixToPowerTwo(int[][] adjMatrix) {\n\t\tint verticesNum = adjMatrix.length;\n\t\tint[][] multipliedMatrix = new int[verticesNum][verticesNum];\n\t\t\n\t\t// row\n\t\tfor (int i = 0; i < verticesNum; i++) {\n\t\t\t// column from second matrix\n\t\t\tfor (int j = 0; j < verticesNum; j++) {\n\t\t\t\t// row in second column\n\t\t\t\tint result = 0;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < verticesNum; k++) {\n\t\t\t\t\tint num1 = adjMatrix[i][k];\n\t\t\t\t\tint num2 = adjMatrix[k][j];\n\t\t\t\t\tresult += num1 * num2;\n//\t\t\t\tSystem.out.print(num1 + \" * \" + num2 + \" + \");\n\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n\t\t\t\tmultipliedMatrix[i][j] = result;\n\t\t\t}\n\t\t}\n\t\t\n//\t\tfor (int i = 0; i < verticesNum; i++) {\n//\t\t\tfor (int j = 0; j < multipliedMatrix.length; j++) {\n//\t\t\t\tSystem.out.print(multipliedMatrix[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\t\t\n\t\treturn multipliedMatrix;\n\t}", "public void rotateColumn(int a, int b) {\n for (int i = 0; i < b; i++) {\n char last = screen[screen.length - 1][a];\n for (int j = screen.length - 2; j >= 0; j--) {\n screen[j + 1][a] = screen[j][a];\n }\n screen[0][a] = last;\n }\n }", "public static void SumRowsColumns(int[][] array) {\n\n }", "private static void multiply(float[] a, float[] b, float[] destination) {\r\n\t\tfor(int i = 0; i < 4; i++){\r\n\t\t\tfor(int j = 0; j < 4; j++){\r\n\t\t\t\tfor(int k = 0; k < 4; k++){\r\n\t\t\t\t\tset(destination, i, j, get(destination, i, j) + get(a, i, k) * get(b, k, j));\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static int[][] preProcess(int mat[][]) {\n int[][] prefixSumMatrix = new int[mat.length][mat[0].length];\n\n int count = 0;\n // PrePopulate 1st Row\n for (int[] row : mat) {\n for (int i : row) {\n prefixSumMatrix[0][count++] = i;\n }\n break;\n }\n // Run through all cols\n for (int i = 1; i < mat.length; i++) {\n for (int j = 0; j < mat[i].length; j++) {\n prefixSumMatrix[i][j] = mat[i][j] + prefixSumMatrix[i - 1][j];\n }\n }\n LogUtil.logIt(\"Col Prefix Sum.....\");\n LogUtil.printMultiDimensionArray(prefixSumMatrix);\n\n // Now Row Prefix Sum\n for (int i = 0; i < mat.length; i++) {\n for (int j = 1; j < mat[i].length; j++) {\n prefixSumMatrix[i][j] = prefixSumMatrix[i][j - 1] + prefixSumMatrix[i][j];\n }\n }\n\n LogUtil.logIt(\"Col Prefix Sum.....\");\n LogUtil.printMultiDimensionArray(prefixSumMatrix);\n return prefixSumMatrix;\n }", "@Override\n public Matrix idct(final MatrixView in) {\n check(in);\n double[][] out = new double[in.getRows()][in.getColumns()];\n double tmp1, tmp2, tmp3, tmp4;\n double tmpm0 = 0, tmpm1 = 0, tmpm2 = 0, tmpm3 = 0, tmpm4 = 0, tmpm5 = 0, tmpm6 = 0, tmpm7 = 0;\n double tmpm20, tmpm21, tmpm22, tmpm23, tmpm24, tmpm25, tmpm26, tmpm27 = 0;\n double[] outtmpmyi = null;\n\n for (int my = 0; my < in.getRows(); my += SIZE) {\n for (int mx = 0; mx < in.getColumns(); mx += SIZE) {\n for (int i = 0; i < 8; i++) {\n outtmpmyi = out[my + i];\n\n tmpm0 = in.getDouble(my + i, mx + 0);\n tmpm1 = in.getDouble(my + i, mx + 1);\n tmpm2 = in.getDouble(my + i, mx + 2);\n tmpm3 = in.getDouble(my + i, mx + 3);\n tmpm4 = in.getDouble(my + i, mx + 4);\n tmpm5 = in.getDouble(my + i, mx + 5);\n tmpm6 = in.getDouble(my + i, mx + 6);\n tmpm7 = in.getDouble(my + i, mx + 7);\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n outtmpmyi[mx + 0] = tmpm0 + tmpm7;\n outtmpmyi[mx + 7] = tmpm0 - tmpm7;\n outtmpmyi[mx + 1] = tmpm1 + tmpm6;\n outtmpmyi[mx + 6] = tmpm1 - tmpm6;\n outtmpmyi[mx + 2] = tmpm2 + tmpm5;\n outtmpmyi[mx + 5] = tmpm2 - tmpm5;\n outtmpmyi[mx + 3] = tmpm3 + tmpm4;\n outtmpmyi[mx + 4] = tmpm3 - tmpm4;\n\n }\n\n for (int i = 0; i < 8; i++) {\n\n tmpm0 = out[my + 0][mx + i];\n tmpm1 = out[my + 1][mx + i];\n tmpm2 = out[my + 2][mx + i];\n tmpm3 = out[my + 3][mx + i];\n tmpm4 = out[my + 4][mx + i];\n tmpm5 = out[my + 5][mx + i];\n tmpm6 = out[my + 6][mx + i];\n tmpm7 = out[my + 7][mx + i];\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n out[my + 0][mx + i] = tmpm0 + tmpm7;\n out[my + 7][mx + i] = tmpm0 - tmpm7;\n out[my + 1][mx + i] = tmpm1 + tmpm6;\n out[my + 6][mx + i] = tmpm1 - tmpm6;\n out[my + 2][mx + i] = tmpm2 + tmpm5;\n out[my + 5][mx + i] = tmpm2 - tmpm5;\n out[my + 3][mx + i] = tmpm3 + tmpm4;\n out[my + 4][mx + i] = tmpm3 - tmpm4;\n }\n }\n }\n\n return new DoubleMatrix(in.getRows(), in.getColumns(), out);\n }", "public void multiply(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] *= skalar;\r\n }\r\n }\r\n }", "public static Matrix multiply(Matrix first, Matrix second) {\n \n Matrix result = new Matrix(first.getRows(), first.getClumns());\n \n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] * second.matrix[row][col];\n }\n }\n \n return result;\n }", "@Override\n public Matrix like(int rows, int columns) {\n return new PivotedMatrix(base.like(rows, columns));\n }", "public Matrix rowMultiply(int row, Fraction weight) {\n\t\treturn rowMultiply(row, new ComplexNumber(weight));\n\t}", "private void transpose() {\n Utils.transpose(this._board);\n }", "public static double[][] matrixMultiplier(double[][] A, double[][] B) {\n\n if (A[0].length != B.length) {\n System.out.println(\"ERROR MATRIX DIMENSIONS INCORRECT! A: \" + Integer.toString(A[0].length) + \" B: \" + Integer.toString(B.length) + \"\\nSHUTTING DOWN PROGRAM\");\n System.exit(0);\n }\n\n double[][] C = new double[A.length][B[0].length];\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < B[0].length; j++) {\n C[i][j] = 0;\n }\n }\n\n for (int i = 0; i < A.length; i++) {\n for (int j = 0; j < B[0].length; j++) {\n for (int k = 0; k < A[0].length; k++) {\n C[i][j] += A[i][k] * B[k][j];\n }\n }\n }\n return C;\n }", "public Matrix multiply(BigInteger c, BigInteger modulo) {\n Stream<BigInteger[]> stream = Arrays.stream(inner);\n if (concurrent) {\n stream = stream.parallel();\n }\n\n BigInteger[][] res = stream.map(r -> rowMultiplyConstant(r, c, modulo)).toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }", "public void transpose() {\n // Follow this plan: \n // (1) Create a new ImageArray ia, using currentIM's row-major order array\n // and rows and columns, but swap the roles of its numbers\n // of rows and columns.\n // (2) Store the transpose of the currentIm array in ia, using currentIm's\n // 2-parameter getPixel function and ia's 3-parameter setPixel\n // function.\n // (3) assign ia to currentIm.\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n ImageArray ia= new ImageArray(currentIm.getRmoArray(), cols, rows);\n \n //Copy each element ImageArray[r,c] to ia[c,r]\n // invariant: rows 0..r-1 have been copied to ia[.., 0..r-1]\n for (int r= 0; r != rows; r= r+1)\n // invariant: elements [r..0..c-1] have been copied to ia[0..c-1, r]\n for (int c= 0; c != cols; c= c+1) {\n ia.setPixel(c, r, currentIm.getPixel(r,c));\n }\n \n currentIm= ia;\n }", "public org.apache.spark.mllib.linalg.distributed.BlockMatrix transpose () { throw new RuntimeException(); }", "static Matrix vectorize(Matrix input) {\n int m = input.getRowDimension();\n int n = input.getColumnDimension();\n\n Matrix result = new Matrix(m * n, 1);\n for (int p = 0; p < n; p++) {\n for (int q = 0; q < m; q++) {\n result.set(p * m + q, 0, input.get(q, p));\n }\n }\n return result;\n }", "public void MatrixChainMultiply(int[] p) {\n n = p.length - 1;\t// how many matrices are in the chain\n m = new int[n + 1][n + 1];\t// overallocate m, so that we don't use index 0\n s = new int[n + 1][n + 1];\t// same for s\n matrixChainOrder(p);\t// run the dynamic-programming algorithm\n }", "private Matriks Transpose(){\r\n\t\tMatriks Mhasil = new Matriks(KolEff,BrsEff);\r\n\t\tfor(int i=0;i<BrsEff;i++){\r\n\t\t\tfor(int j=0;j<KolEff;j++){\r\n\t\t\t\tMhasil.Elmt[j][i] = this.Elmt[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Mhasil;\r\n\t}", "private int[] productExceptSelfByMath(int[] nums){\n int len = nums.length;\n int[] ret = new int[len]; // not count as extra space\n\n int[] preMul = new int[len];\n int[] sufMul = new int[len];\n\n // head and tail\n preMul[0] = 1;\n sufMul[len - 1] = 1;\n // prefix multiply\n for(int i = 1; i < len; i++){\n preMul[i] = preMul[i - 1] * nums[i - 1];\n }\n // suffix multiply\n for(int i = len -2; i >= 0; i--){\n sufMul[i] = sufMul[i + 1] * nums[i + 1];\n }\n // cross\n for(int i = 0; i < len; i++){\n ret[i] = preMul[i] * sufMul[i];\n }\n\n return ret;\n }", "private static @NotNull Matrix mergeMatrices(\n @NotNull Matrix matrC11, @NotNull Matrix matrC12, @NotNull Matrix matrC21, @NotNull Matrix matrC22) {\n\n assert matrC11.getRowCount() == matrC11.getColumnCount();\n assert (matrC11.getRowCount() == matrC12.getRowCount())\n && (matrC21.getRowCount() == matrC22.getRowCount())\n && (matrC11.getRowCount() == matrC22.getRowCount());\n assert (matrC11.getColumnCount() == matrC12.getColumnCount())\n && (matrC21.getColumnCount() == matrC22.getColumnCount())\n && (matrC11.getColumnCount() == matrC22.getColumnCount());\n\n final int halfRows = matrC11.getRowCount();\n final int halfCols = matrC11.getColumnCount();\n\n int[][] matrixData = new int[halfRows * 2][halfCols * 2];\n\n // Merging top part, C11 and C12\n for (int i = 0; i < halfRows; i++) {\n int[] row11 = matrC11.getRow(i);\n System.arraycopy(row11, 0, matrixData[i], 0, row11.length);\n int[] row12 = matrC12.getRow(i);\n System.arraycopy(row12, 0, matrixData[i], row11.length, row12.length);\n }\n\n // Merging bottom part, C21 and C22\n for (int i = 0; i < halfRows; i++) {\n int[] row21 = matrC21.getRow(i);\n System.arraycopy(row21, 0, matrixData[halfRows + i], 0, row21.length);\n int[] row22 = matrC22.getRow(i);\n System.arraycopy(row22, 0, matrixData[halfRows + i], row21.length, row22.length);\n }\n\n return Matrix.fromArray(matrixData);\n\n }", "public void mult(Mat2 m, Mat2 dest) {\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<m.cols; j++) {\n\t\t\t\tdouble total = 0.0f;\n\t\t\t\tfor(int c=0; c<cols; c++) {\n\t\t\t\t\ttotal += data[i][c] * m.data[c][j];\n\t\t\t\t}\n\t\t\t\tdest.set(i, j, total);\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.76814747", "0.70938987", "0.67272323", "0.6265442", "0.60841686", "0.5831904", "0.5659208", "0.5592661", "0.5565086", "0.5530767", "0.55248547", "0.5515494", "0.55125344", "0.551225", "0.5500274", "0.54789233", "0.54260296", "0.5400307", "0.5321457", "0.53007984", "0.52980834", "0.52903503", "0.5284195", "0.52587086", "0.52376896", "0.5212447", "0.518393", "0.5181008", "0.5168723", "0.5168561", "0.5167884", "0.51658934", "0.515784", "0.5155909", "0.5147483", "0.5144124", "0.51402473", "0.51345164", "0.5132667", "0.5131429", "0.51280177", "0.5116402", "0.50885504", "0.5087149", "0.5085732", "0.5073899", "0.50670636", "0.5054578", "0.50442696", "0.5041807", "0.50389063", "0.50255984", "0.501166", "0.50041115", "0.49762952", "0.49641913", "0.4963663", "0.49611333", "0.49506798", "0.49464354", "0.49425137", "0.4938287", "0.49368018", "0.49358967", "0.49207044", "0.4917316", "0.49158788", "0.49110937", "0.4906609", "0.48957407", "0.48930436", "0.48880634", "0.4874575", "0.4871916", "0.48473102", "0.4844447", "0.48385814", "0.4835562", "0.48332962", "0.48291373", "0.48268446", "0.48257744", "0.4820038", "0.4815526", "0.48153356", "0.48130462", "0.4799604", "0.47978818", "0.4787051", "0.4783734", "0.47807842", "0.47677752", "0.47654542", "0.47596622", "0.47551015", "0.4753841", "0.47488517", "0.47352895", "0.4730488", "0.47288716" ]
0.60616237
5
Helper method to invMixColumns that matrix "multiplies" row by column
private static int[] invMultRow(int[] column) { int[] result = new int[column.length]; for(int row=0; row<invMultCon.length; row++) for(int col=0; col<invMultCon[row].length; col++) result[row] ^= galoisMult(invMultCon[row][col],column[col]); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static int[][] invMixColumns(int[][] state, int round)\n\t{\n\t\tint[][] result = new int[state.length][state[0].length];\n\t\t\n\t\tfor(int row=0; row<state.length; row++)\n\t\t\tresult[row] = invMultRow(state[row]);\n\t\t\n\t\tSystem.out.println(\"After invMixColumns(\"+round+\"):\");\n\t\tprintTranspose(result, false, false);\t\t\n\t\treturn result;\n\t}", "public void mixColumns(int[][] arr) {//method for mixColumns\n int[][] tarr = new int[4][4];\n for (int i = 0; i < 4; i++) {\n System.arraycopy(arr[i], 0, tarr[i], 0, 4);\n }\n for (int i = 0; i < 4; i++) {\n for (int j = 0; j < 4; j++) {\n arr[i][j] = mcHelper(tarr, galois, i, j);\n }\n }\n }", "private static int[][] mixColumns(int[][] state, int round)\n\t{\n\t\tint[][] result = new int[state.length][state[0].length];\n\t\t\n\t\tfor(int row=0; row<state.length; row++)\n\t\t\tresult[row] = multRow(state[row]);\n\t\t\n\t\tSystem.out.println(\"After mixColumns(\"+round+\"):\");\n\t\tprintTranspose(result, false, false);\t\t\n\t\treturn result;\n\t}", "private static int[] multRow(int[] column)\n\t{\n\t\tint[] result = new int[column.length];\n\t\t\n\t\tfor(int row=0; row<multCon.length; row++)\n\t\t\tfor(int col=0; col<multCon[row].length; col++)\n\t\t\t\tresult[row] ^= galoisMult(multCon[row][col],column[col]);\n\t\t\n\t\treturn result;\n\t}", "public static double [][] inv(double [][] a) {\n int N = a.length;\n double [] col = new double[N];\n int [] indx = new int[N];\n double [][] y = new double[N][N];\n \n double d = ludcmp(a, indx);\n for (int j=0; j<N; j++ ) {\n for (int i=0; i<N; i++) \n col[i] = 0.0;\n col[j] = 1.0;\n lubksb(a, indx, col);\n for (int i=0; i<N; i++)\n y[i][j] = col[i];\n }\n return y; \n }", "public long[][] smultiply(int i){\n\t\tint sl = this.mat.length; //jumps to method sideLength to obtain the side length n of the matrix A\n\t\t//the global record contains an array of columns, where each column is an array of row elements. i.e.\n\t\t//the record contains the transpose of matrix A, where every row in the record is a column in A\n\t\t//a temporary 2D array tempMatA, and is made equal to the transpose of A\n\t\tlong[][] tempMatA = transpose(this.mat);\n\t\tlong[][] tempMat2 = new long[sl][sl]; //creates a temporary 2D matrix of the same size as tempMatA\n\t\tlong[][] outMat = new long[sl][sl];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"+\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//return matrix must be re-transposed to return a the proper format of 2D array for the global array\n\t\toutMat = transpose(outMat);\n\t\treturn outMat;\n\t}", "public Matrix inverse(){\r\n \tint n = this.nrow;\r\n \tif(n!=this.ncol)throw new IllegalArgumentException(\"Matrix is not square\");\r\n \tdouble[] col = new double[n];\r\n \tdouble[] xvec = new double[n];\r\n \tMatrix invmat = new Matrix(n, n);\r\n \tdouble[][] invarray = invmat.getArrayReference();\r\n \tMatrix ludmat;\r\n\r\n\t \tludmat = this.luDecomp();\r\n \tfor(int j=0; j<n; j++){\r\n \t\tfor(int i=0; i<n; i++)col[i]=0.0D;\r\n \t\tcol[j]=1.0;\r\n \t\txvec=ludmat.luBackSub(col);\r\n \t\tfor(int i=0; i<n; i++)invarray[i][j]=xvec[i];\r\n \t}\r\n \t\treturn invmat;\r\n \t}", "public Row3 smultiply(int i){\n\t\tRow3 tempRec = this.mat; //creates a temporary duplicate of the global record\n\t\tlong[][] tempMatA = new long[3][3]; //creates the matrix A as a 2D array\n\t\ttempMatA[0][0] = tempRec.r1.col1;\n\t\ttempMatA[0][1] = tempRec.r1.col2;\n\t\ttempMatA[0][2] = tempRec.r1.col3;\n\t\ttempMatA[1][0] = tempRec.r2.col1;\n\t\ttempMatA[1][1] = tempRec.r2.col2;\n\t\ttempMatA[1][2] = tempRec.r2.col3;\n\t\ttempMatA[2][0] = tempRec.r3.col1;\n\t\ttempMatA[2][1] = tempRec.r3.col2;\n\t\ttempMatA[2][2] = tempRec.r3.col3;\n\t\t\n\t\tlong[][] tempMat2 = new long[3][3]; //creates a 2D array of the same size as A\n\t\tlong[][] outMat = new long[3][3];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//after matrix multiplication is performed, the respective elements of the 2D array tempMatA are stored in\n\t\t//the temporary register tempRec2, which is then returned\n\t\tcolRow3 a1 = new colRow3(outMat[0][0], outMat[0][1], outMat[0][2]);\n\t\tcolRow3 b1 = new colRow3(outMat[1][0], outMat[1][1], outMat[1][2]);\n\t\tcolRow3 c1 = new colRow3(outMat[2][0], outMat[2][1], outMat[2][2]);\n\t\tRow3 tempRec2 = new Row3(a1, b1, c1);\n\t\treturn tempRec2;\n\t}", "public static int[][] transposeMultMatrix(int initialValue,int rows,int columns)\n {\n int[][] ori = new int[rows][columns];\n int[][] orit = new int[columns][rows];\n int[][] res = new int[rows][rows];\n int i,j;\n for(i=0; i<rows; i++) {\n for(j=0; j<columns; j++) {\n ori[i][j] = initialValue;\n orit[j][i] = initialValue;\n initialValue++;\n }\n }\n int xi,yj;\n for(i=0; i<rows; i++) {\n for(j=0; j<rows; j++) {\n for(xi=0,yj=0; xi<columns&&yj<columns; xi++,yj++) {\n res[i][j] += ori[i][xi]*orit[yj][j];\n }\n }\n }\n return res;\n }", "Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }", "public static String [][] inMixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x0E,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[2][c], 16)) ^ GMul(0x09, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (GMul(0x09,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (GMul(0x0D,Integer.parseInt(s[0][c], 16)) ^ GMul(0x09, Integer.parseInt(s[1][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0B, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x0B,Integer.parseInt(s[0][c], 16)) ^ GMul(0x0D, Integer.parseInt(s[1][c], 16)) ^ GMul(0x09, Integer.parseInt(s[2][c], 16)) ^ GMul(0x0E, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "public static String [][] MixColumnss(String s[][]) {\n String [][] ss=new String[4][4];\n for (int c = 0; c < 4; c++) {\n \n ss[0][c] =Integer.toHexString( (byte) (GMul(0x02,Integer.parseInt(s[0][c], 16)) ^ GMul(0x03, Integer.parseInt(s[1][c], 16)) ^ Integer.parseInt(s[2][c], 16) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[1][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ GMul(0x02, Integer.parseInt(s[1][c], 16)) ^ GMul(0x03, Integer.parseInt(s[2][c], 16)) ^ Integer.parseInt(s[3][c], 16)) & 0xFF);\n ss[2][c] =Integer.toHexString( (byte) (Integer.parseInt(s[0][c], 16) ^ Integer.parseInt(s[1][c], 16) ^ GMul(0x02, Integer.parseInt(s[2][c], 16)) ^ GMul(0x03, Integer.parseInt(s[3][c], 16))) & 0xFF);\n ss[3][c] =Integer.toHexString( (byte) (GMul(0x03, Integer.parseInt(s[0][c], 16)) ^ Integer.parseInt(s[1][c], 16) ^ Integer.parseInt(s[2][c], 16) ^ GMul(0x02, Integer.parseInt(s[3][c], 16))) & 0xFF);\n }\nreturn ss;\n}", "static Matrix vectorize(Matrix input) {\n int m = input.getRowDimension();\n int n = input.getColumnDimension();\n\n Matrix result = new Matrix(m * n, 1);\n for (int p = 0; p < n; p++) {\n for (int q = 0; q < m; q++) {\n result.set(p * m + q, 0, input.get(q, p));\n }\n }\n return result;\n }", "protected AbstractMatrix3D vColumnFlip() {\n\tif (columns>0) {\n\t\tcolumnZero += (columns-1)*columnStride;\n\t\tcolumnStride = -columnStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "public void invert() {\n \n float[] result = new float[16];\n System.arraycopy(IDENTITY, 0, result, 0, 16);\n \n for(int i = 0; i < 4; i++){\n int i4 = i*4;\n \n // make sure[i,i] is != 0\n \n for(int j = 0; matrix[i4+i] == 0 && j < 4; j++){\n if(j != i && matrix[j*4+i] != 0){\n transform(i, 1, j, matrix, result);\n }\n }\n \n // ensure tailing 0s\n \n for(int j = 0; j < i; j++){\n if(matrix[i4+j] != 0){\n transform(i, -matrix[i4+j]/matrix[j*4+j], j, matrix, result);\n }\n }\n\n if(matrix[i4+i] == 0){\n throw new IllegalArgumentException(\"Not invertable\");\n }\n\n // dump(\"row \"+i+\" leading zeros\", matrix, result);\n }\n \n for(int i = 3; i >= 0; i--){\n int i4 = i*4;\n if(matrix[i4+i] != 1){\n float f = matrix[i4+i];\n matrix[i4+i] = 1;\n for(int j = 0; j < 4; j++){\n result[i4+j] /= f;\n if(j > i){\n matrix[i4+j] /= f;\n }\n }\n }\n\n// dump(\"row \"+i+\" leading 1\", matrix, result);\n \n for(int j = i+1; j < 4; j++){\n if(matrix[i*4+j] != 0){\n transform(i, -matrix[i*4+j], j, matrix, result);\n }\n }\n\n// dump(\"row \"+i+\" tailing 0\", matrix, result);\n\n }\n\n matrix = result;\n }", "public Matrix xMatrixTranspose(){\n if(!this.pcaDone)this.pca();\n double denom = this.nItems;\n if(!super.nFactorOption)denom -= 1.0;\n Matrix mat = dataMinusMeansTranspose.times(1.0/Math.sqrt(denom));\n return mat;\n }", "@Override\n public Matrix idct(final MatrixView in) {\n check(in);\n double[][] out = new double[in.getRows()][in.getColumns()];\n double tmp1, tmp2, tmp3, tmp4;\n double tmpm0 = 0, tmpm1 = 0, tmpm2 = 0, tmpm3 = 0, tmpm4 = 0, tmpm5 = 0, tmpm6 = 0, tmpm7 = 0;\n double tmpm20, tmpm21, tmpm22, tmpm23, tmpm24, tmpm25, tmpm26, tmpm27 = 0;\n double[] outtmpmyi = null;\n\n for (int my = 0; my < in.getRows(); my += SIZE) {\n for (int mx = 0; mx < in.getColumns(); mx += SIZE) {\n for (int i = 0; i < 8; i++) {\n outtmpmyi = out[my + i];\n\n tmpm0 = in.getDouble(my + i, mx + 0);\n tmpm1 = in.getDouble(my + i, mx + 1);\n tmpm2 = in.getDouble(my + i, mx + 2);\n tmpm3 = in.getDouble(my + i, mx + 3);\n tmpm4 = in.getDouble(my + i, mx + 4);\n tmpm5 = in.getDouble(my + i, mx + 5);\n tmpm6 = in.getDouble(my + i, mx + 6);\n tmpm7 = in.getDouble(my + i, mx + 7);\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n outtmpmyi[mx + 0] = tmpm0 + tmpm7;\n outtmpmyi[mx + 7] = tmpm0 - tmpm7;\n outtmpmyi[mx + 1] = tmpm1 + tmpm6;\n outtmpmyi[mx + 6] = tmpm1 - tmpm6;\n outtmpmyi[mx + 2] = tmpm2 + tmpm5;\n outtmpmyi[mx + 5] = tmpm2 - tmpm5;\n outtmpmyi[mx + 3] = tmpm3 + tmpm4;\n outtmpmyi[mx + 4] = tmpm3 - tmpm4;\n\n }\n\n for (int i = 0; i < 8; i++) {\n\n tmpm0 = out[my + 0][mx + i];\n tmpm1 = out[my + 1][mx + i];\n tmpm2 = out[my + 2][mx + i];\n tmpm3 = out[my + 3][mx + i];\n tmpm4 = out[my + 4][mx + i];\n tmpm5 = out[my + 5][mx + i];\n tmpm6 = out[my + 6][mx + i];\n tmpm7 = out[my + 7][mx + i];\n\n tmp1 = (tmpm1 * Z7) - (tmpm7 * Z1);\n tmp4 = (tmpm7 * Z7) + (tmpm1 * Z1);\n tmp2 = (tmpm5 * Z3) - (tmpm3 * Z5);\n tmp3 = (tmpm3 * Z3) + (tmpm5 * Z5);\n\n tmpm20 = (tmpm0 + tmpm4) * Z4;\n tmpm21 = (tmpm0 - tmpm4) * Z4;\n tmpm22 = (tmpm2 * Z6) - (tmpm6 * Z2);\n tmpm23 = (tmpm6 * Z6) + (tmpm2 * Z2);\n tmpm4 = tmp1 + tmp2;\n tmpm25 = tmp1 - tmp2;\n tmpm26 = tmp4 - tmp3;\n tmpm7 = tmp4 + tmp3;\n\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n\n out[my + 0][mx + i] = tmpm0 + tmpm7;\n out[my + 7][mx + i] = tmpm0 - tmpm7;\n out[my + 1][mx + i] = tmpm1 + tmpm6;\n out[my + 6][mx + i] = tmpm1 - tmpm6;\n out[my + 2][mx + i] = tmpm2 + tmpm5;\n out[my + 5][mx + i] = tmpm2 - tmpm5;\n out[my + 3][mx + i] = tmpm3 + tmpm4;\n out[my + 4][mx + i] = tmpm3 - tmpm4;\n }\n }\n }\n\n return new DoubleMatrix(in.getRows(), in.getColumns(), out);\n }", "Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }", "public void phitransposeMatrix()\n {\n double [][] martixtranspose;\n martixtranspose = new double[1][x + 1];\n int i = 0;\n while (i <= x) {\n martixtranspose[0][i] = Math.pow(arraylistofprices.size(), i);\n\n i++;\n }\n phiT = new Matrix(martixtranspose);\n }", "private static void subtractRows (double[][] augmentedMatrix, int n, int i, double[] currRow) {\n for (int j = i + 1; j < n; j++) {\n double times = augmentedMatrix[j][i] / currRow[i];\n for (int k = 0; k < n + 1; k++) {\n // Subtract currRow from this row\n augmentedMatrix[j][k] -= times * currRow[k];\n }\n }\n }", "Matrix scalarMult(double x){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n itRow.moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(i, c.column, (x*c.value));\n itRow.moveNext();\n }\n }\n\n return newM;\n }", "public void matrixMultiply(Matrix m) {\n if (cols == m.getRows()) {\n ArrayList<double[]> result = newMatrix(rows, m.getCols());\n for (int i=0; i<rows; i++) {\n for (int k=0; k<m.getCols(); k++) {\n double sum = 0;\n for (int j=0; j<cols; j++) {\n sum += matrix.get(i)[j] * m.get(j, k);\n }\n result.get(i)[k] = sum;\n }\n }\n setMatrix(result, rows, m.getCols()); // Rows is that of original matrix, Columns is that of the multiplying matrix\n }\n else {\n throw new MatrixMultiplicationDimensionException();\n }\n }", "private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }", "private static BigInteger[][] multiply (BigInteger a[][], BigInteger b[][])\n {\n BigInteger x = (a[0][0].multiply(b[0][0])).add(a[0][1].multiply(b[1][0]));\n BigInteger y = (a[0][0].multiply(b[0][1])).add(a[0][1].multiply(b[1][1]));\n BigInteger z = (a[1][0].multiply(b[0][0])).add(a[1][1].multiply(b[1][0]));\n BigInteger w = (a[1][0].multiply(b[0][1])).add(a[1][1].multiply(b[1][1]));\n \n return new BigInteger[][]{{x, y},{z, w}};\n }", "public static Matrix inverse(Matrix amat){\r\n \tint n = amat.nrow;\r\n \tif(n!=amat.ncol)throw new IllegalArgumentException(\"Matrix is not square\");\r\n \tdouble[] col = new double[n];\r\n \tdouble[] xvec = new double[n];\r\n \tMatrix invmat = new Matrix(n, n);\r\n \tdouble[][] invarray = invmat.getArrayReference();\r\n \tMatrix ludmat;\r\n\r\n\t \tludmat = amat.luDecomp();\r\n \tfor(int j=0; j<n; j++){\r\n \t\tfor(int i=0; i<n; i++)col[i]=0.0D;\r\n \t\tcol[j]=1.0;\r\n \t\txvec=ludmat.luBackSub(col);\r\n \t\tfor(int i=0; i<n; i++)invarray[i][j]=xvec[i];\r\n \t}\r\n \treturn invmat;\r\n \t}", "@Override\n public Matrix dct(final MatrixView in) {\n check(in);\n double[][] out = new double[in.getRows()][in.getColumns()];\n double tmpm0 = 0, tmpm1 = 0, tmpm2 = 0, tmpm3 = 0, tmpm4 = 0, tmpm5 = 0, tmpm6 = 0, tmpm7 = 0;\n double tmpm20 = 0, tmpm21 = 0, tmpm22 = 0, tmpm23 = 0, tmpm24 = 0, tmpm25 = 0, tmpm26 = 0, tmpm27 = 0;\n\n for (int my = 0; my < in.getRows(); my += SIZE) {\n for (int mx = 0; mx < in.getColumns(); mx += SIZE) {\n\n for (int i = 0; i < SIZE; i++) { // HT\n\n tmpm0 = in.getInt(my + i, mx + 0);\n tmpm1 = in.getInt(my + i, mx + 1);\n tmpm2 = in.getInt(my + i, mx + 2);\n tmpm3 = in.getInt(my + i, mx + 3);\n tmpm4 = in.getInt(my + i, mx + 4);\n tmpm5 = in.getInt(my + i, mx + 5);\n tmpm6 = in.getInt(my + i, mx + 6);\n tmpm7 = in.getInt(my + i, mx + 7);\n\n tmpm20 = tmpm0 + tmpm7;\n tmpm27 = tmpm0 - tmpm7;\n tmpm21 = tmpm1 + tmpm6;\n tmpm26 = tmpm1 - tmpm6;\n tmpm22 = tmpm2 + tmpm5;\n tmpm25 = tmpm2 - tmpm5;\n tmpm23 = tmpm3 + tmpm4;\n tmpm24 = tmpm3 - tmpm4;\n\n double outmyi[] = out[my + i];\n\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n tmpm4 = tmpm24;\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm7 = tmpm27;\n outmyi[mx + 0] = (tmpm0 + tmpm1) * Z4;\n outmyi[mx + 4] = (tmpm0 - tmpm1) * Z4;\n outmyi[mx + 2] = (tmpm2 * Z6) + (tmpm3 * Z2);\n outmyi[mx + 6] = (tmpm3 * Z6) - (tmpm2 * Z2);\n tmpm24 = tmpm4 + tmpm5;\n tmpm27 = tmpm7 + tmpm6;\n tmpm25 = tmpm4 - tmpm5;\n tmpm26 = tmpm7 - tmpm6;\n outmyi[mx + 1] = (tmpm24 * Z7) + (tmpm27 * Z1);\n outmyi[mx + 5] = (tmpm25 * Z3) + (tmpm26 * Z5);\n outmyi[mx + 7] = (tmpm27 * Z7) - (tmpm24 * Z1);\n outmyi[mx + 3] = (tmpm26 * Z3) - (tmpm25 * Z5);\n }\n\n for (int i = 0; i < SIZE; i++) { // VT\n tmpm20 = out[my + 0][mx + i] + out[my + 7][mx + i];\n tmpm27 = out[my + 0][mx + i] - out[my + 7][mx + i];\n tmpm21 = out[my + 1][mx + i] + out[my + 6][mx + i];\n tmpm26 = out[my + 1][mx + i] - out[my + 6][mx + i];\n tmpm22 = out[my + 2][mx + i] + out[my + 5][mx + i];\n tmpm25 = out[my + 2][mx + i] - out[my + 5][mx + i];\n tmpm23 = out[my + 3][mx + i] + out[my + 4][mx + i];\n tmpm24 = out[my + 3][mx + i] - out[my + 4][mx + i];\n\n tmpm0 = tmpm20 + tmpm23;\n tmpm1 = tmpm21 + tmpm22;\n tmpm2 = tmpm21 - tmpm22;\n tmpm3 = tmpm20 - tmpm23;\n tmpm4 = tmpm24;\n tmpm5 = (tmpm26 - tmpm25) * Z0;\n tmpm6 = (tmpm26 + tmpm25) * Z0;\n tmpm7 = tmpm27;\n out[my + 0][mx + i] = (tmpm0 + tmpm1) * Z4;\n out[my + 4][mx + i] = (tmpm0 - tmpm1) * Z4;\n out[my + 2][mx + i] = (tmpm2 * Z6) + (tmpm3 * Z2);\n out[my + 6][mx + i] = (tmpm3 * Z6) - (tmpm2 * Z2);\n tmpm24 = tmpm4 + tmpm5;\n tmpm27 = tmpm7 + tmpm6;\n tmpm25 = tmpm4 - tmpm5;\n tmpm26 = tmpm7 - tmpm6;\n out[my + 1][mx + i] = (tmpm24 * Z7) + (tmpm27 * Z1);\n out[my + 5][mx + i] = (tmpm25 * Z3) + (tmpm26 * Z5);\n out[my + 7][mx + i] = (tmpm27 * Z7) - (tmpm24 * Z1);\n out[my + 3][mx + i] = (tmpm26 * Z3) - (tmpm25 * Z5);\n }\n }\n }\n\n return new DoubleMatrix(in.getRows(), in.getColumns(), out);\n }", "public void transpose() {\n // Follow this plan: \n // (1) Create a new ImageArray ia, using currentIM's row-major order array\n // and rows and columns, but swap the roles of its numbers\n // of rows and columns.\n // (2) Store the transpose of the currentIm array in ia, using currentIm's\n // 2-parameter getPixel function and ia's 3-parameter setPixel\n // function.\n // (3) assign ia to currentIm.\n int rows= currentIm.getRows();\n int cols= currentIm.getCols();\n ImageArray ia= new ImageArray(currentIm.getRmoArray(), cols, rows);\n \n //Copy each element ImageArray[r,c] to ia[c,r]\n // invariant: rows 0..r-1 have been copied to ia[.., 0..r-1]\n for (int r= 0; r != rows; r= r+1)\n // invariant: elements [r..0..c-1] have been copied to ia[0..c-1, r]\n for (int c= 0; c != cols; c= c+1) {\n ia.setPixel(c, r, currentIm.getPixel(r,c));\n }\n \n currentIm= ia;\n }", "public Matrix rowMultiply(int row, int weight) {\n\t\treturn rowMultiply(row, new ComplexNumber(new Fraction(weight)));\n\t}", "protected AbstractMatrix3D vRowFlip() {\n\tif (rows>0) {\n\t\trowZero += (rows-1)*rowStride;\n\t\trowStride = -rowStride;\n\t\tthis.isNoView = false;\n\t}\n\treturn this;\n}", "@Test\n public void testSetMatrixColumn() {\n final Matrix33d mBase = getMatrix();\n final Matrix33d m = getMatrix();\n final Vector3d v = new Vector3d(D10, D11, D12);\n\n m.setMatrixColumn(v, 1);\n for (int i = 0; i < m.getA().length; i++) {\n if (i > 2 && i < 6) {\n // compare the row set to the vector values\n int vectorIndex = i - 3;\n assertEquals(m.getA()[i], v.a[vectorIndex]);\n } else {\n assertEquals(m.getA()[i], mBase.getA()[i]);\n }\n }\n }", "public Matrix inverseMatrix(Matrix L, Matrix U, Matrix P, int n)\n {\n\tMatrix Uinv = new Matrix(n,n);\n\tMatrix Linv = new Matrix(n,n);\n\tfor (int k = 0; k < n; k++)\n\t{\n\t\tVector temp = new Vector(n);\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tif (i == k)\n\t\t\t\ttemp.vector[i] = 1;\n\t\t\telse\n\t\t\t\ttemp.vector[i] = 0;\n\t\t}\n\t\t// forward substitution for L y = b.\n\t\tfor (int i = 1; i < n; i++)\n\t\t\tfor (int j = 0; j < i; j++)\n\t\t\t\ttemp.vector[i] -= L.matrix[i][j] * temp.vector[j];\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tLinv.matrix[i][k] = temp.vector[i];\n\t\t}\n\n\t}\n\n\tfor (int k = 0; k < n; k++)\n\t{\n\t\tVector temp = new Vector(n);\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tif (i == k)\n\t\t\t\ttemp.vector[i] = 1;\n\t\t\telse\n\t\t\t\ttemp.vector[i] = 0;\n\t\t}\n\t\t// back substitution for U x = y. \n\t\tfor (int i = n - 1; i >= 0; i--) {\n\t\t\tfor (int j = i + 1; j < n; j++) \n temp.vector[i] -= U.matrix[i][j] * temp.vector[j];\n\t\t\ttemp.vector[i] /= U.matrix[i][i];\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++)\n\t\t{\n\t\t\tUinv.matrix[i][k] = temp.vector[i];\n\t\t}\n\n\t}\n Matrix LinP = new Matrix();\n\tLinP = LinP.multiplication(Linv, P);\n Matrix results = new Matrix();\n results = results.multiplication(Uinv, LinP);\n\treturn results;\n\n }", "public abstract Vector4fc mul(IMatrix4f mat);", "public Matrix multiplyTransposeSelf(Matrix m) {\n\t\tMatrix newMatrix = new Matrix(nbColumns, m.getNbColumns());\n\t\tmultiplyTransposeA(this, m, newMatrix);\n\n\t\treturn newMatrix;\n\t}", "private static int[][] rotateMartix(int[][] matrix) {\n for(int i=0;i<matrix.length;i++) {\n for(int j=i;j< matrix.length;j++) {\n int tmp=matrix[i][j];\n matrix[i][j]=matrix[j][i];\n matrix[j][i]=tmp;\n }\n }\n //swap columns\n for(int i=0;i<matrix.length;i++){\n int low = 0;\n int high = matrix.length-1;\n\n while(low < high)\n {\n int temp = matrix[i][low];\n matrix[i][low] = matrix[i][high];\n matrix[i][high] = temp;\n\n low++;\n high--;\n }\n }\n return matrix;\n }", "private Matriks Transpose(){\r\n\t\tMatriks Mhasil = new Matriks(KolEff,BrsEff);\r\n\t\tfor(int i=0;i<BrsEff;i++){\r\n\t\t\tfor(int j=0;j<KolEff;j++){\r\n\t\t\t\tMhasil.Elmt[j][i] = this.Elmt[i][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn Mhasil;\r\n\t}", "Matrix dot(Matrix m){\n if(this.cols != m.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n double[][] tmp_this = this.asArray();\n double[][] tmp_m = m.asArray();\n Matrix matrix_to_return = new Matrix(this.rows, m.cols);\n for(int i=0; i<matrix_to_return.rows; i++){\n for(int j=0; j<matrix_to_return.cols; j++){\n for(int k=0; k<matrix_to_return.rows; k++)\n matrix_to_return.data[i*this.cols + j] += tmp_this[i][k] * tmp_m[k][j];\n }\n }\n return matrix_to_return;\n }", "public void cinv_() {\n TH.THTensor_(cinv)(this, this);\n }", "public static void flipHorizontalAxis(int[][] matrix) {\n for(int i = matrix.length - 1; i >= matrix.length/2; i-- ){\n for(int j = 0; j < matrix[i].length; j++){\n int temp = matrix[i][j];\n matrix[i][j] = matrix[(matrix.length - 1) - i][j];\n matrix[(matrix.length - 1) - i][j] = temp;\n }\n }\n}", "public abstract Vector4fc mul(IMatrix4x3f mat);", "private static double[] matrixMultiply(double[][] bezier, double[] matrixVars) {\r\n\t\tdouble[] result = {0,0,0,0};\r\n\t\tfor (int i = 0; i < bezier.length; i++) {\r\n\t\t\tfor (int j=0; j < matrixVars.length; j++) {\r\n\t\t\t\tresult[i] += bezier[i][j]*matrixVars[j];\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn result;\r\n }", "public Matrix rowMultiply(int row, Fraction weight) {\n\t\treturn rowMultiply(row, new ComplexNumber(weight));\n\t}", "public double[] colmultiply(double[][] M, double[] V, int nrow, int ncol, int len) {\n\t\tif (ncol != len) {\n\t\t\tSystem.out.println(\"Not conformable for multiplication.\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tdouble[] P = new double[nrow];\n\t\tfor (int i = 0; i < nrow; i++) {\n\t\t\tP[i] = 0;\n\t\t\tfor (int j = 0; j < ncol; j++)\n\t\t\t\tP[i] += M[i][j] * V[j];\n\t\t}\n\t\treturn P;\n\t}", "Matrix inverse(Matrix m){\r\n Matrix mtemp = new Matrix(m.M);\r\n Matrix miden = new Matrix(m.rows,m.cols);\r\n miden = miden.identity();\r\n for(int i=0;i<mtemp.rows-1;i++){\r\n for(int j=i+1; j<mtemp.rows; j++){\r\n if(mtemp.M[i][i]<mtemp.M[j][i]){\r\n swapRow(mtemp,i,j);\r\n swapRow(miden,i,j);\r\n }\r\n }\r\n for(int k=i+1; k<mtemp.rows; k++){\r\n double ratio = mtemp.M[k][i]/mtemp.M[i][i];\r\n for(int j=0;j<mtemp.cols;j++){\r\n mtemp.M[k][j] -= ratio*mtemp.M[i][j];\r\n miden.M[k][j] -= ratio*miden.M[i][j];\r\n }\r\n\r\n }\r\n\r\n }\r\n for(int i=mtemp.rows-1;i>0;i--){\r\n for(int k=i-1; k>-1; k--){\r\n double ratio = mtemp.M[k][i]/mtemp.M[i][i];\r\n for(int j=mtemp.cols-1;j>-1;j--){\r\n mtemp.M[k][j] -= ratio*mtemp.M[i][j];\r\n miden.M[k][j] -= ratio*miden.M[i][j];\r\n }\r\n\r\n }\r\n\r\n }\r\n \r\n\r\n for(int i=0; i<mtemp.rows; i++){\r\n for(int j=0; j<mtemp.cols; j++){\r\n miden.M[i][j] /= mtemp.M[i][i];\r\n }\r\n }\r\n return miden;\r\n\r\n }", "Matrix mul(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = this.data[i] * w;\n }\n return matrix_to_return;\n }", "public Matrix multiplyTransposeM(Matrix m) {\n\t\tMatrix newMatrix = new Matrix(nbRows, m.getNbRows());\n\t\tmultiplyTransposeB(this, m, newMatrix);\n\n\t\treturn newMatrix;\n\t}", "public final void transpose() {\n\tfloat tmp = m01;\n\tm01 = m10;\n\tm10 = tmp;\n\n\ttmp = m02;\n\tm02 = m20;\n\tm20 = tmp;\n\n\ttmp = m12;\n\tm12 = m21;\n\tm21 = tmp;\n\n }", "public Matriz punto(Matriz B) {\n\t\tMatriz A = this;\n\t\tif (A.getColumnas() != B.getFilas()) { throw new RuntimeException(\"Dimensiones no compatibles.\"); }\n\t\t\n\t\tMatriz C = new Matriz(A.getFilas(), B.getColumnas());\n\t\tfor (int i = 0 ; i < C.getFilas() ; i++) {\n\t\t\tfor (int j = 0 ; j < C.getColumnas() ; j++) {\n\t\t\t\tfor (int k = 0 ; k < A.getColumnas() ; k++) {\n\t\t\t\t\tC.setValor(i, j, C.getValor(i, j) + (A.getValor(i, k) * B.getValor(k, j)));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn C;\n\t}", "protected Matrix symmetrize(Matrix lower) {\r\n Matrix upper = lower;\r\n for(int i = 0; i < upper.getRowCount(); i++) {\r\n int index = i;\r\n upper.getAndSet(i, r -> {\r\n for(int j = index + 1; j < r.length; j++) {\r\n r[j] = lower.get(j, index);\r\n }\r\n });\r\n }\r\n return upper;\r\n }", "static float[] mulMV(float[] m, float[] v, float v3){ 0\n // 1\n // 2\n // 3\n\t // 0 1 2 3 \n\t // 4 5 6 7\n\t // 8 9 10 11\n\t // 12 13 14 15\n\t // \n \n return new float[]{\n \t m[ 0]*v[0] + m[ 1]*v[1] + m[ 2]*v[2] + m[ 3]*v3,\n \t m[ 4]*v[0] + m[ 5]*v[1] + m[ 6]*v[2] + m[ 7]*v3,\n \t m[ 8]*v[0] + m[ 9]*v[1] + m[10]*v[2] + m[11]*v3,\n \t m[12]*v[0] + m[13]*v[1] + m[14]*v[2] + m[15]*v3};\n }", "public static Matrix product(Matrix m) {\n int rows_c = m.rows(), cols_c = m.cols();\n Matrix d;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c, m);\n for (int col = 1; col <= cols_c; col++) {\n double prodCol = 1D;\n for (int row = 1; row <= rows_c; row++) {\n prodCol = prodCol * m.get(row, col);\n }\n d.set(1, col, prodCol);\n }\n }\n return d;\n }", "public static int[][] multiply(int[][] x,int[][] y){\n int[][] result = new int[x.length][x.length];\n int[] tempRow = new int[x.length];\n int[] tempCol = new int[x.length];\n for (int i = 0; i < x.length; i++) {\n for (int j = 0; j < x.length; j++) {\n //make 2 array then multiple respective number and add them up\n for (int k = 0; k < x.length; k++) {\n tempRow[k] = x[i][k];\n }\n for (int k = 0; k < x.length; k++) {\n tempCol[k] = y[k][j];\n }\n for (int k = 0; k < x.length; k++) {\n result[i][j] += tempRow[k]*tempCol[k];\n }\n }\n }\n return result;\n }", "public Matrix multiply(BigInteger c, BigInteger modulo) {\n Stream<BigInteger[]> stream = Arrays.stream(inner);\n if (concurrent) {\n stream = stream.parallel();\n }\n\n BigInteger[][] res = stream.map(r -> rowMultiplyConstant(r, c, modulo)).toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }", "public static short[][] inverseModQ(short[][] entries, short q) {\n\n if (Arithmetic.isPrime(q)) {\n int dimension = entries.length;\n\n /*\n if (dimension == 0) {\n return null;\n }\n if (entries[0].length != dimension) {\n return null;\n }\n*/\n short[][] entriesCopy = new short[dimension][dimension];\n for (int i = 0; i < dimension; i++) {\n System.arraycopy(entries[i], 0, entriesCopy[i], 0, dimension);\n }\n\n short[][] inv = new short[dimension][dimension];\n for (int i = 0; i < dimension; i++) {\n for (int j = 0; j < dimension; j++) {\n if (i == j) {\n inv[i][j] = 1;\n } else {\n inv[i][j] = 0;\n }\n }\n }\n\n\n for (int k = 0; k < dimension; k++) {\n\n if (entriesCopy[k][k] == 0) { //switch rows; return 0 if not possible\n boolean notFound = true;\n for (int j = k + 1; j < dimension && notFound; j++) {\n if (entriesCopy[j][k] != 0) {\n notFound = false;\n short[] temp = new short[dimension];\n System.arraycopy(entriesCopy[j], 0, temp, 0, dimension);\n System.arraycopy(entriesCopy[k], 0, entriesCopy[j], 0, dimension);\n System.arraycopy(temp, 0, entriesCopy[k], 0, dimension);\n temp = new short[dimension];\n System.arraycopy(inv[j], 0, temp, 0, dimension);\n System.arraycopy(inv[k], 0, inv[j], 0, dimension);\n System.arraycopy(temp, 0, inv[k], 0, dimension);\n }\n }\n if (notFound) {\n return null;\n }\n }\n\n short dInv = Arithmetic.findInverse(entriesCopy[k][k], q);\n for (int l = 0; l < dimension; l++) {\n entriesCopy[k][l] = Arithmetic.reducedProduct(dInv, entriesCopy[k][l], q);\n inv[k][l] = Arithmetic.reducedProduct(dInv, inv[k][l], q);\n }\n\n for (int j = 0; j < dimension; j++) { //add - a[j][k] * a[k][k]^(-1) times kth row to the jth row\n if (j != k) {\n short factor = Arithmetic.reduce(-entriesCopy[j][k], q);// * dInv;\n for (int l = 0; l < dimension; l++) {\n entriesCopy[j][l] = Arithmetic.reducedSum(entriesCopy[j][l], Arithmetic.reducedProduct(factor, entriesCopy[k][l], q), q);\n inv[j][l] = Arithmetic.reducedSum(inv[j][l], Arithmetic.reducedProduct(factor, inv[k][l], q), q);\n //System.out.print(\"inv[\" + j + \"][\" +l + \"] = \" + inv[j][l] + \" \");\n }\n }\n }\n }\n return inv;\n }\n return null;\n }", "static float[] mulMM(float[] m1, float[] m2){\n \t\n \t\tif(m1.length != 16 || m2.length != 16){\n \t\t\tthrow new IllegalArgumentException();\n \t\t}\n \t\n float[] result = new float[16];\n for(int i = 0; i < 4; i++){ \n for(int j = 0; j < 4; j++){ \n float rij = 0;\n for(int k = 0; k < 4; k++){\n rij += m1[j*4+k] * m2[i+4*k];\n }\n// result[i*4+j] = rij;\n result[i+j*4] = rij;\n }\n }\n return result;\n }", "private static ArrayList<ArrayList<Integer>> transposeMatrix(ArrayList<ArrayList<Integer>> matrix){\r\n\t\tint numRows = matrix.size();\r\n\t\tint numCols = matrix.get(0).size();\r\n\t\tArrayList<ArrayList<Integer>> newMat = new ArrayList<ArrayList<Integer>>();\r\n\t\t//Put this in second for-loop to not have to loop twice?\r\n\t\tfor(int i = 0; i < numCols; i++) newMat.add(new ArrayList<Integer>());\r\n\t\tfor(int i = 0; i < numRows; i++){\r\n\t\t\tfor (int j = 0; j < numCols; j++){\r\n\t\t\t\tnewMat.get(j).add(matrix.get(i).get(j));\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn newMat;\r\n\t}", "public Matrix times(Matrix B) throws JPARSECException {\n if (B.m != n) {\n throw new JPARSECException(\"Matrix inner dimensions must agree.\");\n }\n Matrix X = new Matrix(m,B.n);\n double[][] C = X.getArray();\n double[] Bcolj = new double[n];\n for (int j = 0; j < B.n; j++) {\n for (int k = 0; k < n; k++) {\n Bcolj[k] = B.data[k][j];\n }\n for (int i = 0; i < m; i++) {\n double[] Arowi = data[i];\n double s = 0;\n for (int k = 0; k < n; k++) {\n s += Arowi[k]*Bcolj[k];\n }\n C[i][j] = s;\n }\n }\n return X;\n }", "public void multL(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = m.a11*a11 + m.a12*a21 + m.a13*a31;\n\t\tb12 = m.a11*a12 + m.a12*a22 + m.a13*a32;\n\t\tb13 = m.a11*a13 + m.a12*a23 + m.a13*a33;\n\t\tb14 = m.a11*a14 + m.a12*a24 + m.a13*a34 + m.a14;\n\t\tb21 = m.a21*a11 + m.a22*a21 + m.a23*a31;\n\t\tb22 = m.a21*a12 + m.a22*a22 + m.a23*a32;\n\t\tb23 = m.a21*a13 + m.a22*a23 + m.a23*a33;\n\t\tb24 = m.a21*a14 + m.a22*a24 + m.a23*a34 + m.a24;\n\n\t\tb31 = m.a31*a11 + m.a32*a21 + m.a33*a31;\n\t\tb32 = m.a31*a12 + m.a32*a22 + m.a33*a32;\n\t\tb33 = m.a31*a13 + m.a32*a23 + m.a33*a33;\n\t\tb34 = m.a31*a14 + m.a32*a24 + m.a33*a34 + m.a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}", "public static double[][] matrixInversion(double[][] a) {\r\n\t\t// Code for this function and the functions it calls was adapted from\r\n\t\t// http://mrbool.com/how-to-use-java-for-performing-matrix-operations/26800\r\n\t\t\r\n\t\treturn (divideBy(transpose(cofactor(a)), determinant(a)));\r\n\t}", "public Matrix mult(Matrix MatrixB) {\n\t\tDouble[][] newValue = new Double[row][MatrixB.col()];\r\n\t\tVector[] MatBcol = MatrixB.getCol();\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < row; x++) {\r\n\t\t\tfor (int y = 0; y < MatrixB.col(); y++) {\r\n\t\t\t\tVector rowVecI = rowVec[x];\r\n\t\t\t\tVector colVecI = MatBcol[y];\r\n\t\t\t\tnewValue[x][y] = rowVecI.DotP(colVecI);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newValue);\r\n\t}", "@Override\n\tpublic IMatrix nMultiply(IMatrix other) {\n\n\t\tif (this.getColsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For matrix multiplication first matrix must have same number of columns as number of rows of the other matrix!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = other.getColsCount();\n\t\tint innerDimension = this.getColsCount();\n\t\tdouble[][] p = new double[m][n];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble sum = 0;\n\t\t\t\tfor (int k = 0; k < innerDimension; k++) {\n\t\t\t\t\tsum += this.get(i, k) * other.get(k, j);\n\t\t\t\t}\n\t\t\t\tp[i][j] = sum;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(m, n, p, true);\n\t}", "public double[] getColumnPackedCopy() {\n double[] vals = new double[m*n];\n for (int i = 0; i < m; i++) {\n for (int j = 0; j < n; j++) {\n vals[i+j*m] = data[i][j];\n }\n }\n return vals;\n }", "public Matrix times(Matrix bmat){\r\n \tif(this.ncol!=bmat.nrow)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, bmat.ncol);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<bmat.ncol; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat.matrix[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}", "@Test\n @DependsOnMethod(\"testDimensionReduction\")\n public void testDimensionAugmentation() throws TransformException {\n transform = new ProjectiveTransform(Matrices.create(4, 3, new double[] {\n 0, 1, 0,\n 1, 0, 0,\n 0, 0, 0,\n 0, 0, 1}));\n\n assertInstanceOf(\"inverse\", CopyTransform.class, transform.inverse());\n verifyTransform(new double[] {2,3, 6,0, 2, Double.NaN},\n new double[] {3,2,0, 0,6,0, Double.NaN, 2, 0});\n }", "@Override\n public Matrix like(int rows, int columns) {\n return new PivotedMatrix(base.like(rows, columns));\n }", "public static BigDecimal[][] multiplyMatrices(BigDecimal[][] m1, BigDecimal[][] m2){\n\t\t\n\t\tint size = m1.length;\n\t\t\n\t\tBigDecimal[][] next = new BigDecimal[size][size];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tfor(int j = 0; j < size; j++){\n\t\t\t\tBigDecimal current = new BigDecimal(0);\n\t\t\t\tfor(int k = 0; k < size; k++)\n\t\t\t\t\tcurrent = current.add(m1[i][k].multiply(m2[k][j]));\n\n\t\t\t\tnext[i][j] = current;\n\t\t\t}\n\t\t}\n\t\treturn next;\n\t}", "private int[] transformHelper(double[][] tranformationMat, int[] rGB) {\n int[] rGBNew = new int[3];\n for (int i = 0; i < rGB.length; i++) {\n for (int j = 0; j < tranformationMat[0].length; j++) { // tranformationMat size\n rGBNew[i] += tranformationMat[i][j] * rGB[j];\n }\n }\n\n return rGBNew;\n }", "public static int[][] matrixToPowerTwo(int[][] adjMatrix) {\n\t\tint verticesNum = adjMatrix.length;\n\t\tint[][] multipliedMatrix = new int[verticesNum][verticesNum];\n\t\t\n\t\t// row\n\t\tfor (int i = 0; i < verticesNum; i++) {\n\t\t\t// column from second matrix\n\t\t\tfor (int j = 0; j < verticesNum; j++) {\n\t\t\t\t// row in second column\n\t\t\t\tint result = 0;\n\t\t\t\t\n\t\t\t\tfor (int k = 0; k < verticesNum; k++) {\n\t\t\t\t\tint num1 = adjMatrix[i][k];\n\t\t\t\t\tint num2 = adjMatrix[k][j];\n\t\t\t\t\tresult += num1 * num2;\n//\t\t\t\tSystem.out.print(num1 + \" * \" + num2 + \" + \");\n\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n\t\t\t\tmultipliedMatrix[i][j] = result;\n\t\t\t}\n\t\t}\n\t\t\n//\t\tfor (int i = 0; i < verticesNum; i++) {\n//\t\t\tfor (int j = 0; j < multipliedMatrix.length; j++) {\n//\t\t\t\tSystem.out.print(multipliedMatrix[i][j]);\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\t\t\n\t\treturn multipliedMatrix;\n\t}", "Matrix transpose(){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n // if(!itRow[i].isEmpty()){\n itRow.moveFront();\n // itRow[i].moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(c.column, i, c.value);\n itRow.moveNext();\n }\n }\n return newM;\n }", "public static void multiply(int[][] matrix1, int[][] matrix2) {\n\t\t int matrix1row = matrix1.length;\r\n\t\t int matrix1column = matrix1[0].length;//same as rows in B\r\n\t\t int matrix2column = matrix2[0].length;\r\n\t\t int[][] matrix3 = new int[matrix1row][matrix2column];\r\n\t\t for (int i = 0; i < matrix1row; i++) {//outer loop refers to row position\r\n\t\t for (int j = 0; j < matrix2column; j++) {//refers to column position\r\n\t\t for (int k = 0; k < matrix1column; k++) {\r\n\t\t \t //adds the products of row*column elements until the row/column is complete\r\n\t\t \t //updates to next row/column\r\n\t\t matrix3[i][j] = matrix3[i][j] + matrix1[i][k] * matrix2[k][j];\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t print(matrix3);\r\n\t\t }", "public double[][] forwardElim()\n\t{\n\t\tint pivR = 0;\n\t\tfor(int h = 0; h < cols && pivR < rows; h++) //for each col of A\n\t\t{\n\t\t\tif(rowSwap(pivR, h))\n\t\t\t{\n\t\t\t\tfor(int i = pivR+1; i < rows; i++) //for each row below pivot\n\t\t\t\t{\t\t\n\t\t\t\t\tdouble L = (A[i][h])/(A[pivR][h]); //sets the (+) L-factor\n\t\t\t\t\tfor(int j = h; j < cols; j++) //work on elmts of (A's) row\n\t\t\t\t\t{\n\t\t\t\t\t\tA[i][j] = A[i][j] - ((A[pivR][j])*L); //mutates matrix elmt\n\t\t\t\t\t}\n\t\t\t\t\tA[i][cols] = A[i][cols] - ((A[pivR][cols])*L); //vector b (in col n)\n\t\t\t\t}\n\t\t\t\tpivR++;\n\t\t\t}\n\n\t\t}\n\n\t\treturn A;\n\t}", "public Matrix getInversematrixS()\n {\n // Build alpha * I\n double [][] alphainvmatrix;\n alphainvmatrix = new double[x + 1][x + 1];\n for(int i = 0; i < x + 1; i++)\n {\n alphainvmatrix[i][i] = alpha;\n\n }\n Matrix alphamatrixnew = new Matrix(alphainvmatrix);\n\n // calculate summation\n Matrix sum = new Matrix(x + 1, 1);\n int i = 1;\n while (i <= arraylistofprices.size() - 1) {\n phimatrix(i);\n\n sum.plusEquals(phi);\n\n i++;\n }\n Matrix summation = sum.times(phiT);\n summation.timesEquals(beta); \n\n // alpha * I + beta * sum\n Matrix sInv = alphamatrixnew.plus(summation);\n return sInv;\n }", "public static void testMulRec() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.multiplyRec(m1, m2, 0);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }", "private int[] productExceptSelfByMath(int[] nums){\n int len = nums.length;\n int[] ret = new int[len]; // not count as extra space\n\n int[] preMul = new int[len];\n int[] sufMul = new int[len];\n\n // head and tail\n preMul[0] = 1;\n sufMul[len - 1] = 1;\n // prefix multiply\n for(int i = 1; i < len; i++){\n preMul[i] = preMul[i - 1] * nums[i - 1];\n }\n // suffix multiply\n for(int i = len -2; i >= 0; i--){\n sufMul[i] = sufMul[i + 1] * nums[i + 1];\n }\n // cross\n for(int i = 0; i < len; i++){\n ret[i] = preMul[i] * sufMul[i];\n }\n\n return ret;\n }", "private void transpose() {\n\n // Make a copy of current orientation of rgb and energy arrays.\n int[][] rgbCopy = new int[width][height];\n for (int col = 0; col < width; col++) {\n rgbCopy[col] = rgb[col].clone();\n }\n double[][] energyCopy = new double[width][height];\n for (int col = 0; col < width; col++) {\n energyCopy[col] = energy[col].clone();\n }\n\n // Swap axes.\n int temp = width;\n width = height;\n height = temp;\n\n // Re-init arrays with swapped dimensions.\n rgb = new int[width][height];\n energy = new double[width][height];\n\n // Swap individual pixels in rgb and energy arrays.\n for (int col = 0; col < width; col++) {\n for (int row = 0; row < height; row++) {\n rgb[col][row] = rgbCopy[row][col];\n energy[col][row] = energyCopy[row][col];\n }\n }\n }", "public Matrix times(Matrix B) {\n Matrix A = this;\n if (A.columnCount != B.rowCount) throw new RuntimeException(\"Illegal matrix dimensions.\");\n Matrix C = new Matrix(A.rowCount, B.columnCount);\n for (int i = 0; i < C.rowCount; i++)\n for (int j = 0; j < C.columnCount; j++)\n for (int k = 0; k < A.columnCount; k++)\n C.data[i][j] += (A.data[i][k] * B.data[k][j]);\n return C;\n }", "public void rightMultiply(Matrix other){\n \tdouble[][] temp = new double[4][4];\n\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n \t\t array[i][j] += other.array[i][k] * temp[k][j];\n\t\t}\n\t }\n\t}\n }", "public Matrix times(double[][] bmat){\r\n \t int nr=bmat.length;\r\n \tint nc=bmat[0].length;\r\n\r\n \tif(this.ncol!=nr)throw new IllegalArgumentException(\"Nonconformable matrices\");\r\n\r\n \tMatrix cmat = new Matrix(this.nrow, nc);\r\n \tdouble [][] carray = cmat.getArrayReference();\r\n \tdouble sum = 0.0D;\r\n\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<nc; j++){\r\n \t\tsum=0.0D;\r\n \t\tfor(int k=0; k<this.ncol; k++){\r\n \t\t\tsum += this.matrix[i][k]*bmat[k][j];\r\n \t\t}\r\n \t\tcarray[i][j]=sum;\r\n \t\t}\r\n \t}\r\n \treturn cmat;\r\n \t}", "Matrix timesT( Matrix b )\n {\n return new Matrix( b.timesV(x), b.timesV(y), b.timesV(z) );\n }", "public Matrix opposite(){\r\n \tMatrix opp = Matrix.copy(this);\r\n \tfor(int i=0; i<this.nrow; i++){\r\n \t\tfor(int j=0; j<this.ncol; j++){\r\n \t\topp.matrix[i][j]=-this.matrix[i][j];\r\n \t\t}\r\n \t}\r\n \treturn opp;\r\n \t}", "@Test\n public void testGetMatrixColumn() {\n final Matrix33d m = getMatrix();\n final Vector3d expected = V2;\n final Vector3d v = new Vector3d();\n m.getMatrixColumn(v, 1);\n assertEquals(v.toString(), expected.toString());\n }", "public Matrix multiplyOtherMatrixToFront(Matrix other) {\n Matrix output = Matrix(rows, other.columns);\n for (int a = 0; a < rows; a++)\n {\n for (int b = 0; b < other.columns; b++)\n {\n for (int k = 0; k < columns; k++)\n {\n output[a][b] = output[a][b] + output[a][k] * other.output[k][b];\n }\n }\n }\n return output;\n }", "Matrix InverseT()\n {\n Matrix ad = new Matrix( y.cross(z), z.cross(x), x.cross(y) );\n float inv_det = 1.0f / ( x.dot( ad.x ) );\n ad.timesEqual( inv_det );\n return ad;\n }", "public Matrix rowMultiply(int row, ComplexNumber weight) {\n\t\t// row *= weight\n\t\tMatrix m = copy();\n\t\tfor (int col = 0; col < m.N; col++) {\n\t\t\tm.ROWS[row][col] = weight.multiply(m.ROWS[row][col]);\n\t\t}\n\t\treturn m;\n\t}", "public Mat2 mult(Mat2 m) {\n\t\tdouble[][] newData = new double[rows][m.cols];\n\t\t//if(rows != m.cols) throw new IllegalArgumentException(\"cannot multiply a \" + rows + \" by \" + cols + \n\t\t\t//\t\" matrix and a \" + m.rows + \" by \" + m.cols + \" matrix\");\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<m.cols; j++) {\n\t\t\t\tdouble total = 0.0;\n\t\t\t\tfor(int c=0; c<cols; c++) {\n\t\t\t\t\ttotal += data[i][c] * m.data[c][j];\n\t\t\t\t}\n\t\t\t\tnewData[i][j] = total;\n\t\t\t}\n\t\t}\n\t\treturn new Mat2(newData);\n\t}", "public void multiplyTheCorners(CubieCube multiplier) {\n\n char[] cornerPerms = new char[cornerValues.length];\n char[] cornerOrientation = new char[cornerValues.length];\n\n for (int i = 0; i < cornerValues.length; i++) {\n\n cornerPerms[i] = cp[multiplier.cp[i]];\n\n char oriA = co[multiplier.cp[i]];\n char oriB = multiplier.co[i];\n char oriResult = 0;\n\n // check if the cube are regular or mirrored\n // regular * regular = regular\n if (oriA < 3 && oriB < 3) {\n oriResult = (char) (oriA + oriB);\n if (oriResult >= 3)\n oriResult -= 3;\n }\n\n //regular * mirrored = mirrored\n else if (oriA < 3 && oriB >= 3) {\n oriResult = (char) (oriA + oriB); ;\n if (oriResult >= 6)\n oriResult -= 3;\n }\n\n // mirrored* regular = mirrored\n else if (oriA >= 3 && oriB < 3) {\n oriResult = (char) ((oriA - oriB) & 0xff);\n if (oriResult < 3) {\n oriResult += 3;\n }\n }\n\n //mirrored * mirrored = regular\n else if (oriA >= 3 && oriB >= 3) {\n oriResult = (char) ((oriA - oriB) & 0xff);\n if (oriResult < 0)\n oriResult += 3;\n }\n\n cornerOrientation[i] = oriResult;\n }\n\n this.cp = cornerPerms;\n this.co = cornerOrientation;\n }", "public static Matrix3D times(Matrix3D A, Matrix3D B) {\n Matrix3D C = new Matrix3D();\n for (int i=0 ; i<=2 ; i++) { // loop over each row of A\n for (int j=0 ; j<=2 ; j++) { // loop over each column of B\n // Calculate the dot product of the ith row of A with the jth column of B:\n double v = 0;\n for (int k=0 ; k<=2 ; k++) { // loop over each item in the row/column\n v += A.d[i][k] * B.d[k][j];\n }\n C.set(i,j,v);\n }\n }\n return C;\n }", "private static int[][] crossFire(int[][] matrix, int hitRow, int hitCol, int hitWave) {\n for (int row = hitRow - hitWave; row <= hitRow + hitWave; row++)\n {\n if (isInMatrix(row, hitCol, matrix))\n {\n matrix[row][hitCol] = -1;\n }\n }\n\n // Mark destroyed part of the row\n for (int col = hitCol - hitWave; col <= hitCol + hitWave; col++)\n {\n if (isInMatrix(hitRow, col, matrix))\n {\n matrix[hitRow][col] = -1;\n }\n }\n\n // Remove destroyed cells\n for (int i = 0; i < matrix.length; i++)\n {\n // Remove destroyed cells if there is ones\n for (int j = 0; j < matrix[i].length; j++)\n {\n if (matrix[i][j] < 0)\n {\n matrix[i] = Arrays.stream(matrix[i]).filter(n -> n > 0).toArray();\n break;\n }\n }\n\n // Remove empty rows\n if (matrix[i].length < 1)\n {\n int[][] temp = new int[matrix.length-1][];\n int k=0;\n for (int j = 0; j < matrix.length; j++) {\n if (j!=i){\n temp[k++] = matrix[j];\n }\n }\n\n matrix = temp;\n i--;\n }\n }\n\n\n return matrix;\n\n }", "private int[] columnSum(int[][] matrix) {\n int[] result = new int[matrix.length];\n for(int i = 0; i < matrix.length; i++) {\n result[i] = 0;\n for(int j = 0; j < matrix[i].length; j++) {\n result[i] += matrix[i][j];\n }\n }\n return result;\n }", "public org.apache.spark.mllib.linalg.distributed.BlockMatrix transpose () { throw new RuntimeException(); }", "private static int[] montReduce(int[] n, int[] mod, int mlen, int inv) {\n int c=0;\n int len = mlen;\n int offset=0;\n\n do {\n int nEnd = n[n.length-1-offset];\n int carry = mulAdd(n, mod, offset, mlen, inv * nEnd);\n c += addOne(n, offset, mlen, carry);\n offset++;\n } while (--len > 0);\n\n while (c > 0)\n c += subN(n, mod, mlen);\n\n while (intArrayCmpToLen(n, mod, mlen) >= 0)\n subN(n, mod, mlen);\n\n return n;\n }", "public void transform() {\r\n\r\n\t\tint x, y, i;\r\n\t\tComplex[] row = new Complex[width];\r\n\t\tfor (x = 0; x < width; ++x)\r\n\t\t\trow[x] = new Complex();\r\n\t\tComplex[] column = new Complex[height];\r\n\t\tfor (y = 0; y < height; ++y)\r\n\t\t\tcolumn[y] = new Complex();\r\n\r\n\t\tint direction;\r\n\t\tif (spectral)\r\n\t\t\tdirection = -1; // inverse transform\r\n\t\telse\r\n\t\t\tdirection = 1; // forward transform\r\n\r\n\t\t// Perform FFT on each row\r\n\r\n\t\tfor (y = 0; y < height; ++y) {\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\trow[x].re = data[i].re;\r\n\t\t\t\trow[x].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(row, width);\r\n\t\t\tfft(row, width, log2w, direction);\r\n\t\t\tfor (i = y * width, x = 0; x < width; ++x, ++i) {\r\n\t\t\t\tdata[i].re = row[x].re;\r\n\t\t\t\tdata[i].im = row[x].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\t// Perform FFT on each column\r\n\r\n\t\tfor (x = 0; x < width; ++x) {\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tcolumn[y].re = data[i].re;\r\n\t\t\t\tcolumn[y].im = data[i].im;\r\n\t\t\t}\r\n\t\t\treorder(column, height);\r\n\t\t\tfft(column, height, log2h, direction);\r\n\t\t\tfor (i = x, y = 0; y < height; ++y, i += width) {\r\n\t\t\t\tdata[i].re = column[y].re;\r\n\t\t\t\tdata[i].im = column[y].im;\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\tif (spectral)\r\n\t\t\tspectral = false;\r\n\t\telse\r\n\t\t\tspectral = true;\r\n\r\n\t}", "Matrix sub(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] - m.data[i];\n }\n return matrix_to_return;\n }", "public void multiply(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] *= skalar;\r\n }\r\n }\r\n }", "@SuppressWarnings(\"UnnecessaryLocalVariable\")//Readability\n public Matrix multiply(Matrix b, BigInteger modulo) {\n if (nrOfCols != b.nrOfRows) {\n throw new MalformedMatrixException(\"Matrix with dimensions \" + nrOfRows + \"x\" + nrOfCols +\n \" cannot be multiplied with matrix with dimensions \" + b.nrOfRows + \"x\" + b.nrOfCols);\n }\n Matrix a = this;\n\n int m = a.nrOfRows;\n int p = b.nrOfCols;\n\n final BigInteger[][] result = new BigInteger[m][p];\n\n //Compute the resulting row, using a parallel stream to properly utilize multi-core CPU\n IntStream range = IntStream.range(0, m);\n if (concurrent) {\n range = range.parallel();\n }\n range.forEach(computeRowMultiplication(result, a, b, modulo));\n\n return new Matrix(result);\n }", "private void convoluteMatrix(){\n\t\tDoubleFFT_2D fft = new DoubleFFT_2D(CELL_SIDE_COUNT,CELL_SIDE_COUNT);\n\t\tdouble[][] convolutedDoubles = Complex.complexToDoubleArray2D(convolutedMatrix);\n\t\tfft.complexForward(convolutedDoubles);\n\t\tconvolutedMatrix = Complex.doubleToComplexArray2D(convolutedDoubles); //F(B C F^-1(Q)) Pg. 182 Lee[05]\n\t}", "public void leftMultiply(Matrix other){\n \t double[][] temp = new double[4][4];\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n\t\t array[i][j] += temp[i][k] * other.array[k][j];\n\t\t}\n\t }\n\t}\n }", "private DoubleMatrix invertCholesky(DoubleMatrix matrix) {\n int numOfRows = matrix.rows;\n double sum;\n int i, j, k;\n // ______ Compute inv(L) store in lower of A ______\n for (i = 0; i < numOfRows; ++i) {\n matrix.put(i, i, 1. / matrix.get(i, i));\n for (j = i + 1; j < numOfRows; ++j) {\n sum = 0.;\n for (k = i; k < j; ++k) {\n sum -= matrix.get(j, k) * matrix.get(k, i);\n }\n matrix.put(j, i, sum / matrix.get(j, j));\n }\n }\n // ______ Compute inv(A)=inv(LtL) store in lower of A ______\n for (i = 0; i < numOfRows; ++i) {\n for (j = i; j < numOfRows; ++j) {\n sum = 0.;\n for (k = j; k < numOfRows; ++k) {\n sum += matrix.get(k, i) * matrix.get(k, j); // transpose\n }\n matrix.put(j, i, sum);\n }\n }\n return matrix;\n }", "Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }", "private static int[][] sparseMatrixMultiplyBruteForce (int[][] A, int[][] B) {\n int[][] result = new int[A.length][B[0].length];\n\n for(int i = 0; i < result.length; i++) {\n for(int j = 0; j < result[0].length; j++) {\n int sum = 0;\n for(int k = 0; k < A[0].length; k++) {\n sum += A[i][k] * B[k][j];\n }\n result[i][j] = sum;\n }\n }\n return result;\n }" ]
[ "0.7453541", "0.70957005", "0.63741714", "0.60905653", "0.59556675", "0.57740825", "0.5770127", "0.57514215", "0.56105846", "0.55944324", "0.55874807", "0.5497398", "0.54732746", "0.5471367", "0.5461416", "0.5422489", "0.5392353", "0.53856426", "0.5355253", "0.5344152", "0.531805", "0.5303706", "0.52243435", "0.518794", "0.51812404", "0.51439756", "0.51347274", "0.5111635", "0.51006", "0.51000094", "0.5092336", "0.50921404", "0.5081188", "0.5074254", "0.50675297", "0.5054298", "0.5052646", "0.5048011", "0.5041635", "0.50143176", "0.5013577", "0.5008174", "0.49959558", "0.49944818", "0.49702764", "0.49590546", "0.4952285", "0.4947698", "0.4934638", "0.49314636", "0.4923658", "0.49203333", "0.49090782", "0.49047574", "0.49035275", "0.48979664", "0.48905423", "0.48790562", "0.4876069", "0.48734882", "0.4872478", "0.48640653", "0.48634288", "0.4860718", "0.4860168", "0.48553088", "0.48533574", "0.48417246", "0.48363417", "0.4831638", "0.4829582", "0.48282248", "0.4816663", "0.48133337", "0.48118535", "0.47993463", "0.47947082", "0.4789732", "0.4787053", "0.47864938", "0.4782177", "0.47695193", "0.47562692", "0.4755949", "0.47426525", "0.47401366", "0.47399917", "0.47324595", "0.47286227", "0.47231263", "0.47171634", "0.4714519", "0.47091255", "0.470822", "0.47060174", "0.47034606", "0.4698332", "0.46937633", "0.46928963", "0.46870977" ]
0.6634901
2
Helper method to multRow that implements Galois Multiplication in place of standard matrix multiplication.
private static int galoisMult(int a, int b) { int result = 0; for (int i=0; i<8; i++) { if((b&1) == 1) //low bit of b set result = result^a; boolean aHighSet = (a & 128) == 128; //8th bit of a set a <<= 1; assert (a&1) == 0; a &= 255; //getting rid of 9th bit assert ((a&256) != 256); if (aHighSet) a ^= (0x1b); b >>= 1; assert (b&128) != 128; //8 bit is zero } return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Matrix mult(Matrix M){\n if(this.getSize() != M.getSize()){\n throw new RuntimeException(\"Matrix\");\n\n } \n int newMatrixSize = this.getSize();\n Matrix newM = M.transpose();\n Matrix resultMatrix = new Matrix(newMatrixSize);\n double resultMatrix_Entry = 0;\n for(int i = 1; i <= newMatrixSize; i++){\n for(int j = 1; j<= newMatrixSize; j++){\n List itRow_A = this.rows[i - 1];\n List itRow_B = newM.rows[j-1];\n itRow_A.moveFront();\n itRow_B.moveFront();\n while((itRow_A.index() != -1) && (itRow_B.index() != -1)){\n Entry c_A = (Entry)itRow_A.get();\n Entry c_B = (Entry) itRow_B.get();\n if(c_A.column == c_B.column){\n resultMatrix_Entry += (c_A.value)*(c_B.value);\n itRow_A.moveNext();\n itRow_B.moveNext();\n\n } else if(c_A.column > c_B.column){\n itRow_B.moveNext();\n\n }else{\n itRow_A.moveNext();\n }\n\n }\n resultMatrix.changeEntry(i, j, resultMatrix_Entry);\n resultMatrix_Entry = 0;\n }\n }\n return resultMatrix;\n\n }", "Matrix scalarMult(double x){\n int newMatrixSize = this.getSize();\n Matrix newM = new Matrix(newMatrixSize);\n for(int i = 1; i <= newMatrixSize; i++){\n List itRow = rows[i - 1];\n itRow.moveFront();\n while(itRow.index() != -1){\n Entry c = (Entry)itRow.get();\n newM.changeEntry(i, c.column, (x*c.value));\n itRow.moveNext();\n }\n }\n\n return newM;\n }", "public Matrix rowMultiply(int row, Fraction weight) {\n\t\treturn rowMultiply(row, new ComplexNumber(weight));\n\t}", "public Matrix rowMultiply(int row, int weight) {\n\t\treturn rowMultiply(row, new ComplexNumber(new Fraction(weight)));\n\t}", "public Row3 smultiply(int i){\n\t\tRow3 tempRec = this.mat; //creates a temporary duplicate of the global record\n\t\tlong[][] tempMatA = new long[3][3]; //creates the matrix A as a 2D array\n\t\ttempMatA[0][0] = tempRec.r1.col1;\n\t\ttempMatA[0][1] = tempRec.r1.col2;\n\t\ttempMatA[0][2] = tempRec.r1.col3;\n\t\ttempMatA[1][0] = tempRec.r2.col1;\n\t\ttempMatA[1][1] = tempRec.r2.col2;\n\t\ttempMatA[1][2] = tempRec.r2.col3;\n\t\ttempMatA[2][0] = tempRec.r3.col1;\n\t\ttempMatA[2][1] = tempRec.r3.col2;\n\t\ttempMatA[2][2] = tempRec.r3.col3;\n\t\t\n\t\tlong[][] tempMat2 = new long[3][3]; //creates a 2D array of the same size as A\n\t\tlong[][] outMat = new long[3][3];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//after matrix multiplication is performed, the respective elements of the 2D array tempMatA are stored in\n\t\t//the temporary register tempRec2, which is then returned\n\t\tcolRow3 a1 = new colRow3(outMat[0][0], outMat[0][1], outMat[0][2]);\n\t\tcolRow3 b1 = new colRow3(outMat[1][0], outMat[1][1], outMat[1][2]);\n\t\tcolRow3 c1 = new colRow3(outMat[2][0], outMat[2][1], outMat[2][2]);\n\t\tRow3 tempRec2 = new Row3(a1, b1, c1);\n\t\treturn tempRec2;\n\t}", "Matrix mul(Matrix m){\n if(m.cols != this.cols || m.rows != this.rows) throw new RuntimeException(String.format(\"Wrong dimensions\"));\n Matrix matrix_to_return = new Matrix(m.rows, m.cols);\n for(int i=0; i<m.rows * m.cols; i++){\n matrix_to_return.data[i] = this.data[i] * m.data[i];\n }\n return matrix_to_return;\n }", "public Matrix rowMultiply(int row, ComplexNumber weight) {\n\t\t// row *= weight\n\t\tMatrix m = copy();\n\t\tfor (int col = 0; col < m.N; col++) {\n\t\t\tm.ROWS[row][col] = weight.multiply(m.ROWS[row][col]);\n\t\t}\n\t\treturn m;\n\t}", "public static void testMulRec() {\n\n try {\n\n Matrix m1 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m2 = new Matrix(new double[][]{\n {1, 2, 3, 4},\n {5, 6, 7, 8},\n {1, 2, 3, 4},\n {5, 6, 7, 8}});\n\n Matrix m3 = Matrix.multiplyRec(m1, m2, 0);\n\n System.out.println(m3);\n\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public T mult( T B ) {\n convertType.specify(this, B);\n\n // Look to see if there is a special function for handling this case\n if (this.mat.getType() != B.getType()) {\n Method m = findAlternative(\"mult\", mat, B.mat, convertType.commonType.getClassType());\n if (m != null) {\n T ret = wrapMatrix(convertType.commonType.create(1, 1));\n invoke(m, this.mat, B.mat, ret.mat);\n return ret;\n }\n }\n\n // Otherwise convert into a common matrix type if necessary\n T A = convertType.convert(this);\n B = convertType.convert(B);\n\n T ret = A.createMatrix(mat.getNumRows(), B.getMatrix().getNumCols(), A.getType());\n\n A.ops.mult(A.mat, B.mat, ret.mat);\n\n return ret;\n }", "private Vector<Double> multiplyRow(Vector<Double> row, double scalar) {\n row.replaceAll(n -> round(scalar * n, 8));\n return row;\n }", "public void multL(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = m.a11*a11 + m.a12*a21 + m.a13*a31;\n\t\tb12 = m.a11*a12 + m.a12*a22 + m.a13*a32;\n\t\tb13 = m.a11*a13 + m.a12*a23 + m.a13*a33;\n\t\tb14 = m.a11*a14 + m.a12*a24 + m.a13*a34 + m.a14;\n\t\tb21 = m.a21*a11 + m.a22*a21 + m.a23*a31;\n\t\tb22 = m.a21*a12 + m.a22*a22 + m.a23*a32;\n\t\tb23 = m.a21*a13 + m.a22*a23 + m.a23*a33;\n\t\tb24 = m.a21*a14 + m.a22*a24 + m.a23*a34 + m.a24;\n\n\t\tb31 = m.a31*a11 + m.a32*a21 + m.a33*a31;\n\t\tb32 = m.a31*a12 + m.a32*a22 + m.a33*a32;\n\t\tb33 = m.a31*a13 + m.a32*a23 + m.a33*a33;\n\t\tb34 = m.a31*a14 + m.a32*a24 + m.a33*a34 + m.a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}", "static public double[][] MatrixMult( double [][] A , double [][] B) {\n\t// A [NxK] * B[KxZ] = M[NxZ]\n\tif ( A.length == 0 || B.length == 0 || A[0].length != B.length ) {\n\t System.out.println( \"Matrix Mult Error, Invalid Input Matricies\" );\n\t return new double[1][1];\n\t}\n\tint Rows = A.length , Cols = B[0].length;\n\tdouble [][] M = new double[Rows][Cols];\n\tfor( int i = 0; i < Rows ; i++ ) {\n\t for( int j = 0; j < Cols ; j++ ) {\n\t\tM[i][j] = multRowByCol( A , B , i , j );\n\t }\n\t}\n\treturn M;\n }", "Matrix mul(double w){\n Matrix matrix_to_return = new Matrix(this.rows, this.cols);\n for(int i=0; i<this.rows * this.cols; i++){\n matrix_to_return.data[i] = this.data[i] * w;\n }\n return matrix_to_return;\n }", "public void matrixMultiply(Matrix m) {\n if (cols == m.getRows()) {\n ArrayList<double[]> result = newMatrix(rows, m.getCols());\n for (int i=0; i<rows; i++) {\n for (int k=0; k<m.getCols(); k++) {\n double sum = 0;\n for (int j=0; j<cols; j++) {\n sum += matrix.get(i)[j] * m.get(j, k);\n }\n result.get(i)[k] = sum;\n }\n }\n setMatrix(result, rows, m.getCols()); // Rows is that of original matrix, Columns is that of the multiplying matrix\n }\n else {\n throw new MatrixMultiplicationDimensionException();\n }\n }", "public Mat2 mult(Mat2 m) {\n\t\tdouble[][] newData = new double[rows][m.cols];\n\t\t//if(rows != m.cols) throw new IllegalArgumentException(\"cannot multiply a \" + rows + \" by \" + cols + \n\t\t\t//\t\" matrix and a \" + m.rows + \" by \" + m.cols + \" matrix\");\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<m.cols; j++) {\n\t\t\t\tdouble total = 0.0;\n\t\t\t\tfor(int c=0; c<cols; c++) {\n\t\t\t\t\ttotal += data[i][c] * m.data[c][j];\n\t\t\t\t}\n\t\t\t\tnewData[i][j] = total;\n\t\t\t}\n\t\t}\n\t\treturn new Mat2(newData);\n\t}", "public static Matrix rowMultiplyE(int row, ComplexNumber weight, int m) {\n\t\treturn identity(m).rowMultiply(row, weight);\n\t}", "private static int[] multRow(int[] column)\n\t{\n\t\tint[] result = new int[column.length];\n\t\t\n\t\tfor(int row=0; row<multCon.length; row++)\n\t\t\tfor(int col=0; col<multCon[row].length; col++)\n\t\t\t\tresult[row] ^= galoisMult(multCon[row][col],column[col]);\n\t\t\n\t\treturn result;\n\t}", "public T elementMult( T b ) {\n convertType.specify(this, b);\n T A = convertType.convert(this);\n b = convertType.convert(b);\n\n T c = A.createLike();\n A.ops.elementMult(A.mat, b.mat, c.mat);\n return c;\n }", "public Matrix mult(Matrix MatrixB) {\n\t\tDouble[][] newValue = new Double[row][MatrixB.col()];\r\n\t\tVector[] MatBcol = MatrixB.getCol();\r\n\t\t\r\n\r\n\t\tfor (int x = 0; x < row; x++) {\r\n\t\t\tfor (int y = 0; y < MatrixB.col(); y++) {\r\n\t\t\t\tVector rowVecI = rowVec[x];\r\n\t\t\t\tVector colVecI = MatBcol[y];\r\n\t\t\t\tnewValue[x][y] = rowVecI.DotP(colVecI);\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn new Matrix(newValue);\r\n\t}", "@SuppressWarnings(\"UnnecessaryLocalVariable\")//Readability\n public Matrix multiply(Matrix b, BigInteger modulo) {\n if (nrOfCols != b.nrOfRows) {\n throw new MalformedMatrixException(\"Matrix with dimensions \" + nrOfRows + \"x\" + nrOfCols +\n \" cannot be multiplied with matrix with dimensions \" + b.nrOfRows + \"x\" + b.nrOfCols);\n }\n Matrix a = this;\n\n int m = a.nrOfRows;\n int p = b.nrOfCols;\n\n final BigInteger[][] result = new BigInteger[m][p];\n\n //Compute the resulting row, using a parallel stream to properly utilize multi-core CPU\n IntStream range = IntStream.range(0, m);\n if (concurrent) {\n range = range.parallel();\n }\n range.forEach(computeRowMultiplication(result, a, b, modulo));\n\n return new Matrix(result);\n }", "private Expr mult(Expr x) throws Err {\n if (x instanceof ExprUnary) {\n ExprUnary y=(ExprUnary)x;\n if (y.op==ExprUnary.Op.SOME) return ExprUnary.Op.SOMEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.LONE) return ExprUnary.Op.LONEOF.make(y.pos, y.sub);\n if (y.op==ExprUnary.Op.ONE) return ExprUnary.Op.ONEOF.make(y.pos, y.sub);\n }\n return x;\n }", "public void multiply(double skalar) {\r\n for (int i = 0; i < matrix.length; i++) {\r\n for (int j = 0; j < matrix[0].length; j++) {\r\n matrix[i][j] *= skalar;\r\n }\r\n }\r\n }", "private void mul() {\n\n\t}", "public void multR(TransformationMatrix m) {\n\t\tdouble b11, b12, b13, b14, b21, b22, b23, b24, b31, b32, b33, b34;\n\t\tb11 = a11*m.a11 + a12*m.a21 + a13*m.a31;\n\t\tb12 = a11*m.a12 + a12*m.a22 + a13*m.a32;\n\t\tb13 = a11*m.a13 + a12*m.a23 + a13*m.a33;\n\t\tb14 = a11*m.a14 + a12*m.a24 + a13*m.a34 + a14;\n\t\tb21 = a21*m.a11 + a22*m.a21 + a23*m.a31;\n\t\tb22 = a21*m.a12 + a22*m.a22 + a23*m.a32;\n\t\tb23 = a21*m.a13 + a22*m.a23 + a23*m.a33;\n\t\tb24 = a21*m.a14 + a22*m.a24 + a23*m.a34 + a24;\n\n\t\tb31 = a31*m.a11 + a32*m.a21 + a33*m.a31;\n\t\tb32 = a31*m.a12 + a32*m.a22 + a33*m.a32;\n\t\tb33 = a31*m.a13 + a32*m.a23 + a33*m.a33;\n\t\tb34 = a31*m.a14 + a32*m.a24 + a33*m.a34 + a34;\n\n\t\ta11 = b11; a12 = b12; a13 = b13; a14 = b14;\n\t\ta21 = b21; a22 = b22; a23 = b23; a24 = b24;\n\t\ta31 = b31; a32 = b32; a33 = b33; a34 = b34;\n\t}", "public Matrix multiply(Matrix b) {\n MultMatrix multCommand = new MultMatrix();\n Matrix result = multCommand.multiply(this, b);\n\n return result;\n }", "public long[][] smultiply(int i){\n\t\tint sl = this.mat.length; //jumps to method sideLength to obtain the side length n of the matrix A\n\t\t//the global record contains an array of columns, where each column is an array of row elements. i.e.\n\t\t//the record contains the transpose of matrix A, where every row in the record is a column in A\n\t\t//a temporary 2D array tempMatA, and is made equal to the transpose of A\n\t\tlong[][] tempMatA = transpose(this.mat);\n\t\tlong[][] tempMat2 = new long[sl][sl]; //creates a temporary 2D matrix of the same size as tempMatA\n\t\tlong[][] outMat = new long[sl][sl];\n\t\t\n\t\tif (i > 1){\n\t\t\t//see for loop explanation in class \"Matrix3x3flat\"+\n\t\t\tfor (int j = 1; j < i; j ++){ //loops until j == input variable i.\n\t\t\t\t//j == 1 because matrix multiplication will occur on the first loop, so if i == 2, tempMat2 == A^3, not A^2\n\t\t\t\tfor (int a = 0; a < 3; a++){ //loops until a == side length of A\n\t\t\t\t\tfor (int b = 0; b < 3; b++){ //loops until b == side length of A\n\t\t\t\t\t\tfor (int c = 0; c < 3; c++){ //loops until c == side length of A\n\t\t\t\t\t\t\ttempMat2[a][b] = tempMat2[a][b] + (tempMatA[a][c] * tempMatA[c][b]);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t//returns tempMat2 as output matrix\n\t\t\toutMat = copy(tempMat2, outMat);\n\t\t}\n\t\t//returns A as output matrix, since A^1 = A\n\t\telse if (i == 1){\n\t\t\toutMat = copy(tempMatA, outMat);\n\t\t}\n\t\t//returns a 3x3 matrix filled with ones if i == 0\n\t\t//A^0 = 1\n\t\telse if (i == 0){\n\t\t\tfor (int m = 0; m < 3; m++){\n\t\t\t\tfor (int n = 0; n < 3; n++){\n\t\t\t\t\tif (m == n){\n\t\t\t\t\t\toutMat[m][n] = 1;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\toutMat[m][n] = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//return matrix must be re-transposed to return a the proper format of 2D array for the global array\n\t\toutMat = transpose(outMat);\n\t\treturn outMat;\n\t}", "private static BigInteger[][] multiply (BigInteger a[][], BigInteger b[][])\n {\n BigInteger x = (a[0][0].multiply(b[0][0])).add(a[0][1].multiply(b[1][0]));\n BigInteger y = (a[0][0].multiply(b[0][1])).add(a[0][1].multiply(b[1][1]));\n BigInteger z = (a[1][0].multiply(b[0][0])).add(a[1][1].multiply(b[1][0]));\n BigInteger w = (a[1][0].multiply(b[0][1])).add(a[1][1].multiply(b[1][1]));\n \n return new BigInteger[][]{{x, y},{z, w}};\n }", "public void enfoncerMult() {\n\t\ttry {\n\t\t\tthis.op = new Mult();\n\t\t\tif (!raz) {\n\t\t\t\tthis.pile.push(valC);\n\t\t\t}\n\t\t\tint a = this.pile.pop(); int b = this.pile.pop();\n\t\t\tthis.valC = this.op.eval(b,a);\n\t\t\tthis.pile.push(this.valC);\n\t\t\tthis.raz = true;\n\t\t}\n\t\tcatch (EmptyStackException e) {\n\t\t\tSystem.out.println(\"Erreur de syntaxe : Saisir deux operandes avant de saisir un operateur\");\n\t\t}\n\t}", "public static Matrix product(Matrix m) {\n int rows_c = m.rows(), cols_c = m.cols();\n Matrix d;\n if (rows_c == 1) {\n return m;\n } else {\n d = MatrixFactory.getMatrix(1, cols_c, m);\n for (int col = 1; col <= cols_c; col++) {\n double prodCol = 1D;\n for (int row = 1; row <= rows_c; row++) {\n prodCol = prodCol * m.get(row, col);\n }\n d.set(1, col, prodCol);\n }\n }\n return d;\n }", "public void mul_(JType value) {\n TH.THTensor_(mul)(this, this, value);\n }", "public Matrix multiply(BigInteger c, BigInteger modulo) {\n Stream<BigInteger[]> stream = Arrays.stream(inner);\n if (concurrent) {\n stream = stream.parallel();\n }\n\n BigInteger[][] res = stream.map(r -> rowMultiplyConstant(r, c, modulo)).toArray(BigInteger[][]::new);\n\n return new Matrix(res);\n }", "public void multiply() {\n\t\t\n\t}", "@Test\n\tpublic void testMultiply() {\n\t\tdouble epsilon = 0.0000000001;\n\n\t\tdouble[][] values2 = {{1.1, 1.2, 1.3}, {2.1, 2.2, 2.3}};\n\t\tMatrix m2 = new Matrix(values2);\n\n\t\tdouble[][] expectedValues = {{3.73, 3.96, 4.19}, {9.67, 10.24, 10.81}, {-2.07, -2.24, -2.41}};\n\t\tMatrix expected = new Matrix(expectedValues);\n\n\t\tMatrix product = m1.multiply(m2);\n\n\t\tassertEquals(3, product.getRowCount(), \"Product have unexpected number of rows.\");\n\t\tassertEquals(3, product.getColCount(), \"Product have unexpected number of columns.\");\n\n\t\tfor (int i = 0; i < product.getRowCount(); i++) {\n\t\t\tfor (int j = 0; j < product.getColCount(); j++) {\n\t\t\t\tassertTrue(Math.abs(product.get(i, j) - expected.get(i, j)) < epsilon,\n\t\t\t\t\t\"Unexpected value on row \" + i + \" column \" + j + \".\");\n\t\t\t}\n\t\t}\n\t}", "public double[] mult(double[] vector) {\n\t\tif(this.cols != vector.length) return null;\n\t\tdouble[] result = new double[this.rows];\n\t\tfor(int i=0; i<this.rows; i++) {\n\t\t\tfor(int j=0; j<this.cols; j++) {\n\t\t\t\tresult[i] += data[i][j] * vector[j];\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public abstract Vector4fc mul(IMatrix4x3f mat);", "public final void mul() {\n\t\tif (size > 1) {\n\n\t\t\tdouble topMostValue = pop();\n\t\t\tdouble secondTopMostValue = pop();\n\t\t\tpush(secondTopMostValue * topMostValue);\n\t\t}\n\t}", "public static void mult(TransformationMatrix l, TransformationMatrix r, TransformationMatrix m) {\n\t\tm.a11 = l.a11*r.a11 + l.a12*r.a21 + l.a13*r.a31;\n\t\tm.a12 = l.a11*r.a12 + l.a12*r.a22 + l.a13*r.a32;\n\t\tm.a13 = l.a11*r.a13 + l.a12*r.a23 + l.a13*r.a33;\n\t\tm.a14 = l.a11*r.a14 + l.a12*r.a24 + l.a13*r.a34 + l.a14;\n\t\tm.a21 = l.a21*r.a11 + l.a22*r.a21 + l.a23*r.a31;\n\t\tm.a22 = l.a21*r.a12 + l.a22*r.a22 + l.a23*r.a32;\n\t\tm.a23 = l.a21*r.a13 + l.a22*r.a23 + l.a23*r.a33;\n\t\tm.a24 = l.a21*r.a14 + l.a22*r.a24 + l.a23*r.a34 + l.a24;\n\t\tm.a31 = l.a31*r.a11 + l.a32*r.a21 + l.a33*r.a31;\n\t\tm.a32 = l.a31*r.a12 + l.a32*r.a22 + l.a33*r.a32;\n\t\tm.a33 = l.a31*r.a13 + l.a32*r.a23 + l.a33*r.a33;\n\t\tm.a34 = l.a31*r.a14 + l.a32*r.a24 + l.a33*r.a34 + l.a34;\n\t}", "public abstract Vector4fc mul(IMatrix4f mat);", "public Mat2 mult(double s) {\n\t\tdouble[][] newData = new double[rows][cols];\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<cols; j++) {\n\t\t\t\tnewData[i][j] = data[i][j] * s;\n\t\t\t}\n\t\t}\n\t\treturn new Mat2(newData);\n\t}", "public JTensor mul(JType value) {\n JTensor r = new JTensor();\n TH.THTensor_(mul)(r, this, value);\n return r;\n }", "@Override\n\tpublic int mult(int val1, int val2) {\n\t\treturn val1 * val2;\n\t}", "public void multiply()\r\n {\r\n resultDoubles = Operations.multiply(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "public static void multiplyMatrixes( double[][] m1, double[][] m2, double[][] result) {\n result[0][0] = m1[0][0]*m2[0][0] + m1[0][1]*m2[1][0] + m1[0][2]*m2[2][0];\n result[0][1] = m1[0][0]*m2[0][1] + m1[0][1]*m2[1][1] + m1[0][2]*m2[2][1];\n result[0][2] = m1[0][0]*m2[0][2] + m1[0][1]*m2[1][2] + m1[0][2]*m2[2][2];\n\n result[1][0] = m1[1][0]*m2[0][0] + m1[1][1]*m2[1][0] + m1[1][2]*m2[2][0];\n result[1][1] = m1[1][0]*m2[0][1] + m1[1][1]*m2[1][1] + m1[1][2]*m2[2][1];\n result[1][2] = m1[1][0]*m2[0][2] + m1[1][1]*m2[1][2] + m1[1][2]*m2[2][2];\n\n result[2][0] = m1[2][0]*m2[0][0] + m1[2][1]*m2[1][0] + +m1[2][2]*m2[2][0];\n result[2][1] = m1[2][0]*m2[0][1] + m1[2][1]*m2[1][1] + +m1[2][2]*m2[2][1];\n result[2][2] = m1[2][0]*m2[0][2] + m1[2][1]*m2[1][2] + +m1[2][2]*m2[2][2];\n }", "private RealMatrix scalarMultiplication(RealMatrix matrix1, RealMatrix matrix2) {\n\t\tdouble a = matrix1.getEntry(0, 0);\n\t\tdouble b = matrix1.getEntry(1, 0);\n\t\tdouble c = matrix1.getEntry(2, 0);\n\t\tdouble d = matrix1.getEntry(3, 0);\n\t\t\n\t\tdouble[][] result = new double[matrix2.getRowDimension()][matrix2.getColumnDimension()];\n\t\t\n\t\tfor (int i=0; i < matrix2.getRowDimension(); i++) {\n\t\t\tfor (int j=0; j < matrix2.getColumnDimension(); j++) {\n\t\t\t\tif (i == 0) result[i][j] = a * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 1) result[i][j] = b * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 2) result[i][j] = c * matrix2.getEntry(i, j);\n\t\t\t\tif (i == 3) result[i][j] = d * matrix2.getEntry(i, j);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn MatrixUtils.createRealMatrix(result);\n\t}", "public Matrix multiply(int i) {\n\t\treturn multiply(new Fraction(i));\n\t}", "public void multiply(double val) {\n for (int i = 0; i < numRows; i++) {\n for (int j = 0; j < numCols; j++) {\n data[i][j] = data[i][j] * val;\n }\n }\n }", "public long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);", "public static Transform mult(Transform t1, Transform t2) {\n\t\treturn transpose(t1.a * t2.a + t1.c * t2.b, t1.a * t2.c + t1.c * t2.d, t1.a * t2.tx + t1.c * t2.ty + t1.tx,\n\t\t\t\t\t\t t1.b * t2.a + t1.d * t2.b, t1.b * t2.c + t1.d * t2.d, t1.b * t2.tx + t1.d * t2.ty + t1.ty);\n\t}", "public static int[][] multiply(int[][] x,int[][] y){\n int[][] result = new int[x.length][x.length];\n int[] tempRow = new int[x.length];\n int[] tempCol = new int[x.length];\n for (int i = 0; i < x.length; i++) {\n for (int j = 0; j < x.length; j++) {\n //make 2 array then multiple respective number and add them up\n for (int k = 0; k < x.length; k++) {\n tempRow[k] = x[i][k];\n }\n for (int k = 0; k < x.length; k++) {\n tempCol[k] = y[k][j];\n }\n for (int k = 0; k < x.length; k++) {\n result[i][j] += tempRow[k]*tempCol[k];\n }\n }\n }\n return result;\n }", "public Matrix mult (Matrix otherMatrix) {\n Matrix resultMatrix = new Matrix(nRows, otherMatrix.nColumns);\n\n ExecutorService executor = Executors.newFixedThreadPool(16);\n\n IntStream.range(0, nRows).forEach(rowIndex -> {\n executor.execute(() -> {\n IntStream.range(0, otherMatrix.nColumns).forEach(otherMatrixColIndex -> {\n double sum = IntStream.range(0, this.nColumns)\n .mapToDouble(colIndex -> this.data[rowIndex][colIndex] * otherMatrix.data[colIndex][otherMatrixColIndex])\n .sum();\n\n resultMatrix.setValue(rowIndex, otherMatrixColIndex, sum);\n });\n });\n });\n\n executor.shutdown();\n\n try {\n if (executor.awaitTermination(60, TimeUnit.MINUTES)){\n return resultMatrix;\n } else {\n System.out.println(\"Could not finish matrix multiplication\");\n }\n } catch (InterruptedException e) {\n System.out.println(\"Could not finish matrix multiplication, thread interrupted.\");\n }\n\n return null;\n }", "@Override\r\n\tpublic void mul(int x, int y) {\n\t\t\r\n\t}", "@Override\r\n\tpublic int mul() {\n\t\treturn 0;\r\n\t}", "public static @NotNull Matrix mult(@NotNull Matrix matrA, @NotNull Matrix matrB) {\n final int compatibleValue = matrA.getColumnCount();\n if (compatibleValue != matrB.getRowCount()) {\n throw new IllegalArgumentException(\n \"Error @ MatrixMultiplication.mult() :: incompatible matrix matrA.columns != matrB.rows\");\n }\n\n final int rowCount = matrA.getRowCount();\n final int colCount = matrB.getColumnCount();\n final Matrix.Builder result = new Matrix.Builder(rowCount, colCount);\n for (int i = 0; i < rowCount; i++) {\n for (int j = 0; j < colCount; j++) {\n int val = 0;\n for (int k = 0; k < compatibleValue; k++) {\n val += matrA.get(i, k) * matrB.get(k, j);\n }\n result.set(i, j, val);\n }\n }\n\n return result.build();\n }", "public Transformation mult(Transformation a) {\n\t\tTransformation result = new Transformation();\n\t\tsuper.mult(a, result);\n\t\treturn result;\n\t}", "public R3Mult(int rdIndex, int rsIndex, int id) {\n\n }", "@Override\n\tpublic IMatrix nMultiply(IMatrix other) {\n\n\t\tif (this.getColsCount() != other.getRowsCount()) {\n\t\t\tthrow new IncompatibleOperandException(\n\t\t\t\t\t\"For matrix multiplication first matrix must have same number of columns as number of rows of the other matrix!\");\n\t\t}\n\t\tint m = this.getRowsCount();\n\t\tint n = other.getColsCount();\n\t\tint innerDimension = this.getColsCount();\n\t\tdouble[][] p = new double[m][n];\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\tdouble sum = 0;\n\t\t\t\tfor (int k = 0; k < innerDimension; k++) {\n\t\t\t\t\tsum += this.get(i, k) * other.get(k, j);\n\t\t\t\t}\n\t\t\t\tp[i][j] = sum;\n\t\t\t}\n\t\t}\n\t\treturn new Matrix(m, n, p, true);\n\t}", "public static long[][] multiply(long F[][], long M[][]){\n long x = F[0][0]*M[0][0] + F[0][1]*M[1][0]; \n long y = F[0][0]*M[0][1] + F[0][1]*M[1][1]; \n long z = F[1][0]*M[0][0] + F[1][1]*M[1][0]; \n long w = F[1][0]*M[0][1] + F[1][1]*M[1][1]; \n\n return new long[][]{{x,y},{z,w}};\n }", "public abstract <M extends AbstractMatrix> M elementwiseProduct(M b);", "protected MatrixToken _multiply(MatrixToken rightArgument)\n\t\t\tthrows IllegalActionException {\n\t\tLongMatrixToken convertedArgument = (LongMatrixToken) rightArgument;\n\t\tlong[] A = _value;\n\t\tlong[] B = convertedArgument._getInternalLongArray();\n\t\tint m = _rowCount;\n\t\tint n = _columnCount;\n\t\tint p = convertedArgument.getColumnCount();\n\t\tlong[] newMatrix = new long[m * p];\n\t\tint in = 0;\n\t\tint ta = 0;\n\n\t\tfor (int i = 0; i < m; i++) {\n\t\t\tta += n;\n\n\t\t\tfor (int j = 0; j < p; j++) {\n\t\t\t\tlong sum = 0;\n\t\t\t\tint ib = j;\n\n\t\t\t\tfor (int ia = i * n; ia < ta; ia++, ib += p) {\n\t\t\t\t\tsum += (A[ia] * B[ib]);\n\t\t\t\t}\n\n\t\t\t\tnewMatrix[in++] = sum;\n\t\t\t}\n\t\t}\n\n\t\treturn new LongMatrixToken(newMatrix, m, p, DO_NOT_COPY);\n\t}", "public void testMultiply() {\r\n System.out.println(\"Multiply\");\r\n Double [][] n = new Double[][]{{-3., -2.5, -1., 0., 1., 2., 3.4, 3.5, 1.1E100, -1.1E100}, \r\n {-3., 2.5, 0., 0., 1., -2., 3., 3.7, 1.1E100, 1.1E100}, \r\n {9., -6.25, 0., 0., 1., -4., 10.2, 12.95, 1.21E200, -1.21E200}};\r\n for(int i = 0; i < 10; i++){\r\n Double x = n[0][i];\r\n Double y = n[1][i];\r\n double expResult = n[2][i];\r\n double result = MathOp.Multiply(x, y);\r\n assertEquals(expResult, result, 0.001);\r\n }\r\n }", "@Override\n\tpublic void\n\tscalarMult( double value )\n\t{\n\t\tdata[0] *= value;\n\t\tdata[1] *= value;\n\t\tdata[2] *= value;\n\t}", "private static void multMatVect(double[] v, double[][] A, double m1,\n double[][] B, double m2) {\n double[] vv = new double[3];\n for(int i = 0; i < 3; i++)\n vv[i] = v[i];\n ArithmeticMod.matVecModM(A, vv, vv, m1);\n for(int i = 0; i < 3; i++)\n v[i] = vv[i];\n\n for(int i = 0; i < 3; i++)\n vv[i] = v[i + 3];\n ArithmeticMod.matVecModM(B, vv, vv, m2);\n for(int i = 0; i < 3; i++)\n v[i + 3] = vv[i];\n }", "public Matrix4f mult(Matrix4f r) {\r\n\t\tMatrix4f ret = new Matrix4f();\r\n\t\t\t\r\n\t\tfor(int i=0; i<4; i++) {\r\n\t\t\tfor(int j=0; j<4; j++) {\r\n\t\t\t\tret.m[i][j] = m[i][0] * r.m[0][j] +\r\n\t\t\t\t\t\t m[i][1] * r.m[1][j] +\r\n\t\t\t\t\t\t m[i][2] * r.m[2][j] +\r\n\t\t\t\t\t\t m[i][3] * r.m[3][j];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t\r\n\t\treturn ret;\r\n\t}", "public Matrix multiply(double scalar) {\n Matrix result = new Matrix(this.rows, this.cols);\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < this.cols; j++) {\n result.data[i][j] = this.data[i][j] * scalar;\n }\n }\n\n return result;\n }", "@Override\r\n\tpublic int multi(int x, int y) {\n\t\treturn x * y;\r\n\t}", "public Matrix4f GetMultipliedMatrix(Matrix4f m) {\n\n\t/*\n\tinputs--\n\t\n\tm :\n\t The input matrix m, instance of Matrix4f\n\t*/\n\t\n\t/*\n\toutputs--\n\t\n\tmul :\n\t The matrix this times m\n\t*/\n\t\n\t// Create new matrix to hold the results\n\tMatrix4f mul = new Matrix4f();\n\t\n\t// Double for loop based standard multiplication\n\tfor (int n_i = 0; n_i < 4; n_i ++) {\n\t \n\t for(int n_j = 0; n_j < 4 ; n_j ++) {\n\t\t\n\t\t// Set entry one by one\n\t\tfloat f_val = 0;\n\t\tfor (int n_k = 0; n_k < 4; n_k ++) {\n\t\t\n\t\t f_val += this.mat_f_m[n_i][n_k]*m.GetComponent(n_k, n_j);\n\t\t\n\t\t}\n\t\tmul.SetComponent(n_i, n_j, f_val);\n\t\t\n\t }\n\t\n\t}\n\t\n\t// Return the multiplied matrix\n\treturn mul;\n \n }", "public static void multiply(int[][] matrix1, int[][] matrix2) {\n\t\t int matrix1row = matrix1.length;\r\n\t\t int matrix1column = matrix1[0].length;//same as rows in B\r\n\t\t int matrix2column = matrix2[0].length;\r\n\t\t int[][] matrix3 = new int[matrix1row][matrix2column];\r\n\t\t for (int i = 0; i < matrix1row; i++) {//outer loop refers to row position\r\n\t\t for (int j = 0; j < matrix2column; j++) {//refers to column position\r\n\t\t for (int k = 0; k < matrix1column; k++) {\r\n\t\t \t //adds the products of row*column elements until the row/column is complete\r\n\t\t \t //updates to next row/column\r\n\t\t matrix3[i][j] = matrix3[i][j] + matrix1[i][k] * matrix2[k][j];\r\n\t\t }\r\n\t\t }\r\n\t\t }\r\n\t\t print(matrix3);\r\n\t\t }", "public static int[][] transposeMultMatrix(int initialValue,int rows,int columns)\n {\n int[][] ori = new int[rows][columns];\n int[][] orit = new int[columns][rows];\n int[][] res = new int[rows][rows];\n int i,j;\n for(i=0; i<rows; i++) {\n for(j=0; j<columns; j++) {\n ori[i][j] = initialValue;\n orit[j][i] = initialValue;\n initialValue++;\n }\n }\n int xi,yj;\n for(i=0; i<rows; i++) {\n for(j=0; j<rows; j++) {\n for(xi=0,yj=0; xi<columns&&yj<columns; xi++,yj++) {\n res[i][j] += ori[i][xi]*orit[yj][j];\n }\n }\n }\n return res;\n }", "private static void directProd(DMatrixRMaj a, DMatrixRMaj b, DMatrixRMaj c) {\n for (int i=0; i<5; ++i) {\n for (int j=0; j<5; ++j) {\n c.unsafe_set(i, j, a.unsafe_get(i, 0)*b.unsafe_get(j, 0));\n }\n }\n }", "public static BigDecimal[][] multiplyMatrices(BigDecimal[][] m1, BigDecimal[][] m2){\n\t\t\n\t\tint size = m1.length;\n\t\t\n\t\tBigDecimal[][] next = new BigDecimal[size][size];\n\t\tfor(int i = 0; i < size; i++){\n\t\t\tfor(int j = 0; j < size; j++){\n\t\t\t\tBigDecimal current = new BigDecimal(0);\n\t\t\t\tfor(int k = 0; k < size; k++)\n\t\t\t\t\tcurrent = current.add(m1[i][k].multiply(m2[k][j]));\n\n\t\t\t\tnext[i][j] = current;\n\t\t\t}\n\t\t}\n\t\treturn next;\n\t}", "public T mul(T first, T second);", "public interface IMatrixMultiplicator {\n\n\t/**\n\t * Multiplies two matrixes and returns the result in a new matrix \n\t * \n\t * @param matrixA first matrix\n\t * @param matrixB second matrix \n\t * @return result of the multiplication\n\t */\n\tpublic long multiplyMatrix(final Matrix matrixA, final Matrix matrixB, final Matrix res);\n\t \n\t\n}", "public void multiply(CubieCube multiplier) {\n multiplyTheCorners(multiplier);\n multiplyTheEdges(multiplier);\n }", "abstract void mulS();", "public Matrix multiply(ComplexNumber cn) {\n\t\tMatrix a = copy();\n\t\tfor (int row = 0; row < a.M; row++) {\n\t\t\tfor (int col = 0; col < a.N; col++) {\n\t\t\t\ta.ROWS[row][col] = a.ROWS[row][col].multiply(cn);\n\t\t\t}\n\t\t}\n\t\treturn a;\n\t}", "public void mult(Mat2 m, Mat2 dest) {\n\t\tfor(int i=0; i<rows; i++) {\n\t\t\tfor(int j=0; j<m.cols; j++) {\n\t\t\t\tdouble total = 0.0f;\n\t\t\t\tfor(int c=0; c<cols; c++) {\n\t\t\t\t\ttotal += data[i][c] * m.data[c][j];\n\t\t\t\t}\n\t\t\t\tdest.set(i, j, total);\n\t\t\t}\n\t\t}\n\t}", "public void scalarMultiply(double s) {\n for (int i=0; i<rows; i++) {\n for (int j=0; j<cols; j++) {\n matrix.get(i)[j] *= s;\n }\n }\n }", "public static double[][] multiplyMatrices(double[][] firstMatrix, double[][] secondMatrix, int r1, int c1, int c2) {\r\n\t double[][] product = new double[r1][c2];\r\n\t for(int i = 0; i < r1; i++) {\r\n\t for (int j = 0; j < c2; j++) {\r\n\t for (int k = 0; k < c1; k++) {\r\n\t product[i][j] += firstMatrix[i][k] * secondMatrix[k][j];\r\n\t }\r\n\t }\r\n\t }\r\n\r\n\t return product;\r\n\t }", "public int mult()\r\n\t{\r\n\t\tint a=10;\r\n\t\tint b=20;\r\n\t\tint c = a*b;\r\n\t\treturn(c);\r\n\t}", "public static float[] multiply(float[] a, float[] b) {\n float[] tmp = new float[16];\n glMultMatrixf(FloatBuffer.wrap(a), FloatBuffer.wrap(b), FloatBuffer.wrap(tmp));\n return tmp;\n }", "private void multiplication()\n\t{\n\t\tFun = Function.MULTIPLY; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "public Matrix multiply(Matrix other) {\n if (this.cols != other.rows)\n throw new RuntimeException(\"Illegal matrix dimensions\");\n\n Matrix result = new Matrix(this.rows, other.cols); //Matrix full of zeros\n for (int i = 0; i < this.rows; i++) {\n for (int j = 0; j < other.cols; j++) {\n for (int k = 0; k < this.cols; k++) {\n result.data[i][j] += (this.data[i][k] * other.data[k][j]);\n }\n }\n }\n\n return result;\n }", "void scaleRow(Matrix m, int i, double k) {\r\n int j, n = m.cols;\r\n for (j=0; j<n; j++) {\r\n m.M[i][j] = k * m.M[i][j];\r\n }\r\n }", "public static Matrix multiply(Matrix first, Matrix second) {\n \n Matrix result = new Matrix(first.getRows(), first.getClumns());\n \n for (int row = 0; row < first.getRows(); row++) {\n for (int col = 0; col < first.getClumns(); col++) {\n result.matrix[row][col] = first.matrix[row][col] * second.matrix[row][col];\n }\n }\n \n return result;\n }", "public Mult(Expression left, Expression right) {\n super(left, right);\n }", "public Mult(Expression left, Expression right) {\n super(left, right);\n }", "@Override\r\n\tpublic int mul(int a,int b) {\n\t\treturn a*b;\r\n\t}", "Matrix sumRows(){\n Matrix matrix_to_return = new Matrix(1, this.cols);\n double[][] tmp = this.asArray();\n int k=0;\n for(int i=0; i<this.cols; i++){\n for(int j=0; j<this.rows; j++) {\n matrix_to_return.data[k] += tmp[j][i];\n }\n k++;\n }\n return matrix_to_return;\n }", "public void MatrixChainMultiply(int[] p) {\n n = p.length - 1;\t// how many matrices are in the chain\n m = new int[n + 1][n + 1];\t// overallocate m, so that we don't use index 0\n s = new int[n + 1][n + 1];\t// same for s\n matrixChainOrder(p);\t// run the dynamic-programming algorithm\n }", "IVec3 mult(IVec3 v);", "abstract int multiplication(int num1, int num2);", "public void mul() {\n //TODO: Fill in this method, then remove the RuntimeException\n throw new RuntimeException(\"RatPolyStack->mul() unimplemented!\\n\");\n }", "public DVec multiply(DVec arg0) {\n\t\tDVec vec = new DVec(arg0.rowCount());\n\t\tfor (int i = 0; i < rowCount(); i++)\n\t\t\tfor (int j = 0; j < columnCount(); j++)\n\t\t\t\tvec.set(i, get(i, j) * arg0.get(i));\n\t\treturn vec;\n\t}", "public BinMltLinExpr multiply(BinLinExpr expr) {\n\t\t\n\t\tBinMltLinExpr result = new BinMltLinExpr();\n\t\t\n\t\t// Multiply variables together\n\t\tfor (int i = 0; i < expr.vars.size(); i++) {\n\t\t\tfor (int j = 0; j < termVars.size(); j++) {\n\t\t\t\t\n\t\t\t\tdouble newCoeff = expr.coefficients.get(i) * coefficients.get(j);\n\t\t\t\tList<BinVar> newVars = new ArrayList<BinVar>();\n\t\t\t\tnewVars.add(expr.vars.get(i));\n\t\t\t\tnewVars.addAll(termVars.get(j));\n\t\t\t\t\n\t\t\t\tresult.addTerm(newCoeff, newVars);\n\t\t\t}\n\t\t}\n\n\t\t// Multiply variables with constants\n\t\tfor (int i = 0; i < termVars.size(); i++) {\n\t\t\tdouble newCoeff = coefficients.get(i) * expr.constant;\n\t\t\tresult.addTerm(newCoeff, termVars.get(i));\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < expr.vars.size(); i++) {\n\t\t\tdouble newCoeff = expr.coefficients.get(i) * constant;\n\t\t\tresult.addTerm(newCoeff, expr.vars.get(i));\n\t\t}\n\t\t\n\t\tresult.addConstant(constant*expr.constant);\n\t\t\n\t\treturn result;\n\t}", "public Matrix multiply(Matrix m2)\n\t{\n\t\tMatrix result = new Matrix(new double[matrix.length][matrix[0].length]);\n\t\tfor(int i = 0; i < matrix.length; i++)\n\t\t{\n\t\t\tfor(int j = 0; j < matrix.length; j++)\n\t\t\t{\n\t\t\t\tfor (int k = 0; k < matrix.length; k++)\n\t\t\t\t{\n\t\t\t\t\tresult.matrix[i][j] = result.matrix[i][j] + matrix[i][k] * m2.matrix[k][j];\n\t\t\t\t}\n\t\t\t}\t\n\t\t}\n\t\treturn result;\n\t}", "public Matrix3 multiplySelf(Matrix3 m)\n {\n Matrix3 temp = Matrix3.REUSABLE_STACK.pop().initZero();\n\n for (int r = 0; r < 3; r++)\n {\n for (int c = 0; c < 3; c++)\n {\n for (int k = 0; k < 3; k++)\n temp.set(c, r, temp.get(c, r) + this.m[k][r] * m.get(c, k));\n }\n }\n\n this.set(temp);\n Matrix3.REUSABLE_STACK.push(temp);\n\n return this;\n }", "public void leftMultiply(Matrix other){\n \t double[][] temp = new double[4][4];\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n\t\t array[i][j] += temp[i][k] * other.array[k][j];\n\t\t}\n\t }\n\t}\n }", "@Override\n\tpublic float multiplicar(float op1, float op2) {\n\t\treturn op1 * op2;\n\t}", "private static SbVec4f\nmultVecMatrix4(final SbMatrix m, final SbVec4f v)\n//\n////////////////////////////////////////////////////////////////////////\n{\n int i;\n final SbVec4f v2 = new SbVec4f();\n\n for (i = 0; i < 4; i++)\n v2.getValueRead()[i] = (v.getValueRead()[0] * m.getValue()[0][i] +\n v.getValueRead()[1] * m.getValue()[1][i] +\n v.getValueRead()[2] * m.getValue()[2][i] +\n v.getValueRead()[3] * m.getValue()[3][i]);\n\n return v2;\n}", "public void rightMultiply(Matrix other){\n \tdouble[][] temp = new double[4][4];\n\n //record copy of this matrix \n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\ttemp[i][j] = array[i][j];\n\t }\n\t}\n\t//user copy of matrix to left multiply while writing dot products into matrix values\n\tfor (int i = 0; i < 4; i++) {\n\t for (int j = 0; j < 4; j++) {\n\t\tarray[i][j] = 0;\n\t\tfor (int k = 0 ; k < 4 ; k++) {\n \t\t array[i][j] += other.array[i][k] * temp[k][j];\n\t\t}\n\t }\n\t}\n }", "Multiply createMultiply();" ]
[ "0.7068059", "0.683202", "0.66319424", "0.66204494", "0.64982766", "0.63961375", "0.6334744", "0.632876", "0.6307934", "0.62376755", "0.6207983", "0.6143112", "0.61420304", "0.6112865", "0.6061906", "0.6010405", "0.6002611", "0.59999096", "0.59781283", "0.59614384", "0.5929037", "0.59275866", "0.59202975", "0.5913441", "0.59125525", "0.59082466", "0.5888636", "0.58825356", "0.58762544", "0.58532226", "0.58265823", "0.5753912", "0.5729404", "0.57273257", "0.57257134", "0.57218325", "0.5694044", "0.56862783", "0.56586295", "0.563133", "0.56297475", "0.56244296", "0.5617073", "0.5603364", "0.56000894", "0.55992514", "0.55860955", "0.5573071", "0.5565012", "0.55621046", "0.55613446", "0.5559613", "0.5557584", "0.55561095", "0.5543932", "0.55367213", "0.5535725", "0.55313987", "0.55254394", "0.5513433", "0.55083585", "0.55058515", "0.5488993", "0.5475362", "0.54500496", "0.5438367", "0.5421122", "0.54171735", "0.5401577", "0.5398218", "0.53948563", "0.539442", "0.53933084", "0.53797215", "0.53782135", "0.53548074", "0.534995", "0.53285", "0.53089386", "0.5301753", "0.52956223", "0.52919316", "0.5287723", "0.52870655", "0.52843237", "0.52843237", "0.526584", "0.5233393", "0.5232183", "0.5229721", "0.52293783", "0.52271926", "0.5223247", "0.52150774", "0.52139", "0.5210688", "0.52066755", "0.5192601", "0.519153", "0.5191494", "0.5186215" ]
0.0
-1
Will attempt to get the natural of the player.
public static String getLocale(Player player) { Object ep = null; try { ep = getMethod("getHandle", player.getClass()).invoke(player, (Object[]) null); } catch (IllegalAccessException | IllegalArgumentException| InvocationTargetException e) { e.printStackTrace(); } Field f = null; try { f = ep.getClass().getDeclaredField("locale"); } catch (NoSuchFieldException | SecurityException e) { e.printStackTrace(); } f.setAccessible(true); String language = null; try { language = (String) f.get(ep); } catch (IllegalArgumentException | IllegalAccessException e) { e.printStackTrace(); } return language; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Player getPlayer() {\n return humanPlayer;\n }", "Player getPlayer();", "public ServerPlayer whoWon() {\r\n\t\tif (winner(CROSS)) {\r\n\t\t\treturn getP1();\r\n\t\t} else if (winner(NOUGHT)) {\r\n\t\t\treturn getP2();\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public Player getPlayer();", "public Player getPlayer();", "public static AiPersona getNeutralPersona(){\n for (AiPersona persona:AiList){\n if (persona.getName().equals(\"neutral\")){\n return persona;\n }\n }\n System.err.println(\"There is no neutral AI personality\");\n return null;\n }", "public Player getDefaultPlayer(){\n return jugPorDef;\n }", "public Player getHumanPlayer() {\n return humanPlayer;\n }", "public abstract Player getWinner();", "String getPlayer();", "public Player getWinner();", "public Player getLeadingPlayer() {\n\t\tif (this.getStones() > this.getOpponentKalaha().getStones()) {\n\t\t\treturn this.Owner;\n\t\t} else if (this.getStones() < this.getOpponentKalaha().getStones()) {\n\t\t\treturn this.Owner.getOpponent();\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public Player winner() {\n Player result = null;\n boolean humanResult = board.fiveInARow(humanPlayer.getPiece());\n boolean player2Result = board.fiveInARow(aiPlayer.getPiece());\n if(humanResult && player2Result) {\n result = new Player(\"Tie\", 'T');\n } else if (humanResult && !player2Result) {\n result = humanPlayer;\n } else if (!humanResult && player2Result) {\n result = aiPlayer;\n }\n return result;\n }", "Optional<Player> getHoldingPlayer();", "Player getCurrentPlayer();", "Player getCurrentPlayer();", "public Player getPlayer(String username) {\n for (Player p : players) {\n if (p.username.equals(username))\n return p;\n }\n return null;\n }", "@Override\n\tpublic String getPlayer() {\n\t\treturn null;\n\t}", "public abstract Player getOpponent();", "@Override\n public Player getWinningPlayer() {\n return wonGame ? currentPlayer : null;\n }", "public HumanPlayer getHuman(){\n\t\treturn ((HumanPlayer)players.get(0));\n\t}", "public Player getPlayer()\r\n {\r\n return player;\r\n }", "@Override\n\tpublic Player getPlayer() {\n\t\treturn null;\n\t}", "public Player getPlayer() { return player;}", "public Player lookForWinner(){\n\t\tfor(int i = 0; i < this.players.size(); i++){\n\t\t\tif(this.players.get(i).numCards() == 0)\n\t\t\t\treturn this.players.get(i);\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "public Player getPlayer() { return player; }", "Player currentPlayer();", "Player getDormantPlayer();", "public int getPlayer()\n {\n return this.player;\n }", "protected Player getPlayer() { return player; }", "public Player getPlayer() {\n return player;\n }", "@Override\n public Player getHumanPlayer() {\n return batMan.getHumanPlayer();\n }", "public String getPlayer() {\r\n return player;\r\n }", "public int getPlayer() {\r\n\t\treturn myPlayer;\r\n\t}", "@Nullable\r\n public AnimalTamer getFirstTrustedPlayer();", "public Image getNatural();", "public Player getPlayer() {\r\n return player;\r\n }", "protected Player getPlayer() {\n return getGame().getPlayers().get(0);\n }", "public Player getPlayer(){\n\t\treturn this.player;\n\t}", "public Player getPlayer() {\n return p;\n }", "public Player getPlayer(String username){\n return this.players.get(username);\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n return player;\n }", "public Player getPlayer() {\n\t\treturn this.player;\r\n\t}", "public Strider getPlayer() {\n return player;\n }", "public int getPlayer() {\r\n\t\treturn player;\r\n\t}", "public Player getPlayer() {\r\n\t\treturn player;\r\n\t}", "public String getPlayer() {\n return p;\n }", "private static Player getThroughWhomSendMessage() {\n\t\treturn Remain.getOnlinePlayers().isEmpty() ? null : Remain.getOnlinePlayers().iterator().next();\n\t}", "public Player getPlayer() {\n\t\treturn p;\n\t}", "public Player getPlayer() {\n\t\treturn this.player;\n\t}", "public Player getPlayer(String userName,ArrayList<Player> list) {\r\n\t\tIterator<Player> aa = list.iterator();\r\n\t\twhile (aa.hasNext()) {\r\n\t\t\tPlayer in = aa.next();\r\n\t\t\tif(in.getUserName().equals(userName)){\r\n\t\t\t\tif(in.getID().equals(\"AI\"))\r\n\t\t\t\t\treturn (NimAIPlayer)in;\r\n\t\t\t\telse\r\n\t\t\t\t\treturn (NimPlayer)in;\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\treturn null;\r\n\t\t}", "public StandardPlayer matchPlayer(String username) {\n\t\tStandardPlayer player = null;\n\n\t\tString usernameLower = username.toLowerCase();\n\n\t\tfor (StandardPlayer onlinePlayer : getOnlinePlayers()) {\n\t\t\tif (onlinePlayer.getDisplayName(false).toLowerCase().startsWith(usernameLower) ||\n\t\t\t\t\tonlinePlayer.getName().toLowerCase().startsWith(usernameLower)) {\n\t\t\t\t// Return a player with a display name that directly matches the query\n\t\t\t\tif (onlinePlayer.getDisplayName(false).equalsIgnoreCase(usernameLower) ||\n\t\t\t\t\t\tonlinePlayer.getName().equalsIgnoreCase(usernameLower)) {\n\t\t\t\t\treturn onlinePlayer;\n\t\t\t\t}\n\n\t\t\t\t// Otherwise find the shortest length player name that the query is a prefix to\n\t\t\t\tif (player == null || onlinePlayer.getDisplayName(false).length() < player.getDisplayName(false).length()) {\n\t\t\t\t\tplayer = onlinePlayer;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tif (player == null) {\n\t\t\tplayer = getStandardPlayer(username);\n\t\t\tif (!player.hasPlayedBefore()) {\n\t\t\t\tplayer = null;\n\t\t\t}\n\t\t}\n\n\t\treturn player;\n\t}", "public Player getAiPlayer() {\n return aiPlayer;\n }", "public Player getPlayer()\r\n\t{\r\n\t\treturn mPlayer;\r\n\t}", "public synchronized Player getPlayerIfNotFull() {\n if (player1 == null) {\n player1 = new Player(order, 'X');\n order++;\n nrOfPlayers++;\n return player1;\n } else if (player2 == null) {\n player2 = new Player(order, 'O');\n order = 0;\n nrOfPlayers++;\n started = true;\n return player2;\n }\n return null;\n }", "Player getSelectedPlayer();", "@Override\n\tpublic Player getRunningModePlayer(String username) {\n\t\treturn null;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public Player getPlayer() {\n\t\treturn player;\n\t}", "public int getPlayerNumber() {\n\t\tif(this.player == null) return 0;\n\t\telse return this.player.number;\n\t}", "public AIPlayer getAIPlayer(Player player) {\n AIObject aio = getAIObject(player.getId());\n return (aio instanceof AIPlayer) ? (AIPlayer) aio : null;\n }", "public Player getPlayer(){\r\n return player;\r\n }", "@Nullable\r\n public AnimalTamer getSecondTrustedPlayer();", "public Sprite getPlayer() {\n\t\treturn player;\n\t}", "public Player findPlayer(String p_PlayerName) {\n for (Player l_Player : d_PlayerList) {\n if (l_Player.getD_Name().equals(p_PlayerName))\n return l_Player;\n }\n if (d_NeutralPlayer.getD_Name().equals(p_PlayerName))\n return d_NeutralPlayer;\n return null;\n }", "public String Winner() {\r\n if(Main.player1.SuaVida()==0)\r\n return \"player2\";\r\n else\r\n return \"player1\";\r\n }", "public Player getOppositePlayer();", "public PlayerProfile getPlayer(P player){\n\n if(playerMap.containsKey(player)){\n //Player is safe to send\n return playerMap.get(player);\n } else {\n //Player isn't safe to send\n System.out.println(\"Tried to grab player \" + player.getName() + \"'s data, but it's not available\");\n return null;\n }\n }", "public Player getCurrentPlayer(){\n String playerId = getUser().get_playerId();\n\n Player player = null;\n\n try {\n player = getCurrentGame().getPlayer(playerId);\n } catch(InvalidGameException e) {\n e.printStackTrace();\n System.out.println(\"This is the real Error\");\n }\n\n return player;\n }", "public Player getCurrentPlayer(){\n return this.currentPlayer;\n }", "public Player getPlayer1(){\n return jugador1;\n }", "public AbstractGameObject getPlayer() {\n return this.player;\n }", "public int privousPlayer() {\n do {\n if (player != 0) {\n player --;\n } else {\n player = playersArray[playersArray.length - 1];\n }\n } while (playersArray[player] < 0);\n return player;\n }", "public Player getClientPlayer() {\n\t\treturn players.get(0);\n\t}", "public Player getOtherPlayer() {\n if (getCurrentPlayer().getNumber() == 1) {\n return joueur2;\n } else {\n return joueur1;\n }\n }", "public final Player getPlayer() {\n return player;\n }", "public PlayerEntity getPlayer() {\n return player;\n }", "public PlayerEntity getPlayer() {\n return player;\n }", "Player() {\r\n setPlayerType(\"HUMAN\");\r\n\t}", "protected Entity findPlayerToAttack()\n {\n EntityPlayer var1 = this.worldObj.getClosestVulnerablePlayerToEntity(this, 16.0D);\n return var1 != null && this.canEntityBeSeen(var1) ? var1 : null;\n }", "public Player getPlayer() {\n\t\t\treturn player;\n\t\t}", "@Override\r\n\tpublic Player getTheOwner() {\n\t\treturn null;\r\n\t}", "public Pokemon getPlayerPokemon()\r\n {\r\n return playerPokemon;\r\n }", "@Override\n public int getNextPlayer() {\n //TODO Implement this method\n if(isPlayerOne){\n return 0;\n }else {\n return 1;\n }\n }", "public Player getPlayer() {\n return me;\n }", "public PlayerID getPlayer(){\n\t\treturn this.player;\n\t}", "Player getPlayer(int playerNumber){\n return players.get(playerNumber);\n }", "public Player getLoser() {\n\t\treturn getLeader() == player1 ? player2 : player1;\n\t}", "private HumanGamePlayerOnKeyboard initializePlayer() {\n\t\tHumanGamePlayerOnKeyboard player = new HumanGamePlayerOnKeyboard();\n\t\tplayer.setPlayerName(HUMAN_PLAYER_NAME);\n\t\treturn player;\n\t}", "public Player getFirstPlayer() {\n return firstPlayer;\n }", "private String getFirstPlayer() {\n\t\treturn firstPlayer;\n\t}" ]
[ "0.6385302", "0.6317476", "0.62562615", "0.6233202", "0.6233202", "0.62277824", "0.6190337", "0.61809385", "0.61708313", "0.6163228", "0.61379915", "0.6027527", "0.5995562", "0.59613925", "0.5957731", "0.5957731", "0.5957179", "0.59389704", "0.59275436", "0.5916284", "0.5906715", "0.5903063", "0.58981305", "0.5891194", "0.587464", "0.5869688", "0.58639383", "0.5856443", "0.5849648", "0.5830013", "0.5820118", "0.5817845", "0.58005095", "0.5793897", "0.5791952", "0.57897836", "0.57876086", "0.57827395", "0.57666904", "0.5757015", "0.5749773", "0.5748947", "0.57449883", "0.57449883", "0.57449883", "0.57449883", "0.57449883", "0.57317096", "0.5705496", "0.5693245", "0.5690456", "0.5688963", "0.5688368", "0.5688312", "0.5667141", "0.56582516", "0.56533074", "0.56518483", "0.5648826", "0.56460404", "0.5641771", "0.56402713", "0.56131196", "0.56131196", "0.56131196", "0.56131196", "0.56131196", "0.56131196", "0.56131196", "0.56074166", "0.56041217", "0.56021225", "0.5589617", "0.55844074", "0.5574745", "0.55635446", "0.5558358", "0.555758", "0.55414635", "0.55381334", "0.5532266", "0.5532106", "0.5526262", "0.5526007", "0.55245805", "0.5514625", "0.5511078", "0.5511078", "0.55016273", "0.5499772", "0.54983306", "0.5489132", "0.54845995", "0.54818785", "0.54781306", "0.54740036", "0.5472604", "0.5471871", "0.5466717", "0.5445271", "0.5433404" ]
0.0
-1
Returns the friendly name of a material.
public static String getFriendlyName(Material material) { return material == null ? "Air" : getFriendlyName(new ItemStack(material), false); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getMaterial();", "public java.lang.String getMaterial() {\r\n return material;\r\n }", "@Override\n public String toString() {\n return material;\n }", "public String getMaterial() {\n return material;\n }", "public String getMaterial() {\n return material;\n }", "public java.lang.String getMATERIAL() {\r\n return MATERIAL;\r\n }", "@Element \n public String getMaterial() {\n return material;\n }", "public String getMaterial () {\r\n return getItemStack().getTypeId()+ \":\" + getItemStack().getDurability(); \r\n\t}", "@Override\r\n\tMaterial get(String material) {\n\t\treturn null;\r\n\t}", "public void setMaterial(java.lang.String material) {\r\n this.material = material;\r\n }", "public void setMaterial(String material) {\n this.material = material;\n }", "public static Material getMaterial(String name) {\r\n\t\treturn materialMap.get(name);\r\n\t}", "public java.lang.String getMATERIAL_GUID() {\r\n return MATERIAL_GUID;\r\n }", "@Override\n\tpublic String getMaterial() {\n\t\treturn null;\n\t}", "public java.lang.String getMATERIAL_EXTERNAL() {\r\n return MATERIAL_EXTERNAL;\r\n }", "public Material getMaterial() {\n\t\treturn material;\n\t}", "public String listOfMaterials() {\r\n\t\t StringBuilder sb = new StringBuilder();\r\n for (Iterator<Material> it = materials.iterator(); it.hasNext();) {\r\n\t\t\t Material m = (Material) it.next();\r\n sb.append(m.toString());\r\n }\r\n return sb.toString();\r\n }", "Material findMaterial(String name) throws ReadException;", "@Override\n\tpublic Material getMaterial() {\n\t\treturn this.m_material;\n\t}", "public static Material getType(String name) {\n Material material = null;\n name = name.toUpperCase(Locale.ROOT).trim();\n if (!name.startsWith(\"#\")) {\n if (name.contains(NAMESPACE.toUpperCase(Locale.ROOT))) {\n name = name.split(\":\")[1];\n }\n\n name = BukkitAdapter.ADAPTER.parseLegacyName(name);\n material = Material.matchMaterial(name);\n }\n\n return material;\n }", "public String materialsToString() {\r\n\r\n\t\t String materials = \"\";\r\n\r\n\t\t for(int index = 0; index < this.getMaterials().size(); index++) {\r\n\t\t materials += getMaterials().get(index).getName()+\"-\"+getMaterials().get(index).getQuantity();\r\n\r\n\t\t if(index != this.getMaterials().size() - 1)\r\n\t\t materials += \",\";\r\n\t\t }\r\n\r\n\t\t return materials;\r\n\t\t \r\n\t }", "@Element \n public void setMaterial(String material) {\n this.material = material;\n }", "String getMaterialID(ItemStack stack);", "public java.lang.String getMaterials(int index) {\n return materials_.get(index);\n }", "public void setMaterial(String material) {\n this.material = material == null ? null : material.trim();\n }", "public static String getName(ItemStack is, boolean format) {\r\n\t\tif (is == null) return null;\r\n\t\tif (!is.hasItemMeta() || !is.getItemMeta().hasDisplayName()) return (format) ? MinecraftNames.getMaterialName(is) : XMaterial.matchXMaterial(is).name();\r\n\t\treturn is.getItemMeta().getDisplayName();\r\n\t}", "public static String MaterialToString(Material tipo){\n \n switch(tipo){\n case CARBONO:\n return \"Bicicleta Feita de Carbono\";\n case ALUMINIO:\n return \"Bicicleta Feita de Aluminio\";\n default:\n return \"Material Invalido\";\n }\n }", "public java.lang.String getMaterials(int index) {\n return materials_.get(index);\n }", "public String getAction(Material material) {\n if (!materials.contains(material)) {\n return null;\n }\n\n return getParkourKitData().getString(\"ParkourKit.\" + name + \".\" + material.name() + \".Action\").toLowerCase();\n }", "public void setMATERIAL(java.lang.String MATERIAL) {\r\n this.MATERIAL = MATERIAL;\r\n }", "Material getMaterial(ItemStack stack);", "public String getDressMaterial() {\r\n\t\treturn dressMaterial;\r\n\t}", "String getTextureName();", "public String getName() {\n return monsterName;\n }", "public static Material of(final String mat) {\n return Optional.ofNullable(mat)\n .map(m -> map.get(m))\n .orElse(Material.LATEX);\n }", "@Override\n\tpublic String toString() {\n\t\treturn \"Material [kd=\" + kd + \", ks=\" + ks + \", kr=\" + kr + \", kt=\" + kt + \", nShininess=\" + nShininess + \"]\";\n\t}", "public String getFriendlyName() {\r\n return friendlyName;\r\n }", "public final String getFriendlyName(){\n return peripheralFriendlyName;\n }", "public String getEntityType() {\r\n return \"Material\";\r\n }", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "public String getName() {\r\n return \"Boyer/Moore-Suche in Strings\";\r\n }", "public static void addMaterial(String name, Material material) {\r\n\t\tmaterialMap.put(name, material);\r\n\t}", "public java.lang.String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.72901064", "0.7201614", "0.6979229", "0.69650483", "0.69650483", "0.6908508", "0.67097986", "0.6681804", "0.64843684", "0.64808804", "0.6395496", "0.6374142", "0.6344863", "0.62973195", "0.62884456", "0.6275086", "0.62699074", "0.6171879", "0.60894126", "0.60781103", "0.60398096", "0.60393745", "0.60341954", "0.6015182", "0.59960884", "0.59925777", "0.59620863", "0.595674", "0.5951203", "0.5945108", "0.59437066", "0.5937395", "0.58966887", "0.58063483", "0.5773753", "0.57356274", "0.5734489", "0.5727679", "0.57261086", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.5678316", "0.56728995", "0.5664221", "0.5652079", "0.5612503", "0.5612503", "0.5612503", "0.5612503", "0.5612503", "0.5612503" ]
0.7846134
0
Returns the friendly name of an itemstack
public static String getFriendlyName(ItemStack itemStack, boolean checkDisplayName) { if (itemStack == null || itemStack.getType() == Material.AIR) return "Air"; try { if (craftItemStackClass == null)craftItemStackClass = Class.forName(OBC_PREFIX + ".inventory.CraftItemStack"); Method nmsCopyMethod = craftItemStackClass.getMethod("asNMSCopy", ItemStack.class); if (nmsItemStackClass == null) nmsItemStackClass = Class.forName(NMS_PREFIX + ".ItemStack"); Object nmsItemStack = nmsCopyMethod.invoke(null, itemStack); Object itemName = null; if (checkDisplayName) { Method getNameMethod = nmsItemStackClass.getMethod("getName"); itemName = getNameMethod.invoke(nmsItemStack); } else { Method getItemMethod = nmsItemStackClass.getMethod("getItem"); Object nmsItem = getItemMethod.invoke(nmsItemStack); if (nmsItemClass == null) nmsItemClass = Class.forName(NMS_PREFIX + ".Item"); Method getNameMethod = nmsItemClass.getMethod("getName"); Object localItemName = getNameMethod.invoke(nmsItem); if (localeClass == null) localeClass = Class.forName(NMS_PREFIX + ".LocaleI18n"); Method getLocaleMethod = localeClass.getMethod("get", String.class); Object localeString = localItemName == null ? "" : getLocaleMethod.invoke(null, localItemName); itemName = ("" + getLocaleMethod.invoke(null, localeString.toString() + ".name")).trim(); } return itemName != null ? itemName.toString() : capitalizeFully(itemStack.getType().name().replace("_", " ").toLowerCase()); } catch (Exception ex) { ex.printStackTrace(); } return capitalizeFully(itemStack.getType().name().replace("_", " ").toLowerCase()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getItemName(ItemStack itemStack) {\r\n\t\treturn WordUtils.capitalizeFully(itemStack.getType().name().toLowerCase().replace('_', ' '));\r\n\t}", "@Override\n\tpublic String getDisplayName() {\n\t\treturn item.getItemStackDisplayName(stack);\n\t\t//#endif\n\t}", "public String getUnlocalizedName(ItemStack stack)\n {\n return \"item.\" + FeatherType.getTypeNameByMeta(stack.getMetadata());\n }", "public String getUnlocalizedName(ItemStack stack) {\n/* 59 */ return String.valueOf(getUnlocalizedName()) + \".\" + (String)this.nameFunction.apply(stack);\n/* */ }", "@Override\r\n\tpublic String getUnlocalizedName(ItemStack stack){\r\n\t\treturn super.getUnlocalizedName() + \".\" + metaNames[stack.getItemDamage()];\r\n\t\t\r\n\t}", "public String getUnlocalizedName(ItemStack itemStack) \n\t{\n\t\tint i = itemStack.getItemDamage();\n\t\t\n\t\tif (i < 0 || i >= subBlocks.length) \n\t\t{\n\t\t\ti = 0;\n\t\t}\n\n\t\treturn super.getUnlocalizedName() + \".\" + subBlocks[i];\n\t}", "public String getUnlocalizedName(ItemStack itemStack)\n\t{\n\t\tString name = \"\";\n\t\t\n\t\tswitch(itemStack.getItemDamage())\n\t\t{\n\t\tcase 0: {name = \"Turquoise\" + defaultName; break;}\n\t\tcase 1: {name = \"Chalcedony\" + defaultName; break;}\n\t\tcase 2: {name = \"Jade\" + defaultName; break;}\n\t\tcase 3: {name = \"Silver\" + defaultName; break;}\n\t\tcase 4: {name = \"Steel\" + defaultName; break;}\n\t\tcase 5: {name = \"Copper\" + defaultName; break;}\n\t\tcase 6: {name = \"Bronze\" + defaultName; break;}\n\t\tcase 7: {name = \"Tin\" + defaultName; break;}\n\t\t}\n\t\treturn this.getUnlocalizedName() + name;\n\t}", "public String getItemNameIS(ItemStack is)\n\t{\n\t\tString[] types = {\"Turquoise\",\"Onyx\",\"Amethyst\",\"Citrine\",\"Emerald\",\"Ruby\",\"Sapphire\",\"LoadedDirt\",\"LoadedSand\",\"LoadedGravel\"};\n\t\treturn \"wal_ore\"+types[is.getItemDamage()];\n\t}", "public static String writeStackToString (ItemStack stack) {\n \n return stack.getItem().getRegistryName().toString() + \"#\" + stack.getItemDamage();\n }", "public String getComponentName(ItemStack item) \t{ return tag(item) ? item.stackTagCompound.getString(\"componentName\") : null; }", "public String getName()\r\n\t{\r\n\t\treturn theItem.getName();\r\n\t}", "public String getItemName() {\n\t\treturn ((name != null) ? name : (name = MiscUtils.getName(this)));\n\t}", "public String getName() {\n return item.getName();\n }", "public String getItemName() {\r\n\t\treturn itemName;\r\n\t}", "public String getItemName() {\r\n return itemName;\r\n }", "public String getItemName() {\r\n return itemName;\r\n }", "public String getItemName() {\r\n return itemName;\r\n }", "public String getItemName() {\n return itemName;\n }", "public String getItemName() {\n return itemName;\n }", "public String getItemName() {\n return itemName;\n }", "public String getItemName() {\n return itemName;\n }", "public String getItemName() {\n return itemName;\n }", "public String getName() {\n\t\treturn itemName;\n\t}", "public String getItemName()\n {\n return itemName;\n }", "public String getItemName() {\n\t\treturn _itemName;\n\t}", "public String getName(int position){\n Item current = getItem(position);\n return current.Name();\n }", "public static String getFriendlyName(Material material) {\n return material == null ? \"Air\" : getFriendlyName(new ItemStack(material), false);\n }", "public static String getName(ItemStack is, boolean format) {\r\n\t\tif (is == null) return null;\r\n\t\tif (!is.hasItemMeta() || !is.getItemMeta().hasDisplayName()) return (format) ? MinecraftNames.getMaterialName(is) : XMaterial.matchXMaterial(is).name();\r\n\t\treturn is.getItemMeta().getDisplayName();\r\n\t}", "public String getInventoryName()\n {\n return this.hasCustomName() ? this.getCustomName() : Names.Containers.WATERJET;\n }", "public static ItemStack name(ItemStack is, String name) {\r\n\t\tItemMeta im = is.getItemMeta();\r\n\t\tim.setDisplayName(name);\r\n\t\tis.setItemMeta(im);\r\n\t\treturn is;\r\n\t}", "ItemStack getItemstackWithMaterial(Material material);", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "java.lang.String getDisplayName();", "@Override\n public String getItemName() {\n\treturn \"Goblin Sword\";\n }", "@Override\n\tpublic String getName() {\n\t\treturn ((Extension)_item).getId() + \".\" + ((Extension)_item).getTitle();\n\t}", "@Override\n\tpublic String getInventoryName() {\n\t\treturn isInventoryNameLocalized() ? field_145902_i : \"container.hopper\";\n\t}", "public String getStack();", "public String toString() {\n\t\tString ss = super.toString();\n\t\tss = ss.replace(\"GenericStackLimitedCapcity\", \"GenericStack\");\n\t\treturn ss;\n\t}", "public interface IMetaBlockName {\n String getSpecialName(ItemStack stack);\n}", "public String getAsNameAbbreviated(String itemName);", "public String getName() {\n return \"SnowballStacker\";\n }", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String getDisplayName();", "String displayName();", "String displayName();", "@Override\n\tpublic String getInventoryName(){\n\t return ModBlocks.ModularCrate.getUnlocalizedName() + \".name\";\n\t}", "public String getStandUser(ItemStack stack) {\n/* 204 */ NBTTagCompound nbttagcompound = stack.getTagCompound();\n/* */ \n/* 206 */ if (nbttagcompound == null)\n/* */ {\n/* 208 */ return \"\";\n/* */ }\n/* */ \n/* */ \n/* 212 */ NBTTagCompound nbttagcompound1 = nbttagcompound.getCompoundTag(this.standInfo);\n/* 213 */ return (nbttagcompound1 == null) ? \"\" : (nbttagcompound1.hasKey(this.standUser) ? nbttagcompound1.getString(this.standUser) : \"\");\n/* */ }", "public String getPageSymbol(ItemStack page);", "public String getInventoryName()\n {\n return this.inventoryTitle;\n }", "StackType getFirstItem();", "@SideOnly(Side.CLIENT)\n private List<String> getTooltip(@Nullable EntityPlayer playerIn, ItemStack stack)\n {\n List<String> list = Lists.<String>newArrayList();\n String s = stack.getDisplayName();\n\n if (stack.hasDisplayName())\n {\n s = TextFormatting.ITALIC + s;\n }\n\n if (!stack.hasDisplayName() && stack.getItem() == Items.FILLED_MAP)\n {\n s = s + \" #\" + stack.getItemDamage();\n }\n\n s = s + TextFormatting.RESET;\n\n list.add(s);\n\n stack.getItem().addInformation(stack, playerIn == null ? null : playerIn.world, list, ITooltipFlag.TooltipFlags.NORMAL);\n\n if (stack.hasTagCompound())\n {\n NBTTagList nbttaglist = stack.getEnchantmentTagList();\n\n for (int j = 0; j < nbttaglist.tagCount(); ++j)\n {\n NBTTagCompound nbttagcompound = nbttaglist.getCompoundTagAt(j);\n int k = nbttagcompound.getShort(\"id\");\n int l = nbttagcompound.getShort(\"lvl\");\n Enchantment enchantment = Enchantment.getEnchantmentByID(k);\n\n if (enchantment != null)\n {\n list.add(enchantment.getTranslatedName(l));\n }\n }\n\n if (stack.getTagCompound() != null && stack.getTagCompound().hasKey(\"display\", 10))\n {\n NBTTagCompound nbttagcompound1 = stack.getTagCompound().getCompoundTag(\"display\");\n\n if (nbttagcompound1.hasKey(\"color\", 3))\n {\n list.add(TextFormatting.ITALIC + new TextComponentTranslation(\"item.dyed\").getFormattedText());\n }\n\n if (nbttagcompound1.getTagId(\"Lore\") == 9)\n {\n NBTTagList nbttaglist3 = nbttagcompound1.getTagList(\"Lore\", 8);\n\n if (!nbttaglist3.hasNoTags())\n {\n for (int l1 = 0; l1 < nbttaglist3.tagCount(); ++l1)\n {\n list.add(TextFormatting.DARK_PURPLE + \"\" + TextFormatting.ITALIC + nbttaglist3.getStringTagAt(l1));\n }\n }\n }\n }\n }\n if (ConfigHandler.heldItemTooltipsConfig.heldItemTooltipsModded) {\n net.minecraftforge.event.ForgeEventFactory.onItemTooltip(stack, playerIn, list, ITooltipFlag.TooltipFlags.NORMAL);\n }\n return list;\n }", "String getMaterialID(ItemStack stack);", "public String getItemDetailName() {\n return itemDetailName;\n }", "private void setDisplayName(ItemStack item, String name) {\n ItemMeta meta = item.getItemMeta();\n meta.setDisplayName(name);\n item.setItemMeta(meta);\n }", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName();", "public String getDisplayName() {\n return typeElement.getQualifiedName().toString();\n }", "String getModuleDisplayName();", "public void setStandNAME(ItemStack stack, String name) {\n/* 314 */ NBTTagCompound nbttagcompound = stack.getTagCompound();\n/* */ \n/* 316 */ if (nbttagcompound == null) {\n/* */ \n/* 318 */ nbttagcompound = new NBTTagCompound();\n/* 319 */ stack.setTagCompound(nbttagcompound);\n/* */ } \n/* */ \n/* 322 */ NBTTagCompound nbttagcompound1 = nbttagcompound.getCompoundTag(this.standInfo);\n/* */ \n/* 324 */ if (!nbttagcompound.hasKey(this.standInfo))\n/* */ {\n/* 326 */ nbttagcompound.setTag(this.standInfo, nbttagcompound1);\n/* */ }\n/* */ \n/* 329 */ nbttagcompound1.setString(this.standName, name);\n/* */ }", "@Override\n\tpublic String getName() {\n\t\treturn ActionEnum.ADD_ITEM_COLLECTION.getActionName();\n\t}", "@Nonnull\r\n String getDisplayName();", "@Override\r\n\tpublic String toString() {\r\n\t\tString stackString = \"\";\r\n\t\tfor (T e: stack) {\r\n\t\t\tstackString = stackString +e;\r\n\t\t}\r\n\t\treturn stackString;\r\n}", "public java.lang.String getName();", "default String getDisplayName() {\r\n\t\treturn getClass().getSimpleName();\r\n\t}", "public String friendlyName() {\n return this.innerProperties() == null ? null : this.innerProperties().friendlyName();\n }", "public String getName() {\n\t\treturn MenuString;\n\t}", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();", "java.lang.String getName();" ]
[ "0.78260577", "0.74372864", "0.721078", "0.7187467", "0.69462734", "0.6932756", "0.6829586", "0.65786165", "0.6500855", "0.63502795", "0.62948227", "0.6258073", "0.6253071", "0.6226504", "0.61862797", "0.61862797", "0.61862797", "0.6161986", "0.6161986", "0.6161986", "0.6161986", "0.6161986", "0.6127624", "0.612686", "0.61221826", "0.60663867", "0.60544", "0.6049723", "0.5987168", "0.58822685", "0.5772632", "0.576249", "0.576249", "0.576249", "0.576249", "0.576249", "0.576249", "0.575183", "0.57365435", "0.57258546", "0.5723892", "0.57171553", "0.5716627", "0.56907326", "0.56812185", "0.566803", "0.566803", "0.566803", "0.566803", "0.566803", "0.566803", "0.56654805", "0.56654805", "0.5644124", "0.56399816", "0.56285214", "0.559556", "0.5584277", "0.5562274", "0.55366784", "0.5507592", "0.5485599", "0.5473512", "0.5473512", "0.5473512", "0.5473512", "0.5450393", "0.5447307", "0.54341704", "0.5433795", "0.54197836", "0.5412288", "0.5409466", "0.54070824", "0.5395195", "0.53900117", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316", "0.5384316" ]
0.71975416
3
Constructor for Accounting System
public AccountingSystem(){ accSystem = new HashMap<Integer, Transaction>(); allTransactionsID = new ArrayList<Integer>(); highestSalesMonth = new HashMap<Integer, Integer>(); transactionByTime = new LinkedHashMap<Integer, LinkedList<Transaction>>(); totalSalesCount = 0; totalReturnCount = 0; totalSaleProfit = 0.0; currentBuyID = -1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Account() { }", "public AccountManager(){\r\n allAccounts.put(\"CreditCard\",credits);\r\n allAccounts.put(\"LineOfCredit\",lineOfCredits);\r\n allAccounts.put(\"Chequing\",chequing);\r\n allAccounts.put(\"Saving\",saving);\r\n createAccount(\"3\", 0);\r\n primaryAccount = chequing[0];\r\n }", "public SavingsAccount() {\n super();\n }", "public SavingsAccount() {\n\t}", "public CheckingAccount() {\n\t\tsuper();\n\t}", "public CheckingAccount() {\n super(); \n }", "public Account() {\n super();\n }", "public Account() {\n\n\t}", "public Account() {\n\t}", "public UserAcct() {\r\n }", "public Account() {\r\n\t\tthis(\"unknown@billsplit.com\", \"Account\");\r\n\t}", "Account(int account_number,double balance) //pramiterized constrector\n {\n this.account_number=account_number;\n this.balance=balance;\n }", "public Account() {\n this(0, 0.0, \"Unknown name\"); // Invole the 2-param constructor\n }", "public Account() {\n }", "public Account() {\n }", "public BankAccount()\n {\n \t//intializing instance variables\n \t//at the time object creation constuctor executes \n \t\n \taccountHolderName=\"unknow\";\n \taccountBalance=0;\n \t\n }", "public Account()\n {\n // initialise instance variables\n balance = 0.00;\n remainder = 0;\n }", "public Account() {\n this(null, 0);\n }", "public Account() {\n // special case of the word \"this\"\n this(\"01234\", 0.00, \"Default Name\", \"Default Email\", \"Default Phone\");\n System.out.println(\"Empty constructor called\"); // only called once when instantiated.\n }", "public Account() {\n\n }", "public Account() {\n }", "public SavingsAccount()\n {\n super();\n this.interestRate = DEFAULT_RATE;\n System.out.println(\"Constructor is called.\");\n }", "public BankAccount() {\n this(12346, 5.00, \"Default Name\", \"Default Address\", \"default phone\");\n }", "public GlAccountBank () {\n\t\tsuper();\n\t}", "public Account(String firstName, String lastName, String SSN,\n String email, String password, String cardNum, String accId,\n double gpa, String schoolName, HashMap<String, Transaction> pendingTransactions,\n HashMap<String, Transaction> completedTransactions) {\n //Map<String, Transaction> dailyTransactions) {\n this.firstName = firstName;\n this.lastName = lastName;\n this.SSN = SSN;\n this.cardNum = cardNum;\n this.email = email;\n this.password = password;\n this.accId = accId;\n dailyLimit = 50.00;\n accCreditLimit = 1000.00;\n creditUsed = getCreditUsed();\n this.gpa = gpa;\n cashBackRate = gpa / 2;\n this.schoolName = schoolName;\n this.pendingTransactions = pendingTransactions;\n this.completedTransactions = completedTransactions;\n this.cashBackToDate = 0.0;\n //this.dailyTransactions = dailyTransactions;\n }", "public CheckingAccount()\n {\n withdrawals = 0;\n deposits = 0;\n }", "public FeeAccount ()\n {\n }", "public CDAccount() {\r\n\t\t//termOfCD = 0;\r\n\t\t//maturityDate = new DateInfo();\r\n\t}", "public account() {\n initComponents();\n autoID();\n branch();\n }", "public Account(String currency) {\n //numAccount += 1;\n incrementNumAccount();\n this.accountID = numAccount;\n this.dateOfCreation = LocalDate.now();\n\n setPrimaryCurrency(currency);\n this.currencyBalance = Money.of(0, this.primaryCurrency);\n ownerID = new ArrayList<>();\n }", "public BankAccount() {\n numberOfAccounts++;\n this.accountNumber = accountNumberGenerator(); \n }", "public Account(){\r\n System.out.println(\"Called of empty constructor.\");\r\n }", "public Account() //default constructor \n {\n this.balance = 0;\n this.account_number = 0;\n }", "private Application(){\r\n theAccounts = new ArrayList<Account>();\r\n\r\n accountInTotal = 100;\r\n startingBonds = 10000;\r\n }", "public Savings_Account (int account_num, double initial_balance, double interest_rate) \r\n {\r\n\r\n super (account_num, initial_balance);\r\n\r\n rate = interest_rate;\r\n\r\n }", "public SavingsAccount(String n) {\n super(n); \n balance = 0;\n }", "protected Account(String n, float b) {\n this(n); \n balance = b;\n }", "public BankAcc(int accNum, double bal, String name, String email, String phone){\r\n System.out.println(\"DONE\");\r\n //can do some validation in the other functions\r\n //not nessacary\r\n setAccNum(accNum);\r\n this.bal=bal;\r\n this.name=name;\r\n this.email=email;\r\n this.phone=phone;\r\n\r\n }", "public ProfileBankAccount() {\r\n }", "public account(){\n this.accNo = 000;\n this.id = 000;\n this.atype = \"\";\n this.abal = 0.00;\n }", "public CheckingAccount(String n) {\n super(n);\n balance = 0;\n }", "public UserAccount() {\n\n\t}", "public BankAccount() {\n\t\tthis.money = 0;\n\t}", "public Account() {\n\t\t//starting amount is 1500\n\t\tmoney = 1500;\n\t}", "public BankAccount() {\r\n\t\tbalance=0;\r\n\t\t\r\n\t}", "public Checking_Account (int account_num, double initial_balance, Savings_Account protection)\r\n {\r\n\r\n super (account_num, initial_balance);\r\n overdraft = protection;\r\n\r\n }", "public SavingsAccount(double balance)\n {\n startingBalance = balance;\n }", "public Account(){\r\n this.id = 0;\r\n this.saldo = 0.0;\r\n }", "public BankAcc(){\r\n //uses another constuctor\r\n this(593,2.5,\"Deg\",\"Deg\",\"Deg\");\r\n System.out.println(\"EMpty\");;\r\n }", "public account(int acc,int Id,String Atype,double bal ){\n this.accNo = acc;\n this.id = Id;\n this.atype = Atype;\n this.abal = bal;\n }", "public BankAccount() {\t\n\t\tthis.accountNumber = UUID.randomUUID().toString().substring(0, 6);\n\t\tthis.balance = 0;\n\t\tthis.accountType = \"Bank account\";\n\t}", "public Account(String customerName, String customerEmail, String customerPhone) {\n this(\"99999\", 100.55, customerName, customerEmail, customerPhone);\n // created from IntelliJ's Generate - but we used them inside of the constructor above, using \"this\"\n// this.customerName = customerName;\n// this.customerEmail = customerEmail;\n// this.customerPhone = customerPhone;\n }", "public Account() {\n this(DSL.name(\"account\"), null);\n }", "public BankImpl() {\n accounts = new HashMap<Integer,Account>();\n }", "public saccoAccount (int account_num, double initial_balance) \r\n {\r\n\r\n account = account_num;\r\n balance = initial_balance;\r\n\r\n }", "public BankAccount(int balance) {\n\n this.balance = balance;\n\n }", "BankAccount(){\n\t\tSystem.out.println(\"NEW ACCOUNT CREATED\");\t\n\t}", "private Bank() {\r\n\t\tsuper();\r\n\t\tlogService = new Logger(\"driverName\");\r\n\t\tlogger = new Logger(\"driverName\");\r\n\t\tthis.balance = balance;\r\n\t\tthis.clients = new Client[100];\r\n\t}", "public CheckingAcoount(String accountHolder, long accountNum, double balance) {\n // super to have parent class constructor !\n super(accountHolder, accountNum, balance);\n }", "public AccountInfo() {\n this(null, null);\n }", "public UserAccount() {\n }", "public Account(String owner, int ownerID, int accountID, double growthRate){\n this.owner = owner;\n this.ownerID = ownerID;\n this.accountID = accountID;\n this.growthRate = growthRate;\n \n }", "public AccountsRecord() {\n super(Accounts.ACCOUNTS);\n }", "public ExternallyOwnedAccount() {}", "protected Account(String n) {\n name = n;\n state = State.OPEN;\n }", "public AccountCashBalance() {\n super();\n\n LOGGER.trace(\"Entering the AccountCashBalance constructor with no parameters.\");\n\n LOGGER.trace(\"Leaving the AccountCashBalance constructor.\");\n }", "public Bank() {\n accounts = new Account[2];\n numOfAccounts = 0;\n }", "public BankAccount(int accountNum, String customerName, double balance){\n this.accountNum = accountNum;\n this. customerName = customerName;\n this.balance = balance;\n }", "public AccountInfo() {\n initComponents();\n }", "public StudentSavingsAccount(double bal, String name) {\n\n \t\tsuper(bal, name);\n// \t super();\n// \t setName(name);\n// \t setBalance(bal);\n \t overdraftsBeforeFee = 3;\n \t System.out.println(\"double, String constructor called [StudentSavingsAccount]\");\t\n\n }", "public PayAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public PayAccountExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public CheckingAccount (double openingBalance) {\n\t\t//super(openingBalance; INT_RATE);\n\t\tsuper(openingBalance);\n\t}", "public Account() {\n dateCreated = new java.util.Date();\n }", "public Account() {\n dateCreated = new java.util.Date();\n }", "public Checking(String firstName, String lastName, int accountNumber, double accountBalance) {\n\t\tsuper(firstName, lastName, accountNumber, accountBalance);\n\t\t\n\t}", "public CashPayment()\n {\n super();\n }", "public Account(String number, double balance, String customerName, String customerEmail, String customerPhone) {\n // set the instance's field variables directly, and do NOT use the setters inside constructor.\n this.number = number;\n this.balance = balance;\n this.customerName = customerName;\n this.customerEmail = customerEmail;\n this.customerPhone = customerPhone;\n }", "public SavingAccount()\n\t\t{\n\t\t\tsuper();\n\t\t}", "public Bank(String name, int accs){\n bankAccounts = new Account[accs];\n bankName = name;\n maxAccounts = accs;\n currAccounts = 0; //empty\n }", "public BankAccount(int accountNum, String customerName){\n this.accountNum = accountNum;\n this.customerName = customerName;\n balance = 0;\n }", "public StandardAccount(int accountNumber, double creditLimit) {\n super(accountNumber);\n this.creditLimit = creditLimit;\n }", "public Payroll()\r\n\t{\r\n\t\t\r\n\t}", "public ATM() {\n usuarioAutenticado = false; // al principio, el usuario no está autenticado\n numeroCuentaActual = 0; // al principio, no hay número de cuenta\n pantalla = new Pantalla(); // crea la pantalla\n teclado = new Teclado(); // crea el teclado\n dispensadorEfectivo = new DispensadorEfectivo(); // crea el dispensador de efectivo\n ranuraDeposito = new RanuraDeposito(); // crea la ranura de depósito\n baseDatosBanco = new BaseDatosBanco(); // crea la base de datos de información de cuentas\n }", "public Bank(){\n this(\"Seneca@York\", 0);\n }", "public void initAccount() {\n initAccount(Huobi.PLATFORM_NAME, Gateio.PLATFORM_NAME, \"EOS_USDT\", 14.5632);\n\n\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"LTCUSDT\", 112.610000000);\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"BCHUSDT\", 1032.690000000);\n initAccount(Huobi.PLATFORM_NAME, Fcoin.PLATFORM_NAME, \"ETHUSDT\", 572.300000000);\n\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"EOSUSDT\", 13.1469);\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"NEOUSDT\", 48.4760);\n initAccount(Huobi.PLATFORM_NAME, Dragonex.PLATFORM_NAME, \"ETHUSDT\", 572.1195);\n }", "public Account(int accNmr, String firstName, String lastName, double balance) {\n this.accNmr = accNmr;\n this.firstName = firstName;\n this.lastName = lastName;\n this.balance = balance;\n }", "public Account(){\n this.id = 0;\n this.balance = 0;\n this.annualInterestRate = 0;\n this.dateCreated = new Date();\n }", "public BankModel() {\n accounts = new ArrayList<AccountModel>();\n\n // Master account inbedded into system for easy access to test features.\n accounts.add(new AccountModel(\"c\", \"123\", 500));\n }", "public Bank() {\n\t\tsuper();\n\t}", "public SavingsAccount(double rate) //setting interest rate with constructor\r\n { \r\n interestRate = rate;\r\n }", "public Account(double balance) {\n\t\tthis.balance = balance;\n\t}", "@Test\n public void accountCustomConstructor_isCorrect() throws Exception {\n\n int accountId = 100;\n int userId = 101;\n String accountName = \"account Test Name\";\n double balance = 1000.00;\n\n // Create custom account\n Account account = new Account(accountId, userId, accountName, balance);\n\n // Verify values\n assertEquals(accountId, account.getAccountId());\n assertEquals(userId, account.getUserId());\n assertEquals(accountName, account.getAccountName());\n assertEquals(balance, account.getBalance(), 0);\n }", "public JsonpAccount() {\n }", "public Account(Name alias) {\n this(alias, ACCOUNT);\n }", "public User_Account() {\r\n\t\tfirstName=middleName=lastName = null;\r\n\t\taddress=city=state=zip=null;\r\n\t\tphone=email=webLinks= new ArrayList <String>(); \r\n\t\tedu = new ArrayList <Education>();\r\n\t\twork = new ArrayList <Work>();\r\n\t}", "public Account(int accountNo, String accountHolderName, double balance) {\r\n this.accountNo = accountNo;\r\n this.accountHolderName = accountHolderName;\r\n this.balance = balance;\r\n\r\n Account.accountCount++;\r\n }", "private GetAccount()\r\n/* 19: */ {\r\n/* 20:18 */ super(new APITag[] { APITag.ACCOUNTS }, new String[] { \"account\" });\r\n/* 21: */ }", "public CAccountElement() {\n }", "public Account(Holder holder) {\n this(holder, 0);\n }" ]
[ "0.8189401", "0.79834896", "0.79732955", "0.7959538", "0.78409326", "0.78314424", "0.77998227", "0.7795845", "0.7788478", "0.77247804", "0.7647043", "0.76067257", "0.7578354", "0.75664854", "0.75664854", "0.75384927", "0.7530909", "0.75287193", "0.75200003", "0.751721", "0.75077635", "0.7490273", "0.74880284", "0.7447587", "0.74385536", "0.73840636", "0.73661506", "0.7350606", "0.7338365", "0.73321396", "0.7329742", "0.7326417", "0.73234564", "0.72886837", "0.7266822", "0.7262727", "0.72314477", "0.71982235", "0.71977144", "0.7188657", "0.717682", "0.71533746", "0.7134957", "0.71120673", "0.7107027", "0.7101521", "0.71000266", "0.709578", "0.7087615", "0.7077663", "0.7038649", "0.70195454", "0.7012053", "0.6991215", "0.69847906", "0.69794697", "0.6966623", "0.6964625", "0.6949249", "0.69438493", "0.6921517", "0.69079703", "0.69040364", "0.69018453", "0.6855094", "0.6844795", "0.68442893", "0.6843651", "0.68426037", "0.68348193", "0.6834736", "0.6834736", "0.6830135", "0.68065906", "0.68065906", "0.67969775", "0.67917675", "0.67851824", "0.6775791", "0.6775055", "0.6773957", "0.67688525", "0.676737", "0.6762436", "0.67605734", "0.6756071", "0.67303985", "0.672884", "0.67140055", "0.6710595", "0.6687631", "0.6681413", "0.66785836", "0.66740656", "0.66673934", "0.66592497", "0.6657584", "0.66464126", "0.66385406", "0.6637212" ]
0.713768
42
adds a new Transaction object into the map of transactions
public String add(Calendar calendar, Car car, String salesPerson, String type, Double salePrice){ id = (int)(Math.random() * 300); Transaction newTransaction = new Transaction(id, calendar,car, salesPerson, type, salePrice); LinkedList<Transaction> tempTransactionByTime = new LinkedList<Transaction>(); int m = calendar.get(Calendar.MONTH); int tempCount = 0; accSystem.put(id, newTransaction); allTransactionsID.add(id); if (type.equals("BUY")){ currentBuyID = id; totalSalesCount++; totalSaleProfit += car.getPrice(); if (highestSalesMonth.get(m) != null){ tempCount = highestSalesMonth.get(m) + 1; } }else if (type.equals("RETURN") || type.equals("RET")){ currentBuyID = -1; totalSaleProfit -= car.getPrice(); totalSalesCount--; totalReturnCount++; if (highestSalesMonth.get(m) != null){ tempCount = highestSalesMonth.get(m) - 1; } } highestSalesMonth.put(m, tempCount); if (transactionByTime.get(m) != null){ tempTransactionByTime.addAll(transactionByTime.get(m)); } tempTransactionByTime.add(newTransaction); transactionByTime.put(m, tempTransactionByTime); return newTransaction.display(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void addTransaction(Transactions t){\n listOfTransactions.put(LocalDate.now(), t);\n }", "public Transaction(){\n\t\t\n\t\ttransactions = new HashMap<String, ArrayList<Products>>();\n\t}", "public void addTransaction(CustomerTransaction cust) {\n history.add(cust);\n }", "@JsonProperty(\"transaction\")\n public void setTransaction(Transaction transaction) {\n this.transactionList.add(transaction);\n }", "protected abstract Transaction createAndAdd();", "private void registerTransaction(Transaction t) {\n transactions.put(t.getTransactionString(), t);\n }", "void addTransaction(Transaction transaction, long timestamp) throws TransactionNotInRangeException;", "@Override\r\n\tpublic int addTran(Transaction transaction) throws Exception {\n\t\t\t\t\r\n\t\treturn tranDao.insertTran(transaction);\r\n\t}", "void addTransaction(String[] transaction) {\t\t\n\t\tItemsets frequentItemsets = itemsetSets.get(0);\n\t\t\n\t\tfor (String item : transaction) {\n\t\t\tfrequentItemsets.addTransactionItemset(new Itemset(item));\n\t\t}\n\t}", "public void addTransaction(String s) {\r\n\t\ttransactions.add(s);\r\n\t}", "public static void newTrans(Transaction t) {\r\n\t\ttransList = new ArrayList<Transaction>();\r\n\t\tload();\r\n\t\ttransList.add(t);\r\n\t\tsave();\r\n\t}", "public void addTransaction(Transaction trans)\n {\n SolrInputDocument solr_doc = new SolrInputDocument();\n solr_doc.setField(\"type\",\"Transaction\");\n solr_doc.setField(\"hashBlock\",trans.getHashBlock());\n solr_doc.setField(\"trans_id_split\",trans.getTrans_id_split());\n solr_doc.setField(\"transaction_id\",trans.getTransaction_id());\n solr_doc.setField(\"transaction_fee\",trans.getTransaction_fee());\n solr_doc.setField(\"transaction_size_kb\",trans.getTransaction_size_kb());\n solr_doc.setField(\"from_amout\",trans.getFrom_amout());\n solr_doc.setField(\"to_amount\",trans.getTo_amount());\n\n try {\n client.add(solr_doc);\n } catch (SolrServerException | IOException e) {\n e.printStackTrace();\n }\n\n commit();\n\n }", "protected final Transaction addTransaction(Transaction trans) {\n\t\treturn addTransactionTo(getAccount(), trans);\n\t}", "void addTransaction(Transaction transaction) throws SQLException, BusinessException;", "public void addTransaction(Transaction transaction)\n\t{\n\t\ttransactionQueue.add(transaction);\n\t}", "public void addTransaction(Transaction tx) {\n this.txPool.addTransaction(tx);\n }", "public void addTransaction(String transactionNum) {\n\t\tthis.transactions.add(transactionNum);\n\t}", "public void createTransaction(Transaction trans);", "@Override\n\tpublic void addTransactionToDatabase(Transaction trans) throws SQLException {\n\t\tConnection connect = db.getConnection();\n\t\tString insertQuery = \"insert into transaction_history values(default, ?, ?, ?, now())\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(insertQuery);\n \n\t\t\tprepStmt.setInt(1, trans.getAccountId());\n\t\t\tprepStmt.setString(2, trans.getUsername());\n\t\t\tprepStmt.setDouble(3, trans.getAmount());\n\t\t\tprepStmt.executeUpdate();\n\t}", "public boolean addTransaction(Transaction trans) {\n if (trans == null) {\n return false;\n }\n if (!previousHash.equals(\"0\")) {\n if (!trans.processTransaction()) {\n System.out.println(\"Transaction failed to process. Transaction discarded!\");\n return false;\n }\n }\n transactions.add(trans);\n System.out.println(\"Transaction successfully added to the block\");\n return true;\n }", "public void addTransaction(EtmPoint transaction) {\n double miliseconds = transaction.getTransactionTime();\n\n measurements++;\n total += miliseconds;\n max = max > miliseconds ? max : miliseconds;\n min = min > miliseconds || min == 0 ? miliseconds : min;\n }", "public void put(Transaction tx, GlobalTransaction gtx)\n {\n if (tx == null)\n {\n log.error(\"key (Transaction) is null\");\n return;\n }\n tx2gtxMap.put(tx, gtx);\n gtx2TxMap.put(gtx, tx);\n }", "public void addTransaction(double amount) {\n this.transactions.add(amount);\n }", "private void addTransactions(com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureTransactionsIsMutable();\n transactions_.add(value);\n }", "public void put(GlobalTransaction tx, TransactionContext transactionContext)\n {\n if (tx == null)\n {\n log.error(\"key (GlobalTransaction) is null\");\n return;\n }\n gtx2ContextMap.put(tx, transactionContext);\n }", "public EntitiesAction(Transaction transaction) {\r\n\t\tsuper();\r\n\t\tthis.transaction = transaction;\r\n\t\tif (transaction != null) {\r\n\t\t\ttransaction.add(this);\r\n\t\t} else {\r\n\t\t\tlog.info(\"Action transaction is null.\");\r\n\t\t}\r\n\t}", "private void addToWaitMap(ITransaction tx, ITransactionOperation txOp){\r\n\t\tQueue<ITransactionOperation> waitingTxOps = waitMap.get(tx);\r\n\t\tif(waitingTxOps == null){\r\n\t\t\twaitingTxOps = new LinkedList<>();\r\n\t\t}\r\n\t\t\r\n\t\twaitingTxOps.add(txOp);\r\n\t\twaitMap.put(tx, waitingTxOps);\r\n\t}", "@Test\n\tpublic void addTransaction() {\n\t\tTransaction transaction = createTransaction();\n\t\tint size = transactionService.getTransactions().size();\n\t\ttransactionService.addTransaction(transaction);\n\t\tassertTrue(\"No transaction was added.\", size < transactionService.getTransactions().size());\n\t}", "void addTransaction(final TransactionVM transactionVM);", "public void addCompletedTransaction(Transaction transaction) {\n pendingUpdates.add(transaction);\n }", "void addTransactionJournal(MasterTableJournal change) {\n transaction_mod_list.add(change);\n system.stats().increment(journal_count_stat_key);\n }", "List<TransactionVO> addPendingTransactions(List<SignedTransaction> transactions);", "private List<Transaction> getTransactionInformation(Map<Integer, CartLine> map) {\n\n\t\tlong subtotal = 0;\n\n\t\tfor (CartLine line : map.values()) {\n\n\t\t\tsubtotal += line.getUnitPrice() * line.getQuantity();\n\t\t}\n\n\t\tDetails details = new Details();\n\n\t\tdetails.setShipping(\"30000\");\n\t\tdetails.setSubtotal(\"\" + subtotal);\n\t\tdetails.setTax(\"0\");\n\n\t\tAmount amount = new Amount();\n\n\t\tamount.setCurrency(\"USD\");\n\t\tamount.setTotal(\"\" + (subtotal + 30000));\n\n\t\tamount.setDetails(details);\n\n\t\tTransaction transaction = new Transaction();\n\t\ttransaction.setAmount(amount);\n\t\ttransaction.setDescription(\"A\");\n\n\t\tItemList itemList = new ItemList();\n\n\t\tList<Item> items = new ArrayList<Item>();\n\n\t\tfor (CartLine line : map.values()) {\n\t\t\tItem item = new Item();\n\t\t\titem.setCurrency(\"USD\");\n\t\t\titem.setName(line.getProduct().getProductName());\n\t\t\titem.setPrice(\"\" + (line.getQuantity() * line.getUnitPrice()));\n\t\t\titem.setQuantity(\"\" + line.getQuantity());\n\n\t\t\titems.add(item);\n\t\t}\n\n\t\titemList.setItems(items);\n\t\ttransaction.setItemList(itemList);\n\n\t\tList<Transaction> transactions = new ArrayList<Transaction>();\n\t\ttransactions.add(transaction);\n\n\t\treturn transactions;\n\n\t}", "public void saveTransaction(Transaction transaction) {\r\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\r\n try {\r\n org.hibernate.Transaction hbtransaction = session.beginTransaction();\r\n // don't save \"duplicate\" transactions\r\n Query q = session.createQuery (\"from finance.entity.Transaction trans WHERE trans.transdate = :transdate AND trans.amount = :amount AND trans.vendor = :vendor AND trans.account.uid = :accountuid\");\r\n q.setParameter(\"transdate\", transaction.getTransdate());\r\n q.setParameter(\"amount\", transaction.getAmount());\r\n q.setParameter(\"vendor\", transaction.getVendor());\r\n Account acct = transaction.getAccount();\r\n q.setParameter(\"accountuid\", acct.getUid());\r\n List<Transaction> transactionList = (List<Transaction>) q.list();\r\n if (transactionList.isEmpty()) {\r\n session.save(transaction);\r\n }\r\n hbtransaction.commit();\r\n } catch (Exception e) {\r\n throw e;\r\n }\r\n }", "public Map<LocalDate, Transactions> getTransactionsList(){\n return listOfTransactions;\n }", "Map retrievePreparedTransactions();", "void addConfirmedTransaction(int transId, String userId);", "public void addTransaction\n \t\t(SIPServerTransaction serverTransaction) throws IOException {\n \tsynchronized (serverTransactions) {\n \t\tthis.serverTransactions.add(serverTransaction);\n \t\tserverTransaction.map();\n \t}\n }", "private void transactionAdd(PlanRecord plan, Context context) {\n final Calendar cal = Calendar.getInstance();\n Locale locale = context.getResources().getConfiguration().locale;\n DateTime date = new DateTime();\n date.setCalendar(cal);\n\n ContentValues transactionValues = new ContentValues();\n transactionValues.put(DatabaseHelper.TRANS_ACCT_ID, plan.acctId);\n transactionValues.put(DatabaseHelper.TRANS_PLAN_ID, plan.id);\n transactionValues.put(DatabaseHelper.TRANS_NAME, plan.name);\n transactionValues.put(DatabaseHelper.TRANS_VALUE, plan.value);\n transactionValues.put(DatabaseHelper.TRANS_TYPE, plan.type);\n transactionValues.put(DatabaseHelper.TRANS_CATEGORY, plan.category);\n transactionValues.put(DatabaseHelper.TRANS_MEMO, plan.memo);\n transactionValues.put(DatabaseHelper.TRANS_TIME, date.getSQLTime(locale));\n transactionValues.put(DatabaseHelper.TRANS_DATE, date.getSQLDate(locale));\n transactionValues.put(DatabaseHelper.TRANS_CLEARED, plan.cleared);\n\n //Insert values into accounts table\n context.getContentResolver().insert(MyContentProvider.TRANSACTIONS_URI, transactionValues);\n }", "void addInvitedTrans(ITransaction transaction, String userId);", "public void updateTransaction(Transaction trans);", "public void PushTransaction(Transaction new_transaction){\n try{\n \n FileWriter fileWriter = new FileWriter(\"C:\\\\Users\\\\cmpun\\\\Desktop\\\\SoftwareEngineeringProject\\\\src\\\\softwareengineeringproject\\\\TransactionLog.txt\", true);\n\n fileWriter.write(new_transaction.Date + \",\" + new_transaction.processed_items + \",\" + new_transaction.Total + \"\\n\");\n \n fileWriter.close();\n\n }catch(Exception E){\n \n System.out.println(\"Unable to enter transaction into Log...\");\n \n }\n \n }", "void addTrade(Trade trade);", "public Transact addTransact(long periodID) {\n long id;\n Transact tr = new Transact(periodID);\n\n SQLiteDatabase db = this.getWritableDatabase();\n ContentValues values = new ContentValues();\n values.put(COLUMN_TRANSACT_PERIOD_ID, tr.getPeriodID());\n values.put(COLUMN_TRANSACT_TYPE, tr.getType());\n values.put(COLUMN_TRANSACT_DAY, tr.getTransactDay());\n values.put(COLUMN_TRANSACT_AMOUNT, tr.getAmount());\n values.put(COLUMN_TRANSACT_CATEGORY, tr.getCategory());\n values.put(COLUMN_TRANSACT_DESC, tr.getDesc());\n\n // Inserting Row\n id = db.insert(TABLE_TRANSACT, null, values);\n tr.setId(id);\n db.close();\n return tr;\n }", "public void onTransactionAdded(TransactionEntry transactionEntry);", "public Map<String, ArrayList<Record>> initiateTransaction(Records records) throws JAXBException;", "public void saveOrUpdate(Transaction transaction) throws Exception;", "public void addTransaction(Transaction transaction) throws TransactionFailedException,\n\tLowBalanceException,AccountDoesNotExistException {\n\t\t\n\t\tint amount = 0;\n\t\t\n\t\tAccount account = accountDAO.listByAccountId(transaction.getAccountId());\n\t\n\t\tif(account== null){\n\t\t\tthrow new AccountDoesNotExistException(\"Account with \"+ transaction.getAccountId() +\" does not exists\");\n\t\t}\n\t\tif (transaction.getType().equals(\"D\")) {\n\n\t\t\tif (account.getAmount() >= transaction.getAmount())\n\t\t\t\tamount = account.getAmount() - transaction.getAmount();\n\t\t\telse {\n\t\t\t\tthrow new LowBalanceException(\"Low Balance..!!\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tamount = account.getAmount() + transaction.getAmount();\n\t\t}\n\t\taccount.setAmount(amount);\n\t\taccountDAO.update(account);\n\t\ttransactionDAO.save(transaction);\n\t}", "public boolean addTransaction(Transaction transaction) throws SQLException {\n\t\t\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\"INSERT INTO transaction(Date, Type, Category, Amount) VALUES (?, ?, ?, ?)\")) {\n\t\t\tstatement.setDate(1, transaction.date());\n\t\t\tstatement.setString(2, transaction.type());\n\t\t\tstatement.setString(3, transaction.category());\n\t\t\tstatement.setDouble(4, transaction.amount());\n\t\t\treturn statement.executeUpdate() != 0;\n\t\t}\n\t}", "public boolean AddTransactionToAccount(Double transaction)\n {\n\n if(this.transactions.add(transaction)){\n System.out.println(\"Failed to add transaction: \" + transaction);\n return false;\n }\n System.out.println(\"Successfully added Transaction: \" + transaction);\n return true;\n }", "public Flowable<Transaction> addTransaction(final Transaction newTransaction,\n final long categoryId) {\n return executeTransaction((bgRealm, subscriber) -> {\n // If the id equals to zero that means the id is not set and\n // it is not synced ( the id is not from the api).\n if (newTransaction.getId() == 0) {\n // Auto Incremental Id\n Number currentIdNum = bgRealm.where(Transaction.class).max(\"id\");\n int nextId = currentIdNum == null ? 1 : currentIdNum.intValue() + 1;\n newTransaction.setId(nextId);\n }\n if (categoryId != -1) {\n Category c = bgRealm.where(Category.class)\n .equalTo(\"id\", categoryId).findFirst();\n newTransaction.setCategory(c);\n }\n bgRealm.copyToRealm(newTransaction);\n });\n }", "@Override\r\n\tpublic void addDelivery(Transaction transaction) throws Exception {\n\t\ttranDao.updateDeliveryInfo(transaction);\r\n\t}", "public void addTransaction\n \t\t(SIPClientTransaction clientTransaction) {\n \tsynchronized (clientTransactions) {\n \t\tclientTransactions.add(clientTransaction);\n \t}\n }", "public boolean insertTransactionsAndCreateAccounts(List<Transaction> transactions) {\n\t\ttry (final AutoCommittingHandle handle = new AutoCommittingHandle(dbi)) {\n\t\t\ttry {\n\t\t\t\t// fetch all existing accounts, initializing a map entry for each that contains an empty set of\n\t\t\t\t// transactions as its value\n\t\t\t\tfinal Map<Account, List<Transaction>> existingAccounts = new HashMap<>();\n\t\t\t\tfor (final Account existingAccount : getAccountsWithTransactions(handle)) {\n\t\t\t\t\texistingAccounts.put(existingAccount, new ArrayList<>());\n\t\t\t\t}\n\n\t\t\t\t// a map of new accounts to add\n\t\t\t\tfinal Map<Account, List<Transaction>> newAccounts = new HashMap<>();\n\n\t\t\t\t// sort new transactions into the map of accounts\n\t\t\t\tfor (final Transaction transaction : transactions) {\n\t\t\t\t\tfinal Optional<Account> existingAccount = existingAccounts.keySet()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .filter(a -> a.getAccountNumber()\n\t\t\t\t\t .equals(transaction.getAccountNumber()))\n\t\t\t\t\t .findFirst();\n\t\t\t\t\tfinal Optional<Account> newAccount = newAccounts.keySet()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .filter(a -> a.getAccountNumber()\n\t\t\t\t\t .equals(transaction.getAccountNumber()))\n\t\t\t\t\t .findFirst();\n\n\t\t\t\t\tif (!existingAccount.isPresent() && newAccount.isPresent()) {\n\t\t\t\t\t\tnewAccounts.get(newAccount.get()).add(transaction);\n\t\t\t\t\t} else if (existingAccount.isPresent() && !newAccount.isPresent()) {\n\t\t\t\t\t\texistingAccounts.get(existingAccount.get()).add(transaction);\n\t\t\t\t\t} else if (!existingAccount.isPresent() && !newAccount.isPresent()) {\n\t\t\t\t\t\tfinal List<Transaction> newTransactions = Arrays.asList(transaction);\n\t\t\t\t\t\t// TODO: can we assume account type and balance/currency? - instead, prompt user for details?\n\t\t\t\t\t\tfinal Account account = Account.newBuilder(transaction.getAccountNumber())\n\t\t\t\t\t\t .setType(AccountType.CHECKING)\n\t\t\t\t\t\t .setBalance(Money.zero(CurrencyUnit.CAD))\n\t\t\t\t\t\t .addTransactions(newTransactions)\n\t\t\t\t\t\t .build();\n\t\t\t\t\t\tnewAccounts.put(account, newTransactions);\n\t\t\t\t\t} else if (existingAccount.isPresent() && newAccount.isPresent()) {\n\t\t\t\t\t\tthrow new IllegalStateException(\"Account can't exist in new and existing maps\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tfor (final Entry<Account, List<Transaction>> entry : newAccounts.entrySet()) {\n\t\t\t\t\t// sum the transactions to compute an updated balance for the account\n\t\t\t\t\tfinal List<Money> transactionAmounts = entry.getValue()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .map(Transaction::getAmount)\n\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\t\tfinal Money balance = Money.zero(entry.getKey().getBalance().getCurrencyUnit())\n\t\t\t\t\t .plus(transactionAmounts);\n\n\t\t\t\t\t// insert a copy of the account with the correct balance and list of transactions\n\t\t\t\t\tfinal Account updatedAccount = Account.newBuilder(entry.getKey())\n\t\t\t\t\t .setBalance(balance)\n\t\t\t\t\t .addTransactions(entry.getValue())\n\t\t\t\t\t .build();\n\n\t\t\t\t\tinsertAccountWithTransactions(handle, updatedAccount);\n\t\t\t\t}\n\n\t\t\t\tfor (final Entry<Account, List<Transaction>> entry : existingAccounts.entrySet()) {\n\t\t\t\t\t// sum the transactions to compute an updated balance for the account\n\t\t\t\t\tfinal List<Money> transactionAmounts = entry.getValue()\n\t\t\t\t\t .stream()\n\t\t\t\t\t .map(Transaction::getAmount)\n\t\t\t\t\t .collect(Collectors.toList());\n\t\t\t\t\tfinal Money balance = entry.getKey()\n\t\t\t\t\t .getBalance()\n\t\t\t\t\t .plus(transactionAmounts);\n\n\t\t\t\t\t// update the account with the correct balance and set of transactions\n\t\t\t\t\t// this adds the new transactions to the set of transactions already in the account\n\t\t\t\t\tfinal Account updatedAccount = Account.newBuilder(entry.getKey())\n\t\t\t\t\t .setBalance(balance)\n\t\t\t\t\t .addTransactions(entry.getValue())\n\t\t\t\t\t .build();\n\n\t\t\t\t\taccountDao.updateAccount(handle, updatedAccount);\n\t\t\t\t\ttransactionDao.insertTransactions(handle, entry.getValue());\n\t\t\t\t}\n\t\t\t} catch (final Exception ex) {\n\t\t\t\tlog.error(\"Failed to insert tranactions\", ex);\n\t\t\t\thandle.rollback();\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean addTransaction(Transaction transaction) {\n //process transaction and check if valid, unless block is genesis block then ignore.\n if(transaction == null) return false;\n transactions.add(transaction);\n return true;\n }", "Transaction createTransaction();", "public void addValue(JsonObject block, HashMap<String, Integer> balance){\n JsonArray transactions = block.get(\"Transactions\").getAsJsonArray();\n int N = transactions.size();\n String minerId = block.get(\"MinerID\").getAsString();\n getOrInit(minerId, balance);\n for (int i=0; i<N; i++) {\n \tJsonObject Tx = transactions.get(i).getAsJsonObject();\n \tint current = getOrInit(minerId, balance);\n \tbalance.put(minerId, current + Tx.get(\"MiningFee\").getAsInt());\n }\n return;\n }", "public Transaction addTransaction(User user, TransactionForm transactionForm) {\n return addTransactions(user, ImmutableList.of(transactionForm)).get(0);\n }", "public Transaction(JsonObject transObj) {\n this.symbol = transObj.get(\"symbol\").getAsString();\n this.price = transObj.get(\"price\").getAsDouble();\n this.volume = transObj.get(\"volume\").getAsInt();\n this.type = transObj.get(\"type\").getAsString(); //buy or sell\n this.date = transObj.get(\"date\").getAsString();\n this.time = transObj.get(\"time\").getAsString();\n this.profitFromSell = transObj.get(\"profitFromSell\").getAsDouble();\n this.averagePurchasePrice = transObj.get(\"averagePurchasePrice\").getAsDouble();\n }", "public void addToPolicyTransactions(entity.AppCritPolicyTransaction element);", "public void addTransaction(String ID, ArrayList<Products> items){\n\t\ttransactions.put(ID, items);\n\t}", "void insert(PaymentTrade record);", "public boolean ADDCHEDTransact(CHEDTransact trans) {\n query = \"INSERT INTO transact(NumberO)\";\n try {\n ps = con.prepareStatement(query);\n\n java.util.Date dateP = trans.getiTDate();\n\n Date dateSigned = new Date(dateP.getYear(), dateP.getMonth(), dateP.getDay());\n\n ps.setInt(1, trans.getNumberOFTrees());\n ps.setString(2, trans.getLotNumber());\n ps.setString(3, trans.getiTvoucher());\n ps.setString(4, trans.gettRvoucher());\n ps.setDate(5, dateSigned);\n ps.setFloat(6, trans.getAmountPayable());\n\n if (ps.executeUpdate() != 0) {\n status = true;\n }\n\n } catch (SQLException ex) {\n Logger.getLogger(FarmerManager.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n return status;\n }", "int insert(Transaction record);", "protected final Transaction addTransactionTo(Account account,\n\t\t\tTransaction trans) {\n\t\tboolean result = account.addTransaction(trans);\n\n\t\tif (result == false) {\n\t\t\ttrans = null;\n\n\t\t\tinform(getProperty(\"error.title\") + \" \\\"\" + account + \"\\\".\",\n\t\t\t\t\tgetProperty(\"error.description\"));\n\t\t}\n\n\t\treturn trans;\n\t}", "public boolean addCustomerTransaction(String customerName, double transaction){\n Customer existingCustomer = findCustomer(customerName);\n if(existingCustomer != null){\n existingCustomer.addTransaction(transaction);\n return true;\n }\n return false;\n }", "Transaction save(Transaction transaction);", "public Customer(CustomerTransaction cust) {\n this.name = cust.getName();\n this.mobile = cust.getMobile();\n this.email = cust.getEmail();\n this.history = new ArrayList <CustomerTransaction>();\n history.add(cust);\n }", "@Override\n\tpublic ResponseInfo addPurchasecontract(Map<String, Object> map) {\n\t\tResponseInfo info = new ResponseInfo();\n\t\tint result = 0;\n\t\tint upResult = 0;\n\t\tint staratCount = 0;\n\t\tString flag = map.get(\"flag\").toString();\n\t\tString purchaseorderinfoMapString = map.get(\"purchaseorderinfoMap\").toString();\n\t\tMap<String,Object> purchaseorder= JSON.parseObject(purchaseorderinfoMapString);\n\t\tMap <String,Object> updateApplySignMap = new HashMap<>();\n\t\tif(!purchaseorder.get(\"contractState\").toString().equals(\"3\")) {\n\t\t\tpurchaseorder.put(\"cancellationCause\", \"\");\n\t\t}\n\t\tif(!flag.equals(\"1\")) {\n\t\t\tresult = purchaseDao.addPurchasecontract(purchaseorder);\n\t\t}else {\n\t\t\tresult = purchaseDao.updatePurchasecontractById(purchaseorder);\n\t\t}\n\t\tif(result>0) {\n\t\t\tif(map.get(\"fileName\")!=null && map.get(\"fileName\") != \"\") {\n\t\t\t\tMap<String,Object> upLoadMap = new HashMap<>();\n\t\t\t\tupLoadMap.put(\"serialID\",map.get(\"contractNumber\"));\n\t\t\t\tupLoadMap.put(\"fileName\",map.get(\"fileName\"));\n\t\t\t\tupLoadMap.put(\"fileRoute\",map.get(\"uploadAddress\"));\n\t\t\t\tupResult = purchaseDao.adduploadfile(upLoadMap);\n\t\t\t\tif(!(upResult>0)) {\n\t\t\t\t\tinfo.setMessage(\"操作失败002\");\n\t\t\t\t\tinfo.setCode(\"error\");\n\t\t\t\t\tTransactionAspectSupport.currentTransactionStatus().setRollbackOnly();\n\t\t\t\t\treturn info;\n\t\t\t\t}\n\t\t\t}\n\t\t\tString purchaseorderinfoListMap = map.get(\"purchaseorderinfoListMap\").toString();\n\t\t\tList<Object> list =JSON.parseArray(purchaseorderinfoListMap);\n\t\t\tfor (Object object : list){\n\t\t\t\t@SuppressWarnings(\"unchecked\")\n\t\t\t\tMap <String,Object> ret = (Map<String, Object>) object;//取出list里面的值转为map\n\t\t\t\tret.put(\"purchaseOrderId\", purchaseorder.get(\"Id\"));\n\t\t\t\tupdateApplySignMap.put(\"id\", Integer.parseInt(ret.get(\"purchaseRequisitionId\").toString()));\n\t\t\t\tif(!flag.equals(\"1\")) {\n\t\t\t\t\tinfo = this.addPurchaseorderinfo(ret);\n\t\t\t\t\tif(info.getCode().equals(\"success\")) {\n\t\t\t\t\t\tupdateApplySignMap.put(\"applySign\",1);\n\t\t\t\t\t\tinfo = this.updatePurchaserequisitionIsApplySign(updateApplySignMap);\n\t\t\t\t\t}\n\t\t\t\t}else {\n\t\t\t\t\tMap<String,Object> orderinfoId = new HashMap<>();\n\t\t\t\t\torderinfoId.put(\"id\", purchaseorder.get(\"Id\"));\n\t\t\t\t\t//麻烦死了\n\t\t\t\t\tList<Map<String,Object>> PurchaserequisitionByPurchasecontractIdList = purchaseDao.getPurchaserequisitionByPurchasecontractId(orderinfoId);\n\t\t\t\t\tif(staratCount == 0) {\n\t\t\t\t\t\tfor (int i = 0; i < PurchaserequisitionByPurchasecontractIdList.size(); i++) {\n\t\t\t\t\t\t\tPurchaserequisitionByPurchasecontractIdList.get(i).put(\"applySign\", 0);\n\t\t\t\t\t\t\tresult = purchaseDao.updatePurchaserequisitionIsApplySign(PurchaserequisitionByPurchasecontractIdList.get(i));\n\t\t\t\t\t\t\tif(result<0) {\n\t\t\t\t\t\t\t\tinfo.setMessage(\"操作失败\");\n\t\t\t\t\t\t\t\tinfo.setCode(\"error\");\n\t\t\t\t\t\t\t\tTransactionAspectSupport.currentTransactionStatus().setRollbackOnly();\n\t\t\t\t\t\t\t\treturn info;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tList<Map <String,Object>> PurchaseorderinfoList = purchaseDao.getPurchaseorderinfoById(orderinfoId);\n\t\t\t\t\tboolean isHave = false;\n\t\t\t\t\tfor (int i = 0; i < PurchaseorderinfoList.size(); i++) {\n\t\t\t\t\t\tif(PurchaseorderinfoList.get(i).get(\"serialID\").toString().equals(ret.get(\"serialID\").toString())) {\n\t\t\t\t\t\t\tisHave = true;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tisHave = false;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(isHave) {\n\t\t\t\t\t\tinfo = this.updatePurchaseorderinfoById(ret);\n\t\t\t\t\t\tif(info.getCode().equals(\"success\")) {\n\t\t\t\t\t\t\tupdateApplySignMap.put(\"applySign\",1);\n\t\t\t\t\t\t\tinfo = this.updatePurchaserequisitionIsApplySign(updateApplySignMap);\n\t\t\t\t\t\t}\n\t\t\t\t\t}else {\n\t\t\t\t\t\tinfo = this.addPurchaseorderinfo(ret);\n\t\t\t\t\t\tif(info.getCode().equals(\"success\")) {\n\t\t\t\t\t\t\tupdateApplySignMap.put(\"applySign\",1);\n\t\t\t\t\t\t\tinfo = this.updatePurchaserequisitionIsApplySign(updateApplySignMap);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tstaratCount += 1;\n\t\t\t\t}\n\t\t\t\tif(info.getCode().equals(\"error\")) {\n\t\t\t\t\tinfo.setMessage(\"操作失败003\");\n\t\t\t\t\tinfo.setCode(\"error\");\n\t\t\t\t\tTransactionAspectSupport.currentTransactionStatus().setRollbackOnly();\n\t\t\t\t\treturn info;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tinfo.setMessage(\"操作失败001\");\n\t\t\tinfo.setCode(\"error\");\n\t\t\tTransactionAspectSupport.currentTransactionStatus().setRollbackOnly();\n\t\t}\n\t\treturn info;\n\t}", "public Transaction() {\n }", "public Key insert(Transaction tx,Tuple t) throws RelationException;", "public PTPTransactionManager () {\n transactions = new HashMap<>();\n completeTransactions = new HashSet<>();\n }", "public void addWallet(Wallet wallet);", "@Transactional\n public void createTransaction(long transactionId, Transaction t) {\n log.trace(\"createTransaction {} {}\", transactionId, t);\n Preconditions.checkNotNull(t, \"TransactionEntity must not be null\");\n\n TransactionEntity entity = new TransactionEntity();\n entity.setId(transactionId);\n entity.setAmount(t.getAmount());\n entity.setType(t.getType());\n if (t.getParentId() != null) {\n // if a parent was added, verify it exists and add it to the entity\n TransactionEntity parent = transactionRepository.findOne(t.getParentId());\n if (parent == null) {\n throw new BadRequestException(\"parent not found\");\n }\n entity.setParent(parent);\n }\n\n log.debug(\"Saving a transaction {}\", entity);\n transactionRepository.save(entity);\n\n Set<Long> visited = new HashSet<>();\n TransactionEntity parent = entity.getParent();\n while (parent != null) {\n // cycles are not possible via the API, but if someone will mess with the underlying DB\n // it might happen. In such case, this would never end - causing thread leakage.\n // Therefore, cycle detection is a good practice.\n if (visited.contains(parent.getId())) {\n log.error(\"Cyclic transaction detected when adding transaction id {}: {}\", transactionId, visited);\n throw new ServerErrorException(\"cyclic transaction\");\n }\n visited.add(parent.getId());\n\n TransactionDescendant descendant = new TransactionDescendant();\n descendant.setParent(parent);\n descendant.setDescendant(entity);\n log.debug(\"Saving a descendant {}\", descendant);\n transactionDescendantRepository.save(descendant);\n parent = parent.getParent();\n }\n }", "Transaction createTransaction(Settings settings);", "void setTransactionId( long txId )\n {\n this.transactionId = txId;\n }", "@Override\n\tpublic void insertHistory(Map<String, Object> map) {\n\t\tapprovalDao.insertHistory(map);\n\t}", "private void createTx() throws Exception {\n PublicKey recipient = Seed.getRandomAddress();\n Transaction tx = new Transaction(wallet.pb, recipient, wallet.pr);\n//\t\tSystem.out.println(\"Created a tx\");\n txPool.add(tx);\n//\t\tcache.put(tx.txId, null);\n sendTx(tx);\n }", "public void updateTransPool(JsonObject block){\n JsonArray transactions = block.get(\"Transactions\").getAsJsonArray();\n \tint N = transactions.size();\n \tfor(int i=0; i<N; i++) {\n \t\tJsonObject Tx = transactions.get(i).getAsJsonObject();\n \t\tif(TxPool_new.contains(Tx))\n \t\t\tTxPool_new.remove(Tx);\n \t\tTxPool_used.add(Tx);\n }\n }", "public TransactionItem addTransactionItem(int transactionId, int productId, int quantity)\n\t{\n\t\tConnect con=Connect.getConnection();\n\t\tcon.executeQuery(\"USE sudutmeong\");\n\t\tTransactionItem x=new TransactionItem();\n\t\tx.setTransactionId(transactionId);\n\t\tx.setProductId(productId);\n\t\tx.setQuantity(quantity);\n\t\tString query = \"INSERT INTO transactionitem VALUES (\"+transactionId+\",\" + productId + \",\"+ quantity +\")\";\n\t\tcon.executeUpdate(query);\n\t\treturn x;\n\t}", "public TransID beginTransaction()\n {\n\t //TransID tid = new TransID();\n\t Transaction collect_trans = new Transaction(this);\n\t atranslist.put(collect_trans);\n\t return collect_trans.getTid();\n }", "@Test\n\tpublic void testAddTransaction(){\n setDoubleEntryEnabled(true);\n\t\tsetDefaultTransactionType(TransactionType.DEBIT);\n validateTransactionListDisplayed();\n\n\t\tonView(withId(R.id.fab_create_transaction)).perform(click());\n\n\t\tonView(withId(R.id.input_transaction_name)).perform(typeText(\"Lunch\"));\n\t\tonView(withId(R.id.input_transaction_amount)).perform(typeText(\"899\"));\n\t\tonView(withId(R.id.input_transaction_type))\n\t\t\t\t.check(matches(allOf(isDisplayed(), withText(R.string.label_receive))))\n\t\t\t\t.perform(click())\n\t\t\t\t.check(matches(withText(R.string.label_spend)));\n\n\t\tString expectedValue = NumberFormat.getInstance().format(-899);\n\t\tonView(withId(R.id.input_transaction_amount)).check(matches(withText(expectedValue)));\n\n int transactionsCount = getTransactionCount();\n\t\tonView(withId(R.id.menu_save)).perform(click());\n\n validateTransactionListDisplayed();\n\n List<Transaction> transactions = mTransactionsDbAdapter.getAllTransactionsForAccount(DUMMY_ACCOUNT_UID);\n assertThat(transactions).hasSize(2);\n Transaction transaction = transactions.get(0);\n\t\tassertThat(transaction.getSplits()).hasSize(2);\n\n assertThat(getTransactionCount()).isEqualTo(transactionsCount + 1);\n }", "Trade addTrade(String tradeId, Trade trade) throws OrderBookTradeException;", "ch.crif_online.www.webservices.crifsoapservice.v1_00.DebtEntry addNewDebts();", "@Override\n\tpublic Trainee addTrainee(Trainee t) {\n\t\tTrainee a=em.merge(t);\n\t\treturn a;\n\t}", "public JSONObject addTransaction(JSONObject message, Session session, Connection conn) {\n\t\ttransNotif = new JSONObject();\n\t\ttry {\n\t\t\tStatement st = conn.createStatement();\n\t\t\tdouble amount = message.getDouble(\"amountToAdd\");\n\t\t\tint userID = message.getInt(\"userID\");\n\t\t\tint budgetID = message.getInt(\"categoryID\");\n\t\t\tdouble latitude = message.getDouble(\"latitude\");\n\t\t\tdouble longitude = message.getDouble(\"longitude\");\n\t\t\tString details = message.getString(\"details\");\n\t\t\tString date = message.getString(\"date\");\n\t\t\tint auto = 0;\n\t\t\t\n\t\t\tif (message.getBoolean(\"automaticTransaction\")) {\n\t\t\t\tSystem.out.println(\"help\");\n\t\t\t\tauto = 1;\n\t\t\t}\n\t\t\t//latitude, longitude, details\n\t\t\tst.execute(Constants.SQL_INSERT_TRANSACTION + \"(\" + budgetID + \", \" + amount + \", '\" + details + \"', \" + latitude + \", \" + longitude +\", '\" + date + \"', \" + auto + \");\");\n\t\t\tResultSet rs = st.executeQuery(\"SELECT * FROM Budgets WHERE budgetID = \" + budgetID + \";\");\n//\t\t\tSystem.out.println(\"rs\");\n\t\t\tint bigBudgetID=0;\n\t\t\tdouble budgetSpent=0;\n\t\t\tdouble newBudgetSpent=0;\n\t\t\tdouble budgetAmount=0;\n\t\t\tString budgetName=\"\";\n\t\t\tif(rs.next()) {\n\t\t\t\tbigBudgetID = rs.getInt(\"bigBudgetID\");\n\t\t\t\tbudgetSpent = rs.getDouble(\"TotalAmountSpent\");\n\t\t\t\tnewBudgetSpent = budgetSpent + amount;\n\t\t\t\tbudgetAmount = rs.getDouble(\"BudgetAmount\");\n\t\t\t\tbudgetName = rs.getString(\"BudgetName\");\n\t\t\t\tSystem.out.println(bigBudgetID);\n\t\t\t}\n//\t\t\tSystem.out.println(\"rs\");\n\t\t\tResultSet rs1 = st.executeQuery(\"SELECT * FROM BigBudgets WHERE bigBudgetID = \" + bigBudgetID + \";\");\n//\t\t\tSystem.out.println(\"rs1\");\n\t\t\tdouble bigBudgetSpent = 0; double bigbudgetAmount = 0; double newBigBudgetSpent = 0;\n\t\t\tString bigbudgetName = \"\";\n\t\t\tint daysLeft = 0;\n\t\t\tString lnotification=\"\";\n\t\t\tif (rs1.next()) {\n\t\t\t\tbigBudgetSpent = rs1.getDouble(\"TotalAmountSpent\");\n\t\t\t\tnewBigBudgetSpent = bigBudgetSpent+amount;\n\t\t\t\tbigbudgetAmount = rs1.getDouble(\"BigBudgetAmount\");\n\t\t\t\tbigbudgetName = rs1.getString(\"BigBudgetName\");\n\t\t\t\tdaysLeft = rs1.getInt(\"BigBudgetDaysLeft\");\n\t\t\t\tlnotification = rs1.getString(\"LimitNotification\");\n\t\t\t}\n\t\t\tString[] lnList = lnotification.split(\" \");\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor (int i=0; i<lnList.length; i++) {\n\t\t\t\ttry {\n\t\t\t\t\tlist.add(Integer.parseInt(lnList[i]));\n\t\t\t\t} catch(NumberFormatException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tst.executeUpdate(\"UPDATE Budgets SET TotalAmountSpent = \" + newBudgetSpent + \" WHERE budgetID = \" + budgetID + \";\");\n\t\t\tSystem.out.println(\"update\");\n\t\t\tresponse = getData(conn, userID);\n\t\t\tst.executeUpdate(\"UPDATE BigBudgets SET TotalAmountSpent = \" + newBigBudgetSpent + \" WHERE bigBudgetID = \" + bigBudgetID + \";\");\n\t\t\t\n\t\t\tArrays.sort(list.toArray());\n\t\t\tboolean added = false;\n\t\t\tfor (int i=list.size()-1; i>=0; i--) {\n\t\t\t\tSystem.out.println(list.get(i));\n\t\t\t\tSystem.out.println(newBudgetSpent + \", \" + ((double)list.get(i)/100)*(budgetAmount) + \", \" + budgetSpent + \", \" + budgetAmount + \", \" + (newBudgetSpent > ((list.get(i)/100)*(budgetAmount))));\n\t\t\t\tif ((newBudgetSpent >= (((double)list.get(i)/100)*(budgetAmount))) && (budgetSpent < (((double)list.get(i)/100)*budgetAmount))) {\n\t\t\t\t\tresponse.put(\"notification\", \"yes\");\n\t\t\t\t\tresponse.put(\"notify\", \"You have now spent \" + list.get(i) + \"% of category \" + budgetName + \" which is in budget \" + bigbudgetName + \". You have \" + daysLeft + \" more days.\");\n\t\t\t\t\ti = -1;\n\t\t\t\t\tadded = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!added) {\n\t\t\t\tresponse.put(\"notification\", \"no\");\n\t\t\t}\n//\t\t\tif (newBudgetSpent >= ((budgetAmount)) && budgetSpent <= (budgetAmount)) {\n//\t\t\t\tresponse.put(\"notification\", \"yes\");\n//\t\t\t\tresponse.put(\"notify\", \"You have used all of your allotted amount in category \" + budgetName + \" which is in budget \" + bigbudgetName + \". You have \" + daysLeft + \" more days.\");\n//\t\t\t}\n//\t\t\telse if (newBudgetSpent > (0.95*(budgetAmount)) && budgetSpent <= (0.95*budgetAmount)) {\n//\t\t\t\tresponse.put(\"notification\", \"yes\");\n//\t\t\t\tresponse.put(\"notify\", \"You now have less than 5% left in category \" + budgetName + \" which is in budget \" + bigbudgetName + \". You have \" + daysLeft + \" more days.\");\n//\t\t\t}\n//\t\t\telse if (newBudgetSpent > (0.9*(budgetAmount)) && budgetSpent <= (0.9*budgetAmount)) {\n//\t\t\t\tresponse.put(\"notification\", \"yes\");\n//\t\t\t\tresponse.put(\"notify\", \"You now have less than 10% left in category \" + budgetName + \" which is in budget \" + bigbudgetName + \". You have \" + daysLeft + \" more days.\");\n//\t\t\t}\n//\t\t\telse if (newBudgetSpent > (0.8*(budgetAmount)) && budgetSpent <= (0.8*budgetAmount)) {\n//\t\t\t\tresponse.put(\"notification\", \"yes\");\n//\t\t\t\tresponse.put(\"notify\", \"You now have less than 20% left in category \" + budgetName + \" which is in budget \" + bigbudgetName + \". You have \" + daysLeft + \" more days.\");\n//\t\t\t}\n//\t\t\telse {\n//\t\t\t\tresponse.put(\"notification\", \"no\");\n//\t\t\t}\n\t\t\tif (response.getString(\"notification\").equals(\"no\")) {\n\t\t\t\ttransNotif = null;\n\t\t\t}\n\t\t\telse {\n\t\t\t\ttransNotif.put(\"notification\", \"yes\");\n\t\t\t\ttransNotif.put(\"notify\", response.getString(\"notify\"));\n\t\t\t}\n\t\t\tresponse.put(\"message\", \"addTransactionSuccess\");\n\t\t}\n\t\tcatch (SQLException | JSONException e) {\n\t\t\te.printStackTrace();\n\t\t\ttry {\n\t\t\t\tresponse.put(\"message\", \"addTransactionFail\");\n\t\t\t} catch (JSONException e1) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te1.printStackTrace();\n\t\t\t}\n\t\t\n\t\t}\n//\t\tdeleteAll(conn);\n\t\treturn response;\n\t}", "@Override\n\tpublic int createTransaction(BankTransaction transaction) throws BusinessException {\n\t\tint tran = 0;\n\t\t\n\t\ttry {\n\t\t\tConnection connection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"insert into dutybank.transactions (account_id, transaction_type, amount, transaction_date) values(?,?,?,?)\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\t\n\t\t\tpreparedStatement.setInt(1, transaction.getAccountid());\n\t\t\tpreparedStatement.setString(2, transaction.getTransactiontype());\n\t\t\tpreparedStatement.setDouble(3, transaction.getTransactionamount());\n\t\t\tpreparedStatement.setDate(4, new java.sql.Date(transaction.getTransactiondate().getTime()));\n\n\t\t\t\n\t\t\ttran = preparedStatement.executeUpdate();\n\t\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Some internal error has occurred while inserting data\");\n\t\t}\n\t\t\n\n\t\treturn tran;\n\t}", "public AccountingSystem(){\n accSystem = new HashMap<Integer, Transaction>();\n allTransactionsID = new ArrayList<Integer>();\n highestSalesMonth = new HashMap<Integer, Integer>();\n transactionByTime = new LinkedHashMap<Integer, LinkedList<Transaction>>();\n totalSalesCount = 0;\n totalReturnCount = 0;\n totalSaleProfit = 0.0;\n currentBuyID = -1;\n }", "private void setTransactions(\n int index, com.google.protobuf.ByteString value) {\n java.lang.Class<?> valueClass = value.getClass();\n ensureTransactionsIsMutable();\n transactions_.set(index, value);\n }", "@Override\n\tpublic void updateTransaction(Transaction transaction) {\n\n\t}", "@Override\n\tpublic void processTransaction(Transaction transactionObject) {\n\t\t\n\t\ttrasactionList.addLast(transactionObject);\n\t\t\n\t\tif ( transactionObject.getTransactionType() == 'C'){\n\t\t\t\n\t\t\tbalance -= transactionObject.getTransactionAmount(); \n\t\t\t\n\t\t}\n\t\t\n\t\telse if ( transactionObject.getTransactionType() == 'D'){\n\t\t\t\n\t\t\tbalance += transactionObject.getTransactionAmount(); \n\t\t}\n\t}", "void insert(String name, double transaction){\n\t\tint key = toInt(name);\r\n\t\t//changes the name to int for key \r\n\t\tint index = key%Table.length;\r\n\r\n\t\tfor(StockNode t=Table[index];t!=null;t=t.next){\r\n\t\t\t//looks if the stock is in the Table and if it is it updates the value of the Stock\r\n\t\t\tif(sameName(name,t.stockName)){\r\n\t\t\t\tt.transactions++;\r\n\t\t\t\tt.stockValue+=updateValue(t.stockValue,transaction);\r\n\t\t\t\tupdateMax(t);\r\n\t\t\t\tupdateMin(t);\r\n\t\t\t\tif(mostTrans.transactions<t.transactions){\r\n\t\t\t\t\t//changes the value of the most transated stock\r\n\t\t\t\t\tmostTrans=t;\r\n\t\t\t\t}\r\n\t\t\t\treturn;\r\n\t\t\t}\r\n\t\t}\r\n\t\t//if the stock is not in the table it adds it to the table\r\n\t\tTable[index] = new StockNode(name, updateValue(100, transaction), Table[index], 1);\r\n\t\telements++;\r\n\t\t//adds to the number of the elements\r\n\t\tif(mostTrans==null){\r\n\t\t\t//if the mostTrans variable is null it declares the first stock to that variable\r\n\t\t\tmostTrans=Table[index];\r\n\t\t}\r\n\t\t//updates the max, min and the load factor of the table\r\n\t\tupdateMax(Table[index]);\r\n\t\tupdateMin(Table[index]);\r\n\t\tupdateLoad();\r\n\t}", "@Override\r\n\tpublic void insertPurchase(Purchase Purchase) throws Exception {\n\t\t\r\n\t}", "void addTxnInProgressKeys(Set addSet, Set removeSet);", "@Override\n\tpublic void createTransaction(Transaction t) { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction(); \n\n\t\t/* save */ \n\t\tsession.save(t);\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\t}", "public Basket(Inventory inventory){\n myBasket = new HashMap<>();\n totalCost = 0;\n isPaid = false;\n Random randomGenerator = new Random();\n invoiceNumber = randomGenerator.nextInt(30000) + 1;\n this.inventory = inventory;\n }", "public Flowable<List<Transaction>> addTransactions(List<Transaction> transactions) {\n return executeTransaction((realm, subscriber) -> {\n realm.copyToRealmOrUpdate(transactions);\n subscriber.onNext(transactions);\n });\n }", "@Override\r\n\tpublic Trainee addTrainee(Trainee t) {\n\t\treturn dao.addTrainee(t);\r\n\t}", "@Override\n\tpublic Transaction update(Integer transactionId, Transaction transaction) {\n\t\treturn null;\n\t}", "@JsonProperty(\"transaction\")\n public void setTransaction(List<Transaction> transaction) {\n this.transactionList = transaction;\n }", "public Entry add(Block from, Block to) {\n\t\tEntry mapping = new Entry(from, to);\n\t\tsuper.add(mapping);\n\t\treturn mapping;\n\t}" ]
[ "0.7490233", "0.70774466", "0.6445925", "0.644337", "0.6378563", "0.62512606", "0.6201874", "0.62002784", "0.61927986", "0.61767876", "0.61725056", "0.6140397", "0.6104937", "0.6102838", "0.597785", "0.5973338", "0.5934054", "0.59192044", "0.5911957", "0.5891303", "0.5866482", "0.5858556", "0.58326274", "0.58240664", "0.5817343", "0.5799297", "0.5792863", "0.5783883", "0.5752861", "0.5707085", "0.56638145", "0.5657209", "0.56495595", "0.56164974", "0.5585626", "0.55784124", "0.5557641", "0.55372876", "0.5513645", "0.550649", "0.5497939", "0.5473622", "0.5471634", "0.54391766", "0.5418351", "0.5412673", "0.54122764", "0.53961647", "0.5364328", "0.5350681", "0.5341738", "0.527488", "0.5267825", "0.5267236", "0.5262145", "0.5253134", "0.5251251", "0.52434546", "0.5224314", "0.5218472", "0.5217064", "0.5206753", "0.51473707", "0.514723", "0.514587", "0.51436055", "0.5127695", "0.511045", "0.5097535", "0.50792825", "0.5077715", "0.5062588", "0.5062575", "0.5058905", "0.5058823", "0.5056708", "0.5025934", "0.50237054", "0.5016106", "0.5007578", "0.50001836", "0.49995047", "0.49874738", "0.49837044", "0.49834877", "0.49708638", "0.49688703", "0.495751", "0.4954566", "0.49500033", "0.4948799", "0.49487787", "0.49459133", "0.4939484", "0.49394402", "0.4933033", "0.4932771", "0.4929376", "0.4923638", "0.4919787", "0.49175903" ]
0.0
-1
returns an int value of the id of the bought car
public int getCurrentBuyID(){ return currentBuyID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.Long getCarId() {\n return carId;\n }", "public java.lang.Long getCarId() {\n return carId;\n }", "public String getCarid() {\n return carid;\n }", "int getTruckid();", "int getTruckid();", "int getTruckid();", "int getTruckid();", "int getTruckid();", "int getTruckid();", "public int getCar() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((Integer) __getCache(\"car\")).intValue());\n }", "long getTruckId();", "public int getId() {\n//\t\tif (!this.isCard())\n//\t\t\treturn 0;\n\t\treturn id;\n\t}", "public abstract Integer getCompteId();", "public Integer getCarNum() {\n return carNum;\n }", "public Integer getCrowdId() {\n return crowdId;\n }", "public int getCaroserieId(String denumire) {\n c = db.rawQuery(\"select id from caroserii where denumire='\" + denumire + \"'\", new String[]{});\n int id=0;\n while(c.moveToNext()){\n id= c.getInt(0);\n }\n return id;\n }", "public long getVocubalaryId();", "public int getDwellingID();", "public Integer getCarUserId() {\n return carUserId;\n }", "public Integer getVehicleId() {\n return vehicleId;\n }", "public long getCar() {\r\n return car;\r\n }", "Integer getId();", "Integer getId();", "Integer getId();", "String getIdNumber();", "public void setCarId(java.lang.Long value) {\n this.carId = value;\n }", "Integer getID();", "Integer getID();", "public int getVehicleId() {\n return vehicleId;\n }", "int getIdNum();", "public int getId()\r\n/* 53: */ {\r\n/* 54: 79 */ return this.idDetalleComponenteCosto;\r\n/* 55: */ }", "public java.lang.Integer getId_rango();", "private int ricavaID(String itemSelected){\n String ogg = ricavaNome(itemSelected);\n String schema = ricavaSchema(itemSelected);\n int id = -1;\n \n Statement stmt; \n ResultSet rst;\n \n try{\n stmt = Database.getDefaultConnection().createStatement();\n \n if(modalita == TRIGGER)\n rst = stmt.executeQuery(\"SELECT T.id_trigger FROM trigger1 T WHERE T.nomeTrigger = '\" + ogg + \"' AND T.schema = '\" + schema + \"'\");\n else\n rst = stmt.executeQuery(\"SELECT P.ID_procedura FROM Procedura P WHERE P.nomeProcedura = '\" + ogg + \"' AND P.schema = '\" + schema + \"'\");\n \n while(rst.next()){\n id = rst.getInt(1);\n }\n \n stmt.close();\n }catch(SQLException e){\n mostraErrore(e);\n }\n \n return id;\n }", "public long getItemShopBasketId();", "@Override\n\tpublic long getId() {\n\t\treturn _buySellProducts.getId();\n\t}", "public String getCarNo() {\n return carNo;\n }", "int getMoneyID();", "int getMoneyID();", "int getMoneyID();", "private static String GetNewID() {\n DBConnect db = new DBConnect(); // Create a database connection\n String id = db.SqlSelectSingle(\"SELECT vendor_id FROM vendor ORDER BY vendor_id DESC LIMIT 1\"); // First try to get the top ID.\n if (id.equals(\"\")) // This is incase there are no registered vendors in the software\n id = \"001\";\n else\n id = String.format(\"%03d\", Integer.parseInt(id) + 1); // This will increment the top ID by one then format it to have three digits \n db.Dispose(); // This will close our database connection for us\n return id;\n }", "public int getId() {\n if (!this.registered)\n return -1;\n return id;\n }", "int getBonusMoneyID();", "public Integer getCarparktypeid() {\n return carparktypeid;\n }", "public int getTruckid() {\n return truckid_;\n }", "public int getTruckid() {\n return truckid_;\n }", "public int getTruckid() {\n return truckid_;\n }", "public int getTruckid() {\n return truckid_;\n }", "public int getTruckid() {\n return truckid_;\n }", "public int getTruckid() {\n return truckid_;\n }", "public long getShopBasketId();", "public int getId(){\n if (ID != null) {\n int i = Integer.parseInt(ID);\n return i;\n }\n return 0;\n }", "public int id() {\n return _num;\n }", "int getBId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "long getId();", "public int getLBR_BankAccount_Carteira_ID () \n\t{\n\t\tInteger ii = (Integer)get_Value(COLUMNNAME_LBR_BankAccount_Carteira_ID);\n\t\tif (ii == null)\n\t\t\t return 0;\n\t\treturn ii.intValue();\n\t}", "private int getId() {\r\n\t\treturn id;\r\n\t}", "int getMyId();", "public int getId() {\n\t\treturn Integer.parseInt(Id);\n\t}", "public int getRaterId();", "public String getCarNo() {\n\t\treturn carNo;\n\t}", "public byte getId() {\n return 2;\n }", "public java.lang.String getCar_number() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException {\n return (((java.lang.String) __getCache(\"car_number\")));\n }", "public Number getID();", "public Integer getCarparksurveyinfoid() {\n return carparksurveyinfoid;\n }", "int getPokedexIdValue();", "int getPokedexIdValue();", "public int getTruckid() {\n return truckid_;\n }", "public int getTruckid() {\n return truckid_;\n }", "public int getTruckid() {\n return truckid_;\n }", "public int getTruckid() {\n return truckid_;\n }", "public int getTruckid() {\n return truckid_;\n }", "public int getTruckid() {\n return truckid_;\n }", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();", "int getID();" ]
[ "0.71669513", "0.7126307", "0.6927079", "0.691027", "0.691027", "0.691027", "0.691027", "0.691027", "0.691027", "0.68969977", "0.6887759", "0.671851", "0.6588559", "0.6571671", "0.6570678", "0.650488", "0.6462174", "0.64272636", "0.63605195", "0.63491285", "0.63458556", "0.6344658", "0.6344658", "0.6344658", "0.6325455", "0.6320201", "0.6312597", "0.6312597", "0.6287425", "0.62836653", "0.628185", "0.62763983", "0.62119603", "0.6200789", "0.6195289", "0.61926067", "0.61882734", "0.61882734", "0.61882734", "0.618049", "0.61760616", "0.61723506", "0.6169912", "0.61608905", "0.61608905", "0.61608905", "0.61608905", "0.61608905", "0.61608905", "0.6159432", "0.61575717", "0.6151472", "0.6144108", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61412716", "0.61367846", "0.6098699", "0.6096804", "0.6088516", "0.6079462", "0.60771126", "0.60750616", "0.6073826", "0.60574985", "0.6054012", "0.6039418", "0.6039418", "0.6028403", "0.6028403", "0.6028403", "0.6028403", "0.6028403", "0.6028403", "0.6024879", "0.6024879", "0.6024879", "0.6024879", "0.6024879", "0.6024879", "0.6024879", "0.6024879", "0.6024879", "0.6024879" ]
0.65123487
15
returns transaction based on id
public Transaction getTransaction(int id){ return accSystem.get(id); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Transaction get(String id) throws Exception;", "Transaction getTransctionByTxId(String txId);", "public Transaction getById(String id) throws Exception;", "public Transaction getTransactionById(Integer id) throws MiddlewareQueryException;", "Transaction findTransactionById(Long id);", "public Transaction getTransactionById(int id) throws SQLException {\n String sql = \"SELECT * FROM LabStore.Transaction_Detail WHERE id = ?\";\n Transaction transaction = new Transaction();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n preStmt.setInt(1, id);\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n transaction.setId(id);\n transaction.setUser(userDbManager.getUser(rs.getInt(\"uId\")));\n transaction.setPurchaseDetail(purchaseDetailDbManager\n .getPurchaseDetailById(rs.getInt(\"pdId\")));\n transaction.setCount(rs.getInt(\"count\"));\n transaction.setTime(rs.getTimestamp(\"time\"));\n }\n }\n }\n\n return transaction;\n }", "public Optional<Transaction> findTransactionById(int id);", "@Override\n\tpublic Transaction findTransactionById(int id) {\n\t\treturn null;\n\t}", "Transaction selectByPrimaryKey(Long id);", "BusinessTransaction get(String tenantId, String id);", "@Override\n\t\tpublic AccountTransaction findById(int id) {\n\t\t\treturn null;\n\t\t}", "UUID getTransactionId();", "public TransactionObj getTransaction(String sID){\n\t\treturn hmTransaction.get(sID);\n\t}", "public TransactionItem get(Long id) {\n return (TransactionItem)get(TransactionItem.class, id);\n }", "@GetMapping(\"/{id}\")\n\tpublic Transaction getTransactionById(@PathVariable Long id) {\n\t\tTransaction transaction = null;\n\t\t\n\t\ttry {\n\t\t\ttransaction = transactionService.getTransactionById(id);\n\t\t}\n\t\tcatch (TransactionNotFoundException e) {\n\t\t\tthrow new TransactionNotFoundException(id);\n\t\t}\n\t\tcatch (UserDoesNotOwnResourceException e) {\n\t\t\tthrow new UserDoesNotOwnResourceException();\n\t\t}\n\t\t\n\t\treturn transaction;\n\t}", "String getTransactionID();", "public TransactionItem find(Long id) {\n return (TransactionItem)find(TransactionItem.class, id);\n }", "@Override\n\tpublic Transaction read(int id) {\n\t\treturn null;\n\t}", "java.lang.String getTxId();", "public long getTransactionId();", "public Transaction getTransaction(String transactionId) throws LedgerException {\n Iterator<Map.Entry<Integer, Block>> blocks = listBlocks();\n\n // Check committed Blocks\n while( blocks.hasNext() ) {\n Block block = blocks.next().getValue();\n Transaction transaction = block.getTransaction(transactionId);\n\n // Transaction was found\n if (transaction != null) {\n return transaction;\n }\n }\n\n throw new LedgerException(\"get transaction\", \"Transaction \" + transactionId + \" does not exist.\");\n }", "public Transaction findTransaction(long transactionId) {\n log.trace(\"findTransaction {}\", transactionId);\n TransactionEntity entity = transactionRepository.findOne(transactionId);\n if (entity == null) {\n throw new NotFoundException(\"not found\");\n }\n\n Transaction transaction = new Transaction();\n transaction.setAmount(entity.getAmount());\n transaction.setType(entity.getType());\n if (entity.getParent() != null) {\n transaction.setParentId(entity.getParent().getId());\n }\n return transaction;\n }", "String getTransactionId();", "String getTransactionId();", "long getTxid();", "@Override\n\tpublic WxOrderTrans selectOrderTrans(Integer id) {\n\t\treturn orderMapper.selectOrderTrans(id);\n\t}", "public int getTransactionId() {\n return transactionId;\n }", "public Object getTransactionId() throws StandardException;", "Transaction getCurrentTransaction();", "public CleaningTransaction findByItemId(Long id);", "@Override\n\tpublic MarketTransaction findMarketTransaction(int id) {\n\t\treturn null;\n\t}", "@RequestMapping(value = \"/transactionservice/transaction/{transaction_id}\", method=RequestMethod.GET, produces = \"application/json\")\n\t@ResponseBody\n\tpublic Transaction getTransaction(@PathVariable long transaction_id) {\n\t\tif(transactions.size() > transaction_id) {\n\t\t\treturn transactions.get((int) transaction_id);\n\t\t} else {\n\t\t\tthrow new TransactionNotFoundException(transaction_id);\n\t\t}\n\t}", "@Override\n\tpublic BankTransaction retrieveTransaction(int account_id) throws BusinessException {\n\t\tBankTransaction transaction = null;\n\t\tConnection connection;\n\t\ttry {\n\t\t\tconnection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select transaction_id, account_id, transaction_type, amount, transaction_date from dutybank.transactions where account_id=?\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\t\t\tpreparedStatement.setInt(1, account_id);\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\tif (resultSet.next()) {\n\t\t\t\ttransaction = new BankTransaction();\n\t\t\t\ttransaction.setTransactionid(resultSet.getInt(\"transaction_id\"));\n\t\t\t\ttransaction.setAccountid(resultSet.getInt(\"account_id\"));\n\t\t\t\ttransaction.setTransactiontype(resultSet.getString(\"transaction_type\"));\n\t\t\t\ttransaction.setTransactionamount(resultSet.getDouble(\"amount\"));\n\t\t\t\ttransaction.setTransactiondate(resultSet.getDate(\"transaction_date\"));\n\t\t\t\t\n\t\t\t} else {\n\t\t\t\tthrow new BusinessException(\"Some Internal Error Occurred!\");\n\t\t\t}\n\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\tthrow new BusinessException(\"Some exception has occurred while fetching transactions\");\n\t\t}\n\t\treturn transaction;\n\t}", "@Transactional(readOnly = true)\n public Optional<OrderTransactionDTO> findOne(Long id) {\n log.debug(\"Request to get OrderTransaction : {}\", id);\n return orderTransactionRepository.findById(id)\n .map(orderTransactionMapper::toDto);\n }", "public Set<Transaction> getTransactionsByLotId(Integer id) throws MiddlewareQueryException;", "public int getId() {\n return txId;\n }", "public long getTransactionid() {\n return transactionid;\n }", "public BookingInfoEntity getBookingById(int id, Transaction transaction) {\n BookingInfoEntity bookingInfoEntity = null;\n\n if (transaction.getPaymentMode().equalsIgnoreCase(\"UPI\") ||\n transaction.getPaymentMode().equalsIgnoreCase(\"CARD\") ) {\n Optional<BookingInfoEntity> optionalBookingInfoEntity = bookingRepository.findById(id);\n if (!optionalBookingInfoEntity.isPresent()) {\n throw new BookingIDNotFoundException(\"Invalid Booking Id\");\n } else {\n bookingInfoEntity = optionalBookingInfoEntity.get();\n transaction.setBookingId(bookingInfoEntity.getBookingId());\n\n //Call PaymentService Api\n transaction = callPaymentServiceApi(transaction);\n bookingInfoEntity.setTransactionId(transaction.getTransactionId());\n bookingInfoEntity = bookingRepository.save(bookingInfoEntity);\n try {\n \t\t\trunProducer(1, bookingInfoEntity.toString());\n \t\t} catch (InterruptedException e) {\n \t\t\te.printStackTrace(); //Internally throw 500 error\n \t\t}\n }\n } else {\n throw new InvalidPaymentModeException(\"Invalid mode of payment\");\n }\n return bookingInfoEntity;\n }", "public String getTransactionId() {\n return transactionId;\n }", "public String getTransactionId() {\n return transactionId;\n }", "@Override\n //@Transactional(readOnly = true)\n public ProjectTransactionRecordDTO findOne(Long id) {\n log.debug(\"Request to get ProjectTransactionRecord : {}\", id);\n ProjectTransactionRecord projectTransactionRecord = projectTransactionRecordRepository.findOne(id);\n return projectTransactionRecordMapper.toDto(projectTransactionRecord);\n }", "@GetMapping(\"/rest/{id}\")\n\t\tpublic @ResponseBody Optional<Transaction> findTranscationRest(@PathVariable(\"id\") Long transactionId) {\n\t\t\tUserDetails user = (UserDetails) SecurityContextHolder.getContext()\n\t\t\t\t\t.getAuthentication().getPrincipal();\n\t\t\tString username = user.getUsername();\n\t\t\tUser currentUser = userRepo.findByUsername(username);\n\t\t\tList<Transaction> transactions = traRepo.findByUser(currentUser);\n\t\t\tfor(int i = 0; i < transactions.size(); i++) {\n\t\t\t\tif(transactions.get(i).getId() == transactionId) {\n\t\t\t\t\ttransactionId = transactions.get(i).getId();\n\t\t\t\t\treturn traRepo.findById(transactionId);\n\t\t\t\t\t\n\t\t\t\t} \n\t\t\t}\n\t\t\treturn Optional.empty();\n\t\t}", "Transaction createTransaction();", "public Long getTransactionId() {\n return this.transactionId;\n }", "public int getTransactionID() {\r\n return transactionID;\r\n }", "PaymentTrade selectByPrimaryKey(String id);", "TradeItem getTradeItem(long id);", "public static void getUserTransactions(String id) {\n APICalls invocations = getRetrofitEngine().create(APICalls.class);\n Call<UserTransactionsDAO> call = invocations.getUserTransactions();\n call.enqueue(new retrofit2.Callback<UserTransactionsDAO>() {\n @Override\n public void onResponse(Call<UserTransactionsDAO> call, Response<UserTransactionsDAO> response) {\n BankCraftApplication.getInstance().getEventBus().post(new GetUserTransactionsResponseEvent(response.body()));\n }\n\n @Override\n public void onFailure(Call<UserTransactionsDAO> call, Throwable t) {\n BankCraftApplication.getInstance().getEventBus().post(new GetUserTransactionsResponseEvent(t.getMessage()));\n }\n });\n }", "public String getTransactionId() {\n return this.transactionId;\n }", "public int getTransactionId() {\n\t\treturn transactionId;\n\t}", "DangerMerchant selectByPrimaryKey(Integer id);", "@Override\r\n\tpublic XftPayment get(Integer id) {\n\t\treturn xftPaymentMapper.selectByPrimaryKey(id);\r\n\t}", "public String getTransactionId()\n\t{\n\t\treturn transactionId;\n\t}", "Transaction getTransaction() { \r\n return tx;\r\n }", "@JsonProperty(\"id\")\n public TransactionId getId() {\n return id;\n }", "public Vector<TransactionItem> getTransactionItem(int transactionId)\n\t{\n\t\tVector<TransactionItem> y= new Vector<TransactionItem>(); \n\t\tVector<TransactionItem> item= new Vector<TransactionItem>(); \n\t\tConnect con=Connect.getConnection();\n\t\tcon.executeQuery(\"USE sudutmeong\");\n\t\tResultSet rs = con.executeQuery(\"SELECT * FROM TransactionItem\");\n\n\t\ttry {\n\n\t\t\twhile(rs.next()) {\n\t\t\t\tTransactionItem x=new TransactionItem();\n\t\t\t\tx.setTransactionId(rs.getInt(\"TransactionId\"));\n\t\t\t\tx.setProductId(rs.getInt(\"productId\"));\n\t\t\t\tx.setQuantity(rs.getInt(\"quantity\"));\n\t\t\t\ty.add(x);\n\n\t\t\t}\n\t\t\n\t\t\tfor(int i=0;i<y.size();i++)\n\t\t\t{\n\t\t\t\tint id=y.get(i).getTransactionId();\n\t\t\t\tif(id==transactionId)\n\t\t\t\t{\n\t\t\t\t\tTransactionItem x=new TransactionItem();\n\t\t\t\t\tx.setTransactionId(y.get(i).getTransactionId());\n\t\t\t\t\tx.setProductId(y.get(i).getProductId());\n\t\t\t\t\tx.setQuantity(y.get(i).getQuantity());\n\t\t\t\t\titem.add(x);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn item;\n\t}", "public Long getTransactionId() {\n\t\treturn transactionId;\n\t}", "public long getTransactionID() {\r\n return transactionID;\r\n }", "protected String getTransactionId() {\n return transactionId;\n }", "public Transaction getTransaction()\n {\n return transaction;\n }", "public java.lang.String getTransactionId() {\n return transactionId;\n }", "public java.lang.String getTransactionId() {\n return transactionId;\n }", "public void createTransaction(Transaction trans);", "public String getTransactionId() {\n\t\treturn transactionId;\n\t}", "public String getTransactionId() {\n\t\treturn transactionId;\n\t}", "Transaction createTransaction(Settings settings);", "public Account getAccountByID(int id)//This function is for getting account for transfering amount\r\n {\r\n return this.ac.stream().filter(ac1 -> ac1.getAccId()==id).findFirst().orElse(null);\r\n }", "public String getTransId() {\n\t\treturn transId;\n\t}", "public String getTransactionID() {\n\t return this.transactionID;\n\t}", "public CustomerPurchase getById(Integer id) throws SQLException;", "public java.lang.String getTransactionId() {\r\n return transactionId;\r\n }", "@Override\r\n\tpublic Transaction getTran(int tranNo) throws Exception {\n\t\treturn tranDao.selectTran(tranNo);\r\n\t}", "Purchase retrieve(Long id) throws SQLException, DAOException;", "public long getTransactionId() {\n return _sTransaction.getTransactionId();\n }", "public java.lang.String getTransactionId() {\n return transactionId;\n }", "public java.lang.String getTransactionId() {\n return transactionId;\n }", "public <T> PersistableDataObject<T> queryById(final Serializable id) {\n PersistableDataObject<T> retVal = txTemplate\n .execute(new TransactionCallback<PersistableDataObject<T>>() {\n @Override\n @SuppressWarnings(\"unchecked\")\n public PersistableDataObject<T> doInTransaction(\n TransactionStatus status) {\n return (PersistableDataObject<T>) getHibernateTemplate()\n .get(daoClass, id);\n }\n });\n return retVal;\n }", "Payment selectByPrimaryKey(Long id);", "@Override\r\n\t@Transactional\r\n\tpublic Transactions getTransaction() {\r\n\r\n\t\tArrayList<Transactions> closedTransactions=null;\r\n\t\tif(closedTransactions == null)\r\n\t\t{\r\n\t\tclosedTransactions = new ArrayList<Transactions>();\r\n\t\tclosedTransactions = this.getClosedTransactions();\r\n\t\t}\r\n\r\n\r\n\t\tif (index < closedTransactions.size()) {\r\n\t\t\tTransactions transaction = closedTransactions.get(index++);\r\n\t\t\treturn transaction;\r\n\t\t} else {\r\n\t\t\treturn null;\r\n\t\t}\r\n\t}", "public ArrayList<Products> getTransaction(String transID){\n\t\t\n\t\tArrayList<Products> transaction = transactions.get(transID);\n\t\ttransactions.remove(transID); \n\t\treturn transaction;\n\t\t\n\t}", "public void deleteTransactionById(int id);", "@Test\n public void retrieveTransactionTest() throws ApiException {\n Long loanId = null;\n Long transactionId = null;\n GetSelfLoansLoanIdTransactionsTransactionIdResponse response = api.retrieveTransaction(loanId, transactionId);\n\n // TODO: test validations\n }", "public final static Transaction getCurrentTransaction() {\n return (Transaction) transactionTable.get();\n }", "Long getAmount(Integer id) throws Exception;", "Transmission getTransmission(Long transmissionId);", "public Order findOne(Integer id) {\r\n\t\tlog.info(\"Request to finde Order : \" + id);\r\n\t\treturn orders.stream().filter(order -> order.getOrderId().equals(id)).findFirst().get();\r\n\t}", "PurchasePayment selectByPrimaryKey(Long id);", "@Transactional(readOnly = true) \n public Tbc_fazenda findOne(Long id) {\n log.debug(\"Request to get Tbc_fazenda : {}\", id);\n Tbc_fazenda tbc_fazenda = tbc_fazendaRepository.findOne(id);\n return tbc_fazenda;\n }", "Contract findById(int id);", "public Payment getPayment(long id) {\n SQLiteDatabase db = this.getReadableDatabase();\n\n Cursor cursor = db.query(tableName,\n new String[]{Payment.COLUMN_ID, Payment.COLUMN_NAME, Payment.COLUMN_PRICE, Payment.COLUMN_DETAILS, Payment.COLUMN_TIMESTAMP},\n Payment.COLUMN_ID + \"=?\", new String[]{String.valueOf(id)}, null, null, null, null);\n\n if (cursor != null)\n cursor.moveToFirst();\n\n // prepare payment object\n Payment payment = new Payment(\n cursor.getInt(cursor.getColumnIndex(Payment.COLUMN_ID)),\n cursor.getString(cursor.getColumnIndex(Payment.COLUMN_NAME)),\n cursor.getString(cursor.getColumnIndex(Payment.COLUMN_PRICE)),\n cursor.getString(cursor.getColumnIndex(Payment.COLUMN_DETAILS)),\n cursor.getString(cursor.getColumnIndex(Payment.COLUMN_TIMESTAMP)));\n\n // close the db connection\n cursor.close();\n\n return payment;\n }", "public Trasllat getById(Long id) throws InfrastructureException {\r\n\t\tTrasllat trasllat;\r\n\t\ttry {\r\n\t\t\tlogger.debug(\"getById ini\");\r\n\t\t\ttrasllat = (Trasllat)getHibernateTemplate().load(Trasllat.class, id);\t\t\t\r\n\t\t} catch (HibernateException ex) {\r\n\t\t\tlogger.error(\"getById failed\", ex);\r\n\t\t\tthrow new InfrastructureException(ex);\r\n\t\t}\r\n\t\tlogger.debug(\"getById fin\");\r\n\t\treturn trasllat;\r\n\t}", "public Transaction getTransaction() {\n return transaction;\n }", "public Item getByID(Integer id) {\r\n Item item = null;\r\n //Transaction trans = null;\r\n Session session = HibernateUtil.getSessionFactory().openSession();\r\n\r\n try {\r\n //trans = session.beginTransaction();\r\n\r\n item = (Item) session.get(Item.class, id);\r\n\r\n //trans.commit();\r\n } catch (HibernateException e) {\r\n //if (trans != null) { trans.rollback(); }\r\n e.printStackTrace();\r\n } finally {\r\n session.close();\r\n }\r\n return item;\r\n }", "com.google.protobuf.ByteString\n getTxIdBytes();", "public TransactionResponse getTransactionByIdAndType(String id, String type) throws ParseException {\n TransactionResponse response = new TransactionResponse();\n Predicate<Transaction> byId = t -> t.getId().equals(id);\n Predicate<Transaction> byType = t -> t.getType().equals(type);\n response.setTransaction(idAndTypefilterTransaction(byType, byId));\n return response;\n }", "@DeleteMapping(\"/{id}\")\n\tpublic Transaction deleteTransactionById(@PathVariable Long id) {\n\t\tTransaction deletedTransaction = null;\n\t\t\n\t\ttry {\n\t\t\tdeletedTransaction = transactionService.deleteTransactionById(id);\n\t\t} \n\t\tcatch (TransactionNotFoundException e) {\n\t\t\tthrow new TransactionNotFoundException(id);\n\t\t}\n\t\tcatch (UserDoesNotOwnResourceException e) {\n\t\t\tthrow new UserDoesNotOwnResourceException();\n\t\t}\n\t\t\n\t\treturn deletedTransaction;\n\t}", "public String getTransaction() {\n return transaction;\n }", "@Override\n\tpublic List<TransactionHistory> getTransactionByUserId(String id, int state) {\n\t\tList<TransactionHistory> result = null;\n\t\t\n\t\tTypedQuery<TransactionHistory> query = em.createQuery(\"SELECT t FROM TransactionHistory t WHERE (t.sendAccount.id = :id \"\n\t\t\t\t+ \" OR t.receiveAccount.id = :id) AND t.state.idState = :state\", TransactionHistory.class);\n\t\tquery.setParameter(\"id\", id);\n\t\tquery.setParameter(\"state\", state);\n\t\tresult = query.getResultList();\n\t\t\n\t\treturn result;\n\t}", "public CleaningTransaction findByCustomerId(Long id);", "@Transactional(readOnly = true)\n DataRistorante getByID(String id);" ]
[ "0.81829435", "0.8071509", "0.8048383", "0.79053295", "0.7891376", "0.78569734", "0.7523358", "0.7519809", "0.74591815", "0.7141542", "0.7067789", "0.7024289", "0.70218086", "0.70159537", "0.6964705", "0.68212676", "0.6807845", "0.67439705", "0.6740719", "0.6714601", "0.6713345", "0.6698079", "0.66598153", "0.66598153", "0.66420853", "0.66180634", "0.6511183", "0.6507378", "0.6488823", "0.64281577", "0.64218175", "0.64166033", "0.6335002", "0.63193715", "0.62797165", "0.6255474", "0.6253632", "0.6238988", "0.6225814", "0.6225814", "0.622158", "0.6220741", "0.6164752", "0.6159074", "0.6155541", "0.61482793", "0.61220634", "0.61178005", "0.610567", "0.60946804", "0.60931134", "0.6086263", "0.60745156", "0.6063628", "0.60559815", "0.6046964", "0.60304743", "0.60278535", "0.60123396", "0.59976286", "0.5967651", "0.5967651", "0.5967351", "0.59607476", "0.59607476", "0.5946884", "0.5942674", "0.59296376", "0.5928131", "0.59054637", "0.5899359", "0.5898226", "0.58896995", "0.5882318", "0.5867363", "0.5867363", "0.5852367", "0.5847818", "0.5843493", "0.580861", "0.5801953", "0.57959163", "0.5792791", "0.5780103", "0.57790256", "0.5773893", "0.5769225", "0.5762348", "0.5758957", "0.5747277", "0.5738182", "0.57357657", "0.5729245", "0.5725737", "0.5707712", "0.5705651", "0.57016265", "0.57013327", "0.5685954", "0.5676714" ]
0.7861205
5
returns true if the vin is valid else false
public boolean checkKeyValue(Integer vinKey){ return accSystem.containsKey(vinKey); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private boolean isUniqueVin(String vin) {\n for (Car c: cars) {\n if (vin.equals(c.getVin())) {\n return false;\n }\n }\n // did not match any car == unique\n return true;\n }", "public boolean validateVSVID(String vsvId);", "public boolean isVines() {\n return this.type == Type.VINES;\n }", "public String getVin() {\r\n return vin;\r\n }", "public String getVin() {\r\n return vin;\r\n }", "public boolean ValidarValesConORC()\n {\n final Integer contInteger;\n return false;\n\n }", "public boolean isValid()\r\n {\r\n \treturn this.vp.data != null;\r\n }", "private boolean validateVisa() {\r\n\t\tString creditCardNumber = getCreditCardNumber();\r\n\t\t// checking the card number length\r\n\t\tif (creditCardNumber.length() != 13 && creditCardNumber.length() != 16 && creditCardNumber.length() != 19) {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\t// checking the validity of the credit card number\r\n\t\tif (creditCardNumber.charAt(0) != '4') {\r\n\t\t\treturn false;\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public String getVin() {\n\t\treturn vin;\n\t}", "public void setVin(String vin) {\r\n this.vin = vin == null ? null : vin.trim();\r\n }", "public boolean checkInvariant(String INVname) {\n\t\t\n\t\ttry {\n\t\t\tMethod m = this.getClass().getDeclaredMethod(INVname);\n\t\t\treturn (boolean) m.invoke(this);\n\t\t\t\t\t\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 false;\n\t\n\t}", "public boolean checkInvariant(String INVname) {\n\t\t\n\t\ttry {\n\t\t\tMethod m = this.getClass().getDeclaredMethod(INVname);\n\t\t\treturn (boolean) m.invoke(this);\n\t\t\t\t\t\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 false;\n\t\n\t}", "public void setVin(String vin) {\n\t\tthis.vin = vin == null ? null : vin.trim();\n\t}", "public boolean isValidVx(double vx) {\n\t\treturn ((-getVxmax() <= vx && vx <= -getVxi())\n\t\t\t\t|| (vx == 0)\n\t\t\t\t|| (getVxi() <= vx && vx <= getVxmax()));\n\t}", "private boolean isCarAlreadyExisting(final String vin) {\n for (Car car : cars) {\n if (car.getVin().equals(vin)) {\n return true;\n }\n }\n return false;\n }", "public boolean verificaTrasicaoVazia(){\n\n //verifica se dentro das transicoes tem alguma saindo com valor vazio;\n for (int i = 0; i < this.transicoes.size(); i++) {\n if(this.transicoes.get(i).simbolo.equals(Automato_Servico.valorVazio)){\n return true;\n }\n }\n return false;\n }", "@Override\r\n\tpublic boolean validateVendor(Vendor vendor) {\n\t\tSession session = sessionFactory.openSession();\r\n\t\tQuery query=session.createQuery(\"select o from Vendor o where o.vendorId=:vendorId and o.vendorPassword=:vendorPassword\");\r\n\t\tquery.setString(\"vendorId\",vendor.getVendorId());\r\n\t\tquery.setString(\"vendorPassword\",vendor.getVendorPassword());\r\n\t\tboolean vendorExists=true;\r\n\t\tList<Vendor> vendorList=query.list();\r\n\t\tif(vendorList.isEmpty())\r\n\t\t\t\tvendorExists=false;\r\n\t\tsession.close();\t\r\n\t\treturn vendorExists;\r\n\t\r\n\t}", "private boolean validVoter(long sid) {\n return self.getCurrentAndNextConfigVoters().contains(sid);\n }", "private boolean validaCompra() {\n\n List<Purchase> purchasesList = billingClient.queryPurchases(INAPP).getPurchasesList();\n if (purchasesList != null && !purchasesList.isEmpty()) {\n for (Purchase purchase : purchasesList) {\n if (purchase.getSku().equals(skuId)) {\n return true;\n }\n }\n }\n return false;\n\n }", "public boolean isValid(){\r\n\t\t\r\n\t\t// TODO\r\n\t\t\r\n\t\treturn true;\r\n\t}", "public boolean isValid() {\n return (this.S>=0 && this.I>=0 && this.R>=0);\n }", "boolean getValid();", "private Boolean validarEntradas(){\n edtTxCdPrd = findViewById(R.id.edtTxCdPrd);\n edtTxDcr = findViewById(R.id.edtTxDcr);\n edtTxPrecVnd = findViewById(R.id.edtTxPrecVnd);\n boolean vldc = true;\n if (edtTxCdPrd.getText().toString().equals(\"\")){\n vldc = false;\n }\n if (edtTxDcr.getText().toString().equals(\"\")){\n vldc = false;\n }\n if (edtTxPrecVnd.getText().toString().equals(\"\")){\n vldc = false;\n }\n return vldc;\n }", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid();", "public boolean isValid(){\n\t\treturn true;\n\t}", "protected boolean isValid() {\n \t\treturn valid;\n \t}", "public static boolean vcheck() {\n for (int i = 0; i < card.length; i++) { // rows\n int sum = 0;\n for (int j = 0; j < card.length; j++) { // what coloum\n sum = sum + card[i][j]; // last sum plus the number in the cordinate\n }\n if (sum == 0) {\n System.out.println(\"BINGO\");\n System.out.println(\"The numbers called is \" + called);\n return true;\n\n }\n\n }\n return false;\n\n }", "public boolean souvislost(){\n\t\t\n\t\tif(pole.size() != pocetVrcholu){\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t\t\n\t}", "public boolean verifiySignature() {\n\t\tString data = StringUtil.getStringFromKey(sender) + StringUtil.getStringFromKey(reciepient)\n\t\t\t\t+ Float.toString(value);\n\t\treturn StringUtil.verifyECDSASig(sender, data, signature);\n\t}", "public static boolean verificaRigaVuota (String stringa){\r\n\t\tif(Pattern.matches(\"[0-9a-zA-Z]\", stringa)) return true;\r\n\t\treturn false;\r\n\t}", "public boolean isVelocityValid() {\n return velocityValid;\n }", "public boolean istVoll()\n\t{\n\t return (_spalte0 > 0) && (_spalte1 > 0) && (_spalte2 > 0);\n\t}", "public boolean isValid()\n\t{\n\t\treturn false;\n\t}", "public boolean validarSenha(){ //boleano\n boolean retorno = false; //variavel boleana ja recebendo false\n\n int senhaA, senhaB;\n\n senhaA = Integer.parseInt(editSenhaA.getText().toString());\n senhaB = Integer.parseInt(editSenhaB.getText().toString());\n\n retorno = (senhaA == senhaB);\n\n\n return retorno; //reorna o proprio retorno\n }", "public boolean hasDAmtInvoValidAmount()\r\n {\r\n return this._has_dAmtInvoValidAmount;\r\n }", "public boolean validatePin( String pin );", "boolean hasVector3Value();", "public boolean checkTestVector() throws Exception {\n\n this.doCalculate();\n\n byte[] expectedOutput=null;\n switch ( this.type ) {\n case ENCRYPT:\n expectedOutput = this.cipherText; \n break;\n case DECRYPT:\n expectedOutput = this.payLoad;\n break;\n default:\n throw new Exception(\"not allowed\");\n }\n\n return Arrays.equals(this.calculatedOutput, expectedOutput);\n }", "boolean hasVName();", "public boolean wasValid() {\n return !wasInvalid();\n }", "boolean isValid() {\n for (int i = 0; i < SIGNATURE.length; i++) {\n if (mem.getByte(i) != SIGNATURE[i]) {\n // Invalid signature\n return false;\n }\n }\n final int specRev = mem.getByte(6);\n if ((specRev != 0x01) && (specRev != 0x04)) {\n // Invalid specification revision\n return false;\n }\n return true;\n }", "protected boolean isValid()\r\n {\r\n \treturn true;\r\n }", "protected boolean isDataTransactionValid(StateDataTransaction tr) {\n\t\tString address = ((StateDataTransaction)tr).address;\n\t\tString newData = ((StateDataTransaction)tr).newValue;\n\t\tint transactionNonce = ((StateDataTransaction)tr).getNonce();\n\t\t\n\t\tif (newData.equals(\"\")){\n\t\t\t// checking null data, is that an error ?\n\t\t\tServiceBus.logger.log(\"new data is null in the transaction, Id : \" + tr.getTransctionId());\n\t\t}\n\t\t\n\t\tint accountFound = 0;\n\t\t// getting the account to be modified\n\t\tAccountInterface accountToModify = null;\n\t\tfor(AccountInterface account: accounts) {\n\t\t\tString accountAddressString = account.getAddress();\n\t\t\tif (accountAddressString.equals(address)){\n\t\t\t\taccountToModify = account;\n\t\t\t\taccountFound++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (accountFound > 1) {\n\t\t\t// more than one account matches -> error\n\t\t\tServiceBus.logger.log(\"more than one account has been found at transaction, Id : \" + tr.getTransctionId());\n\t\t\treturn false;\n\t\t}\n\t\telse if (accountFound == 1) {\n\t\t\t// one account has been found to match\n\t\t\tif (tr.getNonce() != accountToModify.getNonce() + 1){\n\t\t\t\t// nonce is not valid, possible replay attack\n\t\t\t\tServiceBus.logger.log(\"Nonce is not valid at transaction, possible replay aatack, Id : \" + tr.getTransctionId());\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// seems everything cool\n\t\t\t\treturn true;\n\t\t\t}\n\t\t\t\n\t\t}else if (accountFound == 0){\n\t\t\t// no account is found -> a new account has to be added\n\t\t\t// as this is called by the validating not at the mining, this case is invalid\n\t\t\tServiceBus.logger.log(\"Target account is not found at transactio validation, Id : \" + tr.getTransctionId());\n\t\t\treturn false;\n\t\t}\t\t\n\t\t// if nothing matches return false\n\t\treturn false;\n\t}", "public boolean isValid(){\n\t\treturn valid;\n\t}", "private boolean validaSituacao() {\r\n\t\treturn Validacao.validaSituacao((String) this.situacao.getSelectedItem()) != 0;\r\n\t}", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean isValid();", "boolean isValid();", "public boolean validate() {\n\n String plate = _licensePlate.getText().toString();\n\n if(plate.isEmpty() || plate.length() < 8)\n return false;\n\n else if(plate.charAt(2) == '-' || plate.charAt(5) == '-') {\n\n if (Character.isUpperCase(plate.charAt(0)) && Character.isUpperCase(plate.charAt(1))) { // first case\n if (Character.isDigit(plate.charAt(3)) && Character.isDigit(plate.charAt(4))\n && Character.isDigit(plate.charAt(6)) && Character.isDigit(plate.charAt(7)))\n return true;\n }\n\n else if(Character.isUpperCase(plate.charAt(3)) && Character.isUpperCase(plate.charAt(4))) { // second case\n if (Character.isDigit(plate.charAt(0)) && Character.isDigit(plate.charAt(1))\n && Character.isDigit(plate.charAt(6)) && Character.isDigit(plate.charAt(7)))\n return true;\n }\n\n else if(Character.isUpperCase(plate.charAt(6)) && Character.isUpperCase(plate.charAt(7))) { // third case\n if (Character.isDigit(plate.charAt(0)) && Character.isDigit(plate.charAt(1))\n && Character.isDigit(plate.charAt(3)) && Character.isDigit(plate.charAt(4)))\n return true;\n }\n\n else\n return false;\n\n }\n\n return false;\n }", "boolean valid() {\n return true;\n }", "boolean valid() {\n return true;\n }", "boolean valid() {\n return true;\n }", "private boolean isBilancioInFaseEsercizioProvvisorio() {\n\t\tbilancioDad.setEnteEntity(req.getEnte());\n\t\treturn bilancioDad.isFaseEsercizioProvvisiorio(req.getBilancio().getAnno());\n\t}", "public static void validate(VOLandingpageService voObj)\n throws ValidationException {\n BLValidator.isNonNegativeNumber(\"position\", voObj.getPosition());\n }", "public boolean hasVName() {\n return vName_ != null;\n }", "public boolean isValid() {\n\t\treturn false;\n\t}", "public boolean verifyGuest(int guestID){\n if(guest[guestIndex].getAccountID() == guestID){\n System.out.println(\"GuestID is valid.\");\n return true;\n }else{\n System.out.println(\"GuestID is invalid.\");\n return false;\n }\n }", "@Override\n\t\tpublic boolean isValid() {\n\t\t\treturn false;\n\t\t}", "public String getVinField() {\r\n return vinField.getText();\r\n }", "public boolean isValid() {\n \t\treturn valid;\n \t}", "@Override\n\tpublic boolean validataBetNum(String result) throws Exception {\n\t\treturn false;\n\t}", "boolean judgeValid()\r\n\t{\r\n\t\tif(loc.i>=0 && loc.i<80 && loc.j>=0 && loc.j<80 && des.i>=0 && des.i<80 && des.j>=0 && des.j<80)\r\n\t\t{\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t\t\r\n\t}", "@Override\n\t\tpublic boolean isValidSolution() {\n\t\t\treturn super.isValidSolution();\n\t\t}", "boolean hasAuvLoc();", "public boolean verify();", "boolean hasVector2Value();", "@Override\n public boolean isValid() {\n final BlockChainInt outputHash = getOutputHash();\n\n return inputs.stream().map(input -> input.verifySignature(outputHash)).reduce(true, (a, b) -> a && b)\n && outputs.stream().map(output -> output.getAmount() >= 0).reduce(true, (a, b) -> a && b)\n && getTransactionFee() >= 0;\n }", "public boolean isValid() {\n return true;\n }", "public boolean isValid() {\n return true;\n }", "public boolean isValid() {\r\n/* */ try {\r\n/* 326 */ validate();\r\n/* 327 */ } catch (ValidationException vex) {\r\n/* 328 */ return false;\r\n/* */ } \r\n/* 330 */ return true;\r\n/* */ }", "public static Question<Boolean> verificaElResultadoDeLaAperturaDeInversionVirtualPorXml() {\n return new VerificarLaAperturaDeInversionVirtualXml();\n }", "public boolean stupneProOriGraf(){\n\t\tint pom = 0;\n\t\tfor(int i = 0; i < vrchP.length;i++){\n\t\t\tif(vrchP[i].stupenVstup != vrchP[i].stupenVystup)\n\t\t\t\tpom++;\n\t\t}\n\t\tif(pom != 0)\n\t\t\treturn false;\n\t\t\n\t\treturn true;\n\t}", "boolean isValid(String candidateOid);", "@Override\r\n\tpublic boolean validaObj() {\n\t\treturn false;\r\n\t}", "static boolean isValid(Point point, int v)\n\t{\n\t\t// position has none-zero value\n\t\tif (sudoku[point.y][point.x] != 0)\n\t\t\treturn false;\n\n\t\t// if v present row, return false\n\t\tfor (int c = 0; c < 9; c++)\n\t\t\tif (sudoku[point.y][c] == v)\n\t\t\t\treturn false;\n\n\t\t// if v present in column, return false\n\t\tfor (int r = 0; r < 9; r++)\n\t\t\tif (sudoku[r][point.x] == v)\n\t\t\t\treturn false;\n\n\t\t// if v present in sub-grid, return false\n\t\tint x1 = 3 * (point.x / 3);\n\t\tint y1 = 3 * (point.y / 3);\n\n\t\tfor (int y = y1; y < y1+3; y++)\n\t\t\tfor (int x = x1; x < x1+3; x++)\n\t\t\t\tif (sudoku[y][x] == v)\n\t\t\t\t\treturn false;\n\n\t\t// if value not present in column, row and sub-grid, return true\n\t\treturn true;\n\t}", "@Override\n\tpublic boolean validObject() {\n\t\treturn valid;\n\t}", "@Override\n\tpublic boolean contieneVertice(Ciudad c1) {\n\t\tif (Objects.nonNull(getVertice(c1))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean hasVName() {\n return vNameBuilder_ != null || vName_ != null;\n }", "protected boolean validation() {\n\t\tcountry = et_area.getText().toString().trim();\r\n\r\n\t\tif (pin.equals(\"\")) {\r\n\t\t\tshowAlert(\"Sorry!\", \"Please enter valid Pin\");\r\n\t\t\treturn false;\r\n\t\t}\r\n\r\n\t\telse\r\n\t\t\treturn true;\r\n\t}", "public boolean valid() {\n\t\treturn _analyzer.valid();\n\t}", "public boolean isCValueValid();", "public boolean PilaVacia() {\r\n return UltimoValorIngresado == null;\r\n }", "public boolean isValid()\n {\n return valid;\n }", "private boolean isInputValid() {\n return true;\n }", "Boolean getIsValid();", "@Override\r\n\tpublic boolean isValid() {\n\t\treturn false;\r\n\t}", "public boolean isValid()\n {\n return valid;\n }", "public boolean validar() {\n if (getUsuario().length() <= 8) {\n if (getSenha().length() > 7 && getSenha().length() < 17) {\n return true;\n }\n }\n return false;\n }", "public boolean valid() {\n return valid;\n }", "public static Question<Boolean> verificaElResultadoDelaSimulacionDeInversionVirtualPorXML() {\n return new VerificarLaSimulacionDeInversionVirtualXml();\n }", "public boolean isEsNueva() {\r\n\t\treturn esNueva;\r\n\t}", "public boolean estaVacia(){\n if(inicio==null){\n return true;\n }else{\n return false;\n }\n }", "public boolean validate() {\n System.out.println();\n System.out.println(new Encryption(I).toString());\n return compMatrix(matx.times(matx.inverse()), I);\n }", "private boolean Verific() {\n\r\n\treturn true;\r\n\t}" ]
[ "0.63439655", "0.63285214", "0.59286004", "0.5899884", "0.5899884", "0.58774656", "0.58035207", "0.5796459", "0.5795019", "0.5775045", "0.5682436", "0.5682436", "0.56714386", "0.5658788", "0.5634935", "0.5625229", "0.55164206", "0.55041564", "0.54845655", "0.5454961", "0.5436911", "0.54264736", "0.5419083", "0.5415875", "0.5415875", "0.5415875", "0.5415875", "0.5415875", "0.54104954", "0.5398488", "0.5394697", "0.53916186", "0.5386934", "0.5382523", "0.53599054", "0.5355207", "0.5351024", "0.53427607", "0.5333788", "0.5315638", "0.5300984", "0.530058", "0.52988744", "0.5297125", "0.52919066", "0.52892447", "0.52843744", "0.5280606", "0.5275407", "0.5275146", "0.5275146", "0.5275146", "0.5275146", "0.5275146", "0.5272225", "0.52544725", "0.52544725", "0.52544725", "0.5238571", "0.523502", "0.522894", "0.52243626", "0.52188325", "0.52126104", "0.52022964", "0.5196851", "0.51885074", "0.51795447", "0.5170716", "0.51621544", "0.51618505", "0.5160613", "0.5153926", "0.51504844", "0.51504844", "0.5148982", "0.51472193", "0.51461416", "0.51397276", "0.51363564", "0.5136286", "0.5135596", "0.5132735", "0.51296747", "0.5122689", "0.5122515", "0.51168996", "0.5108809", "0.5106282", "0.5106114", "0.510525", "0.51020175", "0.5101845", "0.50993156", "0.5098312", "0.5096407", "0.50862896", "0.5079211", "0.50767434", "0.50755286" ]
0.6104132
2
an integer value of the total sales count
public int getTotalSalesCount(){ return totalSalesCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getTotalSales()\n {\n int sales = totalSales;\n totalSales = 0;\n return sales;\n }", "public int getNumSales(){\r\n return sales;\r\n }", "public int getTotalNumberOfSales(String product) {\n int totalValue = 0;\n LinkedList<Sale> temp = storageSale.get(product);\n totalValue = temp.size();\n return totalValue;\n }", "public Integer getSalesSum() {\n return salesSum;\n }", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "public Integer getSales() {\n return sales;\n }", "public static int getCountCustomer(int sales) {\r\n\r\n\t\tResultSet rs = null;\r\n\r\n\t\tint count = 0;\r\n\t\tString query = \"Select Count(customer_id) AS sales from sold_to WHERE salesman_id = ? AND status > 0;\";\r\n\t\ttry (Connection con = Connect.getConnection()) {\r\n\r\n\t\t\tPreparedStatement stmt = (PreparedStatement) con\r\n\t\t\t\t\t.prepareStatement(query);\r\n\t\t\tstmt.setInt(1, sales);\r\n\t\t\trs = stmt.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tcount = rs.getInt(1);\r\n\t\t\t}\r\n\r\n\t\t} catch (SQLException ex) {\r\n\t\t\tlogger.error(\"\", ex);\r\n\t\t\tSystem.out.printf(ex.getMessage());\r\n\t\t}\r\n\t\treturn count;\r\n\t}", "int getAnnualSales() {\n return this.annualSales;\n }", "public Integer getSalesAmount() {\n return salesAmount;\n }", "public int printSaleReportToConsole() {\n int result = 0;\n Enumeration<String> keyEnum = storageSale.keys();\n int totalNumberOfSalesOfProduct = 0;\n String key = null;\n float totalValue = 0;\n while (keyEnum.hasMoreElements()) {\n key = keyEnum.nextElement();\n totalNumberOfSalesOfProduct = getTotalNumberOfSales(key);\n totalValue = getValueOfSales(key);\n System.out.println(\"REPORT: SALE ---> Product: \" + key + \" total number of sales: \"\n + totalNumberOfSalesOfProduct + \" total value: \" + totalValue);\n result++;\n }\n return result;\n }", "private static int getBonus(int sales) {\n if (sales > 5000) {\n\n return sales / 10;\n\n }\n return 0;\n }", "int getTotalCount();", "public int getTotalCount() {\n return totalCount;\n }", "public int getSellRatingTotalCount() {\n return sellRatingTotalCount;\n }", "public void setSales(Integer sales) {\n this.sales = this.sales + sales;\n }", "@Override\n\tpublic int getSellCountentCount(int id) {\n\n\t\treturn trxMapper.getCountCountent(id);\n\t}", "int getTotalDepositCount();", "int getActAmountCount();", "public int getTotalSPEntries() {\n\t\tList<SalePurchase> list = new ArrayList<>(salePurchaseEntries.values());\n\t\treturn list.size();\n\t}", "public Long getTotalCount() {\r\n return totalCount;\r\n }", "long getTotalProductsCount();", "Integer total();", "public int getTotal()\n\t{\n\t\treturn total;\n\t\t\n\t}", "public Long getTotalCount() {\n\t\treturn this.totalCount;\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public double getTotalSales() {\n\t\tdouble total = 0;\n\n\t\tfor (Order o : orders) {\n\t\t\ttotal += o.totalPrice();\n\t\t}\n\n\t\treturn total;\n\t}", "@Override\r\n\tpublic int searchTotalCount(SearchCriteria cri) {\n\t\treturn sqlSession.selectOne(namespace + \".searchTotalCount\", cri);\r\n\t}", "@Override\r\n\tpublic int searchTotalCount(SearchCriteria cri) {\n\t\treturn sqlSession.selectOne(namespace + \".searchTotalCount\", cri);\r\n\t}", "public long getTotalCount() {\n return _totalCount;\n }", "public int getTotal () {\n\t\treturn total;\n\t}", "public BigDecimal getSumCnt() {\r\n return sumCnt;\r\n }", "public int total() {\n return _total;\n }", "public int getTotal() {\n\t\treturn this.total;\n\t}", "public int total() {\n return this.total;\n }", "public int getTotal() {\n return total;\n }", "public int getTotal() {\n return total;\n }", "public int getTotal() {\n\t\treturn total;\n\t}", "public int getTotal () {\n return total;\n }", "public int getSueldoTotal() {\n return sueldoTotal;\n }", "public void setNumSales(int numSales){\r\n this.sales = numSales;\r\n }", "public int getTotalValue() {\n return getTotalOfwins()+getTotalOfGames()+getTotalOfdefeats()+getTotalOftimePlayed();\n }", "public int getTotal() {\n return total;\n }", "public int getTotalAmount();", "public int totalOrdersTaken();", "public Integer getTotalItemCount() {\n return totalItemCount;\n }", "int getNumOfSellOrders();", "public int getTotal() {\n\t\t\treturn total;\n\t\t}", "public int getCount(){\n int c = 0;\n for(String s : this.counts){\n c += Integer.parseInt(s);\n }\n return c;\n }", "@Override\r\n\tpublic int getTotal(Sticker sticker) {\n\t\treturn sst.selectOne(\"stickerns.getTotal\", sticker);\r\n\t}", "@Override\r\n\tpublic int getSaleCount(Class<?> cls, int pid) {\n\t\treturn orderitemDao.getSaleCount(cls, pid);\r\n\t}", "public void setSalesSum(Integer salesSum) {\n this.salesSum = salesSum;\n }", "public int getTotRuptures();", "public int getTotalProfit() {\n\t\tif (game.countProfit() >= 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\treturn game.countProfit();\n\t\t}\n\t}", "public int getSalesPrice() {\n return salesPrice;\n }", "public int getUnitsSold(){\n\t\treturn unitsSold;\n\t}", "public int getNoOfItemsSold(String productid) {\n\t\treturn 0;\r\n\t}", "public void salesTotal(){\n\t\tif (unitsSold<10){\n\t\t\tsetTotalCost(basePrice);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<20){\n\t\t\tsetTotalCost((RETAIL_PRICE*.8)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t\t\n\t\t}\n\t\telse if (unitsSold<50){\n\t\t\tsetTotalCost((RETAIL_PRICE*.7)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse if (unitsSold<100){\n\t\t\tsetTotalCost((RETAIL_PRICE*.6)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t\telse {\n\t\t\tsetTotalCost((RETAIL_PRICE*.5)*unitsSold);\n\t\t\tsetDiscount(basePrice - this.getCost());\n\t\t}\n\t}", "public long getTotal() { return total; }", "public long getTotal() { return total; }", "public int totalValue() {\r\n\t\tint total = 0;\r\n\t\tfor(Item item: items) {\r\n\t\t\ttotal = total + item.getValue();\r\n\t\t}\r\n\t\treturn total;\r\n\t}", "private int getTotalSaleCost(String saleCodeS)\r\n\t{\r\n\t\tResultSet rs = null;\r\n\t\tArrayList<String> arr = new ArrayList<>();\r\n\t\tint sum = 0;\r\n\t\t\r\n\t\tString query = \"select sum(cost) FROM salesReport where saleCode = ?\";\r\n\t\tarr.add(saleCodeS);\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClientUI.chat.accept(\"\");\r\n\t\t\trs = ChatClient.selectWithParameters(query, arr);\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tsum = rs.getInt(\"sum(cost)\");\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error : MarketingManagerReports : client server problem\");\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn sum;\r\n\t}", "public String getNumberOfSaleUsers(String saleCodeS)\r\n\t{\r\n\t\tResultSet rs = null;\r\n\t\tArrayList<String> arr = new ArrayList<>();\r\n\t\tString usersCount = \"0\";\r\n\t\t\r\n\t\tString query = \"select count(*) FROM salesReport where saleCode = ?\";\r\n\t\tarr.add(saleCodeS);\r\n\t\t\r\n\t\ttry\r\n\t\t{\r\n\t\t\tClientUI.chat.accept(\"\");\r\n\t\t\trs = ChatClient.selectWithParameters(query, arr);\r\n\t\t\t\r\n\t\t\twhile(rs.next())\r\n\t\t\t{\r\n\t\t\t\tusersCount = rs.getString(\"count(*)\");\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch (Exception e)\r\n\t\t{\r\n\t\t\tSystem.err.println(\"Error : MarketingManagerReports : client server problem\");\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t\r\n\t\treturn usersCount;\r\n\t}", "public int getSale() {\n\t\treturn sale;\r\n\t}", "public int calcSum() {\n\t\tint sum = 0;\n\t\tfor (int count = 0; count < data.size(); count++)\n\t\t\tsum += (int)data.get(count);\n\t\treturn sum;\n\t}", "public Number getTotalRolls() {\n return (Number)getAttributeInternal(TOTALROLLS);\n }", "int getPriceCount();", "public double getTotalSalesProfit(){\n return totalSaleProfit;\n }", "public int getTotalCount() {\r\n return root.getTotalCount();\r\n }", "public long getTotal() {\n return total;\n }", "public long getTotal() {\n return total;\n }", "public int getTotalDust() {\n return StatisticsHelper.sumMapValueIntegers(statistics.getDustByWins());\n }", "public int RollCount() {\n\t\treturn 0;\r\n\t}", "public int getCount() {\n\t\treturn Dispatch.get(object, \"Count\").getInt();\n\t}", "@Override\n\tpublic int getTotalNumber() {\n\t\treturn totalNum;\n\t}", "public Integer getCounts() {\n return counts;\n }", "public int count() {\n\t\treturn sm.selectOne(\"com.lanzhou.entity.Longpay.count\");\n\t}", "public int result() {\n\t\treturn total;\n\t}", "public int getTotalCustomers()\n {\n return totalCustomers;\n }", "public void setSellRatingTotalCount(int value) {\n this.sellRatingTotalCount = value;\n }", "@Override\n\tpublic int getNoofQuantity() {\n\t String sql=\"SELECT SUM(quantity) FROM supplier_product\";\n\t int total=this.getJdbcTemplate().queryForObject(sql, Integer.class);\n\t\treturn total;\n\t}", "public float getValueOfSales(String product) {\n float totalValue = 0;\n LinkedList<Sale> temp = storageSale.get(product);\n Iterator<Sale> it = temp.iterator();\n while (it.hasNext()) {\n totalValue = totalValue + it.next().getValue();\n }\n return totalValue;\n }", "public Integer getTotalNum() {\n return totalNum;\n }", "public Integer total() {\n return this.total;\n }", "Integer getTotalStepCount();", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "public int totalAllocatedOrders();", "public Integer getDeliverSales() {\n return this.deliverSales;\n }", "public int getCount() {\n return definition.getInteger(COUNT, 1);\n }", "@Override\r\n\tpublic int precioTotal() {\n\t\treturn this.precio;\r\n\t}", "public int listAmount() {\n return count;\n }", "private int numberOfStudents() {\n int sum = 0;\n for (int student : this.studentList) {\n sum += student;\n }\n return sum;\n }", "public java.math.BigInteger getCount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(COUNT$8);\n if (target == null)\n {\n return null;\n }\n return target.getBigIntegerValue();\n }\n }", "protected int getTotalEnrolled() {\n return getTotalEnrolledEvening() + getTotalEnrolledMorning();\n }", "public int totalScore() {\n return 0;\n }", "public int getTotalEarnings() {\r\n\t\tint total = 0;\r\n\t\tfor (int i = 0; i < this.receiptissued.size(); i++) {\r\n\t\t\ttotal = total + this.receiptissued.get(i).getPrice();\r\n\t\t}\r\n\t\treturn total;\r\n\r\n\t}", "public static int getTotalCount(Map<Money, Integer> count) {\r\n\t\tint sum = 0;\r\n\t\tfor (Map.Entry<Money, Integer> entry : count.entrySet()) {\r\n\t\t\tsum += getCount(entry.getKey(), count);\r\n\t\t}\r\n\r\n\t\treturn sum;// 5\r\n\t}", "public static float getTotalTransaction(final int envCountId)\n\t\t\t{\n\t\tSession session = HibernateConfig.getSessionFactory().getCurrentSession();\n\t\tTransaction txn = session.beginTransaction();\n\t\tQuery query = session.createQuery(HQLConstants.DB_QUERY_GET_COUNTER_T_TRANSACTION);\n\t\tquery.setInteger(\"envCountId\",envCountId);\n\t\tFloat metricVal = (Float)query.uniqueResult();\n\t\ttxn.commit();\n\t\treturn metricVal == null ? 0f : metricVal;\n\t\t\n\t}", "public long getTotalHits()\r\n\t{\r\n\t\treturn this.totalHits;\r\n\t}" ]
[ "0.80789727", "0.7609487", "0.71541214", "0.7130545", "0.7029222", "0.7029222", "0.6869", "0.68658787", "0.6765755", "0.672489", "0.6678766", "0.6606005", "0.6604306", "0.6592128", "0.6578536", "0.6578467", "0.6524899", "0.6510299", "0.6485908", "0.6480391", "0.6477119", "0.64630824", "0.6456884", "0.6444064", "0.64381194", "0.64230156", "0.64230156", "0.64024186", "0.63730985", "0.63730985", "0.6367283", "0.6359316", "0.6353534", "0.6347073", "0.63456005", "0.63299", "0.6324582", "0.6324582", "0.6318385", "0.6314636", "0.6308982", "0.62708527", "0.6261204", "0.6259097", "0.62406963", "0.6237715", "0.6225153", "0.6210508", "0.620897", "0.62075573", "0.6183173", "0.61742747", "0.6137001", "0.61352575", "0.61347276", "0.6124037", "0.6118408", "0.61096704", "0.6108927", "0.6106916", "0.6106916", "0.61069006", "0.6094789", "0.6094254", "0.6085145", "0.6079942", "0.6066927", "0.60579", "0.60558105", "0.6042308", "0.6039509", "0.6039509", "0.6029082", "0.6028426", "0.6027251", "0.6024624", "0.6017116", "0.6003647", "0.600176", "0.5995533", "0.597925", "0.5977537", "0.5974546", "0.59729815", "0.5966257", "0.59618217", "0.595603", "0.594992", "0.5949313", "0.59406924", "0.59386706", "0.5937379", "0.59335524", "0.59202576", "0.5913194", "0.59129304", "0.5909598", "0.5907061", "0.59023607", "0.59010535" ]
0.78073364
1
returns the total profit as a double
public double getTotalSalesProfit(){ return totalSaleProfit; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getTotalProfit();", "public double getProfit(){\n return getPrice() * PROFIT_IN_PERCENTS / 100;\n }", "public double getProfit() {\n\t\treturn profit;\n\t}", "public double getProfit() {\n\t\treturn profit;\n\t}", "public double getProfit() {\n\n\n double difference = maxRange * GAS_RATE;\n double sum = super.getProfit();\n\n return sum - difference;\n\n }", "public BigDecimal getPercentageProfitPStd();", "public double getRealizedProfit() {\n return this.realizedProfit ;\n }", "Double getTotalSpent();", "public BigDecimal getPercentageProfitPLimit();", "public BigDecimal getRealProfit() {\r\n return realProfit;\r\n }", "public BigDecimal getBSCA_ProfitPriceStdEntered();", "public int getTotalProfit() {\n\t\tif (game.countProfit() >= 0) {\n\t\t\treturn 0;\n\t\t}\n\t\telse {\n\t\t\treturn game.countProfit();\n\t\t}\n\t}", "public float calculate_salary() {\r\n\t\tfloat calculate = 1000 + this.calculate_benefits();\r\n\t\treturn calculate;\r\n\t}", "public BigDecimal getBSCA_ProfitPriceStd();", "public double total(){\n\tdouble total=0;\n\tfor(Map.Entry<String, Integer> pro:proScan.getProducts().entrySet()){\n\t\tString proName=pro.getKey();\n\t\tint quantity=pro.getValue();\n\t\tProductCalculator proCal=priceRule.get(proName);\n\t\tif(proCal==null)\n\t\t\tthrow new MissingProduct(proName);\n\t\t\n\t\tProductCalculator cal=priceRule.get(proName);\n\t\tdouble subtotal=cal.getTotal(quantity);\n\t\ttotal+=subtotal;\n\t\t//System.out.println(total);\n\t}\n\t//round the total price to two digit\n\treturn round(total, 2);\n}", "public double earnings() {\n\t\treturn getCommissionRate()+getGrossSales();\r\n\t}", "public Double getTotalBuyFee() {\r\n return totalBuyFee;\r\n }", "@Override\n public int computeProfit() {\n return getVehiclePerformance() / getVehiclePrice();\n }", "public BigDecimal getAgencyProfit() {\r\n return agencyProfit;\r\n }", "public Double getPromedio() {\n double sum = 0;\n for (Unidad unidad : Unidades)\n sum += unidad.getCalificacion();\n return sum / Unidades.size();\n }", "public double FullfagetPrice()\n {\n double futlfaget = totalpris + fragt;\n return futlfaget;\n\n }", "@JsonIgnore\r\n public Double priceReduction() {\n if (wasPrice == null || nowPrice == null)\r\n return 0D;\r\n\r\n return wasPrice - nowPrice;\r\n }", "public double obtener_total(){\r\n double total_ventas = precio*unidades;\r\n return total_ventas;\r\n }", "BigDecimal getAverageBuyPrice();", "public double totalprice()\n {\n \tthis.caltotalprice();\n \tdouble res = Math.round(mTotalPrice);\n \t return res;\n }", "public double getTotalAmountPaid(){\n\t\tdouble amount = getAmountOfFixedPayments()*no_years*no_payments_yearly;\n\t\tdouble result = Math.round(amount*100.0) / 100.0;\n\t\treturn result;\n\t}", "public BigDecimal getPriceStdEntered();", "public double getTotalEarnings() {\n return this.totalEarnings;\n }", "double getMeanProfit() {\n ArrayList<Double> allProfits = new ArrayList<>();\n\n for (Firm firm : firms) {\n List<Double> profitsOfFirm = firm.getProfits();\n allProfits.addAll(profitsOfFirm.subList(profitsOfFirm.size() - SimulationManager.sizeOfExaminationInterval, profitsOfFirm.size()));\n }\n\n return Calculation.round(Calculation.getMean(allProfits), 2);\n }", "public static Double obtenerPromedioDeLosSalariosDeTodosLosEmpleados( )\r\n\t{\r\n\t\tDouble promedio = 0.0 ;\r\n\t\tfor(Empleado empleado : listaDeEmpleados)\r\n\t\t{\r\n\t\t\tpromedio = promedio + empleado.getSalario();\r\n\t\t}\r\n\t\treturn promedio / listaDeEmpleados.size();\r\n\t}", "public double probabilidadTotal(){\n return probabilidadTotal;\n }", "public Double getTotal();", "BigDecimal getAverageSellPrice();", "@Override\n public double getProfit() {\n double revenue = 0;\n int maxRange = 0;\n double cost = 0;\n double profit;\n if (getPackages().size() == 0) {\n return 0;\n }\n for (int i = 0; i < getPackages().size(); i++) {\n revenue += getPackages().get(i).getPrice();\n }\n for (int i = 0; i < getPackages().size(); i++) {\n int zip = getPackages().get(i).getDestination().getZipCode();\n int distance = Math.abs(zip - getZipDest());\n if (distance >= maxRange) {\n maxRange = distance;\n }\n }\n cost = maxRange * gasRate;\n profit = (revenue - cost);\n\n return (profit);\n }", "@Override\n\tpublic double totalSalario() {\n\t\treturn this.precio;\n\t}", "public Double getTotalBuyMoney() {\r\n return totalBuyMoney;\r\n }", "Double getTotalFloat();", "public BigDecimal getPriceStd();", "double calculatePrice();", "@Override\n public double calculatePay ()\n {\n double commissionPay = this.sales * this.rate / 100;\n return commissionPay;\n }", "public double getAmountEarned(){\r\n return getSalary() + getBonus() + getCommission() * getNumSales();\r\n }", "public double getGrossWage(){\r\n\t return (salary + addings);\r\n }", "public BigDecimal getPercentageProfitPList();", "@Override\n public double earnings() {\n return getCommissionRate() * getGrossSales();\n }", "@Override\n\tpublic int getProfit() {\n\t\treturn 0;\n\t}", "public BigDecimal getTotalEarnings() {\n totalEarnings = new BigDecimal(0);\n for(BigDecimal earnings: earningsList){\n totalEarnings = totalEarnings.add(earnings);\n }\n return totalEarnings.setScale(2, RoundingMode.HALF_UP);\n }", "public double calcAnnualIncome()\r\n {\r\n return ((hourlyWage * hoursPerWeek * weeksPerYear) * (1 - deductionsRate));\r\n }", "public double getUnRealizedCashProfit() {\n double profit = 0 ;\n double lastTP = 0.0 ;\n ScripITD itdVal = null ;\n ScripEOD eodVal = null ;\n\n // We have unrealized profit if and only if we have positive active units\n if( getNumActiveCashUnits() > 0 ) {\n itdVal = this.itdValueCache.getScripITDForSymbol( this.symbol ) ;\n if( itdVal != null ) {\n lastTP = itdVal.getPrice() ;\n }\n else {\n eodVal = this.eodValueCache.getScripEOD( this.symbol ) ;\n if( eodVal != null ) {\n lastTP = eodVal.getClosingPrice() ;\n }\n else {\n throw new IllegalArgumentException( \"Symbol \" + this.symbol +\n \" not registered for calculating LTP\" ) ;\n }\n }\n\n profit = getNumActiveCashUnits() * ( lastTP - this.avgCashUnitPrice ) ;\n\n // Approximately 0.87% of the profit is taxes and brokerage.\n // Subtract that from the profit.\n profit -= (0.87/100)*profit ;\n }\n return profit ;\n }", "private void calculateRealizedProfit() {\n\n // Calculate the realized profit for this stock. Realized profit is\n // the sum of money already gained or lost for all the shares sold for\n // this stock.\n this.realizedProfit = 0 ;\n for( final Trade buyTrade : this.allCashBuyTrades ) {\n final List<Trade> sellTrades = buyTrade.getSellTrades() ;\n if( sellTrades != null ) {\n for( final Trade sellTrade : sellTrades ) {\n this.realizedProfit += sellTrade.getMatchedUnits() *\n ( sellTrade.getAvgPrice() - buyTrade.getAvgPrice() ) ;\n }\n }\n }\n }", "public double getAverageReturnPerTrade(){\n\t\treturn Math.round(averageReturnPerTrade*10000.0)/100.0;\n\t}", "public BigDecimal getMarkProfit() {\r\n return markProfit;\r\n }", "public double calculatePay() {\n\t\treturn 0;\r\n\t}", "public double prom () {\n return this.sum()/this.size();\n }", "public double getTotalValue(){\r\n return this.quantity * this.price;\r\n }", "public double calculateWeeklyPay(){\r\n double weeklyPay = salary / 52.0;\r\n return weeklyPay;\r\n }", "public Double getTotalPrice()\n {\n Double total = 0.0;\n for(DrinkAndQuantity d : drinksAndQuantities){\n Drink drink = d.getDrink();\n double tempPrice = drink.getPrice();\n Integer quantity = d.getQuantity();\n total += (tempPrice * quantity);\n }\n\n return total;\n }", "double getSDPrice() {\n ArrayList<Double> allPrices = new ArrayList<>();\n\n for (Firm firm : firms) {\n List<Double> pricesOfFirm = firm.getPrices();\n allPrices.addAll(pricesOfFirm.subList(pricesOfFirm.size() - SimulationManager.sizeOfExaminationInterval, pricesOfFirm.size()));\n }\n\n return Calculation.round(Calculation.getSD(allPrices), 2);\n }", "private Double calculateTotalFitness() {\n double totalFitnessScore = 0;\n\n IgniteCache<Long, Chromosome> cache = ignite.cache(GAGridConstants.POPULATION_CACHE);\n\n SqlFieldsQuery sql = new SqlFieldsQuery(\"select SUM(FITNESSSCORE) from Chromosome\");\n\n // Iterate over the result set.\n try (QueryCursor<List<?>> cursor = cache.query(sql)) {\n for (List<?> row : cursor)\n totalFitnessScore = (Double)row.get(0);\n }\n\n return totalFitnessScore;\n }", "public BigDecimal getCarProfitMoney() {\n return carProfitMoney;\n }", "public double calcStandardPrice(){\n double standardPrice = getLocation().getBasePrice() + BASE_RATE;\n return standardPrice;\n }", "double getSum();", "double getSum();", "double getTotal();", "public double totalEarnings() {\n\t\treturn dayEarnings;\n\t}", "public java.lang.Double getTotal () {\r\n\t\treturn total;\r\n\t}", "public static Double getEstimateIncomeInDouble() {\n return estimateIncomeInDouble;\n }", "public Double darTiempoTotal(){\n\t\treturn tiempoComputacionalGrasp+tiempoComputacionalSetCovering;\n\t}", "public double taxPaying() {\r\n double tax;\r\n if (profit == true) {\r\n tax = revenue / 10.00;\r\n }\r\n\r\n else\r\n tax = revenue / 2.00;\r\n return tax;\r\n }", "public double CalculateTotalCompensation(){\r\n\t\tsetTotalCompensation(getCommission() + getBaseSalary());\r\n\t\treturn getTotalCompensation();\r\n\t}", "public double calcTotalEarnings() {\n double total = 0;\n for (int i = 0; i < numRegions; i++) {\n total += regionList[i].calcEarnings();\n }\n return total;\n }", "public double getIncomeTotal(){\n\t\tdouble incomeTotal = (((Number)(salaryFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(socialSecurityFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(utilityFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(unemploymentFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(disabilityFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(foodStampsFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(childSupportFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(otherIncomeFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(tanfFTF.getValue())).doubleValue() );\n\t\t\n\t\treturn incomeTotal;\n\t}", "public BigDecimal getRecommendStopProfit() {\n return recommendStopProfit;\n }", "@Override\n\tpublic Double calcular(Produto produto) {\n\t\treturn (produto.getValorUnitario()) - (produto.getValorUnitario() * 0.25);\n\t}", "public double calculatePrice(){\r\n\t\treturn getBasePrice()+getBasePrice()*getVat()+(getBasePrice()+getBasePrice()*getVat())*0.3;\r\n\t}", "public BigDecimal getPriceStdOld();", "public double calculatePrice() {\n return 0;\n }", "public void printTotalRentProfit () {\n System.out.println(\"The total rent profit is currently: \" + totalRent + \" US Dollars.\");\n }", "@Override\n public double computeProfitUsingRisk() {\n return (getVehiclePerformance() / getVehiclePrice()) * evaluateRisk();\n }", "public double getPrice(){\n\n double price1 = 1/Math.pow(1+interests, payments);\n double finalPrice = coupon * (1-price1) + valueMaturity * price1;\n\n return finalPrice;\n\n }", "double getPaid();", "public BigDecimal getPriceStdWTax();", "public BigDecimal getTaxAmtPriceStd();", "double getTotalCost();", "public float getTotalPrice(){\n return price * amount;\n }", "public double calcTax() {\n\t\treturn 0.2 * calcGrossWage() ;\n\t}", "public double calculatePay() \r\n\t{\r\n\t\treturn (payRate*hoursWorked);\r\n\t}", "public Double getTotalScore() {\n return getExperienceTime() * 1.5 + meanGPA();\n }", "public BigDecimal getTOTAL_EARNED_PROFIT() {\r\n return TOTAL_EARNED_PROFIT;\r\n }", "double purchasePrice();", "double getSubtotal();", "double getSubtotal();", "private double calculateMoneyToSpend() {\n\t\tdouble moneyToSpend = getMoney();\n\t\tif(moneyToSpend < 300) {\n\t\t\tmoneyToSpend = 0;//We do not want the player to go below 200E\n\t\t}\n\t\telse if(moneyToSpend < 500) {\n\t\t\tmoneyToSpend *= 0.34;\n\t\t}\n\t\telse if(moneyToSpend < 1000) {\n\t\t\tmoneyToSpend*= 0.4;\n\t\t}\n\t\telse if(moneyToSpend < 1500) {\n\t\t\tmoneyToSpend*= 0.5;\n\t\t}\n\t\telse if(moneyToSpend < 2000) {\n\t\t\tmoneyToSpend*= 0.6;\n\t\t}\n\t\telse {\n\t\t\tmoneyToSpend*= 0.7;\n\t\t}\n\t\treturn moneyToSpend;\n\t}", "private double prixTotal() \r\n\t{\r\n\t\tdouble pt = getPrix() ; \r\n\t\t\r\n\t\tfor(Option o : option) \r\n\t\t\tpt += o.getPrix();\t\r\n\t\treturn pt;\r\n\t}", "public double totalFee(){\n return (this.creditHours*this.feePerCreditHour)-this.scholarshipAmount+((this.healthInsurancePerAnnum*4)/12);\n }", "@Override\n public double calcSalesFee() {\n return getCost() + getSalesPurchase();\n }", "public double promedioAlum(){\n setProm((getC1() + getC2() + getC3() + getC4()) / 4);\n return getProm();\n }", "public double getExpensesTotal(){\n\t\tdouble expensesTotal = (((Number)(rentFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(lightBillFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(phoneBillFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(cableBillFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(carPaymentFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(doctorFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(gasFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(furnFTF.getValue())).doubleValue()\n\t\t\t\t+ ((Number)(expensesOtherFTF.getValue())).doubleValue());\n\t\t\n\t\treturn expensesTotal;\n\t}", "private static double totalPrice(double price_interest, double dwnpymnt) {\n \treturn price_interest + dwnpymnt;\n }", "public double salaryPay() {\n\t\treturn overtimePay() + getSalary();\n\t}", "public double earnings() {\n\t\treturn weeklySalary; \n\t}" ]
[ "0.8576022", "0.8264986", "0.78737324", "0.78737324", "0.78548247", "0.7837436", "0.7658191", "0.7583501", "0.75596976", "0.75550216", "0.73670703", "0.72113687", "0.7107133", "0.70803374", "0.7068175", "0.70342326", "0.7018348", "0.69886124", "0.69516903", "0.6946542", "0.6935008", "0.6918492", "0.69101524", "0.69078654", "0.6904244", "0.6841664", "0.6834541", "0.6834371", "0.67989236", "0.6798766", "0.67967623", "0.679373", "0.6791965", "0.6773059", "0.67517465", "0.67405826", "0.67270666", "0.6716109", "0.67088556", "0.6708551", "0.67052454", "0.6690567", "0.6664904", "0.6661428", "0.6647643", "0.66447866", "0.6641777", "0.66320574", "0.6628691", "0.6627868", "0.6616993", "0.661568", "0.6612812", "0.66082126", "0.6607741", "0.66011584", "0.6598778", "0.6597004", "0.6592601", "0.65900296", "0.6587267", "0.6587267", "0.6584915", "0.6569958", "0.6563726", "0.6555794", "0.6549584", "0.6538915", "0.65356076", "0.65274364", "0.6520302", "0.6520193", "0.6517431", "0.65110075", "0.65031534", "0.6501151", "0.6494205", "0.6484933", "0.6483393", "0.6474727", "0.6470834", "0.6467484", "0.6464985", "0.645268", "0.6452636", "0.64474934", "0.64419204", "0.6431726", "0.642657", "0.642501", "0.642501", "0.6424925", "0.64216006", "0.64171785", "0.64150894", "0.640845", "0.64048946", "0.63896686", "0.6389353", "0.63890576" ]
0.8114737
2
return the total amount of cars returned
public int getTotalReturnCount(){ return totalReturnCount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumCars() {\r\n\t\treturn (numCars + numSmallCars);\r\n\t}", "public int queryVipCarAmount(VipCar car) {\n\t Criteria criteria = getSession().createCriteria(VipCar.class);\n\t criteria.add(Restrictions.eq(\"parkId\", car.getParkId()));\n\t return Integer.valueOf(criteria.setProjection(Projections.rowCount()).uniqueResult().toString());\n}", "@GetMapping(value=\"/Count/v1\")\n\tpublic String getCountOfCars() {\n\t\tlong carsCount = carElasticRepository.count();\n\t\treturn \"Number Of Cars In Elastic Search are \" + carsCount;\n\t}", "public int getTotal() {\r\n\r\n\t\treturn getAmount() + getPrice();\r\n\r\n\t}", "private double totalPrice(){\n\n double sum = 0;\n\n for (CarComponent carComponent : componentsCart) {\n sum += (carComponent.getCompPrice() * carComponent.getCompQuantity()) ;\n }\n return sum;\n }", "public int getTotalAmount();", "int getPriceCount();", "private int getTotalPrice() {\n int unitPrice = 0;\n if (((CheckBox) findViewById(R.id.whipped_cream_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_WHIPPED_CREAM;\n }\n\n if (((CheckBox) findViewById(R.id.chocolate_checkbox)).isChecked()) {\n unitPrice += Constants.PRICE_TOPPING_CHOCOLATE;\n }\n\n unitPrice += Constants.PRICE_PER_COFFEE;\n return getNumberOfCoffees() * unitPrice;\n }", "public int totalprice() {\n\t\tint totalPrice=0;\r\n\t\tfor (int i=0; i<arlist.size();i++) {\r\n\t\t\t totalPrice+=arlist.get(i).price;\r\n\t\t}\r\n\t\treturn totalPrice;\r\n\t}", "int getTotalCount();", "public int findTotalPapersWithVariants() throws DAOException;", "int getTrucksCount();", "private static BigDecimal summaryPrice(Car car) {\n BigDecimal result = car.getBasePrice(); // najpierw dajemy cene poczatkowa auta to co mamy i znamy\n CarOption[] carOptions = car.getOptions(); // wyciagamy za pomoca getOptions z Obiektu CAR(Car) , tablice z wyposazeniem czyli skora i radiem bo potrzebujemy ich ceny znac zeby potem dodac do ceny basePrice\n for (int i = 0; i < carOptions.length; i++) { // musimy kazdy indeks po kolei sumowac za pomoca petli\n result = result.add(carOptions[i].getOptionPrice());\n }\n return result;\n }", "public long getVehicleCount() {\n return send(\"\", HttpMethod.GET, VEHICLES_GET_URL, Map.of(), Long.class);\n }", "public int getTotal () {\n return total;\n }", "public int getTotRuptures();", "public int getTotal()\n\t{\n\t\treturn total;\n\t\t\n\t}", "double getTotal();", "public int getTotal() {\n return total;\n }", "public int getTotal() {\n return total;\n }", "public int findTotalVariants() throws DAOException;", "public int getTotal() {\n return total;\n }", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public int getTotal () {\r\n\t\treturn total;\r\n\t}", "public double calTotalAmount(){\n\t\tdouble result=0;\n\t\tfor (int i = 0; i < this.cd.size(); i++) {\n\t\t\tresult += this.cd.get(i).getPrice();\n\t\t}\n\t\treturn result;\n\t}", "public int priceOfCarPark() {\n carPark.setPosition(0);\n int price = 0;\n while (carPark.hasNext()){\n price += carPark.next().getPrice();\n }\n return price;\n }", "int getTotalDepositCount();", "@Override\r\n\tpublic int getTotal(Sticker sticker) {\n\t\treturn sst.selectOne(\"stickerns.getTotal\", sticker);\r\n\t}", "public int getTotal () {\n\t\treturn total;\n\t}", "public int getTotal_votos() {\n return total_votos;\n }", "public synchronized double getTotal(){\n double totalPrice=0;\n \n for(ShoppingCartItem item : getItems()){\n totalPrice += item.getTotal();\n }\n \n return totalPrice;\n }", "public int precioTotalRepuestos() {\n int sumaTotal = 0;\n for (Dispositivo dispositivo : dispositivos) {\n sumaTotal += dispositivo.getPrecioRepuesto();\n }\n return sumaTotal;\n }", "Integer total();", "public static int totalSupply() {\n return totalSupplyGet();\n }", "@Override\r\n\tpublic Integer getBind_car_cnt() {\n\t\treturn super.getBind_car_cnt();\r\n\t}", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public long getTotal() { return total; }", "public long getTotal() { return total; }", "public int getTotalCount() {\n return totalCount;\n }", "public int getTotalCoins() {\r\n\t\treturn goods.get(Resource.COIN);\r\n\t}", "public double totalPrices()\r\n {\r\n double total = 0;\r\n //Write a loop here to total the book prices. Each object in the ArrayList bookList is a Book, so you can\r\n //use the getter as you loop through and add the price to total\r\n if(bookList != null){\r\n for(Book book: bookList){\r\n total += book.getPrice();\r\n }\r\n }\r\n return total;\r\n }", "public int getTotal() {\n\t\treturn total;\n\t}", "public int getTotalCards() {\n\t\treturn cards.size();\n\t}", "public int getTotalPrice()\n {\n return totalPrice;\n }", "public int total() {\n return _total;\n }", "private double calculateTotal() {\n Log.d(\"Method\", \"calculateTotal()\");\n\n double extras = 0;\n CheckBox cb = (CheckBox) findViewById(R.id.whipped_checkbox_view);\n\n if (cb.isChecked()) {\n extras = coffeeCount * 0.75;\n }\n return (coffeeCount * coffeePrice) + extras;\n }", "public int calcTotalPrice(){\r\n\t\tint flightPrice = flight.getFlightPrice();\r\n\t\tint bagPrice = nrBag*LUGGAGE_PRICE;\r\n\t\tthis.totalPrice = bagPrice + nrAdult*flightPrice + nrChildren*1/2*flightPrice;\r\n\t\treturn this.totalPrice;\r\n\t}", "public int totalAllocatedOrders();", "public double getTotalCartValue();", "public int totalOrdersTaken();", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "@Override\r\n\tpublic int totalCount() {\n\t\treturn sqlSession.selectOne(namespace + \".totalCount\");\r\n\t}", "public double getTotal (){ \r\n return total;\r\n }", "public int findTotalPapers() throws DAOException;", "@Override\r\n\tpublic int getTotalPrice() {\n\t\treturn totalPrice;\r\n\t}", "public synchronized int getNumberOfItems(){\n int totalItems=0;\n \n for(ShoppingCartItem item : getItems()){\n //we sum the quantity of products for each item\n totalItems += item.getQuantity();\n }\n \n return totalItems;\n }", "public static double getTotal() throws IOException{\n\t\tPhotovoltaicDao pd = new PhotovoltaicDao();\n\t\tArrayList<Photovoltaic> mdList = pd.selectPhotovoltaic();\n\t\tdouble sum = 0;\n\t\tfor(int iter=0;iter!=mdList.size();iter++)\n\t\t\tsum+=mdList.get(iter).getCurrentGeneration();\n\t\treturn sum;\n\t}", "public int getTotalRecords(String makerId,String motorCycleName,String cylinder,String releasedInYear){\r\n\t\treturn motorCycleDao.getCountRecord(makerId, motorCycleName, cylinder, releasedInYear);\r\n\t}", "void calculateTotalPrice(){\n totalPrice = 0;\n cartContents.forEach(Product-> this.totalPrice = totalPrice + Product.getSellPrice());\n }", "@Override\r\n\tpublic double getAvgNrOfSeats() {\r\n\t\tdouble avgNrOfSeats = 0;\r\n\t\tint nrSeats = 0;\r\n\t\tint nrOfCars = getNrOfVehicleTypes().get(CAR);\r\n\t\tfor (INonAutomatedVehicle vehicle : this.vehicleDatabase.get(CAR)) {\r\n\t\t\tCar auto = (Car) vehicle;\r\n\t\t\tnrSeats = nrSeats + auto.getNrSeats();\r\n\t\t}\r\n\t\tavgNrOfSeats = nrSeats / nrOfCars;\r\n\r\n\t\treturn avgNrOfSeats;\r\n\t}", "public Integer getTotalprice() {\n return totalprice;\n }", "long getTotalProductsCount();", "public int total() {\n return this.total;\n }", "public int result() {\n\t\treturn total;\n\t}", "@Override\n\tpublic int howmuch() {\n\t\treturn price;\n\t}", "public Integer getNumOfCarbons() {\n return numOfCarbons;\n }", "@Override\n public double total() {\n return 2500;\n }", "public int getTotalPrice() {\n int total = 0;\n for (Scholar s : this.scholars) {\n Calendar start = (Calendar) s.getStartDate().clone();\n while (start.before(s.getEndDate())) {\n if (start.after(this.startDate) && start.before(this.estimatedEnd)) { //Only lists scholar within the the time frame the project is active\n total += s.getSalary();\n }\n start.add(Calendar.MONTH, 1);\n }\n }\n return total;\n }", "public int getTotal() {\n\t\t\treturn total;\n\t\t}", "private static int carCount(List<UsedCar> carList) {\n int i = 0;\n for (Car count : carList) {\n i++;\n }\n return i; // returns i+1 to accommodate for list starting at zero\n }", "private double calculateTotal(){\r\n double total = 0;\r\n\r\n for(Restaurant restaurant: restaurantMap.getRestaurantMap().values()){\r\n total += restaurant.getRevenue();\r\n }\r\n\r\n return total;\r\n }", "public int getTotalCustomers()\n {\n return totalCustomers;\n }", "public abstract int getNumberOfCages();", "@Override\r\n\tpublic int searchTotalCount(SearchCriteria cri) {\n\t\treturn sqlSession.selectOne(namespace + \".searchTotalCount\", cri);\r\n\t}", "@Override\r\n\tpublic int searchTotalCount(SearchCriteria cri) {\n\t\treturn sqlSession.selectOne(namespace + \".searchTotalCount\", cri);\r\n\t}", "public long getTotal() {\n return total;\n }", "public long getTotal() {\n return total;\n }", "@Override\n public double getTotal() {\n return total;\n }", "void getTotalNumerCustomer();", "public int getTotalItems()\n {\n return totalItems;\n }", "public double getTotal(){\n return total;\n }", "public int listAmount() {\n return count;\n }", "public int getTotal() {\n\t\treturn this.total;\n\t}", "public float totalCost() {\r\n float total = 0;\r\n for (int i=0; i<numItems; i++) {\r\n total += cart[i].getPrice();\r\n }\r\n return total;\r\n }", "int getAcksCount();", "int getAcksCount();", "public int getSueldoTotal() {\n return sueldoTotal;\n }", "int getActAmountCount();", "public double getTotal() {\r\n\t\treturn total;\r\n\t}", "public int getVehicleCount() {\r\n return vehicleCount;\r\n }", "public double calcTotalEarnings() {\n double total = 0;\n for (int i = 0; i < numRegions; i++) {\n total += regionList[i].calcEarnings();\n }\n return total;\n }", "public int getTotal(){\n\t\tif (getDistance() < N*1000){\n\t\t\treturn firstNKmCost;\n\t\t} else {\n\t\t\treturn firstNKmCost + (getDistance() - N * 1000 ) * costPerKm / 1000;\n\t\t}\n\t}", "double getTotalCost();", "private double getOrderTotal() {\n double d = 0;\n\n for (Pizza p : pizzas) {\n d += p.calcTotalCost();\n }\n\n return d;\n }", "int getCazuriCount();", "public int sumCalories() {\n int calories = 0;\n\n for (Food f : units) {\n calories += f.getCalories();\n }\n\n return calories;\n }", "public int getTotalResultsAvailable() {\n\t\tint total = 0;\n\t\tif (results != null) {\n\t\t\tBigInteger count = results.getTotalResultsAvailable();\n\t\t\ttotal = count.intValue();\n\t\t}\n\t\treturn total;\n\t}", "public double getTotal() {\n\t\treturn total;\n\t}", "@Override\r\n\tpublic int priceallcount() {\n\t\treturn productRaw_PriceDao.allCount();\r\n\t}", "public int totalHabitantes() {\r\n\tIterator<Ciudad> it = ciudades.iterator();\r\n\tint totalhab = 0;\r\n\tint i = 0;\r\n\twhile(it.hasNext()) {\r\n\t\ttotalhab += it.next().getHabitantes();\r\n\t\t\r\n\t}\r\n\t return totalhab;\r\n\r\n }" ]
[ "0.73728514", "0.7081681", "0.7079318", "0.687421", "0.6869111", "0.6805706", "0.67759347", "0.67456204", "0.66851133", "0.6659307", "0.6651946", "0.6645891", "0.6642969", "0.6635528", "0.6621665", "0.66082495", "0.6563582", "0.65590155", "0.6537352", "0.6537352", "0.6532867", "0.65274423", "0.6524217", "0.6524217", "0.65201294", "0.64965165", "0.64863104", "0.64648896", "0.6462048", "0.6461221", "0.645996", "0.64462435", "0.64447856", "0.642453", "0.6423765", "0.6423735", "0.64198464", "0.64198464", "0.6406359", "0.6400612", "0.639722", "0.63878036", "0.63832223", "0.63812745", "0.6380712", "0.6367603", "0.6364804", "0.63543034", "0.63497627", "0.6346349", "0.634519", "0.634519", "0.6339038", "0.633627", "0.63285017", "0.6318221", "0.6313324", "0.6307605", "0.63023174", "0.6295679", "0.62946904", "0.62910247", "0.62870884", "0.62855446", "0.6272896", "0.6269077", "0.6267302", "0.6265347", "0.6260594", "0.62578785", "0.6237771", "0.6237043", "0.62357426", "0.62306714", "0.62306714", "0.6227252", "0.6227252", "0.6223716", "0.62230587", "0.6222405", "0.6216406", "0.6215892", "0.62131876", "0.621281", "0.6210397", "0.6210397", "0.62095636", "0.6196487", "0.61573064", "0.6153231", "0.6146757", "0.6145914", "0.61407137", "0.61406994", "0.613575", "0.61269104", "0.61267614", "0.61244524", "0.6118564", "0.61170244" ]
0.64799136
27
returns a list of all transaction id
public ArrayList<Integer> getAllTransactionsID(){ return allTransactionsID; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<Long> getTransmissionIds();", "public List getAllIds();", "java.util.List<com.google.protobuf.ByteString> getTransactionsList();", "List<String> findAllIds();", "List<String> getTransactionInfos() {\n\t\tList<String> result = new ArrayList<String>();\n\t\tfor (Transaction transaction : transactionLog.getTransactions()) {\n\t\t\tresult.add(transaction.toString());\n\t\t}\n\t\treturn result;\n\t}", "public ArrayList getAllAccountIds() {\n\t\tConnection dbAccess = DataAccess.getDbAccess();\n\t\tStatement sttmnt;\n\t\tResultSet rs;\n\t\ttry {\n\t\t\tsttmnt = dbAccess.createStatement();\n\t\t\trs = sttmnt.executeQuery(\"SELECT acc_id FROM accounts\");\n\t\t\twhile (rs.next()) {\n\t\t\t\taccountIds.add(rs.getInt(\"acc_id\"));\n\t\t\t}\n\t\t\tdbAccess.close();\n\t\t} catch (SQLException se) {\n\t\t\tse.printStackTrace();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn accountIds;\n\t}", "public List<List<Integer>> getTransactions() {\n return transactions;\n }", "private TreeSet<Long> getIds(Connection connection) throws Exception {\n\t\tTreeSet<Long> result = new TreeSet<Long>();\n\t\tPreparedStatement ps = null;\n\t\ttry {\n\t\t\tps = connection\n\t\t\t\t\t.prepareStatement(\"select review_feedback_id from \\\"informix\\\".review_feedback\");\n\t\t\tResultSet rs = ps.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tresult.add(rs.getLong(1));\n\t\t\t}\n\t\t} finally {\n\t\t\tps.close();\n\t\t}\n\t\treturn result;\n\t}", "public List<String> getTransactionsToStringList() {\n List<String> newTransactions = new ArrayList<>(transactions.size());\n for (List<Integer> transaction : transactions) {\n List<String> newList = new ArrayList<String>(transaction.size());\n for (Integer integer : transaction) {\n newList.add(String.valueOf(integer)); \n }\n newTransactions.add(String.join(\" \", newList));\n }\n return newTransactions;\n }", "public List<Transaction> getAllTransactions(){\n Cursor cursor = fetchAllRecords();\n List<Transaction> transactions = new ArrayList<Transaction>();\n if (cursor != null){\n while(cursor.moveToNext()){\n transactions.add(buildTransactionInstance(cursor));\n }\n cursor.close();\n }\n return transactions;\n }", "public Transaction[] getTransactionsList() throws Exception;", "public Collection<Transaction> getAllTransactions();", "public List<TransactionInfo> getAll() {\n return transactions;\n }", "public static Transaction[] transactionList(){\n int countFullPosition = 0;\n for (Transaction tr:transactions) {\n if(tr != null){\n countFullPosition++;\n }\n }\n if(countFullPosition == 0)\n return new Transaction[] {};\n // throw new InternalServerException(\"TransactionList is empty\");\n Transaction[] trList = new Transaction[countFullPosition];\n int index = 0;\n for (Transaction tr:transactions) {\n if(tr != null){\n trList[index] = tr;\n index++;\n }\n }\n return trList;\n }", "java.util.List<java.lang.Long> getIdsList();", "List<PaymentsIdResponse> getAllPaymentsId();", "public ArrayList<String> readAllCartID() {\n db = helper.getReadableDatabase();\n ArrayList<String> list = new ArrayList<>();\n Cursor cursor = db.rawQuery(\"select * from \" + DatabaseConstant.TABLE_NAME_CART, null);\n while (cursor.moveToNext()) {\n String id = cursor.getString(0);\n list.add(id);\n }\n return list;\n }", "public int[] getListOfId() {\r\n\t\tString sqlCommand = \"SELECT Barcode FROM ProductTable\";\r\n\t\tint[] idList = null;\r\n\t\tArrayList<Integer> tmpList = new ArrayList<Integer>();\r\n\t\tint counter = 0;\r\n\t\ttry (Connection conn = this.connect();\r\n\t\t\t\tStatement stmt = conn.createStatement();\r\n\t\t\t\tResultSet rs = stmt.executeQuery(sqlCommand)) {\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\ttmpList.add(rs.getInt(\"Barcode\"));\r\n\t\t\t\tcounter++;\r\n\t\t\t}\r\n\t\t\tidList = new int[counter];\r\n\t\t\tfor (int i = 0; i < counter; i++) {\r\n\t\t\t\tidList[i] = tmpList.get(i);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tSystem.out.println(\"getListOfId: \"+e.getMessage());\r\n\t\t\treturn new int[0]; \r\n\t\t}\r\n\t\treturn idList;\r\n\t}", "public List<Transaction> getAllTransaction() throws SQLException {\n String sql = \"SELECT * FROM LabStore.Transaction_Detail\";\n List<Transaction> transactions = new ArrayList<>();\n\n try (Connection conn = database.getConnection();\n PreparedStatement preStmt = conn.prepareStatement(sql)) {\n try (ResultSet rs = preStmt.executeQuery()) {\n while (rs.next()) {\n Transaction transaction = new Transaction();\n transaction.setId(rs.getInt(\"id\"));\n transaction.setUser(userDbManager.getUser(rs.getInt(\"uId\")));\n transaction.setPurchaseDetail(purchaseDetailDbManager\n .getPurchaseDetailById(rs.getInt(\"pdId\")));\n transaction.setCount(rs.getInt(\"count\"));\n transaction.setTime(rs.getTimestamp(\"time\"));\n transactions.add(transaction);\n }\n }\n }\n\n return transactions;\n }", "private Collection<StorableTransaction> getTransactionList(Object body) {\r\n Collection<StorableTransaction> txs = new ArrayList<>();\r\n JsonObject data = (JsonObject) body;\r\n data.getJsonArray(ID_COLLECTION).forEach(json -> {\r\n StorableTransaction tx = Serializer.unpack((JsonObject) json, StorableTransaction.class);\r\n tx.setTimestamp(timestampFrom(data.getLong(ID_TIME)));\r\n txs.add(tx);\r\n });\r\n return txs;\r\n }", "public List<Integer> get_valid_ids(String table) {\n //table does not exist\n if (!get_table_names().contains(table) && !table.equals(\"relationship\")) {\n throw new RuntimeException(\"Table does not exist.\");\n }\n\n\n LinkedList<Integer> valid_ids = new LinkedList<>();\n String sql = \"select id from \" + table;\n ResultSet resultSet = execute_statement(sql, true); //get all ids from the table\n\n try {\n while (resultSet.next()) {\n int i = resultSet.getInt(\"id\"); //store all ids\n valid_ids.add(i);\n }\n } catch (SQLException e) {\n e.printStackTrace();\n }\n\n return valid_ids;\n }", "@java.lang.Override\n public java.util.List<com.google.protobuf.ByteString>\n getTransactionsList() {\n return transactions_;\n }", "public List<String> getTenantIds() {\n \t\treturn getTenantIds(EXCLUDE_CREATE_DISABLED_TENANTS);\n \t}", "public static synchronized String[] getSessionIds() {\n String[] ids = new String[statemap.size()];\n statemap.keySet().toArray(ids);\n return ids;\n }", "public String [] _truncatable_ids()\r\n {\r\n return _ids_list;\r\n }", "public List<String> getTenantIds(boolean includeDisabled) {\n \t\tList<String> tenantIds = new ArrayList<String>();\n \t\tString tenantId;\n \t\tHashtable<String, TenantBindingType> tenantBindings = getTenantBindings(includeDisabled);\n \t\tif (tenantBindings != null && !tenantBindings.isEmpty()) {\n \t\t\tEnumeration keys = tenantBindings.keys();\n \t\t\twhile (keys.hasMoreElements()) {\n \t\t\t\ttenantId = (String) keys.nextElement();\n \t\t\t\tif (Tools.notBlank(tenantId)) {\n \t\t\t\t\ttenantIds.add(tenantId);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\treturn tenantIds;\n \t}", "public List<Long> getTodosComputadoresId()throws Exception{\n\t\t\n\t\tList<Long> ids=new ArrayList<Long>();\n\t\tString sql = \"select codigo from \" + TABELA;\n\n\t\tPreparedStatement stmt = connection.prepareStatement(sql);\n\n\t\tResultSet rs = stmt.executeQuery();\n\n\t\twhile (rs.next()){\n\t\t\tids.add(rs.getLong(1));\n\t\t}\n\n\t\treturn ids;\n\t}", "private List<Integer> findAllId(EntityManager em) {\n TypedQuery<Permesso> permessoQuery = em.createQuery(\"SELECT c FROM com.hamid.entity.Permesso c\", Permesso.class);\n List<Permesso> permessoRes = permessoQuery.getResultList();\n List<Integer> p_id = new ArrayList<Integer>();\n for (Permesso p : permessoRes) {\n int p_id1 = p.getPermesso_id();\n p_id.add(p_id1);\n }\n return p_id;\n }", "private List<Integer> determineItemIds() {\n List<Integer> ids = null;\n try {\n ids = mDatabaseAccess.itemsDAO().selectAllItemIds();\n } catch (Exception ex) {\n Log.e(TAG, \"A general failure has occurred while trying to determine all item IDs.\",\n ex);\n }\n return ids;\n }", "public List<Integer> getIds(int conId, int type, int state) throws AppException;", "public List<PendingTransactionId> selectCandidatePendingTransactionIds() throws DatabaseException {\n try {\n READ_LOCK.lock();\n return _selectCandidatePendingTransactionIds();\n }\n finally {\n READ_LOCK.unlock();\n }\n }", "@java.lang.Override\n public java.util.List<com.google.protobuf.ByteString>\n getTransactionsList() {\n return java.util.Collections.unmodifiableList(\n instance.getTransactionsList());\n }", "public List<Integer> selectPosAllId() {\n\t\treturn postDao.selectPosAllId();\r\n\t}", "public List<Transaction> readAllTransaction() throws TransactionNotFoundException {\n\t\treturn transactionDAO.listAccountTransactionTable();\n\t}", "Set<II> getIds();", "public java.util.List<String> getIds() {\n return ids;\n }", "private String getIds(List<UserTO> userList) {\r\n\t\tSet<String> idSet = new HashSet<String>();\r\n\t\tfor (UserTO user : userList) {\r\n\t\t\tidSet.add(user.getOrgNodeId());\r\n\t\t\tif (null != user.getOrgNodeCodePath()) {\r\n\t\t\t\tString[] orgHierarchy = user.getOrgNodeCodePath().split(\"~\");\r\n\t\t\t\tSet<String> orgHierarchySet = new HashSet<String>(Arrays.asList(orgHierarchy));\r\n\t\t\t\tidSet.addAll(orgHierarchySet);\r\n\t\t\t}\r\n\t\t}\r\n\t\tString ids = idSet.toString();\r\n\t\tids = ids.substring(1, ids.length() - 1);\r\n\t\treturn ids;\r\n\t}", "public java.util.List<com.networknt.taiji.token.TokenTransaction> getTokenTransactionArray() {\n return TokenTransactionArray;\n }", "public java.util.List<com.networknt.taiji.token.TokenTransaction> getTokenTransactionArray() {\n return TokenTransactionArray;\n }", "public Set<Transaction> getTransactionsByLotId(Integer id) throws MiddlewareQueryException;", "public List<ObjectIdentifier> getTradeIds() {\n return _tradeIds;\n }", "public String[] getIDs() {\n return impl.getIDs();\n }", "public Iterator getTransactions() {\n return (transactions.listIterator());\n }", "public List<Integer> getAllUserId() {\n return getAllUserId(getApplicationContext());\n }", "public String getIds() {\n return ids;\n }", "public String getIds() {\n return ids;\n }", "String[] _truncatable_ids();", "@Transactional\n\tpublic Set<TransactionTable> findAllTransactions() {\n\t\t List<TransactionTable> list = new ArrayList<TransactionTable>();\n\t TypedQuery<TransactionTable> query = entityManager.createNamedQuery(\"TransactionTable.findAll\", TransactionTable.class);\n\t list = query.getResultList();\n\t Set<TransactionTable> TransactionSet = new HashSet<TransactionTable>(list);\n\t return TransactionSet;\n\t\n\t}", "public List<DataNodeId> getDataNodeIds();", "com.google.protobuf.ByteString\n getTxIdBytes();", "public java.util.List<java.lang.Integer>\n getTransactionStateValueList() {\n return java.util.Collections.unmodifiableList(transactionState_);\n }", "public static List<Integer> findAllIdsUsers( )\n {\n return _dao.selectAllIdsUser( _plugin );\n }", "java.lang.String getTxId();", "@Override\r\n\tpublic List<Transaction> getTransactions() {\n\t\treturn null;\r\n\t}", "java.util.List<java.lang.Long> getMessageIdList();", "List<TransactionType> listClientTransactionTypes();", "private void getAllIds() {\n try {\n ArrayList<String> NicNumber = GuestController.getAllIdNumbers();\n for (String nic : NicNumber) {\n combo_nic.addItem(nic);\n\n }\n } catch (Exception ex) {\n Logger.getLogger(ModifyRoomReservation.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "@JsonProperty(\"transaction\")\n public List<Transaction> getTransactionList() {\n return this.transactionList;\n }", "private ArrayList<String> getItemIDs() {\n\n\t\tArrayList<String> arrayList = new ArrayList<String>();\n\t\t/*\n\t\t * List of item IDs will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_IDS));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tarrayList.add(resultSet.getString(CommonConstants.COLUMN_INDEX_ONE));\n\t\t\t}\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn arrayList;\n\t}", "private ArrayList<String> getItemIDs() {\n\n\t\tArrayList<String> arrayList = new ArrayList<String>();\n\t\t/*\n\t\t * List of item IDs will be retrieved from MainQuery.xml\n\t\t */\n\t\ttry {\n\t\t\tconnection = DBConnectionUtil.getDBConnection();\n\t\t\tpreparedStatement = connection.prepareStatement(QueryUtil.queryByID(CommonConstants.QUERY_ID_GET_ITEM_IDS));\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tarrayList.add(resultSet.getString(CommonConstants.COLUMN_INDEX_ONE));\n\t\t\t}\n\t\t} catch (SQLException | SAXException | IOException | ParserConfigurationException | ClassNotFoundException e) {\n\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t} finally {\n\t\t\t/*\n\t\t\t * Close prepared statement and database connectivity at the end of transaction\n\t\t\t */\n\t\t\ttry {\n\t\t\t\tif (preparedStatement != null) {\n\t\t\t\t\tpreparedStatement.close();\n\t\t\t\t}\n\t\t\t\tif (connection != null) {\n\t\t\t\t\tconnection.close();\n\t\t\t\t}\n\t\t\t} catch (SQLException e) {\n\t\t\t\tlog.log(Level.SEVERE, e.getMessage());\n\t\t\t}\n\t\t}\n\t\treturn arrayList;\n\t}", "public String getIds() {\n return this.ids;\n }", "@java.lang.Override\n public java.util.List<java.lang.Integer>\n getTransactionStateValueList() {\n return transactionState_;\n }", "@Override\r\n\tpublic List<Integer> getAllTeacherId() {\n\t\tsession = sessionFactory.openSession();\r\n\t\tTransaction tran = session.beginTransaction();\r\n\t\tString hql = \"select id from Teacher where state=:state\";\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<Integer> lists = session.createQuery(hql).setInteger(\"state\", 0).list();\r\n\t\ttran.commit();\r\n\t\tsession.close();\r\n\t\tlogger.debug(\"use the method named :getAllTeacherId()\");\r\n\t\tif (lists.size() > 0) {\r\n\t\t\treturn lists;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public String[] getAllUserIds() throws AdminPersistenceException {\n return (String[]) getIds(SELECT_ALL_USER_IDS).toArray(new String[0]);\n }", "Set<String> getIdentifiers();", "private List getActiveEntities() {\n \t\tList<String> chainIds = new ArrayList<String>();\n \t\tbioUnitTransformationsStructAssembly = bioUnitsStructAssembly.getBioUnitTransformationList(initialBioId);\n \t\tif (bioUnitTransformationsStructAssembly != null) {\n \t\t\tfor (ModelTransformationMatrix trans: bioUnitTransformationsStructAssembly) {\n \t\t\t\tchainIds.add(trans.ndbChainId);\n \t\t\t}\n \t\t}\n \t return chainIds;\n \t}", "@Transactional\n public List<String> getAllKeys() {\n return entityManager.createQuery(\"SELECT idCode FROM ArtListing\", String.class).getResultList();\n }", "public List<TransactionInfo> list() {\n LOG.debug(\"loading all transaction info\");\n try {\n return getEditor().list();\n } catch (IOException e) {\n throw new CommandExecutionException(\"error occurred while loading transactions\", e);\n }\n }", "java.util.List<java.lang.Integer> getRareIdList();", "java.util.List<java.lang.Integer> getRareIdList();", "public ArrayList<String> getStatsIds() {\n\t\tArrayList<String> arr = new ArrayList<String>();\n\t\tNodeList nl = getStats();\n\t\tint len = nl.getLength();\n\t\tString str = \"\";\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tString id = ParserHelper.requiredAttributeGetter((Element) nl.item(i), \"id\");\n\t\t\tif (id != null) {\n\t\t\t\tarr.add(id);\n\t\t\t\tstr += (id + \"\\n\");\n\t\t\t}\n\t\t}\n\t\treturn arr;\n\t}", "public ArrayList<Transaction> getTransactions() throws SQLException {\n return transactions.getAll();\n }", "@Override\n\tpublic List<Transaction> getTransactions() {\n\t\treturn null;\n\t}", "@Override\n\t\tpublic List<AccountTransaction> findAll() {\n\t\t\treturn null;\n\t\t}", "List<TransactionType> listAgentTransactionTypes();", "java.util.List<java.lang.Integer> getOtherIdsList();", "@Override\n\tpublic List<Transaction> getAllTransactions() { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tQuery query = session.createQuery(\"from Transaction\");\n\t\tList<Transaction> expenses = query.list();\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t\treturn expenses; \n\t}", "@Override\r\n\tpublic List<Object[]> getPlantIds() {\n\r\n\t\tList<Object[]> list = null;\r\n\t\ttry {\r\n\t\t\tsql = \"select p.plantId,p.plantName from Plant p\";\r\n\t\t\tlist = getHibernateTemplate().find(sql);\r\n\t\t} catch (Exception e) {\r\n\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "@Override\n public List<Integer> getAllWorklogIds() {\n List<Integer> worklogIds;\n\n try (Connection connection = database.connect();\n PreparedStatement stmt = connection.prepareStatement(GET_ALL_WORKLOG_IDS_SQL)) {\n worklogIds = worklogIdDataMapper.toDTO(stmt.executeQuery());\n } catch (SQLException e) {\n logger.logToDatabase(getClass().getName(), \"getAllWorklogIds\", e);\n throw new InternalServerErrorException(e.getMessage());\n }\n return worklogIds;\n }", "@Override\n\tpublic List<String> getAllTransactionType() {\n\t\treturn null;\n\t}", "@Transient\n @JsonProperty(\"symbols\")\n public List<Long> getSymbolsAsIds() {\n List<Long> ids = new LinkedList<>();\n symbols.stream().map(Symbol::getId).forEach(ids::add);\n return ids;\n }", "Object[] getPendingTransactions(int count);", "long getTxid();", "public List<Integer> getSubscriptionIdsDueForBilling();", "@Override\n\tpublic List<Integer> findAllSubjectId() {\n\t\tList<Integer> result = new ArrayList<Integer>();\n\t\tList<Subject> list = dao.findAll();\n\t\tfor (Subject subject : list) {\n\t\t\t\n\t\t\tresult.add(subject.getSubjectId());\t\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public Vector<String> getIdentifiers()\n\t{\n\t\tfinal Vector<String> rets = new Vector<String>();\n\t\trets.add(identifier);\n\t\treturn rets;\n\t}", "public void getSMSIds() {\r\n\r\n mSMSids = new ArrayList<Long>();\r\n\r\n ContentResolver cr = mContext.getContentResolver();\r\n Cursor cur = cr.query(Uri.parse(MySMS.SMS_URI), null,\r\n null, null, null);\r\n if (cur != null) {\r\n if (cur.getCount() > 0) {\r\n while (cur.moveToNext()) {\r\n Long id = cur.getLong(cur.getColumnIndex(\"_id\"));\r\n mSMSids.add(id);\r\n }\r\n }\r\n cur.close();\r\n }\r\n }", "@Override\n\tpublic List<Transaction> getTransactionsByAccountId(int accountId) throws SQLException {\n\t\tList<Transaction> tList = new ArrayList<>();\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from transaction_history where account_id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\twhile (rs.next()) {\n\t\t\tTransaction t = new Transaction(rs.getInt(2), rs.getString(3), rs.getDouble(4),rs.getTimestamp(5));\n\t\t\ttList.add(t);\n\t\t}\n\t\treturn tList;\n\t}", "public List<TransactionM> getTransactionsInfo(int fId) {\n\t\tList<TransactionM> d= new ArrayList<>();\r\n\t\ttry {\r\n\t\t\t\r\n\t\t\tthis.pst = this.con.prepareStatement(\"select * from transaction where fromaccno=? ORDER BY balance LIMIT 0,5\"); \r\n\t\t\t\r\n\t\t\t\r\n\t\t\tthis.pst.setInt(1,fId);\r\n\t\t\tthis.rs = this.pst.executeQuery();\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\td.add(new TransactionM(rs.getInt(1),rs.getInt(2),rs.getInt(3),rs.getInt(4))) ;\r\n\t\t\t}\r\n\t\t} \r\n\t\tcatch(Exception e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(e);\r\n\t\t}\r\n\r\n\t\treturn d;\r\n\t}", "public static ImmutableSet<Integer> getIds(){\n\t\t\treturn m_namesMap.rightSet();\n\t\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}", "public List<String> getMaxTxIds(String tabletName) throws IOException {\n return null;\n }", "@Override\n\tpublic String[] getIds() {\n\t\treturn null;\n\t}", "private static <T extends AbstractApiIdentifiableDTO> List<Long> generateIdList(List<T> idList) {\n List<Long> results = new ArrayList<>(idList.size());\n\n for (T idSingle : idList) {\n results.add(idSingle.getId());\n }\n\n return results;\n }", "public List<Integer> getInactiveSubIdsForNoRebill();", "public List<Transaction> getTransactions() throws SQLException {\n\t\tList<Transaction> result = new ArrayList<>();\n\t\tStatement statement = conn.createStatement();\n\t\ttry (ResultSet resultSet = statement.executeQuery(\"select Date, Amount, Category, Type from transaction\")) {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tresult.add(new Transaction(resultSet.getDate(1), resultSet.getDouble(2), resultSet.getString(3), resultSet.getString(4)));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static List<Integer> getAccountTypesIds() throws SQLException {\n Connection connection = DatabaseDriverHelper.connectOrCreateDataBase();\n ResultSet results = DatabaseSelector.getAccountTypesId(connection);\n List<Integer> ids = new ArrayList<>();\n // add the account types ids to the arraylist\n while (results.next()) {\n ids.add(results.getInt(\"ID\"));\n }\n connection.close();\n return ids;\n }", "public static String[] getAvailableIDs();", "public static Transactions getTransactions() {\n return Transactions;\n }", "public String[] getOriginalSaleTransactionIdArray() {\n Set set = new TreeSet();\n POSLineItem[] lines = this.compositePOSTransaction.getReturnLineItemsArray();\n for (int i = 0; i < lines.length; i++) {\n POSLineItem saleLine = ((ReturnLineItem)lines[i]).getSaleLineItem();\n if (saleLine != null) {\n set.add(saleLine.getTransaction().getCompositeTransaction().getId());\n }\n }\n return (String[])set.toArray(new String[0]);\n }" ]
[ "0.76072234", "0.7143944", "0.67290473", "0.6641289", "0.657684", "0.6558098", "0.65374", "0.6433716", "0.64139163", "0.6373191", "0.63700145", "0.6346242", "0.6310202", "0.62997365", "0.62867165", "0.6267968", "0.6264587", "0.6246685", "0.6246159", "0.6225871", "0.6223952", "0.6194162", "0.61367947", "0.61064565", "0.6049496", "0.6046904", "0.60431033", "0.6029389", "0.59974337", "0.59973055", "0.5991648", "0.5968909", "0.59639406", "0.59634596", "0.5961397", "0.5955955", "0.5950429", "0.5931872", "0.5931815", "0.59236354", "0.59176636", "0.59146637", "0.5905479", "0.5895795", "0.5886494", "0.5886494", "0.5875013", "0.5868395", "0.5864973", "0.5864072", "0.5863057", "0.5850493", "0.5847319", "0.5841556", "0.58412004", "0.58340466", "0.5829955", "0.5827674", "0.5802264", "0.5802264", "0.5801955", "0.58015126", "0.58010393", "0.5798092", "0.5786974", "0.5786906", "0.5786751", "0.57850033", "0.577931", "0.577931", "0.5779309", "0.576124", "0.5758674", "0.5755123", "0.5754584", "0.575226", "0.5750701", "0.5750162", "0.57472473", "0.57427925", "0.573694", "0.5736757", "0.57219636", "0.57212514", "0.5721017", "0.5717423", "0.57138467", "0.57069236", "0.57059085", "0.5704282", "0.57020724", "0.569871", "0.56985426", "0.5685012", "0.5680182", "0.56712914", "0.5670292", "0.56607175", "0.56605804", "0.5657979" ]
0.7837409
0
returns the months with the highest sales
public String getHighestSalesMonth(){ ArrayList<Integer> monthSold = new ArrayList<Integer>(); Integer maxSold = 0; String monthString = ""; // adds values to array list for (Integer value: highestSalesMonth.values()){ monthSold.add(value); } if (monthSold.isEmpty()){ return "None"; } // fins the max value in the list maxSold = Collections.max(monthSold); // converts integer value of the month into a string equivalent for (int x = 0; x < 12; x++){ if (highestSalesMonth.containsKey(x) && highestSalesMonth.get(x) == maxSold){ switch (x) { case 0: monthString = "January"; break; case 1: monthString = "February"; break; case 2: monthString = "March"; break; case 3: monthString = "April"; break; case 4: monthString = "May"; break; case 5: monthString = "June"; break; case 6: monthString = "July"; break; case 7: monthString = "August"; break; case 8: monthString = "September"; break; case 9: monthString = "October"; break; case 10: monthString = "November"; break; case 11: monthString = "December"; break; default: monthString = "Invalid month"; break; } monthString = monthString + " "; } } return monthString; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static int getMaxThreeMonthTotal(double[] sumvals) {\n\t\tint tval = 0;\n\t\tdouble maxv = sumvals[0];\n\t\tfor (int k = 0; k < sumvals.length; k++) {\n\t\t\tif (sumvals[k] > maxv) {\n\t\t\t\tmaxv = sumvals[k];\n\t\t\t\ttval = k;\n\t\t\t}\n\t\t}\n\t\treturn tval;\n\t}", "@Test()\n public void testGetBiggestPerMonth() {\n\tYearMonth yearMonth = YearMonth.of(2015, 6);\n\tList<Expense> list = expenseManager.getBiggestPerMonth(yearMonth);\n\tassertEquals(\"gas\", list.get(0).getName());\n }", "@Test()\n public void testGetBiggestPerMonthWithYearly() {\n\tYearMonth yearMonth = YearMonth.of(2015, 8);\n\tList<Expense> list = expenseManager.getBiggestPerMonth(yearMonth);\n\tassertEquals(\"vacation\", list.get(0).getName());\n }", "public ArrayList<Integer> getWeeksIndexWithMaxSales(){\n\t\tArrayList<Integer> maxWeeks = new ArrayList<>();\n\t\tint max = this.weeklySoldItems.get(0);\n\t\t\n\t\tfor(int i = 0; i < this.weeklySoldItems.size(); i++)\n\t\t\tif(this.weeklySoldItems.get(i) > max)\n\t\t\t\tmaxWeeks.add(i);\n\t\t\n\t\treturn maxWeeks;\n\t}", "public static int maxSale(int[] arr, int m) {\n Queue<Integer> queue = new PriorityQueue<Integer>(new Comparator<Integer>(){\n @Override\n public int compare(Integer a, Integer b) {\n return b - a;\n }\n });\n // (a,b) -> (b,a));\n for(int ticket : arr) {\n queue.offer(ticket);\n }\n int sum = 0;\n while (m > 0) {\n if (queue.isEmpty()) {\n break;\n }\n int max = queue.poll();\n int top = (queue.isEmpty() ? 0 : queue.peek());\n for(; m > 0 && max >= top; m--, max--) {\n sum += max;\n }\n if (max > 0) {\n queue.offer(max);\n }\n }\n return sum;\n }", "public static List<Order> viewsalesbymonth() {\n\t\tList<Order> monthly_sales = new ArrayList<Order>();\n\n\t\ttry {\n\t\t\tconnect = ConnectionManager.getConnection();\n\t\t\tps = connect.prepareStatement(\n\t\t\t\t\t\"SELECT MONTHNAME(order_date) AS month_name, COUNT(MONTHNAME(order_date)) AS total FROM orders WHERE YEAR(order_date) = YEAR(CURRENT_DATE) GROUP BY MONTHNAME(order_date) ORDER BY MONTH(order_date)\");\n\t\t\tResultSet rs = ps.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tOrder order_month_current = new Order();\n\t\t\t\torder_month_current.setOrderMonth(rs.getString(\"month_name\"));\n\t\t\t\torder_month_current.setTotalByMonth(rs.getInt(\"total\"));\n\n\t\t\t\tmonthly_sales.add(order_month_current);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn monthly_sales;\n\t}", "public static double findVal(double[] monthVals, boolean isMax)\n\t{\n\t\tif (isMax) {\n\t\t\tdouble maxTemp = monthVals[0];\n\t\t\tfor (int i = 0; i < months; i++) {\n\t\t\t\tif (monthVals[i] > maxTemp) \n\t\t\t\t\tmaxTemp = monthVals[i];\n\t\t\t}\n\t\t\treturn maxTemp;\n\t\t}\n\t\telse {\n\t\t\tdouble minTemp = monthVals[0];\n\t\t\tfor (int i = 0; i < months; i++) {\n\t\t\t\tif (monthVals[i] < minTemp) \n\t\t\t\t\tminTemp = monthVals[i];\n\t\t\t}\n\t\t\treturn minTemp;\n\t\t}\n\t}", "@Override\r\n\tpublic Integer getMaxInvSrno() {\n\t\tQStnLooseMt qStnLooseMt = QStnLooseMt.stnLooseMt;\r\n\t\tJPAQuery query = new JPAQuery(entityManager);\r\n\t\tInteger retVal = -1;\r\n\t\t\r\n\t\tCalendar date = new GregorianCalendar();\r\n\t\t\r\n\t\tList<Integer> maxSrno = query\r\n\t\t\t.from(qStnLooseMt)\r\n\t\t\t.where(qStnLooseMt.invDate.year().eq(date.get(Calendar.YEAR))).list(qStnLooseMt.srNo.max());\r\n\t\t\r\n\t\tfor (Integer srno : maxSrno) {\r\n\t\t\tretVal = (srno == null ? 0 : srno);\r\n\t\t}\r\n\r\n\t\t\r\n\t\t\r\n\t\treturn retVal;\r\n\t}", "@Test(expected = NullPointerException.class)\n public void testGetBiggestPerMonthNull() {\n\tYearMonth yearMonth = YearMonth.of(2015, 1);\n\texpenseManager.getBiggestPerMonth(yearMonth);\n }", "public static int getMonthNum(double[] monthTemps, double val, boolean isGreater) {\n\t\tint monthsNum = 0;\n\t\tif (isGreater) {\n\t\t\tfor (int i = 0; i < months; i++) {\n\t\t \tif (monthTemps[i] > val) \n\t\t \t\tmonthsNum++;\n\t\t }\n }\n else {\n\t \t for (int i = 0; i < months; i++) {\n\t\t \tif (monthTemps[i] <= val) \n\t\t \t\tmonthsNum++;\n\t\t }\n }\n return monthsNum;\n\t}", "public static int getMinThreeMonthTotal(double[] sumvals) {\n\t\tint tval = 0;\n\t\tdouble minv = sumvals[0];\n\t\tfor (int k = 0; k < sumvals.length; k++) {\n\t\t\tif (sumvals[k] < minv) {\n\t\t\t\tminv = sumvals[k];\n\t\t\t\ttval = k;\n\t\t\t}\n\t\t}\n\t\treturn tval;\n\t}", "@GetMapping(\"/scores/month\")\n\tpublic ResponseEntity<ArrayNode> getMonthlyTopScores() {\n\t\t// List of JSON objects\n\t\tArrayNode result = mapper.createArrayNode();\n\n\t\t// List of array of BigIntegers that contain userId and month score\n\t\tList<Object[]> orderedScores = new ArrayList<>();\n\t\torderedScores = this.scoreRepo.findAllMonthlyScores();\n\n\t\tfor (int i = 0; i < 10 && i < orderedScores.size(); i++) {\n\t\t\t// current userId and month score\n\t\t\tObject[] currScore = orderedScores.get(i);\n\t\t\t// One JSON object\n\t\t\tObjectNode score = mapper.createObjectNode();\n\t\t\t// Convert BigInteger to long and int\n\t\t\tlong userId = ((Number) currScore[0]).longValue();\n\t\t\tint monthScore = ((Number) currScore[1]).intValue();\n\t\t\tCustomUser user = this.userRepo.findById(userId);\n\t\t\tString username = user.getUsername();\n\n\t\t\tscore.put(\"rank\", i + 1);\n\t\t\tscore.put(\"username\", username);\n\t\t\tscore.put(\"user\", userId);\n\t\t\tscore.put(\"score\", monthScore);\n\t\t\tscore.put(\"picId\", user.getPicId());\n\t\t\t// add to result array of JSON objects\n\t\t\tresult.add(score);\n\t\t}\n\n\t\treturn ResponseEntity.ok().body(result);\n\t}", "public java.lang.Integer getHighestOverdueCount12M() {\n return highestOverdueCount12M;\n }", "public static void displayHighestLowest(float[] weatherArray){\n int lowestMonth = 0;\n int highestMonth = 0;\n for (int month = 1; month < 12; month ++){\n if (weatherArray[month]< weatherArray[lowestMonth]){\n lowestMonth = month;\n }\n if (weatherArray[month]> weatherArray[highestMonth]){\n highestMonth = month;\n }\n }\n int displayLowestMonth =lowestMonth+ 1;\n int displayHighestMonth = highestMonth + 1;\n System.out.println(\"Month \"+ displayLowestMonth +\" has the lowest reading of \"+ weatherArray[lowestMonth]+\",Month \"+ displayHighestMonth +\" has the highest reading of \"+ weatherArray[highestMonth]);\n \n }", "public void setHighestOverdueCount12M(java.lang.Integer highestOverdueCount12M) {\n this.highestOverdueCount12M = highestOverdueCount12M;\n }", "int max() {\n\t\t// added my sort method in the beginning to sort out array\n\t\tint n = array.length;\n\t\tint temp = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < (n - i); j++) {\n\n\t\t\t\tif (array[j - 1] > array[j]) {\n\t\t\t\t\ttemp = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = temp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// finds the last term in the array --> if array is sorted then the last\n\t\t// term should be max\n\t\tint x = array[array.length - 1];\n\t\treturn x;\n\t}", "List<MonthlyExpenses> lastMonthExpenses();", "public int darTamanoMonthly()\n\t{\n\t\treturn queueMonthly.darNumeroElementos();\n\t}", "private int[] getHighestPricesInTerm(int[] prices){\n int highest = -1;\n int index = -1;\n for(int i=0;i<prices.length;i++){\n if(prices[i]>highest){\n highest = prices[i];\n index = i;\n }\n }\n return new int[]{highest,index};\n }", "public static int mostMoney(int[][] a) { \n double[] totals = new double[3]; \n double rowTotal = 0.0;\n double rowTotal1 = 0.0;\n double rowTotal2 = 0.0;\n \n \n for(int i = 0; i<4; i++){\n rowTotal += a[0][i];\n totals[0] = rowTotal;}\n \n for(int j = 0; j<4; j++){\n rowTotal1 += a[1][j];\n totals[1] = rowTotal1;}\n \n for(int k = 0; k<4; k++){\n rowTotal2 += a[0][k];\n totals[2] = rowTotal2;}\n \n int indexOfBest=0; //used to find index of best year\n double best = totals[0];\n for(int i =0; i < 3; i++) {\n if(totals[i] >= best){\n best = totals[i];\n indexOfBest = i;}\n \n } return indexOfBest;\n }", "public int maxProfit(int[] prices) {\n int N = prices.length;\n int res = 0; // min, buy and sell on the same day\n for (int i = 0; i < N; i++) {\n for (int j = i; j < N; j++) {\n res = Math.max(res, prices[j] - prices[i]);\n }\n }\n return res;\n }", "public void testMaximumDayInMonthFor()\n {\n int[] test = new int[]{\n 2000, 0/*Jan*/, 31,\n 2000, 1/*Feb*/, 29,\n 1996, 1/*Feb*/, 29,\n 1900, 1/*Feb*/, 28,\n 0, 1/*Feb*/, 29,\n -400, 1/*Feb*/, 29,\n -397, 1/*Feb*/, 28 };\n \n for( int i=0; i<test.length; i+=3 )\n {\n assertEquals( test[i+2], Util.maximumDayInMonthFor(test[i],test[i+1]) );\n assertEquals( test[i+2], Util.maximumDayInMonthFor(Util.int2bi(test[i]),test[i+1]) );\n }\n }", "static int findMaxProfit(int numOfPredictedDays, int[] predictedSharePrices) {\n int max = 0;\n for(int i = 0; i< numOfPredictedDays -1; i++)\n {\n for (int j = i+1; j< numOfPredictedDays;j++)\n {\n int temp = predictedSharePrices[j] - predictedSharePrices[i];\n if(temp > max)\n {\n max = temp;\n }\n }\n }\n return max;\n }", "public int maxProfit(int[] prices){\n int maxprofit = 0;\n for (int i=1;i<prices.length;i++){\n if(prices[i]>prices[i-1]){\n maxprofit += prices[i]-prices[i-1];\n }\n }\n return maxprofit;\n }", "public int getMaximun(){\n int highGrade = grades[0]; //assumi que grades[0] é a maior nota\n //faz o loop pelo array de notas\n for(int grade: grades){\n //se a nota for maior que highGrade. atribui essa nota a highGrade\n if(grade > highGrade){\n highGrade = grade; //nota mais alta\n }\n }\n \n return highGrade;\n }", "public static int calcHighTemp(int[][] arrayTemp) {\r\n\t\tint indexHigh = 1;\r\n\t\tfor (int i = 0; i < COLUMNS; i++) {\r\n\t\t\tif (arrayTemp[1][i] > arrayTemp[1][indexHigh])\r\n\t\t\t\tindexHigh = i;\r\n\t\t}\r\n\t\tSystem.out.println(\"The highest month is \" + month[indexHigh]);\r\n\t\treturn indexHigh;\r\n\t}", "public static long stockmax(List<Integer> prices) {\n\t\t// Write your code here\n\t\tlong profit=0L;\n\t\tlong maxSoFar=0L;\n\t\t for (int i = prices.size() - 1; i > -1 ; i--) {\n\t if (prices.get(i) >= maxSoFar) {\n\t maxSoFar = prices.get(i);\n\t }\n\t profit += maxSoFar - prices.get(i);\n\t }\n\t return profit;\n\t}", "public int maxProfitOP(int prices[]) {\n int minprice = Integer.MAX_VALUE;\n int maxprofit = 0;\n for (int i = 0; i < prices.length; i++) {\n if (prices[i] < minprice)\n minprice = prices[i];\n else if (prices[i] - minprice > maxprofit)\n maxprofit = prices[i] - minprice;\n }\n return maxprofit;\n }", "public static void main(String[] args) {\n long[] salaries= {120000, 85000, 95000, 145000};\n\n for(long eachSalary : salaries){\n System.out.println(eachSalary);\n }\n\n long max=salaries[0];\n for (int i = 0; i <salaries.length ; i++) {\n if(salaries[i]>max);\n max=salaries[i];\n }\n System.out.println(\"max = \" + max);\n\n\n }", "public double monthlyEarnings() {\n\t\tif(level == \"AS\") {\n\t\t\treturn FACULTY_MONTH_SALARY;\n\t\t}\n\t\telse if(level == \"AO\") {\n\t\t\treturn FACULTY_MONTH_SALARY*1.5;\n\t\t}\n\t\telse {\n\t\t\treturn FACULTY_MONTH_SALARY*2;\n\t\t}\n\t}", "@Override\n\tpublic Rank getMax(Set<StrategyState<State,Memory>> strategyStates) {\n\t\tValidate.notEmpty(strategyStates);\n\t\tRankFunction<State> rankFunction = this.getRankFunction(strategyStates.iterator().next().getMemory());\n\t\treturn rankFunction.getMaximum(GRUtils.getStates(strategyStates));\n\t}", "public int maxProfitBF(int prices[]) {\n int maxprofit = 0;\n for (int i = 0; i < prices.length - 1; i++) {\n for (int j = i + 1; j < prices.length; j++) {\n int profit = prices[j] - prices[i];\n if (profit > maxprofit)\n maxprofit = profit;\n }\n }\n return maxprofit;\n }", "public Staff findHighestEarningLabour() {\n Staff highest = new Labourer(null,0,null,0,0);\n \n for (int i = 0; i < staffList.length; i++) { \n if (staffList[i] instanceof Labourer) {\n if (((Labourer)staffList[i]).getWage() >= ((Labourer)highest).getWage()){\n highest = staffList[i];\n }\n }\n }\n return highest;\n }", "float getMonthlySalary();", "public static int maxProfit(int[] prices) {\n\n //no stock can be sold\n if (prices == null) {\n return 0;\n }\n\n int buyDay = 0;\n int maxProfit = 0;\n for (int day = 1; day < prices.length; day++) {\n //update maxProfit\n int currentProfit = prices[day] - prices[buyDay];\n if (currentProfit > maxProfit) {\n maxProfit = currentProfit;\n } else if (currentProfit < 0) {\n //update buyDay\n buyDay = day;\n }\n }\n return maxProfit;\n }", "private Restaurant findHighestRevenueRestaurant(){\r\n Restaurant tempRestaurant = new Restaurant(\"dummy\", OrderType.BOTH);\r\n for(Restaurant restaurant : restaurantMap.getRestaurantMap().values()){\r\n if(restaurant.getRevenue() > tempRestaurant.getRevenue()){\r\n tempRestaurant = restaurant;\r\n }\r\n }\r\n return tempRestaurant;\r\n }", "public static double max(double[] prices) {\n\t\tdouble biggest = 0;\n\n\t\tfor (int i = 0; i < prices.length; i++) {\n\t\t\tif (prices[i] > biggest) {\n\t\t\t\tbiggest = prices[i];\n\t\t\t}\n\t\t}\n\n\t\treturn biggest\n\t}", "public List<SalesOrderAggregatedCreated> select(int maxResult);", "public double calcularAlvoMaximo() {\r\n\t\treturn calcularFrequenciaMaxima()*0.85;\r\n\t}", "public int max(int[] prices){\n int sum = 0;\n for(int i=1;i<prices.length;i++){\n if((prices[i]-prices[i-1])>0){\n sum += (prices[i]-prices[i-1]);\n }\n }\n return sum;\n }", "public static int returnMonthNum(double[] monthVals, double val) {\n\t\tfor (int i = 0; i < months; i++) {\n\t\t\tif (monthVals[i] == val) \n\t\t\t\treturn i;\n\t\t}\n\t\treturn -1;\n\t}", "private double getMaxNumber(ArrayList<Double> provinceValues)\n {\n Double max = 0.0;\n\n for (Double type : provinceValues)\n {\n if (type > max)\n {\n max = type;\n }\n }\n return max;\n }", "public long findMax(long[] incomes) {\n long current_max_index = 0;\n long current_max = incomes[0];\n for (long income : incomes)\n if (current_max < income)\n current_max = income;\n return current_max;\n }", "public int getEndMonth()\n\t{\n\t\treturn this.mEndMonth;\n\t}", "public int maxProfit(int[] prices) {\n if(prices.length==0){\n return 0;\n }\n int max = 0;\n int valley = prices[0];\n int peak = prices[0];\n int i=0;\n while(i < prices.length-1){\n while(i<prices.length-1 && prices[i]>=prices[i+1])\n i++;\n valley = prices[i];\n while(i<prices.length-1 && prices[i]<=prices[i+1])\n i++;\n peak = prices[i];\n max += peak- valley;\n }\n return max;\n }", "private static void top5itemsLastMonth(List<Inventory> inventoryList) {\n\n System.out.println(\"\\nTop 5 items last month\");\n\n inventoryList.stream()\n .filter(p2)\n .collect(Collectors.groupingBy(Inventory::getName, LinkedHashMap::new,Collectors.summingInt(Inventory::getQuantity)))\n .entrySet()\n .stream()\n .sorted(Map.Entry.comparingByValue(Collections.reverseOrder()))\n .limit(5)\n .forEach(System.out::println);\n }", "public static int findMaxProfit(int [] prices){\n int max_profit = 0;\r\n for (int i = 0;i<prices.length-1;i++){\r\n if(prices [i] < prices [i+1]){\r\n max_profit = max_profit + (prices[i+1]-prices[i]);\r\n }\r\n }\r\n return max_profit;\r\n }", "public double max(){\r\n\t\t//variable for max val\r\n\t\tdouble max = this.data[0];\r\n\t\t\r\n\t\tfor (int i = 1; i < this.data.length; i++){\r\n\t\t\t//if the maximum is less than the current index, change max to that value\r\n\t\t\tif (max < this.data[i]){\r\n\t\t\t\tmax = this.data[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t//return the maximum val\r\n\t\treturn max;\r\n\t}", "public java.lang.Integer getLastOverdueDistanceMonths() {\n return lastOverdueDistanceMonths;\n }", "private int[] getMaxPos() {\n \t\tint day = cal.getLengthOfMonth(stamp.getMonth(), stamp.getYear());\n \n \t\treturn this.getXYPos(stamp.getYear(), stamp.getMonth(), day);\n \t}", "@EpiTest(testDataFile = \"buy_and_sell_stock.tsv\")\n public static double computeMaxProfit(List<Double> prices) {\n\t Double min_price = Double.MAX_VALUE;\n\t double max_profit = 0;\n\t \n\t for(Double price : prices) {\n\t\t if(price< min_price) {\n\t\t\t min_price = price;\n\t\t }else {\n\t\t\t max_profit = Math.max(max_profit, price - min_price);\n\t\t }\n\t }\n return max_profit;\n }", "public static int maxProfit(int arr[]) {\n\t\t\n\t\tint mpif[]=new int[arr.length];\n\t\tint maxProfit=0;\n\t\tint minCurrent=Integer.MAX_VALUE;\n\t\t\n\t\t\n\t\tfor(int i=0;i<mpif.length;i++) {\n\t\t\t\n\t\t\tif(arr[i]<minCurrent) {\n\t\t\t\tminCurrent=arr[i];\n\t\t\t}\n\t\t\tif(arr[i]-minCurrent>maxProfit) {\n\t\t\t\tint tempProfit=arr[i]-minCurrent;\n\t\t\t\tmaxProfit=Math.max(maxProfit, tempProfit);\n\t\t\t\tmpif[i]=maxProfit;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmpif[i]=Math.max(maxProfit, arr[i]-minCurrent);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\tint mpat=0;\n\t\tint currentMAx=arr[arr.length-1];\n\t\tint mpbf[]=new int[arr.length];\n\t\tfor(int i=arr.length-2;i>=0;i--) {\n\t\t\tif(arr[i]>currentMAx) {\n\t\t\t\tcurrentMAx=arr[i];\n\t\t\t}\n\t\t\tif(currentMAx-arr[i]>mpat) {\n\t\t\t\tint temp=currentMAx-arr[i];\n\t\t\t\tmpat=Math.max(mpat, temp);\n\t\t\t\tmpbf[i]=mpat;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tmpbf[i]=Math.max(mpat, currentMAx-arr[i]);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tint ans[]=new int[arr.length];\n\t\tint max_=0;\n\t\tfor(int i=0;i<ans.length;i++) {\n\t\t\tint sum=mpbf[i]+mpif[i];\n\t\t\tans[i]=sum;\n\t\t\tif(sum>max_) {\n\t\t\t\tmax_=sum;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor(int i=0;i<ans.length;i++) {\n\t\t\tSystem.out.print(mpif[i]+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i=0;i<ans.length;i++) {\n\t\t\tSystem.out.print(mpbf[i]+\" \");\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t\tfor(int i=0;i<ans.length;i++) {\n\t\t\tSystem.out.print(ans[i]+\" \");\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\t\n\t\treturn max_;\n\t\t\n\t\t\n\t\t\n\t}", "public int getMonths() {\n return this.months;\n }", "private static int maxProfit(int[] prices) {\n\t\tint profit = 0;\n\t\tint buyPrice = prices[0]; //min price to buy the stock\n\t\tfor(int i=1; i< prices.length; i++) {\n\t\t\tbuyPrice = Math.min(buyPrice, prices[i]);\n\t\t\tprofit = Math.max(profit, (prices[i]-buyPrice));\n\t\t}\n\t\treturn profit;\n\t}", "public int maxProfit(int[] prices) {\n if(prices == null || prices.length == 0){\n return 0;\n }\n \n int buyPrice = prices[0];\n int max = 0;\n \n int len = prices.length;\n for(int i = 0; i < len; i++){\n if(prices[i] < buyPrice){\n buyPrice = prices[i];\n } else {\n int profit = prices[i] - buyPrice;\n max = profit > max ? profit : max;\n }\n }\n \n return max;\n }", "public Region findHighestEarningRegion() {\n Region highest = regionList[0];\n for (int i = 1; i < numRegions; i++) {\n if (highest.calcEarnings() <= regionList[i].calcEarnings())\n highest = regionList[i];\n }\n return highest;\n }", "static int maxProfit(int[] prices)\n\t{\n\t\tint len = prices.length;\n\t\tint min = Integer.MAX_VALUE;\n\t\tint profit = 0;\n\t\tfor (int i = 0; i < len; i++)\n\t\t{\n\t\t\tmin = min > prices[i] ? prices[i] : min;\n\t\t\tprofit = prices[i] - min > profit ? prices[i] - min : profit; \n\t\t}\n\t\treturn profit;\n\t}", "public int maxProfit(int[] prices) {\n if (prices == null || prices.length < 2)\n return 0;\n\n int min = prices[0];\n int maxDiff = 0;\n for (int i = 1; i < prices.length; i++) {\n if ((prices[i] - min) > maxDiff) {\n maxDiff = prices[i] - min;\n } else if (prices[i] < min) {\n min = prices[i];\n }\n }\n\n return maxDiff;\n }", "private int maxIndex(int[] sums) {\n\t\tint index = 0;\n\t\tint max = 0;\n\t\tfor(int i = 0; i < sums.length-1; i++) {\n\t\t\tif(sums[i] > max) {\n\t\t\t\tmax = sums[i];\n\t\t\t\tindex = i;\n\t\t\t}\n\t\t}\n\t\treturn index;\n\t}", "int findMaxProfit(Job arr[], int n)\n {\n // Sort jobs according to finish time\n sort(arr, arr+n, myfunction);\n\n return findMaxProfitRec(arr, n);\n }", "public static int maxProfit2(int[] prices) {\n if (prices == null) {\n return 0;\n }\n\n int currentProfit = 0;\n int maxProfit = 0;\n for (int day = 1; day < prices.length; day++) {\n //update maxProfit\n int delta = prices[day] - prices[day - 1];\n currentProfit = Math.max(0, currentProfit + delta);\n maxProfit = Math.max(currentProfit, maxProfit);\n }\n return maxProfit;\n }", "double largestNumber(double[] a) {\n\t\tdouble max = a[0];\n\t\tdouble no = 0;\n\t\tfor (int index = 1; index < a.length; index++) {\n\t\t\tif (max > a[index] && max > a[index + 1]) {\n\t\t\t\tno = max;\n\t\t\t\tbreak;\n\t\t\t} else if (a[index] > max && a[index] > a[index + 1]) {\n\t\t\t\tno = a[index];\n\t\t\t\tbreak;\n\t\t\t} else if (a[index + 1] > max && a[index + 1] > a[index]) {\n\t\t\t\tno = a[index + 1];\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\treturn no;\n\t}", "Price getHighestPricedTrade(Collection<Trade> trades);", "public static int max(int[] m) {\n int x = 1;\n int ret = m[0];\n while (x < m.length) {\n if (m[x] > ret) {\n ret = m[x];\n }\n x = x + 1;\n }\n return ret;\n }", "Integer getMaximumResults();", "public int getMonthsPast(){\n\t\tCalendar calendar = Calendar.getInstance();\n\t\tint c_month = calendar.get(Calendar.MONTH);\n\t\tint c_day = calendar.get(Calendar.DAY_OF_MONTH);\n\t\tString[] date = start_date.split(\"-\");\n\t\tint month = Integer.parseInt(date[1]);\n\t\tint day = Integer.parseInt(date[2]);\n\t\t\n\t\tint current_count = c_day;\n\t\tint client_count = day;\n\t\t\n\t\tswitch (c_month - 1){\n\t\tcase 11:\n\t\t\tcurrent_count += 31;\n\t\tcase 10: \n\t\t\tcurrent_count += 30;\n\t\tcase 9:\n\t\t\tcurrent_count += 31;\n\t\tcase 8:\n\t\t\tcurrent_count += 30;\n\t\tcase 7:\n\t\t\tcurrent_count += 31;\n\t\tcase 6:\n\t\t\tcurrent_count += 31;\n\t\tcase 5: \n\t\t\tcurrent_count += 30;\n\t\tcase 4: \n\t\t\tcurrent_count += 31;\n\t\tcase 3:\n\t\t\tcurrent_count += 30;\n\t\tcase 2: \n\t\t\tcurrent_count += 31;\n\t\tcase 1: \n\t\t\tcurrent_count += 28;\n\t\tcase 0: \n\t\t\tcurrent_count += 31;\n\t\t\tbreak;\n\t\t\t\n\t}\n\t\n\t\tswitch (month - 2){\n\t\tcase 11:\n\t\t\tclient_count += 31;\n\t\tcase 10: \n\t\t\tclient_count += 30;\n\t\tcase 9:\n\t\t\tclient_count += 31;\n\t\tcase 8:\n\t\t\tclient_count += 30;\n\t\tcase 7:\n\t\t\tclient_count += 31;\n\t\tcase 6:\n\t\t\tclient_count += 31;\n\t\tcase 5: \n\t\t\tclient_count += 30;\n\t\tcase 4: \n\t\t\tclient_count += 31;\n\t\tcase 3:\n\t\t\tclient_count += 30;\n\t\tcase 2: \n\t\t\tclient_count += 31;\n\t\tcase 1: \n\t\t\tclient_count += 28;\n\t\tcase 0: \n\t\t\tclient_count += 31;\n\t\t\tbreak;\n\t}\n\t\t\n\treturn current_count-client_count;\n\t}", "public int maxProfit(int[] prices) {\n if (prices == null || prices.length == 0) return 0;\n int profit = 0;\n int cur = prices[0];\n for (int i : prices) {\n if (i > cur) profit = Math.max(profit, i - cur);\n else cur = i;\n }\n return profit;\n }", "public int maxProfit(int[] prices, int fee) {\n\n int[] hold = new int[prices.length];\n int[] unhold = new int[prices.length];\n hold[0] = -prices[0];\n \n \n for (int i=1; i< prices.length; i++){\n hold[i] = Math.max(unhold[i-1] - prices[i], hold[i-1]);\n unhold[i] = Math.max(unhold[i-1], hold[i-1] + prices[i]- fee);\n }\n return unhold[prices.length-1];\n \n }", "public int maxProfit(int[] prices) {\n\t if(prices.length == 0){\n\t return 0;\n\t }\n\t int s0 = 0, s0prev = 0;\n\t int s1 = 0, s1prev=-prices[0];\n\t int s2 = 0, s2prev=Integer.MIN_VALUE;\n\t for(int p : prices){\n\t s0 = Math.max(s0prev,s2prev);\n\t s1 = Math.max(s1prev,s0prev-p);\n\t s2 = Math.max(s2prev,s1prev+p);\n\t s0prev=s0;\n\t s1prev=s1;\n\t s2prev=s2;\n\t }\n\t return Math.max(s0,s2);\n\t}", "public static int maxProfit(int[] a) {\n int minSofar = a[0];\n int maxProfit = 0;\n int profit = 0;\n\n for (int i = 0; i < a.length - 1; i++) {\n minSofar = Math.min(minSofar, a[i]);\n profit = a[i] - minSofar;\n maxProfit = Math.max(maxProfit, profit);\n\n }\n return maxProfit;\n\n\n }", "public int maxProfit(int[] prices) {\n if (prices == null || prices.length == 0) {\n return 0;\n }\n int res = 0, buy = Integer.MAX_VALUE;\n for (int price : prices) {\n buy = Math.min(buy, price);\n res = Math.max(res, price - buy);\n }\n return res;\n }", "@Override\n public Long findMAX() {\n\n StringBuffer sql = new StringBuffer(\"select max(magoithau) from goithau\");\n Query query = entityManager.createNativeQuery(sql.toString());\n return Long.parseLong(query.getSingleResult().toString()) ;\n }", "public static void greatestSavings(double [] house1, double [] house2, double [] house3) {\n\t\t//Greatest savings\n if (house1[2] > 0 && house1[2] >= house2[2]) \n maxSavings = house1[2];\n else \n maxSavings = house2[2];\n \n if (house3[2] > maxSavings) \n maxSavings = house3[2];\n System.out.println(\"savings: \" + maxSavings);\n\t}", "public int getLastMonthSize() {\r\n\r\n boolean stop = false;\r\n int x = 1;\r\n\r\n while (stop == false) {\r\n x++;\r\n\r\n String line = data.get(data.size() - x);\r\n if (line.equals(\"space\")) {\r\n stop = true;\r\n }\r\n }\r\n\r\n return x;\r\n }", "public int maxProfit(int[] prices) {\n if (prices == null || prices.length == 0) return 0;\n\n int profit = 0;\n for (int i = 1; i < prices.length; i++) {\n if (prices[i] > prices[i-1]) {\n profit += (prices[i] - prices[i-1]);\n }\n }\n\n return profit;\n }", "public double getHighestGrade(){\n double highestGrade = 0;\n for (int i = 0; i<students.size(); i++){\n if (students.get(i).getGrades()> highestGrade)\n highestGrade = students.get(i).getGrades();\n }// end for\n return highestGrade;\n }", "public double getMaximumStock () {\r\n\t\treturn maximumStock;\r\n\t}", "int getAnnualSales() {\n return this.annualSales;\n }", "public void printMonthlySummary() {\r\n System.out.println(\"\");\r\n System.out.println(\"\");\r\n System.out.println(\"------- Total Rolls Sold -------\");\r\n double totalRollsSold = totalRollSales.get(\"egg\") + totalRollSales.get(\"jelly\") + totalRollSales.get(\"pastry\") + totalRollSales.get(\"sausage\") + totalRollSales.get(\"spring\");\r\n double egg = totalRollSales.get(\"egg\");\r\n double jelly = totalRollSales.get(\"jelly\");\r\n double pastry = totalRollSales.get(\"pastry\");\r\n double sausage = totalRollSales.get(\"sausage\");\r\n double spring = totalRollSales.get(\"spring\");\r\n System.out.println(\"Total Rolls Sold: \" + totalRollsSold);\r\n System.out.println(\"Total EggRolls Sold: \" + egg);\r\n System.out.println(\"Total JellyRolls Sold: \" + jelly);\r\n System.out.println(\"Total PastryRolls Sold: \" + pastry);\r\n System.out.println(\"Total SausageRolls Sold: \" + sausage);\r\n System.out.println(\"Total SpringRolls Sold: \" + spring);\r\n System.out.println(\"\");\r\n \r\n\r\n System.out.println(\"------- Total Monthly Income -------\");\r\n double totalSales = 0; \r\n totalSales = totalCustomerSales.get(\"Casual\") + totalCustomerSales.get(\"Business\") + totalCustomerSales.get(\"Catering\"); \r\n System.out.println(\"\");\r\n System.out.println(\"------- Total Roll Outage Impacts -------\");\r\n System.out.println(totalShortageImpact);\r\n }", "public int maxProfit(int[] prices) {\n \n \n int highestProfit = 0;\n\n //1\n int lengthIndex = prices.length-1;\n int[] lowest = getLowestPricesInTerm(prices);\n int[] highest = getHighestPricesInTerm(Arrays.copyOfRange(prices,lowest[1],lengthIndex));\n highestProfit = Math.max(highestProfit, highest[0]-lowest[0]);\n int[] secondLow;\n int[] secondHigh;\n\n // need to consider \"index out of bounds\"\n //2\n if(lowest[1]+1<=highest[1]-1){\n secondLow = getLowestPricesInTerm(Arrays.copyOfRange(prices,lowest[1]+1,highest[1]-1));\n secondHigh = getLowestPricesInTerm(Arrays.copyOfRange(prices,secondLow[1],highest[1]-1));\n highestProfit = Math.max(highestProfit, secondHigh[0]-lowest[0] + highest[0]-secondLow[0]);\n }\n \n //3\n if(lowest[1]-1>0){\n secondLow = getLowestPricesInTerm(Arrays.copyOfRange(prices,0,lowest[1]-1));\n secondHigh = getLowestPricesInTerm(Arrays.copyOfRange(prices,secondLow[1],lowest[1]-1));\n highestProfit = Math.max(highestProfit, secondHigh[0]-secondLow[0] + highest[0]-lowest[0]);\n }\n \n //4\n if(highest[1]+1<lengthIndex){\n secondLow = getLowestPricesInTerm(Arrays.copyOfRange(prices,highest[1]+1,lengthIndex));\n secondHigh = getLowestPricesInTerm(Arrays.copyOfRange(prices,secondLow[1],lengthIndex));\n highestProfit = Math.max(highestProfit, secondHigh[0]-secondLow[0] + highest[0]-lowest[0]);\n }\n \n \n return highestProfit;\n\n }", "public int maxProfit(int[] prices) {\n // IMPORTANT: Please reset any member data you declared, as\n // the same Solution instance will be reused for each test case.\n int profit = 0, previous = Integer.MAX_VALUE;\n \n for (int index = 0; index < prices.length; index++) {\n if(prices[index] > previous) {\n profit += prices[index] - previous;\n }\n previous = prices[index];\n }\n \n return profit;\n }", "public int maxProfit(int[] prices){\n\t\tif(prices.length == 0){\n\t\t\treturn 0;\n\t\t}\n\n\t\tint maxPro = 0;\n\n\t\tfor(int i = 1; i < prices.length; i++){\n\t\t\tmaxPro += Math.max(0, prices[i] - prices[i-1]);\n\t\t}\n\t\treturn maxPro;\n\t}", "public void printTopSalesMovies() {\n\t\tCollections.sort(this.dataList, new SortBySales());\n\t\tint top = Math.min(5, getDataLength());\n\t\tfor (int i=0; i<top; ++i) {\n\t\t\tSystem.out.println(this.dataList.get(i).toString());\n\t\t}\n\t\tCollections.sort(this.dataList);\n\t}", "public Date calculateHighestVisibleTickValue(DateTickUnit unit) { return previousStandardDate(getMaximumDate(), unit); }", "int getExpMonth(String bookingRef);", "public int maxProfit(int[] prices) {\n if (prices.length == 0) {\n return 0;\n }\n int days = prices.length;\n \n int[] profit1 = new int[days]; // I must sell on day i\n int[] profit2 = new int[days]; // I must rest on day i\n \n profit1[0] = 0; // Buy and sell immediately\n profit2[0] = 0; // Just do nothing\n \n for (int i = 1; i < days; i++) { // Not implemented yet\n profit1[i] = Math.max(profit2[i - 1] + prices[i], -1);\n profit2[i] = Math.max(profit1[i - 1], profit2[i - 1]);\n }\n \n return -1;\n }", "private RolapCalculation getAbsoluteMaxSolveOrder() {\n // Find member with the highest solve order.\n RolapCalculation maxSolveMember = calculations[0];\n for (int i = 1; i < calculationCount; i++) {\n RolapCalculation member = calculations[i];\n if (expandsBefore(member, maxSolveMember)) {\n maxSolveMember = member;\n }\n }\n return maxSolveMember;\n }", "public int maxProfit(int[] prices) {\n\t\tif( prices.length == 0 ) return 0;\n\t\tint profit = 0;\n\t\tfor( int i = 0; i < prices.length - 1; ++i )\n\t\t{\n\t\t\tif( prices[i] < prices[i+1] )\n\t\t\t\tprofit += prices[i+1] - prices[i];\n\t\t}\n\t\treturn profit;\n\t}", "double getMax();", "double getMax();", "static void displayMaxProfitableStock(ForeighStockHolding array[])\r\n\t{\n\t\tForeighStockHolding temp = array[0];\r\n\t\t\r\n\t\t//traversing the array to find the max profitable stock\r\n\t\tfor(int i=1; i<array.length; i++)\r\n\t\t{\r\n\t\t\tif((temp.valueInDollars()-temp.costInDollars()) < (array[i].valueInDollars()-array[i].costInDollars()))\r\n\t\t\t{\r\n\t\t\t\ttemp = array[i];\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\t//printing the maximum profitable stock\r\n\t\tSystem.out.println(\"Maximum Profitable Stock :\");\r\n\t\tSystem.out.println(\"Company Name : \"+temp.companyName);\r\n\t\tSystem.out.println(\"Purchase Share Price : \"+temp.purchaseSharePrice);\r\n\t\tSystem.out.println(\"Current Share Price : \"+temp.currentSharePrice);\r\n\t\tSystem.out.println(\"Number of Shares : \"+temp.numberOfShares);\r\n\t\tSystem.out.println(\"Conversion Rate : \"+temp.conversionRate);\r\n\t\tSystem.out.println();\r\n\t}", "TotalBudget getMaximumBudget() throws NoUserSelectedException;", "public Number getMonthSalaryDrawn() {\r\n return (Number) getAttributeInternal(MONTHSALARYDRAWN);\r\n }", "public int getTotalSales()\n {\n int sales = totalSales;\n totalSales = 0;\n return sales;\n }", "public int getNumSales(){\r\n return sales;\r\n }", "public int maxProduct(int[] nums) {\n int max_so_far=1;\n int min_so_far=1;\n int prev_max_so_far=1;\n int maxProd=Integer.MIN_VALUE;\n\n for(int i=0;i<nums.length;i++){\n max_so_far=Math.max(nums[i],Math.max(max_so_far*nums[i],min_so_far*nums[i]));\n System.out.println(max_so_far);\n min_so_far=Math.min(nums[i],Math.min(prev_max_so_far*nums[i],min_so_far*nums[i]));\n System.out.println(min_so_far);\n prev_max_so_far= max_so_far;\n maxProd=Math.max(maxProd,max_so_far);\n }\n\n return maxProd;\n }", "public T findHighest(){\n T highest = array[0];\n for (int i=0;i<array.length; i++)\n {\n if (array[i].doubleValue()>highest.doubleValue())\n {\n highest = array[i];\n } \n }\n return highest;\n }", "public static int max(int[] m) {\n int max_num = m[0];\n int index = 1;\n\n while(index < m.length) {\n if(m[index] > max_num){\n max_num = m[index];\n }\n index += 1;\n }\n\n return max_num;\n }", "public static void greatestIncomeAfterSavings(double [] house1, double [] house2, double [] house3) {\n\t\t //Greatest income after expenditure\n if (house1[1] > 0 && house1[1] >= house2[1]) \n maxAfterExp = house1[1];\n else \n maxAfterExp = house2[1];\n if (house3[1] > maxAfterExp) \n maxAfterExp = house3[1]; \n System.out.println(\"After savings: \" + maxAfterExp);\n\t}", "public Products getSencondMostBetweenDates(Date start, Date end) {\r\n\t\treturn (salesRepository.getMostSoldProductBetweenDates(start, end).get(1)).getProduct();\r\n\t}" ]
[ "0.63860834", "0.62743276", "0.62170094", "0.5965595", "0.59207875", "0.57652456", "0.5745053", "0.56793904", "0.5515009", "0.55068517", "0.54591656", "0.5449627", "0.5434336", "0.5426184", "0.54207397", "0.53841126", "0.5372704", "0.53611195", "0.53333956", "0.5326656", "0.5314862", "0.529997", "0.5292286", "0.5271061", "0.52619094", "0.52413297", "0.52390784", "0.52256334", "0.51796305", "0.51654154", "0.5156939", "0.5152321", "0.51502806", "0.5149193", "0.51446676", "0.5105361", "0.5104684", "0.50987947", "0.50722384", "0.5072173", "0.5068329", "0.5047412", "0.50467384", "0.5042733", "0.5041452", "0.5027531", "0.5027033", "0.5026379", "0.501988", "0.5006618", "0.49876913", "0.4984212", "0.49820104", "0.49723214", "0.49681434", "0.49664134", "0.49513632", "0.49351403", "0.49321133", "0.49320936", "0.49148843", "0.49042857", "0.48994938", "0.48852056", "0.48795143", "0.48775992", "0.4870907", "0.48681986", "0.48628595", "0.48610345", "0.48468778", "0.48405075", "0.48342654", "0.48306578", "0.48301697", "0.48281977", "0.48226365", "0.48213032", "0.48202062", "0.48163882", "0.48061392", "0.4797557", "0.47916162", "0.47836632", "0.47832388", "0.47796705", "0.4778791", "0.4775323", "0.4774696", "0.4774696", "0.47732428", "0.47621068", "0.47619542", "0.47606012", "0.47564372", "0.47501072", "0.4739346", "0.4737467", "0.47365567", "0.4733479" ]
0.6968879
0
finds all transactions by month or by year
public LinkedList<Transaction> getTransactionByTime(int month, boolean byYear){ LinkedList<Transaction> temp = new LinkedList<Transaction>(); if (month != -1 && !byYear){ if (transactionByTime.containsKey(month) && transactionByTime.get(month) != null){ return transactionByTime.get(month); } }else if (byYear){ for (Integer x : allTransactionsID){ temp.add(getTransaction(x)); } } return temp; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Flowable<List<Transaction>> searchTransactionWithDate(int day, int month, int year,\n int isDailyOrMonthlyOrYearly) {\n\n return getData(Transaction.class, query -> {\n if (isDailyOrMonthlyOrYearly == 2) {\n query.beginsWith(\"date\", year + \"-\");\n } else if (isDailyOrMonthlyOrYearly == 1) {\n query.beginsWith(\"date\", String.format(Locale.ENGLISH, \"%d-%02d\", year, month));\n } else if (isDailyOrMonthlyOrYearly == 0) {\n query.equalTo(\"date\", String.format(Locale.ENGLISH, \"%d-%02d-%02d\", year, month, day));\n }\n return query.findAll();\n });\n }", "private List<MonthlyRecord> getMonthly(int year, String type) throws SQLException {\n\t\tLocalDate from = LocalDate.ofYearDay(year, 1);\n\t\tLocalDate to = LocalDate.ofYearDay(year, from.lengthOfYear());\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\n\t\t\t\t\"SELECT month(Date) as Month, sum(Amount) from transaction\\n\" + \n\t\t\t\t\"WHERE Date between ? and ?\\n\" + \n\t\t\t\t\"and type = ?\\n\" + \n\t\t\t\t\"group by Month\")) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\tstatement.setString(3, type);\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<MonthlyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tlist.add(new MonthlyRecord(resultSet.getDouble(2), Month.of(resultSet.getInt(1))));\t\t\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}", "@Override\n public List<ExpenceSummary> getReportsForMonth(String owner,int year, int month) {\n\n AggregationResults<ExpenceSummary> results = operations.aggregate(newAggregation(Expence.class, //\n match(where(\"owner\").is(owner))\n // .andOperator(where(\"date\").lte(LocalDateTime.now())\n //.andOperator(where(\"year(date)\").is(year)\n // .andOperator(where(\"date\").regex(\"2016\")\n // .andOperator(where(\"owner\").is(\"admin\")))\n , //\n // unwind(\"items\"), //\n // project(\"id\", \"customerId\", \"items\") //\n // .andExpression(\"'$items.price' * '$items.quantity'\").as(\"lineTotal\"), //\n project()\n .andExpression(\"type\").as(\"type\")\n .andExpression(\"year(date)\").as(\"year\")\n .andExpression(\"month(date)\").as(\"month\")\n .andExpression(\"amount\").as(\"amount\")\n ,\n match(where(\"year\").is(year)\n .andOperator(where(\"month\").is(month))\n )\n // .andOperator(where(\"date\").lte(LocalDateTime.now())\n //.andOperator(where(\"year(date)\").is(year)\n ,\n group(\"type\",\"year\",\"month\")\n\n // .addToSet(\"type\").as(\"type\")//, //\n // .addToSet(\"year\").as(\"year\")//, //\n // .addToSet(\"month\").as(\"month\")//, //\n .sum(\"amount\").as(\"totalAmount\") //\n .count().as(\"count\")\n // project(\"id\", \"items\", \"netAmount\") //\n // .and(\"orderId\").previousOperation() //\n // .andExpression(\"netAmount * [0]\", 1).as(\"taxAmount\") //\n // .andExpression(\"netAmount * (1 + [0])\", 1).as(\"totalAmount\") //\n ), Expence.class,ExpenceSummary.class);\n logger.info(\"getReportsForMonth results.size=\"+results.getMappedResults().size());\n return results.getMappedResults();\n }", "Set<Transaction> getTransactionsByUserIdAndAmountCy(String userId, String txAmountCy);", "@SuppressWarnings(\"unchecked\")\n\t@Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED)\n\tpublic List<Batch> findByDateLessThan(Integer month, Integer day, Integer year);", "public Cursor getPemasukanFromMonthYear(String month, String year) {\n\t\tSQLiteDatabase db = dbAdapter.getReadableDatabase();\n\t\tString query = \"SELECT * \" +\n\t\t\t\t\"FROM Pemasukan \" +\n\t\t\t\t\"WHERE strftime('%m', tanggal) = '\"+month+\"' and \" +\n\t\t\t\t\"strftime('%Y', tanggal) = '\"+year+\"' \" +\n\t\t\t\t\"order by strftime('%d', tanggal) desc\";\n\t\t//Log.d(\"query\", query);\n\t\tCursor cursor = db.rawQuery(query, null);\t\t\t\n\t\treturn cursor;\n\t}", "private List<DailyRecord> getDaily(int year, Month month, String type) throws SQLException {\n\t\tLocalDate from = LocalDate.of(year, month, 1);\n\t\tLocalDate to = LocalDate.of(year, month, month.length(from.isLeapYear()));\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\"select date, sum(Amount) from transaction where date between ? and ? and type=? group by date\" )) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\tstatement.setString(3, type);\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<DailyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tLocalDate resultDate = resultSet.getDate(1).toLocalDate();\n\t\t\t\t\tint day = resultDate.getDayOfMonth();\n\t\t\t\t\tDayOfWeek weekDay = resultDate.getDayOfWeek();\n\t\t\t\t\tdouble amount = resultSet.getDouble(2);\t\t\t\t\t\n\t\t\t\t\tlist.add(new DailyRecord(amount, day, weekDay));\t\t\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}", "public Map listDonationsByMonth(int month, Integer year) throws IOException\n\t{\n\t\tMap.Entry[] entries = new Map.Entry[year == null ? 1 : 2];\n\t\tentries[0] = new AbstractMap.SimpleEntry<>(\"month\", month);\n\t\tif (year != null)\n\t\t{\n\t\t\tentries[1] = new AbstractMap.SimpleEntry<>(\"year\", year);\n\t\t}\n\t\treturn request(POST, coOpVault(), entries);\n\t}", "public static List<Order> viewsalesbymonth() {\n\t\tList<Order> monthly_sales = new ArrayList<Order>();\n\n\t\ttry {\n\t\t\tconnect = ConnectionManager.getConnection();\n\t\t\tps = connect.prepareStatement(\n\t\t\t\t\t\"SELECT MONTHNAME(order_date) AS month_name, COUNT(MONTHNAME(order_date)) AS total FROM orders WHERE YEAR(order_date) = YEAR(CURRENT_DATE) GROUP BY MONTHNAME(order_date) ORDER BY MONTH(order_date)\");\n\t\t\tResultSet rs = ps.executeQuery();\n\n\t\t\twhile (rs.next()) {\n\t\t\t\tOrder order_month_current = new Order();\n\t\t\t\torder_month_current.setOrderMonth(rs.getString(\"month_name\"));\n\t\t\t\torder_month_current.setTotalByMonth(rs.getInt(\"total\"));\n\n\t\t\t\tmonthly_sales.add(order_month_current);\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn monthly_sales;\n\t}", "private static void getByMonth(Date birthday, EntityManager em) {\n TypedQuery<Person> query = em.createQuery(\"SELECT p FROM Person p WHERE EXTRACT(MONTH FROM p.birthday) = EXTRACT(MONTH FROM birthday) \", Person.class);\n\n List<Person> result = query.getResultList();\n if (result.isEmpty()){\n System.out.println(\"no result with Month :'\" + Integer.parseInt(String.valueOf(birthday.getMonth() + 1)) + \"'\");\n return;\n }\n System.out.println(\"result for Month '\"+ Integer.parseInt(String.valueOf(birthday.getMonth() + 1)) + \"' \");\n printList(result);\n }", "public Cursor getPemasukanFromMonthYear2(String month, String year) {\n\t\tSQLiteDatabase db = dbAdapter.getReadableDatabase();\n\t\tString query = \"SELECT * \" +\n\t\t\t\t\"FROM Pemasukan, Kategori \" +\n\t\t\t\t\"WHERE strftime('%m', tanggal) = '\"+month+\"' and \" +\n\t\t\t\t\"strftime('%Y', tanggal) = '\"+year+\"' and \" +\n\t\t\t\t\"Pemasukan.id_kategori = Kategori.id_kategori \" +\n\t\t\t\t\"order by Kategori.nama\";\n\t\t//Log.d(\"query\", query);\n\t\tCursor cursor = db.rawQuery(query, null);\t\t\t\n\t\treturn cursor;\n\t}", "List<Appointment> getAppointmentOfNMonth(int month);", "public List<Factura> getFacturasByMonthandYear(int month, int year){\n return facturaFacade.getFacturaByMonthandYear(month, year);\n }", "public Builder byMonth(Collection<Integer> months) {\n\t\t\tbyMonth.addAll(months);\n\t\t\treturn this;\n\t\t}", "CompletableFuture<BonusCustomer> findByCard(int cardNumber, int goodThruMonth, int goodThruYear);", "public Iterator getTransactions(Calendar date) {\n List result = new LinkedList();\n for (Iterator iterator = transactions.iterator(); iterator.hasNext();) {\n Transaction transaction = (Transaction) iterator.next();\n if (transaction.onDate(date)) {\n result.add(transaction);\n }\n }\n return (result.iterator());\n }", "List<Book> getBooksFromPeriod(LocalDate from,LocalDate to);", "private double getCompletedTransactions(int month, int day, int year,\r\n\t\t\tint storeCode) {\n\t\tString query = \"SELECT SUM(p.AMT) FROM invoice o, payment_item p WHERE MONTH (o.TRANS_DT) = '\"+month+\"' && YEAR(o.TRANS_DT) = '\"+year+\"' && DAY(o.TRANS_DT) = '\"+day+\"' AND p.OR_NO = o.OR_NO AND p.STORE_CODE = o.STORE_CODE AND o.STORE_CODE = '\"+storeCode+\"'\"\r\n\t\t + \" AND EXISTS (SELECT 1 FROM INVOICE_SET s WHERE s.OR_NO = o.OR_NO) \";\r\n\t\t\r\n\t\tSystem.out.println(\"COMPLETED TRANSACTIONS QUERY = \" + query);\r\n\t\t\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n//\t\tResultSet rs = Main.getDBManager().executeQuery(\"SELECT sum(p.AMT) from payment_item p WHERE MONTH (p.TRANS_DT) = '\"+month+\"' && YEAR(p.TRANS_DT) = '\"+year+\"' && DAY(p.TRANS_DT) = '\"+day+\"' AND p.STORE_CODE = '\"+storeCode+\"'\");\r\n\t\tDouble completedTransactions = 0.0d;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tcompletedTransactions = rs.getDouble(1);\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n\t\tlogger.debug(\"Completed Transactions: \"+completedTransactions);\r\n\t\treturn completedTransactions;\r\n\t}", "public Builder byMonth(Integer... months) {\n\t\t\treturn byMonth(Arrays.asList(months));\n\t\t}", "MnMscQos selectByPrimaryKey(Integer month, String mscid, Integer year);", "public Collection<Transaction> getAllTransactions();", "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 List<Integer> getByMonth() {\n\t\treturn byMonth;\n\t}", "private Object[][] getSettlementAmt(String month, String year,String divId, String tdsDebitCode) {\r\n\t\tObject[][]data = null;\r\n\t\ttry {\r\n\t\t\tString query = \"SELECT SETTL_ECODE, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' '), TO_CHAR(SUM(NVL(SETTL_AMT,0)),9999999990.99), SETTL_DEBIT_CODE FROM HRMS_SETTL_DEBITS \" \r\n\t\t\t+\" INNER JOIN HRMS_SETTL_HDR ON (HRMS_SETTL_HDR.SETTL_CODE = HRMS_SETTL_DEBITS.SETTL_CODE) \"\r\n\t\t\t+\" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_SETTL_HDR.SETTL_ECODE) \"\r\n\t\t\t+\" INNER JOIN HRMS_RESIGN ON (HRMS_RESIGN.RESIGN_CODE = HRMS_SETTL_HDR.SETTL_RESGNO) \" \r\n\t\t\t+\" WHERE (SETTL_MTH_TYPE IN ('OH','CO')) AND RESIGN_WITHDRAWN = 'N' AND EMP_DIV =\"+divId+\" \"\r\n\t\t\t+\" AND TO_CHAR(SETTL_SEPRDT,'MM')=\"+month+\" AND TO_CHAR(SETTL_SEPRDT,'YYYY')=\"+year+\" \"\r\n\t\t\t+\" AND SETTL_DEBIT_CODE=\"+tdsDebitCode+\" \"\r\n\t\t\t+\" GROUP BY SETTL_DEBIT_CODE,SETTL_ECODE \" \r\n\t\t\t+\" ORDER BY SETTL_ECODE, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' ')\";\r\n\t\t\tdata = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in settlement query\",e);\r\n\t\t} //end of catch\t\r\n\t\treturn data;\r\n\t}", "public List<DailyRecord> getDailyNetIncome(int year, Month month) throws SQLException {\n\t\tLocalDate from = LocalDate.of(year, month, 1);\n\t\tLocalDate to = LocalDate.of(year, month, month.length(from.isLeapYear()));\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\n\t\t\t\t\"SELECT data.Date, data.Income - data.Expense as NetIncome\\n\" +\n\t\t\t\t\"FROM (\\n\" +\n\t\t\t\t\" SELECT transaction.Date as Date,\\n\" +\n\t\t\t\t\" sum(IF(transaction.Type = 'Income', transaction.Amount,0)) as Income,\\n\" +\n\t\t\t\t\"\t\tsum(IF(transaction.Type = 'Expense', transaction.Amount,0)) as Expense\\n\" +\n\t\t\t\t\" FROM transaction\\n\" +\n\t\t\t\t\" WHERE Date between ? and ?\\n\" +\n\t\t\t\t\" GROUP BY transaction.Date\\n\" +\n\t\t\t\t\") data\")) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<DailyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tLocalDate resultDate = resultSet.getDate(1).toLocalDate();\n\t\t\t\t\tint day = resultDate.getDayOfMonth();\n\t\t\t\t\tDayOfWeek weekDay = resultDate.getDayOfWeek();\n\t\t\t\t\tdouble amount = resultSet.getDouble(2);\t\t\t\t\t\n\t\t\t\t\tlist.add(new DailyRecord(amount, day, weekDay));\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}", "public List<MonthlyRecord> getMonthlyNetIncome(int year) throws SQLException {\n\t\tLocalDate from = LocalDate.ofYearDay(year, 1);\n\t\tLocalDate to = LocalDate.ofYearDay(year, from.lengthOfYear());\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\t\t\t\t\n\t\t\t\t\"SELECT data.Month, data.Income - data.Expense as NetIncome\\n\" +\n\t\t\t\t\"FROM (\\n\" +\n\t\t\t\t\t\" SELECT month(Date) as Month,\\n\" +\n\t\t\t\t\t\" sum(IF(transaction.Type = 'Income', transaction.Amount,0)) as Income,\\n\" +\n\t\t\t\t\t\"\t\tsum(IF(transaction.Type = 'Expense', transaction.Amount,0)) as Expense\\n\" +\n\t\t\t\t\t\" FROM transaction\\n\" +\n\t\t\t\t\t\" WHERE Date between ? and ?\\n\" +\n\t\t\t\t\t\" GROUP BY Month\\n\" +\n\t\t\t\t\") data\")) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<MonthlyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\n\t\t\t\t\tlist.add(new MonthlyRecord(resultSet.getDouble(2), Month.of(resultSet.getInt(1))));\t\t\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}", "List<Admission> getAdmissionsPerMonth(int month);", "List<UserContentChanges> getNoChangesPerUser(int months);", "public Collection<CleaningTransaction> findAll();", "Set<Customer> getCustomers(final CustomerQueryFilter filter);", "List<ContentSum> findAll();", "@Override\r\n\tpublic int[] getMonthPeopleStatistic(int year, int month) {\n\t\tint[] result = new int[31];\r\n\t\tDate date = DateUtil.getDateByYearAndMonth(year, month);\r\n\t\tDate dateStart = DateUtil.getFirstDay(date);\r\n\t\tfor(int i=0;i<31;++i){\r\n\t\t\tresult[i] = cinemaConditionDao.getCount(dateStart, dateStart);\r\n\t\t\tdateStart = DateUtil.getDayLater(dateStart);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public static String getDate(String year, String month) {\n\t\treturn \"t.posted = \\\"\" + year + \"-\" + month + \"-01 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-02 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-03 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-04 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-05 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-06 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-07 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-08 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-09 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-10 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-11 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-12 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-13 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-14 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-15 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-16 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-17 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-18 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-19 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-20 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-21 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-22 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-23 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-24 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-25 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-26 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-27 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-28 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-29 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-30 00:00:00\\\" or\\r\\n\" + \n\t\t\t\t\"t.posted = \\\"\" + year + \"-\" + month + \"-31 00:00:00\\\" \\r\\n\";\n\t}", "List<TransactionRec> loadRecordsByAccount(BankAccount account);", "@Override\r\n\tpublic Map<String, Integer[]> getMonthMoneyStatistic(int year, int month) {\n\t\treturn null;\r\n\t}", "public static List<Transaction> getTransactionsFilteredByDate(String startDate, String endDate,\r\n\t\t\tTransactionType transactionType) {\r\n\t\tList<Transaction> transactions = new ArrayList<>();\r\n\t\tdbConnect();\r\n\t\tStatement stmt = null;\r\n\t\tResultSet rs = null;\r\n\t\t// SimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\");\r\n\t\t// Date start = (Date) sdf.parse(startDate);\r\n\t\t// Date end = (Date) sdf.parse(endDate);\r\n\t\tfinal String OPEN_TRANSACTIONS_FROM_DB;\r\n\t\tif (transactionType == TransactionType.PURCHASE)\r\n\t\t\tOPEN_TRANSACTIONS_FROM_DB = \"SELECT * FROM purchase WHERE DATE(purchase_date) >= DATE('\" + startDate\r\n\t\t\t\t\t+ \"') AND DATE(purchase_date) <= DATE('\" + endDate + \"') ORDER BY purchase_id DESC\";\r\n\t\telse\r\n\t\t\tOPEN_TRANSACTIONS_FROM_DB = \"SELECT * FROM sales WHERE DATE(sales_date) >= DATE('\" + startDate\r\n\t\t\t\t\t+ \"') AND DATE(sales_date) <= DATE('\" + endDate + \"') ORDER BY sales_id DESC\";\r\n\t\ttry {\r\n\t\t\tstmt = conn.createStatement();\r\n\t\t\trs = stmt.executeQuery(OPEN_TRANSACTIONS_FROM_DB);\r\n\t\t\twhile (rs.next()) {\r\n\t\t\t\tint transactionNumber = rs.getInt(1);\r\n\t\t\t\tString transactionDate = rs.getString(2);\r\n\t\t\t\tString nameOfClient = getClient(rs.getInt(3), transactionType).getName();\r\n\t\t\t\tdouble cashGiven = rs.getDouble(4);\r\n\t\t\t\tObservableList<Product> productList = getProductTransaction(rs.getInt(1), transactionType);\r\n\r\n\t\t\t\ttransactions.add(new Transaction(transactionNumber, transactionDate, nameOfClient, cashGiven, cashGiven,\r\n\t\t\t\t\t\tproductList.size(), productList));\r\n\t\t\t}\r\n\t\t\tstmt.close();\r\n\t\t\trs.close();\r\n\t\t} catch (SQLException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\treturn transactions;\r\n\t}", "public List<AttendanceRecord> getMyAttendance(SystemAccount user, int month, int year){\n Calendar cal = Calendar.getInstance();\n List<AttendanceRecord> returnList = new ArrayList<>();\n\n for(AttendanceRecord ar:arDao.findAll()){\n cal.setTime(ar.getDate());\n\n if( (cal.get(Calendar.MONTH)+1)==month && cal.get(Calendar.YEAR)==year && ar.getStaff().getStaffId().equalsIgnoreCase(user.getStaff().getStaffId()) ){\n returnList.add(ar);\n }\n }\n\n return returnList;\n }", "public Set<Transaction> getTransactionsByLotId(Integer id) throws MiddlewareQueryException;", "public List<OutwardDTO> getOutwardReport(String type,String month,String year);", "@Transactional\n public Map<Long, ArrayList<News>> getCalNewsForMonth(int month, int year) {\n return calendarDAO.getCalNewsForMonth(month, year);\n }", "@Override\n\tpublic List<CashTransactionDtl> getCashTransactionDtlByAccount(\n\t\t\tMap<String, Object> params) throws ServiceException {\n\t\treturn cashTransactionDtlMapper.queryCashTransactionRecord(params);\n\t}", "public List<RecepcionSero> getAllSerologias()throws Exception{\n Session session = sessionFactory.getCurrentSession();\n Date date = new Date();\n Calendar calendar = new GregorianCalendar();\n calendar.setTime(date);\n int year = calendar.get(Calendar.YEAR);\n Integer a = year;\n Query query = session.createQuery(\"from RecepcionSero s where year(s.fecreg) =:a order by s.fecreg desc\");\n query.setParameter(\"a\",a);\n return query.list();\n }", "@LogExceptions\n public void deleteAll(String month, String year) throws SQLException {\n Connection conn = DatabaseConnection.getConnection();\n try(PreparedStatement stmt = \n conn.prepareStatement(SELECT_EVENT_MONTH_YEAR))\n {\n stmt.setString(1, month);\n stmt.setString(2, year); \n try(ResultSet rs = stmt.executeQuery()) {\n while(rs.next()) {\n delete(rs.getInt(1));\n }\n } \n }\n }", "public Payment(int year, int month, int electro_start, int electro_end, int water_start, int water_end) {\n if (month >= 0 & month < 13) {\n this.year = year;\n this.month = month;\n this.electro_start = electro_start;\n this.electro_end = electro_end;\n this.water_start = water_start;\n this.water_end = water_end;\n name = year + \".\" + month + \" (\" + MONTHS[month] + \")\";\n } else {\n throw new ArrayIndexOutOfBoundsException(\"Wrong number of month - Неправильный номер месяца\");\n }\n\n }", "private ArrayList<Transaction> getTransactionsOfTheDay(int assetID) throws Exception {\n int i = 1;\n ArrayList<Transaction> currentTransactions = new ArrayList<Transaction>();\n ArrayList<Transaction> allTransactions = new ArrayList<Transaction>();\n\n while (true) {\n String url = MASTER_URL + ASSETS + assetID + \"/history_paginate.api?page=\" + i;\n\n URL obj = new URL(url);\n HttpURLConnection con = (HttpURLConnection) obj.openConnection();\n // request method\n con.setRequestMethod(\"GET\");\n\n // request headers\n con.setRequestProperty(\"token\", USER_TOKEN);\n con.setRequestProperty(\"User-Agent\", USER_AGENT);\n\n // reading input stream\n BufferedReader in = new BufferedReader(new InputStreamReader(con.getInputStream()));\n String inputLine;\n String response = \"\";\n while ((inputLine = in.readLine()) != null) {\n response += inputLine;\n }\n in.close();\n\n DateTime assetActiveDateTime = new DateTime().minusDays(1);\n// System.out.println(assetActiveDateTime);\n int day = assetActiveDateTime.getDayOfMonth();\n int month = assetActiveDateTime.getMonthOfYear();\n int year = assetActiveDateTime.getYear();\n ObjectMapper mapper = new ObjectMapper();\n mapper.configure(org.codehaus.jackson.map.DeserializationConfig.Feature.FAIL_ON_UNKNOWN_PROPERTIES, false);\n String emptyHistory = \"{\\\"history\\\":[]\";\n if (!response.substring(0,13).equals(emptyHistory)) {\n String arrayResponse = response.substring(11, response.length() - 1);\n CollectionType constructCollectionType =\n TypeFactory.defaultInstance().constructCollectionType(ArrayList.class,\n Transaction.class);\n currentTransactions = mapper.readValue(arrayResponse, constructCollectionType);\n for (Transaction t : currentTransactions){\n DateTime checkoutDateTime = t.getCheckOutDateTime();\n if (day == checkoutDateTime.getDayOfMonth() &&\n month == checkoutDateTime.getMonthOfYear() &&\n year == checkoutDateTime.getYear()) {\n allTransactions.add(t);\n }\n }\n// System.out.println(allTransactions);\n currentTransactions.clear();\n } else {\n break;\n }\n i++;\n }\n return allTransactions;\n }", "public void sortBasedYearService();", "Collection<Transaction> findAllByTransactiontype(int type, Sort sort);", "List<Transaction> selectByExample(TransactionExample example);", "@Override\n\tpublic List<BankTransaction> getAllTransactions() throws BusinessException {\n\t\tBankTransaction bankTransaction = null;\n\t\tList<BankTransaction> bankTransactionList = new ArrayList<>();\n\t\tConnection connection;\n\n\t\ttry {\n\t\t\tconnection = PostgresqlConnection.getConnection();\n\t\t\tString sql = \"select transaction_id, account_id, transaction_type, amount, transaction_date from dutybank.transactionss\";\n\t\t\t\n\t\t\tPreparedStatement preparedStatement = connection.prepareStatement(sql);\n\n\t\t\tResultSet resultSet = preparedStatement.executeQuery();\n\t\t\t\n\t\t\t\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tbankTransaction = new BankTransaction();\n\t\t\t\tbankTransaction.setTransactionid(resultSet.getInt(\"transaction_id\"));\n\t\t\t\tbankTransaction.setAccountid(resultSet.getInt(\"account_id\"));\n\t\t\t\tbankTransaction.setTransactiontype(resultSet.getString(\"transaction_type\"));\n\t\t\t\tbankTransaction.setTransactionamount(resultSet.getDouble(\"amount\"));\n\t\t\t\tbankTransaction.setTransactiondate(resultSet.getDate(\"transaction_date\"));\n\n\t\t\t\tbankTransactionList.add(bankTransaction);\n\t\t\t} \n\t\t\t\n\t\t\tif (bankTransactionList.size() == 0) {\n\t\t\t\tthrow new BusinessException(\"There is not data to retrieve\");\n\t\t\t}\n\t\t\n\t\t} catch (ClassNotFoundException | SQLException e) {\n\t\t\tthrow new BusinessException(\"Some Error ocurred retrieving data for transactions\");\n\t\t}\n\t\t\n\t\treturn bankTransactionList;\n\t}", "@Override\n\tpublic List<BookVO> monthList() {\n\t\tList<BookVO> monthList =bookDAO.monthList();\n\t\treturn monthList;\n\t}", "@Test()\n public void testGetExpensesByTypeAndMonth() {\n\tString type = \"MONTHLY\";\n\tYearMonth yearMonth = YearMonth.of(2015, 6);\n\tList<Expense> expensesForDisplay = expenseManager.getExpensesByTypeAndMonth(type, yearMonth);\n\tassertEquals(1, expensesForDisplay.size(), 0);\n }", "public List<Transaction> idAndDatefilterTransaction(Predicate<Transaction> dateStrategy,\n Predicate<Transaction> idStrategy) throws ParseException {\n return processAllTransaction().getTransactionList().stream().filter(dateStrategy).filter(idStrategy).collect(Collectors.toList());\n }", "@SuppressWarnings(\"unchecked\")\n\t@Override\n\tpublic Object[] findBillingByInvoiceAndDate(String invoice, Date trxDate,\n\t\t\tObject[] mt940Data) {\n\t\tString sql = \"select \"\n\t\t\t\t\t+\"inv.invoice_number, \"\n\t\t\t\t\t+\"reg.id_registrant, \"\n\t\t\t\t\t+\"DATE_FORMAT(pay.due_date, '%d/%c/%Y %H:%i:%k'), \"\n\t\t\t\t\t+\"DATE_FORMAT(pay.payment_date, '%d/%c/%Y %H:%i:%k'), \"\n\t\t\t\t\t+\"nama_registrant, \"\n\t\t\t\t\t+\"inv.amount \"\n\t\t\t\t\t+\"from \"\n\t\t\t\t\t+\"invoices inv join payments pay on \"\n\t\t\t\t\t+\"inv.id_invoice = pay.id_invoice \"\n\t\t\t\t\t+\"join registrants reg \"\n\t\t\t\t\t+\"on pay.id_registrant = reg.id_registrant \"\n\t\t\t\t\t+\"where inv.invoice_number = :invoice \"\n\t\t\t\t\t+\"and pay.payment_date is not null \"; \n\t\t\n\t\tQuery query = getSessionFactory().getCurrentSession().createSQLQuery(sql);\n\t\tquery.setParameter(\"invoice\", invoice);\n\t\t\t\n\t\tObject obj = new Object();\n\t\tObject[] objectArray = null;\n\t\t\n\t\tList<Object> result = query.list();\n\t\tif (result.size()>0) {\n\t\t\tobj = result.get(0);\n\t\t\tobjectArray = (Object[]) obj;\n\t\t}\n\t\treturn objectArray;\n\t}", "public List<Transaction> getTransactions() throws SQLException {\n\t\tList<Transaction> result = new ArrayList<>();\n\t\tStatement statement = conn.createStatement();\n\t\ttry (ResultSet resultSet = statement.executeQuery(\"select Date, Amount, Category, Type from transaction\")) {\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tresult.add(new Transaction(resultSet.getDate(1), resultSet.getDouble(2), resultSet.getString(3), resultSet.getString(4)));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\n public void testGetOrdersByDate() {\n\n LocalDate ld = LocalDate.parse(\"2017-06-23\");\n List<Order> orderListByDate = service.getOrdersByDate(ld);\n List<Order> filteredList = new ArrayList<>();\n\n for (Order currentOrder : orderListByDate) {\n if (currentOrder.getOrderDate().contains(\"06232017\")) {\n filteredList.add(currentOrder);\n }\n }\n\n assertEquals(2, filteredList.size());\n }", "public List<AttendanceRecord> getAllAttendance(String loc, int month, int year){\n Calendar cal = Calendar.getInstance();\n List<AttendanceRecord> returnList = new ArrayList<>();\n\n for(AttendanceRecord ar:arDao.findAll()){\n cal.setTime(ar.getDate());\n\n if( (cal.get(Calendar.MONTH)+1)==month && cal.get(Calendar.YEAR)==year && ar.getStaff().getLocation().equalsIgnoreCase(loc) ){\n returnList.add(ar);\n }\n }\n\n return returnList;\n }", "List<BusinessTransaction> query(String tenantId, BusinessTransactionCriteria criteria);", "private Object[][] getDebitArrearsAmt(String month, String year, String divisionId, String tdsDebitCode) {\r\n\t\tObject[][]data = null;\r\n\t\ttry {\r\n\t\t\tString query = \"SELECT ARREARS_EMP_ID, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' '), TO_CHAR(SUM(NVL(ARREARS_AMT,0)),9999999990.99), ARREARS_DEBIT_CODE \" \r\n\t\t\t\t+ \" FROM HRMS_ARREARS_DEBIT_\"+year\r\n\t\t\t\t+ \" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_ARREARS_DEBIT_\"+year+\".ARREARS_EMP_ID) \" \r\n\t\t\t\t+ \" INNER JOIN HRMS_DEBIT_HEAD ON (HRMS_DEBIT_HEAD.DEBIT_CODE = HRMS_ARREARS_DEBIT_\"+year+\".ARREARS_DEBIT_CODE) \" \r\n\t\t\t\t+ \" WHERE ARREARS_CODE IN (SELECT ARREARS_CODE FROM HRMS_ARREARS_LEDGER WHERE ARREARS_PAID_MONTH =\" +month\r\n\t\t\t\t+ \" AND ARREARS_PAID_YEAR = \"+year+\" AND ARREARS_DIVISION = \"+divisionId+\") AND ARREARS_DEBIT_CODE =\"+tdsDebitCode\r\n\t\t\t\t+ \" GROUP BY ARREARS_DEBIT_CODE, ARREARS_EMP_ID, EMP_TOKEN, EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME \"\r\n\t\t\t\t+ \" ORDER BY ARREARS_EMP_ID, NVL(EMP_TOKEN,' '), NVL(EMP_FNAME||' '||EMP_MNAME||' '||EMP_LNAME,' ')\";\r\n\t\t\t\r\n\t\t\tdata = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in getDebitArrearsAmt query\",e);\r\n\t\t} //end of catch\r\n\t\treturn data;\r\n\t}", "@Override\n\tpublic List<ControlAcceso> findByMonth(int month) {\n\t\treturn controlA.findByMonth(month);\n\t}", "public List<Order> getOrdersByDate(Date date);", "public interface TransactionRepository {\n\n Transaction save(Transaction transaction);\n\n void remove(Transaction trx);\n\n void removeByAccount(Account account);\n\n long countTransactions();\n\n long countTransactionsOfAccount(Account account);\n\n List<Transaction> findAll();\n\n List<Transaction> filterAll(TransactionFilter filter);\n\n List<Transaction> findByCategory(Category category);\n\n List<Transaction> findByAccount(Account account);\n\n List<Transaction> findByAccountAndYear(Account account, Integer year);\n\n List<Transaction> findByAccountAndCategory(Account account, Category category);\n\n List<TransactionVolume> getCategoryVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getAccountCategoryVolumes(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyCategoryVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyAccountCategoryVolumes(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyIncomingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyOutgoingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyIncomingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyOutgoingVolumes(boolean includeTransfers);\n\n List<TransactionVolume> getYearlyIncomingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getYearlyOutgoingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyIncomingVolumesOfAccount(Account account, boolean includeTransfers);\n\n List<TransactionVolume> getMonthlyOutgoingVolumesOfAccount(Account account, boolean includeTransfers);\n\n ValueRange<LocalDate> getTransactionOpDateRange();\n\n ValueRange<LocalDate> getTransactionOpDateRangeForYear(Integer year);\n\n ValueRange<LocalDate> getTransactionOpDateRangeForAccount(Account account);\n\n ValueRange<LocalDate> getTransactionOpDateRangeForAccountAndYear(Account account, Integer year);\n\n}", "private static void executeQuery3(PersistenceManager pm) {\n Query query = pm.newQuery(Book.class);\n query.setFilter(\"date >= fromDate && date <= toDate\");\n query.declareImports(\"import java.util.Date\");\n query.declareParameters(\"Date fromDate, Date toDate\");\n query.setOrdering(\"date descending\"); // order from new to old\n Collection results =\n (Collection)query.execute(getYearDate(2002), getYearDate(2003));\n printCollection(\"Books published in 2002:\", results.iterator());\n query.closeAll();\n }", "@Override\n\tpublic List<Transaction> getTransactionsByAccountId(int accountId) throws SQLException {\n\t\tList<Transaction> tList = new ArrayList<>();\n\t\tConnection connect = db.getConnection();\n\t\tString selectQuery = \"select * from transaction_history where account_id=?\";\n\t\tPreparedStatement prepStmt = connect.prepareStatement(selectQuery);\n\t\tprepStmt.setInt(1, accountId);\n\t\tResultSet rs = prepStmt.executeQuery();\n\t\twhile (rs.next()) {\n\t\t\tTransaction t = new Transaction(rs.getInt(2), rs.getString(3), rs.getDouble(4),rs.getTimestamp(5));\n\t\t\ttList.add(t);\n\t\t}\n\t\treturn tList;\n\t}", "public TransactionResponse getTransactionByDate(Date date) throws ParseException {\n TransactionResponse response = new TransactionResponse();\n Predicate<Transaction> byDate = t -> t.getDate().equals(date);\n response.setTransaction(dateFilterTransaction(byDate));\n return response;\n }", "@Override\n\tpublic List<Month11DTO> selectMonth(String date) {\n\t\treturn getSqlSession().selectList(\"selectMonth\",date);\n\t}", "public ArrayList<FamilyPlanningRecord> getMonthlyFamilyPlanningRecords(int month,int year,int ageRange,String gender,int page){\n\t\tArrayList<FamilyPlanningRecord> list=new ArrayList< FamilyPlanningRecord>();\n\t\tString firstDateOfTheMonth;\n\t\tString lastDateOfTheMonth;\n\t\tSimpleDateFormat dateFormat=new SimpleDateFormat(\"yyyy-MM-dd\",Locale.UK);\n\t\tCalendar calendar=Calendar.getInstance();\n\t\tif(month==0){ //this month\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH, 1);\n\t\t\tfirstDateOfTheMonth=dateFormat.format(calendar.getTime());\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH,calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n\t\t\tlastDateOfTheMonth=dateFormat.format(calendar.getTime());\n\t\t}else if(month==1){\t//this year/all year\n\t\t\tcalendar.set(Calendar.YEAR, year);\n\t\t\tcalendar.set(Calendar.MONTH,Calendar.JANUARY);\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH,1);\n\t\t\tfirstDateOfTheMonth=dateFormat.format(calendar.getTime());\n\t\t\tcalendar.set(Calendar.MONTH,Calendar.DECEMBER);\n\t\t\tcalendar.set(Calendar.DAY_OF_MONTH,31);\n\t\t\tlastDateOfTheMonth=dateFormat.format(calendar.getTime());\n\t\t}else{\t//selected month and year\n\t\t\tmonth=month-2;\n\t\t\tcalendar.set(year, month, 1);\n\t\t\tfirstDateOfTheMonth=dateFormat.format(calendar.getTime());\n\t\t\tcalendar.set(year,month,calendar.getActualMaximum(Calendar.DAY_OF_MONTH));\n\t\t\tlastDateOfTheMonth=dateFormat.format(calendar.getTime());\n\t\t}\n\n\t\t//define age range\n\n\t\tString strAgeFilter=\" 1 \";\n\t\tif(ageRange>0){//if it is not total\n\t\t\tageRange=ageRange-1;\n\t\t\tif(ageRange==0){\n\t\t\t\tstrAgeFilter=CommunityMembers.AGE+\"<10\";\t//under 1 year\n\t\t\t}else if(ageRange>=1 && ageRange<6){\t//compute range\n\t\t\t\tstrAgeFilter=\"(\"+CommunityMembers.AGE+\">=\"+ageLimit[ageRange]+\" AND \"+CommunityMembers.AGE+\"<\"+ageLimit[ageRange+1]+\")\";\n\t\t\t}else{\t\n\t\t\t\tstrAgeFilter=CommunityMembers.AGE+\">=35\";\n\t\t\t}\n\t\t}\n\t\t\n\t\tString strGenderFilter=\" 1 \";\n\t\tif(gender != null){\n\t\t\tif(!gender.equals(\"all\")){\n\t\t\t\tstrGenderFilter=CommunityMembers.GENDER +\" = '\"+gender+\"'\";\n\t\t\t}\n\t\t}\n\n\t\tString limitClause=\"\";\n\t\tif(page>=0){\n\t\t\tpage=page*15;\n\t\t\tlimitClause=\" limit \" +page +\",15\";\n\t\t}\n\t\t\n\t\ttry{\n\t\t\tdb=getReadableDatabase();\n\t\t\tString strQuery=\"select \"\n\t\t\t\t\t+SERVICE_REC_ID+\", \"\n\t\t\t\t\t+FamilyPlanningServices.SERVICE_ID +\", \"\n\t\t\t\t\t+FamilyPlanningServices.SERVICE_NAME+\", \"\n\t\t\t\t\t+CommunityMembers.COMMUNITY_MEMBER_ID+\", \"\n\t\t\t\t\t+CommunityMembers.COMMUNITY_MEMBER_NAME+\", \"\n\t\t\t\t\t+QUANTITY+\", \"\n\t\t\t\t\t+SERVICE_DATE +\",\"\n\t\t\t\t\t+CommunityMembers.BIRTHDATE +\", \"\n\t\t\t\t\t+CommunityMembers.COMMUNITY_ID+\", \"\n\t\t\t\t\t+SERVICE_TYPE\n\t\t\t\t\t//+\",\"\n\t\t\t\t\t//+CommunityMembers.GENDER\n\t\t\t\t\t+\" from \" +FamilyPlanningRecords.VIEW_NAME_FAMILY_PLANING_RECORDS_DETAIL\n\t\t\t\t\t+\" where \"\n\t\t\t\t\t+\"(\"+FamilyPlanningRecords.SERVICE_DATE +\">=\\\"\"+ firstDateOfTheMonth +\"\\\" AND \"\n\t\t\t\t\t+FamilyPlanningRecords.SERVICE_DATE +\"<=\\\"\"+ lastDateOfTheMonth + \"\\\" )\"\n\t\t\t\t\t+\" AND \"\n\t\t\t\t\t+strAgeFilter \n\t\t\t\t\t//+\" AND \"\n\t\t\t\t\t//+strGenderFilter there is not gender in family planing record\n\t\t\t\t\t+limitClause;\n\t\t\t\t\t\n\t\t\tcursor=db.rawQuery(strQuery, null);\n\t\t\tFamilyPlanningRecord record=fetch();\n\t\t\twhile(record!=null){\n\t\t\t\tlist.add(record);\n\t\t\t\trecord=fetch();\n\t\t\t}\n\t\t\tclose();\n\t\t\treturn list;\n\t\t}catch(Exception ex){\n\t\t\treturn list;\n\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\n\t}", "@Transactional\n\tpublic Set<TransactionTable> findAllTransactions() {\n\t\t List<TransactionTable> list = new ArrayList<TransactionTable>();\n\t TypedQuery<TransactionTable> query = entityManager.createNamedQuery(\"TransactionTable.findAll\", TransactionTable.class);\n\t list = query.getResultList();\n\t Set<TransactionTable> TransactionSet = new HashSet<TransactionTable>(list);\n\t return TransactionSet;\n\t\n\t}", "@Override\n\tpublic List<Transaction> getAllTransactions() { \n\t\t/* begin transaction */ \n\t\tSession session = getCurrentSession(); \n\t\tsession.beginTransaction();\n\n\t\tQuery query = session.createQuery(\"from Transaction\");\n\t\tList<Transaction> expenses = query.list();\n\n\t\t/* commit */ \n\t\tsession.getTransaction().commit();\n\n\t\treturn expenses; \n\t}", "public TransactionResponse processAllTransaction() throws ParseException {\n TransactionResponse response = new TransactionResponse();\n\n //User0\n response.setTransaction(new Transaction(\"user0\",\"0001\", \"type0\",\"user0_Billing\",\"user0_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-02-00\")));\n\n //User1\n response.setTransaction(new Transaction(\"user1\", \"0101\",\"type0\",\"user1_Billing\", \"user1_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-02-02\")));\n\n response.setTransaction(new Transaction(\"user1\", \"0102\", \"type1\",\"user1_Billing\", \"user1_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-03-00\")));\n\n //User2\n response.setTransaction(new Transaction(\"user2\", \"0201\", \"type1\",\"user2_Billing\", \"user2_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-01-00\")));\n\n response.setTransaction(new Transaction(\"user2\", \"0202\", \"type2\",\"user2_Billing\", \"user2_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-03-01\")));\n\n response.setTransaction(new Transaction(\"user2\", \"0203\",\"type1\",\"user2_Billing\", \"user2_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-03-01\")));\n\n //User3\n response.setTransaction(new Transaction(\"user3\", \"0301\",\"type0\",\"user3_Billing\", \"user3_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-02-02\")));\n\n response.setTransaction(new Transaction(\"user3\", \"0302\",\"type1\",\"user3_Billing\", \"user3_Sub\",\n new SimpleDateFormat(\"yyyy-mm-dd-hh\").parse(\"2020-01-03-01\")));\n\n return response;\n }", "@LogExceptions\n public synchronized List<Integer> getRegisteredDays\n (String month, String year) throws SQLException \n {\n Connection conn = DatabaseConnection.getConnection();\n try(PreparedStatement stmt = \n conn.prepareStatement(SELECT_EVENT_MONTH_YEAR))\n {\n stmt.setString(1, month);\n stmt.setString(2, year); \n dayList.clear();\n try(ResultSet rs = stmt.executeQuery()) {\n while(rs.next()) {\n dayList.add(rs.getInt(8));\n }\n }\n \n } \n return dayList;\n }", "public List<Transaction> getTransactions(String startdate, String enddate) {\r\n List<Transaction> transactionList = null;\r\n Session session = HibernateUtil.getSessionFactory().getCurrentSession();\r\n try {\r\n org.hibernate.Transaction hbtransaction = session.beginTransaction();\r\n Query q = session.createQuery (\"from finance.entity.Transaction trans WHERE (trans.effdate BETWEEN :startdate AND :enddate) AND trans.category.extra = false AND trans.deleted = false ORDER BY trans.effdate, trans.category.sortId\");\r\n q.setParameter(\"startdate\", java.sql.Date.valueOf(startdate));\r\n q.setParameter(\"enddate\", java.sql.Date.valueOf(enddate));\r\n transactionList = (List<Transaction>) q.list();\r\n hbtransaction.commit();\r\n } catch (Exception e) {\r\n throw e;\r\n }\r\n return transactionList;\r\n }", "public double[] getPriceStats(String year){\n for (int i = 0; i < priceMonthCounter.length; i++) priceMonthCounter[i]=0;\n \n for (TransferImpl movement : MovementsController.getInstanceOf().getMovements()) {\n \t// Convert the util.Date to LocalDate\n \tLocalDate date = movement.getLeavingDate().toInstant().atZone(ZoneId.systemDefault()).toLocalDate();\n\t\t// Filter movements by year\n \t// Filter movements by year\n\t if(date.getYear()==Integer.parseInt(year)){\n\t \tint month = date.getMonthValue() - 1; \n\t \n\t \tswitch (movement.getType().toLowerCase()) {\n\t \tcase \"return\":\n\t \t\tintMonthCounter[month]-=movement.getTotalPrice(); // Increment the month according to the number of movements\n\t \t\tbreak;\n\t \tcase \"sold\":\n\t \t\tintMonthCounter[month]+=movement.getTotalPrice(); // Increment the month according to the number of movements\n\t \t\tbreak;\n\t \t}\n\t }\n\t \n\t for(int i=0; i<priceMonthCounter.length;i++) \n\t \tpriceMonthCounter[i] = Double.parseDouble(this.convertPriceToString(intMonthCounter[i]));\n }\n \n return priceMonthCounter;\n\t}", "private Object[][] getAllowanceAmt(String month, String year, String divId) {\r\n\t\tObject[][]data = null;\r\n\t\ttry {\r\n\t\t\tString query = \"SELECT TO_CHAR(NVL(SUM(ALLW_TAX_AMT),0),9999999990.99),HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID \" \r\n\t\t\t+\" FROM HRMS_ALLOWANCE_HDR \"\r\n\t\t\t+\" INNER JOIN HRMS_ALLOWANCE_EMP_DTL ON (HRMS_ALLOWANCE_EMP_DTL.ALLW_ID = HRMS_ALLOWANCE_HDR.ALLW_ID) \"\r\n\t\t\t+\" INNER JOIN HRMS_EMP_OFFC ON (HRMS_EMP_OFFC.EMP_ID = HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID) \"\r\n\t\t\t+\" INNER JOIN HRMS_CREDIT_HEAD ON (HRMS_CREDIT_HEAD.CREDIT_CODE = HRMS_ALLOWANCE_HDR.ALLW_CREDIT_HEAD) \" \r\n\t\t\t+\" AND TO_CHAR(ALLW_PROCESS_DATE,'MM')=\"+month+\" \"\r\n\t\t\t+\" AND TO_CHAR(ALLW_PROCESS_DATE,'YYYY')=\"+year+\" \" \r\n\t\t\t+\" AND EMP_DIV = \"+divId+\" \"\r\n\t\t\t+\" GROUP BY HRMS_ALLOWANCE_EMP_DTL.ALLW_EMP_ID\";\r\n\t\t\tdata = getSqlModel().getSingleResult(query);\r\n\t\t} catch (Exception e) {\r\n\t\t\tlogger.error(\"exception in allowance query\",e);\r\n\t\t} //end of catch\t\r\n\t\treturn data;\r\n\t}", "public Integer getNoOfSalesTransactions(int month, int day, int year, int storeCode, int... hour) {\r\n\t\tString query = \"SELECT count(1) COUNT FROM invoice o where exists(select 1 from payment_item p where o.OR_NO = p.OR_NO and o.STORE_CODE = p.STORE_CODE and p.AMT >0) AND \" +\r\n\t\t\"MONTH (o.TRANS_DT) = '\"+month+\"' && \" +\r\n\t\t\"YEAR(o.TRANS_DT) = '\"+year+\"' && \" +\r\n\t\t\"DAY(o.TRANS_DT) = '\"+day+\"' \" +\r\n\t\t\"AND o.STORE_CODE = '\"+storeCode+\"'\";\r\n\r\n\t\tif (hour.length > 0) {\r\n\t\t\tquery += \" AND HOUR(o.TRANS_DT) = \" + hour[0];\r\n\t\t}\r\n\t\t\r\n\t\tResultSet rs = Main.getDBManager().executeQuery(query);\r\n\t\t\r\n\t\tInteger count = 0;\r\n\t\ttry {\r\n\t\t\twhile(rs.next()){\r\n\t\t\t\tcount = rs.getInt(\"COUNT\");\r\n\t\t\t}\r\n\t\t} catch (SQLException e) {\r\n\t\t\tLoggerUtility.getInstance().logStackTrace(e);\r\n\t\t}\r\n\t\tlogger.debug(\"TOTAL NO OF TRANSACTIONS: \"+ count);\r\n\t\treturn count;\t\t\r\n\t}", "@Override\n public List<Transaksi> getAll() {\n List<Transaksi> listTransaksi = new ArrayList<>();\n\n try {\n String query = \"SELECT id, date_format(tgl_transaksi, '%d-%m-%Y') AS tgl_transaksi FROM transaksi\";\n\n PreparedStatement ps = Koneksi().prepareStatement(query);\n ResultSet rs = ps.executeQuery();\n\n while (rs.next()) {\n Transaksi transaksi = new Transaksi();\n\n transaksi.setId(rs.getString(\"id\"));\n transaksi.setTglTransaksi(rs.getString(\"tgl_transaksi\"));\n\n listTransaksi.add(transaksi);\n }\n } catch (SQLException se) {\n se.printStackTrace();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n return listTransaksi;\n }", "public Map<LocalDate, Transactions> getTransactionsList(){\n return listOfTransactions;\n }", "@Override\r\n\tpublic int[] getMonthPeople() {\n\t\tint[] result = new int[12];\r\n\t\tDate date = DateUtil.getCurrentDate();\r\n\t\tDate dateStart = DateUtil.getFirstDay(date);\r\n\t\tDate dateEnd = DateUtil.getLastDay(date);\r\n\t\tresult[0] = cinemaConditionDao.getCount(dateStart, dateEnd);\r\n\t\tfor(int i=0;i<11;i++){\r\n\t\t\tdate = DateUtil.getMonthBefroe(dateStart);\r\n\t\t\tdateStart = DateUtil.getFirstDay(date);\r\n\t\t\tdateEnd = DateUtil.getLastDay(date);\r\n\t\t\tresult[i+1] = cinemaConditionDao.getCount(dateStart, dateEnd);\r\n\t\t}\r\n\t\treturn result;\r\n\t}", "public List<DailyRecord> getDailyIncome(int year, Month month) throws SQLException {\n\t\treturn getDaily(year, month, \"Income\");\n\t}", "MasterTableJournal[] findAllJournalsSince(long commit_id) {\n\n ArrayList all_since = new ArrayList();\n\n int size = transaction_mod_list.size();\n for (int i = 0; i < size; ++i) {\n MasterTableJournal journal =\n (MasterTableJournal) transaction_mod_list.get(i);\n long journal_commit_id = journal.getCommitID();\n // All journals that are greater or equal to the given commit id\n if (journal_commit_id >= commit_id) {\n all_since.add(journal);\n }\n }\n\n return (MasterTableJournal[])\n all_since.toArray(new MasterTableJournal[all_since.size()]);\n }", "List<TCpyYearCheck> selectByExample(TCpyYearCheckExample example);", "List<KeyDevelopmentsStatsPerMonthVO> getNumberOfTransactionsPerMonth(final StatisticalDTO dto);", "public AccountSummary findAccountSummaryByUser(User user, Integer month, Integer year) {\n List<Budget> budgets = findBudgetByUser(user, month, year);\n\n LOGGER.debug(\"Find account summary {} {}-{}\", user, month, year);\n AccountSummary accountSummary = new AccountSummary();\n Map<Category, List<Budget>> grouped = budgets\n .stream()\n .collect(Collectors.groupingBy(Budget::getCategory));\n\n for(Map.Entry<Category, List<Budget>> entry: grouped.entrySet()) {\n Category category = entry.getKey();\n double budget = entry.getValue().stream().mapToDouble(Budget::getProjected).sum();\n double spent = entry.getValue().stream().mapToDouble(Budget::getActual).sum();\n Group group = new Group(category.getId(), category.getName());\n group.setType(category.getType());\n group.setBudget(budget);\n group.setSpent(spent);\n group.setBudgets(entry.getValue());\n accountSummary.getGroups().add(group);\n }\n\n accountSummary.getGroups().sort(Comparator.comparing(Group::getId));\n return accountSummary;\n }", "@Test\n public void getTimeListsByMonth(){\n userDAO.createUser(new User(\"dummy\", \"dummy\", 1));\n timeListDAO.createTimeList(new TimeList(\"dummy\", 1990, 0, 60, 0, 0));\n\n assertNotNull(timeListResource.getTimeListsByMonth(1990,0));\n\n //clean up\n timeListDAO.removeTimeList(1990,0, \"dummy\");\n userDAO.removeUser(\"dummy\");\n }", "public List<Transaction> getAllTransactions(){\n Cursor cursor = fetchAllRecords();\n List<Transaction> transactions = new ArrayList<Transaction>();\n if (cursor != null){\n while(cursor.moveToNext()){\n transactions.add(buildTransactionInstance(cursor));\n }\n cursor.close();\n }\n return transactions;\n }", "public List<moneytree.persist.db.generated.tables.pojos.Income> fetchByTransactionDate(LocalDate... values) {\n return fetch(Income.INCOME.TRANSACTION_DATE, values);\n }", "public List<DatabaseStore> getVarValuesForMonth(String variable,\n\t\t\tInteger month, Integer year) {\n\t\tSQLiteDatabase db = this.getWritableDatabase();\n\t\tString query = \"Select * FROM \" + TABLE_QUES + \" WHERE \" + QUES_KEY_VAR\n\t\t\t\t+ \"='\" + variable + \"' AND \" + QUES_KEY_MONTH + \"=\" + month\n\t\t\t\t+ \" AND \" + QUES_KEY_YEAR + \"=\" + year + \";\";\n\t\tCursor cursor = db.rawQuery(query, null);\n\t\treturn handleCursor(cursor);\n\t}", "public List<ReporteComprasVentasRetenciones> getReporteExportaciones(int mes, int anio, int idOrganizacion)\r\n/* 260: */ {\r\n/* 261:344 */ StringBuffer sql = new StringBuffer();\r\n/* 262:345 */ sql.append(\"SELECT new ReporteComprasVentasRetenciones(tc.codigo, tc.nombre, COUNT(tc.codigo), \");\r\n/* 263:346 */ sql.append(\" (CASE WHEN tc.codigo = '04' and COALESCE(dpadre.indicadorDocumentoExterior, false) = true THEN -SUM(fcs.baseImponibleTarifaCero) ELSE SUM(fcs.valorFobRefrendo) END), \");\r\n/* 264:347 */ sql.append(\" 'Exportaciones')\");\r\n/* 265:348 */ sql.append(\" FROM FacturaClienteSRI fcs \");\r\n/* 266:349 */ sql.append(\" LEFT OUTER JOIN fcs.tipoComprobanteSRI tc \");\r\n/* 267:350 */ sql.append(\" LEFT OUTER JOIN fcs.facturaCliente fc \");\r\n/* 268:351 */ sql.append(\" LEFT OUTER JOIN fc.documento d \");\r\n/* 269:352 */ sql.append(\" LEFT OUTER JOIN fc.facturaClientePadre fcpadre \");\r\n/* 270:353 */ sql.append(\" LEFT OUTER JOIN fcpadre.documento dpadre \");\r\n/* 271:354 */ sql.append(\" WHERE MONTH(fcs.fechaEmision) =:mes \");\r\n/* 272:355 */ sql.append(\" AND YEAR(fcs.fechaEmision) =:anio \");\r\n/* 273:356 */ sql.append(\" AND fc.estado!=:estadoAnulado \");\r\n/* 274:357 */ sql.append(\" AND fc.indicadorSaldoInicial!=true \");\r\n/* 275:358 */ sql.append(\" AND COALESCE(dpadre.indicadorDocumentoExterior, d.indicadorDocumentoExterior) = true \");\r\n/* 276:359 */ sql.append(\" AND fc.idOrganizacion = :idOrganizacion\");\r\n/* 277:360 */ sql.append(\" GROUP BY tc.codigo, tc.nombre, dpadre.indicadorDocumentoExterior \");\r\n/* 278:361 */ sql.append(\" ORDER BY tc.codigo, tc.nombre \");\r\n/* 279: */ \r\n/* 280:363 */ Query query = this.em.createQuery(sql.toString());\r\n/* 281:364 */ query.setParameter(\"mes\", Integer.valueOf(mes));\r\n/* 282:365 */ query.setParameter(\"anio\", Integer.valueOf(anio));\r\n/* 283:366 */ query.setParameter(\"estadoAnulado\", Estado.ANULADO);\r\n/* 284:367 */ query.setParameter(\"idOrganizacion\", Integer.valueOf(idOrganizacion));\r\n/* 285:368 */ return query.getResultList();\r\n/* 286: */ }", "public ArrayList<Event> getCalendarEventsByMonth()\n {\n ArrayList<Event> monthListOfEvents = new ArrayList<>();\n\n for(int i = 0; i < events.size(); i++)\n {\n if( (events.get(i).getCalendar().get(Calendar.YEAR) == currentCalendar.get(Calendar.YEAR)) &&\n (events.get(i).getCalendar().get(Calendar.MONTH) == currentCalendar.get(Calendar.MONTH)))\n {\n monthListOfEvents.add(events.get(i));\n }\n }\n return monthListOfEvents;\n }", "public Cursor fetchAllRecurringTransactions(){\n Cursor cursor = mDb.query(TransactionEntry.TABLE_NAME,\n null,\n TransactionEntry.COLUMN_RECURRENCE_PERIOD + \"!= 0\",\n null, null, null,\n AccountEntry.COLUMN_NAME + \" ASC, \" + TransactionEntry.COLUMN_RECURRENCE_PERIOD + \" ASC\");\n// DatabaseHelper.COLUMN_RECURRENCE_PERIOD + \" ASC, \" + DatabaseHelper.COLUMN_TIMESTAMP + \" DESC\");\n return cursor;\n }", "List<BusinessRepayment> selectAll();", "public List<Transaction> getAllDepositTransactionsByDonor(Integer personId, int start, int numOfRows) throws MiddlewareQueryException;", "@Query(value = \"select * from patent_details order by year asc;\", nativeQuery = true)\n public Iterable<PatentDetails> findYearwisePatentDetails();", "@Override\n\tpublic String getTxnNumber(final String txnType, final String vDate) throws ParseException\n\t{\n\t\tString finYear = \"\";\n\t\tString fiscalPeriod = \"\";\n\t\tString retVal = \"\";\n\n\t\tfinal String month[] = vDate.split(\"/\");\n\t\tif (LOGGER.isInfoEnabled())\n\t\t\tLOGGER.info(\" The month :\" + month[1]);\n\t\tfinal SimpleDateFormat sdf = new SimpleDateFormat(\"dd/MM/yyyy\");\n\t\tfinal SimpleDateFormat formatter = new SimpleDateFormat(\"dd-MMM-yyyy\");\n\t\t// Date dt=new Date();\n\t\t// dt = sdf.parse( vDate );\n\t\tfinal String txndate = formatter.format(sdf.parse(vDate));\n\n\t\tfinal StringBuilder sql = new StringBuilder(\"select a.FINANCIALYEAR,b.id from FINANCIALYEAR a,fiscalperiod b \")\n\t\t\t\t.append(\" where a.id=b.financialyearid AND ? between b.startingdate and b.endingdate\");\n\t\tif (LOGGER.isInfoEnabled())\n\t\t\tLOGGER.info(sql);\n\t\tQuery pst = persistenceService.getSession().createSQLQuery(sql.toString());\n pst.setString(0, txndate);\n List<Object[]> rset = pst.list();\n for (final Object[] element : rset) {\n \tfinYear = element[0].toString();\n \tfiscalPeriod = element[1].toString();\n \tif (LOGGER.isInfoEnabled())\n \t\tLOGGER.info(\"finYear id>>>>>>>\" + finYear + \" fiscalPeriod :\" + fiscalPeriod);\n }\n if (rset == null || rset.size() == 0)\n \tthrow new NullPointerException(\"Year is not defined in the system\");\n\n final String year = finYear.substring(2, 4) + finYear.substring(finYear.length() - 2, finYear.length());\n if (LOGGER.isInfoEnabled())\n \tLOGGER.info(\" The year String :\" + year);\n // ---\n if (LOGGER.isDebugEnabled())\n \tLOGGER.debug(\" In CommonMethodsImpl :getTxnNumber method \");\n //persistenceService.setType(CFiscalPeriod.class);\n final CFiscalPeriod fiscalPeriodObj = (CFiscalPeriod) persistenceService.find(\"from CFiscalPeriod where id=?\",\n \t\tLong.parseLong(fiscalPeriod));\n // Sequence name will be SQ_U_DBP_CGVN_FP7 for txnType U/DBP/CGVN and fiscalPeriodIdStr 7\n final String sequenceName = VoucherHelper.sequenceNameFor(txnType, fiscalPeriodObj.getName());\n Serializable runningNumber = genericSequenceNumberGenerator.getNextSequence(sequenceName);\n if (LOGGER.isDebugEnabled())\n \tLOGGER.debug(\"----- Txn Number : \" + runningNumber);\n // ---\n\n retVal = txnType + runningNumber.toString() + \"/\" + month[1] + \"/\" + year;\n if (LOGGER.isInfoEnabled())\n \tLOGGER.info(\"Return value is :\" + retVal);\n\t\treturn retVal;\n\t}", "@Override\n\tpublic double calcGrossPay(int month, int year) {\n\t\tdouble sum=0;\n\t\tmonth--;\n\t\tfor (Order order:orderList)\n\t\t{\n\t\t\tDate date=order.orderDate;\n\t\t\tif (date.getYear()==year && date.getMonth()==month)\n\t\t\t\tsum+=order.orderAmount;\n\t\t}\n\t\treturn baseSalary+commission*sum;\n\t}", "ArrayList<Course> findByDate(LocalDate date);", "List<SimpleTransferVO> paymentVOs(Account account, Period period) throws DaoException;", "List<SalesConciliation> getSalesConciliation(Company company, Date startDate, Date endDate) throws Exception;", "List<InsureUnitTrend> queryInsureDate();", "int getExpMonth(String bookingRef);", "public List<WeeklyRecord> getWeeklyNetIncome(int year, Month month) throws SQLException {\n\t\tLocalDate from = LocalDate.of(year, month, 1);\n\t\tLocalDate to = LocalDate.of(year, month, month.length(from.isLeapYear()));\n\t\ttry (PreparedStatement statement = conn.prepareStatement(\n\t\t\t\t\"SELECT data.Week, data.Income - data.Expense as NetIncome\\n\" + \n\t\t\t\t\"FROM (\\n\" + \n\t\t\t\t\" SELECT \\n\" + \n\t\t\t\t\" (CASE WHEN day(Date) < 8 THEN '1' \\n\" + \n\t\t\t\t\" ELSE CASE WHEN day(DATE) < 15 then '2' \\n\" + \n\t\t\t\t\" ELSE CASE WHEN day(Date) < 22 then '3' \\n\" + \n\t\t\t\t\" ELSE CASE WHEN day(Date) < 29 then '4' \\n\" + \n\t\t\t\t\" ELSE '5'\\n\" + \n\t\t\t\t\" END\\n\" + \n\t\t\t\t\" END\\n\" + \n\t\t\t\t\" END\\n\" + \n\t\t\t\t\"END) as Week, \\n\" + \n\t\t\t\t\" sum(IF(Type = 'Income', Amount,0)) as Income,\\n\" + \n\t\t\t\t\"\tsum(IF(Type = 'Expense', Amount,0)) as Expense\\n\" + \n\t\t\t\t\"FROM transaction\\n\" + \n\t\t\t\t\"WHERE DATE between ? and ?\\n\" + \n\t\t\t\t\"group by Week\\n\" + \n\t\t\t\t\") data\")) {\n\t\t\tstatement.setDate(1, Date.valueOf(from));\n\t\t\tstatement.setDate(2, Date.valueOf(to));\n\t\t\ttry (ResultSet resultSet = statement.executeQuery()) {\n\t\t\t\tArrayList<WeeklyRecord> list = new ArrayList<>();\n\t\t\t\twhile (resultSet.next()) {\t\t\t\n\t\t\t\t\tlist.add(new WeeklyRecord(resultSet.getDouble(2), resultSet.getInt(1)));\t\n\t\t\t\t}\n\t\t\t\treturn list;\n\t\t\t}\n\t\t}\n\t}" ]
[ "0.662282", "0.5953323", "0.58282167", "0.5779195", "0.57554966", "0.5730535", "0.5723988", "0.56759673", "0.5532241", "0.5493081", "0.54366505", "0.5408519", "0.53562707", "0.5343663", "0.5318101", "0.53007793", "0.5293179", "0.5270353", "0.5246101", "0.523955", "0.5225502", "0.52092373", "0.5175207", "0.5161638", "0.515922", "0.5099915", "0.50827837", "0.5075803", "0.50638264", "0.5051341", "0.50451505", "0.5042902", "0.5038999", "0.5038458", "0.5031772", "0.5020254", "0.501369", "0.5009777", "0.4994236", "0.49715787", "0.4970973", "0.49688804", "0.4963683", "0.49498403", "0.49485108", "0.49375597", "0.49331102", "0.49175832", "0.4917514", "0.49048266", "0.48776057", "0.48775673", "0.48704627", "0.4866101", "0.48609284", "0.48570222", "0.48534742", "0.4850603", "0.48466235", "0.48458764", "0.4844315", "0.4833735", "0.48286614", "0.4821265", "0.48171273", "0.48065165", "0.4796617", "0.47912925", "0.47846052", "0.47773987", "0.47764993", "0.47655427", "0.47583222", "0.47536287", "0.47461075", "0.47455683", "0.47450167", "0.4739707", "0.4737758", "0.47371125", "0.47368175", "0.47323993", "0.47233668", "0.47158843", "0.47100258", "0.47082603", "0.47077975", "0.47040498", "0.46986634", "0.46956792", "0.4688302", "0.46836314", "0.4682278", "0.46802002", "0.4673061", "0.46693853", "0.46563932", "0.46453333", "0.4637647", "0.4637104" ]
0.662805
0
/ invoca o main da classe ola mundo, no pacote
public static void main(String[] args) { OlaMundo.main(args); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private Main() {\n\n super();\n }", "private Main ()\n {\n super ();\n }", "public Main() {\n\t\tsuper();\n\t}", "private ThoseMain()\n {\n // Do nothing\n }", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "private TetrisMain() {\r\n //ensure uninstantiability\r\n }", "Main ()\n\t{\n\t\tview = new View ();\t\t\n\t\tmodel = new Model(view);\n\t\tcontroller = new Controller(model, view);\n\t}", "public static void main(String[] args) {\n \r\n MenuPrincipal iniciar=new MenuPrincipal();\r\n iniciar.mostrarMenu();\r\n \r\n \r\n }", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "public ProgramWilmaa()\n\t{\n\t}", "public static void main(String args []){\n Vista miVista=new Vista();\n ListaEstudiantes miListaEstudiantes=new ListaEstudiantes();\n Grupo miGrupo=new Grupo();\n Controlador miControlador=new Controlador(miVista,miListaEstudiantes,miGrupo);\n miControlador.iniciar();\n\n }", "public Main() {\n \n \n }", "public void factoryMainScreen()\n\t{\n\t\t\n\t}", "public main() {\n initComponents();\n \n }", "public MainEntry() {\n initComponents();\n }", "public static void main(String[] args){\n Menu iniciar_menu = new Menu();\r\n }", "public Control(Main main) {\n\n this.main = main;\n\n this.setTitle(\"Piskvorky\");\n this.setLocationRelativeTo(null);\n this.setSize(300, 430);\n this.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n this.setResizable(false);\n this.add(getHlavniPanel());\n\n spustPosluchace();\n\n this.setVisible(false);\n this.repaint();\n }", "public VentanaPrincipal(Controlador main) {\n controlador = main;\n initComponents();\n }", "public Main() {\n initComponents();\n makeDirLookup();\n ta.setEditable(false);\n }", "private Main() {}", "public Main() {\r\n\t}", "public mainpagee() {\n initComponents();\n }", "@SuppressWarnings(\"unused\")\n\tpublic static void main(String[] args) \n {\n \tMainMenu main = new MainMenu();\n }", "private GUIMain() {\n\t}", "public static void main() {\n \n }", "public static void main(String[] args) {\n mainController controll = new mainController(\"127.0.0.1\");\n MainFrame mf = MainFrame.getInstance();\n mf.setController(controll);\n mf.setVisible(true);\n\n //메인메뉴 띄우기\n mf.changeView(Mode.MAIN);\n }", "public static void main(String[] args) {\nBasePotencia pot=new BasePotencia();\r\npot.calculaPot();\r\n\t}", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "public Main() {\n initComponents();\n }", "private Main() {\n }", "public static void main(String[] args) {// mais é o Start Point da aplicação\n\t// estou na classe e dentro do metodo\n\tSystem.out.print(\"Olá mundo\");\n\t\n}", "public static void main(String[] args) {\r\n\t\tjava.awt.EventQueue.invokeLater(new Runnable() {\r\n\t\t\tpublic void run() {\r\n\t\t\t VentanaPrincipal = new CInterfazGrafica();\r\n\t\t\t\tVentanaPrincipal.setVisible(true);\r\n\t\t //ColaEntrada Cola1 = new ColaEntrada();\r\n\t\t //ColaSalida Cola2 = new ColaSalida(); \t\r\n\t\t //InterfazHWVer3 Maurix = new InterfazHWVer3(Cola1, Cola2, VentanaPrincipal);\r\n\t\t\t}\r\n\t });\r\n\t}", "public static void main(String[] args) {\n\t\tfinal Levelre level = new Levelre();\n\t\tMainUI mainui = new MainUI(level);\n\t\t\n\t}", "public Main_Etudiant() {\n initComponents();\n }", "public MainEntry() {\n\t\tthis.taskController = new Controller();\n\t}", "private TetrisMain() {\r\n //prevents instantiation\r\n }", "public static void main(String[] args) {\n\n //MainWindow mainWindow=new MainWindow();\n\n }", "public static void main (String arg[]){\n \nMensaje miMensaje = new Mensaje ( );\nmiMensaje.imprime ( );\n\n }", "public static void main(String[] args) {\n MainIntrence mainintrence = new MainIntrence();\r\n\r\n\r\n\r\n }", "public MainFrame() {\n super(\"Gestione Concessionaria\");\n this.initComponents();\n this.generaFasciaPrezzo();\n this.pack();\n this.setLocationRelativeTo(null);\n this.initPanels();\n this.ToggleMenu.addActionListener(this);\n }", "@Test\r\n\tpublic void mainTest(){\r\n\t\tMain m = new Main();\r\n\t\tm.main(null);\r\n\t}", "public Main() {\n\t\tsuper();\n\t\tInitScreen screen = new InitScreen();\n\t\tpushScreen(screen);\n\t\tUiApplication.getUiApplication().repaint();\n\t}", "public static void main(String[] args) {\r\n \t\r\n // Creates new controller named the main controller\r\n GlobalResources.MainControl = new Control();\r\n // Starts main application\r\n GlobalResources.MainControl.StartApplication();\r\n }", "public static void main(String[] args){\n //uso correcto de git aaaaa por fin lo comprendi, bueno, por ahora :/...\n\n Perro dog = new Perro(\"Teddy\", \"Callejero\", \"Croquetas\", 2, \"Fuerte\");\n Gato cat = new Gato(\"Miau\", \"Hogareño\", \"Atún\", 1, 7);\n //Perico\n Perico parrot = new Perico(\"Pericles\", \"Loro gris\", \"Galletas\", 1, \"Saludos humanos\");\n //Hamster\n Hamster ham = new Hamster(\"Hamilton\", \"Hamster chino\", \"Apio\", 4, \"Morado\");\n //No recuerdo lol...\n\n //los metodos\n dog.mostrarPerro();\n System.out.println(\"-------\");\n cat.mostrarGato();\n System.out.println(\"-------\");\n parrot.mostrarPerico();\n System.out.println(\"-------\");\n ham.mostrarHamster();\n System.out.println(\"_______\");\n \n }", "public void setMain(Main main) {\r\n \tthis.main = main;\r\n }", "public static void main(String[] args) {\n Tortuga marco = new Tortuga();\n marco.setSize(500, 400);\n marco.createGUI();\n marco.setVisible(true);\n }", "public static void main(String[] args){\n\n main_menu();\n\n }", "public static void main(String[] args) {\n \n RunProject r = new RunProject(); // creates new instance of RunProject class\n r.mainMenu(); //runs main menu method for new instance.(r)\n \n }", "public static void main(String[] args) {\n Initial main = new Initial();\n main.login = login.getInstance();\n main.login.setMain(main);\n }", "public static void main(String[] args) {\n\t\tMainControl mControl = new MainControl();\n\t}", "public static void main(String[] args) {\n\t\tExtraTerestru ext = new ExtraTerestru();\r\n\t\tExtraTerestru.IntraTerestru ext1 = ext.new IntraTerestru();\r\n\t\t\r\n\t\t// instantiere clasa inner dintr o clasa care extinde clasa mama\r\n\t\tExtraTerestru2 ext2 = new ExtraTerestru2();\r\n\t\tExtraTerestru2.IntraTerestru ext3 = ext2.new IntraTerestru();\r\n\t\t\r\n\t\t// instantiere clasa inner ver. 2\r\n\t\tExtraTerestru.IntraTerestru ext4 = new ExtraTerestru().new IntraTerestru();\r\n\t}", "public VentaMainView() {\n initComponents();\n controlador = new VentaController();\n this.setLocationRelativeTo(null);\n cargarCategorias();\n cargarArticulos();\n }", "public static void main(String[] args) throws MyException {\n\n PessoaView2 tela = new PessoaView2();\n tela.setVisible(true);\n tela.setLocationRelativeTo(null);\n \n// PessoaDAO pdao = new PessoaDAO();\n// pdao.Salvar(new PessoaVO(1,\"hueberto1\", 32122));\n \n \n }", "public Main() {\n // Required empty public constructor\n }", "public static void main(){\n\t}", "public Main() {\n initComponents();\n this.setLocationRelativeTo(null);\n \n \n }", "protected void mainSubDef()\n\t{\n\t\ttext(\"public static void main(String[] args) {\");\n\t\tsuper.mainSubDef();\n\t}", "@Override\n\tpublic void iniciar() {\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tLabel saludoLabel = new Label();\n\t\tsaludoLabel.setText(\"Aquí saldra el saludo\");\n\t\tsaludoLabel.setBounds(20, 20, 120, 50); //x, y, ancho alto\n\t\t\n\t\t// creamos un botón para saludar\n\t\tButton saludarButton = new Button();\n\t\tsaludarButton.setLabel(\"Saludar\");\n\t\tsaludarButton.setBounds(20, 80, 120, 30); //x, y, ancho alto\n\t\t//Establecemos un listenes para la pulsación del botón\n\t\tsaludarButton.addActionListener(e -> saludoLabel.setText(\"¡¡¡Hola Mundo!!!\")); //Mostramos el saludo en la etiqueta\n\t\t//panel (contenedor) que contiene etiqueta y botón\n\t\tPanel rootPanel = new Panel();\n\t\trootPanel.setLayout(null);\n\t\trootPanel.add(saludoLabel);\n\t\trootPanel.add(saludarButton);\n\t\t\n\t\t//ventana\n\t\tFrame frame = new Frame();\n\t\tframe.setTitle(\"Hola Mundo\");\n\t\tframe.setSize(320, 200);\n\t\tframe.setResizable(false);\n\t\tframe.setLocationRelativeTo(null);\n\t\tframe.add(rootPanel);\n\t\tframe.addWindowListener(new WindowAdapter() {\n\t\t\t@Override\n\t\t\tpublic void windowClosing(WindowEvent e) {\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\t\n\t\tframe.setVisible(true);\n\t\t\n\t}", "public static void main()\n\t{\n\t}", "public static void main(String[] args) {\n\t\tString rut;\r\n\t\tString nacionalidad;\r\n\t\tSystem.out.println(\"La clase hija esta caminando\");\r\n\t}", "public static void main(String[] args) {\n Cuadrado cuad1= new Cuadrado();\r\n cuad1.decirHola();\r\n }", "public void main(@Observes ContainerInitialized event) {\n try {\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\n if (\"Nimbus\".equals(info.getName())) {\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\n break;\n }\n }\n } catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException ex) {\n java.util.logging.Logger.getLogger(Main.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);\n }\n\n setTitle(\"Vier Gewinnt © Kevin Sapper\");\n setResizable(false);\n setPreferredSize(new Dimension(GameConstants.WIDTH, GameConstants.HEIGHT));\n setLayout(new CardLayout());\n // Center frame\n setLocationRelativeTo(null);\n\n initMenu();\n\n cards = getContentPane();\n initGameCard();\n initStartCard();\n\n switchToCard(startCard);\n\n setVisible(true);\n }", "public Main() {}", "public static void main(String[] args) {\r\n Burbuja B = new Burbuja ();\r\n B.ordenar();\r\n \r\n \r\n }", "public static void main(String[] args) {\n InitStart.Init();\r\n new MainMenuView().displayMenu();\r\n\r\n }", "public static void main(String[] args)\n {\n Director director = new Director();\n // Crear los objetos ConcreteBuilder\n BuilderCajita Menu1 = new ConstructorTipo1();\n BuilderCajita Menu2 = new ConstructorTipo2();\n BuilderCajita Menu3 = new ConstructorTipo3();\n // Construir un coche con equipamiento base\n director.construir( Menu1 );\n Cajita MenuTipo1 = Menu1.getCajita();\n // Construir un coche con equipamiento medio\n director.construir( Menu2 );\n Cajita MenuTipo2 = Menu2.getCajita();\n // Construir un coche con equipamiento full\n director.construir( Menu3 );\n Cajita MenuTipo3 = Menu3.getCajita();\n // Mostrar la información de cada coche creado\n mostrarCaracteristicas( MenuTipo1 );\n mostrarCaracteristicas( MenuTipo2 );\n mostrarCaracteristicas( MenuTipo3 );\n }", "public Main() {\r\n }", "public Main() {\r\n }", "private MakeACaptain() {\n }", "@Override\n\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\tnew Main();\n\t\t\t\tdispose(); // 해당 프레임만 사라짐\n\t\t\t}", "public mainUI() {\n initComponents();\n }", "public static void main(String[] args){\n // isveda teksta i konsole\n // sout - greitai atspausdina\n System.out.println(\"Hello world\");\n // metodo kvietimas maine\n\n int a = 10;\n\n // sukurtas objektas\n // tipas pavadinimas = new tipas\n MyFirstClass myFirstClass = new MyFirstClass();\n\n // per objekta kvieciamas metodas\n // ne statinis kvieciamas statiniame per klases objekta\n myFirstClass.myNotStaticMethod(a);\n\n // tiesiogiai per varda toje pacioje klaseje\n myStaticMethod();\n\n // float visada su f\n float b = 4.6f;\n\n // galima pridet d, bet nebutina\n double c = 2.4;\n\n // saugo true arba false(1 bito)\n boolean d = true;\n\n // viena raide, simbolis\n char e = 'A';\n\n // Javoj string neturi atskiro tipo, todel naudoja klase ir rasomas is didziosios(nes klase)\n String f = \"This is string!!!\";\n }", "public void inicio(){\n }", "private UsineJoueur() {}", "public static void main(String[] args){\n SingleObject object = SingleObject.getInstance();\n\n //show the message\n object.showMessage();\n }", "public MainEntryPoint() {\r\n\r\n }", "public static void main(String[] args) {\n ArrayList<String> tab = new ArrayList<>();\n tab.add(\"First\");\n tab.add(\"Hello\");\n tab.add(\"Last\");\n //Creation du modele\n LeModele leModele = new LeModele(tab);\n\n //Creation du controleur\n LeControleur leControleur = new LeControleur(leModele);\n\n //Creation de la vue\n LaVue laVue = new LaVue(leControleur);\n\n\n //Test\n\n\n }", "public Menus( Main mainApp ) {\n this(); // call the default constructor, which must always be called first\n this.mainApp = mainApp; // save the reference to the Main application\n }", "public static void main(String[] args) {\n\t\tVue vu= new Vue();\n\t\tvu.init();\n\t\tModel m= new Model();\t\t\n\t\tControleur con = new Controleur(m, vu);\n\t\t\n\n\t}", "public void consulterClassement() {\n\t\t\n\t}", "public static void main (String [] args){\r\n //Creo el objeto\r\n Formulario Form= new Formulario();\r\n Form.setBounds(0,0,400,550);\r\n Form.setVisible(true);\r\n Form.setLocationRelativeTo(null);\r\n \r\n }", "public static void main(String[] args) {\n\r\n ContaEspecial contaEspecial1 = new ContaEspecial(\"\", \"\");\r\n // ContaEspecial contaEspecial2 = new ContaEspecial();\r\n }", "void createMainContent() {\n appContent = new DashboardMain(this);\n }", "public GuiMain02() {\r\n\t\tinitialize();\r\n\t}", "protected Main(Settings settings) {\r\n this.settings = settings; \r\n configureUI();\r\n build();\r\n setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\r\n }", "public static void main(String[] args) \r\n\t{\n\t\tnew Buttony(\"Ramka z przyciskami\");\r\n\t\t\r\n\t}", "public void inizializza() {\n\n /* invoca il metodo sovrascritto della superclasse */\n super.inizializza();\n\n }", "public void main(){\n }", "public main() {\n initComponents();\n btnSalvar3.setVisible(false);\n lerConfig();\n }", "public static void main(String[] args) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tSistema sistema=Sistema.getInstancia();\n\t\t\t\tDatos datos=Datos.getInstancia();\n\t\t\t\tMenu inst = new Menu(sistema);\n\t\t\t\tinst.setLocationRelativeTo(null);\n\t\t\t\tinst.setVisible(true);\n\t\t\t}\n\t\t});\n\t}", "public static void main(String[] args) {\n\t\tMarco marco = new Marco();\r\n\t\tmarco.setVisible(true);\r\n\t\tmarco.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\r\n\t\t\r\n\r\n\t}", "public void Main(){\n }", "public static void main(String[] args) {\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tprinc frame = new princ();\n\t\t\t\t\tframe.setVisible(true);\n\t\t\t\t\tframe.setTitle(\"Storyteller\");\n\t\t\t\t\t//la ventana no se puede redimensionar\n\t\t\t\t\tframe.setResizable(false);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\t//falta hacer que la ventana aparezca en el centrode la pantalla\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});\n\t}", "public static void main(String[] args){\n System.out.println(\"(Pinch* Ant no corria)\");\n System.out.println(\"\\n\\n * * *Bienvenido al Juego de Damas * * * \\n\\n\");\n Tablero tablero = new Tablero(); //Se crea un objeto tablero de tipo Tablero que es un array\n tablero.llenarTablero(); //Se llena el tablero con los espacios blancos y negros\n Ficha ficha = new Ficha(tablero); //Se crea(n) objetos fichas de tipo Ficha para ingresar en un tablero ya existente\n ficha.addFichaEnTablero(); //Se usa el metodo agregar ficha al tablero\n }", "public static void main(String[] args) {\r\n\t\tJFrame miMarco = new JFrame(\"Ejemplo del Manejo del Teclado\");\r\n\t\t\r\n\t\t/* Se le otorga un tamaño a la ventana */\r\n\t\tmiMarco.setSize(512, 512);\r\n\t\t\r\n\t\t/* Nos aseguramos que al cerrar la ventana el programa finalice */\r\n\t\tmiMarco.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t/* Se crea el objeto GLJPanel */\r\n\t\tmiLienzo = new GLJPanel();\r\n\r\n\t\t/* Se crea una instancia de la Clase */\r\n\t\tEjemploTeclado miPanel = new EjemploTeclado();\r\n\r\n\t\t/* Se adiciona los eventos del OpenGL al GLJPanel */\r\n\t\tmiLienzo.addGLEventListener(miPanel);\r\n\t\t\r\n\t\t/* Indicamos que el GLJPanel detecte los eventos del teclado */\r\n\t\tmiLienzo.addKeyListener((KeyListener) miPanel);\r\n\t\t\r\n\t\t/* Coloca miLienzo activo para que detecte los eventos del teclado */\r\n\t\tmiLienzo.setFocusable(true);\r\n\r\n\t\t/* Añadimos el GLJPanel al Componente del JFrame */\r\n\t\tmiMarco.getContentPane().add(miLienzo);\r\n\r\n\t\t/* Por ultimo hacemos visible el elemento de mayor nivel */\r\n\t\tmiMarco.setVisible(true);\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\r\n Clase1 n;\r\n int z = 3;\r\n int y = 7;\r\n n = new Clase1();\r\n System.out.println(\"buenas\");\r\n System.out.println(\"adio\");\r\n //primer mensaje\r\n //segundo mensaje\r\n }", "public MainMenu(Game game) {\r\n\t\tsuper(game);\r\n\t}" ]
[ "0.74602914", "0.71673155", "0.71259665", "0.70230365", "0.69196165", "0.68918777", "0.68800247", "0.6872618", "0.68424875", "0.67877024", "0.6772445", "0.6768473", "0.6758414", "0.67531854", "0.6738657", "0.67032623", "0.66762304", "0.66727567", "0.66702986", "0.6654132", "0.6648177", "0.660519", "0.6602651", "0.6592471", "0.6592018", "0.65909356", "0.6586767", "0.6579386", "0.6579386", "0.6579386", "0.6579386", "0.6579386", "0.6575567", "0.6567028", "0.6561378", "0.6549198", "0.6530881", "0.652575", "0.6522861", "0.6511339", "0.65086347", "0.6508102", "0.65066797", "0.64789915", "0.64737964", "0.6459613", "0.64545566", "0.64527035", "0.64260226", "0.6425369", "0.64210397", "0.6419709", "0.6418982", "0.6390373", "0.63845956", "0.63784266", "0.6378134", "0.63776946", "0.63771474", "0.6366289", "0.636388", "0.6362383", "0.634616", "0.6339264", "0.633899", "0.6337393", "0.63373876", "0.63342005", "0.63309604", "0.6326537", "0.63261604", "0.63261604", "0.63167435", "0.63126296", "0.6308837", "0.6307861", "0.63068795", "0.6298944", "0.629574", "0.6295113", "0.62934005", "0.62918437", "0.6290783", "0.6290454", "0.6290288", "0.6286333", "0.62818813", "0.6280872", "0.6279652", "0.62662655", "0.62644", "0.62634724", "0.62608343", "0.6259411", "0.6258144", "0.62563056", "0.62554616", "0.6250709", "0.62499976", "0.62485355", "0.62479156" ]
0.0
-1
Class to set the JPanel background
@Override public void paintComponent(Graphics g) { //Paint background g.drawImage (background, 0, 0, null); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setBg(){\n this.setBackground(color);\n }", "private void colorSetup(){\n Color color2 = Color.GRAY;\n Color color = Color.LIGHT_GRAY;\n this.setBackground(color);\n this.mainPanel.setBackground(color);\n this.leftPanel.setBackground(color);\n this.rightPanel.setBackground(color);\n this.rightCenPanel.setBackground(color);\n this.rightLowPanel.setBackground(color);\n this.rightTopPanel.setBackground(color);\n this.inputPanel.setBackground(color);\n this.controlPanel.setBackground(color);\n this.setupPanel.setBackground(color);\n this.cameraPanel.setBackground(color);\n this.jPanel4.setBackground(color);\n this.sensSlider.setBackground(color); \n }", "public Home() {\n initComponents();\n panel_overlay.setBackground(new Color(0,0,0,200));\n \n \n \n }", "public void setBackground(){\r\n Image background = new Image(\"Cards/table.jpg\", 192, 80, false, true);\r\n BackgroundImage backgroundImg = new BackgroundImage(background, BackgroundRepeat.REPEAT, BackgroundRepeat.REPEAT,BackgroundPosition.DEFAULT, null);\r\n mainPane.setBackground(new Background(backgroundImg));\r\n }", "public Color getBackground();", "@Override\n public void setBackgroundPattern(Pattern pattern) {\n }", "public abstract void setCurBackground(Color colr);", "private void createBackground()\n {\n GreenfootImage background = getBackground();\n background.setColor(Color.BLACK);\n background.fill();\n }", "public void initGui() {\n setOpaque(true);\n // Setter utgangsfargen til ruten\n if (this.farge.equals(\"hvit\")) setBackground(GUISettings.Hvit());\n if (this.farge.equals(\"sort\")) setBackground(GUISettings.Sort());\n if (this.farge.equals(\"roed\")) setBackground(GUISettings.Roed());\n if (this.farge.equals(\"blaa\")) setBackground(GUISettings.Blaa());\n }", "private Background InitBackground()\r\n {\r\n \tBoundingSphere worldBounds = new BoundingSphere(\r\n \t\t new Point3d( 0.0, 0.0, 0.0 ), // Center\r\n \t\t 1000000000000000000000.0 ); // Extent\r\n \t\t\r\n \t// Set the background color and its application bounds\r\n \tbg = new Background( );\r\n \tbg.setColor( backgroundColor );\r\n \tbg.setCapability( Background.ALLOW_COLOR_WRITE );\r\n \tbg.setCapability( Background.ALLOW_COLOR_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_READ );\r\n \tbg.setCapability( Background.ALLOW_IMAGE_WRITE );\r\n \tbg.setApplicationBounds( worldBounds );\r\n \t\r\n \treturn bg;\r\n }", "protected Background background () {\n return Background.bordered(0xFFCCCCCC, 0xFFCC99FF, 5).inset(5);\n }", "public MyPanel(Color farba) {\r\n this.setBackground(farba);\r\n this.setPreferredSize(new Dimension(40, 200));\r\n }", "public CssBackgroundClip() {\r\n\tbgclip = border;\r\n }", "public void setBackgroundColor(Color background)\n {\n backgroundColor = background;\n paintAllObjects();\n }", "@Source(\"control_panel_bg.gif\")\n\tpublic DataResource controlPanelBackgroundResource();", "@Override\r\n\tpublic void paintComponent (Graphics g) {\r\n\t\tsuper.paintComponent(g);\r\n\t\tg.drawImage(background, 0, 0, 800, 660, null);\r\n\t}", "public Paint getBackground() {\r\n return background;\r\n }", "@Override\n public void setBackgroundColor(int backgroundColor) {\n }", "@Override\r\n\tpublic void renderBackground() {\n\r\n\t}", "@Override\n protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {\n }", "public MainWindowAlt() {\n initComponents();\n //this.getContentPane().setBackground(Color.CYAN);\n }", "@Override\r\n\tpublic void setBackgroundResource(int resid) {\n\t\tsuper.setBackgroundResource(resid);\r\n\t}", "public void setBackgroundToDefault(){\n\t\tcurrentBackgroundImage = defaultBackgroundImage;\n\t\tbackgroundPanel.changeBackground(defaultBackgroundImage);\n\t}", "public void setBackground(int index){\r\n\t\tsuper.setBackground(myBackgrounds.get(index));\r\n\t}", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g);\n\n paintBackground(g);\n }", "private void setBackground() throws IOException{\n\t\tBufferedImage backgroundBufferedImage = ImageLoader.getBufferedImage(backgroundImagePath);\n\t\tmainWindow.setBackgroundImage(backgroundBufferedImage);\n\t}", "public abstract void setBackgroundHover(final int rgba);", "public final void setPanelBgColor(Color panelBgColor) {\n\t\tthis.panelBgColor = panelBgColor;\n\t}", "public abstract void setBackgroundPressed(final int rgba);", "public form1() {\n initComponents();\n\n this.getContentPane().setBackground(Color.orange);\n\n }", "@Override\n public void mousePressed(MouseEvent arg0) {\n yourBoardPanel[xx][yy].setBackground(new Color(175, 175, 0));\n }", "@Environment(EnvType.CLIENT)\n\t@Override\n\tpublic WPanel setBackgroundPainter(BackgroundPainter painter) {\n\t\tsuper.setBackgroundPainter(null);\n\t\tinv.setBackgroundPainter(painter);\n\t\thotbar.setBackgroundPainter(painter);\n\t\treturn this;\n\t}", "public BoxBackground()\n {\n this(null);\n }", "@Override\r\n public void setBackground(Color c) {\r\n super.setBackground(c);\r\n colorWheel = null;\r\n repaint();\r\n }", "protected void setBackground (Color4f color)\n {\n final Color c = color.getColor();\n setBackground(c);\n getContentPane().setBackground(c);\n for (int ii = 0, nn = _tabs.getComponentCount(); ii < nn; ii++) {\n ((ManagerPanel)_tabs.getComponentAt(ii)).setBackground(c);\n }\n// SwingUtil.applyToHierarchy(this, new SwingUtil.ComponentOp() {\n// public void apply (Component comp) {\n// comp.setBackground(c);\n// }\n// });\n }", "protected void paintBackground(Graphics g){\n Dimension size = getSize();\n\n g.setColor(properties.backgroundColor);\n g.fillRect(0,0,size.width,size.height);\n\n }", "public void init()\n {\n setBackground(Color.YELLOW);\n setForeground(Color.RED);\n }", "public InputImageManager(int background)\n {\n this.background = background;\n }", "@Override\n protected void paintBackground(Graphics2D g) {\n super.paintBackground(g);\n if (Game.level == 0) {\n g.drawImage(bg, 0, 0, this);\n } else if (Game.level == 1) {\n g.drawImage(bg, 0, 0, this);\n } else if (Game.level == 2) {\n g.drawImage(bg2, 0, 0, this);\n } else if (Game.level == 3) {\n g.drawImage(bg3, 0, 0, this);\n }\n\n }", "public void clouleurFondEcran() {\n this.setBackground(Color.WHITE);\n jPanel3.setBackground(Color.WHITE);\n jPanel2.setBackground(Color.WHITE);\n jPanel5.setBackground(Color.WHITE);\n jTable2.setBackground(Color.WHITE);\n jTextField3.setBackground(Color.WHITE);\n }", "private void asignarColor(JPanel pane) {\n pane.setBackground(new Color(236, 37, 32));\n }", "public void setBackground(float[] rvba_01){\n\t\tswingComponent.setBackground(new Color(rvba_01[R_INDEX], rvba_01[G_INDEX], rvba_01[B_INDEX], rvba_01[A_INDEX]));\n\t}", "public AddBooking() {\n initComponents();\n getContentPane().setBackground(Color.orange);\n }", "public Login() {\n initComponents();\n this.getContentPane().setBackground(new Color(255,255,255));\n int [] background = UI.frameBackGround();\n jPanel1.setBackground(new Color(background[0],background[1],background[2]));\n int [] backgroundBtn = UI.buttonBackground();\n login.setBackground(new Color(backgroundBtn[0],backgroundBtn[1],backgroundBtn[2]));\n ImageIcon icon = new ImageIcon(getClass().getResource(\"/files/Logo.png\"));\n this.setIconImage(icon.getImage());\n }", "public StartPanel(SwingUI swingUI) {\r\n\t\tthis.swingUI = swingUI;\r\n\t\t\r\n\t\t/**\r\n\t\t * set background image\r\n\t\t */\r\n\t\ttry {\r\n\t\t\tbackgroundImage = ImageIO.read(new File(\"./data/img/background3.jpg\"));\r\n\t\t} catch (IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\tthis.init();\r\n\t}", "protected void setPlayerBackground() { Console.setBackground(Console.YELLOW); }", "@Override\n public void paintComponent(Graphics g) {\n super.paintComponent(g); // paint parent's background\n setBackground(Color.WHITE); // set background color for this JPanel\n if (img != null) {\n g.drawImage(img, 100, 100, this);\n }\n }", "public void setBackgroundImage(BackgroundImage image) {\n this.backgroundImage = image;\n }", "private MainWindow(GUIManager manager, int width, int height, BufferedImage defaultBackgroundImage){\n\t\tthis.manager = manager;\n\t\t\n\t\tint windowWidth = width + getInsets().left;\n\t\tint windowHeight = height + getInsets().top;\n\t\t\n\t\t//Cross-platform GUI management.\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getCrossPlatformLookAndFeelClassName());\n\t\t} catch (Exception e) {\n\t\t\tmanager.handleException(e);;\n\t\t}\n\t\t\n\t\t//Build the main window and components.\n\t\twindowSize = new Dimension(windowWidth, windowHeight);\n\t\t\n\t\tsetPreferredSize(windowSize);\n\t\tsetMinimumSize(windowSize);\n\t\t\n\t\tsetIcons();\n\t\tsetTitle(TITLE_TEXT);\n\t\t\n\t\tthis.defaultBackgroundImage = defaultBackgroundImage;\n\t\tcurrentBackgroundImage = defaultBackgroundImage;\n\t\tbackgroundPanel = new ContentPane(defaultBackgroundImage, false, false);\n\t\t\n\t\tsetLayout(new BorderLayout());\n\t\t\n\t\tbackgroundPanel.setBounds(getInsets().left, getInsets().top, windowSize.width, windowSize.height);\n\t\tcreateLayeredPane();\n\t\tcontentPane.add(backgroundPanel, BG_DEPTH, 0);\n\t\tadd(contentPane);\n\n\t\t//Finish up and display the main window.\n\t\tpack();\n\t\tsetLocationRelativeTo(null);\n\t\tsetResizable(false);\n\t\tsetDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);\n\t\tsetVisible(true);\n\t}", "private void setBgColor(Color c)\n\t{\n\t\teToPower.setBackground (c);\n\t\ttwoPower.setBackground (c);\n\t\tln.setBackground (c);\n\t\txCube.setBackground (c);\n\t\txSquare.setBackground (c);\n\t\tdel.setBackground (c);\n\t\tcubeRoot.setBackground (c);\n\t\tC.setBackground (c);\n\t\tnegate.setBackground (c);\n\t\tsquareRoot.setBackground (c);\n\t\tnine.setBackground (c);\n\t\teight.setBackground (c);\n\t\tseven.setBackground (c);\n\t\tsix.setBackground (c);\n\t\tfive.setBackground (c);\n\t\tfour.setBackground (c);\n\t\tthree.setBackground (c);\n\t\ttwo.setBackground (c);\n\t\tone.setBackground (c);\n\t\tzero.setBackground (c);\n\t\tdivide.setBackground (c);\n\t\tpercent.setBackground (c);\n\t\tmultiply.setBackground (c);\n\t\treciprocal.setBackground (c);\n\t\tadd.setBackground (c);\n\t\tsubtract.setBackground (c);\n\t\tdecimalPoint.setBackground (c);\n\t\tequals.setBackground (c);\n\t\te.setBackground (c);\n\t\tPI.setBackground (c);\n\t\tentry.setBackground (c);\n\t\t\n\t\tmenuBar.setBackground (c);\n\t\tfileMenu.setBackground (c);\n\t\ttoolsMenu.setBackground (c);\n\t\thelpMenu.setBackground (c);\n\t\t\n\t\texit.setBackground (c);\n\t\tsettings.setBackground (c);\n\t\tabout.setBackground (c);\n\t\treadme.setBackground (c);\n\t}", "public void setBackground(Paint background) {\r\n Paint old = getBackground();\r\n this.background = background;\r\n firePropertyChange(\"background\", old, getBackground());\r\n }", "private Texture createBackground() {\n Pixmap backgroundPixmap = new Pixmap(1, 1, Pixmap.Format.RGBA8888);\n backgroundPixmap.setColor(0, 0, 0, 0.3f);\n backgroundPixmap.fill();\n Texture texture = new Texture(backgroundPixmap);\n backgroundPixmap.dispose();\n return texture;\n }", "@Override\n protected void drawGuiContainerBackgroundLayer(final float opacity, final int x, final int y)\n {\n GL11.glColor4f(1.0F, 1.0F, 1.0F, 1.0F);\n ResourceHandler.bindGUI(mc, EnumModeled.machineGrinder.name());\n final int xStart = (width - xSize) / 2;\n final int yStart = (height - ySize) / 2;\n drawTexturedModalRect(xStart, yStart, 0, 0, xSize, ySize);\n int scale;\n if (grinderL.canRun())\n {\n scale = grinderL.getProgressScaled(24);\n drawTexturedModalRect(xStart + 79, yStart + 31, 176, 0, 20, scale);\n }\n }", "public static void makeBackgroundGray(){\r\n\t\tStdDraw.clear(StdDraw.LIGHT_GRAY);\r\n\t}", "public void setBackground(Image i)\n {\n background=i;\n imageLabel.setIcon(new ImageIcon(i));\n imageLabel.setBounds(0,0,700,600);\n add(imageLabel);\n }", "public MainSlot_JPanel(){\n //load background image\n try {\n Image img = ImageIO.read(getClass()\n .getResource(\"./graphics/slot_BackGround.jpg\"));\n backgroundImg = img\n .getScaledInstance(800,580,java.awt.Image.SCALE_SMOOTH );\n } catch(IOException e) {\n e.printStackTrace();\n }\n }", "private void setBackgrond(){\t\n this.background = new JLabel();\n this.background.setIcon(backgrondP);\n this.background.setVisible(true);\n this.background.setLocation(0, 0);\n this.background.setSize(backgrondP.getIconWidth(),backgrondP.getIconHeight());\n this.add(background);\n\t}", "private void applyBackgroundColor() {\r\n\t\tthis.control.setBackground(PromptSupport.getBackground(this.control));\r\n\t}", "public BackgroundRenderer (final GameDimensions dimensions, final Color bgColor) {\n\t\tthis.dimensions = dimensions;\n\t\tthis.bgColor = EasyGL.getPixelTexture(bgColor, 1, 1);\n\t}", "public X background(Color bg) {\n component.setBackground(bg);\n return (X) this;\n }", "public CommonPopWindow setBackgroundAlpha(@FloatRange(from = 0.0D, to = 1.0D) float dackAlpha) {\n/* 174 */ this.mDarkAlpha = dackAlpha;\n/* 175 */ return this;\n/* */ }", "public Color getBackground(){\r\n return back;\r\n }", "public Background(int w, int h) {\n this.width = w;\n this.height = h;\n\t\t\tsetBackground(Color.RED); //background is red\n\t\t}", "public void createBackground() {\n Sprite bg = this.levelInfo.getBackground();\n this.sprites.addSprite(bg);\n }", "private void drawBackground(Graphics2D g2d, ScreenParameters screenParameters) {\n Composite defaultComposite = g2d.getComposite();\n g2d.setComposite(LOW_OPACITY);\n g2d.drawImage(background, 0, 0, screenParameters.x, screenParameters.y, null);\n g2d.setComposite(defaultComposite);\n }", "protected void setBoxBackground() { Console.setBackground(Console.RED); }", "public ColorController createBackground(ControllerCore genCode) {\n\t\tbackgroundTXT = new ColorController(\"background\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(background$1LBL);\n\t\t\t\tsetProperty(\"background\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn backgroundTXT;\n\t}", "@Override\r\n public void mousePressed(MouseEvent e) {\n setBackground(Color.BLUE);\r\n \r\n \r\n }", "public void changeBackground(Bitmap bg){\n Drawable newbackground = new BitmapDrawable(getResources(), bg);\n this.setBackground(newbackground);\n\n }", "@Override\r\n public Sprite getBackground() {\r\n return new Level3Background();\r\n }", "Sprite getBackground();", "@Override\n\t\t\tpublic void paintControl(PaintEvent arg0) {\n\t\t\t\tgc.drawImage(background,0,0);\n\t\t\t}", "protected void setLightBoxBackground() { Console.setBackground(Console.BLUE); }", "@Override\n\t\t\tprotected void paintComponent(Graphics g) {\n\t\t\t\tGraphics2D g2d = (Graphics2D) g;\n\t\t g2d.setRenderingHint(RenderingHints.KEY_ANTIALIASING,\n\t\t RenderingHints.VALUE_ANTIALIAS_ON);\n\t\t \n\t\t GradientPaint gp = new GradientPaint(0, 0,\n\t\t Const.BACKGROUND_COLOR.brighter(), 0, getHeight(),\n\t\t Color.BLUE);\n\t\t \n\t\t g2d.setPaint(gp);\n\t\t g2d.fillRect(0, 0, getWidth(), getHeight());\n\n\t\t\t\tsuper.paintComponent(g);\n\t\t\t}", "public ColorPanel() {\r\n setLayout(null);\r\n\r\n chooser = new ColorChooserComboBox[8];\r\n chooserLabel = new JLabel[8];\r\n String[][] text = new String[][] {\r\n {\"Hintergrund\", \"Background\"},\r\n {\"Kante I\", \"Edge I\"},\r\n {\"Kante II\", \"Edge II\"},\r\n {\"Gewicht\", \"Weight\"},\r\n {\"Kantenspitze\", \"Edge Arrow\"},\r\n {\"Rand der Knoten\", \"Node Borders\"},\r\n {\"Knoten\", \"Node Background\"},\r\n {\"Knoten Kennzeichnung\", \"Node Tag\"}};\r\n\r\n for (int i = 0; i < 8; i++) {\r\n createChooser(i, text[i], 10 + 30 * i);\r\n }\r\n\r\n add(createResetButton());\r\n add(createApplyButton());\r\n add(createReturnButton());\r\n\r\n setColorSelection();\r\n this.changeLanguageSettings(mainclass.getLanguageSettings());\r\n }", "public EnemyBackground(Color color) {\r\n this.color = color;\r\n }", "public void setBackColor( Color bgColor ) {\r\n backColor = bgColor;\r\n }", "public FancyFrame(GraphicsConfiguration gc, boolean gradient) {\n super(gc);\n this.gradient = gradient;\n initComponents();\n jPanel1.setOpaque(!gradient);\n if (!gradient) {\n jPanel1.setBackground(new Color(240, 240, 240, 128));\n }\n setLocationRelativeTo(null);\n }", "public void setBackground(int r, int g, int b)\r\n {\r\n \tbg.setColor(new Color3f(ptools.ColorInt2Float(r), ptools.ColorInt2Float(g), ptools.ColorInt2Float(b)));\r\n }", "@Override\n\tpublic void setBackgroundDrawable(Drawable d) {\n\t\t\n\t}", "public void paintComponent(Graphics g) {\r\n super.paintComponent(g);\r\n if (isDrawBackground()) {\r\n paintComponentBackground(g, getBackgroundInsets(), getUiPrefs().getBackgroundColor());\r\n } else if (!isBackgroundTransparent()) {\r\n paintComponentBackground(g, null, Color.WHITE);\r\n }\r\n if (isDrawBorder()) {\r\n paintComponentBorder(g);\r\n }\r\n }", "@Override\n protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)\n {\n GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);\n this.mc.getTextureManager().bindTexture(CHEST_GUI_TEXTURE);\n int i = (this.width - this.xSize) / 2;\n int j = (this.height - this.ySize) / 2;\n this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.inventoryRows * 18 + 17);\n this.drawTexturedModalRect(i, j + this.inventoryRows * 18 + 17, 0, 126, this.xSize, 96);\n }", "private void drawBackground() {\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(0,0,512, 512);\n\t\t\n\t\timgG2.setColor(Color.BLACK);\n\t\timgG2.fillRect(128, 0, 256, 512);\n\t}", "public void preGameMode(){\n\n ImageIcon icon = new ImageIcon(getClass().getResource(\"/title.jpg\"));\n Image image=icon.getImage();\n background = new PBackground(image);\n this.repaint();\n background.setLayout(null);\n this.add(background);\n\n\n // Prepare the body container\n container = new PanelContainer();\n container.setBounds(230,170, 700, 400);\n background.add(container);\n\n this.setVisible(true);\n }", "void changeBackground(Component component, Color col, boolean b) {\n\t\t((JLabel) component).setBackground(col);\n\t\t((JLabel) component).setOpaque(b);\n\t}", "public void setBackground(int x)\r\n { \t\r\n \tbg.setColor(ptools.color2Color3f(x));\r\n }", "public ColorController createContainerBackground(ControllerCore genCode) {\n\t\tcontainerBackgroundTXT = new ColorController(\"containerBackground\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(containerBackground$1LBL);\n\t\t\t\tsetProperty(\"containerBackground\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn containerBackgroundTXT;\n\t}", "public Sprite getBackground() {\r\n return new BackGround4();\r\n }", "private void setTheBackground(){\n\t\tString user_choice = prefs.getString(\"pref_background_choice\",\"blue_glass\");\n\t\tLog.d(\"User Background Choice\", user_choice);\n\t\tLinearLayout layout = (LinearLayout) findViewById(R.id.activity_mail_select_layout);\n\t\tif (user_choice.equalsIgnoreCase(\"blue_glass\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.blue_glass));\n\t\t} else if (user_choice.equalsIgnoreCase(\"blue_oil_painting\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.blue_oil_painting));\n\t\t} else if (user_choice.equalsIgnoreCase(\"stained_glass_blue\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.stained_glass_blue));\n\t\t} else if (user_choice.equalsIgnoreCase(\"light_blue_boxes\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.light_blue_boxes));\n\t\t} else if (user_choice.equalsIgnoreCase(\"light_silver_background\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.light_silver_background));\n\t\t} else if (user_choice.equalsIgnoreCase(\"simple_grey\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.simple_grey));\n\t\t} else if (user_choice.equalsIgnoreCase(\"simple_apricot\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.simple_apricot));\n\t\t} else if (user_choice.equalsIgnoreCase(\"simple_teal\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.simple_teal));\n\t\t} else if (user_choice.equalsIgnoreCase(\"xmas\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.xmas));\n\t\t} else if (user_choice.equalsIgnoreCase(\"lacuna_logo\")){\n\t\t\tlayout.setBackground(getResources().getDrawable(R.drawable.lacuna_logo));\n\t\t} else {\n\t\t}\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetBackground(color);\t\r\n\t\t\t\tvazioSouth.setBackground(color);\r\n\t\t\t\tvazioEast.setBackground(color);\r\n\t\t\t\tbtsPaintJPanel.setBackground(color);\r\n\t\t\t\tbotaoJPanel.setBackground(color);\r\n\t\t\t}", "@Override\r\n\tprotected void init() {\r\n\r\n\t\t// enable:\r\n\t\tObject obj = UIManager.getLookAndFeelDefaults().get(this.getComponentKeyName() + \"[Enabled].foreground\");\r\n\t\tif (obj instanceof Paint) {\r\n\t\t\tthis.foregroundColorEnabled = (Paint) obj;\r\n\t\t} else {\r\n\t\t\tthis.foregroundColorEnabled = this.color2;\r\n\t\t}\r\n\r\n\t\t// disable:\r\n\t\tobj = UIManager.getLookAndFeelDefaults().get(this.getComponentKeyName() + \"[Disabled].foreground\");\r\n\t\tif (obj instanceof Paint) {\r\n\t\t\tthis.foregroundColorDisabled = (Paint) obj;\r\n\t\t} else {\r\n\t\t\tthis.foregroundColorDisabled = this.color1;\r\n\t\t}\r\n\r\n\t\t// pressed:\r\n\t\tobj = UIManager.getLookAndFeelDefaults().get(this.getComponentKeyName() + \"[Pressed].foreground\");\r\n\t\tif (obj instanceof Paint) {\r\n\t\t\tthis.foregroundColorPressed = (Paint) obj;\r\n\t\t} else {\r\n\t\t\tthis.foregroundColorPressed = this.color3;\r\n\t\t}\r\n\r\n\t\t// mouseover:\r\n\t\tobj = UIManager.getLookAndFeelDefaults().get(this.getComponentKeyName() + \"[MouseOver].foreground\");\r\n\t\tif (obj instanceof Paint) {\r\n\t\t\tthis.foregroundColorMouseOver = (Paint) obj;\r\n\t\t} else {\r\n\t\t\tthis.foregroundColorMouseOver = this.color4;\r\n\t\t}\r\n\r\n\t}", "private void setBackground() {\n getActivity().runOnUiThread(new Runnable() {\n @Override\n public void run() {\n String status = city.getStatus();\n switch (status) {\n case \"Clear\":\n background.setBackgroundResource(R.drawable.sunny_day);\n break;\n case\"Rain\":\n case \"Drizzle\":\n case \"Thunderstorm\":\n background.setBackgroundResource(R.drawable.rainy_day);\n break;\n default:\n background.setBackgroundResource(R.drawable.cloudy_day);\n }\n }\n });\n }", "GamePanel(PBG g) {\n setPreferredSize(new Dimension(PBG.DIMENSION1, PBG.DIMENSION2));\n setBackground(Color.GRAY);\n this.game = g;\n }", "public Color getBackground()\r\n\t{\r\n\t\treturn _g2.getBackground();\r\n\t}", "public RoundPanelOJ() {\n initComponents();\n setOpaque(false);\n }", "public static Background createBackground(String filePath) {\n BackgroundImage backdrop = new BackgroundImage(new Image(\n MenuGUI.class.getResourceAsStream(filePath),\n 1080, 680, false, true),\n BackgroundRepeat.REPEAT, BackgroundRepeat.NO_REPEAT, BackgroundPosition.DEFAULT,\n BackgroundSize.DEFAULT);\n return new Background(backdrop);\n }", "public ChangePassword() {\n initComponents();\n setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n UIHelper.bindBackground(pnlBackground);\n }", "public zombie_bg()\n { \n // Create a new world with 600x400 cells with a cell size of 1x1 pixels.\n super(1010,900, 1); \n setPaintOrder(ScoreBoard.class, player.class, zomb_gen.class, options.class);\n populate();\n \n }", "public abstract View getBlackBackground();", "public void ConfiguracionBackground(int nNormal, int nFocus)\n {\n // Establecemos los valores de los background\n m_nBckNormal = nNormal;\n m_nBckFocus = nFocus;\n }" ]
[ "0.7611857", "0.7106322", "0.69168967", "0.6851731", "0.67380106", "0.66873693", "0.6678723", "0.6648085", "0.66391736", "0.6578738", "0.6567924", "0.6556905", "0.6530718", "0.64855266", "0.6469506", "0.64247626", "0.6395262", "0.63943523", "0.6393045", "0.63917154", "0.6388664", "0.6378571", "0.6344437", "0.63267905", "0.63199246", "0.63128597", "0.6306121", "0.630498", "0.62688035", "0.626192", "0.6250525", "0.6237365", "0.6232376", "0.62312615", "0.62308824", "0.6229722", "0.62105006", "0.6198297", "0.61956036", "0.6194542", "0.6184149", "0.6181446", "0.61768377", "0.61764884", "0.61614776", "0.61454767", "0.6131944", "0.61309004", "0.61217415", "0.6117818", "0.61151123", "0.6114113", "0.6102518", "0.60994077", "0.60972315", "0.6086627", "0.60674644", "0.6065838", "0.6062104", "0.6061607", "0.60614765", "0.6058054", "0.60574836", "0.602534", "0.602319", "0.60179895", "0.6012008", "0.6004587", "0.59995955", "0.5997396", "0.59966964", "0.59802735", "0.59776664", "0.5967892", "0.59669775", "0.59601194", "0.5958004", "0.5955952", "0.5952924", "0.59485257", "0.5942947", "0.59351397", "0.5934379", "0.5906232", "0.5904854", "0.590295", "0.59027976", "0.58951735", "0.58911353", "0.5889946", "0.58662194", "0.58573806", "0.5855495", "0.5845594", "0.5802366", "0.5802155", "0.57965404", "0.5789673", "0.57879436", "0.5782473" ]
0.68157464
4
Method that sets the icons with images
private void setIcons() { background = new ImageIcon("images/image_mainmenu.png").getImage(); start = new ImageIcon("images/button_start.png"); howto = new ImageIcon("images/button_howtoplay.png"); options = new ImageIcon("images/button_options.png"); lboards = new ImageIcon("images/button_lboards.png"); exit = new ImageIcon("images/button_exit.png"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setIcons(){\n\t\tfinal List<BufferedImage> icons = new ArrayList<BufferedImage>();\n\t\ttry {\n\t\t\ticons.add(ImageLoader.getBufferedImage(SMALL_ICON_PATH));\n\t\t\ticons.add(ImageLoader.getBufferedImage(BIG_ICON_PATH));\n\t\t} catch (IOException e) {\n\t\t\tmanager.handleException(e);\n\t\t}\n\t\tif(icons.size() > 0)\n\t\t\tsetIconImages(icons);\n\t}", "private void setIcon(){\r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"images.png\")));\r\n }", "private void setIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconabc.png\")));\n }", "public void setIcon(Image i) {icon = i;}", "private void initIcons() {\n \n \n addIcon(lblFondoRest, \"src/main/java/resource/fondo.png\");\n addIcon(lblCheckRest, \"src/main/java/resource/check.png\");\n \n }", "private void iconImage() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.jpg\")));\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"/Icons/logo musica.png\")));\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"img/icon.png\")));\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"../Imagens/icon.png\")));\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"icon.png\")));\n }", "private void setICon() {\r\n \r\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"IconImage_1.png\")));\r\n }", "private void setIcons() {\n ImageIcon imgProd = new ImageIcon(\"Images/articulos.png\");\n btArticulosReportes.setIcon(imgProd);\n ImageIcon imgTickets = new ImageIcon(\"Images/ticket.png\");\n btTicketsReportes.setIcon(imgTickets);\n ImageIcon imgVentas = new ImageIcon(\"Images/venta.png\");\n btVentasReportes.setIcon(imgVentas);\n ImageIcon imgClientes = new ImageIcon(\"Images/cliente.png\");\n btClientesReportes.setIcon(imgClientes);\n ImageIcon imgProveedores = new ImageIcon(\"Images/proveedor.png\");\n btProveedorReportes.setIcon(imgProveedores);\n ImageIcon imgEmpleados = new ImageIcon(\"Images/empleado.png\");\n btEmpleadosReportes.setIcon(imgEmpleados);\n ImageIcon imgCategorias = new ImageIcon(\"Images/categoria.png\");\n btCategoriaReportes.setIcon(imgCategorias);\n ImageIcon imgPedidos = new ImageIcon(\"Images/pedido.png\");\n btPedidosReportes.setIcon(imgPedidos);\n \n }", "public void lightIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/black/copy_black.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/black/help_black.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/black/big_profile_black.png\")));\n }\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"croissant.png\")));\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"podologia32x32.png\")));\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"radarlogoIcon.png\")));\n }", "private void SetIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"Icon.png.png\")));\n }", "private void createIcons() {\n wRook = new ImageIcon(\"./src/Project3/wRook.png\");\r\n wBishop = new ImageIcon(\"./src/Project3/wBishop.png\");\r\n wQueen = new ImageIcon(\"./src/Project3/wQueen.png\");\r\n wKing = new ImageIcon(\"./src/Project3/wKing.png\");\r\n wPawn = new ImageIcon(\"./src/Project3/wPawn.png\");\r\n wKnight = new ImageIcon(\"./src/Project3/wKnight.png\");\r\n\r\n bRook = new ImageIcon(\"./src/Project3/bRook.png\");\r\n bBishop = new ImageIcon(\"./src/Project3/bBishop.png\");\r\n bQueen = new ImageIcon(\"./src/Project3/bQueen.png\");\r\n bKing = new ImageIcon(\"./src/Project3/bKing.png\");\r\n bPawn = new ImageIcon(\"./src/Project3/bPawn.png\");\r\n bKnight = new ImageIcon(\"./src/Project3/bKnight.png\");\r\n }", "private void SetIcon() {\n \n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"appIcon.png\")));\n }", "private void setIcon(){\n this.setIconImage(new ImageIcon(getClass().getResource(\"/Resources/Icons/Icon.png\")).getImage());\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"iconeframe.png\")));\n }", "private void setIcon() {\n setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"MainLogo.png\")));\n }", "private void setIcon() {\n this.setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource(\"logo.ico\")));\n }", "void setIcon(){\n URL pathIcon = getClass().getResource(\"/sigepsa/icono.png\");\n Toolkit kit = Toolkit.getDefaultToolkit();\n Image img = kit.createImage(pathIcon);\n setIconImage(img);\n }", "public void setIcon (playn.core.Image... icons) {\n assert icons.length > 0;\n List<BufferedImage> images = new ArrayList<BufferedImage>();\n for (playn.core.Image icon : icons) images.add(((JavaImage)icon).bufferedImage());\n _frame.setIconImages(images);\n }", "private void initBaseIcons() {\n iconMonitor = new ImageIcon( getClass().getResource(\"/system.png\") );\n iconBattery = new ImageIcon( getClass().getResource(\"/klaptopdaemon.png\") );\n iconSearch = new ImageIcon( getClass().getResource(\"/xmag.png\") );\n iconJava = new ImageIcon( getClass().getResource(\"/java-icon.png\") );\n iconPrinter = new ImageIcon( getClass().getResource(\"/printer.png\") );\n iconRun = new ImageIcon( getClass().getResource(\"/run.png\") );\n }", "public void iconSetup(){\r\n chessboard.addRedIcon(\"Assets/PlusR.png\");\r\n chessboard.addRedIcon(\"Assets/TriangleR.png\");\r\n chessboard.addRedIcon(\"Assets/ChevronR.png\");\r\n chessboard.addRedIcon(\"Assets/SunR.png\"); \r\n chessboard.addRedIcon(\"Assets/ArrowR.png\");\r\n \r\n chessboard.addBlueIcon(\"Assets/PlusB.png\");\r\n chessboard.addBlueIcon(\"Assets/TriangleB.png\");\r\n chessboard.addBlueIcon(\"Assets/ChevronB.png\");\r\n chessboard.addBlueIcon(\"Assets/SunB.png\");\r\n chessboard.addBlueIcon(\"Assets/ArrowB.png\");\r\n }", "private void setIconsMenus() {\n ImageIcon iconNew = new javax.swing.ImageIcon(getClass().getResource(\"/image/novo.png\"));\n ImageIcon iconSearch = new javax.swing.ImageIcon(getClass().getResource(\"/image/procurar.19px.png\"));\n\n JMenuItem[] miNew = new JMenuItem[]{miModuloNovo, miIrradiacaoGlobalMesNovo, miInversorNovo,\n miProjetoNovo, miUsuarioNovo, miNovoCliente, miFornecedorNovo, miEPNovo};\n for (JMenuItem mi : miNew) {\n mi.setIcon(iconNew);\n mi.setMnemonic(KeyEvent.VK_N);\n }\n\n JMenuItem[] miSearch = new JMenuItem[]{miModuloPesquisar, miIrradiacaoGlobalMesPesquisar, miInversorPesquisar,\n miProjetoPesquisar, miUsuarioPesquisar, miPesquisarCliente, miFornecedorPesquisar, miEPPesquisar};\n for (JMenuItem mi : miSearch) {\n mi.setIcon(iconSearch);\n mi.setMnemonic(KeyEvent.VK_P);\n }\n }", "private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "private void setIconImage(ImageIcon imageIcon) {\n throw new UnsupportedOperationException(\"Not supported yet.\"); //To change body of generated methods, choose Tools | Templates.\n }", "public void darkIcons() {\n teamPhoto.setImage((new Image(\"/Resources/Images/emptyTeamLogo.png\")));\n copyIcon.setImage((new Image(\"/Resources/Images/white/copy_white.png\")));\n helpPaneIcon.setImage((new Image(\"/Resources/Images/white/help_white.png\")));\n if (user.getUser().getProfilePhoto() == null) {\n accountPhoto.setImage((new Image(\"/Resources/Images/white/big_profile_white.png\")));\n }\n }", "public void changeImageMule(){\n\t\tsetIcon(imgm);\n\t}", "private void createImageFiles() {\n\t\tswitchIconClosed = Icon.createImageIcon(\"/images/events/switchImageClosed.png\");\n\t\tswitchIconOpen = Icon.createImageIcon(\"/images/events/switchImageOpen.png\");\n\t\tswitchIconEmpty = Icon.createImageIcon(\"/images/events/switchImageEmpty.png\");\n\t\tswitchIconOff = Icon.createImageIcon(\"/images/events/switchImageOff.png\");\n\t\tswitchIconOn = Icon.createImageIcon(\"/images/events/switchImageOn.png\");\n\t\tleverIconClean = Icon.createImageIcon(\"/images/events/leverImageClean.png\");\n\t\tleverIconRusty = Icon.createImageIcon(\"/images/events/leverImageRusty.png\");\n\t\tleverIconOn = Icon.createImageIcon(\"/images/events/leverImageOn.png\");\n\t}", "public void setupIcons() {\n try {\n tabLayout.getTabAt(0).setCustomView(getTabView(R.string.ic_user_black_bg, 0));\n tabLayout.getTabAt(1).setCustomView(getTabView(R.string.ic_hot_or_burn, 1));\n tabLayout.getTabAt(2).setCustomView(getTabView(R.string.ic_chat_1, 0));\n\n viewPager.addOnPageChangeListener(this);\n } catch (NullPointerException e) {\n e.printStackTrace();\n }\n }", "private void setUpImage() {\n Bitmap icon = BitmapFactory.decodeResource( this.getResources(), R.drawable.hotel_icon );\n map.addImage( MARKER_IMAGE_ID, icon );\n }", "public void changeIcon() {\n\t\t\tint choice = rand.nextInt(list.length);\n\t\t\tString iconName = list[choice].getName();\n\t\t\ticon = new ImageIcon(helpIconBase + File.separator + iconName);\n\t\t\tDimension dim = new Dimension(icon.getIconWidth() * 2, HEIGHT);\n\t\t\tsetPreferredSize(dim);\n\t\t\tsetMinimumSize(dim);\n\t\t}", "@Override\n public void setIconURI(String arg0)\n {\n \n }", "private void setImageSizeForAllImages() {\n phoneIcon.setFitWidth(ICON_WIDTH);\n phoneIcon.setFitHeight(ICON_HEIGHT);\n\n addressIcon.setFitWidth(ICON_WIDTH);\n addressIcon.setFitHeight(ICON_HEIGHT);\n\n emailIcon.setFitWidth(ICON_WIDTH);\n emailIcon.setFitHeight(ICON_HEIGHT);\n\n groupIcon.setFitWidth(ICON_WIDTH);\n groupIcon.setFitHeight(ICON_HEIGHT);\n\n prefIcon.setFitWidth(ICON_WIDTH);\n prefIcon.setFitHeight(ICON_HEIGHT);\n }", "private void setFabIcons() {\n\n if (isAddedToFavorites()) {\n mFabButton.setTag(FAV_TAG);\n mFabButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite));\n } else {\n mFabButton.setTag(NOT_FAV_TAG);\n mFabButton.setImageDrawable(getResources().getDrawable(R.drawable.ic_favorite_border));\n }\n }", "@Override\n\tpublic void setIcon(int resId) {\n\t\t\n\t}", "public void createImageSet() {\n\t\t\n\t\t\n\t\tString image_folder = getLevelImagePatternFolder();\n \n String resource = \"0.png\";\n ImageIcon ii = new ImageIcon(this.getClass().getResource(image_folder + resource));\n images.put(\"navigable\", ii.getImage());\n\n\t}", "public void setImage(ImageIcon image){\n\t\tthis.image = image;\n\t}", "private void configurarIcones() {\n\t\tswitch (dificuldade) {\r\n\t\tcase FACIL:\r\n\t\t\ticonBomba = new ImageIcon(getClass().getResource(\"/images/iconBombaFacil.png\"));\r\n\t\t\ticonBandeira = new ImageIcon(getClass().getResource(\"/images/iconBandeiraFacil.png\"));\r\n\t\t\ticonBotao = new ImageIcon(getClass().getResource(\"/images/iconBotaoFacil.png\"));\r\n\t\t\tbreak;\r\n\t\tcase MEDIO:\r\n\t\t\ticonBomba = new ImageIcon(getClass().getResource(\"/images/iconBombaMedio.png\"));\r\n\t\t\ticonBandeira = new ImageIcon(getClass().getResource(\"/images/iconBandeiraMedio.png\"));\r\n\t\t\ticonBotao = new ImageIcon(getClass().getResource(\"/images/iconBotaoMedio.png\"));\r\n\t\t\tbreak;\r\n\t\tcase DIFICIL:\r\n\t\t\ticonBomba = new ImageIcon(getClass().getResource(\"/images/iconBombaDificil.png\"));\r\n\t\t\ticonBandeira = new ImageIcon(getClass().getResource(\"/images/iconBandeiraDificil.png\"));\r\n\t\t\ticonBotao = new ImageIcon(getClass().getResource(\"/images/iconBotaoDificil.png\"));\r\n\t\t\tbreak;\r\n\t\t}\r\n\t\ticonContador = new ImageIcon(getClass().getResource(\"/images/iconBombaMedio.png\"));\r\n\t\ticonIa = new ImageIcon(getClass().getResource(\"/images/iconIa.png\"));\r\n\t}", "public void setImage(ImageIcon image) {\n this.image = image;\n }", "public void setImages() {\n\n imgBlock.removeAll();\n imgBlock.revalidate();\n imgBlock.repaint();\n labels = new JLabel[imgs.length];\n for (int i = 0; i < imgs.length; i++) {\n\n labels[i] = new JLabel(new ImageIcon(Toolkit.getDefaultToolkit().createImage(imgs[i].getSource())));\n imgBlock.add(labels[i]);\n\n }\n\n SwingUtilities.updateComponentTreeUI(jf); // refresh\n initialized = true;\n\n }", "protected void addImageIcons(String key) {\n Image normal = ResourceManager.getImage(\"orderButton.normal.\" + key);\n Image highlighted = ResourceManager.getImage(\"orderButton.highlighted.\" + key);\n Image pressed = ResourceManager.getImage(\"orderButton.pressed.\" + key);\n Image disabled = ResourceManager.getImage(\"orderButton.disabled.\" + key);\n orderButtonImageCount = ((normal == null) ? 0 : 1)\n + ((highlighted == null) ? 0 : 1)\n + ((pressed == null) ? 0 : 1)\n + ((disabled == null) ? 0 : 1);\n if (hasOrderButtons()) {\n putValue(BUTTON_IMAGE, new ImageIcon(normal));\n putValue(BUTTON_ROLLOVER_IMAGE, new ImageIcon(highlighted));\n putValue(BUTTON_PRESSED_IMAGE, new ImageIcon(pressed));\n putValue(BUTTON_DISABLED_IMAGE, new ImageIcon(disabled));\n } else {\n logger.warning(\"Missing \" + (4-orderButtonImageCount)\n + \" orderButton images for \" + getId());\n }\n }", "private Images() {\n \n imgView = new ImageIcon(this,\"images/View\");\n\n imgUndo = new ImageIcon(this,\"images/Undo\");\n imgRedo = new ImageIcon(this,\"images/Redo\");\n \n imgCut = new ImageIcon(this,\"images/Cut\");\n imgCopy = new ImageIcon(this,\"images/Copy\");\n imgPaste = new ImageIcon(this,\"images/Paste\");\n \n imgAdd = new ImageIcon(this,\"images/Add\");\n \n imgNew = new ImageIcon(this,\"images/New\");\n imgDel = new ImageIcon(this,\"images/Delete\");\n \n imgShare = new ImageIcon(this,\"images/Share\");\n }", "@Override\n\tpublic void setIcon(Drawable icon) {\n\t\t\n\t}", "public void setMainIcon(IconReference ref);", "public void setIconState(int index) {\n\r\n switch (index) {\r\n case 0:\r\n im_service.setImageResource(R.drawable.shouye2);\r\n tv_service.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n case 1:\r\n im_chart.setImageResource(R.drawable.faxian2);\r\n tv_chart.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n\r\n case 2:\r\n im_share.setImageResource(R.drawable.fenxiang2);\r\n tv_share.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n case 3:\r\n im_me.setImageResource(R.drawable.wo2);\r\n tv_me.setTextColor(getResources().getColor(R.color.green));\r\n break;\r\n }\r\n }", "private static void loadIcons(Context context)\n\t{\n\t\tResources res = context.getResources();\n\t\tSONG_ICON = BitmapFactory.decodeResource(res, R.drawable.ic_tab_songs_selected);\n\t\tALBUM_ICON = BitmapFactory.decodeResource(res, R.drawable.ic_tab_albums_selected);\n\t\tARTIST_ICON = BitmapFactory.decodeResource(res, R.drawable.ic_tab_artists_selected);\n\t}", "public void loadImages() {\n\t\tpigsty = new ImageIcon(\"images/property/pigsty.png\");\n\t}", "private void setIcon(ViewHolder holder, String heroIconName){\n if(heroIconName.equals(\"genji\"))holder.mIconView.setImageResource(R.mipmap.icon_genji);\n if(heroIconName.equals(\"mccree\"))holder.mIconView.setImageResource(R.mipmap.icon_mccree);\n if(heroIconName.equals(\"pharah\"))holder.mIconView.setImageResource(R.mipmap.icon_pharah);\n if(heroIconName.equals(\"reaper\"))holder.mIconView.setImageResource(R.mipmap.icon_reaper);\n if(heroIconName.equals(\"soldier76\"))holder.mIconView.setImageResource(R.mipmap.icon_soldier76);\n if(heroIconName.equals(\"sombra\"))holder.mIconView.setImageResource(R.mipmap.icon_sombra);\n if(heroIconName.equals(\"tracer\"))holder.mIconView.setImageResource(R.mipmap.icon_tracer);\n if(heroIconName.equals(\"bastion\"))holder.mIconView.setImageResource(R.mipmap.icon_bastion);\n if(heroIconName.equals(\"hanzo\"))holder.mIconView.setImageResource(R.mipmap.icon_hanzo);\n if(heroIconName.equals(\"junkrat\"))holder.mIconView.setImageResource(R.mipmap.icon_junkrat);\n if(heroIconName.equals(\"mei\"))holder.mIconView.setImageResource(R.mipmap.icon_mei);\n if(heroIconName.equals(\"torbjorn\"))holder.mIconView.setImageResource(R.mipmap.icon_torbjorn);\n if(heroIconName.equals(\"widowmaker\"))holder.mIconView.setImageResource(R.mipmap.icon_widowmaker);\n if(heroIconName.equals(\"d.va\"))holder.mIconView.setImageResource(R.mipmap.icon_dva);\n if(heroIconName.equals(\"reinhardt\"))holder.mIconView.setImageResource(R.mipmap.icon_reinhardt);\n if(heroIconName.equals(\"roadhog\"))holder.mIconView.setImageResource(R.mipmap.icon_roadhog);\n if(heroIconName.equals(\"winston\"))holder.mIconView.setImageResource(R.mipmap.icon_winston);\n if(heroIconName.equals(\"zarya\"))holder.mIconView.setImageResource(R.mipmap.icon_zarya);\n if(heroIconName.equals(\"ana\"))holder.mIconView.setImageResource(R.mipmap.icon_ana);\n if(heroIconName.equals(\"lucio\"))holder.mIconView.setImageResource(R.mipmap.icon_lucio);\n if(heroIconName.equals(\"mercy\"))holder.mIconView.setImageResource(R.mipmap.icon_mercy);\n if(heroIconName.equals(\"symmetra\"))holder.mIconView.setImageResource(R.mipmap.icon_symmetra);\n if(heroIconName.equals(\"zenyatta\"))holder.mIconView.setImageResource(R.mipmap.icon_zenyatta);\n }", "public void setActionIcons(Image close,Image minimize,Image maximize,Image restore){\n if(close!=null){\n Platform.runLater(()-> btnClose.setGraphic(new ImageView(close)));\n }\n if(minimize!=null){\n Platform.runLater(()-> btnMin.setGraphic(new ImageView(minimize)));\n }\n if(maximize!=null){\n Platform.runLater(()-> btnMax.setGraphic(new ImageView(maximize)));\n imgMaximize=maximize;\n }\n if(restore!=null){\n imgRestore=restore;\n }\n }", "private void loadAndSetIcon()\n\t{\t\t\n\t\ttry\n\t\t{\n\t\t\twindowIcon = ImageIO.read (getClass().getResource (\"calculator.png\"));\n\t\t\tsetIconImage(windowIcon);\n\t\t}\n\t\tcatch(Exception e)\n\t\t{\n\t\t\t\n\t\t}\t\t\n\t}", "public void setIcon(Icon image)\n {\n getComponent().setIcon(image);\n invalidateSize();\n }", "private void setImage() {\n\t\t\n\t\tfor(int i=0; i<user.getIsVisited().length; i++) {\n\t\t\tif(user.getIsVisited()[i])\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1_certified + i*2);\n\t\t\telse\n\t\t\t\tspots[i].setBackgroundResource(R.drawable.num1 + i*2);\n\t\t}\n\t}", "public void registerIcons(IIconRegister iconRegister) {\n/* 51 */ this.itemIcon = iconRegister.registerIcon(\"forgottenrelics:Soul_Tome\");\n/* */ }", "private void initTabImage() {\n firstImage.setImageResource(R.drawable.home);\n secondImage.setImageResource(R.drawable.profile);\n// thirdImage.setImageResource(R.drawable.addcontent);\n fourthImage.setImageResource(R.drawable.channels);\n fifthImage.setImageResource(R.drawable.search);\n }", "public void defaultImageDisplay(){\n ClassLoader cl = this.getClass().getClassLoader();\n ImageIcon icon = new ImageIcon(cl.getResource(\"pictures/NewInventory/defaultPic.png\"));\n // this.finalImage = icon.getImage();\n Image img = icon.getImage().getScaledInstance(entryImage.getWidth(), entryImage.getHeight(), Image.SCALE_SMOOTH);\n entryImage.setIcon(new ImageIcon(img));\n }", "public void setTeachingAvatar(){\n\t\tavatar.setIcon(new ImageIcon(\"img/Asking.png\"));\n\t}", "public void fillShipPictureLabel() {\n\t\tString shipsName = this.ship.getShipName();\n\t\tif (shipsName == \"Thousand Sunny\") {\n\t\t\tshipPictureLabel.setIcon(new ImageIcon(SetupAdventureScreen.class.getResource(\"/images/ThousandSunny.png\")));\n\t\t}\n\t\telse if (shipsName == \"Black Pearl\") {\n\t\t\tshipPictureLabel.setIcon(new ImageIcon(SetupAdventureScreen.class.getResource(\"/images/BlackPearl.png\")));\n\t\t}\n\t\telse if (shipsName == \"Victoria Hunter\") {\n\t\t\tshipPictureLabel.setIcon(new ImageIcon(SetupAdventureScreen.class.getResource(\"/images/VictoriaHunter.png\")));\n\t\t}\n\t\telse {\n\t\t\tshipPictureLabel.setIcon(new ImageIcon(SetupAdventureScreen.class.getResource(\"/images/StarOne.png\")));\n\t\t}\n\t}", "public void setIcon(URL icon)\r\n {\r\n\tthis.icon = icon;\r\n }", "private void setIcon(final TypedArray typedArray, final int attr) {\n final Drawable drawable = ThemeUtil.getDrawable(this.getContext(), typedArray, attr);\n if (drawable == null) {\n return;\n }\n if (attr == R.styleable.WaypointItem_removingEnabledIcon) {\n setRemoveDrawable(drawable);\n } else if (attr == R.styleable.WaypointItem_draggingEnabledIcon) {\n setDragDrawable(drawable);\n }\n }", "private void setImage(){\n if(objects.size() <= 0)\n return;\n\n IImage img = objects.get(0).getImgClass();\n boolean different = false;\n \n //check for different images.\n for(IDataObject object : objects){\n IImage i = object.getImgClass();\n \n if((img == null && i != null) || \n (img != null && i == null)){\n different = true;\n break;\n }else if (img != null && i != null){ \n \n if(!i.getName().equals(img.getName()) ||\n !i.getDir().equals(img.getDir())){\n different = true;\n break;\n }\n } \n }\n \n if(!different){\n image.setText(BUNDLE.getString(\"NoImage\"));\n if(img != null){\n imgName = img.getName();\n imgDir = img.getDir();\n image.setImage(img.getImage());\n }else{\n image.setImage(null);\n }\n }else{\n image.setText(BUNDLE.getString(\"DifferentImages\"));\n }\n \n image.repaint();\n }", "IconUris iconUris();", "@Override\n\tpublic void loadImages() {\n\t\tsuper.setImage((new ImageIcon(\"pacpix/QuestionCandy.png\")).getImage());\t\n\t}", "private void initButtonIcons() {\n\t\t\n\t\tbuttons[0][0].setIcon(Icon.returnIcon(\"white_rook\"));\n\t\tbuttons[1][0].setIcon(Icon.returnIcon(\"white_knight\"));\n\t\tbuttons[2][0].setIcon(Icon.returnIcon(\"white_bishop\"));\n\t\tbuttons[3][0].setIcon(Icon.returnIcon(\"white_queen\"));\n\t\tbuttons[4][0].setIcon(Icon.returnIcon(\"white_king\"));\n\t\tbuttons[5][0].setIcon(Icon.returnIcon(\"white_bishop\"));\n\t\tbuttons[6][0].setIcon(Icon.returnIcon(\"white_knight\"));\n\t\tbuttons[7][0].setIcon(Icon.returnIcon(\"white_rook\"));\n\t\t\n\t\tfor (int x = 0; x <= 7; x++)\n\t\t\tfor (int y = 2; y < 6; y++)\n\t\t\t\tbuttons[x][y].setIcon(null);\n\t\t\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tbuttons[i][1].setIcon(Icon.returnIcon(\"white_pawn\"));\n\t\t\tbuttons[i][6].setIcon(Icon.returnIcon(\"black_pawn\"));\n\t\t}\n\t\t\n\t\tbuttons[0][7].setIcon(Icon.returnIcon(\"black_rook\"));\n\t\tbuttons[1][7].setIcon(Icon.returnIcon(\"black_knight\"));\n\t\tbuttons[2][7].setIcon(Icon.returnIcon(\"black_bishop\"));\n\t\tbuttons[3][7].setIcon(Icon.returnIcon(\"black_queen\"));\n\t\tbuttons[4][7].setIcon(Icon.returnIcon(\"black_king\"));\n\t\tbuttons[5][7].setIcon(Icon.returnIcon(\"black_bishop\"));\n\t\tbuttons[6][7].setIcon(Icon.returnIcon(\"black_knight\"));\n\t\tbuttons[7][7].setIcon(Icon.returnIcon(\"black_rook\"));\n\t}", "public void loadImages() {\n\t\tcowLeft1 = new ImageIcon(\"images/animal/cow1left.png\");\n\t\tcowLeft2 = new ImageIcon(\"images/animal/cow2left.png\");\n\t\tcowLeft3 = new ImageIcon(\"images/animal/cow1left.png\");\n\t\tcowRight1 = new ImageIcon(\"images/animal/cow1right.png\");\n\t\tcowRight2 = new ImageIcon(\"images/animal/cow2right.png\");\n\t\tcowRight3 = new ImageIcon(\"images/animal/cow1right.png\");\n\t}", "private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n\n }", "private void updateBaseIcon() {\n this.squareIcon.setDecoratedIcon( getSelectedBaseIcon() );\n this.radialIcon.setDecoratedIcon( getSelectedBaseIcon() );\n }", "public void setImage(String path) {\n\t\timageIcon = new ImageIcon(Helper.getFileURL(path));\n\t}", "private void createUIComponents() {\n Fond = new JLabel(new ImageIcon(\"maxresdefault.jpg\"));\r\n Fond.setIcon(new ImageIcon(\"maxresdefault.jpg\"));\r\n }", "public void replaceIcons(){\n int nb = this.listGraphFrame.size();\n int x = 0;\n int y = this.getHeight()-DataProcessToolPanel.ICON_HEIGHT;\n for (int i=0; i<nb; i++){\n InternalGraphFrame gFrame = listGraphFrame.get(i);\n if(gFrame.isIcon() && gFrame.getDesktopIcon() != null){\n JInternalFrame.JDesktopIcon icon = gFrame.getDesktopIcon();\n icon.setBounds(x, y, icon.getWidth(), icon.getHeight());\n if(x+(2*DataProcessToolPanel.ICON_WIDTH) < getWidth()){\n x += DataProcessToolPanel.ICON_WIDTH;\n }else{\n x = 0;\n y = y-DataProcessToolPanel.ICON_HEIGHT;\n }\n }\n }\n }", "public SearchFlight() {\n initComponents();\n Icon img1=new ImageIcon(\"Images\\\\click.jpg\");\n Icon img2=new ImageIcon(\"Images\\\\279844-alexfas01.jpg\");\n jButton2.setIcon(img1);\n jLabel8.setIcon(img2);\n }", "private void setIcon(String icon, boolean isSmall) {\n org.netbeans.modules.j2ee.dd.api.common.Icon oldIcon = getIcon();\n if (oldIcon==null) {\n if (icon!=null) {\n try {\n org.netbeans.modules.j2ee.dd.api.common.Icon newIcon = (org.netbeans.modules.j2ee.dd.api.common.Icon) createBean(\"Icon\");\n if (isSmall) newIcon.setSmallIcon(icon);\n else newIcon.setLargeIcon(icon);\n setIcon(newIcon);\n } catch(ClassNotFoundException ex){}\n }\n } else {\n if (icon==null) {\n if (isSmall) {\n oldIcon.setSmallIcon(null);\n if (oldIcon.getLargeIcon()==null) setIcon(null);\n } else {\n oldIcon.setLargeIcon(null);\n if (oldIcon.getSmallIcon()==null) setIcon(null);\n }\n } else {\n if (isSmall) oldIcon.setSmallIcon(icon);\n else oldIcon.setLargeIcon(icon);\n }\n } \n }", "static void loadCardIcons()\n {\n if(iconsLoaded == false)\n {\n //arrays for suits and ranks\n String[] suits = {\"C\", \"D\", \"H\", \"S\"};\n String[] ranks = {\"2\", \"3\", \"4\", \"5\", \"6\", \"7\", \"8\", \"9\", \n \"T\", \"A\", \"J\", \"Q\", \"K\", \"X\"};\n //load iconCards array\n for(int i = 0; i < suits.length; i++)\n {\n for(int k = 0; k < ranks.length; k++)\n {\n iconCards[i][k] = new ImageIcon(\"images/\" + ranks[k] + suits[i] + \".gif\");\n }\n }\n //set iconsLoaded to true\n iconsLoaded = true;\n }\n else //do nothing if icons have already been loaded\n {\n return;\n }\n }", "public void setImg() {\n\t\tif (custom) {\n\t\t\tImage img1;\n\t\t\ttry {\n\t\t\t\timg1 = new Image(new FileInputStream(\"tmpImg.png\"));\n\t\t\t\tmainAvatar.setImage(img1); // Sets main user avatar as the custom image\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void setIcone(String icone) {\n this.icone = icone;\n }", "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000002;\n icon_ = value;\n onChanged();\n return this;\n }", "public void setImageView() {\n \timage = new Image(\"/Model/boss3.png\", true);\n \tboss = new ImageView(image); \n }", "public HashMap<String,Image> getIcons(){\n\t\treturn iconMap;\n\t}", "private void initImage() {\n BufferedImage closebtn = null;\n BufferedImage mulaiBtn = null;\n try {\n mulaiBtn = ImageIO.read(new File(\"image\\\\button\\\\mulai_btn.png\"));\n closebtn = ImageIO.read(new File(\"image\\\\button\\\\closeX_btn.png\"));\n ImageIcon mulaiBtnImage = new ImageIcon(mulaiBtn.getScaledInstance(126, 32, Image.SCALE_SMOOTH));\n ImageIcon closeBtnImage = new ImageIcon(closebtn.getScaledInstance(42, 42, Image.SCALE_SMOOTH));\n button_mulai.setIcon(mulaiBtnImage);\n button_close.setIcon(closeBtnImage);\n } catch (IOException ex) {\n ex.printStackTrace();\n } finally {\n button_mulai.setText(\"\");\n button_close.setText(\"\");\n }\n }", "public void addIcons(String iconPath) {\n ImageIcon background = new ImageIcon(iconPath);\n Image img = background.getImage();\n img = img.getScaledInstance(30,30,Image.SCALE_SMOOTH);\n background = new ImageIcon(img);\n\n JLabel icon = new JLabel(background);\n icon.setBounds(50,y_Axis,30,30);\n icon.setLayout(null);\n mainBody.add(icon);\n y_Axis += 50;\n }", "private void setImageButtonImage(int typeIconId) {\n ImageButton btn = (ImageButton) findViewById(R.id.btn_typeIcon);\n\n TypeIcon typeIcon = MainActivity.getTypeIconById(typeIconId);\n\n // Gets the id of the actual image to display, using the name of the TypeIcon\n String name = typeIcon.getDrawablePath();\n final int id = getResources().getIdentifier(name, \"drawable\", getPackageName());\n btn.setImageResource(id);\n\n iconId = typeIconId;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void setIcon(String icon) {\n this.icon = icon;\n }", "public void changeIcon(){\r\n\t\tif (pacman.direction.equals(\"up\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/UpClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/UpOpened.png\"));\r\n\t\t}\r\n\t\tif (pacman.direction.equals(\"down\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/DownClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/DownOpened.png\"));\r\n\t\t}\r\n\t\tif (pacman.direction.equals(\"left\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/LeftClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/LeftOpened.png\"));\r\n\t\t}\r\n\t\tif (pacman.direction.equals(\"right\")){\r\n\t\t\tif (mouthOpen)\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/RightClosed.png\"));\r\n\t\t\telse\r\n\t\t\t\tpacmansprite.setIcon(new ImageIcon(\"src/pacman_img/RightOpened.png\"));\r\n\t\t}\r\n\t\t\r\n\t\tmouthOpen = !mouthOpen;\r\n\t}", "public void setIconTablaPlantilla() {\n\t\t// Establece el icono del boton editar\n\t\tFile archivo1 = new File(\"imagenes\" + File.separator + \"lapices.png\");\n\t\tImage imagen1 = new Image(archivo1.toURI().toString(), 50, 50, true, true, true);\n\t\tbtnModificar.setGraphic(new ImageView(imagen1));\n\t\tbtnModificar.setContentDisplay(ContentDisplay.CENTER);\n\t}", "public void setFrameIcon()\n {\n URL imageURL = HelpWindow.class.getResource(\"/resources/images/frameicon.png\");\n Image img = Toolkit.getDefaultToolkit().getImage(imageURL);\n \n if(imageURL != null)\n {\n ImageIcon icon = new ImageIcon(img);\n super.setIconImage(icon.getImage());//window icon\n }\n }", "public Builder setIcon(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00000004;\n icon_ = value;\n onChanged();\n return this;\n }", "private ImageView setStartMenuImage() {\r\n Image image = null;\r\n try {\r\n image = new Image(new FileInputStream(\"images/icon1.png\"));\r\n } catch (FileNotFoundException e) {\r\n e.printStackTrace();\r\n }\r\n ImageView imageView = new ImageView(image);\r\n imageView.setFitHeight(HEIGHT / 4);\r\n imageView.setPreserveRatio(true);\r\n return imageView;\r\n }", "void setIcon(Dialog dialog);", "void setIcon(String current) {\n\tif (current != null && (!current.equals(currentName) || mapList == null)) {\n mapList = main.myData.getGridLinks(current);\n\n removeAll();\n if (mapList == null) {\n revalidate();\n return;\n }\n\n\t currentName = current;\n\n TreeSet ts = new TreeSet(Collator.getInstance(Locale.FRANCE));\n ts.addAll(mapList.keySet());\n Iterator iter = ts.iterator();\n ArrayList panels = new ArrayList();\n int idx = 0;\n int x = 0;\n int y = 0;\n while (iter.hasNext()) {\n String gridid = (String) iter.next();\n String[] refmap = (String[]) mapList.get(gridid);\n ImagePanel p = new ImagePanel(refmap);\n\n if (gridid.matches(\"[0-9],[0-9]\")) {\n x = Integer.parseInt\n (gridid.substring(0, gridid.indexOf(',')));\n y = Integer.parseInt\n (gridid.substring(gridid.indexOf(',')+1));\n }\n else {\n x = idx%4;\n y = idx/4;\n idx++;\n }\n\n // Prepare y-panels\n for (int i = panels.size(); i <= y; i++)\n panels.add(new ArrayList());\n\n // Prepare x-panels\n ArrayList al = (ArrayList) panels.get(y);\n for (int i = al.size(); i <= x; i++)\n al.add(null);\n\n al.set(x, p);\n }\n\n GridBagConstraints constr = new GridBagConstraints();\n constr.fill = GridBagConstraints.BOTH;\n constr.weightx = constr.weighty = 1;\n constr.insets = new Insets(5,5,5,5);\n for (int i = 0; i < panels.size(); i++) {\n ArrayList al = (ArrayList) panels.get(i);\n for (int j = 0; j < al.size(); j++) {\n JComponent px = new JPanel();\n constr.gridx = j;\n constr.gridy = i;\n if (al.get(j) != null)\n px = (ImagePanel)al.get(j);\n add(px, constr);\n }\n }\n\n\t // Adapt the display\n\t revalidate();\n\t}\n }", "public void setIcon(Bitmap icon) {\n\t\tmIcon = icon;\n\t}", "public void initIcons(){\n\t \troot_iconsFileNames = new ArrayList<String>();\n\t root_iconsBitmaps = new ArrayList<Bitmap>(); \n \t\ttry{\n \t\t\tResources res = this.getResources();\n \t\t\tInputStream iconInputStream = res.openRawResource(R.raw.icons);\n \t\t\tZipInputStream zipStream = new ZipInputStream(iconInputStream);\n \t\t ZipEntry entry;\n\n \t\t while ((entry = zipStream.getNextEntry()) != null) {\n \t\t \t//file name may start with MACOSX. This is strange, ignore it.\n \t\t \tString fileName = entry.getName();\n \t\t \tif(fileName.length() > 1){\n\t \t\t \tif(fileName.contains(\".png\") && !entry.isDirectory()){\n\t \t\t \t\tif(!fileName.contains(\"MACOSX\")){ //OSX adds junk sometimes, ignore it\n\t \t\t \t\t\tfileName = fileName.replace(\"icons/\",\"\");\n\t \t\t \t\t\tBitmap iconBitmap = BitmapFactory.decodeStream(zipStream); \n\t \t\t \t\t\troot_iconsFileNames.add(fileName);\n\t \t\t \t\t\troot_iconsBitmaps.add(iconBitmap);\n\t \t\t \t\t\t//Log.i(\"ZZ\", \"loading bitmaps: \" + fileName); \n\t \t\t \t\t}\n\t \t\t \t} //macosx\n\t \t\t } // fileName\n \t\t }//end while\n \t\t \n \t\t //clean up\n \t\t if(zipStream != null){\n \t\t \tzipStream.close();\n \t\t }\n \t\t \n \t\t}catch(Exception ex){\n \t\t\t Log.i(\"ZZ\", \"getZippedIcon: \" + ex.toString()); \n \t\t}\t \n\t }", "public void setIcon(int index, Image image)\r\n {\r\n if (index >= this.labels.size())\r\n {\r\n throw new IllegalArgumentException(\r\n \"UMLFragmentLabelFigure: No such index.\");\r\n }\r\n\r\n this.labels.get(index).setIcon(image);\r\n }", "public void swapIcons() {\n\tif (image.equals(bat_2)) {\n\t image = bat_1;\n\t} else {\n\t image = bat_2;\n\t}\n }", "public void setIcons(CKDataModel data) {\r\n\r\n\t//CKDrawerTab icons = new CKDrawerTab(CharacterIcons, DrawerSides.LEFT, 0.0, 0.0, 350.0, 170.0, \"ckSnapInterpreter/headshot.png\");\r\n\t\r\n\t\tCKGridActor[] players = data.getTeam().getCharacters();\r\n\t\tSystem.out.println(\"This team is named \" + data.getTeam().toString() + \" and has \" + data.getTeam().getCharacters().length + \" players.\"); //team.tostring\r\n\t\tEffect effect = new DropShadow();//new Glow(.8);\r\n\r\n\t\tfor (CKGridActor p : players ) \r\n\t\t\tif(p != null) {\r\n\t\t\t\t\r\n\t\t\t\ttry {\r\n \t\t\t\t\r\n\t\t\t\t\tButton b = new Button(p.getName(), new ImageView(p.getFXPortrait()));\r\n\t\t\t\t\tb.setContentDisplay(ContentDisplay.TOP);\r\n\t\t\t\t\tb.setOnAction(e -> { data.setPlayer(p); });\r\n\t\t\t\t\t\r\n\t\t\t\t\tdata.getActivePlayerProperty()\r\n\t\t\t\t\t\t.registerObserver(\r\n\t\t\t\t\t\t\te->{\r\n\t\t\t\t\t\t\t\tif(e==p)\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tb.setEffect(effect);\r\n\t\t\t\t\t\t\t\t\tdata.setPlayer(p);\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"I was picked\"+e);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\telse\r\n\t\t\t\t\t\t\t\t{\r\n\t\t\t\t\t\t\t\t\tb.setEffect(null);\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\r\n \t\t\t\tthis.getChildren().add(b);\r\n \t\t\t\tthis.setAlignment(Pos.CENTER);\r\n\t\t\t\t}\r\n\t\t\t\tcatch (NullPointerException n) {\r\n\t\t\t\t\tSystem.out.println(\"Character Icon asset was not found\" + n);\r\n\t\t\t\t}\t\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t//return this;\r\n\t}" ]
[ "0.8398357", "0.80690604", "0.7943878", "0.79135406", "0.77931064", "0.777037", "0.77673376", "0.7749192", "0.77386385", "0.77349496", "0.7687936", "0.76809007", "0.76728827", "0.7654489", "0.7650281", "0.762082", "0.76132566", "0.7474686", "0.74678147", "0.7428618", "0.74195427", "0.74195427", "0.7411697", "0.74088657", "0.7405428", "0.73640525", "0.73463494", "0.7253578", "0.72300804", "0.7215682", "0.7215682", "0.7159029", "0.71408874", "0.71267694", "0.70133597", "0.70115566", "0.70044386", "0.6929694", "0.6897634", "0.68893903", "0.6889368", "0.6881546", "0.6852464", "0.6849276", "0.6839959", "0.68225515", "0.6778612", "0.67706597", "0.6764822", "0.6754242", "0.6748775", "0.67443544", "0.67367727", "0.6726666", "0.6693487", "0.66792077", "0.66209847", "0.661843", "0.66106665", "0.6605221", "0.65727204", "0.6546773", "0.6542471", "0.65256244", "0.65244883", "0.6520108", "0.6519052", "0.65156525", "0.6507845", "0.648427", "0.64700496", "0.64680386", "0.6466179", "0.64615756", "0.64448726", "0.64418083", "0.6420113", "0.6418072", "0.64172643", "0.64155203", "0.64088464", "0.63998234", "0.63952005", "0.63942724", "0.63941485", "0.63926226", "0.63921994", "0.63921994", "0.6388748", "0.6384024", "0.63796693", "0.6375182", "0.6363831", "0.636102", "0.6355899", "0.6342762", "0.63359797", "0.63219166", "0.6320628", "0.6308782" ]
0.7994394
2
Method that turns the images into JButtons
private void setButtons(JPanel menuContent) { JButton button_start = new JButton(start); button_start.setText("button_start"); button_start.setLocation(450, 300); button_start.setSize(405, 50); button_start.setBorderPainted(false); button_start.setFocusPainted(false); button_start.setContentAreaFilled(false); button_start.setCursor(new Cursor(Cursor.HAND_CURSOR)); button_start.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub button_press.playSound(BUTTON_PRESS); } }); JButton button_howto = new JButton(howto); button_howto.setText("button_howto"); button_howto.setLocation(450, 360); button_howto.setSize(405, 50); button_howto.setBorderPainted(false); button_howto.setFocusPainted(false); button_howto.setContentAreaFilled(false); button_howto.setCursor(new Cursor(Cursor.HAND_CURSOR)); button_howto.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub button_press.playSound(BUTTON_PRESS); } }); JButton button_options = new JButton(options); button_options.setText("button_options"); button_options.setLocation(450, 420); button_options.setSize(405, 50); button_options.setBorderPainted(false); button_options.setFocusPainted(false); button_options.setContentAreaFilled(false); button_options.setCursor(new Cursor(Cursor.HAND_CURSOR)); button_options.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub button_press.playSound(BUTTON_PRESS); } }); JButton button_lboards = new JButton(lboards); button_lboards.setText("button_lboards"); button_lboards.setLocation(450, 480); button_lboards.setSize(405, 50); button_lboards.setBorderPainted(false); button_lboards.setFocusPainted(false); button_lboards.setContentAreaFilled(false); button_lboards.setCursor(new Cursor(Cursor.HAND_CURSOR)); button_lboards.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub button_press.playSound(BUTTON_PRESS); } }); JButton button_exit = new JButton(exit); button_exit.setText("button_exit"); button_exit.setLocation(450, 540); button_exit.setSize(405, 50); button_exit.setBorderPainted(false); button_exit.setFocusPainted(false); button_exit.setContentAreaFilled(false); button_exit.setCursor(new Cursor(Cursor.HAND_CURSOR)); button_exit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { // TODO Auto-generated method stub button_press.playSound(BUTTON_PRESS); } }); //adds the buttons to the JPanel menuContent.add(button_start); menuContent.add(button_howto); menuContent.add(button_options); menuContent.add(button_lboards); menuContent.add(button_exit); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void buildButtons() {\r\n\t\tImage temp1= display_img.getImage();\r\n\t\tImageIcon img=new ImageIcon(temp1.getScaledInstance(800, 800, Image.SCALE_SMOOTH));\r\n\t\timg1 = img.getImage();\r\n\t\tfor(int y=0;y<10;y++) {\r\n\t\t\tfor(int x=0; x<10; x++) {\r\n\t\t\t\tImage image = Toolkit.getDefaultToolkit().createImage(new FilteredImageSource(img1.getSource(), new CropImageFilter(x * 800 / 10, y * 800 / 10, 100, 100)));\r\n\t\t\t\tImageIcon icon = new ImageIcon(image);\r\n\t\t\t\tJButton temp = new JButton(icon);\r\n\t\t\t\ttemp.putClientProperty(\"position\", new Point(y,x));\r\n\t\t\t\tsolutions.add(new Point(y,x));\r\n\t\t\t\ttemp.putClientProperty(\"isLocked\", false);\r\n\t\t\t\ttemp.addMouseListener(new DragMouseAdapter());\r\n\t\t\t\tgrid[x][y]=temp;\r\n\r\n\t\t\t\tbuttons.add(temp);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public void initializeButtons(){\n\t\tfor (int i = 0; i < 4; i++){\n\t\t\tfor(int j = 0; j < 6; j++){\n\t\t\t\tString s = \"Cards\"+File.separator + i +\",\"+ j + \".jpg\";\n\t\t\t\tImageIcon icon = new ImageIcon(s);\n\t\t\t\tImage img = icon.getImage();\n\t\t\t\tImage newImg = img.getScaledInstance(130, 160, java.awt.Image.SCALE_SMOOTH);\n\t\t\t\tbuttons[i][j] = new JButton(new ImageIcon(newImg));\n\t\t\t}\n\t\t}\n\t\tString s = \"Cards\"+File.separator+\"initial.jpg\";\n\t\tImageIcon icon = new ImageIcon(s);\n\t\tImage img = icon.getImage();\n\t\tImage newImg = img.getScaledInstance(130, 160, java.awt.Image.SCALE_SMOOTH);\n\t\tlastcard1 = new JLabel(new ImageIcon(newImg));\n\t\tlastcard2 = new JLabel(new ImageIcon(newImg));\n\t}", "public void toggleButton(){\r\n\t\tImageIcon xImage = new ImageIcon(\"image/x.png\");\t//Inserting image to the button\r\n\t\tImageIcon oImage = new ImageIcon(\"image/o.png\");\t//Inserting image to the button\r\n\t\tfor(int i=0;i<3;i++){\t\t\t\t\t//Update the buttons' text base on array of state\r\n\t\t\tfor(int j=0;j<3;j++){\r\n\t\t\t\t this.b[i][j].setIcon(Exer10.state[i][j]==1?xImage:(Exer10.state[i][j]==2?oImage:null));\r\n\t\t\t}\r\n\t\t}\r\n\t}", "private void createYellowButtons() throws IOException {\r\n\t\tint y = 560;\r\n\t\tfor (int i = 65; i < 70; i++) {\r\n\t\t\tarray[i] = createYellowButton(y);\r\n\t\t\ty -= 40;\r\n\t\t}\r\n\r\n\t\tImage greenslidestart = ImageIO.read(getClass().getResource(\"/images\\\\slides\\\\greenSlideStart.png\"))\r\n\t\t\t\t.getScaledInstance(38, 38, 4);\r\n\t\tarray[46].setIcon(new ImageIcon(greenslidestart));\r\n\t\tImage greenslide = ImageIO.read(getClass().getResource(\"/images\\\\slides\\\\greenSlideMedium.png\"))\r\n\t\t\t\t.getScaledInstance(38, 38, 4);\r\n\t\tarray[47].setIcon(new ImageIcon(greenslide));\r\n\t\tarray[48].setIcon(new ImageIcon(greenslide));\r\n\t\tImage greenslideend = ImageIO.read(getClass().getResource(\"/images\\\\slides\\\\greenSlideEnd.png\"))\r\n\t\t\t\t.getScaledInstance(38, 38, 4);\r\n\t\tarray[49].setIcon(new ImageIcon(greenslideend));\r\n\t\tarray[54].setIcon(new ImageIcon(greenslidestart));\r\n\t\tarray[55].setIcon(new ImageIcon(greenslide));\r\n\t\tarray[56].setIcon(new ImageIcon(greenslide));\r\n\t\tarray[57].setIcon(new ImageIcon(greenslide));\r\n\t\tarray[58].setIcon(new ImageIcon(greenslideend));\r\n\r\n\t}", "public static Component [][] getGridButtons(GridBuilder gridBuilder, ImagesBuilder ib){\n\t\t\n\t\tshort [][] roadGrid = gridBuilder.getGrid();\n\t\t//Cursor cursor = new Cursor(Cursor.HAND_CURSOR);\n\t\tComponent [][] buttons = new Component [roadGrid.length] [roadGrid[0].length];\n\t\t//Border emptyBorder = BorderFactory.createEmptyBorder();\n\t\tJButton tempButton;\n\t\tfor(int i=0;i<roadGrid.length;i++){\n\t\t\t\n\t\t\tfor (int j=0;j<roadGrid[0].length;j++){\n\t\t\t\tif (roadGrid[i][j]!=0 && roadGrid[i][j]!=-100 && roadGrid[i][j]!=-200 && roadGrid[i][j]!=-300 && roadGrid[i][j]!=-400 && roadGrid[i][j]!=-500){\n\t\t\t\t\t\t\n\t\t\t\t\t\tif(roadGrid[i][j]==RoadConfig.INTERSECTION_MIXED_HORIZONTAL_BLOCK){\n\t\t\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\tImageIcon background = new ImageIcon( ImagesSelector.selectRoadImageSc(roadGrid[i][j], ib)); \n\t\t\t\t\t\t\ttempButton.setIcon(background);\n\t\t\t\t\t\t\ttempButton.setLayout(null);\n\t\t\t\t\t\t\ttempButton.setSize(GraphicsConfig.BLOCK_SIDE_SIZE*2, GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE*2, GraphicsConfig.BLOCK_SIDE_SIZE));\n\t\t\t\t\t\t} else\n\t\t\t\t\t\tif(roadGrid[i][j]==RoadConfig.INTERSECTION_MIXED_VERTICAL_BLOCK){\n\t\t\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\tImageIcon background = new ImageIcon( ImagesSelector.selectRoadImageSc(roadGrid[i][j], ib)); \n\t\t\t\t\t\t\ttempButton.setIcon(background);\n\t\t\t\t\t\t\ttempButton.setLayout(null);\n\t\t\t\t\t\t\ttempButton.setSize(GraphicsConfig.BLOCK_SIDE_SIZE, GraphicsConfig.BLOCK_SIDE_SIZE*2);\n\t\t\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE, GraphicsConfig.BLOCK_SIDE_SIZE*2));\n\t\t\t\t\t\t} else\n\t\t\t\t\t\tif(roadGrid[i][j]>30){\n\t\t\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\tImageIcon background = new ImageIcon( ImagesSelector.selectRoadImageSc(roadGrid[i][j], ib)); \n\t\t\t\t\t\t\ttempButton.setIcon(background);\n\t\t\t\t\t\t\ttempButton.setLayout(null);\n\t\t\t\t\t\t\ttempButton.setSize(GraphicsConfig.BLOCK_SIDE_SIZE*3, GraphicsConfig.BLOCK_SIDE_SIZE*3);\n\t\t\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE*3, GraphicsConfig.BLOCK_SIDE_SIZE*3));\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(roadGrid[i][j]>10){\n\t\t\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\tImageIcon background = new ImageIcon( ImagesSelector.selectRoadImageSc(roadGrid[i][j], ib)); \n\t\t\t\t\t\t\ttempButton.setIcon(background);\n\t\t\t\t\t\t\ttempButton.setLayout(null);\n\t\t\t\t\t\t\ttempButton.setSize(GraphicsConfig.BLOCK_SIDE_SIZE*2, GraphicsConfig.BLOCK_SIDE_SIZE*2);\n\t\t\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE*2, GraphicsConfig.BLOCK_SIDE_SIZE*2));\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\tImageIcon background = new ImageIcon( ImagesSelector.selectRoadImageSc(roadGrid[i][j], ib)); \n\t\t\t\t\t\t\ttempButton.setIcon(background);\n\t\t\t\t\t\t\ttempButton.setLayout(null);\n\t\t\t\t\t\t\ttempButton.setSize(GraphicsConfig.BLOCK_SIDE_SIZE, GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE, GraphicsConfig.BLOCK_SIDE_SIZE));\n\n\t\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\telse {\n\t\t\t\t\ttempButton = new JButton();//new GridButton(i,j,GraphicsConfig.BLOCK_SIDE_SIZE);\n\t\t\t\t\ttempButton.setPreferredSize(new Dimension(GraphicsConfig.BLOCK_SIDE_SIZE, GraphicsConfig.BLOCK_SIDE_SIZE));\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttempButton.setRolloverEnabled(true);\n\t\t\t\ttempButton.setBorder(BorderFactory.createLineBorder(Color.WHITE));\n\t\t\t\tbuttons[i][j] = tempButton;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn buttons;\n\t}", "private void createImages(){\n icon=new ImageIcon(PATH_TO_FOLDER+\"guiResourses\\\\icon.jpg\").getImage();\n /*\n Image resizedImage=null;\n try {\n resizedImage =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\Gold_Button_009.png\"))\n .getScaledInstance(100, 50, Image.SCALE_DEFAULT);\n } catch (IOException e) {\n e.printStackTrace();\n }\n buttonStart.setIcon(new ImageIcon(resizedImage));\n buttonStart.setRolloverIcon(new ImageIcon(resizedImage1));\n buttonStart.setBorderPainted(false);\n buttonStart.setFocusPainted(false);\n buttonStart.setContentAreaFilled(false);\n */\n Image resizedImageF=null;\n Image resizedImageFP=null;\n Image resizedImageFF=null;\n Image resizedImageT=null;\n Image resizedImageTP=null;\n Image resizedImageTF=null;\n Image resizedImageB=null;\n Image resizedImageBP=null;\n Image resizedImageBF=null;\n Image resizedImageR=null;\n Image resizedImageRP=null;\n Image resizedImageRF=null;\n try {\n resizedImageF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlight.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageFP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlightP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageFF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonFlightF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageT =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrain.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageTP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrainP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageTF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonTrainF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageB =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBus.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageBP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBusP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageBF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonBusF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n resizedImageR =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoom.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n /*resizedImageRP =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoomP.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);*/\n resizedImageRF =\n ImageIO.read(new File(PATH_TO_FOLDER+\"guiResourses\\\\buttonRoomF.jpg\"))\n .getScaledInstance(900,500, Image.SCALE_DEFAULT);\n } catch (IOException e) {\n e.printStackTrace();\n }\n flightButton.setFocusPainted(false);\n flightButton.setRolloverEnabled(true);\n flightButton.setRolloverIcon(new ImageIcon(resizedImageFF));\n flightButton.setIcon(new ImageIcon(resizedImageF));\n flightButton.setPressedIcon(new ImageIcon(resizedImageFP));\n\n trainButton.setFocusPainted(false);\n trainButton.setRolloverEnabled(true);\n trainButton.setRolloverIcon(new ImageIcon(resizedImageTF));\n trainButton.setIcon(new ImageIcon(resizedImageT));\n trainButton.setPressedIcon(new ImageIcon(resizedImageTF));\n busButton.setFocusPainted(false);\n busButton.setRolloverEnabled(true);\n busButton.setRolloverIcon(new ImageIcon(resizedImageBF));\n busButton.setIcon(new ImageIcon(resizedImageB));\n busButton.setPressedIcon(new ImageIcon(resizedImageBF));\n roomButton.setFocusPainted(false);\n roomButton.setRolloverEnabled(true);\n roomButton.setRolloverIcon(new ImageIcon(resizedImageRF));\n roomButton.setIcon(new ImageIcon(resizedImageR));\n roomButton.setPressedIcon(new ImageIcon(resizedImageRF));\n }", "public abstract ImageIcon getButtonIcon();", "private void createButtons() {\n\t\tfor (int x = 0; x < buttons.length; x++)\n\t\t\tfor (int y = 0; y < buttons[x].length; y++) {\n\t\t\t\tif ((x % 2 == 0 && y % 2 == 0) || (x % 2 == 1 && y % 2 == 1))\n\t\t\t\t\tbuttons[x][y] = new DarkButton();\n\t\t\t\telse\n\t\t\t\t\tbuttons[x][y] = new LightButton();\n\n\t\t\t\tbuttonListener(x, y);\n\t\t\t}\n\t\t\t\n\t\t\tinitButtonIcons();\n\t}", "private ButtonJPanel(){\n GridLayout layout = new GridLayout(0, 1);//creates a grid layout with 1 column and unlimited rows, for the buttons\n setLayout(layout);//sets the JPanel layout\n layout.setVgap(5);//sets the vertical gap between the buttons\n setBackground(Color.WHITE);//sets the color of the panel to WHITE\n \n fillrecimg = new ImageIcon(\"src/fillrec.png\");//assigns a png image to the ImageIcon\n fillovalimg = new ImageIcon(\"src/filloval.png\");\n emptyrecimg = new ImageIcon(\"src/emptyrec.png\");\n emptyovalimg = new ImageIcon(\"src/emptyoval.png\");\n linedrawimg = new ImageIcon(\"src/linedraw.png\");\n \n clear = new JButton(\"Clear\");//initializes the buttons, either with text or an icon\n (fillrec = new JButton(fillrecimg)).setActionCommand(\"Filled Rectangle\");//icon buttons are assigned a string ActionCommand\n (filloval = new JButton(fillovalimg)).setActionCommand(\"Filled Oval\");\n (emptyrec = new JButton(emptyrecimg)).setActionCommand(\"Empty Rectangle\");\n (emptyoval = new JButton(emptyovalimg)).setActionCommand(\"Empty Oval\");\n (linedraw = new JButton(linedrawimg)).setActionCommand(\"Line Drawing\");\n opencolor = new JButton(\"Color Chooser\");\n \n JButton[] buttons = {clear, fillrec, filloval, emptyrec, emptyoval, linedraw, opencolor};//an array of all the buttons\n \n for(JButton button : buttons){//for each button...\n button.addActionListener(this);//add a listener\n add(button);//add the button to the panel\n button.setOpaque(true);//make the color visable\n button.setBackground(Color.BLACK);//set background to black\n button.setFont(new Font(Font.DIALOG, Font.PLAIN, 13));//sets the font, style, and size\n }\n }", "private void generateButtonIcons(JToolButton button, BufferedImage image) {\n \n // set up the scaling transform\n AffineTransform at = AffineTransform.getScaleInstance(\n (double)iconSize.width/image.getWidth(),\n (double)iconSize.height/image.getHeight());\n\n // create the gradient\n GradientPaint gradient = new GradientPaint(\n 0, 0, backgroundColor, 0, iconSize.height, selectedColor, true);\n \n //\n // set up the inactive icon\n //\n BufferedImage buffered_image =\n new BufferedImage(iconSize.width, iconSize.height, BufferedImage.TYPE_INT_ARGB);\n Graphics2D g2 = buffered_image.createGraphics();\n g2.setPaint(gradient);\n g2.fillRect(0, 0, iconSize.width, iconSize.height);\n g2.setPaint(Color.BLACK); \n g2.drawRenderedImage(image, at);\n \n button.setIcon(new ImageIcon(buffered_image));\n\n //\n // set up the highlighted icon\n // \n buffered_image =\n new BufferedImage(iconSize.width, iconSize.height, BufferedImage.TYPE_INT_ARGB);\n g2 = buffered_image.createGraphics();\n g2.setPaint(gradient);\n g2.fillRect(0, 0, iconSize.width, iconSize.height);\n g2.setPaint(Color.BLACK); \n g2.drawRenderedImage(image, at);\n g2.setColor(highlightColor);\n g2.setStroke(new BasicStroke(2));\n g2.drawRect(1, 1, iconSize.width - 2, iconSize.height - 2);\n button.setRolloverIcon(new ImageIcon(buffered_image));\n \n }", "private void beautifyButtons() {\n ImageIcon todayIcon = new ImageIcon(getClass().getResource(\"/images/today.png\"));\n today.setIcon(todayIcon);\n today.setFont(new Font(Font.DIALOG, Font.PLAIN, 12));\n today.setMaximumSize(mediumButton);\n today.setIconTextGap(ICON_GAP);\n today.setAlignmentX(CENTER_ALIGNMENT);\n\n //adding icon and attempting to beautify the \"<\" button\n ImageIcon leftIcon = new ImageIcon(getClass().getResource(\"/images/left.png\"));\n left.setIcon(leftIcon);\n left.setFont(new Font(Font.DIALOG, Font.PLAIN, 14));\n left.setMaximumSize(smallButton);\n\n //adding icon and attempting to beautify the \">\" button\n ImageIcon rightIcon = new ImageIcon(getClass().getResource(\"/images/right.png\"));\n right.setIcon(rightIcon);\n right.setFont(new Font(Font.DIALOG, Font.PLAIN, 14));\n right.setMaximumSize(smallButton);\n\n //adding icon and attempting to beautify the new event button\n ImageIcon newIcon = new ImageIcon(getClass().getResource(\"/images/new.jpg\"));\n newEvent.setIcon(newIcon);\n newEvent.setFont(new Font(Font.DIALOG, Font.PLAIN, 12));\n newEvent.setMaximumSize(mediumButton);\n newEvent.setIconTextGap(ICON_GAP);\n newEvent.setAlignmentX(CENTER_ALIGNMENT);\n }", "private JButton getJButtonVisualizar() {\r\n\t\tif (jButtonVisualizar == null) {\r\n\t\t\tjButtonVisualizar = new JButton();\r\n\t\t\tjButtonVisualizar.setText(\"Visualizar\");\r\n\t\t\tjButtonVisualizar.setIcon(new ImageIcon(getClass().getResource(\"img\" + File.separator + \"run.gif\")));\r\n\t\t\tjButtonVisualizar.addActionListener(this);\r\n\t\t}\r\n\t\treturn jButtonVisualizar;\r\n\t}", "private void botonImagen() {\n ImageIcon guardar = new ImageIcon(getClass().getResource(\"/Img/saveIcon.png\"));\n btnGuardar.setIcon(new ImageIcon(guardar.getImage().getScaledInstance(btnGuardar.getWidth(), btnGuardar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon eliminar = new ImageIcon(\"src/Img/Delete.png\");\n ImageIcon eliminar = new ImageIcon(getClass().getResource(\"/Img/Delete.png\"));\n btnEliminar.setIcon(new ImageIcon(eliminar.getImage().getScaledInstance(btnEliminar.getWidth(), btnEliminar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon regresar = new ImageIcon(\"src/Img/arrow.png\");\n ImageIcon regresar = new ImageIcon(getClass().getResource(\"/Img/arrow.png\"));\n btnRegresar.setIcon(new ImageIcon(regresar.getImage().getScaledInstance(btnRegresar.getWidth(), btnRegresar.getHeight(), Image.SCALE_SMOOTH)));\n \n //ImageIcon cancelar = new ImageIcon(\"src/Img/deleteIcon.png\");\n ImageIcon cancelar = new ImageIcon(getClass().getResource(\"/Img/deleteIcon.png\"));\n btnCancelar.setIcon(new ImageIcon(cancelar.getImage().getScaledInstance(btnCancelar.getWidth(), btnCancelar.getHeight(), Image.SCALE_SMOOTH)));\n\n }", "private void setupButtons() {\n final ButtonGroup btngrp = new ButtonGroup();\n\n for (final AbstractAction actn : myToolActions) {\n final JToggleButton btn = new JToggleButton(actn);\n btn.addActionListener(actn);\n btngrp.add(btn);\n add(btn);\n }\n\n btngrp.clearSelection();\n btngrp.getElements().nextElement().setSelected(true);\n\n }", "public void createButtons() {\n\t\tescapeBackground = new GRect(200, 150, 300, 400);\n\t\tescapeBackground.setFilled(true);\n\t\tescapeBackground.setColor(Color.gray);\n\n\t\tbutton1 = new GButton(\"Return to Game\", 250, 175, 200, 50, Color.cyan);\n\t\tbutton3 = new GButton(\"Exit Level\", 250, 330, 200, 50, Color.cyan);\n\t\tbutton4 = new GButton(\"Return to Menu\", 250, 475, 200, 50, Color.cyan);\n\n\t\tescapeButtons.add(button1);\n\t\tescapeButtons.add(button3);\n\t\tescapeButtons.add(button4);\n\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t {\n\t\tint btnId = Integer.parseInt(e.getActionCommand());\n\n\t\tJButton bttn = btn[btnId];\n\n\t\tif (bttn.getIcon().equals(icons[6]))\n\t\t{\n\t\t bttn.setIcon(icons[pairs[btnId]]);\n\t\t} else\n\t\t{\n\t\t bttn.setIcon(icons[6]);\n\t\t}\n\t }", "private void initButtonIcons() {\n\t\t\n\t\tbuttons[0][0].setIcon(Icon.returnIcon(\"white_rook\"));\n\t\tbuttons[1][0].setIcon(Icon.returnIcon(\"white_knight\"));\n\t\tbuttons[2][0].setIcon(Icon.returnIcon(\"white_bishop\"));\n\t\tbuttons[3][0].setIcon(Icon.returnIcon(\"white_queen\"));\n\t\tbuttons[4][0].setIcon(Icon.returnIcon(\"white_king\"));\n\t\tbuttons[5][0].setIcon(Icon.returnIcon(\"white_bishop\"));\n\t\tbuttons[6][0].setIcon(Icon.returnIcon(\"white_knight\"));\n\t\tbuttons[7][0].setIcon(Icon.returnIcon(\"white_rook\"));\n\t\t\n\t\tfor (int x = 0; x <= 7; x++)\n\t\t\tfor (int y = 2; y < 6; y++)\n\t\t\t\tbuttons[x][y].setIcon(null);\n\t\t\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\tbuttons[i][1].setIcon(Icon.returnIcon(\"white_pawn\"));\n\t\t\tbuttons[i][6].setIcon(Icon.returnIcon(\"black_pawn\"));\n\t\t}\n\t\t\n\t\tbuttons[0][7].setIcon(Icon.returnIcon(\"black_rook\"));\n\t\tbuttons[1][7].setIcon(Icon.returnIcon(\"black_knight\"));\n\t\tbuttons[2][7].setIcon(Icon.returnIcon(\"black_bishop\"));\n\t\tbuttons[3][7].setIcon(Icon.returnIcon(\"black_queen\"));\n\t\tbuttons[4][7].setIcon(Icon.returnIcon(\"black_king\"));\n\t\tbuttons[5][7].setIcon(Icon.returnIcon(\"black_bishop\"));\n\t\tbuttons[6][7].setIcon(Icon.returnIcon(\"black_knight\"));\n\t\tbuttons[7][7].setIcon(Icon.returnIcon(\"black_rook\"));\n\t}", "JButton getProcessImageButton() {\n return processImageButton;\n }", "private ImageButton generateItemButton(Texture image) {\n\t\tTextureRegion imgRegion = new TextureRegion(image);\n\t\tTextureRegionDrawable imgDraw = new TextureRegionDrawable(imgRegion);\n\t\treturn new ImageButton(imgDraw);\n\t}", "private void iterateOverButtons(){\n int columnRows = 4;\n integerButtons = new Button[MAX_BUTTONS];\n for (int i = 0; i < integerButtons.length; ++i) {\n integerButtons[i] = new Button(buttonText[i]);\n integerButtons[i].setId(\"buttons\");\n integerButtons[i].setPrefSize(60, 80);\n gridPane.add(integerButtons[i], i % columnRows , i / columnRows);\n }\n }", "public List<ArticalButtons> getArticalButtons(List<Artical> articals) {\n\t\t\tList<ArticalButtons> btns = new ArrayList<ArticalButtons>();\n\t\t\tif(articals!=null) {\n\t\t\tfor(Artical artical : articals) {\n\t\t\t\t\n\t\t\t\tArticalButtons bt = new ArticalButtons();\n\t\t\t\t\tbt.setButtonCode(String.valueOf(artical.getCode()));\n\t\t\t\t\tbt.setDisplayName(artical.getDisplay_name());\n\t\t\t\t\tbt.setFullName(artical.getName());\n\t\t\t\t\tbt.setActive(artical.isActive());\n\t\t\t\t\t//bt.addEventHandler(ActionEvent.ACTION, event);\t\t\n\t\t\t\tbtns.add(bt);\n\t\t\t\t\t\t\n\t\t\t}\t\t\t\n\t\t}\n\t\t\treturn btns;\n\t\t}", "private void initComponents() {\r\n String textoBotones[]={\"Listado Almacen\", \r\n \"Listado por producto\",\"Pedidos por almacén\"};\r\n \r\n botones=new JButton[textoBotones.length];\r\n //Utilizo todo el fondo del JFrame\r\n contenedor=(ImagePanel) this.getContentPane();\r\n //Inicializo un layout\r\n contenedor.setLayout(new GridLayout(textoBotones.length, 1, 5, 5)); \r\n //Inicializo los objetos\r\n for (int x=0;x<textoBotones.length;x++) {\r\n botones[x]=new JButton();\r\n botones[x].setText(textoBotones[x]);\r\n botones[x].setActionCommand(Integer.toString(x));\r\n botones[x].addActionListener(this); \r\n contenedor.add(botones[x]);\r\n }\r\n }", "@Override\n\tprotected void createCompButtons() {\n\t\tbuildCompButtons();\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jPanel1 = new javax.swing.JPanel(){\n\n public void paintComponent(Graphics g){\n ImageIcon im=new ImageIcon(\"Influenza.jpg\");\n Image i=im.getImage();\n\n g.drawImage(i, 0, 0, this.getSize().width,this.getSize().height,this);\n\n }\n\n };\n jB2 = new javax.swing.JToggleButton();\n jB3 = new javax.swing.JToggleButton();\n jB4 = new javax.swing.JToggleButton();\n jB5 = new javax.swing.JToggleButton();\n jB1 = new javax.swing.JToggleButton();\n jB6 = new javax.swing.JToggleButton();\n jB7 = new javax.swing.JToggleButton();\n jB9 = new javax.swing.JToggleButton();\n jB8 = new javax.swing.JToggleButton();\n jB18 = new javax.swing.JToggleButton();\n jB27 = new javax.swing.JToggleButton();\n jB17 = new javax.swing.JToggleButton();\n jB16 = new javax.swing.JToggleButton();\n jB14 = new javax.swing.JToggleButton();\n jB13 = new javax.swing.JToggleButton();\n jB12 = new javax.swing.JToggleButton();\n jB11 = new javax.swing.JToggleButton();\n jB10 = new javax.swing.JToggleButton();\n jB21 = new javax.swing.JToggleButton();\n jB22 = new javax.swing.JToggleButton();\n jB26 = new javax.swing.JToggleButton();\n jB15 = new javax.swing.JToggleButton();\n jB24 = new javax.swing.JToggleButton();\n jB23 = new javax.swing.JToggleButton();\n jB25 = new javax.swing.JToggleButton();\n jB20 = new javax.swing.JToggleButton();\n jB19 = new javax.swing.JToggleButton();\n jB32 = new javax.swing.JToggleButton();\n jB33 = new javax.swing.JToggleButton();\n jB34 = new javax.swing.JToggleButton();\n jB35 = new javax.swing.JToggleButton();\n jB36 = new javax.swing.JToggleButton();\n jB31 = new javax.swing.JToggleButton();\n jB30 = new javax.swing.JToggleButton();\n jB29 = new javax.swing.JToggleButton();\n jB28 = new javax.swing.JToggleButton();\n jB45 = new javax.swing.JToggleButton();\n jB44 = new javax.swing.JToggleButton();\n jB43 = new javax.swing.JToggleButton();\n jB42 = new javax.swing.JToggleButton();\n jB62 = new javax.swing.JToggleButton();\n jB40 = new javax.swing.JToggleButton();\n jB39 = new javax.swing.JToggleButton();\n jB38 = new javax.swing.JToggleButton();\n jB37 = new javax.swing.JToggleButton();\n jB46 = new javax.swing.JToggleButton();\n jB47 = new javax.swing.JToggleButton();\n jB48 = new javax.swing.JToggleButton();\n jB49 = new javax.swing.JToggleButton();\n jB50 = new javax.swing.JToggleButton();\n jB51 = new javax.swing.JToggleButton();\n jB52 = new javax.swing.JToggleButton();\n jB53 = new javax.swing.JToggleButton();\n jB54 = new javax.swing.JToggleButton();\n jB63 = new javax.swing.JToggleButton();\n jB41 = new javax.swing.JToggleButton();\n jB61 = new javax.swing.JToggleButton();\n jB60 = new javax.swing.JToggleButton();\n jB59 = new javax.swing.JToggleButton();\n jB58 = new javax.swing.JToggleButton();\n jB57 = new javax.swing.JToggleButton();\n jB56 = new javax.swing.JToggleButton();\n jB55 = new javax.swing.JToggleButton();\n jB72 = new javax.swing.JToggleButton();\n jB71 = new javax.swing.JToggleButton();\n jB70 = new javax.swing.JToggleButton();\n jB69 = new javax.swing.JToggleButton();\n jB68 = new javax.swing.JToggleButton();\n jB67 = new javax.swing.JToggleButton();\n jB66 = new javax.swing.JToggleButton();\n jB65 = new javax.swing.JToggleButton();\n jB64 = new javax.swing.JToggleButton();\n jB74 = new javax.swing.JToggleButton();\n jB75 = new javax.swing.JToggleButton();\n jB76 = new javax.swing.JToggleButton();\n jB73 = new javax.swing.JToggleButton();\n jB78 = new javax.swing.JToggleButton();\n jB79 = new javax.swing.JToggleButton();\n jB80 = new javax.swing.JToggleButton();\n jB81 = new javax.swing.JToggleButton();\n jB77 = new javax.swing.JToggleButton();\n jLabel4 = new javax.swing.JLabel();\n time = new javax.swing.JTextField();\n jLabel1 = new javax.swing.JLabel();\n bombField = new javax.swing.JTextField();\n usernamePlays = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n jMenuItem1 = new javax.swing.JMenuItem();\n jMenuItem2 = new javax.swing.JMenuItem();\n jMenuItem3 = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setSize(new java.awt.Dimension(700, 700));\n getContentPane().setLayout(null);\n\n jB3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jB1ActionPerformed(evt);\n }\n });\n\n jB4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jB1ActionPerformed(evt);\n }\n });\n\n jB5.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jB1ActionPerformed(evt);\n }\n });\n\n jB6.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jB1ActionPerformed(evt);\n }\n });\n\n jB7.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jB1ActionPerformed(evt);\n }\n });\n\n jB9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jB1ActionPerformed(evt);\n }\n });\n\n jB8.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jB1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB10, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB11, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB12, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB13, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB19, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB20, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB21, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB22, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB23, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB24, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB14, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jB15, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addComponent(jB16, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB17, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB18, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB25, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(173, 173, 173))))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jB64, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB73, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB65, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB66, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB67, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB68, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jB69, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(6, 6, 6)\n .addComponent(jB70, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB71, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB72, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB74, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB75, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB76, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB77, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jB78, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB79, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB80, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB81, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(181, 181, 181))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB55, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB56, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB57, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB58, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB59, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB60, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB61, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB62, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB63, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB37, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB38, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB39, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB40, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB41, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB42, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB43, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB44, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB45, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB1, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB2, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB3, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB4, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB5, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB6, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB7, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB8, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB9, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB46, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB47, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB48, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB49, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB50, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB51, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB52, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB53, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB54, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB28, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB29, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB30, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB31, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB32, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB33, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB34, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB26, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB27, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jB35, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jB36, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)))))\n .addGap(169, 169, 169)))))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jB8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB9, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jB11, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB10, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB12, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB13, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB14, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB16, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB17, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB18, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB15, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(7, 7, 7)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jB19, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB20, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB21, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB22, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB23, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB24, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB25, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB26, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB27, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jB28, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB29, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB30, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB31, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB36, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB35, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB34, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB33, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB32, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jB37, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB38, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB39, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB40, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB42, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB43, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB44, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB45, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB41, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jB46, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB47, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB48, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB49, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB50, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB51, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB52, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB53, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB54, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jB55, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB56, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB57, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB58, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB59, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB60, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB61, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB62, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB63, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jB64, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB65, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB66, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB67, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB68, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB69, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB70, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB71, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB72, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jB74, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB75, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB76, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB73, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB79, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB78, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB80, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB81, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jB77, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(20, 20, 20))\n );\n\n getContentPane().add(jPanel1);\n jPanel1.setBounds(10, 60, 470, 470);\n\n jLabel4.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Dell\\\\Documents\\\\NetBeansProjects\\\\minesweeper\\\\src\\\\minesweeper\\\\bomb.gif\")); // NOI18N\n getContentPane().add(jLabel4);\n jLabel4.setBounds(530, 140, 70, 70);\n\n time.setEditable(false);\n time.setFont(new java.awt.Font(\"Tempus Sans ITC\", 1, 18)); // NOI18N\n time.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n time.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusLost(java.awt.event.FocusEvent evt) {\n timeFocusLost(evt);\n }\n });\n getContentPane().add(time);\n time.setBounds(510, 390, 110, 40);\n\n jLabel1.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Dell\\\\Documents\\\\NetBeansProjects\\\\minesweeper\\\\src\\\\minesweeper\\\\clock.gif\")); // NOI18N\n getContentPane().add(jLabel1);\n jLabel1.setBounds(530, 300, 70, 60);\n\n bombField.setFont(new java.awt.Font(\"Tempus Sans ITC\", 1, 18)); // NOI18N\n bombField.setHorizontalAlignment(javax.swing.JTextField.CENTER);\n getContentPane().add(bombField);\n bombField.setBounds(510, 230, 110, 40);\n\n usernamePlays.setFont(new java.awt.Font(\"Tempus Sans ITC\", 1, 24)); // NOI18N\n usernamePlays.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n getContentPane().add(usernamePlays);\n usernamePlays.setBounds(490, 80, 160, 50);\n\n jLabel2.setFont(new java.awt.Font(\"Tempus Sans ITC\", 1, 24)); // NOI18N\n jLabel2.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Dell\\\\Documents\\\\NetBeansProjects\\\\minesweeper\\\\src\\\\minesweeper\\\\gameTitle.png\")); // NOI18N\n getContentPane().add(jLabel2);\n jLabel2.setBounds(20, 0, 360, 60);\n\n jLabel3.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Dell\\\\Documents\\\\NetBeansProjects\\\\minesweeper\\\\src\\\\minesweeper\\\\Blocks-1s-42px.gif\")); // NOI18N\n getContentPane().add(jLabel3);\n jLabel3.setBounds(370, 20, 50, 30);\n\n jLabel5.setIcon(new javax.swing.ImageIcon(\"C:\\\\Users\\\\Dell\\\\Documents\\\\NetBeansProjects\\\\minesweeper\\\\Poncho.jpg\")); // NOI18N\n getContentPane().add(jLabel5);\n jLabel5.setBounds(-36, -40, 800, 640);\n\n jMenu1.setText(\"Game\");\n\n jMenuItem1.setText(\"New Game\");\n jMenuItem1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem1ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem1);\n\n jMenuItem2.setText(\"Score Table\");\n jMenuItem2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem2ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem2);\n\n jMenuItem3.setText(\"Exit\");\n jMenuItem3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItem3ActionPerformed(evt);\n }\n });\n jMenu1.add(jMenuItem3);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Help\");\n jMenu2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mousePressed(java.awt.event.MouseEvent evt) {\n jMenu2MousePressed(evt);\n }\n });\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n pack();\n }", "public void createButtons() {\n\t\tbutton1 = new JButton(\"Button1\");\n\t\tbutton2 = new JButton(\"Button2\");\n\t\tbutton3 = new JButton(\"Button3\");\n\t\tbutton4 = new JButton(\"Button4\");\n\t\tbutton5 = new JButton(\"Button5\");\n\t}", "@Override\n\tprotected void loadButtons() {\n\t\tList<Button> buttons = new ArrayList<>();\n\t\tfinal int square_size = 100;\n\t\tfinal int seperator_size = 20;\n\t\tfinal int numButtons = 2;\n\t\tint y = (getHeight() - 100) / 2;\n\t\tint x = (getWidth() - (square_size * numButtons) - (seperator_size * (numButtons - 1))) / 2;\n\t\tint sep = square_size + seperator_size;\n\t\t// Paint button.\n\t\ttry {\n\t\t\tbuttons.add(new Button(getImage(IconHandler.path_paint), \"Toggle paint\", x, y,\n\t\t\t\t\tsquare_size, square_size, new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tsetUsingTextures(!isUsingTextures());\n\t\t\t\t\t\t\trepaint();\n\t\t\t\t\t\t}\n\t\t\t\t\t}));\n\t\t\tbuttons.add(new Button(getImage(IconHandler.path_fullscreen), \"Toggle full-screen\", x + sep, y,\n\t\t\t\t\tsquare_size, square_size, new Runnable() {\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\t\tgetFrame().toggleArrangeSide();\n\t\t\t\t\t\t}\n\t\t\t\t\t}));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tsetButtons(buttons);\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\n\t\tvv = new JPanel(new GridLayout(100, 100, 100, 100));\n\t\tfinal JButton[][] squares = new JButton[8][8];\n\t\tff = new JFrame(\"New Game\");\n\n\t\t// image for buttons\n\t\tImageIcon icon = new ImageIcon(\"White.png\");\n\t\tImageIcon icon2 = new ImageIcon(\"Black.png\");\n\t\t// creating instance of JButton\n\t\t// 2 for loop for row and column of jButtons\n\t\tfor (int i = 0; i < squares.length; i += 1) {\n\t\t\tfor (int j = 0; j < squares[i].length; j += 1) {\n\t\t\t\tActionEvent actionEvent = null;\n\t\t\t\tJButton b1 = new JButton();\n\t\t\t\tint i1 = i;\n\t\t\t\tint j1 = j;\n\t\t\t\tint i2 = i;\n\t\t\t\tint j2 = j;\n\n\t\t\t\tb1.setSize(100, 100);\n\n\t\t\t\tint x = i * 100;\n\t\t\t\tint y = j * 100;\n\t\t\t\t// set Locations of buttons for game\n\t\t\t\tb1.setLocation(x, y);\n\t\t\t\tsquares[i][j] = b1;\n\n\t\t\t\tint t = i + j;\n\t\t\t\t// place for white buttons,if i+j%2=0 its white\n\t\t\t\tif (t % 2 == 0) {\n\n\t\t\t\t\tsquares[i][j].setBackground(Color.white);\n\t\t\t\t\tvv.add(squares[i][j]);\n\t\t\t\t\t// place for black buttons,if i+j%2!=0 its black\n\t\t\t\t} else {\n\n\t\t\t\t\tsquares[i][j].setBackground(Color.black);\n\t\t\t\t\tvv.add(squares[i][j]);\n\t\t\t\t}\n\n\t\t\t\tif ((i >= 4 && j <= 3) || (i <= 3 && j >= 4)) {\n\t\t\t\t\t// set icon for buttons that we want use (black)\n\t\t\t\t} else if (i <= 3 && j <= 3 - i) {\n\n\t\t\t\t\tsquares[i][j].setIcon(icon2);\n\n\t\t\t\t\tsquares[i2][j2].addActionListener(new ActionListener() {\n\n\t\t\t\t\t\tJButton pieceToMoveButton = null;\n\t\t\t\t\t\t//actionPerformed for moving icon2 buttons\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\t\t\t((JButton) e.getSource()).setIcon(null);\n\n\t\t\t\t\t\t\tif (pieceToMoveButton == null) // if this button press is selecting the piece to move\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// save the button used in piece selection for later use\n\t\t\t\t\t\t\t\tpieceToMoveButton = squares[i2][j2];\n\n\t\t\t\t\t\t\t} else // if this button press is selecting where to move\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// move the image to the new button (the one just pressed)\n\n\t\t\t\t\t\t\t\tsquares[i2][j2].setIcon(icon2);\n\n\t\t\t\t\t\t\t\tpieceToMoveButton = null; // makes the next button press a piece selection\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\tff.add(squares[i2][j2]);\n\n\t\t\t\t} else {\n\n\t\t\t\t}\n\n\t\t\t\t// set icon for buttons that we want use (white)\n\t\t\t\tif (i >= 4 && j >= 11 - i) {\n\n\t\t\t\t\tsquares[i][j].setIcon(icon);\n\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t\t//actionPerformed for moving icon buttons\n\t\t\t\tif (i >= 4 && j >= 11 - i) {\n\n\t\t\t\t\tsquares[i1][j1].addActionListener(new ActionListener() {\n\n\t\t\t\t\t\tJButton pieceToMoveButton = null;\n\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\t\t\t\t((JButton) e.getSource()).setIcon(null);\n\n\t\t\t\t\t\t\tif (pieceToMoveButton == null) // if this button press is selecting the piece to move\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// save the button used in piece selection for later use\n\t\t\t\t\t\t\t\tpieceToMoveButton = squares[i1][j1];\n\n\t\t\t\t\t\t\t\t// ((JButton)e.getSource()).setIcon(null);\n\t\t\t\t\t\t\t} else // if this button press is selecting where to move\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\t// move the image to the new button (the one just pressed)\n\n\t\t\t\t\t\t\t\tsquares[i1][j1].setIcon(icon);\n\n\t\t\t\t\t\t\t\tpieceToMoveButton = null; // makes the next button press a piece selection\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t});\n\t\t\t\t\tff.add(squares[i1][j1]);\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}\n\n\t\tff.setSize(900, 900);// 400 width and 500 height\n\t\tff.setLayout(null);// using no layout managers\n\t\tff.setVisible(true);// making the frame visible\n\t\tvv.setSize(900, 900);// 400 width and 500 height\n\t\tvv.setLayout(null);// using no layout managers\n\t\tvv.setVisible(true);// making the frame visible\n\t\tff.add(vv);\n\t\tff.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t}", "private void updateTileButtons() {\n Board board = boardManager.getBoard();\n int nextPos = 0;\n for (Button b : tileButtons) {\n int row = nextPos / Board.NUM_ROWS;\n int col = nextPos % Board.NUM_COLS;\n if (bitmapList == null) {\n b.setBackgroundResource(board.getTile(row, col).getBackground());\n } else if (board.getTile(row, col).getId() != Board.NUM_COLS * Board.NUM_ROWS) {\n BitmapDrawable d = new BitmapDrawable(getResources(), bitmapList.get(board.getTile(row, col).getId()));\n b.setBackground(d);\n } else {\n b.setBackgroundResource(R.drawable.tile_grey);\n }\n nextPos++;\n }\n }", "private void createButton() {\n this.setIcon(images.getImageIcon(fileName + \"-button\"));\n this.setActionCommand(command);\n this.setPreferredSize(new Dimension(width, height));\n this.setMaximumSize(new Dimension(width, height));\n }", "private void makeFrontGUIButtons(){\n Dimension preferred = getPreferredSize();\n\n optionsButton = new JButton();\n makeFrontButton(optionsButton, \"optionsIcon\", \"showOptions\", new Rectangle((int) preferred.getWidth() - 60, (int) preferred.getHeight() - (int) (preferred.getHeight() * 0.98), 39, 37));\n makeSearchButton();\n\n zoomInButton = new JButton();\n makeFrontButton(zoomInButton, \"plusIcon\", \"zoomIn\", new Rectangle((int) preferred.getWidth() - 60, (int) preferred.getHeight() - (int) preferred.getHeight() / 3 * 2, 39, 37));\n\n zoomOutButton = new JButton();\n makeFrontButton(zoomOutButton, \"minusIcon\", \"zoomOut\", new Rectangle((int) preferred.getWidth() - 60, (int) preferred.getHeight() - (int) (preferred.getHeight() / 3 * 2 + 45), 39, 37));\n\n makeShowRoutePanelButton();\n\n fullscreenButton = new JButton();\n makeFrontButton(fullscreenButton, \"fullscreenIcon\", \"fullscreen\", new Rectangle((int) preferred.getWidth() - 60, (int) (preferred.getHeight() - preferred.getHeight() / 3 * 2 + 100), 39, 37));\n\n mapTypeButton = new JButton();\n makeFrontButton(mapTypeButton, \"layerIcon\", \"mapType\", new Rectangle((int) preferred.getWidth() - 49, (int) (preferred.getHeight() - preferred.getHeight() / 3 * 2 - 45), 39, 37));\n makeCloseDirectionListPanel();\n }", "private JPanel createButtons()\r\n\t{\r\n\t\tJPanel buttons = new JPanel();\r\n\t\tbuttons.setLayout(new FlowLayout(FlowLayout.TRAILING));\r\n\r\n\r\n\t\tButton save = new Button(PrimeMain1.texts.getString(\"save\"));\r\n\t\tsave.addActionListener(this);\r\n\t\tsave.setActionCommand(\"save\");\r\n\r\n\t\tButton cancel = new Button(PrimeMain1.texts.getString(\"cancel\"));\r\n\t\tcancel.addActionListener(this);\r\n\t\tcancel.setActionCommand(\"cancel\");\r\n\r\n\r\n\t\tbuttons.add(save);\r\n\t\tbuttons.add(cancel);\r\n\r\n\t\treturn buttons;\r\n\t}", "protected JButton makeImageButton(String imageName, String action, String tooltip, String alt) {\n String imgLocation = \"/Rewind24.gif\";\n URL imageURL = Menu.class.getResource(\"/home/jon/Desktop/boner.desktop\");\n\n\n\n JButton button = new JButton();\n // button.setAction(action);\n button.setToolTipText(tooltip);\n // button.addActionListener(this);\n\n button.setIcon(new ImageIcon(imageURL, alt));\n\n return button;\n }", "public void createGameButtons() {\n \tcreateGameButton(myResources.getString(\"startcommand\"), 1, GAME_BUTTON_XLOCATION, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"stopcommand\"), 0, GAME_BUTTON_XLOCATION * 3, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"speedup\"), SPEED_INCREASE, GAME_BUTTON_XLOCATION*5, GAME_BUTTON_YLOCATION);\n \tcreateGameButton(myResources.getString(\"slowdown\"), 1/SPEED_INCREASE, GAME_BUTTON_XLOCATION*7, GAME_BUTTON_YLOCATION);\n }", "public void createButtonGrid() {\n\t\tbuttonPanel.setOpaque(false);\n\t\t\n\t\t// designs array of buttons\n\t\tfor (int counter = 1; counter <= 20; counter++) {\n\t\t\tbuttonArray[counter] = new JButton();\n\t\t\tbuttonArray[counter].setOpaque(false);\n\t\t\tbuttonArray[counter].setVisible(true);\n\t\t\tbuttonArray[counter].setBorderPainted(false);\n\t\t\tbuttonArray[counter].setHorizontalTextPosition(JButton.CENTER);\n\t\t\tbuttonArray[counter].setVerticalTextPosition(SwingConstants.CENTER);\n\t\t\tbuttonArray[counter].setFont(new Font(\"Courier\", Font.PLAIN, 15));\n\t\t\tbuttonArray[counter].setText(\"<html><font color = white>\" + Integer.toString(counter) + \"</font></html>\");\n\t\t\t// add action listener to each button\n\t\t\tbuttonArray[counter].addActionListener(eventsMain);\n\t\t\t// add each button to the container\n\t\t\tbuttonPanel.add(buttonArray[counter]);\n\t\t}\n\t\t\n\t\t// set colour for ach row of buttons\n\t\tfor (int counter = 1; counter <= 20; counter++) {\n\t\t\tif (counter >= 1 && counter < 6) {\n\t\t\t\tbuttonArray[counter].setIcon(btnBlue);\n\t\t\t} else if (counter > 5 && counter < 11) {\n\t\t\t\tbuttonArray[counter].setIcon(btnGreen);\n\t\t\t} else if (counter > 10 && counter < 16) {\n\t\t\t\tbuttonArray[counter].setIcon(btnRed);\n\t\t\t} else if (counter > 15 && counter < 21) {\n\t\t\t\tbuttonArray[counter].setIcon(btnGray);\n\t\t\t}\n\t\t}\n\t}", "protected void drawButtons() {\n\t\tint spaceX = 50;\n\t\tint spaceY = 500;\t\n\t\t\n\t\tint aux = 1;\n\t\tfor(int i = 65; i < 91; i++) {\n\n\t\t\tLetterButton button = new LetterButton((char) i, (25 + spaceX ) * aux, spaceY);\n\t\t\taux++;\n\t\t\tif(aux == 14) {\n\t\t\t\tspaceY += 25 + 50;\n\t\t\t\taux = 1;\n\t\t\t}\n\t\t\tthis.add(button);\n\t\t}\n\t\t\n\t}", "private Map<Integer, Button> getButtons(){\r\n\t\tMap<Integer, Button> buttons = new HashMap<Integer, Button>();\r\n\r\n\t\tButton toLeftBt = new Button(\"&lt;\");\r\n\t\tbuttons.put(0, toLeftBt);\r\n\t\tButton toRightBt = new Button(\"&gt;\");\r\n\t\tbuttons.put(2, toRightBt);\r\n\t\tfinal Button playBt = new Button(\"||\");\r\n\t\tbuttons.put(1, playBt);\r\n\t\t\r\n\t\ttoRightBt.addClickListener(new ClickListener(){\r\n\t\t\tpublic void onClick(Widget sender) {\r\n\t\t\t\tdisplayNext();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttoLeftBt.addClickListener(new ClickListener(){\r\n\t\t\tpublic void onClick(Widget sender) {\r\n\t\t\t\tdisplayPrevious();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tplayBt.addClickListener(new ClickListener(){\r\n\t\t\tpublic void onClick(Widget sender) {\r\n\t\t\t\tif(isActive){\r\n\t\t\t\t\tstopSlideshow();\r\n\t\t\t\t\tplayBt.setText(\"Go\");\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tstartSlideshow();\r\n\t\t\t\t\tplayBt.setText(\"||\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn buttons;\r\n\t}", "private void init_buttons(){\r\n /**\r\n * BOTON NUEVO\r\n */\r\n im_tool1.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n botonNuevo();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON EDITAR\r\n */\r\n im_tool2.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEditar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON GUARDAR\r\n */\r\n im_tool3.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonGuardar();\r\n }\r\n }\r\n }); \r\n /**\r\n * BOTON ELIMINAR\r\n */\r\n im_tool4.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonEliminar();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON IMPRIMIR\r\n */\r\n im_tool5.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){ \r\n botonImprimir();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON REGRESAR\r\n */\r\n im_tool6.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n botonInicio();\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON POR ASIGNAR\r\n */\r\n im_tool7.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON NOTAS DE CREDITO\r\n */\r\n im_tool8.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON DEVOLUCION\r\n */\r\n im_tool9.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n //\r\n }\r\n }\r\n });\r\n /**\r\n * BOTON BUSCAR\r\n */\r\n im_tool12.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n switch (mouseEvent.getClickCount()){\r\n case 1:\r\n botonInicio();\r\n botonBuscar();\r\n break;\r\n case 2:\r\n Datos.setIdButton(2003041);\r\n Gui.getInstance().showBusqueda(\"Busqueda\"); \r\n break;\r\n }\r\n }\r\n });\r\n /**\r\n * SELECCION EN LA TABLA\r\n */\r\n tb_guias.setOnMouseClicked((MouseEvent mouseEvent) -> {\r\n if(mouseEvent.getButton().equals(MouseButton.PRIMARY)){\r\n if(mouseEvent.getClickCount() > 0){\r\n if ((tb_guias.getItems() != null) && (!tb_guias.getItems().isEmpty()))\r\n selectedRowGuide();\r\n }\r\n }\r\n }); \r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nroguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nroguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n Datos.setLog_cguias(new log_CGuias()); \r\n boolean boo = Ln.getInstance().check_log_CGuias_rela_caja(tf_nroguia.getText()); \r\n numGuias = 0;\r\n if(boo){\r\n Datos.setRep_log_cguias(Ln.getInstance().find_log_CGuias(tf_nroguia.getText(), \"\", \"ncaja\", Integer.parseInt(rows)));\r\n loadTable(Datos.getRep_log_cguias()); \r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de \" + ScreenName + \" NO existe!\", \"A\");\r\n tf_nroguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n /**\r\n * metodo para mostrar buscar el nro de guia\r\n * param: ENTER O TAB\r\n */\r\n tf_nrorguia.setOnKeyReleased((KeyEvent ke) -> {\r\n if (ke.getCode().equals(KeyCode.ENTER)){\r\n //Valida que el evento se haya generado en el campo de busqueda\r\n if(((Node)ke.getSource()).getId().equals(\"tf_nrorguia\")){\r\n //Solicita los datos y envia la Respuesta a imprimirse en la Pantalla\r\n boolean booa = true; \r\n if(booa){\r\n boolean booc = Ln.getInstance().check_log_CGuias_caja(tf_nrorguia.getText()); \r\n if(booc){\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n else{\r\n for (int i = 0; i < log_guide_guia.size(); i++) {\r\n if(tf_nrorguia.getText().equals(tb_guias.getItems().get(i).getGuias())){\r\n booa = false;\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n break;\r\n }\r\n } \r\n if(booa){\r\n log_Guide_rel_inv guide_carga = new log_Guide_rel_inv();\r\n\r\n List<Fxp_Archguid_gfc> data = \r\n Ln.getList_log_Archguid_gfc(Ln.getInstance().find_Archguid_gfc(tf_nrorguia.getText()));\r\n\r\n if (data.get(0).getStat_guia().equals(\"X\")\r\n || data.get(0).getStat_guia().equals(\"C\")){\r\n guide_carga.setNumorden(String.valueOf((log_guide_guia.size() + 1)));\r\n guide_carga.setGuias(tf_nrorguia.getText());\r\n guide_carga.setNumfact(data.get(0).getNumfact());\r\n guide_carga.setNumclie(data.get(0).getNumclie());\r\n\r\n if (data.get(0).getStat_guia().equals(\"A\")){\r\n if (tipoOperacion == 1)\r\n guide_carga.setStat_guia(null);\r\n else\r\n guide_carga.setStat_guia(data.get(0).getStat_guia());\r\n }\r\n else{\r\n guide_carga.setStat_guia(null);\r\n }\r\n \r\n \r\n log_guide_guia.add(guide_carga);\r\n\r\n loadTableGuide_guias();\r\n change_im_val(200, im_checkg); \r\n\r\n numFactCarga = numFactCarga + data.get(0).getNumfact();\r\n numClieCarga = numClieCarga + data.get(0).getNumclie();\r\n\r\n tf_nrorguia.setText(\"\");\r\n }else{\r\n if (data.get(0).getStat_guia().equals(\"\")){\r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO tiene relación de Guia de Carga!\", \"A\");\r\n }\r\n else{\r\n Gui.getInstance().showMessage(\"El Nro. de Guia ya esta relacionado!\", \"A\");\r\n }\r\n tf_nrorguia.requestFocus();\r\n }\r\n \r\n }\r\n }\r\n }\r\n else{\r\n change_im_val(0, im_checkg); \r\n Gui.getInstance().showMessage(\"El Nro. de Guia NO existe!\", \"A\");\r\n tf_nrorguia.requestFocus();\r\n }\r\n }\r\n }\r\n });\r\n }", "private void initImage() {\n BufferedImage closebtn = null;\n BufferedImage mulaiBtn = null;\n try {\n mulaiBtn = ImageIO.read(new File(\"image\\\\button\\\\mulai_btn.png\"));\n closebtn = ImageIO.read(new File(\"image\\\\button\\\\closeX_btn.png\"));\n ImageIcon mulaiBtnImage = new ImageIcon(mulaiBtn.getScaledInstance(126, 32, Image.SCALE_SMOOTH));\n ImageIcon closeBtnImage = new ImageIcon(closebtn.getScaledInstance(42, 42, Image.SCALE_SMOOTH));\n button_mulai.setIcon(mulaiBtnImage);\n button_close.setIcon(closeBtnImage);\n } catch (IOException ex) {\n ex.printStackTrace();\n } finally {\n button_mulai.setText(\"\");\n button_close.setText(\"\");\n }\n }", "private void createButtonsPanel() {\r\n Composite buttonsPanel = new Composite(this, SWT.NONE);\r\n buttonsPanel.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));\r\n buttonsPanel.setLayout(new GridLayout(4, true));\r\n\r\n getButtonFromAction(buttonsPanel, \"New\", new NewAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Save\", new SaveAction());\r\n getButtonFromAction(buttonsPanel, \"Delete\", new DeleteAction(_window));\r\n getButtonFromAction(buttonsPanel, \"Cancel\", new CancelAction());\r\n }", "void createButtons(Container cp) {\r\n JPanel pn4 = new JPanel(); // create a panel\r\n pn4.setLayout(new FlowLayout(FlowLayout.LEFT)); // set the layout\r\n for (int i=0; i<strClEx.length; i++) {\r\n // repeat for the number of the buttons\r\n bt[i] = new JButton(strClEx[i]); // create a button\r\n bt[i].addActionListener(this); // add the action listener to the button\r\n pn4.add(bt[i]); // add the button to the panel\r\n }\r\n cp.add(pn4); // add the panel to the container\r\n }", "private void createButtons(GridBagConstraints gridBagConstraints) {\n\t\tgridBagConstraints.gridx = 0;\n\t\tgridBagConstraints.gridy = 3;\n\t\tfileInputPanel.add(evolveButton, gridBagConstraints);\n\n\t\tgridBagConstraints.gridx = 1;\n\t\tgridBagConstraints.gridy = 3;\n\t\tfileInputPanel.add(simulateButton, gridBagConstraints);\n\t}", "public void initButtons() {\n for (int i = 0; i < 5; i++) {\n for (int j = 0; j < 5; j++) {\n bt[i][j].setOnMouseEntered(e -> {\n Button button;\n button = (Button) e.getSource();\n button.setStyle(\"-fx-border-color:yellow\");\n });\n bt[i][j].setOnMouseExited(e -> {\n Button button;\n button = (Button) e.getSource();\n button.setStyle(\"-fx-border-color:trasparent\");\n });\n\n }\n }\n }", "public JPanel getImageButtonsPanel() {\r\n\t\treturn imageButtonsPanel;\r\n\t}", "private JPanel createMediaButtons() {\n JPanel buttonPanel = new JPanel(new FlowLayout());\n\n showImageButton_ = new GradientButton(\"Image\");\n showImageButton_.addActionListener(this);\n showImageButton_.setEnabled(scene_.getImage() != null);\n\n playSoundButton_ = new GradientButton(\"Sound\");\n playSoundButton_.addActionListener(this);\n playSoundButton_.setEnabled(scene_.hasSound());\n\n buttonPanel.add(showImageButton_);\n buttonPanel.add(playSoundButton_);\n\n return buttonPanel;\n }", "public JButtonsPanel() {\r\n setBorder(BorderFactory.createEtchedBorder(Color.GREEN, new Color(148, 145, 140)));\r\n\r\n jOpen.setText(BTN_OPEN);\r\n jOpen.setToolTipText(MSG_OPEN);\r\n jOpen.setBounds(new Rectangle(BTN_LEFT, BTN_VSPACE, BTN_WIDTH, BTN_HEIGHT));\r\n add(jOpen);\r\n\r\n jCheckHealth.setText(BTN_CHECK_HEALTH);\r\n jCheckHealth.setToolTipText(MSG_CHECK_HEALTH);\r\n jCheckHealth.setBounds(new Rectangle(BTN_LEFT, (int) (jOpen.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jCheckHealth);\r\n\r\n jClose.setText(BTN_CLOSE);\r\n jClose.setToolTipText(MSG_CLOSE);\r\n jClose.setBounds(new Rectangle(BTN_LEFT, (int) (jCheckHealth.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClose);\r\n\r\n jClaim.setText(BTN_CLAIM);\r\n jClaim.setToolTipText(MSG_CLAIM);\r\n jClaim.setBounds(new Rectangle(BTN_LEFT, (int) (jClose.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClaim);\r\n\r\n jRelease.setText(BTN_RELEASE);\r\n jRelease.setToolTipText(MSG_RELEASE);\r\n jRelease.setBounds(new Rectangle(BTN_LEFT, (int) (jClaim.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jRelease);\r\n\r\n jDeviceEnable.setText(BTN_DEVICE_ENABLE);\r\n jDeviceEnable.setToolTipText(MSG_DEVICE_ENABLE);\r\n jDeviceEnable.setBounds(new Rectangle(BTN_LEFT, (int) (jRelease.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jDeviceEnable);\r\n\r\n jDeviceDisable.setText(BTN_DEVICE_DISABLE);\r\n jDeviceDisable.setToolTipText(MSG_DEVICE_DISABLE);\r\n jDeviceDisable.setBounds(new Rectangle(BTN_LEFT, (int) (jDeviceEnable.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jDeviceDisable);\r\n\r\n jClearData.setText(BTN_CLEAR_DATA);\r\n jClearData.setToolTipText(MSG_CLEAR_DATA);\r\n jClearData.setBounds(new Rectangle(BTN_LEFT, (int) (jDeviceDisable.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jClearData);\r\n\r\n jBeginEnrollCapture.setText(BTN_BEGIN_ENROLL_CAPTURE);\r\n jBeginEnrollCapture.setToolTipText(MSG_BEGIN_ENROLL_CAPTURE);\r\n jBeginEnrollCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jClearData.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jBeginEnrollCapture);\r\n\r\n jEndCapture.setText(BTN_END_CAPTURE);\r\n jEndCapture.setToolTipText(MSG_END_CAPTURE);\r\n jEndCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jBeginEnrollCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jEndCapture);\r\n\r\n jBeginVerifyCapture.setText(BTN_BEGIN_VERIFY_CAPTURE);\r\n jBeginVerifyCapture.setToolTipText(MSG_BEGIN_VERIFY_CAPTURE);\r\n jBeginVerifyCapture.setBounds(new Rectangle(BTN_LEFT, (int) (jEndCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jBeginVerifyCapture);\r\n\r\n jIdentifyMatch.setText(BTN_IDENTIFY_MATCH);\r\n jIdentifyMatch.setToolTipText(MSG_IDENTIFY_MATCH);\r\n jIdentifyMatch.setBounds(new Rectangle(BTN_LEFT, (int) (jBeginVerifyCapture.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jIdentifyMatch);\r\n\r\n jVerifyMatch.setText(BTN_VERIFY_MATCH);\r\n jVerifyMatch.setToolTipText(MSG_VERIFY_MATCH);\r\n jVerifyMatch.setBounds(new Rectangle(BTN_LEFT, (int) (jIdentifyMatch.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jVerifyMatch);\r\n\r\n jIdentify.setText(BTN_IDENTIFY);\r\n jIdentify.setToolTipText(MSG_IDENTIFY);\r\n jIdentify.setBounds(new Rectangle(BTN_LEFT, (int) (jVerifyMatch.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jIdentify);\r\n\r\n jVerify.setText(BTN_VERIFY);\r\n jVerify.setToolTipText(MSG_VERIFY);\r\n jVerify.setBounds(new Rectangle(BTN_LEFT, (int) (jIdentify.getBounds().getMaxY() + BTN_VSPACE), BTN_WIDTH, BTN_HEIGHT));\r\n add(jVerify);\r\n }", "private void buttonInit(){\n for(int i=0; i < 3; i++){\n choice[i] = new JButton();\n\n }\n choice[0].setText(\"10x10 / 8 bombs\");\n choice[0].setBackground(new Color(86, 160, 189));\n\n\n choice[0].addActionListener(l-> makeGamePanel(10, 8));\n\n choice[1].setText(\"15x15 / 30 bombs\");\n choice[1].setBackground(new Color(238, 160, 160));\n\n\n choice[1].addActionListener(l-> makeGamePanel(15,30));\n\n choice[2].setText(\"24x24 / 70 bombs\");\n choice[2].setBackground(new Color(253, 230, 122));\n choice[2].setFont(new Font(Font.MONOSPACED, Font.BOLD, 30));\n choice[2].setForeground(new Color(45, 68, 73));\n\n choice[2].addActionListener(l-> makeGamePanel(24,70));\n\n this.add(choice[0], BorderLayout.LINE_START); this.add(choice[1], BorderLayout.LINE_END); this.add(choice[2], BorderLayout.CENTER);\n }", "private void generateButtons(){\n\t\tint coordX = ThreadLocalRandom.current().nextInt(0, 16);\n\t\tint coordY = ThreadLocalRandom.current().nextInt(0, 16);\n\t\t//Button button = new Button(coordX, coordY);\n\t\t//buttons.put(0, button);\n\t}", "private static JButton buttonMaker(String s){\n final JButton button;\n button = new JButton(new ImageIcon(iconMaker(s)));\n button.setFocusPainted(false);\n return button;\n }", "@Override\n\tprotected void createCompButtons() {\n\t\tbtnExcelReport = new Button(getCompButtons(), SWT.NONE);\n\t\tbtnExcelReport.setText(\"Excel Report\");\n\t\tbtnExcelReport.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tbtnExcelReport\n\t\t.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(\n\t\t\t\t\torg.eclipse.swt.events.SelectionEvent e) {\n\t\t\t\tcmdExcelReportWidgetSelected();\n\t\t\t}\n\t\t});\n\t}", "private void initComponents() {\n\n buttonGroup1 = new javax.swing.ButtonGroup();\n scrollPane = new javax.swing.JScrollPane();\n previewLabel = new javax.swing.JLabel();\n rbProjectImages = new javax.swing.JRadioButton();\n rbExternalImages = new javax.swing.JRadioButton();\n lblFile = new javax.swing.JLabel();\n lblUrl = new javax.swing.JLabel();\n cbFile = new javax.swing.JComboBox();\n rbNoImage = new javax.swing.JRadioButton();\n txtUrl = new javax.swing.JTextField();\n btnBrowseImage = new javax.swing.JButton();\n\n previewLabel.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n scrollPane.setViewportView(previewLabel);\n\n buttonGroup1.add(rbProjectImages);\n rbProjectImages.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbProjectImages.text\")); // NOI18N\n rbProjectImages.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbProjectImages.toolTipText\")); // NOI18N\n rbProjectImages.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n rbProjectImages.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbProjectImagesActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(rbExternalImages);\n rbExternalImages.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbExternalImages.text\")); // NOI18N\n rbExternalImages.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbExternalImages.toolTipText\")); // NOI18N\n rbExternalImages.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n rbExternalImages.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbExternalImagesActionPerformed(evt);\n }\n });\n\n lblFile.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.lblFile.text\")); // NOI18N\n\n lblUrl.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.lblUrl.text\")); // NOI18N\n\n cbFile.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cbFileActionPerformed(evt);\n }\n });\n\n buttonGroup1.add(rbNoImage);\n rbNoImage.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbNoImage.text\")); // NOI18N\n rbNoImage.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.rbNoImage.toolTipText\")); // NOI18N\n rbNoImage.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));\n rbNoImage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n rbNoImageActionPerformed(evt);\n }\n });\n\n txtUrl.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n txtUrlActionPerformed(evt);\n }\n });\n\n btnBrowseImage.setText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.btnBrowseImage.text\")); // NOI18N\n btnBrowseImage.setToolTipText(org.openide.util.NbBundle.getMessage(CustomIconEditor.class, \"CustomIconEditor.btnBrowseImage.toolTipText\")); // NOI18N\n btnBrowseImage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBrowseImageActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(scrollPane, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 453, Short.MAX_VALUE)\n .addComponent(rbProjectImages, javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(rbExternalImages, javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\n .addGap(17, 17, 17)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(lblFile)\n .addComponent(lblUrl))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(txtUrl, javax.swing.GroupLayout.DEFAULT_SIZE, 357, Short.MAX_VALUE)\n .addGap(46, 46, 46))\n .addGroup(layout.createSequentialGroup()\n .addComponent(cbFile, 0, 357, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(btnBrowseImage))))\n .addComponent(rbNoImage, javax.swing.GroupLayout.Alignment.LEADING))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(rbProjectImages)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblFile)\n .addComponent(cbFile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(btnBrowseImage))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(rbExternalImages)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(lblUrl)\n .addComponent(txtUrl, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(rbNoImage)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(scrollPane, javax.swing.GroupLayout.DEFAULT_SIZE, 98, Short.MAX_VALUE)\n .addContainerGap())\n );\n }", "public void drawButtons(){\r\n\t\tGuiBooleanButton showDirection = new GuiBooleanButton(1, 10, 20, 150, 20, \"Show Direction\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowdir(), \"showdir\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showdir\").split(\";\"));\r\n\t\tGuiChooseStringButton dirpos = new GuiChooseStringButton(2, width/2+50, 20, 150, 20, \"Dir-Position\", GuiPositions.getPosList(), \"posdir\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosDir()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showFPS= new GuiBooleanButton(3, 10, 45, 150, 20, \"Show FPS\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowfps(), \"showfps\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfps\").split(\";\"));\r\n\t\tGuiChooseStringButton fpspos = new GuiChooseStringButton(4, width/2+50, 45, 150, 20, \"FPS-Position\", GuiPositions.getPosList(), \"posfps\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosFPS()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showCoor = new GuiBooleanButton(5, 10, 70, 150, 20, \"Show Coor\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowcoor(), \"showcoor\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showcoor\").split(\";\"));\r\n\t\tGuiChooseStringButton coorpos = new GuiChooseStringButton(6, width/2+50, 70, 150, 20, \"Coor-Position\", GuiPositions.getPosList(), \"poscoor\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosCoor()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton showworldage = new GuiBooleanButton(7, 10, 95, 150, 20, \"Show WorldAge\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowWorldAge(), \"showworldage\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showworldage\").split(\";\"));\r\n\t\tGuiChooseStringButton worldagepos = new GuiChooseStringButton(8, width/2+50, 95, 150, 20, \"WorldAge-Position\", GuiPositions.getPosList(), \"posworldage\", ModData.InfoMod, speicher,GuiPositions.getPos(((InfoMod)speicher.getMod(ModData.InfoMod.name())).getPosWorldAge()),LiteModMain.lconfig.getData(\"Main.choosepos\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\tGuiBooleanButton showFriendly = new GuiBooleanButton(7, 10, 120, 150, 20, \"Mark friendly spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingFriendlySpawns(), \"showfmobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showfriendlymobspawn\").split(\";\"));\r\n\t\tGuiBooleanButton showAggressiv = new GuiBooleanButton(7, 10, 145, 150, 20, \"Mark aggressiv spawns\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isShowingAggressivSpawns(), \"showamobspawn\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.showaggressivmobspawn\").split(\";\"));\r\n\t\t\r\n\t\tGuiBooleanButton dynamic = new GuiBooleanButton(7, width/2+50, 120, 150, 20, \"dynamic selection\", ((InfoMod)speicher.getMod(ModData.InfoMod.name())).isDynamic(), \"dynamichsel\", ModData.InfoMod, speicher,LiteModMain.lconfig.getData(\"InfoMod.dynamicselection\").split(\";\"));\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tGuiButton back = new GuiButton(9, width/2-100,height-50 , \"back to game\");\r\n\t\t\r\n\t\tbuttonList.add(showworldage);\r\n\t\tbuttonList.add(worldagepos);\r\n\t\tbuttonList.add(dirpos);\r\n\t\tbuttonList.add(fpspos);\r\n\t\tbuttonList.add(coorpos);\r\n\t\tbuttonList.add(showCoor);\r\n\t\tbuttonList.add(showFPS);\r\n\t\tbuttonList.add(showDirection);\r\n\t\t\r\n\t\tbuttonList.add(showFriendly);\r\n\t\tbuttonList.add(showAggressiv);\r\n\t\tbuttonList.add(dynamic);\r\n\t\t\r\n\t\tbuttonList.add(back);\r\n\t}", "private void crearBotones() {\n\t\tJButton botonTropa;\n\t\tArrayList<Tropa> tropasJugador = getJuego().getTurnoActual().getJugador().getTropas();\n\t\tint posicion = 0;\n\t\tfor (int i = 0; i < CANTIDADBOTONES; ++i) {\n\t\t\tif (tropasJugador.size() > i && !tropasJugador.get(i).isEnJuego()) {\n\t\t\t\tbotonTropa = new JButton(\" \" + tropasJugador.get(i).getNombre());\n\t\t\t\tponerIconosBotones(botonTropa, tropasJugador.get(i).getNombre());\n\n\t\t\t} else if (tropasJugador.size() > i && tropasJugador.get(i).isEnJuego()) {\n\t\t\t\tbotonTropa = new JButton(\" \" + tropasJugador.get(i).getNombre() + \" (En juego)\");\n\t\t\t\tponerIconosBotones(botonTropa, tropasJugador.get(i).getNombre());\n\t\t\t\tbotonTropa.setEnabled(false);\n\t\t\t} else {\n\t\t\t\tposicion = i + 1;\n\t\t\t\tbotonTropa = new JButton(\"Tropa \" + posicion);\n\t\t\t\tbotonTropa.setEnabled(false);\n\t\t\t}\n\n\t\t\tbotones.add(botonTropa);\n\t\t\tpanelBotones.add(botonTropa);\n\t\t}\n\t}", "private void createButton() throws SlickException {\n int width = 25*getGameContainer().getWidth()/100;\n int height = 10*getGameContainer().getHeight()/100;\n\n Image login = new Image(getReaderXmlFile().read(\"buttonLogin\")).getScaledCopy(width, height);\n Coordinate posLogin = new Coordinate((getGameContainer().getWidth() - login.getWidth())/2,55*getGameContainer().getHeight()/100);\n loginButton = new Button(getGameContainer(), login, posLogin, IDStates.MENU_STATE, this);\n\n Image account = new Image(getReaderXmlFile().read(\"buttonAccount\")).getScaledCopy(width, height);\n Coordinate posAccount = new Coordinate((getGameContainer().getWidth() - account.getWidth())/2,70*getGameContainer().getHeight()/100);\n accountButton = new Button(getGameContainer(), account, posAccount, IDStates.MENU_STATE, this);\n }", "public JPanel getAnswerImageButtonsPanel() {\r\n\t\treturn answerImageButtonsPanel;\r\n\t}", "private void createTileButtons(Context context) {\n Board board = boardManager.getBoard();\n tileButtons = new ArrayList<>();\n for (int row = 0; row != Board.NUM_ROWS; row++) {\n for (int col = 0; col != Board.NUM_COLS; col++) {\n Button tmp = new Button(context);\n if (bitmapList == null) {\n tmp.setBackgroundResource(board.getTile(row, col).getBackground());\n } else if (board.getTile(row, col).getId() != Board.NUM_COLS * Board.NUM_ROWS) {\n BitmapDrawable d = new BitmapDrawable(getResources(), bitmapList.get(board.getTile(row, col).getId()));\n tmp.setBackground(d);\n } else {\n tmp.setBackgroundResource(R.drawable.tile_grey);\n }\n this.tileButtons.add(tmp);\n }\n }\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n java.awt.GridBagConstraints gridBagConstraints;\n\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jButton4 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jButton2 = new javax.swing.JButton();\n jButton3 = new javax.swing.JButton();\n jLabel2 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setBackground(new java.awt.Color(255, 255, 255));\n setResizable(false);\n getContentPane().setLayout(new java.awt.GridBagLayout());\n\n jPanel1.setOpaque(false);\n\n jLabel1.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(0, 153, 204));\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/guibuilder/newpackage/SELECTIMAGE.jpg\"))); // NOI18N\n\n jButton4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/guibuilder/newpackage/buttonnext.jpg\"))); // NOI18N\n jButton4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton4ActionPerformed(evt);\n }\n });\n\n jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/guibuilder/newpackage/buttonprevious.jpg\"))); // NOI18N\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jButton2.setBackground(new java.awt.Color(0, 0, 0));\n jButton2.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton2.setForeground(new java.awt.Color(0, 153, 153));\n jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/guibuilder/newpackage/OK BUTTON.jpg\"))); // NOI18N\n jButton2.setOpaque(false);\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton3.setBackground(new java.awt.Color(0, 0, 0));\n jButton3.setFont(new java.awt.Font(\"Tahoma\", 1, 14)); // NOI18N\n jButton3.setForeground(new java.awt.Color(0, 153, 153));\n jButton3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/guibuilder/newpackage/RETURN BUTTON.jpg\"))); // NOI18N\n jButton3.setOpaque(false);\n jButton3.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton3ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(34, 34, 34)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 89, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 30, Short.MAX_VALUE)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 275, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, 18)\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 88, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(47, 47, 47))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jButton2)\n .addGap(97, 97, 97)\n .addComponent(jButton3)\n .addGap(71, 71, 71))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton1, jButton4});\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton2, jButton3});\n\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(38, 38, 38)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE, 46, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton2))\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 217, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(39, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(108, 108, 108))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(107, 107, 107))))))\n );\n\n jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {jButton2, jButton3});\n\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n getContentPane().add(jPanel1, gridBagConstraints);\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/guibuilder/newpackage/background dark.jpg\"))); // NOI18N\n gridBagConstraints = new java.awt.GridBagConstraints();\n gridBagConstraints.gridx = 1;\n gridBagConstraints.gridy = 1;\n gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;\n getContentPane().add(jLabel2, gridBagConstraints);\n\n pack();\n }", "private void buttonsPanel(JPanel panel_buttons) {\n\t\t//BUTTON COMPONENETS\n\t\tJButton btnDraw = new JButton(\"DRAW\");\n\t\tbtnDraw.setMinimumSize(new Dimension(81, 34));\n\t\tbtnDraw.setMaximumSize(new Dimension(81, 34));\n\t\tbtnDraw.setOpaque(true);\n\t\tbtnDraw.setBorderPainted(false);\n\t\tbtnDraw.setHideActionText(true);\n\t\tbtnDraw.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));\n\t\tbtnDraw.setSelected(true);\n\t\tbtnDraw.setRequestFocusEnabled(false);\n\t\tbtnDraw.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\tbtnDraw.setFont(UIManager.getFont(\"ColorChooser.font.green\"));\n\t\tbtnDraw.setBackground(Color.BLACK);\n\t\tbtnDraw.setForeground(Color.GREEN);\n\t\tbtnDraw.setFont(UIManager.getFont(\"ColorChooser.font.green\"));\n\t\t\n\t\tJButton btnReset = new JButton(\"RESET\");\n\t\tbtnReset.setForeground(Color.RED);\n\t\tbtnReset.setFont(UIManager.getFont(\"Button.font\"));\n\t\tbtnReset.setBorder(null);\n\t\tbtnReset.setOpaque(true);\n\t\tbtnReset.setBackground(Color.BLACK);\n\t\tbtnReset.setName(\"\");\n\t\t\n\t\tJButton btnQuit = new JButton(\"QUIT\");\n\t\tbtnQuit.setMaximumSize(new Dimension(81, 29));\n\t\tbtnQuit.setMinimumSize(new Dimension(81, 29));\n\t\tbtnQuit.setOpaque(true);\n\t\tbtnQuit.setBackground(Color.BLACK);\n\t\tbtnQuit.setBorderPainted(false);\n\t\tbtnQuit.setForeground(Color.WHITE);\n\t\tbtnQuit.setFont(UIManager.getFont(\"ColorChooser.font\"));\n\t\tbtnQuit.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t//PANEL LAYOUT FOR BUTTONS\n\t\tGroupLayout gl_panel_Buttons = new GroupLayout(panel_buttons);\n\t\tgl_panel_Buttons.setHorizontalGroup(\n\t\t\tgl_panel_Buttons.createParallelGroup(Alignment.TRAILING)\n\t\t\t\t.addComponent(btnReset, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)\n\t\t\t\t.addComponent(btnQuit, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)\n\t\t\t\t.addComponent(btnDraw, Alignment.LEADING, GroupLayout.DEFAULT_SIZE, 106, Short.MAX_VALUE)\n\t\t);\n\t\tgl_panel_Buttons.setVerticalGroup(\n\t\t\tgl_panel_Buttons.createParallelGroup(Alignment.LEADING)\n\t\t\t\t.addGroup(gl_panel_Buttons.createSequentialGroup()\n\t\t\t\t\t.addComponent(btnDraw, GroupLayout.PREFERRED_SIZE, 78, GroupLayout.PREFERRED_SIZE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(btnReset, GroupLayout.DEFAULT_SIZE, 81, Short.MAX_VALUE)\n\t\t\t\t\t.addPreferredGap(ComponentPlacement.RELATED)\n\t\t\t\t\t.addComponent(btnQuit, GroupLayout.PREFERRED_SIZE, 80, GroupLayout.PREFERRED_SIZE))\n\t\t);\n\t\tpanel_buttons.setLayout(gl_panel_Buttons);\n\t}", "public JPanel emptyGameControllerView(){\n JPanel p_globalControls = new JPanel(new GridBagLayout());\n p_globalControls.setOpaque(false);\n \n GridBagConstraints c = new GridBagConstraints();\n\n //init\n JButton b_roll = new JButton();\n JButton b_bet5 = new JButton();\n JButton b_bet10 = new JButton();\n JButton b_deposit = new JButton();\n \n //format\n b_roll.setOpaque(false);\n b_roll.setMargin(new Insets(0, 0, 0, 0));\n b_roll.setBorder(new EmptyBorder(0, 0, 0, 0));\n try {\n Image img = ImageIO.read(getClass().getResource(\"./graphics/button_Roll.png\"));\n Image newimg = img.getScaledInstance(100,50,java.awt.Image.SCALE_SMOOTH ); \n b_roll.setIcon(new ImageIcon(newimg));\n }catch (IOException ex) {\n //do nothing...\n }\n b_bet5.setOpaque(false);\n b_bet5.setMargin(new Insets(0, 0, 0, 0));\n b_bet5.setBorder(new EmptyBorder(0, 0, 0, 0));\n try {\n Image img = ImageIO.read(getClass().getResource(\"./graphics/button_Bet5.png\"));\n Image newimg = img.getScaledInstance(100,50,java.awt.Image.SCALE_SMOOTH ); \n b_bet5.setIcon(new ImageIcon(newimg));\n }catch (IOException ex) {\n //do nothing...\n }\n b_bet10.setOpaque(false);\n b_bet10.setMargin(new Insets(0, 0, 0, 0));\n b_bet10.setBorder(new EmptyBorder(0, 0, 0, 0));\n try {\n Image img = ImageIO.read(getClass().getResource(\"./graphics/button_Bet10.png\"));\n Image newimg = img.getScaledInstance(100,50,java.awt.Image.SCALE_SMOOTH ); \n b_bet10.setIcon(new ImageIcon(newimg));\n }catch (IOException ex) {\n //do nothing...\n }\n b_deposit.setOpaque(false);\n b_deposit.setMargin(new Insets(0, 0, 0, 0));\n b_deposit.setBorder(new EmptyBorder(0, 0, 0, 0));\n try {\n Image img = ImageIO.read(getClass().getResource(\"./graphics/button_Deposit.png\"));\n Image newimg = img.getScaledInstance(145,30,java.awt.Image.SCALE_SMOOTH ); \n b_deposit.setIcon(new ImageIcon(newimg));\n }catch (IOException ex) {\n //do nothing...\n }\n \n //add to parent container\n c.anchor = GridBagConstraints.NORTHEAST;\n c.weightx = 1.0;\n c.weighty = 1.0;\n c.insets = new Insets(0,0,0,0);\n c.gridx = 0;\n c.gridx = 0;\n p_globalControls.add(b_bet5,c);\n c.gridx = 1;\n p_globalControls.add(b_bet10,c);\n c.insets = new Insets(0,60,0,5);\n c.gridx = 2;\n p_globalControls.add(b_roll,c);\n c.insets = new Insets(15,0,0,0);\n c.gridx = 3;\n p_globalControls.add(b_deposit,c);\n \n return p_globalControls;\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jButton1 = new javax.swing.JButton();\n bn_play = new javax.swing.JButton();\n bn_ex = new javax.swing.JButton();\n bn_how = new javax.swing.JButton();\n jLabel1 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n bg = new javax.swing.JLabel();\n\n jButton1.setText(\"jButton1\");\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(null);\n\n bn_play.setBackground(java.awt.SystemColor.textHighlightText);\n bn_play.setFont(new java.awt.Font(\"Gabriola\", 1, 48)); // NOI18N\n bn_play.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/bnplay.png\"))); // NOI18N\n bn_play.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseEntered(java.awt.event.MouseEvent evt) {\n bn_playMouseEntered(evt);\n }\n });\n bn_play.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bn_playActionPerformed(evt);\n }\n });\n getContentPane().add(bn_play);\n bn_play.setBounds(460, 190, 220, 100);\n\n bn_ex.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/bnex1.png\"))); // NOI18N\n bn_ex.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bn_exActionPerformed(evt);\n }\n });\n getContentPane().add(bn_ex);\n bn_ex.setBounds(630, 340, 110, 50);\n\n bn_how.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/bnhow1.png\"))); // NOI18N\n bn_how.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n bn_howActionPerformed(evt);\n }\n });\n getContentPane().add(bn_how);\n bn_how.setBounds(350, 340, 160, 50);\n\n jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/avatar2 (1)_1.gif\"))); // NOI18N\n getContentPane().add(jLabel1);\n jLabel1.setBounds(60, -20, 300, 470);\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/head2.png\"))); // NOI18N\n getContentPane().add(jLabel3);\n jLabel3.setBounds(360, 0, 540, 170);\n\n bg.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/res/main-2-1.png\"))); // NOI18N\n getContentPane().add(bg);\n bg.setBounds(0, 0, 800, 480);\n\n pack();\n setLocationRelativeTo(null);\n }", "public JLabel[] getButtons() {\r\n\t\treturn array;\r\n\t}", "private JButton getIcoButton() {\r\n\t\tif (icoButton == null) {\r\n\t\t\ticoButton = new JButton();\r\n\t\t\ticoButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/tileimg.png\")));\r\n\t\t\ticoButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\ticoButton.setLocation(new Point(72, 1));\r\n\t\t\ticoButton.setSize(new Dimension(23, 23));\r\n\t\t\ticoButton.setToolTipText(\"图片编辑\");\r\n\t\t\ticoButton.setActionCommand(\"icoButton\");\r\n\t\t\tbuttonAction = new ButtonAction(this);\r\n\t\t\ticoButton.addActionListener(buttonAction);\r\n\t\t}\r\n\t\treturn icoButton;\r\n\t}", "private void createButtons() {\n Texture playButtonIdle, playButtonPressed,settingsButtonIdle, settingsButtonPressed, creditsButtonIdle, creditsButtonPressed;\n\n if(game.getLocale().getCountry().equals(\"FI\")){\n playButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startgame_FIN.png\");\n playButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startgame_FIN_PRESSED.png\");\n\n settingsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startsettings_FIN.png\");\n settingsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startsettings_FIN_PRESSED.png\");\n\n creditsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_credits_FIN.png\");\n creditsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_credits_FIN_PRESSED.png\");\n }else{\n playButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startgame_ENG.png\");\n playButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startgame_ENG_PRESSED.png\");\n\n settingsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_startsettings_ENG.png\");\n settingsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_startsettings_ENG_PRESSED.png\");\n\n creditsButtonIdle = game.getAssetManager().get(\"BUTTONS/button_credits_ENG.png\");\n creditsButtonPressed = game.getAssetManager().get(\"BUTTONS/button_credits_ENG_PRESSED.png\");\n }\n\n ImageButton playButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(playButtonIdle)), new TextureRegionDrawable(new TextureRegion(playButtonPressed)));\n\n playButton.setPosition(95, 12);\n stage.addActor(playButton);\n\n playButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(gameScreen);\n }\n });\n\n ImageButton settingsButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(settingsButtonIdle)), new TextureRegionDrawable(new TextureRegion(settingsButtonPressed)));\n\n settingsButton.setPosition(175, 12);\n stage.addActor(settingsButton);\n\n settingsButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new OptionsScreen(game));\n }\n });\n\n ImageButton creditsButton = new ImageButton(new TextureRegionDrawable(new TextureRegion(creditsButtonIdle)), new TextureRegionDrawable(new TextureRegion(creditsButtonPressed)));\n\n creditsButton.setPosition(15, 12);\n stage.addActor(creditsButton);\n\n creditsButton.addListener(new ChangeListener() {\n // This method is called whenever the actor is clicked. We override its behavior here.\n @Override\n public void changed(ChangeEvent event, Actor actor) {\n game.setScreen(new CreditsScreen(game));\n }\n });\n }", "private void createRedButtons() {\r\n\t\tint y = 40;\r\n\t\tfor (int i = 60; i < 65; i++) {\r\n\t\t\tarray[i] = createRedButton(y);\r\n\t\t\ty += 40;\r\n\t\t}\r\n\t}", "public void showButtonIcon( boolean b ) {\n if ( b ) {\n URL url = getClass().getClassLoader().getResource( \"images/Play16.gif\" );\n Icon icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _run_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Zoom16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _trace_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Edit16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _edit_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Information16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _props_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Properties16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _options_btn.setIcon( icon );\n\n url = getClass().getClassLoader().getResource( \"images/Refresh16.gif\" );\n icon = null;\n if ( url != null )\n icon = new ImageIcon( url );\n _reload_btn.setIcon( icon );\n }\n else {\n _run_btn.setIcon( null );\n _trace_btn.setIcon( null );\n _edit_btn.setIcon( null );\n _props_btn.setIcon( null );\n _options_btn.setIcon( null );\n _reload_btn.setIcon( null );\n }\n }", "private Component buildCellButton(final char cell) {\n\t\t\tswitch (cell) {\n\t\t\t\tcase '*': {\n\t\t\t\t\tImageIcon buttonIcon = new ImageIcon (\"images/miss.png\");\n\t\t\t\t\tJButton button = new JButton();\n\t\t\t\t\tbutton.setIcon(buttonIcon);\n\t\t\t\t\tbutton.setBackground(Color.RED);\n\t\t\t\t\treturn button;\n\t\t\t\t}\n\t\t\t\tcase 'X': {\n\t\t\t\t\tImageIcon buttonIcon = new ImageIcon (\"images/hit.png\");\n\t\t\t\t\tJButton button = new JButton();\n\t\t\t\t\tbutton.setIcon(buttonIcon);\n\t\t\t\t\treturn button;\n\t\t\t\t}\n\t\t\t\tcase '#': {\n\t\t\t\t\tJButton button = new JButton();\n\t\t\t\t\tbutton.setBackground(Color.RED);\n\t\t\t\t\treturn button;\n\t\t\t\t}\n\t\t\t\tcase 's': {\n\t\t\t\t\tJButton button = new JButton();\n\t\t\t\t\tbutton.setBackground(Color.YELLOW);\n\t\t\t\t\treturn button;\n\t\t\t\t}\n\t\t\t\tdefault: {\n\t\t\t\t\tJButton button = new JButton();\n\t\t\t\t\tbutton.setBackground(Color.BLUE);\n\t\t\t\t\treturn button;\n\t\t\t\t}\n\t\t\t}\n\t}", "private javax.swing.JButton getJButtonAceptar() {\n\t\tif(jButtonAceptar == null) {\n\t\t\tjButtonAceptar = new JHighlightButton();\n\t\t\tjButtonAceptar.setText(\"Aceptar\");\n\t\t\tjButtonAceptar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonAceptar.setIcon(new ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/check2.png\")));\n\t\t}\n\t\treturn jButtonAceptar;\n\t}", "private List<JRadioButton> setupCharacterButtons() {\n\t\tList<JRadioButton> btns = new ArrayList<JRadioButton>();\n\t\t// select the first button\n\t\tJRadioButton greenBtn = new JRadioButton(frame.makeDave(GameOfCluedo.GREEN));\n\t\tgreenBtn.setSelected(true);\n\t\t// add buttons to list\n\t\tbtns.add(greenBtn);\n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.MUSTARD)));\n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.PEACOCK))); \n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.PLUM))); \n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.SCARLETT))); \n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.WHITE))); \n\t\treturn btns;\n\t}", "public void addKeys() {\n\t\tbtnDot = new JButton(\".\");\n\t\tbtnDot.setBounds(42, 120, 40, 40);\n\t\tthis.add(btnDot); //Handle case\n\t\t\n\t\tbtn0 = new JButton(\"0\");\n\t\tbtn0.setBounds(81, 120, 40, 40);\n\t\tthis.add(btn0);\n\t\tnumberButtonList = new ArrayList<JButton>(10);\n\t\tnumberButtonList.add(btn0);\n\t\t\n\t\tbtnC = new JButton(\"C\");\n\t\tbtnC.setBounds(120, 120, 40, 40);\n\t\tthis.add(btnC);\n\t\t\n\t\tbtnStar = new JButton(\"*\");\n\t\tbtnStar.setBounds(159, 120, 40, 40);\n\t\tthis.add(btnStar);\n\t\toperationButtonList = new ArrayList<JButton>(10);\n\t\toperationButtonList.add(btnStar);\n\t\t\n\t\tbtnPi = new JButton(\"π\");\n\t\tbtnPi.setBounds(198, 120, 40, 40);\n\t\tthis.add(btnPi);\n\t\t//numberButtonList.add(btnPi); //Special case\n\t\tvalueButtons.add(btnPi);\n\t\t\n\t\tbtnLn = new JButton(\"ln\");\n\t\tbtnLn.setBounds(237, 120, 40, 40);\n\t\tthis.add(btnLn);\n\t\tresultOperations.add(btnLn);\n\t\t\n\t\t//Row 2\n\t\t\n\t\tbtn3 = new JButton(\"3\");\n\t\tbtn3.setBounds(42, 80, 40, 40);\n\t\tthis.add(btn3);\n\t\tnumberButtonList.add(btn3);\n\t\t\n\t\tbtn2 = new JButton(\"2\");\n\t\tbtn2.setBounds(81, 80, 40, 40);\n\t\tthis.add(btn2);\n\t\tnumberButtonList.add(btn2);\n\t\t\n\t\tbtn1 = new JButton(\"1\");\n\t\tbtn1.setBounds(120, 80, 40, 40);\n\t\tthis.add(btn1);\n\t\tnumberButtonList.add(btn1);\n\t\t\n\t\tbtnDivide = new JButton(\"/\");\n\t\tbtnDivide.setBounds(159, 80, 40, 40);\n\t\tthis.add(btnDivide);\n\t\toperationButtonList.add(btnDivide);\n\t\t\n\t\tbtnE = new JButton(\"e\");\n\t\tbtnE.setBounds(198, 80, 40, 40);\n\t\tthis.add(btnE);\n\t\tvalueButtons.add(btnE);\n\t\t//numberButtonList.add(btnE); //Special case\n\t\t\n\t\tbtnTan = new JButton(\"tan\");\n\t\tbtnTan.setBounds(237, 80, 40, 40);\n\t\tthis.add(btnTan);\n\t\tresultOperations.add(btnTan);\n\t\t\n\t\t//Row 3\n\t\t\n\t\tbtn6 = new JButton(\"6\");\n\t\tbtn6.setBounds(42, 40, 40, 40);\n\t\tthis.add(btn6);\n\t\tnumberButtonList.add(btn6);\n\t\t\n\t\tbtn5 = new JButton(\"5\");\n\t\tbtn5.setBounds(81, 40, 40, 40);\n\t\tthis.add(btn5);\n\t\tnumberButtonList.add(btn5);\n\t\t\n\t\tbtn4 = new JButton(\"4\");\n\t\tbtn4.setBounds(120, 40, 40, 40);\n\t\tthis.add(btn4);\n\t\tnumberButtonList.add(btn4);\n\t\t\n\t\tbtnMinus = new JButton(\"-\");\n\t\tbtnMinus.setBounds(159, 40, 40, 40);\n\t\tthis.add(btnMinus);\n\t\toperationButtonList.add(btnMinus);\n\t\t\n\t\tbtnSqRt = new JButton(\"√\");\n\t\tbtnSqRt.setBounds(198, 40, 40, 40);\n\t\tthis.add(btnSqRt);\n\t\tresultOperations.add(btnSqRt);\n\t\t\n\t\tbtnCos = new JButton(\"cos\");\n\t\tbtnCos.setBounds(237, 40, 40, 40);\n\t\tthis.add(btnCos);\n\t\tresultOperations.add(btnCos);\n\t\t\n\t\t//Row 4\n\t\t\n\t\tbtn9 = new JButton(\"9\");\n\t\tbtn9.setBounds(42, 0, 40, 40);\n\t\tthis.add(btn9);\n\t\tnumberButtonList.add(btn9);\n\t\t\n\t\tbtn8 = new JButton(\"8\");\n\t\tbtn8.setBounds(81, 0, 40, 40);\n\t\tthis.add(btn8);\n\t\tnumberButtonList.add(btn8);\n\t\t\n\t\tbtn7 = new JButton(\"7\");\n\t\tbtn7.setBounds(120, 0, 40, 40);\n\t\tthis.add(btn7);\n\t\tnumberButtonList.add(btn7);\n\t\t\n\t\tbtnPlus = new JButton(\"+\");\n\t\tbtnPlus.setBounds(159, 0, 40, 40);\n\t\tthis.add(btnPlus);\n\t\toperationButtonList.add(btnPlus);\n\t\t\n\t\tbtnPower = new JButton(\"^\");\n\t\tbtnPower.setBounds(198, 0, 40, 40);\n\t\tthis.add(btnPower);\n\t\toperationButtonList.add(btnPower);\n\t\t\n\t\tbtnSin = new JButton(\"sin\");\n\t\tbtnSin.setBounds(237, 0, 40, 40);\n\t\tthis.add(btnSin);\n\t\tresultOperations.add(btnSin);\n\t}", "public static Button[][] getButtons()\n {\n return (buttons);\n }", "private void refreshButtons() {\n flowPane.getChildren().clear();\n\n for(String testName : Files.listTests()) {\n TestJson info;\n try {\n info = TestParser.read(testName);\n } catch(FileNotFoundException e) {\n continue; /* Skip */\n }\n\n JFXButton button = new JFXButton(testName);\n button.pseudoClassStateChanged(PseudoClass.getPseudoClass(\"select-button\"), true);\n\n button.setOnAction(e -> buttonPressed(info));\n\n if(!filter(info, button))\n continue;\n\n // If this model asked to be put in a specific place, put it there\n if(!info.custom && info.order >= 0)\n flowPane.getChildren().add(Math.min(info.order, flowPane.getChildren().size()), button);\n else\n flowPane.getChildren().add(button);\n }\n }", "private List<JRadioButton> setupWeaponButtons() {\n\t List<JRadioButton> btns = new ArrayList<JRadioButton>();\n\t // select top button\n\t JRadioButton candlestickBtn = new JRadioButton(frame.makeDave(GameOfCluedo.CANDLESTICK));\n\t candlestickBtn.setSelected(true);\n\t // add buttons to list\n\t\tbtns.add(candlestickBtn);\n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.DAGGER)));\n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.LEAD_PIPE))); \n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.REVOLVER))); \n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.ROPE))); \n\t\tbtns.add(new JRadioButton(frame.makeDave(GameOfCluedo.SPANNER)));\n\t\t\n\t\treturn btns;\n\t}", "public JButton getQuestionImageBrosweButton() {\r\n\t\treturn qbrowseBtn;\r\n\t}", "private void addButtons() {\r\n\t\troot.getChildren().add(button); // creating the Easy button \r\n\t\tb1 = new Button(\"Easy\");\r\n\t\tb1.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Easy\";\r\n\t\t\t}\r\n\t\t});\r\n\t\troot.getChildren().add(b1); // creating the Normal button\r\n\t\tb2 = new Button(\"Normal\");\r\n\t\tb2.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Normal\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tb2.setLayoutX(50);\r\n\t\troot.getChildren().add(b2); // creating the Hard button\r\n\t\tb3 = new Button(\"Hard\");\r\n\t\tb3.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent ke) {\r\n\t\t\t\tdiff = \"Hard\";\r\n\t\t\t}\r\n\t\t});\r\n\t\tb3.setLayoutX(115);\r\n\t\troot.getChildren().add(b3);\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n smile = new javax.swing.JButton();\n woot = new javax.swing.JButton();\n anoy = new javax.swing.JButton();\n yeh = new javax.swing.JButton();\n\n smile.setFont(new java.awt.Font(\"微軟正黑體\", 0, 12)); // NOI18N\n smile.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/smile.jpg\"))); // NOI18N\n smile.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n smileActionPerformed(evt);\n }\n });\n\n woot.setFont(new java.awt.Font(\"微軟正黑體\", 0, 12)); // NOI18N\n woot.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/woot.jpg\"))); // NOI18N\n woot.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n wootActionPerformed(evt);\n }\n });\n\n anoy.setFont(new java.awt.Font(\"微軟正黑體\", 0, 12)); // NOI18N\n anoy.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/anoy.jpg\"))); // NOI18N\n anoy.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n anoyActionPerformed(evt);\n }\n });\n\n yeh.setFont(new java.awt.Font(\"微軟正黑體\", 0, 12)); // NOI18N\n yeh.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/gui/yeh.jpg\"))); // NOI18N\n yeh.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n yehActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(4, 4, 4)\n .addComponent(smile)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(woot)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(anoy)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(yeh)\n .addContainerGap(34, Short.MAX_VALUE))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(yeh, javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(smile)\n .addComponent(woot)\n .addComponent(anoy)))\n .addGap(0, 71, Short.MAX_VALUE))\n );\n }", "public instructionButton()\n {\n getImage().scale(getImage().getWidth()/10, getImage().getHeight()/10);\n }", "protected void createButtons(Panel panel) {\n panel.add(new Filler(24,20));\n\n Choice drawingChoice = new Choice();\n drawingChoice.addItem(fgUntitled);\n\n\t String param = getParameter(\"DRAWINGS\");\n\t if (param == null)\n\t param = \"\";\n \tStringTokenizer st = new StringTokenizer(param);\n while (st.hasMoreTokens())\n drawingChoice.addItem(st.nextToken());\n // offer choice only if more than one\n if (drawingChoice.getItemCount() > 1)\n panel.add(drawingChoice);\n else\n panel.add(new Label(fgUntitled));\n\n\t\tdrawingChoice.addItemListener(\n\t\t new ItemListener() {\n\t\t public void itemStateChanged(ItemEvent e) {\n\t\t if (e.getStateChange() == ItemEvent.SELECTED) {\n\t\t loadDrawing((String)e.getItem());\n\t\t }\n\t\t }\n\t\t }\n\t\t);\n\n panel.add(new Filler(6,20));\n\n Button button;\n button = new CommandButton(new DeleteCommand(\"Delete\", fView));\n panel.add(button);\n\n button = new CommandButton(new DuplicateCommand(\"Duplicate\", fView));\n panel.add(button);\n\n button = new CommandButton(new GroupCommand(\"Group\", fView));\n panel.add(button);\n\n button = new CommandButton(new UngroupCommand(\"Ungroup\", fView));\n panel.add(button);\n\n button = new Button(\"Help\");\n\t\tbutton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n\t\t showHelp();\n\t\t }\n\t\t }\n\t\t);\n panel.add(button);\n\n fUpdateButton = new Button(\"Simple Update\");\n\t\tfUpdateButton.addActionListener(\n\t\t new ActionListener() {\n\t\t public void actionPerformed(ActionEvent event) {\n if (fSimpleUpdate)\n setBufferedDisplayUpdate();\n else\n setSimpleDisplayUpdate();\n\t\t }\n\t\t }\n\t\t);\n\n // panel.add(fUpdateButton); // not shown currently\n }", "private Classes.Button principalButtonsMenu(TextView buttonTitle, ImageView buttonImage){\n Classes.Button button;\n if(buttonIndex < (rows*(columns-1))) {\n button = buttons.get(buttonIndex);\n createPrincipalButtons(buttonTitle, button, buttonImage);\n }else if(buttonFunctionIndex < functionButtons.size()) {\n button = functionButtons.get(buttonFunctionIndex);\n createFuncionesButtons(buttonTitle, button, buttonImage);\n }else{\n button = new Classes.Button(0, \"\", \"\", \"\",\"\", \"\",\"\", \"\");\n }\n return button;\n }", "private void createYourMusicContent() {\n\t\t/**Creates all images we will use for the buttons*/\n\t\tImageIcon image1 = new ImageIcon(sURLFB1);\n\t\tImageIcon image2 = new ImageIcon(sURLFB2);\n\t\tImageIcon image3 = new ImageIcon(sURLFB3);\n\t\tImageIcon image4 = new ImageIcon(sURLFBS1);\n\t\tImageIcon image5 = new ImageIcon(sURLFBS2);\n\t\tImageIcon image6 = new ImageIcon(sURLFBS3);\n\t\tImageIcon image7 = new ImageIcon(sURLFBPL1);\n\t\tImageIcon image8 = new ImageIcon(sURLFBPL2);\n\t\tImageIcon image9 = new ImageIcon(sURLFBPL3);\n\t\n\t\t/**Creates the button of Favourites and configures it*/\n\t\tjbFavorites = new JButton(\"Favorites\");\n\t\tjbFavorites.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbFavorites.setForeground(new Color(150,100,100));\n\t\tjbFavorites.setIcon(image1);\n\t\tjbFavorites.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbFavorites.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbFavorites.setRolloverIcon(image2);\n\t\tjbFavorites.setSelectedIcon(image3);\n\t\tjbFavorites.setContentAreaFilled(false);\n\t\tjbFavorites.setFocusable(false);\n\t\tjbFavorites.setBorderPainted(false);\n\t\t\n\t\t/**Creates the button of Songs and configures it*/\n\t\tjbSongs = new JButton(\"Songs\");\n\t\tjbSongs.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbSongs.setForeground(new Color(150,100,100));\n\t\tjbSongs.setIcon(image4);\n\t\tjbSongs.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbSongs.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbSongs.setRolloverIcon(image5);\n\t\tjbSongs.setSelectedIcon(image6);\n\t\tjbSongs.setContentAreaFilled(false);\n\t\tjbSongs.setFocusable(false);\n\t\tjbSongs.setBorderPainted(false);\n\t\t\n\t\t/**Creates the button of PartyList and configures it*/\n\t\tjbPartyList = new JButton(\"PartyList\");\n\t\tjbPartyList.setFont(new java.awt.Font(\"Century Gothic\",0, 15));\n\t\tjbPartyList.setForeground(new Color(150,100,100));\n\t\tjbPartyList.setIcon(image7);\n\t\tjbPartyList.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\tjbPartyList.setVerticalTextPosition(SwingConstants.CENTER);\n\t\tjbPartyList.setRolloverIcon(image8);\n\t\tjbPartyList.setSelectedIcon(image9);\t\n\t\tjbPartyList.setContentAreaFilled(false);\n\t\tjbPartyList.setFocusable(false);\n\t\tjbPartyList.setBorderPainted(false);\n\t\t\n\t\t/**Creates the panel where we will put all buttons*/\n\t\tjpPreLists = new JPanel(new BorderLayout());\n jpPreLists.setOpaque(false);\n\t\tjpPreLists.add(jbFavorites,BorderLayout.NORTH);\n\t\tjpPreLists.add(jbSongs,BorderLayout.CENTER);\n\t\tjpPreLists.add(jbPartyList,BorderLayout.SOUTH);\n\t}", "@Test\n\tpublic void test3_checkButtons() throws GeneralLeanFtException{\n\t\t\n\t\ttry{\n\t\t\t\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Started\");\n\t\t\t\n\t\t\t//Check that the Main window should exist\n\t\t\tassertTrue(mySet.appExistsorNot());\t\t\t\n\t\t\t\n\t\t\t//Toolbar Object\n\t\t\tToolBar toolbar = mySet.OR.MainWindow().ToolBar(); \n\n\t\t\t// Clicking the JButton displays the required frame\n\t\t\ttoolbar.getButton(\"JButton\").press();\n\t\t\t\n\t\t\t//Getting the Image Buttons in the Panel\n\t\t\tButton[] imgButtons = mySet.OR.MainWindow().ImageButtonsPanelUiObject()\n\t\t\t .findChildren(Button.class,new ButtonDescription.Builder().nativeClass(\"javax.swing.JButton\").build());\n\t\t\t \n\t\t\t//There should be 3 Image Buttons\n\t\t\tassertEquals(3, imgButtons.length);\n\t\t\t\n\t\t\t//Trigger the Mouse Entered Event for the each button in the Panel\t\t\t\t\n\t\t\tRobot robo = new Robot();\t\t\t\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\t\t\t\t\n\t\t\t\trobo.mouseMove(btn.getAbsoluteLocation().x,btn.getAbsoluteLocation().y);\n\t\t\t\tThread.sleep(500);\n\t\t\t}\n\t\t\t\n\t\t\t//Store the Original Dimension\n\t\t\tDimension orginalDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Increase the Size by Selecting the Pad Radio Button\n\t\t\tmySet.OR.MainWindow().Pad10RadioButton().click();\n\t\t\t\n\t\t\t//Verify that the radio button is checked\n\t\t\tassertTrue(mySet.OR.MainWindow().Pad10RadioButton().isChecked()==true);\n\t\t\t\n\t\t\t//Store the New Dimension\n\t\t\tDimension newDimension = mySet.OR.MainWindow().ImageButtonsPanelUiObject().getSize();\n\t\t\t\n\t\t\t//Assert that Height Increases and Width Decreases\n\t\t\tassertTrue((newDimension.width < orginalDimension.width) && (newDimension.height > orginalDimension.height));\n\t\t\t\n\t\t\t//Click the Enabled Check box\n\t\t\tmySet.OR.MainWindow().EnabledCheckBox().click();\n\t\t\t\n\t\t\t//Check that the Check Box has been unchecked \n\t\t\tassertTrue(mySet.OR.MainWindow().EnabledCheckBox().getState()==CheckedState.UNCHECKED);\n\t\t\t\n\t\t\t//Check that all Image Buttons are disabled\n\t\t\tfor(Button btn : imgButtons)\n\t\t\t{\n\t\t\t\tassertTrue(btn.isEnabled()==false);\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\t\t\n\t\tcatch(Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"Unexpected Error Occurred. Message = \" + e.getMessage() + \"Stack Trace = \");\n\t\t\te.printStackTrace();\n\t\t\tassertTrue(false);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\tSystem.out.println(\"Test 3 - Check Buttons Finished\");\n\t\t}\n\t\t\n\t}", "private void createInterface(Container c) {\n\t\t\n\t\tBufferedImage myImage = null;\n\t\ttry { \n\t\t myImage = ImageIO.read(new File(\"JavaFormatHaloReach.jpg\"));\n\t\t \n\t\t } catch (IOException ex) {\n\t\t \n\t\t }\n\t\t\n\t\tNegativeImage negatImage = new NegativeImage(myImage);\n\t\tImagePanel image = new ImagePanel ( myImage);\n\t\timage = new ImagePanel(negatImage.MakeNegativeImage());\n\n\t\tBorderLayout layout = new BorderLayout();\n\t\tc.setLayout(layout);\n\n\t\tJPanel contentPane = new JPanel();\n\t\tcontentPane.setBackground(UIManager.getColor(\"Button.darkShadow\"));\n\t\t\n\n\t\tJToolBar toolBar = new JToolBar();\n\t\ttoolBar.addSeparator(new Dimension(50, 0));\n\t\ttoolBar.setForeground(SystemColor.textHighlight);\n\t\ttoolBar.setBackground(UIManager.getColor(\"Button.highlight\"));\n\t\ttoolBar.setBackground(Color.GRAY);\n\t\t\n\n\t\tJButton rotate = new JButton(\"Rotate\");\n\t\trotate.setBackground(Color.LIGHT_GRAY);\n\t\trotate.setForeground(Color.WHITE);\n\t\ttoolBar.add(rotate);\n\t\ttoolBar.addSeparator(new Dimension(50, 0));\n\t\t\n\t\t\n\t\tJButton negativeButton = new JButton(\"Negative\");\n\t\tButtonListener negative = new ButtonListener(negatImage, myImage);\n\t\tnegativeButton.addActionListener(negative);\n\t\t\n\t\tnegativeButton.setBackground(Color.LIGHT_GRAY);\n\t\tnegativeButton.setForeground(Color.WHITE);\n\t\ttoolBar.add(negativeButton);\n\t\ttoolBar.addSeparator(new Dimension(50, 0));\n\t\t\n\n\t\tJButton changeSize = new JButton(\"Change size \");\n\t\tchangeSize.setBackground(Color.LIGHT_GRAY);\n\t\tchangeSize.setForeground(Color.WHITE);\n\t\ttoolBar.add(changeSize);\n\t\ttoolBar.addSeparator(new Dimension(50, 0));\n\n\t\tJButton reset = new JButton(\"Reset\");\n\t\treset.setBackground(Color.LIGHT_GRAY);\n\t\treset.setForeground(Color.WHITE);\n\t\ttoolBar.add(reset);\n\t\n\t\tc.add(toolBar, BorderLayout.NORTH);\n\t//\tc.add(negatImage);\n\t\t\n\t}", "private void createRow1() throws IOException {\r\n\t\tint x = 0;\r\n\t\tfor (int i = 0; i < 16; i++) {\r\n\t\t\tarray[i] = createButton(x, 0);\r\n\t\t\tx += 40;\r\n\t\t}\r\n\t\tImage redslidestart = ImageIO.read(getClass().getResource(\"/images\\\\slides\\\\redSlideStart.png\"))\r\n\t\t\t\t.getScaledInstance(38, 38, 4);\r\n\t\tarray[1].setIcon(new ImageIcon(redslidestart));\r\n\t\tImage redslide = ImageIO.read(getClass().getResource(\"/images\\\\slides\\\\redSlideMedium.png\"))\r\n\t\t\t\t.getScaledInstance(38, 38, 4);\r\n\t\tarray[2].setIcon(new ImageIcon(redslide));\r\n\t\tarray[3].setIcon(new ImageIcon(redslide));\r\n\t\tImage redslideend = ImageIO.read(getClass().getResource(\"/images\\\\slides\\\\redSlideEnd.png\"))\r\n\t\t\t\t.getScaledInstance(38, 38, 4);\r\n\t\tarray[4].setIcon(new ImageIcon(redslideend));\r\n\t\tarray[9].setIcon(new ImageIcon(redslidestart));\r\n\t\tarray[10].setIcon(new ImageIcon(redslide));\r\n\t\tarray[11].setIcon(new ImageIcon(redslide));\r\n\t\tarray[12].setIcon(new ImageIcon(redslide));\r\n\t\tarray[13].setIcon(new ImageIcon(redslideend));\r\n\t}", "protected void addImageIcons(String key) {\n Image normal = ResourceManager.getImage(\"orderButton.normal.\" + key);\n Image highlighted = ResourceManager.getImage(\"orderButton.highlighted.\" + key);\n Image pressed = ResourceManager.getImage(\"orderButton.pressed.\" + key);\n Image disabled = ResourceManager.getImage(\"orderButton.disabled.\" + key);\n orderButtonImageCount = ((normal == null) ? 0 : 1)\n + ((highlighted == null) ? 0 : 1)\n + ((pressed == null) ? 0 : 1)\n + ((disabled == null) ? 0 : 1);\n if (hasOrderButtons()) {\n putValue(BUTTON_IMAGE, new ImageIcon(normal));\n putValue(BUTTON_ROLLOVER_IMAGE, new ImageIcon(highlighted));\n putValue(BUTTON_PRESSED_IMAGE, new ImageIcon(pressed));\n putValue(BUTTON_DISABLED_IMAGE, new ImageIcon(disabled));\n } else {\n logger.warning(\"Missing \" + (4-orderButtonImageCount)\n + \" orderButton images for \" + getId());\n }\n }", "private JButton getJButton() {\r\n\t\tif (jButton == null) {\r\n\t\t\tjButton = new JButton();\r\n\t\t\tjButton.setBounds(new Rectangle(172, 11, 71, 26));\r\n\t\t\tjButton.setText(\"Button\");\r\n\t\t\tjButton.addActionListener(new MultiHighlight(jTextArea, \"aeiouAEIOU\"));\r\n\t\t}\r\n\t\treturn jButton;\r\n\t}", "public JButton getbtnViewAnswerImage() {\r\n\t\treturn btnViewAnswerImage;\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getSource()==imgBtn) {\n\t\t\t\n\t\t\timgBtn.setSize(INT_VALUE*10, INT_VALUE*10);\n\t\t}\n\t}", "private void makeDayButtons() \n\t{\n\t\t\n\t\tSystem.out.println(monthMaxDays);\n\t\tfor (int i = 1; i <= monthMaxDays; i++) \n\t\t{\n\t\t\t//the first day starts from 1\n\t\t\tfinal int dayNumber = i;\n\t\t\t\n\t\t\t//create new button\n\t\t\tJButton day = new JButton(Integer.toString(dayNumber));\n\t\t\tday.setBackground(Color.WHITE);\n\t\n\t\t\t//attach a listener\n\t\t\tday.addActionListener(new \n\t\t\t\t\tActionListener() \n\t\t\t\t\t{\n\t\t\t\t\t\tpublic void actionPerformed(ActionEvent arg0) \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\t//if button is pressed, highlight it \n\t\t\t\t\t\t\tborderSelected(dayNumber -1);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//show the event items in the box on the right\n\t\t\t\t\t\t\twriteEvents(dayNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tchangeDateLabel(dayNumber);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//make these buttons available for use\n\t\t\t\t\t\t\tnextDay.setEnabled(true);\n\t\t\t\t\t\t\tprevDay.setEnabled(true);\n\t\t\t\t\t\t\tcreateButton.setEnabled(true);\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t\n\t\t\t//add this button to the day button ArrayList\n\t\t\tbuttonArray.add(day);\n\t\t}\n\t}", "private void setCaptureButtonImages()\n\t{\n\t\tif(m_CaptureButtons == null)\n\t\t\treturn;\n\t\tCameraActivity camaraActivity = this.getCameraActivity();\n\t\tif(!Handle.isValid(m_CaptureButtonBgHandle))\n\t\t\tm_CaptureButtonBgHandle = m_CaptureButtons.setPrimaryButtonBackground(camaraActivity.getDrawable(R.drawable.capture_button_slow_motion_border), 0);\n\t\tif(!Handle.isValid(m_CaptureButtonIconHandle))\n\t\t\tm_CaptureButtonIconHandle = m_CaptureButtons.setPrimaryButtonIcon(camaraActivity.getDrawable(R.drawable.capture_button_slow_motion_icon), 0);\n\t}", "private ImageButton makeImageButton(XmlNode node, String imagePath,\n String action) {\n if (imagePath == null) {\n imagePath = node.getAttribute(ATTR_IMAGE, \"no path\");\n }\n try {\n Image image = IfcApplet.getImage(imagePath);\n Image overImage =\n IfcApplet.getImage(node.getAttribute(ATTR_OVERIMAGE,\n (String) null));\n Image downImage =\n IfcApplet.getImage(node.getAttribute(ATTR_DOWNIMAGE,\n (String) null));\n int w = node.getAttribute(ATTR_WIDTH, -1);\n int h = node.getAttribute(ATTR_HEIGHT, -1);\n boolean border = node.getAttribute(ATTR_BORDER, false);\n boolean onPress = node.getAttribute(ATTR_EVENT,\n \"onclick\").equals(\"onpress\");\n Dimension dim = null;\n\n if ((w > 0) && (h > 0)) {\n dim = new Dimension(w, h);\n }\n ImageButton tb = new ImageButton(image, overImage, downImage,\n dim, border, onPress);\n String key = node.getAttribute(ATTR_KEY);\n if (key != null) {\n keyToComponent.put(key.toLowerCase(), tb);\n }\n\n if (action == null) {\n action = node.getAttribute(ATTR_ACTION, (String) null);\n }\n if (action != null) {\n tb.setActionListener(this);\n tb.setAction(action);\n }\n\n return tb;\n } catch (Exception exc) {\n exc.printStackTrace();\n }\n\n return null;\n }", "private HBox createButtons() {\n\t\tButton solve = new Button(\"Solve\");\n\t\tButton clear = new Button(\"Clear\");\n\t\tButton quit = new Button(\"Quit\");\n\t\t\n\t\tsolve.setStyle(\"-fx-font: 12 arial; -fx-base: #336699;\");\n\t\tclear.setStyle(\"-fx-font: 12 arial; -fx-base: #336699;\");\n\t\tquit.setStyle(\"-fx-font: 12 arial; -fx-base: #336699;\");\n\t\t\n\t\tsolve.setOnAction(e -> solve());\n\t\tclear.setOnAction(e -> clear());\n\t\tquit.setOnAction(e -> quit());\n\t\t\n\t\tHBox buttons = new HBox();\n\t\tbuttons.setSpacing(20);\n\t\tbuttons.setPadding(new Insets(20,20,20,20));\n\t\tbuttons.setAlignment(Pos.CENTER);\n\t\tbuttons.getChildren().addAll(solve, clear, quit);\n\t\tbuttons.setStyle(\"-fx-background-color: #DCDCDC;\");\n\t\t\n\t\treturn buttons;\n\t}", "private JToggleButton createJToggleButton(String name, ImageIcon image) {\n\t\t// Create new JToggleButton.\n\t\tJToggleButton button = new JToggleButton();\n\t\tbutton.setName(name);\n\n\t\t// Set action command of the new JToggleButton to be name.\n\t\tbutton.setActionCommand(name);\n\t\tbutton.setToolTipText(name);\n\n\t\t// Set icon of the action.\n\t\tbutton.setIcon(image);\n\t\tif (image != null) {\n\t\t\tDimension preferredSize = new Dimension(image.getIconWidth() + 4,\n\t\t\t\t\timage.getIconHeight() + 4);\n\t\t\tbutton.setPreferredSize(preferredSize);\n\t\t}\n\n\t\t// Add listener into the button.\n\t\tbutton.addActionListener(listener);\n\n\t\t// Put the name and button pair into the member buttonsMap;\n\t\tbuttonsMap.put(name, button);\n\n\t\t// Return the button.\n\t\treturn button;\n\t}", "@Override\n\tpublic ArrayList<Button> getButtonArray() {\n\t\treturn super.getButtonArray();\n\t}", "private void groupButton() {\n ButtonGroup bg1 = new ButtonGroup();\n \n bg1.add(excellentbtn);\n bg1.add(goodbtn);\n bg1.add(normalbtn);\n bg1.add(badbtn);\n bg1.add(worstbtn);\n }", "public void createButtons() {\n\n addRow = new JButton(\"Add row\");\n add(addRow);\n\n deleteRow = new JButton(\"Delete row\");\n add(deleteRow);\n }", "@Override\n protected void addButtons()\n {\n JLabel agentOptions = new JLabel(\"Client Options \", SwingConstants.CENTER);\n addComponentToGridBag(this, agentOptions, 0, 0, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n\n JButton agentSendMessage = new JButton(\"Send Message\");\n addComponentToGridBag(this, agentSendMessage, 0, 2, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentSendMessage.addActionListener((ActionEvent e) ->\n {\n String to = getTo();\n String content = getContent(to);\n sendMessage(to, content);\n });\n\n JButton agentShowPortal = new JButton(\"Show Portal\");\n addComponentToGridBag(this, agentShowPortal, 0, 3, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentShowPortal.addActionListener((ActionEvent e) ->\n {\n displayConnections();\n });\n\n JButton agentexit = new JButton(\"Exit\");\n addComponentToGridBag(this, agentexit, 0, 5, 1, 1, GridBagConstraints.CENTER, GridBagConstraints.BOTH);\n agentexit.addActionListener((ActionEvent e) ->\n {\n System.exit(0);\n });\n }", "private void createButtonsPane(VBox labelsPane){\n\t\tHBox buttonsPane = new HBox();\n\t\tButton easy = new Button(\"EASY\");\n\t\teasy.setFont(new Font(\"Arial Black\", 12));\n\t\teasy.setTextFill(Color.BLUE);\n\t\teasy.setFocusTraversable(false);\n\t\tButton medium = new Button(\"MEDIUM\");\n\t\tmedium.setFont(new Font(\"Arial Black\", 12));\n\t\tmedium.setTextFill(Color.BLUE);\n\t\tmedium.setFocusTraversable(false);\n\t\tButton hard = new Button(\"HARD\");\n\t\thard.setFont(new Font(\"Arial Black\", 12));\n\t\thard.setTextFill(Color.BLUE);\n\t\thard.setFocusTraversable(false);\n\t\tbuttonsPane.getChildren().addAll(easy, medium, hard);\n\t\tbuttonsPane.setMargin(easy, new Insets(10,5,5,5));\n\t\tbuttonsPane.setMargin(medium, new Insets(10,5,5,5));\n\t\tbuttonsPane.setMargin(hard, new Insets(10,5,5,5));\n\t\tbuttonsPane.setSpacing(20);\n\t\tbuttonsPane.setAlignment(Pos.CENTER);\n\t\tbuttonsPane.setStyle(\"-fx-background-color: gray;\");\n\t\teasy.setOnAction(new EasyHandler());\n\t\tmedium.setOnAction(new MediumHandler());\n\t\thard.setOnAction(new HardHandler());\n\t\tlabelsPane.getChildren().add(buttonsPane);\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n \n \n String texto, contenido;\n int fila=0, columna=0;\n \n JButton boton = (JButton)e.getSource();\n texto = boton.getText();\n \n //Cuando es bomba\n if(texto.equals(\" \")){\n //System.out.println(\"ENTRO\");\n \n boton.setIcon(new ImageIcon(getClass().getResource(\"../images/bombtablero.png\")));\n \n \n for(int i =0; i<gFilas; i++){\n for(int j=0; j<gColumnas; j++){\n\n contenido = this.boton[i][j].getText();\n\n if(contenido.equals(\" \")){\n //System.out.println(\"ENTRO!\");\n Image imagenescalada= new ImageIcon(getClass().getResource(\"../images/bombtablero.png\")).getImage().getScaledInstance(((int)500/gFilas), ((int)500/gColumnas), Image.SCALE_SMOOTH);\n \n this.boton[i][j].setIcon(new ImageIcon(imagenescalada));\n \n\n }\n this.boton[i][j].setEnabled(false);\n }\n }\n \n \n JOptionPane.showMessageDialog(null, \"Sorry, You lose!\");\n \n \n }else{\n boton.setEnabled(false);\n \n \n for(int i =0; i<this.boton.length; i++){\n for(int j=0; j<this.boton.length; j++){\n if(boton == this.boton[i][j]){\n fila=i;\n columna=j;\n }\n }\n }\n this.buscarMinas(fila, columna);\n this.clicks(fila, columna);\n \n \n \n }\n \n \n \n \n }", "private void init(){\r\n\t\tImageIcon newTaskImg = new ImageIcon(\"resources/images/New.png\");\r\n\t\tImageIcon pauseImg = new ImageIcon(\"resources/images/Pause.png\");\r\n\t\tImageIcon resumeImg = new ImageIcon (\"resources/images/Begin.png\");\r\n\t\tImageIcon stopImg = new ImageIcon(\"resources/images/Stop.png\");\r\n\t\tImageIcon removeImg = new ImageIcon(\"resources/images/Remove.gif\");\r\n\t\tImageIcon shareImg = new ImageIcon(\"resources/images/Share.png\");\r\n\t\tImageIcon inboxImg = new ImageIcon(\"resources/images/Inbox.png\");\r\n\t\t\r\n\t\tnewTask = new JButton(newTaskImg);\r\n\t\tnewTask.setToolTipText(\"New Task\");\r\n\t\tpause = new JButton (pauseImg);\r\n\t\tpause.setToolTipText(\"Pause\");\r\n\t\trestart = new JButton (resumeImg);\r\n\t\trestart.setToolTipText(\"Restart\");\r\n\t\tstop = new JButton(stopImg);\r\n\t\tstop.setToolTipText(\"Stop\");\r\n\t\tremove = new JButton(removeImg);\r\n\t\tremove.setToolTipText(\"Remove\");\r\n\t\tshare = new JButton(shareImg);\r\n\t\tshare.setToolTipText(\"Share\");\r\n\t\tinbox = new JButton(inboxImg);\r\n\t\tinbox.setToolTipText(\"Inbox\");\r\n\t\t\r\n\t}", "private void setupButtons() {\n for (int i = 0; i < players.size(); i++) {\n final int j = i + 1;\n players.get(i).setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n buttonPushed(j);\n }\n });\n }\n }", "private void createBottomButtons() {\n // Create a composite that will contain the control buttons.\n Composite bottonBtnComposite = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, true);\n gl.horizontalSpacing = 10;\n bottonBtnComposite.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n bottonBtnComposite.setLayoutData(gd);\n\n // Create the Interpolate button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n interpolateBtn = new Button(bottonBtnComposite, SWT.PUSH);\n interpolateBtn.setText(\"Interpolate\");\n interpolateBtn.setLayoutData(gd);\n interpolateBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n ColorData upperColorData = upperColorWheel.getColorData();\n ColorData lowerColorData = lowerColorWheel.getColorData();\n\n colorBar.interpolate(upperColorData, lowerColorData, rgbRdo\n .getSelection());\n undoBtn.setEnabled(true);\n updateColorMap();\n }\n });\n\n // Create the Undo button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n undoBtn = new Button(bottonBtnComposite, SWT.PUSH);\n undoBtn.setText(\"Undo\");\n undoBtn.setEnabled(false);\n undoBtn.setLayoutData(gd);\n undoBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n undoBtn.setEnabled(colorBar.undoColorBar());\n updateColorMap();\n redoBtn.setEnabled(true);\n }\n });\n\n // Create the Redo button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n redoBtn = new Button(bottonBtnComposite, SWT.PUSH);\n redoBtn.setText(\"Redo\");\n redoBtn.setEnabled(false);\n redoBtn.setLayoutData(gd);\n redoBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n redoBtn.setEnabled(colorBar.redoColorBar());\n updateColorMap();\n undoBtn.setEnabled(true);\n }\n });\n\n // Create the Revert button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n revertBtn = new Button(bottonBtnComposite, SWT.PUSH);\n revertBtn.setText(\"Revert\");\n revertBtn.setLayoutData(gd);\n revertBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n colorBar.revertColorBar();\n updateColorMap();\n undoBtn.setEnabled(false);\n redoBtn.setEnabled(false);\n }\n });\n\n // Create the Save button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n saveBtn = new Button(bottonBtnComposite, SWT.PUSH);\n saveBtn.setText(\"Save\");\n saveBtn.setLayoutData(gd);\n if( seldCmapName == null ) {\n saveBtn.setEnabled(false);\n }\n \n saveBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n ColorMap cm = (ColorMap) cmapParams.getColorMap();\n seldCmapName = selCmapCombo.getText();\n \n// int sepIndx = seldCmapName.indexOf(File.separator);\n// String cmapCat = seldCmapName.substring(0,seldCmapName.indexOf(File.separator));\n// String cmapName = seldCmapName.substring( seldCmapName.indexOf(File.separator));\n if (lockedCmaps != null && lockedCmaps.isLocked(seldCmapName)) {\n \tMessageDialog confirmDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Save Colormap\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" already exists and is locked.\\n\\n\" +\n \t\t\t\"You cannot overwrite it.\",\n \t\t\tMessageDialog.INFORMATION, new String[]{\"OK\"}, 0);\n \tconfirmDlg.open();\n \tcolorBar.undoColorBar();\n updateColorMap();\n \treturn;\n } \n else if( ColorMapUtil.colorMapExists( seldCmapCat, seldCmapName ) ) {\n \tMessageDialog confirmDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Save Colormap\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" already exists.\\n\\n\" +\n \t\t\t\"Do you want to overwrite it?\",\n \t\t\tMessageDialog.QUESTION, new String[]{\"Yes\", \"No\"}, 0);\n \tconfirmDlg.open();\n\n \tif( confirmDlg.getReturnCode() == MessageDialog.CANCEL ) {\n \t\treturn;\n \t}\n }\n\n try {\n ColorMapUtil.saveColorMap( cm, seldCmapCat, seldCmapName );\n \n MessageDialog msgDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Colormap Saved\", null, \n \t\t\t\"Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\" Saved.\",\n \t\t\tMessageDialog.INFORMATION, new String[]{\"OK\"}, 0);\n \tmsgDlg.open();\n } catch (VizException e) {\n MessageDialog msgDlg = new MessageDialog( \n \t\t\tNcDisplayMngr.getCaveShell(), \n \t\t\t\"Error\", null, \n \t\t\t\"Error Saving Colormap \" +seldCmapCat+File.separator +seldCmapName + \n \t\t\t\"\\n\"+e.getMessage(),\n \t\t\tMessageDialog.ERROR, new String[]{\"OK\"}, 0);\n \tmsgDlg.open();\n }\n\n completeSave();\n }\n });\n\n\n // \n // Create the Delete button.\n gd = new GridData(GridData.FILL_HORIZONTAL);\n gd.grabExcessHorizontalSpace = false;\n deleteBtn = new Button(bottonBtnComposite, SWT.PUSH);\n deleteBtn.setText(\"Delete\");\n deleteBtn.setLayoutData(gd);\n deleteBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n \tdeleteColormap();\n }\n });\n Label sep = new Label(shell, SWT.SEPARATOR|SWT.HORIZONTAL);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n sep.setLayoutData(gd);\n\n // \n // Create the Delete button.\n gd = new GridData(GridData.HORIZONTAL_ALIGN_END);\n Button closeBtn = new Button(shell, SWT.PUSH);\n closeBtn.setText(\" Close \");\n closeBtn.setLayoutData(gd);\n closeBtn.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n \tshell.dispose();\n }\n });\n }", "private void createRgbHsbButtons() {\n \t\n Composite comp1 = new Composite(shell, SWT.NONE);\n GridLayout gl = new GridLayout(3, false);\n gl.horizontalSpacing = 10;\n comp1.setLayout(gl);\n GridData gd = new GridData(GridData.FILL_HORIZONTAL);\n comp1.setLayoutData(gd);\n\n // Create a group to contain the RGB and HSB radio buttons.\n Group colorGroup = new Group(comp1, SWT.NONE);\n colorGroup.setText(\" Use color model: \");\n\n RowLayout groupRowLayout = new RowLayout();\n groupRowLayout.marginLeft = 10;\n groupRowLayout.marginRight = 10;\n groupRowLayout.spacing = 10;\n colorGroup.setLayout(groupRowLayout);\n\n // Create the RGB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the RGB\n // sliders.\n rgbRdo = new Button(colorGroup, SWT.RADIO);\n rgbRdo.setText(\"RGB\");\n rgbRdo.setSelection(true);\n rgbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n\n // Create the HSB radio button. When the radio button is selected\n // update the upper and lower color wheel objects to display the HSB\n // sliders.\n hsbRdo = new Button(colorGroup, SWT.RADIO);\n hsbRdo.setText(\"HSB\");\n hsbRdo.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent event) {\n changeColorWheels();\n }\n });\n \n Composite catComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 20;\n catComp.setLayout(gl);\n gd = new GridData(GridData.CENTER);\n gd.horizontalAlignment = SWT.CENTER;\n \n catComp.setLayoutData(gd);\n\n Label selCatLbl = new Label( catComp, SWT.None );\n selCatLbl.setText(\"Category\");\n \n final Combo selCmapCatCombo = new Combo( catComp, SWT.DROP_DOWN | SWT.READ_ONLY );\n selCmapCatCombo.setItems( availColorMapCats );\n selCmapCatCombo.select(0);\n \n selCmapCatCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCat = selCmapCatCombo.getText();\n \t\tif( seldCat.equals( seldCmapCat ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapCat = seldCat;\n \t\tseldCmapName = null;\n \t\tavailColorMaps.clear();\n \t\t\n for( String cmap : ColorMapUtil.listColorMaps(seldCmapCat) ) {\n \tif( seldCmapName == null ) {\n \t\tseldCmapName = cmap;\n \t\tif( !initColorMap() ) {\n \t\tseldCmapName = null;\n \t\t\tcontinue; // don't add to the list\n \t\t}\n \t}\n \tavailColorMaps.add(cmap);\n }\n \t\n createSliderData();\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n Composite cmapComp = new Composite(comp1, SWT.NONE);\n gl = new GridLayout(1, false);\n gl.horizontalSpacing = 10;\n cmapComp.setLayout(gl);\n gd = new GridData(GridData.FILL_HORIZONTAL);\n cmapComp.setLayoutData(gd);\n\n Label selCmapLbl = new Label( cmapComp, SWT.None );\n selCmapLbl.setText(\"Colormap\");\n \n selCmapCombo = new Combo( cmapComp, SWT.DROP_DOWN );\n selCmapCombo.setItems( availColorMaps.toArray(new String[0] ) );\n selCmapCombo.select(0);\n \n selCmapCombo.addSelectionListener( new SelectionAdapter() {\n \tpublic void widgetSelected(SelectionEvent event) {\n \t\tString seldCmap = selCmapCombo.getText();\n \t\tif( seldCmap.equals( seldCmapName ) ) {\n \t\t\treturn;\n \t\t}\n \t\t\n \t\tseldCmapName = seldCmap;\n\n \t\tif( initColorMap() ) {\n createSliderData();\n \t\t}\n colorBar.setNewColorMap(sliderText, colorArray);\n \t}\n });\n \n// selCmapCombo.addModifyListener( new ModifyListener() {\n//\t\t\t@Override\n//\t\t\tpublic void modifyText(ModifyEvent e) { \n//\t\t\t\tseldCmapName = selCmapCombo.getText();\n//\t\t\t}\n// });\n }", "public void addPanelActionListeners() {\n\n iconBase = new IconFactory();\n\n JButton[] iconsArray = LeftPanel.getIconsArray();\n for (JButton button : iconsArray) {\n button.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseClicked(MouseEvent e) {\n super.mouseClicked(e);\n selectedIconText = button.getText();\n }\n });\n\n button.addMouseListener(new MouseAdapter() {\n @Override\n public void mouseReleased(MouseEvent e) {\n super.mouseReleased(e);\n int tabIndex = jTabbedPane.getSelectedIndex();\n WorkingPanel tab = (WorkingPanel) jTabbedPane.getComponent(tabIndex);\n if (tab.getMousePosition() != null) {\n addIconToTab(tab, button.getText());\n tab.repaint();\n }\n\n }\n });\n\n button.addMouseMotionListener(new MouseAdapter() {\n @Override\n public void mouseDragged(MouseEvent e) {\n super.mouseDragged(e);\n selectedIconText = button.getText();\n\n int tabIndex = jTabbedPane.getSelectedIndex();\n WorkingPanel tab = (WorkingPanel) jTabbedPane.getComponent(tabIndex);\n\n icon = iconBase.getIconObject(button.getText(), tab);\n if (icon != null) {\n icon.draw(getGraphics(), (int) (MouseInfo.getPointerInfo().getLocation().getX() - button.getWidth() / 3),\n (int) (MouseInfo.getPointerInfo().getLocation().getY() - button.getHeight() / 3));\n }\n repaint();\n }\n });\n }\n }" ]
[ "0.7676482", "0.7087777", "0.7030743", "0.69805634", "0.6748089", "0.6738427", "0.6668417", "0.6665486", "0.64985204", "0.64819735", "0.6372702", "0.63460654", "0.6327905", "0.63218355", "0.63198954", "0.63147616", "0.6287388", "0.62814367", "0.62756795", "0.62659675", "0.6255878", "0.6247933", "0.62442243", "0.62431455", "0.62266755", "0.6189714", "0.6176988", "0.6167952", "0.6165775", "0.6157847", "0.61368054", "0.6129096", "0.61289275", "0.6121018", "0.61137545", "0.6093457", "0.6093108", "0.6089664", "0.6085422", "0.6071881", "0.60653853", "0.60643566", "0.6063434", "0.60588306", "0.605594", "0.6025423", "0.6023264", "0.60044837", "0.6001528", "0.59874564", "0.5985749", "0.59829235", "0.59811735", "0.59616715", "0.5961272", "0.5960778", "0.59438074", "0.59350955", "0.5930623", "0.5928984", "0.5924711", "0.59238565", "0.59116876", "0.5909947", "0.590914", "0.59058166", "0.5903152", "0.5903067", "0.5876067", "0.587515", "0.58748984", "0.5865836", "0.58550155", "0.5851836", "0.5833892", "0.5830957", "0.582917", "0.58201206", "0.58069247", "0.58038396", "0.5803357", "0.5803197", "0.57949007", "0.57905513", "0.5784372", "0.5783507", "0.5783037", "0.5775753", "0.5775594", "0.5770442", "0.5768021", "0.5765651", "0.57533205", "0.57529414", "0.57451606", "0.5741203", "0.574102", "0.57364595", "0.57311237", "0.5729131", "0.5727561" ]
0.0
-1
TODO Autogenerated method stub
@Override public void actionPerformed(ActionEvent e) { button_press.playSound(BUTTON_PRESS); }
{ "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 actionPerformed(ActionEvent e) { button_press.playSound(BUTTON_PRESS); }
{ "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 actionPerformed(ActionEvent e) { button_press.playSound(BUTTON_PRESS); }
{ "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 actionPerformed(ActionEvent e) { button_press.playSound(BUTTON_PRESS); }
{ "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 actionPerformed(ActionEvent e) { button_press.playSound(BUTTON_PRESS); }
{ "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
All code in entrypoint is created by us.
public static void main(String[] args) { Stockfish stockfish = new Stockfish(); String startFEN = "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"; // initialize and connect to engine if (stockfish.startEngine()) { System.out.println("Stocfish engine is running"); } else { System.out.println("Stockfish engine failed to start"); } // initialize two chess boards SjakkSpill brett = new SjakkSpill(stockfish); brett.setLocation(200, 0); brett.setTitle("Brett 1"); SjakkSpill brett2 = new SjakkSpill(stockfish); brett2.setLocation(800, 0); brett2.setTitle("Brett 2"); brett.add_competitor(brett2); brett2.add_competitor(brett); // drawing the board from its starting position System.out.println("Board state :"); stockfish.drawBoard(startFEN); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public MainEntryPoint() {\r\n\r\n }", "@Override\n\tpublic void entry() {\n\n\t}", "public static void main() {\n \n }", "private void entryAction() {\n\t}", "public void startup(){}", "@Override\n protected void startUp() {\n }", "private ThoseMain()\n {\n // Do nothing\n }", "private Main() {\n\n super();\n }", "@Override\n public void startup() {\n }", "public static void main(){\n\t}", "private DungeonBotsMain() {\n\t\t// Does nothing.\n\t}", "public static void main() {\n }", "@Override\n protected void codeGenMain(DecacCompiler compiler, Registres regs, Pile p) {\n }", "public static void main(String[] args)\n { \n // Create a new instance of the application and make the currently\n \tEntryPoint theApp = new EntryPoint(); \n \t// running thread the application's event dispatch thread.\n theApp.enterEventDispatcher();\n }", "@Override\n\tpublic void earlyStartup() {\n\t}", "private Main() {}", "public static void main()\n\t{\n\t}", "public void startup()\n\t{\n\t\t; // do nothing\n\t}", "private Main() {\n }", "public abstract void startup();", "public static void main(String[]args) {\n\t\n\t\t\n\n}", "EntryPoint createEntryPoint();", "public void doMyStartupStuff() {\r\n\t\tSystem.out.println(\"TrackCoach: inside method doMyStartupStuff\");\r\n\t}", "void entry() throws Exception;", "private Main ()\n {\n super ();\n }", "void startup();", "void startup();", "@Override\n protected void appStart() {\n }", "public static void main(String[] args) {\n\t\t/**Mandamos a llamar el metodo estatico ya que no requiere ser instanciado*/\n\t\tClaseInservible.ejecutarEstatico();\n\t}", "public static void main(String[] args){\n\n MyApp myApp = new MyApp(); //1\n myApp.runMyApp(); //2\n System.out.println(\"End of Program\"); //3\n }", "public static void main(String[] args) {\n \n \n \n \n }", "public EntryPoint()\n { \n \tpushScreen(new HelperScreen());\n }", "public static void main(String[] args) {\n // TODO code application logic here\n // some testing? or actually we can't run it standalone??\n }", "public void doMyStartupStuff(){\r\n System.out.println(\"TrackCoach: inside method doMyStartupStuff\");\r\n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\n \n }", "public static void main(String[] args) {\r\n// Use for unit testing\r\n }", "public static void main (String []args){\n }", "public static void main(String []args){\n }", "public static void main(String []args){\n }", "public String getEntryPoint() {\n return entryPoint;\n }", "public String getEntrypoint() {\n return entrypoint;\n }", "@PostConstruct // bcoz of java 9 and higher version i need to download jar file\r\n\tpublic void doMyStartupStuff() {\r\n\t\tSystem.out.println(\">> TennisCoach: inside of doMyStrtupStuff()\");\r\n\t}", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n \n \n }", "public static void main(String[] args) {\n\n return;\n }", "public static void main(String[] args) throws ClassNotFoundException, IOException, ParseException {\n\t\tEntryPoint entry= new EntryPoint();\n\t\t\t\n\t entry.mainMenu();\n\t\t\n\t\t\n\t}", "public static void main(String []args){\n\n }", "public static void main(String[] args) {\n\t \t\n\t \t\n\t }", "public void start()\n/* 354: */ {\n/* 355:434 */ onStartup();\n/* 356: */ }", "static void main(String[] args) {\n }", "public static void main(String[] args) {\n \r\n\t}", "public static void main(String args[]) throws Exception\n {\n \n \n \n }", "public Main() {\n \n \n }", "public static void main(String[] args){\n //WebFactory.setLoaderFactory(() -> new HelperLoader());\n launch(args);\n }", "abstract public PyCode getMain();", "public static void main(String[] args) {\n \n \n \n\t}", "public static void main(String... args) {\n doMain().run();\n }", "public Main() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\r\n\t\t//method body\r\n\t}", "public MainEntry() {\n\t\tthis.taskController = new Controller();\n\t}", "public Main() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\r\n\t}", "public static void main(String[] args) {\n\r\n}", "public static void main(String[] args) throws Exception {\n\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t}", "public static void main(String[]args) {\n\t}", "public static void main(String[] args) {\n \n }", "public void Main(){\n }", "public static void main(String[] args) {\n\r\n Starter starter = new Starter();\r\n starter.start();\r\n\r\n\r\n }", "static void main(String[] args)\n {\n }", "public static void main(String[] args) {\n \n\n }", "public static void main(String[] args) {\n \n\t\t}", "@Override\n public void preRun() {\n super.preRun();\n }", "public static void main(String arg[]) {\n\n\t\tUtility.runApplication();\n\t}", "public static void main(String[] args) {}", "public static void main(String[] args) {}", "public static void main(String args[]) {\n\t\t\r\n\t\t@PostConstruct\r\n\t\tpublic void doMyStartupStuff() {\r\n\t\t\tSystem.out.println(\"TennisCoach: inside of doMyStartupStuff()\");\r\n\t\t}\r\n\t\t\r\n\t\t// define my destroy method\r\n\t\t\r\n\t\t@PreDestroy\r\n\t\tpublic void doMyCleanupStuff() {\r\n\t\t\tSystem.out.println(\"TennisCoach: inside of doMyCleanupStuff()\");\t\t\r\n\t\t}\r\n\t }", "public static void main(String[] args) {\t}", "public void doMyStartupStuff() {\n System.out.println(\"init method\");\n }", "public static void main(String[] args) {\n\t\tnon_static(); // static contain only static methods, variables\r\n//\t\tnon_static2();\r\n\t}", "private Main()\n {{\n System.err.println ( \"Internal error: \"+\n\t \"unexpected call to default constructor for Main.\" );\n System.exit(-127);\n }}", "public static void main(String[] args) {\n\t\r\n}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "public static void main(String[] args) {\n\t\t\r\n\t}", "default void buildMainSpace() throws Exception {\n buildMainBuildModules();\n buildMainCheckModules();\n buildMainGenerateAPIDocumentation();\n buildMainGenerateCustomRuntimeImage();\n }", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "public static void main(String[] args) {\r\n\t\t\r\n\t}", "static public void main(String[] args) {\n\t}", "public void runtimeCallback(final x10.core.Rail<java.lang.String> args) {\r\n // call the original app-main method\r\n p1.main(args);\r\n }" ]
[ "0.7054553", "0.6894727", "0.6859234", "0.6830556", "0.6607376", "0.65581167", "0.65129256", "0.6470371", "0.64590794", "0.6377289", "0.63667655", "0.6340962", "0.6310809", "0.63067293", "0.6305513", "0.63025683", "0.6289539", "0.62797916", "0.6273865", "0.62507206", "0.6232246", "0.6224477", "0.6219014", "0.62127674", "0.62105864", "0.6208465", "0.6208465", "0.61938775", "0.6182479", "0.61703163", "0.6156911", "0.6156791", "0.61532825", "0.6150345", "0.61479604", "0.61479604", "0.61479604", "0.61479604", "0.61479604", "0.61479604", "0.61474514", "0.61271226", "0.61187816", "0.61187816", "0.6090456", "0.60786176", "0.6073138", "0.6067863", "0.6067863", "0.6063847", "0.6053493", "0.6053401", "0.60525084", "0.6050958", "0.60426694", "0.6039716", "0.6036181", "0.6025077", "0.6016022", "0.6015037", "0.5984691", "0.59796214", "0.5978489", "0.59700286", "0.5969169", "0.59640574", "0.5962182", "0.59563464", "0.59526", "0.5945157", "0.5939952", "0.5934458", "0.5933679", "0.5930982", "0.59278333", "0.5918106", "0.59105176", "0.5907", "0.5907", "0.5893365", "0.5892774", "0.58927655", "0.5891422", "0.5890598", "0.588929", "0.58887845", "0.58887845", "0.58887845", "0.58887845", "0.58887845", "0.58887845", "0.58887845", "0.58887845", "0.58887845", "0.58816886", "0.58788294", "0.58788294", "0.58788294", "0.58788294", "0.5878677", "0.5875568" ]
0.0
-1
Creates an empty data model
public Data() { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DataModel createDataModel();", "public DataModel()\r\n {\r\n System.out.println(\"New DataModel created\");\r\n \r\n languageList = new LanguageList();\r\n }", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "DataGenModel()\n {\n }", "public Model() {\n\t}", "public Model() {\n\t}", "public static DataModelBuilder create() {\n return new DataModelBuilder();\n }", "public DefaultObjectModel ()\n {\n this (new Schema ());\n }", "public Model() {\n }", "public Model() {\n }", "public Model() {\n }", "private Model(){}", "public ComputerDataModel() {\n\n }", "public Model() {\n this(DSL.name(\"model\"), null);\n }", "public Model() {\n\n }", "public Model createBaseModel() {\n return ModelFactory.createDefaultModel();\n }", "@Test\n\tpublic void testCreateEmptyCarModel() {\n\t\tCarFactory _carFactory = new CarFactory();\n\n\t\tCarType _carType = CarType.valueOf((\"coupe\".toUpperCase()));\n\t\tString _make = \"BMW\";\n\t\tString _model = \"\";\n\t\tString _color = \"invalid_color\";\n\t\tint _year = 1999;\n\n\t\t// ---------------------------------------------\n\t\t// Creating an empty model car.\n\t\ttry {\n\t\t\t@SuppressWarnings(\"unused\")\n\t\t\tAbstractCar _unknown = _carFactory.buildCar(_carType, _make, _model, _color, _year);\n\n\t\t\tfail(\"Successfully created an invalid car (should not work).\");\n\t\t} catch (Exception expected_) {\n\t\t}\n\n\t}", "public Model() {\n this(Persistence.createEntityManagerFactory(PERSISTENCE_UNIT_NAME), new TextRepository());\n }", "public ModelBolting(){}", "DomainModel createDomainModel();", "protected Document createDefaultModel() {\n return new PlainDocument();\n }", "public Data() {}", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "public DieteticBrotherModel() {\n database = new Database();\n availableFood = database.initializeAvailableFood();\n recipes = database.initializeRecipes(availableFood);\n\n recipe = new Recipe(0, \"My Recipe\");\n }", "public static DataModel createEntity(EntityManager em) {\n DataModel dataModel = new DataModel()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .dataFormat(DEFAULT_DATA_FORMAT)\n .maxLength(DEFAULT_MAX_LENGTH)\n .precision(DEFAULT_PRECISION)\n .modelValues(DEFAULT_MODEL_VALUES);\n return dataModel;\n }", "@Test\r\n void testCreate() {\r\n assertNotNull(model);\r\n }", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "public Data() {\n }", "public Data() {\n }", "public Carmodel() {\n this(\"CarModel\", null);\n }", "GoalModel createGoalModel();", "public void createModel() {\n\t\tmyShop = ShopFactory.eINSTANCE.createShop();\n\n\t\tfinal Country dk = ShopFactory.eINSTANCE.createCountry();\n\t\tdk.setName(\"Denmark\");\n\t\tdk.setAbbreviation(\"DK\");\n\t\tmyShop.getCountries().add(dk);\n\n\t\tfinal Country se = ShopFactory.eINSTANCE.createCountry();\n\t\tse.setName(\"Sweden\");\n\t\tse.setAbbreviation(\"SE\");\n\t\tmyShop.getCountries().add(se);\n\n\t\tfinal Contact a = ShopFactory.eINSTANCE.createContact();\n\t\ta.setName(\"a\");\n\t\ta.setCity(\"A\");\n\t\ta.setCountry(dk);\n\t\tmyShop.getContacts().add(a);\n\n\t\tfinal Contact b = ShopFactory.eINSTANCE.createContact();\n\t\tb.setName(\"b\");\n\t\tb.setCity(\"A\");\n\t\tb.setCountry(se);\n\t\tmyShop.getContacts().add(b);\n\t}", "public FareModel() {\n }", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "public UserModel()\r\n\t{\r\n\t}", "public static MusicModel createModel() {\n return new MusicModelImpl();\n }", "HdbdtiModel createHdbdtiModel();", "private DataModelBuilder() {\n }", "public FoodModel()\n\t{\n\t\tgenerateRandomPosition();\n\t}", "private void emptyModel() {\n while (myModel.getRowCount() != 0) {\n myModel.removeRow(0);\n }\n }", "public UserModel()\n\t{}", "void create(Model model) throws Exception;", "public InitialData(){}", "private void generateModel() {\n // Initialize a new model object\n mCm = new CategoryModel[nodes.length];\n\n for (int i = 0; i < nodes.length; i++) {\n mCm[i] = new CategoryModel(nodes[i].id, nodes[i].title);\n }\n }", "@Generated\n public NewsModel() {\n }", "EisModel createEisModel();", "public UserModel() {\n }", "public DataModel(){\n this.listeners = new ArrayList<>();\n this.data = new ArrayList<>();\n }", "DataModel getDataModel ();", "private Model() {\n lists.put(ItemType.DEVELOPER, new ItemList());\n lists.put(ItemType.PROJECT, new ItemList());\n lists.put(ItemType.STORY, new ItemList());\n lists.put(ItemType.STORY_DEVELOPER, new ItemList());\n }", "private StadiumModel dummyDataStadium()\n\t{\n\t\tfinal StadiumModel wembley = new StadiumModel();\n\t\twembley.setCode(STADIUM_NAME);\n\t\twembley.setCapacity(STADIUM_CAPACITY);\n\t\treturn wembley;\n\t}", "public ModelManagerImpl() {\n this( null );\n }", "@Override\n\tpublic HomeModel create(HomeModel model) {\n\t\treturn null;\n\t}", "public CompanyData() {\r\n }", "public InvoiceModel() {\n \n }", "public personnelMedicalModel(){\n\n }", "private ColumnDefinitionModel createModel()\r\n {\r\n ColumnDefinitionModel model = new ColumnDefinitionModel();\r\n\r\n List<String> columnNames = Arrays.asList(ColumnHeaders.TIME.toString(), ColumnHeaders.LAT.toString(),\r\n ColumnHeaders.LON.toString(), ColumnHeaders.NAME.toString(), ColumnHeaders.NAME2.toString());\r\n\r\n CSVParseParameters parameters = new CSVParseParameters();\r\n parameters.setColumnNames(columnNames);\r\n\r\n parameters.setColumnsToIgnore(New.<Integer>list(4));\r\n\r\n SpecialColumn timeColumn = new SpecialColumn();\r\n timeColumn.setColumnIndex(0);\r\n timeColumn.setColumnType(ColumnType.TIMESTAMP);\r\n timeColumn.setFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n\r\n SpecialColumn latColumn = new SpecialColumn();\r\n latColumn.setColumnIndex(1);\r\n latColumn.setColumnType(ColumnType.LAT);\r\n latColumn.setFormat(\"Decimal\");\r\n\r\n SpecialColumn lonColumn = new SpecialColumn();\r\n lonColumn.setColumnIndex(2);\r\n lonColumn.setColumnType(ColumnType.LON);\r\n lonColumn.setFormat(\"Decimal\");\r\n\r\n parameters.getSpecialColumns().add(timeColumn);\r\n parameters.getSpecialColumns().add(latColumn);\r\n parameters.getSpecialColumns().add(lonColumn);\r\n\r\n model.setSelectedParameters(parameters);\r\n\r\n return model;\r\n }", "private void initializeModel() {\n\t\t\n\t}", "ZenModel createZenModel();", "InstanceModel createInstanceOfInstanceModel();", "public ChatModel() {\n\t}", "public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}", "public TaskBoardModel() {\n\n }", "CreationData creationData();", "public DummyModel(String data) {\n textData = data;\n }", "public UserData() {\n }", "public UsersDataVO() {\n }", "protected Document createDefaultModel()\n\t{\n\t\treturn new IntegerDocument();\n\t}", "public BankModel() {\n accounts = new ArrayList<AccountModel>();\n\n // Master account inbedded into system for easy access to test features.\n accounts.add(new AccountModel(\"c\", \"123\", 500));\n }", "Build_Model() {\n\n }", "public Model() {\r\n\t\t\tsuper();\r\n\t\t\tdao=new SerieADAO();\r\n\t\t\tthis.mapSeason=new HashMap<>();\r\n\t\t\tthis.mapTeam=new HashMap<>();\r\n\t\t\tthis.mapTeamBySeason=new HashMap<>();\r\n\t\t\tthis.mapMatch=new HashMap<>();\r\n\t\t\tthis.mapMatchBySeason=new HashMap<>();\r\n\r\n\t\r\n\t\t}", "protected List<DataModel> generateModel(){\n\t\tList<DataModel> list = new ArrayList<DataModel>();\n\t\t\n\t\tDataModel outTemperature = new DataModelTemperature(\"Outer Temperature\", this);\n\t\toutTemperature.setShouldAlarm(false);\n\t\toutTemperature.setMaxSafeValue(200);\n\t\toutTemperature.setHowManyPercentageToAdd(0.5);\n\t\toutTemperature.setVibeRate(2.42);\n\t\tlist.add(outTemperature);\n\t\t\n\t\tlist.add(new DataModelTemperature(\"Inner Temperature\", this));\n\t\tlist.add(new DataModelHumidity(\"Humidity\", this));\n\t\tlist.add(new DataModelOxygen(\"Oxygen\", this));\n\t\t\n\t\treturn list;\n\t}", "protected abstract D createData();", "PriceSummaryModel createInstanceOfPriceSummaryModel();", "public DirectoryModel() {\r\n\tthis(null);\r\n }", "public SqliteModelFactoryImpl()\n {\n super();\n }", "public PersonRecord() {}", "public WERecordDataModel()\n\t{\n\t\tsuper();\n\t\tsetEqFileName(RECORD_NAME);\n\t\tinitMessages();\n\t}", "public UsermodelFactoryImpl() {\r\n\t\tsuper();\r\n\t}", "public CompositeData()\r\n {\r\n }", "public WorldModel(){\t\n\t}", "protected PricingModel() {\n }", "public OfertaDisciplinaDataModel getDataModel() {\n \n if(dataModel == null){\n List<OfertaDisciplina> ofertas = ofertaDisciplinaFacade.findAll();\n dataModel = new OfertaDisciplinaDataModel(ofertas);\n }\n return dataModel;\n }", "UserModel()\n {/*Used for Gson*/}", "CsticModel createInstanceOfCsticModel();", "public MusicModel() {\n this.notes = new ArrayList<NoteColumn>();\n }", "public Model() {\n\t\tthis.map = new Map(37, 23);\n\t}", "public static Model newOf(Model model) {\n\t\tModel newModel = Model.newOf();\n\t\tnewModel.setTitle(model.getTitle());\n\t\tnewModel.setTableCode(model.getTableCode());\n\t\tnewModel.setDescription(model.getDescription());\n\t\treturn newModel;\n\t}", "public UsersDataSet() {}", "public DataBean() {\r\n \r\n }", "public BaseModel initObj() {\n\t\treturn null;\n\t}", "Model() {\r\n this.observers = new ArrayList<Observer>();\r\n\r\n init();\r\n }", "private void init() {\n\t\tthis.model = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);\n\t\tthis.model.setNsPrefixes(INamespace.NAMSESPACE_MAP);\n\n\t\t// create classes and properties\n\t\tcreateClasses();\n\t\tcreateDatatypeProperties();\n\t\tcreateObjectProperties();\n\t\t// createFraktionResources();\n\t}" ]
[ "0.74905765", "0.71738565", "0.70618534", "0.693051", "0.693051", "0.693051", "0.693051", "0.693051", "0.693051", "0.693051", "0.68710357", "0.68364805", "0.68364805", "0.67591554", "0.66964597", "0.6585122", "0.6585122", "0.6585122", "0.6573193", "0.65679914", "0.6562445", "0.653348", "0.6445871", "0.6403452", "0.6331901", "0.6327541", "0.6302787", "0.63007855", "0.63004977", "0.6268889", "0.6227102", "0.62259436", "0.61916935", "0.6166886", "0.61652595", "0.61652595", "0.61314803", "0.6129658", "0.6077043", "0.6073262", "0.6068043", "0.60664505", "0.6060153", "0.60587835", "0.60495234", "0.6041571", "0.6039169", "0.6030399", "0.6006713", "0.60031974", "0.59997064", "0.5996357", "0.5989852", "0.59860504", "0.59816265", "0.59674615", "0.59500945", "0.59404796", "0.5933548", "0.5930575", "0.59210855", "0.5903208", "0.5896407", "0.58955646", "0.58942896", "0.588724", "0.58830154", "0.5831178", "0.58195376", "0.5818968", "0.5815492", "0.5807095", "0.58057266", "0.5804616", "0.5799287", "0.5768626", "0.5765673", "0.57645196", "0.5755675", "0.5739508", "0.57340944", "0.5718505", "0.5715538", "0.57112014", "0.5709531", "0.5689395", "0.5689362", "0.5670946", "0.56688416", "0.56668633", "0.5661716", "0.56598914", "0.5652511", "0.56471425", "0.5646477", "0.5637026", "0.56331676", "0.5631531", "0.5631128", "0.56274384" ]
0.6299628
29
Creates a new Data model with data
public Data(Integer first, Integer second) { this.setFirst(first); this.setSecond(second); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "DataModel createDataModel();", "protected abstract D createData();", "public DataModel()\r\n {\r\n System.out.println(\"New DataModel created\");\r\n \r\n languageList = new LanguageList();\r\n }", "public static DataModelBuilder create() {\n return new DataModelBuilder();\n }", "public CreateData() {\n\t\t\n\t\t// TODO Auto-generated constructor stub\n\t}", "public hu.blackbelt.epsilon.runtime.model.test1.data.DataModel build() {\n final hu.blackbelt.epsilon.runtime.model.test1.data.DataModel _newInstance = hu.blackbelt.epsilon.runtime.model.test1.data.DataFactory.eINSTANCE.createDataModel();\n if (m_featureNameSet) {\n _newInstance.setName(m_name);\n }\n if (m_featureEntitySet) {\n _newInstance.getEntity().addAll(m_entity);\n } else {\n if (!m_featureEntityBuilder.isEmpty()) {\n for (hu.blackbelt.epsilon.runtime.model.test1.data.util.builder.IDataBuilder<? extends hu.blackbelt.epsilon.runtime.model.test1.data.Entity> builder : m_featureEntityBuilder) {\n _newInstance.getEntity().add(builder.build());\n }\n }\n }\n return _newInstance;\n }", "CreationData creationData();", "DataModel getDataModel ();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "Model createModel();", "public Data() {}", "public Data() {\n \n }", "@Override\n\tpublic Data getDataModelVariables() {\n\t\treturn new Data();\n\t}", "public DataModel(){\n this.listeners = new ArrayList<>();\n this.data = new ArrayList<>();\n }", "@Override()\n protected RelationshipData createNewData(final String _name)\n {\n return new RelationshipData(this, _name);\n }", "DataList createDataList();", "public Data() {\n }", "public Data() {\n }", "public Model(DataHandler data){\n //assign the data parameter to the instance\n //level variable data. The scope of the parameter\n //is within the method and that is where the JVM \n //looks first for a variable or parameter so we \n //need to specify that the instance level variable \n //is to be used by using the keyword 'this' followed \n //by the '.' operator.\n this.data = data;\n }", "DomainModel createDomainModel();", "public Object create( DataWrapper data) {\n return LoadManager.getItem(data.getString(\"type\"),data.getName());\n }", "DataType createDataType();", "public AddDataViewModel(AppDatabase database, int dataId) {\n data = database.dataDao().loadDataById(dataId);\n }", "FData createFData();", "DataGenModel()\n {\n }", "DataElement createDataElement();", "public ComputerDataModel() {\n\n }", "public static FileData createEntity() {\n FileData fileData = Reflections.createObj(FileData.class, Lists.newArrayList(\n\t\t FileData.F_NAME\n\t\t,FileData.F_PATH\n\t\t,FileData.F_SIZE\n\t\t,FileData.F_TYPE\n\t\t,FileData.F_DESCRIPTION\n ),\n\n\t\t DEFAULT_NAME\n\n\t\t,DEFAULT_PATH\n\n\t\t,DEFAULT_SIZE\n\n\t\t,DEFAULT_TYPE\n\n\n\n\n\n\n\t\t,DEFAULT_DESCRIPTION\n\n\t);\n return fileData;\n }", "public abstract DataType<T> newInstance();", "public static DataModel createEntity(EntityManager em) {\n DataModel dataModel = new DataModel()\n .key(DEFAULT_KEY)\n .label(DEFAULT_LABEL)\n .dataFormat(DEFAULT_DATA_FORMAT)\n .maxLength(DEFAULT_MAX_LENGTH)\n .precision(DEFAULT_PRECISION)\n .modelValues(DEFAULT_MODEL_VALUES);\n return dataModel;\n }", "public DataEntry create(long dataEntryId);", "E create(Resource data);", "void setDataModelFactory (DataModelFactory factory);", "public OfertaDisciplinaDataModel getDataModel() {\n \n if(dataModel == null){\n List<OfertaDisciplina> ofertas = ofertaDisciplinaFacade.findAll();\n dataModel = new OfertaDisciplinaDataModel(ofertas);\n }\n return dataModel;\n }", "DataPackage createDataPackage();", "private ColumnDefinitionModel createModel()\r\n {\r\n ColumnDefinitionModel model = new ColumnDefinitionModel();\r\n\r\n List<String> columnNames = Arrays.asList(ColumnHeaders.TIME.toString(), ColumnHeaders.LAT.toString(),\r\n ColumnHeaders.LON.toString(), ColumnHeaders.NAME.toString(), ColumnHeaders.NAME2.toString());\r\n\r\n CSVParseParameters parameters = new CSVParseParameters();\r\n parameters.setColumnNames(columnNames);\r\n\r\n parameters.setColumnsToIgnore(New.<Integer>list(4));\r\n\r\n SpecialColumn timeColumn = new SpecialColumn();\r\n timeColumn.setColumnIndex(0);\r\n timeColumn.setColumnType(ColumnType.TIMESTAMP);\r\n timeColumn.setFormat(\"yyyy-MM-dd'T'HH:mm:ss'Z'\");\r\n\r\n SpecialColumn latColumn = new SpecialColumn();\r\n latColumn.setColumnIndex(1);\r\n latColumn.setColumnType(ColumnType.LAT);\r\n latColumn.setFormat(\"Decimal\");\r\n\r\n SpecialColumn lonColumn = new SpecialColumn();\r\n lonColumn.setColumnIndex(2);\r\n lonColumn.setColumnType(ColumnType.LON);\r\n lonColumn.setFormat(\"Decimal\");\r\n\r\n parameters.getSpecialColumns().add(timeColumn);\r\n parameters.getSpecialColumns().add(latColumn);\r\n parameters.getSpecialColumns().add(lonColumn);\r\n\r\n model.setSelectedParameters(parameters);\r\n\r\n return model;\r\n }", "HdbdtiModel createHdbdtiModel();", "public DummyModel(String data) {\n textData = data;\n }", "public MonteurDetailModel(Object[][] data) {\n\t\tsetAfsprakenHeader(new String[] { \"Start Tijd\", \"Eind Tijd\",\n\t\t\t\t\"Bezigheid\", \"ReparatieID\", \"Monteur\" });\n\t\tsetAutoHeader(new String[] { \"Auto nummer\", \"Kenteken\", \"BouwJaar\",\n\t\t\t\t\"Merk\", \"Model\" });\n\n\t\tgeplandeAfspraken = data;\n\t\tautos = data;\n\n\t\tvoorNaam = \"Voornaam\";\n\t\tachterNaam = \"Achternaam\";\n\t\tadres = \"Straatnaam etc\";\n\t\twoonplaats = \"Kutgat\";\n\t\tpostcode = \"Vage nummers\";\n\n\t\tuurLoon = 20.00;\n\t\tpersoonID = 1337;\n\t}", "@Override\n\tpublic Model create() {\n\t\treturn null;\n\t}", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "@Test\n public void addModelData() {\n new FactoryInitializer()\n .initialize(\n ((tr, ev, is, np, md) -> new ResNetConv2DFactory(tr,ev,is,np,md).addModelData(new ArrayList<>()))\n );\n }", "public mainData() {\n }", "public DatasetHelper(DatasetHelper another){\n id= another.id;\n hash = another.hash;\n catalogueId = another.catalogueId;\n sourceType = another.sourceType;\n sourceLang = another.sourceLang;\n model = ModelFactory.createDefaultModel().add(another.model);\n uriSchema = another.uriSchema;\n }", "public InitialData(){}", "private DefaultCategoryDataset createDataset() {\n\t\t\n\t\tdataset.clear();\n\t\t\n\t\t// Query HIM to submit data for bar chart display \n\t\tHistoricalInfoMgr.getChartDataset(expNum);\n\n\n\t\treturn dataset; // add the data point (y-value, variable, x-value)\n\t}", "void create(Model model) throws Exception;", "public AppData() {\n super(0,Entry.DataColumn.values().length);\n setColumnIdentifiers(Arrays.stream(Entry.DataColumn.values()).map(Entry.DataColumn::getName).toArray());\n System.out.println(\"a new AppData has been constructed\");\n }", "private void initData() {\n Author steinbeck = new Author(\"John\", \"Steinbeck\");\n Publisher p1 = new Publisher(\"Covici Friede\", \"111 Main Street\", \"Santa Cruz\", \"CA\", \"95034\");\n Book omam = new Book(\"Of Mice And Men\", \"11234\", p1);\n \n publisherRepository.save(p1);\n\n steinbeck.getBooks().add(omam);\n omam.getAuthors().add(steinbeck);\n authorRepository.save(steinbeck);\n bookRepository.save(omam);\n\n // Create Crime & Punishment\n Author a2 = new Author(\"Fyodor\", \"Dostoevsky\");\n Publisher p2 = new Publisher( \"The Russian Messenger\", \"303 Stazysky Rao\", \"Rustovia\", \"OAL\", \"00933434-3943\");\n Book b2 = new Book(\"Crime and Punishment\", \"22334\", p2);\n a2.getBooks().add(b2);\n b2.getAuthors().add(a2);\n\n publisherRepository.save(p2);\n authorRepository.save(a2);\n bookRepository.save(b2);\n }", "public CompanyData() {\r\n }", "DataFactory getDataFactory();", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "InstanceModel createInstanceOfInstanceModel();", "private XYDataset createDataset() {\n final XYSeriesCollection dataset = new XYSeriesCollection();\n //dataset.addSeries(totalDemand);\n dataset.addSeries(cerContent);\n //dataset.addSeries(cerDemand);\n dataset.addSeries(comContent);\n //dataset.addSeries(comDemand);\n dataset.addSeries(activation);\n dataset.addSeries(resolutionLevel);\n \n return dataset;\n }", "private DataModelBuilder() {\n }", "@Override\n public void Create() {\n initView();\n initData();\n }", "public DataRecord() {\n super(DataTable.DATA);\n }", "public TradeData() {\r\n\r\n\t}", "void setTrainData(DataModel trainData);", "WithCreate withCreationData(CreationData creationData);", "PriceSummaryModel createInstanceOfPriceSummaryModel();", "EisModel createEisModel();", "GoalModel createGoalModel();", "FromTable createFromTable();", "public DesastreData() { //\r\n\t}", "public DataFactoryImpl() {\n\t\tsuper();\n\t}", "public Model doCreateModel() {\n Model m = m_baseModelName == null ? maker.createFreshModel() : maker.createModel( m_baseModelName );\n return new OntModelImpl( this, m );\n }", "Data() {\n\t\t// dia = 01;\n\t\t// mes = 01;\n\t\t// ano = 1970;\n\t\tthis(1, 1, 1970); // usar um construtor dentro de outro\n\t}", "DataObject(int datasetid, YailList fields, YailList data) {\n this.name = \"\";\n this.fields = fields;\n this.data = data;\n this.path = \"\";\n this.datasetid = datasetid;\n }", "public DieteticBrotherModel() {\n database = new Database();\n availableFood = database.initializeAvailableFood();\n recipes = database.initializeRecipes(availableFood);\n\n recipe = new Recipe(0, \"My Recipe\");\n }", "public Data() {\n this.customers = new HashMap<>();\n this.orders = new HashMap<>();\n this.siteVisits = new HashMap<>();\n this.imageUploads = new HashMap<>();\n }", "public DataTableModel() {\n super();\n LanguageObservable.getInstance().attach(this);\n setLocalizedResourceBundle(\"ch.ethz.origo.jerpa.jerpalang.perspective.ededb.EDEDB\");\n initColumns();\n data = new LinkedList<DataRowModel>();\n }", "public DataModelDescriptorBuilder(Class<?> dataModelClass) {\n this.dataModelClass = dataModelClass;\n }", "ExpData createData(Container container, @NotNull DataType type);", "private XYDataset createDataset() {\n\t\tfinal XYSeriesCollection dataset = new XYSeriesCollection( ); \n\t\tdataset.addSeries(trainErrors); \n\t\tdataset.addSeries(testErrors);\n\t\treturn dataset;\n\t}", "public DataType(String dataName) {\n /*try {\n basicType = this.getClass().getName();\n idForDataType = this.getClass().getName();\n } catch (Exception ex) {\n Logger.getLogger(DataType.class).fatal(\"Failed to generate a unique id: \" +\n ex.getMessage(),ex);\n }*/\n this.dataName = dataName;\n }", "@RequestMapping(value = \"/create\", method = RequestMethod.POST, produces = \"application/json\")\n public DatasetInfo create(@RequestBody DatasetInfo info) {\n return this.datasetService.create(info);\n }", "public UserData() {\n }", "PriceModel createInstanceOfPriceModel();", "public T createModel(Cursor cursor, String id);", "private PieDataset createDataset() {\n\t\tDefaultPieDataset result = new DefaultPieDataset();\n\t\tresult.setValue(\"Linux\", 29);\n\t\tresult.setValue(\"Mac\", 20);\n\t\tresult.setValue(\"Windows\", 51);\n\t\treturn result;\n\n\t}", "protected List<DataModel> generateModel(){\n\t\tList<DataModel> list = new ArrayList<DataModel>();\n\t\t\n\t\tDataModel outTemperature = new DataModelTemperature(\"Outer Temperature\", this);\n\t\toutTemperature.setShouldAlarm(false);\n\t\toutTemperature.setMaxSafeValue(200);\n\t\toutTemperature.setHowManyPercentageToAdd(0.5);\n\t\toutTemperature.setVibeRate(2.42);\n\t\tlist.add(outTemperature);\n\t\t\n\t\tlist.add(new DataModelTemperature(\"Inner Temperature\", this));\n\t\tlist.add(new DataModelHumidity(\"Humidity\", this));\n\t\tlist.add(new DataModelOxygen(\"Oxygen\", this));\n\t\t\n\t\treturn list;\n\t}", "public CompositeData()\r\n {\r\n }", "public Melding createMelding() {\n\n\t\tMelding melding = null;\n\n\t\ttry {\n\t\t\tString name = \"Melding\";\n\t\t\tmelding = (Melding) modelRepository.createObject(\n\t\t\t\t\tmodelRepository.getModelClass(name),\n\t\t\t\t\t(ResourceName) ResourceName.fromString(name));\n\n\t\t\t// Invullen gegevens melder indien aanwezig in cookie\n\t\t\tCookie userCookie = getRoutedokterCookie();\n\t\t\tif (userCookie != null) {\n\n\t\t\t\tString[] values = userCookie.getValue().split(\n\t\t\t\t\t\tCOOKIE_VALUE_SEPERATOR);\n\n\t\t\t\tfor (String keyValue : Arrays.asList(values)) {\n\t\t\t\t\tString key = keyValue.split(\":\")[0];\n\t\t\t\t\tString value = keyValue.split(\":\")[1];\n\t\t\t\t\tif (key.equals(\"email\")) {\n\t\t\t\t\t\tmelding.setEmail(value);\n\t\t\t\t\t} else if (key.equals(\"voornaam\")) {\n\t\t\t\t\t\tmelding.setVoornaam(value);\n\t\t\t\t\t} else if (key.equals(\"naam\")) {\n\t\t\t\t\t\tmelding.setNaam(value);\n\t\t\t\t\t} else if (key.equals(\"tel\")) {\n\t\t\t\t\t\tmelding.setTelefoon(value);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (InstantiationException e) {\n\t\t\tLOG.error(\"Can not instantiate model object.\", e);\n\t\t} catch (IllegalAccessException e) {\n\t\t\tLOG.error(\"Illegal access at creation model object.\", e);\n\t\t}\n\t\treturn melding;\n\t}", "public RegisterNewData() {\n }", "public EditDataModel(DataModel dataModel) {\n this.dataModel = dataModel;\n }", "private static void createDemoData() {\n if (userManager.user_map.isEmpty() || accountManager.account_map.isEmpty() || banknoteManager.banknotes.isEmpty()) {\n if (userManager.user_map.isEmpty()) {\n userManager.createAccount(BankManager.class.getSimpleName(), \"jen\", \"1234\");\n userManager.createAccount(Teller.class.getSimpleName(), \"pete\", \"1234\");\n userManager.createAccount(Customer.class.getSimpleName(), \"steve\", \"1234\");\n }\n\n if (accountManager.account_map.isEmpty()) {\n accountManager.addAccount(CreditCard.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Youth.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Saving.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(Chequing.class.getSimpleName(), Collections.singletonList(\"steve\"));\n accountManager.addAccount(CreditLine.class.getSimpleName(), Collections.singletonList(\"steve\"));\n }\n\n if (banknoteManager.banknotes.isEmpty()) {\n banknoteManager.banknotes = new HashMap<>();\n for (int d : banknoteManager.DENOMINATIONS) {\n banknoteManager.banknotes.put(String.valueOf(d), 50);\n }\n }\n }\n }", "public WeatherNewListData() {\n\t}", "public DataSet() {\r\n \r\n }", "private void insertData() {\n for (int i = 0; i < 3; i++) {\n PodamFactory factory = new PodamFactoryImpl();\n VisitaEntity entity = factory.manufacturePojo(VisitaEntity.class);\n em.persist(entity);\n data.add(entity);\n }\n }", "public SSModel createSSObject() {\n\t\tSSModel ssModel = new SSModel();\n\t\tssModel.create(mol);\n\t\t\n\t\treturn ssModel;\n\t}", "private ArrayList<SearchModel> initData() {\n // items in the arraylist\n ArrayList<SearchModel> foodList = new ArrayList<>();\n List<FoodModel> foods = foodModelList;\n for(int i=0; i< foods.size(); i++)\n {\n foodList.add(new SearchModel(foods.get(i).getName()));\n }\n return foodList;\n }", "ModelData getModel();", "public DataModelBuilder but() {\n DataModelBuilder _builder = create();\n _builder.m_featureEntitySet = m_featureEntitySet;\n _builder.m_entity = m_entity;\n _builder.m_featureEntityBuilder = m_featureEntityBuilder;\n _builder.m_featureNameSet = m_featureNameSet;\n _builder.m_name = m_name;\n return _builder;\n }", "MetricModel createMetricModel();", "private void createData() {\n//\n// tour = new Tour();\n// tour.setTitle(\"Death Valley\");\n// tour.setDescription(\"A tour to Death Valley\");\n// tour.setPrice(900);\n// tour.setImage(\"death_valley\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n//\n// tour = new Tour();\n// tour.setTitle(\"San Francisco\");\n// tour.setDescription(\"A tour to San Francisco\");\n// tour.setPrice(1200);\n// tour.setImage(\"san_francisco\");\n// tour = dataSource.create(tour);\n// Log.i(LOGTAG, \"Tour created with id \" + tour.getId());\n\n ToursPullParser parser = new ToursPullParser();\n tours = parser.parseXML(this);\n\n for (Tour tour : tours) {\n dataSource.create(tour);\n }\n\n }" ]
[ "0.79793304", "0.70734376", "0.6966912", "0.69422734", "0.6832334", "0.67981035", "0.66730034", "0.6478788", "0.6431588", "0.6431588", "0.6431588", "0.6431588", "0.6431588", "0.6431588", "0.6431588", "0.6424117", "0.63571817", "0.634006", "0.63030124", "0.6293818", "0.6274484", "0.6259596", "0.6259596", "0.62563396", "0.6200852", "0.6198217", "0.6192834", "0.61766344", "0.6149436", "0.60981536", "0.609578", "0.60946053", "0.6089075", "0.60337675", "0.6021941", "0.6014596", "0.600316", "0.60001016", "0.5997231", "0.5981476", "0.5969823", "0.5928348", "0.5920141", "0.59071076", "0.5900778", "0.58804005", "0.5849271", "0.5844768", "0.5815005", "0.58123463", "0.5809287", "0.57844335", "0.57843506", "0.5767647", "0.57675713", "0.576097", "0.57571614", "0.5751203", "0.573827", "0.5717373", "0.57152665", "0.5703753", "0.5703191", "0.568388", "0.56799674", "0.5678443", "0.5671871", "0.5667983", "0.5666764", "0.5665968", "0.56652486", "0.5659815", "0.56595343", "0.5656533", "0.565459", "0.56434333", "0.564305", "0.564121", "0.5641028", "0.5636567", "0.56355", "0.563208", "0.56153065", "0.56090885", "0.55981416", "0.55815953", "0.55777633", "0.557697", "0.55715585", "0.5567633", "0.5558196", "0.5554035", "0.55519813", "0.5545204", "0.55325735", "0.5529332", "0.55289274", "0.55268663", "0.5523869", "0.5511172", "0.5510328" ]
0.0
-1
Este metodo retorna una lista con todos los artistas de la aplicacion.
@GET public List<ArtistDTO> getArtists() { List<ArtistDTO> artists = new ArrayList(); if (page != null && maxRecords != null) { this.response.setIntHeader("X-Total-Count", artistLogic.countArtists()); } try { URL url = ArtistService.class.getResource("ArtistService.class"); String className = url.getFile(); String filePath = className.substring(0, className.indexOf("WEB-INF") + "WEB-INF".length()); Wini ini = new Wini(new File(filePath + "/shiro.ini")); String path = ini.get("main", "stormpathClient.apiKeyFileLocation"); ApiKey apiKey = ApiKeys.builder().setFileLocation(path).build(); Client client = Clients.builder().setApiKey(apiKey).build(); artists = artistLogic.getArtists(page, maxRecords); for (ArtistDTO artistDTO : artists) { try { Account account = client.getResource(artistDTO.getUserId(), Account.class); artistDTO.setFirstName(account.getGivenName()); artistDTO.setLastname(account.getSurname()); artistDTO.setEmail(account.getEmail()); } catch (ResourceException e) { Logger.getLogger(ArtistService.class.getName()).log(Level.SEVERE, null, "No existe el usuario con ese ID"); Logger.getLogger(ArtistService.class.getName()).log(Level.SEVERE, null, e); } } } catch (IOException e) { artists.clear(); Logger.getLogger(ArtistService.class.getName()).log(Level.SEVERE, null, "Error al leer el archivo de shiro"); Logger.getLogger(ArtistService.class.getName()).log(Level.SEVERE, null, e); } return artists; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "List<String> getArtists();", "public Vector<Artista> findAllArtisti();", "public List<Album> getAlbums(Artist artist);", "public Set<String> getArtists() {\r\n return this.artists;\r\n }", "public ArtistSet getArtists() {\n\t\treturn restTemplate.getForObject(embyUrl + \"/\"+ EmbyUrlConstants.ARTISTS, ArtistSet.class);\n\t}", "private void populateArtists(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT artist_name FROM artist ORDER BY artist_name\");\n\n while(results.next()){\n String artist = results.getString(1);\n artistList.add(artist);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }", "public ArrayList<String> getListSongs() {\n\t\tArrayList<String> ret = new ArrayList<String>();\n\t\tList<Song> songs = controller.getSongs();\n\t\tfor (Iterator<Song> it = songs.iterator(); it.hasNext(); ) {\n\t\t\tSong song = it.next();\n\t\t\tret.add(song.getTitle() + \" - \" + song.getArtist());\n\t\t}\n\t\treturn ret;\n\t}", "public List<Artist> listArtistsAndID() throws SQLException {\n\t\tList<Artist> artist = new ArrayList<Artist>();\n\t\tDriver driver = new Driver();\n\t\tString sql = \"SELECT * FROM artist \" + \"ORDER BY Artist_ID\";\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\t\ttry {\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\tartist.add(new Artist(res.getInt(\"Artist_Id\"), res.getString(\"Artist_Name\"),\n\t\t\t\t\t\tres.getString(\"Start_Year_Active\"), res.getString(\"End_Year_Active\")));\n\t\t\t}\n\t\t\treturn artist;\n\t\t} finally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\t}", "public String allSongs (String artist)\n\t{\n\t\tArrayList <String> songs = new ArrayList <String>();\n\t\tfor (Song e: music)\n\t\t\tif(e.getArtist().equals(artist))\n\t\t\t\tsongs.add(e.getName());\n\t\tString results = \"\";\n\t\tfor (int i = 0; i < songs.size(); i++)\n\t\t{\n\t\t\tif (music.size()-1 == i)\n\t\t\t{\n\t\t\t\tresults += music.get(i) +\".\";\n\t\t\t}\n\t\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tresults += music.get(i) + \", \";\n\t\t\t}\n\t\t}\n\t\treturn results; \n\t}", "public ArrayList <ITunesItem> getArtists(String searchText) throws IOException\n\t{\n\t\tsearchText = searchText.replace(\" \", \"+\");\n\t\tString query = \"term=\" + searchText + \"&entity=musicArtist&attribute=artistTerm\";\n\t\treturn searchQuery(query);\n\t}", "List<Alimento> getAlimentos();", "public void getSongList() {\n\t\t// retrieve song info\n\t\tsongList = new ArrayList<Song>();\n\t\tContentResolver musicResolver = getContentResolver();\n\t\tUri musicUri = android.provider.MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;\n\t\tCursor musicCursor = musicResolver.query(musicUri, null, null, null,\n\t\t\t\tnull);\n\n\t\tif (musicCursor != null && musicCursor.moveToFirst()) {\n\t\t\t// get columns\n\t\t\tint titleColumn = musicCursor\n\t\t\t\t\t.getColumnIndex(android.provider.MediaStore.Audio.Media.TITLE);\n\t\t\tint idColumn = musicCursor\n\t\t\t\t\t.getColumnIndex(android.provider.MediaStore.Audio.Media._ID);\n\t\t\tint artistColumn = musicCursor\n\t\t\t\t\t.getColumnIndex(android.provider.MediaStore.Audio.Media.ARTIST);\n\t\t\t// add songs to list\n\t\t\tdo {\n\t\t\t\tlong thisId = musicCursor.getLong(idColumn);\n\t\t\t\tString thisTitle = musicCursor.getString(titleColumn);\n\t\t\t\tString thisArtist = musicCursor.getString(artistColumn);\n\t\t\t\tsongList.add(new Song(thisId, thisTitle, thisArtist));\n\t\t\t} while (musicCursor.moveToNext());\n\n\t\t\tmusicCursor.close();\n\t\t}\n\t}", "public List<Song> getAllMusic(Context context) {\n\n String[] columns = new String[]{MediaStore.MediaColumns._ID,\n MediaStore.Audio.Media.TITLE,\n MediaStore.Audio.Artists.ARTIST,\n MediaStore.Audio.Albums.ALBUM,\n MediaStore.Audio.Media.DATA,\n MediaStore.Audio.Media.ALBUM_ID};\n\n return internalExternalQuery(context, columns, null, null);\n }", "public String[] getArtistsList() {\n Connection con = null;\n PreparedStatement st = null;\n ResultSet rs = null;\n Vector<String> list = new Vector<String>();\n String[] result = null;\n try {\n //obtain the database connection by calling getConn()\n con = getConn();\n //create the PreparedStatement from the Connection object by calling prepareStatementl\n //method, passing it the sql \n st = con.prepareStatement(\"select * from Artist\");\n \n //Calls executeQuery and the resulting data is returned in the resultset\n rs = st.executeQuery();\n \n //loop through the result set and save the data in the datamodel objects\n while (rs.next()){\n //System.out.println(\"inside while....\");\n list.add(rs.getString(\"id\") + \",\" + rs.getString(\"NAME\"));\n \n }\n result = new String[list.size()];\n for (int i = 0 ; i< list.size() ; i++){\n result[i] = list.get(i);\n \n }\n }\n catch (SQLException e){\n \n }\n //close the resultset,preparedstatement and connection to relase resources \n if (rs != null){\n try{\n rs.close();\n rs = null;\n }\n catch (SQLException e){\n \n }\n }\n if (st != null){\n try{\n st.close();\n st = null;\n }\n catch (SQLException e){\n \n }\n }\n \n if (con != null){\n try{\n con.close();\n con = null;\n }\n catch (SQLException e){\n \n }\n }\n \n return result;\n }", "@Override\r\n\tpublic List<Artist> findAll(Map<String,String> map) {\r\n\t\tString[] param=null;\r\n\t\tString where=null;\r\n\t\tif(map != null){\r\n\t\t\tparam=new String[map.size()];\r\n\t\t\twhere=this.generateWhereCondition(param, map);\r\n\t\t}\r\n\t\tSQLiteDatabase db = helper.getReadableDatabase();\r\n\t\tCursor cursor = db.query(\"artist\", null, where, param, null, null, null);\r\n\t\tList<Artist> list = new ArrayList<Artist>();\r\n\r\n\t\twhile (cursor.moveToNext()) {\r\n\t\t\tArtist artist = new Artist();\r\n\t\t\tartist.setArtistId(cursor.getString(cursor\r\n\t\t\t\t\t.getColumnIndex(\"artistId\")));\r\n\t\t\tartist.setArtistName(cursor.getString(cursor\r\n\t\t\t\t\t.getColumnIndex(\"artistName\")));\r\n\t\t\tartist.setArtistViewUrl(cursor.getString(cursor\r\n\t\t\t\t\t.getColumnIndex(\"artistViewUrl\")));\r\n\t\t\tlist.add(artist);\r\n\t\t}\r\n\t\treturn list;\r\n\t}", "public void displayByArtists()\n {\n Collections.sort(catalog, new ArtistComparator());\n \n System.out.printf(\"%-30s %-39s %s %n\",\"ARTIST\", \"ALBUM\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(false)); //prints the artist first.\n \n for(int i=1; i<30; i++)\n System.out.print(\"*\");\n System.out.print(\"\\n\\n\");\n }", "public static ArrayList<Song> getAll() {\n ArrayList<Song> songs = new ArrayList<>();\n try {\n Class.forName(\"com.mysql.jdbc.Driver\");\n conn = DriverManager.getConnection(\"jdbc:mysql://\" + host + \"/\" + db + \"?\" + \"user=\" + user + \"&password=\" + psw );\n\n songStatement = conn.createStatement();\n songResultSet = songStatement.executeQuery(\"SELECT * FROM spotify.track WHERE annotated = 0 LIMIT 0, 25\");\n\n songs = createSongs(songResultSet);\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n close();\n }\n\n return songs;\n }", "public String[] getMusicas() {\n\t\treturn musicas;\n\t}", "public void getArtistsMetaDataFromDevice(){\n // implement a cursorLoader\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(MediaStore.Audio.Artists.INTERNAL_CONTENT_URI,null,null,null,MediaStore.Audio.ArtistColumns.ARTIST);\n }", "public ArrayList<String> getAllSongsOfArtist(Long songid) {\n\t\tString artistName = getArtistName(songid);\n\t\t// get all albums of this artist\n\t\tArrayList<String> songs = new ArrayList<>();\n\t\tsongsidOfArtist = new ArrayList<>();\n\n\t\ttry {\n\t\t\tString sqlQuery = \"select song_name, song_id from song s, \"\n\t\t\t\t\t+ \"album al where s.album_id = al.album_id and prod_name like '\" + artistName + \"';\";\n\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(sqlQuery);\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tString s = (String) resultSet.getObject(1);\n\t\t\t\tLong sid = (Long) resultSet.getObject(2);\n\n\t\t\t\t// add to return song names and songid in songsidOfArtist list\n\t\t\t\tsongs.add(s);\n\t\t\t\tsongsidOfArtist.add(sid);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn songs;\n\t}", "public ArrayList<String> getAllAlbumsOfArtist(Long songid) {\n\t\tString artistName = getArtistName(songid);\n\t\t// get all albums of this artist\n\t\tArrayList<String> albums = new ArrayList<>();\n\t\talbumsidOfArtist = new ArrayList<>();\n\n\t\ttry {\n\t\t\tString sqlQuery = \"select album_name, album_id from album where prod_name like '\" + artistName + \"';\";\n\n\t\t\tstatement = connection.createStatement();\n\t\t\tresultSet = statement.executeQuery(sqlQuery);\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tString al = (String) resultSet.getObject(1);\n\t\t\t\tLong alid = (Long) resultSet.getObject(2);\n\n\t\t\t\t// add to return album names and albumid in albumsidOfArtist list\n\t\t\t\talbums.add(al);\n\t\t\t\talbumsidOfArtist.add(alid);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn albums;\n\t}", "public List<MelodySong> getMelodySongs() {\n\n IMusicXMLUnmarshaller scorePartwiseParser = new ScorePartwiseUnmarshaller();\n\n List<File> xmlFiles = new ArrayList<>();\n xmlFiles = iterateXMLFiles(MUSICXML_RESOURCE_DIRECTORY);\n\n xmlFiles.add(new File(\"C:\\\\UPJŠ\\\\Bakalárska práca\\\\SimFolk\\\\SimFolk\\\\src\\\\sk\\\\upjs\\\\ics\\\\mmizak\\\\simfolk\\\\parsing\\\\resources\\\\xmlFiles\\\\zaspievalo_vtaca_edit.xml\"));\n\n\n List<MelodySong> melodySongs = scorePartwiseParser.getSongsInMeasuresFromXML(xmlFiles);\n assert !xmlFiles.isEmpty();\n\n// for (int i = 0; i < melodySongs.size(); i++) {\n// melodySongs.get(i).setId((long) i + 1);\n// }\n\n saveMelodySong(melodySongs);\n\n return melodySongs;\n }", "public static List<Art> getArts() {\n try {\n List<Art> list = new ArrayList<>();\n Connection connection = Connector.getConnection();\n if (connection != null) {\n Statement statement = connection.createStatement();\n ResultSet rs = statement.executeQuery(\"SELECT * FROM Arts\");\n while (rs.next()) {\n // gets one art and adds it to list\n list.add(new Art(rs.getInt(\"artId\"), rs.getString(\"artTitle\"), \n rs.getString(\"artExtension\"), rs.getInt(\"creatorId\"), \n rs.getInt(\"categoryId\")));\n }\n }\n return list;\n } catch (SQLException e) {\n }\n return null;\n }", "public ReactorResult<Contact> getAllLeadArtist_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), LEADARTIST, Contact.class);\r\n\t}", "public List<Articulos> listarArticulos(){\n\t\treturn iArticulos.findAll();\n\t}", "private void InicializarListaAlbums() {\n\n GestorAlbums gestorAlbums = new GestorAlbums(this.getActivity());\n albums = gestorAlbums.AsignarAlbum();\n }", "private void showArtistas(Artist c) {\n\t\tif (c != null) {\n\t\t\tArtist r = ArtistDAO.List_Artist_By_Name(c.getName());\n\t\t\tNombreArtista.setText(r.getName());\n\t\t\tNacionalidadArtista.setText(r.getNationality());\n\t\t\tFotoArtista.setText(r.getPhoto());\n\t\t\tBorrarArtista.setDisable(false);\n\t\t\ttry {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(r.getPhoto()));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t} catch (Exception e) {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(\"error.jpg\"));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tBorrarArtista.setDisable(true);\n\t\t\tNombreArtista.setText(\"\");\n\t\t\tNacionalidadArtista.setText(\"\");\n\t\t\tFotoArtista.setText(\"\");\n\t\t}\n\n\t}", "public List<ArticulosFactura> getArticulosFactura(Factura f){\n return f.getArticulosFacturaList();\n }", "public Artist[] getAllArtistsMatchingQuery(String query) {\n List<Artist> results = new ArrayList<>();\n for(Artist Artist: getArtistList()){\n if(Artist.getName().toLowerCase().contains(query.toLowerCase())){\n results.add(Artist);\n }\n }\n return results.toArray(new Artist[results.size()]);\n }", "List<Artist> getPagedList(int page);", "Set<Art> getArtByArtist(String artist);", "Set<Art> getAllArt();", "public void listAllSongs()\n {\n for(int i = 0; i < songs.size(); i++) {\n System.out.print((i+1) + \"- \");\n listSong(i);\n }\n }", "@Override\n\tpublic List<Artist> findByName(String name) {\n\t\treturn null;\n\t}", "List<MediaMetadata> getAll();", "public List<ArtistBean> resultArtistList(PageBean pBean) {\n\t\treturn adminSearchDao.resultArtistList(pBean);\n\t}", "public static List<String> getFilms(String acteur) {\n\t\tString movie = \"\";\n\t\tList<String> movies_list = new ArrayList<String>();\n\t\tString string_query = \"SELECT $title WHERE {\\n $film rdf:type dbo:Film;\\n\" + \n \" foaf:name $title;\\n dbo:starring $acteur.\\n\" + \n \"$acteur foaf:name \\\"ACTOR_NAME\\\"@en\\n}\".replaceAll(\"ACTOR_NAME\",acteur);\n\t\t\n\n ParameterizedSparqlString qs = new ParameterizedSparqlString(PREFIX +string_query);\n QueryExecution exec = QueryExecutionFactory.sparqlService(SERVICE, qs.asQuery());\n ResultSet results = exec.execSelect();\n \n while (results.hasNext()) {\n \tQuerySolution solution = results.nextSolution();\n \tmovie = solution.getLiteral(\"?title\").toString().replace(\"@en\", \"\");\n \tmovies_list.add(movie);\n }\n\t\t\n\t\treturn movies_list;\n\t}", "public void allartistsongs() throws IOException{\r\n List<String> ArrangersAndTheirSongs=new ArrayList<>();\r\n String allsongs=\"\";\r\n int counter=0;\r\n for(int id: ArrangersMap.keySet()){\r\n String ArrangerName=ArrangersMap.get(id);\r\n for(String song:ArrangerLinesList){\r\n String perform[];\r\n perform=song.split(\"/\");\r\n int arrangeid=Integer.parseInt(perform[1]);\r\n if(id==arrangeid){\r\n int songid= Integer.parseInt(perform[0]);\r\n String songname=test.getsongName(songid);\r\n allsongs+=songname+\" \";\r\n counter++;\r\n } \r\n }\r\n ArrangersAndTheirSongs.add(\"The Arranger's Name is:\"+ArrangerName+\" The number of songs is:\"+counter+ \" Their songs are:\"+allsongs);\r\n allsongs=\"\";\r\n counter=0;\r\n }\r\n writeListToTextFile(\"d:\\\\documents\\\\textfiles\\\\ArrangersAndTheirSongs.txt\",ArrangersAndTheirSongs);\r\n // test.writeSongs(\"d:\\\\documents\\\\textfiles\\\\ArrangersAndTheirSongs.txt\");\r\n // Path path=Paths.get()\r\n for(String line:ArrangersAndTheirSongs){\r\n System.out.println(line);\r\n }\r\n System.out.println(ArrangersAndTheirSongs.size());\r\n \r\n System.out.println(\"The size of ArrangersMap is:\"+ArrangersMap.size());\r\n System.out.println(\"The counter is:\"+counter);\r\n }", "public void callbackArtistResponse(List<Artist>artistList);", "public void getListaArchivos() {\n\n File rutaAudio = new File(Environment.getExternalStorageDirectory() + \"/RecordedAudio/\");\n File[] archivosAudio = rutaAudio.listFiles();\n\n for (int i = 0; i < archivosAudio.length; i++) {\n File file = archivosAudio[i];\n listadoArchivos.add(new Archivo(file.getName()));\n }\n\n File rutaVideos = new File(Environment.getExternalStorageDirectory() + \"/RecordedVideo/\");\n File[] archivosVideo = rutaVideos.listFiles();\n\n for (int i = 0; i < archivosVideo.length; i++) {\n File file = archivosVideo[i];\n listadoArchivos.add(new Archivo(file.getName()));\n }\n }", "public List<Song> allSongs() {\n return songRepository.findAll();\n }", "public ArrayList<String> getMusicName_ () {\n\n /*\n ArrayList<String> musicList = new ArrayList<>();\n Collections.sort(musicName);\n\n for (String item : musicName) {\n musicList.add(item);\n }\n return musicList;\n * */\n\n return musicName;\n\n }", "private void getSongs() {\n new SongContent(this, Constants.URL).execute();\n }", "List<Album> getAlbumFromArtiste(Integer artisteId, Integer userId);", "public List<Album> getAlbumsByArtist(String albumArtist)\r\n {\r\n\t// iterate over each album in my album collection and where the album \r\n\t// artist is equal to albumArtist, add the album to a list of albums\r\n\tList<Album> albumsByArtist = new ArrayList<>();\r\n\tfor (Album album : albumCollection)\r\n\t{\r\n\t if (album.getAlbumArtist().equals(albumArtist))\r\n\t {\r\n\t\talbumsByArtist.add(album);\r\n\t }\r\n\t}\r\n\treturn albumsByArtist;\r\n }", "public ReactorResult<Contact> getAllOriginalArtist_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ORIGINALARTIST, Contact.class);\r\n\t}", "public ArrayList<Song> searchByArtist(String artist) \r\n {\r\n \treturn musicLibraryArtistKey.get(artist);\r\n \t\r\n }", "public static List<Artist> makeChild3() {\n Artist q = new Artist(\"\", true);\n return Arrays.asList(q);\n }", "public void setArtistAlbums(List<Album> artistAlbums) {\n this.artistAlbums = artistAlbums;\n }", "public void loadArtistsFromDB(Context context){\n if(context != null){\n this.artistList.clear();\n this.artistList_backup.clear();\n this.artistList.addAll(DBFolder.getInstance(context).getArtistList());\n this.artistList_backup.addAll(artistList);\n }\n }", "public ArrayList<SongInfo> getSongInfoList()\n {\n return songInfos;\n }", "public List<Sale> saleListArtistCount() {\n List<Sale> saleList = new ArrayList<Sale>();\n\n try {\n conn = DBConnection.getConnection();\n stm = conn.createStatement();\n result = stm.executeQuery(\"SELECT name,\\n\"\n + \"COUNT (*) \\n\"\n + \"FROM disquera.artist JOIN disquera.sale ON artist.id_artist = sale.id_artist\\n\"\n + \"GROUP BY artist.name ORDER BY artist.name\");\n //result_album = stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.album on sale.id_album=album.id_album\");\n //result_artist=stm.executeQuery(\"SELECT * FROM disquera.sale join disquera.artist on sale.id_artist=artist.id_artist\");\n while (result.next()) {\n Sale newSale = new Sale();\n\n newSale.setArtistName(result.getString(1));\n newSale.setCount(result.getInt(2));\n //System.out.println(\"\\n\\n Received data: \\n Id: \" + newSale.getId_sale() + \"\\nPrecio: \" + newSale.getPrice());\n saleList.add(newSale);\n /*\n System.out.println(\"No existe un usuario con esa contraseña\");\n conn.close();\n return null;\n */\n }\n result.close();\n stm.close();\n conn.close();\n } catch (SQLException ex) {\n ex.getStackTrace();\n return null;\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(DAOGenre.class.getName()).log(Level.SEVERE, null, ex);\n }\n return saleList;\n }", "@Override\n\tprotected void onCreate(Bundle savedInstanceState) {\n\t\t// TODO: WICHTIG!!! DATENBANKANFRAGEN OPTIMIEREN! (Nach Keys, AlbumArtist Tabelle nutzen)\n\t\t// TODO: OptionenMen� in Jeder Klasse\n\t\t// TODO: PlayList in ServiceAccess\n\t\t\n\t\t\n\t\tsuper.onCreate(savedInstanceState);\n\t\tsetContentView(R.layout.activity_music_peb);\n\t\tString[] projection = { \"DISTINCT \" + MediaStore.Audio.Media.ARTIST };\n\t\tContentResolver musicResolver = getContentResolver();\n\t\tCursor cursor = musicResolver.query(\n\t\t\t\tMediaStore.Audio.Media.EXTERNAL_CONTENT_URI, projection,\n\t\t\t\tMediaStore.Audio.AudioColumns.ARTIST + \" not null\", null,\n\t\t\t\tMediaStore.Audio.AudioColumns.ARTIST);\n\n\n\t\tcursor.moveToFirst();\n\t\tList<String> artists = new ArrayList<String>();\n\t\twhile (cursor.moveToNext()) {\n\t\t\tartists.add(cursor.getString(0));\n\t\t}\n\t\tcursor.close();\n\t\tListView artistView = (ListView) this.findViewById(android.R.id.list);\n\n\t\tfinal ServiceAccess sa = ((ServiceAccess)this.getApplication());\n\t\t\t\t\n\t\tOnItemClickListener itemListener = new AdapterView.OnItemClickListener() {\n\t\t\t@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\tTextView tv = (TextView) view;\n\t\t\t\t// Log.i(\"test\", \"Current item: \"+ tv.getText().toString()); // for debugging purposes\n\t\t\t\tIntent intent = new Intent(parent.getContext(), AlbumListActivity.class);\n\t\t\t\tsa.setArtist(tv.getText().toString());\n\t\t\t\tsa.setAlbum(null);\n\t\t\t\tsa.setTitle(null);\n\t\t\t\tstartActivity(intent);\n\t\t\t}\n\t\t};\n\t\tartistView.setOnItemClickListener(itemListener);\n\n\t\tArrayAdapter<String> adapter = new ArrayAdapter<String>(this, android.R.layout.simple_list_item_1, artists);\n\t\tif (adapter != null)\n\t\t\tsetListAdapter(adapter);\n\t}", "public ReactorResult<org.ontoware.rdfreactor.schema.rdfs.Resource> getAllOfficialArtistWebpage_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), OFFICIALARTISTWEBPAGE, org.ontoware.rdfreactor.schema.rdfs.Resource.class);\r\n\t}", "private ArrayList<Song> songList(){\n ArrayList<Song> songs = new ArrayList<Song>();\n\n if(!isStorageAvailable()){\n Toast.makeText(this, R.string.nosd, Toast.LENGTH_SHORT).show();\n return songs;\n }\n Cursor music = getContentResolver().query( // using content resolver to read music from media storage\n MediaStore.Audio.Media.EXTERNAL_CONTENT_URI,\n new String[]{\n MediaStore.Audio.Media.ARTIST,\n MediaStore.Audio.Media.ALBUM,\n MediaStore.Audio.Media.DISPLAY_NAME,\n MediaStore.Audio.Media.DATA},\n MediaStore.Audio.Media.IS_MUSIC + \" > 0 \",\n null, null\n );\n\n if (music.getCount() > 0){\n music.moveToFirst();\n Song previous = null;\n do{\n Song song = new Song(music.getString(0), music.getString(1), music.getString(2), music.getString(3));\n\n if (previous != null) {\n previous.setNext(song);\n song.setPrevious(previous);\n }\n previous = song;\n songs.add(song);\n }\n while(music.moveToNext());\n\n previous.setNext(songs.get(0));\n }\n music.close();\n\n songs.get(0).setPrevious(songs.get(songs.size()-1));\n songs.get(songs.size()-1).setNext(songs.get(0));\n return songs;\n }", "@Override\n public void onArtistsParsed(List<SpotifyItem> artists) {\n if(artists == null)\n return;\n\n mRecyclerViews[INDEX_ARTISTS].data.addAll(artists);\n mRecyclerViews[INDEX_ARTISTS].adapter.notifyDataSetChanged();\n Log.d(TAG, \"Artists parsed\");\n }", "private void getAllFavorite(){\n\n\n MainViewModel viewModel = ViewModelProviders.of(this).get(MainViewModel.class);\n viewModel.getFavorite().observe(this, new Observer<List<FavoriteEntry>>() {\n @Override\n public void onChanged(@Nullable List<FavoriteEntry> imageEntries) {\n List<Movie> movies = new ArrayList<>();\n for (FavoriteEntry entry : imageEntries){\n Movie movie = new Movie();\n movie.setId(entry.getMovieid());\n movie.setOverview(entry.getOverview());\n movie.setOriginalTitle(entry.getTitle());\n movie.setPosterPath(entry.getPosterpath());\n movie.setVoteAverage(entry.getUserrating());\n movie.setReleaseDate(entry.getReleasedate());\n movies.add(movie);\n }\n\n adapter.setMovies(movies);\n }\n });\n }", "public void mostrarMusicaPorArtista() {\r\n\t\t\r\n\t\t//Instanciar view solicitar artista\r\n\t\tViewSolicitaArtista vsa = new ViewSolicitaArtista();\r\n\t\t\r\n\t\t//Obter artistas\r\n\t\tvsa.obterArtista();\r\n\t\t\r\n\t\t//Guarda artista\r\n\t\tString artista = vsa.getArtista();\r\n\t\t\r\n\t\tif (this.bd.naoExisteArtista(artista)) {\r\n\r\n\t\t\t//Metodo musica por artista\r\n\t\t\tArrayList<String> musicas = this.bd.getMusicasPorArtista(artista);\r\n\t\t\t\r\n\t\t\t//Instancia view para mostrar musicas\r\n\t\t\tViewExibeMusicas vem = new ViewExibeMusicas();\r\n\t\t\t\r\n\t\t\t//Exibe musicas\r\n\t\t\tvem.exibeMusicas(musicas);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t//Instanciar view informa\r\n\t\tViewInformacaoExiste vie = new ViewInformacaoExiste();\r\n\t\t\r\n\t\t//Exibir mensagem artista não existe\r\n\t\tvie.mensagemArtistaNaoExiste();\r\n\t\t}\r\n\t}", "private List<MusicVideo> selectMusicVideosFromDBOwnedByArtiste(int artisteId){\n \n SessionFactory sessionFactory = (SessionFactory)servletContext.getAttribute(OpusApplication.HIBERNATE_SESSION_FACTORY) ;\n Session session = sessionFactory.openSession() ;\n Query<MusicVideo> query = session.createQuery(\"FROM MusicVideo mv JOIN FETCH mv.artiste JOIN FETCH mv.genre WHERE mv.artiste.id=:artisteId\", MusicVideo.class) ;\n query.setParameter(\"artisteId\", artisteId) ;\n List<MusicVideo> listOfMusicVideos = query.getResultList() ;\n session.close() ;\n return listOfMusicVideos ;\n }", "public List<Artist> getArtistsWhichHaveNoReleases();", "List<ArtistVO> listPageArtist(Criteria criteria) throws Exception;", "public String[] listarArticulos() throws java.rmi.RemoteException{\n\t\tString driver = \"org.apache.derby.jdbc.EmbeddedDriver\";\n\t\t// the database name \n\t\tString dbName=\"VentasDB\";\n\t\t// define the Derby connection URL to use \n\t\tString connectionURL = \"jdbc:derby:\" + dbName + \";create=true\";\n\n\t\tConnection conn = null;\n\t\tResultSet rs = null;\n\t\tPreparedStatement pst = null;\n\t\tResultSet rs2 = null;\n\t\tPreparedStatement pst2 = null;\n\t\t\n System.out.println(\"Listando articulos...\");\n\t\t\n\t\tint cantArticulos = 0;\n String sql = \"SELECT COUNT(NombreArticulo) FROM Articulos\";\n\t\t\n\t\ttry{\n\t\t\tClass.forName(driver).newInstance();\n\t\t\tconn = DriverManager.getConnection(connectionURL);\n pst = conn.prepareStatement(sql);\n \n rs = pst.executeQuery();\n \n if (rs.next()){\n cantArticulos = rs.getInt(1);\n }\n\t\t\t\n\t\t\tString[] articulos = new String[cantArticulos];\n\t\t\tString sql2 = \"SELECT NombreArticulo FROM Articulos\";\n\t\t\t\n\t\t\tpst2 = conn.prepareStatement(sql2);\n\t\t\t\n\t\t\trs2 = pst2.executeQuery();\n\t\t\t\n\t\t\tint k = 0;\n\t\t\twhile (rs2.next()){\n\t\t\t\tarticulos[k] = rs2.getString(1);\n\t\t\t\tk++;\n\t\t\t}\n\t\t\t\n\t\t\treturn articulos;\n }catch(Exception e){\n\t\t\tSystem.out.println(\"Error al listar los articulos.\");\n\t\t\tSystem.out.println(\"Informacion del error: \" + e.toString());\n\t\t\te.printStackTrace();\n\t\t\treturn null;\n }\n \n }", "public AlbumSet getAlbumsByArtist(String artistId) {\n\t\t//http://emby:8096/Items?SortBy=SortName&SortOrder=Ascending&IncludeItemTypes=MusicAlbum&Recursive=true&ArtistIds=3c328d23e110ee9d4fbe6b1302635e32\n\t\tAlbumSetQueryParams queryParams = new AlbumSetQueryParams(artistId);\n\t\tURI targetUrl= buildUriWithQueryParams(\"/\"+ EmbyUrlConstants.ITEMS, queryParams);\n\t\treturn restTemplate.getForObject(targetUrl, AlbumSet.class);\n\t}", "@Override\n public List<Song> getAll() {\n return em.createQuery(\"SELECT s FROM Song s ORDER BY title\", Song.class)\n .getResultList();\n }", "public Album setArtists(Set<String> artists) {\r\n this.artists = artists;\r\n return this;\r\n }", "public ReactorResult<Contact> getAllBackgroundArtist_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), BACKGROUNDARTIST, Contact.class);\r\n\t}", "public static List<Artist> makeChild4() {\n Artist q = new Artist(\"\", true);\n\n return Arrays.asList(q);\n }", "public static ArrayList<String> getPlayList(){\n\t\tFile home = new File(MEDIA_PATH);\n\t\tif(home.listFiles(new FileExtensionFilter()).length > 0){\n\t\t\tfor(File file : home.listFiles(new FileExtensionFilter())){\n\t\t\t\tString song = new String();\n\t\t\t\tsong = file.getName().substring(0, (file.getName().length() - 4 )); // - \".mp3\"\t\t\t\t\n\t\t\t\t// Add song\n\t\t\t\tsongsList.add(song);\n\t\t\t}\n\t\t}\n\t\treturn songsList;\n\t}", "public List<Movie> theaters() {\n String url = \"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/in_theaters.json?\"\n + \"apikey=yedukp76ffytfuy24zsqk7f5\";\n apicall(url);\n\n Gson gson = new Gson();\n MovieResponse response = gson.fromJson(data, MovieResponse.class);\n List<Movie> movies = response.getMovies();\n movieData = movies;\n System.out.println(url);\n return movieData;\n }", "public List<Automotor> getAll()\n {\n\n CriteriaQuery<Automotor> criteria = this.entityManager.getCriteriaBuilder().createQuery(Automotor.class);\n return this.entityManager.createQuery(criteria.select(criteria.from(Automotor.class))).getResultList();\n }", "@Override\r\n public List<Assunto> buscarTodas() {\r\n EntityManager em = PersistenceUtil.getEntityManager();\r\n Query query = em.createQuery(\"FROM Assunto As a\");\r\n return query.getResultList();\r\n }", "public ArrayList<DataProducto> listarProductos(String nickName);", "public static List<Artist> makeChild2() {\n Artist q = new Artist(\"\", true);\n return Arrays.asList(q);\n }", "private static void listMovies(){\n\n\t\ttry{\n\t\t\tURL url = new URL(\"http://localhost:8080/listMovies\");\n\t\t\tString rawJSONList = getHTTPResponse(url);\n\t\t\tJSONArray JSONList = new JSONArray(rawJSONList);\n\t\t\tStringBuilder list = new StringBuilder();\n\t\t\t\n\t\t\tfor (int i=0 ; i<JSONList.length() ; i++){\n\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\tJSONObject temp = JSONList.getJSONObject(i);\n\t\t\t\tsb.append(temp.getInt(\"id\"));\n\t\t\t\tsb.append(\". \");\n\t\t\t\tsb.append(temp.getString(\"name\"));\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t\n\t\t\t\tlist.append(sb.toString());\n\t\t\t}\n\t\t\tSystem.out.println(list.toString());\n\t\t}catch(Exception e){System.out.println(\"Error - wrong input or service down\");}\n\t\t\n\t}", "public List<Song> getAllSongs(){\n\t\treturn this.songRepo.findAll();\n\t}", "public ArrayList<Ingrediente> buscarTodos() {\n\n\t\tConnection conn = null;\n\t\tResultSet resultSet = null;\n\t\tPreparedStatement stmt = null;\n\t\tconn = getConnection();\n\t\tArrayList<Ingrediente> listaIngredientes = null;\n\n\t\ttry {\n\n\t\t\tstmt = conn\n\t\t\t\t\t.prepareStatement(\"SELECT * FROM IDINGREDIENTE ORDER BY ID\");\n\t\t\tresultSet = stmt.executeQuery();\n\t\t\tlistaIngredientes = new ArrayList<Ingrediente>();\n\t\t\tIngrediente ingrediente = null;\n\n\t\t\twhile (resultSet.next()) {\n\t\t\t\tingrediente = new Ingrediente();\n\t\t\t\tingrediente.setNome(resultSet.getString(\"nome\"));\n\t\t\t\tlistaIngredientes.add(ingrediente);\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\tlistaIngredientes = null;\n\t\t} finally {\n\t\t\tcloseConnection(conn, stmt, resultSet);\n\t\t}\n\t\treturn listaIngredientes;\n\t}", "public List<Aviao> getListAvioes() {\n return avioes;\n }", "public List<Song> parserListSong(JSONObject result) throws JSONException {\n List<Song> listSong = new ArrayList<>();\n JSONArray jsonCollections = result.getJSONArray(SongEntry.COLLECTION);\n for (int i = 0; i < jsonCollections.length(); i++) {\n JSONObject jsonChild = jsonCollections.getJSONObject(i);\n JSONObject jsonTrack = jsonChild.getJSONObject(SongEntry.TRACK);\n Song song = parserSong(jsonTrack);\n if (song != null) {\n listSong.add(song);\n }\n }\n return listSong;\n }", "public ArrayList<Socio> obtenerTodos() {\n return (ArrayList<Socio>) socioRepo.findAll();\n }", "public String getArtist() {\n return artist;\n }", "public String getArtist() {\n return artist;\n }", "public static void loadAllAlbumsInfoInContainer(boolean orderByArtist, boolean orderByAlbum, boolean orderByYear)\n {\n Object[][] data = createDataForAlbums(orderByArtist, orderByAlbum, orderByYear, false);\n /* Despues del ciclo anterior, la matriz data tiene toda la información que se quiere añadir a la tabla */\n \n /* Se crea un modelo con los datos y los nombres de las columnas */\n DefaultTableModel model = new DefaultTableModel(data, columnNames);\n \n /* Se crea una nueva tabla con el modelo y se le añaden unos metodos sobre escritos a la tabla */\n table = new JTable(model)\n {\n @Override\n public TableCellEditor getCellEditor(int row, int column) {\n \n if (column == JSoundsMainWindowViewController.ALBUM_INFO_COLUMN ||\n column == JSoundsMainWindowViewController.NUMBER_SONG_COLUMN ||\n column == JSoundsMainWindowViewController.LIST_SONG_COLUMN)\n {\n return new JListTableEditor();\n }\n \n return null;\n }\n \n @Override\n public boolean isCellEditable(int row, int col) {\n switch (col) {\n case JSoundsMainWindowViewController.LIST_SONG_COLUMN:\n return true;\n default:\n return false;\n }\n }\n };\n \n setTableWithData();\n \n /* Se crea un scroll y se le añade la tabla */\n JScrollPane scrollPane = new JScrollPane(table);\n \n Dimension d = table.getSize();\n scrollPane.setPreferredSize(new Dimension(d.width,630));\n \n /* Se añade el scroll pane al panel */\n JSoundsMainWindowViewController.jPListContainer.setLayout(new GridLayout());\n JSoundsMainWindowViewController.jPListContainer.add(scrollPane);\n }", "private void fillMusicList()\n\t{\n\t\tmusicList.add(\"violin\");\n\t\tmusicList.add(\"viola\");\n\t\tmusicList.add(\"cello\");\n\t\tmusicList.add(\"bass\");\n\t\tmusicList.add(\"guitar\");\n\t\tmusicList.add(\"drums\");\n\t\tmusicList.add(\"tuba\");\n\t\tmusicList.add(\"flute\");\n\t\tmusicList.add(\"harp\");\n\t}", "public List<Song> findByArtist(String artist) {\n\t\treturn this.songRepo.findByArtistContaining(artist);\n\t}", "public List<Movie> getAllMovies() {\n SQLiteDatabase database = this.getWritableDatabase();\n List<Movie> movieList = new ArrayList<>();\n String selectQuery = \" SELECT * FROM \" + MoviesEntry.TABLE_NAME;\n Cursor cursor = database.rawQuery(selectQuery, null);\n\n if (cursor.moveToFirst()) {\n do {\n Movie movie = getMovieFromCursor(cursor);\n movieList.add(movie);\n } while (cursor.moveToNext());\n }\n database.close();\n\n return movieList;\n }", "private void search(String query) {\n final List<Artist> foundartists = new ArrayList<Artist>();\n final String usrquery = query;\n\n spotifysvc.searchArtists(query, new Callback<ArtistsPager>() {\n @Override\n public void success(ArtistsPager artists, Response response) {\n List<Artist> artistlist = artists.artists.items;\n Log.d(LOG_TAG_API, \"found artists [\" + artistlist.size() + \"]: \" + artistlist.toString());\n datalist.clear();\n\n if (artistlist.size() > 0) {\n setListdata(artistlist);\n } else {\n Toast.makeText(getActivity(), \"no artists found by the name: \" + usrquery, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void failure(RetrofitError error) {\n Log.e(LOG_TAG_API, \"failed to retrieve artists:\\n\" + error.toString());\n Toast.makeText(getActivity(), \"failed to retrieve artists. Possible network issues?: \", Toast.LENGTH_SHORT).show();\n }\n });\n }", "public List<Producto> traerTodos () {\n \n return jpaProducto.findProductoEntities();\n \n \n \n }", "public static List<Artist> makeChild1() {\n Artist q = new Artist(\"\", true);\n return Arrays.asList(q);\n }", "public List<Escritor> getEscritores (String idArtigo) {\n List<Escritor> esc = new ArrayList<>();\n Escritor e = null;\n try {\n connection = con.connect();\n PreparedStatement stm = connection.prepareStatement(\"SELECT Escritor.* FROM Escritor \" +\n \"INNER JOIN EscritorArtigo \" +\n \"ON Escritor.ID = EscritorArtigo.Escritor_ID \" +\n \"WHERE EscritorArtigo.Artigo_ID = \" + idArtigo);\n ResultSet rs = stm.executeQuery();\n while(rs.next()){\n e = new Escritor(rs.getString(\"ID\"), rs.getString(\"Nome\"));\n esc.add(e);\n }\n\n }\n catch (SQLException e1) {\n e1.printStackTrace();\n }\n finally {\n con.close(connection);\n }\n return esc;\n }", "@GET\n public List<JsonGenre> getAll() {\n \tList<Genre> genres = genreDao.getGenres();\n \tLOGGER.info(\"find \"+genres.size()+\" genres in the database\");\n \tArrayList<JsonGenre> ls = new ArrayList<JsonGenre>();\n \tfor (Genre s:genres) {\n \t\tls.add(new JsonGenre(s.getId(), s.getName()));\n \t}\n \treturn ls;\n }", "public List<MovieDetails> getAllFavoriteMovies() {\n SQLiteDatabase database = this.getWritableDatabase();\n List<MovieDetails> movieDetailses = new ArrayList<>();\n List<Integer> favoritesMovieId = new ArrayList<>();\n String selectQuery = \"SELECT * FROM \" + FavoriteMoviesEntry.TABLE_NAME;\n Cursor cursor = database.rawQuery(selectQuery, null);\n if (cursor.moveToFirst()) {\n do {\n int id = getIdFromCursor(cursor);\n String selectFavoriteMovieQuery = \"SELECT * FROM \" + MoviesDetailsEntry.TABLE_NAME + \"WHERE \" + MoviesDetailsEntry._ID + \"= \" + id;\n Cursor movieCursor = database.rawQuery(selectFavoriteMovieQuery, null);\n if (movieCursor.moveToFirst()) {\n do {\n MovieDetails movieDetails = getMovieDetailsFromCursor(movieCursor);\n movieDetailses.add(movieDetails);\n } while (movieCursor.moveToNext());\n }\n } while (cursor.moveToNext());\n }\n database.close();\n\n return movieDetailses;\n }", "public List<CollectionLightWeight> getSongResultList() {\n return songs;\n }", "public ArrayList getSongs() {\r\n\t\tArrayList songs = new ArrayList(mlitDataFields.size());\r\n\t\tfor (int i = 0; i < mlitDataFields.size(); i++) {\r\n\t\t\tArrayList fps = ((ArrayList) mlitDataFields.get(i));\r\n\t\t\tString name = null;\r\n\t\t\tint id = 0;\r\n\t\t\tDaapSong s = new DaapSong();\r\n\t\t\t\ts.host = host;\r\n\t\t\tfor (int j = 0; j < fps.size(); j++) {\r\n\t\t\t\tFieldPair fp = ((FieldPair) fps.get(j));\r\n\t\t\t\tif (fp.name.equals(\"miid\")) {\r\n\t\t\t\t\ts.id = Request.readInt(fp.value, 0, 4);\r\n\t\t\t\t} else if (fp.name.equals(\"minm\")) {\r\n\t\t\t\t\ts.name = Request.readString(fp.value, 0, fp.value.length).trim();\r\n\t\t\t\t} else if (fp.name.equals(\"mper\")) {\r\n\t\t\t\t s.persistent_id = Request.readString(fp.value, 0, fp.value.length).trim();\r\n\t\t\t\t} else if (fp.name.equals(\"asal\")) {\r\n\t\t\t\t\ts.album = Request.readString(fp.value, 0, fp.value.length).trim();\r\n\t\t\t\t} else if (fp.name.equals(\"asar\")) {\r\n\t\t\t\t\ts.artist = Request.readString(fp.value, 0, fp.value.length).trim();\r\n\t\t\t\t} else if (fp.name.equals(\"astn\")) {\r\n\t\t\t\t\ts.track = Request.readInt(fp.value, 0, 2);\r\n\t\t\t\t} else if (fp.name.equals(\"asgn\")) {\r\n\t\t\t\t\ts.genre = Request.readString(fp.value, 0, fp.value.length);\r\n\t\t\t\t} else if (fp.name.equals(\"asfm\")) {\r\n\t\t\t\t\ts.format = Request.readString(fp.value, 0, fp.value.length);\r\n\t\t\t\t} else if (fp.name.equals(\"astm\")) {\r\n\t\t\t\t\ts.time = Request.readInt(fp.value, 0, 4);\r\n\t\t\t\t} else if (fp.name.equals(\"assz\")) {\r\n\t\t\t\t\ts.size = Request.readInt(fp.value, 0, 4);\r\n\t\t\t\t} else if (fp.name.equals(\"asco\")) {\r\n\t\t\t\t s.compilation = (Request.readInt(fp.value, 0,1) == 1);\r\n\t\t\t\t} else if (fp.name.equals(\"asbr\")) {\r\n\t\t\t\t s.bitrate = Request.readInt(fp.value,0,2);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t}\r\n\t\t\tsongs.add(s);\r\n\t\t}\r\n\t\treturn songs;\r\n\t}", "public List<Song> findArtistSongs(String search) {\n\t\treturn lookifyRepository.findByArtistContaining(search);\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic List<ItemMedicamentoEntity> listaTodos(){\r\n\r\n\t\treturn this.entityManager.createQuery(\"SELECT * FROM ItemMedicamentoEntity ORDER BY codigo\").getResultList();\r\n\t}", "public ArrayList<ArrayList<String>> readthePathOfMusicFiles()\n {\n File file = new File(path);\n String[] names = file.list();// all directories inside dataset1 direcory\n ArrayList<ArrayList<String>> pathOfMusicFiles = new ArrayList<>();\n String artistName = \"\";\n String trackName = \"\";\n Mp3File song = null;\n for (int i = 0; i < names.length; i++) \n {\n File file1 = new File(path + '/' + names[i]);\n if (file1.isDirectory())\n {\n String[] fileNames = file1.list();\n for (String fileName : fileNames)// all files in directory\n {\n if (fileName.contains(\".mp3\") && !(fileName.charAt(0) == '.'))\n {\n try\n {\n song = new Mp3File(path + '/' + names[i] + '/' + fileName);\n }\n catch (UnsupportedTagException | InvalidDataException | IOException e)\n {\n e.printStackTrace();\n }\n if(song!=null && song.hasId3v1Tag())\n {\n ID3v1 id3v1Tag = song.getId3v1Tag();\n artistName = id3v1Tag.getArtist();\n trackName = id3v1Tag.getTitle();\n }\n if(song!=null && song.hasId3v2Tag())\n {\n ID3v2 id3v2tag = song.getId3v2Tag();\n artistName = id3v2tag.getArtist();\n trackName = id3v2tag.getTitle();\n }\n if(artistName != null && artistName.length() >= 1 && trackName != null && artistName.length() >= 1)\n {\n if(artistName.charAt(0) >= startChar && artistName.charAt(0) <= endChar)\n {\n ArrayList<String> songAttributes = new ArrayList<>();\n songAttributes.add(path + '/' + names[i] + '/' + fileName);\n songAttributes.add(artistName);\n songAttributes.add(trackName);\n pathOfMusicFiles.add(songAttributes);\n }\n }\n }\n }\n }\n }\n return pathOfMusicFiles;\n }", "public static ArrayList<String> getOpeningMovies() throws IOException {\n\t\tString sURL = \"http://api.rottentomatoes.com/api/public/v1.0/lists/movies/opening.json?apikey=\" + API_KEY; //just a string\n\n\t\t// Connect to the URL using java's native library\n\t\tURL url = new URL(sURL);\n\t\tHttpURLConnection request = (HttpURLConnection) url.openConnection();\n\t\trequest.connect();\n\n\t\t// Convert to a JSON object to print data\n\t\tJsonParser jp = new JsonParser(); //from gson\n\t\tJsonElement root = jp.parse(new InputStreamReader((InputStream) request.getContent())); //Convert the input stream to a json element\n\t\tJsonObject rootobj = root.getAsJsonObject(); //May be an array, may be an object. \n\t\tJsonArray arr = rootobj.get(\"movies\").getAsJsonArray();\n\t\tArrayList<String> moviesList = new ArrayList<String>();\n\t\tfor (JsonElement movie : arr) {\n\t\t\tString id = movie.getAsJsonObject().get(\"id\").getAsString();\n\t\t\tString title = movie.getAsJsonObject().get(\"title\").getAsString();\n\t\t\tmoviesList.add(id);\n\t\t\tmovieMap.put(id, title);\n\t\t}\n\n\t\treturn moviesList;\n\t}", "private void populateGenres(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT DISTINCT genre FROM artist ORDER BY genre\");\n\n while(results.next()){\n String genre = results.getString(1);\n genreList.add(genre);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }", "public ArrayList<String> getAnalytes() {\n ArrayList<String> analytes = new ArrayList<>();\n getData(analytes, \"getAnalytes\");\n return analytes;\n }", "public static void clearPreviousArtists(){previousArtists.clear();}" ]
[ "0.7333595", "0.7186529", "0.6869633", "0.67485523", "0.6686427", "0.6546865", "0.6536679", "0.64875996", "0.64641243", "0.6438518", "0.63631904", "0.63355064", "0.62780863", "0.6261457", "0.62389916", "0.6210257", "0.6191838", "0.61796385", "0.6139692", "0.60993433", "0.6074346", "0.6049651", "0.6045324", "0.602182", "0.5992098", "0.59797233", "0.5974543", "0.5966394", "0.593167", "0.59142524", "0.5908603", "0.59039164", "0.5871059", "0.58491474", "0.58449095", "0.5835912", "0.5835638", "0.5824149", "0.5794522", "0.5788654", "0.5777842", "0.57772255", "0.57745737", "0.5761819", "0.57608616", "0.5753408", "0.5749099", "0.5735665", "0.572609", "0.5723788", "0.5718545", "0.571225", "0.5703706", "0.57010424", "0.5688084", "0.5687771", "0.5685164", "0.5677535", "0.56746405", "0.56686753", "0.5660806", "0.56474733", "0.5643933", "0.56365144", "0.56140125", "0.5609772", "0.5584727", "0.55846864", "0.5583121", "0.5568456", "0.5568044", "0.556471", "0.55502343", "0.5549473", "0.5533716", "0.5530477", "0.5530297", "0.5525857", "0.55254096", "0.55185217", "0.55185217", "0.5516512", "0.5512684", "0.5510336", "0.550541", "0.55050665", "0.55042523", "0.55013704", "0.54921085", "0.54920727", "0.5491197", "0.5487339", "0.54822767", "0.5463221", "0.54611224", "0.54524255", "0.54491305", "0.5443368", "0.5441165", "0.5439374" ]
0.6688388
4
Retorna artistas por nombre.
@GET @Path("/searchArtist/{searchName}") public List<ArtistDTO> searchArtist(@PathParam("searchName") String name) { return artistLogic.findByName(name); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Artist getByName(String name);", "public String getArtistName() {\n return mArtistName;\n }", "public String getArtistName() {\n return mArtistName;\n }", "public String findArtist (String song)\n\t{\n\t\tArrayList <String> name = new ArrayList <String>(); \n\t\tfor (Song e: music)\n\t\t\tif (e.getName().equals(song))\n\t\t\t\tname.add(e.getArtist());\n\t\tString results = \"\";\n\t\tfor (int i = 0; i < name.size(); i++)\n\t\t{\n\t\t\tif (name.size()-1 == i)\n\t\t\t{\n\t\t\t\tresults += name.get(i) +\".\";\n\t\t\t}\n\t\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tresults += name.get(i) + \", \"; \n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\treturn results; \n\t}", "@Override\n\tpublic List<Artist> findByName(String name) {\n\t\treturn null;\n\t}", "public String getArtist() {\n return artist;\n }", "public String getArtist() {\n return artist;\n }", "public String getArtist(){\n\t\treturn artist;\n\t}", "public String getArtist() {\r\n\t\treturn artist;\r\n\t}", "public String getArtist() {\n\t\treturn artist;\r\n\t}", "List<String> getArtists();", "@Override\n\tpublic String toString() {\n\t\treturn \"Artist : \"+this.artistName+\"\\n\";\n\t}", "public Vector<Artista> findAllArtisti();", "public String getArtist() {\n\t\treturn this.artist;\n\t}", "public String allSongs (String artist)\n\t{\n\t\tArrayList <String> songs = new ArrayList <String>();\n\t\tfor (Song e: music)\n\t\t\tif(e.getArtist().equals(artist))\n\t\t\t\tsongs.add(e.getName());\n\t\tString results = \"\";\n\t\tfor (int i = 0; i < songs.size(); i++)\n\t\t{\n\t\t\tif (music.size()-1 == i)\n\t\t\t{\n\t\t\t\tresults += music.get(i) +\".\";\n\t\t\t}\n\t\t\t\t\n\t\t\telse\n\t\t\t{\n\t\t\t\tresults += music.get(i) + \", \";\n\t\t\t}\n\t\t}\n\t\treturn results; \n\t}", "public Artista(String nombreArtista) {\n this.nombreArtista = nombreArtista;\n }", "public Set<String> getArtists() {\r\n return this.artists;\r\n }", "public String getArtist() {\n\t\tString item = \"\";\n\t\ttry {\n\t\t\tif (mp3File.hasID3v1Tag()) {\n\t\t\t\titem = mp3File.getID3v1Tag().getArtist();\n\t\t\t\tif (item != null && item != \"\")\n\t\t\t\t\treturn item;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.e(TAG, \"Error when reading artist from ID3v1 tag.\", e);\n\t\t}\n\n\t\ttry {\n\t\t\tif (mp3File.hasID3v1Tag()) {\n\t\t\t\titem = mp3File.getID3v1Tag().getLeadArtist();\n\t\t\t\tif (item != null && item != \"\")\n\t\t\t\t\treturn item;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.e(TAG, \"Error when reading artist from ID3v1 tag.\", e);\n\t\t}\n\n\t\ttry {\n\t\t\tif (mp3File.hasID3v2Tag()) {\n\t\t\t\titem = mp3File.getID3v2Tag().getLeadArtist();\n\t\t\t\tif (item != null && item != \"\")\n\t\t\t\t\treturn item;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tLog.e(TAG, \"Error when reading artist from ID3v2 tag.\", e);\n\t\t}\n\n\t\treturn item;\n\t}", "Artist getById(long id);", "@Override\n\tpublic String getType() {\n\t\treturn \"Artist\";\n\t}", "Set<Art> getArtByArtist(String artist);", "public SimpleStringProperty artistProperty(){\r\n\t\treturn artist;\r\n\t}", "public String showSongName(){\n String nameSong = \"\";\n for (int i = 0; i<MAX_SONG; i++){\n if(poolSong[i] != null){\n nameSong += \"[\"+(i+1)+\"]\"+poolSong[i].getTittleSong()+\"\\n\";\n }\n }\n return nameSong;\n }", "public String getAlbumArtist() {\n return albumArtist;\n }", "public List<Album> getAlbums(Artist artist);", "private static String getArtist(String songID) throws SQLException {\n artistStatement = conn.createStatement();\n artistResultSet = artistStatement.executeQuery(\"SELECT * FROM artist, trackArtist WHERE trackArtist.track_id = '\" + songID + \"' AND trackArtist.artist_id = artist.id;\");\n artistResultSet.next();\n return artistResultSet.getString(\"name\");\n }", "public void setName(String artistName) {\n this.artistName = artistName;\n }", "private String getArtist(File mp3){\n\t\tString tempString = \"\";\n\t InputStream input;\n\t ContentHandler handler = new DefaultHandler();\n\t Metadata metadata = new Metadata();\n\t Parser parser = new Mp3Parser();\n\t ParseContext parseCtx = new ParseContext();\n\t \n\t\ttry {\n\t\t\tinput = new FileInputStream(mp3);\n\t\t\tparser.parse(input, handler, metadata, parseCtx);\n\t\t input.close();\n\t\t} \n\t\tcatch (IOException | SAXException | TikaException e) {\n\t\t\tSystem.out.println(\"Error with: \" + mp3.getPath());\n\t\t\te.printStackTrace();\n\t\t}\n\t \n\t tempString = metadata.get(\"xmpDM:artist\");\n\t\t\n\t\tif (tempString.isEmpty() || tempString.contentEquals(\" \")){\n\t\t\treturn \"Unknown\";\n\t\t}\n\t\treturn tempString;\n\t\t\n\t}", "public void displayByArtists()\n {\n Collections.sort(catalog, new ArtistComparator());\n \n System.out.printf(\"%-30s %-39s %s %n\",\"ARTIST\", \"ALBUM\", \"TRACKS\"); \n for(Album a : catalog)\n System.out.println(a.toString(false)); //prints the artist first.\n \n for(int i=1; i<30; i++)\n System.out.print(\"*\");\n System.out.print(\"\\n\\n\");\n }", "private void showArtistas(Artist c) {\n\t\tif (c != null) {\n\t\t\tArtist r = ArtistDAO.List_Artist_By_Name(c.getName());\n\t\t\tNombreArtista.setText(r.getName());\n\t\t\tNacionalidadArtista.setText(r.getNationality());\n\t\t\tFotoArtista.setText(r.getPhoto());\n\t\t\tBorrarArtista.setDisable(false);\n\t\t\ttry {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(r.getPhoto()));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t} catch (Exception e) {\n\t\t\t\tImage image = new Image(App.class.getResourceAsStream(\"error.jpg\"));\n\t\t\t\tfoartista.setImage(image);\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\n\t\t} else {\n\t\t\tBorrarArtista.setDisable(true);\n\t\t\tNombreArtista.setText(\"\");\n\t\t\tNacionalidadArtista.setText(\"\");\n\t\t\tFotoArtista.setText(\"\");\n\t\t}\n\n\t}", "public static Player getArtist(){return artist;}", "public void mostrarMusicaPorArtista() {\r\n\t\t\r\n\t\t//Instanciar view solicitar artista\r\n\t\tViewSolicitaArtista vsa = new ViewSolicitaArtista();\r\n\t\t\r\n\t\t//Obter artistas\r\n\t\tvsa.obterArtista();\r\n\t\t\r\n\t\t//Guarda artista\r\n\t\tString artista = vsa.getArtista();\r\n\t\t\r\n\t\tif (this.bd.naoExisteArtista(artista)) {\r\n\r\n\t\t\t//Metodo musica por artista\r\n\t\t\tArrayList<String> musicas = this.bd.getMusicasPorArtista(artista);\r\n\t\t\t\r\n\t\t\t//Instancia view para mostrar musicas\r\n\t\t\tViewExibeMusicas vem = new ViewExibeMusicas();\r\n\t\t\t\r\n\t\t\t//Exibe musicas\r\n\t\t\tvem.exibeMusicas(musicas);\r\n\t\t\t\r\n\t\t}else{\r\n\t\t\r\n\t\t//Instanciar view informa\r\n\t\tViewInformacaoExiste vie = new ViewInformacaoExiste();\r\n\t\t\r\n\t\t//Exibir mensagem artista não existe\r\n\t\tvie.mensagemArtistaNaoExiste();\r\n\t\t}\r\n\t}", "public ReactorResult<Contact> getAllLeadArtist_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), LEADARTIST, Contact.class);\r\n\t}", "Album findAlbumByNameAndArtisteName(String albumName, String artisteName);", "private void populateArtists(){\n try{\n Connection conn = DriverManager.getConnection(\n \"jdbc:sqlite:\\\\D:\\\\Programming\\\\Java\\\\Assignments\\\\CIS_452\\\\Music_Library\\\\album_library.sqlite\");\n Statement stmnt = conn.createStatement();\n ResultSet results = stmnt.executeQuery(\"SELECT artist_name FROM artist ORDER BY artist_name\");\n\n while(results.next()){\n String artist = results.getString(1);\n artistList.add(artist);\n }\n conn.close();\n } catch(SQLException e) {\n System.out.println(\"Error connecting to database: \" + e.getMessage());\n }\n }", "public ReactorResult<Contact> getAllOriginalArtist_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ORIGINALARTIST, Contact.class);\r\n\t}", "public ArrayList<String> getMusicName_ () {\n\n /*\n ArrayList<String> musicList = new ArrayList<>();\n Collections.sort(musicName);\n\n for (String item : musicName) {\n musicList.add(item);\n }\n return musicList;\n * */\n\n return musicName;\n\n }", "ArtistCommunitySearch getArtistSearch();", "public Art() {\n this.artist = \"Michelangelo\";\n this.timePeriod = 1510;\n this.aesthetic = \"High Renaissance\";\n this.size = \"Enormous\";\n }", "public String toString() {\r\n return this.title + \" by \" + this.artist;\r\n }", "public ArtistSet getArtists() {\n\t\treturn restTemplate.getForObject(embyUrl + \"/\"+ EmbyUrlConstants.ARTISTS, ArtistSet.class);\n\t}", "public ArrayList <ITunesItem> getArtists(String searchText) throws IOException\n\t{\n\t\tsearchText = searchText.replace(\" \", \"+\");\n\t\tString query = \"term=\" + searchText + \"&entity=musicArtist&attribute=artistTerm\";\n\t\treturn searchQuery(query);\n\t}", "public void getArtistsMetaDataFromDevice(){\n // implement a cursorLoader\n ContentResolver resolver = getContentResolver();\n Cursor cursor = resolver.query(MediaStore.Audio.Artists.INTERNAL_CONTENT_URI,null,null,null,MediaStore.Audio.ArtistColumns.ARTIST);\n }", "public void setArtist(String artist) {\n this.artist = artist;\n }", "public void setArtist(String artist) {\n this.artist = artist;\n }", "public String[] getMusicas() {\n\t\treturn musicas;\n\t}", "public String getMusic(int index){\r\n\t\treturn myMusics.get(index);\r\n\t}", "public Artist(String name, Genre mainGenre) {\n this.name = name;\n this.cataloue = new ArrayList<Record>();\n this.mainGenre = mainGenre;\n }", "public List<Artist> searchArtistOnly(String text) throws SQLException {\n\t\tList<Artist> artist = new ArrayList<Artist>();\n\n\t\tString sql = \"SELECT * FROM artist\" + \" WHERE Artist_Name LIKE ? ORDER BY Artist_Id\";\n\t\tDriver driver = new Driver();\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\n\t\ttry {\n\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, \"%\" + text + \"%\");\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\tartist.add(new Artist(res.getInt(\"Artist_Id\"), res.getString(\"Artist_Name\"),\n\t\t\t\t\t\tres.getString(\"Start_Year_Active\"), res.getString(\"End_Year_Active\")));\n\t\t\t}\n\t\t\treturn artist;\n\t\t}\n\n\t\tfinally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\n\t}", "public String getName() {\n\t\treturn songName;\n\t}", "public boolean isArtist(){return isArtist;}", "public void setArtist(String artist){\n\t\tthis.artist = artist;\n\t}", "public String getCoverArtName();", "public ArrayList<String> obtenerNombresMedicos() {\n ArrayList<String> nombres = new ArrayList<String>();\n for (int i = 0; i < medicos.length; i++) {\n if (medicos[i] != null) {\n nombres.add(medicos[i].getNombre());\n }\n }\n return nombres;\n }", "public Profesional buscarMedicoNombre(String n) {\n for (int i = 0; i < medicos.length; i++) {\n if (medicos[i] != null) {\n if (medicos[i].getNombre().equals(n)) {\n return medicos[i];\n }\n }\n\n }\n return null;\n }", "public List<Artist> listArtistsAndID() throws SQLException {\n\t\tList<Artist> artist = new ArrayList<Artist>();\n\t\tDriver driver = new Driver();\n\t\tString sql = \"SELECT * FROM artist \" + \"ORDER BY Artist_ID\";\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\t\ttry {\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\tartist.add(new Artist(res.getInt(\"Artist_Id\"), res.getString(\"Artist_Name\"),\n\t\t\t\t\t\tres.getString(\"Start_Year_Active\"), res.getString(\"End_Year_Active\")));\n\t\t\t}\n\t\t\treturn artist;\n\t\t} finally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\t}", "@Override\n public String toString() {\n return \"Art{\" +\n \"artist='\" + artist + '\\'' +\n \", timePeriod=\" + timePeriod +\n \", aesthetic='\" + aesthetic + '\\'' +\n \", size='\" + size + '\\'' +\n '}';\n }", "public ReactorResult<org.ontoware.rdfreactor.schema.rdfs.Resource> getAllOfficialArtistWebpage_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), OFFICIALARTISTWEBPAGE, org.ontoware.rdfreactor.schema.rdfs.Resource.class);\r\n\t}", "private void setDefaultSongNameAndArtist(){\r\n\t\tString[] songLocation = getLocation().split(\"/\");\r\n\t\tString[] songFragment = songLocation[songLocation.length - 1].split(\"[.]\");\r\n\t\tsetSongName(songFragment[0]);\r\n\t\t\r\n\t\tsetAlbum(songLocation[songLocation.length - 2] + \"?\");\r\n\t\tsetArtist(songLocation[songLocation.length - 3] + \"?\");\r\n\t\t\r\n\t}", "public List<String> nomeAnimais(){\n\t\tfor (Animal a: this.animais) {\n\t\t\tthis.nomes.add(a.getNomeNumero());\n\t\t}\n\t\treturn this.nomes;\n\t}", "public String showPlayListNames(){\n String namePlayList = \"\";\n for(int i = 0; i<MAX_PLAYLIST; i++){\n if(thePlayLists[i] != null){\n namePlayList += \"[\"+(i+1)+\"]\"+thePlayLists[i].getNamePlayList()+\"\\n\";\n }\n }\n return namePlayList;\n }", "List<String> getFavoriteRecipeTitle();", "@Override\n\tpublic List<Music> findByName(String name) {\n\t\treturn store.readByName(name);\n\t}", "String darArtistaSeleccionado( )\n {\n return ( ( Artista ) Objects.requireNonNull( cbArtistas.getSelectedItem( ) ) ).darNombre( );\n }", "@RequestMapping(value=\"/artistes/{nom}\",method=RequestMethod.GET)\r\n\t\t\tpublic Artiste findArtistebyNom(@PathVariable String nom){\r\n\t\t\t\tList<Artiste> stock = artisteRepo.findArtisteByNom(nom);\r\n\t\t\t\tif (stock.isEmpty()) {\r\n\t\t\t\t\tArtiste a = new Artiste();\r\n\t\t\t\t\treturn a;\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\treturn stock.get(0);\r\n\t\t\t\t}\r\n\t\t\t}", "public Artist getArtist(int artistID) {\n\t\treturn artists.get(artistID);\n\t}", "public ArrayList<String> getListSongs() {\n\t\tArrayList<String> ret = new ArrayList<String>();\n\t\tList<Song> songs = controller.getSongs();\n\t\tfor (Iterator<Song> it = songs.iterator(); it.hasNext(); ) {\n\t\t\tSong song = it.next();\n\t\t\tret.add(song.getTitle() + \" - \" + song.getArtist());\n\t\t}\n\t\treturn ret;\n\t}", "public static Playlist getSongsByArtist(Playlist originalList, String artist) throws IllegalArgumentException, FullPlaylistException, EmptyPlaylistException\n\t{\n\t\tPlaylist newList = new Playlist();\n\t\tint n = 0;\n\t\tfor(int i = 1; i <= originalList.size(); i++)\n\t\t\tif(artist.equals(originalList.getSong(i).getArtist()))\n\t\t\t\tnewList.addSong(originalList.getSong(i), ++n);\n\t\tif(n == 0)\n\t\t{\n\t\t\tnewList = null;\n\t\t\tthrow new IllegalArgumentException(\"Artist could not be found in this playlist\");\n\t\t}\n\t\treturn newList;\n\t}", "public List<Artist> searchAlbumForArtist(String text) throws SQLException {\n\t\tList<Artist> albumsArtist = new ArrayList<Artist>();\n\t\tDriver driver = new Driver();\n\t\tString sql = \"SELECT Artist.*, Album_Name, Year_Released FROM artist,album\"\n\t\t\t\t+ \" WHERE artist.Artist_ID = album.Artist_ID AND Album_Name Like ? \"\n\t\t\t\t+ \"ORDER BY artist.Artist_ID, Year_Released\";\n\n\t\tConnection conn = null;\n\t\tPreparedStatement pstmt = null;\n\t\tResultSet res = null;\n\n\t\ttry {\n\t\t\tconn = driver.openConnection();\n\t\t\tpstmt = conn.prepareStatement(sql);\n\t\t\tpstmt.setString(1, \"%\" + text + \"%\");\n\t\t\tres = pstmt.executeQuery();\n\t\t\twhile (res.next()) {\n\t\t\t\talbumsArtist.add(new Artist(res.getInt(\"Artist_Id\"), res.getString(\"Artist_Name\"),\n\t\t\t\t\t\tres.getString(\"Start_Year_Active\"), res.getString(\"End_Year_Active\")));\n\t\t\t}\n\t\t\treturn albumsArtist;\n\t\t} finally {\n\t\t\tDriver.closeConnection(conn);\n\t\t\tDriver.closeStatement(pstmt);\n\t\t}\n\t}", "public int getArtistID() {\n return artistID;\n }", "@Override\n public String toString()\n {\n return albumName + ' ' + artistName + ' ' + genre + '\\n';\n }", "public Artist[] getAllArtistsMatchingQuery(String query) {\n List<Artist> results = new ArrayList<>();\n for(Artist Artist: getArtistList()){\n if(Artist.getName().toLowerCase().contains(query.toLowerCase())){\n results.add(Artist);\n }\n }\n return results.toArray(new Artist[results.size()]);\n }", "public static List<Artist> makeChild2() {\n Artist q = new Artist(\"\", true);\n return Arrays.asList(q);\n }", "public List<Song> findArtistSongs(String search) {\n\t\treturn lookifyRepository.findByArtistContaining(search);\n\t}", "public List<ArtistBean> resultArtistList(PageBean pBean) {\n\t\treturn adminSearchDao.resultArtistList(pBean);\n\t}", "public ArrayList<Song> searchByArtist(String artist) \r\n {\r\n \treturn musicLibraryArtistKey.get(artist);\r\n \t\r\n }", "public String getSongName() {\n return mSongName;\n }", "public static List<Artist> makeChild3() {\n Artist q = new Artist(\"\", true);\n return Arrays.asList(q);\n }", "public void testGetArtistName()\r\n {\r\n assertTrue(artistName.equals(song.\r\n getArtistName()));\r\n }", "public JSONObject searchByArtist(String artist) {\n\t\tJSONObject byArtistObject = new JSONObject();\n\t\tJSONArray songList = new JSONArray();\n\t\tTreeSet<String> simSongsList = new TreeSet<>();\n\t\t\n\t\tif(this.artistMap.get(artist) != null) {\n\t\t\tfor(Song song: this.artistMap.get(artist)) {\n\t\t\t\tfor(String simSong: song.getSimilars()) {\n\t\t\t\t\tif(idMap.containsKey(simSong)) {\n\t\t\t\t\t\tsimSongsList.add(simSong);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(String trackId: simSongsList) {\n\t\t\t\tsongList.add(idMap.get(trackId).toJSON());\n\t\t\t}\n\t\t}\n\t\t\n\t\tbyArtistObject.put(\"artist\", artist);\n\t\tbyArtistObject.put(\"similars\", songList);\n\t\t\n\t\treturn byArtistObject;\n\t}", "public ReactorResult<Contact> getAllBackgroundArtist_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), BACKGROUNDARTIST, Contact.class);\r\n\t}", "private MyArtist createArtist(Cursor cursor) {\n int idxArtistId = cursor.getColumnIndex(MyArtistColumns.ARTIST_ID);\n int idxArtistName = cursor.getColumnIndex(MyArtistColumns.ARTIST_NAME);\n int idxImageUrl = cursor.getColumnIndex(MyArtistColumns.IMAGE_URL);\n\n MyArtist artist = new MyArtist();\n\n if (idxArtistId > -1) {\n artist.id = cursor.getString(idxArtistId);\n }\n if (idxArtistName > -1) {\n artist.name = cursor.getString(idxArtistName);\n }\n if (idxImageUrl > -1) {\n artist.setImageUrl(cursor.getString(idxImageUrl));\n }\n\n return artist;\n }", "public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllLeadArtist_asNode() {\r\n\t\treturn Base.getAll_asNode(this.model, this.getResource(), LEADARTIST);\r\n\t}", "public String getArtikelName() {\r\n\t\treturn artikelName;\r\n\t}", "public Long getArtistId() {\r\n return artistId;\r\n }", "public String showNameUser(){\n String nameUsertoSong = \"\";\n for(int i = 0; i<MAX_USER; i++){\n if(user[i] != null){\n nameUsertoSong += \"[\"+(i+1)+\"]\"+user[i].getUserName()+\"\\n\";\n }\n }\n return nameUsertoSong;\n }", "public static List<String> getFilms(String acteur) {\n\t\tString movie = \"\";\n\t\tList<String> movies_list = new ArrayList<String>();\n\t\tString string_query = \"SELECT $title WHERE {\\n $film rdf:type dbo:Film;\\n\" + \n \" foaf:name $title;\\n dbo:starring $acteur.\\n\" + \n \"$acteur foaf:name \\\"ACTOR_NAME\\\"@en\\n}\".replaceAll(\"ACTOR_NAME\",acteur);\n\t\t\n\n ParameterizedSparqlString qs = new ParameterizedSparqlString(PREFIX +string_query);\n QueryExecution exec = QueryExecutionFactory.sparqlService(SERVICE, qs.asQuery());\n ResultSet results = exec.execSelect();\n \n while (results.hasNext()) {\n \tQuerySolution solution = results.nextSolution();\n \tmovie = solution.getLiteral(\"?title\").toString().replace(\"@en\", \"\");\n \tmovies_list.add(movie);\n }\n\t\t\n\t\treturn movies_list;\n\t}", "public String toString() {\n\t\tString strMusica = \"\";\n\t\tfor (int i = 0; i < musicas.length; i++) {\n\t\t\tstrMusica += musicas[i] + \" \";\n\t\t}\n\n\t\treturn \"Autor: \" + autor + \", Nome: \" + nome + \", Preferida: \"\n\t\t\t\t+ preferida + \", Musicas: \" + strMusica;\n\t}", "public String getName(){\n\t\treturn players.get(0).getName();\n\t}", "public void mostrarEquipos(String nombreEquipo) {\n\n for (Equipo equipo : listaEquipos) {\n\n if (equipo.getNombreEquipo() == nombreEquipo) {\n\n System.out.println(equipo);\n }\n }\n }", "private List<String> getMovieNames() {\n List<String> movieNames = new ArrayList<>();\n for (Movie movie: this.movies) {\n movieNames.add(movie.getName());\n }\n return movieNames;\n }", "public ReactorResult<java.lang.String> getAllOriginalAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ORIGINALALBUMTITLE, java.lang.String.class);\r\n\t}", "public static List<Artist> makeChild1() {\n Artist q = new Artist(\"\", true);\n return Arrays.asList(q);\n }", "public String[] nombres(){\n return partida.nombres();\n }", "String[] getMetadataNames();", "@Override\n public java.lang.String getNombre() {\n return _partido.getNombre();\n }", "public ReactorResult<java.lang.String> getAllAlbumTitle_as() {\r\n\t\treturn Base.getAll_as(this.model, this.getResource(), ALBUMTITLE, java.lang.String.class);\r\n\t}", "public Long getArtistID()\r\n {\r\n return artistID;\r\n }", "public static ArrayList<String> getPlayerInformation() {\n clearScreen();\n ArrayList<String> Names = new ArrayList<String>();\n for (int i = 1; i < 3; i++) {\n System.out.println(\"Player \" + i + \"'s Name:\");\n Names.add(Input.nextLine());\n clearScreen();\n }\n return Names;\n }", "@GET\n public List<ArtistDTO> getArtists() {\n List<ArtistDTO> artists = new ArrayList();\n if (page != null && maxRecords != null) {\n this.response.setIntHeader(\"X-Total-Count\", artistLogic.countArtists());\n }\n try {\n URL url = ArtistService.class.getResource(\"ArtistService.class\");\n String className = url.getFile();\n String filePath = className.substring(0, className.indexOf(\"WEB-INF\") + \"WEB-INF\".length());\n Wini ini = new Wini(new File(filePath + \"/shiro.ini\"));\n String path = ini.get(\"main\", \"stormpathClient.apiKeyFileLocation\");\n ApiKey apiKey = ApiKeys.builder().setFileLocation(path).build();\n Client client = Clients.builder().setApiKey(apiKey).build();\n artists = artistLogic.getArtists(page, maxRecords);\n for (ArtistDTO artistDTO : artists) {\n try {\n Account account = client.getResource(artistDTO.getUserId(), Account.class);\n artistDTO.setFirstName(account.getGivenName());\n artistDTO.setLastname(account.getSurname());\n artistDTO.setEmail(account.getEmail());\n } catch (ResourceException e) {\n Logger.getLogger(ArtistService.class.getName()).log(Level.SEVERE, null, \"No existe el usuario con ese ID\");\n Logger.getLogger(ArtistService.class.getName()).log(Level.SEVERE, null, e);\n }\n }\n } catch (IOException e) {\n artists.clear();\n Logger.getLogger(ArtistService.class.getName()).log(Level.SEVERE, null, \"Error al leer el archivo de shiro\");\n Logger.getLogger(ArtistService.class.getName()).log(Level.SEVERE, null, e);\n }\n return artists;\n }" ]
[ "0.7062661", "0.69478375", "0.69478375", "0.6799844", "0.6597212", "0.65820915", "0.65820915", "0.65182173", "0.6505813", "0.6460267", "0.64380366", "0.6437799", "0.6429006", "0.63727164", "0.6361334", "0.6306098", "0.6233922", "0.62275064", "0.62150484", "0.6178788", "0.61705476", "0.61004686", "0.601402", "0.59149003", "0.5894359", "0.58568335", "0.5852673", "0.5843716", "0.5769811", "0.574945", "0.57419574", "0.5737621", "0.5714165", "0.57004684", "0.5695975", "0.56910974", "0.56527835", "0.5619268", "0.56145084", "0.55950284", "0.5585829", "0.5584859", "0.55792063", "0.5571724", "0.5571724", "0.5549759", "0.550569", "0.5499832", "0.54959047", "0.5495095", "0.5487683", "0.5437093", "0.54269785", "0.54192954", "0.5399064", "0.53959775", "0.5390552", "0.5388153", "0.538241", "0.53771025", "0.53695005", "0.535755", "0.53511655", "0.5345427", "0.5340945", "0.5338043", "0.53290224", "0.5328951", "0.5319939", "0.5306508", "0.5303726", "0.53012747", "0.52690893", "0.52668804", "0.52630544", "0.5237796", "0.5236403", "0.5234616", "0.52302927", "0.52272123", "0.52251244", "0.5222915", "0.52208143", "0.5217055", "0.5199697", "0.519882", "0.51926196", "0.5186928", "0.51860446", "0.5178098", "0.5174385", "0.51727414", "0.5169617", "0.516857", "0.51469445", "0.51361", "0.512334", "0.5115133", "0.5114882", "0.5104586" ]
0.59049547
24
Create a new HttpClient and Post Header
public void postData(String message) // Method used to send data to the server when POSTs are used { HttpClient httpclient = new DefaultHttpClient(); HttpPost httppost = new HttpPost("https://"+this.serverIpAddress+":3000/"); try { List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>(1); nameValuePairs.add(new BasicNameValuePair("Location", message)); httppost.setEntity(new UrlEncodedFormEntity(nameValuePairs)); // Execute HTTP Post Request HttpResponse response = httpclient.execute(httppost); } catch (ClientProtocolException e) { Log.e("AsyncTask", "CLIENT PROTOCOL EXCEPTION while sending POST: "+e); if(lost==false) { Date cDate = new Date(); String lostDateTimeString = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss").format(cDate); String update[] = {"Unable to send POST! " +"("+ lostDateTimeString+") ClientProtocolException "+ e}; publishProgress(update); lost=true; } } catch (IOException e) { Log.e("AsyncTask", "IOEXCEPTION while sending POST: "+e); if(lost==false) { Date cDate = new Date(); String lostDateTimeString = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss").format(cDate); String update[] = {"Unable to send POST! " +"("+ lostDateTimeString+") IOException "+ e}; publishProgress(update); lost=true; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public HttpClientHelper() {\n defaultHeaders.put(\"Content-Type\", \"application/json\");\n defaultHeaders.put(\"Accept-Encoding\", \"gzip\");\n\n //postDefaultHeaders.put(\"Content-Type\", \"application/json\");\n //postDefaultHeaders.put(\"Content-Encoding\", \"gzip\");\n\n String key = MessageFormat.format(\"{0}#{1}\", UserUtil.getUserUuid(), UserUtil.getUserId());\n\n //postDefaultHeaders.put(\"X-CLIENT-KEY\", key);\n defaultHeaders.put(\"X-CLIENT-KEY\", key);\n client.setTimeout(3000);\n }", "public static final DefaultHttpClient createHttpClient() {\n\t\treturn createHttpClient(3);\n\t}", "private static HttpClient getNewHttpClient(){\n HttpParams params = new BasicHttpParams();\n return new DefaultHttpClient(params);\n }", "private static HttpClient createClient() {\n return HttpClients.createMinimal();\n }", "private DefaultHttpClient createHttpClient()\n throws IOException\n {\n XCapCredentialsProvider credentialsProvider\n = new XCapCredentialsProvider();\n credentialsProvider.setCredentials(\n AuthScope.ANY,\n new UsernamePasswordCredentials(getUserName(), password));\n\n return HttpUtils.getHttpClient(\n null , null, uri.getHost(), credentialsProvider);\n }", "private HttpClient prepareHttpClient() {\n\t\tHttpClientParams htcParams = new HttpClientParams();\n\t\tmHttpClient = new HttpClient();\n\t\thtcParams.setConnectionManagerTimeout(300000);\n\t\thtcParams.setSoTimeout(300000);\n\t\tmHttpClient.setParams(htcParams);\n\t\treturn mHttpClient;\n\t}", "@Test\n public void createPost() throws IOException {\n PostData postData = new PostData()\n .withId(101)\n .withUserId(1)\n .withTitle(\"New Post\")\n .withBody(\"This is the body of the post.\");\n\n // Create an HTTP Post Request\n HttpPost post = new HttpPost(POSTS);\n\n // Set the \"Content-type\" header of the\n // HTTP Post Request to \"Application/json; charset=UTF-8\"\n post.setHeader(\n CONTENT_TYPE,\n \"Application/json; charset=UTF-8\"\n );\n\n // Create a String Entity out of the JSON data and add it\n // to the HTTP Post Request.\n //\n // This will serialize the JSON data into a String\n post.setEntity(\n new StringEntity(\n this.gson.toJson(postData)\n )\n );\n\n // Execute the HTTP Post with the client\n HttpResponse response = this.httpClient.execute(post);\n\n // Get a PostData class instance from the response\n PostData responsePostData = getPostData(response);\n\n // Make assertions about the response\n assertThat(response.getStatusLine().getStatusCode())\n .isEqualTo(201);\n\n // Make assertions about the data returned\n assertThat(responsePostData.getId()).isEqualTo(101);\n assertThat(responsePostData.getUserId()).isEqualTo(1);\n assertThat(responsePostData.getTitle())\n .isEqualTo(postData.getTitle());\n assertThat(responsePostData.getBody())\n .isEqualTo(postData.getBody());\n }", "private static HttpResponse sendPost() throws Exception {\n // Create the Call using the URL\n HttpPost http = new HttpPost(url);\n // Set the credentials set earlier into the headers\n Header header = new BasicScheme(StandardCharsets.UTF_8).authenticate(creds, http, null);\n // Set the header into the HTTP request\n http.addHeader(header);\n // Print the response\n return httpClient.execute(http);\n }", "public static HttpClient Factory() {\n\t\treturn httpclient;\n\t}", "HttpClientRequest addHeader(CharSequence name, CharSequence value);", "public interface HttpClientInterface {\n byte[] post(String url, byte[] body);\n}", "public interface HttpClientFactory {\n CloseableHttpClient newHttpClient();\n}", "public HttpEntity openHttpEntityViaPost(URL url, List<NameValuePair> nvps) throws IOException {\r\n Logger.getLogger(TargetAuthenticationStrategy.class).setLevel(Level.ERROR);\r\n Logger.getLogger(RequestTargetAuthentication.class).setLevel(Level.ERROR);\r\n DefaultHttpClient httpclient = new DefaultHttpClient();\r\n \r\n httpclient.setRedirectStrategy(new LaxRedirectStrategy());\r\n\r\n httpclient.getParams().setParameter(ClientPNames.COOKIE_POLICY, CookiePolicy.BROWSER_COMPATIBILITY);\r\n CookieStore store = new BasicCookieStore();\r\n for (Cookie cookie : cookies) {\r\n store.addCookie(cookie);\r\n }\r\n httpclient.setCookieStore(store);\r\n\r\n httpclient.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);\r\n\r\n if (socketTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, socketTimeout);\r\n }\r\n if (connectionTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, connectionTimeout);\r\n }\r\n\r\n String domain = this.domain;\r\n String username = this.username;\r\n String password = this.password;\r\n if (serviceAccountPropertiesFileName != null) {\r\n Properties serviceAccountProperties = new Properties();\r\n if (new File(serviceAccountPropertiesFileName).exists()) {\r\n serviceAccountProperties.load(new FileReader(serviceAccountPropertiesFileName));\r\n } else {\r\n try {\r\n serviceAccountProperties.load(this.getClass().getResourceAsStream(serviceAccountPropertiesFileName));\r\n } catch (Exception e) {\r\n }\r\n }\r\n domain = serviceAccountProperties.getProperty(\"http.serviceaccount.domain\", domain);\r\n username = serviceAccountProperties.getProperty(\"http.serviceaccount.username\", username);\r\n password = serviceAccountProperties.getProperty(\"http.serviceaccount.password\", password);\r\n }\r\n\r\n if (username != null && password != null) {\r\n String decryptedPassword = password;\r\n try {\r\n decryptedPassword = new StringEncrypter().decrypt(password);\r\n } catch (Exception e) {\r\n }\r\n NTCredentials creds = new NTCredentials(username, decryptedPassword, getCanonicalHostName()[0], domain);\r\n httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY, creds);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.SPNEGO);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.KERBEROS);\r\n }\r\n HttpHost target = new HttpHost(url.getHost(), url.getPort(), url.getProtocol());\r\n HttpContext localContext = new BasicHttpContext();\r\n HttpPost post = new HttpPost(url.getFile());\r\n \r\n post.setEntity(new UrlEncodedFormEntity(nvps, Charset.forName(\"UTF-8\")));\r\n\r\n HttpResponse httpResponse = httpclient.execute(target, post, localContext);\r\n this.lastStatusLine = httpResponse.getStatusLine();\r\n lastCookies = httpclient.getCookieStore().getCookies();\r\n\r\n return httpResponse.getEntity();\r\n }", "static Http1Client create() {\n return create(Http1ClientConfig.create());\n }", "@Before\n public void buildClient() {\n BasicCookieStore cookieStore = new BasicCookieStore();\n\n // Build Apache Http Client to execute requests\n this.httpClient = HttpClientBuilder.create()\n .setDefaultCookieStore(cookieStore)\n .setRedirectStrategy(new LaxRedirectStrategy())\n .build();\n }", "private OkHttpClient createClient(){\n HttpLoggingInterceptor logging = new HttpLoggingInterceptor();\n logging.setLevel(HttpLoggingInterceptor.Level.BODY);\n return new OkHttpClient.Builder()\n .addInterceptor(logging)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS)\n .build();\n }", "public PostBuilder() {\n httpClient = HttpClients.createDefault();\n httpPost = new HttpPost(localTesting ? \"http://localhost:8080\" : \"https://netflixstatistixserver.herokuapp.com\");\n attributes = new ArrayList<>();\n }", "public HttpPost() {\n super();\n parameters = new HashMap<>();\n }", "HttpClientRequest addCookie(Cookie cookie);", "private HttpClient() {\n\t}", "HttpClientRequest header(CharSequence name, CharSequence value);", "HttpResponse post(URL url, Map<String, String> headers, byte[] body, String mediaType)\n throws IOException;", "private static void sendPosts(HttpClient httpClient) {\n HttpTextResponse httpResponse = httpClient.post(\"/hello/mom\");\n puts(httpResponse);\n\n\n /* Send one param post. */\n httpResponse = httpClient.postWith1Param(\"/hello/singleParam\", \"hi\", \"mom\");\n puts(\"single param\", httpResponse);\n\n\n /* Send two param post. */\n httpResponse = httpClient.postWith2Params(\"/hello/twoParams\",\n \"hi\", \"mom\", \"hello\", \"dad\");\n puts(\"two params\", httpResponse);\n\n\n /* Send two param post. */\n httpResponse = httpClient.postWith3Params(\"/hello/3params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\");\n puts(\"three params\", httpResponse);\n\n\n /* Send four param post. */\n httpResponse = httpClient.postWith4Params(\"/hello/4params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\",\n \"yo\", \"pets\");\n puts(\"4 params\", httpResponse);\n\n /* Send five param post. */\n httpResponse = httpClient.postWith5Params(\"/hello/5params\",\n \"hi\", \"mom\",\n \"hello\", \"dad\",\n \"greetings\", \"kids\",\n \"yo\", \"pets\",\n \"hola\", \"neighbors\");\n puts(\"5 params\", httpResponse);\n\n\n /* Send six params with post. */\n\n final HttpRequest httpRequest = httpRequestBuilder()\n .setUri(\"/sixPost\")\n .setMethod(\"POST\")\n .addParam(\"hi\", \"mom\")\n .addParam(\"hello\", \"dad\")\n .addParam(\"greetings\", \"kids\")\n .addParam(\"yo\", \"pets\")\n .addParam(\"hola\", \"pets\")\n .addParam(\"salutations\", \"all\").build();\n\n\n httpResponse = httpClient.sendRequestAndWait(httpRequest);\n puts(\"6 params\", httpResponse);\n\n\n //////////////////\n //////////////////\n\n\n /* Using Async support with lambda. */\n httpClient.postAsync(\"/hi/async\", (code, contentType, body) -> puts(\"Async text with lambda\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith1Param(\"/hi/async\", \"hi\", \"mom\", (code, contentType, body) -> puts(\"Async text with lambda 1 param\\n\", body));\n\n Sys.sleep(100);\n\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith2Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n (code, contentType, body) -> puts(\"Async text with lambda 2 params\\n\", body));\n\n Sys.sleep(100);\n\n\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith3Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n (code, contentType, body) -> puts(\"Async text with lambda 3 params\\n\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith4Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n \"p4\", \"v4\",\n (code, contentType, body) -> puts(\"Async text with lambda 4 params\\n\", body));\n\n Sys.sleep(100);\n\n\n /* Using Async support with lambda. */\n httpClient.postFormAsyncWith5Params(\"/hi/async\",\n \"p1\", \"v1\",\n \"p2\", \"v2\",\n \"p3\", \"v3\",\n \"p4\", \"v4\",\n \"p5\", \"v5\",\n (code, contentType, body) -> puts(\"Async text with lambda 5 params\\n\", body));\n\n Sys.sleep(100);\n\n\n }", "public HttpClient build() {\n\t\tCloseableHttpClient httpClient = httpClientBuilder.build();\n\t\treturn new ApacheHttpClient(this.configuration, httpClient);\n\t}", "public static final DefaultHttpClient createHttpClient(int retryCount) {\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, 15 * 1000);\n\t\tHttpConnectionParams.setSoTimeout(params, 20 * 1000);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, 5 * 1000);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\tretryCount, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\thttpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\thttpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "public HttpComponentsClientHttpRequest(HttpClient httpClient, HttpUriRequest httpRequest)\r\n/* 25: */ {\r\n/* 26:54 */ this.httpClient = httpClient;\r\n/* 27:55 */ this.httpRequest = httpRequest;\r\n/* 28: */ }", "public HttpAction<HttpPost> post(HttpClient client, String path, HttpEntity entity, Header... headers)\n throws Exception\n {\n HttpPost request = new HttpPost(getBaseURL() + getContextPath() + path);\n if (headers != null && headers.length > 0)\n {\n request.setHeaders(headers);\n }\n if (entity != null)\n {\n request.setEntity(entity);\n }\n request.setEntity(null);\n HttpContext context = new BasicHttpContext();\n HttpResponse response = client.execute(request, context);\n\n return new HttpAction<HttpPost>(client, context, request, response, getBaseURL(), getContextPath());\n }", "public interface HttpPoster {\n\n /**\n * Post data to the provided URL.\n *\n * @param url http url to be reached\n * @param headers headers to be sent\n * @param body body to be sent\n * @param mediaType media type definition\n * @return http response from the POST request\n * @throws IOException in case of http request error\n */\n HttpResponse post(URL url, Map<String, String> headers, byte[] body, String mediaType)\n throws IOException;\n}", "@BeforeClass\n public static void createClient() {\n client = HttpClients.createDefault();\n }", "public TestState httpClient(HttpClient httpClient) {\n this.httpClient = httpClient;\n return this;\n }", "public void post(){\n\t\tHttpClient client = new HttpClient();\n\n\t\tPostMethod post = new PostMethod(\"http://211.138.245.85:8000/sso/POST\");\n//\t\tPostMethod post = new PostMethod(\"/eshopclient/product/show.do?id=111655\");\n//\t\tpost.addRequestHeader(\"Cookie\", cookieHead);\n\n\n\t\ttry {\n\t\t\tSystem.out.println(\"��������====\");\n\t\t\tint status = client.executeMethod(post);\n\t\t\tSystem.out.println(status);\n\t\t} catch (HttpException 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\n//\t\ttaskCount++;\n//\t\tcountDown--;\n\t}", "Header createHeader();", "HttpResponse httpPost(URI uri);", "private DefaultHttpClient createHttpsClient() throws HttpException {\n DefaultHttpClient client = new DefaultHttpClient();\n SSLContext ctx = null;\n X509TrustManager tm = new TrustAnyTrustManager();\n try {\n ctx = SSLContext.getInstance(\"TLS\");\n ctx.init(null, new TrustManager[] { tm }, null);\n } catch (NoSuchAlgorithmException | KeyManagementException e) {\n throw new HttpException(\"Can't create a Trust Manager.\", e);\n }\n SSLSocketFactory ssf = new SSLSocketFactory(ctx, SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n client.getConnectionManager().getSchemeRegistry().register(new Scheme(\"https\", 443, ssf));\n return client;\n }", "public void setHttpClient( HttpClient req ) {\r\n\tclient=req;\r\n }", "public void postData(String autho, String iVector) {\n HttpClient httpclient = new DefaultHttpClient();\n HttpGet httppost = new HttpGet(url);\n\n try {\n // Add your data\n// List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();\n// nameValuePairs.add(new BasicNameValuePair(\"username\", uName));\n// nameValuePairs.add(new BasicNameValuePair(\"password\", pWord));\n// nameValuePairs.add(new BasicNameValuePair(\"ivector\", iVector));\n\n// httppost.addHeader(\"username\", uName);\n// httppost.addHeader(\"password\", pWord);\n httppost.addHeader(\"Authorization\", autho);\n httppost.addHeader(\"ivector\", iVector);\n\n // Execute HTTP Post Request\n HttpResponse response = httpclient.execute(httppost);\n String responseStr = EntityUtils.toString(response.getEntity());\n\n httppost.releaseConnection();\n httpclient.getConnectionManager().shutdown();\n\n\n handleResponse(responseStr);\n\n\n\n } catch (ClientProtocolException e) {\n // TODO Auto-generated catch block\n //doNotification();\n } catch (IOException e) {\n // TODO Auto-generated catch block\n\n //doNotification();\n }\n catch (RuntimeException e)\n {\n //doNotification();\n// text = \"Incorrect Username and/or Password\";\n// toast = Toast.makeText(context,text, duration);\n// toast.show();\n }\n }", "@Bean\n public HttpClient httpClient() {\n return new HttpClient(multiThreadedHttpConnectionManager());\n }", "@Test\n public void postRequest() {\n str = METHOD_POST + URI_SAMPLE + \" \" + HTTP_VERSION + ENDL +\n HOST_HEADER + \": www.site.ru\" + ENDL +\n \"Referer: \"+ URI_SAMPLE + ENDL +\n \"Cookie: income=1\" + ENDL +\n \"Content-Type: application/x-www-form-urlencoded\" + ENDL +\n \"Content-Length: 35\" + ENDL +\n \"login=Petya%20Vasechkin&password=qq\";\n\n request = new HttpRequest(str, IP_ADDRESS, HOST);\n assertEquals(request.getMethod(), HttpMethod.POST);\n assertEquals(request.getUrn(), \"www.site.ru/news.html\");\n assertEquals(request.getHeader(HOST_HEADER), \"www.site.ru\");\n assertEquals(request.getHeader(\"Referer\"), URI_SAMPLE);\n assertEquals(request.getHeader(\"Cookie\"), \"income=1\");\n assertEquals(request.getHeader(\"Content-Type\"), \"application/x-www-form-urlencoded\");\n assertEquals(request.getHeader(\"Content-Length\"), \"35\");\n assertEquals(request.getHeader(NONEXISTENT_VAR), \"\");\n\n assertEquals(request.getParameter(\"login\"), \"Petya Vasechkin\");\n assertEquals(request.getParameter(\"password\"), \"qq\");\n assertEquals(request.getParameter(NONEXISTENT_VAR), \"\");\n }", "RequestHeaders headers();", "public Request<E, T> buildHttpPost ()\n\t{\n\t\treturn new HttpPostRequest<E, T>(this);\n\t}", "private static HttpClient getHttpClient() {\n if (mHttpClient == null) {\n mHttpClient = new DefaultHttpClient();\n final HttpParams params = mHttpClient.getParams();\n HttpConnectionParams.setConnectionTimeout(params, HTTP_TIMEOUT);\n HttpConnectionParams.setSoTimeout(params, HTTP_TIMEOUT);\n ConnManagerParams.setTimeout(params, HTTP_TIMEOUT);\n }\n return mHttpClient;\n }", "public static HttpClient getHttpClient() {\n HttpClient httpClient = new DefaultHttpClient();\n final HttpParams params = httpClient.getParams();\n HttpConnectionParams.setConnectionTimeout(params,\n HTTP_REQUEST_TIMEOUT_MS);\n HttpConnectionParams.setSoTimeout(params, HTTP_REQUEST_TIMEOUT_MS);\n ConnManagerParams.setTimeout(params, HTTP_REQUEST_TIMEOUT_MS);\n return httpClient;\n }", "ApacheHttpClientBuilder getApacheHttpClientBuilder();", "public interface HttpClient {\n\n\torg.apache.http.client.HttpClient getClient();\n\n\tString fetch(URI uri) throws IOException;\n\n\tvoid init() throws KeyManagementException, NoSuchAlgorithmException;\n}", "@Test\n public void getEndpoint() throws IOException {\n CloseableHttpClient httpclient = HttpClients.createDefault();\n\n //Creating a HttpGet object\n HttpPost httppost = new HttpPost(\"https://api.github.com/user/repos\");\n String auth=Credentials.getEmail()+\":\"+Credentials.getPassWard();\n byte[] encodedAuth = Base64.encodeBase64(auth.getBytes(Charset.forName(\"ISO-8859-1\")));\n String authHeader=\"Basic \"+new String(encodedAuth);\n httppost.setHeader(HttpHeaders.AUTHORIZATION,authHeader);\n String json=\"{\\\"name\\\": \\\"ploiko\\\"}\";\n httppost.setEntity(new StringEntity(json, ContentType.APPLICATION_JSON));\n HttpResponse httpresponse = httpclient.execute(httppost);\n System.out.println(httpresponse.getStatusLine());\n int actual=httpresponse.getStatusLine().getStatusCode();\n Assert.assertEquals(actual,201);\n //System.out.println(getHeaders(httpresponse,\"Access-Control-Allow-Methods\"));\n //System.out.println(httpresponse.getAllHeaders().toString());\n\n }", "public HttpClient(String host, int port)\n\t{\n\t\tsuper(host, port);\n\t\tclient = new org.apache.commons.httpclient.HttpClient();\n\t}", "public static Object httpClient() {\n return new Object();\n// return HttpClient.newBuilder()\n// .version(HttpClient.Version.HTTP_1_1)\n// .followRedirects(HttpClient.Redirect.NORMAL)\n// .connectTimeout(Duration.ofSeconds(300))\n// .build();\n }", "private static OkHttpClient getOkHttpClient() {\n OkHttpClient.Builder okHttpClientBuilder = new OkHttpClient.Builder()\n .addInterceptor(new Interceptor() {\n @Override\n public Response intercept(Chain chain) throws IOException {\n Request original = chain.request();\n\n Request.Builder requestBuilder = original.newBuilder()\n .method(original.method(), original.body());\n\n addAdditionalHttpHeaders(requestBuilder);\n addParleyHttpHeaders(requestBuilder);\n\n Request request = requestBuilder.build();\n return chain.proceed(request);\n }\n })\n .connectTimeout(30, TimeUnit.SECONDS)\n .readTimeout(30, TimeUnit.SECONDS)\n .writeTimeout(30, TimeUnit.SECONDS);\n\n applySslPinning(okHttpClientBuilder);\n\n return okHttpClientBuilder.build();\n }", "public CloseableHttpClient build() {\n\t\tCloseableHttpClient httpClient = httpClientBuilder.build();\n\t\treturn httpClient;\n\t}", "public WeChatPayHttpComponentsClient(final HttpClient httpClient) {\n checkNotNull(httpClient, \"httpClient\");\n\n this.basePath = WeChatPayClient.BASE_PATH;\n this.httpClient = httpClient;\n }", "public static final DefaultHttpClient createHttpClient(int retryCount,\n\t\t\tint timeout) {\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, timeout);\n\t\tHttpConnectionParams.setSoTimeout(params, timeout);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, timeout);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\tretryCount, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\t// httpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\t// httpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "private HttpResponse executeHttpPost(String apiUrl) throws OAuthMessageSignerException,\r\n\t\t\tOAuthExpectationFailedException, OAuthCommunicationException, IOException {\r\n\t\tHttpPost httprequest = new HttpPost(apiUrl);\r\n\t\tgetOAuthConsumer().sign(httprequest);\r\n\t\tHttpClient client = new DefaultHttpClient();\r\n\t\tHttpResponse httpresponse = client.execute(httprequest);\r\n\t\tint statusCode = httpresponse.getStatusLine().getStatusCode();\r\n\t\tSystem.out.println(statusCode + \":\" + httpresponse.getStatusLine().getReasonPhrase());\r\n\t\treturn httpresponse;\r\n\t}", "private HttpEntity<?> setTokenToHeaders() {\n HttpHeaders headers = new HttpHeaders();\n headers.set(\"Authorization\", this.token.getToken_type() + \" \" + this.token.getAccess_token());\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n return new HttpEntity<>(null, headers);\n }", "private CloseableHttpClient getHttpClient() {\n return HttpClients.custom()\n .setConnectionManager(httpClientConnectionManager)\n .setConnectionManagerShared(true)\n .build();\n }", "@Bean\n\tpublic HttpClient httpClient() {\n\t\treturn new HttpClient(this.multiThreadedHttpConnectionManager);\n\t}", "public void sendHttp() {\n String url = \"https://openwhisk.ng.bluemix.net/api/v1/namespaces/1tamir198_tamirSpace/actions/testing_trigger\";\n //api key that i got from blumix EndPoins\n String apiKey = \"530f095a-675e-4e1c-afe0-4b421201e894:0HriiSRoYWohJ4LGOjc5sGAhHvAka1gwASMlhRN8kA5eHgNu8ouogt8BbmXtX21N\";\n try {\n //JSONObject jsonObject = new JSONObject().put(\"openwhisk.ng.bluemix.net\" ,\"c1165fd1-f4cf-4a62-8c64-67bf20733413:hdVl64YRzbHBK0n2SkBB928cy2DUO5XB3yDbuXhQ1uHq8Ir0dOEwT0L0bqMeWTTX\");\n String res = (new HttpRequest(url)).prepare(HttpRequest.Method.POST).withData(apiKey).sendAndReadString();\n //String res = new HttpRequest(url).prepare(HttpRequest.Method.POST).withData(jsonObject.toString()).sendAndReadString();\n System.out.println( res + \"***********\");\n\n } catch ( IOException exception) {\n exception.printStackTrace();\n System.out.println(exception + \" some some some\");\n System.out.println(\"catched error from response ***********\");\n }\n }", "protected HttpClient getHttpClient( ) {\r\n\t\treturn httpClient;\r\n\t}", "public HttpEntity openHttpEntity(URL url) throws IOException {\r\n Logger.getLogger(TargetAuthenticationStrategy.class).setLevel(Level.ERROR);\r\n Logger.getLogger(RequestTargetAuthentication.class).setLevel(Level.ERROR);\r\n DefaultHttpClient httpclient = new DefaultHttpClient();\r\n\r\n for (Cookie cookie : cookies) {\r\n httpclient.getCookieStore().addCookie(cookie);\r\n }\r\n\r\n httpclient.getParams().setParameter(ClientPNames.ALLOW_CIRCULAR_REDIRECTS, true);\r\n\r\n if (socketTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.SO_TIMEOUT, socketTimeout);\r\n }\r\n if (connectionTimeout > -1) {\r\n httpclient.getParams().setParameter(CoreConnectionPNames.CONNECTION_TIMEOUT, connectionTimeout);\r\n }\r\n\r\n String domain = this.domain;\r\n String username = this.username;\r\n String password = this.password;\r\n if (serviceAccountPropertiesFileName != null) {\r\n Properties serviceAccountProperties = new Properties();\r\n if (new File(serviceAccountPropertiesFileName).exists()) {\r\n serviceAccountProperties.load(new FileReader(serviceAccountPropertiesFileName));\r\n } else {\r\n try {\r\n serviceAccountProperties.load(this.getClass().getResourceAsStream(serviceAccountPropertiesFileName));\r\n } catch (Exception e) {\r\n }\r\n }\r\n domain = serviceAccountProperties.getProperty(\"http.serviceaccount.domain\", domain);\r\n username = serviceAccountProperties.getProperty(\"http.serviceaccount.username\", username);\r\n password = serviceAccountProperties.getProperty(\"http.serviceaccount.password\", password);\r\n }\r\n\r\n if (username != null && password != null) {\r\n String decryptedPassword = password;\r\n try {\r\n decryptedPassword = new StringEncrypter().decrypt(password);\r\n } catch (Exception e) {\r\n }\r\n NTCredentials creds = new NTCredentials(username, decryptedPassword, getCanonicalHostName()[0], domain);\r\n httpclient.getCredentialsProvider().setCredentials(AuthScope.ANY, creds);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.SPNEGO);\r\n httpclient.getAuthSchemes().unregister(AuthPolicy.KERBEROS);\r\n }\r\n HttpHost target = new HttpHost(url.getHost(), url.getPort(), url.getProtocol());\r\n HttpContext localContext = new BasicHttpContext();\r\n HttpGet httpGet = new HttpGet(url.getFile());\r\n HttpResponse httpResponse = httpclient.execute(target, httpGet, localContext);\r\n this.lastStatusLine = httpResponse.getStatusLine();\r\n lastCookies = httpclient.getCookieStore().getCookies();\r\n\r\n return httpResponse.getEntity();\r\n }", "private static HttpRequest buildRequest(final URI uri, final String host) {\n FullHttpRequest request = new DefaultFullHttpRequest(HttpVersion.HTTP_1_1,\n getHttpMethod(), uri.getRawPath());\n request.headers().set(HttpHeaderNames.HOST, host);\n request.headers().set(HttpHeaderNames.CONNECTION, HttpHeaderValues.CLOSE);\n request.headers().set(HttpHeaderNames.ACCEPT_ENCODING,\n HttpHeaderValues.GZIP);\n request.headers().set(HttpHeaderNames.CONTENT_TYPE,\n \"application/json; charset=UTF-8\");\n\n // Set some example cookies.\n request.headers().set(HttpHeaderNames.COOKIE,\n ClientCookieEncoder.STRICT.encode(\n new DefaultCookie(\"my-cookie\", \"foo\"),\n new DefaultCookie(\"another-cookie\", \"bar\")));\n\n // set content\n final ByteBuf buffer = request.content().clear();\n final String json = \"hello, json\";\n int p0 = buffer.writerIndex();\n buffer.writeBytes(json.getBytes(CharsetUtil.UTF_8));\n int p1 = buffer.writerIndex();\n request.headers().set(HttpHeaderNames.CONTENT_LENGTH,\n Integer.toString(p1 - p0));\n\n return request;\n }", "public static HttpURLConnection makePost(URL baseUrl, String path, String params)\n throws IOException {\n URL url = new URL(String.format(\"%s/%s\", baseUrl.toString(), path));\n Log.d(TAG, \"POST \" + url.toString() + \" \" + params);\n\n HttpURLConnection connection = (HttpURLConnection) url.openConnection();\n connection.setRequestMethod(\"POST\");\n connection.setRequestProperty(\"Content-Type\", \"application/x-www-form-urlencoded\");\n\n connection.setRequestProperty(\"Content-Length\", Integer.toString(params.getBytes().length));\n\n // FIXME: Investigate proper usage of Content-Language\n connection.setRequestProperty(\"Content-Language\", \"en-US\");\n setAcceptLanguage(connection);\n\n connection.setUseCaches(false);\n connection.setDoInput(true);\n connection.setDoOutput(true);\n\n // Send the request\n DataOutputStream wr = new DataOutputStream(connection.getOutputStream());\n wr.writeBytes(params);\n wr.flush();\n wr.close();\n return connection;\n }", "public CurlRequest newRequest(final String action, final String body) {\n\t\tfinal var builder = AWS4SignatureQuery.builder().service(\"cognito-idp\").body(\"&Version=2016-04-18\");\n\t\tfinal var headers = new HashMap<String, String>();\n\t\theaders.put(\"x-amz-target\", \"AWSCognitoIdentityProviderService.\" + action);\n\t\theaders.put(\"Content-Type\", \"application/x-amz-json-1.1\");\n\t\tfinal var query = builder.accessKey(accessKey).secretKey(secretKey).region(region).path(\"/\").headers(headers)\n\t\t\t\t.body(body).host(URI.create(url).getHost()).build();\n\t\tfinal var authorization = signer.computeSignature(query);\n\t\tfinal var request = new CurlRequest(query.getMethod(), url, query.getBody());\n\t\trequest.getHeaders().putAll(query.getHeaders());\n\t\trequest.getHeaders().put(\"Authorization\", authorization);\n\t\trequest.setSaveResponse(true);\n\t\treturn request;\n\t}", "public static String post(String url, String s,Map<String, String> headers) {\n AsyncHttpClient.BoundRequestBuilder builder = asyncHttpClient.preparePost(url);\n builder.setBodyEncoding(DEFAULT_CHARSET);\n builder.setBody(s);\n useCookie(builder);\n builder.setHeader(\"Content-Type\", DEFAULT_CONTENT_TYPE);\n if (headers != null && !headers.isEmpty()) {\n Set<String> keys = headers.keySet();\n for (String key : keys) {\n builder.addHeader(key, headers.get(key));\n }\n }\n Future<Response> f = builder.execute();\n String body = null;\n try {\n body = f.get().getResponseBody(DEFAULT_CHARSET);\n addCookie(f.get().getCookies());\n } catch (Exception e) {\n logger.error(LogUtil.builder().method(\"Post Request(the result is String,the param is a string in request body)\").msg(\"error,url={}\").build(), url, e);\n }\n return body;\n }", "@Override\n\tprotected HttpRequest createHttpRequest() {\n HttpGet httpGet = new HttpGet(getHost() + \"/repos/\" + owner + \"/\" + repo + \"/pulls?state=\" + state);\n httpGet.setHeader(\"Accept\", GITHUB_ACCEPT_HEADER);\n if (username != null && password != null) {\n \thttpGet.setHeader(\"Authentication\", AuthenticationUtils.getBasicAuthentication(username, password));\n }\n return httpGet;\n }", "private void CreateConnection()\n throws IOException {\n URL url = new URL(requestURL);\n //creates connection\n httpConn = (HttpURLConnection) url.openConnection();\n //sets headers\n Set<Map.Entry<String, String>> set = headers.entrySet();\n for (Map.Entry<String, String> me : set) {\n httpConn.setRequestProperty(me.getKey(), me.getValue());\n }\n //sets method\n httpConn.setRequestMethod(method);\n httpConn.setUseCaches(false);\n if (method == \"POST\") {\n httpConn.setDoOutput(true);\n httpConn.setDoInput(true);\n }\n\n }", "public static void main(String[] args) {\n\t\tHttpClient client = new HttpClient();\n\t\tPostMethod myPost = new PostMethod(string );\n\t\ttry{\n\t\t\t//��������ͷ������ \n\t\t\tmyPost.setRequestHeader(\"Content-Type\", \"text/xml\");\n\t\t\tmyPost.setRequestHeader(\"charset\", \"utf-8\");\n\t\t\tmyPost.setRequestHeader(\"x-app-key\", \"c85d54f1\");\n\t\t\tmyPost.setRequestHeader(\"x-sdk-version\", \"3.1\");\n\n\t\t\tString date = new SimpleDateFormat(\"yyyy-MM-dd hh:mm:ss\").format(new Date());\n\t\t\tmyPost.setRequestHeader(\"x-request-date\", date);\n\t\t\tString x_task_config = \"capkey=hwr.cloud.letter\";\n\t\t\tmyPost.setRequestHeader(\"x-task-config\", x_task_config);\n//\t\t\tString b = new String(g_sShortData);\n\t\t\tString str = \"712ddd892cf9163e6383aa169e0454e3\" + date + x_task_config ;\n//\t\t\tSystem.out.println(str);\n\t\t\tmyPost.setRequestHeader(\"x-auth\", MD5.getMD5((str + g_sShortData.toString()).getBytes()));\n//\t\t\tmyPost.setRequestHeader(\"x-udid\", \"101:123456789\");\n\t\t\tSystem.out.println(g_sShortData.length);\n\t\t\tbyte[] b = new byte[g_sShortData.length];\n\t\t\tfor(int i=0; i<g_sShortData.length; i++){\n\t\t\t\tb[i] = (byte) g_sShortData[i];\n\t\t\t}\n\t\t\t\n\t\t\tRequestEntity entity = new StringRequestEntity(new String(b, \"iso-8859-1\"), \"application/octet-stream\", \"iso-8859-1\");\n\t\t\tmyPost.setRequestEntity(entity);\n\t\t\tint statusCode = client.executeMethod(myPost);\n\t\t\tString.format(\"%d\", statusCode);\n\t\t\tSystem.out.println(statusCode);\n\t\t\t\n\t\t\tif (statusCode == HttpStatus.SC_OK) {\n\t\t\t\tInputStream txtis = myPost.getResponseBodyAsStream(); \n\t\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(txtis, \"utf-8\"));\n\t\t\t\t\n\t\t\t\tString tempbf;\n\t\t\t\tStringBuffer html = new StringBuffer(256);\n\t\t\t\twhile((tempbf = br.readLine()) != null){\n\t\t\t\t\thtml.append(tempbf);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(html.toString());\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}catch(Exception e){\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public HttpClient post(final Env env, StringValue uri, final Callback handler) {\n client.post(uri.toString(), createResponseHandler(env, handler));\n return this;\n }", "HttpHeaderType createHttpHeaderType();", "private CloseableHttpAsyncClient createHttpClient() {\n RequestConfig.Builder requestConfigBuilder = RequestConfig.custom()\n .setConnectTimeout(Timeout.ofMilliseconds(DEFAULT_CONNECT_TIMEOUT_MILLIS))\n .setResponseTimeout(Timeout.ofMilliseconds(DEFAULT_RESPONSE_TIMEOUT_MILLIS));\n if (requestConfigCallback != null) {\n requestConfigBuilder = requestConfigCallback.customizeRequestConfig(requestConfigBuilder);\n }\n\n try {\n final TlsStrategy tlsStrategy = ClientTlsStrategyBuilder.create()\n .setSslContext(SSLContext.getDefault())\n // See https://issues.apache.org/jira/browse/HTTPCLIENT-2219\n .setTlsDetailsFactory(new Factory<SSLEngine, TlsDetails>() {\n @Override\n public TlsDetails create(final SSLEngine sslEngine) {\n return new TlsDetails(sslEngine.getSession(), sslEngine.getApplicationProtocol());\n }\n })\n .build();\n\n final PoolingAsyncClientConnectionManager connectionManager = PoolingAsyncClientConnectionManagerBuilder.create()\n .setMaxConnPerRoute(DEFAULT_MAX_CONN_PER_ROUTE)\n .setMaxConnTotal(DEFAULT_MAX_CONN_TOTAL)\n .setTlsStrategy(tlsStrategy)\n .build();\n\n HttpAsyncClientBuilder httpClientBuilder = HttpAsyncClientBuilder.create()\n .setDefaultRequestConfig(requestConfigBuilder.build())\n .setConnectionManager(connectionManager)\n .setTargetAuthenticationStrategy(DefaultAuthenticationStrategy.INSTANCE)\n .disableAutomaticRetries();\n if (httpClientConfigCallback != null) {\n httpClientBuilder = httpClientConfigCallback.customizeHttpClient(httpClientBuilder);\n }\n\n final HttpAsyncClientBuilder finalBuilder = httpClientBuilder;\n return AccessController.doPrivileged((PrivilegedAction<CloseableHttpAsyncClient>) finalBuilder::build);\n } catch (NoSuchAlgorithmException e) {\n throw new IllegalStateException(\"could not create the default ssl context\", e);\n }\n }", "public static Client getHttpClient() {\r\n return c;\r\n }", "public DefaultHttpClientImpl() {\n SchemeRegistry schemeRegistry = new SchemeRegistry();\n schemeRegistry.register(new Scheme(\n \"http\", PlainSocketFactory.getSocketFactory(), 80));\n\n schemeRegistry.register(new Scheme(\n \"https\", SSLSocketFactory.getSocketFactory(), 443));\n conman = new ThreadSafeClientConnManager(params, schemeRegistry);\n }", "public DefaultHttpRequestBuilder (final DefaultHttpClient client) {\r\n\t\tif (client == null) {\r\n\t\t\tthrow new NullPointerException (\"client cannot be null\");\r\n\t\t}\r\n\t\t\r\n\t\tthis.client = client;\r\n\t}", "public static HttpCarbonMessage createHttpCarbonMessage() {\n HttpCarbonMessage httpCarbonMessage;\n httpCarbonMessage = new HttpCarbonMessage(\n new DefaultHttpResponse(HttpVersion.HTTP_1_1, HttpResponseStatus.OK));\n return httpCarbonMessage;\n }", "public void enablePOST() {\n\t\thttpPost = new HttpPost(\"http://23.21.229.136/message.php\");\n\t\thttpPostLog = new HttpPost(\n\t\t\t\t\"http://capstonecontrol.appspot.com/LogModuleEventServlet\");\n\t\thttpPostScheduledEvent = new HttpPost(\n\t\t\t\t\"http://capstonecontrol.appspot.com/ScheduleEvent\");\n\t\tHttpParams httpParameters = new BasicHttpParams();\n\t\t// Set the timeout in milliseconds until a connection is established.\n\t\tint timeoutConnection = 3000;\n\t\tHttpConnectionParams.setConnectionTimeout(httpParameters,\n\t\t\t\ttimeoutConnection);\n\t\t// Set the default socket timeout (SO_TIMEOUT)\n\t\t// in milliseconds which is the timeout for waiting for data.\n\t\tint timeoutSocket = 3000;\n\t\tHttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\n\n\t\thttpClient = new DefaultHttpClient(httpParameters);\n\t}", "public void post(Controller controller) {\n ExecutorService executorService = Executors.newSingleThreadExecutor();\n executorService.execute(() -> {\n String responseString = null;\n try {\n httpPost.setEntity(new UrlEncodedFormEntity(attributes, \"UTF-8\"));\n HttpResponse response = httpClient.execute(httpPost);\n HttpEntity entity = response.getEntity();\n if (entity != null) {\n responseString = EntityUtils.toString(entity);\n }\n } catch (Exception exc) {\n exc.printStackTrace();\n }\n controller.handleResponse(responseString);\n });\n }", "public HTTPResponse( Transaction t, Content ct, Headers hd ){\n super();\n\n Pia.debug(this, \"Constructor-- [ transaction t, content ct, headers hd ] on duty...\");\n\n contentObj = ct;\n headersObj = hd; // maybe generate?\n\n if( contentObj != null )\n contentObj.setHeaders( headersObj );\n \n requestTran = t;\n fromMachine( t.toMachine() );\n toMachine( t.fromMachine() );\n\n startThread();\n }", "static Http1Client create(Http1ClientConfig clientConfig) {\n return new Http1ClientImpl(WebClient.create(it -> it.from(clientConfig)), clientConfig);\n }", "@SuppressWarnings(\"deprecation\")\n\tprotected static HttpUriRequest createHttpRequest(Request<?> request, Map<String, String> additionalHeaders) throws AuthFailureError {\n\t\tswitch (request.getMethod()) {\n\t\tcase Method.DEPRECATED_GET_OR_POST: {\n\t\t\t// This is the deprecated way that needs to be handled for backwards compatibility.\n\t\t\t// If the request's post body is null, then the assumption is that the request is\n\t\t\t// GET. Otherwise, it is assumed that the request is a POST.\n\t\t\tbyte[] postBody = request.getPostBody();\n\t\t\tif (postBody != null) {\n\t\t\t\tHttpPost postRequest = new HttpPost(request.getUrl());\n\t\t\t\tpostRequest.addHeader(HEADER_CONTENT_TYPE, request.getPostBodyContentType());\n\t\t\t\tHttpEntity entity;\n\t\t\t\tentity = new ByteArrayEntity(postBody);\n\t\t\t\tpostRequest.setEntity(entity);\n\t\t\t\treturn postRequest;\n\t\t\t} else {\n\t\t\t\treturn new HttpGet(request.getUrl());\n\t\t\t}\n\t\t}\n\t\tcase Method.GET:\n\t\t\treturn new HttpGet(request.getUrl());\n\t\tcase Method.DELETE:\n\t\t\treturn new HttpDelete(request.getUrl());\n\t\tcase Method.POST: {\n\t\t\tHttpPost postRequest = new HttpPost(request.getUrl());\n\t\t\tpostRequest.addHeader(HEADER_CONTENT_TYPE, request.getBodyContentType());\n\t\t\tsetEntityIfNonEmptyBody(postRequest, request);\n\t\t\treturn postRequest;\n\t\t}\n\t\tcase Method.PUT: {\n\t\t\tHttpPut putRequest = new HttpPut(request.getUrl());\n\t\t\tputRequest.addHeader(HEADER_CONTENT_TYPE, request.getBodyContentType());\n\t\t\tsetEntityIfNonEmptyBody(putRequest, request);\n\t\t\treturn putRequest;\n\t\t}\n\t\tdefault:\n\t\t\tthrow new IllegalStateException(\"Unknown request method.\");\n\t\t}\n\t}", "public PublishingClientImpl() {\n this.httpClientSupplier = () -> HttpClients.createDefault();\n this.requestBuilder = new PublishingRequestBuilderImpl();\n }", "public <T> T create(String baseUrl, Class<T> clz) {\n String service_url = \"\";\n try {\n Field field1 = clz.getField(\"BASE_URL\");\n service_url = (String) field1.get(clz);\n } catch (NoSuchFieldException e) {\n e.printStackTrace();\n } catch (IllegalAccessException e) {\n e.getMessage();\n e.printStackTrace();\n }\n return createApiClient(\n TextUtils.isEmpty(service_url) ? baseUrl : service_url).create(clz);\n }", "public interface HttpClientable {\n\n void get(String url);\n\n void get(String url, ParamStore params);\n\n void get(String url, ParamStore params, String tag);\n\n void post(String url, SparseArray<String> params);\n\n void post(String url, SparseArray<String> params, String tag);\n\n void upload(String url, HashMap<String, Object> params);\n\n void upload(String url, HashMap<String, Object> params, String tag);\n\n void download(String url);\n\n void download(String url, String tag);\n\n void cancelAll();\n\n void cancel(String tag);\n\n}", "public ResponseFromHTTP makeRequest() throws CustomRuntimeException\n\t{\n\t\tResponseFromHTTP result=null;\n\t\tCloseableHttpClient httpclient=null;\n\t\tCloseableHttpResponse response=null;\n\t\tboolean needAuth=false;\n\t\tboolean viaProxy=httpTransportInfo.isUseProxy() && StringUtils.isNotBlank(httpTransportInfo.getProxyHost());\n\n\t\tHttpHost target = new HttpHost(httpTransportInfo.getHost(), httpTransportInfo.getPort(),httpTransportInfo.getProtocol());\n\t\t//basic auth for request\n\t\tCredentialsProvider credsProvider = new BasicCredentialsProvider();\n\t\tif(StringUtils.isNotBlank(httpTransportInfo.getLogin()) && \n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getPassword()))\n\t\t{\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(target.getHostName(), target.getPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getLogin(), httpTransportInfo.getPassword()));\n\t\t\tneedAuth=true;\n\t\t}\n\n\t\t//proxy auth?\n\t\tif(viaProxy && StringUtils.isNotBlank(httpTransportInfo.getProxyLogin()) &&\n\t\t\t\tStringUtils.isNotBlank(httpTransportInfo.getProxyPassword()))\n\t\t{\n\t\t\t//proxy auth setting\n\t\t\tcredsProvider.setCredentials(\n\t\t\t\t\tnew AuthScope(httpTransportInfo.getProxyHost(), httpTransportInfo.getProxyPort()),\n\t\t\t\t\tnew UsernamePasswordCredentials(httpTransportInfo.getProxyLogin(), httpTransportInfo.getProxyPassword()));\n\t\t}\n\n\t\ttry\n\t\t{\n\n\t\t\tHttpClientBuilder httpclientBuilder = HttpClients.custom()\n\t\t\t\t\t.setDefaultCredentialsProvider(credsProvider);\n\t\t\t//https\n\t\t\tif(\"https\".equalsIgnoreCase(httpTransportInfo.getProtocol()))\n\t\t\t{\n\t\t\t\t//A.K. - Set stub for check certificate - deprecated from 4.4.1\n\t\t\t\tSSLContextBuilder sslContextBuilder=SSLContexts.custom();\n\t\t\t\tTrustStrategyLZ trustStrategyLZ=new TrustStrategyLZ();\n\t\t\t\tsslContextBuilder.loadTrustMaterial(null,trustStrategyLZ);\n\t\t\t\tSSLContext sslContext = sslContextBuilder.build();\n\t\t\t\tSSLConnectionSocketFactory sslsf = new SSLConnectionSocketFactory(sslContext,SSLConnectionSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);\n\t\t\t\thttpclientBuilder.setSSLSocketFactory(sslsf);\n\t\t\t}\n\n\t\t\thttpclient=httpclientBuilder.build();\n\n\t\t\t//timeouts\n\t\t\tBuilder builder = RequestConfig.custom()\n\t\t\t\t\t.setSocketTimeout(httpTransportInfo.getSocketTimeoutSec()*1000)\n\t\t\t\t\t.setConnectTimeout(httpTransportInfo.getConnectTimeoutSec()*1000);\n\n\t\t\t//via proxy?\n\t\t\tif(viaProxy)\n\t\t\t{\n\t\t\t\t//proxy setting\n\t\t\t\tHttpHost proxy = new HttpHost(httpTransportInfo.getProxyHost(),httpTransportInfo.getProxyPort(),httpTransportInfo.getProxyProtocol());\n\t\t\t\tbuilder.setProxy(proxy);\n\t\t\t}\n\n\t\t\tRequestConfig requestConfig=builder.build();\n\n\t\t\t// Create AuthCache instance\n\t\t\tAuthCache authCache = new BasicAuthCache();\n\t\t\t// Generate BASIC scheme object and add it to the local\n\t\t\t// auth cache\n\t\t\tBasicScheme basicAuth = new BasicScheme();\n\t\t\tauthCache.put(target, basicAuth);\n\n\t\t\t// Add AuthCache to the execution context\n\t\t\tHttpClientContext localContext = HttpClientContext.create();\n\t\t\tlocalContext.setAuthCache(authCache);\n\n\t\t\tPathParser parsedPath=new PathParser(getUri());\n\t\t\tif(restMethodDef.isUseOriginalURI())\n\t\t\t{\n\t\t\t\t//in this case params from URI will not add to all params\n\t\t\t\tparsedPath.getParams().clear();\n\t\t\t}\n\t\t\tparsedPath.getParams().addAll(getRequestDefinition().getParams());\n\t\t\t//prepare URI\n\t\t\tURIBuilder uriBuilder = new URIBuilder().setPath(parsedPath.getUri());\n\t\t\tif(!getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\t//form's parameters - GET/DELETE/OPTIONS/PUT\n\t\t\t\tfor(NameValuePair nameValuePair : parsedPath.getParams())\n\t\t\t\t{\n\t\t\t\t\turiBuilder.setParameter(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tURI resultUri =(restMethodDef.isUseOriginalURI())?new URI(getUri()):uriBuilder.build();\n\n\t\t\t//\t\t\tHttpRequestBase httpPostOrGet=(getRequestDefinition().isHttpMethodPost())?\n\t\t\t//\t\t\t\t\tnew HttpPost(resultUri):\n\t\t\t//\t\t\t\t\tnew HttpGet(resultUri);\n\n\t\t\tHttpRequestBase httpPostOrGetEtc=null;\n\t\t\t//\n\t\t\tswitch(getRequestDefinition().getHttpMethod())\n\t\t\t{\n\t\t\t\tcase POST: httpPostOrGetEtc=new HttpPost(resultUri);break;\n\t\t\t\tcase DELETE: httpPostOrGetEtc=new HttpDelete(resultUri);break;\n\t\t\t\tcase OPTIONS: httpPostOrGetEtc=new HttpOptions(resultUri);break;\n\t\t\t\tcase PUT: httpPostOrGetEtc=new HttpPut(resultUri);break;\n\n\t\t\t\tdefault: httpPostOrGetEtc=new HttpGet(resultUri);break;\n\t\t\t}\n\n\t\t\t//Specifie protocol version\n\t\t\tif(httpTransportInfo.isVersionHttp10())\n\t\t\t\thttpPostOrGetEtc.setProtocolVersion(HttpVersion.HTTP_1_0);\n\n\t\t\t//user agent\n\t\t\thttpPostOrGetEtc.setHeader(HttpHeaders.USER_AGENT,httpTransportInfo.getUserAgent());\n\t\t\t//заголовки из запроса\n\t\t\tif(getRequestDefinition().getHeaders().size()>0)\n\t\t\t{\n\t\t\t\tfor(NameValuePair nameValuePair : getRequestDefinition().getHeaders())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getName()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(nameValuePair.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(nameValuePair.getName(),nameValuePair.getValue());\n\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Additional HTTP headers from httpTransportInfo\n\t\t\tif(httpTransportInfo.getAddHeaders()!=null)\n\t\t\t{\n\t\t\t\tfor(Map.Entry<String, String> entry:httpTransportInfo.getAddHeaders().entrySet())\n\t\t\t\t{\n\t\t\t\t\tif(org.apache.commons.lang.StringUtils.isNotBlank(entry.getKey()) &&\n\t\t\t\t\t\t\torg.apache.commons.lang.StringUtils.isNotBlank(entry.getValue()))\n\t\t\t\t\t{\n\t\t\t\t\t\thttpPostOrGetEtc.setHeader(entry.getKey(),entry.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\thttpPostOrGetEtc.setConfig(requestConfig);\n\t\t\t//Form's parameters, request POST\n\t\t\tif(getRequestDefinition().isHttpMethodPost())\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t\telse if(parsedPath.getParams().size()>0)\n\t\t\t\t{\n\t\t\t\t\tUrlEncodedFormEntity entityForm = new UrlEncodedFormEntity(parsedPath.getParams(), httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPost) (httpPostOrGetEtc)).setEntity(entityForm);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//Body for PUT\n\t\t\tif(getRequestDefinition().getHttpMethod()==HttpMethod.PUT)\n\t\t\t{\n\t\t\t\tif(getPostBody()!=null)\n\t\t\t\t{\n\t\t\t\t\tStringEntity stringEntity=new StringEntity(getPostBody(),httpTransportInfo.getCharset());\n\t\t\t\t\t((HttpPut) (httpPostOrGetEtc)).setEntity(stringEntity);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tresponse = httpclient.execute(target, httpPostOrGetEtc, (needAuth)?localContext:null);\n\t\t\t//response.\n\t\t\tHttpEntity entity = response.getEntity();\n\t\t\tif(entity!=null)\n\t\t\t{\n\t\t\t\t//charset\n\t\t\t\tContentType contentType = ContentType.get(entity);\n\t\t\t\tString currentCharSet=httpTransportInfo.getCharset();\n\t\t\t\tif(contentType!=null)\n\t\t\t\t{\n\t\t\t\t\t//String mimeType = contentType.getMimeType();\n\t\t\t\t\tif(contentType.getCharset()!=null)\n\t\t\t\t\t\tcurrentCharSet=contentType.getCharset().name();\n\t\t\t\t}\n\t\t\t\tInputStream inputStream=entity.getContent();\n\t\t\t\tif(getRequestDefinition().isBinaryResponseBody())\n\t\t\t\t{\n\t\t\t\t\t//binary content\n\t\t\t\t\tbyte[] bodyBin = IOUtils.toByteArray(inputStream);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),bodyBin,response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\t//copy content to string\n\t\t\t\t\tStringWriter writer = new StringWriter();\n\t\t\t\t\tIOUtils.copy(inputStream, writer, currentCharSet);\n\t\t\t\t\tresult=new ResponseFromHTTP(response.getAllHeaders(),writer.toString(),response.getStatusLine().getStatusCode());\n\t\t\t\t}\n\t\t\t\tinputStream.close();\n\t\t\t}\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\tthrow new CustomRuntimeException(\"fetchData over http uri: \"+getUri(),e);\n\t\t}\n\t\tfinally\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif(response!=null)\n\t\t\t\t\tresponse.close();\n\t\t\t\tif(httpclient!=null)\n\t\t\t\t\thttpclient.close();\n\t\t\t}\n\t\t\tcatch (IOException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t} \t\n\t\t}\t\t\n\t\treturn result;\n\n\t}", "void addHttpContent(HttpContent httpContent);", "public void postAny(String postUrl, StringEntity postingString) {\r\n try {\r\n HttpPost post = new HttpPost(postUrl);\r\n TrustStrategy acceptingTrustStrategy = new TrustSelfSignedStrategy();\r\n SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom().loadTrustMaterial(null, acceptingTrustStrategy)\r\n .build();\r\n SSLConnectionSocketFactory scsf = new SSLConnectionSocketFactory(sslContext, NoopHostnameVerifier.INSTANCE);\r\n HttpClient httpClient = HttpClients.custom().setSSLSocketFactory(scsf).build();\r\n post.addHeader(\"accept\", \"application/json\");\r\n post.setHeader(\"Content-type\", \"application/json\");\r\n post.setEntity(postingString);\r\n HttpResponse response = httpClient.execute(post);\r\n\r\n System.out.println(\"Response is \" + response.toString());\r\n } catch (Exception e) {\r\n System.out.println(\"Exception \" + e);\r\n }\r\n }", "public static final DefaultHttpClient createHttpClient(String proxyUri,\n\t\t\tint port) {\n\t\t// Shamelessly cribbed from AndroidHttpClient\n\t\tHttpParams params = new BasicHttpParams();\n\t\tHttpHost host = new HttpHost(proxyUri, port);\n\t\tparams.setParameter(ConnRouteParams.DEFAULT_PROXY, host);\n\n\t\tHttpProtocolParams.setVersion(params, HttpVersion.HTTP_1_1);\n\t\tHttpProtocolParams.setContentCharset(params, HTTP.UTF_8);\n\t\t// HttpProtocolParams.setUseExpectContinue(params, true);\n\t\t// Turn off stale checking. Our connections break all the time anyway,\n\t\t// and it's not worth it to pay the penalty of checking every time.\n\t\tHttpConnectionParams.setStaleCheckingEnabled(params, false);\n\n\t\t// Default connection and socket timeout of 30 seconds. Tweak to taste.\n\t\tHttpConnectionParams.setConnectionTimeout(params, 10 * 1000);\n\t\tHttpConnectionParams.setSoTimeout(params, 20 * 1000);\n\t\tHttpConnectionParams.setSocketBufferSize(params, 8192);\n\n\t\tHttpClientParams.setRedirecting(params, true);\n\n\t\tConnManagerParams.setTimeout(params, 5 * 1000);\n\t\tConnManagerParams.setMaxConnectionsPerRoute(params,\n\t\t\t\tnew ConnPerRouteBean(50));\n\t\tConnManagerParams.setMaxTotalConnections(params, 200);\n\n\t\t// Sets up the http part of the service.\n\t\tfinal SchemeRegistry supportedSchemes = new SchemeRegistry();\n\n\t\t// Register the \"http\" protocol scheme, it is required\n\t\t// by the default operator to look up socket factories.\n\t\tfinal SocketFactory sf = PlainSocketFactory.getSocketFactory();\n\t\tsupportedSchemes.register(new Scheme(\"http\", sf, 80));\n\t\tsupportedSchemes.register(new Scheme(\"https\", SSLSocketFactory\n\t\t\t\t.getSocketFactory(), 443));\n\t\tfinal ThreadSafeClientConnManager ccm = new ThreadSafeClientConnManager(\n\t\t\t\tparams, supportedSchemes);\n\t\tDefaultHttpClient httpClient = new DefaultHttpClient(ccm, params);\n\t\thttpClient\n\t\t\t\t.setHttpRequestRetryHandler(new DefaultHttpRequestRetryHandler(\n\t\t\t\t\t\t3, true));\n\t\t// Add gzip header to requests using an interceptor\n\t\thttpClient.addRequestInterceptor(new GzipHttpRequestInterceptor());\n\t\t// Add gzip compression to responses using an interceptor\n\t\thttpClient.addResponseInterceptor(new GzipHttpResponseInterceptor());\n\n\t\treturn httpClient;\n\t}", "public MercadoPagoAPI() {\n\t\tsuper();\n\t\tHttpHeaders headers = new HttpHeaders();\n\t\theaders.set(HEADER_AUTHORIZATION, authorizationToken);\n\t\theaders.set(HEADER_CONTENT_TYPE, JSON_CONTENT_TYPE);\n\t\tHEADER = new HttpEntity<Object>(headers);\n\t}", "public MockHttpServletRequest newPost(String url) {\n return new MockHttpServletRequest(\"POST\", url);\n }", "private <T> HttpEntity createHttpEntityForJson(T body) {\r\n\t\tString dataForEntity;\r\n\t\tif (!(body instanceof String)) {\r\n\t\t\tdataForEntity = gson.toJson(body);\r\n\t\t} else {\r\n\t\t\tdataForEntity = (String) body;\r\n\t\t}\r\n\t\t// try {\r\n\t\treturn new StringEntity(dataForEntity, Charset.forName(\"utf-8\"));\r\n\t\t// } catch (UnsupportedEncodingException e) {\r\n\t\t// e.printStackTrace();\r\n\t\t// }\r\n\t\t// return null;\r\n\t}", "private OkHttpClient Create() {\n final OkHttpClient.Builder baseClient = new OkHttpClient().newBuilder()\n .connectTimeout(CONNECTION_TIMEOUT, TimeUnit.SECONDS)\n .writeTimeout(WRITE_TIMEOUT, TimeUnit.SECONDS)\n .readTimeout(READ_TIMEOUT, TimeUnit.SECONDS);\n\n // If there's no proxy just create a normal client\n if (appProps.getProxyHost().isEmpty()) {\n return baseClient.build();\n }\n\n final OkHttpClient.Builder proxyClient = baseClient\n .proxy(new java.net.Proxy(java.net.Proxy.Type.HTTP, new InetSocketAddress(appProps.getProxyHost(), Integer.parseInt(appProps.getProxyPort()))));\n\n if (!appProps.getProxyUsername().isEmpty() && !appProps.getProxyPassword().isEmpty()) {\n\n Authenticator proxyAuthenticator;\n String credentials;\n\n credentials = Credentials.basic(appProps.getProxyUsername(), appProps.getProxyPassword());\n\n // authenticate the proxy\n proxyAuthenticator = (route, response) -> response.request().newBuilder()\n .header(\"Proxy-Authorization\", credentials)\n .build();\n proxyClient.proxyAuthenticator(proxyAuthenticator);\n }\n return proxyClient.build();\n\n }", "private final static HttpRequest createRequest() {\r\n\r\n HttpRequest req = new BasicHttpRequest\r\n (\"GET\", \"/\", HttpVersion.HTTP_1_1);\r\n //(\"OPTIONS\", \"*\", HttpVersion.HTTP_1_1);\r\n\r\n return req;\r\n }", "@Provides\n @Singleton\n Client provideHttpClient(Environment environment, PermissionsAppConfig config) {\n HttpClientConfiguration httpClientConfiguration = new HttpClientConfiguration();\n httpClientConfiguration.setTimeout(Duration.milliseconds(7000));\n\n HttpClientBuilder clientBuilder = new HttpClientBuilder(environment);\n clientBuilder.using(httpClientConfiguration);\n\n JerseyClientBuilder builder = new JerseyClientBuilder(environment);\n builder.setApacheHttpClientBuilder(clientBuilder);\n\n Client client = builder.build(\"jerseyClient\");\n client.register(ClientCorrelationIdFilter.class, 1);\n client.register(JerseyLoggingFilter.class, 2);\n return client;\n }", "public static void main(String[] args) throws Exception {\n\n CloseableHttpClient aDefault = HttpClients.createDefault();\n\n\n /* HttpPost httpPost = new HttpPost(\"http://172.16.18.88:8080/toLogin.do\");\n List<NameValuePair> paramList = new ArrayList<>();\n paramList.add(new BasicNameValuePair(\"email\", \"hf\"));\n paramList.add(new BasicNameValuePair(\"pwd\", \"1234\"));\n paramList.add(new BasicNameValuePair(\"url\", \"\"));\n UrlEncodedFormEntity postEntity = new UrlEncodedFormEntity(paramList, \"UTF-8\");\n httpPost.setEntity(postEntity);\n HttpEntity entity = aDefault.execute(httpPost).getEntity();\n System.out.println(EntityUtils.toString(entity,DEFAULT_CHARSET));*/\n\n\n HttpGet httpGet = new HttpGet(\"http://e-hentai.org\");\n httpGet.setHeader(\"User-Agent\", DEFAULT_USER_AGENT);\n CloseableHttpResponse execute = aDefault.execute(httpGet);\n System.out.println(EntityUtils.toString(execute.getEntity(), DEFAULT_CHARSET));\n\n\n String phone = \"13920266937\";\n String code = \"北京,邢台,上海。\";\n String tplId = \"39638\";\n String url = \"http://v.juhe.cn/sms/send?mobile=\" + phone + \"&tpl_id=\" + tplId + \"&tpl_value=%23code%23%3D\" + code + \"&key=e3d4c483e58d86102bce4e05dcf071c1\";\n String s = httpPost(url);\n System.out.println(s);\n }", "protected WebTestArtifact makeHttpRequest(String resource, String httpMethod)\r\n {\r\n return new WebTestArtifact(resource, httpMethod);\r\n }", "public BitbucketServiceFactory() {\n this.httpClient = HttpClient::create;\n }", "public AsyncHttpResponse(String url, HttpResponseHeaders headers, byte[] payload) {\n mUrl = url;\n mHeaders = headers;\n mPayload = payload;\n mException = null;\n }", "private HttpHeaders getHttpHeaders()\r\n\t{\n HttpHeaders lHttpHeaders = new HttpHeaders();\r\n lHttpHeaders.setContentType(MediaType.APPLICATION_JSON);\r\n lHttpHeaders.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\r\n // set basic authorization with api key and its value\r\n lHttpHeaders.setBasicAuth( PaymentConstant.API_KEY_ID, PaymentConstant.API_KEY_PASSWORD );\r\n return lHttpHeaders;\r\n\t}", "@Provides\n @Singleton\n OkHttpClient provideOkHttpClient() {\n final HttpLoggingInterceptor loggingInterceptor = new HttpLoggingInterceptor();\n loggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY);\n\n OkHttpClient.Builder clientBuilder = new OkHttpClient.Builder()\n .addInterceptor(loggingInterceptor);\n\n return clientBuilder.build();\n }", "CompletableFuture<PostResponse> createNewPost(Post post);", "public HttpEntity openHttpEntityViaPost(URL url, Map<String, String> params) throws IOException {\r\n List<NameValuePair> nvps = new ArrayList<NameValuePair>();\r\n for (String pName : params.keySet()) {\r\n nvps.add(new BasicNameValuePair(pName, params.get(pName)));\r\n }\r\n return openHttpEntityViaPost(url, nvps);\r\n }", "public Builder httpClientInstance(okhttp3.OkHttpClient httpClientInstance) {\r\n configurationBuilder.httpClientInstance(httpClientInstance);\r\n return this;\r\n }", "String addclient(ContentValues client);", "ResponseHandler createResponseHandler();" ]
[ "0.6946483", "0.6791638", "0.6690835", "0.64410734", "0.62591386", "0.6240455", "0.6178956", "0.6175448", "0.61484545", "0.6023752", "0.5957844", "0.59496754", "0.5921056", "0.59040177", "0.59015733", "0.5873391", "0.5845826", "0.58342654", "0.58114904", "0.5791647", "0.5717884", "0.56985545", "0.569217", "0.5644128", "0.56242037", "0.56102854", "0.5597314", "0.55541474", "0.55323434", "0.5526996", "0.5520274", "0.55161846", "0.54995114", "0.5497852", "0.54958993", "0.5477244", "0.54433244", "0.5438142", "0.54338247", "0.54281527", "0.5414742", "0.54139376", "0.53647244", "0.53617865", "0.5339481", "0.53380865", "0.53364104", "0.5334233", "0.5329836", "0.53268313", "0.53247386", "0.5323812", "0.5317347", "0.5308425", "0.52751386", "0.5274291", "0.5265499", "0.52582216", "0.5252781", "0.5249137", "0.5244037", "0.5211955", "0.52056456", "0.5201673", "0.5200589", "0.5200061", "0.51961195", "0.51808876", "0.51779777", "0.5166962", "0.5153572", "0.51530576", "0.5147452", "0.513328", "0.51292074", "0.5104871", "0.51039267", "0.50986284", "0.5091155", "0.5090944", "0.50671417", "0.5056048", "0.5045958", "0.5044684", "0.50350004", "0.50224197", "0.5014609", "0.4993788", "0.4986222", "0.49804986", "0.49729627", "0.49706396", "0.49675897", "0.4950506", "0.4947168", "0.4942878", "0.49418905", "0.4939811", "0.4936247", "0.4921142", "0.4908117" ]
0.0
-1
this is the constructor if you want it to read from an array
public Unsigned128BitType( final NativeImg< ?, ? extends LongAccess > bitStorage ) { i = new Index(); img = bitStorage; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayAccess()\r\n {\r\n }", "public ArrayAccessor() {\r\n super(\"<array>\");\r\n }", "public Interface(String filename) throws FileNotFoundException \n {\n //read file for first time to find size of array\n File f = new File(filename);\n Scanner b = new Scanner(f);\n\n while(b.hasNextLine())\n {\n b.nextLine();\n arraySize++;\n }\n //create properly sized array\n array= new double[arraySize];\n //open and close the file, scanner class does not support rewinding\n b.close();\n b = new Scanner(f);\n //read input \n for(int i = 0; i < arraySize; i++)\n { \n array[i] = b.nextDouble();\n }\n //create a stats object of the proper size\n a = new Stats(arraySize);\n a.loadNums(array); //pass entire array to loadNums to allow Stats object a to have a pointer to the array\n }", "public SongArray(){\n }", "public IntArrays()\n\t{\n\t\tthis(10);\n\t}", "public ExpandableArray() {\n\n\t}", "public MyArray() {\n this.length = 10;\n this.array = (T[]) Array.newInstance(MyArray.class, length);\n this.size = 0;\n }", "public InputArray() \n\t{\n\t\tinputArray = null;\n\t}", "public SuperArray() { \n \t_data = new Comparable[10];\n \t_lastPos = -1; //flag to indicate no lastpos yet\n \t_size = 0;\t\n }", "public SpecimenArray()\r\n\t{\r\n\t\tsuper();\r\n\t}", "public Record(String[] input){\r\n\t\tsetData(input);\r\n\t}", "public OrderedSuperArray(){\n\tsuper();\n }", "public FancyArray(Object[] arr) {\r\n\t\t/*\r\n\t\t * Statt eines Konstruktors der Oberklasse kann ich auch\r\n\t\t * einen anderen Konstruktor der Klasse selbst aufrufen!\r\n\t\t * \r\n\t\t * Auch dazu benutzen wir das Schlüsselwort this,\r\n\t\t * so rufen wir den parameterlosen Konstruktor auf -\r\n\t\t * so kann ich auch Konstruktoren der gleichen Klasse verketten\r\n\t\t */\r\n\t\tthis();\r\n\t\t//nach dem Aufruf wird dieser Konstruktor weiter ausgeführt:\r\n\t\taddAll(arr);\r\n\t}", "Array(int[] n) {\n\t\tarray = n;\n\t}", "public NumberAnalyzer(T[] array){\n this.array = array;\n }", "public Person(String name, ArrayList<String> pnArray) {\n\n\t}", "public ArrayADT() \r\n\t{\r\n\t\tbookArray = new String[MAXSIZE];\r\n\t\tnumItems = 0;\r\n\t}", "private ArrayOps() {\r\n }", "public DynamicArray() {\n this(16);\n }", "public FormatableArrayHolder() \n\t{\n\t}", "public GenericDynamicArray() {this(11);}", "public ArraySpliterator(Object[] param1ArrayOfObject, int param1Int1, int param1Int2, int param1Int3) {\n/* 926 */ this.array = param1ArrayOfObject;\n/* 927 */ this.index = param1Int1;\n/* 928 */ this.fence = param1Int2;\n/* 929 */ this.characteristics = param1Int3 | 0x40 | 0x4000;\n/* */ }", "@SuppressWarnings(\"unchecked\")\n public ArrBag( String infileName ) throws Exception\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n BufferedReader infile = new BufferedReader( new FileReader( infileName ) );\n while ( infile.ready() )\n this.add( (T) infile.readLine() );\n infile.close();\n }", "public FormatableArrayHolder(Object[] array)\n\t{\n\t\tif (SanityManager.DEBUG)\n\t\t{\n\t\t\tSanityManager.ASSERT(array != null, \n\t\t\t\t\t\"array input to constructor is null, code can't handle this.\");\n\t\t}\n\n\t\tsetArray( array );\n\t}", "public RubyArray(Ruby ruby) {\n \t\tthis(ruby, new ArrayList());\n \t}", "public Sock( /*int n , int ar[]*/)\n{\n\t//this.n=n;\n\t//this.ar=ar;\n}", "public Voice(int brr_buf_size)\r\n\t{\r\n\t\tbuffer = new ModuloArray(brr_buf_size);\r\n\t}", "Array createArray();", "public Array(int capacity)\n {\n array = new Object[capacity];\n }", "public MyArray(int size) {\n this.length = size;\n this.array = (T[]) Array.newInstance(MyArray.class, length);\n this.size = 0;\n }", "public ArrayValue( Object array )\n\t{\n\t\tthis( array, (byte) 0, null, 0 );\n\t}", "private RubyArray(Ruby runtime, RubyClass klass, int length) {\n super(runtime, klass);\n values = new IRubyObject[length];\n }", "public SimpleArrayList(E[] array) {\n this.values = Arrays.copyOf(array, array.length);\n this.index = this.values.length;\n }", "private RubyArray(Ruby runtime, boolean objectSpace) {\n super(runtime, runtime.getArray(), objectSpace);\n }", "public MutableArray(ARRAY paramARRAY, int paramInt, CustomDatumFactory paramCustomDatumFactory)\n/* */ {\n/* 155 */ this.length = -1;\n/* 156 */ this.elements = null;\n/* 157 */ this.datums = null;\n/* 158 */ this.pickled = paramARRAY;\n/* 159 */ this.pickledCorrect = true;\n/* 160 */ this.sqlType = paramInt;\n/* 161 */ this.old_factory = paramCustomDatumFactory;\n/* 162 */ this.isNChar = false;\n/* */ }", "Array() {\n\t\tarray = new int[0];\n\t}", "public ArrayListOfIntsWritable(int[] arr)\n {\n super(arr);\n }", "private RubyArray(Ruby runtime, long length) {\n super(runtime, runtime.getArray());\n checkLength(length);\n values = new IRubyObject[(int)length];\n }", "public SimpleArray(int size)\n\t{\n\t\tarray = new int[size];\n\t}", "private Box(String[] arr) {\r\n name = arr[0];\r\n height = Integer.parseInt(arr[1]);\r\n width = Integer.parseInt(arr[2]);\r\n depth = Integer.parseInt(arr[3]);\r\n weight = Integer.parseInt(arr[4]);\r\n }", "@SafeVarargs\n public ObjectArrayIterator(final E... array) {\n this(array, 0, array.length);\n }", "@Override\n public String toString() {\n return \"array read on \" + System.identityHashCode(array) + \"; index=\" + index + \"; stream=\" + getStream().getStreamNumber();\n }", "public MyArray() {\n\t\tcapacity = DEFAULT_CAPACITY;\n\t\tnumElements = 0;\n\t\telements = (E[]) new Object[capacity];\n\t}", "public ArrayContainer() {\n this(DEFAULT_CAPACITY);\n }", "public Stat() {\n\t\tdata = new SuperArray();\n }", "public MyArrayList(int length) {\n data = new Object[length];\n }", "private Labels(ArrayMixedObject array) {\n\t\tthis.array = array != null ? array : new ArrayMixedObject();\n\t}", "public Array2DPrint() {}", "public HashArray(){\n this(10);\n }", "public IntArraySpliterator(int[] param1ArrayOfint, int param1Int1, int param1Int2, int param1Int3) {\n/* 1011 */ this.array = param1ArrayOfint;\n/* 1012 */ this.index = param1Int1;\n/* 1013 */ this.fence = param1Int2;\n/* 1014 */ this.characteristics = param1Int3 | 0x40 | 0x4000;\n/* */ }", "public IntArrayProcessor(int[] array)\n {\n integers = array;\n }", "public Reader(){\n\n\t}", "ArrayADT() {\n this.size = 10;\n this.base = createArrayInstance(this.size);\n this.length = 0;\n }", "Constructor() {\r\n\t\t \r\n\t }", "public BitReader(byte[] input) {\n this.input = input;\n this.size = input.length << 3;\n }", "@SafeVarargs\n public Array(T... items)\n {\n this.array = items;\n this.next = items.length;\n }", "public ObjectArrayIterator(final E array[], final int start) {\n this(array, start, array.length);\n }", "public XmlsonArray(String name) {\n\t\tsuper(name);\n\t}", "public MyArrayList()\n\t{\n\t\tmyArray = new Object[StartSize];\n\t}", "public Matrix(int[][] array)\n {\n matrix = array;\n }", "public void read(ArrayDataInput in) throws FitsException, IOException;", "protected ValueReader arrayReader(Class<?> contextType, Class<?> arrayType) {\n // TODO: maybe allow custom array readers?\n Class<?> elemType = arrayType.getComponentType();\n if (!elemType.isPrimitive()) {\n return new ArrayReader(arrayType, elemType,\n createReader(contextType, elemType, elemType));\n }\n int typeId = _findSimpleType(arrayType, false);\n if (typeId > 0) {\n return new SimpleValueReader(arrayType, typeId);\n }\n throw new IllegalArgumentException(\"Deserialization of \"+arrayType.getName()+\" not (yet) supported\");\n }", "public Array()\n {\n assert DEFAULT_CAPACITY > 0;\n\n array = new Object[DEFAULT_CAPACITY];\n }", "public NativeIntegerObjectArrayImpl()\n {\n }", "public CharArrayReader( CharBuffer buffer )\n {\n this( buffer.array(),\n buffer.arrayOffset() + buffer.position(),\n buffer.remaining() );\n }", "public ArrayQueue() {\n this(10);\n }", "public JsonArray() {\n }", "@Override\n public void init(float[] data) {\n this.data = data;\n\n //\n shapeArr = new Rectangle2D.Float[data.length];\n colorArr = new Color[data.length];\n pointArr = new Point2D.Float[data.length];\n }", "public static void fromArray() {\n Observable<String> myObservable = Observable.fromArray(Utils.getData().toArray(new String[0]));\n /*\n 1. Instead of providing a subscriber, single method can be provided just to get onNext().\n 2. Similarly 3 methods can be provided one for each onNext, onError, onCompleted.\n */\n myObservable.subscribe(value -> System.out.println(\"output = \" + value));\n }", "TDrawingConstructor (ArrayList interpretation){\r\n fInterpretation=interpretation;\r\n}", "public CircularArray() {\n\t\tthis(DEFAULT_SIZE);\n\t}", "public Person1(int[] celNumber, int age, String name) {\n\t\tsuper();\n\t\tthis.celNumber = celNumber;\n\t\tthis.age = age;\n\t\tthis.name = name;\n\t}", "public ArrayListIterator(E[] array, int start, int length) {\r\n\t\tsuper(array, start, length);\r\n\t\tthis.minIndex = start;\r\n\t}", "public Data(String[] lines) {\n\t\tmLines = lines;\n\t}", "@SuppressWarnings(\"unchecked\")\r\n\tpublic ArrayQueue() {\r\n a = (Item[]) new Object[2];\r\n n = 0;\r\n head =0;\r\n tail = 0;\r\n }", "public TLongArray() {\n\t}", "@Override\n public void deserialize(byte[] array) throws IOException {\n throw new UnsupportedOperationException(\"Not implemented\");\n\n }", "public MyArrayList() {\n data = new Object[10];\n }", "public <T> Input(int defaultPosition, T[] array) {\n this.defaultPosition = defaultPosition;\n this.list = new ArrayList<>(Arrays.asList(array));\n }", "@Override\n public Array read(String varName, int[] origin, int[] size, int[] stride) {\n return null;\n }", "public ArrBag()\n {\n count = 0; // i.e. logical size, actual number of elems in the array\n }", "public Polinomio(int[] pol) {\n polinomio = pol;\n }", "public ComparableArrayHolder(){\r\n this(DEF_CAP);\r\n }", "public ArrayAccess(PrimaryExpression e1, Expression e2)\r\n {\r\n\tsetExpression(e1);\r\n\tsetAccessExpression(e2);\r\n }", "public ObjectArrayIterator(final E array[], final int start, final int end) {\n if (start < 0) {\n throw new ArrayIndexOutOfBoundsException(\"Start index must not be less than zero\");\n }\n if (end > array.length) {\n throw new ArrayIndexOutOfBoundsException(\"End index must not be greater than the array length\");\n }\n if (start > array.length) {\n throw new ArrayIndexOutOfBoundsException(\"Start index must not be greater than the array length\");\n }\n if (end < start) {\n throw new IllegalArgumentException(\"End index must not be less than start index\");\n }\n this.array = array;\n this.startIndex = start;\n this.endIndex = end;\n this.index = start;\n }", "private RubyArray(Ruby runtime, IRubyObject[] vals, int begin) {\n super(runtime, runtime.getArray());\n this.values = vals;\n this.begin = begin;\n this.realLength = vals.length - begin;\n this.isShared = true;\n }", "public ImmutableList(T[] array) {\r\n this(array,0,array.length);\r\n }", "public purchaseDesign()\n {\n priceArray = new int[5][4];\n }", "public BadArrayException(String exceptionMsg) \r\n {\r\n super(exceptionMsg); // Pass on to parent exception constructor\r\n }", "void setArrayGeneric(int paramInt)\n/* */ {\n/* 1062 */ this.length = paramInt;\n/* 1063 */ this.datums = new Datum[paramInt];\n/* 1064 */ this.pickled = null;\n/* 1065 */ this.pickledCorrect = false;\n/* */ }", "public JSONArray() {\n\t\tsuper();\n\t}", "public static void main(String[] args) {\n\n for(int i=0; i<3;i++){\n // arr[i] = new Array1(i+3,i*2);\n //arr[0] = arr.getArray(3,5);\n\n }\n\n }", "public Student[] constructArray(String fileName)throws IOException{\n \n Student[] ans = new Student[10];\n Scanner Sc = new Scanner(new File(fileName));\n Sc.useDelimiter(\"\\t|\\n\");\n this.amount = 0;\n while(Sc.hasNext()){\n if(this.amount == ans.length){\n ans = doubler(ans);\n }\n String ID = Sc.next();\n String SName = Sc.next();\n String Email = Sc.next();\n String SClass = Sc.next();\n String major = Sc.next();\n ans[this.amount] = new Student(ID, SName, Email, SClass, major);\n amount++;\n }\n return ans;\n }", "private ArrayRangeIterator(Object[] paramArrayOfObject, int paramInt1, int paramInt2)\n/* */ {\n/* 60 */ this.m_array = paramArrayOfObject;\n/* 61 */ this.m_offset = paramInt1;\n/* 62 */ this.m_limit = paramInt2;\n/* */ }", "public Retangulo(double[] pLados) {\n super(pLados);\n /* invoca o construtor da classe Pai passando pLados como parametros. */\n }", "public void init(int[] a){\n this.array = a;\n moves = 0; \n }", "private Array(Builder builder) {\n super(builder);\n }", "public Object loadArray(Class<?> clazz, Field field) throws Exception {\n int length = readInt();\n Object array = Array.newInstance(clazz.getComponentType(), length);\n populateArray(array, field);\n return array;\n }", "public Matrix(double[][] array) {\n this.array = array; // note: danger!\n }", "public MutableArray(int paramInt, double[] paramArrayOfDouble, ORADataFactory paramORADataFactory)\n/* */ {\n/* 111 */ this.sqlType = paramInt;\n/* 112 */ this.factory = paramORADataFactory;\n/* 113 */ this.isNChar = false;\n/* */ \n/* 115 */ setArray(paramArrayOfDouble);\n/* */ }", "public PersoAdapter(List<Characters> myDataset){\n compteur = 0;\n mDataset = myDataset.toArray(new Characters[0]);\n }" ]
[ "0.6944597", "0.69309235", "0.6614128", "0.65444434", "0.6478433", "0.64305526", "0.64188814", "0.63818187", "0.6381798", "0.6349155", "0.63039476", "0.62540287", "0.6249967", "0.622686", "0.62084585", "0.6191891", "0.6182844", "0.61666685", "0.6159053", "0.61410534", "0.612722", "0.6076024", "0.60709864", "0.6044135", "0.6042988", "0.6031523", "0.6025734", "0.60219526", "0.60072184", "0.6003957", "0.6003203", "0.5991438", "0.5979275", "0.5954062", "0.59466404", "0.5945422", "0.5936947", "0.5935918", "0.5920789", "0.59019196", "0.589898", "0.58777994", "0.58770096", "0.5857406", "0.58573425", "0.585686", "0.5850284", "0.5837155", "0.58185965", "0.58182657", "0.5805487", "0.58018047", "0.5801764", "0.579372", "0.5780222", "0.57772905", "0.5774504", "0.576264", "0.5757983", "0.57578564", "0.5751954", "0.57515055", "0.57488626", "0.5740374", "0.5725649", "0.5722075", "0.5709033", "0.5703496", "0.5695308", "0.56873196", "0.5677812", "0.5661741", "0.566019", "0.5653647", "0.56330985", "0.5631749", "0.5630737", "0.56253886", "0.56240624", "0.562189", "0.56214166", "0.5618192", "0.5617092", "0.5612109", "0.56109977", "0.560905", "0.56073296", "0.5590969", "0.5590231", "0.5589768", "0.5589492", "0.5588144", "0.5587403", "0.5575067", "0.55750656", "0.5565411", "0.55548525", "0.55512565", "0.554752", "0.55436283", "0.5542945" ]
0.0
-1
this is the constructor if you want it to be a variable
public Unsigned128BitType( final long lower, final long upper ) { this( ( NativeImg< ?, ? extends LongAccess > ) null ); dataAccess = new LongArray( 2 ); set( lower, upper ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Variable(String name){\n this.name = name;\n }", "ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke parent class constructor and method\r\n super(weight);//Accessign Superclass constructor and its variable\r\n //Global Variable=Local variable\r\n this.name = name;\r\n }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "c(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "d(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public CyanSus() {\n\n }", "public ValorVariavel() {\r\n }", "Variable(String _var) {\n this._var = _var;\n }", "public Var(String var) {\r\n this.variable = var;\r\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}", "public EmployeeRecords(String n, int s){ // defined a parameterized constructor\r\n this.name = n; // assigning a local variable value to a global variable\r\n this.salary = s; // assigning a local variable value to a global variable\r\n }", "public TradeVariables() { /*gets default values*/ }", "private TMCourse() {\n\t}", "private Value() {\n\t}", "public Pitonyak_09_02() {\r\n }", "public SuperClass(int x)\r\n {\r\n _x = x;\r\n }", "Petunia() {\r\n\t\t}", "public FunctionVariable (Object names[])\n {\n super(names);\n }", "public _355() {\n\n }", "public Chauffeur() {\r\n\t}", "public Parameters() {\n\t}", "public Pasien() {\r\n }", "public Lanceur() {\n\t}", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public ThisKeyword(){\n this(1.0);\n }", "public TTau() {}", "public Card() { this(12, 3); }", "Sorcerer (String cName){\n name = cName;\n hp = 20;\n mana = 100; \n strength = 2;\n vitality = 4;\n energy = 10;\n }", "public Trening() {\n }", "public GlobalVariable() {\n }", "public Cgg_jur_anticipo(){}", "Cycle(int weight) {\r\n //this keyword is used to differentiate between global and local variables\r\n //\"this.name\" refers to the global instance variable\r\n // \"= name\" refers to the local variable defined inside the constructor \r\n this.weight = weight;\r\n }", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "public AntrianPasien() {\r\n\r\n }", "private Rekenhulp()\n\t{\n\t}", "public Valvula(){}", "public Curso() {\r\n }", "public Clade() {}", "public Plato(){\n\t\t\n\t}", "public LightParameter()\r\n\t{\r\n\t}", "public Node(){\n this(9);\n }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }", "public Kitten(String s, int a)\n {\n // initialise instance variables\n super(s, a);\n }", "a(c cVar) {\n super(0);\n this.this$0 = cVar;\n }", "private LocalParameters() {\n\n\t}", "private UsineJoueur() {}", "public Supercar() {\r\n\t\t\r\n\t}", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public Person(String inName)\n {\n name = inName;\n }", "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 Hello()\n {\n // initialise instance variables\n \n }", "public RptPotonganGaji() {\n }", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "private Instantiation(){}", "public Animal(int age){\n this.age = age;\n System.out.println(\"An animal has been created!\");\n }", "Variable createVariable();", "Variable createVariable();", "public contrustor(){\r\n\t}", "public Gitlet(int a) {\n\n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public JSFOla() {\n }", "public prueba()\r\n {\r\n }", "public FormField(String variable) {\n this.variable = variable;\n }", "@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 }", "public Achterbahn() {\n }", "public Mitarbeit() {\r\n }", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }", "public SlanjePoruke() {\n }", "d(b bVar) {\n super(2);\n this.this$0 = bVar;\n }", "public Mannschaft() {\n }", "protected ObjectRepresentant (Object counterPart, TypeSystemNode type, String name) {\r\n this.counterPart = counterPart;\r\n if (name!=null) {\r\n setName(name);\r\n }\r\n else {\r\n setName(\"this\");\r\n }\r\n typeSystemNode = type;\r\n System.out.println(this+\" value: \"+value());\r\n }", "private Params()\n {\n }", "public A(int x)\n {\n xValue = x;\n }", "public TebakNusantara()\n {\n }", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "public AI(String n) {//constructor for super class\n super(n);\n }", "public Candy() {\n\t\tthis(\"\");\n\t}", "public Cohete() {\n\n\t}", "public Chick() {\n\t}", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public Dice() { \n this(6); /* Invoke the above Dice constructor with value 6. */ \n }", "public AirAndPollen() {\n\n\t}", "Casilla(String nombre){\n this.nombre=nombre; \n }", "public ActRuVariable() {\n this(DSL.name(\"act_ru_variable\"), null);\n }", "public DetArqueoRunt () {\r\n\r\n }", "public Alojamiento() {\r\n\t}", "public Argonian()\n\t{\n\t\tthis.race = \"Argonian\";\n\t}", "public EngineClass()\n {\n cyl = 10;\n fuel = new String( BATT );\n }", "public Final_parametre() {\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Tigre() {\r\n }", "Reproducible newInstance();", "public Carrera(){\n }", "public Tbdcongvan36() {\n super();\n }", "public Lotto2(){\n\t\t\n\t}", "public Tester()\n {\n // initialise instance variables\n x = 0;\n }" ]
[ "0.7367625", "0.6935796", "0.684345", "0.68317866", "0.67291677", "0.6700705", "0.666665", "0.6624925", "0.65958184", "0.65955", "0.65260744", "0.6519095", "0.64981544", "0.6487919", "0.6471643", "0.64405596", "0.6435672", "0.64263856", "0.642393", "0.64105767", "0.63782525", "0.6368271", "0.63433707", "0.6342922", "0.6342361", "0.6340882", "0.63375497", "0.6329426", "0.63289315", "0.6317959", "0.63163483", "0.63127565", "0.6301049", "0.6301049", "0.6284677", "0.6267543", "0.62592626", "0.62377477", "0.6225345", "0.6216689", "0.6206132", "0.6205449", "0.620286", "0.6194733", "0.61758685", "0.61737674", "0.6166081", "0.6164372", "0.61624545", "0.6156125", "0.6148136", "0.6147885", "0.61469036", "0.61467916", "0.614511", "0.61397004", "0.61361533", "0.6134422", "0.61266965", "0.6122409", "0.6113096", "0.6113096", "0.6112502", "0.6106918", "0.6102626", "0.60947883", "0.6089528", "0.60892105", "0.60890365", "0.60873926", "0.6083047", "0.60816807", "0.6079783", "0.6073798", "0.6068059", "0.6067919", "0.60677165", "0.6065777", "0.60655755", "0.6061597", "0.60585856", "0.6054606", "0.60534596", "0.60491806", "0.6048409", "0.6046921", "0.60461974", "0.6043392", "0.6043006", "0.6033715", "0.60330546", "0.6032718", "0.603266", "0.6029842", "0.60262626", "0.6024532", "0.60241354", "0.60227555", "0.6017792", "0.6017207", "0.60163844" ]
0.0
-1
this is the constructor if you want it to be a variable
public Unsigned128BitType( final BigInteger value ) { this( ( NativeImg< ?, ? extends LongAccess > ) null ); dataAccess = new LongArray( 2 ); set( value ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Variable(String name){\n this.name = name;\n }", "ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke parent class constructor and method\r\n super(weight);//Accessign Superclass constructor and its variable\r\n //Global Variable=Local variable\r\n this.name = name;\r\n }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "c(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "d(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public CyanSus() {\n\n }", "public ValorVariavel() {\r\n }", "Variable(String _var) {\n this._var = _var;\n }", "public Var(String var) {\r\n this.variable = var;\r\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}", "public EmployeeRecords(String n, int s){ // defined a parameterized constructor\r\n this.name = n; // assigning a local variable value to a global variable\r\n this.salary = s; // assigning a local variable value to a global variable\r\n }", "public TradeVariables() { /*gets default values*/ }", "private TMCourse() {\n\t}", "private Value() {\n\t}", "public Pitonyak_09_02() {\r\n }", "public SuperClass(int x)\r\n {\r\n _x = x;\r\n }", "Petunia() {\r\n\t\t}", "public FunctionVariable (Object names[])\n {\n super(names);\n }", "public _355() {\n\n }", "public Chauffeur() {\r\n\t}", "public Parameters() {\n\t}", "public Pasien() {\r\n }", "public Lanceur() {\n\t}", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public ThisKeyword(){\n this(1.0);\n }", "public TTau() {}", "public Card() { this(12, 3); }", "Sorcerer (String cName){\n name = cName;\n hp = 20;\n mana = 100; \n strength = 2;\n vitality = 4;\n energy = 10;\n }", "public Trening() {\n }", "public GlobalVariable() {\n }", "public Cgg_jur_anticipo(){}", "Cycle(int weight) {\r\n //this keyword is used to differentiate between global and local variables\r\n //\"this.name\" refers to the global instance variable\r\n // \"= name\" refers to the local variable defined inside the constructor \r\n this.weight = weight;\r\n }", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "public AntrianPasien() {\r\n\r\n }", "private Rekenhulp()\n\t{\n\t}", "public Valvula(){}", "public Curso() {\r\n }", "public Clade() {}", "public Plato(){\n\t\t\n\t}", "public LightParameter()\r\n\t{\r\n\t}", "public Node(){\n this(9);\n }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }", "public Kitten(String s, int a)\n {\n // initialise instance variables\n super(s, a);\n }", "a(c cVar) {\n super(0);\n this.this$0 = cVar;\n }", "private LocalParameters() {\n\n\t}", "private UsineJoueur() {}", "public Supercar() {\r\n\t\t\r\n\t}", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public Person(String inName)\n {\n name = inName;\n }", "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 Hello()\n {\n // initialise instance variables\n \n }", "public RptPotonganGaji() {\n }", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "private Instantiation(){}", "public Animal(int age){\n this.age = age;\n System.out.println(\"An animal has been created!\");\n }", "Variable createVariable();", "Variable createVariable();", "public contrustor(){\r\n\t}", "public Gitlet(int a) {\n\n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public JSFOla() {\n }", "public prueba()\r\n {\r\n }", "public FormField(String variable) {\n this.variable = variable;\n }", "@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 }", "public Achterbahn() {\n }", "public Mitarbeit() {\r\n }", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }", "public SlanjePoruke() {\n }", "d(b bVar) {\n super(2);\n this.this$0 = bVar;\n }", "public Mannschaft() {\n }", "protected ObjectRepresentant (Object counterPart, TypeSystemNode type, String name) {\r\n this.counterPart = counterPart;\r\n if (name!=null) {\r\n setName(name);\r\n }\r\n else {\r\n setName(\"this\");\r\n }\r\n typeSystemNode = type;\r\n System.out.println(this+\" value: \"+value());\r\n }", "private Params()\n {\n }", "public A(int x)\n {\n xValue = x;\n }", "public TebakNusantara()\n {\n }", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "public AI(String n) {//constructor for super class\n super(n);\n }", "public Candy() {\n\t\tthis(\"\");\n\t}", "public Cohete() {\n\n\t}", "public Chick() {\n\t}", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public Dice() { \n this(6); /* Invoke the above Dice constructor with value 6. */ \n }", "public AirAndPollen() {\n\n\t}", "Casilla(String nombre){\n this.nombre=nombre; \n }", "public ActRuVariable() {\n this(DSL.name(\"act_ru_variable\"), null);\n }", "public DetArqueoRunt () {\r\n\r\n }", "public Alojamiento() {\r\n\t}", "public Argonian()\n\t{\n\t\tthis.race = \"Argonian\";\n\t}", "public EngineClass()\n {\n cyl = 10;\n fuel = new String( BATT );\n }", "public Final_parametre() {\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Tigre() {\r\n }", "Reproducible newInstance();", "public Carrera(){\n }", "public Tbdcongvan36() {\n super();\n }", "public Lotto2(){\n\t\t\n\t}", "public Tester()\n {\n // initialise instance variables\n x = 0;\n }" ]
[ "0.7367625", "0.6935796", "0.684345", "0.68317866", "0.67291677", "0.6700705", "0.666665", "0.6624925", "0.65958184", "0.65955", "0.65260744", "0.6519095", "0.64981544", "0.6487919", "0.6471643", "0.64405596", "0.6435672", "0.64263856", "0.642393", "0.64105767", "0.63782525", "0.6368271", "0.63433707", "0.6342922", "0.6342361", "0.6340882", "0.63375497", "0.6329426", "0.63289315", "0.6317959", "0.63163483", "0.63127565", "0.6301049", "0.6301049", "0.6284677", "0.6267543", "0.62592626", "0.62377477", "0.6225345", "0.6216689", "0.6206132", "0.6205449", "0.620286", "0.6194733", "0.61758685", "0.61737674", "0.6166081", "0.6164372", "0.61624545", "0.6156125", "0.6148136", "0.6147885", "0.61469036", "0.61467916", "0.614511", "0.61397004", "0.61361533", "0.6134422", "0.61266965", "0.6122409", "0.6113096", "0.6113096", "0.6112502", "0.6106918", "0.6102626", "0.60947883", "0.6089528", "0.60892105", "0.60890365", "0.60873926", "0.6083047", "0.60816807", "0.6079783", "0.6073798", "0.6068059", "0.6067919", "0.60677165", "0.6065777", "0.60655755", "0.6061597", "0.60585856", "0.6054606", "0.60534596", "0.60491806", "0.6048409", "0.6046921", "0.60461974", "0.6043392", "0.6043006", "0.6033715", "0.60330546", "0.6032718", "0.603266", "0.6029842", "0.60262626", "0.6024532", "0.60241354", "0.60227555", "0.6017792", "0.6017207", "0.60163844" ]
0.0
-1
this is the constructor if you want to specify the dataAccess
public Unsigned128BitType( final LongAccess access ) { this( ( NativeImg< ?, ? extends LongAccess > ) null ); dataAccess = access; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public DataManage() {\r\n\t\tsuper();\r\n\t}", "public DAO(String dbType){\n this.dbType = dbType;\n if(this.dbType.equals(\"MySQL\")){\n initialPool();\n\n // for q5 mysql use\n if(wholeUserIds == null){\n wholeUserIds = new TreeSet<Long>();\n }\n }\n else if(this.dbType.equals(\"Memory\")){\n // for q5 memory use\n if(wholeCountData == null){\n wholeCountData = new TreeMap<String, Integer>();\n }\n }\n\n }", "public DesastreData() { //\r\n\t}", "private TableAccessET() {\n\n }", "public DescritoresDAO() {\n\t\t\n\t}", "public DataAdapter() {\n }", "public ValuesDAO(Database db) \n\t{\n\t\tthis.db = db;\n\t}", "public StatisticsController(DatabaseAccess dbAccess) {\n this.dbAccess = dbAccess;\n }", "public DataControl() throws DatabaseException{\r\n\t\tplayerDataService=new PlayerDataServiceImp();\r\n//\t\tteamDataService=new TeamDataServiceImp();\r\n//\t\tmatchDataService=new MatchDataServiceImp();\r\n\t}", "public OnibusDAO() {}", "public DAOImpl(String baseDatos, String usuario, String clave){\n this.baseDatos = baseDatos;\n this.usuario = usuario;\n this.clave = clave;\n }", "public Datos(){\n }", "public Database(Context context) { \n\t\tsuper( context, database_MEF, null, 2); \n\t}", "private LeagueSeasonDBAccess() {\n\n }", "private DatabaseAccess(Context context){\n this.openHelper=new DatabaseOpenHelper(context);\n }", "public DatasetAdmin(Context context) {\n // this.data = MainActivity.data;\n this.context = context;\n }", "public AccessSqlParser ()\n\t{\n\t}", "private AccessList() {\r\n\r\n }", "public DataBaseHelper(Context context) {\n \n \tsuper(context, DB_NAME, null, 1);\n this.myContext = context;\n }", "protected DAO()\r\n\t{\r\n\t\tcustomers = new ArrayList<Customer>();\r\n\t}", "public DatabaseAccess(Context context) {\n this.openHelper = new OlpbhtbDatabase(context);\n }", "private DatabaseAccess(Context context) {\n this.openHelper = new DatabaseOpenHelper(context);\n }", "public DatabaseOperations(){\n\n }", "public JdbcObjectStudentDAO() {\n\t\tsuper();\n\t}", "public DataBaseHelper(Context context) {\n\n super(context, DB_NAME, null, 1);\n this.myContext = context;\n }", "public DataSet() {\r\n \r\n }", "public DataBean() {\r\n \r\n }", "public DB() {\r\n\t\r\n\t}", "public SearchDia() {\n initComponents();\n UpdateTable.LoadData(sqlDia, tblDia);\n }", "private DataManager() {\n }", "public ArAgingDetailReportDAO () {}", "public CustomerModelDS(String nomeDb, String activity) {\r\n\t\ttry {\r\n\t\t\tContext initCtx = new InitialContext();\r\n\t\t\tContext envCtx = (Context) initCtx.lookup(\"java:comp/env\");\r\n\t\t\tds = (DataSource) envCtx.lookup(\"jdbc/\"+nomeDb);\r\n\t\t\tconnection = ds.getConnection();\r\n\t\t\tthis.tableName = activity.toLowerCase()+table;\r\n\t\t } catch (NamingException | SQLException e) {\r\n\t\t\ttry {\r\n\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\r\n\t\t\t\tconnection = DriverManager.getConnection(\"jdbc:mysql://localhost/\"+nomeDb, \"root\", \"\");\r\n\t\t\t\tconnection.setAutoCommit(false);\r\n\t\t\t} catch (SQLException | ClassNotFoundException ex) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t }\r\n\t}", "public AdminDAO()\n {\n con = DataBase.getConnection();//crear una conexión al crear un objeto AdminDAO\n }", "public Biodata() {\n initComponents();\n //pemanggilan fungsi koneksi database yang sudah kita buat pada class koneksi.java\n ConnectionDB DB = new ConnectionDB();\n DB.config();\n con = DB.con;\n stat = DB.stm;\n pst = DB.pst;\n data_table_mahasiswa();\n }", "public MultaDAO() {\r\n super(MultaDAO.class);\r\n }", "public ConnectDB(){\r\n\r\n\t}", "public SQLDataBase(Context context){ // is this supposed to be public?\n super(context, DATABASE_NAME, null, 1);\n }", "public ServiceCacheDB()\n\t{\n\t\tthis(0);\n\t}", "public MoviesDatabase()\n {\n file = new FileOperation();\n menu = new Menu();\n validation = new Validation();\n }", "public Data() {\n initComponents();\n koneksi_db();\n tampil_data();\n }", "public DataBaseAdapter(Context context) {\r\n\t\tmDbHelper = new DataBaseHelper(context);\r\n\t\tthis.c = context;\r\n\t}", "public DaoConnection() {\n\t\t\n\t}", "public LPMapdataDaoImpl() {\r\n\t\t\r\n\t}", "public DataManager() {\n\t\tthis(PUnit == null ? \"eElectionsDB\" : PUnit);\n\t}", "public interface DataAccessObject {\n\n}", "public DBConnection()\n {\n\n }", "public UsersDataSet() {}", "public Database() {\n if (init) {\n\n //creating Transaction data\n Transaction transactionOne\n = new Transaction(1, \"Debit\", \"Spar Grocery\", 54.68,1);\n\n transactionDB.add(transactionOne);\n\n // Creating an Account data\n Account accountOne = new Account(1, 445, 111111111, \"Savings\",\n 1250.24, transactionDB);\n\n accountDB.add(accountOne);\n\n //creating withdrawal data\n Withdrawal withdrawalOne = new Withdrawal(1, 64422545, 600.89);\n withdrawalDB.add(withdrawalOne);\n\n //creating transfer data\n Transfer transferOne = new Transfer(1, 25252525, 521.23);\n transferDB.add(transferOne);\n\n //creating lodgement data\n Lodgement lodgementOne = new Lodgement(1, 67766666, 521.23);\n lodgementDB.add(lodgementOne);\n\n //add Customer data \n Customer customerOne\n = new Customer(1, \"Darth Vader\", \"DarthVader@deathStar.com\",\n \"Level 5, Suit Dark\", \"darkSideIsGoodStuff\",\n accountDB, withdrawalDB, transferDB, lodgementDB);\n\n customerDB.add(customerOne);\n\n init = false;\n }\n }", "public DAO(List<String> listName) {\n super(listName);\n }", "public ArrayAccess()\r\n {\r\n }", "public DataTable() {\n\n\t\t// In this application, we use HashMap data structure defined in\n\t\t// java.util.HashMap\n\t\tdc = new HashMap<String, DataColumn>();\n\t}", "public Database() {\n //Assign instance variables.\n this.movies = new ArrayList<>();\n this.users = new ArrayList<>();\n }", "public AlManageOnAirDAOImpl() {\r\n super();\r\n }", "@SuppressWarnings(\"LawOfDemeter\")\n public AccessoryBO() throws PersistenceException {\n this.dao = DAOFactory.getDAOFactory().getAccessoryDAO();\n }", "public PacienteDAO(){ \n }", "public EquipmentSetAccessBean () {\n super();\n }", "private DatabaseAccess(Context context) {\n this.openHelper = new MyDatabase(context);\n }", "public empresaDAO(){\r\n \r\n }", "public TGeneralprocessModeloneDAO() {\n super();\n }", "public DAOImpl(String urlBase, String baseDatos, String usuario, String clave){\n this.urlBase = urlBase;\n this.baseDatos = baseDatos;\n this.usuario = usuario;\n this.clave = clave;\n }", "public DataAccessLayerException() {\n }", "public StockCardReportDAO () {}", "public EstadosSql() {\r\n }", "public DAOBaseImpl() {\n\t\tsuper();\n\t}", "public PrideDBAccessControllerImpl(Comparable experimentAcc) throws DataAccessException {\n this(DEFAULT_ACCESS_MODE, experimentAcc);\n }", "public TermDAOImpl(){\n connexion= new Connexion();\n }", "public DataConnection() {\n\t\ttry {\n\t\t\tString dbClass = \"com.mysql.jdbc.Driver\";\n\t\t\tClass.forName(dbClass).newInstance();\n\t\t\tConnection con = DriverManager.getConnection(DIR_DB, USER_DB, PASS_DB);\n\t\t\tstatement = con.createStatement();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public ContextDaoImpl() {\n Set<Commissioner> commissionerSet = new HashSet<>();\n List<String> logins = new ArrayList<>();\n commissionerSet.add(new Commissioner(\"victor.net\", \"25345Qw&&\", true));\n commissionerSet.add(new Commissioner(\"egor.net\", \"3456eR&21\", false));\n commissionerSet.add(new Commissioner(\"igor.net\", \"77??SDSw23\", false));\n logins.add(\"victor@khoroshev.net\");\n logins.add(\"egor@khoroshev.net\");\n logins.add(\"igor@khoroshev.net\");\n Database.setCandidateSet(new HashSet<>());\n Database.setVoterSet(new HashSet<>());\n Database.setLogins(logins);\n Database.setCommissionerSet(commissionerSet);\n }", "private LabelDbmsDao() {\r\n }", "public sqlDatabase() {\n }", "public Descripcion() {\n cnx= new ConexionDB();\n }", "public CommonDataSource(){\n }", "public DataFactoryImpl() {\n\t\tsuper();\n\t}", "public MusicDataAccessor() {\n\t\n\t\t// load the data into the table\n\t\tload();\n\t}", "private RefereesInLeagueDBAccess() {\n\n }", "public DaoFactory()\n\t{\n\n\t}", "public UfficioTecnicoDB() {\n this(ConnectionManager.getInstance());\n }", "public AnalysisDatasets() {\n }", "public DBMS(Context context) {\n super(context, DBName, null, DBVersion);\n Log.e(\"DBMS=>\", \"yes Db bna d ha\");\n }", "private CommentDAO() {\n\n\t}", "public WkBscCoreDAOImpl() {\r\n super();\r\n }", "public ConsultaMedica() {\n super();\n }", "public DataRecord() {\n super(DataTable.DATA);\n }", "public ExamDao() {\n\t\tsuper(Exam.EXAM, ro.ghasachi.bt.persistence.tables.pojos.Exam.class);\n\t}", "public UserDAO(String query){\n //this.query = query;\n }", "public TAppAccess() {\n\t}", "public PatientHistory() {\n initComponents();\n con = javaconnect.ConnectDb();\n }", "public AccountDataAccess() {\r\n\t\tlogger = Logger.getLogger(getClass());\r\n\t}", "public DABeneficios() {\n }", "private DatabaseAccess(Context context) {\n this.openHelper = new RecipesDatabase(context);\n }", "public DBManager() {\n\t\t\n\t}", "private DatabaseOperations() {\n }", "public RcivControlDAOImpl(){\r\n \r\n }", "public AzureDataLakeStoreDataset() {\n }", "public DBController() {\n System.out.println(\"[\" + this.getClass() + \" : consctructor]\");\n this.listeObservers = new ArrayList<>();\n this.url = \"/Users/nico/Desktop/testSquirell.db\";\n //this.listeMorceau=new ArrayList<Morceau>();\n //this.initDB();\n addTableMorceau();\n System.out.println(\"[end constructor \" + this.getClass() + \"]\");\n }", "public PgoFpagosDAO(Connection conn) {\n\t\tsuper(conn);\n\t}", "public ScOrgSeqDAOImpl() {\n super();\n }", "public DAOImpl(String driver, String urlBase, String baseDatos, String usuario, String clave) {\n this.driver = driver;\n this.urlBase = urlBase;\n this.baseDatos = baseDatos;\n this.usuario = usuario;\n this.clave = clave;\n }", "public SubordinationDAOImpl(Connection connection) {\n\t\tsuper(connection);\n\t}", "public DataSet(){\r\n\t\tdocs = Lists.newArrayList();\r\n//\t\t_docs = Lists.newArrayList();\r\n\t\t\r\n\t\tnewId2trnId = HashBiMap.create();\r\n\t\t\r\n\t\tM = 0;\r\n\t\tV = 0;\r\n\t}", "public ArtistDb(Connection connection) {\r\n super(connection);\r\n }" ]
[ "0.6910803", "0.6808378", "0.6661701", "0.65679365", "0.65628606", "0.6526074", "0.6512211", "0.65074015", "0.6482086", "0.6471755", "0.64472103", "0.6446119", "0.64350265", "0.64146936", "0.6409247", "0.6388409", "0.63858294", "0.6373717", "0.6368068", "0.63540995", "0.6353063", "0.6349605", "0.63430107", "0.6331422", "0.6326769", "0.63113075", "0.6307335", "0.63066494", "0.63003707", "0.629629", "0.6289552", "0.6288985", "0.62822896", "0.6280085", "0.6277071", "0.6272086", "0.62686074", "0.6268208", "0.6259758", "0.6243676", "0.6243497", "0.62403977", "0.62337756", "0.6231146", "0.62240875", "0.6215512", "0.6203553", "0.61924535", "0.6191859", "0.6184861", "0.6184677", "0.6182557", "0.61735696", "0.61731374", "0.6162406", "0.614935", "0.6148574", "0.6133226", "0.6131027", "0.61270756", "0.6121155", "0.6109258", "0.6093904", "0.60932755", "0.60903037", "0.608697", "0.608509", "0.6083901", "0.60820645", "0.60812163", "0.6080696", "0.60767025", "0.6072478", "0.60675573", "0.6066818", "0.60649306", "0.6060167", "0.604634", "0.6045651", "0.60453427", "0.60368025", "0.60341096", "0.6027706", "0.6026858", "0.60229903", "0.6022809", "0.6018316", "0.6000153", "0.5992522", "0.5987707", "0.59844995", "0.598057", "0.5979368", "0.59775394", "0.5974924", "0.5973655", "0.5968273", "0.5964207", "0.5959759", "0.5952388", "0.5941741" ]
0.0
-1
this is the constructor if you want it to be a variable
public Unsigned128BitType() { this( 0, 0 ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Constructor() {\r\n\t\t \r\n\t }", "public Constructor(){\n\t\t\n\t}", "public Variable(String name){\n this.name = name;\n }", "ByCicle(int weight, String name) {\r\n //super keyword can be used to access the instance variables of superclass\r\n //\"super\" can also be used to invoke parent class constructor and method\r\n super(weight);//Accessign Superclass constructor and its variable\r\n //Global Variable=Local variable\r\n this.name = name;\r\n }", "public Variable(String name) {\r\n\tthis.name = name;\r\n }", "public Variable(){\n name = \"\";\n initialValue = 0;\n }", "c(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "d(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public CyanSus() {\n\n }", "public ValorVariavel() {\r\n }", "Variable(String _var) {\n this._var = _var;\n }", "public Var(String var) {\r\n this.variable = var;\r\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}", "public EmployeeRecords(String n, int s){ // defined a parameterized constructor\r\n this.name = n; // assigning a local variable value to a global variable\r\n this.salary = s; // assigning a local variable value to a global variable\r\n }", "public TradeVariables() { /*gets default values*/ }", "private TMCourse() {\n\t}", "private Value() {\n\t}", "public Pitonyak_09_02() {\r\n }", "public SuperClass(int x)\r\n {\r\n _x = x;\r\n }", "Petunia() {\r\n\t\t}", "public FunctionVariable (Object names[])\n {\n super(names);\n }", "public _355() {\n\n }", "public Chauffeur() {\r\n\t}", "public Parameters() {\n\t}", "public Pasien() {\r\n }", "public Lanceur() {\n\t}", "public Variable(String name) {\n this.name = name;\n checkRep();\n }", "public ThisKeyword(){\n this(1.0);\n }", "public TTau() {}", "public Card() { this(12, 3); }", "Sorcerer (String cName){\n name = cName;\n hp = 20;\n mana = 100; \n strength = 2;\n vitality = 4;\n energy = 10;\n }", "public Trening() {\n }", "public GlobalVariable() {\n }", "public Cgg_jur_anticipo(){}", "Cycle(int weight) {\r\n //this keyword is used to differentiate between global and local variables\r\n //\"this.name\" refers to the global instance variable\r\n // \"= name\" refers to the local variable defined inside the constructor \r\n this.weight = weight;\r\n }", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "public AntrianPasien() {\r\n\r\n }", "private Rekenhulp()\n\t{\n\t}", "public Valvula(){}", "public Curso() {\r\n }", "public Clade() {}", "public Plato(){\n\t\t\n\t}", "public LightParameter()\r\n\t{\r\n\t}", "public Node(){\n this(9);\n }", "b(a aVar) {\n super(0);\n this.this$0 = aVar;\n }", "public Variable(String variableName) {\n super(null);\n this.variableName = variableName;\n }", "Variable(Object names[]) {\n _vname = makeName(names).intern();\n _names = names;\n \n }", "public Kitten(String s, int a)\n {\n // initialise instance variables\n super(s, a);\n }", "a(c cVar) {\n super(0);\n this.this$0 = cVar;\n }", "private LocalParameters() {\n\n\t}", "private UsineJoueur() {}", "public Supercar() {\r\n\t\t\r\n\t}", "public PowerMethodParameter() {\r\n\t\t\r\n\t\t//constructor fara parametru, utilizat in cazul in care utilizatorul nu introduce\r\n\t\t//fisierul sursa si nici fiesierul destinatie ca parametrii in linia de comanda\r\n\t\tSystem.out.println(\"****The constructor without parameters PowerMethodParameter has been called****\");\r\n\t\tSystem.out.println(\"You did not specify the input file and the output file\");\r\n\t\t\r\n\t}", "public Person(String inName)\n {\n name = inName;\n }", "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 Hello()\n {\n // initialise instance variables\n \n }", "public RptPotonganGaji() {\n }", "public Zeffit()\n {\n // TODO: initialize instance variable(s)\n }", "private Instantiation(){}", "public Animal(int age){\n this.age = age;\n System.out.println(\"An animal has been created!\");\n }", "Variable createVariable();", "Variable createVariable();", "public contrustor(){\r\n\t}", "public Gitlet(int a) {\n\n\t}", "public Field(){\n\n // this(\"\",\"\",\"\",\"\",\"\");\n }", "public JSFOla() {\n }", "public prueba()\r\n {\r\n }", "public FormField(String variable) {\n this.variable = variable;\n }", "@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 }", "public Achterbahn() {\n }", "public Mitarbeit() {\r\n }", "public CyberPet ( String str )\r\n {\r\n name = str;\r\n }", "public SlanjePoruke() {\n }", "d(b bVar) {\n super(2);\n this.this$0 = bVar;\n }", "public Mannschaft() {\n }", "protected ObjectRepresentant (Object counterPart, TypeSystemNode type, String name) {\r\n this.counterPart = counterPart;\r\n if (name!=null) {\r\n setName(name);\r\n }\r\n else {\r\n setName(\"this\");\r\n }\r\n typeSystemNode = type;\r\n System.out.println(this+\" value: \"+value());\r\n }", "private Params()\n {\n }", "public A(int x)\n {\n xValue = x;\n }", "public TebakNusantara()\n {\n }", "public ConstructorsDemo() \n\t {\n\t x = 5; // Set the initial value for the class attribute x\n\t }", "public AI(String n) {//constructor for super class\n super(n);\n }", "public Candy() {\n\t\tthis(\"\");\n\t}", "public Cohete() {\n\n\t}", "public Chick() {\n\t}", "public Perro() {\n// super(\"No define\", \"NN\", 0); en caso el constructor de animal tenga parametros\n this.pelaje = \"corto\";\n }", "public Dice() { \n this(6); /* Invoke the above Dice constructor with value 6. */ \n }", "public AirAndPollen() {\n\n\t}", "Casilla(String nombre){\n this.nombre=nombre; \n }", "public ActRuVariable() {\n this(DSL.name(\"act_ru_variable\"), null);\n }", "public DetArqueoRunt () {\r\n\r\n }", "public Alojamiento() {\r\n\t}", "public Argonian()\n\t{\n\t\tthis.race = \"Argonian\";\n\t}", "public EngineClass()\n {\n cyl = 10;\n fuel = new String( BATT );\n }", "public Final_parametre() {\r\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public Tigre() {\r\n }", "Reproducible newInstance();", "public Carrera(){\n }", "public Tbdcongvan36() {\n super();\n }", "public Lotto2(){\n\t\t\n\t}", "public Tester()\n {\n // initialise instance variables\n x = 0;\n }" ]
[ "0.7367625", "0.6935796", "0.684345", "0.68317866", "0.67291677", "0.6700705", "0.666665", "0.6624925", "0.65958184", "0.65955", "0.65260744", "0.6519095", "0.64981544", "0.6487919", "0.6471643", "0.64405596", "0.6435672", "0.64263856", "0.642393", "0.64105767", "0.63782525", "0.6368271", "0.63433707", "0.6342922", "0.6342361", "0.6340882", "0.63375497", "0.6329426", "0.63289315", "0.6317959", "0.63163483", "0.63127565", "0.6301049", "0.6301049", "0.6284677", "0.6267543", "0.62592626", "0.62377477", "0.6225345", "0.6216689", "0.6206132", "0.6205449", "0.620286", "0.6194733", "0.61758685", "0.61737674", "0.6166081", "0.6164372", "0.61624545", "0.6156125", "0.6148136", "0.6147885", "0.61469036", "0.61467916", "0.614511", "0.61397004", "0.61361533", "0.6134422", "0.61266965", "0.6122409", "0.6113096", "0.6113096", "0.6112502", "0.6106918", "0.6102626", "0.60947883", "0.6089528", "0.60892105", "0.60890365", "0.60873926", "0.6083047", "0.60816807", "0.6079783", "0.6073798", "0.6068059", "0.6067919", "0.60677165", "0.6065777", "0.60655755", "0.6061597", "0.60585856", "0.6054606", "0.60534596", "0.60491806", "0.6048409", "0.6046921", "0.60461974", "0.6043392", "0.6043006", "0.6033715", "0.60330546", "0.6032718", "0.603266", "0.6029842", "0.60262626", "0.6024532", "0.60241354", "0.60227555", "0.6017792", "0.6017207", "0.60163844" ]
0.0
-1
Fetch data from server.
private void fetchingData() { loadingDialog.startLoadingDialog(); FirebaseStorage.getInstance().getReference().child("course-details").child("course-details.pdf") .getBytes(1024 * 1024).addOnSuccessListener(bytes -> { loadingDialog.dismissDialog(); Toast.makeText(getApplicationContext(), "Zoom out !!", Toast.LENGTH_LONG).show(); pdfView.fromBytes(bytes).load(); }).addOnFailureListener(e -> Toast.makeText(getApplicationContext(), "download unsuccessful", Toast.LENGTH_LONG).show()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void getDataFromServer();", "public void fetchData()\n {\n FetchingDataTask fetchingDataTask = new FetchingDataTask();\n fetchingDataTask.execute();\n }", "protected void fetch() {\n HttpClient client = new HttpClient();\n client.getHostConfiguration().setHost(HOST, PORT, SCHEME);\n\n List<String> prefectures = getCodes(client, PATH_PREF, \"pref\");\n List<String> categories = getCodes(client, PATH_CTG, \"category_s\");\n\n // This is a workaround for the gnavi API.\n // Gnavi API only allows max 1000 records for output.\n // Therefore, we divide records into smaller pieces\n // by prefectures and categories.\n for (String prefecture: prefectures) {\n for (String category: categories) {\n logger.debug(\"Prefecture: {}\", prefecture);\n logger.debug(\"Category: {}\", category);\n getVenues(client, prefecture, category, 1);\n }\n }\n }", "private void fetchData() {\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setDataObject(hierarchyTitle);\r\n requesterBean.setFunctionType(GET_HIERARCHY_DATA);\r\n AppletServletCommunicator conn = new AppletServletCommunicator(connect,requesterBean);\r\n conn.send();\r\n ResponderBean responderBean = conn.getResponse();\r\n if(responderBean != null) {\r\n if(responderBean.isSuccessfulResponse()) {\r\n queryKey = hierarchyTitle;\r\n Hashtable htData = (Hashtable)responderBean.getDataObject();\r\n extractToQueryEngine(htData);\r\n }\r\n }else {\r\n //Server Error\r\n// throw new CoeusUIException(responderBean.getMessage(),CoeusUIException.ERROR_MESSAGE);\r\n }\r\n }", "protected static String fetchDataFromServer(String fullUrl)\r\n \t\t\tthrows Exception {\r\n \t\tBufferedReader reader = null;\r\n \t\tString result = null;\r\n \t\ttry {\r\n \t\t\tURL url = new URL(fullUrl);\r\n \t\t\tSystem.out.println(\"Calling: \" + url.toString());\r\n \t\t\tHttpURLConnection conn = (HttpURLConnection) url.openConnection();\r\n \t\t\tconn.setRequestMethod(\"GET\");\r\n \t\t\tconn.setDoOutput(true);\r\n \r\n \t\t\treader = new BufferedReader(new InputStreamReader(conn\r\n \t\t\t\t\t.getInputStream()));\r\n \t\t\tStringBuilder sb = new StringBuilder();\r\n \t\t\tString line = null;\r\n \r\n \t\t\twhile ((line = reader.readLine()) != null) {\r\n \t\t\t\tsb.append(line + \"\\n\");\r\n \t\t\t}\r\n \t\t\tresult = sb.toString();\r\n \t\t} finally {\r\n \t\t\tif (reader != null) {\r\n \t\t\t\treader.close();\r\n \t\t\t}\r\n \t\t}\r\n \t\treturn result;\r\n \t}", "private void getData(){\r\n \tsetProgressBarIndeterminateVisibility(true);\r\n \t\r\n\t String url = \"HospitalInfo?hospital=\" + URLEncoder.encode(hospital) + \"&ssid=\" + UserInfo.getSSID();\r\n\t download = new HttpGetJSONConnection(url, mHandler, TASK_GETDATA);\r\n\t download.start();\r\n }", "public abstract void fetch();", "public void getData() {\n ConnectivityManager connMgr = (ConnectivityManager)\n getActivity().getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n\n // number the loaderManager with mPage as may be requesting up to three lots of JSON for each tab\n loaderManager.restartLoader(FETCH_STOCK_PICKING_LOADER_ID, null, loadStockPickingFromServerListener);\n } else {\n // Otherwise, display error\n // First, hide loading indicator so error message will be visible\n View loadingIndicator = getView().findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n\n // Update empty state with no connection error message\n mEmptyStateTextView.setText(R.string.error_no_internet_connection);\n }\n }", "private void fetchData() {\r\n if (fetchDialogDataInBackground != null && fetchDialogDataInBackground.getStatus() != AsyncTask.Status.FINISHED)\r\n fetchDialogDataInBackground.cancel(true);\r\n fetchDialogDataInBackground = new FetchDialogDataInBackground();\r\n fetchDialogDataInBackground.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR);\r\n }", "private void fetch(String serverUrl) {\n if(isOnline()) {\n currentStationStatus = \"Loading Stream...\";\n notifyUser(MyFlag.PAUSE, currentStationName, currentStationStatus);\n } else {\n currentStationStatus = \"No Internet Connection\";\n notifyUser(MyFlag.PAUSE, currentStationName, currentStationStatus);\n return;\n }\n //Log.i(LOG_TAG, \"Make Asynctask to fetch meta data\");\n new FetchMetaDataTask().execute(serverUrl);\n }", "public void retrieveData(){\n\t\tloaderImage.loadingStart();\n\t\tJsonClient js = new JsonClient();\n\t\tjs.retrieveData(JSON_URL, this);\n\t}", "private void getDataFromDB() {\n ArrayList<ArtworkData> artworkData = getArtworksFromDatabase();\n if (artworkData.size() <= 0) {\n // there is no data in local DB, error\n onErrorReceived();\n } else {\n sendArtworkData(artworkData);\n }\n }", "public void readData() {\n ConnectivityManager connMgr = (ConnectivityManager)\n this.getSystemService(Context.CONNECTIVITY_SERVICE);\n\n // Get details on the currently active default data network\n NetworkInfo networkInfo = connMgr.getActiveNetworkInfo();\n\n // If there is a network connection, fetch data\n if (networkInfo != null && networkInfo.isConnected()) {\n // Get a reference to the LoaderManager, in order to interact with loaders.\n LoaderManager loaderManager = getLoaderManager();\n\n // number the loaderManager with mPage as may be requesting up to three lots of JSON for each tab\n loaderManager.restartLoader(FETCH_STOCK_PICKING_LOADER_ID, null, loadStockDetailFromServerListener);\n } else {\n // Otherwise, display error\n // First, hide loading indicator so error message will be visible\n View loadingIndicator = findViewById(R.id.loading_spinner);\n loadingIndicator.setVisibility(View.GONE);\n\n // Update empty state with no connection error message\n TextView noConnectionView = (TextView) findViewById(R.id.empty_view);\n noConnectionView.setText(getString(R.string.error_no_internet_connection));\n noConnectionView.setVisibility(View.VISIBLE);\n }\n }", "protected abstract T fetch();", "void fetchForRentHousesData();", "public void getData() {\n new DownloadWebpageTask(new AsyncResult() {\n @Override\n public void onResult(JSONObject object) {\n processJson(object);\n }\n }).execute(\"https://spreadsheets.google.com/tq?key=1gGyJS2phIcmiTEEUdUhOsyqekEudBue_NtNkjKsTQrQ\");\n }", "private void getData() {\n\n //Adding the method to the queue by calling the method getDataFromServer\n requestQueue.add(getDataFromServer(pos));\n\n }", "private void fetchNews() {\n if (isOnline(mContext)) {\n // showing refresh animation before making http call\n swipeRefreshLayout.setRefreshing(true);\n\n // appending offset to url\n // String url = URL_TOP_250 + offSet;\n ApiInterface apiService = ApiRequest.getClient().create(ApiInterface.class);\n\n Call<News> call = apiService.loadNewsList();\n call.enqueue(new Callback<News>() {\n @Override\n public void onResponse(Call<News> call, retrofit2.Response<News> response) {\n\n if (response.body().getRows().size() > 0) {\n\n newsList.addAll(response.body().getRows());\n showList();\n // stopping swipe refresh\n swipeRefreshLayout.setRefreshing(false);\n }\n }\n\n @Override\n public void onFailure(Call<News> call, Throwable t) {\n displayMessage(t.getMessage());\n setTextMessage();\n // stopping swipe refresh\n swipeRefreshLayout.setRefreshing(false);\n\n }\n });\n } else {\n setTextMessage();\n }\n\n }", "public void loadData(){\n JsonArrayRequest request = new JsonArrayRequest(\"http://www.efstratiou.info/projects/newsfeed/getList.php\", netListener, errorListener);\n\n //submit request\n ArticlesApp.getInstance().getRequestQueue().add(request);\n\n }", "@Override\r\n protected void fetchData() {\n\r\n }", "@Override\n public void run() {\n load_remote_data();\n }", "public void run() {\n\t\t\t\tHttpURLConnection connection = null;\r\n\t\t\t\tStringBuilder response = new StringBuilder();\r\n\t\t\t\ttry{\r\n\t\t\t\t\tURL url = new URL(address);\r\n\t\t\t\t\tconnection = (HttpURLConnection) url.openConnection();\r\n\t\t\t\t\tconnection.setRequestMethod(\"GET\");\r\n\t\t\t\t\tconnection.setConnectTimeout(8000);\r\n\t\t\t\t\tconnection.setReadTimeout(8000);\r\n\t\t\t\t\tconnection.setDoInput(true);\r\n\t\t\t\t\t//connection.setDoOutput(true);\r\n\t\t\t\t\tint responseCode = connection.getResponseCode();\r\n\t\t\t\t\tLog.d(\"HttpUtil\", String.valueOf(responseCode));\r\n\t\t\t\t\tif(responseCode != 200){\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Get Fail\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tInputStream in = connection.getInputStream();\r\n\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(in));\r\n\t\t\t\t\t\tString line;\r\n\t\t\t\t\t\twhile((line = reader.readLine()) != null){\r\n\t\t\t\t\t\t\tresponse.append(line);\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tLog.d(\"HttpUtil\", \"Get Success\");\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onFinish(response.toString());\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception e){\r\n\t\t\t\t\tif(listener != null){\r\n\t\t\t\t\t\tlistener.onError(e);\r\n\t\t\t\t\t}\r\n\t\t\t\t}finally{\r\n\t\t\t\t\tif(connection != null){\r\n\t\t\t\t\t\tconnection.disconnect();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}", "private void getMasechtotListFromServer() {\n\n\n RequestManager.getMasechtotList().subscribe(new Observer<Result<MasechetList>>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(Result<MasechetList> masechetListResult) {\n\n saveMasechtotList(masechetListResult.getData());\n mMasechtotList = masechetListResult.getData();\n\n }\n\n @Override\n public void onError(Throwable e) {\n\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n\n\n }", "@Override\n public JsonObjectRequest fetchData(AppDatabase database) {\n // create the JSON request for courses offered by each school\n return new JsonObjectRequest\n (Request.Method.GET, \"https://data.gov.sg/api/action/datastore_search?resource_id=3bb9e6b0-6865-4a55-87ba-cc380bc4df39&limit=500000\", null, new Response.Listener<JSONObject>() {\n\n @Override\n public void onResponse(JSONObject response) {\n try {\n // parse results as json array\n JSONArray allSchoolToCourseAsJSONArray = getResultsAsJSONArray(response);\n\n // get each entry in results and store in database\n parseJSONArrayAndStoreInDatabase(database, allSchoolToCourseAsJSONArray);\n\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n\n }, new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n // TODO: Handle error\n System.out.println(\"Rabak la bro: \" + error.toString());\n }\n });\n }", "private void requestServerToGetInformation() {\n Net net = Net.getInstance();\n Log.i(TAG, \"requestServerToGetInformation: Start connect server\");\n net.get(AppConstant.SERVER_COMBO_URL, new Callback() {\n @Override\n public void onFailure(Call call, IOException e) {\n Log.i(TAG, \"onFailure: connect error; \" + e.getMessage());\n }\n @Override\n public void onResponse(Call call, Response response) throws IOException {\n // get the JSON from responses.\n String jsonStr = response.body().string();\n Log.i(TAG, \"onResponse: --------------------------------\" + jsonStr);\n parseJsonAndUpdateView(jsonStr.trim());\n }\n });\n }", "void onFetchDataStarted();", "void fetchForSaleHousesData();", "public void fetchDatafromServer(String type) {\n final Home baseHomeActivity = (Home) getActivity();\r\n\r\n JsonArrayRequest jsonArrayRequest =\r\n new JsonArrayRequest(\r\n Request.Method.GET, serverURL + \"/\" + type + \"/\", null, this, this) {\r\n @Override\r\n public Map<String, String> getHeaders() throws AuthFailureError {\r\n HashMap<String, String> headers = new HashMap<String, String>();\r\n headers.put(\"Authorization\", \"Token \" + baseHomeActivity.mToken);\r\n return headers;\r\n }\r\n };\r\n baseHomeActivity.mQueue.add(jsonArrayRequest);\r\n }", "@Override\n public void refreshData() {\n\n if (InternetConnection.checkConnection(context)) {\n ApiService apiService = RetroClient.getApiService();\n Call<String> call = apiService.getFactdata();\n Log.e(TAG, \"request ongetData url :\" + call.request().url());\n call.enqueue(new Callback<String>() {\n @Override\n public void onResponse(Call<String> call, Response<String> response) {\n Log.e(TAG, \"response : ongetData :\" + response.body());\n parseResponse(response.body());\n }\n\n @Override\n public void onFailure(Call<String> call, Throwable t) {\n Log.e(TAG, \"onFailure ongetData : \" + t.getMessage());\n }\n });\n } else {\n factDataView.displayMessage(context.getString(R.string.nonetwork), false);\n }\n }", "private void fetchEverything() {\n ApiNewsMethods newsEverything = retrofit.create(ApiNewsMethods.class);\n newsEverything.getEverything(\"bitcoin\"/*topic input by user*/, newsApiKey).enqueue(new Callback<NewsModelClass>() {\n @Override\n public void onResponse(Call<NewsModelClass> call, Response<NewsModelClass> response) {\n if(response.isSuccessful()) {\n newsModelBody = response.body();\n Log.d(\"myBODY\", newsModelBody.getStatus());\n //text to speech object of the response fetched\n newsUIChanges();\n } else {\n Log.d(\"mySTRING\", \"DID NOT OCCUR\");\n }\n }\n\n @Override\n public void onFailure(Call<NewsModelClass> call, Throwable t) {\n }\n\n });\n }", "private void fetchData() {\n if (!isNetworkAvailable()){\n Toast.makeText(this, getString(R.string.no_internet_connection), Toast.LENGTH_SHORT).show();\n swipeRefreshLayout.setRefreshing(false);\n return;\n }\n\n apiInterface = ApiUtils.getApi();\n Call<List<Item>> call = apiInterface.getItems();\n call.enqueue(new Callback<List<Item>>() {\n @Override\n public void onResponse(Call<List<Item>> call, Response<List<Item>> response) {\n if (response.isSuccessful()){\n DatabaseController.getInstance(getApplicationContext()).clearDatabase();\n PicassoTools.clearCache(Picasso.with(getApplicationContext()));\n List<Item> items = response.body();\n for (Item item : items) {\n DatabaseController.getInstance(getApplicationContext()).addItem(item);\n// Log.d(TAG, \"add in list items \" + item.getId().toString());\n }\n updateUI();\n }else {\n Log.d(TAG, response.errorBody().toString());\n Toast.makeText(MainActivity.this, R.string.error, Toast.LENGTH_SHORT).show();\n }\n }\n\n @Override\n public void onFailure(Call<List<Item>> call, Throwable t) {\n Log.d(TAG, \"onFailure: \" + t.getMessage());\n swipeRefreshLayout.setRefreshing(false);\n }\n });\n }", "public void fetchResults() {\n String requestUrl = \"http://192.168.1.40:8090/trending\";\n StringRequest request = new StringRequest(\n Request.Method.POST,\n requestUrl,\n trendingGetData,\n errorListener){\n\n protected Map<String, String> getParams() throws com.android.volley.AuthFailureError {\n Map<String, String> params = new HashMap<String, String>();\n params.put(\"memberID\", \"MMM111\");\n return params;\n };\n };\n RequestQueue queue = Volley.newRequestQueue(this);\n queue1 = Volley.newRequestQueue(this);\n queue2 = Volley.newRequestQueue(this);\n queue.add(request);\n }", "private void getData() {\n showDialog();\n Call<InfoMcWkMoldRes> call = apiInterface.getCompositeMaster(idActual);\n call.enqueue(new Callback<InfoMcWkMoldRes>() {\n @Override\n public void onResponse(Call<InfoMcWkMoldRes> call, Response<InfoMcWkMoldRes> response) {\n if(response.isSuccessful()){\n compositeMasterArrayList = new ArrayList<>();\n InfoMcWkMoldRes res = response.body();\n if (res!=null){\n compositeMasterArrayList = res.getCompositeMasterList();\n if (compositeMasterArrayList.isEmpty()) {\n dialog.dismiss();\n nodata.setVisibility(View.VISIBLE);\n mapping.setVisibility(View.GONE);\n return;\n }\n dialog.dismiss();\n buildRecycleView();\n }\n\n }else {\n nodata.setVisibility(View.VISIBLE);\n mapping.setVisibility(View.GONE);\n AlertError.alertError(\"The server response error\", CompositeActivity.this);\n dialog.dismiss();\n }\n }\n\n @Override\n public void onFailure(Call<InfoMcWkMoldRes> call, Throwable t) {\n call.cancel();\n nodata.setVisibility(View.VISIBLE);\n mapping.setVisibility(View.GONE);\n AlertError.alertError(t.getMessage(), CompositeActivity.this);\n dialog.dismiss();\n\n }\n });\n\n Log.e(\"getData\", webUrl + \"ActualWO/Getinfo_mc_wk_mold?id_actual=\" + idActual);\n }", "private void getData() {\n\t\tif (ultimoItem == 2)\n\t\t\taa.clear();\n\t\tString result = \"\";\n\t\ttry {\n\t\t\tStringBuilder url = new StringBuilder(URL_BOOKS);\n\t\t\tHttpGet get = new HttpGet(url.toString());\n\t\t\tHttpResponse r = client.execute(get);\n\t\t\tint status = r.getStatusLine().getStatusCode();\n\t\t\tif (status == 200) {\n\t\t\t\tHttpEntity e = r.getEntity();\n\t\t\t\tInputStream webs = e.getContent();\n\t\t\t\ttry {\n\t\t\t\t\tBufferedReader reader = new BufferedReader(\n\t\t\t\t\t\t\tnew InputStreamReader(webs, \"iso-8859-1\"), 8);\n\t\t\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\t\t\tString line = null;\n\t\t\t\t\twhile ((line = reader.readLine()) != null) {\n\t\t\t\t\t\tsb.append(line + \"\\n\");\n\t\t\t\t\t}\n\t\t\t\t\twebs.close();\n\t\t\t\t\tresult = sb.toString();\n\t\t\t\t\tJSONArray jArray = new JSONArray(result);\n\t\t\t\t\tif (jArray.length() == 0) {\n\t\t\t\t\t\tvalorUltimo = 1;\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\tfor (int i = 0; i < jArray.length(); i++) {\n\t\t\t\t\t\tJSONObject json_data = jArray.getJSONObject(i);\n\t\t\t\t\t\tBooks resultRow = new Books();\n\t\t\t\t\t\tString creado = json_data.getString(\"created_at\");\n\t\t\t\t\t\tresultRow.id = json_data.getString(\"id\");\n\t\t\t\t\t\tresultRow.title = json_data.getString(\"title\");\n\t\t\t\t\t\tresultRow.author = json_data.getString(\"author\");\n\t\t\t\t\t\tresultRow.publisher = json_data.getString(\"publisher\");\n\t\t\t\t\t\tresultRow.additional_info = json_data\n\t\t\t\t\t\t\t\t.getString(\"additional_info\");\n\t\t\t\t\t\tresultRow.contact_info = json_data\n\t\t\t\t\t\t\t\t.getString(\"contact_info\");\n\t\t\t\t\t\tresultRow.offer_type = json_data\n\t\t\t\t\t\t\t\t.getString(\"offer_type\");\n\t\t\t\t\t\tresultRow.reply_count = json_data\n\t\t\t\t\t\t\t\t.getString(\"reply_count\");\n\t\t\t\t\t\tresultRow.price = json_data.getString(\"price\");\n\t\t\t\t\t\tfechaformato = new String[jArray.length()];\n\t\t\t\t\t\tfechaformato[i] = creado;\n\t\t\t\t\t\tString eventTime = new String(creado);\n\t\t\t\t\t\tString currentTime = new String(SuperTiempo);\n\t\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\n\t\t\t\t\t\t\t\t\"yyyy-MM-dd'T'hh:mm:ss.SSS'Z'\");\n\t\t\t\t\t\tDate eventDate = sdf.parse(eventTime);\n\t\t\t\t\t\tDate currentDate = sdf.parse(currentTime);\n\t\t\t\t\t\tlong eventTimelong = eventDate.getTime();\n\t\t\t\t\t\tlong currentTimelong = currentDate.getTime();\n\t\t\t\t\t\tlong diff = currentTimelong - eventTimelong;\n\t\t\t\t\t\tlong segundoslong = diff / 1000;\n\t\t\t\t\t\tlong minutoslong = diff / 60000; // 60 por 1000\n\t\t\t\t\t\tlong horaslong = diff / 3600000; // 60 por 60 por 1000\n\t\t\t\t\t\tlong diaslong = horaslong / 24;\n\t\t\t\t\t\tlong meseslong = diaslong / 31;\n\t\t\t\t\t\tlong añolong = meseslong / 12;\n\t\t\t\t\t\tif (añolong == 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + añolong + \" año \";\n\t\t\t\t\t\telse if (añolong > 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + añolong + \" años \";\n\t\t\t\t\t\telse if (meseslong == 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + meseslong + \" mes \";\n\t\t\t\t\t\telse if (meseslong > 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + meseslong + \" meses \";\n\t\t\t\t\t\telse if (diaslong == 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + diaslong + \" día \";\n\t\t\t\t\t\telse if (diaslong > 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + diaslong + \" días \";\n\t\t\t\t\t\telse if (horaslong == 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + horaslong + \" hora \";\n\t\t\t\t\t\telse if (horaslong > 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + horaslong + \" horas \";\n\t\t\t\t\t\telse if (minutoslong == 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + minutoslong + \" minuto \";\n\t\t\t\t\t\telse if (minutoslong > 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + minutoslong + \" minutos \";\n\t\t\t\t\t\telse if (segundoslong == 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + segundoslong + \" segundo \";\n\t\t\t\t\t\telse if (segundoslong > 1)\n\t\t\t\t\t\t\thoraAgo = \"hace \" + segundoslong + \" segundos \";\n\t\t\t\t\t\telse if (segundoslong == 0)\n\t\t\t\t\t\t\thoraAgo = \"justo ahora\";\n\t\t\t\t\t\tresultRow.created_at = horaAgo;\n\t\t\t\t\t\tJSONObject usuarios = json_data.getJSONObject(\"owner\");\n\t\t\t\t\t\tresultRow.owner_name = usuarios.getString(\"name\");\n\t\t\t\t\t\tJSONObject grupos = json_data.getJSONObject(\"group\");\n\t\t\t\t\t\tresultRow.group_name = grupos.getString(\"name\");\n\t\t\t\t\t\tresultRow.group_id = grupos.getString(\"id\");\n\t\t\t\t\t\tJSONObject owner = json_data.getJSONObject(\"owner\");\n\t\t\t\t\t\tJSONObject profile_pic = owner\n\t\t\t\t\t\t\t\t.getJSONObject(\"profile_pic\");\n\t\t\t\t\t\tresultRow.thumbnail_url = profile_pic\n\t\t\t\t\t\t\t\t.getString(\"thumbnail_url\");\n\t\t\t\t\t\tarrayBooks.add(resultRow);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\tLog.e(\"log_tag\",\n\t\t\t\t\t\t\t\"Error convirtiendo el resultado\" + e1.toString());\n\t\t\t\t}\n\t\t\t\tmyListView.setAdapter(aa);\n\t\t\t\tif (ultimoItem == 1) {\n\t\t\t\t\tmyListView.setSelection(superTotal);\n\t\t\t\t\tnuevo = nuevo + superTotal;\n\t\t\t\t}\n\t\t\t\tultimoItem = 0;\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void fetch(){ \n for(int i = 0; i < this.queries.size(); i++){\n fetch(i);\n }\n }", "boolean isFetchData();", "private void getData(){\n final ProgressDialog loading = ProgressDialog.show(this, \"Please wait...\",\"Fetching data...\",false,false);\n\n //Creating a json array request to get the json from our api\n JsonArrayRequest jsonArrayRequest = new JsonArrayRequest(DATA_URL,\n new Response.Listener<JSONArray>() {\n @Override\n public void onResponse(JSONArray response) {\n //Dismissing the progressdialog on response\n loading.dismiss();\n\n\n Log.d(\"Data\", String.valueOf(response));\n\n //Displaying our grid\n showGrid(response);\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n }\n );\n\n //Creating a request queue\n RequestQueue requestQueue = Volley.newRequestQueue(this);\n //Adding our request to the queue\n requestQueue.add(jsonArrayRequest);\n }", "void onFetchDataCompleted();", "private void fetchFromNetwork(final LiveData<ResultType> dbSource) {\n // Create the API call. Note the use of ApiResponse, the generic class we've\n // created earlier, which consists of an HTTP status code, some data and an error.\n final LiveData<ApiResponse<RequestType>> apiResponse = createCall();\n\n // Re-attach the database LiveData as a new source,\n // it will dispatch its latest value quickly.\n result.addSource(dbSource, newData -> setValue(Resource.loading(newData)));\n\n // Attach the API response as a new source.\n result.addSource(apiResponse, response -> {\n // The source value was changed, so we can stop listening\n // to both the API response LiveData and database LiveData.\n result.removeSource(apiResponse);\n result.removeSource(dbSource);\n // If the network call completes successfully, save the response\n // into the database and re-initialize the stream.\n if (response.isSuccessful()) {\n appExecutors.diskIO().execute(() -> {\n saveCallResult(processResponse(response));\n appExecutors.mainThread().execute(() -> {\n // We specially request new live data, otherwise we will\n // get the immediately last cached value, which may not\n // be updated with latest results received from network.\n result.addSource(loadFromDb(), newData ->\n setValue(Resource.success(newData)));\n });\n });\n }\n // If network request fails, dispatch a failure directly.\n else {\n onFetchFailed();\n result.addSource(dbSource, newData ->\n setValue(Resource.error(response.getError().getMessage(), newData)));\n }\n });\n }", "protected void loadData() {\n refreshview.setRefreshing(true);\n //小区ID\\t帐号\\t消息类型ID\\t开始时间\\t结束时间\n // ZganLoginService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n //ZganCommunityService.toGetServerData(26, 0, 2, String.format(\"%s\\t%s\\t%s\\t%s\\t%d\", PreferenceUtil.getUserName(), msgtype, \"2015-01-01\", nowdate, pageindex), handler);\n ZganCommunityService.toGetServerData(40, String.format(\"%s\\t%s\\t%s\\t%s\", PreferenceUtil.getUserName(), funcPage.gettype_id(), String.format(\"@id=22,@page_id=%s,@page=%s\",funcPage.getpage_id(),pageindex), \"22\"), handler);\n }", "public void doLazyDataFetch()\n {\n if (m_fetchedRowCount == rowCount)\n m_fetchedRowCount = 0;\n else\n m_fetchedRowCount++;\n \n for (Enumeration e = m_dataDirectorListeners.elements(); e.hasMoreElements(); )\n {\n DataDirectorListener listener = (DataDirectorListener)e.nextElement();\n listener.waitDataAvailable(new WaitDataAvailableEvent(this));\n }\n }", "private void loadData() {\n Log.d(LOG_TAG, \"loadData()\");\n /* If the device does not have an internet connection, then... */\n if (!NetworkUtils.hasInternetConnection(this)){\n showErrorMessage(true);\n return;\n }\n /* Make the View for the data visible and hide the error message */\n showDataView();\n\n /* Fetch the data from the web asynchronous using Retrofit */\n TMDBApi the_movie_database_api = new TMDBApi(new FetchDataTaskCompleteListener());\n /* Start the network transactions */\n the_movie_database_api.start(sortOrderCurrent);\n\n /* Display the loading indicator */\n displayLoadingIndicator(true);\n }", "public ResultSet ServerData() {\n\t\tResultSet rs = null; //new resultset of default value null\r\n\t\ttry {\r\n\r\n\r\n\t\t\tString query = \"SELECT * FROM TBLSERVERS\"; //get all data in the TBLSERVERS table\r\n\t\t\tPreparedStatement pst = conn.prepareStatement(query); //prepare a new statement\r\n\t\t\trs = pst.executeQuery(); //execute statement and store result in a resultset \r\n\t\t} catch (SQLException ex) { //catches SQL exception to prevent an application crash in this case\r\n\t\t\tLogger.getLogger(DB.class.getName()).log(Level.SEVERE, null, ex);\r\n\r\n\t\t}\r\n\t\treturn rs;\r\n\t}", "void fetchStartHousesData();", "private void initData() {\n requestServerToGetInformation();\n }", "public String fetch(String uri) throws Exception {\n\n // Http Client marries together a request and response.\n HttpClient httpClient = new DefaultHttpClient();\n\n // what URI do we want to receive?\n HttpGet httpGet = new HttpGet(uri);\n\n // handle the response\n ResponseHandler<String> responseHandler = new BasicResponseHandler();\n\n // access the URI and get back the return data.\n String returnData = null;\n\n returnData = httpClient.execute(httpGet, responseHandler);\n\n // return data\n return returnData;\n }", "private void fetchData() {\n mNest.addGlobalListener(new NestListener.GlobalListener() {\n @Override\n public void onUpdate(@NonNull GlobalUpdate update) {\n mThermostat = update.getThermostats().get(0);\n mStructure = update.getStructures().get(0);\n if(!Auth.isSignedIn){\n Log.d(TAG, \"GlobalListener: onUpdate: User is not signed in, signing in\");\n Auth.signIn(mThermostat,mStructure);\n }\n updateViews();\n }\n });\n }", "private void requestData(String uri) {\n MyTask myTask = new MyTask();\n\n // Work parralial\n myTask.executeOnExecutor(AsyncTask.THREAD_POOL_EXECUTOR, uri);\n }", "public void getDataFromServer() {\n\n //can't start new request if old one is not finish\n if (isGetingDataFromMSSQL) {\n return;\n }\n\n // clear list before load elements\n listOverView.clear();\n\n // change var for true if start getting data - can't start new request if old one is not finish\n isGetingDataFromMSSQL = true;\n\n // show progress bar\n progressBarInOverViewWait.setVisibility(View.VISIBLE);\n\n if (connectionMSSQL == null) { // if is NO connection\n Log.d(TAG, \"getDataFromServer: connection NOT CONNECTED\");\n Toast.makeText(this, \"Brak połączenia z bazą danych\", Toast.LENGTH_SHORT).show();\n } else { // if connection is CONNECTED\n Log.d(TAG, \"getDataFromServer: connection CONNECTED\");\n\n new Thread(new Runnable() { // NOT in UI thread\n @Override\n public void run() {\n\n // execute query and get result\n try {\n\n // set number of rows taken from MSSQL and show in list view\n int numberOFRowsToShow = 20;\n\n Statement statement = connectionMSSQL.createStatement();\n //ResultSet result = statement.executeQuery(\"SELECT indx WHERE userName='Jan.kowalski'\"); // query for indx,\n //ResultSet result = statement.executeQuery(\"SELECT indx,dateTime,description,picture FROM dbo.androidTest\"); // query to MS SQL for all rows\n ResultSet result = statement.executeQuery(\"SELECT TOP \" + numberOFRowsToShow + \" indx,dateTime,description,miniature FROM dbo.androidTest ORDER BY indx DESC\"); // query to MS SQL for last numberOFRowsToShow rows\n\n // put data to array\n for (int i = 0; i < numberOFRowsToShow; i++) { // number of rows to show - can be more than is in DB - won't be crash - olny thow exception\n result.next(); // start from next line - must be because first line has no data\n String indxFromResult = \"\" + result.getInt(\"indx\"); // take indx from MS SQL\n String dateTimeFromResult = result.getString(\"dateTime\"); // take dateTime from MS SQL\n String descriptionFromResult = result.getString(\"description\"); // take description from MS SQL\n\n // get picture miniature\n byte[] bArrayMiniatureTakenFromMSSQL = result.getBytes(\"miniature\"); // take picture miniature from MS SQL\n // set picture miniature\n Bitmap bitmapFromResultMiniature = null;\n if (bArrayMiniatureTakenFromMSSQL != null) {\n bitmapFromResultMiniature = BitmapFactory.decodeByteArray(bArrayMiniatureTakenFromMSSQL, 0, bArrayMiniatureTakenFromMSSQL.length); // byte[] into bitmap (miniature)\n }\n\n // add element to list view\n listOverView.add(new OverViewItem(bitmapFromResultMiniature, indxFromResult, dateTimeFromResult, descriptionFromResult));\n\n //result\n Log.d(TAG, \"getDataFromServer: RESULT: \" + \"indxFromResult: \" + indxFromResult + \", dateTimeFromResult: \" + dateTimeFromResult + \", descriptionFromResult: \" + descriptionFromResult + \", number of row: \" + i);\n\n Log.d(TAG, \"getDataFromServer: listOverView.size(): \" + listOverView.size());\n }\n\n } catch (SQLException e) { // cath when is set numberOFRowsToShow more than exist - can be - no crash\n Log.d(TAG, \"onCreate: SQLException: \" + e);\n }\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() { //in UI thread\n\n // reverse list if need\n //Collections.reverse(listOverView);\n\n // notyfi adapter\n adapterOverView.notifyDataSetChanged();\n\n // hide progress bar\n progressBarInOverViewWait.setVisibility(View.GONE);\n\n // change var for false if end getting data - can't start new request if old one is not finish\n isGetingDataFromMSSQL = false;\n }\n });\n }\n }).start();\n }\n }", "public String getChannelData()\n {\n System.setProperty(\"http.keepAlive\", \"false\");\n HttpParams httpParameters = new BasicHttpParams();\n\n int timeoutConnection = 60000 * 20;\n HttpConnectionParams.setConnectionTimeout(httpParameters, timeoutConnection);\n\n int timeoutSocket = 60000 * 20;\n HttpConnectionParams.setSoTimeout(httpParameters, timeoutSocket);\n\n HttpProtocolParams.setVersion(httpParameters, HttpVersion.HTTP_1_1);\n HttpConnectionParams.setSocketBufferSize(httpParameters, 8*1024);\n\n DefaultHttpClient httpclient = new DefaultHttpClient(httpParameters);\n String link = \"https://api.hkgalden.com/f/\";\n\n System.out.println(\"link :\" + link);\n\n HttpGet httppost = new HttpGet(link);\n\n httppost.addHeader(\"X-GALAPI-KEY\",\"d9b511eb952d7da22e7d575750766bb5807a8bd0\");\n\n httppost.setHeader(\"Cache-Control\", \"no-cache\");\n\n try {\n System.out.println(\"Response:\"+ \"start execute\");\n HttpResponse response = httpclient.execute(httppost);\n System.out.println(\"Response:\"+response.getStatusLine().getStatusCode());\n HttpEntity getResponseEntity = response.getEntity();\n InputStream httpResponseStream = getResponseEntity.getContent();\n String result = slurp(httpResponseStream , 8192);\n return result;\n\n } catch (ClientProtocolException e) {\n e.printStackTrace();\n return e.getMessage();\n } catch (ConnectTimeoutException e){\n e.printStackTrace();\n return e.getMessage();\n }catch (IOException e) {\n e.printStackTrace();\n return e.getMessage();\n }\n }", "private void loadData() {\n\t\tOptional<ServerData> loaded_data = dataSaver.load();\n\t\tif (loaded_data.isPresent()) {\n\t\t\tdata = loaded_data.get();\n\t\t} else {\n\t\t\tdata = new ServerData();\n\t\t}\n\t}", "@Override\n public void run() {\n HttpsURLConnection httpConn = null;\n\n // Read text input stream.\n InputStreamReader isReader = null;\n\n // Read text into buffer.\n BufferedReader bufReader = null;\n\n // Save server response text.\n StringBuffer readTextBuf = new StringBuffer();\n\n try {\n // Create a URL object use page url.\n URL url = new URL(reqUrl + \"?\" + reqParams);\n\n // Open http connection to web server.\n httpConn = (HttpsURLConnection) url.openConnection();\n\n // Set http request method to get.\n httpConn.setRequestMethod(\"GET\");\n httpConn.setRequestProperty(\"User-Agent\", \"\");\n httpConn.setRequestProperty(\"Content-Type\", \"application/json\");\n httpConn.setRequestProperty(\"Accept\", \"application/json\");\n\n httpConn.setDoInput(true);\n\n // Set connection timeout and read timeout value.\n httpConn.setConnectTimeout(10000);\n httpConn.setReadTimeout(10000);\n int statusCode = httpConn.getResponseCode();\n\n InputStream is = httpConn.getInputStream();\n InputStreamReader isr = new InputStreamReader(is);\n BufferedReader br = new BufferedReader(isr);\n\n String inputLine;\n StringBuilder sb = new StringBuilder();\n\n while ((inputLine = br.readLine()) != null) {\n sb.append(inputLine);\n }\n String result = sb.toString();\n DailyWeather dailyWeather = DailyWeather.getObjectFromString(result);\n if (dailyWeather != null) {\n listDaily[index] =dailyWeather;\n }\n\n br.close();\n httpConn.disconnect();\n\n } catch (MalformedURLException ex) {\n Log.e(LOG_TAG, ex.getMessage(), ex);\n } catch (Exception ex) {\n Log.e(LOG_TAG, ex.getMessage(), ex);\n ex.printStackTrace();\n\n } finally {\n try {\n if (getCount.incrementAndGet()==8){\n if (subscribe != null) {\n subscribe.onGetComplete();\n getCount.set(0);\n }\n }\n if (bufReader != null) {\n bufReader.close();\n bufReader = null;\n }\n if (isReader != null) {\n isReader.close();\n isReader = null;\n }\n if (httpConn != null) {\n httpConn.disconnect();\n httpConn = null;\n }\n } catch (IOException ex) {\n }\n\n }\n }", "@Override\n protected void executeFetch(final String requestId, DSRequest request, final DSResponse response)\n {\n final int startIndex = (request.getStartRow() < 0) ? 0 : request.getStartRow();\n final int endIndex = (request.getEndRow() == null) ? -1 : request.getEndRow();\n\n String userId = request.getCriteria().getAttribute(\"userId\");\n UserDTO userDto = new UserDTO();\n userDto.setId(Long.parseLong(userId));\n\n service.fetch(userDto, new AsyncCallback<List<ContactDTO>>()\n {\n public void onFailure(Throwable caught)\n {\n caught.printStackTrace();\n response.setStatus(RPCResponse.STATUS_FAILURE);\n processResponse(requestId, response);\n }\n\n public void onSuccess(List<ContactDTO> result)\n {\n // Calculating size of return list\n int size = result.size();\n if (endIndex >= 0)\n {\n if (endIndex < startIndex)\n {\n size = 0;\n }\n else\n {\n size = endIndex - startIndex + 1;\n }\n }\n // Create list for return - it is just requested records\n ListGridRecord[] list = new ListGridRecord[size];\n if (size > 0)\n {\n for (int i = 0; i < result.size(); i++)\n {\n if (i >= startIndex && i <= endIndex)\n {\n ListGridRecord record = new ListGridRecord();\n copyValues(result.get(i), record);\n list[i - startIndex] = record;\n }\n }\n }\n response.setStatus(RPCResponse.STATUS_SUCCESS);\n response.setData(list);\n // IMPORTANT: for paging to work we have to specify size of full\n // result set\n response.setTotalRows(result.size());\n processResponse(requestId, response);\n }\n });\n }", "protected abstract void retrievedata();", "private void getDataFromServer(final String TAG) {\n queue = customVolley.Rest(Request.Method.GET, getUrlToDownload(), null, TAG);\n\n }", "@Override\n public List<News> loadInBackground() {\n if (mUrl == null) {\n return null;\n }\n // Perform the network request, parse the response, and extract a list of articles.\n List<News> news = QueryUtils.fetchNewsData(mUrl);\n return news;\n }", "public static Dataclient GetData(){\n return RetrofitClient.getClient(Base_Url).create(Dataclient.class);\n }", "public void getData(String platform, String epic_nickname){\n jobsRepository.getEpicInfo(platform,epic_nickname)\n .observeOn(AndroidSchedulers.mainThread())\n .subscribeOn(Schedulers.io())\n .subscribe(new Observer<EpicUser>() {\n @Override\n public void onSubscribe(Disposable d) {\n\n }\n\n @Override\n public void onNext(EpicUser epicObject) {\n\n //si los datos del Usuario Consultado no están vacios se añaden a la lista\n if(epicObject!=null) {\n epicDataList.clear();\n StaticPlayer data = epicObject.getStats().getP2();\n epicDataList.add(data.getScore());\n epicDataList.add(data.getScorePerMatch());\n epicDataList.add(data.getMatches());\n epicDataList.add(data.getKills());\n epicUserData.postValue(epicDataList);\n }\n }\n\n //Métodos Autogenerados\n @Override\n public void onError(Throwable e) {\n Log.d(\"Service Fail\",\"err: \"+e.getLocalizedMessage());\n }\n\n @Override\n public void onComplete() {\n\n }\n });\n }", "private void getWeatherData() {\n System.out.println(\"at getWeather\");\n String url = \"https://api.openweathermap.org/data/2.5/onecall/timemachine?lat=\";\n url += databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LATITUDE);\n url += \"&lon=\" + databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.SENDER_LONGITUDE);\n url += \"&dt=\" + databaseHandler.getSingleExperimentInfoValue(experimentNumber, DatabaseHandler.START_TIME).substring(0, 10);\n url += \"&appid=your openweathermap API key\";\n new ClientThread(ClientThread.GET_WEATHER, new String[]{url, Integer.toString(experimentNumber)}, this).start();\n }", "public static String getData(URL url, HTTPMethod method) {\r\n\t\tString data = null;\r\n\t\tURLFetchService fetcher = URLFetchServiceFactory.getURLFetchService();\r\n\r\n\t\ttry {\r\n\t\t\tHTTPRequest request = new HTTPRequest(url, method);\r\n\t\t\trequest.getFetchOptions().setDeadline(Double.valueOf(60.0));\r\n\r\n\t\t\tif (LOG.isLoggable(GaeLevel.TRACE)) {\r\n\t\t\t\tLOG.log(GaeLevel.TRACE, \"Fetching response\");\r\n\t\t\t}\r\n\t\t\tHTTPResponse response = fetcher.fetch(request);\r\n\r\n\t\t\tint responseCode = response.getResponseCode();\r\n\r\n\t\t\tif (responseCode == HttpURLConnection.HTTP_OK) {\r\n\t\t\t\tbyte[] content = response.getContent();\r\n\r\n\t\t\t\tif (content == null || content.length == 0) {\r\n\t\t\t\t\tLOG.log(Level.SEVERE, String.format(\"Response for [%s] was empty\", url.toString()));\r\n\t\t\t\t} else {\r\n\t\t\t\t\tdata = new String(content, \"UTF-8\");\r\n\r\n\t\t\t\t\tif (LOG.isLoggable(Level.INFO)) {\r\n\t\t\t\t\t\tLOG.info(String.format(\"Recievend [%d] bytes for request\", content.length));\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tif (LOG.isLoggable(GaeLevel.TRACE)) {\r\n\t\t\t\t\t\tLOG.log(GaeLevel.TRACE, data);\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t} else {\r\n\t\t\t\tLOG.log(Level.SEVERE, String.format(\"Http error occured for request to [%s] with code [%d]\", url.toString(), responseCode));\r\n\t\t\t}\r\n\t\t} catch (IOException e) {\r\n\t\t\tif (LOG.isLoggable(Level.SEVERE)) {\r\n\t\t\t\tLOG.log(Level.SEVERE, String.format(\"Error fetching response for url [%s]\", url.toString()), e);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn data;\r\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\t\n\t\t\t\tUri uri = dataContract.SOURCE_CONTENT_URI;\n\t\t\t\tif (catergory.equals(\"thumbnail\"))\n\t\t\t\t{\n\t\t\t\t\turi = dataContract.THUMBNAIL_CONTENT_URI;\n\t\t\t\t}\n\t\t\t\tUri dataUri = uri.buildUpon()\n\t\t\t\t\t\t\t.appendPath(giftId).build();\n\t\t\t\t\n\t\t\t\tbyte data[] = null;\n\t\t\t\tint dataRead = 0;\n\t\t\t\tint tdatalen = 0;\n\t\t\t\tint buffer_size = 2048;\n\t\t\t\ttry {\n\t\t\t\t\tInputStream in = resolver.openInputStream(dataUri);\n\t\t\t\t\tdata = new byte[buffer_size];\n\t\t\t\t\tdo {\n\t\t\t\t\t\tdataRead = in.read(data, tdatalen, buffer_size);\n\t\t\t\t\t\tif (dataRead != -1) {\n\t\t\t\t\t\t\tbyte tmp[] = new byte[data.length + buffer_size];\n\t\t\t\t\t\t\tSystem.arraycopy(data, 0, tmp, 0, data.length);\n\t\t\t\t\t\t\ttdatalen += dataRead;\n\t\t\t\t\t\t\tdata = tmp;\n\t\t\t\t\t\t}\n\t\t\t\t\t} while (dataRead != -1);\n\t\t\t\t\tin.close();\n\t\t\t\t} \n\t\t\t\t\n\t\t\t\tcatch (FileNotFoundException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\tcatch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tMessage msg = Message.obtain(handler, PotlatchMsg.GET_DATA.getVal());\n\t\t\t\tBundle b = new Bundle();\n\t\t\t\tb.putByteArray(PotlatchConst.get_data, data);\n\t\t\t\tmsg.setData(b);\n\t\t\t\thandler.sendMessage(msg);\n\t\n\t\t\t}", "@Override\n\t\tpublic void run() {\n\t\t\ttry {\n\t\t\t\tProxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(\n\t\t\t\t\t\t\"proxy.iiit.ac.in\", 8080));\n\t\t\t\tURL url = new URL(url1);\n\t\t\t\tHttpURLConnection conn = (HttpURLConnection) url\n\t\t\t\t\t\t.openConnection(proxy);\n\t\t\t\tconn.setRequestMethod(\"GET\");\n\t\t\t\tconn.setRequestProperty(\"Accept\", \"application/json\");\n\n\t\t//\t\tif (conn.getResponseCode() != 200) {\n\t\t\t//\t\tthrow new RuntimeException(\"Failed : HTTP error code : \"\n\t\t\t//\t\t\t\t+ conn.getResponseCode());\n\t\t\t//\t}\n\n\t\t\t\t/*\n\t\t\t\t * BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t * (conn.getInputStream())));\n\t\t\t\t * \n\t\t\t\t * String output;\n\t\t\t\t * System.out.println(\"Output from Server .... \\n\"); while\n\t\t\t\t * ((output = br.readLine()) != null) {\n\t\t\t\t * System.out.println(output); }\n\t\t\t\t */\n\t\t\t\tlong tID = Thread.currentThread().getId();\n\t\t\t\tlong time = ManagementFactory.getThreadMXBean()\n\t\t\t\t\t\t.getThreadCpuTime(tID);\n\t\t\t\tSystem.out.println(\"My thread \" + tID + \" execution time: \"\n\t\t\t\t\t\t+ time + \" ns.\");\n\t\t\t\tsumTimes=sumTimes+time;\n\t\t\t\tconn.disconnect();\n\n\t\t\t} catch (MalformedURLException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t} catch (Exception e) {\n\n\t\t\t\te.printStackTrace();\n\n\t\t\t}\n\n\t\t\t// long end_time = System.currentTimeMillis();\n\n\t\t\t// long difference = end_time-start_time;\n\t\t\t// System.out.println(\"Complete in \"+difference+\" ms.\");\n\t\t}", "public void getRemoteItems() {\n url = getAllItemsOrderedByCategory;\n params = new HashMap<>();\n params.put(param_securitykey, param_securitykey);\n\n if (ApiHelper.checkInternet(mContext)) {\n mApiHelper.getItems(mIRestApiCallBack, true, url, params);\n } else {\n //Toast.makeText(mContext, mContext.getString(R.string.noInternetConnection), Toast.LENGTH_LONG).show();\n mIRestApiCallBack.onNoInternet();\n CacheApi cacheApi = loadCacheData(url, params);\n mSqliteCallBack.onDBDataObjectLoaded(cacheApi);\n }\n\n }", "protected ScServletData getData()\n {\n return ScServletData.getLocal();\n }", "void requestData();", "private void getFlowData() {\n\t\tdbService.getCacheLastUpdated(Tables.STATIONS, new ListCallback<GenericRow>() {\n\n\t\t\t@Override\n\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(List<GenericRow> result) {\n\t\t\t\tString currentMap = localStorage.getItem(\"KEY_CURRENT_MAP\");\n\t\t\t\tboolean shouldUpdate = true;\n\n\t\t\t\tif (!result.isEmpty()) {\n\t\t\t\t\tdouble now = System.currentTimeMillis();\n\t\t\t\t\tdouble lastUpdated = result.get(0).getDouble(CachesColumns.CACHE_LAST_UPDATED);\n\t\t\t\t\tshouldUpdate = (Math.abs(now - lastUpdated) > (3 * 60000)); // Refresh every 3 minutes.\n\t\t\t\t}\n\n\t\t\t view.showProgressIndicator();\n\t\t\t \n\t\t\t if (!currentMap.equalsIgnoreCase(\"seattle\")) {\n\t\t\t \tshouldUpdate = true;\n\t\t\t\t\tlocalStorage.setItem(\"KEY_CURRENT_MAP\", \"seattle\");\n\t\t\t }\n\t\t\t \n\t\t\t if (shouldUpdate) {\n\t\t\t \ttry {\n\t\t\t \t String url = Consts.HOST_URL + \"/api/flowdata/MinuteDataNW\";\n\t\t\t \t JsonpRequestBuilder jsonp = new JsonpRequestBuilder();\n\t\t\t \t jsonp.setTimeout(30000); // 30 seconds\n\t\t\t \t jsonp.requestObject(url, new AsyncCallback<FlowDataFeed>() {\n\n\t\t\t \t\t\t@Override\n\t\t\t \t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t \t\t\t\tview.hideProgressIndicator();\n\t\t\t \t\t\t\tGWT.log(\"Failure calling traffic flow api.\");\n\t\t\t \t\t\t}\n\n\t\t\t \t\t\t@Override\n\t\t\t \t\t\tpublic void onSuccess(FlowDataFeed result) {\n\t\t\t \t\t\t\tstationItems.clear();\n\t\t\t \t\t\t\t\n\t\t\t \t\t\t\tif (result.getFlowData() != null) {\n\t\t\t \t\t\t\t\tint numStations = result.getFlowData().getStations().length();\n\t\t\t \t\t\t\t\tString timestamp = result.getFlowData().getTimestamp();\n\t\t\t \t\t\t\t\ttimestamp = timestamp.replaceAll(\"PST|PDT\", \"\");\n\t\t\t \t\t\t\t\tDate date = parseDateFormat.parse(timestamp);\n\t\t\t \t\t\t\t\tString lastUpdated = displayDateFormat.format(date);\n\t\t\t \t\t\t\t\tlocalStorage.setItem(\"KEY_LAST_UPDATED\", lastUpdated);\n\t\t\t \t\t\t\t\tStationItem item;\n\t\t\t \t\t\t\t\t\n\t\t\t \t\t\t\t\tfor (int i = 0; i < numStations; i++) {\n\t\t\t \t\t\t\t\t\tString stationId = result.getFlowData().getStations().get(i).getId();\n\t\t\t \t\t\t\t\t\tString status = result.getFlowData().getStations().get(i).getStat();\n\t\t\t \t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\tif (stationItemsMap.containsKey(stationId) && status.equalsIgnoreCase(\"good\")) {\n\t\t\t\t \t\t\t\t\t\titem = new StationItem();\n\t\t\t\t \t\t\t\t\t\t\n\t\t\t\t \t\t\t\t\t\titem.setId(stationId);\n\t\t\t \t\t\t\t\t\t\titem.setVolume(result.getFlowData().getStations().get(i).getVol());\n\t\t\t \t\t\t\t\t\t\titem.setSpeed(result.getFlowData().getStations().get(i).getSpd());\n\t\t\t \t\t\t\t\t\t\titem.setOccupancy(result.getFlowData().getStations().get(i).getOcc());\n\t\t\t \t\t\t\t\t\t\t\n\t\t\t \t\t\t\t\t\t\tstationItems.add(item);\n\t\t\t \t\t\t\t\t\t}\n\t\t\t \t\t\t\t\t}\n\t\t\t \t\t\t\t}\n\t\t\t \t\t\t\t\n\t\t\t \t\t\t\t// Purge existing stations covered by incoming data\n\t\t\t \t\t\t\tdbService.deleteStations(new VoidCallback() {\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\t\t\t\t\t// Bulk insert all the new stations and data.\n\t\t\t\t\t\t\t\t\t\tdbService.insertStations(stationItems, new RowIdListCallback() {\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t\t\t\tview.hideProgressIndicator();\n\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\tpublic void onSuccess(List<Integer> rowIds) {\n\t\t\t\t\t\t\t\t\t\t\t\t// Update the cache table with the time we did the update\n\t\t\t\t\t\t\t\t\t\t\t\tList<CacheItem> cacheItems = new ArrayList<CacheItem>();\n\t\t\t\t\t\t\t\t\t\t\t\tcacheItems.add(new CacheItem(Tables.STATIONS, System.currentTimeMillis()));\n\t\t\t\t\t\t\t\t\t\t\t\tdbService.updateCachesTable(cacheItems, new VoidCallback() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onSuccess() {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t// Get all the stations and data just inserted.\n\t\t\t\t\t\t\t\t\t\t\t\t \tdbService.getStations(new ListCallback<GenericRow>() {\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t@Override\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tpublic void onSuccess(List<GenericRow> result) {\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tgetStations(result);\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\t});\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t});\n\t\t\t \t\t\t}\n\t\t\t \t\t});\n\n\t\t\t \t} catch (Exception e) {\n\t\t\t \t\t// TODO Do something with the exception\n\t\t\t \t}\n\t\t\t } else {\n\t\t\t \tdbService.getStations(new ListCallback<GenericRow>() {\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onFailure(DataServiceException error) {\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onSuccess(List<GenericRow> result) {\n\t\t\t\t\t\t\tgetStations(result);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t});\n\t\t\t }\n\t\t\t}\n\t\t});\n\t}", "@MainThread // MainThread since threading is handled by Retrofit\n public abstract LiveData<NetworkModel> fetchFromNetwork();", "private void getData() {\n ApiInterface apiInterface = ServiceGenerator.createService(ApiInterface.class);\n Call<TermsConditionApi> call = apiInterface.getTermsCondition();\n call.enqueue(new Callback<TermsConditionApi>() {\n @Override\n public void onResponse(Call<TermsConditionApi> call, Response<TermsConditionApi> response) {\n if (response.isSuccessful()) {\n if (response.body().getStatus().equals(200)) {\n data = response.body().getData();\n } else {\n }\n } else {\n\n }\n }\n\n @Override\n public void onFailure(Call<TermsConditionApi> call, Throwable t) {\n// Toast.makeText(HomeActivity.this, \"\" + t.getMessage(), Toast.LENGTH_LONG).show();\n }\n });\n }", "private void fetchRatesData() {\r\n RequesterBean requesterBean = new RequesterBean();\r\n requesterBean.setFunctionType(GET_RATE_DATA);\r\n requesterBean.setDataObject(instituteRatesBean);\r\n \r\n AppletServletCommunicator appletServletCommunicator = new \r\n AppletServletCommunicator(CONNECTION_STRING, requesterBean);\r\n appletServletCommunicator.setRequest(requesterBean);\r\n appletServletCommunicator.send();\r\n ResponderBean responderBean = appletServletCommunicator.getResponse();\r\n \r\n if(responderBean == null) {\r\n //Could not contact server.\r\n CoeusOptionPane.showErrorDialog(COULD_NOT_CONTACT_SERVER);\r\n return;\r\n }\r\n \r\n if(responderBean.isSuccessfulResponse()) {\r\n Hashtable ratesData = (Hashtable)responderBean.getDataObject();\r\n hasMaintainCodeTablesRt = ((Boolean)ratesData.get(\"HAS_OSP_RIGHT\")).booleanValue();\r\n if( hasMaintainCodeTablesRt ){\r\n setFunctionType(TypeConstants.MODIFY_MODE);\r\n }else {\r\n setFunctionType(TypeConstants.DISPLAY_MODE);\r\n }\r\n //queryKey = RATES + ratesData.get(\"PARENT_UNIT_NUMBER\").toString();\r\n\r\n //Set title\r\n dlgRates.setTitle(RATES + \" for Unit \" + instituteRatesBean.getUnitNumber());\r\n queryEngine.addDataCollection(queryKey, ratesData);\r\n\r\n }else {\r\n //Server Error\r\n CoeusOptionPane.showErrorDialog(responderBean.getMessage());\r\n return;\r\n }\r\n }", "private void downloadRtData(){\n\t\ttry {\n\t\t\tif (socket != null) {\n\t\t\t\tInputStream inStream = socket.getInputStream();\n\t\t\t\tParser.readRtData(inStream, \"MainActivity\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tLog.d(\"IOException\", \"Exception downloading real time data\");\n\t\t}\n\t}", "public List<Data> getAllDataFromService() {\n\t\t\n\t\tList<Data> data = new ArrayList<>();\n\t\tRestTemplate restTemplate = new RestTemplate();\n\t\t\n\t\t// get first page data\n\t\tResponse response = restTemplate.getForObject(\n\t\t\t\t\"https://jsonmock.hackerrank.com/api/article_users/search?page=1\",\n\t\t\t\tResponse.class);\n\t\tdata.addAll(response.getData());\n\t\t\n\t\t// get second page data\n\t\tResponse response2 = restTemplate.getForObject(\n\t\t\t\t\"https://jsonmock.hackerrank.com/api/article_users/search?page=2\",\n\t\t\t\tResponse.class);\n\t\tdata.addAll(response2.getData());\n\t\t\n\t\treturn data;\t\n\t}", "public static List<Book> getDataFromServer(String requestURL) {\n return parseServerResponse(readInputStream(performNetworkRequest(convertStringToURL(requestURL))));\n }", "public List<T> getData() {\n if (nonNull(asyncData)) {\n return this.getAsyncData();\n }\n this.updateStream();\n return this.data;\n }", "private void getData() {\n loading = new ProgressDialog(ScoreActivity.this);\n loading.setIcon(R.drawable.wait_icon);\n loading.setTitle(\"Loading\");\n loading.setMessage(\"Please wait....\");\n loading.show();\n\n String URL = Key.WRITTEN_MARK+mid;\n\n StringRequest stringRequest = new StringRequest(URL, new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n loading.dismiss();\n showJSON(response);\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n Intent intent = new Intent(ScoreActivity.this,ExaminationActivity.class);\n startActivity(intent);\n loading.dismiss();\n Toast.makeText(ScoreActivity.this, \"Network Error!\", Toast.LENGTH_SHORT).show();\n }\n });\n\n RequestQueue requestQueue = Volley.newRequestQueue(ScoreActivity.this);\n requestQueue.add(stringRequest);\n }", "@Override\n protected String doInBackground(String... params) {\n String content = HttpManager.getData(params[0],params[1],params[2]);\n return content;\n\n }", "private Future<JsonObject> fetchItem(String id) {\n Promise<JsonObject> p = Promise.promise();\n client\n .get(catPort, catHost, catItemPath)\n .addQueryParam(ID, id)\n .send()\n .onFailure(\n ar -> {\n ar.printStackTrace();\n p.fail(INTERNALERROR);\n })\n .onSuccess(\n obj -> {\n JsonObject res = obj.bodyAsJsonObject();\n if (obj.statusCode() == 200)\n {\n if (res.getString(STATUS).equals(status.SUCCESS.toString().toLowerCase()))\n p.complete(obj.bodyAsJsonObject().getJsonArray(RESULTS).getJsonObject(0));\n }\n else{\n if (obj.statusCode() == 404)\n p.fail(ITEMNOTFOUND + id);\n else{\n LOGGER.error(\"failed fetchItem: \" + res);\n p.fail(INTERNALERROR);\n }\n\n }\n });\n return p.future();\n }", "protected String doInBackground(String... args) {\n\t\t\t// Building Parameters\n\t\t\tList<NameValuePair> params = new ArrayList<NameValuePair>();\n\t\t\t// getting JSON string from URL\n\t\t\tJSONObject json = jsonParser.makeHttpRequest(url_all_sibosdata,\n\t\t\t\t\t\"GET\", params);\n\n\t\t\t// Check your log cat for JSON reponse\n\t\t\tLog.d(\"All sibosdata: \", json.toString());\n\n\t\t\ttry {\n\t\t\t\t// Checking for SUCCESS TAG\n\t\t\t\tint success = json.getInt(TAG_SUCCESS);\n\n\t\t\t\tif (success == 1) {\n\t\t\t\t\t// sibosdata found\n\t\t\t\t\t// Getting Array of sibosdata\n\t\t\t\t\tJSONArray sibosdata = json.getJSONArray(TAG_KONEKSI);\n\t\t\t\t\tSystem.out.println(\"sibosdata = \" + sibosdata);\n\n\t\t\t\t\t// looping through All sibosdata\n\t\t\t\t\tfor (int i = 0; i < sibosdata.length(); i++) {\n\t\t\t\t\t\tJSONObject c = sibosdata.getJSONObject(i);\n\n\t\t\t\t\t\t// Storing each json item in variable\n\t\t\t\t\t\tString local = c.getString(TAG_LOCALHOST);\n\t\t\t\t\t\tString db = c.getString(TAG_DATABASE);\n\t\t\t\t\t\tString port = c.getString(TAG_PORT);\n\n\t\t\t\t\t\tlocalS = local;\n\t\t\t\t\t\tdbS = db;\n\t\t\t\t\t\tportS = port;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t}\n\t\t\t} catch (JSONException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\treturn null;\n\t\t}", "List<WebCrawlerData> retrieveAllEntity();", "void fetchHolidayRentalHousesData();", "public void fetchDataStock(){\n// stocks.add(new Stock(1,\"bitcoin\",new Double(7000),new Double(7500),new Double(5),null));\n\n stockFetcher = new StockAsyncTask ();\n stockFetcher.execute();\n\n\n // TODO:\n\n refresh(5000);\n\n\n }", "private void fetchData() {\n mFirstNameLabel = \"First name:\";\n mFirstNameValue = \"Taylor\";\n mSurnameLabel = \"Surname:\";\n mSurnameValue = \"Swift\";\n\n initFields();\n }", "@Override\n public void downloadData() throws ApiException, BadRequestException, DataNotSetException, AuthRequiredException {\n\n try {\n result = Constructors.constructJSONArray(url);\n message = new String[result.length()];\n creator = new String[result.length()];\n created = new String[result.length()];\n for(int i = 0; i < result.length(); i++){\n String mes = result.getJSONObject(i).getString(\"message\");\n String user = result.getJSONObject(i).getString(\"creator\");\n String date = result.getJSONObject(i).getString(\"created\");\n message[i] = mes;\n creator[i] = user;\n created[i] = date;\n\n }\n } catch (Exception e) {\n throw new ApiException(\"API Error: \" + result.toString());\n }\n\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tList<String> headers = readRequest(client);\n\t\t\t\t\t\t\tif (headers != null && headers.size() >= 1) {\n\t\t\t\t\t\t\t\tString requestURL = getRequestURL(headers.get(0));\n\t\t\t\t\t\t\t\tLog.d(TAG, requestURL);\n\n\t\t\t\t\t\t\t\tif (requestURL.startsWith(\"http://\")) {\n\n\t\t\t\t\t\t\t\t\t// HttpRequest request = new\n\t\t\t\t\t\t\t\t\t// BasicHttpRequest(\"GET\", requestURL);\n\n\t\t\t\t\t\t\t\t\tprocessHttpRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tprocessFileRequest(requestURL, client, headers);\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "public String getData(){\r\n\t\t// Creating register message\r\n\t\tmessageToServer = GET_DATA_KEYWORD \r\n\t\t\t\t+ SEPARATOR + controller.getModel().getAuthUser().getToken();\r\n\r\n\t\t// Sending message\t\t\t\t\r\n\t\tpw.println(messageToServer);\r\n\t\tpw.flush();\r\n\t\tSystem.out.println(\"Message sent to server: \" + messageToServer);\r\n\r\n\t\t// Reading the answer from server, processing the answer\r\n\t\tString data = null;\r\n\t\ttry {\r\n\r\n\t\t\tdata = br.readLine();\r\n\r\n\t\t} catch (IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(null, e.toString(), \"Error\",\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\r\n\t\t}\r\n\r\n\t\treturn data;\r\n\t}", "@Override\n protected JSONObject doInBackground(String... url) {\n JSONObject data = null;\n\n try {\n // Fetching the data from web service\n data = new NetworkManager().makeHttpGetConnectionWithJsonOutput(url[0]);\n } catch (Exception e) {\n Log.d(\"Background Task\", e.toString());\n }\n return data;\n }", "public interface DataFetchingStrategy {\n \n\tpublic String fetchData(String url) throws DataFetchingException;\n}", "@Override\n\tpublic void fetchContent() throws UrlConnectionException, JSONException,\n\t\t\tJSONNullableException, NotConnectedException,\n\t\t\tNetworkStatePermissionException\n\t{\n\n\t}", "private void getNewsList() {\n // While the app fetched data we are displaying a progress dialog\n\n if (isOnline(mContext)) {\n showProgressDialog();\n\n ApiInterface apiService = ApiRequest.getClient().create(ApiInterface.class);\n\n Call<News> call = apiService.loadNewsList();\n call.enqueue(new Callback<News>() {\n @Override\n public void onResponse(Call<News> call, retrofit2.Response<News> response) {\n dismissProgressDialog();\n\n news.setTitle(response.body().getTitle());\n\n newsList.addAll(response.body().getRows());\n showList();\n ActionBar actionBar = getActionBar();\n actionBar.setDisplayHomeAsUpEnabled(true);\n actionBar.setDisplayShowHomeEnabled(false);\n actionBar.setDisplayShowTitleEnabled(true);\n actionBar.setTitle(news.getTitle());\n actionBar.setDisplayUseLogoEnabled(false);\n }\n\n @Override\n public void onFailure(Call<News> call, Throwable t) {\n dismissProgressDialog();\n displayMessage(t.getMessage());\n setTextMessage();\n\n }\n });\n } else {\n\n displayMessage(getString(R.string.no_network));\n setTextMessage();\n }\n\n }", "protected void doGet(HttpServletRequest request, HttpServletResponse response) throws IOException {\n //Setting up response\n response.setContentType(\"application/json\");\n response.setCharacterEncoding(\"UTF-8\");\n response.addHeader(\"Access-Control-Allow-Origin\", \"*\");\n PrintWriter out = response.getWriter();\n\n //Check if data is cached\n if(isCached) {\n out.print(convertToJSON(newsItems));\n out.flush();\n }\n //Otherwise scrape data\n else {\n //Scrape data from Time.com and build NewsItem list\n scrapeUrl();\n //Sort each NewsItem by its corresponding articles published time\n newsItems.sort(Comparator.comparing(NewsItem::getPublishedDate));\n //Reverse list to have the most recent NewsItem first\n Collections.reverse(newsItems);\n //Set flag for next request to use cached data\n isCached = true;\n out.print(convertToJSON(newsItems));\n out.flush();\n }\n }", "public static List<News> fetchNewsData(String requestedQueryURLString) {\n URL url;\n String JSONResponse = null;\n\n // If requested URL is null return null object\n if (requestedQueryURLString == null) {\n Log.i(LOG_TAG, \"Null url is passed\");\n return null;\n } else {\n url = generateUrl(requestedQueryURLString);\n }\n\n try {\n JSONResponse = makeHttpRequest(url);\n } catch (IOException e) {\n Log.e(LOG_TAG, \"Exception occurred due to closing input Stream : fetchNewsData() gets from readFromStream() block\");\n }\n\n List<News> newsList;\n if (JSONResponse != null) {\n // If JSON response is not null return newsList List object\n newsList = extractFeaturesFromJsonResponse(JSONResponse);\n return newsList;\n } else {\n // If JSON response is null, return null\n return null;\n }\n }", "public void run() {\n Socket socket;\n try {\n socket = new Socket(servers.getServerAddress(),Integer.parseInt(servers.getServerPort()));\n } catch (IOException e) {\n // e.printStackTrace();\n System.err.println(\"Cannot connect to the server: \" + servers.getServerAddress()\n + \" at port:\" + servers.getServerPort());\n return;\n }\n\n ObjectOutputStream toServer = null;\n try {\n toServer = new ObjectOutputStream(socket.getOutputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n BufferedReader toClient = null;\n try {\n toClient = new BufferedReader(new InputStreamReader(socket.getInputStream()));\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n try {\n\n toServer.writeObject(argsToServer);\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //get and print query results\n String line;\n int count = 0;\n ByteArrayOutputStream out = new ByteArrayOutputStream();\n PrintStream pr = new PrintStream(out);\n try {\n while((line = toClient.readLine()) != null) {\n System.out.println(\"<\" + servers.getServerAddress() + \"> :\" + line);\n count++;\n pr.println(line);\n }\n pr.flush();\n System.out.println(servers.getServerAddress()+ \" query count: \" + count);\n socket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n //saveLocalFile(out);\n }", "private void getDataFromServer(String forumTopicID) {\n\t\t\tif (!isCancelled()) {\n\t\t\t\tString forumData;\n\t\t\t\tCconnectToServer getData = new CconnectToServer();\n\t\t\t\tforumData = getData.connect(\"forumDetail.php\", \"0\",\n\t\t\t\t\t\tforumTopicID);\n\t\t\t\textractDataFromJson(forumData);\n\t\t\t}\n\t\t}", "@MainThread\n protected abstract boolean shouldFetch(@Nullable ResultType data);", "private void getData(int option){\n String src;\n if(option == 0)\n src = \"connectDB.php\";\n else\n src = \"sortByRate.php\";\n\n //Creating a string request\n StringRequest stringRequest = new StringRequest(\"http://140.116.82.52/iBeaconNavigationApp/\" + src,\n new Response.Listener<String>() {\n @Override\n public void onResponse(String response) {\n JSONObject j;\n try {\n //Parsing the fetched Json String to JSON Object\n j = new JSONObject(response);\n\n //Storing the Array of JSON String to our JSON Array\n result = j.getJSONArray(\"result\");\n\n //Calling method getStudents to get the students from the JSON Array\n getDatas(result);\n setList();\n } catch (JSONException e) {\n e.printStackTrace();\n }\n }\n },\n new Response.ErrorListener() {\n @Override\n public void onErrorResponse(VolleyError error) {\n\n }\n });\n\n //Creating a request queue\n RequestQueue requestQueue = Volley.newRequestQueue(getActivity());\n\n //Adding request to the queue\n requestQueue.add(stringRequest);\n }", "private void fetchMovieData(String sortBy ) {\n if (isOnline()) {\n showMovieDataView();\n getMovies(sortBy);\n } else {\n showErrorMessage();\n }\n }", "public void GetData(String uri,String id ,String type){\n RequestPackage p = new RequestPackage();\n p.setUri(uri);\n p.setMethod(\"GET\");\n p.setParam(\"id\",id);\n p.setParam(\"type\",type);\n\n GetTask getTask = new GetTask();\n getTask.execute(p);\n\n\n\n }", "public List<TwitterDataExtract> GetData();", "private void fetchUser() {\n UserFetcher userFetcher = new UserFetcher();\n userFetcher.setListener(this);\n userFetcher.getUser();\n }", "private void fetchMovieData(String qParam) {\n String apiKey = getString(R.string.myApiKey);\n URL movieQueryUrl = Queries.buildMovieUrl(qParam, apiKey);\n AsyncMovieCall am = new AsyncMovieCall(this, new FetchMyDataTaskCompleteListener());\n am.execute(movieQueryUrl);\n }", "public static int doGetList(Result r) {\n // Make an HTTP GET passing the name on the URL line\n r.setValue(\"\");\n String response = \"\";\n HttpURLConnection conn;\n int status = 0;\n try {\n \n URL url = new URL(\"https://intense-lake-93564.herokuapp.com/menusection/\");\n conn = (HttpURLConnection) url.openConnection();\n conn.setRequestMethod(\"GET\");\n // tell the server what format we want back\n conn.setRequestProperty(\"Accept\", \"text/plain\");\n // wait for response\n status = conn.getResponseCode();\n // If things went poorly, don't try to read any response, just return.\n if (status != 200) {\n // not using msg\n String msg = conn.getResponseMessage();\n return conn.getResponseCode();\n }\n String output = \"\";\n // things went well so let's read the response\n BufferedReader br = new BufferedReader(new InputStreamReader(\n (conn.getInputStream()))); \n while ((output = br.readLine()) != null) {\n response += output; \n } \n conn.disconnect();\n \n }\n catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } \n // return value from server\n // set the response object\n r.setValue(response);\n // return HTTP status to caller\n return status;\n }", "private void initdata() {\n\t\tProgressDialogUtil.showProgressDlg(this, \"加载数据\");\n\t\tProdDetailRequest req = new ProdDetailRequest();\n\t\treq.id = prodInfo.id+\"\";\n\t\tRequestParams params = new RequestParams();\n\t\ttry {\n\t\t\tparams.setBodyEntity(new StringEntity(req.toJson()));\n\t\t} catch (UnsupportedEncodingException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnew HttpUtils().send(HttpMethod.POST, Api.GETGOODSDETAIL, params, new RequestCallBack<String>() {\n\t\t\t@Override\n\t\t\tpublic void onFailure(HttpException arg0, String arg1) {\n\t\t\t\tProgressDialogUtil.dismissProgressDlg();\n\t\t\t\tT.showNetworkError(CommodityInfosActivity.this);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void onSuccess(ResponseInfo<String> resp) {\n\t\t\t\tProgressDialogUtil.dismissProgressDlg();\n\t\t\t\tProdDetailResponse bean = new Gson().fromJson(resp.result, ProdDetailResponse.class);\n\t\t\t\tLog.e(\"\", \"\"+resp.result);\n\t\t\t\tif(Api.SUCCEED == bean.result_code && bean.data != null) {\n\t\t\t\t\tupview(bean.data);\n\t\t\t\t\tdatas = bean.data;\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}" ]
[ "0.7513636", "0.7320187", "0.71265316", "0.6630198", "0.66263014", "0.65216213", "0.6378333", "0.63562775", "0.63396347", "0.6301449", "0.6253418", "0.624944", "0.62300897", "0.6132776", "0.6126141", "0.60823464", "0.606705", "0.6064142", "0.6056177", "0.604252", "0.6040434", "0.60357594", "0.6035445", "0.6034507", "0.6029055", "0.6011687", "0.60076267", "0.5957703", "0.5942498", "0.59371114", "0.59291196", "0.5863809", "0.58578104", "0.5853386", "0.5845038", "0.5800572", "0.5799013", "0.5798815", "0.57942694", "0.5794069", "0.57717115", "0.57484245", "0.5746186", "0.57400864", "0.5735066", "0.57204866", "0.57187045", "0.57156736", "0.57061803", "0.5701466", "0.5692736", "0.5690754", "0.56596446", "0.565457", "0.56535065", "0.5637317", "0.5615256", "0.56122077", "0.5602172", "0.55863345", "0.55819386", "0.55800843", "0.5575383", "0.55717784", "0.553763", "0.5531906", "0.5530843", "0.5514395", "0.55051386", "0.5504619", "0.5479707", "0.5478513", "0.54739964", "0.54621875", "0.545874", "0.54539514", "0.54420125", "0.5438853", "0.5436141", "0.5434122", "0.5429929", "0.5420656", "0.5420059", "0.54184747", "0.54136634", "0.5405222", "0.53926516", "0.5388915", "0.5387319", "0.53794336", "0.5366125", "0.5365776", "0.53654367", "0.53557074", "0.535467", "0.5350643", "0.5334768", "0.53319156", "0.5324992", "0.5323", "0.5319647" ]
0.0
-1